@bridge-ui/vue 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/Actions/Dialog/BridgeDialogAction.vue_vue_type_script_setup_true_lang.js +19 -35
  2. package/dist/Actions/Snackbar/BridgeSnackbarAction.vue_vue_type_script_setup_true_lang.js +41 -54
  3. package/dist/Actions/Snackbar/BridgeSnackbarHost.vue_vue_type_script_setup_true_lang.js +1 -1
  4. package/dist/Components/Alert/alertDefaultIcons.d.ts +1 -1
  5. package/dist/Components/Alert/composables/useAlert.js +2 -2
  6. package/dist/Components/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js +1 -0
  7. package/dist/Components/Avatar/avatar.types.d.ts +34 -1
  8. package/dist/Components/Avatar/composables/useAvatar.d.ts +4 -4
  9. package/dist/Components/Avatar/composables/useAvatar.js +10 -9
  10. package/dist/Components/Avatar/index.d.ts +1 -1
  11. package/dist/Components/Badge/composables/useBadge.js +2 -2
  12. package/dist/Components/Button/composables/useButton.d.ts +1 -1
  13. package/dist/Components/Button/composables/useButton.js +2 -2
  14. package/dist/Components/Card/composables/useCard.js +4 -4
  15. package/dist/Components/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +0 -1
  16. package/dist/Components/Checkbox/composables/useCheckbox.d.ts +5 -10
  17. package/dist/Components/Checkbox/composables/useCheckbox.js +2 -2
  18. package/dist/Components/Chip/composables/useChip.js +2 -2
  19. package/dist/Components/Divider/composables/useDivider.js +2 -2
  20. package/dist/Components/Drawer/Drawer.vue.d.ts +1 -1
  21. package/dist/Components/Drawer/composables/useDrawer.d.ts +1 -1
  22. package/dist/Components/Drawer/composables/useDrawer.js +2 -2
  23. package/dist/Components/FormControl/FormControl.vue_vue_type_script_setup_true_lang.js +24 -18
  24. package/dist/Components/FormControl/FormControlLabel.js +5 -0
  25. package/dist/Components/FormControl/FormControlLabel.vue.d.ts +8 -0
  26. package/dist/Components/FormControl/FormControlLabel.vue_vue_type_script_setup_true_lang.js +19 -0
  27. package/dist/Components/FormControl/composables/useFormControl.d.ts +7 -11
  28. package/dist/Components/FormControl/composables/useFormControl.js +62 -68
  29. package/dist/Components/FormControl/formControl.types.d.ts +19 -30
  30. package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +23 -25
  31. package/dist/Components/FormField/FormFieldLabel.js +5 -0
  32. package/dist/Components/FormField/FormFieldLabel.vue.d.ts +7 -0
  33. package/dist/Components/FormField/FormFieldLabel.vue_vue_type_script_setup_true_lang.js +16 -0
  34. package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +22 -24
  35. package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +23 -25
  36. package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +25 -27
  37. package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +23 -25
  38. package/dist/Components/FormField/composables/useFormField.d.ts +3 -3
  39. package/dist/Components/FormField/composables/useFormField.js +112 -111
  40. package/dist/Components/FormField/formField.types.d.ts +6 -3
  41. package/dist/Components/Icon/composables/useIcon.js +2 -2
  42. package/dist/Components/Label/composables/useLabel.js +2 -2
  43. package/dist/Components/Link/composables/useLink.js +2 -2
  44. package/dist/Components/Listbox/Listbox.vue.d.ts +1 -1
  45. package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +78 -112
  46. package/dist/Components/Listbox/composables/useListbox.js +2 -2
  47. package/dist/Components/Listbox/listbox.types.d.ts +49 -6
  48. package/dist/Components/Menu/Menu.vue.d.ts +2 -2
  49. package/dist/Components/Menu/composables/useMenu.d.ts +1 -1
  50. package/dist/Components/Menu/composables/useMenu.js +2 -2
  51. package/dist/Components/Modal/composables/useModal.js +2 -2
  52. package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +42 -44
  53. package/dist/Components/NumberField/composables/useNumberField.d.ts +3 -4
  54. package/dist/Components/NumberField/numberField.types.d.ts +34 -2
  55. package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +28 -29
  56. package/dist/Components/PasswordField/composables/usePasswordField.d.ts +3 -4
  57. package/dist/Components/PasswordField/passwordField.types.d.ts +22 -2
  58. package/dist/Components/Progress/composables/useProgress.js +2 -2
  59. package/dist/Components/Radio/Radio.vue_vue_type_script_setup_true_lang.js +0 -1
  60. package/dist/Components/Radio/composables/useRadio.d.ts +5 -10
  61. package/dist/Components/Radio/composables/useRadio.js +2 -2
  62. package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +55 -54
  63. package/dist/Components/Select/composables/useSelect.d.ts +16 -15
  64. package/dist/Components/Select/composables/useSelect.js +14 -13
  65. package/dist/Components/Select/select.types.d.ts +19 -3
  66. package/dist/Components/Skeleton/composables/useSkeleton.js +2 -2
  67. package/dist/Components/Snackbar/composables/useSnackbar.js +1 -1
  68. package/dist/Components/Spinner/composables/useSpinner.js +2 -2
  69. package/dist/Components/Switch/Switch.vue_vue_type_script_setup_true_lang.js +0 -1
  70. package/dist/Components/Switch/composables/useSwitch.d.ts +5 -10
  71. package/dist/Components/Switch/composables/useSwitch.js +2 -2
  72. package/dist/Components/Tabs/Tabs.vue_vue_type_script_setup_true_lang.js +16 -16
  73. package/dist/Components/Tabs/composables/useTabs.js +2 -2
  74. package/dist/Components/Tabs/tabs.types.d.ts +28 -2
  75. package/dist/Components/TextField/composables/useTextField.d.ts +3 -4
  76. package/dist/Components/Textarea/composables/useTextarea.d.ts +3 -4
  77. package/dist/Components/Textarea/composables/useTextarea.js +2 -2
  78. package/dist/Utils/index.d.ts +9 -2
  79. package/dist/Utils/index.js +11 -11
  80. package/dist/index.d.ts +1 -1
  81. package/dist/index.js +14 -14
  82. package/dist/theme.css +1 -1
  83. package/package.json +2 -2
@@ -1,6 +1,8 @@
1
1
  import { InputHTMLAttributes, Slot, TextareaHTMLAttributes } from 'vue';
2
2
  import { ListboxOptionsInput, MergeHtmlProps, SelectAsyncData, SelectModel, SelectOption, SelectValue } from '@bridge-ui/core';
3
+ import { ChipOwnProps } from '../Chip/chip.types';
3
4
  import { FormFieldClasses, FormFieldCustomProps, FormFieldOwnProps, FormFieldSlots } from '../FormField/formField.types';
5
+ import { IconProps } from '../Icon';
4
6
  import { ListboxOwnProps } from '../Listbox/listbox.types';
5
7
  export type { ListboxOptionGroup, ListboxOptionsInput, SelectAsyncData, SelectModel, SelectOption, SelectOptionInput, SelectOptionLike, SelectValue, } from '@bridge-ui/core';
6
8
  export interface SelectClasses extends FormFieldClasses {
@@ -26,13 +28,26 @@ export interface SelectClasses extends FormFieldClasses {
26
28
  value?: string;
27
29
  }
28
30
  export interface SelectCustomProps extends FormFieldCustomProps {
31
+ /**
32
+ * Props forwarded to each selected-value `Chip` (multiple mode).
33
+ * Dismiss behavior, size, and label stay owned by `Select`.
34
+ *
35
+ * @default undefined
36
+ */
37
+ chip?: Partial<Omit<ChipOwnProps, "size" | "label" | "disabled" | "clearLabel" | "dismissible">>;
38
+ /**
39
+ * Props forwarded to the clear `Icon` (`icon` is set by `Select`).
40
+ *
41
+ * @default undefined
42
+ */
43
+ clearIcon?: Partial<Omit<IconProps, "icon">>;
29
44
  /**
30
45
  * Props forwarded to the internal `Listbox`.
31
- * Open state, options, and selection handlers stay owned by `Select`.
46
+ * Merged last so they override Select defaults.
32
47
  *
33
48
  * @default undefined
34
49
  */
35
- listbox?: Partial<Omit<ListboxOwnProps, "options" | "anchorEl" | "listboxId" | "isSelected" | "highlightedIndex">>;
50
+ listbox?: Partial<ListboxOwnProps>;
36
51
  }
37
52
  export interface SelectEmits {
38
53
  /**
@@ -98,7 +113,8 @@ export interface SelectOwnProps extends Omit<FormFieldOwnProps, "field"> {
98
113
  */
99
114
  clearable?: boolean;
100
115
  /**
101
- * Extra props for FormField parts and the internal `Listbox`.
116
+ * Extra props for FormField parts, selected chips, clear icon, and the
117
+ * internal `Listbox`.
102
118
  *
103
119
  * @default undefined
104
120
  */
@@ -2,7 +2,7 @@ import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistr
2
2
  import { computed as r, useAttrs as i } from "vue";
3
3
  import { get as a } from "es-toolkit/compat";
4
4
  import { cn as o, mergeBridgeUILayeredClasses as s, splitComponentProps as c } from "@bridge-ui/core";
5
- import { roundedProps as l } from "@bridge-ui/core/Components/Skeleton";
5
+ import { roundedProps as l } from "@bridge-ui/core/Tokens/Skeleton";
6
6
  //#region src/Components/Skeleton/composables/useSkeleton.ts
7
7
  var u = ["classes", "rounded"];
8
8
  function d(d, f) {
@@ -19,7 +19,7 @@ function d(d, f) {
19
19
  }), _ = n({
20
20
  entry: g,
21
21
  props: () => m.value.componentProps
22
- }), v = r(() => a(s(l, g.value?.customProps?.rounded), h.value.rounded));
22
+ }), v = r(() => a(s(l, g.value?.tokens?.rounded), h.value.rounded));
23
23
  return {
24
24
  merged: h,
25
25
  rootBind: r(() => e({}, m.value.inheritedAttrs, o({
@@ -39,7 +39,7 @@ function h(h, _e, g = {}) {
39
39
  }), z = r(() => ie(g.show) ? !1 : ne(g.show)), B = r(() => {
40
40
  let e = P.value.transition ?? "none";
41
41
  return e in pe ? e : "none";
42
- }), V = r(() => se(B.value)), ve = r(() => oe(B.value)), H = r(() => s(m(le, F.value?.customProps?.color), P.value.color)), U = r(() => s(m(ue, F.value?.customProps?.padding), P.value.padding)), ye = r(() => s(m(fe, F.value?.customProps?.rounded), P.value.rounded)), be = r(() => c(P.value.icon) ? null : P.value.icon ? P.value.icon : s(H.value, "icon") ?? s(ee, P.value.color)), W = r(() => P.value.duration === !1 ? 0 : P.value.duration ?? 0), G = r(() => z.value && v.value && W.value > 0 && P.value.progressbar !== !1), K = r(() => P.value.teleportTo !== !1), xe = r(() => K.value ? s(m(de, F.value?.customProps?.position), P.value.position ?? "bottom-center") : "");
42
+ }), V = r(() => se(B.value)), ve = r(() => oe(B.value)), H = r(() => s(m(le, F.value?.tokens?.color), P.value.color)), U = r(() => s(m(ue, F.value?.tokens?.padding), P.value.padding)), ye = r(() => s(m(fe, F.value?.tokens?.rounded), P.value.rounded)), be = r(() => c(P.value.icon) ? null : P.value.icon ? P.value.icon : s(H.value, "icon") ?? s(ee, P.value.color)), W = r(() => P.value.duration === !1 ? 0 : P.value.duration ?? 0), G = r(() => z.value && v.value && W.value > 0 && P.value.progressbar !== !1), K = r(() => P.value.teleportTo !== !1), xe = r(() => K.value ? s(m(de, F.value?.tokens?.position), P.value.position ?? "bottom-center") : "");
43
43
  function q() {
44
44
  k.value &&= (clearTimeout(k.value), null);
45
45
  }
@@ -2,7 +2,7 @@ import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistr
2
2
  import { computed as r, useAttrs as i } from "vue";
3
3
  import { get as a, isNil as o } from "es-toolkit/compat";
4
4
  import { DEFAULT_SPINNER_THICKNESS as s, SPINNER_VIEWBOX_SIZE as c, cn as l, getSpinnerCircleGeometry as u, mergeBridgeUILayeredClasses as d, splitComponentProps as f } from "@bridge-ui/core";
5
- import { colorProps as p, sizeProps as m, variantProps as h } from "@bridge-ui/core/Components/Spinner";
5
+ import { colorProps as p, sizeProps as m, variantProps as h } from "@bridge-ui/core/Tokens/Spinner";
6
6
  //#region src/Components/Spinner/composables/useSpinner.ts
7
7
  var g = [
8
8
  "size",
@@ -32,7 +32,7 @@ function v(o, v) {
32
32
  }), C = n({
33
33
  entry: S,
34
34
  props: () => b.value.componentProps
35
- }), w = r(() => x.value.customProps), T = r(() => a(d(p, S.value?.customProps?.color), x.value.color)), E = r(() => a(d(m, S.value?.customProps?.size), x.value.size)), D = r(() => a(d(h, S.value?.customProps?.variant), x.value.variant)), O = r(() => x.value.thickness ?? s), k = r(() => u(O.value)), A = c / 2, j = r(() => _(x.value.value)), M = r(() => !!x.value.enableTrack), N = r(() => !!x.value.disableShrink), P = r(() => x.value.variant === "determinate"), F = r(() => x.value.variant === "indeterminate"), I = r(() => e(w.value?.root, b.value.inheritedAttrs, {
35
+ }), w = r(() => x.value.customProps), T = r(() => a(d(p, S.value?.tokens?.color), x.value.color)), E = r(() => a(d(m, S.value?.tokens?.size), x.value.size)), D = r(() => a(d(h, S.value?.tokens?.variant), x.value.variant)), O = r(() => x.value.thickness ?? s), k = r(() => u(O.value)), A = c / 2, j = r(() => _(x.value.value)), M = r(() => !!x.value.enableTrack), N = r(() => !!x.value.disableShrink), P = r(() => x.value.variant === "determinate"), F = r(() => x.value.variant === "indeterminate"), I = r(() => e(w.value?.root, b.value.inheritedAttrs, {
36
36
  role: "progressbar",
37
37
  ...P.value ? {
38
38
  "aria-valuemin": 0,
@@ -19,7 +19,6 @@ var h = ["checked"], g = /* @__PURE__ */ a({
19
19
  endLabel: {},
20
20
  error: { type: Boolean },
21
21
  errorMessage: {},
22
- mainLabel: {},
23
22
  readonly: { type: Boolean },
24
23
  required: { type: Boolean },
25
24
  startLabel: {},
@@ -243,7 +243,7 @@ export declare function useSwitch(props: MaybeRefOrGetter<SwitchOwnProps>, libDe
243
243
  withoutErrorMessage: NonNullable<boolean | undefined>;
244
244
  }>;
245
245
  rowBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
246
- rootBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<Omit<import('../../FormControl').FormControlOwnProps, "field">, "size" | "classes" | "customProps" | "error" | "disabled" | "controlId" | "description" | "endLabel" | "errorMessage" | "mainLabel" | "readonly" | "required" | "startLabel" | "withoutErrorMessage">>>>;
246
+ rootBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Partial<Omit<Omit<import('../../FormControl').FormControlOwnProps, "field">, "size" | "classes" | "customProps" | "error" | "disabled" | "required" | "controlId" | "description" | "endLabel" | "errorMessage" | "readonly" | "startLabel" | "withoutErrorMessage">>>>;
247
247
  controlId: import('vue').ComputedRef<string>;
248
248
  isDisabled: import('vue').ComputedRef<boolean>;
249
249
  isReadonly: import('vue').ComputedRef<boolean>;
@@ -256,15 +256,10 @@ export declare function useSwitch(props: MaybeRefOrGetter<SwitchOwnProps>, libDe
256
256
  "aria-invalid": true | undefined;
257
257
  }>;
258
258
  invalidated: import('vue').ComputedRef<boolean>;
259
- endLabelBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {
260
- for: string;
261
- }>>;
262
- mainLabelBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {
263
- for: string;
264
- }>>;
265
- startLabelBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {
266
- for: string;
267
- }>>;
259
+ fieldLabelProps: import('vue').ComputedRef<{
260
+ endLabel: import('../../Label').LabelProps;
261
+ startLabel: import('../../Label').LabelProps;
262
+ }>;
268
263
  descriptionBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {
269
264
  id: string;
270
265
  }>>;
@@ -3,7 +3,7 @@ import { useFormControl as r } from "../../FormControl/composables/useFormContro
3
3
  import { computed as i, toValue as a, useAttrs as o } from "vue";
4
4
  import { get as s, omit as c } from "es-toolkit/compat";
5
5
  import { cn as l, mergeBridgeUILayeredClasses as u, splitComponentProps as d } from "@bridge-ui/core";
6
- import { colorProps as f, invalidatedProps as p, roundedProps as m, sizeProps as h } from "@bridge-ui/core/Components/Switch";
6
+ import { colorProps as f, invalidatedProps as p, roundedProps as m, sizeProps as h } from "@bridge-ui/core/Tokens/Switch";
7
7
  //#region src/Components/Switch/composables/useSwitch.ts
8
8
  var g = [
9
9
  "size",
@@ -33,7 +33,7 @@ function _(_, v, y) {
33
33
  }), T = i(() => C.value.customProps), E = n({
34
34
  entry: w,
35
35
  props: () => S.value.componentProps
36
- }), D = i(() => !!a(y)), O = i(() => s(u(f, w.value?.customProps?.color), C.value.color ?? "primary")), k = i(() => u(p, w.value?.customProps?.invalidated)), A = i(() => x.invalidated.value ? k.value : O.value), j = i(() => s(u(h, w.value?.customProps?.size), C.value.size ?? "sm")), M = i(() => s(u(m, w.value?.customProps?.rounded), C.value.rounded ?? "full")), N = i(() => e({
36
+ }), D = i(() => !!a(y)), O = i(() => s(u(f, w.value?.tokens?.color), C.value.color ?? "primary")), k = i(() => u(p, w.value?.tokens?.invalidated)), A = i(() => x.invalidated.value ? k.value : O.value), j = i(() => s(u(h, w.value?.tokens?.size), C.value.size ?? "sm")), M = i(() => s(u(m, w.value?.tokens?.rounded), C.value.rounded ?? "full")), N = i(() => e({
37
37
  ...T.value?.input,
38
38
  ...x.controlBind.value,
39
39
  role: "switch",
@@ -3,9 +3,9 @@ import t from "../Tab/Tab.js";
3
3
  import n from "../TabList/TabList.js";
4
4
  import r from "../TabPanel/TabPanel.js";
5
5
  import { useTabs as i } from "./composables/useTabs.js";
6
- import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, guardReactiveProps as m, mergeModels as h, normalizeProps as g, openBlock as _, renderList as v, resolveDynamicComponent as y, toDisplayString as b, unref as x, useModel as S, useSlots as C, withCtx as w } from "vue";
6
+ import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, guardReactiveProps as m, mergeModels as h, mergeProps as g, normalizeProps as _, openBlock as v, renderList as y, resolveDynamicComponent as b, toDisplayString as x, unref as S, useModel as C, useSlots as w, withCtx as T } from "vue";
7
7
  //#region src/Components/Tabs/Tabs.vue?vue&type=script&setup=true&lang.ts
8
- var T = /* @__PURE__ */ p({
8
+ var E = /* @__PURE__ */ p({
9
9
  inheritAttrs: !1,
10
10
  __name: "Tabs",
11
11
  props: /* @__PURE__ */ h({
@@ -26,48 +26,48 @@ var T = /* @__PURE__ */ p({
26
26
  }),
27
27
  emits: /* @__PURE__ */ h(["change", "update:modelValue"], ["update:modelValue"]),
28
28
  setup(p, { emit: h }) {
29
- let T = C(), E = h, { rootBind: D, tabItems: O } = i(p, {
29
+ let E = w(), D = h, O = p, { rootBind: k, tabItems: A } = i(O, {
30
30
  size: "md",
31
31
  variant: "line",
32
32
  color: "primary",
33
33
  keepMounted: !0,
34
34
  activation: "automatic",
35
35
  orientation: "horizontal"
36
- }, S(p, "modelValue"), E), k = o(() => O.value.length > 0);
37
- return (i, o) => (_(), l("div", g(m(x(D))), [k.value ? (_(), l(a, { key: 0 }, [f(n, null, {
38
- default: w(() => [(_(!0), l(a, null, v(x(O), (e) => (_(), s(t, {
36
+ }, C(p, "modelValue"), D), j = o(() => A.value.length > 0);
37
+ return (i, o) => (v(), l("div", _(m(S(k))), [j.value ? (v(), l(a, { key: 0 }, [f(n, _(m(O.customProps?.tabList)), {
38
+ default: T(() => [(v(!0), l(a, null, y(S(A), (e) => (v(), s(t, g({
39
39
  key: e.value,
40
40
  value: e.value,
41
41
  "end-icon": e.endIcon,
42
42
  disabled: e.disabled,
43
43
  "start-icon": e.startIcon
44
- }, u({
45
- default: w(() => [typeof e.label == "string" ? (_(), l(a, { key: 0 }, [d(b(e.label), 1)], 64)) : (_(), s(y(e.label), { key: 1 }))]),
44
+ }, { ref_for: !0 }, O.customProps?.tab), u({
45
+ default: T(() => [typeof e.label == "string" ? (v(), l(a, { key: 0 }, [d(x(e.label), 1)], 64)) : (v(), s(b(e.label), { key: 1 }))]),
46
46
  _: 2
47
47
  }, [e.slots?.start ? {
48
48
  name: "start",
49
- fn: w(() => [(_(), s(y(e.slots.start)))]),
49
+ fn: T(() => [(v(), s(b(e.slots.start)))]),
50
50
  key: "0"
51
51
  } : void 0, e.slots?.end ? {
52
52
  name: "end",
53
- fn: w(() => [(_(), s(y(e.slots.end)))]),
53
+ fn: T(() => [(v(), s(b(e.slots.end)))]),
54
54
  key: "1"
55
- } : void 0]), 1032, [
55
+ } : void 0]), 1040, [
56
56
  "value",
57
57
  "end-icon",
58
58
  "disabled",
59
59
  "start-icon"
60
60
  ]))), 128))]),
61
61
  _: 1
62
- }), (_(!0), l(a, null, v(x(O), (e) => (_(), s(r, {
62
+ }, 16), (v(!0), l(a, null, y(S(A), (e) => (v(), s(r, g({
63
63
  key: e.value,
64
64
  value: e.value,
65
65
  "keep-mounted": e.keepMounted
66
- }, {
67
- default: w(() => [(_(), s(y(e.panel)))]),
66
+ }, { ref_for: !0 }, O.customProps?.tabPanel), {
67
+ default: T(() => [(v(), s(b(e.panel)))]),
68
68
  _: 2
69
- }, 1032, ["value", "keep-mounted"]))), 128))], 64)) : c("", !0), (_(), s(y(x(e)(x(T), "default"))))], 16));
69
+ }, 1040, ["value", "keep-mounted"]))), 128))], 64)) : c("", !0), (v(), s(b(S(e)(S(E), "default"))))], 16));
70
70
  }
71
71
  });
72
72
  //#endregion
73
- export { T as default };
73
+ export { E as default };
@@ -3,7 +3,7 @@ import { TABS_INJECTION_KEY as r } from "../tabsInjectionKey.js";
3
3
  import { computed as i, provide as a, ref as o, useAttrs as s, useId as c } from "vue";
4
4
  import { get as l } from "es-toolkit/compat";
5
5
  import { cn as u, getTabId as d, mergeBridgeUILayeredClasses as f, splitComponentProps as p } from "@bridge-ui/core";
6
- import { colorProps as m, orientationProps as h, sizeProps as g, variantProps as _ } from "@bridge-ui/core/Components/Tabs";
6
+ import { colorProps as m, orientationProps as h, sizeProps as g, variantProps as _ } from "@bridge-ui/core/Tokens/Tabs";
7
7
  //#region src/Components/Tabs/composables/useTabs.ts
8
8
  var v = [
9
9
  "size",
@@ -52,7 +52,7 @@ function y(y, b, x, S) {
52
52
  let L = n({
53
53
  entry: j,
54
54
  props: () => k.value.componentProps
55
- }), R = i(() => f(g, j.value?.customProps?.size)), z = i(() => f(_, j.value?.customProps?.variant)), B = i(() => f(m, j.value?.customProps?.color)), V = i(() => f(h, j.value?.customProps?.orientation)), H = i(() => l(R.value, A.value.size)), U = i(() => l(z.value, A.value.variant)), W = i(() => l(B.value, A.value.color)), G = i(() => l(V.value, A.value.orientation)), K = i(() => ({
55
+ }), R = i(() => f(g, j.value?.tokens?.size)), z = i(() => f(_, j.value?.tokens?.variant)), B = i(() => f(m, j.value?.tokens?.color)), V = i(() => f(h, j.value?.tokens?.orientation)), H = i(() => l(R.value, A.value.size)), U = i(() => l(z.value, A.value.variant)), W = i(() => l(B.value, A.value.color)), G = i(() => l(V.value, A.value.orientation)), K = i(() => ({
56
56
  focusTab: F,
57
57
  id: T,
58
58
  setSelected: N,
@@ -1,5 +1,8 @@
1
1
  import { HTMLAttributes, Slot } from 'vue';
2
2
  import { MergeHtmlProps, MergeProps, TabsActivation, TabsColor, TabsOrientation, TabsSize, TabsVariant } from '@bridge-ui/core';
3
+ import { TabOwnProps } from '../Tab/tab.types';
4
+ import { TabListOwnProps } from '../TabList/tabList.types';
5
+ import { TabPanelOwnProps } from '../TabPanel/tabPanel.types';
3
6
  export interface TabsSizeOverrides {}
4
7
  export interface TabsColorOverrides {}
5
8
  export interface TabsVariantOverrides {}
@@ -13,8 +16,30 @@ export interface TabsClasses {
13
16
  export interface TabsCustomProps {
14
17
  /**
15
18
  * Props forwarded to the root element.
19
+ *
20
+ * @default undefined
16
21
  */
17
22
  root?: HTMLAttributes;
23
+ /**
24
+ * Props forwarded to each mapped `Tab` when using the `items` API.
25
+ * Value, icons, and disabled stay owned by `Tabs`.
26
+ *
27
+ * @default undefined
28
+ */
29
+ tab?: Partial<Omit<TabOwnProps, "value" | "endIcon" | "disabled" | "startIcon">>;
30
+ /**
31
+ * Props forwarded to the mapped `TabList` when using the `items` API.
32
+ *
33
+ * @default undefined
34
+ */
35
+ tabList?: Partial<TabListOwnProps>;
36
+ /**
37
+ * Props forwarded to each mapped `TabPanel` when using the `items` API.
38
+ * Value and keepMounted stay owned by `Tabs`.
39
+ *
40
+ * @default undefined
41
+ */
42
+ tabPanel?: Partial<Omit<TabPanelOwnProps, "value" | "keepMounted">>;
18
43
  }
19
44
  export interface TabsEmits {
20
45
  /**
@@ -43,13 +68,14 @@ export interface TabsOwnProps {
43
68
  */
44
69
  classes?: TabsClasses;
45
70
  /**
46
- * Accent color for the selected tab (`primary` or `dark`).
71
+ * Accent color for the selected tab.
47
72
  *
48
73
  * @default "primary"
49
74
  */
50
75
  color?: MergeProps<TabsColor, TabsColorOverrides>;
51
76
  /**
52
- * Props forwarded to each tabs part.
77
+ * Extra props for the root and mapped `TabList` / `Tab` / `TabPanel` parts
78
+ * (items API).
53
79
  *
54
80
  * @default undefined
55
81
  */
@@ -427,10 +427,9 @@ export declare function useTextField(props: TextFieldOwnProps): {
427
427
  onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
428
428
  onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
429
429
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
430
- }, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "color" | "end" | "size" | "classes" | "customProps" | "error" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "description" | "errorMessage" | "readonly" | "required" | "withoutErrorMessage" | "errorIcon" | "withErrorIcon" | "corner">>>>;
430
+ }, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "color" | "end" | "size" | "classes" | "customProps" | "error" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "required" | "description" | "errorMessage" | "readonly" | "withoutErrorMessage" | "errorIcon" | "withErrorIcon" | "corner">>>>;
431
431
  isNotched: import('vue').ComputedRef<boolean>;
432
432
  isStacked: import('vue').ComputedRef<boolean>;
433
- labelBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
434
433
  startBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
435
434
  cornerBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
436
435
  headerBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
@@ -440,12 +439,12 @@ export declare function useTextField(props: TextFieldOwnProps): {
440
439
  endIconBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {}>>;
441
440
  endSlotBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
442
441
  invalidated: import('vue').ComputedRef<boolean>;
443
- requiredBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", {}, {}>>;
444
442
  containerBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {
445
443
  "data-bridge-rounded": NonNullable<keyof import('@bridge-ui/core').FormFieldRounded | undefined>;
446
444
  }>>;
447
445
  startIconBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {}>>;
448
446
  startSlotBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
447
+ fieldLabelProps: import('vue').ComputedRef<import('../../Label').LabelProps>;
449
448
  ariaDescribedBy: import('vue').ComputedRef<string | undefined>;
450
449
  descriptionBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
451
450
  stackedBodyBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", {}, {}>>;
@@ -676,5 +675,5 @@ export declare function useTextField(props: TextFieldOwnProps): {
676
675
  onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
677
676
  onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
678
677
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
679
- }, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "color" | "end" | "size" | "classes" | "customProps" | "error" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "description" | "errorMessage" | "readonly" | "required" | "withoutErrorMessage" | "errorIcon" | "withErrorIcon" | "corner">>>>;
678
+ }, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "color" | "end" | "size" | "classes" | "customProps" | "error" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "required" | "description" | "errorMessage" | "readonly" | "withoutErrorMessage" | "errorIcon" | "withErrorIcon" | "corner">>>>;
680
679
  };
@@ -428,10 +428,9 @@ export declare function useTextarea(props: TextareaOwnProps, textareaRef: Ref<nu
428
428
  onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
429
429
  onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
430
430
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
431
- }, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "color" | "end" | "size" | "classes" | "customProps" | "error" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "description" | "errorMessage" | "readonly" | "required" | "withoutErrorMessage" | "errorIcon" | "withErrorIcon" | "corner">>>>;
431
+ }, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "color" | "end" | "size" | "classes" | "customProps" | "error" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "required" | "description" | "errorMessage" | "readonly" | "withoutErrorMessage" | "errorIcon" | "withErrorIcon" | "corner">>>>;
432
432
  isNotched: import('vue').ComputedRef<boolean>;
433
433
  isStacked: import('vue').ComputedRef<boolean>;
434
- labelBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
435
434
  startBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
436
435
  cornerBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
437
436
  headerBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
@@ -441,12 +440,12 @@ export declare function useTextarea(props: TextareaOwnProps, textareaRef: Ref<nu
441
440
  endIconBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {}>>;
442
441
  endSlotBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
443
442
  invalidated: import('vue').ComputedRef<boolean>;
444
- requiredBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", {}, {}>>;
445
443
  containerBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {
446
444
  "data-bridge-rounded": NonNullable<keyof import('@bridge-ui/core').FormFieldRounded | undefined>;
447
445
  }>>;
448
446
  startIconBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {}>>;
449
447
  startSlotBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
448
+ fieldLabelProps: import('vue').ComputedRef<import('../../Label').LabelProps>;
450
449
  ariaDescribedBy: import('vue').ComputedRef<string | undefined>;
451
450
  descriptionBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
452
451
  stackedBodyBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", {}, {}>>;
@@ -678,7 +677,7 @@ export declare function useTextarea(props: TextareaOwnProps, textareaRef: Ref<nu
678
677
  onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
679
678
  onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
680
679
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
681
- }, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "color" | "end" | "size" | "classes" | "customProps" | "error" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "description" | "errorMessage" | "readonly" | "required" | "withoutErrorMessage" | "errorIcon" | "withErrorIcon" | "corner">>>, {
680
+ }, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "color" | "end" | "size" | "classes" | "customProps" | "error" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "required" | "description" | "errorMessage" | "readonly" | "withoutErrorMessage" | "errorIcon" | "withErrorIcon" | "corner">>>, {
682
681
  rows?: string | number | undefined;
683
682
  onInput?: ((event: Event) => void) | undefined;
684
683
  }>>;
@@ -3,7 +3,7 @@ import { useFormField as r } from "../../FormField/composables/useFormField.js";
3
3
  import { computed as i, onMounted as a, useAttrs as o, watch as s } from "vue";
4
4
  import { get as c, isNil as l, omit as u } from "es-toolkit/compat";
5
5
  import { adjustAutosizeTextareaHeight as d, cn as f, mergeBridgeUILayeredClasses as p } from "@bridge-ui/core";
6
- import { resizeProps as m } from "@bridge-ui/core/Components/Textarea";
6
+ import { resizeProps as m } from "@bridge-ui/core/Tokens/Textarea";
7
7
  //#region src/Components/Textarea/composables/useTextarea.ts
8
8
  function h(h, g) {
9
9
  let _ = o(), v = i(() => ({
@@ -40,7 +40,7 @@ function h(h, g) {
40
40
  }, {
41
41
  control: () => "textarea",
42
42
  likeInput: () => S.value
43
- }), E = i(() => C.value ? "none" : b.value.resize ?? "none"), D = i(() => c(p(m, y.value?.customProps?.resize), E.value ?? "none")), O = i(() => _.onInput), k = (e) => {
43
+ }), E = i(() => C.value ? "none" : b.value.resize ?? "none"), D = i(() => c(p(m, y.value?.tokens?.resize), E.value ?? "none")), O = i(() => _.onInput), k = (e) => {
44
44
  !e || !C.value || d(e);
45
45
  }, A = (e) => {
46
46
  k(e.target), O.value?.(e);
@@ -1,7 +1,7 @@
1
1
  import { ComponentPublicInstance, ComputedRef, MaybeRefOrGetter } from 'vue';
2
- import { FormFieldSize } from '@bridge-ui/core/Components/FormField';
3
- import { IconSize } from '@bridge-ui/core/Components/Icon';
4
2
  import { BridgeUIComponentsConfig } from '@bridge-ui/core/Config';
3
+ import { FormFieldSize } from '@bridge-ui/core/Tokens/FormField';
4
+ import { IconSize } from '@bridge-ui/core/Tokens/Icon';
5
5
  import { useBridgeUI } from '../Provider/useBridgeUI';
6
6
  type RegistryEntryFor<K extends keyof BridgeUIComponentsConfig> = NonNullable<BridgeUIComponentsConfig[K]>;
7
7
  export type UseBridgeUIComponentReturn<P extends object, K extends keyof BridgeUIComponentsConfig> = {
@@ -18,6 +18,13 @@ export declare function defineHeadlessComponent(setup: () => void): import('vue'
18
18
  * Merges Vue-specific classes into the `class` attribute.
19
19
  */
20
20
  export declare const mergePartBind: <Bridge extends object, Part extends object | undefined = undefined, Inherited extends object | undefined = undefined>(partProps: Part, inheritedAttrs: Inherited, bridgeProps: string | Bridge) => import('@bridge-ui/core').MergePartBind<Bridge, "class", Part, Inherited>;
21
+ /**
22
+ * Merges consumer nested-component props with package defaults (consumer wins).
23
+ */
24
+ export declare const mergeNestedComponentProps: <P extends {
25
+ classes?: object;
26
+ customProps?: object;
27
+ }>(userProps: undefined | Partial<P>, defaults?: import('@bridge-ui/core').NestedComponentDefaults<P>) => Partial<P>;
21
28
  /**
22
29
  * Registry entry + props merged with Bridge defaults for a named component.
23
30
  */
@@ -4,10 +4,10 @@ import { useBreakpoint as o } from "./useBreakpoint.js";
4
4
  import { useHoldRepeat as s } from "./useHoldRepeat.js";
5
5
  import { computed as c, defineComponent as l, toValue as u, unref as d } from "vue";
6
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";
7
+ import { createMergeNestedComponentProps as m, createMergePartBind as h } from "@bridge-ui/core";
8
+ import { mergeBridgeUILayeredClasses as g, mergePropsWithBridgeUIDefaults as _ } from "@bridge-ui/core/Utils";
9
9
  //#region src/Utils/index.ts
10
- function _(e) {
10
+ function v(e) {
11
11
  return l({
12
12
  name: "HeadlessTestComponent",
13
13
  setup() {
@@ -15,13 +15,13 @@ function _(e) {
15
15
  }
16
16
  });
17
17
  }
18
- var v = m("class");
19
- function y({ props: t, libDefaults: n, componentName: r }) {
18
+ var y = h("class"), b = m(y);
19
+ function x({ props: t, libDefaults: n, componentName: r }) {
20
20
  let i = e(), a = c(() => p(i) ? null : d(i.components));
21
21
  return {
22
22
  entry: c(() => f(a.value, r)),
23
23
  bridge: i,
24
- merged: c(() => g({
24
+ merged: c(() => _({
25
25
  libDefaults: n,
26
26
  componentName: r,
27
27
  props: u(t),
@@ -30,10 +30,10 @@ function y({ props: t, libDefaults: n, componentName: r }) {
30
30
  components: a
31
31
  };
32
32
  }
33
- function b({ entry: e, props: t }) {
34
- return c(() => h(f(e.value, "classes"), u(t).classes));
33
+ function S({ entry: e, props: t }) {
34
+ return c(() => g(f(e.value, "classes"), u(t).classes));
35
35
  }
36
- function x(e) {
36
+ function C(e) {
37
37
  return f({
38
38
  xs: "xs",
39
39
  sm: "sm",
@@ -44,7 +44,7 @@ function x(e) {
44
44
  "2xl": "lg"
45
45
  }, e ?? "md");
46
46
  }
47
- function S(e) {
47
+ function w(e) {
48
48
  if (e instanceof HTMLElement) return e;
49
49
  if (e && "$el" in e) {
50
50
  let t = e.$el;
@@ -53,4 +53,4 @@ function S(e) {
53
53
  return null;
54
54
  }
55
55
  //#endregion
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 };
56
+ export { v as defineHeadlessComponent, t as hasNamedSlot, n as hasSlotOrProp, r as isPropPresent, b as mergeNestedComponentProps, y as mergePartBind, C as resolveFieldAdornmentIconSize, i as resolveNamedSlot, a as resolveSlotOrProp, w as resolveVnodeRefElement, o as useBreakpoint, x as useBridgeUIComponent, S as useBridgeUIMergedRegistryClasses, s as useHoldRepeat };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { Alert, useAlert } from './Components/Alert';
2
2
  export type { AlertClasses, AlertColorOverrides, AlertPaddingOverrides, AlertProps, AlertRoundedOverrides, AlertShadowOverrides, AlertSlots, AlertVariantOverrides, } from './Components/Alert';
3
3
  export { Avatar } from './Components/Avatar';
4
- export type { AvatarClasses, AvatarColorOverrides, AvatarProps, AvatarRoundedOverrides, AvatarSizeOverrides, AvatarSlots, } from './Components/Avatar';
4
+ export type { AvatarClasses, AvatarColorOverrides, AvatarCustomProps, AvatarProps, AvatarRoundedOverrides, AvatarSizeOverrides, AvatarSlots, } from './Components/Avatar';
5
5
  export { Badge, useBadge } from './Components/Badge';
6
6
  export type { BadgeClasses, BadgeColorOverrides, BadgeDensityOverrides, BadgeOwnProps, BadgeProps, BadgeRoundedOverrides, BadgeSizeOverrides, BadgeSlots, BadgeVariantOverrides, } from './Components/Badge';
7
7
  export { Button, useButton } from './Components/Button';
package/dist/index.js CHANGED
@@ -12,19 +12,19 @@ import d from "./Components/Button/Button.js";
12
12
  import { useCard as f } from "./Components/Card/composables/useCard.js";
13
13
  import p from "./Components/Card/Card.js";
14
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";
15
+ import { useLabel as h } from "./Components/Label/composables/useLabel.js";
16
+ import g from "./Components/Label/Label.js";
17
+ import _ from "./Components/FormControl/FormControl.js";
18
+ import { useCheckbox as v } from "./Components/Checkbox/composables/useCheckbox.js";
19
+ import y from "./Components/Checkbox/Checkbox.js";
20
+ import { useChip as b } from "./Components/Chip/composables/useChip.js";
21
+ import x from "./Components/Chip/Chip.js";
22
+ import { useDivider as S } from "./Components/Divider/composables/useDivider.js";
23
+ import C from "./Components/Divider/Divider.js";
24
+ import { useDrawer as w } from "./Components/Drawer/composables/useDrawer.js";
25
+ import T from "./Components/Drawer/Drawer.js";
26
+ import { useFormField as E } from "./Components/FormField/composables/useFormField.js";
27
+ import D from "./Components/FormField/FormField.js";
28
28
  import { useLink as O } from "./Components/Link/composables/useLink.js";
29
29
  import k from "./Components/Link/Link.js";
30
30
  import { useList as A } from "./Components/List/composables/useList.js";
@@ -74,4 +74,4 @@ import we from "./Components/TextField/TextField.js";
74
74
  import Te from "./Provider/BridgeUIProvider.js";
75
75
  import { createBridgeUI as Ee } from "./Provider/createBridgeUI.js";
76
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 };
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, y as Checkbox, x as Chip, C as Divider, T as Drawer, _ as FormControl, D as FormField, a as Icon, g 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, v as useCheckbox, b as useChip, S as useDivider, w as useDrawer, m as useFormControl, E as useFormField, h 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
@@ -1,6 +1,6 @@
1
1
  @source "./Actions";
2
2
  @source "./Components";
3
- @source "../../core/dist/Components";
3
+ @source "../../core/dist/Tokens";
4
4
 
5
5
  /* Emitted for JS (`useBreakpoint`) — Tailwind otherwise omits unused --breakpoint-* vars. */
6
6
  @theme static {
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.3",
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.3",
64
64
  "@lucide/vue": ">=1.0.0",
65
65
  "vue": "^3.4.0"
66
66
  },