@bridge-ui/vue 0.21.0 → 0.22.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/dist/Components/Alert/Alert.vue_vue_type_script_setup_true_lang.js +24 -10
- package/dist/Components/Alert/alert.types.d.ts +5 -4
- package/dist/Components/Alert/composables/useAlert.d.ts +2 -2
- package/dist/Components/Alert/composables/useAlert.js +2 -2
- package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +1 -0
- package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/Components/Autocomplete/autocomplete.types.d.ts +7 -0
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +2 -2
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +3 -2
- package/dist/Components/Avatar/composables/useAvatar.js +2 -2
- package/dist/Components/Calendar/composables/useCalendar.js +132 -131
- package/dist/Components/CalendarDate/composables/useCalendarDate.js +116 -115
- package/dist/Components/CalendarRange/composables/useCalendarRange.js +132 -131
- package/dist/Components/Card/Card.vue_vue_type_script_setup_true_lang.js +24 -10
- package/dist/Components/Card/card.types.d.ts +5 -4
- package/dist/Components/Card/composables/useCard.d.ts +2 -2
- package/dist/Components/Card/composables/useCard.js +2 -2
- package/dist/Components/Carousel/composables/useCarousel.js +6 -6
- package/dist/Components/ColorPicker/ColorPicker.vue_vue_type_script_setup_true_lang.js +48 -39
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +33 -36
- package/dist/Components/DataTable/composables/useDataTable.d.ts +2 -0
- package/dist/Components/DataTable/composables/useDataTable.js +226 -216
- package/dist/Components/FileUpload/FileUpload.vue_vue_type_script_setup_true_lang.js +51 -57
- package/dist/Components/FileUpload/composables/useFileUpload.d.ts +2 -0
- package/dist/Components/FileUpload/composables/useFileUpload.js +6 -4
- package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/Link/link.types.d.ts +1 -1
- package/dist/Components/ListItem/composables/useListItem.js +4 -5
- package/dist/Components/Pagination/composables/usePagination.js +9 -9
- package/dist/Components/Select/Select.vue.d.ts +1 -0
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/Components/Select/composables/useSelect.d.ts +2 -2
- package/dist/Components/Select/composables/useSelect.js +3 -2
- package/dist/Components/Select/select.types.d.ts +7 -0
- package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +97 -72
- package/dist/Components/Snackbar/composables/useSnackbar.d.ts +2 -2
- package/dist/Components/Snackbar/composables/useSnackbar.js +2 -2
- package/dist/Components/Snackbar/snackbar.types.d.ts +5 -4
- package/dist/Components/Table/composables/useTableRow.js +3 -3
- package/dist/Components/Text/Text.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/Text/composables/useText.d.ts +1 -1
- package/dist/Components/Text/text.types.d.ts +1 -1
- package/dist/Components/TimePanel/composables/useTimePanel.js +113 -112
- package/dist/Utils/index.d.ts +6 -0
- package/dist/Utils/index.js +21 -17
- package/dist/index.js +157 -157
- package/docs/components/Autocomplete.md +23 -22
- package/docs/components/Link.md +1 -1
- package/docs/components/Select.md +22 -21
- package/docs/components/Text.md +6 -4
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useDateAdapter as e } from "../../../Adapters/Date/useDateAdapter.js";
|
|
2
|
-
import { mergePartBind as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as r } from "../../../Utils/index.js";
|
|
3
|
-
import { computed as
|
|
4
|
-
import { get as
|
|
2
|
+
import { mergePartBind as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as r, useDefaultTextSizeClass as i } from "../../../Utils/index.js";
|
|
3
|
+
import { computed as a, toValue as o, useAttrs as s } from "vue";
|
|
4
|
+
import { get as c, isNumber as l, omit as ee } from "es-toolkit/compat";
|
|
5
5
|
import { buildHourOptions as u, buildMinuteOptions as d, buildSecondOptions as f, isTimeDisabled as p, resolveCalendarDayInteractionState as m, snapMinutes as h, to12Hour as g, to24Hour as _, toMeridiem as v } from "@bridge-ui/core/Domain";
|
|
6
|
-
import { timeColorProps as
|
|
7
|
-
import { cn as
|
|
6
|
+
import { timeColorProps as y, timeRoundedProps as b } from "@bridge-ui/core/Tokens";
|
|
7
|
+
import { cn as x, getColorToken as S, mergeBridgeUILayeredClasses as C, splitComponentProps as w } from "@bridge-ui/core/Utils";
|
|
8
8
|
// src/Components/TimePanel/composables/useTimePanel.ts
|
|
9
|
-
var
|
|
9
|
+
var T = [
|
|
10
10
|
"ampm",
|
|
11
11
|
"fill",
|
|
12
12
|
"color",
|
|
@@ -22,170 +22,171 @@ var w = [
|
|
|
22
22
|
"customProps",
|
|
23
23
|
"showSeconds",
|
|
24
24
|
"disableTimes"
|
|
25
|
-
],
|
|
26
|
-
function
|
|
27
|
-
let
|
|
28
|
-
bridgeKeys:
|
|
25
|
+
], E = "w-[3.75rem]", D = "min-w-[3.75rem]";
|
|
26
|
+
function O(E, O, k, A) {
|
|
27
|
+
let j = s(), M = e(), N = a(() => w({
|
|
28
|
+
bridgeKeys: T,
|
|
29
29
|
props: {
|
|
30
|
-
...
|
|
31
|
-
...
|
|
30
|
+
...j,
|
|
31
|
+
...o(E)
|
|
32
32
|
}
|
|
33
|
-
})), { merged:
|
|
34
|
-
libDefaults:
|
|
33
|
+
})), { merged: P, entry: F } = n({
|
|
34
|
+
libDefaults: O,
|
|
35
35
|
componentName: "TimePanel",
|
|
36
|
-
props: () =>
|
|
37
|
-
}),
|
|
38
|
-
props: () =>
|
|
39
|
-
entry:
|
|
40
|
-
}),
|
|
41
|
-
let e =
|
|
42
|
-
return
|
|
43
|
-
}),
|
|
44
|
-
let e =
|
|
45
|
-
return
|
|
36
|
+
props: () => N.value.componentProps
|
|
37
|
+
}), I = a(() => P.value.customProps), L = a(() => ee(N.value.inheritedAttrs, ["onChange", "onUpdate:modelValue"])), R = r({
|
|
38
|
+
props: () => N.value.componentProps,
|
|
39
|
+
entry: a(() => {})
|
|
40
|
+
}), z = a(() => P.value.timeZone), B = a(() => {
|
|
41
|
+
let e = C(b, F.value?.tokens?.rounded);
|
|
42
|
+
return c(e, P.value.rounded);
|
|
43
|
+
}), V = a(() => {
|
|
44
|
+
let e = C(y, F.value?.tokens?.color);
|
|
45
|
+
return S({
|
|
46
46
|
tokens: e,
|
|
47
|
-
color:
|
|
48
|
-
invalid:
|
|
47
|
+
color: P.value.color,
|
|
48
|
+
invalid: P.value.error
|
|
49
49
|
});
|
|
50
|
-
}),
|
|
51
|
-
let e =
|
|
52
|
-
return r =
|
|
53
|
-
}),
|
|
54
|
-
adapter:
|
|
55
|
-
timeZone:
|
|
56
|
-
maxTime:
|
|
57
|
-
minTime:
|
|
58
|
-
disableTimes:
|
|
59
|
-
}),
|
|
60
|
-
|
|
61
|
-
}, q = (e) => {
|
|
62
|
-
let t = N.value.ampm ? _(e, W.value) : e, n = j.value.setHours(V.value, t, R.value);
|
|
63
|
-
n = j.value.setMinutes(n, j.value.getMinutes(V.value, R.value), R.value), K(n);
|
|
50
|
+
}), H = a(() => {
|
|
51
|
+
let e = k.value ?? M.value.now(z.value), t = h(M.value.getMinutes(e, z.value), P.value.interval), n = P.value.showSeconds ? M.value.getSeconds(e, z.value) : 0, r = M.value.setHours(e, M.value.getHours(e, z.value), z.value);
|
|
52
|
+
return r = M.value.setMinutes(r, t, z.value), r = M.value.setSeconds(r, n, z.value), r;
|
|
53
|
+
}), U = a(() => u({ ampm: P.value.ampm })), te = a(() => d({ interval: P.value.interval })), W = a(() => f()), G = a(() => v(M.value.getHours(H.value, z.value))), K = (e) => !!P.value.disabled || p(e, {
|
|
54
|
+
adapter: M.value,
|
|
55
|
+
timeZone: z.value,
|
|
56
|
+
maxTime: P.value.maxTime,
|
|
57
|
+
minTime: P.value.minTime,
|
|
58
|
+
disableTimes: P.value.disableTimes
|
|
59
|
+
}), q = (e) => {
|
|
60
|
+
P.value.disabled || P.value.readOnly || K(e) || (k.value = e, A("change", e));
|
|
64
61
|
}, J = (e) => {
|
|
65
|
-
let t =
|
|
66
|
-
|
|
62
|
+
let t = P.value.ampm ? _(e, G.value) : e, n = M.value.setHours(H.value, t, z.value);
|
|
63
|
+
n = M.value.setMinutes(n, M.value.getMinutes(H.value, z.value), z.value), q(n);
|
|
67
64
|
}, Y = (e) => {
|
|
68
|
-
let t =
|
|
69
|
-
|
|
65
|
+
let t = M.value.setMinutes(H.value, e, z.value);
|
|
66
|
+
q(t);
|
|
70
67
|
}, X = (e) => {
|
|
71
|
-
let t =
|
|
72
|
-
|
|
73
|
-
}, Z =
|
|
74
|
-
let
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
68
|
+
let t = M.value.setSeconds(H.value, e, z.value);
|
|
69
|
+
q(t);
|
|
70
|
+
}, Z = (e) => {
|
|
71
|
+
let t = g(M.value.getHours(H.value, z.value)), n = _(t, e), r = M.value.setHours(H.value, n, z.value);
|
|
72
|
+
r = M.value.setMinutes(r, M.value.getMinutes(H.value, z.value), z.value), q(r);
|
|
73
|
+
}, Q = a(() => {
|
|
74
|
+
let e = M.value.getHours(H.value, z.value), t = P.value.ampm ? g(e) : e;
|
|
75
|
+
return U.value.map((e) => {
|
|
76
|
+
let n = P.value.ampm ? _(e, G.value) : e, r = M.value.setHours(H.value, n, z.value);
|
|
77
|
+
r = M.value.setMinutes(r, M.value.getMinutes(H.value, z.value), z.value);
|
|
78
|
+
let i = K(r), a = e === t;
|
|
79
79
|
return {
|
|
80
80
|
state: m({
|
|
81
81
|
disabled: i,
|
|
82
82
|
selected: a,
|
|
83
|
-
readOnly:
|
|
83
|
+
readOnly: P.value.readOnly
|
|
84
84
|
}),
|
|
85
85
|
selected: a,
|
|
86
86
|
value: e,
|
|
87
|
-
disabled: i || !!
|
|
88
|
-
label:
|
|
87
|
+
disabled: i || !!P.value.readOnly,
|
|
88
|
+
label: P.value.ampm ? String(e) : String(e).padStart(2, "0")
|
|
89
89
|
};
|
|
90
90
|
});
|
|
91
|
-
}),
|
|
92
|
-
let e =
|
|
93
|
-
return
|
|
94
|
-
let n =
|
|
91
|
+
}), ne = a(() => {
|
|
92
|
+
let e = M.value.getMinutes(H.value, z.value);
|
|
93
|
+
return te.value.map((t) => {
|
|
94
|
+
let n = M.value.setMinutes(H.value, t, z.value), r = K(n), i = t === e;
|
|
95
95
|
return {
|
|
96
96
|
state: m({
|
|
97
97
|
disabled: r,
|
|
98
98
|
selected: i,
|
|
99
|
-
readOnly:
|
|
99
|
+
readOnly: P.value.readOnly
|
|
100
100
|
}),
|
|
101
101
|
selected: i,
|
|
102
102
|
value: t,
|
|
103
103
|
label: String(t).padStart(2, "0"),
|
|
104
|
-
disabled: r || !!
|
|
104
|
+
disabled: r || !!P.value.readOnly
|
|
105
105
|
};
|
|
106
106
|
});
|
|
107
|
-
}),
|
|
108
|
-
if (!
|
|
109
|
-
let e =
|
|
110
|
-
return
|
|
111
|
-
let n =
|
|
107
|
+
}), re = a(() => {
|
|
108
|
+
if (!P.value.showSeconds) return [];
|
|
109
|
+
let e = M.value.getSeconds(H.value, z.value);
|
|
110
|
+
return W.value.map((t) => {
|
|
111
|
+
let n = M.value.setSeconds(H.value, t, z.value), r = K(n), i = t === e;
|
|
112
112
|
return {
|
|
113
113
|
state: m({
|
|
114
114
|
disabled: r,
|
|
115
115
|
selected: i,
|
|
116
|
-
readOnly:
|
|
116
|
+
readOnly: P.value.readOnly
|
|
117
117
|
}),
|
|
118
118
|
selected: i,
|
|
119
119
|
value: t,
|
|
120
120
|
label: String(t).padStart(2, "0"),
|
|
121
|
-
disabled: r || !!
|
|
121
|
+
disabled: r || !!P.value.readOnly
|
|
122
122
|
};
|
|
123
123
|
});
|
|
124
|
-
}),
|
|
125
|
-
let t = g(
|
|
126
|
-
r =
|
|
127
|
-
let i =
|
|
124
|
+
}), ie = a(() => P.value.ampm ? ["AM", "PM"].map((e) => {
|
|
125
|
+
let t = g(M.value.getHours(H.value, z.value)), n = _(t, e), r = M.value.setHours(H.value, n, z.value);
|
|
126
|
+
r = M.value.setMinutes(r, M.value.getMinutes(H.value, z.value), z.value);
|
|
127
|
+
let i = K(r), a = e === G.value;
|
|
128
128
|
return {
|
|
129
129
|
state: m({
|
|
130
130
|
disabled: i,
|
|
131
131
|
selected: a,
|
|
132
|
-
readOnly:
|
|
132
|
+
readOnly: P.value.readOnly
|
|
133
133
|
}),
|
|
134
134
|
selected: a,
|
|
135
135
|
label: e,
|
|
136
136
|
value: e,
|
|
137
|
-
disabled: i || !!
|
|
137
|
+
disabled: i || !!P.value.readOnly
|
|
138
138
|
};
|
|
139
|
-
}) : []),
|
|
139
|
+
}) : []), ae = a(() => t(I.value?.root, L.value, x({
|
|
140
140
|
"flex h-72 flex-row gap-2": !0,
|
|
141
|
-
"w-full min-w-fit":
|
|
142
|
-
"w-fit min-w-fit": !
|
|
143
|
-
[
|
|
144
|
-
}))),
|
|
141
|
+
"w-full min-w-fit": P.value.fill,
|
|
142
|
+
"w-fit min-w-fit": !P.value.fill,
|
|
143
|
+
[R.value.root ?? ""]: !0
|
|
144
|
+
}))), oe = a(() => t(I.value?.column, {}, x({
|
|
145
145
|
"box-border flex h-full min-w-0 flex-1 flex-col items-stretch gap-1 overflow-x-hidden overflow-y-auto bridge-scroll-fade-y bridge-hide-scrollbar": !0,
|
|
146
|
-
[
|
|
147
|
-
[
|
|
148
|
-
}))), $ = (e, n, r) => {
|
|
149
|
-
let i =
|
|
150
|
-
return t(
|
|
146
|
+
[D]: !0,
|
|
147
|
+
[R.value.column ?? ""]: !0
|
|
148
|
+
}))), se = i(), $ = (e, n, r) => {
|
|
149
|
+
let i = V.value;
|
|
150
|
+
return t(I.value?.item, {
|
|
151
151
|
type: "button",
|
|
152
152
|
"aria-label": r,
|
|
153
153
|
disabled: e.disabled,
|
|
154
154
|
"aria-pressed": e.selected,
|
|
155
155
|
onClick: () => n(e.value)
|
|
156
|
-
},
|
|
157
|
-
"w-full cursor-pointer px-3 py-2
|
|
158
|
-
[
|
|
156
|
+
}, x({
|
|
157
|
+
"w-full cursor-pointer px-3 py-2 transition-colors duration-150 ease-in-out outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed": !0,
|
|
158
|
+
[B.value ?? ""]: !0,
|
|
159
|
+
[se.value]: !0,
|
|
159
160
|
[i?.base ?? ""]: e.state === "base" || e.state === "hover",
|
|
160
161
|
[i?.hover ?? ""]: e.state === "base" || e.state === "hover",
|
|
161
162
|
[i?.selected ?? ""]: e.state === "selected",
|
|
162
163
|
[i?.disabled ?? ""]: e.state === "disabled",
|
|
163
|
-
[
|
|
164
|
+
[R.value.item ?? ""]: !0
|
|
164
165
|
}));
|
|
165
|
-
},
|
|
166
|
-
|
|
167
|
-
}, `Hour ${e.label}`),
|
|
168
|
-
|
|
169
|
-
}, `Minute ${e.label}`),
|
|
170
|
-
|
|
171
|
-
}, `Second ${e.label}`),
|
|
172
|
-
(e === "AM" || e === "PM") &&
|
|
173
|
-
}, String(e.label)),
|
|
166
|
+
}, ce = (e) => $(e, (e) => {
|
|
167
|
+
l(e) && J(e);
|
|
168
|
+
}, `Hour ${e.label}`), le = (e) => $(e, (e) => {
|
|
169
|
+
l(e) && Y(e);
|
|
170
|
+
}, `Minute ${e.label}`), ue = (e) => $(e, (e) => {
|
|
171
|
+
l(e) && X(e);
|
|
172
|
+
}, `Second ${e.label}`), de = (e) => $(e, (e) => {
|
|
173
|
+
(e === "AM" || e === "PM") && Z(e);
|
|
174
|
+
}, String(e.label)), fe = a(() => !!P.value.ampm);
|
|
174
175
|
return {
|
|
175
|
-
merged:
|
|
176
|
-
rootBind:
|
|
177
|
-
hourItems:
|
|
178
|
-
columnBind:
|
|
179
|
-
getHourBind:
|
|
180
|
-
minuteItems:
|
|
181
|
-
secondItems:
|
|
182
|
-
displayDate:
|
|
183
|
-
showSeconds:
|
|
184
|
-
showMeridiem:
|
|
185
|
-
getMinuteBind:
|
|
186
|
-
getSecondBind:
|
|
187
|
-
meridiemItems:
|
|
188
|
-
getMeridiemBind:
|
|
176
|
+
merged: P,
|
|
177
|
+
rootBind: ae,
|
|
178
|
+
hourItems: Q,
|
|
179
|
+
columnBind: oe,
|
|
180
|
+
getHourBind: ce,
|
|
181
|
+
minuteItems: ne,
|
|
182
|
+
secondItems: re,
|
|
183
|
+
displayDate: H,
|
|
184
|
+
showSeconds: a(() => !!P.value.showSeconds),
|
|
185
|
+
showMeridiem: fe,
|
|
186
|
+
getMinuteBind: le,
|
|
187
|
+
getSecondBind: ue,
|
|
188
|
+
meridiemItems: ie,
|
|
189
|
+
getMeridiemBind: de
|
|
189
190
|
};
|
|
190
191
|
}
|
|
191
|
-
export {
|
|
192
|
+
export { D as TIME_PANEL_COLUMN_MIN_WIDTH_CLASS, E as TIME_PANEL_COLUMN_WIDTH_CLASS, O as useTimePanel };
|
package/dist/Utils/index.d.ts
CHANGED
|
@@ -64,6 +64,12 @@ export declare function usePickerFill({ fill, chrome, overlay, componentName, }:
|
|
|
64
64
|
fill: MaybeRefOrGetter<boolean | undefined>;
|
|
65
65
|
overlay?: MaybeRefOrGetter<undefined | ResolvedFieldOverlay>;
|
|
66
66
|
}): ComputedRef<boolean>;
|
|
67
|
+
/**
|
|
68
|
+
* Font-size classes of the default `Text` size (registry
|
|
69
|
+
* `Text.defaultProps.size`, then `sm`), for text in components without a
|
|
70
|
+
* `size` prop that can't render a `Text` element.
|
|
71
|
+
*/
|
|
72
|
+
export declare function useDefaultTextSizeClass(): ComputedRef<string>;
|
|
67
73
|
/**
|
|
68
74
|
* Merges chrome `classes`, public registry `classes`, and instance `props.classes`.
|
|
69
75
|
*/
|
package/dist/Utils/index.js
CHANGED
|
@@ -5,10 +5,10 @@ import { useHoldRepeat as s } from "./useHoldRepeat.js";
|
|
|
5
5
|
import { useOptionalModel as c } from "./useOptionalModel.js";
|
|
6
6
|
import { computed as l, defineComponent as u, toValue as d, unref as f } from "vue";
|
|
7
7
|
import { get as p, isNil as m } from "es-toolkit/compat";
|
|
8
|
-
import {
|
|
9
|
-
import { createMergeNestedComponentProps as
|
|
8
|
+
import { resolveDefaultTextSizeClass as h, resolveFieldShowFooter as g, resolvePickerFill as _ } from "@bridge-ui/core/Domain";
|
|
9
|
+
import { createMergeNestedComponentProps as v, createMergePartBind as y, getBridgeUIRegistryDefaultProp as b, mergeBridgeUILayeredClasses as x, mergePropsWithBridgeUIDefaults as S } from "@bridge-ui/core/Utils";
|
|
10
10
|
// src/Utils/index.ts
|
|
11
|
-
function
|
|
11
|
+
function C(e) {
|
|
12
12
|
return u({
|
|
13
13
|
name: "HeadlessTestComponent",
|
|
14
14
|
setup() {
|
|
@@ -16,8 +16,8 @@ function S(e) {
|
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
var
|
|
20
|
-
function
|
|
19
|
+
var w = y("class"), T = v(w);
|
|
20
|
+
function E({ props: t, chrome: n, libDefaults: r, componentName: i }) {
|
|
21
21
|
let a = e(), o = l(() => m(a) ? null : f(a.components)), s = l(() => {
|
|
22
22
|
if (i) return p(o.value, i);
|
|
23
23
|
}), c = l(() => {
|
|
@@ -27,7 +27,7 @@ function T({ props: t, chrome: n, libDefaults: r, componentName: i }) {
|
|
|
27
27
|
return {
|
|
28
28
|
entry: s,
|
|
29
29
|
bridge: a,
|
|
30
|
-
merged: l(() =>
|
|
30
|
+
merged: l(() => S({
|
|
31
31
|
libDefaults: r,
|
|
32
32
|
componentName: i,
|
|
33
33
|
props: d(t),
|
|
@@ -40,34 +40,38 @@ function T({ props: t, chrome: n, libDefaults: r, componentName: i }) {
|
|
|
40
40
|
chromeEntry: c
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function D({ chrome: t, overlay: n, showFooter: r, componentName: i }) {
|
|
44
44
|
let a = e();
|
|
45
45
|
return l(() => {
|
|
46
|
-
let e =
|
|
46
|
+
let e = b({
|
|
47
47
|
componentName: i,
|
|
48
48
|
prop: "showFooter",
|
|
49
49
|
chromeName: d(t),
|
|
50
50
|
components: f(a?.components)
|
|
51
51
|
});
|
|
52
|
-
return
|
|
52
|
+
return g(d(r) ?? e, d(n));
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function O({ fill: t, chrome: n, overlay: r, componentName: i }) {
|
|
56
56
|
let a = e();
|
|
57
57
|
return l(() => {
|
|
58
|
-
let e =
|
|
58
|
+
let e = b({
|
|
59
59
|
prop: "fill",
|
|
60
60
|
componentName: i,
|
|
61
61
|
chromeName: d(n),
|
|
62
62
|
components: f(a?.components)
|
|
63
63
|
});
|
|
64
|
-
return
|
|
64
|
+
return _(d(t) ?? e, d(r));
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
|
|
67
|
+
function k() {
|
|
68
|
+
let t = e();
|
|
69
|
+
return l(() => h(f(t?.components)));
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function A({ entry: e, props: t, chromeEntry: n }) {
|
|
72
|
+
return l(() => x(p(n?.value, "classes"), p(e.value, "classes"), d(t).classes));
|
|
73
|
+
}
|
|
74
|
+
function j(e) {
|
|
71
75
|
return p({
|
|
72
76
|
xs: "xs",
|
|
73
77
|
sm: "sm",
|
|
@@ -78,7 +82,7 @@ function k(e) {
|
|
|
78
82
|
"2xl": "lg"
|
|
79
83
|
}, e ?? "md");
|
|
80
84
|
}
|
|
81
|
-
function
|
|
85
|
+
function M(e) {
|
|
82
86
|
if (e instanceof HTMLElement) return e;
|
|
83
87
|
if (e && "$el" in e) {
|
|
84
88
|
let t = e.$el;
|
|
@@ -86,4 +90,4 @@ function A(e) {
|
|
|
86
90
|
}
|
|
87
91
|
return null;
|
|
88
92
|
}
|
|
89
|
-
export { t as RenderFn,
|
|
93
|
+
export { t as RenderFn, C as defineHeadlessComponent, n as hasNamedSlot, r as hasSlotOrProp, i as isPropPresent, T as mergeNestedComponentProps, w as mergePartBind, a as presentSlotNames, j as resolveFieldAdornmentIconSize, M as resolveVnodeRefElement, o as useBreakpoint, E as useBridgeUIComponent, A as useBridgeUIMergedRegistryClasses, k as useDefaultTextSizeClass, D as useFieldShowFooter, s as useHoldRepeat, c as useOptionalModel, O as usePickerFill };
|