@bridge-ui/vue 0.0.4 → 0.0.6

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 (78) hide show
  1. package/dist/Adapters/I18n/index.d.ts +1 -0
  2. package/dist/Adapters/I18n/index.js +2 -0
  3. package/dist/Adapters/I18n/useI18nAdapter.d.ts +12 -0
  4. package/dist/Adapters/I18n/useI18nAdapter.js +13 -0
  5. package/dist/Adapters/Icon/iconSource.types.d.ts +11 -0
  6. package/dist/Adapters/Icon/index.d.ts +2 -0
  7. package/dist/Adapters/Icon/index.js +2 -0
  8. package/dist/Adapters/Icon/useIconAdapter.d.ts +11 -0
  9. package/dist/Adapters/Icon/useIconAdapter.js +13 -0
  10. package/dist/Adapters/index.d.ts +3 -0
  11. package/dist/Adapters/index.js +3 -0
  12. package/dist/Components/Alert/Alert.vue_vue_type_script_setup_true_lang.js +1 -5
  13. package/dist/Components/Alert/alert.types.d.ts +2 -2
  14. package/dist/Components/Alert/alertDefaultIcons.d.ts +2 -2
  15. package/dist/Components/Alert/alertDefaultIcons.js +9 -10
  16. package/dist/Components/Alert/composables/useAlert.d.ts +2 -2
  17. package/dist/Components/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js +1 -1
  18. package/dist/Components/Avatar/avatar.types.d.ts +2 -2
  19. package/dist/Components/Avatar/composables/useAvatar.d.ts +1 -1
  20. package/dist/Components/Avatar/composables/useAvatar.js +43 -44
  21. package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +24 -25
  22. package/dist/Components/Button/button.types.d.ts +4 -4
  23. package/dist/Components/Button/composables/useButton.d.ts +1 -1
  24. package/dist/Components/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +25 -25
  25. package/dist/Components/Checkbox/composables/useCheckbox.d.ts +3 -3
  26. package/dist/Components/Chip/Chip.vue_vue_type_script_setup_true_lang.js +8 -9
  27. package/dist/Components/FormControl/composables/useFormControl.d.ts +1 -1
  28. package/dist/Components/FormField/composables/useFormField.d.ts +4 -4
  29. package/dist/Components/FormField/composables/useFormField.js +98 -99
  30. package/dist/Components/FormField/formField.types.d.ts +5 -5
  31. package/dist/Components/Icon/Icon.vue_vue_type_script_setup_true_lang.js +7 -7
  32. package/dist/Components/Icon/composables/useIcon.d.ts +2 -0
  33. package/dist/Components/Icon/composables/useIcon.js +20 -18
  34. package/dist/Components/Icon/icon.types.d.ts +3 -3
  35. package/dist/Components/Label/composables/useLabel.d.ts +1 -1
  36. package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +2 -2
  37. package/dist/Components/Link/link.types.d.ts +3 -3
  38. package/dist/Components/ListItem/composables/useListItem.d.ts +2 -2
  39. package/dist/Components/ListItem/composables/useListItem.js +75 -76
  40. package/dist/Components/ListItem/listItem.types.d.ts +2 -2
  41. package/dist/Components/Listbox/Listbox.vue.d.ts +0 -2
  42. package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +73 -72
  43. package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +40 -40
  44. package/dist/Components/NumberField/composables/useNumberField.d.ts +6 -6
  45. package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +24 -24
  46. package/dist/Components/PasswordField/composables/usePasswordField.d.ts +6 -6
  47. package/dist/Components/Radio/composables/useRadio.d.ts +3 -3
  48. package/dist/Components/Select/Select.vue.d.ts +0 -1
  49. package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +62 -61
  50. package/dist/Components/Select/composables/useSelect.d.ts +8 -8
  51. package/dist/Components/Select/composables/useSelect.js +214 -214
  52. package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +81 -75
  53. package/dist/Components/Snackbar/composables/useSnackbar.d.ts +4 -4
  54. package/dist/Components/Snackbar/snackbar.types.d.ts +3 -3
  55. package/dist/Components/Snackbar/snackbarDefaultIcons.d.ts +3 -3
  56. package/dist/Components/Snackbar/snackbarDefaultIcons.js +9 -10
  57. package/dist/Components/Switch/composables/useSwitch.d.ts +3 -3
  58. package/dist/Components/Tab/Tab.vue_vue_type_script_setup_true_lang.js +2 -2
  59. package/dist/Components/Tab/tab.types.d.ts +3 -3
  60. package/dist/Components/TabItem/TabItem.vue_vue_type_script_setup_true_lang.js +2 -2
  61. package/dist/Components/TabItem/tabItem.types.d.ts +3 -3
  62. package/dist/Components/Tabs/composables/useTabs.d.ts +468 -4
  63. package/dist/Components/Tabs/tabsInjectionKey.d.ts +5 -5
  64. package/dist/Components/TextField/composables/useTextField.d.ts +6 -6
  65. package/dist/Components/Textarea/composables/useTextarea.d.ts +6 -6
  66. package/dist/Components/Tooltip/Tooltip.js +5 -0
  67. package/dist/Components/Tooltip/Tooltip.vue.d.ts +35 -0
  68. package/dist/Components/Tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +73 -0
  69. package/dist/Components/Tooltip/composables/useTooltip.d.ts +50 -0
  70. package/dist/Components/Tooltip/composables/useTooltip.js +208 -0
  71. package/dist/Components/Tooltip/index.d.ts +4 -0
  72. package/dist/Components/Tooltip/index.js +3 -0
  73. package/dist/Components/Tooltip/tooltip.types.d.ts +166 -0
  74. package/dist/Provider/createBridgeUIApi.js +2 -1
  75. package/dist/index.d.ts +7 -1
  76. package/dist/index.js +80 -76
  77. package/dist/theme.css +12 -12
  78. package/package.json +20 -3
@@ -1,13 +1,13 @@
1
- import e from "../Icon/Icon.js";
2
- import { useSnackbar as t } from "./composables/useSnackbar.js";
3
- import { Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeModels as f, mergeProps as p, normalizeClass as m, normalizeProps as h, openBlock as g, renderSlot as _, toDisplayString as v, unref as y, useModel as b, useSlots as x } from "vue";
4
- import { cn as S } from "@bridge-ui/core";
5
- import { X as C } from "@lucide/vue";
1
+ import { useI18nAdapter as e } from "../../Adapters/I18n/useI18nAdapter.js";
2
+ import t from "../Icon/Icon.js";
3
+ import { useSnackbar as n } from "./composables/useSnackbar.js";
4
+ import { Teleport as r, computed 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, mergeModels as p, mergeProps as m, normalizeClass as h, normalizeProps as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b, useModel as x, useSlots as S } from "vue";
5
+ import { cn as C, resolveMessage as w } from "@bridge-ui/core";
6
6
  //#region src/Components/Snackbar/Snackbar.vue?vue&type=script&setup=true&lang.ts
7
- var w = { class: "w-full max-w-sm pointer-events-auto" }, T = ["src"], E = { class: "flex ml-4 shrink-0" }, D = ["src"], O = { class: "flex ml-4 shrink-0" }, k = /* @__PURE__ */ u({
7
+ var T = { class: "w-full max-w-sm pointer-events-auto" }, E = ["src"], D = { class: "flex ml-4 shrink-0" }, O = ["aria-label"], k = ["src"], A = { class: "flex ml-4 shrink-0" }, j = ["aria-label"], M = /* @__PURE__ */ d({
8
8
  inheritAttrs: !1,
9
9
  __name: "Snackbar",
10
- props: /* @__PURE__ */ f({
10
+ props: /* @__PURE__ */ p({
11
11
  classes: {},
12
12
  closeButton: {
13
13
  type: Boolean,
@@ -43,13 +43,13 @@ var w = { class: "w-full max-w-sm pointer-events-auto" }, T = ["src"], E = { cla
43
43
  },
44
44
  modelModifiers: {}
45
45
  }),
46
- emits: /* @__PURE__ */ f([
46
+ emits: /* @__PURE__ */ p([
47
47
  "close",
48
48
  "leave-complete",
49
49
  "show-change"
50
50
  ], ["update:modelValue"]),
51
- setup(u, { emit: f }) {
52
- let k = x(), A = f, j = u, { merged: M, rendered: N, iconBind: P, panelBind: F, titleBind: I, isPortaled: L, portalBind: R, contentBind: z, showProgress: B, progressBind: V, resolvedIcon: H, requestClose: U, descriptionBind: W } = t(j, {
51
+ setup(d, { emit: p }) {
52
+ let M = S(), N = p, P = d, F = e(), { merged: I, rendered: L, iconBind: R, panelBind: z, titleBind: B, isPortaled: V, portalBind: H, contentBind: U, showProgress: W, progressBind: G, resolvedIcon: K, requestClose: q, descriptionBind: J } = n(P, {
53
53
  rounded: "lg",
54
54
  duration: 5e3,
55
55
  color: "primary",
@@ -60,97 +60,103 @@ var w = { class: "w-full max-w-sm pointer-events-auto" }, T = ["src"], E = { cla
60
60
  transition: "slide",
61
61
  position: "bottom-center"
62
62
  }, {
63
- show: b(u, "modelValue"),
64
- stackId: j.stackId,
65
- onClose: () => A("close"),
66
- onLeaveComplete: () => A("leave-complete"),
67
- onShowChange: (e) => A("show-change", e)
68
- }), G = r(() => !!(k.icon || H.value || M.value.img)), K = r(() => !!(k.title || M.value.title)), q = r(() => !!(k.description || M.value.description)), J = r(() => !!k.right), Y = r(() => M.value.teleportTo === !1), X = r(() => M.value.teleportTo === !1 ? "body" : M.value.teleportTo);
69
- return (t, r) => (g(), i(n, {
70
- to: X.value,
71
- disabled: Y.value
72
- }, [y(N) && y(L) ? (g(), o("div", h(p({ key: 0 }, y(R))), [s("div", w, [s("div", p(y(F), { class: y(S)(y(F).class, { flex: J.value }) }), [
73
- s("div", h(d(y(z)(J.value))), [s("div", { class: m({
74
- "flex items-start": !J.value,
75
- "w-full flex": J.value
63
+ show: x(d, "modelValue"),
64
+ stackId: P.stackId,
65
+ onClose: () => N("close"),
66
+ onLeaveComplete: () => N("leave-complete"),
67
+ onShowChange: (e) => N("show-change", e)
68
+ }), Y = i(() => !!(M.icon || K.value || I.value.img)), X = i(() => !!(M.title || I.value.title)), Z = i(() => !!(M.description || I.value.description)), Q = i(() => !!M.right), $ = i(() => I.value.teleportTo === !1), ee = i(() => I.value.teleportTo === !1 ? "body" : I.value.teleportTo);
69
+ return (e, n) => (_(), a(r, {
70
+ to: ee.value,
71
+ disabled: $.value
72
+ }, [b(L) && b(V) ? (_(), s("div", g(m({ key: 0 }, b(H))), [c("div", T, [c("div", m(b(z), { class: b(C)(b(z).class, { flex: Q.value }) }), [
73
+ c("div", g(f(b(U)(Q.value))), [c("div", { class: h({
74
+ "flex items-start": !Q.value,
75
+ "w-full flex": Q.value
76
76
  }) }, [
77
- G.value ? (g(), o("div", {
77
+ Y.value ? (_(), s("div", {
78
78
  key: 0,
79
- class: m(["shrink-0", {
80
- "w-6": !!(y(H) || y(k).icon),
81
- "pt-0.5": !!y(M).img
79
+ class: h(["shrink-0", {
80
+ "w-6": !!(b(K) || b(M).icon),
81
+ "pt-0.5": !!b(I).img
82
82
  }])
83
83
  }, [
84
- _(t.$slots, "icon"),
85
- !y(k).icon && y(M).img ? (g(), o("img", {
84
+ v(e.$slots, "icon"),
85
+ !b(M).icon && b(I).img ? (_(), s("img", {
86
86
  key: 0,
87
87
  alt: "",
88
- src: y(M).img,
88
+ src: b(I).img,
89
89
  class: "w-10 h-10 rounded-full"
90
- }, null, 8, T)) : a("", !0),
91
- !y(k).icon && !y(M).img && y(H) ? (g(), i(y(e), p({ key: 1 }, y(P), { icon: y(H) }), null, 16, ["icon"])) : a("", !0)
92
- ], 2)) : a("", !0),
93
- s("div", { class: m(["w-0 flex-1 pt-0.5", { "ml-3": G.value }]) }, [
94
- K.value ? (g(), o("p", h(p({ key: 0 }, y(I))), [_(t.$slots, "title", {}, () => [c(v(y(M).title), 1)])], 16)) : a("", !0),
95
- q.value ? (g(), o("p", h(p({ key: 1 }, y(W))), [_(t.$slots, "description", {}, () => [c(v(y(M).description), 1)])], 16)) : a("", !0),
96
- _(t.$slots, "default"),
97
- y(k).actions ? (g(), o("div", {
90
+ }, null, 8, E)) : o("", !0),
91
+ !b(M).icon && !b(I).img && b(K) ? (_(), a(b(t), m({ key: 1 }, b(R), { icon: b(K) }), null, 16, ["icon"])) : o("", !0)
92
+ ], 2)) : o("", !0),
93
+ c("div", { class: h(["w-0 flex-1 pt-0.5", { "ml-3": Y.value }]) }, [
94
+ X.value ? (_(), s("p", g(m({ key: 0 }, b(B))), [v(e.$slots, "title", {}, () => [l(y(b(I).title), 1)])], 16)) : o("", !0),
95
+ Z.value ? (_(), s("p", g(m({ key: 1 }, b(J))), [v(e.$slots, "description", {}, () => [l(y(b(I).description), 1)])], 16)) : o("", !0),
96
+ v(e.$slots, "default"),
97
+ b(M).actions ? (_(), s("div", {
98
98
  key: 2,
99
- class: m(["flex mt-3 gap-x-3", y(M).classes?.actions])
100
- }, [_(t.$slots, "actions")], 2)) : a("", !0)
99
+ class: h(["flex mt-3 gap-x-3", b(I).classes?.actions])
100
+ }, [v(e.$slots, "actions")], 2)) : o("", !0)
101
101
  ], 2),
102
- s("div", E, [_(t.$slots, "trailing"), y(M).closeButton === !1 ? a("", !0) : (g(), o("button", {
102
+ c("div", D, [v(e.$slots, "trailing"), b(I).closeButton === !1 ? o("", !0) : (_(), s("button", {
103
103
  key: 0,
104
104
  type: "button",
105
- "aria-label": "Close",
106
- onClick: r[0] ||= (...e) => y(U) && y(U)(...e),
105
+ onClick: n[0] ||= (...e) => b(q) && b(q)(...e),
106
+ "aria-label": b(w)("Close", b(F)),
107
107
  class: "cursor-pointer inline-flex rounded-md text-dark-400 hover:text-dark-500 focus:outline-hidden"
108
- }, [l(y(C), { class: "w-5 h-5" })]))])
108
+ }, [u(b(t), {
109
+ size: "lg",
110
+ icon: "clear"
111
+ })], 8, O))])
109
112
  ], 2)], 16),
110
- _(t.$slots, "right"),
111
- y(B) ? (g(), o("div", h(p({ key: 0 }, y(V))), null, 16)) : a("", !0)
112
- ], 16)])], 16)) : y(N) ? (g(), o("div", p({ key: 1 }, y(F), { class: y(S)(y(F).class, { flex: J.value }) }), [
113
- s("div", h(d(y(z)(J.value))), [s("div", { class: m({
114
- "flex items-start": !J.value,
115
- "w-full flex": J.value
113
+ v(e.$slots, "right"),
114
+ b(W) ? (_(), s("div", g(m({ key: 0 }, b(G))), null, 16)) : o("", !0)
115
+ ], 16)])], 16)) : b(L) ? (_(), s("div", m({ key: 1 }, b(z), { class: b(C)(b(z).class, { flex: Q.value }) }), [
116
+ c("div", g(f(b(U)(Q.value))), [c("div", { class: h({
117
+ "flex items-start": !Q.value,
118
+ "w-full flex": Q.value
116
119
  }) }, [
117
- G.value ? (g(), o("div", {
120
+ Y.value ? (_(), s("div", {
118
121
  key: 0,
119
- class: m(["shrink-0", {
120
- "w-6": !!(y(H) || y(k).icon),
121
- "pt-0.5": !!y(M).img
122
+ class: h(["shrink-0", {
123
+ "w-6": !!(b(K) || b(M).icon),
124
+ "pt-0.5": !!b(I).img
122
125
  }])
123
126
  }, [
124
- _(t.$slots, "icon"),
125
- !y(k).icon && y(M).img ? (g(), o("img", {
127
+ v(e.$slots, "icon"),
128
+ !b(M).icon && b(I).img ? (_(), s("img", {
126
129
  key: 0,
127
130
  alt: "",
128
- src: y(M).img,
131
+ src: b(I).img,
129
132
  class: "w-10 h-10 rounded-full"
130
- }, null, 8, D)) : a("", !0),
131
- !y(k).icon && !y(M).img && y(H) ? (g(), i(y(e), p({ key: 1 }, y(P), { icon: y(H) }), null, 16, ["icon"])) : a("", !0)
132
- ], 2)) : a("", !0),
133
- s("div", { class: m(["w-0 flex-1 pt-0.5", { "ml-3": G.value }]) }, [
134
- K.value ? (g(), o("p", h(p({ key: 0 }, y(I))), [_(t.$slots, "title", {}, () => [c(v(y(M).title), 1)])], 16)) : a("", !0),
135
- q.value ? (g(), o("p", h(p({ key: 1 }, y(W))), [_(t.$slots, "description", {}, () => [c(v(y(M).description), 1)])], 16)) : a("", !0),
136
- _(t.$slots, "default"),
137
- y(k).actions ? (g(), o("div", {
133
+ }, null, 8, k)) : o("", !0),
134
+ !b(M).icon && !b(I).img && b(K) ? (_(), a(b(t), m({ key: 1 }, b(R), { icon: b(K) }), null, 16, ["icon"])) : o("", !0)
135
+ ], 2)) : o("", !0),
136
+ c("div", { class: h(["w-0 flex-1 pt-0.5", { "ml-3": Y.value }]) }, [
137
+ X.value ? (_(), s("p", g(m({ key: 0 }, b(B))), [v(e.$slots, "title", {}, () => [l(y(b(I).title), 1)])], 16)) : o("", !0),
138
+ Z.value ? (_(), s("p", g(m({ key: 1 }, b(J))), [v(e.$slots, "description", {}, () => [l(y(b(I).description), 1)])], 16)) : o("", !0),
139
+ v(e.$slots, "default"),
140
+ b(M).actions ? (_(), s("div", {
138
141
  key: 2,
139
- class: m(["flex mt-3 gap-x-3", y(M).classes?.actions])
140
- }, [_(t.$slots, "actions")], 2)) : a("", !0)
142
+ class: h(["flex mt-3 gap-x-3", b(I).classes?.actions])
143
+ }, [v(e.$slots, "actions")], 2)) : o("", !0)
141
144
  ], 2),
142
- s("div", O, [_(t.$slots, "trailing"), y(M).closeButton === !1 ? a("", !0) : (g(), o("button", {
145
+ c("div", A, [v(e.$slots, "trailing"), b(I).closeButton === !1 ? o("", !0) : (_(), s("button", {
143
146
  key: 0,
144
147
  type: "button",
145
- "aria-label": "Close",
146
- onClick: r[1] ||= (...e) => y(U) && y(U)(...e),
148
+ onClick: n[1] ||= (...e) => b(q) && b(q)(...e),
149
+ "aria-label": b(w)("Close", b(F)),
147
150
  class: "cursor-pointer inline-flex rounded-md text-dark-400 hover:text-dark-500 focus:outline-hidden"
148
- }, [l(y(C), { class: "w-5 h-5" })]))])
151
+ }, [u(b(t), {
152
+ size: "lg",
153
+ icon: "clear"
154
+ })], 8, j))])
149
155
  ], 2)], 16),
150
- _(t.$slots, "right"),
151
- y(B) ? (g(), o("div", h(p({ key: 0 }, y(V))), null, 16)) : a("", !0)
152
- ], 16)) : a("", !0)], 8, ["to", "disabled"]));
156
+ v(e.$slots, "right"),
157
+ b(W) ? (_(), s("div", g(m({ key: 0 }, b(G))), null, 16)) : o("", !0)
158
+ ], 16)) : o("", !0)], 8, ["to", "disabled"]));
153
159
  }
154
160
  });
155
161
  //#endregion
156
- export { k as default };
162
+ export { M as default };
@@ -1,6 +1,6 @@
1
- import { LucideIcon } from '@lucide/vue';
2
1
  import { Ref } from 'vue';
3
2
  import { LibDefaultsShape, MergeLibDefaults } from '@bridge-ui/core';
3
+ import { IconSource } from '../../../Adapters/Icon';
4
4
  import { SnackbarOwnProps, SnackbarProps } from '../snackbar.types';
5
5
  type SnackbarLibDefaults = LibDefaultsShape<SnackbarOwnProps, "color" | "padding" | "rounded" | "duration" | "position" | "teleportTo" | "transition" | "closeButton" | "progressbar">;
6
6
  type SnackbarMerged = MergeLibDefaults<SnackbarOwnProps, SnackbarLibDefaults>;
@@ -187,13 +187,13 @@ export declare function useSnackbar(props: SnackbarProps, libDefaults: SnackbarL
187
187
  'aria-valuenow'?: (string | number) | undefined;
188
188
  'aria-valuetext'?: string | undefined | undefined;
189
189
  accesskey?: string | undefined | undefined;
190
- contenteditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
190
+ contenteditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
191
191
  contextmenu?: string | undefined | undefined;
192
192
  dir?: string | undefined | undefined;
193
193
  draggable?: (boolean | "true" | "false") | undefined;
194
194
  enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
195
195
  enterKeyHint?: "done" | "enter" | "go" | "next" | "previous" | "search" | "send" | undefined;
196
- hidden?: "" | "until-found" | (boolean | "true" | "false") | "hidden" | undefined;
196
+ hidden?: "" | "until-found" | "hidden" | (boolean | "true" | "false") | undefined;
197
197
  inert?: (boolean | "true" | "false") | undefined;
198
198
  placeholder?: string | undefined | undefined;
199
199
  spellcheck?: (boolean | "true" | "false") | undefined;
@@ -242,7 +242,7 @@ export declare function useSnackbar(props: SnackbarProps, libDefaults: SnackbarL
242
242
  } | undefined;
243
243
  }, "class", import('vue').HTMLAttributes | undefined, {}>>;
244
244
  requestClose: () => void;
245
- resolvedIcon: import('vue').ComputedRef<LucideIcon | null>;
245
+ resolvedIcon: import('vue').ComputedRef<IconSource | null>;
246
246
  descriptionBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
247
247
  };
248
248
  export {};
@@ -1,6 +1,6 @@
1
- import { LucideIcon } from '@lucide/vue';
2
1
  import { HTMLAttributes, Slot } from 'vue';
3
2
  import { MergeHtmlProps, MergeProps, SnackbarColor, SnackbarPadding, SnackbarPosition, SnackbarRounded, SnackbarTransition } from '@bridge-ui/core';
3
+ import { IconSource } from '../../Adapters/Icon';
4
4
  import { IconProps } from '../Icon';
5
5
  export interface SnackbarColorOverrides {}
6
6
  export interface SnackbarPaddingOverrides {}
@@ -131,7 +131,7 @@ export interface SnackbarOwnProps {
131
131
  /**
132
132
  * The icon to display. Use `null` to hide the icon.
133
133
  */
134
- icon?: null | LucideIcon;
134
+ icon?: null | IconSource;
135
135
  /**
136
136
  * Avatar image URL (shown instead of icon when set).
137
137
  */
@@ -199,7 +199,7 @@ export interface SnackbarSlots {
199
199
  */
200
200
  icon?: Slot<undefined>;
201
201
  /**
202
- * Vertical action column on the right edge (WireUI `rightButtons` layout).
202
+ * Vertical action column on the right edge.
203
203
  */
204
204
  right?: Slot<undefined>;
205
205
  /**
@@ -1,4 +1,4 @@
1
- import { LucideIcon } from '@lucide/vue';
2
- import { SnackbarColor } from '@bridge-ui/core';
1
+ import { SnackbarColor } from '@bridge-ui/core/Tokens/Snackbar';
2
+ import { IconSource } from '../../Adapters/Icon';
3
3
  /** Library fallbacks when neither the `icon` prop nor theme `icon` is set. */
4
- export declare const snackbarDefaultIcons: Record<keyof SnackbarColor, LucideIcon>;
4
+ export declare const snackbarDefaultIcons: Record<keyof SnackbarColor, IconSource>;
@@ -1,13 +1,12 @@
1
- import { Bell as e, CircleAlert as t, CircleCheck as n, CircleX as r, Info as i, TriangleAlert as a } from "@lucide/vue";
2
1
  //#region src/Components/Snackbar/snackbarDefaultIcons.ts
3
- var o = {
4
- dark: i,
5
- primary: e,
6
- error: r,
7
- secondary: i,
8
- info: t,
9
- success: n,
10
- warning: a
2
+ var e = {
3
+ dark: "info",
4
+ info: "alert",
5
+ error: "error",
6
+ primary: "bell",
7
+ secondary: "info",
8
+ success: "success",
9
+ warning: "warning"
11
10
  };
12
11
  //#endregion
13
- export { o as snackbarDefaultIcons };
12
+ export { e as snackbarDefaultIcons };
@@ -237,13 +237,13 @@ export declare function useSwitch(props: MaybeRefOrGetter<SwitchOwnProps>, libDe
237
237
  slots: Readonly<{
238
238
  [name: string]: import('vue').Slot<any> | undefined;
239
239
  }>;
240
- merged: import('vue').ComputedRef<Omit<import('../../FormControl').FormControlOwnProps, "size" | "error" | "withoutErrorMessage"> & {
241
- size: NonNullable<keyof import('@bridge-ui/core').LabelSize | undefined>;
240
+ merged: import('vue').ComputedRef<Omit<import('../../FormControl').FormControlOwnProps, "error" | "size" | "withoutErrorMessage"> & {
242
241
  error: NonNullable<boolean | undefined>;
242
+ size: NonNullable<keyof import('@bridge-ui/core').LabelSize | undefined>;
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" | "required" | "controlId" | "description" | "endLabel" | "errorMessage" | "readonly" | "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">, "error" | "size" | "classes" | "customProps" | "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>;
@@ -10,8 +10,8 @@ var h = /* @__PURE__ */ s({
10
10
  classes: {},
11
11
  customProps: {},
12
12
  disabled: { type: Boolean },
13
- endIcon: { type: [Function, Object] },
14
- startIcon: { type: [Function, Object] },
13
+ endIcon: {},
14
+ startIcon: {},
15
15
  value: {}
16
16
  },
17
17
  setup(s) {
@@ -1,6 +1,6 @@
1
- import { LucideIcon } from '@lucide/vue';
2
1
  import { ButtonHTMLAttributes, HTMLAttributes, Slot } from 'vue';
3
2
  import { MergeHtmlProps } from '@bridge-ui/core';
3
+ import { IconSource } from '../../Adapters/Icon';
4
4
  import { IconProps } from '../Icon';
5
5
  export interface TabClasses {
6
6
  /**
@@ -65,13 +65,13 @@ export interface TabOwnProps {
65
65
  *
66
66
  * @default undefined
67
67
  */
68
- endIcon?: LucideIcon;
68
+ endIcon?: IconSource;
69
69
  /**
70
70
  * Icon at the **inline start** (physical left in `ltr`, physical right in `rtl`). Prefer over the `#start` slot.
71
71
  *
72
72
  * @default undefined
73
73
  */
74
- startIcon?: LucideIcon;
74
+ startIcon?: IconSource;
75
75
  /**
76
76
  * Stable value matching a `TabPanel`.
77
77
  */
@@ -11,10 +11,10 @@ var a = {
11
11
  props: {
12
12
  classes: {},
13
13
  disabled: { type: Boolean },
14
- endIcon: { type: [Function, Object] },
14
+ endIcon: {},
15
15
  keepMounted: { type: Boolean },
16
16
  label: {},
17
- startIcon: { type: [Function, Object] },
17
+ startIcon: {},
18
18
  value: {}
19
19
  },
20
20
  setup(n) {
@@ -1,5 +1,5 @@
1
- import { LucideIcon } from '@lucide/vue';
2
1
  import { Slot } from 'vue';
2
+ import { IconSource } from '../../Adapters/Icon';
3
3
  export interface TabItemClasses {
4
4
  /**
5
5
  * Unused on the registration-only root; reserved for overrides.
@@ -27,7 +27,7 @@ export interface TabItemOwnProps {
27
27
  *
28
28
  * @default undefined
29
29
  */
30
- endIcon?: LucideIcon;
30
+ endIcon?: IconSource;
31
31
  /**
32
32
  * When set, overrides `Tabs` `keepMounted` for this panel.
33
33
  *
@@ -45,7 +45,7 @@ export interface TabItemOwnProps {
45
45
  *
46
46
  * @default undefined
47
47
  */
48
- startIcon?: LucideIcon;
48
+ startIcon?: IconSource;
49
49
  /**
50
50
  * Stable value for the tab / panel pair.
51
51
  */