@synergy-design-system/vue 1.23.1 → 1.24.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 (68) hide show
  1. package/README.md +27 -1
  2. package/dist/components/SynVueAlert.vue.d.ts +2 -2
  3. package/dist/components/SynVueBadge.vue.d.ts +4 -1
  4. package/dist/components/SynVueButton.vue.d.ts +1 -2
  5. package/dist/components/SynVueButtonGroup.vue.d.ts +4 -1
  6. package/dist/components/SynVueCheckbox.vue.d.ts +2 -2
  7. package/dist/components/SynVueDialog.vue.d.ts +2 -4
  8. package/dist/components/SynVueDivider.vue.d.ts +2 -0
  9. package/dist/components/SynVueDrawer.vue.d.ts +2 -4
  10. package/dist/components/SynVueDropdown.vue.d.ts +1 -1
  11. package/dist/components/SynVueHeader.vue.d.ts +2 -6
  12. package/dist/components/SynVueIcon.vue.d.ts +1 -0
  13. package/dist/components/SynVueIconButton.vue.d.ts +1 -0
  14. package/dist/components/SynVueInput.vue.d.ts +3 -10
  15. package/dist/components/SynVueMenu.vue.d.ts +4 -2
  16. package/dist/components/SynVueMenuItem.vue.d.ts +2 -3
  17. package/dist/components/SynVueMenuLabel.vue.d.ts +4 -1
  18. package/dist/components/SynVueNavItem.vue.d.ts +2 -4
  19. package/dist/components/SynVueOptgroup.vue.d.ts +2 -3
  20. package/dist/components/SynVueOption.vue.d.ts +2 -2
  21. package/dist/components/SynVuePopup.vue.d.ts +2 -2
  22. package/dist/components/SynVuePrioNav.vue.d.ts +4 -1
  23. package/dist/components/SynVueProgressBar.vue.d.ts +4 -1
  24. package/dist/components/SynVueProgressRing.vue.d.ts +4 -1
  25. package/dist/components/SynVueRadio.vue.d.ts +2 -1
  26. package/dist/components/SynVueRadioButton.vue.d.ts +2 -3
  27. package/dist/components/SynVueRadioGroup.vue.d.ts +2 -3
  28. package/dist/components/SynVueSelect.vue.d.ts +2 -6
  29. package/dist/components/SynVueSideNav.vue.d.ts +2 -2
  30. package/dist/components/SynVueSpinner.vue.d.ts +4 -1
  31. package/dist/components/SynVueSwitch.vue.d.ts +2 -2
  32. package/dist/components/SynVueTag.vue.d.ts +4 -2
  33. package/dist/components/SynVueTextarea.vue.d.ts +3 -3
  34. package/dist/components/SynVueTooltip.vue.d.ts +2 -2
  35. package/package.json +2 -2
  36. package/src/components/SynVueAlert.vue +8 -8
  37. package/src/components/SynVueBadge.vue +3 -2
  38. package/src/components/SynVueButton.vue +11 -12
  39. package/src/components/SynVueButtonGroup.vue +3 -2
  40. package/src/components/SynVueCheckbox.vue +12 -12
  41. package/src/components/SynVueDialog.vue +6 -8
  42. package/src/components/SynVueDivider.vue +4 -3
  43. package/src/components/SynVueDrawer.vue +7 -9
  44. package/src/components/SynVueDropdown.vue +16 -16
  45. package/src/components/SynVueHeader.vue +5 -9
  46. package/src/components/SynVueIcon.vue +5 -4
  47. package/src/components/SynVueIconButton.vue +6 -5
  48. package/src/components/SynVueInput.vue +19 -26
  49. package/src/components/SynVueMenu.vue +3 -2
  50. package/src/components/SynVueMenuItem.vue +8 -10
  51. package/src/components/SynVueMenuLabel.vue +3 -2
  52. package/src/components/SynVueNavItem.vue +7 -9
  53. package/src/components/SynVueOptgroup.vue +4 -6
  54. package/src/components/SynVueOption.vue +7 -8
  55. package/src/components/SynVuePopup.vue +4 -4
  56. package/src/components/SynVuePrioNav.vue +3 -2
  57. package/src/components/SynVueProgressBar.vue +3 -2
  58. package/src/components/SynVueProgressRing.vue +3 -2
  59. package/src/components/SynVueRadio.vue +5 -4
  60. package/src/components/SynVueRadioButton.vue +6 -7
  61. package/src/components/SynVueRadioGroup.vue +9 -10
  62. package/src/components/SynVueSelect.vue +14 -18
  63. package/src/components/SynVueSideNav.vue +8 -8
  64. package/src/components/SynVueSpinner.vue +3 -2
  65. package/src/components/SynVueSwitch.vue +12 -12
  66. package/src/components/SynVueTag.vue +3 -2
  67. package/src/components/SynVueTextarea.vue +17 -17
  68. package/src/components/SynVueTooltip.vue +8 -8
@@ -58,46 +58,46 @@ import type {
58
58
  } from '@synergy-design-system/components';
59
59
 
60
60
  // DOM Reference to the element
61
- const element = ref<SynSelect>();
61
+ const nativeElement = ref<SynSelect>();
62
62
 
63
63
  // Map methods
64
- const callHandleDisabledChange = (...args: Parameters<SynSelect['handleDisabledChange']>) => element.value?.handleDisabledChange(...args);
65
- const callHandleValueChange = (...args: Parameters<SynSelect['handleValueChange']>) => element.value?.handleValueChange(...args);
66
- const callHandleOpenChange = (...args: Parameters<SynSelect['handleOpenChange']>) => element.value?.handleOpenChange(...args);
64
+ const callHandleDisabledChange = (...args: Parameters<SynSelect['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
65
+ const callHandleValueChange = (...args: Parameters<SynSelect['handleValueChange']>) => nativeElement.value?.handleValueChange(...args);
66
+ const callHandleOpenChange = (...args: Parameters<SynSelect['handleOpenChange']>) => nativeElement.value?.handleOpenChange(...args);
67
67
  /**
68
68
  * Shows the listbox.
69
69
  */
70
- const callShow = (...args: Parameters<SynSelect['show']>) => element.value?.show(...args);
70
+ const callShow = (...args: Parameters<SynSelect['show']>) => nativeElement.value?.show(...args);
71
71
  /**
72
72
  * Hides the listbox.
73
73
  */
74
- const callHide = (...args: Parameters<SynSelect['hide']>) => element.value?.hide(...args);
74
+ const callHide = (...args: Parameters<SynSelect['hide']>) => nativeElement.value?.hide(...args);
75
75
  /**
76
76
  * Checks for validity but does not show a validation message.
77
77
  * Returns `true` when valid and `false` when invalid.
78
78
  */
79
- const callCheckValidity = (...args: Parameters<SynSelect['checkValidity']>) => element.value?.checkValidity(...args);
79
+ const callCheckValidity = (...args: Parameters<SynSelect['checkValidity']>) => nativeElement.value?.checkValidity(...args);
80
80
  /**
81
81
  * Gets the associated form, if one exists.
82
82
  */
83
- const callGetForm = (...args: Parameters<SynSelect['getForm']>) => element.value?.getForm(...args);
83
+ const callGetForm = (...args: Parameters<SynSelect['getForm']>) => nativeElement.value?.getForm(...args);
84
84
  /**
85
85
  * Checks for validity and shows the browser's validation message if the control is invalid.
86
86
  */
87
- const callReportValidity = (...args: Parameters<SynSelect['reportValidity']>) => element.value?.reportValidity(...args);
87
+ const callReportValidity = (...args: Parameters<SynSelect['reportValidity']>) => nativeElement.value?.reportValidity(...args);
88
88
  /**
89
89
  * Sets a custom validation message.
90
90
  * Pass an empty string to restore validity.
91
91
  */
92
- const callSetCustomValidity = (...args: Parameters<SynSelect['setCustomValidity']>) => element.value?.setCustomValidity(...args);
92
+ const callSetCustomValidity = (...args: Parameters<SynSelect['setCustomValidity']>) => nativeElement.value?.setCustomValidity(...args);
93
93
  /**
94
94
  * Sets focus on the control.
95
95
  */
96
- const callFocus = (...args: Parameters<SynSelect['focus']>) => element.value?.focus(...args);
96
+ const callFocus = (...args: Parameters<SynSelect['focus']>) => nativeElement.value?.focus(...args);
97
97
  /**
98
98
  * Removes focus from the control.
99
99
  */
100
- const callBlur = (...args: Parameters<SynSelect['blur']>) => element.value?.blur(...args);
100
+ const callBlur = (...args: Parameters<SynSelect['blur']>) => nativeElement.value?.blur(...args);
101
101
 
102
102
  defineExpose({
103
103
  callHandleDisabledChange,
@@ -111,6 +111,7 @@ defineExpose({
111
111
  callSetCustomValidity,
112
112
  callFocus,
113
113
  callBlur,
114
+ nativeElement,
114
115
  });
115
116
 
116
117
  // Map attributes
@@ -312,7 +313,7 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
312
313
  :value="typeof props.modelValue !== 'undefined' ? props.modelValue : typeof props.value !== 'undefined' ? props.value : undefined"
313
314
  @syn-clear="$emit('syn-clear', $event)"
314
315
  v-bind="visibleProps"
315
- ref="element"
316
+ ref="nativeElement"
316
317
  @syn-input="$emit('update:modelValue', $event.target.value); $emit('syn-input', $event)"
317
318
  @syn-focus="$emit('syn-focus', $event)"
318
319
  @syn-blur="$emit('syn-blur', $event)"
@@ -323,10 +324,5 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
323
324
  @syn-invalid="$emit('syn-invalid', $event)"
324
325
  >
325
326
  <slot />
326
- <slot name="label" />
327
- <slot name="prefix" />
328
- <slot name="clear-icon" />
329
- <slot name="expand-icon" />
330
- <slot name="help-text" />
331
327
  </syn-select>
332
328
  </template>
@@ -57,20 +57,20 @@ import type {
57
57
  } from '@synergy-design-system/components';
58
58
 
59
59
  // DOM Reference to the element
60
- const element = ref<SynSideNav>();
60
+ const nativeElement = ref<SynSideNav>();
61
61
 
62
62
  // Map methods
63
- const callHandleModeChange = (...args: Parameters<SynSideNav['handleModeChange']>) => element.value?.handleModeChange(...args);
64
- const callHandleOpenChange = (...args: Parameters<SynSideNav['handleOpenChange']>) => element.value?.handleOpenChange(...args);
65
- const callHandleFocusTrapping = (...args: Parameters<SynSideNav['handleFocusTrapping']>) => element.value?.handleFocusTrapping(...args);
63
+ const callHandleModeChange = (...args: Parameters<SynSideNav['handleModeChange']>) => nativeElement.value?.handleModeChange(...args);
64
+ const callHandleOpenChange = (...args: Parameters<SynSideNav['handleOpenChange']>) => nativeElement.value?.handleOpenChange(...args);
65
+ const callHandleFocusTrapping = (...args: Parameters<SynSideNav['handleFocusTrapping']>) => nativeElement.value?.handleFocusTrapping(...args);
66
66
  /**
67
67
  * Shows the side-nav.
68
68
  */
69
- const callShow = (...args: Parameters<SynSideNav['show']>) => element.value?.show(...args);
69
+ const callShow = (...args: Parameters<SynSideNav['show']>) => nativeElement.value?.show(...args);
70
70
  /**
71
71
  * Hides the side-nav
72
72
  */
73
- const callHide = (...args: Parameters<SynSideNav['hide']>) => element.value?.hide(...args);
73
+ const callHide = (...args: Parameters<SynSideNav['hide']>) => nativeElement.value?.hide(...args);
74
74
 
75
75
  defineExpose({
76
76
  callHandleModeChange,
@@ -78,6 +78,7 @@ defineExpose({
78
78
  callHandleFocusTrapping,
79
79
  callShow,
80
80
  callHide,
81
+ nativeElement,
81
82
  });
82
83
 
83
84
  // Map attributes
@@ -161,7 +162,7 @@ export type { SynAfterHideEvent } from '@synergy-design-system/components';
161
162
  <template>
162
163
  <syn-side-nav
163
164
  v-bind="visibleProps"
164
- ref="element"
165
+ ref="nativeElement"
165
166
  @syn-show="$emit('syn-show', $event)"
166
167
  @syn-after-show="$emit('syn-after-show', $event)"
167
168
 
@@ -169,6 +170,5 @@ export type { SynAfterHideEvent } from '@synergy-design-system/components';
169
170
  @syn-after-hide="$emit('syn-after-hide', $event)"
170
171
  >
171
172
  <slot />
172
- <slot name="footer" />
173
173
  </syn-side-nav>
174
174
  </template>
@@ -23,12 +23,13 @@ import '@synergy-design-system/components/components/spinner/spinner.js';
23
23
  import type { SynSpinner } from '@synergy-design-system/components';
24
24
 
25
25
  // DOM Reference to the element
26
- const element = ref<SynSpinner>();
26
+ const nativeElement = ref<SynSpinner>();
27
27
 
28
28
  // Map methods
29
29
 
30
30
  defineExpose({
31
31
 
32
+ nativeElement,
32
33
  });
33
34
 
34
35
  // Map attributes
@@ -56,6 +57,6 @@ defineEmits<{
56
57
  <syn-spinner
57
58
 
58
59
  v-bind="visibleProps"
59
- ref="element"
60
+ ref="nativeElement"
60
61
  />
61
62
  </template>
@@ -38,41 +38,41 @@ import type {
38
38
  } from '@synergy-design-system/components';
39
39
 
40
40
  // DOM Reference to the element
41
- const element = ref<SynSwitch>();
41
+ const nativeElement = ref<SynSwitch>();
42
42
 
43
43
  // Map methods
44
- const callHandleCheckedChange = (...args: Parameters<SynSwitch['handleCheckedChange']>) => element.value?.handleCheckedChange(...args);
45
- const callHandleDisabledChange = (...args: Parameters<SynSwitch['handleDisabledChange']>) => element.value?.handleDisabledChange(...args);
44
+ const callHandleCheckedChange = (...args: Parameters<SynSwitch['handleCheckedChange']>) => nativeElement.value?.handleCheckedChange(...args);
45
+ const callHandleDisabledChange = (...args: Parameters<SynSwitch['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
46
46
  /**
47
47
  * Simulates a click on the switch.
48
48
  */
49
- const callClick = (...args: Parameters<SynSwitch['click']>) => element.value?.click(...args);
49
+ const callClick = (...args: Parameters<SynSwitch['click']>) => nativeElement.value?.click(...args);
50
50
  /**
51
51
  * Sets focus on the switch.
52
52
  */
53
- const callFocus = (...args: Parameters<SynSwitch['focus']>) => element.value?.focus(...args);
53
+ const callFocus = (...args: Parameters<SynSwitch['focus']>) => nativeElement.value?.focus(...args);
54
54
  /**
55
55
  * Removes focus from the switch.
56
56
  */
57
- const callBlur = (...args: Parameters<SynSwitch['blur']>) => element.value?.blur(...args);
57
+ const callBlur = (...args: Parameters<SynSwitch['blur']>) => nativeElement.value?.blur(...args);
58
58
  /**
59
59
  * Checks for validity but does not show a validation message.
60
60
  * Returns `true` when valid and `false` when invalid.
61
61
  */
62
- const callCheckValidity = (...args: Parameters<SynSwitch['checkValidity']>) => element.value?.checkValidity(...args);
62
+ const callCheckValidity = (...args: Parameters<SynSwitch['checkValidity']>) => nativeElement.value?.checkValidity(...args);
63
63
  /**
64
64
  * Gets the associated form, if one exists.
65
65
  */
66
- const callGetForm = (...args: Parameters<SynSwitch['getForm']>) => element.value?.getForm(...args);
66
+ const callGetForm = (...args: Parameters<SynSwitch['getForm']>) => nativeElement.value?.getForm(...args);
67
67
  /**
68
68
  * Checks for validity and shows the browser's validation message if the control is invalid.
69
69
  */
70
- const callReportValidity = (...args: Parameters<SynSwitch['reportValidity']>) => element.value?.reportValidity(...args);
70
+ const callReportValidity = (...args: Parameters<SynSwitch['reportValidity']>) => nativeElement.value?.reportValidity(...args);
71
71
  /**
72
72
  * Sets a custom validation message.
73
73
  * Pass an empty string to restore validity.
74
74
  */
75
- const callSetCustomValidity = (...args: Parameters<SynSwitch['setCustomValidity']>) => element.value?.setCustomValidity(...args);
75
+ const callSetCustomValidity = (...args: Parameters<SynSwitch['setCustomValidity']>) => nativeElement.value?.setCustomValidity(...args);
76
76
 
77
77
  defineExpose({
78
78
  callHandleCheckedChange,
@@ -84,6 +84,7 @@ defineExpose({
84
84
  callGetForm,
85
85
  callReportValidity,
86
86
  callSetCustomValidity,
87
+ nativeElement,
87
88
  });
88
89
 
89
90
  // Map attributes
@@ -196,7 +197,7 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
196
197
  <template>
197
198
  <syn-switch
198
199
  v-bind="visibleProps"
199
- ref="element"
200
+ ref="nativeElement"
200
201
  :checked="typeof props.modelValue !== 'undefined' ? props.modelValue : typeof props.checked !== 'undefined' ? props.checked : undefined"
201
202
  @syn-blur="$emit('syn-blur', $event)"
202
203
  @syn-change="$emit('syn-change', $event)"
@@ -205,6 +206,5 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
205
206
  @syn-invalid="$emit('syn-invalid', $event)"
206
207
  >
207
208
  <slot />
208
- <slot name="help-text" />
209
209
  </syn-switch>
210
210
  </template>
@@ -28,12 +28,13 @@ import '@synergy-design-system/components/components/tag/tag.js';
28
28
  import type { SynRemoveEvent, SynTag } from '@synergy-design-system/components';
29
29
 
30
30
  // DOM Reference to the element
31
- const element = ref<SynTag>();
31
+ const nativeElement = ref<SynTag>();
32
32
 
33
33
  // Map methods
34
34
 
35
35
  defineExpose({
36
36
 
37
+ nativeElement,
37
38
  });
38
39
 
39
40
  // Map attributes
@@ -76,7 +77,7 @@ export type { SynRemoveEvent } from '@synergy-design-system/components';
76
77
  <syn-tag
77
78
  v-bind="visibleProps"
78
79
 
79
- ref="element"
80
+ ref="nativeElement"
80
81
  @syn-remove="$emit('syn-remove', $event)"
81
82
  >
82
83
  <slot />
@@ -35,54 +35,54 @@ import type {
35
35
  } from '@synergy-design-system/components';
36
36
 
37
37
  // DOM Reference to the element
38
- const element = ref<SynTextarea>();
38
+ const nativeElement = ref<SynTextarea>();
39
39
 
40
40
  // Map methods
41
- const callHandleDisabledChange = (...args: Parameters<SynTextarea['handleDisabledChange']>) => element.value?.handleDisabledChange(...args);
42
- const callHandleRowsChange = (...args: Parameters<SynTextarea['handleRowsChange']>) => element.value?.handleRowsChange(...args);
43
- const callHandleValueChange = (...args: Parameters<SynTextarea['handleValueChange']>) => element.value?.handleValueChange(...args);
41
+ const callHandleDisabledChange = (...args: Parameters<SynTextarea['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
42
+ const callHandleRowsChange = (...args: Parameters<SynTextarea['handleRowsChange']>) => nativeElement.value?.handleRowsChange(...args);
43
+ const callHandleValueChange = (...args: Parameters<SynTextarea['handleValueChange']>) => nativeElement.value?.handleValueChange(...args);
44
44
  /**
45
45
  * Sets focus on the textarea.
46
46
  */
47
- const callFocus = (...args: Parameters<SynTextarea['focus']>) => element.value?.focus(...args);
47
+ const callFocus = (...args: Parameters<SynTextarea['focus']>) => nativeElement.value?.focus(...args);
48
48
  /**
49
49
  * Removes focus from the textarea.
50
50
  */
51
- const callBlur = (...args: Parameters<SynTextarea['blur']>) => element.value?.blur(...args);
51
+ const callBlur = (...args: Parameters<SynTextarea['blur']>) => nativeElement.value?.blur(...args);
52
52
  /**
53
53
  * Selects all the text in the textarea.
54
54
  */
55
- const callSelect = (...args: Parameters<SynTextarea['select']>) => element.value?.select(...args);
55
+ const callSelect = (...args: Parameters<SynTextarea['select']>) => nativeElement.value?.select(...args);
56
56
  /**
57
57
  * Gets or sets the textarea's scroll position.
58
58
  */
59
- const callScrollPosition = (...args: Parameters<SynTextarea['scrollPosition']>) => element.value?.scrollPosition(...args);
59
+ const callScrollPosition = (...args: Parameters<SynTextarea['scrollPosition']>) => nativeElement.value?.scrollPosition(...args);
60
60
  /**
61
61
  * Sets the start and end positions of the text selection (0-based).
62
62
  */
63
- const callSetSelectionRange = (...args: Parameters<SynTextarea['setSelectionRange']>) => element.value?.setSelectionRange(...args);
63
+ const callSetSelectionRange = (...args: Parameters<SynTextarea['setSelectionRange']>) => nativeElement.value?.setSelectionRange(...args);
64
64
  /**
65
65
  * Replaces a range of text with a new string.
66
66
  */
67
- const callSetRangeText = (...args: Parameters<SynTextarea['setRangeText']>) => element.value?.setRangeText(...args);
67
+ const callSetRangeText = (...args: Parameters<SynTextarea['setRangeText']>) => nativeElement.value?.setRangeText(...args);
68
68
  /**
69
69
  * Checks for validity but does not show a validation message.
70
70
  * Returns `true` when valid and `false` when invalid.
71
71
  */
72
- const callCheckValidity = (...args: Parameters<SynTextarea['checkValidity']>) => element.value?.checkValidity(...args);
72
+ const callCheckValidity = (...args: Parameters<SynTextarea['checkValidity']>) => nativeElement.value?.checkValidity(...args);
73
73
  /**
74
74
  * Gets the associated form, if one exists.
75
75
  */
76
- const callGetForm = (...args: Parameters<SynTextarea['getForm']>) => element.value?.getForm(...args);
76
+ const callGetForm = (...args: Parameters<SynTextarea['getForm']>) => nativeElement.value?.getForm(...args);
77
77
  /**
78
78
  * Checks for validity and shows the browser's validation message if the control is invalid.
79
79
  */
80
- const callReportValidity = (...args: Parameters<SynTextarea['reportValidity']>) => element.value?.reportValidity(...args);
80
+ const callReportValidity = (...args: Parameters<SynTextarea['reportValidity']>) => nativeElement.value?.reportValidity(...args);
81
81
  /**
82
82
  * Sets a custom validation message.
83
83
  * Pass an empty string to restore validity.
84
84
  */
85
- const callSetCustomValidity = (...args: Parameters<SynTextarea['setCustomValidity']>) => element.value?.setCustomValidity(...args);
85
+ const callSetCustomValidity = (...args: Parameters<SynTextarea['setCustomValidity']>) => nativeElement.value?.setCustomValidity(...args);
86
86
 
87
87
  defineExpose({
88
88
  callHandleDisabledChange,
@@ -98,6 +98,7 @@ defineExpose({
98
98
  callGetForm,
99
99
  callReportValidity,
100
100
  callSetCustomValidity,
101
+ nativeElement,
101
102
  });
102
103
 
103
104
  // Map attributes
@@ -279,7 +280,7 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
279
280
  <template>
280
281
  <syn-textarea
281
282
  v-bind="visibleProps"
282
- ref="element"
283
+ ref="nativeElement"
283
284
  :value="typeof props.modelValue !== 'undefined' ? props.modelValue : typeof props.value !== 'undefined' ? props.value : undefined"
284
285
  @syn-blur="$emit('syn-blur', $event)"
285
286
  @syn-change="$emit('syn-change', $event)"
@@ -287,7 +288,6 @@ export type { SynInvalidEvent } from '@synergy-design-system/components';
287
288
  @syn-input="$emit('update:modelValue', $event.target.value); $emit('syn-input', $event)"
288
289
  @syn-invalid="$emit('syn-invalid', $event)"
289
290
  >
290
- <slot name="label" />
291
- <slot name="help-text" />
291
+ <slot />
292
292
  </syn-textarea>
293
293
  </template>
@@ -41,20 +41,20 @@ import type {
41
41
  } from '@synergy-design-system/components';
42
42
 
43
43
  // DOM Reference to the element
44
- const element = ref<SynTooltip>();
44
+ const nativeElement = ref<SynTooltip>();
45
45
 
46
46
  // Map methods
47
- const callHandleOpenChange = (...args: Parameters<SynTooltip['handleOpenChange']>) => element.value?.handleOpenChange(...args);
48
- const callHandleOptionsChange = (...args: Parameters<SynTooltip['handleOptionsChange']>) => element.value?.handleOptionsChange(...args);
49
- const callHandleDisabledChange = (...args: Parameters<SynTooltip['handleDisabledChange']>) => element.value?.handleDisabledChange(...args);
47
+ const callHandleOpenChange = (...args: Parameters<SynTooltip['handleOpenChange']>) => nativeElement.value?.handleOpenChange(...args);
48
+ const callHandleOptionsChange = (...args: Parameters<SynTooltip['handleOptionsChange']>) => nativeElement.value?.handleOptionsChange(...args);
49
+ const callHandleDisabledChange = (...args: Parameters<SynTooltip['handleDisabledChange']>) => nativeElement.value?.handleDisabledChange(...args);
50
50
  /**
51
51
  * Shows the tooltip.
52
52
  */
53
- const callShow = (...args: Parameters<SynTooltip['show']>) => element.value?.show(...args);
53
+ const callShow = (...args: Parameters<SynTooltip['show']>) => nativeElement.value?.show(...args);
54
54
  /**
55
55
  * Hides the tooltip
56
56
  */
57
- const callHide = (...args: Parameters<SynTooltip['hide']>) => element.value?.hide(...args);
57
+ const callHide = (...args: Parameters<SynTooltip['hide']>) => nativeElement.value?.hide(...args);
58
58
 
59
59
  defineExpose({
60
60
  callHandleOpenChange,
@@ -62,6 +62,7 @@ defineExpose({
62
62
  callHandleDisabledChange,
63
63
  callShow,
64
64
  callHide,
65
+ nativeElement,
65
66
  });
66
67
 
67
68
  // Map attributes
@@ -163,7 +164,7 @@ export type { SynAfterHideEvent } from '@synergy-design-system/components';
163
164
  <template>
164
165
  <syn-tooltip
165
166
  v-bind="visibleProps"
166
- ref="element"
167
+ ref="nativeElement"
167
168
  @syn-show="$emit('syn-show', $event)"
168
169
  @syn-after-show="$emit('syn-after-show', $event)"
169
170
 
@@ -171,6 +172,5 @@ export type { SynAfterHideEvent } from '@synergy-design-system/components';
171
172
  @syn-after-hide="$emit('syn-after-hide', $event)"
172
173
  >
173
174
  <slot />
174
- <slot name="content" />
175
175
  </syn-tooltip>
176
176
  </template>