@robuust-digital/vue-components 2.0.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 (66) hide show
  1. package/CHANGELOG.md +25 -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/button.css +1 -9
  40. package/dist/core/checkbox.css +6 -9
  41. package/dist/core/index.js +17 -799
  42. package/dist/core/input.css +8 -7
  43. package/dist/core/radio.css +6 -9
  44. package/dist/core/utilities.css +12 -0
  45. package/dist/core.d.ts +27 -0
  46. package/dist/dialogs/index.js +4 -206
  47. package/dist/dialogs.d.ts +5 -0
  48. package/dist/dropdown/index.js +3 -131
  49. package/dist/dropdown.d.ts +4 -0
  50. package/dist/index/index.js +35 -0
  51. package/dist/index.d.ts +8 -0
  52. package/dist/lightswitch/index.js +3 -47
  53. package/dist/lightswitch.d.ts +4 -0
  54. package/dist/rich-text-editor/index.js +3 -263
  55. package/dist/rich-text-editor.d.ts +4 -0
  56. package/dist/toast/index.js +3 -99
  57. package/dist/toast.d.ts +4 -0
  58. package/dist/tooltip/index.js +1 -1
  59. package/dist/tooltip.d.ts +4 -0
  60. package/dist/types/shared.d.ts +3 -0
  61. package/package.json +55 -24
  62. package/dist/_shared/ButtonBase-DfkwHIhN.js +0 -87
  63. package/dist/_shared/ChevronDownIcon-z-5U4fIb.js +0 -55
  64. package/dist/_shared/FormInput-C5LjZViC.js +0 -85
  65. package/dist/_shared/Modal-dqDGKVw5.js +0 -201
  66. package/dist/_shared/Tooltip-B93ZF7IF.js +0 -126
@@ -59,7 +59,7 @@
59
59
  }
60
60
  }
61
61
 
62
- &:has(svg:last-child) input {
62
+ &:has(.rvc-input-suffix) input {
63
63
  padding-right: calc(var(--rvc-input-padding-x) + var(--rvc-input-icon-size) + 0.25rem);
64
64
  }
65
65
 
@@ -67,7 +67,8 @@
67
67
  opacity: var(--rvc-input-disabled-opacity);
68
68
  }
69
69
 
70
- .rvc-input-prefix, svg {
70
+ .rvc-input-prefix,
71
+ .rvc-input-suffix {
71
72
  position: relative;
72
73
  z-index: 1;
73
74
  grid-column-start: 1;
@@ -82,14 +83,14 @@
82
83
  justify-self: start;
83
84
  }
84
85
 
86
+ .rvc-input-suffix {
87
+ margin-right: var(--rvc-input-padding-x);
88
+ justify-self: end;
89
+ }
90
+
85
91
  svg {
86
92
  width: var(--rvc-input-icon-size);
87
93
  height: var(--rvc-input-icon-size);
88
- justify-self: end;
89
-
90
- &:last-child:not(:first-child) {
91
- margin-right: var(--rvc-input-padding-x);
92
- }
93
94
  }
94
95
 
95
96
  &.rvc-input-sm {
@@ -24,7 +24,11 @@
24
24
  cursor: pointer;
25
25
  gap: var(--rvc-radio-gap);
26
26
 
27
- label {
27
+ &:has(*:disabled) {
28
+ cursor: default;
29
+ }
30
+
31
+ .rvc-radio-label {
28
32
  color: var(--rvc-radio-color);
29
33
  font-size: var(--rvc-radio-font-size);
30
34
  font-weight: var(--rvc-radio-font-weight);
@@ -54,14 +58,7 @@
54
58
  }
55
59
 
56
60
  input {
57
- position: absolute;
58
- opacity: 0;
59
- inset: 0;
60
- cursor: pointer;
61
-
62
- &:disabled {
63
- cursor: default;
64
- }
61
+ display: none;
65
62
  }
66
63
 
67
64
  input:checked + .rvc-radio-input {
@@ -10,3 +10,15 @@
10
10
  outline: var(--rvc-base-focus-outline-color) var(--rvc-base-focus-outline-style) var(--rvc-base-focus-outline-offset);
11
11
  outline-offset: var(--rvc-base-focus-outline-width);
12
12
  }
13
+
14
+ @utility rvc-sr-only {
15
+ position: absolute;
16
+ width: 1px;
17
+ height: 1px;
18
+ margin: -1px;
19
+ padding: 0;
20
+ overflow: hidden;
21
+ clip-path: inset(0);
22
+ border-width: 0;
23
+ white-space: nowrap;
24
+ }
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,208 +1,6 @@
1
- import { createBlock as u, openBlock as m, unref as r, withCtx as s, createVNode as i, withModifiers as B, createElementVNode as a, normalizeClass as w, renderSlot as d, createCommentVNode as b, createTextVNode as E, toDisplayString as L } from "vue";
2
- import { TransitionRoot as T, Dialog as N, TransitionChild as p, DialogPanel as V, DialogTitle as y } from "@headlessui/vue";
3
- import { _ as g } from "../_shared/ButtonBase-DfkwHIhN.js";
4
- import { u as R } from "../_shared/Modal-dqDGKVw5.js";
5
- import { _ as W } from "../_shared/Modal-dqDGKVw5.js";
6
- import { r as k } from "../_shared/XMarkIcon-90mcPzBs.js";
7
- const q = {
8
- class: "rvc-drawer-presentation",
9
- role: "presentation"
10
- }, A = { class: "rvc-drawer-container" }, F = { class: "rvc-drawer-inner" }, I = { class: "rvc-drawer-panel-inner" }, M = { class: "rvc-drawer-header-inner" }, x = { class: "rvc-drawer-close-wrapper" }, z = ["id"], P = { class: "rvc-drawer-footer" }, O = {
11
- __name: "Drawer",
12
- props: {
13
- as: {
14
- type: String,
15
- default: "form"
16
- },
17
- id: {
18
- type: String,
19
- required: !0
20
- },
21
- title: {
22
- type: String,
23
- required: !0
24
- },
25
- showClose: {
26
- type: Boolean
27
- },
28
- scrolledDown: {
29
- type: Boolean
30
- },
31
- headerSticky: {
32
- type: Boolean
33
- },
34
- spinning: {
35
- type: Boolean
36
- },
37
- submitLabel: {
38
- type: String,
39
- default: "Save"
40
- },
41
- cancelLabel: {
42
- type: String,
43
- default: "Cancel"
44
- },
45
- panelClass: {
46
- type: String,
47
- default: "rvc-drawer-panel-max-width"
48
- }
49
- },
50
- emits: ["drawer:open", "drawer:opened", "drawer:close", "drawer:save", "drawer:closed"],
51
- setup(t, { emit: C }) {
52
- const o = C, $ = t, {
53
- contentRef: S,
54
- ready: c,
55
- isForm: h,
56
- titleId: v,
57
- descriptionId: f,
58
- initialFocusElement: D
59
- } = R($);
60
- return (l, e) => (m(), u(r(T), { as: "template" }, {
61
- default: s(() => [
62
- i(r(N), {
63
- as: t.as,
64
- class: "rvc-drawer",
65
- static: "",
66
- "aria-modal": "true",
67
- role: "dialog",
68
- "initial-focus": r(D),
69
- "aria-labelledby": r(v),
70
- onClose: e[6] || (e[6] = (n) => l.$emit("drawer:close")),
71
- onSubmit: e[7] || (e[7] = B((n) => o("drawer:save", n), ["prevent"]))
72
- }, {
73
- default: s(() => [
74
- i(r(p), {
75
- as: "template",
76
- enter: "rvc-drawer-backdrop-transition-enter",
77
- "enter-from": "rvc-drawer-backdrop-transition-enter-from",
78
- "enter-to": "rvc-drawer-backdrop-transition-enter-to",
79
- leave: "rvc-drawer-backdrop-transition-leave",
80
- "leave-from": "rvc-drawer-backdrop-transition-leave-from",
81
- "leave-to": "rvc-drawer-backdrop-transition-leave-to",
82
- onBeforeEnter: e[0] || (e[0] = (n) => o("drawer:open")),
83
- onAfterEnter: e[1] || (e[1] = (n) => o("drawer:opened"))
84
- }, {
85
- default: s(() => e[8] || (e[8] = [
86
- a("div", {
87
- class: "rvc-drawer-backdrop",
88
- "aria-hidden": "true"
89
- }, null, -1)
90
- ])),
91
- _: 1,
92
- __: [8]
93
- }),
94
- a("div", q, [
95
- a("div", A, [
96
- a("div", F, [
97
- i(r(p), {
98
- as: "template",
99
- enter: "rvc-drawer-transition-enter",
100
- "enter-from": "rvc-drawer-transition-enter-from",
101
- "enter-to": "rvc-drawer-transition-enter-to",
102
- leave: "rvc-drawer-transition-leave",
103
- "leave-from": "rvc-drawer-transition-leave-from",
104
- "leave-to": "rvc-drawer-transition-leave-to",
105
- onBeforeEnter: e[4] || (e[4] = (n) => c.value = !0),
106
- onAfterLeave: e[5] || (e[5] = (n) => (c.value = !1, o("drawer:closed")))
107
- }, {
108
- default: s(() => [
109
- i(r(V), {
110
- class: w(["rvc-drawer-panel", t.panelClass]),
111
- "aria-busy": t.spinning,
112
- "aria-describedby": r(f)
113
- }, {
114
- default: s(() => [
115
- a("div", I, [
116
- a("header", {
117
- class: w([{ "rvc-drawer-header-sticky": t.headerSticky }, "rvc-drawer-header"])
118
- }, [
119
- d(l.$slots, "header", {
120
- title: t.title,
121
- showClose: t.showClose
122
- }, () => [
123
- a("div", M, [
124
- d(l.$slots, "title", {
125
- id: r(v),
126
- dialogTitle: r(y),
127
- title: t.title
128
- }, () => [
129
- i(r(y), {
130
- id: r(v),
131
- class: "rvc-drawer-title"
132
- }, {
133
- default: s(() => [
134
- E(L(t.title), 1)
135
- ]),
136
- _: 1
137
- }, 8, ["id"])
138
- ]),
139
- t.showClose ? d(l.$slots, "close", {
140
- key: 0,
141
- icon: r(k),
142
- emitClose: () => o("drawer:close")
143
- }, () => [
144
- a("div", x, [
145
- a("button", {
146
- type: "button",
147
- class: "rvc-drawer-close",
148
- "aria-label": "Close panel",
149
- onClick: e[2] || (e[2] = (n) => o("drawer:close"))
150
- }, [
151
- i(r(k), { "aria-hidden": "true" })
152
- ])
153
- ])
154
- ]) : b("", !0)
155
- ])
156
- ])
157
- ], 2),
158
- a("div", {
159
- class: w([{ "rvc-drawer-scroll-reverse": t.scrolledDown }, "rvc-drawer-scroll"])
160
- }, [
161
- a("div", {
162
- id: r(f),
163
- ref_key: "contentRef",
164
- ref: S,
165
- class: "rvc-drawer-content"
166
- }, [
167
- d(l.$slots, "default", { ready: r(c) })
168
- ], 8, z)
169
- ], 2),
170
- a("footer", P, [
171
- d(l.$slots, "footer", { loading: t.spinning }, () => [
172
- i(g, {
173
- type: "button",
174
- label: t.cancelLabel,
175
- color: "light",
176
- onClick: e[3] || (e[3] = (n) => o("drawer:close"))
177
- }, null, 8, ["label"]),
178
- r(h) ? (m(), u(g, {
179
- key: 0,
180
- type: "submit",
181
- label: t.submitLabel,
182
- spinning: t.spinning,
183
- disabled: t.spinning
184
- }, null, 8, ["label", "spinning", "disabled"])) : b("", !0)
185
- ])
186
- ])
187
- ])
188
- ]),
189
- _: 3
190
- }, 8, ["class", "aria-busy", "aria-describedby"])
191
- ]),
192
- _: 3
193
- })
194
- ])
195
- ])
196
- ])
197
- ]),
198
- _: 3
199
- }, 8, ["as", "initial-focus", "aria-labelledby"])
200
- ]),
201
- _: 3
202
- }));
203
- }
204
- };
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";
205
3
  export {
206
- O as Drawer,
207
- W as Modal
4
+ a as Drawer,
5
+ f as Modal
208
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;