@bridge-ui/vue 0.25.0 → 0.27.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-components/SKILL.md +2 -1
- package/dist/Components/ActionFooter/ActionFooter.vue.d.ts +2 -2
- package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +4 -4
- package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +1 -1
- package/dist/Components/BaseField/composables/useBaseField.js +0 -1
- package/dist/Components/Calendar/Calendar.vue_vue_type_script_setup_true_lang.js +62 -58
- package/dist/Components/Calendar/calendar.types.d.ts +8 -0
- package/dist/Components/Calendar/composables/useCalendar.d.ts +2 -1
- package/dist/Components/Calendar/composables/useCalendar.js +188 -177
- package/dist/Components/CalendarRange/CalendarRange.vue_vue_type_script_setup_true_lang.js +96 -92
- package/dist/Components/CalendarRange/calendarRange.types.d.ts +8 -0
- package/dist/Components/CalendarRange/composables/useCalendarRange.d.ts +2 -1
- package/dist/Components/CalendarRange/composables/useCalendarRange.js +203 -220
- package/dist/Components/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/Components/Checkbox/composables/useCheckbox.d.ts +1 -0
- package/dist/Components/Checkbox/composables/useCheckbox.js +2 -1
- package/dist/Components/ColorField/ColorField.vue.d.ts +2 -2
- package/dist/Components/ColorField/composables/useColorField.js +1 -1
- package/dist/Components/ColorPicker/ColorPicker.vue.d.ts +2 -2
- package/dist/Components/DateField/DateField.vue.d.ts +2 -2
- package/dist/Components/DateField/composables/useDateField.js +1 -1
- package/dist/Components/DatePicker/DatePicker.vue.d.ts +2 -2
- package/dist/Components/DatePicker/DatePicker.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/DateRangeField/DateRangeField.vue.d.ts +2 -2
- package/dist/Components/DateRangeField/composables/useDateRangeField.js +1 -1
- package/dist/Components/DateRangePicker/DateRangePicker.vue.d.ts +2 -2
- package/dist/Components/DateRangePicker/DateRangePicker.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/DateTimeField/DateTimeField.vue.d.ts +2 -2
- package/dist/Components/DateTimeField/composables/useDateTimeField.js +1 -1
- package/dist/Components/DateTimePicker/DateTimePicker.vue.d.ts +2 -2
- package/dist/Components/DateTimePicker/DateTimePicker.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/DateTimeRangeField/DateTimeRangeField.vue.d.ts +2 -2
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.js +1 -1
- package/dist/Components/DateTimeRangePicker/DateTimeRangePicker.vue.d.ts +2 -2
- package/dist/Components/DateTimeRangePicker/DateTimeRangePicker.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/Drawer/Drawer.vue.d.ts +1 -1
- package/dist/Components/Drawer/composables/useDrawer.d.ts +1 -1
- package/dist/Components/FormControl/composables/useFormControl.d.ts +1 -0
- package/dist/Components/FormControl/composables/useFormControl.js +14 -11
- package/dist/Components/FormField/composables/useFormField.js +0 -1
- package/dist/Components/List/List.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/Components/List/composables/useList.d.ts +1 -1
- package/dist/Components/List/composables/useList.js +5 -1
- package/dist/Components/List/index.d.ts +1 -1
- package/dist/Components/List/list.types.d.ts +10 -1
- package/dist/Components/List/listInjectionKey.d.ts +2 -0
- package/dist/Components/ListItem/ListItem.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/ListItem/composables/useListItem.d.ts +1 -2
- package/dist/Components/ListItem/composables/useListItem.js +92 -86
- package/dist/Components/ListItem/listItem.types.d.ts +8 -0
- package/dist/Components/ListSection/composables/useListSection.js +31 -29
- package/dist/Components/Listbox/Listbox.vue.d.ts +2 -2
- package/dist/Components/Listbox/listbox.types.d.ts +2 -2
- package/dist/Components/Modal/Modal.vue.d.ts +1 -1
- package/dist/Components/Modal/composables/useModal.d.ts +1 -1
- package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +30 -30
- package/dist/Components/NumberField/composables/useNumberField.d.ts +1 -0
- package/dist/Components/NumberField/composables/useNumberField.js +11 -10
- package/dist/Components/OtpField/composables/useOtpField.js +7 -1
- package/dist/Components/Pagination/Pagination.vue.d.ts +2 -2
- package/dist/Components/QrCode/QrCode.js +4 -0
- package/dist/Components/QrCode/QrCode.vue.d.ts +17 -0
- package/dist/Components/QrCode/QrCode.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/Components/QrCode/composables/useQrCode.d.ts +881 -0
- package/dist/Components/QrCode/composables/useQrCode.js +137 -0
- package/dist/Components/QrCode/index.d.ts +3 -0
- package/dist/Components/QrCode/index.js +3 -0
- package/dist/Components/QrCode/qrCode.types.d.ts +168 -0
- package/dist/Components/Radio/Radio.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/Components/Radio/composables/useRadio.d.ts +1 -0
- package/dist/Components/Radio/composables/useRadio.js +2 -1
- package/dist/Components/Select/Select.vue.d.ts +4 -4
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/Components/Select/composables/useSelect.js +1 -1
- package/dist/Components/Sidebar/SidebarList.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/Sidebar/SidebarListItem.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/Slider/composables/useSlider.d.ts +2 -2
- package/dist/Components/Snackbar/composables/useSnackbar.d.ts +1 -1
- package/dist/Components/Switch/Switch.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/Components/Switch/composables/useSwitch.d.ts +1 -0
- package/dist/Components/Switch/composables/useSwitch.js +2 -1
- package/dist/Components/TimeField/TimeField.vue.d.ts +2 -2
- package/dist/Components/TimeField/composables/useTimeField.js +1 -1
- package/dist/Components/TimePicker/TimePicker.vue.d.ts +2 -2
- package/dist/Components/TimeRangeField/TimeRangeField.vue.d.ts +2 -2
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.js +1 -1
- package/dist/Components/TimeRangePicker/TimeRangePicker.vue.d.ts +2 -2
- package/dist/Utils/index.d.ts +2 -0
- package/dist/Utils/index.js +40 -39
- package/dist/Utils/useWheelNavigation.d.ts +11 -0
- package/dist/Utils/useWheelNavigation.js +20 -0
- package/dist/augments.d.ts +7 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +84 -82
- package/docs/README.md +1 -0
- package/docs/components/Calendar.md +31 -30
- package/docs/components/CalendarRange.md +29 -28
- package/docs/components/I18n.md +2 -0
- package/docs/components/List.md +43 -27
- package/docs/components/QrCode.md +134 -0
- package/package.json +3 -3
|
@@ -8,18 +8,18 @@ type __VLS_ModelProps = {
|
|
|
8
8
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
9
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
10
|
clear: () => any;
|
|
11
|
-
apply: () => any;
|
|
12
11
|
cancel: () => any;
|
|
13
12
|
change: (value: DateRangeValue | null) => any;
|
|
14
13
|
close: () => any;
|
|
14
|
+
apply: () => any;
|
|
15
15
|
open: () => any;
|
|
16
16
|
"update:modelValue": (value: DateRangeValue | null | undefined) => any;
|
|
17
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
18
|
onClear?: (() => any) | undefined;
|
|
19
|
-
onApply?: (() => any) | undefined;
|
|
20
19
|
onCancel?: (() => any) | undefined;
|
|
21
20
|
onChange?: ((value: DateRangeValue | null) => any) | undefined;
|
|
22
21
|
onClose?: (() => any) | undefined;
|
|
22
|
+
onApply?: (() => any) | undefined;
|
|
23
23
|
onOpen?: (() => any) | undefined;
|
|
24
24
|
"onUpdate:modelValue"?: ((value: DateRangeValue | null | undefined) => any) | undefined;
|
|
25
25
|
}>, {
|
|
@@ -44,7 +44,7 @@ function T(T, E, D) {
|
|
|
44
44
|
M.value = e instanceof HTMLElement ? e : null;
|
|
45
45
|
};
|
|
46
46
|
function B(e) {
|
|
47
|
-
j.value !== e && (j.value = e, D(e ? "open" : "close"));
|
|
47
|
+
e && (T.disabled || T.readonly) || j.value !== e && (j.value = e, D(e ? "open" : "close"));
|
|
48
48
|
}
|
|
49
49
|
let V = l(() => h(N.value.inheritedAttrs, ["class"])), H = l(() => {
|
|
50
50
|
let e = C({
|
|
@@ -7,14 +7,14 @@ type __VLS_ModelProps = {
|
|
|
7
7
|
};
|
|
8
8
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
9
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
-
apply: () => any;
|
|
11
10
|
cancel: () => any;
|
|
12
11
|
change: (value: DateRangeValue | null) => any;
|
|
12
|
+
apply: () => any;
|
|
13
13
|
"update:modelValue": (...args: unknown[]) => any;
|
|
14
14
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
-
onApply?: (() => any) | undefined;
|
|
16
15
|
onCancel?: (() => any) | undefined;
|
|
17
16
|
onChange?: ((value: DateRangeValue | null) => any) | undefined;
|
|
17
|
+
onApply?: (() => any) | undefined;
|
|
18
18
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
showFooter: boolean;
|
|
@@ -7,18 +7,18 @@ type __VLS_ModelProps = {
|
|
|
7
7
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
8
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
9
|
clear: () => any;
|
|
10
|
-
apply: () => any;
|
|
11
10
|
cancel: () => any;
|
|
12
11
|
change: (value: Date | null) => any;
|
|
13
12
|
close: () => any;
|
|
13
|
+
apply: () => any;
|
|
14
14
|
open: () => any;
|
|
15
15
|
"update:modelValue": (value: Date | null | undefined) => any;
|
|
16
16
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
17
|
onClear?: (() => any) | undefined;
|
|
18
|
-
onApply?: (() => any) | undefined;
|
|
19
18
|
onCancel?: (() => any) | undefined;
|
|
20
19
|
onChange?: ((value: Date | null) => any) | undefined;
|
|
21
20
|
onClose?: (() => any) | undefined;
|
|
21
|
+
onApply?: (() => any) | undefined;
|
|
22
22
|
onOpen?: (() => any) | undefined;
|
|
23
23
|
"onUpdate:modelValue"?: ((value: Date | null | undefined) => any) | undefined;
|
|
24
24
|
}>, {
|
|
@@ -32,7 +32,7 @@ function T(T, E, D) {
|
|
|
32
32
|
N.value = e instanceof HTMLElement ? e : null;
|
|
33
33
|
};
|
|
34
34
|
function W(e) {
|
|
35
|
-
M.value !== e && (M.value = e, D(e ? "open" : "close"));
|
|
35
|
+
e && (T.disabled || T.readonly) || M.value !== e && (M.value = e, D(e ? "open" : "close"));
|
|
36
36
|
}
|
|
37
37
|
let G = u(() => g(P.value.inheritedAttrs, ["class"])), K = u(() => {
|
|
38
38
|
let e = S({
|
|
@@ -6,14 +6,14 @@ type __VLS_ModelProps = {
|
|
|
6
6
|
};
|
|
7
7
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
8
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
-
apply: () => any;
|
|
10
9
|
cancel: () => any;
|
|
11
10
|
change: (value: Date | null) => any;
|
|
11
|
+
apply: () => any;
|
|
12
12
|
"update:modelValue": (...args: unknown[]) => any;
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
-
onApply?: (() => any) | undefined;
|
|
15
14
|
onCancel?: (() => any) | undefined;
|
|
16
15
|
onChange?: ((value: Date | null) => any) | undefined;
|
|
16
|
+
onApply?: (() => any) | undefined;
|
|
17
17
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
18
18
|
}>, {
|
|
19
19
|
showFooter: boolean;
|
package/dist/Components/DateTimePicker/DateTimePicker.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -62,6 +62,7 @@ var w = /*@__PURE__*/ d({
|
|
|
62
62
|
defaultView: "date"
|
|
63
63
|
}, O, T);
|
|
64
64
|
return (n, a) => (_(), s("div", g(f(x(A))), [c("div", { class: h(x(P)) }, [c("div", { class: h(x(L)) }, [u(t, {
|
|
65
|
+
"wheel-navigation": "",
|
|
65
66
|
fill: x(k).fill,
|
|
66
67
|
color: x(k).color,
|
|
67
68
|
error: x(k).error,
|
|
@@ -8,18 +8,18 @@ type __VLS_ModelProps = {
|
|
|
8
8
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
9
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
10
|
clear: () => any;
|
|
11
|
-
apply: () => any;
|
|
12
11
|
cancel: () => any;
|
|
13
12
|
change: (value: DateRangeValue | null) => any;
|
|
14
13
|
close: () => any;
|
|
14
|
+
apply: () => any;
|
|
15
15
|
open: () => any;
|
|
16
16
|
"update:modelValue": (value: DateRangeValue | null | undefined) => any;
|
|
17
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
18
|
onClear?: (() => any) | undefined;
|
|
19
|
-
onApply?: (() => any) | undefined;
|
|
20
19
|
onCancel?: (() => any) | undefined;
|
|
21
20
|
onChange?: ((value: DateRangeValue | null) => any) | undefined;
|
|
22
21
|
onClose?: (() => any) | undefined;
|
|
22
|
+
onApply?: (() => any) | undefined;
|
|
23
23
|
onOpen?: (() => any) | undefined;
|
|
24
24
|
"onUpdate:modelValue"?: ((value: DateRangeValue | null | undefined) => any) | undefined;
|
|
25
25
|
}>, {
|
|
@@ -30,7 +30,7 @@ function T(_, T, E) {
|
|
|
30
30
|
M.value = e instanceof HTMLElement ? e : null;
|
|
31
31
|
};
|
|
32
32
|
function B(e) {
|
|
33
|
-
j.value !== e && (j.value = e, E(e ? "open" : "close"));
|
|
33
|
+
e && (_.disabled || _.readonly) || j.value !== e && (j.value = e, E(e ? "open" : "close"));
|
|
34
34
|
}
|
|
35
35
|
let V = u(() => g(N.value.inheritedAttrs, ["class"])), H = u(() => {
|
|
36
36
|
let e = C({
|
|
@@ -7,14 +7,14 @@ type __VLS_ModelProps = {
|
|
|
7
7
|
};
|
|
8
8
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
9
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
-
apply: () => any;
|
|
11
10
|
cancel: () => any;
|
|
12
11
|
change: (value: DateRangeValue | null) => any;
|
|
12
|
+
apply: () => any;
|
|
13
13
|
"update:modelValue": (...args: unknown[]) => any;
|
|
14
14
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
-
onApply?: (() => any) | undefined;
|
|
16
15
|
onCancel?: (() => any) | undefined;
|
|
17
16
|
onChange?: ((value: DateRangeValue | null) => any) | undefined;
|
|
17
|
+
onApply?: (() => any) | undefined;
|
|
18
18
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
showFooter: boolean;
|
|
@@ -62,6 +62,7 @@ var w = /*@__PURE__*/ d({
|
|
|
62
62
|
orientation: "horizontal"
|
|
63
63
|
}, O, T);
|
|
64
64
|
return (n, a) => (_(), s("div", g(f(x(A))), [c("div", { class: h(x(F)) }, [c("div", { class: h(x(R)) }, [u(t, {
|
|
65
|
+
"wheel-navigation": "",
|
|
65
66
|
fill: x(k).fill,
|
|
66
67
|
color: x(k).color,
|
|
67
68
|
error: x(k).error,
|
|
@@ -16,6 +16,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
16
16
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
17
17
|
"onShow-change"?: ((show: boolean) => any) | undefined;
|
|
18
18
|
}>, {
|
|
19
|
+
scroll: keyof import('@bridge-ui/core/Tokens').DrawerScroll;
|
|
19
20
|
autoFocus: boolean;
|
|
20
21
|
closeOnEscape: boolean;
|
|
21
22
|
closeOnOverlay: boolean;
|
|
@@ -26,7 +27,6 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
26
27
|
keepMounted: boolean;
|
|
27
28
|
persistent: boolean;
|
|
28
29
|
placement: keyof import('@bridge-ui/core/Tokens').DrawerPlacement;
|
|
29
|
-
scroll: keyof import('@bridge-ui/core/Tokens').DrawerScroll;
|
|
30
30
|
teleportTo: string | false;
|
|
31
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
32
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -34,7 +34,7 @@ export declare function useDrawer(props: DrawerOwnProps, libDefaults: DrawerLibD
|
|
|
34
34
|
};
|
|
35
35
|
"aria-hidden": boolean | undefined;
|
|
36
36
|
class: string;
|
|
37
|
-
}, "class", import('vue').HTMLAttributes | undefined, Omit<DrawerProps, "size" | "classes" | "customProps" | "transition" | "ariaLabel" | "ariaLabelledBy" | "autoFocus" | "
|
|
37
|
+
}, "class", import('vue').HTMLAttributes | undefined, Omit<DrawerProps, "size" | "blur" | "scroll" | "classes" | "customProps" | "transition" | "ariaLabel" | "ariaLabelledBy" | "autoFocus" | "closeOnEscape" | "closeOnOverlay" | "disableEnforceFocus" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "persistent" | "placement" | "stackId" | "teleportTo">>>;
|
|
38
38
|
panelBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
39
39
|
"data-drawer-part": string;
|
|
40
40
|
"data-state": "open" | "closed";
|
|
@@ -45,6 +45,7 @@ export declare function useFormControl(props: MaybeRefOrGetter<Omit<FormControlO
|
|
|
45
45
|
errorMessageBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", HTMLAttributes | undefined, {
|
|
46
46
|
id: string;
|
|
47
47
|
}>>;
|
|
48
|
+
preventReadonlyChange: (event: Event) => void;
|
|
48
49
|
showErrorMessageContent: import('vue').ComputedRef<boolean>;
|
|
49
50
|
reservesErrorMessageSpace: import('vue').ComputedRef<boolean>;
|
|
50
51
|
};
|
|
@@ -45,7 +45,6 @@ function _(_, v, y = {}) {
|
|
|
45
45
|
}), L = a(() => u(f, T.value.size ?? "md")), R = a(() => n(O.value?.root, d(C.value.inheritedAttrs, ["style"]), p({
|
|
46
46
|
"group/form-control relative w-full": !0,
|
|
47
47
|
"aria-disabled:pointer-events-none aria-disabled:select-none aria-disabled:opacity-60 aria-disabled:cursor-not-allowed": !0,
|
|
48
|
-
"aria-readonly:pointer-events-none aria-readonly:select-none": !0,
|
|
49
48
|
[k.value.root ?? ""]: !0,
|
|
50
49
|
[S.class]: !!S.class
|
|
51
50
|
}))), z = a(() => n(O.value?.row, {}, p({
|
|
@@ -58,7 +57,7 @@ function _(_, v, y = {}) {
|
|
|
58
57
|
error: A.value,
|
|
59
58
|
required: T.value.required,
|
|
60
59
|
classes: { root: p({
|
|
61
|
-
"cursor-pointer": !
|
|
60
|
+
"cursor-pointer": !M.value,
|
|
62
61
|
[k.value[e] ?? ""]: !0
|
|
63
62
|
}) }
|
|
64
63
|
});
|
|
@@ -76,7 +75,17 @@ function _(_, v, y = {}) {
|
|
|
76
75
|
"text-error-600 dark:text-error-400": !0,
|
|
77
76
|
[L.value ?? ""]: !0,
|
|
78
77
|
[k.value.errorMessage ?? ""]: !0
|
|
79
|
-
})))
|
|
78
|
+
}))), U = a(() => ({
|
|
79
|
+
id: N.value,
|
|
80
|
+
disabled: j.value,
|
|
81
|
+
readonly: M.value,
|
|
82
|
+
"aria-describedby": I.value,
|
|
83
|
+
required: T.value.required || void 0,
|
|
84
|
+
"aria-invalid": A.value || void 0
|
|
85
|
+
}));
|
|
86
|
+
function W(e) {
|
|
87
|
+
M.value && e.preventDefault();
|
|
88
|
+
}
|
|
80
89
|
return {
|
|
81
90
|
slots: x,
|
|
82
91
|
merged: T,
|
|
@@ -85,18 +94,12 @@ function _(_, v, y = {}) {
|
|
|
85
94
|
controlId: N,
|
|
86
95
|
isDisabled: j,
|
|
87
96
|
isReadonly: M,
|
|
88
|
-
controlBind:
|
|
89
|
-
id: N.value,
|
|
90
|
-
disabled: j.value,
|
|
91
|
-
readonly: M.value,
|
|
92
|
-
"aria-describedby": I.value,
|
|
93
|
-
required: T.value.required || void 0,
|
|
94
|
-
"aria-invalid": A.value || void 0
|
|
95
|
-
})),
|
|
97
|
+
controlBind: U,
|
|
96
98
|
invalidated: A,
|
|
97
99
|
fieldLabelProps: B,
|
|
98
100
|
descriptionBind: V,
|
|
99
101
|
errorMessageBind: H,
|
|
102
|
+
preventReadonlyChange: W,
|
|
100
103
|
showErrorMessageContent: F,
|
|
101
104
|
reservesErrorMessageSpace: P
|
|
102
105
|
};
|
|
@@ -93,7 +93,6 @@ function v(l, v, y = {}) {
|
|
|
93
93
|
}, h({
|
|
94
94
|
"group w-full relative": !0,
|
|
95
95
|
"aria-disabled:pointer-events-none aria-disabled:select-none aria-disabled:opacity-60": !0,
|
|
96
|
-
"aria-readonly:pointer-events-none aria-readonly:select-none": !0,
|
|
97
96
|
[k.value.root ?? ""]: !0
|
|
98
97
|
}));
|
|
99
98
|
}), he = i(() => r(D.value?.errorMessage, {}, h({
|
|
@@ -3,5 +3,5 @@ export declare function useList(props: ListOwnProps): {
|
|
|
3
3
|
merged: import('vue').ComputedRef<ListOwnProps>;
|
|
4
4
|
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
5
5
|
class: string;
|
|
6
|
-
}, "class", import('vue').HTMLAttributes | undefined, Omit<Omit<ListProps, "classes" | "customProps" | "as" | "dense" | "nested">, never>>>;
|
|
6
|
+
}, "class", import('vue').HTMLAttributes | undefined, Omit<Omit<ListProps, "size" | "classes" | "customProps" | "as" | "dense" | "nested">, never>>>;
|
|
7
7
|
};
|
|
@@ -6,6 +6,7 @@ import { cn as l, splitComponentProps as u } from "@bridge-ui/core/Utils";
|
|
|
6
6
|
// src/Components/List/composables/useList.ts
|
|
7
7
|
var d = [
|
|
8
8
|
"as",
|
|
9
|
+
"size",
|
|
9
10
|
"dense",
|
|
10
11
|
"nested",
|
|
11
12
|
"classes",
|
|
@@ -24,7 +25,10 @@ function f(f) {
|
|
|
24
25
|
}), _ = i(() => h.value.customProps), v = r({
|
|
25
26
|
entry: g,
|
|
26
27
|
props: () => m.value.componentProps
|
|
27
|
-
}), y = i(() => ({
|
|
28
|
+
}), y = i(() => ({
|
|
29
|
+
size: h.value.size,
|
|
30
|
+
dense: h.value.dense === !0
|
|
31
|
+
}));
|
|
28
32
|
a(e, y);
|
|
29
33
|
let b = i(() => c(m.value.inheritedAttrs, []));
|
|
30
34
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { useList } from './composables/useList';
|
|
2
|
-
export type { ListClasses, ListCustomProps, ListOwnProps, ListProps, } from './list.types';
|
|
2
|
+
export type { ListClasses, ListCustomProps, ListOwnProps, ListProps, ListSizeOverrides, } from './list.types';
|
|
3
3
|
export { default as List } from './List.vue';
|
|
4
4
|
export { LIST_INJECTION_KEY } from './listInjectionKey';
|
|
5
5
|
export type { ListContextValue } from './listInjectionKey';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { ListSize } from '@bridge-ui/core/Tokens';
|
|
3
|
+
import { MergeHtmlProps, MergeProps } from '@bridge-ui/core/Utils';
|
|
4
|
+
export interface ListSizeOverrides {}
|
|
3
5
|
export interface ListClasses {
|
|
4
6
|
/**
|
|
5
7
|
* The classes to apply to the root.
|
|
@@ -46,5 +48,12 @@ export interface ListOwnProps {
|
|
|
46
48
|
* @default false
|
|
47
49
|
*/
|
|
48
50
|
nested?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Typography scale for items (`ListItem`) and section titles
|
|
53
|
+
* (`ListSection`). Items can override it with their own `size`.
|
|
54
|
+
*
|
|
55
|
+
* @default "md"
|
|
56
|
+
*/
|
|
57
|
+
size?: MergeProps<ListSize, ListSizeOverrides>;
|
|
49
58
|
}
|
|
50
59
|
export type ListProps = MergeHtmlProps<ListOwnProps, HTMLAttributes>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
import { ListOwnProps } from './list.types';
|
|
2
3
|
export type ListContextValue = {
|
|
3
4
|
dense: boolean;
|
|
5
|
+
size?: ListOwnProps["size"];
|
|
4
6
|
};
|
|
5
7
|
export declare const LIST_INJECTION_KEY: InjectionKey<ComputedRef<ListContextValue>>;
|
|
@@ -12,7 +12,7 @@ export declare function useListItem<T extends LinkAsTag = "a">(props: ListItemOw
|
|
|
12
12
|
rootBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
13
13
|
class: string;
|
|
14
14
|
id: string | undefined;
|
|
15
|
-
}, "class", import('vue').HTMLAttributes | undefined, Omit<Omit<ListItemProps<T>, "target" | "role" | "href" | "value" | "classes" | "primary" | "secondary" | "customProps" | "as" | "disabled" | "linkAs" | "linkProps" | "selected" | "rel" | "dense" | "divider" | "interactive" | "selectedIcon">, never>>>;
|
|
15
|
+
}, "class", import('vue').HTMLAttributes | undefined, Omit<Omit<ListItemProps<T>, "target" | "role" | "href" | "size" | "value" | "classes" | "primary" | "secondary" | "customProps" | "as" | "disabled" | "linkAs" | "linkProps" | "selected" | "rel" | "dense" | "divider" | "interactive" | "selectedIcon">, never>>>;
|
|
16
16
|
rowClass: import('vue').ComputedRef<string>;
|
|
17
17
|
startBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
18
18
|
hasPrimary: import('vue').ComputedRef<boolean>;
|
|
@@ -36,7 +36,6 @@ export declare function useListItem<T extends LinkAsTag = "a">(props: ListItemOw
|
|
|
36
36
|
} & object & Record<"class", string>) | null>;
|
|
37
37
|
selectedIconBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
|
|
38
38
|
class: string;
|
|
39
|
-
size?: "sm" | undefined;
|
|
40
39
|
}, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {}>>;
|
|
41
40
|
resolvedSelectedIcon: import('vue').ComputedRef<IconSource | null>;
|
|
42
41
|
};
|