@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
@@ -114,6 +114,20 @@ Set `href` to render the row as an anchor. The browser shows the URL on hover, a
114
114
  </List>
115
115
  ```
116
116
 
117
+ ### Size
118
+
119
+ `size` sets the typography scale for every item and section title in the list. A `ListItem` can override it with its own `size`. Inside a `Listbox`, the `Listbox` size applies instead.
120
+
121
+ ```vue
122
+ <List size="lg">
123
+ <ListSection title="Account" />
124
+ <ListItem interactive primary="Profile" secondary="Name and avatar" />
125
+ <ListItem size="md" interactive primary="Billing" />
126
+ </List>
127
+ ```
128
+
129
+ Set the default for every list in the provider with `List: { defaultProps: { size: "lg" } }`.
130
+
117
131
  ### Sticky section
118
132
 
119
133
  With the default `as="li"`, sticky styles apply on the section root. The list (or a parent) needs a scroll container with a constrained height.
@@ -137,36 +151,38 @@ With the default `as="li"`, sticky styles apply on the section root. The list (o
137
151
 
138
152
  ## Props (`List`)
139
153
 
140
- | Prop | Type | Default | Description |
141
- | ------------- | ----------------------- | ------- | ---------------------------------------------------------------------------------- |
142
- | `as` | `"nav" \| "ol" \| "ul"` | "ul" | The element to render as. |
143
- | `classes` | `ListClasses` | — | The classes to apply to the list. |
144
- | `customProps` | `ListCustomProps` | — | Props forwarded to each list part. |
145
- | `dense` | `boolean` | `false` | Compact vertical spacing on items (`ListItem` / `ListSection`), not the list root. |
146
- | `nested` | `boolean` | `false` | When true, indents the list for nested navigation/submenus. |
154
+ | Prop | Type | Default | Description |
155
+ | ------------- | ----------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------ |
156
+ | `as` | `"nav" \| "ol" \| "ul"` | "ul" | The element to render as. |
157
+ | `classes` | `ListClasses` | — | The classes to apply to the list. |
158
+ | `customProps` | `ListCustomProps` | — | Props forwarded to each list part. |
159
+ | `dense` | `boolean` | `false` | Compact vertical spacing on items (`ListItem` / `ListSection`), not the list root. |
160
+ | `nested` | `boolean` | `false` | When true, indents the list for nested navigation/submenus. |
161
+ | `size` | `"lg" \| "md" \| "sm"` | "md" | Typography scale for items (`ListItem`) and section titles (`ListSection`). Items can override it with their own `size`. |
147
162
 
148
163
  ## Props (`ListItem`)
149
164
 
150
- | Prop | Type | Default | Description |
151
- | -------------- | ------------------------------------ | -------- | ------------------------------------------------------------------------------------------------------------------ |
152
- | `as` | `"div" \| "li"` | "li" | The element to render as. |
153
- | `classes` | `ListItemClasses` | — | The classes to apply to the item. |
154
- | `customProps` | `ListItemCustomProps` | — | Props forwarded to each item part. |
155
- | `dense` | `boolean` | — | Compact vertical padding. Inherits `dense` from parent `List` when omitted. |
156
- | `disabled` | `boolean` | `false` | When true, the item is not interactive and appears muted. |
157
- | `divider` | `boolean` | `false` | When true, renders a bottom divider on the item. |
158
- | `href` | `string` | — | URL for the interactive wrapper. Renders an anchor so hover shows the address and middle-click opens a new tab. |
159
- | `interactive` | `boolean` | `false` | When true, applies hover/focus styles and `tabIndex={0}` on the inner wrapper. Implied when `href` is set. |
160
- | `linkAs` | `string \| Component` | — | Component rendered in place of the interactive `<a>`. The root stays `as` (`li` or `div`). Ignored while disabled. |
161
- | `linkProps` | props of `linkAs` | — | Props forwarded to `linkAs`. Checked against that component. Ignored while `linkAs` is not rendered. |
162
- | `primary` | `string` | — | Primary label text. |
163
- | `rel` | `string` | — | Relationship of the linked URL. Forwarded to the anchor when `href` is set. |
164
- | `role` | `"button" \| "menuitem" \| "option"` | "button" | ARIA role for the interactive wrapper. Omitted when `href` is set. |
165
- | `secondary` | `string` | — | Secondary/description text below the primary line. |
166
- | `selected` | `boolean` | `false` | When true, highlights the item as selected. |
167
- | `selectedIcon` | `null \| LucideIcon` | `Check` | Icon shown when `selected` is true. Use `null` to hide it. Replaced by `#end`. |
168
- | `target` | `string` | — | Where to open the URL. Forwarded to the anchor when `href` is set. |
169
- | `value` | `ListboxValue` | — | When set inside a `Select` / `Listbox`, registers this row as a selectable option. |
165
+ | Prop | Type | Default | Description |
166
+ | -------------- | ------------------------------------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------- |
167
+ | `as` | `"div" \| "li"` | "li" | The element to render as. |
168
+ | `classes` | `ListItemClasses` | — | The classes to apply to the item. |
169
+ | `customProps` | `ListItemCustomProps` | — | Props forwarded to each item part. |
170
+ | `dense` | `boolean` | — | Compact vertical padding. Inherits `dense` from parent `List` when omitted. |
171
+ | `disabled` | `boolean` | `false` | When true, the item is not interactive and appears muted. |
172
+ | `divider` | `boolean` | `false` | When true, renders a bottom divider on the item. |
173
+ | `href` | `string` | — | URL for the interactive wrapper. Renders an anchor so hover shows the address and middle-click opens a new tab. |
174
+ | `interactive` | `boolean` | `false` | When true, applies hover/focus styles and `tabIndex={0}` on the inner wrapper. Implied when `href` is set. |
175
+ | `linkAs` | `string \| Component` | — | Component rendered in place of the interactive `<a>`. The root stays `as` (`li` or `div`). Ignored while disabled. |
176
+ | `linkProps` | props of `linkAs` | — | Props forwarded to `linkAs`. Checked against that component. Ignored while `linkAs` is not rendered. |
177
+ | `primary` | `string` | — | Primary label text. |
178
+ | `rel` | `string` | — | Relationship of the linked URL. Forwarded to the anchor when `href` is set. |
179
+ | `role` | `"button" \| "menuitem" \| "option"` | "button" | ARIA role for the interactive wrapper. Omitted when `href` is set. |
180
+ | `secondary` | `string` | — | Secondary/description text below the primary line. |
181
+ | `selected` | `boolean` | `false` | When true, highlights the item as selected. |
182
+ | `selectedIcon` | `null \| LucideIcon` | `Check` | Icon shown when `selected` is true. Use `null` to hide it. Replaced by `#end`. |
183
+ | `size` | `"lg" \| "md" \| "sm"` | — | Typography scale for the row. Inherits `size` from parent `List` when omitted. Ignored inside a `Listbox`, which applies its own size. |
184
+ | `target` | `string` | — | Where to open the URL. Forwarded to the anchor when `href` is set. |
185
+ | `value` | `ListboxValue` | — | When set inside a `Select` / `Listbox`, registers this row as a selectable option. |
170
186
 
171
187
  ## Props (`ListSection`)
172
188
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "license": "MIT",
4
- "version": "0.25.0",
4
+ "version": "0.26.0",
5
5
  "author": "BridgeUI",
6
6
  "sideEffects": false,
7
7
  "name": "@bridge-ui/vue",
@@ -89,7 +89,7 @@
89
89
  "test:cy:open": "cypress open --component"
90
90
  },
91
91
  "dependencies": {
92
- "@bridge-ui/core": "^0.25.0",
92
+ "@bridge-ui/core": "^0.26.0",
93
93
  "clsx": "^2.1.1",
94
94
  "es-toolkit": "^1.53.2",
95
95
  "tailwind-merge": "^3.7.1"