@bridge-ui/vue 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Adapters/Examples/icon-fontawesome.js +52 -40
- package/dist/Adapters/Examples/icon-heroicons.js +43 -31
- package/dist/Adapters/Examples/icon-lucide.js +46 -34
- package/dist/Adapters/Examples/icon-phosphor.js +36 -24
- package/dist/Adapters/Examples/icon-tabler.js +44 -32
- package/dist/Adapters/Examples/rich-text-tiptap.d.ts +5 -0
- package/dist/Adapters/Examples/rich-text-tiptap.js +138 -0
- package/dist/Adapters/RichText/index.d.ts +1 -0
- package/dist/Adapters/RichText/index.js +2 -0
- package/dist/Adapters/RichText/mockRichTextAdapter.d.ts +5 -0
- package/dist/Adapters/RichText/useRichTextAdapter.d.ts +12 -0
- package/dist/Adapters/RichText/useRichTextAdapter.js +13 -0
- package/dist/Adapters/index.d.ts +1 -0
- package/dist/Adapters/index.js +2 -1
- package/dist/Components/ActionFooter/composables/useActionFooter.d.ts +6 -6
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +2 -2
- package/dist/Components/Breadcrumb/Breadcrumb.vue.d.ts +17 -10
- package/dist/Components/Breadcrumb/Breadcrumb.vue_vue_type_script_setup_true_lang.js +7 -2
- package/dist/Components/Breadcrumb/breadcrumb.types.d.ts +22 -4
- package/dist/Components/Breadcrumb/breadcrumbInjectionKey.d.ts +5 -1
- package/dist/Components/Breadcrumb/composables/useBreadcrumb.d.ts +6 -5
- package/dist/Components/Breadcrumb/composables/useBreadcrumb.js +2 -0
- package/dist/Components/BreadcrumbItem/BreadcrumbItem.vue.d.ts +17 -11
- package/dist/Components/BreadcrumbItem/BreadcrumbItem.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/Components/BreadcrumbItem/breadcrumbItem.types.d.ts +21 -3
- package/dist/Components/BreadcrumbItem/composables/useBreadcrumbItem.d.ts +10 -6
- package/dist/Components/BreadcrumbItem/composables/useBreadcrumbItem.js +65 -59
- package/dist/Components/Button/Button.vue.d.ts +17 -8
- package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +10 -10
- package/dist/Components/Button/button.types.d.ts +22 -5
- package/dist/Components/Button/composables/useButton.d.ts +198 -8
- package/dist/Components/Button/composables/useButton.js +101 -86
- package/dist/Components/ColorPicker/composables/useColorPicker.js +1 -1
- package/dist/Components/DataTable/DataTable.vue.d.ts +1 -1
- package/dist/Components/DataTable/composables/useDataTable.d.ts +1 -1
- package/dist/Components/DataTable/composables/useDataTable.js +288 -282
- package/dist/Components/Drawer/composables/useDrawer.d.ts +1 -1
- package/dist/Components/Drawer/composables/useDrawer.js +2 -2
- package/dist/Components/FileUpload/FileUpload.js +5 -0
- package/dist/Components/FileUpload/FileUpload.vue.d.ts +28 -0
- package/dist/Components/FileUpload/FileUpload.vue_vue_type_script_setup_true_lang.js +132 -0
- package/dist/Components/FileUpload/composables/useFileUpload.d.ts +70 -0
- package/dist/Components/FileUpload/composables/useFileUpload.js +210 -0
- package/dist/Components/FileUpload/fileUpload.types.d.ts +306 -0
- package/dist/Components/FileUpload/index.d.ts +3 -0
- package/dist/Components/FileUpload/index.js +3 -0
- package/dist/Components/FormField/composables/useFormField.d.ts +1 -1
- package/dist/Components/Link/Link.vue.d.ts +17 -8
- package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +30 -25
- package/dist/Components/Link/composables/useLink.d.ts +8 -6
- package/dist/Components/Link/composables/useLink.js +52 -45
- package/dist/Components/Link/link.types.d.ts +21 -4
- package/dist/Components/ListItem/ListItem.vue.d.ts +17 -15
- package/dist/Components/ListItem/ListItem.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/Components/ListItem/composables/useListItem.d.ts +7 -6
- package/dist/Components/ListItem/composables/useListItem.js +108 -105
- package/dist/Components/ListItem/listItem.types.d.ts +19 -3
- package/dist/Components/Listbox/composables/useListbox.d.ts +2 -2
- package/dist/Components/Menu/composables/useMenu.js +6 -6
- package/dist/Components/Modal/composables/useModal.d.ts +1 -1
- package/dist/Components/Modal/composables/useModal.js +2 -2
- package/dist/Components/RichTextEditor/RichTextEditor.js +5 -0
- package/dist/Components/RichTextEditor/RichTextEditor.vue.d.ts +23 -0
- package/dist/Components/RichTextEditor/RichTextEditor.vue_vue_type_script_setup_true_lang.js +104 -0
- package/dist/Components/RichTextEditor/composables/useRichTextEditor.d.ts +488 -0
- package/dist/Components/RichTextEditor/composables/useRichTextEditor.js +226 -0
- package/dist/Components/RichTextEditor/index.d.ts +3 -0
- package/dist/Components/RichTextEditor/index.js +3 -0
- package/dist/Components/RichTextEditor/richTextEditor.types.d.ts +103 -0
- package/dist/Components/Select/composables/useSelect.js +2 -2
- package/dist/Components/Sidebar/SidebarListItem.vue.d.ts +17 -9
- package/dist/Components/Sidebar/SidebarListItem.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/Components/Sidebar/composables/useSidebarListItem.js +1 -1
- package/dist/Components/Sidebar/sidebar.types.d.ts +2 -1
- package/dist/Components/Snackbar/composables/useSnackbar.js +1 -1
- package/dist/Components/Textarea/composables/useTextarea.js +1 -1
- package/dist/Components/Tooltip/composables/useTooltip.js +3 -3
- package/dist/Utils/linkAs.d.ts +29 -0
- package/dist/Utils/linkAs.js +18 -0
- package/dist/augments.d.ts +10 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +175 -170
- package/dist/theme.css +3 -0
- package/docs/README.md +3 -0
- package/docs/components/Breadcrumb.md +16 -0
- package/docs/components/BridgeUIProvider.md +18 -1
- package/docs/components/Button.md +31 -19
- package/docs/components/DataTable.md +1 -1
- package/docs/components/FileUpload.md +122 -0
- package/docs/components/Link.md +28 -12
- package/docs/components/List.md +21 -19
- package/docs/components/RichTextEditor.md +88 -0
- package/docs/components/Sidebar.md +1 -1
- package/package.json +54 -18
package/dist/index.js
CHANGED
|
@@ -2,173 +2,178 @@ import { useBridgeUI as e } from "./Provider/useBridgeUI.js";
|
|
|
2
2
|
import { setDateAdapterForTests as t, useDateAdapter as n } from "./Adapters/Date/useDateAdapter.js";
|
|
3
3
|
import { setI18nAdapterForTests as r, useI18nAdapter as i, useResolveMessage as a } from "./Adapters/I18n/useI18nAdapter.js";
|
|
4
4
|
import { setIconAdapterForTests as o, useIconAdapter as s } from "./Adapters/Icon/useIconAdapter.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import {
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import {
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import {
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import {
|
|
80
|
-
import
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import {
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import
|
|
90
|
-
import
|
|
91
|
-
import
|
|
92
|
-
import
|
|
93
|
-
import {
|
|
94
|
-
import
|
|
95
|
-
import
|
|
96
|
-
import
|
|
97
|
-
import
|
|
98
|
-
import
|
|
99
|
-
import
|
|
100
|
-
import
|
|
101
|
-
import
|
|
102
|
-
import
|
|
103
|
-
import
|
|
104
|
-
import
|
|
105
|
-
import
|
|
106
|
-
import
|
|
107
|
-
import
|
|
108
|
-
import
|
|
109
|
-
import
|
|
110
|
-
import
|
|
111
|
-
import
|
|
112
|
-
import
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import
|
|
116
|
-
import
|
|
117
|
-
import
|
|
118
|
-
import
|
|
119
|
-
import
|
|
120
|
-
import
|
|
121
|
-
import
|
|
122
|
-
import {
|
|
123
|
-
import
|
|
124
|
-
import
|
|
125
|
-
import
|
|
126
|
-
import
|
|
127
|
-
import
|
|
128
|
-
import
|
|
129
|
-
import {
|
|
130
|
-
import
|
|
131
|
-
import
|
|
132
|
-
import
|
|
133
|
-
import
|
|
134
|
-
import
|
|
135
|
-
import
|
|
136
|
-
import
|
|
137
|
-
import
|
|
138
|
-
import
|
|
139
|
-
import
|
|
140
|
-
import
|
|
141
|
-
import
|
|
142
|
-
import {
|
|
143
|
-
import
|
|
144
|
-
import {
|
|
145
|
-
import
|
|
146
|
-
import {
|
|
147
|
-
import
|
|
148
|
-
import {
|
|
149
|
-
import
|
|
150
|
-
import
|
|
151
|
-
import
|
|
152
|
-
import
|
|
153
|
-
import
|
|
154
|
-
import
|
|
155
|
-
import
|
|
156
|
-
import
|
|
157
|
-
import {
|
|
158
|
-
import
|
|
159
|
-
import
|
|
160
|
-
import
|
|
161
|
-
import {
|
|
162
|
-
import
|
|
163
|
-
import
|
|
164
|
-
import
|
|
165
|
-
import {
|
|
166
|
-
import
|
|
167
|
-
import
|
|
168
|
-
import
|
|
169
|
-
import
|
|
170
|
-
import {
|
|
171
|
-
import
|
|
172
|
-
import {
|
|
173
|
-
import
|
|
174
|
-
|
|
5
|
+
import { setRichTextAdapterForTests as c, useRichTextAdapter as l } from "./Adapters/RichText/useRichTextAdapter.js";
|
|
6
|
+
import { ACCORDION_INJECTION_KEY as u } from "./Components/Accordion/accordionInjectionKey.js";
|
|
7
|
+
import { useBreakpoint as d } from "./Utils/useBreakpoint.js";
|
|
8
|
+
import { useBridgeUIComponent as f, useBridgeUIMergedRegistryClasses as p } from "./Utils/index.js";
|
|
9
|
+
import { useAccordion as m } from "./Components/Accordion/composables/useAccordion.js";
|
|
10
|
+
import h from "./Components/Accordion/Accordion.js";
|
|
11
|
+
import { useAccordionItem as g } from "./Components/AccordionItem/composables/useAccordionItem.js";
|
|
12
|
+
import _ from "./Components/Icon/Icon.js";
|
|
13
|
+
import v from "./Components/AccordionItem/AccordionItem.js";
|
|
14
|
+
import { useActionFooter as y } from "./Components/ActionFooter/composables/useActionFooter.js";
|
|
15
|
+
import { BUTTON_GROUP_INJECTION_KEY as b } from "./Components/ButtonGroup/buttonGroupInjectionKey.js";
|
|
16
|
+
import { useButton as x } from "./Components/Button/composables/useButton.js";
|
|
17
|
+
import S from "./Components/Button/Button.js";
|
|
18
|
+
import C from "./Components/ActionFooter/ActionFooter.js";
|
|
19
|
+
import { useAlert as w } from "./Components/Alert/composables/useAlert.js";
|
|
20
|
+
import T from "./Components/Alert/Alert.js";
|
|
21
|
+
import { useFormField as E } from "./Components/FormField/composables/useFormField.js";
|
|
22
|
+
import { findFirstEnabledOptionIndex as D, findLastEnabledOptionIndex as O, getListboxActiveDescendantId as k, getListboxOptionId as A, moveListboxHighlight as j, useListboxNavigation as M } from "./Components/Listbox/composables/useListboxNavigation.js";
|
|
23
|
+
import { useChip as N } from "./Components/Chip/composables/useChip.js";
|
|
24
|
+
import P from "./Components/Chip/Chip.js";
|
|
25
|
+
import { useLabel as F } from "./Components/Label/composables/useLabel.js";
|
|
26
|
+
import I from "./Components/Label/Label.js";
|
|
27
|
+
import L from "./Components/FormField/FormField.js";
|
|
28
|
+
import { useListbox as R } from "./Components/Listbox/composables/useListbox.js";
|
|
29
|
+
import { useFieldOverlay as z } from "./Components/FieldOverlay/composables/useFieldOverlay.js";
|
|
30
|
+
import { useDrawer as B } from "./Components/Drawer/composables/useDrawer.js";
|
|
31
|
+
import V from "./Components/Drawer/Drawer.js";
|
|
32
|
+
import { useMenu as H } from "./Components/Menu/composables/useMenu.js";
|
|
33
|
+
import U from "./Components/Menu/Menu.js";
|
|
34
|
+
import { useModal as W } from "./Components/Modal/composables/useModal.js";
|
|
35
|
+
import G from "./Components/Modal/Modal.js";
|
|
36
|
+
import K from "./Components/FieldOverlay/FieldOverlay.js";
|
|
37
|
+
import { useList as q } from "./Components/List/composables/useList.js";
|
|
38
|
+
import J from "./Components/List/List.js";
|
|
39
|
+
import Y from "./Components/ListItem/ListItem.js";
|
|
40
|
+
import X from "./Components/ListSection/ListSection.js";
|
|
41
|
+
import { useProgress as Z } from "./Components/Progress/composables/useProgress.js";
|
|
42
|
+
import Q from "./Components/Progress/Progress.js";
|
|
43
|
+
import $ from "./Components/Listbox/Listbox.js";
|
|
44
|
+
import ee from "./Components/Autocomplete/Autocomplete.js";
|
|
45
|
+
import te from "./Components/Autocomplete/AutocompleteOption.js";
|
|
46
|
+
import ne from "./Components/Avatar/Avatar.js";
|
|
47
|
+
import { useBadge as re } from "./Components/Badge/composables/useBadge.js";
|
|
48
|
+
import ie from "./Components/Badge/Badge.js";
|
|
49
|
+
import ae from "./Components/BaseField/BaseField.js";
|
|
50
|
+
import { useBaseField as oe } from "./Components/BaseField/composables/useBaseField.js";
|
|
51
|
+
import { useBreadcrumb as se } from "./Components/Breadcrumb/composables/useBreadcrumb.js";
|
|
52
|
+
import { useBreadcrumbItem as ce } from "./Components/BreadcrumbItem/composables/useBreadcrumbItem.js";
|
|
53
|
+
import le from "./Components/BreadcrumbItem/BreadcrumbItem.js";
|
|
54
|
+
import ue from "./Components/Breadcrumb/Breadcrumb.js";
|
|
55
|
+
import { useButtonGroup as de } from "./Components/ButtonGroup/composables/useButtonGroup.js";
|
|
56
|
+
import fe from "./Components/ButtonGroup/ButtonGroup.js";
|
|
57
|
+
import { useCalendar as pe } from "./Components/Calendar/composables/useCalendar.js";
|
|
58
|
+
import { useCalendarDate as me } from "./Components/CalendarDate/composables/useCalendarDate.js";
|
|
59
|
+
import he from "./Components/CalendarDate/CalendarDate.js";
|
|
60
|
+
import { useCalendarMonth as ge } from "./Components/CalendarMonth/composables/useCalendarMonth.js";
|
|
61
|
+
import _e from "./Components/CalendarMonth/CalendarMonth.js";
|
|
62
|
+
import { useCalendarYear as ve } from "./Components/CalendarYear/composables/useCalendarYear.js";
|
|
63
|
+
import ye from "./Components/CalendarYear/CalendarYear.js";
|
|
64
|
+
import be from "./Components/Calendar/Calendar.js";
|
|
65
|
+
import { useCalendarRange as xe } from "./Components/CalendarRange/composables/useCalendarRange.js";
|
|
66
|
+
import { useDivider as Se } from "./Components/Divider/composables/useDivider.js";
|
|
67
|
+
import Ce from "./Components/Divider/Divider.js";
|
|
68
|
+
import we from "./Components/CalendarRange/CalendarRange.js";
|
|
69
|
+
import { useCard as Te } from "./Components/Card/composables/useCard.js";
|
|
70
|
+
import Ee from "./Components/Card/Card.js";
|
|
71
|
+
import { useFormControl as De } from "./Components/FormControl/composables/useFormControl.js";
|
|
72
|
+
import Oe from "./Components/FormControl/FormControl.js";
|
|
73
|
+
import { useCheckbox as ke } from "./Components/Checkbox/composables/useCheckbox.js";
|
|
74
|
+
import Ae from "./Components/Checkbox/Checkbox.js";
|
|
75
|
+
import { useColorField as je } from "./Components/ColorField/composables/useColorField.js";
|
|
76
|
+
import { useColorPicker as Me } from "./Components/ColorPicker/composables/useColorPicker.js";
|
|
77
|
+
import Ne from "./Components/ColorPicker/ColorPicker.js";
|
|
78
|
+
import Pe from "./Components/ColorField/ColorField.js";
|
|
79
|
+
import { useDateField as Fe } from "./Components/DateField/composables/useDateField.js";
|
|
80
|
+
import { useDatePicker as Ie } from "./Components/DatePicker/composables/useDatePicker.js";
|
|
81
|
+
import Le from "./Components/DatePicker/DatePicker.js";
|
|
82
|
+
import Re from "./Components/DateField/DateField.js";
|
|
83
|
+
import { useDateRangeField as ze } from "./Components/DateRangeField/composables/useDateRangeField.js";
|
|
84
|
+
import { useDateRangePicker as Be } from "./Components/DateRangePicker/composables/useDateRangePicker.js";
|
|
85
|
+
import Ve from "./Components/DateRangePicker/DateRangePicker.js";
|
|
86
|
+
import He from "./Components/DateRangeField/DateRangeField.js";
|
|
87
|
+
import { useDateTimeField as Ue } from "./Components/DateTimeField/composables/useDateTimeField.js";
|
|
88
|
+
import { useDateTimePicker as We } from "./Components/DateTimePicker/composables/useDateTimePicker.js";
|
|
89
|
+
import { useTimePanel as Ge } from "./Components/TimePanel/composables/useTimePanel.js";
|
|
90
|
+
import Ke from "./Components/TimePanel/TimePanel.js";
|
|
91
|
+
import qe from "./Components/DateTimePicker/DateTimePicker.js";
|
|
92
|
+
import Je from "./Components/DateTimeField/DateTimeField.js";
|
|
93
|
+
import { useDateTimeRangeField as Ye } from "./Components/DateTimeRangeField/composables/useDateTimeRangeField.js";
|
|
94
|
+
import { useDateTimeRangePicker as Xe } from "./Components/DateTimeRangePicker/composables/useDateTimeRangePicker.js";
|
|
95
|
+
import Ze from "./Components/DateTimeRangePicker/DateTimeRangePicker.js";
|
|
96
|
+
import Qe from "./Components/DateTimeRangeField/DateTimeRangeField.js";
|
|
97
|
+
import { useEmptyState as $e } from "./Components/EmptyState/composables/useEmptyState.js";
|
|
98
|
+
import et from "./Components/EmptyState/EmptyState.js";
|
|
99
|
+
import { useFileUpload as tt } from "./Components/FileUpload/composables/useFileUpload.js";
|
|
100
|
+
import nt from "./Components/FileUpload/FileUpload.js";
|
|
101
|
+
import { useLink as rt } from "./Components/Link/composables/useLink.js";
|
|
102
|
+
import it from "./Components/Link/Link.js";
|
|
103
|
+
import { useNumberField as at } from "./Components/NumberField/composables/useNumberField.js";
|
|
104
|
+
import ot from "./Components/NumberField/NumberField.js";
|
|
105
|
+
import { useOtpField as st } from "./Components/OtpField/composables/useOtpField.js";
|
|
106
|
+
import ct from "./Components/OtpField/OtpField.js";
|
|
107
|
+
import { usePagination as lt } from "./Components/Pagination/composables/usePagination.js";
|
|
108
|
+
import ut from "./Components/Pagination/Pagination.js";
|
|
109
|
+
import { usePasswordField as dt } from "./Components/PasswordField/composables/usePasswordField.js";
|
|
110
|
+
import ft from "./Components/PasswordField/PasswordField.js";
|
|
111
|
+
import { useRadio as pt } from "./Components/Radio/composables/useRadio.js";
|
|
112
|
+
import mt from "./Components/Radio/Radio.js";
|
|
113
|
+
import { useRichTextEditor as ht } from "./Components/RichTextEditor/composables/useRichTextEditor.js";
|
|
114
|
+
import { useTextField as gt } from "./Components/TextField/composables/useTextField.js";
|
|
115
|
+
import _t from "./Components/TextField/TextField.js";
|
|
116
|
+
import vt from "./Components/RichTextEditor/RichTextEditor.js";
|
|
117
|
+
import yt from "./Components/Select/Select.js";
|
|
118
|
+
import bt from "./Components/Select/SelectOption.js";
|
|
119
|
+
import { useSidebar as xt } from "./Components/Sidebar/composables/useSidebar.js";
|
|
120
|
+
import { useSidebarInset as St } from "./Components/Sidebar/composables/useSidebarInset.js";
|
|
121
|
+
import { useSidebarList as Ct } from "./Components/Sidebar/composables/useSidebarList.js";
|
|
122
|
+
import { useSidebarListItem as wt } from "./Components/Sidebar/composables/useSidebarListItem.js";
|
|
123
|
+
import { useSidebarProvider as Tt } from "./Components/Sidebar/composables/useSidebarProvider.js";
|
|
124
|
+
import { useSidebarShell as Et } from "./Components/Sidebar/composables/useSidebarShell.js";
|
|
125
|
+
import { useSidebarTrigger as Dt } from "./Components/Sidebar/composables/useSidebarTrigger.js";
|
|
126
|
+
import Ot from "./Components/Sidebar/Sidebar.js";
|
|
127
|
+
import kt from "./Components/Sidebar/SidebarInset.js";
|
|
128
|
+
import At from "./Components/Sidebar/SidebarList.js";
|
|
129
|
+
import { useTooltip as jt } from "./Components/Tooltip/composables/useTooltip.js";
|
|
130
|
+
import Mt from "./Components/Tooltip/Tooltip.js";
|
|
131
|
+
import Nt from "./Components/Sidebar/SidebarListItem.js";
|
|
132
|
+
import Pt from "./Components/Sidebar/SidebarProvider.js";
|
|
133
|
+
import Ft from "./Components/Sidebar/SidebarTrigger.js";
|
|
134
|
+
import { useSkeleton as It } from "./Components/Skeleton/composables/useSkeleton.js";
|
|
135
|
+
import Lt from "./Components/Skeleton/Skeleton.js";
|
|
136
|
+
import { useSlider as Rt } from "./Components/Slider/composables/useSlider.js";
|
|
137
|
+
import zt from "./Components/Slider/Slider.js";
|
|
138
|
+
import { useSnackbar as Bt } from "./Components/Snackbar/composables/useSnackbar.js";
|
|
139
|
+
import Vt from "./Components/Snackbar/Snackbar.js";
|
|
140
|
+
import { useSpinner as Ht } from "./Components/Spinner/composables/useSpinner.js";
|
|
141
|
+
import Ut from "./Components/Spinner/Spinner.js";
|
|
142
|
+
import { useStep as Wt } from "./Components/Step/composables/useStep.js";
|
|
143
|
+
import Gt from "./Components/Step/Step.js";
|
|
144
|
+
import { useStepper as Kt } from "./Components/Stepper/composables/useStepper.js";
|
|
145
|
+
import qt from "./Components/Stepper/Stepper.js";
|
|
146
|
+
import { useSwitch as Jt } from "./Components/Switch/composables/useSwitch.js";
|
|
147
|
+
import Yt from "./Components/Switch/Switch.js";
|
|
148
|
+
import { TABS_INJECTION_KEY as Xt } from "./Components/Tabs/tabsInjectionKey.js";
|
|
149
|
+
import { useTab as Zt } from "./Components/Tab/composables/useTab.js";
|
|
150
|
+
import Qt from "./Components/Tab/Tab.js";
|
|
151
|
+
import { useTabItem as $t } from "./Components/TabItem/composables/useTabItem.js";
|
|
152
|
+
import en from "./Components/TabItem/TabItem.js";
|
|
153
|
+
import { useTabList as tn } from "./Components/TabList/composables/useTabList.js";
|
|
154
|
+
import nn from "./Components/TabList/TabList.js";
|
|
155
|
+
import { useTabPanel as rn } from "./Components/TabPanel/composables/useTabPanel.js";
|
|
156
|
+
import an from "./Components/TabPanel/TabPanel.js";
|
|
157
|
+
import { useTabs as on } from "./Components/Tabs/composables/useTabs.js";
|
|
158
|
+
import sn from "./Components/Tabs/Tabs.js";
|
|
159
|
+
import { useTextarea as cn } from "./Components/Textarea/composables/useTextarea.js";
|
|
160
|
+
import ln from "./Components/Textarea/Textarea.js";
|
|
161
|
+
import { useTimeField as un } from "./Components/TimeField/composables/useTimeField.js";
|
|
162
|
+
import { useTimePicker as dn } from "./Components/TimePicker/composables/useTimePicker.js";
|
|
163
|
+
import fn from "./Components/TimePicker/TimePicker.js";
|
|
164
|
+
import pn from "./Components/TimeField/TimeField.js";
|
|
165
|
+
import { useTimeRangeField as mn } from "./Components/TimeRangeField/composables/useTimeRangeField.js";
|
|
166
|
+
import { useTimeRangePicker as hn } from "./Components/TimeRangePicker/composables/useTimeRangePicker.js";
|
|
167
|
+
import gn from "./Components/TimeRangePicker/TimeRangePicker.js";
|
|
168
|
+
import _n from "./Components/TimeRangeField/TimeRangeField.js";
|
|
169
|
+
import { TOGGLE_GROUP_INJECTION_KEY as vn } from "./Components/ToggleGroup/toggleGroupInjectionKey.js";
|
|
170
|
+
import { useToggleGroup as yn } from "./Components/ToggleGroup/composables/useToggleGroup.js";
|
|
171
|
+
import bn from "./Components/ToggleGroup/ToggleGroup.js";
|
|
172
|
+
import { useToggleItem as xn } from "./Components/ToggleItem/composables/useToggleItem.js";
|
|
173
|
+
import Sn from "./Components/ToggleItem/ToggleItem.js";
|
|
174
|
+
import Cn from "./Provider/BridgeUIProvider.js";
|
|
175
|
+
import { createBridgeUI as wn } from "./Provider/createBridgeUI.js";
|
|
176
|
+
import { SEMANTIC_ICON_NAMES as Tn, interpolateMessage as En, resolveMessage as Dn, selectPluralMessage as On } from "@bridge-ui/core/Adapters";
|
|
177
|
+
import { cn as kn } from "@bridge-ui/core/Utils";
|
|
178
|
+
import { BRIDGE_UI_DEFAULT_GLOBAL as An, mergeBridgeUIComponents as jn, mergeBridgeUIGlobal as Mn, resolveBridgeUIOptions as Nn } from "@bridge-ui/core/Config";
|
|
179
|
+
export { u as ACCORDION_INJECTION_KEY, h as Accordion, v as AccordionItem, C as ActionFooter, T as Alert, ee as Autocomplete, te as AutocompleteOption, ne as Avatar, An as BRIDGE_UI_DEFAULT_GLOBAL, b as BUTTON_GROUP_INJECTION_KEY, ie as Badge, ae as BaseField, ue as Breadcrumb, le as BreadcrumbItem, Cn as BridgeUIProvider, S as Button, fe as ButtonGroup, be as Calendar, he as CalendarDate, _e as CalendarMonth, we as CalendarRange, ye as CalendarYear, Ee as Card, Ae as Checkbox, P as Chip, Pe as ColorField, Ne as ColorPicker, Re as DateField, Le as DatePicker, He as DateRangeField, Ve as DateRangePicker, Je as DateTimeField, qe as DateTimePicker, Qe as DateTimeRangeField, Ze as DateTimeRangePicker, Ce as Divider, V as Drawer, et as EmptyState, K as FieldOverlay, nt as FileUpload, Oe as FormControl, L as FormField, _ as Icon, I as Label, it as Link, J as List, Y as ListItem, X as ListSection, $ as Listbox, U as Menu, G as Modal, ot as NumberField, ct as OtpField, ut as Pagination, ft as PasswordField, Q as Progress, mt as Radio, vt as RichTextEditor, Tn as SEMANTIC_ICON_NAMES, yt as Select, bt as SelectOption, Ot as Sidebar, kt as SidebarInset, At as SidebarList, Nt as SidebarListItem, Pt as SidebarProvider, Ft as SidebarTrigger, Lt as Skeleton, zt as Slider, Vt as Snackbar, Ut as Spinner, Gt as Step, qt as Stepper, Yt as Switch, Xt as TABS_INJECTION_KEY, vn as TOGGLE_GROUP_INJECTION_KEY, Qt as Tab, en as TabItem, nn as TabList, an as TabPanel, sn as Tabs, _t as TextField, ln as Textarea, pn as TimeField, Ke as TimePanel, fn as TimePicker, _n as TimeRangeField, gn as TimeRangePicker, bn as ToggleGroup, Sn as ToggleItem, Mt as Tooltip, kn as cn, wn as createBridgeUI, D as findFirstEnabledOptionIndex, O as findLastEnabledOptionIndex, k as getListboxActiveDescendantId, A as getListboxOptionId, En as interpolateMessage, jn as mergeBridgeUIComponents, Mn as mergeBridgeUIGlobal, j as moveListboxHighlight, Nn as resolveBridgeUIOptions, Dn as resolveMessage, On as selectPluralMessage, t as setDateAdapterForTests, r as setI18nAdapterForTests, o as setIconAdapterForTests, c as setRichTextAdapterForTests, m as useAccordion, g as useAccordionItem, y as useActionFooter, w as useAlert, re as useBadge, oe as useBaseField, se as useBreadcrumb, ce as useBreadcrumbItem, d as useBreakpoint, e as useBridgeUI, f as useBridgeUIComponent, p as useBridgeUIMergedRegistryClasses, x as useButton, de as useButtonGroup, pe as useCalendar, me as useCalendarDate, ge as useCalendarMonth, xe as useCalendarRange, ve as useCalendarYear, Te as useCard, ke as useCheckbox, N as useChip, je as useColorField, Me as useColorPicker, n as useDateAdapter, Fe as useDateField, Ie as useDatePicker, ze as useDateRangeField, Be as useDateRangePicker, Ue as useDateTimeField, We as useDateTimePicker, Ye as useDateTimeRangeField, Xe as useDateTimeRangePicker, Se as useDivider, B as useDrawer, $e as useEmptyState, z as useFieldOverlay, tt as useFileUpload, De as useFormControl, E as useFormField, i as useI18nAdapter, s as useIconAdapter, F as useLabel, rt as useLink, q as useList, R as useListbox, M as useListboxNavigation, H as useMenu, W as useModal, at as useNumberField, st as useOtpField, lt as usePagination, dt as usePasswordField, Z as useProgress, pt as useRadio, a as useResolveMessage, l as useRichTextAdapter, ht as useRichTextEditor, xt as useSidebar, St as useSidebarInset, Ct as useSidebarList, wt as useSidebarListItem, Tt as useSidebarProvider, Et as useSidebarShell, Dt as useSidebarTrigger, It as useSkeleton, Rt as useSlider, Bt as useSnackbar, Ht as useSpinner, Wt as useStep, Kt as useStepper, Jt as useSwitch, Zt as useTab, $t as useTabItem, tn as useTabList, rn as useTabPanel, on as useTabs, gt as useTextField, cn as useTextarea, un as useTimeField, Ge as useTimePanel, dn as useTimePicker, mn as useTimeRangeField, hn as useTimeRangePicker, yn as useToggleGroup, xn as useToggleItem, jt as useTooltip };
|
package/dist/theme.css
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
@import "@bridge-ui/core/utilities.css";
|
|
2
2
|
|
|
3
|
+
@plugin "@tailwindcss/typography";
|
|
4
|
+
|
|
3
5
|
@source "./Actions";
|
|
4
6
|
@source "./Components";
|
|
7
|
+
@source "./Adapters/Examples";
|
|
5
8
|
@source "../../core/dist/Tokens";
|
|
6
9
|
|
|
7
10
|
/* Emitted for JS (`useBreakpoint`) — Tailwind otherwise omits unused --breakpoint-* vars. */
|
package/docs/README.md
CHANGED
|
@@ -36,6 +36,7 @@ Component reference for **Vue**. This folder ships with the npm package.
|
|
|
36
36
|
- [Divider](./components/Divider.md)
|
|
37
37
|
- [Drawer](./components/Drawer.md)
|
|
38
38
|
- [EmptyState](./components/EmptyState.md)
|
|
39
|
+
- [FileUpload](./components/FileUpload.md)
|
|
39
40
|
- [FormControl](./components/FormControl.md)
|
|
40
41
|
- [FormField](./components/FormField.md)
|
|
41
42
|
- [I18n](./components/I18n.md)
|
|
@@ -51,6 +52,7 @@ Component reference for **Vue**. This folder ships with the npm package.
|
|
|
51
52
|
- [PasswordField](./components/PasswordField.md)
|
|
52
53
|
- [Progress](./components/Progress.md)
|
|
53
54
|
- [Radio](./components/Radio.md)
|
|
55
|
+
- [RichTextEditor](./components/RichTextEditor.md)
|
|
54
56
|
- [Select](./components/Select.md)
|
|
55
57
|
- [Sidebar](./components/Sidebar.md)
|
|
56
58
|
- [Skeleton](./components/Skeleton.md)
|
|
@@ -95,3 +97,4 @@ Import from a subpath and install the matching optional peer. They are **not** r
|
|
|
95
97
|
- `@bridge-ui/vue/Adapters/Examples/icon-fontawesome`
|
|
96
98
|
- `@bridge-ui/vue/Adapters/Examples/i18n-dictionary`
|
|
97
99
|
- `@bridge-ui/vue/Adapters/Examples/i18n-vue-i18n`
|
|
100
|
+
- `@bridge-ui/vue/Adapters/Examples/rich-text-tiptap`
|
|
@@ -72,3 +72,19 @@ Omit the label and set `aria-label` for assistive tech.
|
|
|
72
72
|
```vue
|
|
73
73
|
<Breadcrumb :max-items="3" :items="deepCrumbs" />
|
|
74
74
|
```
|
|
75
|
+
|
|
76
|
+
### Router link
|
|
77
|
+
|
|
78
|
+
`link-as` replaces navigating crumb anchors. It applies to `items` and to child crumbs that omit their own `link-as`. The current crumb stays a non-link. `items[].linkProps` is checked against this `link-as`. On a child `BreadcrumbItem`, set `link-as` on that crumb for `link-props` to be checked against it.
|
|
79
|
+
|
|
80
|
+
```vue
|
|
81
|
+
<Breadcrumb :link-as="AppLink">
|
|
82
|
+
<BreadcrumbItem href="/">Home</BreadcrumbItem>
|
|
83
|
+
<BreadcrumbItem current>Settings</BreadcrumbItem>
|
|
84
|
+
</Breadcrumb>
|
|
85
|
+
|
|
86
|
+
<Breadcrumb
|
|
87
|
+
:link-as="AppLink"
|
|
88
|
+
:items="[{ href: '/', label: 'Home', linkProps: { replace: true } }]"
|
|
89
|
+
/>
|
|
90
|
+
```
|
|
@@ -101,9 +101,26 @@ const dates = createMomentDateAdapter({
|
|
|
101
101
|
});
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
+
### Rich-text adapter
|
|
105
|
+
|
|
106
|
+
Provide `global.richText` when using `RichTextEditor`. There is no native default — mounting without an adapter throws. Ready adapter: `@bridge-ui/vue/Adapters/Examples/rich-text-tiptap`. Install the TipTap peers next to `@bridge-ui/vue`.
|
|
107
|
+
|
|
108
|
+
```ts
|
|
109
|
+
import { createBridgeUI } from "@bridge-ui/vue";
|
|
110
|
+
import { createTiptapRichTextAdapter } from "@bridge-ui/vue/Adapters/Examples/rich-text-tiptap";
|
|
111
|
+
|
|
112
|
+
const richText = createTiptapRichTextAdapter();
|
|
113
|
+
|
|
114
|
+
app.use(
|
|
115
|
+
createBridgeUI({
|
|
116
|
+
global: { richText },
|
|
117
|
+
}),
|
|
118
|
+
);
|
|
119
|
+
```
|
|
120
|
+
|
|
104
121
|
### Form density defaults
|
|
105
122
|
|
|
106
|
-
Set `global.formDefaults` to apply shared `size` / `rounded` to form controls (TextField, Select, Checkbox, Slider, OtpField, …). Does not affect Button, Progress, Modal, etc.
|
|
123
|
+
Set `global.formDefaults` to apply shared `size` / `rounded` to form controls (TextField, Select, Checkbox, FileUpload, Slider, OtpField, …). Does not affect Button, Progress, Modal, etc.
|
|
107
124
|
|
|
108
125
|
Merge order: instance props → `components.{Name}.defaultProps` → chrome (`FormField` / `FormControl` / `BaseField` / `TimePanel`) → `formDefaults` → library defaults.
|
|
109
126
|
|
|
@@ -70,27 +70,39 @@ import { Button } from "@bridge-ui/vue/Components/Button";
|
|
|
70
70
|
</Button>
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
+
### Router link
|
|
74
|
+
|
|
75
|
+
`link-as` with `href` renders a link. `as="button"` and `as="span"` ignore it. `link-props` is checked against `link-as` and forwarded to it.
|
|
76
|
+
|
|
77
|
+
```vue
|
|
78
|
+
<Button href="/logout" :link-as="AppLink" :link-props="{ method: 'post' }">
|
|
79
|
+
Logout
|
|
80
|
+
</Button>
|
|
81
|
+
```
|
|
82
|
+
|
|
73
83
|
## Props
|
|
74
84
|
|
|
75
|
-
| Prop | Type | Default | Description
|
|
76
|
-
| ------------- | --------------------------- | --------- |
|
|
77
|
-
| `as` | `"a" \| "span" \| "button"` | "button" | The element to render as.
|
|
78
|
-
| `classes` | `ButtonClasses` | — | The classes to apply to the button.
|
|
79
|
-
| `color` | `ButtonColor` | "primary" | The color to apply to the button.
|
|
80
|
-
| `customProps` | `ButtonCustomProps` | — | Extra props for internal parts (`startIcon`, `endIcon`, slot wrappers, etc.). Root HTML attributes stay on the component top level.
|
|
81
|
-
| `density` | `ButtonDensity` | "default" | The density of the button.
|
|
82
|
-
| `disabled` | `boolean` | `false` | Whether the button is disabled.
|
|
83
|
-
| `endIcon` | `LucideIcon` | — | Icon at the **inline end** (physical right in `ltr`, physical left in `rtl`).
|
|
84
|
-
| `full` | `boolean` | `false` | Whether the button is full width.
|
|
85
|
-
| `href` | `string` | — | The href to apply to the button.
|
|
86
|
-
| `icon` | `LucideIcon` | — | Icon for mini density (replaces label and start/end icons).
|
|
87
|
-
| `
|
|
88
|
-
| `
|
|
89
|
-
| `
|
|
90
|
-
| `
|
|
91
|
-
| `
|
|
92
|
-
| `
|
|
93
|
-
| `
|
|
85
|
+
| Prop | Type | Default | Description |
|
|
86
|
+
| ------------- | --------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
87
|
+
| `as` | `"a" \| "span" \| "button"` | "button" | The element to render as. |
|
|
88
|
+
| `classes` | `ButtonClasses` | — | The classes to apply to the button. |
|
|
89
|
+
| `color` | `ButtonColor` | "primary" | The color to apply to the button. |
|
|
90
|
+
| `customProps` | `ButtonCustomProps` | — | Extra props for internal parts (`startIcon`, `endIcon`, slot wrappers, etc.). Root HTML attributes stay on the component top level. |
|
|
91
|
+
| `density` | `ButtonDensity` | "default" | The density of the button. |
|
|
92
|
+
| `disabled` | `boolean` | `false` | Whether the button is disabled. |
|
|
93
|
+
| `endIcon` | `LucideIcon` | — | Icon at the **inline end** (physical right in `ltr`, physical left in `rtl`). |
|
|
94
|
+
| `full` | `boolean` | `false` | Whether the button is full width. |
|
|
95
|
+
| `href` | `string` | — | The href to apply to the button. When `linkAs` is set, this also accepts that component's `href`. |
|
|
96
|
+
| `icon` | `LucideIcon` | — | Icon for mini density (replaces label and start/end icons). |
|
|
97
|
+
| `linkAs` | `string \| Component` | — | Component rendered in place of the navigating `<a>`. With `href` and no `as`, this renders a link. `as="button"` and `as="span"` ignore it. Ignored while disabled or loading. |
|
|
98
|
+
| `linkProps` | props of `linkAs` | — | Props forwarded to `linkAs`. Checked against that component. Ignored while `linkAs` is not rendered. |
|
|
99
|
+
| `loading` | `boolean` | `false` | Whether the button is loading. |
|
|
100
|
+
| `rounded` | `ButtonRounded` | "md" | The roundedness of the button. |
|
|
101
|
+
| `selected` | `boolean` | `false` | Whether the button is in a selected / pressed state. |
|
|
102
|
+
| `size` | `ButtonSize` | "md" | The size of the button. |
|
|
103
|
+
| `startIcon` | `LucideIcon` | — | Icon at the **inline start** (physical left in `ltr`, physical right in `rtl`). |
|
|
104
|
+
| `text` | `string` | — | Label text when the default slot is not used. |
|
|
105
|
+
| `variant` | `ButtonVariant` | "solid" | The variant of the button. |
|
|
94
106
|
|
|
95
107
|
## Related components
|
|
96
108
|
|
|
@@ -153,7 +153,7 @@ Empty rows render `EmptyState` at the table `size`, with the semantic `inbox` ic
|
|
|
153
153
|
/>
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
-
Install `@tanstack/vue-table` next to `@bridge-ui/vue` when you use `DataTable`. The public API stays `columns` / `rows` / `sorting` / `selection` / `filters` / `columnSearch` / `hiddenColumns` / `search` / `expanded` — the table engine is not exported.
|
|
156
|
+
Install `@tanstack/vue-table` v9 next to `@bridge-ui/vue` when you use `DataTable`. The public API stays `columns` / `rows` / `sorting` / `selection` / `filters` / `columnSearch` / `hiddenColumns` / `search` / `expanded` — the table engine is not exported.
|
|
157
157
|
|
|
158
158
|
### Columns
|
|
159
159
|
|