@bridge-ui/vue 0.24.0 → 0.25.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/AGENTS.md +1 -1
- package/ai/README.md +3 -4
- package/ai/guidelines/core.md +1 -1
- package/ai/llms.txt +1 -1
- package/ai/skills/bridge-ui-setup/SKILL.md +1 -1
- package/bin/__tests__/ai.test.ts +3 -1
- package/bin/ai.mjs +2 -2
- package/dist/Actions/BridgeUIHosts.vue.d.ts +5 -3
- package/dist/Actions/Dialog/BridgeDialogAction.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Actions/Dialog/BridgeDialogHost.vue.d.ts +5 -3
- package/dist/Actions/Dialog/BridgeDialogItem.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/Actions/Drawer/BridgeDrawerHost.vue.d.ts +5 -3
- package/dist/Actions/Drawer/BridgeDrawerHost.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/Actions/Modal/BridgeModalHost.vue.d.ts +5 -3
- package/dist/Actions/Modal/BridgeModalHost.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/Actions/Snackbar/BridgeSnackbarAction.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Actions/Snackbar/BridgeSnackbarHost.vue.d.ts +6 -4
- package/dist/Actions/Snackbar/BridgeSnackbarHost.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Actions/Snackbar/BridgeSnackbarItem.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Actions/index.js +10 -10
- package/dist/Components/Accordion/index.js +4 -4
- package/dist/Components/AccordionItem/AccordionItem.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Components/AccordionItem/index.js +3 -3
- package/dist/Components/ActionFooter/index.js +3 -3
- package/dist/Components/Alert/Alert.vue_vue_type_script_setup_true_lang.js +17 -13
- package/dist/Components/Alert/composables/useAlert.js +9 -9
- package/dist/Components/Alert/index.js +3 -3
- package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +98 -97
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +205 -199
- package/dist/Components/Autocomplete/index.js +4 -4
- package/dist/Components/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Components/Badge/Badge.vue.d.ts +5 -3
- package/dist/Components/Badge/index.js +3 -3
- package/dist/Components/BaseField/BaseField.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/Components/BaseField/BaseFieldCorner.vue.d.ts +5 -3
- package/dist/Components/BaseField/BaseFieldCorner.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/Components/BaseField/BaseFieldLabel.vue.d.ts +5 -3
- package/dist/Components/BaseField/BaseFieldLabel.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/Components/Breadcrumb/Breadcrumb.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/Components/Breadcrumb/composables/useBreadcrumb.js +9 -9
- package/dist/Components/Breadcrumb/index.js +4 -4
- package/dist/Components/BreadcrumbItem/BreadcrumbItem.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/Components/BreadcrumbItem/composables/useBreadcrumbItem.js +19 -19
- package/dist/Components/BreadcrumbItem/index.js +3 -3
- package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +15 -15
- package/dist/Components/Button/composables/useButton.js +14 -14
- package/dist/Components/Button/index.js +3 -3
- package/dist/Components/ButtonGroup/composables/useButtonGroup.js +10 -10
- package/dist/Components/ButtonGroup/index.js +4 -4
- package/dist/Components/Calendar/Calendar.vue_vue_type_script_setup_true_lang.js +26 -22
- package/dist/Components/Calendar/index.js +3 -3
- package/dist/Components/CalendarDate/CalendarDate.vue_vue_type_script_setup_true_lang.js +8 -4
- package/dist/Components/CalendarDate/index.js +3 -3
- package/dist/Components/CalendarMonth/CalendarMonth.vue_vue_type_script_setup_true_lang.js +8 -4
- package/dist/Components/CalendarMonth/index.js +3 -3
- package/dist/Components/CalendarRange/CalendarRange.vue_vue_type_script_setup_true_lang.js +104 -100
- package/dist/Components/CalendarRange/index.js +3 -3
- package/dist/Components/CalendarYear/CalendarYear.vue_vue_type_script_setup_true_lang.js +8 -4
- package/dist/Components/CalendarYear/index.js +3 -3
- package/dist/Components/Card/Card.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Components/Card/index.js +3 -3
- package/dist/Components/Carousel/Carousel.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/Carousel/composables/useCarousel.js +27 -27
- package/dist/Components/Carousel/index.js +4 -4
- package/dist/Components/CarouselSlide/composables/useCarouselSlide.js +6 -6
- package/dist/Components/CarouselSlide/index.js +3 -3
- package/dist/Components/ChartAxis/index.js +3 -3
- package/dist/Components/ChartBar/ChartBar.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/ChartBar/index.js +3 -3
- package/dist/Components/ChartBarSeries/index.js +3 -3
- package/dist/Components/ChartFunnel/ChartFunnel.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/ChartFunnel/index.js +3 -3
- package/dist/Components/ChartLegend/index.js +3 -3
- package/dist/Components/ChartLine/ChartLine.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/ChartLine/index.js +3 -3
- package/dist/Components/ChartLineSeries/index.js +3 -3
- package/dist/Components/ChartPie/ChartPie.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/Components/ChartPie/index.js +3 -3
- package/dist/Components/ChartScatter/ChartScatter.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/ChartScatter/composables/useChartScatter.js +11 -11
- package/dist/Components/ChartScatter/index.js +3 -3
- package/dist/Components/ChartScatterSeries/index.js +3 -3
- package/dist/Components/ChartTooltip/index.js +3 -3
- package/dist/Components/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Components/Checkbox/composables/useCheckbox.js +61 -57
- package/dist/Components/Checkbox/index.js +3 -3
- package/dist/Components/Chip/Chip.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Components/Chip/index.js +3 -3
- package/dist/Components/ColorField/ColorField.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/Components/ColorField/composables/useColorField.d.ts +96 -95
- package/dist/Components/ColorField/composables/useColorField.js +102 -98
- package/dist/Components/ColorField/index.js +3 -3
- package/dist/Components/ColorPicker/ColorPicker.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/ColorPicker/composables/useColorPicker.js +12 -12
- package/dist/Components/ColorPicker/index.js +3 -3
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +73 -73
- package/dist/Components/DataTable/DataTableCellContent.vue.d.ts +7 -5
- package/dist/Components/DataTable/DataTableColumnsMenu.vue_vue_type_script_setup_true_lang.js +10 -10
- package/dist/Components/DataTable/DataTableFilterMenu.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/Components/DataTable/DataTablePagination.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/DataTable/DataTableToolbarButton.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/DateField/DateField.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/Components/DateField/composables/useDateField.d.ts +96 -95
- package/dist/Components/DateField/composables/useDateField.js +97 -90
- package/dist/Components/DatePicker/DatePicker.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/DatePicker/composables/useDatePicker.js +9 -9
- package/dist/Components/DateRangeField/DateRangeField.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/Components/DateRangeField/composables/useDateRangeField.d.ts +96 -95
- package/dist/Components/DateRangeField/composables/useDateRangeField.js +91 -84
- package/dist/Components/DateRangePicker/DateRangePicker.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/DateRangePicker/composables/useDateRangePicker.js +9 -9
- package/dist/Components/DateTimeField/DateTimeField.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/Components/DateTimeField/composables/useDateTimeField.d.ts +96 -95
- package/dist/Components/DateTimeField/composables/useDateTimeField.js +92 -85
- package/dist/Components/DateTimePicker/DateTimePicker.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/Components/DateTimePicker/composables/useDateTimePicker.js +7 -7
- package/dist/Components/DateTimeRangeField/DateTimeRangeField.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.d.ts +96 -95
- package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.js +88 -81
- package/dist/Components/DateTimeRangePicker/DateTimeRangePicker.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/DateTimeRangePicker/composables/useDateTimeRangePicker.js +7 -7
- package/dist/Components/Drawer/Drawer.vue.d.ts +3 -3
- package/dist/Components/EmptyState/EmptyState.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Components/FieldOverlay/FieldOverlay.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/FieldOverlay/composables/useFieldOverlay.js +4 -4
- package/dist/Components/FieldOverlay/index.js +3 -3
- package/dist/Components/FileUpload/FileUpload.vue_vue_type_script_setup_true_lang.js +61 -61
- package/dist/Components/FileUpload/composables/useFileUpload.js +14 -14
- package/dist/Components/FileUploadItem/FileUploadItem.vue_vue_type_script_setup_true_lang.js +10 -10
- package/dist/Components/FormControl/FormControl.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/FormControl/FormControlLabel.vue.d.ts +6 -3
- package/dist/Components/FormControl/FormControlLabel.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/Components/FormControl/composables/useFormControl.js +61 -61
- package/dist/Components/FormField/FilledFormField.vue.d.ts +17 -15
- package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Components/FormField/FormField.vue_vue_type_script_setup_true_lang.js +30 -30
- package/dist/Components/FormField/FormFieldCorner.vue.d.ts +5 -3
- package/dist/Components/FormField/FormFieldCorner.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/Components/FormField/FormFieldLabel.vue.d.ts +5 -3
- package/dist/Components/FormField/FormFieldLabel.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/Components/FormField/NotchedFormField.vue.d.ts +17 -15
- package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/FormField/OutlinedFormField.vue.d.ts +17 -15
- package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Components/FormField/StackedFormField.vue.d.ts +17 -15
- package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Components/FormField/UnderlinedFormField.vue.d.ts +17 -15
- package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Components/FormField/composables/useFormField.d.ts +116 -96
- package/dist/Components/FormField/composables/useFormField.js +187 -171
- package/dist/Components/Icon/Icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/Label/Label.vue.d.ts +5 -3
- package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +10 -10
- package/dist/Components/List/List.vue.d.ts +6 -4
- package/dist/Components/List/composables/useList.js +6 -6
- package/dist/Components/List/index.js +4 -4
- package/dist/Components/ListItem/ListItem.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/Components/ListItem/composables/useListItem.js +15 -15
- package/dist/Components/ListSection/ListSection.vue.d.ts +1 -1
- package/dist/Components/ListSection/ListSection.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Components/ListSection/composables/useListSection.js +9 -9
- package/dist/Components/Listbox/Listbox.vue.d.ts +1 -1
- package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +49 -49
- package/dist/Components/Listbox/composables/useListbox.js +11 -11
- package/dist/Components/Listbox/index.js +5 -5
- package/dist/Components/Menu/Menu.vue.d.ts +4 -4
- package/dist/Components/Menu/Menu.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Components/Menu/composables/useMenu.js +10 -10
- package/dist/Components/Modal/Modal.vue.d.ts +2 -2
- package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +21 -21
- package/dist/Components/NumberField/composables/useNumberField.d.ts +96 -95
- package/dist/Components/NumberField/composables/useNumberField.js +6 -6
- package/dist/Components/OtpField/OtpField.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/OtpField/composables/useOtpField.js +17 -17
- package/dist/Components/PasswordField/PasswordField.vue.d.ts +1 -1
- package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/PasswordField/composables/usePasswordField.d.ts +96 -95
- package/dist/Components/PasswordField/composables/usePasswordField.js +6 -6
- package/dist/Components/Popover/Popover.vue.d.ts +4 -4
- package/dist/Components/Popover/Popover.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/Components/Popover/composables/usePopover.js +12 -12
- package/dist/Components/Radio/Radio.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/Radio/composables/useRadio.js +66 -62
- package/dist/Components/Rating/Rating.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/Components/Rating/composables/useRating.js +18 -18
- package/dist/Components/Resizable/composables/useResizable.js +6 -6
- package/dist/Components/Resizable/index.js +4 -4
- package/dist/Components/ResizableHandle/composables/useResizableHandle.js +10 -10
- package/dist/Components/ResizablePanel/composables/useResizablePanel.js +8 -8
- package/dist/Components/RichTextEditor/RichTextEditor.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/Components/RichTextEditor/composables/useRichTextEditor.d.ts +95 -94
- package/dist/Components/RichTextEditor/composables/useRichTextEditor.js +107 -96
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/Components/Select/composables/useSelect.d.ts +98 -97
- package/dist/Components/Select/composables/useSelect.js +221 -215
- package/dist/Components/Sidebar/Sidebar.vue.d.ts +3 -3
- package/dist/Components/Sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/Components/Sidebar/SidebarList.vue.d.ts +5 -3
- package/dist/Components/Sidebar/SidebarListItem.vue_vue_type_script_setup_true_lang.js +33 -29
- package/dist/Components/Sidebar/composables/useSidebarInset.js +5 -5
- package/dist/Components/Sidebar/composables/useSidebarListItem.js +9 -9
- package/dist/Components/Sidebar/composables/useSidebarProvider.js +6 -6
- package/dist/Components/Sidebar/composables/useSidebarShell.js +14 -14
- package/dist/Components/Sidebar/composables/useSidebarTrigger.js +4 -4
- package/dist/Components/Sidebar/index.js +10 -10
- package/dist/Components/Slider/Slider.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/Components/Slider/composables/useSlider.js +24 -24
- package/dist/Components/Snackbar/Snackbar.vue.d.ts +3 -3
- package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +79 -79
- package/dist/Components/Snackbar/composables/useSnackbar.js +15 -15
- package/dist/Components/Step/Step.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/Step/composables/useStep.js +13 -13
- package/dist/Components/Stepper/composables/useStepper.js +7 -7
- package/dist/Components/Stepper/index.js +4 -4
- package/dist/Components/Switch/Switch.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/Switch/composables/useSwitch.js +61 -57
- package/dist/Components/Tab/Tab.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/Components/Tab/composables/useTab.js +20 -20
- package/dist/Components/TabItem/TabItem.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/TabList/composables/useTabList.js +11 -11
- package/dist/Components/TabPanel/composables/useTabPanel.js +11 -11
- package/dist/Components/Table/composables/useTable.js +10 -10
- package/dist/Components/Table/composables/useTableCell.js +7 -7
- package/dist/Components/Table/composables/useTablePart.js +11 -11
- package/dist/Components/Table/composables/useTableRow.js +9 -9
- package/dist/Components/Table/index.js +13 -13
- package/dist/Components/Tabs/Tabs.vue_vue_type_script_setup_true_lang.js +25 -25
- package/dist/Components/Tabs/composables/useTabs.js +6 -6
- package/dist/Components/Tabs/index.js +4 -4
- package/dist/Components/TextField/TextField.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/TextField/composables/useTextField.d.ts +96 -95
- package/dist/Components/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/Components/Textarea/composables/useTextarea.d.ts +96 -95
- package/dist/Components/Textarea/composables/useTextarea.js +6 -6
- package/dist/Components/TimeField/TimeField.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/Components/TimeField/composables/useTimeField.d.ts +96 -95
- package/dist/Components/TimeField/composables/useTimeField.js +93 -86
- package/dist/Components/TimePanel/TimePanel.vue_vue_type_script_setup_true_lang.js +8 -4
- package/dist/Components/TimePicker/TimePicker.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Components/TimePicker/composables/useTimePicker.js +9 -9
- package/dist/Components/TimeRangeField/TimeRangeField.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.d.ts +96 -95
- package/dist/Components/TimeRangeField/composables/useTimeRangeField.js +89 -82
- package/dist/Components/TimeRangePicker/TimeRangePicker.vue_vue_type_script_setup_true_lang.js +12 -12
- package/dist/Components/TimeRangePicker/composables/useTimeRangePicker.js +10 -10
- package/dist/Components/ToggleGroup/composables/useToggleGroup.js +6 -6
- package/dist/Components/ToggleGroup/index.js +4 -4
- package/dist/Components/ToggleItem/ToggleItem.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/ToggleItem/composables/useToggleItem.js +11 -11
- package/dist/Components/Tooltip/Tooltip.vue.d.ts +4 -4
- package/dist/Components/Tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Provider/BridgeUIProvider.vue.d.ts +5 -3
- package/dist/Provider/BridgeUIProvider.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Provider/createBridgeUI.js +4 -4
- package/dist/Provider/index.js +4 -4
- package/dist/Utils/Charts/ChartFrame.vue.d.ts +11 -9
- package/dist/Utils/index.d.ts +5 -0
- package/dist/Utils/index.js +26 -21
- package/dist/index.js +193 -193
- package/docs/components/Autocomplete.md +4 -0
- package/docs/components/ColorField.md +4 -0
- package/docs/components/DateField.md +4 -0
- package/docs/components/DateRangeField.md +4 -0
- package/docs/components/DateTimeField.md +4 -0
- package/docs/components/DateTimeRangeField.md +4 -0
- package/docs/components/Drawer.md +8 -5
- package/docs/components/Modal.md +8 -5
- package/docs/components/RichTextEditor.md +4 -0
- package/docs/components/Select.md +4 -0
- package/docs/components/TimeField.md +4 -0
- package/docs/components/TimeRangeField.md +4 -0
- package/package.json +36 -36
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { BadgeOwnProps } from './badge.types';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
declare const __VLS_template: () => {
|
|
3
|
+
__VLS_Slots: {
|
|
4
|
+
default?: (props: {}) => any;
|
|
5
|
+
};
|
|
5
6
|
};
|
|
7
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
6
8
|
declare const __VLS_base: import('vue').DefineComponent<BadgeOwnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BadgeOwnProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
9
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
10
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "./
|
|
3
|
-
export {
|
|
1
|
+
import e from "./Badge.js";
|
|
2
|
+
import { useBadge as t } from "./composables/useBadge.js";
|
|
3
|
+
export { e as Badge, t as useBadge };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import i from "
|
|
1
|
+
import e from "./BaseFieldCorner.js";
|
|
2
|
+
import t from "./BaseFieldLabel.js";
|
|
3
|
+
import { hasNamedSlot as n, hasSlotOrProp as r, isPropPresent as i } from "../../Utils/slotOrProp.js";
|
|
4
4
|
import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, guardReactiveProps as m, mergeProps as h, normalizeProps as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b, useSlots as x, withCtx as S } from "vue";
|
|
5
5
|
// src/Components/BaseField/BaseField.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var C = [
|
|
@@ -18,31 +18,31 @@ var C = [
|
|
|
18
18
|
...E.field.slots,
|
|
19
19
|
...D
|
|
20
20
|
}
|
|
21
|
-
})), k = o(() =>
|
|
22
|
-
return (
|
|
21
|
+
})), k = o(() => r(D, "label", O.value.merged.value.label) || r(D, "corner", O.value.merged.value.corner));
|
|
22
|
+
return (r, o) => (_(), c("div", h(O.value.rootBind.value, {
|
|
23
23
|
"data-invalid": O.value.invalidated.value || void 0,
|
|
24
24
|
"aria-disabled": O.value.isDisabled.value || void 0,
|
|
25
25
|
"aria-readonly": O.value.isReadonly.value || void 0
|
|
26
26
|
}), [
|
|
27
|
-
k.value ? (_(), c("div", g(h({ key: 0 }, O.value.headerBind.value)), [f(
|
|
27
|
+
k.value ? (_(), c("div", g(h({ key: 0 }, O.value.headerBind.value)), [f(t, { api: O.value }, u({ _: 2 }, [b(n)(b(D), "label") ? {
|
|
28
28
|
name: "label",
|
|
29
|
-
fn: S(() => [v(
|
|
29
|
+
fn: S(() => [v(r.$slots, "label")]),
|
|
30
30
|
key: "0"
|
|
31
|
-
} : void 0]), 1032, ["api"]), f(
|
|
31
|
+
} : void 0]), 1032, ["api"]), f(e, { api: O.value }, u({ _: 2 }, [b(n)(b(D), "corner") ? {
|
|
32
32
|
name: "corner",
|
|
33
|
-
fn: S(() => [v(
|
|
33
|
+
fn: S(() => [v(r.$slots, "corner")]),
|
|
34
34
|
key: "0"
|
|
35
35
|
} : void 0]), 1032, ["api"])], 16)) : s("", !0),
|
|
36
36
|
l("div", g(m(O.value.groupBind.value)), [
|
|
37
|
-
b(
|
|
38
|
-
v(
|
|
39
|
-
b(
|
|
37
|
+
b(n)(b(D), "start") ? (_(), c("div", g(h({ key: 0 }, O.value.startSlotBind.value)), [v(r.$slots, "start")], 16)) : s("", !0),
|
|
38
|
+
v(r.$slots, "default"),
|
|
39
|
+
b(n)(b(D), "end") ? (_(), c("div", g(h({ key: 1 }, O.value.endSlotBind.value)), [v(r.$slots, "end")], 16)) : s("", !0)
|
|
40
40
|
], 16),
|
|
41
|
-
O.value.showDescriptionContent.value ? (_(), c("p", h({ key: 1 }, O.value.descriptionBind.value, { id: `${O.value.controlId.value}-description` }), [b(
|
|
41
|
+
O.value.showDescriptionContent.value ? (_(), c("p", h({ key: 1 }, O.value.descriptionBind.value, { id: `${O.value.controlId.value}-description` }), [b(n)(b(D), "description") ? v(r.$slots, "description", {}, void 0, void 0, 0) : b(i)(O.value.merged.value.description) ? (_(), c(a, { key: 1 }, [d(y(O.value.merged.value.description), 1)], 64)) : s("", !0)], 16, w)) : s("", !0),
|
|
42
42
|
O.value.showErrorMessageRow.value ? (_(), c("p", h({ key: 2 }, O.value.errorBind.value, {
|
|
43
43
|
id: `${O.value.controlId.value}-error`,
|
|
44
44
|
"aria-hidden": !O.value.showErrorMessageContent.value || void 0
|
|
45
|
-
}), [O.value.showErrorMessageContent.value ? (_(), c(a, { key: 0 }, [b(
|
|
45
|
+
}), [O.value.showErrorMessageContent.value ? (_(), c(a, { key: 0 }, [b(n)(b(D), "errorMessage") ? v(r.$slots, "errorMessage", {}, void 0, void 0, 0) : b(i)(O.value.merged.value.errorMessage) ? (_(), c(a, { key: 1 }, [d(y(O.value.merged.value.errorMessage), 1)], 64)) : s("", !0)], 64)) : s("", !0)], 16, T)) : s("", !0)
|
|
46
46
|
], 16, C));
|
|
47
47
|
}
|
|
48
48
|
});
|
|
@@ -2,10 +2,12 @@ import { UseBaseFieldReturn } from './composables/useBaseField';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
api: UseBaseFieldReturn;
|
|
4
4
|
};
|
|
5
|
-
declare
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
declare const __VLS_template: () => {
|
|
6
|
+
__VLS_Slots: {
|
|
7
|
+
corner?: (props: {}) => any;
|
|
8
|
+
};
|
|
8
9
|
};
|
|
10
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
9
11
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
13
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import n from "
|
|
1
|
+
import e from "../Label/Label.js";
|
|
2
|
+
import { hasNamedSlot as t, hasSlotOrProp as n } from "../../Utils/slotOrProp.js";
|
|
3
3
|
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createTextVNode as s, defineComponent as c, mergeProps as l, normalizeProps as u, openBlock as d, renderSlot as f, toDisplayString as p, unref as m, useSlots as h, withCtx as g } from "vue";
|
|
4
4
|
// src/Components/BaseField/BaseFieldCorner.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _ = /*@__PURE__*/ c({
|
|
@@ -7,8 +7,8 @@ var _ = /*@__PURE__*/ c({
|
|
|
7
7
|
props: { api: {} },
|
|
8
8
|
setup(c) {
|
|
9
9
|
let _ = h();
|
|
10
|
-
return (h, v) => m(
|
|
11
|
-
default: g(() => [m(
|
|
10
|
+
return (h, v) => m(n)(m(_), "corner", c.api.merged.value.corner) ? (d(), i(m(e), u(l({ key: 0 }, c.api.fieldCornerProps.value)), {
|
|
11
|
+
default: g(() => [m(t)(m(_), "corner") ? f(h.$slots, "corner", {}, void 0, void 0, 0) : (d(), o(r, { key: 1 }, [s(p(c.api.merged.value.corner), 1)], 64))]),
|
|
12
12
|
_: 3
|
|
13
13
|
}, 16)) : a("", !0);
|
|
14
14
|
}
|
|
@@ -2,10 +2,12 @@ import { UseBaseFieldReturn } from './composables/useBaseField';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
api: UseBaseFieldReturn;
|
|
4
4
|
};
|
|
5
|
-
declare
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
declare const __VLS_template: () => {
|
|
6
|
+
__VLS_Slots: {
|
|
7
|
+
label?: (props: {}) => any;
|
|
8
|
+
};
|
|
8
9
|
};
|
|
10
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
9
11
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
13
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import n from "
|
|
1
|
+
import e from "../Label/Label.js";
|
|
2
|
+
import { hasNamedSlot as t, hasSlotOrProp as n } from "../../Utils/slotOrProp.js";
|
|
3
3
|
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createTextVNode as s, defineComponent as c, mergeProps as l, normalizeProps as u, openBlock as d, renderSlot as f, toDisplayString as p, unref as m, useSlots as h, withCtx as g } from "vue";
|
|
4
4
|
// src/Components/BaseField/BaseFieldLabel.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _ = /*@__PURE__*/ c({
|
|
@@ -7,8 +7,8 @@ var _ = /*@__PURE__*/ c({
|
|
|
7
7
|
props: { api: {} },
|
|
8
8
|
setup(c) {
|
|
9
9
|
let _ = h();
|
|
10
|
-
return (h, v) => m(
|
|
11
|
-
default: g(() => [m(
|
|
10
|
+
return (h, v) => m(n)(m(_), "label", c.api.merged.value.label) ? (d(), i(m(e), u(l({ key: 0 }, c.api.fieldLabelProps.value)), {
|
|
11
|
+
default: g(() => [m(t)(m(_), "label") ? f(h.$slots, "label", {}, void 0, void 0, 0) : (d(), o(r, { key: 1 }, [s(p(c.api.merged.value.label), 1)], 64))]),
|
|
12
12
|
_: 3
|
|
13
13
|
}, 16)) : a("", !0);
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { BREADCRUMB_INJECTION_KEY as e } from "../breadcrumbInjectionKey.js";
|
|
2
|
+
import { mergePartBind as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as r } from "../../../Utils/index.js";
|
|
3
3
|
import { computed as i, provide as a, useAttrs as o, useSlots as s } from "vue";
|
|
4
4
|
import { get as c } from "es-toolkit/compat";
|
|
5
5
|
import { collapseBreadcrumbItems as l } from "@bridge-ui/core/Domain";
|
|
@@ -22,11 +22,11 @@ function h(h, g) {
|
|
|
22
22
|
...h
|
|
23
23
|
},
|
|
24
24
|
bridgeKeys: m
|
|
25
|
-
})), { merged: b, entry: x } =
|
|
25
|
+
})), { merged: b, entry: x } = n({
|
|
26
26
|
libDefaults: g,
|
|
27
27
|
componentName: "Breadcrumb",
|
|
28
28
|
props: () => y.value.componentProps
|
|
29
|
-
}), S = i(() => b.value.customProps), C = i(() => l(b.value.items ?? [], b.value.maxItems)), w =
|
|
29
|
+
}), S = i(() => b.value.customProps), C = i(() => l(b.value.items ?? [], b.value.maxItems)), w = r({
|
|
30
30
|
entry: x,
|
|
31
31
|
props: () => y.value.componentProps
|
|
32
32
|
}), T = i(() => f(u, x.value?.tokens?.size)), E = i(() => c(T.value, b.value.size)), D = i(() => ({
|
|
@@ -43,19 +43,19 @@ function h(h, g) {
|
|
|
43
43
|
separator: c(E.value, "separator")
|
|
44
44
|
}
|
|
45
45
|
}));
|
|
46
|
-
return a(
|
|
46
|
+
return a(e, D), {
|
|
47
47
|
merged: b,
|
|
48
48
|
rootBind: i(() => {
|
|
49
|
-
let
|
|
50
|
-
return
|
|
51
|
-
"aria-label":
|
|
49
|
+
let e = y.value.inheritedAttrs;
|
|
50
|
+
return t(S.value?.root, e, {
|
|
51
|
+
"aria-label": e["aria-label"] ?? "Breadcrumb",
|
|
52
52
|
class: d({
|
|
53
53
|
[c(E.value, "root") ?? ""]: !0,
|
|
54
54
|
[c(w.value, "root") ?? ""]: !0
|
|
55
55
|
})
|
|
56
56
|
});
|
|
57
57
|
}),
|
|
58
|
-
listBind: i(() =>
|
|
58
|
+
listBind: i(() => t(S.value?.list, {}, {
|
|
59
59
|
role: "list",
|
|
60
60
|
class: d({
|
|
61
61
|
[c(E.value, "list") ?? ""]: !0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import n from "./
|
|
4
|
-
export {
|
|
1
|
+
import e from "./Breadcrumb.js";
|
|
2
|
+
import { BREADCRUMB_INJECTION_KEY as t } from "./breadcrumbInjectionKey.js";
|
|
3
|
+
import { useBreadcrumb as n } from "./composables/useBreadcrumb.js";
|
|
4
|
+
export { t as BREADCRUMB_INJECTION_KEY, e as Breadcrumb, n as useBreadcrumb };
|
package/dist/Components/BreadcrumbItem/BreadcrumbItem.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useBreadcrumbItem as e } from "./composables/useBreadcrumbItem.js";
|
|
2
2
|
import t from "../Icon/Icon.js";
|
|
3
|
-
import {
|
|
3
|
+
import { hasNamedSlot as n } from "../../Utils/slotOrProp.js";
|
|
4
4
|
import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, guardReactiveProps as c, mergeProps as l, normalizeProps as u, openBlock as d, renderSlot as f, resolveDynamicComponent as p, unref as m, withCtx as h } from "vue";
|
|
5
5
|
// src/Components/BreadcrumbItem/BreadcrumbItem.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var g = /*@__PURE__*/ s({
|
|
@@ -25,18 +25,18 @@ var g = /*@__PURE__*/ s({
|
|
|
25
25
|
startIcon: {}
|
|
26
26
|
},
|
|
27
27
|
setup(s) {
|
|
28
|
-
let { slots: g, merged: _, crumbAs: v, rootBind: y, linkBind: b, endIconBind: x, startIconBind: S, separatorBind: C, separatorIcon: w, separatorContent: T, separatorIconBind: E } =
|
|
29
|
-
return (
|
|
28
|
+
let { slots: g, merged: _, crumbAs: v, rootBind: y, linkBind: b, endIconBind: x, startIconBind: S, separatorBind: C, separatorIcon: w, separatorContent: T, separatorIconBind: E } = e(s);
|
|
29
|
+
return (e, s) => (d(), a("li", u(c(m(y))), [o("span", u(c(m(C))), [m(T) ? (d(), r(p(m(T)), { key: 0 })) : (d(), r(m(t), l({
|
|
30
30
|
key: 1,
|
|
31
31
|
icon: m(w)
|
|
32
32
|
}, m(E)), null, 16, ["icon"]))], 16), (d(), r(p(m(v)), u(c(m(b))), {
|
|
33
33
|
default: h(() => [
|
|
34
|
-
m(
|
|
34
|
+
m(n)(m(g), "start") ? f(e.$slots, "start", {}, void 0, void 0, 0) : m(_).startIcon ? (d(), r(m(t), l({
|
|
35
35
|
key: 1,
|
|
36
36
|
icon: m(_).startIcon
|
|
37
37
|
}, m(S)), null, 16, ["icon"])) : i("", !0),
|
|
38
|
-
f(
|
|
39
|
-
m(
|
|
38
|
+
f(e.$slots, "default"),
|
|
39
|
+
m(n)(m(g), "end") ? f(e.$slots, "end", {}, void 0, void 0, 2) : m(_).endIcon ? (d(), r(m(t), l({
|
|
40
40
|
key: 3,
|
|
41
41
|
icon: m(_).endIcon
|
|
42
42
|
}, m(x)), null, 16, ["icon"])) : i("", !0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { BREADCRUMB_INJECTION_KEY as e } from "../../Breadcrumb/breadcrumbInjectionKey.js";
|
|
2
|
+
import { mergePartBind as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as r } from "../../../Utils/index.js";
|
|
3
|
+
import { resolveLinkAsProps as i } from "../../../Utils/linkAs.js";
|
|
4
4
|
import { computed as a, inject as o, useAttrs as s, useSlots as c } from "vue";
|
|
5
5
|
import { get as l, omit as u, pick as d } from "es-toolkit/compat";
|
|
6
6
|
import { cn as f, splitComponentProps as p } from "@bridge-ui/core/Utils";
|
|
@@ -18,7 +18,7 @@ var m = [
|
|
|
18
18
|
"customProps"
|
|
19
19
|
];
|
|
20
20
|
function h(h) {
|
|
21
|
-
let g = s(), _ = c(), v = o(
|
|
21
|
+
let g = s(), _ = c(), v = o(e, null);
|
|
22
22
|
if (!v) throw Error("BreadcrumbItem must be used within a Breadcrumb provider");
|
|
23
23
|
let y = v, b = a(() => p({
|
|
24
24
|
props: {
|
|
@@ -26,16 +26,16 @@ function h(h) {
|
|
|
26
26
|
...h
|
|
27
27
|
},
|
|
28
28
|
bridgeKeys: m
|
|
29
|
-
})), { merged: x, entry: S } =
|
|
29
|
+
})), { merged: x, entry: S } = n({
|
|
30
30
|
componentName: "BreadcrumbItem",
|
|
31
31
|
props: () => b.value.componentProps
|
|
32
|
-
}), C = a(() => x.value.customProps), w = a(() => x.value.current === !0), T = a(() => x.value.disabled === !0), E = a(() => y.value.tokenClasses.iconSize ?? "md"), D = a(() => w.value || T.value ? "span" : x.value.as === "button" || x.value.as === "span" ? x.value.as : x.value.as !== "a" && x.value.href == null ? "span" : x.value.linkAs ?? y.value.linkAs ?? "a"), O =
|
|
32
|
+
}), C = a(() => x.value.customProps), w = a(() => x.value.current === !0), T = a(() => x.value.disabled === !0), E = a(() => y.value.tokenClasses.iconSize ?? "md"), D = a(() => w.value || T.value ? "span" : x.value.as === "button" || x.value.as === "span" ? x.value.as : x.value.as !== "a" && x.value.href == null ? "span" : x.value.linkAs ?? y.value.linkAs ?? "a"), O = r({
|
|
33
33
|
entry: S,
|
|
34
34
|
props: () => b.value.componentProps
|
|
35
|
-
}), k = a(() => d(b.value.inheritedAttrs, ["aria-label", "aria-labelledby"])), A = a(() => u(b.value.inheritedAttrs, ["aria-label", "aria-labelledby"])), j = a(() =>
|
|
35
|
+
}), k = a(() => d(b.value.inheritedAttrs, ["aria-label", "aria-labelledby"])), A = a(() => u(b.value.inheritedAttrs, ["aria-label", "aria-labelledby"])), j = a(() => t(C.value?.root, A.value, { class: f({
|
|
36
36
|
[y.value.tokenClasses.item ?? ""]: !0,
|
|
37
37
|
[l(O.value, "root") ?? ""]: !0
|
|
38
|
-
}) })), M = a(() =>
|
|
38
|
+
}) })), M = a(() => t({}, {}, {
|
|
39
39
|
"aria-hidden": !0,
|
|
40
40
|
"data-slot": "separator",
|
|
41
41
|
class: f({
|
|
@@ -43,31 +43,31 @@ function h(h) {
|
|
|
43
43
|
[y.value.separatorClass ?? ""]: !0,
|
|
44
44
|
[l(O.value, "separator") ?? ""]: !0
|
|
45
45
|
})
|
|
46
|
-
})), N = a(() =>
|
|
46
|
+
})), N = a(() => t(C.value?.separator ?? y.value.separatorIconProps, {}, {
|
|
47
47
|
size: E.value,
|
|
48
48
|
class: f({ "shrink-0": !0 })
|
|
49
49
|
})), P = a(() => {
|
|
50
|
-
let
|
|
51
|
-
return
|
|
50
|
+
let e = w.value, n = e ? C.value?.current : C.value?.link;
|
|
51
|
+
return t(n, {
|
|
52
52
|
...k.value,
|
|
53
|
-
...
|
|
53
|
+
...i(x.value.linkAs ?? y.value.linkAs, x.value.linkProps, D.value)
|
|
54
54
|
}, {
|
|
55
55
|
"aria-disabled": T.value || void 0,
|
|
56
|
-
"aria-current":
|
|
57
|
-
href: !
|
|
56
|
+
"aria-current": e ? "page" : void 0,
|
|
57
|
+
href: !e && !T.value ? x.value.href : void 0,
|
|
58
58
|
class: f({
|
|
59
|
-
[
|
|
60
|
-
[l(O.value,
|
|
61
|
-
"pointer-events-none opacity-50": T.value && !
|
|
59
|
+
[e ? y.value.tokenClasses.current ?? "" : y.value.tokenClasses.link ?? ""]: !0,
|
|
60
|
+
[l(O.value, e ? "current" : "link") ?? ""]: !0,
|
|
61
|
+
"pointer-events-none opacity-50": T.value && !e
|
|
62
62
|
})
|
|
63
63
|
});
|
|
64
|
-
}), F = a(() =>
|
|
64
|
+
}), F = a(() => t(C.value?.startIcon, {}, {
|
|
65
65
|
size: E.value,
|
|
66
66
|
class: f({
|
|
67
67
|
"shrink-0": !0,
|
|
68
68
|
[l(O.value, "startIcon") ?? ""]: !0
|
|
69
69
|
})
|
|
70
|
-
})), I = a(() =>
|
|
70
|
+
})), I = a(() => t(C.value?.endIcon, {}, {
|
|
71
71
|
size: E.value,
|
|
72
72
|
class: f({
|
|
73
73
|
"shrink-0": !0,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "./
|
|
3
|
-
export {
|
|
1
|
+
import e from "./BreadcrumbItem.js";
|
|
2
|
+
import { useBreadcrumbItem as t } from "./composables/useBreadcrumbItem.js";
|
|
3
|
+
export { e as BreadcrumbItem, t as useBreadcrumbItem };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { useButton as e } from "./composables/useButton.js";
|
|
2
|
+
import t from "../Icon/Icon.js";
|
|
3
|
+
import { hasNamedSlot as n, isPropPresent as r } from "../../Utils/slotOrProp.js";
|
|
4
4
|
import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, mergeProps as p, normalizeProps as m, openBlock as h, renderSlot as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, useSlots as b, withCtx as x } from "vue";
|
|
5
5
|
// src/Components/Button/Button.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var S = /*@__PURE__*/ d({
|
|
@@ -13,22 +13,22 @@ var S = /*@__PURE__*/ d({
|
|
|
13
13
|
customProps: {},
|
|
14
14
|
density: {},
|
|
15
15
|
disabled: { type: Boolean },
|
|
16
|
-
endIcon: {},
|
|
16
|
+
endIcon: { type: [Object, Function] },
|
|
17
17
|
full: { type: Boolean },
|
|
18
18
|
href: {},
|
|
19
|
-
icon: {},
|
|
19
|
+
icon: { type: [Object, Function] },
|
|
20
20
|
linkAs: {},
|
|
21
21
|
linkProps: {},
|
|
22
22
|
loading: { type: Boolean },
|
|
23
23
|
rounded: {},
|
|
24
24
|
selected: { type: Boolean },
|
|
25
25
|
size: {},
|
|
26
|
-
startIcon: {},
|
|
26
|
+
startIcon: { type: [Object, Function] },
|
|
27
27
|
text: {},
|
|
28
28
|
variant: {}
|
|
29
29
|
},
|
|
30
30
|
setup(d) {
|
|
31
|
-
let S = d, C = b(), { tag: w, merged: T, isMini: E, iconBind: D, rootBind: O, rootHref: k, endIconBind: A, contentBind: j, endSlotBind: M, rootAriaBusy: N, rootDisabled: P, startIconBind: F, startSlotBind: I, loadingIconBind: L, loadingWrapBind: R, rootAriaDisabled: z } =
|
|
31
|
+
let S = d, C = b(), { tag: w, merged: T, isMini: E, iconBind: D, rootBind: O, rootHref: k, endIconBind: A, contentBind: j, endSlotBind: M, rootAriaBusy: N, rootDisabled: P, startIconBind: F, startSlotBind: I, loadingIconBind: L, loadingWrapBind: R, rootAriaDisabled: z } = e(S, {
|
|
32
32
|
size: "md",
|
|
33
33
|
as: "button",
|
|
34
34
|
rounded: "md",
|
|
@@ -36,27 +36,27 @@ var S = /*@__PURE__*/ d({
|
|
|
36
36
|
variant: "solid",
|
|
37
37
|
density: "default"
|
|
38
38
|
});
|
|
39
|
-
return (
|
|
39
|
+
return (e, d) => (h(), a(_(y(w)), p({ href: y(k) }, y(O), {
|
|
40
40
|
disabled: y(P),
|
|
41
41
|
"aria-busy": y(N),
|
|
42
42
|
"aria-disabled": y(z)
|
|
43
43
|
}), {
|
|
44
|
-
default: x(() => [y(T).loading ? (h(), s("span", m(p({ key: 0 }, y(R))), [u(y(
|
|
44
|
+
default: x(() => [y(T).loading ? (h(), s("span", m(p({ key: 0 }, y(R))), [u(y(t), p({
|
|
45
45
|
icon: "loader",
|
|
46
46
|
size: y(T).size
|
|
47
|
-
}, y(L)), null, 16, ["size"])], 16)) : o("", !0), c("span", m(f(y(j))), [y(E) ? (h(), s(i, { key: 0 }, [y(
|
|
47
|
+
}, y(L)), null, 16, ["size"])], 16)) : o("", !0), c("span", m(f(y(j))), [y(E) ? (h(), s(i, { key: 0 }, [y(n)(y(C), "default") ? g(e.$slots, "default", {}, void 0, void 0, 0) : y(T).icon ? (h(), a(y(t), p({ key: 1 }, y(D), {
|
|
48
48
|
icon: y(T).icon,
|
|
49
49
|
size: y(T).size
|
|
50
50
|
}), null, 16, ["icon", "size"])) : o("", !0)], 64)) : (h(), s(i, { key: 1 }, [
|
|
51
|
-
y(T).startIcon ? (h(), a(y(
|
|
51
|
+
y(T).startIcon ? (h(), a(y(t), p({
|
|
52
52
|
key: 0,
|
|
53
53
|
size: y(T).size
|
|
54
|
-
}, y(F), { icon: y(T).startIcon }), null, 16, ["size", "icon"])) : y(
|
|
55
|
-
y(
|
|
56
|
-
y(T).endIcon ? (h(), a(y(
|
|
54
|
+
}, y(F), { icon: y(T).startIcon }), null, 16, ["size", "icon"])) : y(n)(y(C), "start") ? (h(), s("div", m(p({ key: 1 }, y(I))), [g(e.$slots, "start")], 16)) : o("", !0),
|
|
55
|
+
y(r)(y(T).text) ? (h(), s(i, { key: 2 }, [l(v(y(T).text), 1)], 64)) : y(n)(y(C), "default") ? g(e.$slots, "default", {}, void 0, void 0, 3) : o("", !0),
|
|
56
|
+
y(T).endIcon ? (h(), a(y(t), p({
|
|
57
57
|
key: 4,
|
|
58
58
|
size: y(T).size
|
|
59
|
-
}, y(A), { icon: y(T).endIcon }), null, 16, ["size", "icon"])) : y(
|
|
59
|
+
}, y(A), { icon: y(T).endIcon }), null, 16, ["size", "icon"])) : y(n)(y(C), "end") ? (h(), s("div", m(p({ key: 5 }, y(M))), [g(e.$slots, "end")], 16)) : o("", !0)
|
|
60
60
|
], 64))], 16)]),
|
|
61
61
|
_: 3
|
|
62
62
|
}, 16, [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { BUTTON_GROUP_INJECTION_KEY as e } from "../../ButtonGroup/buttonGroupInjectionKey.js";
|
|
2
|
+
import { mergePartBind as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as r } from "../../../Utils/index.js";
|
|
3
3
|
import { resolveLinkAsProps as i } from "../../../Utils/linkAs.js";
|
|
4
4
|
import { computed as a, inject as o, useAttrs as s } from "vue";
|
|
5
5
|
import { get as c, includes as l, isNil as u } from "es-toolkit/compat";
|
|
@@ -28,7 +28,7 @@ var _ = [
|
|
|
28
28
|
"customProps"
|
|
29
29
|
];
|
|
30
30
|
function v(v, y) {
|
|
31
|
-
let b = s(), x = o(
|
|
31
|
+
let b = s(), x = o(e, null), S = a(() => g({
|
|
32
32
|
bridgeKeys: _,
|
|
33
33
|
props: {
|
|
34
34
|
...b,
|
|
@@ -44,11 +44,11 @@ function v(v, y) {
|
|
|
44
44
|
rounded: e.rounded ?? t?.rounded,
|
|
45
45
|
variant: e.variant ?? t?.variant
|
|
46
46
|
};
|
|
47
|
-
}), { merged: w, entry: T } =
|
|
47
|
+
}), { merged: w, entry: T } = n({
|
|
48
48
|
libDefaults: y,
|
|
49
49
|
componentName: "Button",
|
|
50
50
|
props: () => C.value
|
|
51
|
-
}), E = a(() => w.value.customProps), D =
|
|
51
|
+
}), E = a(() => w.value.customProps), D = r({
|
|
52
52
|
entry: T,
|
|
53
53
|
props: () => S.value.componentProps
|
|
54
54
|
}), O = a(() => {
|
|
@@ -73,11 +73,11 @@ function v(v, y) {
|
|
|
73
73
|
}), V = a(() => {
|
|
74
74
|
let e = h(f, T.value?.tokens?.rounded);
|
|
75
75
|
return c(e, w.value.rounded);
|
|
76
|
-
}), H = a(() =>
|
|
76
|
+
}), H = a(() => t(E.value?.icon, {}, m({
|
|
77
77
|
"shrink-0": !0,
|
|
78
78
|
[D.value.icon ?? ""]: !0
|
|
79
79
|
}))), U = a(() => {
|
|
80
|
-
let
|
|
80
|
+
let e = t(E.value?.root, {
|
|
81
81
|
...S.value.inheritedAttrs,
|
|
82
82
|
...i(w.value.linkAs, w.value.linkProps, O.value)
|
|
83
83
|
}, {
|
|
@@ -107,17 +107,17 @@ function v(v, y) {
|
|
|
107
107
|
[D.value.root ?? ""]: !0
|
|
108
108
|
})
|
|
109
109
|
});
|
|
110
|
-
return L.value == null ?
|
|
111
|
-
...
|
|
110
|
+
return L.value == null ? e : {
|
|
111
|
+
...e,
|
|
112
112
|
type: L.value
|
|
113
113
|
};
|
|
114
|
-
}), W = a(() =>
|
|
114
|
+
}), W = a(() => t(E.value?.endIcon, {}, m({
|
|
115
115
|
"shrink-0": !0,
|
|
116
116
|
[D.value.endIcon ?? ""]: !0
|
|
117
|
-
}))), G = a(() =>
|
|
117
|
+
}))), G = a(() => t(E.value?.end, {}, "inline-flex shrink-0 items-center")), K = a(() => t(E.value?.startIcon, {}, m({
|
|
118
118
|
"shrink-0": !0,
|
|
119
119
|
[D.value.startIcon ?? ""]: !0
|
|
120
|
-
}))), q = a(() =>
|
|
120
|
+
}))), q = a(() => t(E.value?.start, {}, "inline-flex shrink-0 items-center")), J = a(() => t({}, {}, "pointer-events-none absolute inset-0 flex items-center justify-center"));
|
|
121
121
|
return {
|
|
122
122
|
tag: O,
|
|
123
123
|
merged: w,
|
|
@@ -127,7 +127,7 @@ function v(v, y) {
|
|
|
127
127
|
rootHref: I,
|
|
128
128
|
rootType: L,
|
|
129
129
|
endIconBind: W,
|
|
130
|
-
contentBind: a(() =>
|
|
130
|
+
contentBind: a(() => t({}, {}, m({
|
|
131
131
|
contents: !0,
|
|
132
132
|
invisible: w.value.loading
|
|
133
133
|
}))),
|
|
@@ -136,7 +136,7 @@ function v(v, y) {
|
|
|
136
136
|
rootDisabled: N,
|
|
137
137
|
startIconBind: K,
|
|
138
138
|
startSlotBind: q,
|
|
139
|
-
loadingIconBind: a(() =>
|
|
139
|
+
loadingIconBind: a(() => t(E.value?.loading, {}, m({
|
|
140
140
|
"shrink-0 animate-spin": !0,
|
|
141
141
|
[D.value.loading ?? ""]: !0
|
|
142
142
|
}))),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "./
|
|
3
|
-
export {
|
|
1
|
+
import e from "./Button.js";
|
|
2
|
+
import { useButton as t } from "./composables/useButton.js";
|
|
3
|
+
export { e as Button, t as useButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { BUTTON_GROUP_INJECTION_KEY as e } from "../buttonGroupInjectionKey.js";
|
|
2
|
+
import { mergePartBind as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as r } from "../../../Utils/index.js";
|
|
3
3
|
import { computed as i, inject as a, provide as o, useAttrs as s } from "vue";
|
|
4
4
|
import { get as c } from "es-toolkit/compat";
|
|
5
5
|
import { buttonGroupOrientationProps as l } from "@bridge-ui/core/Tokens";
|
|
@@ -18,17 +18,17 @@ var p = [
|
|
|
18
18
|
"orientation"
|
|
19
19
|
];
|
|
20
20
|
function m(m, h) {
|
|
21
|
-
let g = s(), _ = a(
|
|
21
|
+
let g = s(), _ = a(e, null), v = i(() => f({
|
|
22
22
|
props: {
|
|
23
23
|
...g,
|
|
24
24
|
...m
|
|
25
25
|
},
|
|
26
26
|
bridgeKeys: p
|
|
27
|
-
})), { merged: y, entry: b } =
|
|
27
|
+
})), { merged: y, entry: b } = n({
|
|
28
28
|
libDefaults: h,
|
|
29
29
|
componentName: "ButtonGroup",
|
|
30
30
|
props: () => v.value.componentProps
|
|
31
|
-
}), x =
|
|
31
|
+
}), x = r({
|
|
32
32
|
entry: b,
|
|
33
33
|
props: () => v.value.componentProps
|
|
34
34
|
}), S = i(() => y.value.customProps), C = i(() => {
|
|
@@ -44,17 +44,17 @@ function m(m, h) {
|
|
|
44
44
|
variant: e.variant ?? t?.variant ?? n?.variant
|
|
45
45
|
};
|
|
46
46
|
});
|
|
47
|
-
return o(
|
|
47
|
+
return o(e, w), {
|
|
48
48
|
merged: y,
|
|
49
49
|
rootBind: i(() => {
|
|
50
|
-
let
|
|
51
|
-
return
|
|
50
|
+
let e = y.value.separator === !0;
|
|
51
|
+
return t(S.value?.root, v.value.inheritedAttrs, {
|
|
52
52
|
role: "group",
|
|
53
53
|
"data-slot": "button-group",
|
|
54
54
|
class: u({
|
|
55
55
|
[c(C.value, "root") ?? ""]: !0,
|
|
56
|
-
[c(C.value, "join") ?? ""]: !
|
|
57
|
-
[c(C.value, "separator") ?? ""]:
|
|
56
|
+
[c(C.value, "join") ?? ""]: !e,
|
|
57
|
+
[c(C.value, "separator") ?? ""]: e,
|
|
58
58
|
[x.value.root ?? ""]: !0,
|
|
59
59
|
"w-full [&>*]:flex-1": y.value.full === !0
|
|
60
60
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import n from "./
|
|
4
|
-
export {
|
|
1
|
+
import e from "./ButtonGroup.js";
|
|
2
|
+
import { BUTTON_GROUP_INJECTION_KEY as t } from "./buttonGroupInjectionKey.js";
|
|
3
|
+
import { useButtonGroup as n } from "./composables/useButtonGroup.js";
|
|
4
|
+
export { t as BUTTON_GROUP_INJECTION_KEY, e as ButtonGroup, n as useButtonGroup };
|