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

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 +246 -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 +351 -347
  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,246 @@
1
+ ## 2.0.0-rc.10 (19-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
+
21
+ ### Updated
22
+
23
+ * Upgraded to **Tailwind v4.0.0** 🚀
24
+ * Customize RVC components with CSS variables
25
+ * Improved `Drawer` and `Modal` slots: Added `title` and `close` slots
26
+ * `FormSelect`: `modelValue` now allows `Boolean` type
27
+ * Improved zIndex order for Dialogs and Toast
28
+
29
+ ### Deprecated
30
+
31
+ * ⚠️ **Nuxt 3** module support. You can manually integrate the components into your Nuxt 3 project now.
32
+
33
+ ## 1.3.2 (24-01-2025)
34
+
35
+ ### Updated
36
+
37
+ * Fixed `FormInput` modelValue type to allow `Number` type
38
+
39
+ ## 1.3.1 (17-01-2025)
40
+
41
+ ### Added
42
+
43
+ * Introduced `peerDependenciesMeta` to the `package.json` file to prevent installation issues
44
+
45
+ ## 1.3.0 (16-01-2025)
46
+
47
+ ### Added
48
+
49
+ * `RichTextEditor` component
50
+ * `--rvc-base-input-font-weight` to inputs
51
+ * `Tooltip` `size` prop. `sm` is now supported
52
+ * Added a `fullWidth` prop to the `Dropdown` Component
53
+
54
+ ### Changed
55
+
56
+ * `@floating-ui/vue`, `@headlessui/vue`, and `vue` are now peer dependencies
57
+
58
+ ### Updated
59
+
60
+ * This library only supports ES format builds now
61
+
62
+ ## 1.2.10 (13-01-2025)
63
+
64
+ ### Updated
65
+
66
+ * Fixed `Combobox` `searchOnly`: prevent firing the request if no value is present
67
+ * Respect the `Combobox` `minLength` prop
68
+ * Combobox `onSearch` params order: `searchValue` first, `params` second and last `endpoint`
69
+
70
+ ## 1.2.9 (10-01-2025)
71
+
72
+ ### Changed
73
+
74
+ * For `Combobox`, `FormInput`, `FormSelect` renamed `iconLeft` prop to `prefixIcon`
75
+
76
+ ## 1.2.8 (10-01-2025)
77
+
78
+ ### Added
79
+
80
+ * `FormTextarea` component
81
+ * `Combobox` component
82
+ * `rvc-radio` to Tailwind safelist
83
+
84
+ ### Updated
85
+
86
+ * `Drawer` fixed docs slots section
87
+
88
+ ## 1.2.7 (08-01-2025)
89
+
90
+ ### Added
91
+
92
+ * `FormInput` component
93
+
94
+ ### Changed
95
+
96
+ * Renamed `--rvc-input-*` CSS variables to `--rvc-base-input-*`
97
+
98
+ ## 1.2.6 (07-01-2025)
99
+
100
+ ### Updated
101
+
102
+ * Bugfix for nesting in tabs.js, empty-state.js and dropdown.js
103
+ * Refactor `Dropdown` component
104
+ * Added the icon-left prop to the `FormSelect` component
105
+
106
+ ## 1.2.5 (06-01-2025)
107
+
108
+ ### Added
109
+
110
+ * `Dropdown` component
111
+ * `EmptyState` component
112
+ * `Toast` component
113
+ * `Pagination` component
114
+ * `Tabs` component
115
+
116
+ ## 1.2.4 (21-12-2024)
117
+
118
+ ### Added
119
+
120
+ * Bind `header` data to `DataTable` `<th>` element
121
+ * `FormSelect` component
122
+ * `Checkbox`: introduced `rootClass` prop
123
+ * Do not map `id` from `DataTable` component items
124
+
125
+ ### Updated
126
+
127
+ * Improved `DataTable` `headers` prop validators
128
+ * `Checkbox`: `id` prop is not required anymore
129
+
130
+ ## 1.2.3 (18-12-2024)
131
+
132
+ ### Added
133
+
134
+ * Global CSS variables and Tailwind config. See the [docs](https://robuust.github.io/vue-components/base/) for more information.
135
+
136
+ ## 1.2.2 (17-12-2024)
137
+
138
+ ### Added
139
+
140
+ * Added `loading` prop to Modal footer slot
141
+
142
+ ## 1.2.1 (12-12-2024)
143
+
144
+ ### Added
145
+
146
+ * `Modal` component
147
+ * `Tooltip` component
148
+ * `Accordion` component
149
+ * `@drawer:closed` event to `Drawer` component
150
+ * `@modal:closed` event to `Modal` component
151
+ * `Checkbox` component
152
+ * `Radio` component
153
+ * `Lightswitch` component
154
+ * Added crucial safelisting for component library
155
+
156
+ ### Updated
157
+
158
+ * Improved customizability for all components
159
+
160
+ ## 1.2.0 (11-12-2024)
161
+
162
+ ### Added
163
+
164
+ * Introduced CSS variables for component customization
165
+ * `Modal` component
166
+ * `Tooltip` component
167
+ * `Accordion` component
168
+ * `Checkbox` component
169
+ * `Lightswitch` component
170
+ * `DataTable` component
171
+ * `@drawer:closed` event to `Drawer` component
172
+ * `@modal:closed` event to `Modal` component
173
+ * Added hover color for the `Alert` component
174
+
175
+ ### Changed
176
+
177
+ * `rvc-` prefix for all components
178
+ * Changed the colors of the `Badge` component
179
+ * `fontSize` `base` to 15px and `sm` to 13px
180
+ * `xs` and `lg` from `size` prop in `Badge` component
181
+ * `ButtonBase` default color variants
182
+
183
+ ## 1.1.1 (27-11-2024)
184
+
185
+ ### Added
186
+
187
+ * `Alert` component
188
+ * `iconOnly` prop to `ButtonBase` component for icon-only button variant
189
+ * a11y attributes to `ButtonBase` component
190
+
191
+ ### Updated
192
+
193
+ * Added slot bindings to `ButtonBase` component:
194
+ * Default slot: Access to `label` prop
195
+ * Icon slot: Access to `icon` prop
196
+ * Spinner slot: Access to `spinning` state
197
+
198
+ ### Deprecated
199
+
200
+ * `xs` and `lg` from `size` prop in `ButtonBase` component
201
+
202
+ ## 1.1.0-rc.0 (25-11-2024)
203
+
204
+ ### Added
205
+
206
+ * `Badge` component
207
+ * `Drawer` component
208
+ * Export component library utilities CSS
209
+ * Library Tailwind `prefix: 'rvc-'` so it doesn't conflict with the consuming application
210
+ * `bindAs` prop to `ButtonBase` component to have more flexible component rendering [#30](https://github.com/robuust/vue-components/issues/30)
211
+
212
+ ### Changed
213
+
214
+ * Removed `@apply` style classes from `./tailwind/components/button` to prevent conflicts with the consuming application. Added native CSS props instead.
215
+
216
+ ### Updated
217
+
218
+ * Added CSS section to docs guide
219
+ * Added docs for `ButtonBase` slots
220
+
221
+ ## 1.0.1-rc.3 (15-11-2024)
222
+
223
+ ### Added
224
+
225
+ * `disabled` and `icon` customizations for `custom` `ButtonBase` component
226
+
227
+ ### Changed
228
+
229
+ * Improved `custom` button Tailwind CSS configuration see [#22](https://github.com/robuust/vue-components/issues/22)
230
+
231
+ ### Deprecated
232
+
233
+ * `hoverBackgroundColor`, `hoverColor`, `styles`, and `hoverStyles` properties for `custom` `ButtonBase` component
234
+
235
+ ## 1.0.1-rc.2 (14-11-2024)
236
+
237
+ ### Changed
238
+
239
+ * `ButtonBase` component improvements
240
+ * Updated docs
241
+
242
+ ## 1.0.1-rc.1 (12-11-2024)
243
+
244
+ ### Added
245
+
246
+ * `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
  }