@robuust-digital/vue-components 2.0.0-rc.1 → 2.0.0-rc.11

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 (37) hide show
  1. package/CHANGELOG.md +247 -0
  2. package/dist/_shared/{ButtonBase-CQjlJ85F.js → ButtonBase-DfkwHIhN.js} +10 -10
  3. package/dist/_shared/Modal-DdpJnce6.js +200 -0
  4. package/dist/_shared/{Tooltip-BKXJoJ1x.js → Tooltip-B93ZF7IF.js} +16 -16
  5. package/dist/combobox/combobox.css +76 -34
  6. package/dist/combobox/index.js +46 -46
  7. package/dist/core/accordion.css +21 -10
  8. package/dist/core/alert.css +26 -20
  9. package/dist/core/badge.css +10 -10
  10. package/dist/core/button.css +31 -19
  11. package/dist/core/checkbox.css +35 -10
  12. package/dist/core/empty-state.css +6 -6
  13. package/dist/core/index.js +352 -348
  14. package/dist/core/input.css +23 -13
  15. package/dist/core/pagination.css +68 -9
  16. package/dist/core/radio.css +35 -10
  17. package/dist/core/select.css +25 -16
  18. package/dist/core/styles.css +5 -35
  19. package/dist/core/table.css +66 -5
  20. package/dist/core/tabs.css +20 -9
  21. package/dist/core/textarea.css +17 -10
  22. package/dist/core/utilities.css +12 -0
  23. package/dist/dialogs/drawer.css +140 -4
  24. package/dist/dialogs/index.js +100 -93
  25. package/dist/dialogs/modal.css +124 -22
  26. package/dist/dialogs/styles.css +20 -0
  27. package/dist/dropdown/dropdown.css +79 -49
  28. package/dist/dropdown/index.js +38 -38
  29. package/dist/lightswitch/lightswitch.css +19 -8
  30. package/dist/rich-text-editor/index.js +42 -39
  31. package/dist/rich-text-editor/rich-text.css +28 -10
  32. package/dist/toast/index.js +35 -34
  33. package/dist/toast/toast.css +54 -28
  34. package/dist/tooltip/index.js +1 -1
  35. package/dist/tooltip/tooltip.css +18 -16
  36. package/package.json +20 -8
  37. package/dist/_shared/Modal-COVlUEud.js +0 -193
package/CHANGELOG.md ADDED
@@ -0,0 +1,247 @@
1
+ ## 2.0.0-rc.11 (26-05-2025)
2
+
3
+ ### Added
4
+
5
+ * `Radio` and `Checkbox` `modelValue` now allows `Number` and `Object` type
6
+ * `wrapperClass` prop to `DataTable` component
7
+ * Introduced `--rvc-table-wrapper-border-radius` variable for `DataTable` component
8
+ * `Radio`: background color is now customizable with `--rvc-radio-bg-color` CSS variable
9
+ * `Checkbox`: background color is now customizable with `--rvc-checkbox-input-bg-color` CSS variable
10
+ * `Drawer`: Added `drawer:opened` event that triggers after drawer open transition is finished
11
+ * `Accordion`: Added `index` to `summary` slot
12
+
13
+ ### Changed
14
+
15
+ * `Toast`: `open` prop is now `show`
16
+ * `DataTable`: `items` slot is renamed to `item` and added a parent `items` slot to customize the whole row
17
+ * `DataTable`: `headers` slot is renamed to `header` and added a parent `headers` slot to customize the whole row
18
+ * `Accordion`: `defaultOpenIndex` param can now accept `Number` and `String` as type
19
+ * `Accordion`: `active` prop is removed from the `summary` slot, as it's not needed
20
+ * `Accordion`: `items` prop can now also accept an `Object` as type
21
+
22
+ ### Updated
23
+
24
+ * Upgraded to **Tailwind v4.0.0** 🚀
25
+ * Customize RVC components with CSS variables
26
+ * Improved `Drawer` and `Modal` slots: Added `title` and `close` slots
27
+ * `FormSelect`: `modelValue` now allows `Boolean` type
28
+ * Improved zIndex order for Dialogs and Toast
29
+
30
+ ### Deprecated
31
+
32
+ * ⚠️ **Nuxt 3** module support. You can manually integrate the components into your Nuxt 3 project now.
33
+
34
+ ## 1.3.2 (24-01-2025)
35
+
36
+ ### Updated
37
+
38
+ * Fixed `FormInput` modelValue type to allow `Number` type
39
+
40
+ ## 1.3.1 (17-01-2025)
41
+
42
+ ### Added
43
+
44
+ * Introduced `peerDependenciesMeta` to the `package.json` file to prevent installation issues
45
+
46
+ ## 1.3.0 (16-01-2025)
47
+
48
+ ### Added
49
+
50
+ * `RichTextEditor` component
51
+ * `--rvc-base-input-font-weight` to inputs
52
+ * `Tooltip` `size` prop. `sm` is now supported
53
+ * Added a `fullWidth` prop to the `Dropdown` Component
54
+
55
+ ### Changed
56
+
57
+ * `@floating-ui/vue`, `@headlessui/vue`, and `vue` are now peer dependencies
58
+
59
+ ### Updated
60
+
61
+ * This library only supports ES format builds now
62
+
63
+ ## 1.2.10 (13-01-2025)
64
+
65
+ ### Updated
66
+
67
+ * Fixed `Combobox` `searchOnly`: prevent firing the request if no value is present
68
+ * Respect the `Combobox` `minLength` prop
69
+ * Combobox `onSearch` params order: `searchValue` first, `params` second and last `endpoint`
70
+
71
+ ## 1.2.9 (10-01-2025)
72
+
73
+ ### Changed
74
+
75
+ * For `Combobox`, `FormInput`, `FormSelect` renamed `iconLeft` prop to `prefixIcon`
76
+
77
+ ## 1.2.8 (10-01-2025)
78
+
79
+ ### Added
80
+
81
+ * `FormTextarea` component
82
+ * `Combobox` component
83
+ * `rvc-radio` to Tailwind safelist
84
+
85
+ ### Updated
86
+
87
+ * `Drawer` fixed docs slots section
88
+
89
+ ## 1.2.7 (08-01-2025)
90
+
91
+ ### Added
92
+
93
+ * `FormInput` component
94
+
95
+ ### Changed
96
+
97
+ * Renamed `--rvc-input-*` CSS variables to `--rvc-base-input-*`
98
+
99
+ ## 1.2.6 (07-01-2025)
100
+
101
+ ### Updated
102
+
103
+ * Bugfix for nesting in tabs.js, empty-state.js and dropdown.js
104
+ * Refactor `Dropdown` component
105
+ * Added the icon-left prop to the `FormSelect` component
106
+
107
+ ## 1.2.5 (06-01-2025)
108
+
109
+ ### Added
110
+
111
+ * `Dropdown` component
112
+ * `EmptyState` component
113
+ * `Toast` component
114
+ * `Pagination` component
115
+ * `Tabs` component
116
+
117
+ ## 1.2.4 (21-12-2024)
118
+
119
+ ### Added
120
+
121
+ * Bind `header` data to `DataTable` `<th>` element
122
+ * `FormSelect` component
123
+ * `Checkbox`: introduced `rootClass` prop
124
+ * Do not map `id` from `DataTable` component items
125
+
126
+ ### Updated
127
+
128
+ * Improved `DataTable` `headers` prop validators
129
+ * `Checkbox`: `id` prop is not required anymore
130
+
131
+ ## 1.2.3 (18-12-2024)
132
+
133
+ ### Added
134
+
135
+ * Global CSS variables and Tailwind config. See the [docs](https://robuust.github.io/vue-components/base/) for more information.
136
+
137
+ ## 1.2.2 (17-12-2024)
138
+
139
+ ### Added
140
+
141
+ * Added `loading` prop to Modal footer slot
142
+
143
+ ## 1.2.1 (12-12-2024)
144
+
145
+ ### Added
146
+
147
+ * `Modal` component
148
+ * `Tooltip` component
149
+ * `Accordion` component
150
+ * `@drawer:closed` event to `Drawer` component
151
+ * `@modal:closed` event to `Modal` component
152
+ * `Checkbox` component
153
+ * `Radio` component
154
+ * `Lightswitch` component
155
+ * Added crucial safelisting for component library
156
+
157
+ ### Updated
158
+
159
+ * Improved customizability for all components
160
+
161
+ ## 1.2.0 (11-12-2024)
162
+
163
+ ### Added
164
+
165
+ * Introduced CSS variables for component customization
166
+ * `Modal` component
167
+ * `Tooltip` component
168
+ * `Accordion` component
169
+ * `Checkbox` component
170
+ * `Lightswitch` component
171
+ * `DataTable` component
172
+ * `@drawer:closed` event to `Drawer` component
173
+ * `@modal:closed` event to `Modal` component
174
+ * Added hover color for the `Alert` component
175
+
176
+ ### Changed
177
+
178
+ * `rvc-` prefix for all components
179
+ * Changed the colors of the `Badge` component
180
+ * `fontSize` `base` to 15px and `sm` to 13px
181
+ * `xs` and `lg` from `size` prop in `Badge` component
182
+ * `ButtonBase` default color variants
183
+
184
+ ## 1.1.1 (27-11-2024)
185
+
186
+ ### Added
187
+
188
+ * `Alert` component
189
+ * `iconOnly` prop to `ButtonBase` component for icon-only button variant
190
+ * a11y attributes to `ButtonBase` component
191
+
192
+ ### Updated
193
+
194
+ * Added slot bindings to `ButtonBase` component:
195
+ * Default slot: Access to `label` prop
196
+ * Icon slot: Access to `icon` prop
197
+ * Spinner slot: Access to `spinning` state
198
+
199
+ ### Deprecated
200
+
201
+ * `xs` and `lg` from `size` prop in `ButtonBase` component
202
+
203
+ ## 1.1.0-rc.0 (25-11-2024)
204
+
205
+ ### Added
206
+
207
+ * `Badge` component
208
+ * `Drawer` component
209
+ * Export component library utilities CSS
210
+ * Library Tailwind `prefix: 'rvc-'` so it doesn't conflict with the consuming application
211
+ * `bindAs` prop to `ButtonBase` component to have more flexible component rendering [#30](https://github.com/robuust/vue-components/issues/30)
212
+
213
+ ### Changed
214
+
215
+ * Removed `@apply` style classes from `./tailwind/components/button` to prevent conflicts with the consuming application. Added native CSS props instead.
216
+
217
+ ### Updated
218
+
219
+ * Added CSS section to docs guide
220
+ * Added docs for `ButtonBase` slots
221
+
222
+ ## 1.0.1-rc.3 (15-11-2024)
223
+
224
+ ### Added
225
+
226
+ * `disabled` and `icon` customizations for `custom` `ButtonBase` component
227
+
228
+ ### Changed
229
+
230
+ * Improved `custom` button Tailwind CSS configuration see [#22](https://github.com/robuust/vue-components/issues/22)
231
+
232
+ ### Deprecated
233
+
234
+ * `hoverBackgroundColor`, `hoverColor`, `styles`, and `hoverStyles` properties for `custom` `ButtonBase` component
235
+
236
+ ## 1.0.1-rc.2 (14-11-2024)
237
+
238
+ ### Changed
239
+
240
+ * `ButtonBase` component improvements
241
+ * Updated docs
242
+
243
+ ## 1.0.1-rc.1 (12-11-2024)
244
+
245
+ ### Added
246
+
247
+ * `ButtonBase` component
@@ -1,8 +1,8 @@
1
- import { watchEffect as u, createBlock as l, openBlock as t, resolveDynamicComponent as c, mergeProps as y, withCtx as d, createElementBlock as b, renderSlot as i, createCommentVNode as a, createTextVNode as r, toDisplayString as s, unref as f } from "vue";
1
+ import { watchEffect as u, createBlock as i, openBlock as t, resolveDynamicComponent as c, mergeProps as b, withCtx as d, createElementBlock as y, renderSlot as l, createCommentVNode as a, createTextVNode as r, toDisplayString as s, unref as f } from "vue";
2
2
  import { S as g } from "./icon-spinner-CmxIOqaK.js";
3
3
  const m = {
4
4
  key: 0,
5
- class: "sr-only"
5
+ class: "rvc-button-label"
6
6
  }, O = {
7
7
  __name: "ButtonBase",
8
8
  props: {
@@ -47,31 +47,31 @@ const m = {
47
47
  const o = n;
48
48
  return u(() => {
49
49
  o.iconOnly && !o.icon && console.warn("[ButtonBase] Using iconOnly prop without providing an icon may result in an empty button.");
50
- }), (e, h) => (t(), l(c(n.as), y(n.bindAs ? { as: n.bindAs } : {}, {
50
+ }), (e, v) => (t(), i(c(n.as), b(n.bindAs ? { as: n.bindAs } : {}, {
51
51
  class: ["rvc-button", `rvc-button-${n.color}`, `rvc-button-${n.size}`, { "rvc-button-reverse": n.iconLeft }, { "rvc-button-icon-only": n.iconOnly }],
52
52
  "aria-label": n.iconOnly ? n.label : null,
53
53
  "aria-busy": n.spinning
54
54
  }), {
55
55
  default: d(() => [
56
- n.iconOnly && n.label ? (t(), b("span", m, [
57
- i(e.$slots, "default", { label: n.label }, () => [
56
+ n.iconOnly && n.label ? (t(), y("span", m, [
57
+ l(e.$slots, "default", { label: n.label }, () => [
58
58
  r(s(n.label), 1)
59
59
  ])
60
- ])) : n.label ? i(e.$slots, "default", {
60
+ ])) : n.label ? l(e.$slots, "default", {
61
61
  key: 1,
62
62
  label: n.label
63
63
  }, () => [
64
64
  r(s(n.label), 1)
65
65
  ]) : a("", !0),
66
- i(e.$slots, "icon", { icon: n.icon }, () => [
67
- n.icon && !n.spinning ? (t(), l(c(n.icon), {
66
+ l(e.$slots, "icon", { icon: n.icon }, () => [
67
+ n.icon && !n.spinning ? (t(), i(c(n.icon), {
68
68
  key: 0,
69
69
  class: "rvc-button-icon",
70
70
  "aria-hidden": !n.iconOnly
71
71
  }, null, 8, ["aria-hidden"])) : a("", !0)
72
72
  ]),
73
- i(e.$slots, "spinner", { spinning: n.spinning }, () => [
74
- n.spinning ? (t(), l(f(g), {
73
+ l(e.$slots, "spinner", { spinning: n.spinning }, () => [
74
+ n.spinning ? (t(), i(f(g), {
75
75
  key: 0,
76
76
  class: "rvc-button-icon rvc-button-icon-loading",
77
77
  "aria-hidden": "true"
@@ -0,0 +1,200 @@
1
+ import { ref as g, computed as f, createBlock as B, openBlock as E, unref as t, withCtx as d, createVNode as r, withModifiers as D, createElementVNode as a, normalizeClass as L, renderSlot as c, createCommentVNode as T, createTextVNode as F, toDisplayString as I } from "vue";
2
+ import { TransitionRoot as N, Dialog as R, TransitionChild as $, DialogPanel as V, DialogTitle as C } from "@headlessui/vue";
3
+ import { _ as k } from "./ButtonBase-DfkwHIhN.js";
4
+ import { r as S } from "./XMarkIcon-90mcPzBs.js";
5
+ function q(o) {
6
+ const v = g(null), n = g(!1), b = f(() => o.as === "form"), p = f(() => `${o.id}-title`), m = f(() => `${o.id}-content`), u = f(() => {
7
+ var s;
8
+ return (s = v.value) == null ? void 0 : s.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
9
+ });
10
+ return {
11
+ contentRef: v,
12
+ ready: n,
13
+ isForm: b,
14
+ titleId: p,
15
+ descriptionId: m,
16
+ initialFocusElement: u
17
+ };
18
+ }
19
+ const h = {
20
+ role: "presentation",
21
+ class: "rvc-modal-presentation"
22
+ }, A = { class: "rvc-modal-container" }, M = { class: "rvc-modal-header" }, x = { class: "rvc-modal-header-inner" }, z = { class: "rvc-modal-close-wrapper" }, P = ["id"], j = { class: "rvc-modal-footer" }, O = {
23
+ __name: "Modal",
24
+ props: {
25
+ as: {
26
+ type: String,
27
+ default: "div"
28
+ },
29
+ id: {
30
+ type: String,
31
+ required: !0
32
+ },
33
+ title: {
34
+ type: String,
35
+ required: !0
36
+ },
37
+ showClose: {
38
+ type: Boolean
39
+ },
40
+ spinning: {
41
+ type: Boolean
42
+ },
43
+ submitLabel: {
44
+ type: String,
45
+ default: "Confirm"
46
+ },
47
+ cancelLabel: {
48
+ type: String,
49
+ default: "Cancel"
50
+ },
51
+ panelClass: {
52
+ type: String,
53
+ default: "rvc-modal-panel-max-width"
54
+ }
55
+ },
56
+ emits: ["modal:open", "modal:opened", "modal:close", "modal:save", "modal:closed"],
57
+ setup(o, { emit: v }) {
58
+ const n = v, b = o, {
59
+ contentRef: p,
60
+ ready: m,
61
+ isForm: u,
62
+ titleId: s,
63
+ descriptionId: y,
64
+ initialFocusElement: w
65
+ } = q(b);
66
+ return (i, e) => (E(), B(t(N), { as: "template" }, {
67
+ default: d(() => [
68
+ r(t(R), {
69
+ as: o.as,
70
+ class: "rvc-modal",
71
+ static: "",
72
+ "aria-modal": "true",
73
+ role: "dialog",
74
+ "initial-focus": t(w),
75
+ "aria-labelledby": t(s),
76
+ onClose: e[7] || (e[7] = (l) => i.$emit("modal:close")),
77
+ onSubmit: e[8] || (e[8] = D((l) => n("modal:save", l), ["prevent"]))
78
+ }, {
79
+ default: d(() => [
80
+ r(t($), {
81
+ as: "template",
82
+ enter: "rvc-modal-backdrop-transition-enter",
83
+ "enter-from": "rvc-modal-backdrop-transition-enter-from",
84
+ "enter-to": "rvc-modal-backdrop-transition-enter-to",
85
+ leave: "rvc-modal-backdrop-transition-leave",
86
+ "leave-from": "rvc-modal-backdrop-transition-leave-from",
87
+ "leave-to": "rvc-modal-backdrop-transition-leave-to",
88
+ onBeforeEnter: e[0] || (e[0] = (l) => n("modal:open")),
89
+ onAfterEnter: e[1] || (e[1] = (l) => n("modal:opened"))
90
+ }, {
91
+ default: d(() => e[9] || (e[9] = [
92
+ a("div", {
93
+ "aria-hidden": "true",
94
+ class: "rvc-modal-backdrop"
95
+ }, null, -1)
96
+ ])),
97
+ _: 1
98
+ }),
99
+ a("div", h, [
100
+ a("div", A, [
101
+ r(t($), {
102
+ as: "template",
103
+ enter: "rvc-modal-transition-enter",
104
+ "enter-from": "rvc-modal-transition-enter-from",
105
+ "enter-to": "rvc-modal-transition-enter-to",
106
+ leave: "rvc-modal-transition-leave",
107
+ "leave-from": "rvc-modal-transition-leave-from",
108
+ "leave-to": "rvc-modal-transition-leave-to",
109
+ onBeforeEnter: e[5] || (e[5] = (l) => m.value = !0),
110
+ onAfterLeave: e[6] || (e[6] = (l) => (m.value = !1, n("modal:closed")))
111
+ }, {
112
+ default: d(() => [
113
+ r(t(V), {
114
+ class: L(["rvc-modal-panel", o.panelClass]),
115
+ "aria-busy": o.spinning,
116
+ "aria-describedby": t(y)
117
+ }, {
118
+ default: d(() => [
119
+ a("header", M, [
120
+ c(i.$slots, "header", { title: o.title }, () => [
121
+ a("div", x, [
122
+ c(i.$slots, "title", {
123
+ id: t(s),
124
+ dialogTitle: t(C),
125
+ title: o.title
126
+ }, () => [
127
+ r(t(C), {
128
+ id: t(s),
129
+ class: "rvc-modal-title"
130
+ }, {
131
+ default: d(() => [
132
+ F(I(o.title), 1)
133
+ ]),
134
+ _: 1
135
+ }, 8, ["id"])
136
+ ]),
137
+ o.showClose ? c(i.$slots, "close", {
138
+ key: 0,
139
+ icon: t(S),
140
+ emitClose: () => n("drawer:close")
141
+ }, () => [
142
+ a("div", z, [
143
+ a("button", {
144
+ type: "button",
145
+ class: "rvc-modal-close",
146
+ "aria-label": "Close panel",
147
+ onClick: e[2] || (e[2] = (l) => n("modal:close"))
148
+ }, [
149
+ r(t(S), { "aria-hidden": "true" })
150
+ ])
151
+ ])
152
+ ]) : T("", !0)
153
+ ])
154
+ ])
155
+ ]),
156
+ a("div", {
157
+ id: t(y),
158
+ ref_key: "contentRef",
159
+ ref: p,
160
+ class: "rvc-modal-content"
161
+ }, [
162
+ c(i.$slots, "default", { ready: t(m) })
163
+ ], 8, P),
164
+ a("footer", j, [
165
+ c(i.$slots, "footer", { loading: o.spinning }, () => [
166
+ r(k, {
167
+ type: t(u) ? "submit" : "button",
168
+ label: o.submitLabel,
169
+ spinning: o.spinning,
170
+ disabled: o.spinning,
171
+ onClick: e[3] || (e[3] = (l) => !t(u) && i.$emit("modal:save"))
172
+ }, null, 8, ["type", "label", "spinning", "disabled"]),
173
+ r(k, {
174
+ type: "button",
175
+ color: "light",
176
+ label: o.cancelLabel,
177
+ onClick: e[4] || (e[4] = (l) => i.$emit("modal:close"))
178
+ }, null, 8, ["label"])
179
+ ])
180
+ ])
181
+ ]),
182
+ _: 3
183
+ }, 8, ["class", "aria-busy", "aria-describedby"])
184
+ ]),
185
+ _: 3
186
+ })
187
+ ])
188
+ ])
189
+ ]),
190
+ _: 3
191
+ }, 8, ["as", "initial-focus", "aria-labelledby"])
192
+ ]),
193
+ _: 3
194
+ }));
195
+ }
196
+ };
197
+ export {
198
+ O as _,
199
+ q as u
200
+ };
@@ -1,4 +1,4 @@
1
- import { shallowRef as a, createElementBlock as d, openBlock as u, renderSlot as f, createElementVNode as g, normalizeStyle as x, normalizeClass as S, unref as h, createCommentVNode as $, mergeProps as R } from "vue";
1
+ import { shallowRef as a, createElementBlock as p, openBlock as f, renderSlot as u, createElementVNode as g, normalizeStyle as x, normalizeClass as S, unref as h, createCommentVNode as $, mergeProps as R } from "vue";
2
2
  import { useFloating as k, autoUpdate as z, autoPlacement as P, offset as W, shift as C, arrow as M, size as A } from "@floating-ui/vue";
3
3
  const B = ["innerHTML"], N = {
4
4
  __name: "Tooltip",
@@ -46,7 +46,7 @@ const B = ["innerHTML"], N = {
46
46
  setup(t) {
47
47
  const o = t, i = a(), s = a(), l = a(), {
48
48
  floatingStyles: y,
49
- middlewareData: b,
49
+ middlewareData: w,
50
50
  placement: c
51
51
  } = k(i, s, {
52
52
  middleware: [
@@ -65,13 +65,13 @@ const B = ["innerHTML"], N = {
65
65
  ],
66
66
  whileElementsMounted: z,
67
67
  placement: o.placement
68
- }), v = (e) => ({
68
+ }), b = (e) => ({
69
69
  top: 0,
70
70
  bottom: 180,
71
71
  left: -90,
72
72
  right: 90
73
- })[e.split("-")[0]] || 0, w = (e) => {
74
- var p, m;
73
+ })[e.split("-")[0]] || 0, v = (e) => {
74
+ var m, d;
75
75
  const r = c.value.split("-")[0], n = {
76
76
  left: "right",
77
77
  right: "left",
@@ -80,34 +80,34 @@ const B = ["innerHTML"], N = {
80
80
  }[r];
81
81
  return {
82
82
  style: {
83
- left: (p = e.arrow) != null && p.x ? `${e.arrow.x}px` : "",
84
- top: (m = e.arrow) != null && m.y ? `${e.arrow.y}px` : "",
83
+ left: (m = e.arrow) != null && m.x ? `${e.arrow.x}px` : "",
84
+ top: (d = e.arrow) != null && d.y ? `${e.arrow.y}px` : "",
85
85
  bottom: "",
86
86
  right: "",
87
87
  [n]: l.value ? `${l.value.offsetWidth * -1}px` : "",
88
- transform: `rotate(${v(c.value)}deg)`
88
+ transform: `rotate(${b(c.value)}deg)`
89
89
  }
90
90
  };
91
91
  };
92
- return (e, r) => (u(), d("div", {
92
+ return (e, r) => (f(), p("div", {
93
93
  ref_key: "wrapperRef",
94
94
  ref: i,
95
- class: "group/tooltip"
95
+ class: "rvc-tooltip-wrapper"
96
96
  }, [
97
- f(e.$slots, "default"),
97
+ u(e.$slots, "default"),
98
98
  g("div", {
99
99
  ref_key: "tooltipRef",
100
100
  ref: s,
101
101
  class: S([
102
- "rvc-tooltip group-hover/tooltip:opacity-100 group-hover/tooltip:visible invisible opacity-0",
102
+ "rvc-tooltip",
103
103
  t.tooltipClass,
104
104
  `rvc-tooltip-${t.size}`,
105
105
  { "rvc-tooltip-blur": t.blur }
106
106
  ]),
107
107
  style: x(h(y))
108
108
  }, [
109
- f(e.$slots, "content", { content: t.content }, () => [
110
- t.content ? (u(), d("div", {
109
+ u(e.$slots, "content", { content: t.content }, () => [
110
+ t.content ? (f(), p("div", {
111
111
  key: 0,
112
112
  innerHTML: t.content
113
113
  }, null, 8, B)) : $("", !0)
@@ -115,8 +115,8 @@ const B = ["innerHTML"], N = {
115
115
  g("div", R({
116
116
  ref_key: "arrowRef",
117
117
  ref: l,
118
- class: "absolute rvc-tooltip-arrow"
119
- }, w(h(b))), null, 16)
118
+ class: "rvc-tooltip-arrow"
119
+ }, v(h(w))), null, 16)
120
120
  ], 6)
121
121
  ], 512));
122
122
  }