@bridge-ui/vue 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/Components/Alert/Alert.vue_vue_type_script_setup_true_lang.js +24 -10
  2. package/dist/Components/Alert/alert.types.d.ts +5 -4
  3. package/dist/Components/Alert/composables/useAlert.d.ts +2 -2
  4. package/dist/Components/Alert/composables/useAlert.js +2 -2
  5. package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +1 -0
  6. package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +5 -1
  7. package/dist/Components/Autocomplete/autocomplete.types.d.ts +7 -0
  8. package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +2 -2
  9. package/dist/Components/Autocomplete/composables/useAutocomplete.js +3 -2
  10. package/dist/Components/Avatar/composables/useAvatar.js +2 -2
  11. package/dist/Components/Calendar/composables/useCalendar.js +132 -131
  12. package/dist/Components/CalendarDate/composables/useCalendarDate.js +116 -115
  13. package/dist/Components/CalendarRange/composables/useCalendarRange.js +132 -131
  14. package/dist/Components/Card/Card.vue_vue_type_script_setup_true_lang.js +24 -10
  15. package/dist/Components/Card/card.types.d.ts +5 -4
  16. package/dist/Components/Card/composables/useCard.d.ts +2 -2
  17. package/dist/Components/Card/composables/useCard.js +2 -2
  18. package/dist/Components/Carousel/composables/useCarousel.js +6 -6
  19. package/dist/Components/ColorPicker/ColorPicker.vue_vue_type_script_setup_true_lang.js +48 -39
  20. package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +33 -36
  21. package/dist/Components/DataTable/composables/useDataTable.d.ts +2 -0
  22. package/dist/Components/DataTable/composables/useDataTable.js +226 -216
  23. package/dist/Components/FileUpload/FileUpload.vue_vue_type_script_setup_true_lang.js +51 -57
  24. package/dist/Components/FileUpload/composables/useFileUpload.d.ts +2 -0
  25. package/dist/Components/FileUpload/composables/useFileUpload.js +6 -4
  26. package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +1 -1
  27. package/dist/Components/Link/link.types.d.ts +1 -1
  28. package/dist/Components/ListItem/composables/useListItem.js +4 -5
  29. package/dist/Components/Pagination/composables/usePagination.js +9 -9
  30. package/dist/Components/Select/Select.vue.d.ts +1 -0
  31. package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +5 -1
  32. package/dist/Components/Select/composables/useSelect.d.ts +2 -2
  33. package/dist/Components/Select/composables/useSelect.js +3 -2
  34. package/dist/Components/Select/select.types.d.ts +7 -0
  35. package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +97 -72
  36. package/dist/Components/Snackbar/composables/useSnackbar.d.ts +2 -2
  37. package/dist/Components/Snackbar/composables/useSnackbar.js +2 -2
  38. package/dist/Components/Snackbar/snackbar.types.d.ts +5 -4
  39. package/dist/Components/Table/composables/useTableRow.js +3 -3
  40. package/dist/Components/Text/Text.vue_vue_type_script_setup_true_lang.js +1 -1
  41. package/dist/Components/Text/composables/useText.d.ts +1 -1
  42. package/dist/Components/Text/text.types.d.ts +1 -1
  43. package/dist/Components/TimePanel/composables/useTimePanel.js +113 -112
  44. package/dist/Utils/index.d.ts +6 -0
  45. package/dist/Utils/index.js +21 -17
  46. package/dist/index.js +157 -157
  47. package/docs/components/Autocomplete.md +23 -22
  48. package/docs/components/Link.md +1 -1
  49. package/docs/components/Select.md +22 -21
  50. package/docs/components/Text.md +6 -4
  51. package/package.json +2 -2
@@ -7,19 +7,13 @@ import s from "../BaseField/BaseField.js";
7
7
  import { useFileUpload as c } from "./composables/useFileUpload.js";
8
8
  import { FILE_UPLOAD_KEY as l } from "./fileUploadInjectionKey.js";
9
9
  import u from "../FileUploadItem/FileUploadItem.js";
10
- import { Fragment as d, computed as ee, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as g, createTextVNode as _, createVNode as v, defineComponent as y, guardReactiveProps as b, mergeModels as x, mergeProps as S, normalizeProps as C, openBlock as w, provide as te, ref as ne, renderList as T, renderSlot as E, toDisplayString as D, unref as O, useModel as k, withCtx as A } from "vue";
11
- import { getFileUploadItemKey as j } from "@bridge-ui/core/Domain";
10
+ import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as _, createTextVNode as v, createVNode as y, defineComponent as b, guardReactiveProps as x, mergeModels as S, mergeProps as C, normalizeProps as w, openBlock as T, provide as ee, ref as te, renderList as E, renderSlot as D, toDisplayString as O, unref as k, useModel as A, withCtx as j } from "vue";
11
+ import { getFileUploadItemKey as M } from "@bridge-ui/core/Domain";
12
12
  // src/Components/FileUpload/FileUpload.vue?vue&type=script&setup=true&lang.ts
13
- var M = { class: "flex w-full flex-col" }, N = {
14
- key: 0,
15
- class: "m-0 font-medium text-dark-900 dark:text-dark-100"
16
- }, P = {
17
- key: 1,
18
- class: "m-0 text-sm text-dark-500 dark:text-dark-400"
19
- }, F = ["tabindex"], I = /*@__PURE__*/ y({
13
+ var N = { class: "flex w-full flex-col" }, P = ["tabindex"], F = /*@__PURE__*/ b({
20
14
  inheritAttrs: !1,
21
15
  __name: "FileUpload",
22
- props: /*@__PURE__*/ x({
16
+ props: /*@__PURE__*/ S({
23
17
  accept: {},
24
18
  buttonLabel: {},
25
19
  classes: {},
@@ -45,67 +39,67 @@ var M = { class: "flex w-full flex-col" }, N = {
45
39
  modelValue: {},
46
40
  modelModifiers: {}
47
41
  }),
48
- emits: /*@__PURE__*/ x([
42
+ emits: /*@__PURE__*/ S([
49
43
  "remove",
50
44
  "retry",
51
45
  "update:modelValue"
52
46
  ], ["update:modelValue"]),
53
- setup(y, { emit: x }) {
54
- let I = x, L = k(y, "modelValue"), R = y, z = ne(R.defaultValue ?? null), B = r(L, z), { slots: V, merged: H, listBind: U, inputRef: W, baseField: G, inputBind: K, mediaBind: q, titleBind: J, fileItems: Y, isDropzone: X, showPicker: Z, stateItems: re, actionsBind: ie, contentBind: ae, triggerBind: oe, getItemBind: Q, buttonLabel: se, dropzoneBind: ce, openFileDialog: $, orientationItems: le, itemDescriptionBind: ue } = c(R, {
47
+ setup(b, { emit: S }) {
48
+ let F = S, I = A(b, "modelValue"), L = b, R = te(L.defaultValue ?? null), z = r(I, R), { slots: B, merged: V, listBind: ne, inputRef: H, baseField: U, inputBind: W, mediaBind: G, titleBind: K, fileItems: q, isDropzone: J, showPicker: Y, stateItems: X, actionsBind: Z, contentBind: re, triggerBind: ie, getItemBind: Q, buttonLabel: ae, dropzoneBind: oe, openFileDialog: $, orientationItems: se, dropzoneTitleBind: ce, itemDescriptionBind: le, dropzoneDescriptionBind: ue } = c(L, {
55
49
  size: "md",
56
50
  rounded: "md",
57
51
  multiple: !1,
58
52
  color: "primary",
59
53
  variant: "button",
60
54
  orientation: "horizontal"
61
- }, B, I);
62
- te(l, ee(() => ({
55
+ }, z, F);
56
+ ee(l, f(() => ({
63
57
  getItemBind: Q,
64
- size: H.value.size,
65
- color: H.value.color,
66
- mediaBind: q.value,
67
- titleBind: J.value,
68
- stateItems: re.value,
69
- rounded: H.value.rounded,
70
- actionsBind: ie.value,
71
- contentBind: ae.value,
72
- disabled: H.value.disabled,
73
- orientation: H.value.orientation,
74
- orientationItems: le.value,
75
- descriptionBind: ue.value
58
+ size: V.value.size,
59
+ color: V.value.color,
60
+ mediaBind: G.value,
61
+ titleBind: K.value,
62
+ stateItems: X.value,
63
+ rounded: V.value.rounded,
64
+ actionsBind: Z.value,
65
+ contentBind: re.value,
66
+ disabled: V.value.disabled,
67
+ orientation: V.value.orientation,
68
+ orientationItems: se.value,
69
+ descriptionBind: le.value
76
70
  })));
77
71
  function de(e) {
78
72
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), $());
79
73
  }
80
- return (r, c) => (w(), f(s, { field: O(G) }, g({
81
- default: A(() => [h("div", M, [
82
- h("input", S({
74
+ return (r, c) => (T(), p(s, { field: k(U) }, _({
75
+ default: j(() => [g("div", N, [
76
+ g("input", C({
83
77
  ref_key: "inputRef",
84
- ref: W
85
- }, O(K)), null, 16),
86
- O(Z) ? (w(), m(d, { key: 0 }, [O(X) ? (w(), m("div", C(S({ key: 0 }, O(ce))), [O(e)(O(V), "dropzone") ? E(r.$slots, "dropzone", {}, void 0, void 0, 0) : (w(), m(d, { key: 1 }, [
87
- v(O(i), {
78
+ ref: H
79
+ }, k(W)), null, 16),
80
+ k(Y) ? (T(), h(d, { key: 0 }, [k(J) ? (T(), h("div", w(C({ key: 0 }, k(oe))), [k(e)(k(B), "dropzone") ? D(r.$slots, "dropzone", {}, void 0, void 0, 0) : (T(), h(d, { key: 1 }, [
81
+ y(k(i), {
88
82
  icon: "inbox",
89
83
  class: "mb-1 text-dark-400"
90
84
  }),
91
- O(t)(O(H).title) ? (w(), m("p", N, D(O(H).title), 1)) : p("", !0),
92
- O(t)(O(H).description) ? (w(), m("p", P, D(O(H).description), 1)) : p("", !0)
93
- ], 64))], 16)) : (w(), m("div", C(S({ key: 1 }, O(oe))), [O(e)(O(V), "trigger") ? (w(), m("span", {
85
+ k(t)(k(V).title) ? (T(), h("p", w(C({ key: 0 }, k(ce))), O(k(V).title), 17)) : m("", !0),
86
+ k(t)(k(V).description) ? (T(), h("p", w(C({ key: 1 }, k(ue))), O(k(V).description), 17)) : m("", !0)
87
+ ], 64))], 16)) : (T(), h("div", w(C({ key: 1 }, k(ie))), [k(e)(k(B), "trigger") ? (T(), h("span", {
94
88
  key: 0,
95
89
  role: "button",
96
- onClick: c[0] ||= (...e) => O($) && O($)(...e),
90
+ onClick: c[0] ||= (...e) => k($) && k($)(...e),
97
91
  onKeydown: de,
98
- tabindex: O(H).disabled ? -1 : 0
99
- }, [E(r.$slots, "trigger")], 40, F)) : (w(), f(O(a), {
92
+ tabindex: k(V).disabled ? -1 : 0
93
+ }, [D(r.$slots, "trigger")], 40, P)) : (T(), p(k(a), {
100
94
  key: 1,
101
95
  type: "button",
102
- size: O(H).size,
103
- color: O(H).color,
104
- rounded: O(H).rounded,
105
- disabled: O(H).disabled,
106
- onClick: O($)
96
+ size: k(V).size,
97
+ color: k(V).color,
98
+ rounded: k(V).rounded,
99
+ disabled: k(V).disabled,
100
+ onClick: k($)
107
101
  }, {
108
- default: A(() => [_(D(O(se)), 1)]),
102
+ default: j(() => [v(O(k(ae)), 1)]),
109
103
  _: 1
110
104
  }, 8, [
111
105
  "size",
@@ -113,28 +107,28 @@ var M = { class: "flex w-full flex-col" }, N = {
113
107
  "rounded",
114
108
  "disabled",
115
109
  "onClick"
116
- ]))], 16))], 64)) : p("", !0),
117
- O(e)(O(V), "list") ? E(r.$slots, "list", { items: O(Y) }, void 0, void 0, 1) : O(Y).length > 0 ? (w(), m("ul", C(S({ key: 2 }, O(U))), [(w(!0), m(d, null, T(O(Y), (t) => (w(), m(d, { key: O(j)(t.value, t.index) }, [O(e)(O(V), "item") ? (w(), m("li", S({
110
+ ]))], 16))], 64)) : m("", !0),
111
+ k(e)(k(B), "list") ? D(r.$slots, "list", { items: k(q) }, void 0, void 0, 1) : k(q).length > 0 ? (T(), h("ul", w(C({ key: 2 }, k(ne))), [(T(!0), h(d, null, E(k(q), (t) => (T(), h(d, { key: k(M)(t.value, t.index) }, [k(e)(k(B), "item") ? (T(), h("li", C({
118
112
  key: 0,
119
113
  ref_for: !0
120
- }, O(Q)(t.index)), [E(r.$slots, "item", S({ ref_for: !0 }, t))], 16)) : (w(), f(u, S({
114
+ }, k(Q)(t.index)), [D(r.$slots, "item", C({ ref_for: !0 }, t))], 16)) : (T(), p(u, C({
121
115
  key: 1,
122
116
  ref_for: !0
123
- }, t), g({ _: 2 }, [O(e)(O(V), "start") ? {
117
+ }, t), _({ _: 2 }, [k(e)(k(B), "start") ? {
124
118
  name: "start",
125
- fn: A(() => [E(r.$slots, "start", S({ ref_for: !0 }, t))]),
119
+ fn: j(() => [D(r.$slots, "start", C({ ref_for: !0 }, t))]),
126
120
  key: "0"
127
- } : void 0, O(e)(O(V), "end") ? {
121
+ } : void 0, k(e)(k(B), "end") ? {
128
122
  name: "end",
129
- fn: A(() => [E(r.$slots, "end", S({ ref_for: !0 }, t))]),
123
+ fn: j(() => [D(r.$slots, "end", C({ ref_for: !0 }, t))]),
130
124
  key: "1"
131
- } : void 0]), 1040))], 64))), 128))], 16)) : p("", !0)
125
+ } : void 0]), 1040))], 64))), 128))], 16)) : m("", !0)
132
126
  ])]),
133
127
  _: 2
134
- }, [T(O(n)(O(o).filter((e) => e !== "start" && e !== "end"), r.$slots), (e) => ({
128
+ }, [E(k(n)(k(o).filter((e) => e !== "start" && e !== "end"), r.$slots), (e) => ({
135
129
  name: e,
136
- fn: A((t) => [E(r.$slots, e, C(b(t || {})))])
130
+ fn: j((t) => [D(r.$slots, e, w(x(t || {})))])
137
131
  }))]), 1032, ["field"]));
138
132
  }
139
133
  });
140
- export { I as default };
134
+ export { F as default };
@@ -113,8 +113,10 @@ export declare function useFileUpload(props: FileUploadOwnProps<boolean>, libDef
113
113
  horizontal: import('@bridge-ui/core/Tokens').FileUploadOrientationItem;
114
114
  vertical: import('@bridge-ui/core/Tokens').FileUploadOrientationItem;
115
115
  }>>;
116
+ dropzoneTitleBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
116
117
  itemDescriptionBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
117
118
  resolvedErrorMessage: import('vue').ComputedRef<string | undefined>;
119
+ dropzoneDescriptionBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
118
120
  inputRef: Ref<null | HTMLInputElement>;
119
121
  };
120
122
  export {};
@@ -187,7 +187,7 @@ function T(T, E, D, O) {
187
187
  let Ae = i(() => e(L.value?.media, {}, C(d(K.value, "media"), X.value, d(J.value, "media"), d(G.value, "media")))), je = i(() => e(L.value?.content, {}, C(d(K.value, "content"), d(J.value, "content"), d(G.value, "content")))), Me = i(() => e(L.value?.title, {}, C({
188
188
  [d(K.value, "title") ?? ""]: !0,
189
189
  [d(G.value, "title") ?? ""]: !0
190
- }))), Ne = i(() => e({}, {}, C({ [d(K.value, "description") ?? ""]: !0 }))), Pe = i(() => e(L.value?.actions, {}, C(d(K.value, "actions"), d(J.value, "actions"), d(G.value, "actions")))), Fe = i(() => F.value.buttonLabel == null ? F.value.multiple ? "Choose files" : "Choose file" : F.value.buttonLabel);
190
+ }))), Ne = i(() => e({}, {}, C({ [d(K.value, "dropzoneTitle") ?? ""]: !0 }))), Pe = i(() => e({}, {}, C({ [d(K.value, "dropzoneDescription") ?? ""]: !0 }))), Fe = i(() => e({}, {}, C({ [d(K.value, "description") ?? ""]: !0 }))), Ie = i(() => e(L.value?.actions, {}, C(d(K.value, "actions"), d(J.value, "actions"), d(G.value, "actions")))), Le = i(() => F.value.buttonLabel == null ? F.value.multiple ? "Choose files" : "Choose file" : F.value.buttonLabel);
191
191
  return {
192
192
  slots: de,
193
193
  merged: F,
@@ -217,17 +217,19 @@ function T(T, E, D, O) {
217
217
  showPicker: pe,
218
218
  canAddMore: V,
219
219
  stateItems: Y,
220
- actionsBind: Pe,
220
+ actionsBind: Ie,
221
221
  contentBind: je,
222
222
  triggerBind: De,
223
223
  getItemBind: ke,
224
- buttonLabel: Fe,
224
+ buttonLabel: Le,
225
225
  dropzoneBind: Oe,
226
226
  openFileDialog: Q,
227
227
  validationError: j,
228
228
  orientationItems: q,
229
- itemDescriptionBind: Ne,
229
+ dropzoneTitleBind: Ne,
230
+ itemDescriptionBind: Fe,
230
231
  resolvedErrorMessage: H,
232
+ dropzoneDescriptionBind: Pe,
231
233
  inputRef: M
232
234
  };
233
235
  }
@@ -22,7 +22,7 @@ var f = /*@__PURE__*/ a({
22
22
  },
23
23
  setup(a) {
24
24
  let { slots: f, merged: p, rootRel: m, rootTag: h, rootBind: g, rootHref: _, rootTarget: v, leftIconBind: y, rightIconBind: b, rootAriaDisabled: x } = n(a, {
25
- size: "md",
25
+ size: "sm",
26
26
  color: "primary",
27
27
  underline: "hover"
28
28
  });
@@ -104,7 +104,7 @@ export interface LinkOwnProps<T extends LinkAsTag = "a"> {
104
104
  /**
105
105
  * The size of the link.
106
106
  *
107
- * @default "md"
107
+ * @default "sm"
108
108
  */
109
109
  size?: MergeProps<LinkSize, LinkSizeOverrides>;
110
110
  /**
@@ -98,8 +98,8 @@ function C(C, w, T) {
98
98
  [N.value?.optionHighlightedClass ?? ""]: I.value && z.value && !L.value,
99
99
  [N.value?.mergedClasses.optionHighlighted ?? ""]: I.value && z.value && !L.value,
100
100
  "opacity-50 pointer-events-none": j.value.disabled,
101
- [m(V.value, "interactive") ?? ""]: !0,
102
- [N.value?.sizeClasses?.option ?? ""]: I.value
101
+ [N.value?.sizeClasses?.option ?? ""]: I.value,
102
+ [m(V.value, "interactive") ?? ""]: !0
103
103
  })
104
104
  });
105
105
  return !Y.value || !j.value.disabled ? e : {
@@ -121,10 +121,9 @@ function C(C, w, T) {
121
121
  "min-w-0 flex-1": !0,
122
122
  [m(V.value, "content") ?? ""]: !0
123
123
  }))), ne = s(() => t(B.value?.primary, {}, b({
124
- "block truncate text-sm font-medium": !0,
124
+ "block truncate text-sm leading-normal font-medium": !0,
125
125
  [N.value?.sizeClasses?.primary ?? ""]: I.value,
126
- [m(V.value, "primary") ?? ""]: !0,
127
- "leading-normal": !0
126
+ [m(V.value, "primary") ?? ""]: !0
128
127
  }))), re = s(() => t(B.value?.secondary, {}, b({
129
128
  "mt-0.5 block truncate text-xs leading-normal text-dark-500 dark:text-dark-400": !0,
130
129
  [N.value?.sizeClasses?.secondary ?? ""]: I.value,
@@ -116,10 +116,10 @@ function m(m, h, g, _, v) {
116
116
  class: u({
117
117
  [K.value]: !0,
118
118
  [se.value]: n,
119
- [s(j.value, "item") ?? ""]: !0,
120
119
  "ml-0": Y("page", e),
121
120
  [s(I.value, "itemStart") ?? ""]: r,
122
- [s(I.value, "itemEnd") ?? ""]: i
121
+ [s(I.value, "itemEnd") ?? ""]: i,
122
+ [s(j.value, "item") ?? ""]: !0
123
123
  })
124
124
  });
125
125
  }, Q = (e) => t(T.value?.ellipsis, {}, {
@@ -129,8 +129,8 @@ function m(m, h, g, _, v) {
129
129
  [s(N.value, "ellipsis") ?? ""]: !0,
130
130
  [s(P.value, "ellipsis") ?? ""]: !0,
131
131
  [s(I.value, "item") ?? ""]: G.value,
132
- [s(j.value, "ellipsis") ?? ""]: !0,
133
- "ml-0": Y("ellipsis", e)
132
+ "ml-0": Y("ellipsis", e),
133
+ [s(j.value, "ellipsis") ?? ""]: !0
134
134
  })
135
135
  }), $ = i(() => s(N.value, "icon") ?? "sm");
136
136
  return {
@@ -149,10 +149,10 @@ function m(m, h, g, _, v) {
149
149
  "aria-label": X.value,
150
150
  class: u({
151
151
  [q.value]: !0,
152
- [s(j.value, "prev") ?? ""]: !0,
153
- [s(j.value, "item") ?? ""]: !0,
154
152
  "ml-0": W.value,
155
- [s(I.value, "itemStart") ?? ""]: W.value
153
+ [s(I.value, "itemStart") ?? ""]: W.value,
154
+ [s(j.value, "item") ?? ""]: !0,
155
+ [s(j.value, "prev") ?? ""]: !0
156
156
  })
157
157
  })),
158
158
  nextBind: i(() => t(T.value?.next, {}, {
@@ -162,9 +162,9 @@ function m(m, h, g, _, v) {
162
162
  "aria-label": Z.value,
163
163
  class: u({
164
164
  [q.value]: !0,
165
- [s(j.value, "next") ?? ""]: !0,
165
+ [s(I.value, "itemEnd") ?? ""]: W.value,
166
166
  [s(j.value, "item") ?? ""]: !0,
167
- [s(I.value, "itemEnd") ?? ""]: W.value
167
+ [s(j.value, "next") ?? ""]: !0
168
168
  })
169
169
  })),
170
170
  prevLabel: X,
@@ -32,6 +32,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
32
32
  showErrorIcon: boolean;
33
33
  clearable: boolean;
34
34
  minItemsForSearch: number;
35
+ persistentPlaceholder: boolean;
35
36
  searchable: boolean;
36
37
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
37
38
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -14,7 +14,7 @@ import { cn as M } from "@bridge-ui/core/Utils";
14
14
  // src/Components/Select/Select.vue?vue&type=script&setup=true&lang.ts
15
15
  var N = {
16
16
  key: 0,
17
- class: "flex min-w-0 flex-1 flex-wrap items-center gap-0.5"
17
+ class: "flex min-w-0 flex-1 flex-wrap items-center gap-0.5 py-1.5 [&>textarea]:py-0"
18
18
  }, P = {
19
19
  key: 1,
20
20
  class: "flex min-w-0 flex-1 items-center gap-1"
@@ -47,6 +47,10 @@ var N = {
47
47
  options: {},
48
48
  optionValue: {},
49
49
  overlay: {},
50
+ persistentPlaceholder: {
51
+ type: Boolean,
52
+ default: !1
53
+ },
50
54
  placeholder: {},
51
55
  searchable: {
52
56
  type: Boolean,
@@ -488,9 +488,9 @@ export declare function useSelect(props: SelectOwnProps, model: Ref<null | undef
488
488
  "aria-expanded": boolean;
489
489
  readonly: boolean;
490
490
  onKeydown: (event: KeyboardEvent) => void;
491
- placeholder: string | undefined;
492
491
  "aria-autocomplete": string | undefined;
493
492
  "aria-activedescendant": string | undefined;
493
+ placeholder: string | undefined;
494
494
  } | {
495
495
  onInput: (event: Event) => void;
496
496
  role: string;
@@ -499,9 +499,9 @@ export declare function useSelect(props: SelectOwnProps, model: Ref<null | undef
499
499
  "aria-expanded": boolean;
500
500
  readonly: boolean;
501
501
  onKeydown: (event: KeyboardEvent) => void;
502
- placeholder: string | undefined;
503
502
  "aria-autocomplete": string | undefined;
504
503
  "aria-activedescendant": string | undefined;
504
+ placeholder: string | undefined;
505
505
  }, import('@bridge-ui/core/Utils').MergePartBind<object, "class", {
506
506
  id: string;
507
507
  disabled: boolean;
@@ -32,7 +32,8 @@ var Ae = [
32
32
  "disableMaxHeight",
33
33
  "hideEmptyMessage",
34
34
  "minItemsForSearch",
35
- "optionDescription"
35
+ "optionDescription",
36
+ "persistentPlaceholder"
36
37
  ];
37
38
  function h(h, g, _, v, je) {
38
39
  let Me = ue(), y = fe(), b = de(), Ne = n(), x = e(), S = c(!1), C = c(""), w = c(!1), T = c(-1), E = c([]), D = c([]), O = c([]), k = c(null), A = null, j = o(() => ke({
@@ -260,9 +261,9 @@ function h(h, g, _, v, je) {
260
261
  "aria-expanded": S.value,
261
262
  readonly: qe.value,
262
263
  onKeydown: lt,
263
- placeholder: M.value.placeholder,
264
264
  "aria-autocomplete": G.value ? "list" : void 0,
265
265
  "aria-activedescendant": S.value ? J.activeDescendantId.value : void 0,
266
+ placeholder: P.value && U.value && !M.value.persistentPlaceholder ? void 0 : M.value.placeholder,
266
267
  ...P.value ? {
267
268
  rows: 1,
268
269
  onInput: (e) => {
@@ -219,6 +219,13 @@ export interface SelectOwnProps extends Omit<FormFieldOwnProps, "field"> {
219
219
  * @default "auto"
220
220
  */
221
221
  overlay?: FieldOverlayMode;
222
+ /**
223
+ * Keeps the placeholder visible next to the chips when `multiple` is set.
224
+ * By default it hides once a value is selected.
225
+ *
226
+ * @default false
227
+ */
228
+ persistentPlaceholder?: boolean;
222
229
  /**
223
230
  * Placeholder shown when no value is selected.
224
231
  */