@bridge-ui/vue 0.6.0 → 0.8.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/skills/bridge-ui-forms/SKILL.md +1 -1
- package/dist/Adapters/I18n/useI18nAdapter.d.ts +1 -1
- package/dist/Adapters/I18n/useI18nAdapter.js +4 -1
- package/dist/Components/Accordion/Accordion.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/Accordion/accordion.types.d.ts +2 -2
- package/dist/Components/Alert/Alert.vue_vue_type_script_setup_true_lang.js +13 -13
- package/dist/Components/Alert/alert.types.d.ts +7 -4
- package/dist/Components/Alert/composables/useAlert.d.ts +1 -0
- package/dist/Components/Alert/composables/useAlert.js +60 -57
- package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +1 -1
- package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +5 -3
- package/dist/Components/BaseField/BaseField.vue_vue_type_script_setup_true_lang.js +33 -28
- package/dist/Components/BaseField/BaseFieldCorner.js +5 -0
- package/dist/Components/BaseField/BaseFieldCorner.vue.d.ts +17 -0
- package/dist/Components/BaseField/BaseFieldCorner.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/Components/BaseField/baseField.types.d.ts +19 -6
- package/dist/Components/BaseField/composables/useBaseField.d.ts +7 -3
- package/dist/Components/BaseField/composables/useBaseField.js +71 -68
- package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +24 -25
- package/dist/Components/Button/composables/useButton.d.ts +3 -1
- package/dist/Components/Button/composables/useButton.js +46 -40
- package/dist/Components/Calendar/composables/useCalendar.d.ts +1 -1
- package/dist/Components/CalendarDate/composables/useCalendarDate.d.ts +1 -1
- package/dist/Components/CalendarMonth/composables/useCalendarMonth.d.ts +1 -1
- package/dist/Components/CalendarRange/composables/useCalendarRange.d.ts +1 -1
- package/dist/Components/CalendarYear/composables/useCalendarYear.d.ts +1 -1
- package/dist/Components/ColorField/ColorField.vue.d.ts +1 -1
- package/dist/Components/ColorField/ColorField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/ColorField/composables/useColorField.d.ts +6 -4
- package/dist/Components/ColorPicker/composables/useColorPicker.d.ts +1 -1
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +154 -131
- package/dist/Components/DataTable/DataTablePagination.js +5 -0
- package/dist/Components/DataTable/DataTablePagination.vue.d.ts +24 -0
- package/dist/Components/DataTable/DataTablePagination.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/Components/DataTable/composables/useDataTable.d.ts +9 -4
- package/dist/Components/DataTable/composables/useDataTable.js +299 -280
- package/dist/Components/DataTable/composables/useDataTablePagination.d.ts +69 -0
- package/dist/Components/DataTable/composables/useDataTablePagination.js +130 -0
- package/dist/Components/DataTable/dataTable.types.d.ts +27 -12
- package/dist/Components/DataTable/dataTablePagination.types.d.ts +169 -0
- package/dist/Components/DataTable/index.d.ts +2 -1
- package/dist/Components/DateField/DateField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/DateField/composables/useDateField.d.ts +6 -4
- package/dist/Components/DatePicker/composables/useDatePicker.d.ts +1 -1
- package/dist/Components/DateRangeField/DateRangeField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/DateRangeField/composables/useDateRangeField.d.ts +6 -4
- package/dist/Components/DateRangePicker/composables/useDateRangePicker.d.ts +1 -1
- package/dist/Components/DateTimeField/DateTimeField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/DateTimeField/composables/useDateTimeField.d.ts +6 -4
- package/dist/Components/DateTimePicker/composables/useDateTimePicker.d.ts +1 -1
- package/dist/Components/DateTimeRangeField/DateTimeRangeField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.d.ts +6 -4
- package/dist/Components/DateTimeRangePicker/composables/useDateTimeRangePicker.d.ts +1 -1
- package/dist/Components/FormControl/composables/useFormControl.d.ts +3 -1
- package/dist/Components/FormControl/composables/useFormControl.js +39 -38
- package/dist/Components/FormField/FilledFormField.vue.d.ts +7 -7
- package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +32 -27
- package/dist/Components/FormField/FormFieldCorner.js +5 -0
- package/dist/Components/FormField/FormFieldCorner.vue.d.ts +17 -0
- package/dist/Components/FormField/FormFieldCorner.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/Components/FormField/NotchedFormField.vue.d.ts +7 -7
- package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +14 -9
- package/dist/Components/FormField/OutlinedFormField.vue.d.ts +7 -7
- package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +32 -27
- package/dist/Components/FormField/StackedFormField.vue.d.ts +6 -6
- package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +14 -9
- package/dist/Components/FormField/UnderlinedFormField.vue.d.ts +7 -7
- package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +32 -27
- package/dist/Components/FormField/composables/useFormField.d.ts +8 -4
- package/dist/Components/FormField/composables/useFormField.js +153 -143
- package/dist/Components/FormField/formField.types.d.ts +18 -6
- package/dist/Components/Listbox/Listbox.vue.d.ts +1 -1
- package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/NumberField/composables/useNumberField.d.ts +5 -3
- package/dist/Components/OtpField/OtpField.vue.d.ts +1 -8
- package/dist/Components/OtpField/OtpField.vue_vue_type_script_setup_true_lang.js +7 -6
- package/dist/Components/OtpField/composables/useOtpField.d.ts +4 -2
- package/dist/Components/Pagination/Pagination.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Components/Pagination/composables/usePagination.d.ts +4 -2
- package/dist/Components/Pagination/composables/usePagination.js +125 -127
- package/dist/Components/Pagination/pagination.types.d.ts +5 -5
- package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/PasswordField/composables/usePasswordField.d.ts +5 -3
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/Select/composables/useSelect.d.ts +5 -3
- package/dist/Components/Sidebar/composables/useSidebarList.js +1 -1
- package/dist/Components/Sidebar/composables/useSidebarShell.js +1 -1
- package/dist/Components/Slider/Slider.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/Slider/composables/useSlider.d.ts +5 -3
- package/dist/Components/Tabs/Tabs.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Tabs/composables/useTabs.js +16 -10
- package/dist/Components/Tabs/tabs.types.d.ts +3 -3
- package/dist/Components/TextField/TextField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/TextField/composables/useTextField.d.ts +5 -3
- package/dist/Components/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/Textarea/composables/useTextarea.d.ts +5 -3
- package/dist/Components/TimeField/TimeField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/TimeField/composables/useTimeField.d.ts +6 -4
- package/dist/Components/TimePanel/composables/useTimePanel.d.ts +1 -1
- package/dist/Components/TimePicker/composables/useTimePicker.d.ts +1 -1
- package/dist/Components/TimeRangeField/TimeRangeField.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.d.ts +6 -4
- package/dist/Components/TimeRangePicker/composables/useTimeRangePicker.d.ts +1 -1
- package/dist/Components/Tooltip/composables/useTooltip.d.ts +1 -1
- package/dist/Utils/index.d.ts +11 -2
- package/dist/Utils/index.js +31 -27
- package/dist/augments.d.ts +8 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/docs/components/Accordion.md +1 -1
- package/docs/components/Alert.md +4 -2
- package/docs/components/BaseField.md +19 -18
- package/docs/components/BridgeUIProvider.md +14 -7
- package/docs/components/DataTable.md +5 -11
- package/docs/components/FormControl.md +1 -1
- package/docs/components/FormField.md +28 -27
- package/docs/components/I18n.md +65 -24
- package/docs/components/Pagination.md +5 -3
- package/docs/components/Table.md +2 -2
- package/docs/components/Tabs.md +24 -6
- package/docs/examples/i18n-dictionary.ts +28 -10
- package/docs/examples/i18n-vue-i18n.ts +7 -6
- package/docs/examples/icon-fontawesome.ts +4 -0
- package/docs/examples/icon-heroicons.ts +5 -1
- package/docs/examples/icon-lucide.ts +4 -0
- package/docs/examples/icon-phosphor.ts +4 -0
- package/docs/examples/icon-tabler.ts +4 -0
- package/package.json +2 -2
|
@@ -24,17 +24,19 @@ export declare function usePagination(props: PaginationOwnProps, libDefaults: Pa
|
|
|
24
24
|
prevBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
25
25
|
onClick: () => void;
|
|
26
26
|
type: "button";
|
|
27
|
-
"aria-label": string;
|
|
28
27
|
disabled: boolean;
|
|
28
|
+
"aria-label": string;
|
|
29
29
|
class: string;
|
|
30
30
|
}, "class", import('vue').ButtonHTMLAttributes | undefined, {}>>;
|
|
31
31
|
nextBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
32
32
|
onClick: () => void;
|
|
33
|
-
"aria-label": string;
|
|
34
33
|
type: "button";
|
|
35
34
|
disabled: boolean;
|
|
35
|
+
"aria-label": string;
|
|
36
36
|
class: string;
|
|
37
37
|
}, "class", import('vue').ButtonHTMLAttributes | undefined, {}>>;
|
|
38
|
+
prevLabel: import('vue').ComputedRef<string>;
|
|
39
|
+
nextLabel: import('vue').ComputedRef<string>;
|
|
38
40
|
getItemBind: (pageNumber: number) => import('@bridge-ui/core/Utils').MergePartBind<{
|
|
39
41
|
type: "button";
|
|
40
42
|
disabled: NonNullable<boolean | undefined>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { useResolveMessage as e } from "../../../Adapters/I18n/useI18nAdapter.js";
|
|
2
|
+
import { mergePartBind as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as r } from "../../../Utils/index.js";
|
|
3
|
+
import { computed as i, useAttrs as a, useSlots as o } from "vue";
|
|
4
|
+
import { get as s } from "es-toolkit/compat";
|
|
5
|
+
import { getPaginationItems as c } from "@bridge-ui/core/Domain";
|
|
6
|
+
import { paginationColorProps as l, paginationRoundedProps as u, paginationSizeProps as d, paginationVariantProps as f } from "@bridge-ui/core/Tokens";
|
|
7
|
+
import { cn as p, mergeBridgeUILayeredClasses as m, splitComponentProps as h } from "@bridge-ui/core/Utils";
|
|
7
8
|
//#region src/Components/Pagination/composables/usePagination.ts
|
|
8
|
-
var
|
|
9
|
+
var g = [
|
|
9
10
|
"mode",
|
|
10
11
|
"size",
|
|
11
12
|
"color",
|
|
@@ -23,166 +24,163 @@ var m = [
|
|
|
23
24
|
"hideNextButton",
|
|
24
25
|
"hidePrevButton"
|
|
25
26
|
];
|
|
26
|
-
function
|
|
27
|
-
let
|
|
27
|
+
function _(_, v, y, b) {
|
|
28
|
+
let x = e(), S = a(), C = o(), w = i(() => h({
|
|
28
29
|
props: {
|
|
29
|
-
...
|
|
30
|
-
...
|
|
30
|
+
...S,
|
|
31
|
+
..._
|
|
31
32
|
},
|
|
32
|
-
bridgeKeys:
|
|
33
|
-
})), { merged:
|
|
34
|
-
libDefaults:
|
|
33
|
+
bridgeKeys: g
|
|
34
|
+
})), { merged: T, entry: E } = n({
|
|
35
|
+
libDefaults: v,
|
|
35
36
|
componentName: "Pagination",
|
|
36
|
-
props: () =>
|
|
37
|
-
}),
|
|
38
|
-
page:
|
|
39
|
-
count:
|
|
40
|
-
siblingCount:
|
|
41
|
-
boundaryCount:
|
|
42
|
-
})),
|
|
43
|
-
entry:
|
|
44
|
-
props: () =>
|
|
45
|
-
}),
|
|
46
|
-
if (
|
|
47
|
-
let t =
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
if (!
|
|
51
|
-
if (
|
|
52
|
-
if (
|
|
53
|
-
|
|
37
|
+
props: () => w.value.componentProps
|
|
38
|
+
}), D = i(() => T.value.customProps), O = i(() => T.value.mode === "simple" ? 1 : y.value ?? 1), k = i(() => T.value.mode === "simple" ? [] : c({
|
|
39
|
+
page: O.value,
|
|
40
|
+
count: T.value.count ?? 0,
|
|
41
|
+
siblingCount: T.value.siblingCount,
|
|
42
|
+
boundaryCount: T.value.boundaryCount
|
|
43
|
+
})), A = r({
|
|
44
|
+
entry: E,
|
|
45
|
+
props: () => w.value.componentProps
|
|
46
|
+
}), j = i(() => m(d, E.value?.tokens?.size)), M = i(() => m(f, E.value?.tokens?.variant)), ee = i(() => m(l, E.value?.tokens?.color)), te = i(() => m(u, E.value?.tokens?.rounded)), N = i(() => s(j.value, T.value.size)), P = i(() => s(M.value, T.value.variant)), F = i(() => s(ee.value, T.value.color)), I = i(() => s(te.value, T.value.rounded)), L = (e) => {
|
|
47
|
+
if (T.value.disabled) return;
|
|
48
|
+
let t = T.value.count ?? 0, n = Math.min(Math.max(1, e), Math.max(t, 1));
|
|
49
|
+
y.value = n, b("change", n), b("update:modelValue", n);
|
|
50
|
+
}, R = () => {
|
|
51
|
+
if (!T.value.disabled) {
|
|
52
|
+
if (T.value.mode === "simple") {
|
|
53
|
+
if (T.value.hasPrevious === !1) return;
|
|
54
|
+
b("previous");
|
|
54
55
|
return;
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
+
L(O.value - 1);
|
|
57
58
|
}
|
|
58
|
-
},
|
|
59
|
-
if (!
|
|
60
|
-
if (
|
|
61
|
-
if (
|
|
62
|
-
|
|
59
|
+
}, z = () => {
|
|
60
|
+
if (!T.value.disabled) {
|
|
61
|
+
if (T.value.mode === "simple") {
|
|
62
|
+
if (T.value.hasNext === !1) return;
|
|
63
|
+
b("next");
|
|
63
64
|
return;
|
|
64
65
|
}
|
|
65
|
-
|
|
66
|
+
L(O.value + 1);
|
|
66
67
|
}
|
|
67
|
-
},
|
|
68
|
-
[
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
})),
|
|
72
|
-
[
|
|
73
|
-
[
|
|
74
|
-
[
|
|
75
|
-
})),
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
[o(P.value, "itemSelectedAccent") ?? ""]: e === "text" || e === "ghost",
|
|
81
|
-
[o(P.value, "itemSelectedSoft") ?? ""]: e === "ghost"
|
|
82
|
-
});
|
|
83
|
-
}), J = r(() => {
|
|
84
|
-
let e = E.value.filter((e) => e.type === "page");
|
|
68
|
+
}, B = i(() => T.value.disabled ? !0 : T.value.mode === "simple" ? T.value.hasPrevious === !1 : O.value <= 1), V = i(() => T.value.disabled ? !0 : T.value.mode === "simple" ? T.value.hasNext === !1 : O.value >= (T.value.count ?? 0)), H = i(() => !T.value.hidePrevButton), U = i(() => !T.value.hideNextButton), W = i(() => T.value.variant === "outlined"), G = i(() => T.value.variant === "ghost" || T.value.variant === "text"), K = i(() => p({
|
|
69
|
+
[s(N.value, "item") ?? ""]: !0,
|
|
70
|
+
[s(P.value, "item") ?? ""]: !0,
|
|
71
|
+
[s(I.value, "item") ?? ""]: G.value
|
|
72
|
+
})), q = i(() => p({
|
|
73
|
+
[s(N.value, "itemIcon") ?? ""]: !0,
|
|
74
|
+
[s(P.value, "item") ?? ""]: !0,
|
|
75
|
+
[s(I.value, "item") ?? ""]: G.value
|
|
76
|
+
})), J = i(() => p({
|
|
77
|
+
[s(P.value, "itemSelected") ?? ""]: !0,
|
|
78
|
+
[s(F.value, "itemSelectedAccent") ?? ""]: !0
|
|
79
|
+
})), Y = i(() => {
|
|
80
|
+
let e = k.value.filter((e) => e.type === "page");
|
|
85
81
|
return {
|
|
86
82
|
first: e[0]?.page,
|
|
87
83
|
last: e[e.length - 1]?.page
|
|
88
84
|
};
|
|
89
|
-
}),
|
|
90
|
-
if (!
|
|
85
|
+
}), X = (e, t) => {
|
|
86
|
+
if (!W.value) return !1;
|
|
91
87
|
if (e === "prev") return !0;
|
|
92
|
-
if (
|
|
93
|
-
let n =
|
|
88
|
+
if (H.value) return !1;
|
|
89
|
+
let n = k.value[0];
|
|
94
90
|
return e === "page" ? n?.type === "page" && n.page === t : e === "ellipsis" && n?.type === "ellipsis" && t === 0;
|
|
95
|
-
},
|
|
96
|
-
let
|
|
97
|
-
return
|
|
98
|
-
"aria-label":
|
|
99
|
-
class:
|
|
100
|
-
[
|
|
101
|
-
[
|
|
91
|
+
}, Z = i(() => x("Previous")), Q = i(() => x("Next")), ne = i(() => {
|
|
92
|
+
let e = w.value.inheritedAttrs;
|
|
93
|
+
return t(D.value?.root, e, {
|
|
94
|
+
"aria-label": e["aria-label"] ?? x("Pagination"),
|
|
95
|
+
class: p({
|
|
96
|
+
[s(N.value, "root") ?? ""]: !0,
|
|
97
|
+
[s(A.value, "root") ?? ""]: !0
|
|
102
98
|
})
|
|
103
99
|
});
|
|
104
|
-
}),
|
|
105
|
-
[
|
|
106
|
-
[
|
|
107
|
-
[
|
|
108
|
-
[
|
|
109
|
-
}) })),
|
|
110
|
-
let n =
|
|
111
|
-
return
|
|
100
|
+
}), re = i(() => t(D.value?.list, {}, { class: p({
|
|
101
|
+
[s(N.value, "list") ?? ""]: !0,
|
|
102
|
+
[s(P.value, "list") ?? ""]: !0,
|
|
103
|
+
[s(I.value, "list") ?? ""]: W.value,
|
|
104
|
+
[s(A.value, "list") ?? ""]: !0
|
|
105
|
+
}) })), ie = (e) => {
|
|
106
|
+
let n = e === O.value, r = W.value && !H.value && e === Y.value.first, i = W.value && !U.value && e === Y.value.last;
|
|
107
|
+
return t(D.value?.item, {}, {
|
|
112
108
|
type: "button",
|
|
113
|
-
disabled:
|
|
114
|
-
"aria-label": `Page ${
|
|
109
|
+
disabled: T.value.disabled,
|
|
110
|
+
"aria-label": `Page ${e}`,
|
|
115
111
|
"aria-current": n ? "page" : void 0,
|
|
116
112
|
onClick: () => {
|
|
117
|
-
n ||
|
|
113
|
+
n || L(e);
|
|
118
114
|
},
|
|
119
|
-
class:
|
|
120
|
-
[
|
|
121
|
-
[
|
|
122
|
-
[
|
|
123
|
-
"ml-0":
|
|
124
|
-
[
|
|
125
|
-
[
|
|
115
|
+
class: p({
|
|
116
|
+
[K.value]: !0,
|
|
117
|
+
[J.value]: n,
|
|
118
|
+
[s(A.value, "item") ?? ""]: !0,
|
|
119
|
+
"ml-0": X("page", e),
|
|
120
|
+
[s(I.value, "itemStart") ?? ""]: r,
|
|
121
|
+
[s(I.value, "itemEnd") ?? ""]: i
|
|
126
122
|
})
|
|
127
123
|
});
|
|
128
|
-
},
|
|
124
|
+
}, ae = (e) => t(D.value?.ellipsis, {}, {
|
|
129
125
|
"aria-hidden": !0,
|
|
130
|
-
"data-ellipsis-index":
|
|
131
|
-
class:
|
|
132
|
-
[
|
|
133
|
-
[
|
|
134
|
-
[
|
|
135
|
-
[
|
|
136
|
-
"ml-0":
|
|
126
|
+
"data-ellipsis-index": e,
|
|
127
|
+
class: p({
|
|
128
|
+
[s(N.value, "ellipsis") ?? ""]: !0,
|
|
129
|
+
[s(P.value, "ellipsis") ?? ""]: !0,
|
|
130
|
+
[s(I.value, "item") ?? ""]: G.value,
|
|
131
|
+
[s(A.value, "ellipsis") ?? ""]: !0,
|
|
132
|
+
"ml-0": X("ellipsis", e)
|
|
137
133
|
})
|
|
138
|
-
}), $ =
|
|
134
|
+
}), $ = i(() => s(N.value, "icon") ?? "sm");
|
|
139
135
|
return {
|
|
140
|
-
page:
|
|
141
|
-
slots:
|
|
142
|
-
merged:
|
|
143
|
-
entries:
|
|
144
|
-
showPrev:
|
|
145
|
-
showNext:
|
|
146
|
-
rootBind:
|
|
147
|
-
listBind:
|
|
148
|
-
prevBind:
|
|
149
|
-
onClick:
|
|
136
|
+
page: O,
|
|
137
|
+
slots: C,
|
|
138
|
+
merged: T,
|
|
139
|
+
entries: k,
|
|
140
|
+
showPrev: H,
|
|
141
|
+
showNext: U,
|
|
142
|
+
rootBind: ne,
|
|
143
|
+
listBind: re,
|
|
144
|
+
prevBind: i(() => t(D.value?.prev, {}, {
|
|
145
|
+
onClick: R,
|
|
150
146
|
type: "button",
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
class:
|
|
154
|
-
[
|
|
155
|
-
[
|
|
156
|
-
[
|
|
157
|
-
"ml-0":
|
|
158
|
-
[
|
|
147
|
+
disabled: B.value,
|
|
148
|
+
"aria-label": Z.value,
|
|
149
|
+
class: p({
|
|
150
|
+
[q.value]: !0,
|
|
151
|
+
[s(A.value, "prev") ?? ""]: !0,
|
|
152
|
+
[s(A.value, "item") ?? ""]: !0,
|
|
153
|
+
"ml-0": W.value,
|
|
154
|
+
[s(I.value, "itemStart") ?? ""]: W.value
|
|
159
155
|
})
|
|
160
156
|
})),
|
|
161
|
-
nextBind:
|
|
162
|
-
onClick:
|
|
163
|
-
"aria-label": "Next",
|
|
157
|
+
nextBind: i(() => t(D.value?.next, {}, {
|
|
158
|
+
onClick: z,
|
|
164
159
|
type: "button",
|
|
165
|
-
disabled:
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
[
|
|
169
|
-
[
|
|
170
|
-
[
|
|
160
|
+
disabled: V.value,
|
|
161
|
+
"aria-label": Q.value,
|
|
162
|
+
class: p({
|
|
163
|
+
[q.value]: !0,
|
|
164
|
+
[s(A.value, "next") ?? ""]: !0,
|
|
165
|
+
[s(A.value, "item") ?? ""]: !0,
|
|
166
|
+
[s(I.value, "itemEnd") ?? ""]: W.value
|
|
171
167
|
})
|
|
172
168
|
})),
|
|
173
|
-
|
|
174
|
-
|
|
169
|
+
prevLabel: Z,
|
|
170
|
+
nextLabel: Q,
|
|
171
|
+
getItemBind: ie,
|
|
172
|
+
prevIconBind: i(() => t(D.value?.prevIcon, {}, {
|
|
175
173
|
"aria-hidden": !0,
|
|
176
174
|
size: $.value,
|
|
177
175
|
class: "shrink-0 pointer-events-none"
|
|
178
176
|
})),
|
|
179
|
-
nextIconBind:
|
|
177
|
+
nextIconBind: i(() => t(D.value?.nextIcon, {}, {
|
|
180
178
|
"aria-hidden": !0,
|
|
181
179
|
size: $.value,
|
|
182
180
|
class: "shrink-0 pointer-events-none"
|
|
183
181
|
})),
|
|
184
|
-
getEllipsisBind:
|
|
182
|
+
getEllipsisBind: ae
|
|
185
183
|
};
|
|
186
184
|
}
|
|
187
185
|
//#endregion
|
|
188
|
-
export {
|
|
186
|
+
export { _ as usePagination };
|
|
@@ -117,9 +117,9 @@ export interface PaginationOwnProps {
|
|
|
117
117
|
*/
|
|
118
118
|
classes?: PaginationClasses;
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* Optional text accent for the selected page. Selected surface comes from `variant`.
|
|
121
121
|
*
|
|
122
|
-
* @default "
|
|
122
|
+
* @default "dark"
|
|
123
123
|
*/
|
|
124
124
|
color?: MergeProps<PaginationColor, PaginationColorOverrides>;
|
|
125
125
|
/**
|
|
@@ -165,7 +165,7 @@ export interface PaginationOwnProps {
|
|
|
165
165
|
*/
|
|
166
166
|
hidePrevButton?: boolean;
|
|
167
167
|
/**
|
|
168
|
-
* Numbered pages
|
|
168
|
+
* Numbered pages, or prev/next only.
|
|
169
169
|
*
|
|
170
170
|
* @default "numbered"
|
|
171
171
|
*/
|
|
@@ -177,7 +177,7 @@ export interface PaginationOwnProps {
|
|
|
177
177
|
*/
|
|
178
178
|
modelValue?: number;
|
|
179
179
|
/**
|
|
180
|
-
* Control corner radius (`ghost` items
|
|
180
|
+
* Control corner radius (`ghost` / `text` items and `outlined` group edges).
|
|
181
181
|
*
|
|
182
182
|
* @default "md"
|
|
183
183
|
*/
|
|
@@ -197,7 +197,7 @@ export interface PaginationOwnProps {
|
|
|
197
197
|
/**
|
|
198
198
|
* Visual style of page / control buttons.
|
|
199
199
|
*
|
|
200
|
-
* @default "
|
|
200
|
+
* @default "ghost"
|
|
201
201
|
*/
|
|
202
202
|
variant?: MergeProps<PaginationVariant, PaginationVariantOverrides>;
|
|
203
203
|
}
|
|
@@ -433,11 +433,10 @@ export declare function usePasswordField(props: PasswordFieldOwnProps, options?:
|
|
|
433
433
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
434
434
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
435
435
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
436
|
-
}, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showErrorIcon" | "startIcon">>>>;
|
|
436
|
+
}, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon" | "startIcon">>>>;
|
|
437
437
|
isNotched: import('vue').ComputedRef<boolean>;
|
|
438
438
|
isStacked: import('vue').ComputedRef<boolean>;
|
|
439
439
|
startBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
440
|
-
cornerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
441
440
|
headerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
442
441
|
isDisabled: import('vue').ComputedRef<boolean>;
|
|
443
442
|
isReadonly: import('vue').ComputedRef<boolean>;
|
|
@@ -455,9 +454,12 @@ export declare function usePasswordField(props: PasswordFieldOwnProps, options?:
|
|
|
455
454
|
ariaDescribedBy: import('vue').ComputedRef<string | undefined>;
|
|
456
455
|
descriptionBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
457
456
|
stackedBodyBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
|
|
457
|
+
fieldCornerProps: import('vue').ComputedRef<import('../../Label').LabelProps>;
|
|
458
458
|
hasInsetLabelRow: import('vue').ComputedRef<boolean>;
|
|
459
459
|
insetLabelRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
460
460
|
stackedInputRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
|
|
461
|
+
showErrorMessageRow: import('vue').ComputedRef<boolean>;
|
|
462
|
+
showDescriptionContent: import('vue').ComputedRef<boolean>;
|
|
461
463
|
showErrorMessageContent: import('vue').ComputedRef<boolean>;
|
|
462
464
|
reservesErrorMessageSpace: import('vue').ComputedRef<boolean>;
|
|
463
465
|
};
|
|
@@ -682,7 +684,7 @@ export declare function usePasswordField(props: PasswordFieldOwnProps, options?:
|
|
|
682
684
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
683
685
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
684
686
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
685
|
-
}, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showErrorIcon" | "startIcon">>>, {
|
|
687
|
+
}, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon" | "startIcon">>>, {
|
|
686
688
|
type: string;
|
|
687
689
|
}>>;
|
|
688
690
|
isVisible: import('vue').ComputedRef<boolean>;
|
|
@@ -437,11 +437,10 @@ export declare function useSelect(props: SelectOwnProps, model: Ref<null | undef
|
|
|
437
437
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
438
438
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
439
439
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
440
|
-
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showErrorIcon" | "startIcon">>>>;
|
|
440
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon" | "startIcon">>>>;
|
|
441
441
|
isNotched: import('vue').ComputedRef<boolean>;
|
|
442
442
|
isStacked: import('vue').ComputedRef<boolean>;
|
|
443
443
|
startBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
444
|
-
cornerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
445
444
|
headerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
446
445
|
isDisabled: import('vue').ComputedRef<boolean>;
|
|
447
446
|
isReadonly: import('vue').ComputedRef<boolean>;
|
|
@@ -459,9 +458,12 @@ export declare function useSelect(props: SelectOwnProps, model: Ref<null | undef
|
|
|
459
458
|
ariaDescribedBy: import('vue').ComputedRef<string | undefined>;
|
|
460
459
|
descriptionBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
461
460
|
stackedBodyBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
|
|
461
|
+
fieldCornerProps: import('vue').ComputedRef<import('../../Label').LabelProps>;
|
|
462
462
|
hasInsetLabelRow: import('vue').ComputedRef<boolean>;
|
|
463
463
|
insetLabelRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
464
464
|
stackedInputRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
|
|
465
|
+
showErrorMessageRow: import('vue').ComputedRef<boolean>;
|
|
466
|
+
showDescriptionContent: import('vue').ComputedRef<boolean>;
|
|
465
467
|
showErrorMessageContent: import('vue').ComputedRef<boolean>;
|
|
466
468
|
reservesErrorMessageSpace: import('vue').ComputedRef<boolean>;
|
|
467
469
|
};
|
|
@@ -721,7 +723,7 @@ export declare function useSelect(props: SelectOwnProps, model: Ref<null | undef
|
|
|
721
723
|
onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
722
724
|
onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
723
725
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
724
|
-
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showErrorIcon" | "startIcon">>>>>;
|
|
726
|
+
}, Partial<Omit<Omit<FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "required" | "corner" | "description" | "errorMessage" | "start" | "endIcon" | "errorIcon" | "hideErrorMessage" | "readonly" | "showDescriptionOnError" | "showErrorIcon" | "startIcon">>>>>;
|
|
725
727
|
handleApply: () => void;
|
|
726
728
|
selectOption: (option: SelectOption) => void;
|
|
727
729
|
handleCancel: () => void;
|
|
@@ -16,7 +16,7 @@ function c(c) {
|
|
|
16
16
|
return a(t, n(() => ({ iconOnly: f.value }))), {
|
|
17
17
|
iconOnly: f,
|
|
18
18
|
rootClassName: n(() => s({
|
|
19
|
-
"flex flex-col gap-1": !0,
|
|
19
|
+
"flex min-w-0 flex-col gap-1 p-0": !0,
|
|
20
20
|
"px-2": c.nested !== !0,
|
|
21
21
|
"ml-3.5 translate-x-px border-l border-dark-200 py-0.5 pl-2.5 dark:border-dark-700": c.nested === !0,
|
|
22
22
|
hidden: c.nested === !0 && f.value
|
|
@@ -82,7 +82,7 @@ function C(C, w) {
|
|
|
82
82
|
"flex shrink-0 flex-col gap-2 px-2 py-2.5": !0,
|
|
83
83
|
[l(P.value, "header") ?? ""]: !0
|
|
84
84
|
}))), K = i(() => e(N.value?.content, {}, v({
|
|
85
|
-
"bridge-scroll-fade-y flex min-h-0 flex-1 flex-col overflow-y-auto": !0,
|
|
85
|
+
"bridge-scroll-fade-y flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto": !0,
|
|
86
86
|
[l(P.value, "content") ?? ""]: !0
|
|
87
87
|
}))), q = i(() => e(N.value?.footer, {}, v({
|
|
88
88
|
"flex shrink-0 flex-col gap-2 px-2 py-2.5": !0,
|
|
@@ -2,7 +2,7 @@ import { MaybeRefOrGetter, Ref } from 'vue';
|
|
|
2
2
|
import { SliderRangeValue, SliderStop } from '@bridge-ui/core/Domain';
|
|
3
3
|
import { LibDefaultsShape, MergeLibDefaults } from '@bridge-ui/core/Utils';
|
|
4
4
|
import { SliderOwnProps } from '../slider.types';
|
|
5
|
-
export declare const sliderBridgeKeys: readonly ["size", "error", "label", "corner", "classes", "disabled", "readonly", "required", "controlId", "customProps", "description", "errorMessage", "hideErrorMessage", "max", "min", "step", "color", "range", "stops", "rounded", "showStops", "showTooltip", "defaultValue"];
|
|
5
|
+
export declare const sliderBridgeKeys: readonly ["size", "error", "label", "corner", "classes", "disabled", "readonly", "required", "controlId", "customProps", "description", "errorMessage", "hideErrorMessage", "showDescriptionOnError", "max", "min", "step", "color", "range", "stops", "rounded", "showStops", "showTooltip", "defaultValue"];
|
|
6
6
|
type SliderLibDefaults = LibDefaultsShape<SliderOwnProps, "max" | "min" | "size" | "step" | "color" | "rounded" | "showStops" | "showTooltip">;
|
|
7
7
|
type SliderMerged = MergeLibDefaults<SliderOwnProps, SliderLibDefaults>;
|
|
8
8
|
export type UseSliderOptions = {
|
|
@@ -49,7 +49,6 @@ export declare function useSlider(props: MaybeRefOrGetter<SliderOwnProps>, libDe
|
|
|
49
49
|
}>>;
|
|
50
50
|
controlId: import('vue').ComputedRef<string>;
|
|
51
51
|
headerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
52
|
-
cornerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
53
52
|
isDisabled: import('vue').ComputedRef<boolean>;
|
|
54
53
|
isReadonly: import('vue').ComputedRef<boolean>;
|
|
55
54
|
sizeClasses: import('vue').ComputedRef<import('@bridge-ui/core/Tokens').BaseFieldSizeItem | undefined>;
|
|
@@ -60,6 +59,9 @@ export declare function useSlider(props: MaybeRefOrGetter<SliderOwnProps>, libDe
|
|
|
60
59
|
ariaDescribedBy: import('vue').ComputedRef<string | undefined>;
|
|
61
60
|
fieldLabelProps: import('vue').ComputedRef<import('../../Label').LabelProps>;
|
|
62
61
|
descriptionBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
62
|
+
fieldCornerProps: import('vue').ComputedRef<import('../../Label').LabelProps>;
|
|
63
|
+
showErrorMessageRow: import('vue').ComputedRef<boolean>;
|
|
64
|
+
showDescriptionContent: import('vue').ComputedRef<boolean>;
|
|
63
65
|
showErrorMessageContent: import('vue').ComputedRef<boolean>;
|
|
64
66
|
};
|
|
65
67
|
trackBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {
|
|
@@ -479,7 +481,7 @@ export declare function useSlider(props: MaybeRefOrGetter<SliderOwnProps>, libDe
|
|
|
479
481
|
getThumbKnobBind: (thumbIndex: 0 | 1) => import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {
|
|
480
482
|
"aria-hidden": boolean;
|
|
481
483
|
}>;
|
|
482
|
-
tooltipProps: import('vue').ComputedRef<Partial<Omit<import('../../Tooltip').TooltipOwnProps, "slots" | "modelValue" | "
|
|
484
|
+
tooltipProps: import('vue').ComputedRef<Partial<Omit<import('../../Tooltip').TooltipOwnProps, "slots" | "modelValue" | "content" | "anchorEl">> | undefined>;
|
|
483
485
|
readThumbValue: (thumbIndex: 0 | 1) => number;
|
|
484
486
|
};
|
|
485
487
|
export type UseSliderReturn = ReturnType<typeof useSlider>;
|
|
@@ -29,8 +29,8 @@ var E = /*@__PURE__*/ p({
|
|
|
29
29
|
setup(p, { emit: h }) {
|
|
30
30
|
let E = h, D = p, O = C(p, "modelValue"), { rootBind: k, tabItems: A } = i(D, {
|
|
31
31
|
size: "md",
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
color: "dark",
|
|
33
|
+
variant: "pill",
|
|
34
34
|
keepMounted: !0,
|
|
35
35
|
activation: "automatic",
|
|
36
36
|
orientation: "horizontal"
|
|
@@ -53,7 +53,13 @@ function y(y, b, x, S) {
|
|
|
53
53
|
let L = n({
|
|
54
54
|
entry: j,
|
|
55
55
|
props: () => k.value.componentProps
|
|
56
|
-
}), R = i(() => g(p, j.value?.tokens?.size)), z = i(() => g(m, j.value?.tokens?.variant)), B = i(() => g(d, j.value?.tokens?.color)), V = i(() => g(f, j.value?.tokens?.orientation)), H = i(() => l(R.value, A.value.size)), U = i(() => l(z.value, A.value.variant)), W = i(() => l(B.value, A.value.color)), G = i(() => l(V.value, A.value.orientation)), K = i(() => ({
|
|
56
|
+
}), R = i(() => g(p, j.value?.tokens?.size)), z = i(() => g(m, j.value?.tokens?.variant)), B = i(() => g(d, j.value?.tokens?.color)), V = i(() => g(f, j.value?.tokens?.orientation)), H = i(() => l(R.value, A.value.size)), U = i(() => l(z.value, A.value.variant)), W = i(() => l(B.value, A.value.color)), G = i(() => l(V.value, A.value.orientation)), K = i(() => A.value.orientation === "vertical"), q = i(() => h({
|
|
57
|
+
[l(G.value, "tab") ?? ""]: !0,
|
|
58
|
+
[l(U.value, "tabVertical") ?? ""]: K.value
|
|
59
|
+
})), J = i(() => h({
|
|
60
|
+
[l(G.value, "list") ?? ""]: !0,
|
|
61
|
+
[l(U.value, "listVertical") ?? ""]: K.value
|
|
62
|
+
})), Y = i(() => ({
|
|
57
63
|
focusTab: F,
|
|
58
64
|
id: T,
|
|
59
65
|
setSelected: N,
|
|
@@ -67,33 +73,33 @@ function y(y, b, x, S) {
|
|
|
67
73
|
activation: A.value.activation ?? "automatic",
|
|
68
74
|
orientation: A.value.orientation ?? "horizontal",
|
|
69
75
|
tokenClasses: {
|
|
70
|
-
|
|
76
|
+
softFill: !1,
|
|
71
77
|
iconGap: l(H.value, "gap"),
|
|
78
|
+
tabSize: l(H.value, "tab"),
|
|
79
|
+
tabOrientation: q.value,
|
|
72
80
|
iconSize: l(H.value, "icon"),
|
|
73
81
|
listSize: l(H.value, "list"),
|
|
82
|
+
listOrientation: J.value,
|
|
74
83
|
panelSize: l(H.value, "panel"),
|
|
75
84
|
tabVariant: l(U.value, "tab"),
|
|
76
85
|
listVariant: l(U.value, "list"),
|
|
77
|
-
tabOrientation: l(G.value, "tab"),
|
|
78
86
|
colorSelected: l(W.value, "tabSelected"),
|
|
79
|
-
listOrientation: l(G.value, "list"),
|
|
80
87
|
rootOrientation: l(G.value, "root"),
|
|
81
88
|
panelOrientation: l(G.value, "panel"),
|
|
82
89
|
tabVariantSelected: l(U.value, "tabSelected"),
|
|
83
|
-
colorSelectedSoft: l(W.value, "tabSelectedSoft")
|
|
84
|
-
softFill: A.value.variant === "pill" || A.value.variant === "solid"
|
|
90
|
+
colorSelectedSoft: l(W.value, "tabSelectedSoft")
|
|
85
91
|
}
|
|
86
92
|
}));
|
|
87
|
-
a(r,
|
|
88
|
-
let
|
|
93
|
+
a(r, Y);
|
|
94
|
+
let X = i(() => A.value.customProps);
|
|
89
95
|
return {
|
|
90
96
|
merged: A,
|
|
91
|
-
rootBind: i(() => e(
|
|
97
|
+
rootBind: i(() => e(X.value?.root, k.value.inheritedAttrs, { class: h({
|
|
92
98
|
[l(G.value, "root") ?? ""]: !0,
|
|
93
99
|
[l(L.value, "root") ?? ""]: !0
|
|
94
100
|
}) })),
|
|
95
101
|
tabItems: O,
|
|
96
|
-
contextValue:
|
|
102
|
+
contextValue: Y
|
|
97
103
|
};
|
|
98
104
|
}
|
|
99
105
|
//#endregion
|
|
@@ -70,9 +70,9 @@ export interface TabsOwnProps {
|
|
|
70
70
|
*/
|
|
71
71
|
classes?: TabsClasses;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Optional text accent for the selected tab. Selected surface comes from `variant`.
|
|
74
74
|
*
|
|
75
|
-
* @default "
|
|
75
|
+
* @default "dark"
|
|
76
76
|
*/
|
|
77
77
|
color?: MergeProps<TabsColor, TabsColorOverrides>;
|
|
78
78
|
/**
|
|
@@ -103,7 +103,7 @@ export interface TabsOwnProps {
|
|
|
103
103
|
/**
|
|
104
104
|
* Visual style of the tab list / selected tab.
|
|
105
105
|
*
|
|
106
|
-
* @default "
|
|
106
|
+
* @default "pill"
|
|
107
107
|
*/
|
|
108
108
|
variant?: MergeProps<TabsVariant, TabsVariantOverrides>;
|
|
109
109
|
}
|