@bridge-ui/vue 0.0.5 → 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 (152) 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 -0
  5. package/dist/Adapters/I18n/index.js +2 -0
  6. package/dist/Adapters/I18n/useI18nAdapter.d.ts +16 -0
  7. package/dist/Adapters/I18n/useI18nAdapter.js +18 -0
  8. package/dist/Adapters/Icon/iconSource.types.d.ts +11 -0
  9. package/dist/Adapters/Icon/index.d.ts +2 -0
  10. package/dist/Adapters/Icon/index.js +2 -0
  11. package/dist/Adapters/Icon/useIconAdapter.d.ts +11 -0
  12. package/dist/Adapters/Icon/useIconAdapter.js +13 -0
  13. package/dist/Adapters/index.d.ts +3 -0
  14. package/dist/Adapters/index.js +3 -0
  15. package/dist/Components/Alert/Alert.vue_vue_type_script_setup_true_lang.js +1 -5
  16. package/dist/Components/Alert/alert.types.d.ts +2 -2
  17. package/dist/Components/Alert/alertDefaultIcons.d.ts +2 -2
  18. package/dist/Components/Alert/alertDefaultIcons.js +9 -10
  19. package/dist/Components/Alert/composables/useAlert.d.ts +2 -2
  20. package/dist/Components/Alert/composables/useAlert.js +17 -17
  21. package/dist/Components/Autocomplete/Autocomplete.js +5 -0
  22. package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +40 -0
  23. package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +197 -0
  24. package/dist/Components/Autocomplete/AutocompleteOption.js +5 -0
  25. package/dist/Components/Autocomplete/AutocompleteOption.vue.d.ts +4 -0
  26. package/dist/Components/Autocomplete/AutocompleteOption.vue_vue_type_script_setup_true_lang.js +32 -0
  27. package/dist/Components/Autocomplete/autocomplete.types.d.ts +285 -0
  28. package/dist/Components/Autocomplete/autocompleteInjectionKey.d.ts +7 -0
  29. package/dist/Components/Autocomplete/autocompleteInjectionKey.js +4 -0
  30. package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +762 -0
  31. package/dist/Components/Autocomplete/composables/useAutocomplete.js +382 -0
  32. package/dist/Components/Autocomplete/index.d.ts +4 -0
  33. package/dist/Components/Autocomplete/index.js +4 -0
  34. package/dist/Components/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js +1 -1
  35. package/dist/Components/Avatar/avatar.types.d.ts +2 -2
  36. package/dist/Components/Avatar/composables/useAvatar.d.ts +1 -1
  37. package/dist/Components/Avatar/composables/useAvatar.js +46 -47
  38. package/dist/Components/Badge/composables/useBadge.js +8 -8
  39. package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +24 -25
  40. package/dist/Components/Button/button.types.d.ts +4 -4
  41. package/dist/Components/Button/composables/useButton.d.ts +1 -1
  42. package/dist/Components/Button/composables/useButton.js +14 -14
  43. package/dist/Components/Card/composables/useCard.js +27 -27
  44. package/dist/Components/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +27 -27
  45. package/dist/Components/Checkbox/composables/useCheckbox.d.ts +4 -4
  46. package/dist/Components/Checkbox/composables/useCheckbox.js +9 -9
  47. package/dist/Components/Chip/Chip.vue_vue_type_script_setup_true_lang.js +8 -9
  48. package/dist/Components/Chip/composables/useChip.js +6 -6
  49. package/dist/Components/Divider/composables/useDivider.js +5 -5
  50. package/dist/Components/Drawer/composables/useDrawer.js +23 -23
  51. package/dist/Components/FormControl/FormControl.vue_vue_type_script_setup_true_lang.js +1 -1
  52. package/dist/Components/FormControl/composables/useFormControl.d.ts +3 -3
  53. package/dist/Components/FormControl/composables/useFormControl.js +12 -12
  54. package/dist/Components/FormControl/formControl.types.d.ts +6 -6
  55. package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  56. package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  57. package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  58. package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  59. package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  60. package/dist/Components/FormField/composables/useFormField.d.ts +6 -6
  61. package/dist/Components/FormField/composables/useFormField.js +108 -109
  62. package/dist/Components/FormField/formField.types.d.ts +19 -19
  63. package/dist/Components/Icon/Icon.vue_vue_type_script_setup_true_lang.js +7 -7
  64. package/dist/Components/Icon/composables/useIcon.d.ts +2 -0
  65. package/dist/Components/Icon/composables/useIcon.js +20 -18
  66. package/dist/Components/Icon/icon.types.d.ts +3 -3
  67. package/dist/Components/Label/composables/useLabel.d.ts +1 -1
  68. package/dist/Components/Label/composables/useLabel.js +5 -5
  69. package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +2 -2
  70. package/dist/Components/Link/composables/useLink.js +9 -9
  71. package/dist/Components/Link/link.types.d.ts +3 -3
  72. package/dist/Components/List/composables/useList.js +6 -6
  73. package/dist/Components/ListItem/composables/useListItem.d.ts +2 -2
  74. package/dist/Components/ListItem/composables/useListItem.js +81 -82
  75. package/dist/Components/ListItem/listItem.types.d.ts +2 -2
  76. package/dist/Components/ListSection/composables/useListSection.js +8 -8
  77. package/dist/Components/Listbox/Listbox.vue.d.ts +0 -2
  78. package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +75 -74
  79. package/dist/Components/Listbox/composables/useListbox.js +7 -7
  80. package/dist/Components/Listbox/index.js +3 -3
  81. package/dist/Components/Menu/composables/useMenu.js +43 -43
  82. package/dist/Components/Modal/composables/useModal.js +18 -18
  83. package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +43 -43
  84. package/dist/Components/NumberField/composables/useNumberField.d.ts +8 -8
  85. package/dist/Components/NumberField/composables/useNumberField.js +9 -9
  86. package/dist/Components/OtpField/OtpField.js +5 -0
  87. package/dist/Components/OtpField/OtpField.vue.d.ts +31 -0
  88. package/dist/Components/OtpField/OtpField.vue_vue_type_script_setup_true_lang.js +80 -0
  89. package/dist/Components/OtpField/OtpFieldLabel.js +5 -0
  90. package/dist/Components/OtpField/OtpFieldLabel.vue.d.ts +7 -0
  91. package/dist/Components/OtpField/OtpFieldLabel.vue_vue_type_script_setup_true_lang.js +16 -0
  92. package/dist/Components/OtpField/composables/useOtpField.d.ts +460 -0
  93. package/dist/Components/OtpField/composables/useOtpField.js +212 -0
  94. package/dist/Components/OtpField/index.d.ts +4 -0
  95. package/dist/Components/OtpField/index.js +3 -0
  96. package/dist/Components/OtpField/otpField.types.d.ts +290 -0
  97. package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +27 -27
  98. package/dist/Components/PasswordField/composables/usePasswordField.d.ts +8 -8
  99. package/dist/Components/PasswordField/composables/usePasswordField.js +2 -2
  100. package/dist/Components/Progress/composables/useProgress.js +11 -11
  101. package/dist/Components/Radio/Radio.vue_vue_type_script_setup_true_lang.js +2 -2
  102. package/dist/Components/Radio/composables/useRadio.d.ts +4 -4
  103. package/dist/Components/Radio/composables/useRadio.js +9 -9
  104. package/dist/Components/Select/Select.vue.d.ts +1 -2
  105. package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +72 -68
  106. package/dist/Components/Select/composables/useSelect.d.ts +10 -10
  107. package/dist/Components/Select/composables/useSelect.js +193 -193
  108. package/dist/Components/Skeleton/composables/useSkeleton.js +5 -5
  109. package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +81 -75
  110. package/dist/Components/Snackbar/composables/useSnackbar.d.ts +4 -4
  111. package/dist/Components/Snackbar/composables/useSnackbar.js +115 -115
  112. package/dist/Components/Snackbar/snackbar.types.d.ts +2 -2
  113. package/dist/Components/Snackbar/snackbarDefaultIcons.d.ts +3 -3
  114. package/dist/Components/Snackbar/snackbarDefaultIcons.js +9 -10
  115. package/dist/Components/Spinner/composables/useSpinner.js +11 -11
  116. package/dist/Components/Switch/Switch.vue_vue_type_script_setup_true_lang.js +2 -2
  117. package/dist/Components/Switch/composables/useSwitch.d.ts +4 -4
  118. package/dist/Components/Switch/composables/useSwitch.js +9 -9
  119. package/dist/Components/Tab/Tab.vue_vue_type_script_setup_true_lang.js +2 -2
  120. package/dist/Components/Tab/composables/useTab.js +11 -11
  121. package/dist/Components/Tab/tab.types.d.ts +3 -3
  122. package/dist/Components/TabItem/TabItem.vue_vue_type_script_setup_true_lang.js +2 -2
  123. package/dist/Components/TabItem/tabItem.types.d.ts +3 -3
  124. package/dist/Components/TabList/composables/useTabList.js +7 -7
  125. package/dist/Components/TabPanel/composables/useTabPanel.js +7 -7
  126. package/dist/Components/Tabs/composables/useTabs.d.ts +468 -4
  127. package/dist/Components/Tabs/composables/useTabs.js +22 -22
  128. package/dist/Components/Tabs/tabsInjectionKey.d.ts +5 -5
  129. package/dist/Components/TextField/TextField.vue.d.ts +1 -1
  130. package/dist/Components/TextField/TextField.vue_vue_type_script_setup_true_lang.js +6 -6
  131. package/dist/Components/TextField/composables/useTextField.d.ts +8 -8
  132. package/dist/Components/TextField/composables/useTextField.js +1 -1
  133. package/dist/Components/Textarea/Textarea.vue.d.ts +1 -1
  134. package/dist/Components/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +6 -6
  135. package/dist/Components/Textarea/composables/useTextarea.d.ts +8 -8
  136. package/dist/Components/Textarea/composables/useTextarea.js +9 -9
  137. package/dist/Components/Tooltip/Tooltip.js +5 -0
  138. package/dist/Components/Tooltip/Tooltip.vue.d.ts +35 -0
  139. package/dist/Components/Tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +73 -0
  140. package/dist/Components/Tooltip/composables/useTooltip.d.ts +50 -0
  141. package/dist/Components/Tooltip/composables/useTooltip.js +208 -0
  142. package/dist/Components/Tooltip/index.d.ts +4 -0
  143. package/dist/Components/Tooltip/index.js +3 -0
  144. package/dist/Components/Tooltip/tooltip.types.d.ts +166 -0
  145. package/dist/Provider/bridgeUITypes.d.ts +4 -1
  146. package/dist/Provider/createBridgeUIApi.js +15 -2
  147. package/dist/Utils/index.js +7 -7
  148. package/dist/Utils/useBreakpoint.js +7 -7
  149. package/dist/augments.d.ts +2 -2
  150. package/dist/index.d.ts +11 -1
  151. package/dist/index.js +84 -76
  152. package/package.json +21 -3
@@ -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
- errorIcon: import('@lucide/vue').LucideIcon;
13
- withErrorIcon: NonNullable<boolean | undefined>;
12
+ errorIcon: NonNullable<import('../../..').IconSource | 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, {}>>;
@@ -165,13 +165,13 @@ export declare function useTextField(props: TextFieldOwnProps): {
165
165
  'aria-valuenow'?: (string | number) | undefined;
166
166
  'aria-valuetext'?: string | undefined | undefined;
167
167
  accesskey?: string | undefined | undefined;
168
- contenteditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
168
+ contenteditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
169
169
  contextmenu?: string | undefined | undefined;
170
170
  dir?: string | undefined | undefined;
171
171
  draggable?: (boolean | "true" | "false") | undefined;
172
172
  enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
173
173
  enterKeyHint?: "done" | "enter" | "go" | "next" | "previous" | "search" | "send" | undefined;
174
- hidden?: "" | "until-found" | (boolean | "true" | "false") | "hidden" | undefined;
174
+ hidden?: "" | "until-found" | "hidden" | (boolean | "true" | "false") | undefined;
175
175
  inert?: (boolean | "true" | "false") | undefined;
176
176
  placeholder?: string | undefined | undefined;
177
177
  spellcheck?: (boolean | "true" | "false") | undefined;
@@ -205,7 +205,7 @@ export declare function useTextField(props: TextFieldOwnProps): {
205
205
  }>>;
206
206
  controlId: import('vue').ComputedRef<string>;
207
207
  errorBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
208
- errorIcon: import('vue').ComputedRef<import('@lucide/vue').LucideIcon>;
208
+ errorIcon: import('vue').ComputedRef<NonNullable<import('../../..').IconSource | undefined>>;
209
209
  inputBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", {
210
210
  id: string;
211
211
  disabled: boolean;
@@ -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">, "color" | "end" | "size" | "classes" | "customProps" | "error" | "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">, "color" | "end" | "size" | "classes" | "customProps" | "error" | "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
- errorIcon: import('@lucide/vue').LucideIcon;
14
- withErrorIcon: NonNullable<boolean | undefined>;
13
+ errorIcon: NonNullable<import('../../..').IconSource | 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, {}>>;
@@ -166,13 +166,13 @@ export declare function useTextarea(props: TextareaOwnProps, textareaRef: Ref<nu
166
166
  'aria-valuenow'?: (string | number) | undefined;
167
167
  'aria-valuetext'?: string | undefined | undefined;
168
168
  accesskey?: string | undefined | undefined;
169
- contenteditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
169
+ contenteditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
170
170
  contextmenu?: string | undefined | undefined;
171
171
  dir?: string | undefined | undefined;
172
172
  draggable?: (boolean | "true" | "false") | undefined;
173
173
  enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
174
174
  enterKeyHint?: "done" | "enter" | "go" | "next" | "previous" | "search" | "send" | undefined;
175
- hidden?: "" | "until-found" | (boolean | "true" | "false") | "hidden" | undefined;
175
+ hidden?: "" | "until-found" | "hidden" | (boolean | "true" | "false") | undefined;
176
176
  inert?: (boolean | "true" | "false") | undefined;
177
177
  placeholder?: string | undefined | undefined;
178
178
  spellcheck?: (boolean | "true" | "false") | undefined;
@@ -206,7 +206,7 @@ export declare function useTextarea(props: TextareaOwnProps, textareaRef: Ref<nu
206
206
  }>>;
207
207
  controlId: import('vue').ComputedRef<string>;
208
208
  errorBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
209
- errorIcon: import('vue').ComputedRef<import('@lucide/vue').LucideIcon>;
209
+ errorIcon: import('vue').ComputedRef<NonNullable<import('../../..').IconSource | undefined>>;
210
210
  inputBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", {
211
211
  id: string;
212
212
  disabled: boolean;
@@ -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">, "color" | "end" | "size" | "classes" | "customProps" | "error" | "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">, "color" | "end" | "size" | "classes" | "customProps" | "error" | "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,
@@ -0,0 +1,5 @@
1
+ import e from "./Tooltip.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/Components/Tooltip/Tooltip.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,35 @@
1
+ import { TooltipOwnProps, TooltipSlots } from './tooltip.types';
2
+ type __VLS_Slots = TooltipSlots;
3
+ type __VLS_Props = TooltipOwnProps;
4
+ type __VLS_ModelProps = {
5
+ modelValue?: boolean;
6
+ };
7
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: boolean) => any;
10
+ "show-change": (show: boolean) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
13
+ "onShow-change"?: ((show: boolean) => any) | undefined;
14
+ }>, {
15
+ color: import('@bridge-ui/core').MergeProps<import('@bridge-ui/core').TooltipColor, import('./tooltip.types').TooltipColorOverrides>;
16
+ offset: number;
17
+ size: import('@bridge-ui/core').MergeProps<import('@bridge-ui/core').TooltipSize, import('./tooltip.types').TooltipSizeOverrides>;
18
+ rounded: import('@bridge-ui/core').MergeProps<import('@bridge-ui/core').TooltipRounded, import('./tooltip.types').TooltipRoundedOverrides>;
19
+ disabled: boolean;
20
+ anchorEl: null | HTMLElement;
21
+ placement: import('@floating-ui/utils').Placement;
22
+ strategy: import('@bridge-ui/core').PositionStrategy;
23
+ teleportTo: false | string;
24
+ arrow: boolean;
25
+ closeDelay: number;
26
+ openDelay: number;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ type __VLS_WithSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,73 @@
1
+ import { hasNamedSlot as e, resolveNamedSlot as t, resolveSlotOrProp as n } from "../../Utils/slotOrProp.js";
2
+ import { useTooltip as r } from "./composables/useTooltip.js";
3
+ import { Fragment as i, Teleport as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, normalizeProps as m, openBlock as h, resolveDynamicComponent as g, unref as _, useModel as v, useSlots as y } from "vue";
4
+ //#region src/Components/Tooltip/Tooltip.vue?vue&type=script&setup=true&lang.ts
5
+ var b = /* @__PURE__ */ d({
6
+ inheritAttrs: !1,
7
+ __name: "Tooltip",
8
+ props: /* @__PURE__ */ f({
9
+ anchorEl: { default: null },
10
+ arrow: {
11
+ type: Boolean,
12
+ default: !0
13
+ },
14
+ classes: {},
15
+ closeDelay: { default: 0 },
16
+ color: { default: "dark" },
17
+ content: {},
18
+ customProps: {},
19
+ disabled: {
20
+ type: Boolean,
21
+ default: !1
22
+ },
23
+ offset: { default: 8 },
24
+ onShowChange: {},
25
+ openDelay: { default: 200 },
26
+ placement: { default: "top" },
27
+ rounded: { default: "md" },
28
+ size: { default: "md" },
29
+ strategy: { default: "fixed" },
30
+ teleportTo: {
31
+ type: [Boolean, String],
32
+ default: "body"
33
+ }
34
+ }, {
35
+ modelValue: {
36
+ type: Boolean,
37
+ default: !1
38
+ },
39
+ modelModifiers: {}
40
+ }),
41
+ emits: /* @__PURE__ */ f(["show-change"], ["update:modelValue"]),
42
+ setup(d, { emit: f }) {
43
+ let b = y(), x = f, S = d, { merged: C, mounted: w, rootBind: T, arrowBind: E, triggerBind: D, contentBind: O, setArrowRef: k, setTriggerRef: A, setContentRef: j } = r(S, {
44
+ offset: 8,
45
+ size: "md",
46
+ arrow: !0,
47
+ color: "dark",
48
+ rounded: "md",
49
+ closeDelay: 0,
50
+ openDelay: 200,
51
+ placement: "top",
52
+ strategy: "fixed",
53
+ teleportTo: "body"
54
+ }, {
55
+ show: v(d, "modelValue"),
56
+ onShowChange: (e) => {
57
+ S.onShowChange?.(e), x("show-change", e);
58
+ }
59
+ }), M = o(() => e(b, "trigger")), N = o(() => n(b, "default", C.value.content)), P = o(() => C.value.teleportTo === !1), F = o(() => C.value.teleportTo === !1 ? "body" : C.value.teleportTo);
60
+ return (e, n) => (h(), l(i, null, [M.value ? (h(), l("div", m(p({ key: 0 }, _(T))), [u("div", p({ ref: _(A) }, _(D)), [(h(), s(g(_(t)(_(b), "trigger"))))], 16)], 16)) : c("", !0), (h(), s(a, {
61
+ to: F.value,
62
+ disabled: P.value
63
+ }, [_(w) ? (h(), l("div", p({
64
+ key: 0,
65
+ ref: _(j)
66
+ }, _(O)), [(h(), s(g(N.value))), _(E) ? (h(), l("div", p({
67
+ key: 0,
68
+ ref: _(k)
69
+ }, _(E)), null, 16)) : c("", !0)], 16)) : c("", !0)], 8, ["to", "disabled"]))], 64));
70
+ }
71
+ });
72
+ //#endregion
73
+ export { b as default };
@@ -0,0 +1,50 @@
1
+ import { ComponentPublicInstance, Ref } from 'vue';
2
+ import { LibDefaultsShape, MergeLibDefaults } from '@bridge-ui/core';
3
+ import { TooltipOwnProps, TooltipProps } from '../tooltip.types';
4
+ type TooltipLibDefaults = LibDefaultsShape<TooltipOwnProps, "size" | "arrow" | "color" | "offset" | "rounded" | "strategy" | "openDelay" | "placement" | "closeDelay" | "teleportTo">;
5
+ type TooltipMerged = MergeLibDefaults<TooltipOwnProps, TooltipLibDefaults>;
6
+ export type TooltipOptions = {
7
+ /**
8
+ * Called when `show` should change (controlled state).
9
+ */
10
+ onShowChange?: (show: boolean) => void;
11
+ /**
12
+ * Whether the tooltip is visible (`defineModel()` / `v-model`).
13
+ *
14
+ * @default false
15
+ */
16
+ show?: Ref<boolean>;
17
+ };
18
+ export declare function useTooltip(props: TooltipOwnProps, libDefaults: TooltipLibDefaults, options?: TooltipOptions): {
19
+ show: import('vue').ComputedRef<boolean>;
20
+ merged: import('vue').ComputedRef<TooltipMerged>;
21
+ mounted: Ref<boolean, boolean>;
22
+ rootBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, Omit<Omit<TooltipProps, "color" | "offset" | "size" | "classes" | "customProps" | "rounded" | "disabled" | "placement" | "strategy" | "teleportTo" | "content" | "arrow" | "closeDelay" | "openDelay">, "anchorEl" | "onShowChange">>>;
23
+ tooltipId: string;
24
+ arrowBind: import('vue').ComputedRef<({
25
+ "aria-hidden": boolean;
26
+ class: string;
27
+ } & object & Record<"class", string>) | null>;
28
+ isPortaled: import('vue').ComputedRef<boolean>;
29
+ triggerBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<{
30
+ onBlur: () => void;
31
+ onFocus: () => void;
32
+ onKeydown: (event: KeyboardEvent) => void;
33
+ onPointerenter: () => void;
34
+ onPointerleave: () => void;
35
+ "aria-describedby": string | undefined;
36
+ class: string;
37
+ }, "class", import('vue').HTMLAttributes | undefined, {}>>;
38
+ contentBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<{
39
+ id: string;
40
+ role: string;
41
+ style: {
42
+ zIndex: number;
43
+ };
44
+ class: string;
45
+ }, "class", import('vue').HTMLAttributes | undefined, {}>>;
46
+ setArrowRef: (element: null | Element | ComponentPublicInstance) => void;
47
+ setTriggerRef: (element: null | Element | ComponentPublicInstance) => void;
48
+ setContentRef: (element: null | Element | ComponentPublicInstance) => void;
49
+ };
50
+ export {};
@@ -0,0 +1,208 @@
1
+ import { mergePartBind as e, resolveVnodeRefElement as t, useBridgeUIComponent as ee, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
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 { 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
+ import { colorProps as v, roundedProps as y, sizeProps as re } from "@bridge-ui/core/Tokens/Tooltip";
6
+ //#region src/Components/Tooltip/composables/useTooltip.ts
7
+ var b = [
8
+ "size",
9
+ "arrow",
10
+ "color",
11
+ "offset",
12
+ "classes",
13
+ "content",
14
+ "rounded",
15
+ "disabled",
16
+ "strategy",
17
+ "openDelay",
18
+ "placement",
19
+ "closeDelay",
20
+ "teleportTo",
21
+ "customProps"
22
+ ];
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(d), L = r(() => s(S.show ?? !1));
25
+ function R(e) {
26
+ S.show && (S.show.value = e), S.onShowChange?.(e);
27
+ }
28
+ let z = r(() => ne({
29
+ bridgeKeys: b,
30
+ props: {
31
+ ...C,
32
+ ...x
33
+ }
34
+ })), { merged: B, entry: V } = ee({
35
+ libDefaults: ie,
36
+ componentName: "Tooltip",
37
+ props: () => z.value.componentProps
38
+ }), H = r(() => B.value.customProps), U = n({
39
+ entry: V,
40
+ props: () => z.value.componentProps
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
+ function Y() {
43
+ P !== null && (clearTimeout(P), P = null), F !== null && (clearTimeout(F), F = null);
44
+ }
45
+ function ae() {
46
+ return x.anchorEl ?? k.value;
47
+ }
48
+ function X() {
49
+ if (B.value.disabled) return;
50
+ Y();
51
+ let e = B.value.openDelay;
52
+ if (e <= 0) {
53
+ R(!0);
54
+ return;
55
+ }
56
+ P = setTimeout(() => {
57
+ P = null, R(!0);
58
+ }, e);
59
+ }
60
+ function Z() {
61
+ Y();
62
+ let e = B.value.closeDelay;
63
+ if (e <= 0) {
64
+ R(!1);
65
+ return;
66
+ }
67
+ F = setTimeout(() => {
68
+ F = null, R(!1);
69
+ }, e);
70
+ }
71
+ function oe() {
72
+ X();
73
+ }
74
+ function se() {
75
+ Z();
76
+ }
77
+ function ce() {
78
+ X();
79
+ }
80
+ function le() {
81
+ Z();
82
+ }
83
+ function ue(e) {
84
+ e.key !== "Escape" || !L.value || (e.preventDefault(), Y(), R(!1));
85
+ }
86
+ function Q() {
87
+ j = !1, N?.destroy(), N = null;
88
+ }
89
+ function de() {
90
+ Q();
91
+ let e = ae(), t = O.value;
92
+ !L.value || !e || !t || (N = m({
93
+ floating: t,
94
+ reference: e,
95
+ shiftCrossAxis: !1,
96
+ offset: B.value.offset,
97
+ strategy: B.value.strategy,
98
+ placement: B.value.placement,
99
+ arrow: B.value.arrow ? () => D.value : void 0,
100
+ onReferenceHidden: () => {
101
+ !j || !L.value || (Y(), R(!1));
102
+ }
103
+ }), N.start(), i(() => {
104
+ j = !0;
105
+ }));
106
+ }
107
+ function $() {
108
+ M?.release(), M = null, E.value = "", I.value = d;
109
+ }
110
+ function fe() {
111
+ if ($(), !L.value) {
112
+ A = null;
113
+ return;
114
+ }
115
+ A === null && (A = f());
116
+ function e() {
117
+ L.value && (Y(), R(!1));
118
+ }
119
+ M = te({
120
+ order: A,
121
+ lockScroll: !1,
122
+ onEscape: e
123
+ }), E.value = M.id, I.value = M.zIndex;
124
+ }
125
+ function pe(e) {
126
+ k.value = t(e);
127
+ }
128
+ function me(e) {
129
+ O.value = t(e);
130
+ }
131
+ function he(e) {
132
+ D.value = t(e);
133
+ }
134
+ u(L, (e) => {
135
+ if (e) {
136
+ T.value = !0;
137
+ return;
138
+ }
139
+ T.value = !1;
140
+ }, { immediate: !0 }), u([
141
+ L,
142
+ T,
143
+ () => x.anchorEl,
144
+ () => B.value.arrow,
145
+ () => B.value.offset,
146
+ () => B.value.strategy,
147
+ () => B.value.placement
148
+ ], async () => {
149
+ if (!L.value || !T.value) {
150
+ Q();
151
+ return;
152
+ }
153
+ await i(), de();
154
+ }, { flush: "post" }), u(L, () => {
155
+ fe();
156
+ }, { immediate: !0 }), a(() => {
157
+ Y(), Q(), $();
158
+ });
159
+ let ge = r(() => e(H.value?.root, J.value, p({
160
+ "relative inline-flex": !0,
161
+ [g(U.value, "root") ?? ""]: !0
162
+ }))), _e = r(() => e(H.value?.trigger, {}, {
163
+ onBlur: le,
164
+ onFocus: ce,
165
+ onKeydown: ue,
166
+ onPointerenter: oe,
167
+ onPointerleave: se,
168
+ "aria-describedby": L.value ? w : void 0,
169
+ class: p({
170
+ "inline-flex w-fit max-w-full outline-hidden": !0,
171
+ [g(U.value, "trigger") ?? ""]: !0
172
+ })
173
+ })), ve = r(() => e(H.value?.content, {}, {
174
+ id: w,
175
+ role: "tooltip",
176
+ style: { zIndex: I.value },
177
+ class: p({
178
+ "pointer-events-none absolute w-max max-w-xs font-medium shadow-md": !0,
179
+ [G.value?.content ?? ""]: !0,
180
+ [K.value?.content ?? ""]: !0,
181
+ [q.value ?? ""]: !0,
182
+ [g(U.value, "content") ?? ""]: !0
183
+ })
184
+ }));
185
+ return {
186
+ show: L,
187
+ merged: B,
188
+ mounted: T,
189
+ rootBind: ge,
190
+ tooltipId: w,
191
+ arrowBind: r(() => B.value.arrow ? e(H.value?.arrow, {}, {
192
+ "aria-hidden": !0,
193
+ class: p({
194
+ "pointer-events-none absolute size-2 rotate-45": !0,
195
+ [G.value?.arrow ?? ""]: !0,
196
+ [g(U.value, "arrow") ?? ""]: !0
197
+ })
198
+ }) : null),
199
+ isPortaled: W,
200
+ triggerBind: _e,
201
+ contentBind: ve,
202
+ setArrowRef: he,
203
+ setTriggerRef: pe,
204
+ setContentRef: me
205
+ };
206
+ }
207
+ //#endregion
208
+ export { x as useTooltip };
@@ -0,0 +1,4 @@
1
+ export { useTooltip } from './composables/useTooltip';
2
+ export type { TooltipOptions } from './composables/useTooltip';
3
+ export type { TooltipClasses, TooltipColorOverrides, TooltipCustomProps, TooltipEmits, TooltipOwnProps, TooltipProps, TooltipRoundedOverrides, TooltipSizeOverrides, TooltipSlots, } from './tooltip.types';
4
+ export { default as Tooltip } from './Tooltip.vue';
@@ -0,0 +1,3 @@
1
+ import { useTooltip as e } from "./composables/useTooltip.js";
2
+ import t from "./Tooltip.js";
3
+ export { t as Tooltip, e as useTooltip };