@bridge-ui/vue 0.15.0 → 0.17.0
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/AGENTS.md +1 -1
- package/ai/README.md +1 -1
- package/ai/llms.txt +0 -1
- package/ai/skills/bridge-ui-components/SKILL.md +3 -1
- package/ai/skills/bridge-ui-setup/SKILL.md +8 -8
- package/dist/Actions/Snackbar/BridgeSnackbarItem.vue_vue_type_script_setup_true_lang.js +42 -44
- package/dist/Actions/actionHostRegistry.d.ts +2 -1
- package/dist/Actions/actionHostRegistry.js +11 -7
- package/dist/Adapters/index.d.ts +0 -1
- package/dist/Adapters/index.js +1 -2
- package/dist/Components/Accordion/composables/useAccordion.js +1 -1
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +248 -258
- package/dist/Components/Chart/Chart.js +5 -0
- package/dist/Components/Chart/Chart.vue.d.ts +14 -0
- package/dist/Components/Chart/Chart.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/Components/Chart/chart.types.d.ts +126 -0
- package/dist/Components/Chart/chartInjectionKey.d.ts +94 -0
- package/dist/Components/Chart/chartInjectionKey.js +10 -0
- package/dist/Components/Chart/composables/useChart.d.ts +40 -0
- package/dist/Components/Chart/composables/useChart.js +344 -0
- package/dist/Components/Chart/echartsChart.d.ts +14 -0
- package/dist/Components/Chart/echartsChart.js +199 -0
- package/dist/Components/Chart/index.d.ts +4 -0
- package/dist/Components/Chart/index.js +4 -0
- package/dist/Components/ChartAxis/ChartAxis.js +5 -0
- package/dist/Components/ChartAxis/ChartAxis.vue.d.ts +7 -0
- package/dist/Components/ChartAxis/ChartAxis.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/Components/ChartAxis/chartAxis.types.d.ts +56 -0
- package/dist/Components/ChartAxis/composables/useChartAxis.d.ts +5 -0
- package/dist/Components/ChartAxis/composables/useChartAxis.js +28 -0
- package/dist/Components/ChartAxis/index.d.ts +3 -0
- package/dist/Components/ChartAxis/index.js +3 -0
- package/dist/Components/ChartLegend/ChartLegend.js +5 -0
- package/dist/Components/ChartLegend/ChartLegend.vue.d.ts +6 -0
- package/dist/Components/ChartLegend/ChartLegend.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/Components/ChartLegend/chartLegend.types.d.ts +71 -0
- package/dist/Components/ChartLegend/composables/useChartLegend.d.ts +16 -0
- package/dist/Components/ChartLegend/composables/useChartLegend.js +98 -0
- package/dist/Components/ChartLegend/index.d.ts +3 -0
- package/dist/Components/ChartLegend/index.js +3 -0
- package/dist/Components/ChartSeries/ChartSeries.js +5 -0
- package/dist/Components/ChartSeries/ChartSeries.vue.d.ts +4 -0
- package/dist/Components/ChartSeries/ChartSeries.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/Components/ChartSeries/chartSeries.types.d.ts +37 -0
- package/dist/Components/ChartSeries/composables/useChartSeries.d.ts +10 -0
- package/dist/Components/ChartSeries/composables/useChartSeries.js +29 -0
- package/dist/Components/ChartSeries/index.d.ts +3 -0
- package/dist/Components/ChartSeries/index.js +3 -0
- package/dist/Components/ChartTooltip/ChartTooltip.js +5 -0
- package/dist/Components/ChartTooltip/ChartTooltip.vue.d.ts +11 -0
- package/dist/Components/ChartTooltip/ChartTooltip.vue_vue_type_script_setup_true_lang.js +25 -0
- package/dist/Components/ChartTooltip/chartTooltip.types.d.ts +82 -0
- package/dist/Components/ChartTooltip/composables/useChartTooltip.d.ts +15 -0
- package/dist/Components/ChartTooltip/composables/useChartTooltip.js +110 -0
- package/dist/Components/ChartTooltip/index.d.ts +3 -0
- package/dist/Components/ChartTooltip/index.js +3 -0
- package/dist/Components/DataTable/DataTable.vue.d.ts +5 -3
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +138 -117
- package/dist/Components/DataTable/DataTableCellContent.vue.d.ts +1 -5
- package/dist/Components/DataTable/DataTableCellContent.vue_vue_type_script_setup_true_lang.js +24 -25
- package/dist/Components/DataTable/composables/useDataTable.d.ts +5 -3
- package/dist/Components/DataTable/composables/useDataTable.js +294 -272
- package/dist/Components/DataTable/composables/useDataTablePagination.js +1 -1
- package/dist/Components/DataTable/dataTable.types.d.ts +35 -2
- package/dist/Components/Drawer/composables/useDrawer.js +68 -67
- 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/RichTextEditor/RichTextEditor.vue.d.ts +1 -1
- package/dist/Components/RichTextEditor/RichTextEditor.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/Components/RichTextEditor/composables/useRichTextEditor.d.ts +2 -2
- package/dist/Components/RichTextEditor/composables/useRichTextEditor.js +67 -73
- package/dist/Components/RichTextEditor/richTextEditor.types.d.ts +1 -1
- package/dist/Components/RichTextEditor/tiptapEditor.d.ts +111 -0
- package/dist/Components/RichTextEditor/tiptapEditor.js +121 -0
- package/dist/Components/Select/composables/useSelect.js +147 -157
- package/dist/Components/Snackbar/Snackbar.vue.d.ts +1 -1
- package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +6 -7
- package/dist/Components/Snackbar/composables/useSnackbar.js +140 -146
- package/dist/Components/Stepper/composables/useStepper.js +1 -1
- package/dist/Components/Table/composables/useTableCell.d.ts +1 -1
- package/dist/Components/Tabs/composables/useTabs.js +1 -1
- package/dist/Components/ToggleGroup/composables/useToggleGroup.js +3 -3
- package/dist/augments.d.ts +34 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.js +187 -183
- package/dist/theme.css +1 -1
- package/docs/README.md +4 -3
- package/docs/components/BridgeUIProvider.md +0 -17
- package/docs/components/Chart.md +252 -0
- package/docs/components/DataTable.md +19 -0
- package/docs/components/Pagination.md +17 -5
- package/docs/components/Resizable.md +224 -0
- package/docs/components/RichTextEditor.md +2 -23
- package/package.json +27 -6
- package/dist/Adapters/RichText/index.d.ts +0 -1
- package/dist/Adapters/RichText/index.js +0 -2
- package/dist/Adapters/RichText/mockRichTextAdapter.d.ts +0 -5
- package/dist/Adapters/RichText/useRichTextAdapter.d.ts +0 -12
- package/dist/Adapters/RichText/useRichTextAdapter.js +0 -13
|
@@ -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 };
|
|
@@ -36,7 +36,7 @@ function b(b, x, S, C) {
|
|
|
36
36
|
}
|
|
37
37
|
function F(e) {
|
|
38
38
|
let t = O.get(e);
|
|
39
|
-
t?.disabled || t?.clickable === !1 || (S.value = e, C("
|
|
39
|
+
t?.disabled || t?.clickable === !1 || (S.value = e, C("change", e));
|
|
40
40
|
}
|
|
41
41
|
function I(e) {
|
|
42
42
|
document.getElementById(d(E, e))?.focus();
|
|
@@ -7,6 +7,6 @@ export declare function useTableCell(props: TableCellOwnProps | TableHeadOwnProp
|
|
|
7
7
|
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
8
8
|
scope: string | undefined;
|
|
9
9
|
class: string;
|
|
10
|
-
}, "class", import('vue').
|
|
10
|
+
}, "class", import('vue').ThHTMLAttributes | import('vue').TdHTMLAttributes | undefined, Omit<TableCellProps | TableHeadProps, "classes" | "customProps" | "numeric" | "align">>>;
|
|
11
11
|
};
|
|
12
12
|
export {};
|
|
@@ -29,7 +29,7 @@ function y(y, b, x, S) {
|
|
|
29
29
|
props: () => k.value.componentProps
|
|
30
30
|
}), M = i(() => x.value ?? "");
|
|
31
31
|
function N(e) {
|
|
32
|
-
D.value.includes(e) || (x.value = e, S("
|
|
32
|
+
D.value.includes(e) || (x.value = e, S("change", e));
|
|
33
33
|
}
|
|
34
34
|
function P(e, t = !1) {
|
|
35
35
|
return E.value.includes(e) || (E.value = [...E.value, e]), t ? D.value.includes(e) || (D.value = [...D.value, e]) : D.value = D.value.filter((t) => t !== e), (x.value ?? "") === "" && !t && (x.value = e), () => {
|
|
@@ -3,7 +3,7 @@ import { TOGGLE_GROUP_INJECTION_KEY as r } from "../toggleGroupInjectionKey.js";
|
|
|
3
3
|
import { computed as i, provide as a, ref as o, useAttrs as s, useId as c } from "vue";
|
|
4
4
|
import { get as l, head as u, isArray as d } from "es-toolkit/compat";
|
|
5
5
|
import { applyToggleGroupSelection as f, getAdjacentTabValue as p, normalizeToggleGroupValue as m } from "@bridge-ui/core/Domain";
|
|
6
|
-
import { toggleGroupColorProps as
|
|
6
|
+
import { toggleGroupColorProps as ee, toggleGroupOrientationProps as te, toggleGroupRoundedProps as h, toggleGroupSizeProps as g, toggleGroupVariantProps as _ } from "@bridge-ui/core/Tokens";
|
|
7
7
|
import { cn as v, mergeBridgeUILayeredClasses as y, splitComponentProps as b } from "@bridge-ui/core/Utils";
|
|
8
8
|
//#region src/Components/ToggleGroup/composables/useToggleGroup.ts
|
|
9
9
|
var x = [
|
|
@@ -39,7 +39,7 @@ function w(u, d, w, T) {
|
|
|
39
39
|
function R(e) {
|
|
40
40
|
if (N.value.disabled || A.value.includes(e)) return;
|
|
41
41
|
let t = f(L.value, e, F.value);
|
|
42
|
-
w.value = t, j.value = e, T("
|
|
42
|
+
w.value = t, j.value = e, T("change", t);
|
|
43
43
|
}
|
|
44
44
|
function z(e, t = !1) {
|
|
45
45
|
return k.value.includes(e) || (k.value = [...k.value, e]), t ? A.value.includes(e) || (A.value = [...A.value, e]) : A.value = A.value.filter((t) => t !== e), j.value === "" && !t && (j.value = e), !F.value && !t && m(w.value, !1) === "" && (w.value = e), () => {
|
|
@@ -72,7 +72,7 @@ function w(u, d, w, T) {
|
|
|
72
72
|
let H = n({
|
|
73
73
|
entry: P,
|
|
74
74
|
props: () => M.value.componentProps
|
|
75
|
-
}), U = i(() => y(
|
|
75
|
+
}), U = i(() => y(g, P.value?.tokens?.size)), W = i(() => y(_, P.value?.tokens?.variant)), G = i(() => y(ee, P.value?.tokens?.color)), K = i(() => y(h, P.value?.tokens?.rounded)), q = i(() => y(te, P.value?.tokens?.orientation)), J = i(() => l(U.value, N.value.size)), Y = i(() => l(W.value, N.value.variant)), X = i(() => l(G.value, N.value.color)), Z = i(() => l(K.value, N.value.rounded)), Q = i(() => l(q.value, N.value.orientation)), $ = i(() => ({
|
|
76
76
|
toggleItem: R,
|
|
77
77
|
id: O,
|
|
78
78
|
focusToggleItem: B,
|
package/dist/augments.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ import { ButtonGroupClasses, ButtonGroupProps } from './Components/ButtonGroup';
|
|
|
8
8
|
import { CardClasses, CardProps } from './Components/Card';
|
|
9
9
|
import { CarouselClasses, CarouselProps } from './Components/Carousel';
|
|
10
10
|
import { CarouselSlideClasses } from './Components/CarouselSlide';
|
|
11
|
+
import { ChartClasses, ChartProps } from './Components/Chart';
|
|
12
|
+
import { ChartLegendClasses, ChartLegendProps } from './Components/ChartLegend';
|
|
13
|
+
import { ChartSeriesProps } from './Components/ChartSeries';
|
|
14
|
+
import { ChartTooltipClasses } from './Components/ChartTooltip';
|
|
11
15
|
import { CheckboxClasses, CheckboxProps } from './Components/Checkbox';
|
|
12
16
|
import { ChipClasses, ChipProps } from './Components/Chip';
|
|
13
17
|
import { DividerClasses, DividerProps } from './Components/Divider';
|
|
@@ -26,7 +30,10 @@ import { OtpFieldClasses, OtpFieldProps } from './Components/OtpField';
|
|
|
26
30
|
import { PasswordFieldClasses, PasswordFieldProps } from './Components/PasswordField';
|
|
27
31
|
import { ProgressClasses, ProgressProps } from './Components/Progress';
|
|
28
32
|
import { RadioClasses, RadioProps } from './Components/Radio';
|
|
29
|
-
import {
|
|
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';
|
|
36
|
+
import { RichTextEditorClasses, RichTextEditorProps } from './Components/RichTextEditor/richTextEditor.types';
|
|
30
37
|
import { SelectClasses, SelectProps } from './Components/Select';
|
|
31
38
|
import { SidebarClasses, SidebarInsetClasses, SidebarProps, SidebarProviderClasses, SidebarProviderProps } from './Components/Sidebar';
|
|
32
39
|
import { SkeletonClasses, SkeletonProps } from './Components/Skeleton';
|
|
@@ -76,6 +83,20 @@ declare module "@bridge-ui/core/Config" {
|
|
|
76
83
|
interface CarouselSlideConfigOverrides {
|
|
77
84
|
classes: CarouselSlideClasses;
|
|
78
85
|
}
|
|
86
|
+
interface ChartConfigOverrides {
|
|
87
|
+
classes: ChartClasses;
|
|
88
|
+
defaultProps: Partial<Pick<ChartProps, "size" | "height" | "palette" | "animation">>;
|
|
89
|
+
}
|
|
90
|
+
interface ChartLegendConfigOverrides {
|
|
91
|
+
classes: ChartLegendClasses;
|
|
92
|
+
defaultProps: Partial<Pick<ChartLegendProps, "align" | "position" | "interactive">>;
|
|
93
|
+
}
|
|
94
|
+
interface ChartSeriesConfigOverrides {
|
|
95
|
+
defaultProps: Partial<Pick<ChartSeriesProps, "type" | "curve">>;
|
|
96
|
+
}
|
|
97
|
+
interface ChartTooltipConfigOverrides {
|
|
98
|
+
classes: ChartTooltipClasses;
|
|
99
|
+
}
|
|
79
100
|
interface CheckboxConfigOverrides {
|
|
80
101
|
classes: CheckboxClasses;
|
|
81
102
|
defaultProps: Partial<Pick<CheckboxProps, "size" | "color" | "rounded" | "hideErrorMessage">>;
|
|
@@ -145,6 +166,18 @@ declare module "@bridge-ui/core/Config" {
|
|
|
145
166
|
classes: RadioClasses;
|
|
146
167
|
defaultProps: Partial<Pick<RadioProps, "size" | "color" | "rounded" | "hideErrorMessage">>;
|
|
147
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
|
+
}
|
|
148
181
|
interface RichTextEditorConfigOverrides {
|
|
149
182
|
classes: RichTextEditorClasses;
|
|
150
183
|
defaultProps: Partial<Pick<RichTextEditorProps, "size" | "color" | "format" | "rounded" | "variant" | "showErrorIcon" | "hideErrorMessage" | "showDescriptionOnError">>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export { setDateAdapterForTests, useDateAdapter } from './Adapters/Date';
|
|
|
2
2
|
export { setI18nAdapterForTests, useI18nAdapter, useResolveMessage, } from './Adapters/I18n';
|
|
3
3
|
export { setIconAdapterForTests, useIconAdapter } from './Adapters/Icon';
|
|
4
4
|
export type { IconElement, IconSource, SemanticIconName, } from './Adapters/Icon';
|
|
5
|
-
export { setRichTextAdapterForTests, useRichTextAdapter, } from './Adapters/RichText';
|
|
6
5
|
export { ACCORDION_INJECTION_KEY, Accordion, useAccordion, } from './Components/Accordion';
|
|
7
6
|
export type { AccordionClasses, AccordionColorOverrides, AccordionContextValue, AccordionCustomProps, AccordionEmits, AccordionOwnProps, AccordionProps, AccordionSizeOverrides, AccordionSlots, AccordionTokenClasses, AccordionVariantOverrides, } from './Components/Accordion';
|
|
8
7
|
export { AccordionItem, useAccordionItem } from './Components/AccordionItem';
|
|
@@ -115,8 +114,12 @@ export { Radio, useRadio } from './Components/Radio';
|
|
|
115
114
|
export type { RadioClasses, RadioColorOverrides, RadioCustomProps, RadioOwnProps, RadioProps, RadioRoundedOverrides, RadioSizeOverrides, RadioSlots, } from './Components/Radio';
|
|
116
115
|
export { Rating, useRating } from './Components/Rating';
|
|
117
116
|
export type { RatingClasses, RatingColorOverrides, RatingCustomProps, RatingEmits, RatingItemState, RatingOwnProps, RatingProps, RatingSizeOverrides, RatingSlots, } from './Components/Rating';
|
|
118
|
-
export {
|
|
119
|
-
export type {
|
|
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';
|
|
120
123
|
export { Select, SelectOption } from './Components/Select';
|
|
121
124
|
export type { SelectAsyncData, SelectClasses, SelectEmits, SelectModel, SelectOptionData, SelectOptionProps, SelectProps, SelectSlots, SelectValue, } from './Components/Select';
|
|
122
125
|
export { Sidebar, SidebarInset, SidebarList, SidebarListItem, SidebarProvider, SidebarTrigger, useSidebar, useSidebarInset, useSidebarList, useSidebarListItem, useSidebarProvider, useSidebarShell, useSidebarTrigger, } from './Components/Sidebar';
|