@bridge-ui/vue 0.5.1 → 0.7.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 (125) hide show
  1. package/ai/skills/bridge-ui-components/SKILL.md +2 -2
  2. package/dist/Adapters/I18n/useI18nAdapter.d.ts +1 -1
  3. package/dist/Adapters/I18n/useI18nAdapter.js +4 -1
  4. package/dist/Components/Accordion/Accordion.vue_vue_type_script_setup_true_lang.js +1 -1
  5. package/dist/Components/Accordion/accordion.types.d.ts +2 -2
  6. package/dist/Components/Alert/alertDefaultIcons.js +1 -0
  7. package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +2 -2
  8. package/dist/Components/Autocomplete/composables/useAutocomplete.js +150 -145
  9. package/dist/Components/BaseField/BaseField.vue_vue_type_script_setup_true_lang.js +33 -28
  10. package/dist/Components/BaseField/BaseFieldCorner.js +5 -0
  11. package/dist/Components/BaseField/BaseFieldCorner.vue.d.ts +17 -0
  12. package/dist/Components/BaseField/BaseFieldCorner.vue_vue_type_script_setup_true_lang.js +17 -0
  13. package/dist/Components/BaseField/baseField.types.d.ts +4 -2
  14. package/dist/Components/BaseField/composables/useBaseField.d.ts +1 -1
  15. package/dist/Components/BaseField/composables/useBaseField.js +11 -8
  16. package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +1 -0
  17. package/dist/Components/Button/button.types.d.ts +6 -0
  18. package/dist/Components/Button/composables/useButton.d.ts +4 -1
  19. package/dist/Components/Button/composables/useButton.js +88 -69
  20. package/dist/Components/ButtonGroup/ButtonGroup.js +5 -0
  21. package/dist/Components/ButtonGroup/ButtonGroup.vue.d.ts +14 -0
  22. package/dist/Components/ButtonGroup/ButtonGroup.vue_vue_type_script_setup_true_lang.js +37 -0
  23. package/dist/Components/ButtonGroup/buttonGroup.types.d.ts +93 -0
  24. package/dist/Components/ButtonGroup/buttonGroupInjectionKey.d.ts +7 -0
  25. package/dist/Components/ButtonGroup/buttonGroupInjectionKey.js +4 -0
  26. package/dist/Components/ButtonGroup/composables/useButtonGroup.d.ts +16 -0
  27. package/dist/Components/ButtonGroup/composables/useButtonGroup.js +66 -0
  28. package/dist/Components/ButtonGroup/index.d.ts +4 -0
  29. package/dist/Components/ButtonGroup/index.js +4 -0
  30. package/dist/Components/Calendar/Calendar.vue_vue_type_script_setup_true_lang.js +1 -1
  31. package/dist/Components/CalendarRange/CalendarRange.vue_vue_type_script_setup_true_lang.js +2 -2
  32. package/dist/Components/Checkbox/composables/useCheckbox.js +1 -1
  33. package/dist/Components/ColorField/composables/useColorField.d.ts +1 -1
  34. package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +180 -158
  35. package/dist/Components/DataTable/DataTableColumnsMenu.vue_vue_type_script_setup_true_lang.js +1 -1
  36. package/dist/Components/DataTable/DataTableFilterMenu.vue_vue_type_script_setup_true_lang.js +1 -1
  37. package/dist/Components/DataTable/DataTableFilterOptions.vue_vue_type_script_setup_true_lang.js +1 -1
  38. package/dist/Components/DataTable/DataTablePagination.js +5 -0
  39. package/dist/Components/DataTable/DataTablePagination.vue.d.ts +24 -0
  40. package/dist/Components/DataTable/DataTablePagination.vue_vue_type_script_setup_true_lang.js +40 -0
  41. package/dist/Components/DataTable/DataTableSortButton.vue.d.ts +5 -11
  42. package/dist/Components/DataTable/DataTableSortButton.vue_vue_type_script_setup_true_lang.js +22 -26
  43. package/dist/Components/DataTable/composables/useDataTable.d.ts +8 -6
  44. package/dist/Components/DataTable/composables/useDataTable.js +268 -263
  45. package/dist/Components/DataTable/composables/useDataTablePagination.d.ts +69 -0
  46. package/dist/Components/DataTable/composables/useDataTablePagination.js +130 -0
  47. package/dist/Components/DataTable/dataTable.types.d.ts +27 -12
  48. package/dist/Components/DataTable/dataTablePagination.types.d.ts +169 -0
  49. package/dist/Components/DataTable/index.d.ts +2 -1
  50. package/dist/Components/DateField/composables/useDateField.d.ts +1 -1
  51. package/dist/Components/DateRangeField/composables/useDateRangeField.d.ts +1 -1
  52. package/dist/Components/DateTimeField/composables/useDateTimeField.d.ts +1 -1
  53. package/dist/Components/DateTimeRangeField/composables/useDateTimeRangeField.d.ts +1 -1
  54. package/dist/Components/FieldOverlay/composables/useFieldOverlay.js +4 -1
  55. package/dist/Components/FormField/FilledFormField.vue.d.ts +7 -7
  56. package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +32 -27
  57. package/dist/Components/FormField/FormFieldCorner.js +5 -0
  58. package/dist/Components/FormField/FormFieldCorner.vue.d.ts +17 -0
  59. package/dist/Components/FormField/FormFieldCorner.vue_vue_type_script_setup_true_lang.js +17 -0
  60. package/dist/Components/FormField/NotchedFormField.vue.d.ts +7 -7
  61. package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +31 -26
  62. package/dist/Components/FormField/OutlinedFormField.vue.d.ts +7 -7
  63. package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +32 -27
  64. package/dist/Components/FormField/StackedFormField.vue.d.ts +6 -6
  65. package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +34 -29
  66. package/dist/Components/FormField/UnderlinedFormField.vue.d.ts +7 -7
  67. package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +32 -27
  68. package/dist/Components/FormField/composables/useFormField.d.ts +1 -1
  69. package/dist/Components/FormField/composables/useFormField.js +15 -9
  70. package/dist/Components/FormField/formField.types.d.ts +4 -2
  71. package/dist/Components/List/composables/useList.js +1 -1
  72. package/dist/Components/ListItem/ListItem.vue.d.ts +1 -1
  73. package/dist/Components/ListItem/composables/useListItem.d.ts +2 -2
  74. package/dist/Components/ListItem/composables/useListItem.js +101 -86
  75. package/dist/Components/ListSection/composables/useListSection.js +34 -31
  76. package/dist/Components/ListSection/listSection.types.d.ts +2 -1
  77. package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +82 -82
  78. package/dist/Components/Listbox/collectComposedListboxOptions.d.ts +5 -0
  79. package/dist/Components/Listbox/collectComposedListboxOptions.js +27 -0
  80. package/dist/Components/NumberField/composables/useNumberField.d.ts +1 -1
  81. package/dist/Components/OtpField/composables/useOtpField.d.ts +1 -1
  82. package/dist/Components/Pagination/Pagination.vue_vue_type_script_setup_true_lang.js +6 -6
  83. package/dist/Components/Pagination/composables/usePagination.d.ts +4 -2
  84. package/dist/Components/Pagination/composables/usePagination.js +125 -127
  85. package/dist/Components/Pagination/pagination.types.d.ts +5 -5
  86. package/dist/Components/PasswordField/composables/usePasswordField.d.ts +1 -1
  87. package/dist/Components/Radio/composables/useRadio.js +2 -1
  88. package/dist/Components/Select/composables/useSelect.d.ts +2 -2
  89. package/dist/Components/Select/composables/useSelect.js +104 -99
  90. package/dist/Components/Sidebar/composables/useSidebarListItem.js +29 -28
  91. package/dist/Components/Sidebar/composables/useSidebarTrigger.js +14 -14
  92. package/dist/Components/Slider/composables/useSlider.d.ts +1 -1
  93. package/dist/Components/Slider/composables/useSlider.js +53 -53
  94. package/dist/Components/Snackbar/snackbarDefaultIcons.js +1 -0
  95. package/dist/Components/Tabs/Tabs.vue_vue_type_script_setup_true_lang.js +13 -12
  96. package/dist/Components/Tabs/composables/useTabs.js +16 -10
  97. package/dist/Components/Tabs/tabs.types.d.ts +3 -3
  98. package/dist/Components/TextField/composables/useTextField.d.ts +1 -1
  99. package/dist/Components/Textarea/composables/useTextarea.d.ts +1 -1
  100. package/dist/Components/TimeField/composables/useTimeField.d.ts +1 -1
  101. package/dist/Components/TimePanel/composables/useTimePanel.js +106 -106
  102. package/dist/Components/TimeRangeField/composables/useTimeRangeField.d.ts +1 -1
  103. package/dist/augments.d.ts +5 -0
  104. package/dist/index.d.ts +3 -1
  105. package/dist/index.js +150 -147
  106. package/docs/README.md +1 -0
  107. package/docs/components/Accordion.md +1 -1
  108. package/docs/components/Badge.md +2 -0
  109. package/docs/components/Button.md +5 -1
  110. package/docs/components/ButtonGroup.md +124 -0
  111. package/docs/components/DataTable.md +9 -11
  112. package/docs/components/Divider.md +1 -0
  113. package/docs/components/I18n.md +65 -24
  114. package/docs/components/Pagination.md +5 -3
  115. package/docs/components/Table.md +2 -2
  116. package/docs/components/Tabs.md +24 -6
  117. package/docs/components/ToggleGroup.md +1 -1
  118. package/docs/examples/i18n-dictionary.ts +31 -10
  119. package/docs/examples/i18n-vue-i18n.ts +7 -6
  120. package/docs/examples/icon-fontawesome.ts +4 -0
  121. package/docs/examples/icon-heroicons.ts +5 -1
  122. package/docs/examples/icon-lucide.ts +4 -0
  123. package/docs/examples/icon-phosphor.ts +4 -0
  124. package/docs/examples/icon-tabler.ts +4 -0
  125. package/package.json +2 -2
@@ -2,10 +2,10 @@ import { useBridgeUI as e } from "../../../Provider/useBridgeUI.js";
2
2
  import { mergePartBind as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as r } from "../../../Utils/index.js";
3
3
  import { baseFieldBridgeKeys as i, useBaseField as a } from "../../BaseField/composables/useBaseField.js";
4
4
  import { computed as o, ref as s, toValue as ee, useAttrs as te, watch as ne } from "vue";
5
- import { get as c, omit as l, pick as u } from "es-toolkit/compat";
6
- import { getSliderBarGeometry as re, getSliderPointerClientX as d, isSliderStopCovered as ie, normalizeSliderStops as ae, percentFromSliderPointer as f, percentToValue as p, pickClosestSliderThumb as oe, resolveSliderBounds as m, snapSliderValue as h, sortSliderRangeValue as se, stepSliderValue as g, valueToPercent as _, writeSliderRangeThumb as v } from "@bridge-ui/core/Domain";
7
- import { sliderColorProps as ce, sliderRoundedProps as le, sliderSizeProps as ue } from "@bridge-ui/core/Tokens";
8
- import { cn as y, getColorToken as de, mergeBridgeUILayeredClasses as b, splitComponentProps as fe } from "@bridge-ui/core/Utils";
5
+ import { get as c, isNumber as l, omit as u, pick as d } from "es-toolkit/compat";
6
+ import { getSliderBarGeometry as re, getSliderPointerClientX as f, isSliderStopCovered as ie, normalizeSliderStops as ae, percentFromSliderPointer as p, percentToValue as m, pickClosestSliderThumb as oe, resolveSliderBounds as se, snapSliderValue as h, sortSliderRangeValue as ce, stepSliderValue as g, valueToPercent as _, writeSliderRangeThumb as v } from "@bridge-ui/core/Domain";
7
+ import { sliderColorProps as le, sliderRoundedProps as ue, sliderSizeProps as de } from "@bridge-ui/core/Tokens";
8
+ import { cn as y, getColorToken as fe, mergeBridgeUILayeredClasses as b, splitComponentProps as pe } from "@bridge-ui/core/Utils";
9
9
  //#region src/Components/Slider/composables/useSlider.ts
10
10
  var x = [
11
11
  "max",
@@ -28,14 +28,14 @@ function w(e, t, n, r) {
28
28
  value: n
29
29
  } : v(e, t, n);
30
30
  }
31
- function T(v, T, E, pe = {}) {
32
- let me = te(), he = e(), D = s(null), O = s(null), k = s(null), A = s(null), j = o(() => fe({
31
+ function T(v, T, E, me = {}) {
32
+ let he = te(), ge = e(), D = s(null), O = s(null), k = s(null), A = s(null), j = o(() => pe({
33
33
  bridgeKeys: S,
34
34
  props: {
35
- ...me,
35
+ ...he,
36
36
  ...ee(v)
37
37
  }
38
- })), ge = o(() => u(j.value.componentProps, i)), M = a(ge, {
38
+ })), _e = o(() => d(j.value.componentProps, i)), M = a(_e, {
39
39
  error: !1,
40
40
  hideErrorMessage: !1,
41
41
  size: T.size ?? "md"
@@ -46,7 +46,7 @@ function T(v, T, E, pe = {}) {
46
46
  libDefaults: T,
47
47
  componentName: "Slider",
48
48
  props: () => ({
49
- ...u(j.value.componentProps, x),
49
+ ...d(j.value.componentProps, x),
50
50
  size: M.merged.value.size,
51
51
  classes: j.value.componentProps.classes,
52
52
  customProps: j.value.componentProps.customProps
@@ -54,18 +54,18 @@ function T(v, T, E, pe = {}) {
54
54
  }), F = o(() => N.value.customProps), I = r({
55
55
  entry: P,
56
56
  props: () => j.value.componentProps
57
- }), L = o(() => m({
57
+ }), L = o(() => se({
58
58
  min: N.value.min,
59
59
  max: N.value.max,
60
60
  step: N.value.step
61
- })), R = o(() => !!N.value.range), z = o(() => N.value.showTooltip !== !1), B = o(() => he?.global.value.direction === "rtl"), { controlId: V, isDisabled: H, isReadonly: U, invalidated: W, ariaDescribedBy: _e } = M, G = o(() => {
61
+ })), R = o(() => !!N.value.range), z = o(() => N.value.showTooltip !== !1), B = o(() => ge?.global.value.direction === "rtl"), { controlId: V, isDisabled: H, isReadonly: U, invalidated: W, ariaDescribedBy: ve } = M, G = o(() => {
62
62
  let e = E.value, t = L.value;
63
63
  if (R.value) {
64
- if (Array.isArray(e)) return se(h(e[0], t.min, t.max, t.step), h(e[1], t.min, t.max, t.step));
65
- let n = h(typeof e == "number" ? e : t.min, t.min, t.max, t.step);
64
+ if (Array.isArray(e)) return ce(h(e[0], t.min, t.max, t.step), h(e[1], t.min, t.max, t.step));
65
+ let n = h(l(e) ? e : t.min, t.min, t.max, t.step);
66
66
  return [n, n];
67
67
  }
68
- return h(Array.isArray(e) ? e[0] : typeof e == "number" ? e : t.min, t.min, t.max, t.step);
68
+ return h(Array.isArray(e) ? e[0] : l(e) ? e : t.min, t.min, t.max, t.step);
69
69
  }), K = o(() => ae({
70
70
  min: L.value.min,
71
71
  max: L.value.max,
@@ -78,43 +78,43 @@ function T(v, T, E, pe = {}) {
78
78
  max: L.value.max,
79
79
  value: G.value
80
80
  })), J = o(() => {
81
- let e = b(ce, P.value?.tokens?.color);
82
- return de({
81
+ let e = b(le, P.value?.tokens?.color);
82
+ return fe({
83
83
  tokens: e,
84
84
  color: N.value.color,
85
85
  invalid: W.value
86
86
  });
87
87
  }), Y = o(() => {
88
- let e = b(ue, P.value?.tokens?.size);
88
+ let e = b(de, P.value?.tokens?.size);
89
89
  return c(e, N.value.size ?? "md");
90
90
  }), X = o(() => {
91
- let e = b(le, P.value?.tokens?.rounded);
91
+ let e = b(ue, P.value?.tokens?.rounded);
92
92
  return c(e, N.value.rounded ?? "full");
93
- }), ve = o(() => K.value.some((e) => !!e.label)), Z = (e) => {
94
- E.value = e, pe.onChange?.(e);
95
- }, ye = (e) => {
93
+ }), ye = o(() => K.value.some((e) => !!e.label)), Z = (e) => {
94
+ E.value = e, me.onChange?.(e);
95
+ }, be = (e) => {
96
96
  D.value &&= { thumbIndex: e }, O.value !== null && (O.value = e);
97
- }, be = (e, t) => {
97
+ }, xe = (e, t) => {
98
98
  if (H.value || U.value) return;
99
- let n = L.value, r = p(t, n.min, n.max, n.step), i = w(G.value, e, r, R.value);
100
- i.thumbIndex !== e && ye(i.thumbIndex), Z(i.value);
99
+ let n = L.value, r = m(t, n.min, n.max, n.step), i = w(G.value, e, r, R.value);
100
+ i.thumbIndex !== e && be(i.thumbIndex), Z(i.value);
101
101
  }, Q = (e, t) => {
102
102
  H.value || U.value || (e.preventDefault(), D.value = { thumbIndex: t }, O.value = t);
103
- }, xe = (e) => {
103
+ }, Se = (e) => {
104
104
  if (H.value || U.value || e.target.closest("[data-bridge-slider-thumb]")) return;
105
105
  let t = A.value?.getBoundingClientRect();
106
106
  if (!t) return;
107
- let n = f({
107
+ let n = p({
108
108
  rect: t,
109
109
  isRtl: B.value,
110
- clientX: d(e)
111
- }), r = L.value, i = p(n, r.min, r.max, r.step), a = 0, o = G.value;
110
+ clientX: f(e)
111
+ }), r = L.value, i = m(n, r.min, r.max, r.step), a = 0, o = G.value;
112
112
  R.value && Array.isArray(o) && (a = oe(i, o[0], o[1]));
113
113
  let s = w(o, a, i, R.value);
114
114
  Z(s.value), Q(e, s.thumbIndex);
115
- }, Se = (e) => (t) => {
116
- Q(t, e);
117
115
  }, Ce = (e) => (t) => {
116
+ Q(t, e);
117
+ }, we = (e) => (t) => {
118
118
  if (H.value || U.value) return;
119
119
  let n = L.value, r = C(G.value, e, R.value), i = null, a = B.value;
120
120
  switch (t.key) {
@@ -151,12 +151,12 @@ function T(v, T, E, pe = {}) {
151
151
  let r = (e) => {
152
152
  let t = A.value?.getBoundingClientRect();
153
153
  if (!t || D.value === null) return;
154
- let n = f({
154
+ let n = p({
155
155
  rect: t,
156
156
  isRtl: B.value,
157
- clientX: d(e)
157
+ clientX: f(e)
158
158
  });
159
- be(D.value.thumbIndex, n);
159
+ xe(D.value.thumbIndex, n);
160
160
  }, i = () => {
161
161
  D.value = null, O.value = null;
162
162
  };
@@ -164,9 +164,9 @@ function T(v, T, E, pe = {}) {
164
164
  window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", i), window.removeEventListener("pointercancel", i);
165
165
  });
166
166
  });
167
- let we = o(() => t({}, {}, y("relative w-full min-w-0 flex-1"))), Te = o(() => t({
168
- ...l(F.value?.track ?? {}, ["style"]),
169
- onPointerdown: xe
167
+ let $ = o(() => t({}, {}, y("relative w-full min-w-0 flex-1"))), Te = o(() => t({
168
+ ...u(F.value?.track ?? {}, ["style"]),
169
+ onPointerdown: Se
170
170
  }, {}, y({
171
171
  "relative w-full select-none touch-none": !0,
172
172
  "cursor-pointer": !H.value && !U.value,
@@ -175,7 +175,7 @@ function T(v, T, E, pe = {}) {
175
175
  [X.value ?? ""]: !0,
176
176
  [J.value?.track ?? ""]: !0,
177
177
  [I.value.track ?? ""]: !0
178
- }))), Ee = o(() => t(l(F.value?.bar ?? {}, ["style"]), {
178
+ }))), Ee = o(() => t(u(F.value?.bar ?? {}, ["style"]), {
179
179
  "aria-hidden": !0,
180
180
  style: {
181
181
  width: q.value.width,
@@ -186,10 +186,10 @@ function T(v, T, E, pe = {}) {
186
186
  [X.value ?? ""]: !0,
187
187
  [J.value?.bar ?? ""]: !0,
188
188
  [I.value.bar ?? ""]: !0
189
- }))), $ = (e) => {
189
+ }))), De = (e) => {
190
190
  let n = C(G.value, e, R.value), r = _(n, L.value.min, L.value.max), i = O.value === e;
191
191
  return t({
192
- ...l(F.value?.thumb ?? {}, ["style"]),
192
+ ...u(F.value?.thumb ?? {}, ["style"]),
193
193
  role: "slider",
194
194
  type: "button",
195
195
  "aria-valuenow": n,
@@ -199,13 +199,13 @@ function T(v, T, E, pe = {}) {
199
199
  "data-bridge-slider-thumb": e,
200
200
  disabled: H.value || void 0,
201
201
  "aria-orientation": "horizontal",
202
- "aria-describedby": _e.value,
203
- onKeydown: Ce(e),
202
+ "aria-describedby": ve.value,
203
+ onKeydown: we(e),
204
204
  id: `${V.value}-thumb-${e}`,
205
205
  "aria-disabled": H.value || void 0,
206
206
  "aria-readonly": U.value || void 0,
207
207
  "aria-invalid": W.value || void 0,
208
- onPointerdown: Se(e),
208
+ onPointerdown: Ce(e),
209
209
  style: { insetInlineStart: `${r}%` },
210
210
  onFocus: () => {
211
211
  k.value = e;
@@ -228,7 +228,7 @@ function T(v, T, E, pe = {}) {
228
228
  [Y.value?.thumb ?? ""]: !0,
229
229
  [I.value.thumb ?? ""]: !0
230
230
  }));
231
- }, De = (e) => {
231
+ }, Oe = (e) => {
232
232
  let n = O.value === e;
233
233
  return t(F.value?.thumbKnob, { "aria-hidden": !0 }, y({
234
234
  "block rounded-full border-2 shadow-sm transition-transform duration-100": !0,
@@ -239,7 +239,7 @@ function T(v, T, E, pe = {}) {
239
239
  [J.value?.thumb ?? ""]: !0,
240
240
  [I.value.thumbKnob ?? ""]: !0
241
241
  }));
242
- }, Oe = (e) => {
242
+ }, ke = (e) => {
243
243
  let n = _(e.value, L.value.min, L.value.max), r = ie({
244
244
  range: R.value,
245
245
  min: L.value.min,
@@ -247,7 +247,7 @@ function T(v, T, E, pe = {}) {
247
247
  stopValue: e.value,
248
248
  value: G.value
249
249
  });
250
- return t(l(F.value?.stop ?? {}, ["style"]), {
250
+ return t(u(F.value?.stop ?? {}, ["style"]), {
251
251
  "aria-hidden": !0,
252
252
  style: {
253
253
  insetInlineStart: `${n}%`,
@@ -257,7 +257,7 @@ function T(v, T, E, pe = {}) {
257
257
  "absolute top-1/2 h-2 w-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-white dark:bg-dark-400": !0,
258
258
  [I.value.stop ?? ""]: !0
259
259
  }));
260
- }, ke = o(() => t(F.value?.stopLabels, { "aria-hidden": !0 }, y({
260
+ }, Ae = o(() => t(F.value?.stopLabels, { "aria-hidden": !0 }, y({
261
261
  "relative h-[1lh] w-full text-xs": !0,
262
262
  [I.value.stopLabels ?? ""]: !0
263
263
  })));
@@ -269,26 +269,26 @@ function T(v, T, E, pe = {}) {
269
269
  trackRef: A,
270
270
  baseField: M,
271
271
  trackBind: Te,
272
- controlBind: we,
272
+ controlBind: $,
273
273
  showTooltip: z,
274
- getStopBind: Oe,
274
+ getStopBind: ke,
275
275
  thumbIndexes: o(() => R.value ? [0, 1] : [0]),
276
- getThumbBind: $,
276
+ getThumbBind: De,
277
277
  resolvedStops: K,
278
278
  resolvedValue: G,
279
279
  isTooltipOpen: (e) => z.value && (O.value === e || k.value === e),
280
- hasStopLabels: ve,
281
- stopLabelsBind: ke,
280
+ hasStopLabels: ye,
281
+ stopLabelsBind: Ae,
282
282
  getStopLabelBind: (e) => {
283
283
  let n = _(e.value, L.value.min, L.value.max);
284
- return t(l(F.value?.stopLabel ?? {}, ["style"]), { style: { insetInlineStart: `${n}%` } }, y({
284
+ return t(u(F.value?.stopLabel ?? {}, ["style"]), { style: { insetInlineStart: `${n}%` } }, y({
285
285
  "absolute top-0 -translate-x-1/2 whitespace-nowrap": !0,
286
286
  "text-dark-700 dark:text-dark-400": !W.value,
287
287
  "text-error-600 dark:text-error-400": W.value,
288
288
  [I.value.stopLabel ?? ""]: !0
289
289
  }));
290
290
  },
291
- getThumbKnobBind: De,
291
+ getThumbKnobBind: Oe,
292
292
  tooltipProps: o(() => F.value?.tooltip),
293
293
  readThumbValue: (e) => C(G.value, e, R.value)
294
294
  };
@@ -2,6 +2,7 @@
2
2
  var e = {
3
3
  dark: "info",
4
4
  info: "alert",
5
+ black: "info",
5
6
  error: "error",
6
7
  primary: "bell",
7
8
  secondary: "info",
@@ -4,8 +4,9 @@ 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
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, renderSlot as b, toDisplayString as x, unref as S, useModel as C, withCtx as w } from "vue";
7
+ import { isString as T } from "es-toolkit/compat";
7
8
  //#region src/Components/Tabs/Tabs.vue?vue&type=script&setup=true&lang.ts
8
- var T = /*@__PURE__*/ p({
9
+ var E = /*@__PURE__*/ p({
9
10
  inheritAttrs: !1,
10
11
  __name: "Tabs",
11
12
  props: /*@__PURE__*/ h({
@@ -26,23 +27,23 @@ var T = /*@__PURE__*/ p({
26
27
  }),
27
28
  emits: /*@__PURE__*/ h(["change", "update:modelValue"], ["update:modelValue"]),
28
29
  setup(p, { emit: h }) {
29
- let T = h, E = p, D = C(p, "modelValue"), { rootBind: O, tabItems: k } = i(E, {
30
+ let E = h, D = p, O = C(p, "modelValue"), { rootBind: k, tabItems: A } = i(D, {
30
31
  size: "md",
31
- variant: "line",
32
- color: "primary",
32
+ color: "dark",
33
+ variant: "pill",
33
34
  keepMounted: !0,
34
35
  activation: "automatic",
35
36
  orientation: "horizontal"
36
- }, D, T), A = o(() => k.value.length > 0);
37
- return (i, o) => (v(), l("div", _(m(S(O))), [A.value ? (v(), l(a, { key: 0 }, [f(n, _(m(E.customProps?.tabList)), {
38
- default: w(() => [(v(!0), l(a, null, y(S(k), (n) => (v(), s(t, g({
37
+ }, O, E), j = o(() => A.value.length > 0);
38
+ return (i, o) => (v(), l("div", _(m(S(k))), [j.value ? (v(), l(a, { key: 0 }, [f(n, _(m(D.customProps?.tabList)), {
39
+ default: w(() => [(v(!0), l(a, null, y(S(A), (n) => (v(), s(t, g({
39
40
  key: n.value,
40
41
  value: n.value,
41
42
  "end-icon": n.endIcon,
42
43
  disabled: n.disabled,
43
44
  "start-icon": n.startIcon
44
- }, { ref_for: !0 }, E.customProps?.tab), u({
45
- default: w(() => [typeof n.label == "string" ? (v(), l(a, { key: 0 }, [d(x(n.label), 1)], 64)) : (v(), s(S(e), {
45
+ }, { ref_for: !0 }, D.customProps?.tab), u({
46
+ default: w(() => [S(T)(n.label) ? (v(), l(a, { key: 0 }, [d(x(n.label), 1)], 64)) : (v(), s(S(e), {
46
47
  key: 1,
47
48
  fn: n.label
48
49
  }, null, 8, ["fn"]))]),
@@ -62,15 +63,15 @@ var T = /*@__PURE__*/ p({
62
63
  "start-icon"
63
64
  ]))), 128))]),
64
65
  _: 1
65
- }, 16), (v(!0), l(a, null, y(S(k), (t) => (v(), s(r, g({
66
+ }, 16), (v(!0), l(a, null, y(S(A), (t) => (v(), s(r, g({
66
67
  key: t.value,
67
68
  value: t.value,
68
69
  "keep-mounted": t.keepMounted
69
- }, { ref_for: !0 }, E.customProps?.tabPanel), {
70
+ }, { ref_for: !0 }, D.customProps?.tabPanel), {
70
71
  default: w(() => [f(S(e), { fn: t.panel }, null, 8, ["fn"])]),
71
72
  _: 2
72
73
  }, 1040, ["value", "keep-mounted"]))), 128))], 64)) : c("", !0), b(i.$slots, "default")], 16));
73
74
  }
74
75
  });
75
76
  //#endregion
76
- export { T as default };
77
+ export { E as default };
@@ -53,7 +53,13 @@ function y(y, b, x, S) {
53
53
  let L = n({
54
54
  entry: j,
55
55
  props: () => k.value.componentProps
56
- }), R = i(() => g(p, j.value?.tokens?.size)), z = i(() => g(m, j.value?.tokens?.variant)), B = i(() => g(d, j.value?.tokens?.color)), V = i(() => g(f, 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
+ }), R = i(() => g(p, j.value?.tokens?.size)), z = i(() => g(m, j.value?.tokens?.variant)), B = i(() => g(d, j.value?.tokens?.color)), V = i(() => g(f, 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(() => A.value.orientation === "vertical"), q = i(() => h({
57
+ [l(G.value, "tab") ?? ""]: !0,
58
+ [l(U.value, "tabVertical") ?? ""]: K.value
59
+ })), J = i(() => h({
60
+ [l(G.value, "list") ?? ""]: !0,
61
+ [l(U.value, "listVertical") ?? ""]: K.value
62
+ })), Y = i(() => ({
57
63
  focusTab: F,
58
64
  id: T,
59
65
  setSelected: N,
@@ -67,33 +73,33 @@ function y(y, b, x, S) {
67
73
  activation: A.value.activation ?? "automatic",
68
74
  orientation: A.value.orientation ?? "horizontal",
69
75
  tokenClasses: {
70
- tabSize: l(H.value, "tab"),
76
+ softFill: !1,
71
77
  iconGap: l(H.value, "gap"),
78
+ tabSize: l(H.value, "tab"),
79
+ tabOrientation: q.value,
72
80
  iconSize: l(H.value, "icon"),
73
81
  listSize: l(H.value, "list"),
82
+ listOrientation: J.value,
74
83
  panelSize: l(H.value, "panel"),
75
84
  tabVariant: l(U.value, "tab"),
76
85
  listVariant: l(U.value, "list"),
77
- tabOrientation: l(G.value, "tab"),
78
86
  colorSelected: l(W.value, "tabSelected"),
79
- listOrientation: l(G.value, "list"),
80
87
  rootOrientation: l(G.value, "root"),
81
88
  panelOrientation: l(G.value, "panel"),
82
89
  tabVariantSelected: l(U.value, "tabSelected"),
83
- colorSelectedSoft: l(W.value, "tabSelectedSoft"),
84
- softFill: A.value.variant === "pill" || A.value.variant === "solid"
90
+ colorSelectedSoft: l(W.value, "tabSelectedSoft")
85
91
  }
86
92
  }));
87
- a(r, K);
88
- let q = i(() => A.value.customProps);
93
+ a(r, Y);
94
+ let X = i(() => A.value.customProps);
89
95
  return {
90
96
  merged: A,
91
- rootBind: i(() => e(q.value?.root, k.value.inheritedAttrs, { class: h({
97
+ rootBind: i(() => e(X.value?.root, k.value.inheritedAttrs, { class: h({
92
98
  [l(G.value, "root") ?? ""]: !0,
93
99
  [l(L.value, "root") ?? ""]: !0
94
100
  }) })),
95
101
  tabItems: O,
96
- contextValue: K
102
+ contextValue: Y
97
103
  };
98
104
  }
99
105
  //#endregion
@@ -70,9 +70,9 @@ export interface TabsOwnProps {
70
70
  */
71
71
  classes?: TabsClasses;
72
72
  /**
73
- * Accent color for the selected tab.
73
+ * Optional text accent for the selected tab. Selected surface comes from `variant`.
74
74
  *
75
- * @default "primary"
75
+ * @default "dark"
76
76
  */
77
77
  color?: MergeProps<TabsColor, TabsColorOverrides>;
78
78
  /**
@@ -103,7 +103,7 @@ export interface TabsOwnProps {
103
103
  /**
104
104
  * Visual style of the tab list / selected tab.
105
105
  *
106
- * @default "line"
106
+ * @default "pill"
107
107
  */
108
108
  variant?: MergeProps<TabsVariant, TabsVariantOverrides>;
109
109
  }
@@ -431,7 +431,6 @@ export declare function useTextField(props: TextFieldOwnProps): {
431
431
  isNotched: import('vue').ComputedRef<boolean>;
432
432
  isStacked: import('vue').ComputedRef<boolean>;
433
433
  startBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
434
- cornerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
435
434
  headerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
436
435
  isDisabled: import('vue').ComputedRef<boolean>;
437
436
  isReadonly: import('vue').ComputedRef<boolean>;
@@ -449,6 +448,7 @@ export declare function useTextField(props: TextFieldOwnProps): {
449
448
  ariaDescribedBy: import('vue').ComputedRef<string | undefined>;
450
449
  descriptionBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
451
450
  stackedBodyBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
451
+ fieldCornerProps: import('vue').ComputedRef<import('../../Label').LabelProps>;
452
452
  hasInsetLabelRow: import('vue').ComputedRef<boolean>;
453
453
  insetLabelRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
454
454
  stackedInputRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
@@ -432,7 +432,6 @@ export declare function useTextarea(props: TextareaOwnProps, textareaRef: Ref<nu
432
432
  isNotched: import('vue').ComputedRef<boolean>;
433
433
  isStacked: import('vue').ComputedRef<boolean>;
434
434
  startBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
435
- cornerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
436
435
  headerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
437
436
  isDisabled: import('vue').ComputedRef<boolean>;
438
437
  isReadonly: import('vue').ComputedRef<boolean>;
@@ -450,6 +449,7 @@ export declare function useTextarea(props: TextareaOwnProps, textareaRef: Ref<nu
450
449
  ariaDescribedBy: import('vue').ComputedRef<string | undefined>;
451
450
  descriptionBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
452
451
  stackedBodyBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
452
+ fieldCornerProps: import('vue').ComputedRef<import('../../Label').LabelProps>;
453
453
  hasInsetLabelRow: import('vue').ComputedRef<boolean>;
454
454
  insetLabelRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
455
455
  stackedInputRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
@@ -442,7 +442,6 @@ export declare function useTimeField(props: TimeFieldOwnProps, model: Ref<null |
442
442
  isNotched: import('vue').ComputedRef<boolean>;
443
443
  isStacked: import('vue').ComputedRef<boolean>;
444
444
  startBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
445
- cornerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
446
445
  headerBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
447
446
  isDisabled: import('vue').ComputedRef<boolean>;
448
447
  isReadonly: import('vue').ComputedRef<boolean>;
@@ -460,6 +459,7 @@ export declare function useTimeField(props: TimeFieldOwnProps, model: Ref<null |
460
459
  ariaDescribedBy: import('vue').ComputedRef<string | undefined>;
461
460
  descriptionBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
462
461
  stackedBodyBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
462
+ fieldCornerProps: import('vue').ComputedRef<import('../../Label').LabelProps>;
463
463
  hasInsetLabelRow: import('vue').ComputedRef<boolean>;
464
464
  insetLabelRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
465
465
  stackedInputRowBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;