@bridge-ui/vue 0.0.1-beta.7 → 0.0.1
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/Actions/BridgeUIHosts.vue.d.ts +3 -2
- package/dist/Actions/BridgeUIHosts.vue_vue_type_script_setup_true_lang.js +15 -10
- package/dist/Actions/Drawer/BridgeDrawerHost.js +5 -0
- package/dist/Actions/Drawer/BridgeDrawerHost.vue.d.ts +14 -0
- package/dist/Actions/Drawer/BridgeDrawerHost.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/Actions/Drawer/bridgeDrawer.types.d.ts +44 -0
- package/dist/Actions/Drawer/bridgeDrawerInjectionKey.d.ts +3 -0
- package/dist/Actions/Drawer/bridgeDrawerInjectionKey.js +4 -0
- package/dist/Actions/Drawer/createBridgeDrawerApi.d.ts +2 -0
- package/dist/Actions/Drawer/createBridgeDrawerApi.js +49 -0
- package/dist/Actions/Drawer/index.d.ts +3 -0
- package/dist/Actions/Drawer/index.js +3 -0
- package/dist/Actions/Drawer/useDrawerAction.d.ts +5 -0
- package/dist/Actions/Drawer/useDrawerAction.js +26 -0
- package/dist/Actions/bridgeUIHosts.types.d.ts +5 -0
- package/dist/Actions/index.d.ts +2 -0
- package/dist/Actions/index.js +8 -6
- package/dist/Components/Badge/badge.types.d.ts +1 -1
- package/dist/Components/Chip/chip.types.d.ts +1 -1
- package/dist/Components/Drawer/Drawer.js +5 -0
- package/dist/Components/Drawer/Drawer.vue.d.ts +39 -0
- package/dist/Components/Drawer/Drawer.vue_vue_type_script_setup_true_lang.js +96 -0
- package/dist/Components/Drawer/composables/useDrawer.d.ts +63 -0
- package/dist/Components/Drawer/composables/useDrawer.js +208 -0
- package/dist/Components/Drawer/drawer.types.d.ts +188 -0
- package/dist/Components/Drawer/index.d.ts +4 -0
- package/dist/Components/Drawer/index.js +3 -0
- package/dist/Components/FormControl/formControl.types.d.ts +6 -6
- package/dist/Components/FormField/formField.types.d.ts +7 -7
- package/dist/Components/Label/label.types.d.ts +1 -1
- package/dist/Components/Link/link.types.d.ts +3 -3
- package/dist/Components/List/list.types.d.ts +1 -1
- package/dist/Components/ListItem/listItem.types.d.ts +1 -1
- package/dist/Components/ListSection/listSection.types.d.ts +1 -1
- package/dist/Components/Listbox/listbox.types.d.ts +5 -5
- package/dist/Components/Menu/menu.types.d.ts +3 -3
- package/dist/Components/Modal/composables/useModal.js +0 -1
- package/dist/Components/Modal/modal.types.d.ts +3 -2
- package/dist/Components/Select/Select.vue.d.ts +2 -2
- package/dist/Components/Select/select.types.d.ts +5 -5
- package/dist/Components/Snackbar/composables/useSnackbar.js +1 -1
- package/dist/Components/Snackbar/snackbar.types.d.ts +7 -7
- package/dist/Components/Spinner/composables/useSpinner.js +16 -16
- package/dist/Components/Tab/Tab.js +5 -0
- package/dist/Components/Tab/Tab.vue.d.ts +11 -0
- package/dist/Components/Tab/Tab.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/Components/Tab/composables/useTab.d.ts +23 -0
- package/dist/Components/Tab/composables/useTab.js +88 -0
- package/dist/Components/Tab/index.d.ts +3 -0
- package/dist/Components/Tab/index.js +3 -0
- package/dist/Components/Tab/tab.types.d.ts +94 -0
- package/dist/Components/TabItem/TabItem.js +5 -0
- package/dist/Components/TabItem/TabItem.vue.d.ts +11 -0
- package/dist/Components/TabItem/TabItem.vue_vue_type_script_setup_true_lang.js +25 -0
- package/dist/Components/TabItem/composables/useTabItem.d.ts +3 -0
- package/dist/Components/TabItem/composables/useTabItem.js +39 -0
- package/dist/Components/TabItem/index.d.ts +3 -0
- package/dist/Components/TabItem/index.js +3 -0
- package/dist/Components/TabItem/tabItem.types.d.ts +72 -0
- package/dist/Components/TabList/TabList.js +5 -0
- package/dist/Components/TabList/TabList.vue.d.ts +11 -0
- package/dist/Components/TabList/TabList.vue_vue_type_script_setup_true_lang.js +18 -0
- package/dist/Components/TabList/composables/useTabList.d.ts +10 -0
- package/dist/Components/TabList/composables/useTabList.js +65 -0
- package/dist/Components/TabList/index.d.ts +3 -0
- package/dist/Components/TabList/index.js +3 -0
- package/dist/Components/TabList/tabList.types.d.ts +38 -0
- package/dist/Components/TabPanel/TabPanel.js +5 -0
- package/dist/Components/TabPanel/TabPanel.vue.d.ts +11 -0
- package/dist/Components/TabPanel/TabPanel.vue_vue_type_script_setup_true_lang.js +20 -0
- package/dist/Components/TabPanel/composables/useTabPanel.d.ts +14 -0
- package/dist/Components/TabPanel/composables/useTabPanel.js +51 -0
- package/dist/Components/TabPanel/index.d.ts +3 -0
- package/dist/Components/TabPanel/index.js +3 -0
- package/dist/Components/TabPanel/tabPanel.types.d.ts +48 -0
- package/dist/Components/Tabs/Tabs.js +5 -0
- package/dist/Components/Tabs/Tabs.vue.d.ts +24 -0
- package/dist/Components/Tabs/Tabs.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/Components/Tabs/composables/useTabs.d.ts +39 -0
- package/dist/Components/Tabs/composables/useTabs.js +99 -0
- package/dist/Components/Tabs/index.d.ts +4 -0
- package/dist/Components/Tabs/index.js +4 -0
- package/dist/Components/Tabs/tabs.types.d.ts +93 -0
- package/dist/Components/Tabs/tabsInjectionKey.d.ts +121 -0
- package/dist/Components/Tabs/tabsInjectionKey.js +4 -0
- package/dist/Utils/index.d.ts +2 -0
- package/dist/Utils/index.js +20 -19
- package/dist/Utils/useBreakpoint.d.ts +19 -0
- package/dist/Utils/useBreakpoint.js +35 -0
- package/dist/index.d.ts +14 -1
- package/dist/index.js +76 -62
- package/dist/theme.css +9 -0
- package/package.json +2 -2
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { LucideIcon } from '@lucide/vue';
|
|
2
|
+
import { ComputedRef, InjectionKey, VNodeChild } from 'vue';
|
|
3
|
+
import { TabsActivation } from '@bridge-ui/core';
|
|
4
|
+
/**
|
|
5
|
+
* Merged token classes for triggers / list / panel.
|
|
6
|
+
*/
|
|
7
|
+
export type TabsTokenClasses = {
|
|
8
|
+
colorSelected?: string;
|
|
9
|
+
colorSelectedSoft?: string;
|
|
10
|
+
iconGap?: string;
|
|
11
|
+
iconSize?: string;
|
|
12
|
+
listOrientation?: string;
|
|
13
|
+
listSize?: string;
|
|
14
|
+
listVariant?: string;
|
|
15
|
+
panelOrientation?: string;
|
|
16
|
+
panelSize?: string;
|
|
17
|
+
rootOrientation?: string;
|
|
18
|
+
softFill?: boolean;
|
|
19
|
+
tabOrientation?: string;
|
|
20
|
+
tabSize?: string;
|
|
21
|
+
tabVariant?: string;
|
|
22
|
+
tabVariantSelected?: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Declarative tab + panel registered by `TabItem`.
|
|
26
|
+
*/
|
|
27
|
+
export type TabsItemEntry = {
|
|
28
|
+
/**
|
|
29
|
+
* Whether the tab is disabled.
|
|
30
|
+
*/
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Optional trailing Lucide icon on the tab trigger.
|
|
34
|
+
*/
|
|
35
|
+
endIcon?: LucideIcon;
|
|
36
|
+
/**
|
|
37
|
+
* When set, overrides `Tabs` `keepMounted` for this panel.
|
|
38
|
+
*/
|
|
39
|
+
keepMounted?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Trigger label content (string or render function).
|
|
42
|
+
*/
|
|
43
|
+
label: string | (() => VNodeChild);
|
|
44
|
+
/**
|
|
45
|
+
* Panel content render function.
|
|
46
|
+
*/
|
|
47
|
+
panel: () => VNodeChild;
|
|
48
|
+
/**
|
|
49
|
+
* Custom start / end adornment render functions for the tab trigger.
|
|
50
|
+
*/
|
|
51
|
+
slots?: {
|
|
52
|
+
end?: () => VNodeChild;
|
|
53
|
+
start?: () => VNodeChild;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Optional leading Lucide icon on the tab trigger.
|
|
57
|
+
*/
|
|
58
|
+
startIcon?: LucideIcon;
|
|
59
|
+
/**
|
|
60
|
+
* Stable value matching the tab / panel pair.
|
|
61
|
+
*/
|
|
62
|
+
value: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Shared tabs state for `TabList` / `Tab` / `TabPanel` / `TabItem` descendants.
|
|
66
|
+
*/
|
|
67
|
+
export type TabsContextValue = {
|
|
68
|
+
/**
|
|
69
|
+
* Keyboard activation mode.
|
|
70
|
+
*/
|
|
71
|
+
activation: TabsActivation;
|
|
72
|
+
/**
|
|
73
|
+
* Disabled tab values.
|
|
74
|
+
*/
|
|
75
|
+
disabledValues: string[];
|
|
76
|
+
/**
|
|
77
|
+
* Focus a tab by value (roving tabindex).
|
|
78
|
+
*/
|
|
79
|
+
focusTab: (value: string) => void;
|
|
80
|
+
/**
|
|
81
|
+
* Stable id prefix for tab / panel pairing.
|
|
82
|
+
*/
|
|
83
|
+
id: string;
|
|
84
|
+
/**
|
|
85
|
+
* Whether panels stay mounted when inactive.
|
|
86
|
+
*/
|
|
87
|
+
keepMounted: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Orientation of the tab list.
|
|
90
|
+
*/
|
|
91
|
+
orientation: "vertical" | "horizontal";
|
|
92
|
+
/**
|
|
93
|
+
* Registers a tab trigger and returns unregister.
|
|
94
|
+
*/
|
|
95
|
+
registerTab: (value: string, disabled?: boolean) => () => void;
|
|
96
|
+
/**
|
|
97
|
+
* Registers a declarative `TabItem` (label + panel) and returns unregister.
|
|
98
|
+
*/
|
|
99
|
+
registerTabItem: (entry: TabsItemEntry) => () => void;
|
|
100
|
+
/**
|
|
101
|
+
* Currently selected tab value.
|
|
102
|
+
*/
|
|
103
|
+
selected: string;
|
|
104
|
+
/**
|
|
105
|
+
* Selects a tab by value.
|
|
106
|
+
*/
|
|
107
|
+
setSelected: (value: string) => void;
|
|
108
|
+
/**
|
|
109
|
+
* Declarative items from `TabItem` children (mount order).
|
|
110
|
+
*/
|
|
111
|
+
tabItems: TabsItemEntry[];
|
|
112
|
+
/**
|
|
113
|
+
* Ordered tab values (mount order).
|
|
114
|
+
*/
|
|
115
|
+
tabValues: string[];
|
|
116
|
+
/**
|
|
117
|
+
* Merged token classes for triggers / list / panel.
|
|
118
|
+
*/
|
|
119
|
+
tokenClasses: TabsTokenClasses;
|
|
120
|
+
};
|
|
121
|
+
export declare const TABS_INJECTION_KEY: InjectionKey<ComputedRef<TabsContextValue>>;
|
package/dist/Utils/index.d.ts
CHANGED
|
@@ -43,5 +43,7 @@ export declare function resolveFieldAdornmentIconSize(fieldSize?: keyof FormFiel
|
|
|
43
43
|
*/
|
|
44
44
|
export declare function resolveVnodeRefElement(element: null | Element | ComponentPublicInstance): null | HTMLElement;
|
|
45
45
|
export { hasNamedSlot, hasSlotOrProp, isPropPresent, resolveNamedSlot, resolveSlotOrProp, } from './slotOrProp';
|
|
46
|
+
export { useBreakpoint } from './useBreakpoint';
|
|
47
|
+
export type { UseBreakpointOptions } from './useBreakpoint';
|
|
46
48
|
export { useHoldRepeat } from './useHoldRepeat';
|
|
47
49
|
export type { HoldRepeatAction, UseHoldRepeatOptions, } from './useHoldRepeat';
|
package/dist/Utils/index.js
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
import { useBridgeUI as e } from "../Provider/useBridgeUI.js";
|
|
2
2
|
import { hasNamedSlot as t, hasSlotOrProp as n, isPropPresent as r, resolveNamedSlot as i, resolveSlotOrProp as a } from "./slotOrProp.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { useBreakpoint as o } from "./useBreakpoint.js";
|
|
4
|
+
import { useHoldRepeat as s } from "./useHoldRepeat.js";
|
|
5
|
+
import { computed as c, defineComponent as l, toValue as u, unref as d } from "vue";
|
|
6
|
+
import { get as f, isNil as p } from "es-toolkit/compat";
|
|
7
|
+
import { createMergePartBind as m } from "@bridge-ui/core";
|
|
8
|
+
import { mergeBridgeUILayeredClasses as h, mergePropsWithBridgeUIDefaults as g } from "@bridge-ui/core/Utils";
|
|
8
9
|
//#region src/Utils/index.ts
|
|
9
|
-
function
|
|
10
|
-
return
|
|
10
|
+
function _(e) {
|
|
11
|
+
return l({
|
|
11
12
|
name: "HeadlessTestComponent",
|
|
12
13
|
setup() {
|
|
13
14
|
return e(), () => null;
|
|
14
15
|
}
|
|
15
16
|
});
|
|
16
17
|
}
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
let i = e(), a =
|
|
18
|
+
var v = m("class");
|
|
19
|
+
function y({ props: t, libDefaults: n, componentName: r }) {
|
|
20
|
+
let i = e(), a = c(() => p(i) ? null : d(i.components));
|
|
20
21
|
return {
|
|
21
|
-
entry:
|
|
22
|
+
entry: c(() => f(a.value, r)),
|
|
22
23
|
bridge: i,
|
|
23
|
-
merged:
|
|
24
|
+
merged: c(() => g({
|
|
24
25
|
libDefaults: n,
|
|
25
26
|
componentName: r,
|
|
26
|
-
props:
|
|
27
|
+
props: u(t),
|
|
27
28
|
components: a.value
|
|
28
29
|
})),
|
|
29
30
|
components: a
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
-
return
|
|
33
|
+
function b({ entry: e, props: t }) {
|
|
34
|
+
return c(() => h(f(e.value, "classes"), u(t).classes));
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
36
|
+
function x(e) {
|
|
37
|
+
return f({
|
|
37
38
|
xs: "xs",
|
|
38
39
|
sm: "sm",
|
|
39
40
|
md: "md",
|
|
@@ -43,7 +44,7 @@ function b(e) {
|
|
|
43
44
|
"2xl": "lg"
|
|
44
45
|
}, e ?? "md");
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
+
function S(e) {
|
|
47
48
|
if (e instanceof HTMLElement) return e;
|
|
48
49
|
if (e && "$el" in e) {
|
|
49
50
|
let t = e.$el;
|
|
@@ -52,4 +53,4 @@ function x(e) {
|
|
|
52
53
|
return null;
|
|
53
54
|
}
|
|
54
55
|
//#endregion
|
|
55
|
-
export {
|
|
56
|
+
export { _ as defineHeadlessComponent, t as hasNamedSlot, n as hasSlotOrProp, r as isPropPresent, v as mergePartBind, x as resolveFieldAdornmentIconSize, i as resolveNamedSlot, a as resolveSlotOrProp, S as resolveVnodeRefElement, o as useBreakpoint, y as useBridgeUIComponent, b as useBridgeUIMergedRegistryClasses, s as useHoldRepeat };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import { BreakpointObserverOptions, BreakpointSnapshot } from '@bridge-ui/core';
|
|
3
|
+
export type UseBreakpointOptions = BreakpointObserverOptions;
|
|
4
|
+
/**
|
|
5
|
+
* Reactive viewport breakpoints aligned with Tailwind `--breakpoint-*` tokens.
|
|
6
|
+
*
|
|
7
|
+
* Returns a reactive object — call helpers on the object (do not destructure
|
|
8
|
+
* them) so updates stay reactive in script.
|
|
9
|
+
*
|
|
10
|
+
* Falls back to `BridgeUIProvider` `global.mobileBreakpoint` and
|
|
11
|
+
* `global.breakpoints`. Composable options win when passed.
|
|
12
|
+
*
|
|
13
|
+
* On the server (and before mount), `mobile` is `true` at width `0`.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const breakpoint = useBreakpoint();
|
|
17
|
+
* // :align="breakpoint.mobile ? 'bottom-center' : 'middle-center'"
|
|
18
|
+
*/
|
|
19
|
+
export declare function useBreakpoint(options?: MaybeRefOrGetter<undefined | UseBreakpointOptions>): BreakpointSnapshot;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useBridgeUI as e } from "../Provider/useBridgeUI.js";
|
|
2
|
+
import { onBeforeUnmount as t, reactive as n, toValue as r, watch as i } from "vue";
|
|
3
|
+
import { isEmpty as a, isNil as o } from "es-toolkit/compat";
|
|
4
|
+
import { buildBreakpointSnapshot as s, createBreakpointObserver as c, resolveBreakpoints as l } from "@bridge-ui/core";
|
|
5
|
+
import { toMerged as u } from "es-toolkit/object";
|
|
6
|
+
//#region src/Utils/useBreakpoint.ts
|
|
7
|
+
function d(d) {
|
|
8
|
+
let f = e(), p = n(s(0, 0, l(), "sm")), m, h;
|
|
9
|
+
function g(e) {
|
|
10
|
+
Object.assign(p, e);
|
|
11
|
+
}
|
|
12
|
+
function _(e) {
|
|
13
|
+
let t = u(f?.global.value.breakpoints ?? {}, e?.breakpoints ?? {});
|
|
14
|
+
return {
|
|
15
|
+
breakpoints: a(t) ? void 0 : t,
|
|
16
|
+
mobileBreakpoint: o(e?.mobileBreakpoint) ? f?.global.value.mobileBreakpoint : e.mobileBreakpoint
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function v(e) {
|
|
20
|
+
h?.(), h = void 0, m = c(_(e)), g(m.getSnapshot()), h = m.subscribe(() => {
|
|
21
|
+
o(m) || g(m.getSnapshot());
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return v(r(d)), i(() => [
|
|
25
|
+
r(d),
|
|
26
|
+
f?.global.value.breakpoints,
|
|
27
|
+
f?.global.value.mobileBreakpoint
|
|
28
|
+
], () => {
|
|
29
|
+
v(r(d));
|
|
30
|
+
}, { deep: !0 }), t(() => {
|
|
31
|
+
h?.(), h = void 0, m = void 0;
|
|
32
|
+
}), p;
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { d as useBreakpoint };
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export { Chip, useChip } from './Components/Chip';
|
|
|
14
14
|
export type { ChipClasses, ChipCustomProps, ChipEmits, ChipOwnProps, ChipProps, ChipSizeOverrides, ChipSlots, } from './Components/Chip';
|
|
15
15
|
export { Divider, useDivider } from './Components/Divider';
|
|
16
16
|
export type { DividerClasses, DividerColorOverrides, DividerOrientationOverrides, DividerOwnProps, DividerProps, } from './Components/Divider';
|
|
17
|
+
export { Drawer, useDrawer } from './Components/Drawer';
|
|
18
|
+
export type { DrawerBlurOverrides, DrawerClasses, DrawerCustomProps, DrawerEmits, DrawerOwnProps, DrawerPlacementOverrides, DrawerProps, DrawerScrollOverrides, DrawerSizeOverrides, DrawerSlots, DrawerTransitionOverrides, } from './Components/Drawer';
|
|
17
19
|
export { FormControl, useFormControl } from './Components/FormControl';
|
|
18
20
|
export type { FormControlClasses, FormControlCustomProps, FormControlOwnProps, FormControlProps, FormControlSizeOverrides, FormControlSlots, UseFormControlReturn, } from './Components/FormControl';
|
|
19
21
|
export { FormField, useFormField } from './Components/FormField';
|
|
@@ -54,11 +56,22 @@ export { Spinner, useSpinner } from './Components/Spinner';
|
|
|
54
56
|
export type { SpinnerClasses, SpinnerColorOverrides, SpinnerCustomProps, SpinnerOwnProps, SpinnerProps, SpinnerSizeOverrides, SpinnerVariantOverrides, } from './Components/Spinner';
|
|
55
57
|
export { Switch, useSwitch } from './Components/Switch';
|
|
56
58
|
export type { SwitchClasses, SwitchColorOverrides, SwitchCustomProps, SwitchOwnProps, SwitchProps, SwitchRoundedOverrides, SwitchSizeOverrides, SwitchSlots, } from './Components/Switch';
|
|
59
|
+
export { Tab, useTab } from './Components/Tab';
|
|
60
|
+
export type { TabClasses, TabCustomProps, TabOwnProps, TabProps, TabSlots, } from './Components/Tab';
|
|
61
|
+
export { TabItem, useTabItem } from './Components/TabItem';
|
|
62
|
+
export type { TabItemClasses, TabItemOwnProps, TabItemProps, TabItemSlots, } from './Components/TabItem';
|
|
63
|
+
export { TabList, useTabList } from './Components/TabList';
|
|
64
|
+
export type { TabListClasses, TabListCustomProps, TabListOwnProps, TabListProps, TabListSlots, } from './Components/TabList';
|
|
65
|
+
export { TabPanel, useTabPanel } from './Components/TabPanel';
|
|
66
|
+
export type { TabPanelClasses, TabPanelCustomProps, TabPanelOwnProps, TabPanelProps, TabPanelSlots, } from './Components/TabPanel';
|
|
67
|
+
export { TABS_INJECTION_KEY, Tabs, useTabs } from './Components/Tabs';
|
|
68
|
+
export type { TabsClasses, TabsColorOverrides, TabsContextValue, TabsCustomProps, TabsEmits, TabsItemEntry, TabsOrientationOverrides, TabsOwnProps, TabsProps, TabsSizeOverrides, TabsSlots, TabsTokenClasses, TabsVariantOverrides, } from './Components/Tabs';
|
|
57
69
|
export { Textarea, useTextarea } from './Components/Textarea';
|
|
58
70
|
export type { TextareaClasses, TextareaCustomProps, TextareaOwnProps, TextareaProps, TextareaSlots, } from './Components/Textarea';
|
|
59
71
|
export { TextField, useTextField } from './Components/TextField';
|
|
60
72
|
export type { TextFieldClasses, TextFieldCustomProps, TextFieldOwnProps, TextFieldProps, TextFieldSlots, } from './Components/TextField';
|
|
61
73
|
export { BridgeUIProvider, createBridgeUI, useBridgeUI } from './Provider';
|
|
62
74
|
export type { BridgeUIContextApi } from './Provider';
|
|
63
|
-
export { useBridgeUIComponent, useBridgeUIMergedRegistryClasses, } from './Utils';
|
|
75
|
+
export { useBreakpoint, useBridgeUIComponent, useBridgeUIMergedRegistryClasses, } from './Utils';
|
|
76
|
+
export type { UseBreakpointOptions } from './Utils';
|
|
64
77
|
export { BRIDGE_UI_DEFAULT_GLOBAL, cn, mergeBridgeUIComponents, mergeBridgeUIGlobal, resolveBridgeUIOptions, } from '@bridge-ui/core';
|
package/dist/index.js
CHANGED
|
@@ -1,63 +1,77 @@
|
|
|
1
1
|
import { useBridgeUI as e } from "./Provider/useBridgeUI.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import i from "./Components/
|
|
5
|
-
import a from "./Components/
|
|
6
|
-
import o from "./Components/
|
|
7
|
-
import
|
|
8
|
-
import c from "./Components/Badge/
|
|
9
|
-
import
|
|
10
|
-
import u from "./Components/Button/
|
|
11
|
-
import
|
|
12
|
-
import f from "./Components/Card/
|
|
13
|
-
import
|
|
14
|
-
import m from "./Components/FormControl/
|
|
15
|
-
import
|
|
16
|
-
import g from "./Components/Checkbox/
|
|
17
|
-
import
|
|
18
|
-
import v from "./Components/Chip/
|
|
19
|
-
import
|
|
20
|
-
import b from "./Components/Divider/
|
|
21
|
-
import
|
|
22
|
-
import S from "./Components/
|
|
23
|
-
import
|
|
24
|
-
import w from "./Components/
|
|
25
|
-
import
|
|
26
|
-
import E from "./Components/
|
|
27
|
-
import
|
|
28
|
-
import O from "./Components/
|
|
29
|
-
import
|
|
30
|
-
import {
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import z from "./Components/
|
|
35
|
-
import
|
|
36
|
-
import V from "./Components/
|
|
37
|
-
import H from "./Components/
|
|
38
|
-
import {
|
|
39
|
-
import W from "./Components/
|
|
40
|
-
import
|
|
41
|
-
import K from "./Components/
|
|
42
|
-
import
|
|
43
|
-
import J from "./Components/
|
|
44
|
-
import
|
|
45
|
-
import X from "./Components/
|
|
46
|
-
import Z from "./Components/
|
|
47
|
-
import Q from "./Components/
|
|
48
|
-
import
|
|
49
|
-
import ee from "./Components/
|
|
50
|
-
import
|
|
51
|
-
import ne from "./Components/
|
|
52
|
-
import
|
|
53
|
-
import ie from "./Components/
|
|
54
|
-
import
|
|
55
|
-
import oe from "./Components/
|
|
56
|
-
import
|
|
57
|
-
import ce from "./Components/
|
|
58
|
-
import
|
|
59
|
-
import ue from "./Components/
|
|
60
|
-
import de from "./
|
|
61
|
-
import
|
|
62
|
-
import {
|
|
63
|
-
|
|
2
|
+
import { useBreakpoint as t } from "./Utils/useBreakpoint.js";
|
|
3
|
+
import { useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as r } from "./Utils/index.js";
|
|
4
|
+
import { useAlert as i } from "./Components/Alert/composables/useAlert.js";
|
|
5
|
+
import a from "./Components/Icon/Icon.js";
|
|
6
|
+
import o from "./Components/Alert/Alert.js";
|
|
7
|
+
import s from "./Components/Avatar/Avatar.js";
|
|
8
|
+
import { useBadge as c } from "./Components/Badge/composables/useBadge.js";
|
|
9
|
+
import l from "./Components/Badge/Badge.js";
|
|
10
|
+
import { useButton as u } from "./Components/Button/composables/useButton.js";
|
|
11
|
+
import d from "./Components/Button/Button.js";
|
|
12
|
+
import { useCard as f } from "./Components/Card/composables/useCard.js";
|
|
13
|
+
import p from "./Components/Card/Card.js";
|
|
14
|
+
import { useFormControl as m } from "./Components/FormControl/composables/useFormControl.js";
|
|
15
|
+
import h from "./Components/FormControl/FormControl.js";
|
|
16
|
+
import { useCheckbox as g } from "./Components/Checkbox/composables/useCheckbox.js";
|
|
17
|
+
import _ from "./Components/Checkbox/Checkbox.js";
|
|
18
|
+
import { useChip as v } from "./Components/Chip/composables/useChip.js";
|
|
19
|
+
import y from "./Components/Chip/Chip.js";
|
|
20
|
+
import { useDivider as b } from "./Components/Divider/composables/useDivider.js";
|
|
21
|
+
import x from "./Components/Divider/Divider.js";
|
|
22
|
+
import { useDrawer as S } from "./Components/Drawer/composables/useDrawer.js";
|
|
23
|
+
import C from "./Components/Drawer/Drawer.js";
|
|
24
|
+
import { useFormField as w } from "./Components/FormField/composables/useFormField.js";
|
|
25
|
+
import T from "./Components/FormField/FormField.js";
|
|
26
|
+
import { useLabel as E } from "./Components/Label/composables/useLabel.js";
|
|
27
|
+
import D from "./Components/Label/Label.js";
|
|
28
|
+
import { useLink as O } from "./Components/Link/composables/useLink.js";
|
|
29
|
+
import k from "./Components/Link/Link.js";
|
|
30
|
+
import { useList as A } from "./Components/List/composables/useList.js";
|
|
31
|
+
import j from "./Components/List/List.js";
|
|
32
|
+
import { useListbox as M } from "./Components/Listbox/composables/useListbox.js";
|
|
33
|
+
import { findFirstEnabledOptionIndex as N, findLastEnabledOptionIndex as P, getListboxActiveDescendantId as F, getListboxOptionId as I, moveListboxHighlight as L, useListboxNavigation as R } from "./Components/Listbox/composables/useListboxNavigation.js";
|
|
34
|
+
import z from "./Components/ListItem/ListItem.js";
|
|
35
|
+
import B from "./Components/ListSection/ListSection.js";
|
|
36
|
+
import { useMenu as V } from "./Components/Menu/composables/useMenu.js";
|
|
37
|
+
import H from "./Components/Menu/Menu.js";
|
|
38
|
+
import { useProgress as U } from "./Components/Progress/composables/useProgress.js";
|
|
39
|
+
import W from "./Components/Progress/Progress.js";
|
|
40
|
+
import G from "./Components/Listbox/Listbox.js";
|
|
41
|
+
import { useModal as K } from "./Components/Modal/composables/useModal.js";
|
|
42
|
+
import q from "./Components/Modal/Modal.js";
|
|
43
|
+
import { useNumberField as J } from "./Components/NumberField/composables/useNumberField.js";
|
|
44
|
+
import Y from "./Components/NumberField/NumberField.js";
|
|
45
|
+
import { usePasswordField as X } from "./Components/PasswordField/composables/usePasswordField.js";
|
|
46
|
+
import Z from "./Components/PasswordField/PasswordField.js";
|
|
47
|
+
import { useRadio as Q } from "./Components/Radio/composables/useRadio.js";
|
|
48
|
+
import $ from "./Components/Radio/Radio.js";
|
|
49
|
+
import ee from "./Components/Select/Select.js";
|
|
50
|
+
import te from "./Components/Select/SelectOption.js";
|
|
51
|
+
import { useSkeleton as ne } from "./Components/Skeleton/composables/useSkeleton.js";
|
|
52
|
+
import re from "./Components/Skeleton/Skeleton.js";
|
|
53
|
+
import { useSnackbar as ie } from "./Components/Snackbar/composables/useSnackbar.js";
|
|
54
|
+
import ae from "./Components/Snackbar/Snackbar.js";
|
|
55
|
+
import { useSpinner as oe } from "./Components/Spinner/composables/useSpinner.js";
|
|
56
|
+
import se from "./Components/Spinner/Spinner.js";
|
|
57
|
+
import { useSwitch as ce } from "./Components/Switch/composables/useSwitch.js";
|
|
58
|
+
import le from "./Components/Switch/Switch.js";
|
|
59
|
+
import { TABS_INJECTION_KEY as ue } from "./Components/Tabs/tabsInjectionKey.js";
|
|
60
|
+
import { useTab as de } from "./Components/Tab/composables/useTab.js";
|
|
61
|
+
import fe from "./Components/Tab/Tab.js";
|
|
62
|
+
import { useTabItem as pe } from "./Components/TabItem/composables/useTabItem.js";
|
|
63
|
+
import me from "./Components/TabItem/TabItem.js";
|
|
64
|
+
import { useTabList as he } from "./Components/TabList/composables/useTabList.js";
|
|
65
|
+
import ge from "./Components/TabList/TabList.js";
|
|
66
|
+
import { useTabPanel as _e } from "./Components/TabPanel/composables/useTabPanel.js";
|
|
67
|
+
import ve from "./Components/TabPanel/TabPanel.js";
|
|
68
|
+
import { useTabs as ye } from "./Components/Tabs/composables/useTabs.js";
|
|
69
|
+
import be from "./Components/Tabs/Tabs.js";
|
|
70
|
+
import { useTextarea as xe } from "./Components/Textarea/composables/useTextarea.js";
|
|
71
|
+
import Se from "./Components/Textarea/Textarea.js";
|
|
72
|
+
import { useTextField as Ce } from "./Components/TextField/composables/useTextField.js";
|
|
73
|
+
import we from "./Components/TextField/TextField.js";
|
|
74
|
+
import Te from "./Provider/BridgeUIProvider.js";
|
|
75
|
+
import { createBridgeUI as Ee } from "./Provider/createBridgeUI.js";
|
|
76
|
+
import { BRIDGE_UI_DEFAULT_GLOBAL as De, cn as Oe, mergeBridgeUIComponents as ke, mergeBridgeUIGlobal as Ae, resolveBridgeUIOptions as je } from "@bridge-ui/core";
|
|
77
|
+
export { o as Alert, s as Avatar, De as BRIDGE_UI_DEFAULT_GLOBAL, l as Badge, Te as BridgeUIProvider, d as Button, p as Card, _ as Checkbox, y as Chip, x as Divider, C as Drawer, h as FormControl, T as FormField, a as Icon, D as Label, k as Link, j as List, z as ListItem, B as ListSection, G as Listbox, H as Menu, q as Modal, Y as NumberField, Z as PasswordField, W as Progress, $ as Radio, ee as Select, te as SelectOption, re as Skeleton, ae as Snackbar, se as Spinner, le as Switch, ue as TABS_INJECTION_KEY, fe as Tab, me as TabItem, ge as TabList, ve as TabPanel, be as Tabs, we as TextField, Se as Textarea, Oe as cn, Ee as createBridgeUI, N as findFirstEnabledOptionIndex, P as findLastEnabledOptionIndex, F as getListboxActiveDescendantId, I as getListboxOptionId, ke as mergeBridgeUIComponents, Ae as mergeBridgeUIGlobal, L as moveListboxHighlight, je as resolveBridgeUIOptions, i as useAlert, c as useBadge, t as useBreakpoint, e as useBridgeUI, n as useBridgeUIComponent, r as useBridgeUIMergedRegistryClasses, u as useButton, f as useCard, g as useCheckbox, v as useChip, b as useDivider, S as useDrawer, m as useFormControl, w as useFormField, E as useLabel, O as useLink, A as useList, M as useListbox, R as useListboxNavigation, V as useMenu, K as useModal, J as useNumberField, X as usePasswordField, U as useProgress, Q as useRadio, ne as useSkeleton, ie as useSnackbar, oe as useSpinner, ce as useSwitch, de as useTab, pe as useTabItem, he as useTabList, _e as useTabPanel, ye as useTabs, Ce as useTextField, xe as useTextarea };
|
package/dist/theme.css
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
@source "./Components";
|
|
3
3
|
@source "../../core/dist/Components";
|
|
4
4
|
|
|
5
|
+
/* Emitted for JS (`useBreakpoint`) — Tailwind otherwise omits unused --breakpoint-* vars. */
|
|
6
|
+
@theme static {
|
|
7
|
+
--breakpoint-sm: 40rem;
|
|
8
|
+
--breakpoint-md: 48rem;
|
|
9
|
+
--breakpoint-lg: 64rem;
|
|
10
|
+
--breakpoint-xl: 80rem;
|
|
11
|
+
--breakpoint-2xl: 96rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
5
14
|
@theme inline {
|
|
6
15
|
/* Typography */
|
|
7
16
|
--text-2xs: 0.625rem;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.0.1
|
|
4
|
+
"version": "0.0.1",
|
|
5
5
|
"author": "BridgeUI",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"name": "@bridge-ui/vue",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"dist"
|
|
61
61
|
],
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@bridge-ui/core": "^0.0.1
|
|
63
|
+
"@bridge-ui/core": "^0.0.1",
|
|
64
64
|
"@lucide/vue": ">=1.0.0",
|
|
65
65
|
"vue": "^3.4.0"
|
|
66
66
|
},
|