@bridge-ui/vue 0.0.6 → 0.0.7

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 (110) hide show
  1. package/dist/Actions/Snackbar/BridgeSnackbarAction.vue_vue_type_script_setup_true_lang.js +8 -8
  2. package/dist/Actions/Snackbar/BridgeSnackbarHost.vue_vue_type_script_setup_true_lang.js +5 -5
  3. package/dist/Actions/Snackbar/createBridgeSnackbarApi.js +17 -17
  4. package/dist/Adapters/I18n/index.d.ts +1 -1
  5. package/dist/Adapters/I18n/index.js +2 -2
  6. package/dist/Adapters/I18n/useI18nAdapter.d.ts +7 -3
  7. package/dist/Adapters/I18n/useI18nAdapter.js +12 -7
  8. package/dist/Adapters/Icon/useIconAdapter.d.ts +1 -1
  9. package/dist/Adapters/index.d.ts +1 -1
  10. package/dist/Adapters/index.js +3 -3
  11. package/dist/Components/Alert/composables/useAlert.js +17 -17
  12. package/dist/Components/Autocomplete/Autocomplete.js +5 -0
  13. package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +40 -0
  14. package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +197 -0
  15. package/dist/Components/Autocomplete/AutocompleteOption.js +5 -0
  16. package/dist/Components/Autocomplete/AutocompleteOption.vue.d.ts +4 -0
  17. package/dist/Components/Autocomplete/AutocompleteOption.vue_vue_type_script_setup_true_lang.js +32 -0
  18. package/dist/Components/Autocomplete/autocomplete.types.d.ts +285 -0
  19. package/dist/Components/Autocomplete/autocompleteInjectionKey.d.ts +7 -0
  20. package/dist/Components/Autocomplete/autocompleteInjectionKey.js +4 -0
  21. package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +762 -0
  22. package/dist/Components/Autocomplete/composables/useAutocomplete.js +382 -0
  23. package/dist/Components/Autocomplete/index.d.ts +4 -0
  24. package/dist/Components/Autocomplete/index.js +4 -0
  25. package/dist/Components/Avatar/composables/useAvatar.js +13 -13
  26. package/dist/Components/Badge/composables/useBadge.js +8 -8
  27. package/dist/Components/Button/composables/useButton.js +14 -14
  28. package/dist/Components/Card/composables/useCard.js +27 -27
  29. package/dist/Components/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +2 -2
  30. package/dist/Components/Checkbox/composables/useCheckbox.d.ts +3 -3
  31. package/dist/Components/Checkbox/composables/useCheckbox.js +9 -9
  32. package/dist/Components/Chip/composables/useChip.js +6 -6
  33. package/dist/Components/Divider/composables/useDivider.js +5 -5
  34. package/dist/Components/Drawer/composables/useDrawer.js +23 -23
  35. package/dist/Components/FormControl/FormControl.vue_vue_type_script_setup_true_lang.js +1 -1
  36. package/dist/Components/FormControl/composables/useFormControl.d.ts +3 -3
  37. package/dist/Components/FormControl/composables/useFormControl.js +12 -12
  38. package/dist/Components/FormControl/formControl.types.d.ts +6 -6
  39. package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  40. package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  41. package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  42. package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  43. package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  44. package/dist/Components/FormField/composables/useFormField.d.ts +3 -3
  45. package/dist/Components/FormField/composables/useFormField.js +28 -28
  46. package/dist/Components/FormField/formField.types.d.ts +14 -14
  47. package/dist/Components/Icon/composables/useIcon.js +5 -5
  48. package/dist/Components/Label/composables/useLabel.js +5 -5
  49. package/dist/Components/Link/composables/useLink.js +9 -9
  50. package/dist/Components/List/composables/useList.js +6 -6
  51. package/dist/Components/ListItem/composables/useListItem.js +20 -20
  52. package/dist/Components/ListSection/composables/useListSection.js +8 -8
  53. package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +28 -28
  54. package/dist/Components/Listbox/composables/useListbox.js +7 -7
  55. package/dist/Components/Listbox/index.js +3 -3
  56. package/dist/Components/Menu/composables/useMenu.js +43 -43
  57. package/dist/Components/Modal/composables/useModal.js +18 -18
  58. package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +34 -34
  59. package/dist/Components/NumberField/composables/useNumberField.d.ts +4 -4
  60. package/dist/Components/NumberField/composables/useNumberField.js +9 -9
  61. package/dist/Components/OtpField/OtpField.js +5 -0
  62. package/dist/Components/OtpField/OtpField.vue.d.ts +31 -0
  63. package/dist/Components/OtpField/OtpField.vue_vue_type_script_setup_true_lang.js +80 -0
  64. package/dist/Components/OtpField/OtpFieldLabel.js +5 -0
  65. package/dist/Components/OtpField/OtpFieldLabel.vue.d.ts +7 -0
  66. package/dist/Components/OtpField/OtpFieldLabel.vue_vue_type_script_setup_true_lang.js +16 -0
  67. package/dist/Components/OtpField/composables/useOtpField.d.ts +460 -0
  68. package/dist/Components/OtpField/composables/useOtpField.js +212 -0
  69. package/dist/Components/OtpField/index.d.ts +4 -0
  70. package/dist/Components/OtpField/index.js +3 -0
  71. package/dist/Components/OtpField/otpField.types.d.ts +290 -0
  72. package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +23 -23
  73. package/dist/Components/PasswordField/composables/usePasswordField.d.ts +4 -4
  74. package/dist/Components/PasswordField/composables/usePasswordField.js +2 -2
  75. package/dist/Components/Progress/composables/useProgress.js +11 -11
  76. package/dist/Components/Radio/Radio.vue_vue_type_script_setup_true_lang.js +2 -2
  77. package/dist/Components/Radio/composables/useRadio.d.ts +3 -3
  78. package/dist/Components/Radio/composables/useRadio.js +9 -9
  79. package/dist/Components/Select/Select.vue.d.ts +1 -1
  80. package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +16 -13
  81. package/dist/Components/Select/composables/useSelect.d.ts +4 -4
  82. package/dist/Components/Select/composables/useSelect.js +161 -161
  83. package/dist/Components/Skeleton/composables/useSkeleton.js +5 -5
  84. package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +54 -54
  85. package/dist/Components/Snackbar/composables/useSnackbar.js +115 -115
  86. package/dist/Components/Spinner/composables/useSpinner.js +11 -11
  87. package/dist/Components/Switch/Switch.vue_vue_type_script_setup_true_lang.js +2 -2
  88. package/dist/Components/Switch/composables/useSwitch.d.ts +3 -3
  89. package/dist/Components/Switch/composables/useSwitch.js +9 -9
  90. package/dist/Components/Tab/composables/useTab.js +11 -11
  91. package/dist/Components/TabList/composables/useTabList.js +7 -7
  92. package/dist/Components/TabPanel/composables/useTabPanel.js +7 -7
  93. package/dist/Components/Tabs/composables/useTabs.js +22 -22
  94. package/dist/Components/TextField/TextField.vue.d.ts +1 -1
  95. package/dist/Components/TextField/TextField.vue_vue_type_script_setup_true_lang.js +6 -6
  96. package/dist/Components/TextField/composables/useTextField.d.ts +4 -4
  97. package/dist/Components/TextField/composables/useTextField.js +1 -1
  98. package/dist/Components/Textarea/Textarea.vue.d.ts +1 -1
  99. package/dist/Components/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +6 -6
  100. package/dist/Components/Textarea/composables/useTextarea.d.ts +4 -4
  101. package/dist/Components/Textarea/composables/useTextarea.js +9 -9
  102. package/dist/Components/Tooltip/composables/useTooltip.js +17 -17
  103. package/dist/Provider/bridgeUITypes.d.ts +4 -1
  104. package/dist/Provider/createBridgeUIApi.js +13 -1
  105. package/dist/Utils/index.js +7 -7
  106. package/dist/Utils/useBreakpoint.js +7 -7
  107. package/dist/augments.d.ts +2 -2
  108. package/dist/index.d.ts +6 -2
  109. package/dist/index.js +84 -80
  110. package/package.json +3 -2
@@ -1,8 +1,8 @@
1
1
  import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
2
2
  import { useFormControl as r } from "../../FormControl/composables/useFormControl.js";
3
3
  import { computed as i, toValue as a, useAttrs as o } from "vue";
4
- import { get as s, omit as c } from "es-toolkit/compat";
5
- import { cn as l, mergeBridgeUILayeredClasses as u, splitComponentProps as d } from "@bridge-ui/core";
4
+ import { cn as s, mergeBridgeUILayeredClasses as c, splitComponentProps as l } from "@bridge-ui/core";
5
+ import { get as u, omit as d } from "es-toolkit/compat";
6
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 = [
@@ -19,9 +19,9 @@ function _(_, v, y) {
19
19
  ...a(_)
20
20
  }), {
21
21
  error: !1,
22
- withoutErrorMessage: !1,
22
+ hideErrorMessage: !1,
23
23
  size: v.size ?? "sm"
24
- }), S = i(() => d({
24
+ }), S = i(() => l({
25
25
  bridgeKeys: g,
26
26
  props: {
27
27
  ...b,
@@ -34,22 +34,22 @@ function _(_, v, y) {
34
34
  }), T = i(() => C.value.customProps), E = n({
35
35
  entry: w,
36
36
  props: () => S.value.componentProps
37
- }), 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
+ }), D = i(() => !!a(y)), O = i(() => u(c(f, w.value?.tokens?.color), C.value.color ?? "primary")), k = i(() => c(p, w.value?.tokens?.invalidated)), A = i(() => x.invalidated.value ? k.value : O.value), j = i(() => u(c(h, w.value?.tokens?.size), C.value.size ?? "sm")), M = i(() => u(c(m, w.value?.tokens?.rounded), C.value.rounded ?? "full")), N = i(() => e({
38
38
  ...T.value?.input,
39
39
  ...x.controlBind.value,
40
40
  role: "switch",
41
41
  type: "checkbox"
42
- }, c(S.value.inheritedAttrs, ["class"]), l({
42
+ }, d(S.value.inheritedAttrs, ["class"]), s({
43
43
  "sr-only": !0,
44
44
  [E.value.input ?? ""]: !0
45
- }))), P = i(() => e(T.value?.track, { "aria-hidden": !0 }, l({
45
+ }))), P = i(() => e(T.value?.track, { "aria-hidden": !0 }, s({
46
46
  "block cursor-pointer transition ease-in-out duration-100": !0,
47
47
  [j.value?.track ?? ""]: !0,
48
48
  [M.value ?? ""]: !0,
49
49
  [A.value?.track ?? ""]: !D.value,
50
50
  [A.value?.trackChecked ?? ""]: D.value,
51
51
  [E.value.track ?? ""]: !0
52
- }))), F = i(() => e(T.value?.thumb, { "aria-hidden": !0 }, l({
52
+ }))), F = i(() => e(T.value?.thumb, { "aria-hidden": !0 }, s({
53
53
  "pointer-events-none absolute start-0.5 top-1/2 -translate-y-1/2 rounded-full shadow-sm transition ease-in-out duration-200": !0,
54
54
  [j.value?.thumb ?? ""]: !0,
55
55
  [j.value?.thumbCheckedTranslate ?? ""]: D.value,
@@ -57,7 +57,7 @@ function _(_, v, y) {
57
57
  [E.value.thumb ?? ""]: !0
58
58
  })));
59
59
  return {
60
- fieldBind: i(() => e({}, {}, l({
60
+ fieldBind: i(() => e({}, {}, s({
61
61
  "relative inline-flex shrink-0 select-none": !0,
62
62
  "has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-offset-2": !0,
63
63
  [M.value ?? ""]: !0,
@@ -1,8 +1,8 @@
1
1
  import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
2
2
  import { TABS_INJECTION_KEY as r } from "../../Tabs/tabsInjectionKey.js";
3
3
  import { computed as i, inject as a, onBeforeUnmount as o, onMounted as s, useAttrs as c, watch as l } from "vue";
4
- import { get as u } from "es-toolkit/compat";
5
- import { cn as d, getTabId as f, getTabPanelId as p, splitComponentProps as m } from "@bridge-ui/core";
4
+ import { cn as u, getTabId as d, getTabPanelId as f, splitComponentProps as p } from "@bridge-ui/core";
5
+ import { get as m } from "es-toolkit/compat";
6
6
  //#region src/Components/Tab/composables/useTab.ts
7
7
  var h = [
8
8
  "value",
@@ -15,7 +15,7 @@ var h = [
15
15
  function g(g) {
16
16
  let _ = c(), v = a(r, null);
17
17
  if (!v) throw Error("Tab must be used within a Tabs provider");
18
- let y = v, b = i(() => m({
18
+ let y = v, b = i(() => p({
19
19
  bridgeKeys: h,
20
20
  props: {
21
21
  ..._,
@@ -56,9 +56,9 @@ function g(g) {
56
56
  onKeydown: A,
57
57
  "aria-selected": T.value,
58
58
  tabindex: T.value ? 0 : -1,
59
- id: f(t.id, C.value),
60
- "aria-controls": p(t.id, C.value),
61
- class: d({
59
+ id: d(t.id, C.value),
60
+ "aria-controls": f(t.id, C.value),
61
+ class: u({
62
62
  "inline-flex cursor-pointer items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500/40 disabled:pointer-events-none disabled:opacity-50": !0,
63
63
  [t.tokenClasses.iconGap ?? ""]: !0,
64
64
  [t.tokenClasses.tabSize ?? ""]: !0,
@@ -67,19 +67,19 @@ function g(g) {
67
67
  [t.tokenClasses.tabVariantSelected ?? ""]: T.value,
68
68
  [t.tokenClasses.colorSelected ?? ""]: T.value,
69
69
  [t.tokenClasses.colorSelectedSoft ?? ""]: T.value && t.tokenClasses.softFill === !0,
70
- [u(O.value, "root") ?? ""]: !0
70
+ [m(O.value, "root") ?? ""]: !0
71
71
  })
72
72
  });
73
73
  }),
74
74
  selected: T,
75
- endIconBind: i(() => e(j.value?.endIcon, {}, d({
75
+ endIconBind: i(() => e(j.value?.endIcon, {}, u({
76
76
  "shrink-0": !0,
77
- [u(O.value, "endIcon") ?? ""]: !0
77
+ [m(O.value, "endIcon") ?? ""]: !0
78
78
  }))),
79
79
  endSlotBind: i(() => e(j.value?.end, {}, "inline-flex shrink-0 items-center")),
80
- startIconBind: i(() => e(j.value?.startIcon, {}, d({
80
+ startIconBind: i(() => e(j.value?.startIcon, {}, u({
81
81
  "shrink-0": !0,
82
- [u(O.value, "startIcon") ?? ""]: !0
82
+ [m(O.value, "startIcon") ?? ""]: !0
83
83
  }))),
84
84
  startSlotBind: i(() => e(j.value?.start, {}, "inline-flex shrink-0 items-center"))
85
85
  };
@@ -1,14 +1,14 @@
1
1
  import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
2
2
  import { TABS_INJECTION_KEY as r } from "../../Tabs/tabsInjectionKey.js";
3
3
  import { computed as i, inject as a, useAttrs as o } from "vue";
4
- import { get as s } from "es-toolkit/compat";
5
- import { cn as c, getAdjacentTabValue as l, getTabId as u, splitComponentProps as d } from "@bridge-ui/core";
4
+ import { cn as s, getAdjacentTabValue as c, getTabId as l, splitComponentProps as u } from "@bridge-ui/core";
5
+ import { get as d } from "es-toolkit/compat";
6
6
  //#region src/Components/TabList/composables/useTabList.ts
7
7
  var f = ["classes", "customProps"];
8
8
  function p(p) {
9
9
  let m = o(), h = a(r, null);
10
10
  if (!h) throw Error("TabList must be used within a Tabs provider");
11
- let g = h, _ = i(() => d({
11
+ let g = h, _ = i(() => u({
12
12
  bridgeKeys: f,
13
13
  props: {
14
14
  ...m,
@@ -22,10 +22,10 @@ function p(p) {
22
22
  props: () => _.value.componentProps
23
23
  });
24
24
  function x(e) {
25
- let t = g.value, n = t.orientation === "horizontal", r = n ? "ArrowRight" : "ArrowDown", i = n ? "ArrowLeft" : "ArrowUp", a = typeof document < "u" ? document.activeElement?.id : void 0, o = t.tabValues.find((e) => u(t.id, e) === a) ?? t.selected;
25
+ let t = g.value, n = t.orientation === "horizontal", r = n ? "ArrowRight" : "ArrowDown", i = n ? "ArrowLeft" : "ArrowUp", a = typeof document < "u" ? document.activeElement?.id : void 0, o = t.tabValues.find((e) => l(t.id, e) === a) ?? t.selected;
26
26
  if (e.key === r || e.key === i) {
27
27
  e.preventDefault();
28
- let n = e.key === r ? 1 : -1, i = l(t.tabValues, o, n, new Set(t.disabledValues));
28
+ let n = e.key === r ? 1 : -1, i = c(t.tabValues, o, n, new Set(t.disabledValues));
29
29
  t.focusTab(i), t.activation === "automatic" && t.setSelected(i);
30
30
  return;
31
31
  }
@@ -50,12 +50,12 @@ function p(p) {
50
50
  role: "tablist",
51
51
  onKeydown: x,
52
52
  "aria-orientation": t.orientation,
53
- class: c({
53
+ class: s({
54
54
  flex: !0,
55
55
  [t.tokenClasses.listOrientation ?? ""]: !0,
56
56
  [t.tokenClasses.listSize ?? ""]: !0,
57
57
  [t.tokenClasses.listVariant ?? ""]: !0,
58
- [s(b.value, "root") ?? ""]: !0
58
+ [d(b.value, "root") ?? ""]: !0
59
59
  })
60
60
  });
61
61
  })
@@ -1,8 +1,8 @@
1
1
  import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
2
2
  import { TABS_INJECTION_KEY as r } from "../../Tabs/tabsInjectionKey.js";
3
3
  import { computed as i, getCurrentInstance as a, inject as o, useAttrs as s } from "vue";
4
- import { get as c } from "es-toolkit/compat";
5
- import { cn as l, getTabId as u, getTabPanelId as d, splitComponentProps as f } from "@bridge-ui/core";
4
+ import { cn as c, getTabId as l, getTabPanelId as u, splitComponentProps as d } from "@bridge-ui/core";
5
+ import { get as f } from "es-toolkit/compat";
6
6
  //#region src/Components/TabPanel/composables/useTabPanel.ts
7
7
  var p = [
8
8
  "value",
@@ -13,7 +13,7 @@ var p = [
13
13
  function m(m) {
14
14
  let h = s(), g = o(r, null);
15
15
  if (!g) throw Error("TabPanel must be used within a Tabs provider");
16
- let _ = g, v = i(() => f({
16
+ let _ = g, v = i(() => d({
17
17
  props: {
18
18
  ...h,
19
19
  ...m
@@ -34,12 +34,12 @@ function m(m) {
34
34
  role: "tabpanel",
35
35
  hidden: !S.value,
36
36
  tabindex: S.value ? 0 : -1,
37
- id: d(t.id, x.value),
38
- "aria-labelledby": u(t.id, x.value),
39
- class: l({
37
+ id: u(t.id, x.value),
38
+ "aria-labelledby": l(t.id, x.value),
39
+ class: c({
40
40
  [t.tokenClasses.panelSize ?? ""]: !0,
41
41
  [t.tokenClasses.panelOrientation ?? ""]: !0,
42
- [c(w.value, "root") ?? ""]: !0
42
+ [f(w.value, "root") ?? ""]: !0
43
43
  })
44
44
  });
45
45
  }),
@@ -1,8 +1,8 @@
1
1
  import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
2
2
  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
- import { get as l } from "es-toolkit/compat";
5
- import { cn as u, getTabId as d, mergeBridgeUILayeredClasses as f, splitComponentProps as p } from "@bridge-ui/core";
4
+ import { cn as l, getTabId as u, mergeBridgeUILayeredClasses as d, splitComponentProps as f } from "@bridge-ui/core";
5
+ import { get as p } from "es-toolkit/compat";
6
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 = [
@@ -16,7 +16,7 @@ var v = [
16
16
  "orientation"
17
17
  ];
18
18
  function y(y, b, x, S) {
19
- let C = c(), w = s(), T = `bridge-tabs${C}`, E = o([]), D = o([]), O = o([]), k = i(() => p({
19
+ let C = c(), w = s(), T = `bridge-tabs${C}`, E = o([]), D = o([]), O = o([]), k = i(() => f({
20
20
  bridgeKeys: v,
21
21
  props: {
22
22
  ...w,
@@ -36,7 +36,7 @@ function y(y, b, x, S) {
36
36
  };
37
37
  }
38
38
  function F(e) {
39
- document.getElementById(d(T, e))?.focus();
39
+ document.getElementById(u(T, e))?.focus();
40
40
  }
41
41
  function I(e) {
42
42
  let t = O.value.findIndex((t) => t.value === e.value);
@@ -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?.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(() => ({
55
+ }), R = i(() => d(g, j.value?.tokens?.size)), z = i(() => d(_, j.value?.tokens?.variant)), B = i(() => d(m, j.value?.tokens?.color)), V = i(() => d(h, j.value?.tokens?.orientation)), H = i(() => p(R.value, A.value.size)), U = i(() => p(z.value, A.value.variant)), W = i(() => p(B.value, A.value.color)), G = i(() => p(V.value, A.value.orientation)), K = i(() => ({
56
56
  focusTab: F,
57
57
  id: T,
58
58
  setSelected: N,
@@ -66,20 +66,20 @@ function y(y, b, x, S) {
66
66
  activation: A.value.activation ?? "automatic",
67
67
  orientation: A.value.orientation ?? "horizontal",
68
68
  tokenClasses: {
69
- tabSize: l(H.value, "tab"),
70
- iconGap: l(H.value, "gap"),
71
- iconSize: l(H.value, "icon"),
72
- listSize: l(H.value, "list"),
73
- panelSize: l(H.value, "panel"),
74
- tabVariant: l(U.value, "tab"),
75
- listVariant: l(U.value, "list"),
76
- tabOrientation: l(G.value, "tab"),
77
- colorSelected: l(W.value, "tabSelected"),
78
- listOrientation: l(G.value, "list"),
79
- rootOrientation: l(G.value, "root"),
80
- panelOrientation: l(G.value, "panel"),
81
- tabVariantSelected: l(U.value, "tabSelected"),
82
- colorSelectedSoft: l(W.value, "tabSelectedSoft"),
69
+ tabSize: p(H.value, "tab"),
70
+ iconGap: p(H.value, "gap"),
71
+ iconSize: p(H.value, "icon"),
72
+ listSize: p(H.value, "list"),
73
+ panelSize: p(H.value, "panel"),
74
+ tabVariant: p(U.value, "tab"),
75
+ listVariant: p(U.value, "list"),
76
+ tabOrientation: p(G.value, "tab"),
77
+ colorSelected: p(W.value, "tabSelected"),
78
+ listOrientation: p(G.value, "list"),
79
+ rootOrientation: p(G.value, "root"),
80
+ panelOrientation: p(G.value, "panel"),
81
+ tabVariantSelected: p(U.value, "tabSelected"),
82
+ colorSelectedSoft: p(W.value, "tabSelectedSoft"),
83
83
  softFill: A.value.variant === "pill" || A.value.variant === "solid"
84
84
  }
85
85
  }));
@@ -87,9 +87,9 @@ function y(y, b, x, S) {
87
87
  let q = i(() => A.value.customProps);
88
88
  return {
89
89
  merged: A,
90
- rootBind: i(() => e(q.value?.root, k.value.inheritedAttrs, { class: u({
91
- [l(G.value, "root") ?? ""]: !0,
92
- [l(L.value, "root") ?? ""]: !0
90
+ rootBind: i(() => e(q.value?.root, k.value.inheritedAttrs, { class: l({
91
+ [p(G.value, "root") ?? ""]: !0,
92
+ [p(L.value, "root") ?? ""]: !0
93
93
  }) })),
94
94
  tabItems: O,
95
95
  contextValue: K
@@ -10,7 +10,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
10
10
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
11
  "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
12
12
  }>, {
13
- withErrorIcon: boolean;
13
+ showErrorIcon: boolean;
14
14
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
15
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
16
  declare const _default: typeof __VLS_export;
@@ -20,20 +20,20 @@ var g = /* @__PURE__ */ a({
20
20
  error: { type: Boolean },
21
21
  errorIcon: {},
22
22
  errorMessage: {},
23
+ hideErrorMessage: { type: Boolean },
23
24
  label: {},
24
25
  readonly: { type: Boolean },
25
26
  required: { type: Boolean },
26
27
  rounded: {},
28
+ showErrorIcon: {
29
+ type: Boolean,
30
+ default: !0
31
+ },
27
32
  size: {},
28
33
  slots: {},
29
34
  start: {},
30
35
  startIcon: {},
31
- variant: {},
32
- withErrorIcon: {
33
- type: Boolean,
34
- default: !0
35
- },
36
- withoutErrorMessage: { type: Boolean }
36
+ variant: {}
37
37
  }, {
38
38
  modelValue: {},
39
39
  modelModifiers: {}
@@ -4,13 +4,13 @@ export declare function useTextField(props: TextFieldOwnProps): {
4
4
  slots: Readonly<{
5
5
  [name: string]: import('vue').Slot<any> | undefined;
6
6
  }>;
7
- merged: import('vue').ComputedRef<Omit<import('../../FormField').FormFieldOwnProps, "color" | "size" | "rounded" | "variant" | "errorIcon" | "withErrorIcon"> & {
7
+ merged: import('vue').ComputedRef<Omit<import('../../FormField').FormFieldOwnProps, "color" | "size" | "rounded" | "variant" | "errorIcon" | "showErrorIcon"> & {
8
8
  color: NonNullable<keyof import('@bridge-ui/core').FormFieldColor | undefined>;
9
9
  size: NonNullable<keyof import('@bridge-ui/core').FormFieldSize | undefined>;
10
10
  rounded: NonNullable<keyof import('@bridge-ui/core').FormFieldRounded | undefined>;
11
11
  variant: NonNullable<keyof import('@bridge-ui/core').FormFieldVariant | undefined>;
12
12
  errorIcon: NonNullable<import('../../..').IconSource | undefined>;
13
- withErrorIcon: NonNullable<boolean | undefined>;
13
+ showErrorIcon: NonNullable<boolean | undefined>;
14
14
  }>;
15
15
  control: import('vue').ComputedRef<string>;
16
16
  endBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
@@ -427,7 +427,7 @@ 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">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "required" | "description" | "errorMessage" | "readonly" | "withoutErrorMessage" | "errorIcon" | "withErrorIcon" | "corner">>>>;
430
+ }, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "required" | "description" | "errorMessage" | "hideErrorMessage" | "readonly" | "errorIcon" | "showErrorIcon" | "corner">>>>;
431
431
  isNotched: import('vue').ComputedRef<boolean>;
432
432
  isStacked: import('vue').ComputedRef<boolean>;
433
433
  startBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
@@ -675,5 +675,5 @@ export declare function useTextField(props: TextFieldOwnProps): {
675
675
  onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
676
676
  onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
677
677
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
678
- }, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "required" | "description" | "errorMessage" | "readonly" | "withoutErrorMessage" | "errorIcon" | "withErrorIcon" | "corner">>>>;
678
+ }, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "required" | "description" | "errorMessage" | "hideErrorMessage" | "readonly" | "errorIcon" | "showErrorIcon" | "corner">>>>;
679
679
  };
@@ -13,7 +13,7 @@ function n(n) {
13
13
  rounded: "md",
14
14
  color: "primary",
15
15
  variant: "outline",
16
- withErrorIcon: !0
16
+ showErrorIcon: !0
17
17
  });
18
18
  return {
19
19
  formField: i,
@@ -10,7 +10,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
10
10
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
11
  "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
12
12
  }>, {
13
- withErrorIcon: boolean;
13
+ showErrorIcon: boolean;
14
14
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
15
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
16
  declare const _default: typeof __VLS_export;
@@ -23,20 +23,20 @@ var v = /* @__PURE__ */ a({
23
23
  error: { type: Boolean },
24
24
  errorIcon: {},
25
25
  errorMessage: {},
26
+ hideErrorMessage: { type: Boolean },
26
27
  label: {},
27
28
  readonly: { type: Boolean },
28
29
  required: { type: Boolean },
29
30
  rounded: {},
31
+ showErrorIcon: {
32
+ type: Boolean,
33
+ default: !0
34
+ },
30
35
  size: {},
31
36
  slots: {},
32
37
  start: {},
33
38
  startIcon: {},
34
- variant: {},
35
- withErrorIcon: {
36
- type: Boolean,
37
- default: !0
38
- },
39
- withoutErrorMessage: { type: Boolean }
39
+ variant: {}
40
40
  }, {
41
41
  modelValue: {},
42
42
  modelModifiers: {}
@@ -5,13 +5,13 @@ export declare function useTextarea(props: TextareaOwnProps, textareaRef: Ref<nu
5
5
  slots: Readonly<{
6
6
  [name: string]: import('vue').Slot<any> | undefined;
7
7
  }>;
8
- merged: import('vue').ComputedRef<Omit<import('../../FormField').FormFieldOwnProps, "color" | "size" | "rounded" | "variant" | "errorIcon" | "withErrorIcon"> & {
8
+ merged: import('vue').ComputedRef<Omit<import('../../FormField').FormFieldOwnProps, "color" | "size" | "rounded" | "variant" | "errorIcon" | "showErrorIcon"> & {
9
9
  color: NonNullable<keyof import('@bridge-ui/core').FormFieldColor | undefined>;
10
10
  size: NonNullable<keyof import('@bridge-ui/core').FormFieldSize | undefined>;
11
11
  rounded: NonNullable<keyof import('@bridge-ui/core').FormFieldRounded | undefined>;
12
12
  variant: NonNullable<keyof import('@bridge-ui/core').FormFieldVariant | undefined>;
13
13
  errorIcon: NonNullable<import('../../..').IconSource | undefined>;
14
- withErrorIcon: NonNullable<boolean | undefined>;
14
+ showErrorIcon: NonNullable<boolean | undefined>;
15
15
  }>;
16
16
  control: import('vue').ComputedRef<string>;
17
17
  endBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
@@ -428,7 +428,7 @@ 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">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "required" | "description" | "errorMessage" | "readonly" | "withoutErrorMessage" | "errorIcon" | "withErrorIcon" | "corner">>>>;
431
+ }, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "required" | "description" | "errorMessage" | "hideErrorMessage" | "readonly" | "errorIcon" | "showErrorIcon" | "corner">>>>;
432
432
  isNotched: import('vue').ComputedRef<boolean>;
433
433
  isStacked: import('vue').ComputedRef<boolean>;
434
434
  startBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
@@ -677,7 +677,7 @@ export declare function useTextarea(props: TextareaOwnProps, textareaRef: Ref<nu
677
677
  onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
678
678
  onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
679
679
  onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
680
- }, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "required" | "description" | "errorMessage" | "readonly" | "withoutErrorMessage" | "errorIcon" | "withErrorIcon" | "corner">>>, {
680
+ }, Partial<Omit<Omit<import('../../FormField').FormFieldOwnProps, "field">, "error" | "color" | "end" | "size" | "classes" | "customProps" | "rounded" | "variant" | "label" | "disabled" | "endIcon" | "startIcon" | "start" | "required" | "description" | "errorMessage" | "hideErrorMessage" | "readonly" | "errorIcon" | "showErrorIcon" | "corner">>>, {
681
681
  rows?: string | number | undefined;
682
682
  onInput?: ((event: Event) => void) | undefined;
683
683
  }>>;
@@ -1,8 +1,8 @@
1
1
  import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
2
2
  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
- import { get as c, isNil as l, omit as u } from "es-toolkit/compat";
5
- import { adjustAutosizeTextareaHeight as d, cn as f, mergeBridgeUILayeredClasses as p } from "@bridge-ui/core";
4
+ import { adjustAutosizeTextareaHeight as c, cn as l, mergeBridgeUILayeredClasses as u } from "@bridge-ui/core";
5
+ import { get as d, isNil as f, omit as p } from "es-toolkit/compat";
6
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) {
@@ -24,8 +24,8 @@ function h(h, g) {
24
24
  let e = _.rows;
25
25
  return S.value ? e ?? 1 : e;
26
26
  }), T = r(() => ({
27
- ...u(_, ["rows"]),
28
- ...u(h, [
27
+ ...p(_, ["rows"]),
28
+ ...p(h, [
29
29
  "autosize",
30
30
  "resize",
31
31
  "likeInput",
@@ -37,18 +37,18 @@ function h(h, g) {
37
37
  rounded: "md",
38
38
  color: "primary",
39
39
  variant: "outline",
40
- withErrorIcon: !0
40
+ showErrorIcon: !0
41
41
  }, {
42
42
  control: () => "textarea",
43
43
  likeInput: () => S.value
44
- }), 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) => {
45
- !e || !C.value || d(e);
44
+ }), E = i(() => C.value ? "none" : b.value.resize ?? "none"), D = i(() => d(u(m, y.value?.tokens?.resize), E.value ?? "none")), O = i(() => _.onInput), k = (e) => {
45
+ !e || !C.value || c(e);
46
46
  }, A = (e) => {
47
47
  k(e.target), O.value?.(e);
48
48
  }, j = i(() => e(T.inputBind.value, {
49
49
  ...C.value ? { onInput: A } : {},
50
- ...l(w.value) ? {} : { rows: w.value }
51
- }, f({
50
+ ...f(w.value) ? {} : { rows: w.value }
51
+ }, l({
52
52
  "flex-1 min-w-0": S.value,
53
53
  "overflow-hidden": C.value,
54
54
  "min-w-0 flex-none": !S.value,
@@ -1,7 +1,7 @@
1
1
  import { mergePartBind as e, resolveVnodeRefElement as t, useBridgeUIComponent as ee, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
2
2
  import { computed as r, nextTick as i, onBeforeUnmount as a, ref as o, toValue as s, useAttrs as c, useId as l, watch as u } from "vue";
3
- import { get as d, omit as te } from "es-toolkit/compat";
4
- import { LAYER_STACK_BASE_Z_INDEX as f, acquireLayerStackOrder as p, cn as m, createPositionable as ne, mergeBridgeUILayeredClasses as h, pushLayerStack as g, splitComponentProps as _ } from "@bridge-ui/core";
3
+ import { LAYER_STACK_BASE_Z_INDEX as d, acquireLayerStackOrder as f, cn as p, createPositionable as m, mergeBridgeUILayeredClasses as h, pushLayerStack as te, splitComponentProps as ne } from "@bridge-ui/core";
4
+ import { get as g, omit as _ } from "es-toolkit/compat";
5
5
  import { colorProps as v, roundedProps as y, sizeProps as re } from "@bridge-ui/core/Tokens/Tooltip";
6
6
  //#region src/Components/Tooltip/composables/useTooltip.ts
7
7
  var b = [
@@ -21,11 +21,11 @@ var b = [
21
21
  "customProps"
22
22
  ];
23
23
  function x(x, ie, S = {}) {
24
- let C = c(), w = l(), T = o(!1), E = o(""), D = o(null), O = o(null), k = o(null), A = null, j = !1, M = null, N = null, P = null, F = null, I = o(f), L = r(() => s(S.show ?? !1));
24
+ let C = c(), w = l(), T = o(!1), E = o(""), D = o(null), O = o(null), k = o(null), A = null, j = !1, M = null, N = null, P = null, F = null, I = o(d), L = r(() => s(S.show ?? !1));
25
25
  function R(e) {
26
26
  S.show && (S.show.value = e), S.onShowChange?.(e);
27
27
  }
28
- let z = r(() => _({
28
+ let z = r(() => ne({
29
29
  bridgeKeys: b,
30
30
  props: {
31
31
  ...C,
@@ -38,7 +38,7 @@ function x(x, ie, S = {}) {
38
38
  }), H = r(() => B.value.customProps), U = n({
39
39
  entry: V,
40
40
  props: () => z.value.componentProps
41
- }), W = r(() => B.value.teleportTo !== !1), G = r(() => d(h(v, V.value?.tokens?.color), B.value.color)), K = r(() => d(h(re, V.value?.tokens?.size), B.value.size)), q = r(() => d(h(y, V.value?.tokens?.rounded), B.value.rounded)), J = r(() => te(z.value.inheritedAttrs, ["anchorEl", "onShowChange"]));
41
+ }), W = r(() => B.value.teleportTo !== !1), G = r(() => g(h(v, V.value?.tokens?.color), B.value.color)), K = r(() => g(h(re, V.value?.tokens?.size), B.value.size)), q = r(() => g(h(y, V.value?.tokens?.rounded), B.value.rounded)), J = r(() => _(z.value.inheritedAttrs, ["anchorEl", "onShowChange"]));
42
42
  function Y() {
43
43
  P !== null && (clearTimeout(P), P = null), F !== null && (clearTimeout(F), F = null);
44
44
  }
@@ -89,7 +89,7 @@ function x(x, ie, S = {}) {
89
89
  function de() {
90
90
  Q();
91
91
  let e = ae(), t = O.value;
92
- !L.value || !e || !t || (N = ne({
92
+ !L.value || !e || !t || (N = m({
93
93
  floating: t,
94
94
  reference: e,
95
95
  shiftCrossAxis: !1,
@@ -105,18 +105,18 @@ function x(x, ie, S = {}) {
105
105
  }));
106
106
  }
107
107
  function $() {
108
- M?.release(), M = null, E.value = "", I.value = f;
108
+ M?.release(), M = null, E.value = "", I.value = d;
109
109
  }
110
110
  function fe() {
111
111
  if ($(), !L.value) {
112
112
  A = null;
113
113
  return;
114
114
  }
115
- A === null && (A = p());
115
+ A === null && (A = f());
116
116
  function e() {
117
117
  L.value && (Y(), R(!1));
118
118
  }
119
- M = g({
119
+ M = te({
120
120
  order: A,
121
121
  lockScroll: !1,
122
122
  onEscape: e
@@ -156,9 +156,9 @@ function x(x, ie, S = {}) {
156
156
  }, { immediate: !0 }), a(() => {
157
157
  Y(), Q(), $();
158
158
  });
159
- let ge = r(() => e(H.value?.root, J.value, m({
159
+ let ge = r(() => e(H.value?.root, J.value, p({
160
160
  "relative inline-flex": !0,
161
- [d(U.value, "root") ?? ""]: !0
161
+ [g(U.value, "root") ?? ""]: !0
162
162
  }))), _e = r(() => e(H.value?.trigger, {}, {
163
163
  onBlur: le,
164
164
  onFocus: ce,
@@ -166,20 +166,20 @@ function x(x, ie, S = {}) {
166
166
  onPointerenter: oe,
167
167
  onPointerleave: se,
168
168
  "aria-describedby": L.value ? w : void 0,
169
- class: m({
169
+ class: p({
170
170
  "inline-flex w-fit max-w-full outline-hidden": !0,
171
- [d(U.value, "trigger") ?? ""]: !0
171
+ [g(U.value, "trigger") ?? ""]: !0
172
172
  })
173
173
  })), ve = r(() => e(H.value?.content, {}, {
174
174
  id: w,
175
175
  role: "tooltip",
176
176
  style: { zIndex: I.value },
177
- class: m({
177
+ class: p({
178
178
  "pointer-events-none absolute w-max max-w-xs font-medium shadow-md": !0,
179
179
  [G.value?.content ?? ""]: !0,
180
180
  [K.value?.content ?? ""]: !0,
181
181
  [q.value ?? ""]: !0,
182
- [d(U.value, "content") ?? ""]: !0
182
+ [g(U.value, "content") ?? ""]: !0
183
183
  })
184
184
  }));
185
185
  return {
@@ -190,10 +190,10 @@ function x(x, ie, S = {}) {
190
190
  tooltipId: w,
191
191
  arrowBind: r(() => B.value.arrow ? e(H.value?.arrow, {}, {
192
192
  "aria-hidden": !0,
193
- class: m({
193
+ class: p({
194
194
  "pointer-events-none absolute size-2 rotate-45": !0,
195
195
  [G.value?.arrow ?? ""]: !0,
196
- [d(U.value, "arrow") ?? ""]: !0
196
+ [g(U.value, "arrow") ?? ""]: !0
197
197
  })
198
198
  }) : null),
199
199
  isPortaled: W,
@@ -1,8 +1,11 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { BridgeUIComponentsConfig, BridgeUIGlobal } from '@bridge-ui/core';
2
+ import { BridgeUIComponentsConfig, BridgeUIGlobal, Direction } from '@bridge-ui/core';
3
3
  export interface BridgeUIContextApi {
4
4
  components: ComputedRef<BridgeUIComponentsConfig>;
5
5
  global: ComputedRef<BridgeUIGlobal>;
6
6
  setComponents: (patch: BridgeUIComponentsConfig) => void;
7
+ setDirection: (direction: Direction) => void;
7
8
  setGlobal: (patch: Partial<BridgeUIGlobal>) => void;
9
+ setLocale: (locale: string) => void;
10
+ setTheme: (theme: string) => void;
8
11
  }