@robuust-digital/vue-components 2.1.0 → 2.2.0-rc.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 (61) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/_shared/ButtonBase.vue_vue_type_script_setup_true_lang-B0YsKehI.js +60 -0
  3. package/dist/_shared/ChevronDownIcon-DaaXfD3C.js +41 -0
  4. package/dist/_shared/Combobox.vue_vue_type_script_setup_true_lang-D1vKMJok.js +266 -0
  5. package/dist/_shared/Drawer.vue_vue_type_script_setup_true_lang-DT6tBBZ7.js +186 -0
  6. package/dist/_shared/Dropdown.vue_vue_type_script_setup_true_lang-D5vTFLkq.js +115 -0
  7. package/dist/_shared/FormInput.vue_vue_type_script_setup_true_lang-BhJpG-Fw.js +75 -0
  8. package/dist/_shared/Lightswitch.vue_vue_type_script_setup_true_lang-CvN-2WJt.js +44 -0
  9. package/dist/_shared/Modal.vue_vue_type_script_setup_true_lang-DBEOIZnO.js +187 -0
  10. package/dist/_shared/RichTextEditor.vue_vue_type_script_setup_true_lang-Bs4WdJhA.js +274 -0
  11. package/dist/_shared/Tabs.vue_vue_type_script_setup_true_lang-CsGx6wBK.js +676 -0
  12. package/dist/_shared/Toast.vue_vue_type_script_setup_true_lang-FEeRXoIx.js +75 -0
  13. package/dist/_shared/Tooltip.vue_vue_type_script_setup_true_lang-CoydN9sS.js +96 -0
  14. package/dist/combobox/index.js +3 -347
  15. package/dist/combobox.d.ts +4 -0
  16. package/dist/components/Accordion.vue.d.ts +37 -0
  17. package/dist/components/Alert.vue.d.ts +39 -0
  18. package/dist/components/Badge.vue.d.ts +32 -0
  19. package/dist/components/ButtonBase.vue.d.ts +50 -0
  20. package/dist/components/Checkbox.vue.d.ts +39 -0
  21. package/dist/components/Combobox.vue.d.ts +112 -0
  22. package/dist/components/DataTable.vue.d.ts +122 -0
  23. package/dist/components/Drawer.vue.d.ts +103 -0
  24. package/dist/components/Dropdown.vue.d.ts +120 -0
  25. package/dist/components/EmptyState.vue.d.ts +23 -0
  26. package/dist/components/FormInput.vue.d.ts +49 -0
  27. package/dist/components/FormSelect.vue.d.ts +58 -0
  28. package/dist/components/FormTextarea.vue.d.ts +16 -0
  29. package/dist/components/Lightswitch.vue.d.ts +26 -0
  30. package/dist/components/Modal.vue.d.ts +98 -0
  31. package/dist/components/Pagination.vue.d.ts +60 -0
  32. package/dist/components/Radio.vue.d.ts +34 -0
  33. package/dist/components/RichTextEditor.vue.d.ts +71 -0
  34. package/dist/components/Tabs.vue.d.ts +26 -0
  35. package/dist/components/Toast.vue.d.ts +46 -0
  36. package/dist/components/Tooltip.vue.d.ts +45 -0
  37. package/dist/composables/useDialogContext.d.ts +18 -0
  38. package/dist/composables/useForm.d.ts +6 -0
  39. package/dist/core/index.js +17 -826
  40. package/dist/core.d.ts +27 -0
  41. package/dist/dialogs/index.js +4 -216
  42. package/dist/dialogs.d.ts +5 -0
  43. package/dist/dropdown/index.js +3 -131
  44. package/dist/dropdown.d.ts +4 -0
  45. package/dist/index/index.js +35 -0
  46. package/dist/index.d.ts +8 -0
  47. package/dist/lightswitch/index.js +3 -47
  48. package/dist/lightswitch.d.ts +4 -0
  49. package/dist/rich-text-editor/index.js +3 -261
  50. package/dist/rich-text-editor.d.ts +4 -0
  51. package/dist/toast/index.js +3 -99
  52. package/dist/toast.d.ts +4 -0
  53. package/dist/tooltip/index.js +1 -1
  54. package/dist/tooltip.d.ts +4 -0
  55. package/dist/types/shared.d.ts +3 -0
  56. package/package.json +49 -15
  57. package/dist/_shared/ButtonBase-DfkwHIhN.js +0 -87
  58. package/dist/_shared/ChevronDownIcon-z-5U4fIb.js +0 -55
  59. package/dist/_shared/FormInput-B-SQTZTA.js +0 -92
  60. package/dist/_shared/Modal-Bw2sID1x.js +0 -213
  61. package/dist/_shared/Tooltip-B93ZF7IF.js +0 -126
package/dist/core.d.ts ADDED
@@ -0,0 +1,27 @@
1
+ import { default as Accordion } from './components/Accordion.vue';
2
+ import { default as Alert } from './components/Alert.vue';
3
+ import { default as Badge } from './components/Badge.vue';
4
+ import { default as ButtonBase } from './components/ButtonBase.vue';
5
+ import { default as Checkbox } from './components/Checkbox.vue';
6
+ import { default as DataTable } from './components/DataTable.vue';
7
+ import { default as EmptyState } from './components/EmptyState.vue';
8
+ import { default as FormInput } from './components/FormInput.vue';
9
+ import { default as FormSelect } from './components/FormSelect.vue';
10
+ import { default as FormTextarea } from './components/FormTextarea.vue';
11
+ import { default as Pagination } from './components/Pagination.vue';
12
+ import { default as Radio } from './components/Radio.vue';
13
+ import { default as Tabs } from './components/Tabs.vue';
14
+ export type { AccordionProps, AccordionItem } from './components/Accordion.vue';
15
+ export type { AlertProps, AlertType } from './components/Alert.vue';
16
+ export type { BadgeProps, BadgeColor, BadgeSize } from './components/Badge.vue';
17
+ export type { ButtonProps } from './components/ButtonBase.vue';
18
+ export type { CheckboxProps, CheckboxModelValue } from './components/Checkbox.vue';
19
+ export type { DataTableProps, DataTableHeader, DataTableItem, DataTableSortBy, DataTablePagination, } from './components/DataTable.vue';
20
+ export type { EmptyStateProps } from './components/EmptyState.vue';
21
+ export type { FormInputProps, FormInputModelValue, FormInputSize } from './components/FormInput.vue';
22
+ export type { FormSelectProps, FormSelectModelValue, FormSelectSize, FormSelectOption, } from './components/FormSelect.vue';
23
+ export type { FormTextareaProps, FormTextareaSize } from './components/FormTextarea.vue';
24
+ export type { PaginationProps, PaginationData, PaginationLink } from './components/Pagination.vue';
25
+ export type { RadioProps, RadioModelValue } from './components/Radio.vue';
26
+ export type { TabsProps, TabItem, TabStyle } from './components/Tabs.vue';
27
+ export { Accordion, Alert, Badge, ButtonBase, Checkbox, DataTable, EmptyState, FormInput, FormSelect, FormTextarea, Pagination, Radio, Tabs, };
@@ -1,218 +1,6 @@
1
- import { createBlock as u, openBlock as c, unref as t, withCtx as d, createVNode as i, withModifiers as E, createElementVNode as a, normalizeClass as f, createElementBlock as b, renderSlot as s, createCommentVNode as y, createTextVNode as L, toDisplayString as T } from "vue";
2
- import { TransitionRoot as F, Dialog as N, TransitionChild as p, DialogPanel as V, DialogTitle as g } from "@headlessui/vue";
3
- import { _ as k } from "../_shared/ButtonBase-DfkwHIhN.js";
4
- import { u as R } from "../_shared/Modal-Bw2sID1x.js";
5
- import { _ as Y } from "../_shared/Modal-Bw2sID1x.js";
6
- import { r as C } from "../_shared/XMarkIcon-90mcPzBs.js";
7
- const q = {
8
- class: "rvc-drawer-presentation",
9
- role: "presentation"
10
- }, A = { class: "rvc-drawer-container" }, H = { class: "rvc-drawer-inner" }, I = { class: "rvc-drawer-panel-inner" }, M = { class: "rvc-drawer-header-inner" }, z = { class: "rvc-drawer-close-wrapper" }, P = ["id"], j = {
11
- key: 2,
12
- class: "rvc-drawer-footer"
13
- }, U = {
14
- __name: "Drawer",
15
- props: {
16
- as: {
17
- type: String,
18
- default: "form"
19
- },
20
- id: {
21
- type: String,
22
- required: !0
23
- },
24
- title: {
25
- type: String,
26
- required: !0
27
- },
28
- showClose: {
29
- type: Boolean
30
- },
31
- scrolledDown: {
32
- type: Boolean
33
- },
34
- headerSticky: {
35
- type: Boolean
36
- },
37
- spinning: {
38
- type: Boolean
39
- },
40
- submitLabel: {
41
- type: String,
42
- default: "Save"
43
- },
44
- cancelLabel: {
45
- type: String,
46
- default: "Cancel"
47
- },
48
- panelClass: {
49
- type: String,
50
- default: "rvc-drawer-panel-max-width"
51
- },
52
- resetHeader: {
53
- type: Boolean
54
- },
55
- resetFooter: {
56
- type: Boolean
57
- }
58
- },
59
- emits: ["drawer:open", "drawer:opened", "drawer:close", "drawer:save", "drawer:closed"],
60
- setup(e, { emit: $ }) {
61
- const l = $, S = e, {
62
- contentRef: B,
63
- ready: v,
64
- isForm: h,
65
- titleId: w,
66
- descriptionId: m,
67
- initialFocusElement: D
68
- } = R(S);
69
- return (o, r) => (c(), u(t(F), { as: "template" }, {
70
- default: d(() => [
71
- i(t(N), {
72
- as: e.as,
73
- class: "rvc-drawer",
74
- static: "",
75
- "aria-modal": "true",
76
- role: "dialog",
77
- "initial-focus": t(D),
78
- "aria-labelledby": t(w),
79
- onClose: r[6] || (r[6] = (n) => o.$emit("drawer:close")),
80
- onSubmit: r[7] || (r[7] = E((n) => l("drawer:save", n), ["prevent"]))
81
- }, {
82
- default: d(() => [
83
- i(t(p), {
84
- as: "template",
85
- enter: "rvc-drawer-backdrop-transition-enter",
86
- "enter-from": "rvc-drawer-backdrop-transition-enter-from",
87
- "enter-to": "rvc-drawer-backdrop-transition-enter-to",
88
- leave: "rvc-drawer-backdrop-transition-leave",
89
- "leave-from": "rvc-drawer-backdrop-transition-leave-from",
90
- "leave-to": "rvc-drawer-backdrop-transition-leave-to",
91
- onBeforeEnter: r[0] || (r[0] = (n) => l("drawer:open")),
92
- onAfterEnter: r[1] || (r[1] = (n) => l("drawer:opened"))
93
- }, {
94
- default: d(() => r[8] || (r[8] = [
95
- a("div", {
96
- class: "rvc-drawer-backdrop",
97
- "aria-hidden": "true"
98
- }, null, -1)
99
- ])),
100
- _: 1,
101
- __: [8]
102
- }),
103
- a("div", q, [
104
- a("div", A, [
105
- a("div", H, [
106
- i(t(p), {
107
- as: "template",
108
- enter: "rvc-drawer-transition-enter",
109
- "enter-from": "rvc-drawer-transition-enter-from",
110
- "enter-to": "rvc-drawer-transition-enter-to",
111
- leave: "rvc-drawer-transition-leave",
112
- "leave-from": "rvc-drawer-transition-leave-from",
113
- "leave-to": "rvc-drawer-transition-leave-to",
114
- onBeforeEnter: r[4] || (r[4] = (n) => v.value = !0),
115
- onAfterLeave: r[5] || (r[5] = (n) => (v.value = !1, l("drawer:closed")))
116
- }, {
117
- default: d(() => [
118
- i(t(V), {
119
- class: f(["rvc-drawer-panel", e.panelClass]),
120
- "aria-busy": e.spinning,
121
- "aria-describedby": t(m)
122
- }, {
123
- default: d(() => [
124
- a("div", I, [
125
- e.resetHeader ? s(o.$slots, "header", { key: 1 }) : (c(), b("header", {
126
- key: 0,
127
- class: f([{ "rvc-drawer-header-sticky": e.headerSticky }, "rvc-drawer-header"])
128
- }, [
129
- s(o.$slots, "header", {
130
- title: e.title,
131
- showClose: e.showClose
132
- }, () => [
133
- a("div", M, [
134
- s(o.$slots, "title", {
135
- id: t(w),
136
- dialogTitle: t(g),
137
- title: e.title
138
- }, () => [
139
- i(t(g), {
140
- id: t(w),
141
- class: "rvc-drawer-title"
142
- }, {
143
- default: d(() => [
144
- L(T(e.title), 1)
145
- ]),
146
- _: 1
147
- }, 8, ["id"])
148
- ]),
149
- e.showClose ? s(o.$slots, "close", {
150
- key: 0,
151
- icon: t(C),
152
- emitClose: () => l("drawer:close")
153
- }, () => [
154
- a("div", z, [
155
- a("button", {
156
- type: "button",
157
- class: "rvc-drawer-close",
158
- "aria-label": "Close panel",
159
- onClick: r[2] || (r[2] = (n) => l("drawer:close"))
160
- }, [
161
- i(t(C), { "aria-hidden": "true" })
162
- ])
163
- ])
164
- ]) : y("", !0)
165
- ])
166
- ])
167
- ], 2)),
168
- a("div", {
169
- class: f([{ "rvc-drawer-scroll-reverse": e.scrolledDown }, "rvc-drawer-scroll"])
170
- }, [
171
- a("div", {
172
- id: t(m),
173
- ref_key: "contentRef",
174
- ref: B,
175
- class: "rvc-drawer-content"
176
- }, [
177
- s(o.$slots, "default", { ready: t(v) })
178
- ], 8, P)
179
- ], 2),
180
- e.resetFooter ? s(o.$slots, "footer", { key: 3 }) : (c(), b("footer", j, [
181
- s(o.$slots, "footer", { loading: e.spinning }, () => [
182
- i(k, {
183
- type: "button",
184
- label: e.cancelLabel,
185
- color: "light",
186
- onClick: r[3] || (r[3] = (n) => l("drawer:close"))
187
- }, null, 8, ["label"]),
188
- t(h) ? (c(), u(k, {
189
- key: 0,
190
- type: "submit",
191
- label: e.submitLabel,
192
- spinning: e.spinning,
193
- disabled: e.spinning
194
- }, null, 8, ["label", "spinning", "disabled"])) : y("", !0)
195
- ])
196
- ]))
197
- ])
198
- ]),
199
- _: 3
200
- }, 8, ["class", "aria-busy", "aria-describedby"])
201
- ]),
202
- _: 3
203
- })
204
- ])
205
- ])
206
- ])
207
- ]),
208
- _: 3
209
- }, 8, ["as", "initial-focus", "aria-labelledby"])
210
- ]),
211
- _: 3
212
- }));
213
- }
214
- };
1
+ import { _ as a } from "../_shared/Drawer.vue_vue_type_script_setup_true_lang-DT6tBBZ7.js";
2
+ import { _ as f } from "../_shared/Modal.vue_vue_type_script_setup_true_lang-DBEOIZnO.js";
215
3
  export {
216
- U as Drawer,
217
- Y as Modal
4
+ a as Drawer,
5
+ f as Modal
218
6
  };
@@ -0,0 +1,5 @@
1
+ import { default as Drawer } from './components/Drawer.vue';
2
+ import { default as Modal } from './components/Modal.vue';
3
+ export type { DrawerProps } from './components/Drawer.vue';
4
+ export type { ModalProps } from './components/Modal.vue';
5
+ export { Drawer, Modal };
@@ -1,133 +1,5 @@
1
- import { createElementBlock as w, openBlock as r, createElementVNode as C, createBlock as l, unref as n, normalizeClass as u, withCtx as a, renderSlot as s, createVNode as i, mergeProps as f, Transition as B, Fragment as M, renderList as $, resolveDynamicComponent as m, createCommentVNode as A, createTextVNode as D, toDisplayString as L } from "vue";
2
- import { Menu as N, MenuButton as v, MenuItems as S, MenuItem as p } from "@headlessui/vue";
3
- import { _ as V } from "../_shared/ButtonBase-DfkwHIhN.js";
4
- function x(t, c) {
5
- return r(), w("svg", {
6
- xmlns: "http://www.w3.org/2000/svg",
7
- viewBox: "0 0 20 20",
8
- fill: "currentColor",
9
- "aria-hidden": "true",
10
- "data-slot": "icon"
11
- }, [
12
- C("path", { d: "M10 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM10 8.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM11.5 15.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0Z" })
13
- ]);
14
- }
15
- const T = /* @__PURE__ */ Object.assign({
16
- inheritAttrs: !1
17
- }, {
18
- __name: "Dropdown",
19
- props: {
20
- items: {
21
- type: Array,
22
- required: !0,
23
- default: () => []
24
- },
25
- alignLeft: {
26
- type: Boolean,
27
- default: !1
28
- },
29
- fullWidth: {
30
- type: Boolean,
31
- default: !1
32
- },
33
- label: {
34
- type: String,
35
- default: "Options"
36
- },
37
- rootClass: {
38
- type: String,
39
- default: ""
40
- }
41
- },
42
- emits: ["dropdown:click"],
43
- setup(t, { emit: c }) {
44
- const b = c, g = (o) => {
45
- const {
46
- as: h,
47
- bindAs: e,
48
- event: d,
49
- icon: y,
50
- name: I,
51
- ...k
52
- } = o;
53
- return k;
54
- };
55
- return (o, h) => (r(), l(n(N), {
56
- as: "div",
57
- class: u(["rvc-dropdown", t.rootClass])
58
- }, {
59
- default: a(() => [
60
- s(o.$slots, "button", {
61
- label: t.label,
62
- button: n(v)
63
- }, () => [
64
- i(n(v), f({
65
- as: V,
66
- label: t.label,
67
- color: "light",
68
- icon: n(x),
69
- "icon-left": t.alignLeft
70
- }, o.$attrs), null, 16, ["label", "icon", "icon-left"])
71
- ]),
72
- i(B, {
73
- "enter-active-class": "rvc-dropdown-transition-enter",
74
- "enter-from-class": "rvc-dropdown-transition-enter-from",
75
- "enter-to-class": "rvc-dropdown-transition-enter-to",
76
- "leave-active-class": "rvc-dropdown-transition-leave",
77
- "leave-from-class": "rvc-dropdown-transition-leave-from",
78
- "leave-to-class": "rvc-dropdown-transition-leave-to"
79
- }, {
80
- default: a(() => [
81
- i(n(S), {
82
- class: u([
83
- "rvc-dropdown-items",
84
- {
85
- "rvc-dropdown-items-left": t.alignLeft,
86
- "rvc-dropdown-items-full": t.fullWidth
87
- }
88
- ])
89
- }, {
90
- default: a(() => [
91
- s(o.$slots, "items", {
92
- items: t.items,
93
- menuItem: n(p)
94
- }, () => [
95
- (r(!0), w(M, null, $(t.items, (e, d) => (r(), l(n(p), {
96
- key: `${d}-dropdown-item`,
97
- as: "template"
98
- }, {
99
- default: a(() => [
100
- s(o.$slots, "item", { item: e }, () => [
101
- (r(), l(m(e.as ? e.as : "button"), f({ class: "rvc-dropdown-item" }, { ref_for: !0 }, g(e), {
102
- as: e.bindAs ? e.bindAs : void 0,
103
- onClick: (y) => (b("dropdown:click", e), e.event ? e.event() : null)
104
- }), {
105
- default: a(() => [
106
- e.icon ? (r(), l(m(e.icon), {
107
- key: 0,
108
- class: "rvc-dropdown-item-icon"
109
- })) : A("", !0),
110
- D(" " + L(e.name), 1)
111
- ]),
112
- _: 2
113
- }, 1040, ["as", "onClick"]))
114
- ])
115
- ]),
116
- _: 2
117
- }, 1024))), 128))
118
- ])
119
- ]),
120
- _: 3
121
- }, 8, ["class"])
122
- ]),
123
- _: 3
124
- })
125
- ]),
126
- _: 3
127
- }, 8, ["class"]));
128
- }
129
- });
1
+ import { _ as o } from "../_shared/Dropdown.vue_vue_type_script_setup_true_lang-D5vTFLkq.js";
130
2
  export {
131
- T as Dropdown,
132
- T as default
3
+ o as Dropdown,
4
+ o as default
133
5
  };
@@ -0,0 +1,4 @@
1
+ import { default as Dropdown } from './components/Dropdown.vue';
2
+ export type { DropdownProps, DropdownItem } from './components/Dropdown.vue';
3
+ export { Dropdown };
4
+ export default Dropdown;
@@ -0,0 +1,35 @@
1
+ import { _ as r, a as t, b as e, c as s, d as m, e as p, f as x, g as f, h as _, i } from "../_shared/Tabs.vue_vue_type_script_setup_true_lang-CsGx6wBK.js";
2
+ import { _ as d } from "../_shared/ChevronDownIcon-DaaXfD3C.js";
3
+ import { _ as n } from "../_shared/ButtonBase.vue_vue_type_script_setup_true_lang-B0YsKehI.js";
4
+ import { _ as h } from "../_shared/FormInput.vue_vue_type_script_setup_true_lang-BhJpG-Fw.js";
5
+ import { _ as g } from "../_shared/Combobox.vue_vue_type_script_setup_true_lang-D1vKMJok.js";
6
+ import { _ as B } from "../_shared/Drawer.vue_vue_type_script_setup_true_lang-DT6tBBZ7.js";
7
+ import { _ as F } from "../_shared/Modal.vue_vue_type_script_setup_true_lang-DBEOIZnO.js";
8
+ import { _ as A } from "../_shared/Dropdown.vue_vue_type_script_setup_true_lang-D5vTFLkq.js";
9
+ import { _ as E } from "../_shared/Lightswitch.vue_vue_type_script_setup_true_lang-CvN-2WJt.js";
10
+ import { _ as S } from "../_shared/RichTextEditor.vue_vue_type_script_setup_true_lang-Bs4WdJhA.js";
11
+ import { _ as y } from "../_shared/Toast.vue_vue_type_script_setup_true_lang-FEeRXoIx.js";
12
+ import { _ as L } from "../_shared/Tooltip.vue_vue_type_script_setup_true_lang-CoydN9sS.js";
13
+ export {
14
+ r as Accordion,
15
+ t as Alert,
16
+ d as Badge,
17
+ n as ButtonBase,
18
+ e as Checkbox,
19
+ g as Combobox,
20
+ s as DataTable,
21
+ B as Drawer,
22
+ A as Dropdown,
23
+ m as EmptyState,
24
+ h as FormInput,
25
+ p as FormSelect,
26
+ x as FormTextarea,
27
+ E as Lightswitch,
28
+ F as Modal,
29
+ f as Pagination,
30
+ _ as Radio,
31
+ S as RichTextEditor,
32
+ i as Tabs,
33
+ y as Toast,
34
+ L as Tooltip
35
+ };
@@ -0,0 +1,8 @@
1
+ export * from './core';
2
+ export * from './combobox';
3
+ export * from './dialogs';
4
+ export * from './dropdown';
5
+ export * from './lightswitch';
6
+ export * from './rich-text-editor';
7
+ export * from './toast';
8
+ export * from './tooltip';
@@ -1,49 +1,5 @@
1
- import { computed as n, createBlock as o, openBlock as r, unref as a, withCtx as s, createVNode as p, createCommentVNode as h, mergeProps as f, createElementVNode as g, renderSlot as w } from "vue";
2
- import { SwitchGroup as V, Switch as v, SwitchLabel as b } from "@headlessui/vue";
3
- const k = /* @__PURE__ */ Object.assign({
4
- inheritAttrs: !1
5
- }, {
6
- __name: "Lightswitch",
7
- props: {
8
- modelValue: {
9
- type: Boolean,
10
- default: !1
11
- }
12
- },
13
- emits: ["update:modelValue"],
14
- setup(u, { emit: i }) {
15
- const d = u, c = i, l = n({
16
- get: () => d.modelValue,
17
- set: (e) => c("update:modelValue", e)
18
- });
19
- return (e, t) => (r(), o(a(V), {
20
- as: "div",
21
- class: "rvc-lightswitch-group"
22
- }, {
23
- default: s(() => [
24
- p(a(v), f({
25
- modelValue: l.value,
26
- "onUpdate:modelValue": t[0] || (t[0] = (m) => l.value = m),
27
- class: [{ "rvc-lightswitch-enabled": l.value }, "rvc-lightswitch"]
28
- }, e.$attrs), {
29
- default: s(() => t[1] || (t[1] = [
30
- g("span", { class: "rvc-lightswitch-toggle" }, null, -1)
31
- ])),
32
- _: 1,
33
- __: [1]
34
- }, 16, ["modelValue", "class"]),
35
- e.$slots.default ? (r(), o(a(b), { key: 0 }, {
36
- default: s(() => [
37
- w(e.$slots, "default")
38
- ]),
39
- _: 3
40
- })) : h("", !0)
41
- ]),
42
- _: 3
43
- }));
44
- }
45
- });
1
+ import { _ as s } from "../_shared/Lightswitch.vue_vue_type_script_setup_true_lang-CvN-2WJt.js";
46
2
  export {
47
- k as Lightswitch,
48
- k as default
3
+ s as Lightswitch,
4
+ s as default
49
5
  };
@@ -0,0 +1,4 @@
1
+ import { default as Lightswitch } from './components/Lightswitch.vue';
2
+ export type { LightswitchProps } from './components/Lightswitch.vue';
3
+ export { Lightswitch };
4
+ export default Lightswitch;