@bridge-ui/vue 0.0.5 → 0.0.7
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/Actions/Snackbar/BridgeSnackbarAction.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Actions/Snackbar/BridgeSnackbarHost.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Actions/Snackbar/createBridgeSnackbarApi.js +17 -17
- package/dist/Adapters/I18n/index.d.ts +1 -0
- package/dist/Adapters/I18n/index.js +2 -0
- package/dist/Adapters/I18n/useI18nAdapter.d.ts +16 -0
- package/dist/Adapters/I18n/useI18nAdapter.js +18 -0
- package/dist/Adapters/Icon/iconSource.types.d.ts +11 -0
- package/dist/Adapters/Icon/index.d.ts +2 -0
- package/dist/Adapters/Icon/index.js +2 -0
- package/dist/Adapters/Icon/useIconAdapter.d.ts +11 -0
- package/dist/Adapters/Icon/useIconAdapter.js +13 -0
- package/dist/Adapters/index.d.ts +3 -0
- package/dist/Adapters/index.js +3 -0
- package/dist/Components/Alert/Alert.vue_vue_type_script_setup_true_lang.js +1 -5
- package/dist/Components/Alert/alert.types.d.ts +2 -2
- package/dist/Components/Alert/alertDefaultIcons.d.ts +2 -2
- package/dist/Components/Alert/alertDefaultIcons.js +9 -10
- package/dist/Components/Alert/composables/useAlert.d.ts +2 -2
- package/dist/Components/Alert/composables/useAlert.js +17 -17
- package/dist/Components/Autocomplete/Autocomplete.js +5 -0
- package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +40 -0
- package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +197 -0
- package/dist/Components/Autocomplete/AutocompleteOption.js +5 -0
- package/dist/Components/Autocomplete/AutocompleteOption.vue.d.ts +4 -0
- package/dist/Components/Autocomplete/AutocompleteOption.vue_vue_type_script_setup_true_lang.js +32 -0
- package/dist/Components/Autocomplete/autocomplete.types.d.ts +285 -0
- package/dist/Components/Autocomplete/autocompleteInjectionKey.d.ts +7 -0
- package/dist/Components/Autocomplete/autocompleteInjectionKey.js +4 -0
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +762 -0
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +382 -0
- package/dist/Components/Autocomplete/index.d.ts +4 -0
- package/dist/Components/Autocomplete/index.js +4 -0
- package/dist/Components/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/Avatar/avatar.types.d.ts +2 -2
- package/dist/Components/Avatar/composables/useAvatar.d.ts +1 -1
- package/dist/Components/Avatar/composables/useAvatar.js +46 -47
- package/dist/Components/Badge/composables/useBadge.js +8 -8
- package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +24 -25
- package/dist/Components/Button/button.types.d.ts +4 -4
- package/dist/Components/Button/composables/useButton.d.ts +1 -1
- package/dist/Components/Button/composables/useButton.js +14 -14
- package/dist/Components/Card/composables/useCard.js +27 -27
- package/dist/Components/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +27 -27
- package/dist/Components/Checkbox/composables/useCheckbox.d.ts +4 -4
- package/dist/Components/Checkbox/composables/useCheckbox.js +9 -9
- package/dist/Components/Chip/Chip.vue_vue_type_script_setup_true_lang.js +8 -9
- package/dist/Components/Chip/composables/useChip.js +6 -6
- package/dist/Components/Divider/composables/useDivider.js +5 -5
- package/dist/Components/Drawer/composables/useDrawer.js +23 -23
- package/dist/Components/FormControl/FormControl.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/FormControl/composables/useFormControl.d.ts +3 -3
- package/dist/Components/FormControl/composables/useFormControl.js +12 -12
- package/dist/Components/FormControl/formControl.types.d.ts +6 -6
- package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/composables/useFormField.d.ts +6 -6
- package/dist/Components/FormField/composables/useFormField.js +108 -109
- package/dist/Components/FormField/formField.types.d.ts +19 -19
- package/dist/Components/Icon/Icon.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/Components/Icon/composables/useIcon.d.ts +2 -0
- package/dist/Components/Icon/composables/useIcon.js +20 -18
- package/dist/Components/Icon/icon.types.d.ts +3 -3
- package/dist/Components/Label/composables/useLabel.d.ts +1 -1
- package/dist/Components/Label/composables/useLabel.js +5 -5
- package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Link/composables/useLink.js +9 -9
- package/dist/Components/Link/link.types.d.ts +3 -3
- package/dist/Components/List/composables/useList.js +6 -6
- package/dist/Components/ListItem/composables/useListItem.d.ts +2 -2
- package/dist/Components/ListItem/composables/useListItem.js +81 -82
- package/dist/Components/ListItem/listItem.types.d.ts +2 -2
- package/dist/Components/ListSection/composables/useListSection.js +8 -8
- package/dist/Components/Listbox/Listbox.vue.d.ts +0 -2
- package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +75 -74
- package/dist/Components/Listbox/composables/useListbox.js +7 -7
- package/dist/Components/Listbox/index.js +3 -3
- package/dist/Components/Menu/composables/useMenu.js +43 -43
- package/dist/Components/Modal/composables/useModal.js +18 -18
- package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +43 -43
- package/dist/Components/NumberField/composables/useNumberField.d.ts +8 -8
- package/dist/Components/NumberField/composables/useNumberField.js +9 -9
- package/dist/Components/OtpField/OtpField.js +5 -0
- package/dist/Components/OtpField/OtpField.vue.d.ts +31 -0
- package/dist/Components/OtpField/OtpField.vue_vue_type_script_setup_true_lang.js +80 -0
- package/dist/Components/OtpField/OtpFieldLabel.js +5 -0
- package/dist/Components/OtpField/OtpFieldLabel.vue.d.ts +7 -0
- package/dist/Components/OtpField/OtpFieldLabel.vue_vue_type_script_setup_true_lang.js +16 -0
- package/dist/Components/OtpField/composables/useOtpField.d.ts +460 -0
- package/dist/Components/OtpField/composables/useOtpField.js +212 -0
- package/dist/Components/OtpField/index.d.ts +4 -0
- package/dist/Components/OtpField/index.js +3 -0
- package/dist/Components/OtpField/otpField.types.d.ts +290 -0
- package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +27 -27
- package/dist/Components/PasswordField/composables/usePasswordField.d.ts +8 -8
- package/dist/Components/PasswordField/composables/usePasswordField.js +2 -2
- package/dist/Components/Progress/composables/useProgress.js +11 -11
- package/dist/Components/Radio/Radio.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Radio/composables/useRadio.d.ts +4 -4
- package/dist/Components/Radio/composables/useRadio.js +9 -9
- package/dist/Components/Select/Select.vue.d.ts +1 -2
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +72 -68
- package/dist/Components/Select/composables/useSelect.d.ts +10 -10
- package/dist/Components/Select/composables/useSelect.js +193 -193
- package/dist/Components/Skeleton/composables/useSkeleton.js +5 -5
- package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +81 -75
- package/dist/Components/Snackbar/composables/useSnackbar.d.ts +4 -4
- package/dist/Components/Snackbar/composables/useSnackbar.js +115 -115
- package/dist/Components/Snackbar/snackbar.types.d.ts +2 -2
- package/dist/Components/Snackbar/snackbarDefaultIcons.d.ts +3 -3
- package/dist/Components/Snackbar/snackbarDefaultIcons.js +9 -10
- package/dist/Components/Spinner/composables/useSpinner.js +11 -11
- package/dist/Components/Switch/Switch.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Switch/composables/useSwitch.d.ts +4 -4
- package/dist/Components/Switch/composables/useSwitch.js +9 -9
- package/dist/Components/Tab/Tab.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Tab/composables/useTab.js +11 -11
- package/dist/Components/Tab/tab.types.d.ts +3 -3
- package/dist/Components/TabItem/TabItem.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/TabItem/tabItem.types.d.ts +3 -3
- package/dist/Components/TabList/composables/useTabList.js +7 -7
- package/dist/Components/TabPanel/composables/useTabPanel.js +7 -7
- package/dist/Components/Tabs/composables/useTabs.d.ts +468 -4
- package/dist/Components/Tabs/composables/useTabs.js +22 -22
- package/dist/Components/Tabs/tabsInjectionKey.d.ts +5 -5
- package/dist/Components/TextField/TextField.vue.d.ts +1 -1
- package/dist/Components/TextField/TextField.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Components/TextField/composables/useTextField.d.ts +8 -8
- package/dist/Components/TextField/composables/useTextField.js +1 -1
- package/dist/Components/Textarea/Textarea.vue.d.ts +1 -1
- package/dist/Components/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Components/Textarea/composables/useTextarea.d.ts +8 -8
- package/dist/Components/Textarea/composables/useTextarea.js +9 -9
- package/dist/Components/Tooltip/Tooltip.js +5 -0
- package/dist/Components/Tooltip/Tooltip.vue.d.ts +35 -0
- package/dist/Components/Tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/Components/Tooltip/composables/useTooltip.d.ts +50 -0
- package/dist/Components/Tooltip/composables/useTooltip.js +208 -0
- package/dist/Components/Tooltip/index.d.ts +4 -0
- package/dist/Components/Tooltip/index.js +3 -0
- package/dist/Components/Tooltip/tooltip.types.d.ts +166 -0
- package/dist/Provider/bridgeUITypes.d.ts +4 -1
- package/dist/Provider/createBridgeUIApi.js +15 -2
- package/dist/Utils/index.js +7 -7
- package/dist/Utils/useBreakpoint.js +7 -7
- package/dist/augments.d.ts +2 -2
- package/dist/index.d.ts +11 -1
- package/dist/index.js +84 -76
- package/package.json +21 -3
|
@@ -2,9 +2,8 @@ import { hasNamedSlot as e, isPropPresent as t, resolveNamedSlot as n } from "..
|
|
|
2
2
|
import r from "../Icon/Icon.js";
|
|
3
3
|
import { useButton as i } from "./composables/useButton.js";
|
|
4
4
|
import { Fragment as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createTextVNode as l, defineComponent as u, mergeProps as d, normalizeProps as f, openBlock as p, resolveDynamicComponent as m, toDisplayString as h, unref as g, useSlots as _, withCtx as v } from "vue";
|
|
5
|
-
import { Loader2 as y } from "@lucide/vue";
|
|
6
5
|
//#region src/Components/Button/Button.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
6
|
+
var y = /* @__PURE__ */ u({
|
|
8
7
|
inheritAttrs: !1,
|
|
9
8
|
__name: "Button",
|
|
10
9
|
props: {
|
|
@@ -14,19 +13,19 @@ var b = /* @__PURE__ */ u({
|
|
|
14
13
|
customProps: {},
|
|
15
14
|
density: {},
|
|
16
15
|
disabled: { type: Boolean },
|
|
17
|
-
endIcon: {
|
|
16
|
+
endIcon: {},
|
|
18
17
|
full: { type: Boolean },
|
|
19
18
|
href: {},
|
|
20
|
-
icon: {
|
|
19
|
+
icon: {},
|
|
21
20
|
loading: { type: Boolean },
|
|
22
21
|
rounded: {},
|
|
23
22
|
size: {},
|
|
24
|
-
startIcon: {
|
|
23
|
+
startIcon: {},
|
|
25
24
|
text: {},
|
|
26
25
|
variant: {}
|
|
27
26
|
},
|
|
28
27
|
setup(u) {
|
|
29
|
-
let
|
|
28
|
+
let y = u, b = _(), { tag: x, merged: S, isMini: C, iconBind: w, rootBind: T, rootHref: E, rootType: D, endIconBind: O, endSlotBind: k, rootAriaBusy: A, rootDisabled: j, startIconBind: M, startSlotBind: N, loadingIconBind: P, rootAriaDisabled: F } = i(y, {
|
|
30
29
|
size: "md",
|
|
31
30
|
as: "button",
|
|
32
31
|
rounded: "md",
|
|
@@ -34,29 +33,29 @@ var b = /* @__PURE__ */ u({
|
|
|
34
33
|
variant: "solid",
|
|
35
34
|
density: "default"
|
|
36
35
|
});
|
|
37
|
-
return (i, u) => (p(), o(m(g(
|
|
38
|
-
type: g(
|
|
39
|
-
disabled: g(
|
|
40
|
-
"aria-busy": g(
|
|
41
|
-
"aria-disabled": g(
|
|
36
|
+
return (i, u) => (p(), o(m(g(x)), d({ href: g(E) }, g(T), {
|
|
37
|
+
type: g(D),
|
|
38
|
+
disabled: g(j),
|
|
39
|
+
"aria-busy": g(A),
|
|
40
|
+
"aria-disabled": g(F)
|
|
42
41
|
}), {
|
|
43
|
-
default: v(() => [g(
|
|
42
|
+
default: v(() => [g(S).loading ? (p(), o(g(r), d({
|
|
44
43
|
key: 0,
|
|
45
|
-
icon:
|
|
46
|
-
size: g(
|
|
47
|
-
}, g(
|
|
48
|
-
icon: g(
|
|
49
|
-
size: g(
|
|
44
|
+
icon: "loader",
|
|
45
|
+
size: g(S).size
|
|
46
|
+
}, g(P)), null, 16, ["size"])) : g(C) ? (p(), c(a, { key: 1 }, [g(e)(g(b), "default") ? (p(), o(m(g(n)(g(b), "default")), { key: 0 })) : g(S).icon ? (p(), o(g(r), d({ key: 1 }, g(w), {
|
|
47
|
+
icon: g(S).icon,
|
|
48
|
+
size: g(S).size
|
|
50
49
|
}), null, 16, ["icon", "size"])) : s("", !0)], 64)) : (p(), c(a, { key: 2 }, [
|
|
51
|
-
g(
|
|
50
|
+
g(S).startIcon ? (p(), o(g(r), d({
|
|
52
51
|
key: 0,
|
|
53
|
-
size: g(
|
|
54
|
-
}, g(
|
|
55
|
-
g(t)(g(
|
|
56
|
-
g(
|
|
52
|
+
size: g(S).size
|
|
53
|
+
}, g(M), { icon: g(S).startIcon }), null, 16, ["size", "icon"])) : g(e)(g(b), "start") ? (p(), c("div", f(d({ key: 1 }, g(N))), [(p(), o(m(g(n)(g(b), "start"))))], 16)) : s("", !0),
|
|
54
|
+
g(t)(g(S).text) ? (p(), c(a, { key: 2 }, [l(h(g(S).text), 1)], 64)) : g(e)(g(b), "default") ? (p(), o(m(g(n)(g(b), "default")), { key: 3 })) : s("", !0),
|
|
55
|
+
g(S).endIcon ? (p(), o(g(r), d({
|
|
57
56
|
key: 4,
|
|
58
|
-
size: g(
|
|
59
|
-
}, g(
|
|
57
|
+
size: g(S).size
|
|
58
|
+
}, g(O), { icon: g(S).endIcon }), null, 16, ["size", "icon"])) : g(e)(g(b), "end") ? (p(), c("div", f(d({ key: 5 }, g(k))), [(p(), o(m(g(n)(g(b), "end"))))], 16)) : s("", !0)
|
|
60
59
|
], 64))]),
|
|
61
60
|
_: 1
|
|
62
61
|
}, 16, [
|
|
@@ -69,4 +68,4 @@ var b = /* @__PURE__ */ u({
|
|
|
69
68
|
}
|
|
70
69
|
});
|
|
71
70
|
//#endregion
|
|
72
|
-
export {
|
|
71
|
+
export { y as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LucideIcon } from '@lucide/vue';
|
|
2
1
|
import { AnchorHTMLAttributes, ButtonHTMLAttributes, HTMLAttributes, Slot } from 'vue';
|
|
3
2
|
import { ButtonColor, ButtonDensity, ButtonRounded, ButtonSize, ButtonVariant, MergeHtmlProps, MergeProps } from '@bridge-ui/core';
|
|
3
|
+
import { IconSource } from '../../Adapters/Icon';
|
|
4
4
|
import { IconProps } from '../Icon';
|
|
5
5
|
export interface ButtonSizeOverrides {}
|
|
6
6
|
export interface ButtonColorOverrides {}
|
|
@@ -102,7 +102,7 @@ export interface ButtonOwnProps {
|
|
|
102
102
|
*
|
|
103
103
|
* @default undefined
|
|
104
104
|
*/
|
|
105
|
-
endIcon?:
|
|
105
|
+
endIcon?: IconSource;
|
|
106
106
|
/**
|
|
107
107
|
* Whether the button is full width.
|
|
108
108
|
*
|
|
@@ -120,7 +120,7 @@ export interface ButtonOwnProps {
|
|
|
120
120
|
*
|
|
121
121
|
* @default undefined
|
|
122
122
|
*/
|
|
123
|
-
icon?:
|
|
123
|
+
icon?: IconSource;
|
|
124
124
|
/**
|
|
125
125
|
* Whether the button is loading.
|
|
126
126
|
*
|
|
@@ -144,7 +144,7 @@ export interface ButtonOwnProps {
|
|
|
144
144
|
*
|
|
145
145
|
* @default undefined
|
|
146
146
|
*/
|
|
147
|
-
startIcon?:
|
|
147
|
+
startIcon?: IconSource;
|
|
148
148
|
/**
|
|
149
149
|
* Label text when the default slot is not used.
|
|
150
150
|
*
|
|
@@ -7,7 +7,7 @@ export declare function useButton(props: ButtonOwnProps, libDefaults: ButtonLibD
|
|
|
7
7
|
merged: import('vue').ComputedRef<ButtonMerged>;
|
|
8
8
|
isMini: import('vue').ComputedRef<boolean>;
|
|
9
9
|
iconBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {}>>;
|
|
10
|
-
rootBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Omit<ButtonProps, "color" | "href" | "icon" | "size" | "classes" | "customProps" | "
|
|
10
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Omit<ButtonProps, "color" | "href" | "icon" | "size" | "classes" | "customProps" | "full" | "rounded" | "variant" | "text" | "loading" | "density" | "as" | "disabled" | "endIcon" | "startIcon">>>;
|
|
11
11
|
rootHref: import('vue').ComputedRef<string | undefined>;
|
|
12
12
|
rootType: import('vue').ComputedRef<"button" | undefined>;
|
|
13
13
|
endIconBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {}>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
|
|
2
2
|
import { computed as r, useAttrs as i } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { cn as a, mergeBridgeUILayeredClasses as o, splitComponentProps as s } from "@bridge-ui/core";
|
|
4
|
+
import { get as c, includes as l, isNil as u } from "es-toolkit/compat";
|
|
5
5
|
import { densityProps as d, roundedProps as f, variantProps as p } from "@bridge-ui/core/Tokens/Button";
|
|
6
6
|
//#region src/Components/Button/composables/useButton.ts
|
|
7
7
|
var m = [
|
|
@@ -23,7 +23,7 @@ var m = [
|
|
|
23
23
|
"customProps"
|
|
24
24
|
];
|
|
25
25
|
function h(h, g) {
|
|
26
|
-
let _ = i(), v = r(() =>
|
|
26
|
+
let _ = i(), v = r(() => s({
|
|
27
27
|
bridgeKeys: m,
|
|
28
28
|
props: {
|
|
29
29
|
..._,
|
|
@@ -40,22 +40,22 @@ function h(h, g) {
|
|
|
40
40
|
if (!(!w.value || D.value || !y.value.href)) return y.value.href;
|
|
41
41
|
}), M = r(() => {
|
|
42
42
|
if (!T.value) return;
|
|
43
|
-
let e =
|
|
44
|
-
return
|
|
43
|
+
let e = c(v.value.inheritedAttrs, "type");
|
|
44
|
+
return l([
|
|
45
45
|
"submit",
|
|
46
46
|
"reset",
|
|
47
47
|
"button"
|
|
48
48
|
], e) ? e : "button";
|
|
49
|
-
}), N = r(() =>
|
|
49
|
+
}), N = r(() => c(o(d, b.value?.tokens?.density), [y.value.density, y.value.size])), P = r(() => u(v.value.componentProps.variant) ? E.value ? "flat" : y.value.variant : v.value.componentProps.variant), F = r(() => c(o(p, b.value?.tokens?.variant), [P.value, y.value.color])), I = r(() => c(o(f, b.value?.tokens?.rounded), y.value.rounded));
|
|
50
50
|
return {
|
|
51
51
|
tag: C,
|
|
52
52
|
merged: y,
|
|
53
53
|
isMini: E,
|
|
54
|
-
iconBind: r(() => e(x.value?.icon, {},
|
|
54
|
+
iconBind: r(() => e(x.value?.icon, {}, a({
|
|
55
55
|
"shrink-0": !0,
|
|
56
56
|
[S.value.icon ?? ""]: !0
|
|
57
57
|
}))),
|
|
58
|
-
rootBind: r(() => e(x.value?.root, v.value.inheritedAttrs,
|
|
58
|
+
rootBind: r(() => e(x.value?.root, v.value.inheritedAttrs, a({
|
|
59
59
|
"inline-flex items-center justify-center": !0,
|
|
60
60
|
"cursor-pointer outline-none outline-hidden": !0,
|
|
61
61
|
"shrink-0": E.value,
|
|
@@ -64,9 +64,9 @@ function h(h, g) {
|
|
|
64
64
|
"w-full": !E.value && y.value.full,
|
|
65
65
|
"w-fit": !E.value && !y.value.full,
|
|
66
66
|
"group hover:shadow-xs": !E.value,
|
|
67
|
-
[
|
|
68
|
-
[
|
|
69
|
-
[
|
|
67
|
+
[c(F.value, "base") ?? ""]: !0,
|
|
68
|
+
[c(F.value, "hover") ?? ""]: !0,
|
|
69
|
+
[c(F.value, "focus") ?? ""]: !0,
|
|
70
70
|
"transition-all ease-in-out duration-200": !0,
|
|
71
71
|
"focus:ring-2": !0,
|
|
72
72
|
"focus:ring-offset-background-white dark:focus:ring-offset-background-dark": !0,
|
|
@@ -76,19 +76,19 @@ function h(h, g) {
|
|
|
76
76
|
}))),
|
|
77
77
|
rootHref: j,
|
|
78
78
|
rootType: M,
|
|
79
|
-
endIconBind: r(() => e(x.value?.endIcon, {},
|
|
79
|
+
endIconBind: r(() => e(x.value?.endIcon, {}, a({
|
|
80
80
|
"shrink-0": !0,
|
|
81
81
|
[S.value.endIcon ?? ""]: !0
|
|
82
82
|
}))),
|
|
83
83
|
endSlotBind: r(() => e(x.value?.end, {}, "inline-flex shrink-0 items-center")),
|
|
84
84
|
rootAriaBusy: k,
|
|
85
85
|
rootDisabled: O,
|
|
86
|
-
startIconBind: r(() => e(x.value?.startIcon, {},
|
|
86
|
+
startIconBind: r(() => e(x.value?.startIcon, {}, a({
|
|
87
87
|
"shrink-0": !0,
|
|
88
88
|
[S.value.startIcon ?? ""]: !0
|
|
89
89
|
}))),
|
|
90
90
|
startSlotBind: r(() => e(x.value?.start, {}, "inline-flex shrink-0 items-center")),
|
|
91
|
-
loadingIconBind: r(() => e(x.value?.loading, {},
|
|
91
|
+
loadingIconBind: r(() => e(x.value?.loading, {}, a({
|
|
92
92
|
"shrink-0 animate-spin": !0,
|
|
93
93
|
[S.value.loading ?? ""]: !0
|
|
94
94
|
}))),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { hasNamedSlot as e } from "../../../Utils/slotOrProp.js";
|
|
2
2
|
import { mergePartBind as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as r } from "../../../Utils/index.js";
|
|
3
3
|
import { computed as i, useAttrs as a, useSlots as o } from "vue";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { cn as s, mergeBridgeUILayeredClasses as c, splitComponentProps as l } from "@bridge-ui/core";
|
|
5
|
+
import { get as u } from "es-toolkit/compat";
|
|
6
6
|
import { paddingProps as d, roundedProps as f, shadowProps as p, variantProps as m } from "@bridge-ui/core/Tokens/Card";
|
|
7
7
|
//#region src/Components/Card/composables/useCard.ts
|
|
8
8
|
var h = [
|
|
@@ -16,7 +16,7 @@ var h = [
|
|
|
16
16
|
"customProps"
|
|
17
17
|
];
|
|
18
18
|
function g(g, _) {
|
|
19
|
-
let v = a(), y = o(), b = i(() =>
|
|
19
|
+
let v = a(), y = o(), b = i(() => l({
|
|
20
20
|
bridgeKeys: h,
|
|
21
21
|
props: {
|
|
22
22
|
...v,
|
|
@@ -32,44 +32,44 @@ function g(g, _) {
|
|
|
32
32
|
}), T = i(() => {
|
|
33
33
|
let e = y.default?.();
|
|
34
34
|
return !!(e && e.length > 0);
|
|
35
|
-
}), E = i(() => e(y, "footer")), D = i(() =>
|
|
36
|
-
if (x.value.variant === "elevated") return
|
|
37
|
-
}), A = i(() =>
|
|
35
|
+
}), E = i(() => e(y, "footer")), D = i(() => u(c(m, S.value?.tokens?.variant), x.value.variant)), O = i(() => x.value.borderless ? !1 : !!u(D.value, "border")), k = i(() => {
|
|
36
|
+
if (x.value.variant === "elevated") return u(c(p, S.value?.tokens?.shadow), x.value.shadow);
|
|
37
|
+
}), A = i(() => u(c(d, S.value?.tokens?.padding), x.value.padding)), j = i(() => u(c(f, S.value?.tokens?.rounded), x.value.rounded)), M = i(() => t(C.value?.body, {}, s({
|
|
38
38
|
grow: !0,
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
}))), N = i(() => t(C.value?.footer, {},
|
|
39
|
+
[u(A.value, "body") ?? ""]: !0,
|
|
40
|
+
[u(D.value, "text") ?? ""]: !0,
|
|
41
|
+
[u(w.value, "body") ?? ""]: !0
|
|
42
|
+
}))), N = i(() => t(C.value?.footer, {}, s({
|
|
43
43
|
"border-t": O.value,
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
[
|
|
49
|
-
}))), P = i(() => t(C.value?.header, {},
|
|
44
|
+
[u(A.value, "footer") ?? ""]: !0,
|
|
45
|
+
[u(D.value, "border") ?? ""]: O.value,
|
|
46
|
+
[u(D.value, "footer") ?? ""]: !0,
|
|
47
|
+
[u(j.value, "footer") ?? ""]: !0,
|
|
48
|
+
[u(w.value, "footer") ?? ""]: !0
|
|
49
|
+
}))), P = i(() => t(C.value?.header, {}, s({
|
|
50
50
|
"flex items-center justify-between": !0,
|
|
51
51
|
"border-b": O.value,
|
|
52
|
-
[
|
|
53
|
-
[
|
|
54
|
-
[
|
|
55
|
-
[
|
|
52
|
+
[u(A.value, "header") ?? ""]: !0,
|
|
53
|
+
[u(D.value, "border") ?? ""]: O.value,
|
|
54
|
+
[u(j.value, "header") ?? ""]: !0,
|
|
55
|
+
[u(w.value, "header") ?? ""]: !0
|
|
56
56
|
})));
|
|
57
57
|
return {
|
|
58
58
|
slots: y,
|
|
59
59
|
merged: x,
|
|
60
60
|
bodyBind: M,
|
|
61
|
-
rootBind: i(() => t(C.value?.root, b.value.inheritedAttrs,
|
|
61
|
+
rootBind: i(() => t(C.value?.root, b.value.inheritedAttrs, s({
|
|
62
62
|
"flex w-full flex-col": !0,
|
|
63
63
|
[k.value ?? ""]: !0,
|
|
64
|
-
[
|
|
65
|
-
[
|
|
66
|
-
[
|
|
64
|
+
[u(j.value, "root") ?? ""]: !0,
|
|
65
|
+
[u(D.value, "root") ?? ""]: !0,
|
|
66
|
+
[u(w.value, "root") ?? ""]: !0
|
|
67
67
|
}))),
|
|
68
68
|
hasFooter: E,
|
|
69
|
-
titleBind: i(() => t(C.value?.title, {},
|
|
69
|
+
titleBind: i(() => t(C.value?.title, {}, s({
|
|
70
70
|
"text-base font-medium whitespace-normal": !0,
|
|
71
|
-
[
|
|
72
|
-
[
|
|
71
|
+
[u(D.value, "text") ?? ""]: !0,
|
|
72
|
+
[u(w.value, "title") ?? ""]: !0
|
|
73
73
|
}))),
|
|
74
74
|
footerBind: N,
|
|
75
75
|
headerBind: P,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { useIconAdapter as e } from "../../Adapters/Icon/useIconAdapter.js";
|
|
2
|
+
import t from "../FormControl/FormControl.js";
|
|
3
|
+
import { useCheckbox as n } from "./composables/useCheckbox.js";
|
|
4
|
+
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, guardReactiveProps as l, mergeModels as u, mergeProps as d, normalizeClass as f, normalizeProps as p, openBlock as m, ref as h, resolveDynamicComponent as g, unref as _, useAttrs as v, useModel as y, withCtx as b } from "vue";
|
|
5
|
+
import { cn as x, resolveIconSource as S } from "@bridge-ui/core";
|
|
6
6
|
//#region src/Components/Checkbox/Checkbox.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
7
|
+
var C = ["for"], w = ["checked"], T = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "block h-0.5 w-[55%] rounded-full bg-white"
|
|
10
|
-
},
|
|
10
|
+
}, E = /* @__PURE__ */ c({
|
|
11
11
|
inheritAttrs: !1,
|
|
12
12
|
__name: "Checkbox",
|
|
13
|
-
props: /* @__PURE__ */
|
|
13
|
+
props: /* @__PURE__ */ u({
|
|
14
14
|
classes: {},
|
|
15
15
|
color: {},
|
|
16
16
|
customProps: {},
|
|
@@ -25,10 +25,10 @@ var x = ["for"], S = ["checked"], C = {
|
|
|
25
25
|
endLabel: {},
|
|
26
26
|
error: { type: Boolean },
|
|
27
27
|
errorMessage: {},
|
|
28
|
+
hideErrorMessage: { type: Boolean },
|
|
28
29
|
readonly: { type: Boolean },
|
|
29
30
|
required: { type: Boolean },
|
|
30
|
-
startLabel: {}
|
|
31
|
-
withoutErrorMessage: { type: Boolean }
|
|
31
|
+
startLabel: {}
|
|
32
32
|
}, {
|
|
33
33
|
modelValue: {
|
|
34
34
|
type: Boolean,
|
|
@@ -37,34 +37,34 @@ var x = ["for"], S = ["checked"], C = {
|
|
|
37
37
|
modelModifiers: {}
|
|
38
38
|
}),
|
|
39
39
|
emits: ["update:modelValue"],
|
|
40
|
-
setup(
|
|
41
|
-
let
|
|
42
|
-
...
|
|
43
|
-
...
|
|
40
|
+
setup(c) {
|
|
41
|
+
let u = v(), E = c, D = h(!!E.defaultChecked), O = y(c, "modelValue"), k = r(() => O.value ?? D.value), A = e(), j = r(() => S("check", A.value)), { merged: M, iconBind: N, inputRef: P, fieldBind: F, inputBind: I, isChecked: L, formControl: R, controlBind: z } = n(() => ({
|
|
42
|
+
...u,
|
|
43
|
+
...E
|
|
44
44
|
}), {
|
|
45
45
|
size: "md",
|
|
46
46
|
rounded: "sm",
|
|
47
47
|
color: "primary"
|
|
48
|
-
},
|
|
49
|
-
function
|
|
48
|
+
}, k);
|
|
49
|
+
function B(e) {
|
|
50
50
|
let t = e.target;
|
|
51
|
-
|
|
51
|
+
O.value = t.checked, D.value = t.checked;
|
|
52
52
|
}
|
|
53
|
-
return (
|
|
54
|
-
default:
|
|
53
|
+
return (e, n) => (m(), i(_(t), { field: _(R) }, {
|
|
54
|
+
default: b(() => [s("label", d(_(F), { for: _(R).controlId.value }), [s("input", d({
|
|
55
55
|
ref_key: "inputRef",
|
|
56
|
-
ref:
|
|
57
|
-
},
|
|
58
|
-
checked:
|
|
59
|
-
onChange:
|
|
60
|
-
}), null, 16,
|
|
56
|
+
ref: P
|
|
57
|
+
}, _(I), {
|
|
58
|
+
checked: _(L),
|
|
59
|
+
onChange: B
|
|
60
|
+
}), null, 16, w), s("span", p(l(_(z))), [_(L) && !_(M).indeterminate ? (m(), i(g(j.value), {
|
|
61
61
|
key: 0,
|
|
62
62
|
"stroke-width": 3,
|
|
63
|
-
class:
|
|
64
|
-
}, null, 8, ["class"])) :
|
|
63
|
+
class: f(_(x)("h-[65%] w-[65%]", _(N).class))
|
|
64
|
+
}, null, 8, ["class"])) : _(M).indeterminate ? (m(), o("span", T)) : a("", !0)], 16)], 16, C)]),
|
|
65
65
|
_: 1
|
|
66
66
|
}, 8, ["field"]));
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
//#endregion
|
|
70
|
-
export {
|
|
70
|
+
export { E as default };
|
|
@@ -235,13 +235,13 @@ export declare function useCheckbox(props: MaybeRefOrGetter<CheckboxOwnProps>, l
|
|
|
235
235
|
slots: Readonly<{
|
|
236
236
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
237
237
|
}>;
|
|
238
|
-
merged: import('vue').ComputedRef<Omit<import('../../FormControl').FormControlOwnProps, "
|
|
239
|
-
size: NonNullable<keyof import('@bridge-ui/core').LabelSize | undefined>;
|
|
238
|
+
merged: import('vue').ComputedRef<Omit<import('../../FormControl').FormControlOwnProps, "error" | "size" | "hideErrorMessage"> & {
|
|
240
239
|
error: NonNullable<boolean | undefined>;
|
|
241
|
-
|
|
240
|
+
size: NonNullable<keyof import('@bridge-ui/core').LabelSize | undefined>;
|
|
241
|
+
hideErrorMessage: NonNullable<boolean | undefined>;
|
|
242
242
|
}>;
|
|
243
243
|
rowBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
244
|
-
rootBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<Omit<import('../../FormControl').FormControlOwnProps, "field">, "
|
|
244
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<Omit<import('../../FormControl').FormControlOwnProps, "field">, "error" | "size" | "classes" | "customProps" | "disabled" | "required" | "controlId" | "description" | "endLabel" | "errorMessage" | "hideErrorMessage" | "readonly" | "startLabel">>>>;
|
|
245
245
|
controlId: import('vue').ComputedRef<string>;
|
|
246
246
|
isDisabled: import('vue').ComputedRef<boolean>;
|
|
247
247
|
isReadonly: import('vue').ComputedRef<boolean>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
|
|
2
2
|
import { useFormControl as r } from "../../FormControl/composables/useFormControl.js";
|
|
3
3
|
import { computed as i, ref as a, toValue as o, useAttrs as s, watchEffect as c } from "vue";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { cn as l, mergeBridgeUILayeredClasses as u, splitComponentProps as d } from "@bridge-ui/core";
|
|
5
|
+
import { get as f, omit as p } from "es-toolkit/compat";
|
|
6
6
|
import { colorProps as m, invalidatedProps as h, roundedProps as g, sizeProps as _ } from "@bridge-ui/core/Tokens/Checkbox";
|
|
7
7
|
//#region src/Components/Checkbox/composables/useCheckbox.ts
|
|
8
8
|
var v = [
|
|
@@ -20,9 +20,9 @@ function y(y, b, x) {
|
|
|
20
20
|
...o(y)
|
|
21
21
|
}), {
|
|
22
22
|
error: !1,
|
|
23
|
-
|
|
23
|
+
hideErrorMessage: !1,
|
|
24
24
|
size: b.size ?? "sm"
|
|
25
|
-
}), T = i(() =>
|
|
25
|
+
}), T = i(() => d({
|
|
26
26
|
bridgeKeys: v,
|
|
27
27
|
props: {
|
|
28
28
|
...S,
|
|
@@ -35,7 +35,7 @@ function y(y, b, x) {
|
|
|
35
35
|
}), O = i(() => E.value.customProps), k = n({
|
|
36
36
|
entry: D,
|
|
37
37
|
props: () => T.value.componentProps
|
|
38
|
-
}), A = i(() => !!o(x)), j = i(() =>
|
|
38
|
+
}), A = i(() => !!o(x)), j = i(() => f(u(m, D.value?.tokens?.color), E.value.color ?? "primary")), M = i(() => u(h, D.value?.tokens?.invalidated)), N = i(() => w.invalidated.value ? M.value : j.value), P = i(() => f(u(_, D.value?.tokens?.size), E.value.size ?? "sm")), F = i(() => f(u(g, D.value?.tokens?.rounded), E.value.rounded ?? "sm"));
|
|
39
39
|
c(() => {
|
|
40
40
|
C.value && (C.value.indeterminate = !!E.value.indeterminate);
|
|
41
41
|
});
|
|
@@ -43,10 +43,10 @@ function y(y, b, x) {
|
|
|
43
43
|
...O.value?.input,
|
|
44
44
|
...w.controlBind.value,
|
|
45
45
|
type: "checkbox"
|
|
46
|
-
},
|
|
46
|
+
}, p(T.value.inheritedAttrs, ["class"]), l({
|
|
47
47
|
"sr-only": !0,
|
|
48
48
|
[k.value.input ?? ""]: !0
|
|
49
|
-
}))), L = i(() => e(O.value?.control, { "aria-hidden": !0 },
|
|
49
|
+
}))), L = i(() => e(O.value?.control, { "aria-hidden": !0 }, l({
|
|
50
50
|
"inline-flex shrink-0 items-center justify-center border shadow-sm transition ease-in-out duration-100": !0,
|
|
51
51
|
"pointer-events-none": !0,
|
|
52
52
|
[P.value ?? ""]: !0,
|
|
@@ -57,12 +57,12 @@ function y(y, b, x) {
|
|
|
57
57
|
})));
|
|
58
58
|
return {
|
|
59
59
|
merged: E,
|
|
60
|
-
iconBind: i(() => e(O.value?.icon, {},
|
|
60
|
+
iconBind: i(() => e(O.value?.icon, {}, l({
|
|
61
61
|
"text-white": !0,
|
|
62
62
|
[k.value.icon ?? ""]: !0
|
|
63
63
|
}))),
|
|
64
64
|
inputRef: C,
|
|
65
|
-
fieldBind: i(() => e({}, {},
|
|
65
|
+
fieldBind: i(() => e({}, {}, l({
|
|
66
66
|
"relative inline-flex shrink-0 cursor-pointer items-center": !0,
|
|
67
67
|
"has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-offset-2": !0,
|
|
68
68
|
[N.value?.focus ?? ""]: !0
|
|
@@ -2,9 +2,8 @@ import { hasNamedSlot as e, resolveNamedSlot as t } from "../../Utils/slotOrProp
|
|
|
2
2
|
import n from "../Icon/Icon.js";
|
|
3
3
|
import { useChip as r } from "./composables/useChip.js";
|
|
4
4
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, mergeProps as p, normalizeProps as m, openBlock as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, useSlots as y } from "vue";
|
|
5
|
-
import { X as b } from "@lucide/vue";
|
|
6
5
|
//#region src/Components/Chip/Chip.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
6
|
+
var b = /* @__PURE__ */ d({
|
|
8
7
|
inheritAttrs: !1,
|
|
9
8
|
__name: "Chip",
|
|
10
9
|
props: {
|
|
@@ -23,13 +22,13 @@ var x = /* @__PURE__ */ d({
|
|
|
23
22
|
size: { default: "md" }
|
|
24
23
|
},
|
|
25
24
|
emits: ["dismiss"],
|
|
26
|
-
setup(d, { emit:
|
|
27
|
-
let
|
|
28
|
-
return (r, a) => (h(), c("span", m(f(v(
|
|
29
|
-
onClick: a[0] ||= (...e) => v(
|
|
30
|
-
onKeydown: a[1] ||= (...e) => v(
|
|
31
|
-
}), [u(v(n), p({ icon:
|
|
25
|
+
setup(d, { emit: b }) {
|
|
26
|
+
let x = y(), { merged: S, rootBind: C, labelBind: w, clearBind: T, clearIconSize: E, handleDismiss: D, handleClearKeyDown: O } = r(d, { size: "md" }, b), k = a(() => S.value.customProps?.clearIcon), A = a(() => E.value), j = a(() => e(x, "default") || !!S.value.label);
|
|
27
|
+
return (r, a) => (h(), c("span", m(f(v(C))), [j.value ? (h(), c("span", m(p({ key: 0 }, v(w))), [v(e)(v(x), "default") ? (h(), o(g(v(t)(v(x), "default")), { key: 0 })) : (h(), c(i, { key: 1 }, [l(_(d.label), 1)], 64))], 16)) : s("", !0), d.dismissible ? (h(), c("span", p({ key: 1 }, v(T), {
|
|
28
|
+
onClick: a[0] ||= (...e) => v(D) && v(D)(...e),
|
|
29
|
+
onKeydown: a[1] ||= (...e) => v(O) && v(O)(...e)
|
|
30
|
+
}), [u(v(n), p({ icon: "clear" }, k.value, { size: A.value }), null, 16, ["size"])], 16)) : s("", !0)], 16));
|
|
32
31
|
}
|
|
33
32
|
});
|
|
34
33
|
//#endregion
|
|
35
|
-
export {
|
|
34
|
+
export { b as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
|
|
2
2
|
import { computed as r, useAttrs as i } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { cn as a, mergeBridgeUILayeredClasses as o, splitComponentProps as s } from "@bridge-ui/core";
|
|
4
|
+
import { get as c } from "es-toolkit/compat";
|
|
5
5
|
import { sizeProps as l } from "@bridge-ui/core/Tokens/Chip";
|
|
6
6
|
//#region src/Components/Chip/composables/useChip.ts
|
|
7
7
|
var u = [
|
|
@@ -14,7 +14,7 @@ var u = [
|
|
|
14
14
|
"dismissible"
|
|
15
15
|
];
|
|
16
16
|
function d(d, f, p) {
|
|
17
|
-
let m = i(), h = r(() =>
|
|
17
|
+
let m = i(), h = r(() => s({
|
|
18
18
|
bridgeKeys: u,
|
|
19
19
|
props: {
|
|
20
20
|
...m,
|
|
@@ -27,12 +27,12 @@ function d(d, f, p) {
|
|
|
27
27
|
}), v = n({
|
|
28
28
|
entry: _,
|
|
29
29
|
props: () => h.value.componentProps
|
|
30
|
-
}), y = r(() => g.value.customProps), b = r(() =>
|
|
30
|
+
}), y = r(() => g.value.customProps), b = r(() => c(o(l, _.value?.tokens?.size), g.value.size ?? "md")), x = r(() => b.value?.clear ?? "md"), S = r(() => e(y.value?.root, h.value.inheritedAttrs, a({
|
|
31
31
|
"inline-flex max-w-full items-center bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-100": !0,
|
|
32
32
|
"opacity-50 pointer-events-none": g.value.disabled === !0,
|
|
33
33
|
[b.value?.root ?? ""]: !0,
|
|
34
34
|
[v.value.root ?? ""]: !0
|
|
35
|
-
}))), C = r(() => e(y.value?.label, {},
|
|
35
|
+
}))), C = r(() => e(y.value?.label, {}, a({
|
|
36
36
|
truncate: !0,
|
|
37
37
|
[b.value?.label ?? ""]: !0,
|
|
38
38
|
[v.value.label ?? ""]: !0
|
|
@@ -41,7 +41,7 @@ function d(d, f, p) {
|
|
|
41
41
|
tabindex: g.value.disabled ? -1 : 0,
|
|
42
42
|
"aria-label": g.value.clearLabel ?? "Remove",
|
|
43
43
|
"aria-disabled": g.value.disabled ? !0 : void 0
|
|
44
|
-
},
|
|
44
|
+
}, a({
|
|
45
45
|
"inline-flex shrink-0 cursor-pointer items-center justify-center rounded-sm text-gray-400 transition-colors duration-150 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-200": !0,
|
|
46
46
|
[v.value.clear ?? ""]: !0
|
|
47
47
|
})));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
|
|
2
2
|
import { computed as r, useAttrs as i } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { cn as a, mergeBridgeUILayeredClasses as o, splitComponentProps as s } from "@bridge-ui/core";
|
|
4
|
+
import { get as c } from "es-toolkit/compat";
|
|
5
5
|
import { colorProps as l, orientationProps as u } from "@bridge-ui/core/Tokens/Divider";
|
|
6
6
|
//#region src/Components/Divider/composables/useDivider.ts
|
|
7
7
|
var d = [
|
|
@@ -10,7 +10,7 @@ var d = [
|
|
|
10
10
|
"orientation"
|
|
11
11
|
];
|
|
12
12
|
function f(f, p) {
|
|
13
|
-
let m = i(), h = r(() =>
|
|
13
|
+
let m = i(), h = r(() => s({
|
|
14
14
|
props: {
|
|
15
15
|
...m,
|
|
16
16
|
...f
|
|
@@ -23,13 +23,13 @@ function f(f, p) {
|
|
|
23
23
|
}), v = n({
|
|
24
24
|
entry: _,
|
|
25
25
|
props: () => h.value.componentProps
|
|
26
|
-
}), y = r(() =>
|
|
26
|
+
}), y = r(() => c(o(l, _.value?.tokens?.color), g.value.color)), b = r(() => c(o(u, _.value?.tokens?.orientation), g.value.orientation));
|
|
27
27
|
return {
|
|
28
28
|
merged: g,
|
|
29
29
|
rootBind: r(() => e({}, h.value.inheritedAttrs, {
|
|
30
30
|
role: "separator",
|
|
31
31
|
"aria-orientation": g.value.orientation,
|
|
32
|
-
class:
|
|
32
|
+
class: a({
|
|
33
33
|
"m-0 shrink-0 border-0": !0,
|
|
34
34
|
[y.value ?? ""]: !0,
|
|
35
35
|
[b.value ?? ""]: !0,
|