@bridge-ui/vue 0.25.0 → 0.26.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.
Files changed (61) hide show
  1. package/dist/Components/ActionFooter/ActionFooter.vue.d.ts +2 -2
  2. package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +4 -4
  3. package/dist/Components/Calendar/Calendar.vue_vue_type_script_setup_true_lang.js +62 -58
  4. package/dist/Components/Calendar/calendar.types.d.ts +8 -0
  5. package/dist/Components/Calendar/composables/useCalendar.d.ts +2 -1
  6. package/dist/Components/Calendar/composables/useCalendar.js +188 -177
  7. package/dist/Components/CalendarRange/CalendarRange.vue_vue_type_script_setup_true_lang.js +96 -92
  8. package/dist/Components/CalendarRange/calendarRange.types.d.ts +8 -0
  9. package/dist/Components/CalendarRange/composables/useCalendarRange.d.ts +2 -1
  10. package/dist/Components/CalendarRange/composables/useCalendarRange.js +203 -220
  11. package/dist/Components/ColorField/ColorField.vue.d.ts +2 -2
  12. package/dist/Components/ColorPicker/ColorPicker.vue.d.ts +2 -2
  13. package/dist/Components/DateField/DateField.vue.d.ts +2 -2
  14. package/dist/Components/DatePicker/DatePicker.vue.d.ts +2 -2
  15. package/dist/Components/DatePicker/DatePicker.vue_vue_type_script_setup_true_lang.js +1 -0
  16. package/dist/Components/DateRangeField/DateRangeField.vue.d.ts +2 -2
  17. package/dist/Components/DateRangePicker/DateRangePicker.vue.d.ts +2 -2
  18. package/dist/Components/DateRangePicker/DateRangePicker.vue_vue_type_script_setup_true_lang.js +1 -0
  19. package/dist/Components/DateTimeField/DateTimeField.vue.d.ts +2 -2
  20. package/dist/Components/DateTimePicker/DateTimePicker.vue.d.ts +2 -2
  21. package/dist/Components/DateTimePicker/DateTimePicker.vue_vue_type_script_setup_true_lang.js +1 -0
  22. package/dist/Components/DateTimeRangeField/DateTimeRangeField.vue.d.ts +2 -2
  23. package/dist/Components/DateTimeRangePicker/DateTimeRangePicker.vue.d.ts +2 -2
  24. package/dist/Components/DateTimeRangePicker/DateTimeRangePicker.vue_vue_type_script_setup_true_lang.js +1 -0
  25. package/dist/Components/Drawer/Drawer.vue.d.ts +1 -1
  26. package/dist/Components/Drawer/composables/useDrawer.d.ts +1 -1
  27. package/dist/Components/List/List.vue_vue_type_script_setup_true_lang.js +2 -1
  28. package/dist/Components/List/composables/useList.d.ts +1 -1
  29. package/dist/Components/List/composables/useList.js +5 -1
  30. package/dist/Components/List/index.d.ts +1 -1
  31. package/dist/Components/List/list.types.d.ts +10 -1
  32. package/dist/Components/List/listInjectionKey.d.ts +2 -0
  33. package/dist/Components/ListItem/ListItem.vue_vue_type_script_setup_true_lang.js +1 -0
  34. package/dist/Components/ListItem/composables/useListItem.d.ts +1 -2
  35. package/dist/Components/ListItem/composables/useListItem.js +92 -86
  36. package/dist/Components/ListItem/listItem.types.d.ts +8 -0
  37. package/dist/Components/ListSection/composables/useListSection.js +31 -29
  38. package/dist/Components/Listbox/Listbox.vue.d.ts +2 -2
  39. package/dist/Components/Listbox/listbox.types.d.ts +2 -2
  40. package/dist/Components/Modal/Modal.vue.d.ts +1 -1
  41. package/dist/Components/Modal/composables/useModal.d.ts +1 -1
  42. package/dist/Components/Pagination/Pagination.vue.d.ts +2 -2
  43. package/dist/Components/Select/Select.vue.d.ts +4 -4
  44. package/dist/Components/Sidebar/SidebarList.vue_vue_type_script_setup_true_lang.js +1 -0
  45. package/dist/Components/Sidebar/SidebarListItem.vue_vue_type_script_setup_true_lang.js +1 -0
  46. package/dist/Components/Slider/composables/useSlider.d.ts +2 -2
  47. package/dist/Components/Snackbar/composables/useSnackbar.d.ts +1 -1
  48. package/dist/Components/TimeField/TimeField.vue.d.ts +2 -2
  49. package/dist/Components/TimePicker/TimePicker.vue.d.ts +2 -2
  50. package/dist/Components/TimeRangeField/TimeRangeField.vue.d.ts +2 -2
  51. package/dist/Components/TimeRangePicker/TimeRangePicker.vue.d.ts +2 -2
  52. package/dist/Utils/index.d.ts +2 -0
  53. package/dist/Utils/index.js +40 -39
  54. package/dist/Utils/useWheelNavigation.d.ts +11 -0
  55. package/dist/Utils/useWheelNavigation.js +20 -0
  56. package/dist/augments.d.ts +2 -1
  57. package/dist/index.d.ts +1 -1
  58. package/docs/components/Calendar.md +31 -30
  59. package/docs/components/CalendarRange.md +29 -28
  60. package/docs/components/List.md +43 -27
  61. package/package.json +2 -2
@@ -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').ModalScroll;
19
20
  autoFocus: boolean;
20
21
  closeOnEscape: boolean;
21
22
  closeOnOverlay: boolean;
@@ -25,7 +26,6 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
25
26
  hideBackdrop: boolean;
26
27
  keepMounted: boolean;
27
28
  persistent: boolean;
28
- scroll: keyof import('@bridge-ui/core/Tokens').ModalScroll;
29
29
  teleportTo: string | false;
30
30
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
31
31
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -34,7 +34,7 @@ export declare function useModal(props: ModalOwnProps, libDefaults: ModalLibDefa
34
34
  };
35
35
  "aria-hidden": boolean | undefined;
36
36
  class: string;
37
- }, "class", import('vue').HTMLAttributes | undefined, Omit<ModalProps, "size" | "classes" | "customProps" | "transition" | "autoFocus" | "blur" | "closeOnEscape" | "closeOnOverlay" | "disableEnforceFocus" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "persistent" | "scroll" | "stackId" | "teleportTo" | "align">>>;
37
+ }, "class", import('vue').HTMLAttributes | undefined, Omit<ModalProps, "size" | "blur" | "scroll" | "classes" | "customProps" | "transition" | "autoFocus" | "closeOnEscape" | "closeOnOverlay" | "disableEnforceFocus" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "persistent" | "stackId" | "teleportTo" | "align">>>;
38
38
  panelBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<{
39
39
  "data-modal-part": string;
40
40
  "data-state": "open" | "closed";
@@ -8,15 +8,15 @@ type __VLS_ModelProps = {
8
8
  };
9
9
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
10
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ change: (page: number) => any;
11
12
  next: () => any;
12
13
  previous: () => any;
13
- change: (page: number) => any;
14
14
  "update:modelValue": (...args: unknown[]) => any;
15
15
  "update:cursor": (...args: unknown[]) => any;
16
16
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
17
+ onChange?: ((page: number) => any) | undefined;
17
18
  onNext?: (() => any) | undefined;
18
19
  onPrevious?: (() => any) | undefined;
19
- onChange?: ((page: number) => any) | undefined;
20
20
  "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
21
21
  "onUpdate:cursor"?: ((...args: unknown[]) => any) | undefined;
22
22
  }>, {
@@ -8,22 +8,22 @@ 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
10
  search: (query: string) => any;
11
- apply: () => any;
12
11
  cancel: () => any;
13
- select: (option: import('@bridge-ui/core/Domain').ListboxOption) => any;
14
12
  change: (value: import('@bridge-ui/core/Domain').SelectModel) => any;
15
13
  close: () => any;
14
+ select: (option: import('@bridge-ui/core/Domain').ListboxOption) => any;
15
+ apply: () => any;
16
16
  deselect: (option: import('@bridge-ui/core/Domain').ListboxOption) => any;
17
17
  open: () => any;
18
18
  "update:modelValue": (...args: unknown[]) => any;
19
19
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
20
  onClear?: (() => any) | undefined;
21
21
  onSearch?: ((query: string) => any) | undefined;
22
- onApply?: (() => any) | undefined;
23
22
  onCancel?: (() => any) | undefined;
24
- onSelect?: ((option: import('@bridge-ui/core/Domain').ListboxOption) => any) | undefined;
25
23
  onChange?: ((value: import('@bridge-ui/core/Domain').SelectModel) => any) | undefined;
26
24
  onClose?: (() => any) | undefined;
25
+ onSelect?: ((option: import('@bridge-ui/core/Domain').ListboxOption) => any) | undefined;
26
+ onApply?: (() => any) | undefined;
27
27
  onDeselect?: ((option: import('@bridge-ui/core/Domain').ListboxOption) => any) | undefined;
28
28
  onOpen?: (() => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
@@ -13,6 +13,7 @@ var m = /*@__PURE__*/ a({
13
13
  customProps: {},
14
14
  dense: { type: Boolean },
15
15
  nested: { type: Boolean },
16
+ size: {},
16
17
  iconOnly: { type: Boolean }
17
18
  },
18
19
  setup(a) {
@@ -32,6 +32,7 @@ var b = {
32
32
  Object,
33
33
  Function
34
34
  ] },
35
+ size: {},
35
36
  target: {},
36
37
  value: {},
37
38
  tooltip: {},
@@ -214,9 +214,9 @@ export declare function useSlider(props: MaybeRefOrGetter<SliderOwnProps>, libDe
214
214
  'aria-valuemin'?: (string | number) | undefined;
215
215
  'aria-valuenow'?: (string | number) | undefined;
216
216
  'aria-valuetext'?: string | undefined | undefined;
217
+ contextmenu?: string | undefined | undefined;
217
218
  accesskey?: string | undefined | undefined;
218
219
  contenteditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
219
- contextmenu?: string | undefined | undefined;
220
220
  dir?: string | undefined | undefined;
221
221
  draggable?: (boolean | "true" | "false") | undefined;
222
222
  enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
@@ -421,9 +421,9 @@ export declare function useSlider(props: MaybeRefOrGetter<SliderOwnProps>, libDe
421
421
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
422
422
  'aria-valuetext'?: string | undefined | undefined;
423
423
  value?: string | number | readonly string[] | undefined;
424
+ contextmenu?: string | undefined | undefined;
424
425
  accesskey?: string | undefined | undefined;
425
426
  contenteditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
426
- contextmenu?: string | undefined | undefined;
427
427
  dir?: string | undefined | undefined;
428
428
  draggable?: (boolean | "true" | "false") | undefined;
429
429
  enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
@@ -186,9 +186,9 @@ export declare function useSnackbar(props: SnackbarProps, libDefaults: SnackbarL
186
186
  'aria-valuemin'?: (string | number) | undefined;
187
187
  'aria-valuenow'?: (string | number) | undefined;
188
188
  'aria-valuetext'?: string | undefined | undefined;
189
+ contextmenu?: string | undefined | undefined;
189
190
  accesskey?: string | undefined | undefined;
190
191
  contenteditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
191
- contextmenu?: string | undefined | undefined;
192
192
  dir?: string | undefined | undefined;
193
193
  draggable?: (boolean | "true" | "false") | undefined;
194
194
  enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
@@ -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: Date | null) => any;
14
13
  close: () => any;
14
+ apply: () => any;
15
15
  open: () => any;
16
16
  "update:modelValue": (value: Date | 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: Date | null) => any) | undefined;
22
21
  onClose?: (() => any) | undefined;
22
+ onApply?: (() => any) | undefined;
23
23
  onOpen?: (() => any) | undefined;
24
24
  "onUpdate:modelValue"?: ((value: Date | null | undefined) => any) | undefined;
25
25
  }>, {
@@ -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: Date | 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: Date | null) => any) | undefined;
17
+ onApply?: (() => any) | undefined;
18
18
  "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
19
19
  }>, {
20
20
  showFooter: boolean;
@@ -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: TimeRangeValue | null) => any;
14
13
  close: () => any;
14
+ apply: () => any;
15
15
  open: () => any;
16
16
  "update:modelValue": (value: TimeRangeValue | 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: TimeRangeValue | null) => any) | undefined;
22
21
  onClose?: (() => any) | undefined;
22
+ onApply?: (() => any) | undefined;
23
23
  onOpen?: (() => any) | undefined;
24
24
  "onUpdate:modelValue"?: ((value: TimeRangeValue | null | undefined) => any) | undefined;
25
25
  }>, {
@@ -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: TimeRangeValue | 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: TimeRangeValue | null) => any) | undefined;
17
+ onApply?: (() => any) | undefined;
18
18
  "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
19
19
  }>, {
20
20
  showFooter: boolean;
@@ -103,3 +103,5 @@ export type { UseBreakpointOptions } from './useBreakpoint';
103
103
  export { useHoldRepeat } from './useHoldRepeat';
104
104
  export type { HoldRepeatAction, UseHoldRepeatOptions, } from './useHoldRepeat';
105
105
  export { useOptionalModel } from './useOptionalModel';
106
+ export { useWheelNavigation } from './useWheelNavigation';
107
+ export type { UseWheelNavigationOptions } from './useWheelNavigation';
@@ -3,40 +3,41 @@ import { RenderFn as t, hasNamedSlot as n, hasSlotOrProp as r, isPropPresent as
3
3
  import { useBreakpoint as o } from "./useBreakpoint.js";
4
4
  import { useHoldRepeat as s } from "./useHoldRepeat.js";
5
5
  import { useOptionalModel as c } from "./useOptionalModel.js";
6
- import { computed as l, defineComponent as u, toValue as d, unref as f } from "vue";
7
- import { get as p, isArray as m, isFunction as h, isNil as g } from "es-toolkit/compat";
8
- import { resolveDefaultTextSizeClass as _, resolveFieldShowFooter as v, resolvePickerFill as y } from "@bridge-ui/core/Domain";
9
- import { createMergeNestedComponentProps as b, createMergePartBind as x, getBridgeUIRegistryDefaultProp as S, mergeBridgeUILayeredClasses as C, mergePropsWithBridgeUIDefaults as w } from "@bridge-ui/core/Utils";
6
+ import { useWheelNavigation as l } from "./useWheelNavigation.js";
7
+ import { computed as u, defineComponent as d, toValue as f, unref as p } from "vue";
8
+ import { get as m, isArray as h, isFunction as g, isNil as _ } from "es-toolkit/compat";
9
+ import { resolveDefaultTextSizeClass as v, resolveFieldShowFooter as y, resolvePickerFill as b } from "@bridge-ui/core/Domain";
10
+ import { createMergeNestedComponentProps as x, createMergePartBind as S, getBridgeUIRegistryDefaultProp as C, mergeBridgeUILayeredClasses as w, mergePropsWithBridgeUIDefaults as T } from "@bridge-ui/core/Utils";
10
11
  // src/Utils/index.ts
11
- function T(e) {
12
- return u({
12
+ function E(e) {
13
+ return d({
13
14
  name: "HeadlessTestComponent",
14
15
  setup() {
15
16
  return e(), () => null;
16
17
  }
17
18
  });
18
19
  }
19
- function E(e, ...t) {
20
- (m(e) ? e : [e]).forEach((e) => {
21
- h(e) && e(...t);
20
+ function D(e, ...t) {
21
+ (h(e) ? e : [e]).forEach((e) => {
22
+ g(e) && e(...t);
22
23
  });
23
24
  }
24
- var D = x("class"), O = b(D);
25
- function k({ props: t, chrome: n, libDefaults: r, componentName: i }) {
26
- let a = e(), o = l(() => g(a) ? null : f(a.components)), s = l(() => {
27
- if (i) return p(o.value, i);
28
- }), c = l(() => {
29
- let e = d(n);
30
- if (e) return p(o.value, e);
25
+ var O = S("class"), k = x(O);
26
+ function A({ props: t, chrome: n, libDefaults: r, componentName: i }) {
27
+ let a = e(), o = u(() => _(a) ? null : p(a.components)), s = u(() => {
28
+ if (i) return m(o.value, i);
29
+ }), c = u(() => {
30
+ let e = f(n);
31
+ if (e) return m(o.value, e);
31
32
  });
32
33
  return {
33
34
  entry: s,
34
35
  bridge: a,
35
- merged: l(() => w({
36
+ merged: u(() => T({
36
37
  libDefaults: r,
37
38
  componentName: i,
38
- props: d(t),
39
- chromeName: d(n),
39
+ props: f(t),
40
+ chromeName: f(n),
40
41
  components: o.value,
41
42
  defaultColor: a?.global.value.defaultColor,
42
43
  formDefaults: a?.global.value.formDefaults
@@ -45,39 +46,39 @@ function k({ props: t, chrome: n, libDefaults: r, componentName: i }) {
45
46
  chromeEntry: c
46
47
  };
47
48
  }
48
- function A({ chrome: t, overlay: n, showFooter: r, componentName: i }) {
49
+ function j({ chrome: t, overlay: n, showFooter: r, componentName: i }) {
49
50
  let a = e();
50
- return l(() => {
51
- let e = S({
51
+ return u(() => {
52
+ let e = C({
52
53
  componentName: i,
53
54
  prop: "showFooter",
54
- chromeName: d(t),
55
- components: f(a?.components)
55
+ chromeName: f(t),
56
+ components: p(a?.components)
56
57
  });
57
- return v(d(r) ?? e, d(n));
58
+ return y(f(r) ?? e, f(n));
58
59
  });
59
60
  }
60
- function j({ fill: t, chrome: n, overlay: r, componentName: i }) {
61
+ function M({ fill: t, chrome: n, overlay: r, componentName: i }) {
61
62
  let a = e();
62
- return l(() => {
63
- let e = S({
63
+ return u(() => {
64
+ let e = C({
64
65
  prop: "fill",
65
66
  componentName: i,
66
- chromeName: d(n),
67
- components: f(a?.components)
67
+ chromeName: f(n),
68
+ components: p(a?.components)
68
69
  });
69
- return y(d(t) ?? e, d(r));
70
+ return b(f(t) ?? e, f(r));
70
71
  });
71
72
  }
72
- function M() {
73
+ function N() {
73
74
  let t = e();
74
- return l(() => _(f(t?.components)));
75
+ return u(() => v(p(t?.components)));
75
76
  }
76
- function N({ entry: e, props: t, chromeEntry: n }) {
77
- return l(() => C(p(n?.value, "classes"), p(e.value, "classes"), d(t).classes));
77
+ function P({ entry: e, props: t, chromeEntry: n }) {
78
+ return u(() => w(m(n?.value, "classes"), m(e.value, "classes"), f(t).classes));
78
79
  }
79
- function P(e) {
80
- return p({
80
+ function F(e) {
81
+ return m({
81
82
  xs: "xs",
82
83
  sm: "sm",
83
84
  md: "md",
@@ -87,7 +88,7 @@ function P(e) {
87
88
  "2xl": "lg"
88
89
  }, e ?? "md");
89
90
  }
90
- function F(e) {
91
+ function I(e) {
91
92
  if (e instanceof HTMLElement) return e;
92
93
  if (e && "$el" in e) {
93
94
  let t = e.$el;
@@ -95,4 +96,4 @@ function F(e) {
95
96
  }
96
97
  return null;
97
98
  }
98
- export { t as RenderFn, E as callListener, T as defineHeadlessComponent, n as hasNamedSlot, r as hasSlotOrProp, i as isPropPresent, O as mergeNestedComponentProps, D as mergePartBind, a as presentSlotNames, P as resolveFieldAdornmentIconSize, F as resolveVnodeRefElement, o as useBreakpoint, k as useBridgeUIComponent, N as useBridgeUIMergedRegistryClasses, M as useDefaultTextSizeClass, A as useFieldShowFooter, s as useHoldRepeat, c as useOptionalModel, j as usePickerFill };
99
+ export { t as RenderFn, D as callListener, E as defineHeadlessComponent, n as hasNamedSlot, r as hasSlotOrProp, i as isPropPresent, k as mergeNestedComponentProps, O as mergePartBind, a as presentSlotNames, F as resolveFieldAdornmentIconSize, I as resolveVnodeRefElement, o as useBreakpoint, A as useBridgeUIComponent, P as useBridgeUIMergedRegistryClasses, N as useDefaultTextSizeClass, j as useFieldShowFooter, s as useHoldRepeat, c as useOptionalModel, M as usePickerFill, l as useWheelNavigation };
@@ -0,0 +1,11 @@
1
+ import { MaybeRefOrGetter, Ref } from 'vue';
2
+ export type UseWheelNavigationOptions = {
3
+ enabled: MaybeRefOrGetter<boolean>;
4
+ onNavigate: (direction: 1 | -1) => void;
5
+ };
6
+ /**
7
+ * Steps previous / next while the wheel is used over `target`. While enabled,
8
+ * the wheel no longer scrolls the page under the pointer. Pinch-zoom
9
+ * (`ctrlKey`) is left to the browser.
10
+ */
11
+ export declare function useWheelNavigation(target: Readonly<Ref<null | HTMLElement>>, { enabled, onNavigate }: UseWheelNavigationOptions): void;
@@ -0,0 +1,20 @@
1
+ import { toValue as e, watchEffect as t } from "vue";
2
+ import { isNil as n } from "es-toolkit/compat";
3
+ import { createCalendarWheelNavigator as r } from "@bridge-ui/core/Domain";
4
+ // src/Utils/useWheelNavigation.ts
5
+ function i(i, { enabled: a, onNavigate: o }) {
6
+ t((t) => {
7
+ let s = i.value;
8
+ if (!e(a) || n(s)) return;
9
+ let c = r(), l = (e) => {
10
+ if (e.ctrlKey) return;
11
+ e.preventDefault();
12
+ let t = c(e);
13
+ t !== 0 && o(t);
14
+ };
15
+ s.addEventListener("wheel", l, { passive: !1 }), t(() => {
16
+ s.removeEventListener("wheel", l);
17
+ });
18
+ }, { flush: "post" });
19
+ }
20
+ export { i as useWheelNavigation };
@@ -24,7 +24,7 @@ import { HeadingClasses, HeadingProps } from './Components/Heading';
24
24
  import { IconProps } from './Components/Icon';
25
25
  import { LabelClasses, LabelProps } from './Components/Label';
26
26
  import { LinkClasses, LinkProps } from './Components/Link';
27
- import { ListClasses } from './Components/List';
27
+ import { ListClasses, ListProps } from './Components/List';
28
28
  import { ListItemClasses, ListItemProps } from './Components/ListItem';
29
29
  import { ListSectionClasses } from './Components/ListSection';
30
30
  import { MenuClasses, MenuProps } from './Components/Menu';
@@ -153,6 +153,7 @@ declare module "@bridge-ui/core/Config" {
153
153
  }
154
154
  interface ListConfigOverrides {
155
155
  classes: ListClasses;
156
+ defaultProps: Partial<Pick<ListProps, "size">>;
156
157
  }
157
158
  interface ListItemConfigOverrides {
158
159
  classes: ListItemClasses;
package/dist/index.d.ts CHANGED
@@ -91,7 +91,7 @@ export type { LabelClasses, LabelOwnProps, LabelProps, LabelSizeOverrides, } fro
91
91
  export { Link, useLink } from './Components/Link';
92
92
  export type { LinkClasses, LinkColorOverrides, LinkCustomProps, LinkOwnProps, LinkProps, LinkSizeOverrides, LinkSlots, LinkUnderlineOverrides, } from './Components/Link';
93
93
  export { List, useList } from './Components/List';
94
- export type { ListClasses, ListContextValue, ListCustomProps, ListOwnProps, ListProps, } from './Components/List';
94
+ export type { ListClasses, ListContextValue, ListCustomProps, ListOwnProps, ListProps, ListSizeOverrides, } from './Components/List';
95
95
  export { Listbox, useListbox, useListboxNavigation, } from './Components/Listbox';
96
96
  export type { ListboxClasses, ListboxColorOverrides, ListboxCustomProps, ListboxEmits, ListboxEntry, ListboxOption, ListboxOwnProps, ListboxProps, ListboxSlots, ListboxValue, } from './Components/Listbox';
97
97
  export { ListItem } from './Components/ListItem';
@@ -47,36 +47,37 @@ import { Calendar } from "@bridge-ui/vue/Components/Calendar";
47
47
 
48
48
  ## Props
49
49
 
50
- | Prop | Type | Default | Description |
51
- | ----------------- | ---------------------------- | --------------------- | ---------------------------------------------------------------------------------- |
52
- | `classes` | `CalendarClasses` | — | Classes for calendar regions. |
53
- | `color` | `CalendarColor` | `"primary"` | Accent color for tiles. |
54
- | `customProps` | `CalendarCustomProps` | — | Extra props for internal parts. |
55
- | `defaultValue` | `DatePickerModel` | `null` | Uncontrolled initial value. |
56
- | `defaultView` | `CalendarView` | matches `granularity` | Uncontrolled initial panel. Clamped so it is not deeper than `granularity`. |
57
- | `disabled` | `boolean` | `false` | Disables the calendar. |
58
- | `disableDates` | `Date[]` | — | Dates that cannot be selected. |
59
- | `disableMonths` | `number[]` | — | Month indexes (`0`–`11`) that cannot be selected. |
60
- | `disableYears` | `number[]` | — | Years that cannot be selected. |
61
- | `error` | `boolean` | `false` | Applies the error color palette to tiles. |
62
- | `fill` | `boolean` | `false` | Fills the container width. |
63
- | `granularity` | `"day" \| "month" \| "year"` | `"day"` | Deepest selectable panel. Month and year commit as a `Date`. |
64
- | `hideMonths` | `boolean` | `false` | Hides the month selector and month panel. Ignored when `granularity` is `"month"`. |
65
- | `hideOutsideDays` | `boolean` | `false` | Hides days that fall outside the displayed month. |
66
- | `hideWeekdays` | `boolean` | `false` | Hides weekday labels on the date panel. |
67
- | `hideYears` | `boolean` | `false` | Hides the year selector and year panel. Ignored when `granularity` is `"year"`. |
68
- | `maxDate` | `Date` | — | Latest selectable date. |
69
- | `minDate` | `Date` | — | Earliest selectable date. |
70
- | `multiple` | `boolean` | `false` | Allows selecting multiple dates. |
71
- | `previewDate` | `Date \| null` | — | Controlled range-preview hover date. |
72
- | `range` | `boolean` | `false` | Selects a start/end date range. |
73
- | `readOnly` | `boolean` | `false` | Prevents selection. |
74
- | `rounded` | `CalendarRounded` | `"md"` | Border radius of tiles and chrome. |
75
- | `slots` | `CalendarDateSlots` | — | Named slots forwarded to `CalendarDate` (`day`). |
76
- | `startOfWeek` | `StartOfWeek` | `0` | First day of the week (`0` = Sunday). |
77
- | `timeZone` | `string` | — | IANA time zone. |
78
- | `view` | `CalendarView` | — | Controlled panel view. Pair with `view-change`. |
79
- | `viewDate` | `Date` | — | Controlled displayed month. Pair with `view-date-change`. |
50
+ | Prop | Type | Default | Description |
51
+ | ----------------- | ---------------------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------- |
52
+ | `classes` | `CalendarClasses` | — | Classes for calendar regions. |
53
+ | `color` | `CalendarColor` | `"primary"` | Accent color for tiles. |
54
+ | `customProps` | `CalendarCustomProps` | — | Extra props for internal parts. |
55
+ | `defaultValue` | `DatePickerModel` | `null` | Uncontrolled initial value. |
56
+ | `defaultView` | `CalendarView` | matches `granularity` | Uncontrolled initial panel. Clamped so it is not deeper than `granularity`. |
57
+ | `disabled` | `boolean` | `false` | Disables the calendar. |
58
+ | `disableDates` | `Date[]` | — | Dates that cannot be selected. |
59
+ | `disableMonths` | `number[]` | — | Month indexes (`0`–`11`) that cannot be selected. |
60
+ | `disableYears` | `number[]` | — | Years that cannot be selected. |
61
+ | `error` | `boolean` | `false` | Applies the error color palette to tiles. |
62
+ | `fill` | `boolean` | `false` | Fills the container width. |
63
+ | `granularity` | `"day" \| "month" \| "year"` | `"day"` | Deepest selectable panel. Month and year commit as a `Date`. |
64
+ | `hideMonths` | `boolean` | `false` | Hides the month selector and month panel. Ignored when `granularity` is `"month"`. |
65
+ | `hideOutsideDays` | `boolean` | `false` | Hides days that fall outside the displayed month. |
66
+ | `hideWeekdays` | `boolean` | `false` | Hides weekday labels on the date panel. |
67
+ | `hideYears` | `boolean` | `false` | Hides the year selector and year panel. Ignored when `granularity` is `"year"`. |
68
+ | `maxDate` | `Date` | — | Latest selectable date. |
69
+ | `minDate` | `Date` | — | Earliest selectable date. |
70
+ | `multiple` | `boolean` | `false` | Allows selecting multiple dates. |
71
+ | `previewDate` | `Date \| null` | — | Controlled range-preview hover date. |
72
+ | `range` | `boolean` | `false` | Selects a start/end date range. |
73
+ | `readOnly` | `boolean` | `false` | Prevents selection. |
74
+ | `rounded` | `CalendarRounded` | `"md"` | Border radius of tiles and chrome. |
75
+ | `slots` | `CalendarDateSlots` | — | Named slots forwarded to `CalendarDate` (`day`). |
76
+ | `startOfWeek` | `StartOfWeek` | `0` | First day of the week (`0` = Sunday). |
77
+ | `timeZone` | `string` | — | IANA time zone. |
78
+ | `view` | `CalendarView` | — | Controlled panel view. Pair with `view-change`. |
79
+ | `viewDate` | `Date` | — | Controlled displayed month. Pair with `view-date-change`. |
80
+ | `wheelNavigation` | `boolean` | `false` | Mouse wheel / trackpad over the calendar steps previous / next like the header buttons. Turned on inside pickers. |
80
81
 
81
82
  ### v-model
82
83
 
@@ -39,34 +39,35 @@ import { CalendarRange } from "@bridge-ui/vue/Components/CalendarRange";
39
39
 
40
40
  ## Props
41
41
 
42
- | Prop | Type | Default | Description |
43
- | ----------------- | ---------------------------- | --------------------- | ----------------------------------------------------------------------------------------- |
44
- | `classes` | `CalendarRangeClasses` | — | Classes for calendar range regions. |
45
- | `color` | `CalendarColor` | `"primary"` | Accent color for tiles. |
46
- | `customProps` | `CalendarRangeCustomProps` | — | Extra props for internal parts. |
47
- | `defaultValue` | `DateRangeValue \| null` | `null` | Uncontrolled initial value. |
48
- | `defaultView` | `CalendarView` | matches `granularity` | Uncontrolled initial panel. Clamped so it is not deeper than `granularity`. |
49
- | `disabled` | `boolean` | `false` | Disables the calendar range. |
50
- | `disableDates` | `Date[]` | — | Dates that cannot be selected. |
51
- | `disableMonths` | `number[]` | — | Month indexes that cannot be selected. |
52
- | `disableYears` | `number[]` | — | Years that cannot be selected. |
53
- | `error` | `boolean` | `false` | Applies the error color palette to tiles. |
54
- | `fill` | `boolean` | `false` | Fills the container width. |
55
- | `granularity` | `"day" \| "month" \| "year"` | `"day"` | Deepest selectable panel. Month and year commit as a `Date`. |
56
- | `hideMonths` | `boolean` | `false` | Hides the shared month selector and month panel. Ignored when `granularity` is `"month"`. |
57
- | `hideOutsideDays` | `boolean` | `false` | Hides days outside the displayed month on both date panels. |
58
- | `hideWeekdays` | `boolean` | `false` | Hides weekday labels on both date panels. |
59
- | `hideYears` | `boolean` | `false` | Hides the shared year selector and year panel. Ignored when `granularity` is `"year"`. |
60
- | `maxDate` | `Date` | — | Latest selectable date. |
61
- | `minDate` | `Date` | — | Earliest selectable date. |
62
- | `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | Dual calendar layout: side-by-side or stacked. |
63
- | `previewDate` | `Date \| null` | — | Controlled range-preview hover date. |
64
- | `readOnly` | `boolean` | `false` | Prevents selection. |
65
- | `rounded` | `CalendarRounded` | `"md"` | Border radius of tiles and chrome. |
66
- | `slots` | `CalendarRangeSlots` | — | Named slots (`day`, optional `startAside` / `endAside`). |
67
- | `startOfWeek` | `StartOfWeek` | `0` | First day of the week. |
68
- | `timeZone` | `string` | — | IANA time zone. |
69
- | `viewDate` | `Date` | — | Controlled start (left) displayed month. |
42
+ | Prop | Type | Default | Description |
43
+ | ----------------- | ---------------------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------- |
44
+ | `classes` | `CalendarRangeClasses` | — | Classes for calendar range regions. |
45
+ | `color` | `CalendarColor` | `"primary"` | Accent color for tiles. |
46
+ | `customProps` | `CalendarRangeCustomProps` | — | Extra props for internal parts. |
47
+ | `defaultValue` | `DateRangeValue \| null` | `null` | Uncontrolled initial value. |
48
+ | `defaultView` | `CalendarView` | matches `granularity` | Uncontrolled initial panel. Clamped so it is not deeper than `granularity`. |
49
+ | `disabled` | `boolean` | `false` | Disables the calendar range. |
50
+ | `disableDates` | `Date[]` | — | Dates that cannot be selected. |
51
+ | `disableMonths` | `number[]` | — | Month indexes that cannot be selected. |
52
+ | `disableYears` | `number[]` | — | Years that cannot be selected. |
53
+ | `error` | `boolean` | `false` | Applies the error color palette to tiles. |
54
+ | `fill` | `boolean` | `false` | Fills the container width. |
55
+ | `granularity` | `"day" \| "month" \| "year"` | `"day"` | Deepest selectable panel. Month and year commit as a `Date`. |
56
+ | `hideMonths` | `boolean` | `false` | Hides the shared month selector and month panel. Ignored when `granularity` is `"month"`. |
57
+ | `hideOutsideDays` | `boolean` | `false` | Hides days outside the displayed month on both date panels. |
58
+ | `hideWeekdays` | `boolean` | `false` | Hides weekday labels on both date panels. |
59
+ | `hideYears` | `boolean` | `false` | Hides the shared year selector and year panel. Ignored when `granularity` is `"year"`. |
60
+ | `maxDate` | `Date` | — | Latest selectable date. |
61
+ | `minDate` | `Date` | — | Earliest selectable date. |
62
+ | `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | Dual calendar layout: side-by-side or stacked. |
63
+ | `previewDate` | `Date \| null` | — | Controlled range-preview hover date. |
64
+ | `readOnly` | `boolean` | `false` | Prevents selection. |
65
+ | `rounded` | `CalendarRounded` | `"md"` | Border radius of tiles and chrome. |
66
+ | `slots` | `CalendarRangeSlots` | — | Named slots (`day`, optional `startAside` / `endAside`). |
67
+ | `startOfWeek` | `StartOfWeek` | `0` | First day of the week. |
68
+ | `timeZone` | `string` | — | IANA time zone. |
69
+ | `viewDate` | `Date` | — | Controlled start (left) displayed month. |
70
+ | `wheelNavigation` | `boolean` | `false` | Mouse wheel / trackpad over the calendar steps previous / next like the header buttons. Turned on inside pickers. |
70
71
 
71
72
  ### v-model
72
73