@solfacil/girassol 0.1.9 → 0.2.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 (87) hide show
  1. package/cli/bin/{girassol → girassol-cli} +0 -0
  2. package/cli/build/cli.js +68 -0
  3. package/cli/build/commands/create:component.js +124 -0
  4. package/cli/build/commands/generate:plugin.js +89 -0
  5. package/cli/build/commands/generate:types.js +76 -0
  6. package/cli/build/commands/girassol-cli.js +52 -0
  7. package/cli/build/extensions/cli-extension.js +17 -0
  8. package/cli/build/templates/components.d.ts.ejs +1 -0
  9. package/cli/build/templates/nuxt-plugin.ejs +8 -0
  10. package/cli/build/templates/vue-plugin.ejs +5 -0
  11. package/cli/{src → build}/templates/windi.config.ts.ejs +0 -0
  12. package/cli/build/types/cli.d.ts +1 -0
  13. package/cli/build/types/commands/create:component.d.ts +1 -0
  14. package/cli/build/types/commands/generate:plugin.d.ts +1 -0
  15. package/cli/build/types/commands/generate:types.d.ts +7 -0
  16. package/cli/build/types/commands/girassol-cli.d.ts +1 -0
  17. package/cli/build/types/extensions/cli-extension.d.ts +1 -0
  18. package/cli/build/types/types.d.ts +0 -0
  19. package/cli/build/types.js +2 -0
  20. package/dist/README.md.d.ts +2 -0
  21. package/dist/cli/readme.md.d.ts +2 -0
  22. package/dist/cli/src/cli.d.ts +1 -0
  23. package/dist/cli/src/commands/create:component.d.ts +1 -0
  24. package/dist/cli/src/commands/generate:plugin.d.ts +1 -0
  25. package/dist/cli/src/commands/generate:types.d.ts +7 -0
  26. package/dist/cli/src/commands/girassol-cli.d.ts +1 -0
  27. package/dist/cli/src/extensions/cli-extension.d.ts +1 -0
  28. package/dist/cli/src/types.d.ts +0 -0
  29. package/dist/components.d.ts +22 -0
  30. package/dist/components.json +1 -0
  31. package/dist/girassol.es.js +611 -261
  32. package/dist/girassol.umd.js +5 -5
  33. package/dist/style.css +1 -1
  34. package/dist/theme/solfacil/colors.d.ts +23 -5
  35. package/dist/theme/solfacil/effects.d.ts +5 -3
  36. package/dist/theme/solfacil/typography.d.ts +1 -2
  37. package/dist/types/components/accordion/Accordion.vue.d.ts +97 -0
  38. package/dist/types/components/accordion/accordion.spec.d.ts +1 -0
  39. package/dist/types/components/accordion/index.d.ts +2 -0
  40. package/dist/types/components/dropdown/Dropdown.vue.d.ts +188 -31
  41. package/dist/types/components/forms/button/Button.vue.d.ts +86 -12
  42. package/dist/types/components/forms/checkbox/Checkbox.vue.d.ts +77 -11
  43. package/dist/types/components/forms/checkbox/CheckboxGroup.vue.d.ts +114 -19
  44. package/dist/types/components/forms/input/Input.vue.d.ts +76 -10
  45. package/dist/types/components/forms/radio/Radio.vue.d.ts +77 -11
  46. package/dist/types/components/forms/radio/RadioGroup.vue.d.ts +114 -19
  47. package/dist/types/components/forms/select/ListOption.vue.d.ts +149 -0
  48. package/dist/types/components/forms/select/Select.vue.d.ts +298 -27
  49. package/dist/types/components/forms/switch/Switch.vue.d.ts +83 -13
  50. package/dist/types/components/forms/textarea/Textarea.vue.d.ts +108 -19
  51. package/dist/types/components/forms/textfield/Textfield.vue.d.ts +101 -17
  52. package/dist/types/components/forms/textfield/TextfieldPassword.vue.d.ts +71 -9
  53. package/dist/types/components/informations/chip/Chip.vue.d.ts +94 -15
  54. package/dist/types/composables/use-toast/Toast.vue.d.ts +130 -24
  55. package/dist/types/composables/use-toast/index.d.ts +1 -1
  56. package/dist/types/index.d.ts +2723 -2
  57. package/dist/vite-modules/generate-component-types.d.ts +3 -0
  58. package/dist/windi.config.d.ts +1 -1
  59. package/package.json +52 -42
  60. package/theme/solfacil/borders.ts +2 -1
  61. package/theme/solfacil/colors.ts +36 -23
  62. package/theme/solfacil/effects.ts +6 -4
  63. package/theme/solfacil/typography.ts +2 -4
  64. package/vite.config.ts +4 -0
  65. package/windi.config.ts +31 -1
  66. package/cli/.eslintrc.js +0 -18
  67. package/cli/LICENSE +0 -21
  68. package/cli/docs/commands.md +0 -3
  69. package/cli/docs/plugins.md +0 -47
  70. package/cli/package.json +0 -53
  71. package/cli/readme.md +0 -26
  72. package/cli/src/cli.ts +0 -25
  73. package/cli/src/commands/create:component.ts +0 -93
  74. package/cli/src/commands/generate:plugin.ts +0 -68
  75. package/cli/src/commands/generate:types.ts +0 -38
  76. package/cli/src/commands/girassol.ts +0 -12
  77. package/cli/src/extensions/cli-extension.ts +0 -17
  78. package/cli/src/templates/components/component.spec.ts.ejs +0 -20
  79. package/cli/src/templates/components/component.stories.mdx.ejs +0 -74
  80. package/cli/src/templates/components/component.vue.ejs +0 -23
  81. package/cli/src/templates/components/index.ts.ejs +0 -10
  82. package/cli/src/templates/components.d.ts.ejs +0 -10
  83. package/cli/src/templates/nuxt-plugin.ejs +0 -7
  84. package/cli/src/templates/vue-plugin.ejs +0 -5
  85. package/cli/src/types.ts +0 -1
  86. package/cli/tsconfig.json +0 -28
  87. package/cli/yarn.lock +0 -1804
@@ -17,13 +17,13 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, useSlots, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, ref, toDisplayString, createCommentVNode, createVNode, mergeProps, isRef, createBlock, withCtx, withDirectives, vShow, vModelText, Fragment, renderList, getCurrentScope, onScopeDispose, watch, reactive, withModifiers, createTextVNode, Transition as Transition$1, normalizeStyle, withKeys, onMounted, onUnmounted, render as render$8 } from "vue";
20
+ import { defineComponent, useSlots, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, ref, toDisplayString, createCommentVNode, createVNode, mergeProps, isRef, createBlock, withCtx, withDirectives, vShow, vModelText, Fragment, renderList, getCurrentScope, onScopeDispose, watch, reactive, withModifiers, createTextVNode, Transition as Transition$1, normalizeStyle, withKeys, onMounted, onUnmounted, render as render$9 } from "vue";
21
21
  var Button_vue_vue_type_style_index_0_lang = "";
22
- const _hoisted_1$l = ["data-testid"];
23
- const _hoisted_2$j = { class: "icon -left" };
24
- const _hoisted_3$h = { class: "icon -right" };
25
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
26
- name: "Button",
22
+ const _hoisted_1$o = ["data-testid"];
23
+ const _hoisted_2$m = { class: "icon -left" };
24
+ const _hoisted_3$k = { class: "icon -right" };
25
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
26
+ __name: "Button",
27
27
  props: {
28
28
  variant: { default: "primary" },
29
29
  dense: { type: Boolean, default: false },
@@ -31,40 +31,42 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
31
31
  id: null
32
32
  },
33
33
  setup(__props) {
34
- function hasVariant(variant, variantClass) {
35
- return variant ? variantClass : "";
34
+ const props = __props;
35
+ function hasVariant(variant2, variantClass) {
36
+ return variant2 ? variantClass : "";
36
37
  }
37
38
  const slots = useSlots();
38
39
  const hasContentWithIcon = computed(() => !!(slots == null ? void 0 : slots.default) && (!!(slots == null ? void 0 : slots["icon-right"]) || !!(slots == null ? void 0 : slots["icon-left"])));
39
40
  const onlyIcon = computed(() => !(slots == null ? void 0 : slots.default) && (!!(slots == null ? void 0 : slots["icon-right"]) || !!(slots == null ? void 0 : slots["icon-left"])));
41
+ const variant = computed(() => props.variant ? `-${props.variant}` : "-primary");
40
42
  return (_ctx, _cache) => {
41
43
  return openBlock(), createElementBlock("button", {
42
44
  "data-testid": `button-${__props.id}`,
43
- class: normalizeClass(["sol-button-core", `-${__props.variant}
45
+ class: normalizeClass(["sol-button-core", `${unref(variant)}
44
46
  ${hasVariant(__props.dense, "-dense")} ${hasVariant(__props.invert, "-invert")}
45
47
  ${hasVariant(unref(hasContentWithIcon), "-has-icon")}
46
48
  ${hasVariant(unref(onlyIcon), "-only-icon")}
47
49
  `]),
48
50
  type: "button"
49
51
  }, [
50
- createElementVNode("div", _hoisted_2$j, [
52
+ createElementVNode("div", _hoisted_2$m, [
51
53
  renderSlot(_ctx.$slots, "icon-left")
52
54
  ]),
53
55
  renderSlot(_ctx.$slots, "default"),
54
- createElementVNode("div", _hoisted_3$h, [
56
+ createElementVNode("div", _hoisted_3$k, [
55
57
  renderSlot(_ctx.$slots, "icon-right")
56
58
  ])
57
- ], 10, _hoisted_1$l);
59
+ ], 10, _hoisted_1$o);
58
60
  };
59
61
  }
60
62
  });
61
- _sfc_main$d.install = (app) => {
62
- app.component("SolButton", _sfc_main$d);
63
+ _sfc_main$f.install = (app) => {
64
+ app.component("SolButton", _sfc_main$f);
63
65
  };
64
66
  var Input_vue_vue_type_style_index_0_lang = "";
65
- const _hoisted_1$k = ["id", "data-testid", "value"];
66
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
67
- name: "Input",
67
+ const _hoisted_1$n = ["id", "data-testid", "value"];
68
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
69
+ __name: "Input",
68
70
  props: {
69
71
  id: null,
70
72
  modelValue: null,
@@ -89,21 +91,21 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
89
91
  value: __props.modelValue,
90
92
  class: normalizeClass(["sol-input-core", { "-invert": __props.invert, "-error": __props.error }]),
91
93
  onInput: emitInput
92
- }, null, 42, _hoisted_1$k);
94
+ }, null, 42, _hoisted_1$n);
93
95
  };
94
96
  }
95
97
  });
96
- _sfc_main$c.install = (app) => {
97
- app.component("SolInput", _sfc_main$c);
98
+ _sfc_main$e.install = (app) => {
99
+ app.component("SolInput", _sfc_main$e);
98
100
  };
99
101
  var Textfield_vue_vue_type_style_index_0_lang = "";
100
- const _hoisted_1$j = ["id", "data-testid"];
101
- const _hoisted_2$i = ["for"];
102
- const _hoisted_3$g = { class: "container-input" };
103
- const _hoisted_4$6 = ["id"];
104
- const _hoisted_5$3 = ["id"];
105
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
106
- name: "Textfield",
102
+ const _hoisted_1$m = ["id", "data-testid"];
103
+ const _hoisted_2$l = ["for"];
104
+ const _hoisted_3$j = { class: "container-input" };
105
+ const _hoisted_4$8 = ["id"];
106
+ const _hoisted_5$4 = ["id"];
107
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
108
+ __name: "Textfield",
107
109
  props: {
108
110
  id: null,
109
111
  class: null,
@@ -146,11 +148,11 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
146
148
  class: "label"
147
149
  }, [
148
150
  createElementVNode("span", null, toDisplayString(__props.label), 1)
149
- ], 8, _hoisted_2$i)) : createCommentVNode("", true)
151
+ ], 8, _hoisted_2$l)) : createCommentVNode("", true)
150
152
  ]),
151
- createElementVNode("div", _hoisted_3$g, [
153
+ createElementVNode("div", _hoisted_3$j, [
152
154
  renderSlot(_ctx.$slots, "default", {}, () => [
153
- createVNode(_sfc_main$c, mergeProps(_ctx.$attrs, {
155
+ createVNode(_sfc_main$e, mergeProps(_ctx.$attrs, {
154
156
  id: __props.id,
155
157
  modelValue: unref(model),
156
158
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(model) ? model.value = $event : null),
@@ -167,52 +169,52 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
167
169
  key: 0,
168
170
  id: `hint-${__props.id}`,
169
171
  class: "hint"
170
- }, toDisplayString(__props.hint), 9, _hoisted_4$6)) : __props.error ? (openBlock(), createElementBlock("span", {
172
+ }, toDisplayString(__props.hint), 9, _hoisted_4$8)) : __props.error ? (openBlock(), createElementBlock("span", {
171
173
  key: 1,
172
174
  id: `error-${__props.id}`,
173
175
  class: "error"
174
- }, toDisplayString(__props.error), 9, _hoisted_5$3)) : createCommentVNode("", true)
175
- ], 10, _hoisted_1$j);
176
+ }, toDisplayString(__props.error), 9, _hoisted_5$4)) : createCommentVNode("", true)
177
+ ], 10, _hoisted_1$m);
176
178
  };
177
179
  }
178
180
  });
179
- const _hoisted_1$i = {
181
+ const _hoisted_1$l = {
180
182
  preserveAspectRatio: "xMidYMid meet",
181
183
  viewBox: "0 0 24 24",
182
184
  width: "1.2em",
183
185
  height: "1.2em"
184
186
  };
185
- const _hoisted_2$h = /* @__PURE__ */ createElementVNode("g", { fill: "currentColor" }, [
187
+ const _hoisted_2$k = /* @__PURE__ */ createElementVNode("g", { fill: "currentColor" }, [
186
188
  /* @__PURE__ */ createElementVNode("path", { d: "M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0z" }),
187
189
  /* @__PURE__ */ createElementVNode("path", { d: "M21.894 11.553C19.736 7.236 15.904 5 12 5c-3.903 0-7.736 2.236-9.894 6.553a1 1 0 0 0 0 .894C4.264 16.764 8.096 19 12 19c3.903 0 7.736-2.236 9.894-6.553a1 1 0 0 0 0-.894zM12 17c-2.969 0-6.002-1.62-7.87-5C5.998 8.62 9.03 7 12 7c2.969 0 6.002 1.62 7.87 5c-1.868 3.38-4.901 5-7.87 5z" })
188
190
  ], -1);
189
- const _hoisted_3$f = [
190
- _hoisted_2$h
191
+ const _hoisted_3$i = [
192
+ _hoisted_2$k
191
193
  ];
192
- function render$7(_ctx, _cache) {
193
- return openBlock(), createElementBlock("svg", _hoisted_1$i, _hoisted_3$f);
194
+ function render$8(_ctx, _cache) {
195
+ return openBlock(), createElementBlock("svg", _hoisted_1$l, _hoisted_3$i);
194
196
  }
195
- var EyeOn = { name: "mi-eye", render: render$7 };
196
- const _hoisted_1$h = {
197
+ var EyeOn = { name: "mi-eye", render: render$8 };
198
+ const _hoisted_1$k = {
197
199
  preserveAspectRatio: "xMidYMid meet",
198
200
  viewBox: "0 0 24 24",
199
201
  width: "1.2em",
200
202
  height: "1.2em"
201
203
  };
202
- const _hoisted_2$g = /* @__PURE__ */ createElementVNode("path", {
204
+ const _hoisted_2$j = /* @__PURE__ */ createElementVNode("path", {
203
205
  fill: "currentColor",
204
206
  d: "M4.707 3.293a1 1 0 0 0-1.414 1.414l2.424 2.424c-1.43 1.076-2.678 2.554-3.611 4.422a1 1 0 0 0 0 .894C4.264 16.764 8.096 19 12 19c1.555 0 3.1-.355 4.53-1.055l2.763 2.762a1 1 0 0 0 1.414-1.414l-16-16zm10.307 13.135c-.98.383-2 .572-3.014.572c-2.969 0-6.002-1.62-7.87-5c.817-1.479 1.858-2.62 3.018-3.437l2.144 2.144a3 3 0 0 0 4.001 4.001l1.72 1.72zm3.538-2.532c.483-.556.926-1.187 1.318-1.896c-1.868-3.38-4.9-5-7.87-5c-.112 0-.224.002-.336.007L9.879 5.223A10.215 10.215 0 0 1 12 5c3.903 0 7.736 2.236 9.894 6.553a1 1 0 0 1 0 .894a13.106 13.106 0 0 1-1.925 2.865l-1.417-1.416z"
205
207
  }, null, -1);
206
- const _hoisted_3$e = [
207
- _hoisted_2$g
208
+ const _hoisted_3$h = [
209
+ _hoisted_2$j
208
210
  ];
209
- function render$6(_ctx, _cache) {
210
- return openBlock(), createElementBlock("svg", _hoisted_1$h, _hoisted_3$e);
211
+ function render$7(_ctx, _cache) {
212
+ return openBlock(), createElementBlock("svg", _hoisted_1$k, _hoisted_3$h);
211
213
  }
212
- var EyeOff = { name: "mi-eye-off", render: render$6 };
213
- const _hoisted_1$g = ["aria-label"];
214
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
215
- name: "TextfieldPassword",
214
+ var EyeOff = { name: "mi-eye-off", render: render$7 };
215
+ const _hoisted_1$j = ["aria-label"];
216
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
217
+ __name: "TextfieldPassword",
216
218
  props: {
217
219
  id: { default: "" },
218
220
  label: { default: "Sua senha" }
@@ -221,7 +223,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
221
223
  const passwordIsVisible = ref(false);
222
224
  const inputType = computed(() => passwordIsVisible.value ? "text" : "password");
223
225
  return (_ctx, _cache) => {
224
- return openBlock(), createBlock(_sfc_main$b, {
226
+ return openBlock(), createBlock(_sfc_main$d, {
225
227
  id: __props.id,
226
228
  required: "",
227
229
  type: unref(inputType),
@@ -241,28 +243,28 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
241
243
  withDirectives(createVNode(unref(EyeOff), { "aria-hidden": "true" }, null, 512), [
242
244
  [vShow, !passwordIsVisible.value]
243
245
  ])
244
- ], 8, _hoisted_1$g)
246
+ ], 8, _hoisted_1$j)
245
247
  ]),
246
248
  _: 1
247
249
  }, 8, ["id", "type", "label"]);
248
250
  };
249
251
  }
250
252
  });
251
- _sfc_main$b.install = (app) => {
252
- app.component("SolTextfield", _sfc_main$b);
253
+ _sfc_main$d.install = (app) => {
254
+ app.component("SolTextfield", _sfc_main$d);
253
255
  };
254
- _sfc_main$a.install = (app) => {
255
- app.component("SolTextfieldPassword", _sfc_main$a);
256
+ _sfc_main$c.install = (app) => {
257
+ app.component("SolTextfieldPassword", _sfc_main$c);
256
258
  };
257
259
  var Textarea_vue_vue_type_style_index_0_lang = "";
258
- const _hoisted_1$f = ["id", "data-testid"];
259
- const _hoisted_2$f = ["for"];
260
- const _hoisted_3$d = { class: "container-textarea" };
261
- const _hoisted_4$5 = ["id", "data-testid", "invert", "aria-invalid", "aria-describedby"];
262
- const _hoisted_5$2 = ["id"];
263
- const _hoisted_6$2 = ["id"];
264
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
265
- name: "Textarea",
260
+ const _hoisted_1$i = ["id", "data-testid"];
261
+ const _hoisted_2$i = ["for"];
262
+ const _hoisted_3$g = { class: "container-textarea" };
263
+ const _hoisted_4$7 = ["id", "data-testid", "invert", "aria-invalid", "aria-describedby"];
264
+ const _hoisted_5$3 = ["id"];
265
+ const _hoisted_6$3 = ["id"];
266
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
267
+ __name: "Textarea",
266
268
  props: {
267
269
  id: null,
268
270
  class: null,
@@ -306,9 +308,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
306
308
  class: "label"
307
309
  }, [
308
310
  createElementVNode("span", null, toDisplayString(__props.label), 1)
309
- ], 8, _hoisted_2$f)) : createCommentVNode("", true)
311
+ ], 8, _hoisted_2$i)) : createCommentVNode("", true)
310
312
  ]),
311
- createElementVNode("div", _hoisted_3$d, [
313
+ createElementVNode("div", _hoisted_3$g, [
312
314
  renderSlot(_ctx.$slots, "default", {}, () => [
313
315
  withDirectives(createElementVNode("textarea", mergeProps(_ctx.$attrs, {
314
316
  id: `input-${__props.id}`,
@@ -319,7 +321,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
319
321
  style: { resize: __props.resize },
320
322
  "aria-invalid": !!__props.error,
321
323
  "aria-describedby": ariaDescribedby(__props.hint, __props.error)
322
- }), null, 16, _hoisted_4$5), [
324
+ }), null, 16, _hoisted_4$7), [
323
325
  [vModelText, unref(model)]
324
326
  ])
325
327
  ])
@@ -328,23 +330,23 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
328
330
  key: 0,
329
331
  id: `hint-${__props.id}`,
330
332
  class: "hint"
331
- }, toDisplayString(__props.hint), 9, _hoisted_5$2)) : __props.error ? (openBlock(), createElementBlock("span", {
333
+ }, toDisplayString(__props.hint), 9, _hoisted_5$3)) : __props.error ? (openBlock(), createElementBlock("span", {
332
334
  key: 1,
333
335
  id: `error-${__props.id}`,
334
336
  class: "error"
335
- }, toDisplayString(__props.error), 9, _hoisted_6$2)) : createCommentVNode("", true)
336
- ], 10, _hoisted_1$f);
337
+ }, toDisplayString(__props.error), 9, _hoisted_6$3)) : createCommentVNode("", true)
338
+ ], 10, _hoisted_1$i);
337
339
  };
338
340
  }
339
341
  });
340
- _sfc_main$9.install = (app) => {
341
- app.component("SolTextarea", _sfc_main$9);
342
+ _sfc_main$b.install = (app) => {
343
+ app.component("SolTextarea", _sfc_main$b);
342
344
  };
343
345
  var Radio_vue_vue_type_style_index_0_lang = "";
344
- const _hoisted_1$e = ["id", "data-testid", "checked", "value", "name"];
345
- const _hoisted_2$e = ["for"];
346
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
347
- name: "Radio",
346
+ const _hoisted_1$h = ["id", "data-testid", "checked", "value", "name"];
347
+ const _hoisted_2$h = ["for"];
348
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
349
+ __name: "Radio",
348
350
  props: {
349
351
  id: null,
350
352
  name: null,
@@ -368,22 +370,22 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
368
370
  value: __props.value,
369
371
  name: __props.name,
370
372
  onChange: _cache[0] || (_cache[0] = ($event) => emit("change", __props.value))
371
- }), null, 16, _hoisted_1$e),
373
+ }), null, 16, _hoisted_1$h),
372
374
  createElementVNode("label", {
373
375
  class: "label",
374
376
  for: `radio-${__props.name}-${__props.id}`
375
- }, toDisplayString(__props.label), 9, _hoisted_2$e)
377
+ }, toDisplayString(__props.label), 9, _hoisted_2$h)
376
378
  ], 2);
377
379
  };
378
380
  }
379
381
  });
380
382
  var RadioGroup_vue_vue_type_style_index_0_lang = "";
381
- const _hoisted_1$d = ["aria-labelledby"];
382
- const _hoisted_2$d = ["id", "data-testid"];
383
- const _hoisted_3$c = ["id"];
384
- const _hoisted_4$4 = ["id"];
385
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
386
- name: "RadioGroup",
383
+ const _hoisted_1$g = ["aria-labelledby"];
384
+ const _hoisted_2$g = ["id", "data-testid"];
385
+ const _hoisted_3$f = ["id"];
386
+ const _hoisted_4$6 = ["id"];
387
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
388
+ __name: "RadioGroup",
387
389
  props: {
388
390
  id: null,
389
391
  title: null,
@@ -426,7 +428,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
426
428
  id: `radio-group-title-${__props.id}`,
427
429
  class: normalizeClass(["title", { "sr-only": __props.hideTitle }]),
428
430
  "data-testid": `radio-group-title-${__props.id}`
429
- }, toDisplayString(__props.title), 11, _hoisted_2$d)
431
+ }, toDisplayString(__props.title), 11, _hoisted_2$g)
430
432
  ]),
431
433
  createElementVNode("ul", {
432
434
  class: normalizeClass(["container-radios", { "flex-col": __props.direction === "column" }])
@@ -438,7 +440,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
438
440
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.radios, (radio, index) => {
439
441
  var _a2;
440
442
  return openBlock(), createElementBlock("li", { key: index }, [
441
- createVNode(_sfc_main$8, mergeProps(_ctx.$attrs, {
443
+ createVNode(_sfc_main$a, mergeProps(_ctx.$attrs, {
442
444
  id: (_a2 = radio == null ? void 0 : radio.id) != null ? _a2 : `${radio.value}`,
443
445
  class: ["radio", { "mb-micro": __props.direction === "column", "mr-micro": __props.direction === "row" }],
444
446
  name: radio.name,
@@ -457,26 +459,26 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
457
459
  key: 0,
458
460
  id: `hint-${__props.id}`,
459
461
  class: "hint"
460
- }, toDisplayString(__props.hint), 9, _hoisted_3$c)) : __props.error ? (openBlock(), createElementBlock("p", {
462
+ }, toDisplayString(__props.hint), 9, _hoisted_3$f)) : __props.error ? (openBlock(), createElementBlock("p", {
461
463
  key: 1,
462
464
  id: `error-${__props.id}`,
463
465
  class: "error"
464
- }, toDisplayString(__props.error), 9, _hoisted_4$4)) : createCommentVNode("", true)
465
- ], 8, _hoisted_1$d);
466
+ }, toDisplayString(__props.error), 9, _hoisted_4$6)) : createCommentVNode("", true)
467
+ ], 8, _hoisted_1$g);
466
468
  };
467
469
  }
468
470
  });
469
- _sfc_main$8.install = (app) => {
470
- app.component("SolRadio", _sfc_main$8);
471
+ _sfc_main$a.install = (app) => {
472
+ app.component("SolRadio", _sfc_main$a);
471
473
  };
472
- _sfc_main$7.install = (app) => {
473
- app.component("SolRadioGroup", _sfc_main$7);
474
+ _sfc_main$9.install = (app) => {
475
+ app.component("SolRadioGroup", _sfc_main$9);
474
476
  };
475
477
  var Checkbox_vue_vue_type_style_index_0_lang = "";
476
- const _hoisted_1$c = ["id", "data-testid", "checked", "value", "name"];
477
- const _hoisted_2$c = ["for"];
478
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
479
- name: "Checkbox",
478
+ const _hoisted_1$f = ["id", "data-testid", "checked", "value", "name"];
479
+ const _hoisted_2$f = ["for"];
480
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
481
+ __name: "Checkbox",
480
482
  props: {
481
483
  id: null,
482
484
  name: null,
@@ -500,22 +502,22 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
500
502
  value: __props.value,
501
503
  name: __props.name,
502
504
  onChange: _cache[0] || (_cache[0] = ($event) => emit("change", __props.value))
503
- }), null, 16, _hoisted_1$c),
505
+ }), null, 16, _hoisted_1$f),
504
506
  createElementVNode("label", {
505
507
  class: "label",
506
508
  for: `checkbox-${__props.name}-${__props.id}`
507
- }, toDisplayString(__props.label), 9, _hoisted_2$c)
509
+ }, toDisplayString(__props.label), 9, _hoisted_2$f)
508
510
  ], 2);
509
511
  };
510
512
  }
511
513
  });
512
514
  var CheckboxGroup_vue_vue_type_style_index_0_lang = "";
513
- const _hoisted_1$b = ["aria-labelledby"];
514
- const _hoisted_2$b = ["id", "data-testid"];
515
- const _hoisted_3$b = ["id"];
516
- const _hoisted_4$3 = ["id"];
517
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
518
- name: "CheckboxGroup",
515
+ const _hoisted_1$e = ["aria-labelledby"];
516
+ const _hoisted_2$e = ["id", "data-testid"];
517
+ const _hoisted_3$e = ["id"];
518
+ const _hoisted_4$5 = ["id"];
519
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
520
+ __name: "CheckboxGroup",
519
521
  props: {
520
522
  id: null,
521
523
  title: null,
@@ -564,7 +566,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
564
566
  id: `checkbox-group-title-${__props.id}`,
565
567
  class: normalizeClass(["title", { "sr-only": __props.hideTitle }]),
566
568
  "data-testid": `checkbox-group-title-${__props.id}`
567
- }, toDisplayString(__props.title), 11, _hoisted_2$b)
569
+ }, toDisplayString(__props.title), 11, _hoisted_2$e)
568
570
  ]),
569
571
  createElementVNode("ul", {
570
572
  class: normalizeClass(["container-checkboxes", { "flex-col": __props.direction === "column" }])
@@ -576,7 +578,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
576
578
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.checkboxes, (checkbox, index) => {
577
579
  var _a2;
578
580
  return openBlock(), createElementBlock("li", { key: index }, [
579
- createVNode(_sfc_main$6, mergeProps(_ctx.$attrs, {
581
+ createVNode(_sfc_main$8, mergeProps(_ctx.$attrs, {
580
582
  id: (_a2 = checkbox == null ? void 0 : checkbox.id) != null ? _a2 : `${checkbox.value}`,
581
583
  class: ["checkbox", { "mb-micro": __props.direction === "column", "mr-micro": __props.direction === "row" }],
582
584
  label: checkbox.label,
@@ -595,28 +597,28 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
595
597
  key: 0,
596
598
  id: `hint-${__props.id}`,
597
599
  class: "hint"
598
- }, toDisplayString(__props.hint), 9, _hoisted_3$b)) : __props.error ? (openBlock(), createElementBlock("p", {
600
+ }, toDisplayString(__props.hint), 9, _hoisted_3$e)) : __props.error ? (openBlock(), createElementBlock("p", {
599
601
  key: 1,
600
602
  id: `error-${__props.id}`,
601
603
  class: "error"
602
- }, toDisplayString(__props.error), 9, _hoisted_4$3)) : createCommentVNode("", true)
603
- ], 8, _hoisted_1$b);
604
+ }, toDisplayString(__props.error), 9, _hoisted_4$5)) : createCommentVNode("", true)
605
+ ], 8, _hoisted_1$e);
604
606
  };
605
607
  }
606
608
  });
607
- _sfc_main$6.install = (app) => {
608
- app.component("SolCheckbox", _sfc_main$6);
609
+ _sfc_main$8.install = (app) => {
610
+ app.component("SolCheckbox", _sfc_main$8);
609
611
  };
610
- _sfc_main$5.install = (app) => {
611
- app.component("SolCheckboxGroup", _sfc_main$5);
612
+ _sfc_main$7.install = (app) => {
613
+ app.component("SolCheckboxGroup", _sfc_main$7);
612
614
  };
613
615
  var Switch_vue_vue_type_style_index_0_lang = "";
614
- const _hoisted_1$a = ["id", "for", "data-testid"];
615
- const _hoisted_2$a = { class: "switch-container" };
616
- const _hoisted_3$a = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "value", "name"];
617
- const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("span", { class: "ellipse" }, null, -1);
618
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
619
- name: "Switch",
616
+ const _hoisted_1$d = ["id", "for", "data-testid"];
617
+ const _hoisted_2$d = { class: "switch-container" };
618
+ const _hoisted_3$d = ["id", "aria-checked", "aria-labelledby", "data-testid", "checked", "value", "name"];
619
+ const _hoisted_4$4 = /* @__PURE__ */ createElementVNode("span", { class: "ellipse" }, null, -1);
620
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
621
+ __name: "Switch",
620
622
  props: {
621
623
  id: null,
622
624
  name: null,
@@ -638,8 +640,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
638
640
  class: normalizeClass(["label", { "mb-1": !__props.horizontalLabel, "sr-only": __props.hideLabel }]),
639
641
  for: `switch-${__props.name}-${__props.id}`,
640
642
  "data-testid": `switch-label-${__props.name}-${__props.id}`
641
- }, toDisplayString(__props.label), 11, _hoisted_1$a),
642
- createElementVNode("div", _hoisted_2$a, [
643
+ }, toDisplayString(__props.label), 11, _hoisted_1$d),
644
+ createElementVNode("div", _hoisted_2$d, [
643
645
  createElementVNode("input", mergeProps(_ctx.$attrs, {
644
646
  id: `switch-${__props.name}-${__props.id}`,
645
647
  type: "checkbox",
@@ -652,16 +654,22 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
652
654
  value: __props.value,
653
655
  name: __props.name,
654
656
  onChange: _cache[0] || (_cache[0] = ($event) => emit("change", __props.value))
655
- }), null, 16, _hoisted_3$a),
656
- _hoisted_4$2
657
+ }), null, 16, _hoisted_3$d),
658
+ _hoisted_4$4
657
659
  ])
658
660
  ], 2);
659
661
  };
660
662
  }
661
663
  });
662
- _sfc_main$4.install = (app) => {
663
- app.component("SolSwitch", _sfc_main$4);
664
+ _sfc_main$6.install = (app) => {
665
+ app.component("SolSwitch", _sfc_main$6);
666
+ };
667
+ var _a;
668
+ const isClient = typeof window !== "undefined";
669
+ const isString = (val) => typeof val === "string";
670
+ const noop = () => {
664
671
  };
672
+ isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
665
673
  function tryOnScopeDispose(fn) {
666
674
  if (getCurrentScope()) {
667
675
  onScopeDispose(fn);
@@ -669,12 +677,6 @@ function tryOnScopeDispose(fn) {
669
677
  }
670
678
  return false;
671
679
  }
672
- var _a;
673
- const isClient = typeof window !== "undefined";
674
- const isString = (val) => typeof val === "string";
675
- const noop = () => {
676
- };
677
- isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
678
680
  function unrefElement(elRef) {
679
681
  var _a2;
680
682
  const plain = unref(elRef);
@@ -716,7 +718,7 @@ function useEventListener(...args) {
716
718
  return stop;
717
719
  }
718
720
  function onClickOutside(target, handler, options = {}) {
719
- const { window: window2 = defaultWindow, ignore, capture = true } = options;
721
+ const { window: window2 = defaultWindow, ignore, capture = true, detectIframe = false } = options;
720
722
  if (!window2)
721
723
  return;
722
724
  const shouldListen = ref(true);
@@ -743,9 +745,19 @@ function onClickOutside(target, handler, options = {}) {
743
745
  shouldListen.value = !!el && !e.composedPath().includes(el);
744
746
  }, { passive: true }),
745
747
  useEventListener(window2, "pointerup", (e) => {
746
- fallback = window2.setTimeout(() => listener(e), 50);
747
- }, { passive: true })
748
- ];
748
+ if (e.button === 0) {
749
+ const path = e.composedPath();
750
+ e.composedPath = () => path;
751
+ fallback = window2.setTimeout(() => listener(e), 50);
752
+ }
753
+ }, { passive: true }),
754
+ detectIframe && useEventListener(window2, "blur", (event) => {
755
+ var _a2;
756
+ const el = unrefElement(target);
757
+ if (((_a2 = document.activeElement) == null ? void 0 : _a2.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(document.activeElement)))
758
+ handler(event);
759
+ })
760
+ ].filter(Boolean);
749
761
  const stop = () => cleanup.forEach((fn) => fn());
750
762
  return stop;
751
763
  }
@@ -753,37 +765,45 @@ const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !
753
765
  const globalKey = "__vueuse_ssr_handlers__";
754
766
  _global[globalKey] = _global[globalKey] || {};
755
767
  _global[globalKey];
756
- const _hoisted_1$9 = {
768
+ var SwipeDirection;
769
+ (function(SwipeDirection2) {
770
+ SwipeDirection2["UP"] = "UP";
771
+ SwipeDirection2["RIGHT"] = "RIGHT";
772
+ SwipeDirection2["DOWN"] = "DOWN";
773
+ SwipeDirection2["LEFT"] = "LEFT";
774
+ SwipeDirection2["NONE"] = "NONE";
775
+ })(SwipeDirection || (SwipeDirection = {}));
776
+ const _hoisted_1$c = {
757
777
  preserveAspectRatio: "xMidYMid meet",
758
778
  viewBox: "0 0 24 24",
759
779
  width: "1.2em",
760
780
  height: "1.2em"
761
781
  };
762
- const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("path", {
782
+ const _hoisted_2$c = /* @__PURE__ */ createElementVNode("path", {
763
783
  fill: "currentColor",
764
784
  d: "M10 4a6 6 0 1 0 0 12a6 6 0 0 0 0-12zm-8 6a8 8 0 1 1 14.32 4.906l5.387 5.387a1 1 0 0 1-1.414 1.414l-5.387-5.387A8 8 0 0 1 2 10z"
765
785
  }, null, -1);
766
- const _hoisted_3$9 = [
767
- _hoisted_2$9
786
+ const _hoisted_3$c = [
787
+ _hoisted_2$c
768
788
  ];
769
- function render$5(_ctx, _cache) {
770
- return openBlock(), createElementBlock("svg", _hoisted_1$9, _hoisted_3$9);
789
+ function render$6(_ctx, _cache) {
790
+ return openBlock(), createElementBlock("svg", _hoisted_1$c, _hoisted_3$c);
771
791
  }
772
- var IconSearch = { name: "mi-search", render: render$5 };
792
+ var IconSearch = { name: "mi-search", render: render$6 };
773
793
  var Dropdown_vue_vue_type_style_index_0_lang = "";
774
- const _hoisted_1$8 = ["data-testid"];
775
- const _hoisted_2$8 = ["id", "for"];
776
- const _hoisted_3$8 = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"];
777
- const _hoisted_4$1 = { class: "dropdown-container" };
778
- const _hoisted_5$1 = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"];
779
- const _hoisted_6$1 = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"];
780
- const _hoisted_7 = {
794
+ const _hoisted_1$b = ["data-testid"];
795
+ const _hoisted_2$b = ["id", "for"];
796
+ const _hoisted_3$b = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"];
797
+ const _hoisted_4$3 = { class: "dropdown-container" };
798
+ const _hoisted_5$2 = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"];
799
+ const _hoisted_6$2 = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"];
800
+ const _hoisted_7$1 = {
781
801
  key: 0,
782
802
  class: "no-data"
783
803
  };
784
804
  const _hoisted_8 = /* @__PURE__ */ createTextVNode(" Sem dados ");
785
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
786
- name: "Dropdown",
805
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
806
+ __name: "Dropdown",
787
807
  props: {
788
808
  id: null,
789
809
  label: null,
@@ -915,7 +935,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
915
935
  id: `label-dropdown-${__props.id}`,
916
936
  class: normalizeClass(["label", { "-disabled": __props.disabled, "sr-only": __props.ariaLabel }]),
917
937
  for: `toggle-dropdown-${__props.id}`
918
- }, toDisplayString(__props.label || __props.ariaLabel), 11, _hoisted_2$8)
938
+ }, toDisplayString(__props.label || __props.ariaLabel), 11, _hoisted_2$b)
919
939
  ]),
920
940
  createElementVNode("button", {
921
941
  id: `toggle-dropdown-${__props.id}`,
@@ -938,19 +958,19 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
938
958
  }, () => [
939
959
  createTextVNode(toDisplayString(unref(selectedSanitize) || "Selecione"), 1)
940
960
  ])
941
- ], 8, _hoisted_3$8),
961
+ ], 8, _hoisted_3$b),
942
962
  createVNode(Transition$1, {
943
963
  mode: "out-in",
944
964
  name: "dropdown"
945
965
  }, {
946
966
  default: withCtx(() => [
947
- withDirectives(createElementVNode("div", _hoisted_4$1, [
967
+ withDirectives(createElementVNode("div", _hoisted_4$3, [
948
968
  __props.searchable ? (openBlock(), createElementBlock("div", {
949
969
  key: 0,
950
970
  class: normalizeClass(["search-container", { "-loading": __props.loading }])
951
971
  }, [
952
972
  renderSlot(_ctx.$slots, "search", { filter: filter.value }, () => [
953
- createVNode(_sfc_main$c, {
973
+ createVNode(_sfc_main$e, {
954
974
  id: `search-dropdown-${__props.id}`,
955
975
  ref: (target) => addRefElementToElements("search", target == null ? void 0 : target.input),
956
976
  modelValue: filter.value,
@@ -1013,50 +1033,50 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1013
1033
  }, () => [
1014
1034
  createTextVNode(toDisplayString(getOption(option, "name")), 1)
1015
1035
  ])
1016
- ], 44, _hoisted_6$1);
1036
+ ], 44, _hoisted_6$2);
1017
1037
  }), 128)),
1018
- !unref(filtered).length ? (openBlock(), createElementBlock("li", _hoisted_7, [
1038
+ !unref(filtered).length ? (openBlock(), createElementBlock("li", _hoisted_7$1, [
1019
1039
  renderSlot(_ctx.$slots, "no-data", {}, () => [
1020
1040
  _hoisted_8
1021
1041
  ])
1022
1042
  ])) : createCommentVNode("", true)
1023
- ], 8, _hoisted_5$1)
1043
+ ], 8, _hoisted_5$2)
1024
1044
  ], 512), [
1025
1045
  [vShow, isDropdownOpen.value]
1026
1046
  ])
1027
1047
  ]),
1028
1048
  _: 3
1029
1049
  })
1030
- ], 42, _hoisted_1$8);
1050
+ ], 42, _hoisted_1$b);
1031
1051
  };
1032
1052
  }
1033
1053
  });
1034
- _sfc_main$3.install = (app) => {
1035
- app.component("SolDropdown", _sfc_main$3);
1054
+ _sfc_main$5.install = (app) => {
1055
+ app.component("SolDropdown", _sfc_main$5);
1036
1056
  };
1037
- const _hoisted_1$7 = {
1057
+ const _hoisted_1$a = {
1038
1058
  preserveAspectRatio: "xMidYMid meet",
1039
1059
  viewBox: "0 0 24 24",
1040
1060
  width: "1.2em",
1041
1061
  height: "1.2em"
1042
1062
  };
1043
- const _hoisted_2$7 = /* @__PURE__ */ createElementVNode("path", {
1063
+ const _hoisted_2$a = /* @__PURE__ */ createElementVNode("path", {
1044
1064
  fill: "currentColor",
1045
1065
  d: "M5.293 5.293a1 1 0 0 1 1.414 0L12 10.586l5.293-5.293a1 1 0 1 1 1.414 1.414L13.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414L12 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L10.586 12L5.293 6.707a1 1 0 0 1 0-1.414z"
1046
1066
  }, null, -1);
1047
- const _hoisted_3$7 = [
1048
- _hoisted_2$7
1067
+ const _hoisted_3$a = [
1068
+ _hoisted_2$a
1049
1069
  ];
1050
- function render$4(_ctx, _cache) {
1051
- return openBlock(), createElementBlock("svg", _hoisted_1$7, _hoisted_3$7);
1070
+ function render$5(_ctx, _cache) {
1071
+ return openBlock(), createElementBlock("svg", _hoisted_1$a, _hoisted_3$a);
1052
1072
  }
1053
- var Close = { name: "mi-close", render: render$4 };
1073
+ var Close = { name: "mi-close", render: render$5 };
1054
1074
  var Chip_vue_vue_type_style_index_0_lang = "";
1055
- const _hoisted_1$6 = ["id", "data-testid", "title", "aria-describedby", "aria-disabled", "onKeydown"];
1056
- const _hoisted_2$6 = ["id"];
1057
- const _hoisted_3$6 = { class: "label" };
1058
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1059
- name: "Chip",
1075
+ const _hoisted_1$9 = ["id", "data-testid", "title", "aria-describedby", "aria-disabled", "onKeydown"];
1076
+ const _hoisted_2$9 = ["id"];
1077
+ const _hoisted_3$9 = { class: "label" };
1078
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1079
+ __name: "Chip",
1060
1080
  props: {
1061
1081
  id: null,
1062
1082
  label: null,
@@ -1098,8 +1118,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1098
1118
  id: `chip-description-${__props.id}`,
1099
1119
  "z-index": "-1",
1100
1120
  class: "sr-only"
1101
- }, "Press Delete or Backspace to remove this Chip", 8, _hoisted_2$6),
1102
- createElementVNode("span", _hoisted_3$6, [
1121
+ }, "Press Delete or Backspace to remove this Chip", 8, _hoisted_2$9),
1122
+ createElementVNode("span", _hoisted_3$9, [
1103
1123
  renderSlot(_ctx.$slots, "default", {}, () => [
1104
1124
  createTextVNode(toDisplayString(__props.label), 1)
1105
1125
  ])
@@ -1113,102 +1133,434 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1113
1133
  }, [
1114
1134
  createVNode(unref(Close), { class: "icon" })
1115
1135
  ])) : createCommentVNode("", true)
1116
- ], 42, _hoisted_1$6);
1136
+ ], 42, _hoisted_1$9);
1117
1137
  };
1118
1138
  }
1119
1139
  });
1120
- const _hoisted_1$5 = {
1140
+ var ListOption_vue_vue_type_style_index_0_lang = "";
1141
+ const _hoisted_1$8 = ["id", "data-testid", "aria-multiselectable", "aria-labelledby"];
1142
+ const _hoisted_2$8 = ["id", "data-testid", "selected", "aria-selected", "onClick", "onKeyup"];
1143
+ const _hoisted_3$8 = {
1144
+ key: 0,
1145
+ class: "no-data"
1146
+ };
1147
+ const _hoisted_4$2 = /* @__PURE__ */ createTextVNode(" Sem dados ");
1148
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1149
+ __name: "ListOption",
1150
+ props: {
1151
+ id: null,
1152
+ options: null,
1153
+ multiple: { type: Boolean },
1154
+ isSelected: null
1155
+ },
1156
+ emits: ["select"],
1157
+ setup(__props, { expose, emit }) {
1158
+ const list = ref("");
1159
+ expose({
1160
+ list
1161
+ });
1162
+ return (_ctx, _cache) => {
1163
+ return openBlock(), createElementBlock("ul", {
1164
+ id: `select-list-${__props.id}`,
1165
+ ref_key: "list",
1166
+ ref: list,
1167
+ "data-testid": `select-list-${__props.id}`,
1168
+ role: "listbox",
1169
+ tabindex: "-1",
1170
+ "aria-multiselectable": __props.multiple,
1171
+ "aria-labelledby": `select-label-${__props.id}`,
1172
+ class: "select-list-core"
1173
+ }, [
1174
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
1175
+ return openBlock(), createElementBlock("li", {
1176
+ id: `option-${__props.id}-${option.value}`,
1177
+ key: index,
1178
+ "data-testid": `option-${__props.id}-${option.value}`,
1179
+ role: "option",
1180
+ tabindex: "-1",
1181
+ class: "select-option-item",
1182
+ style: normalizeStyle(`--item: ${index + 1}`),
1183
+ selected: __props.isSelected(option),
1184
+ "aria-selected": __props.isSelected(option),
1185
+ onClick: ($event) => emit("select", option),
1186
+ onKeyup: [
1187
+ withKeys(($event) => emit("select", option), ["enter"]),
1188
+ withKeys(($event) => emit("select", option), ["space"])
1189
+ ]
1190
+ }, [
1191
+ renderSlot(_ctx.$slots, "item-list", {
1192
+ text: option.name,
1193
+ value: option.value,
1194
+ option,
1195
+ isSelected: __props.isSelected(option)
1196
+ }, () => [
1197
+ createTextVNode(toDisplayString(option.name), 1)
1198
+ ])
1199
+ ], 44, _hoisted_2$8);
1200
+ }), 128)),
1201
+ !__props.options.length ? (openBlock(), createElementBlock("li", _hoisted_3$8, [
1202
+ renderSlot(_ctx.$slots, "no-data", {}, () => [
1203
+ _hoisted_4$2
1204
+ ])
1205
+ ])) : createCommentVNode("", true)
1206
+ ], 8, _hoisted_1$8);
1207
+ };
1208
+ }
1209
+ });
1210
+ const _hoisted_1$7 = {
1121
1211
  preserveAspectRatio: "xMidYMid meet",
1122
1212
  viewBox: "0 0 24 24",
1123
1213
  width: "1.2em",
1124
1214
  height: "1.2em"
1125
1215
  };
1126
- const _hoisted_2$5 = /* @__PURE__ */ createElementVNode("path", {
1216
+ const _hoisted_2$7 = /* @__PURE__ */ createElementVNode("path", {
1127
1217
  fill: "currentColor",
1128
1218
  d: "m17 10l-5 6l-5-6h10z"
1129
1219
  }, null, -1);
1130
- const _hoisted_3$5 = [
1131
- _hoisted_2$5
1220
+ const _hoisted_3$7 = [
1221
+ _hoisted_2$7
1132
1222
  ];
1133
- function render$3(_ctx, _cache) {
1134
- return openBlock(), createElementBlock("svg", _hoisted_1$5, _hoisted_3$5);
1223
+ function render$4(_ctx, _cache) {
1224
+ return openBlock(), createElementBlock("svg", _hoisted_1$7, _hoisted_3$7);
1135
1225
  }
1136
- var IconArrow = { name: "mi-caret-down", render: render$3 };
1226
+ var IconArrow = { name: "mi-caret-down", render: render$4 };
1137
1227
  var Select_vue_vue_type_style_index_0_lang = "";
1138
- const _hoisted_1$4 = { class: "select" };
1139
- const _hoisted_2$4 = {
1140
- key: 2,
1141
- class: "placeholder-inline"
1228
+ const _hoisted_1$6 = ["data-testid"];
1229
+ const _hoisted_2$6 = ["id"];
1230
+ const _hoisted_3$6 = ["id", "disabled", "data-testid", "aria-expanded", "aria-labelledby", "aria-label", "aria-controls", "onClick"];
1231
+ const _hoisted_4$1 = {
1232
+ key: 0,
1233
+ class: "container-tags"
1142
1234
  };
1143
- const _hoisted_3$4 = { class: "error" };
1144
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1145
- name: "Select",
1235
+ const _hoisted_5$1 = {
1236
+ key: 1,
1237
+ class: "mr-micro placeholder-inline",
1238
+ tabindex: "-1"
1239
+ };
1240
+ const _hoisted_6$1 = { class: "error" };
1241
+ const _hoisted_7 = { class: "select-options-container" };
1242
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1243
+ __name: "Select",
1146
1244
  props: {
1147
1245
  id: null,
1148
- options: null,
1149
1246
  label: null,
1150
1247
  ariaLabel: null,
1151
1248
  smallerWidth: { type: Boolean },
1152
1249
  disabled: { type: Boolean },
1250
+ loading: { type: Boolean, default: false },
1251
+ searchable: { type: Boolean, default: false },
1252
+ closeOnSelect: { type: Boolean, default: true },
1253
+ fetchOnSearch: { type: Boolean, default: false },
1153
1254
  multiple: { type: Boolean },
1154
- modelValue: null,
1155
- error: null,
1156
- fetchOnApi: { type: Boolean },
1157
- placeholder: { default: "Selecione" },
1158
1255
  searchPlaceholder: null,
1159
- searchable: { type: Boolean }
1256
+ selected: null,
1257
+ options: { default: () => [] },
1258
+ error: null,
1259
+ placeholder: { default: "placeholder" }
1160
1260
  },
1161
- emits: ["update:modelValue"],
1261
+ emits: ["closeDropdown", "search", "update:selected"],
1162
1262
  setup(__props, { emit }) {
1263
+ const props = __props;
1264
+ const el = ref();
1265
+ const isDropdownOpen = ref(false);
1266
+ const filter = ref("");
1267
+ const filtered = computed(() => {
1268
+ var _a2;
1269
+ return props.fetchOnSearch ? props.options : (_a2 = props.options) == null ? void 0 : _a2.filter((option) => option.name.includes(filter.value));
1270
+ });
1271
+ onClickOutside(el, () => {
1272
+ if (isDropdownOpen.value)
1273
+ close2();
1274
+ });
1275
+ function toggleDropdown() {
1276
+ if (!props.disabled)
1277
+ isDropdownOpen.value ? close2() : open();
1278
+ }
1279
+ function open() {
1280
+ isDropdownOpen.value = true;
1281
+ }
1282
+ function close2() {
1283
+ resetStates();
1284
+ emit("closeDropdown");
1285
+ }
1286
+ function sanitizeMultipleSelection(selected) {
1287
+ if (Array.isArray(props.selected)) {
1288
+ const indexOfSelect = props.selected.findIndex(({ value }) => value === selected.value);
1289
+ return indexOfSelect === -1 ? [...props.selected, selected] : props.selected.filter((_, index) => index !== indexOfSelect);
1290
+ }
1291
+ return [selected];
1292
+ }
1293
+ function select(selected) {
1294
+ props.multiple ? emit("update:selected", sanitizeMultipleSelection(selected)) : emit("update:selected", selected);
1295
+ if (props.closeOnSelect && !props.multiple)
1296
+ close2();
1297
+ }
1298
+ function isSelected(option) {
1299
+ var _a2;
1300
+ return Array.isArray(props.selected) ? props.selected.some(({ value }) => value === option.value) : option.value === ((_a2 = props.selected) == null ? void 0 : _a2.value);
1301
+ }
1302
+ const elements = reactive({
1303
+ list: void 0,
1304
+ search: void 0
1305
+ });
1306
+ const elementFocus = reactive({
1307
+ id: "",
1308
+ index: 0
1309
+ });
1310
+ function navigation({ code }) {
1311
+ const focusListItem = (index) => {
1312
+ const indexItem = index != null ? index : elementFocus.index;
1313
+ if (index !== void 0)
1314
+ elementFocus.index = index;
1315
+ setTimeout(() => {
1316
+ var _a2, _b;
1317
+ const item = (_a2 = elements.list) == null ? void 0 : _a2.children[indexItem];
1318
+ elementFocus.id = (_b = item == null ? void 0 : item.id) != null ? _b : "";
1319
+ item == null ? void 0 : item.focus();
1320
+ }, 0);
1321
+ };
1322
+ const focusSearch = () => {
1323
+ var _a2;
1324
+ if (props.searchable) {
1325
+ elementFocus.index = 0;
1326
+ (_a2 = elements == null ? void 0 : elements.search) == null ? void 0 : _a2.focus();
1327
+ }
1328
+ };
1329
+ switch (code) {
1330
+ case "ArrowUp":
1331
+ elementFocus.index > 0 && (elementFocus.index -= 1);
1332
+ return focusListItem();
1333
+ case "ArrowDown":
1334
+ if (!isDropdownOpen.value) {
1335
+ open();
1336
+ return focusListItem(0);
1337
+ }
1338
+ elementFocus.index < props.options.length - 1 && (elementFocus.index += 1);
1339
+ return focusListItem();
1340
+ case "Home":
1341
+ return focusListItem(0);
1342
+ case "End":
1343
+ return focusListItem(props.options.length - 1);
1344
+ case "Escape":
1345
+ return close2();
1346
+ default:
1347
+ !["Enter", "NumpadEnter", "Space"].includes(code) && focusSearch();
1348
+ }
1349
+ }
1350
+ function resetStates() {
1351
+ isDropdownOpen.value = false;
1352
+ elementFocus.index = 0;
1353
+ filter.value = "";
1354
+ }
1355
+ function addRefElementToElements(key) {
1356
+ return (target) => {
1357
+ elements[key] = key === "search" ? target == null ? void 0 : target.input : target == null ? void 0 : target.list;
1358
+ };
1359
+ }
1360
+ function renderSingleSelectionOrPlaceholder() {
1361
+ var _a2;
1362
+ const selected = props.selected;
1363
+ return (_a2 = selected == null ? void 0 : selected.name) != null ? _a2 : props.placeholder;
1364
+ }
1163
1365
  return (_ctx, _cache) => {
1164
- return openBlock(), createBlock(_sfc_main$3, {
1165
- id: `select-${__props.id}`,
1166
- selected: __props.modelValue,
1167
- label: __props.label,
1168
- "aria-label": __props.ariaLabel,
1169
- "smaller-width": __props.smallerWidth,
1170
- disabled: __props.disabled,
1171
- "fetch-on-search": __props.fetchOnApi,
1172
- "is-multiple-select": __props.multiple,
1173
- class: "sol-select-core",
1174
- "search-placeholder": __props.searchPlaceholder,
1175
- searchable: __props.searchable,
1176
- options: __props.options,
1177
- "onUpdate:selected": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
1178
- }, {
1179
- "toggle-dropdown": withCtx(({ selected, isOpen, select }) => [
1180
- createElementVNode("div", {
1181
- class: normalizeClass(["select-container", { "-disabled": __props.disabled, "-error": __props.error }])
1182
- }, [
1183
- createElementVNode("div", _hoisted_1$4, [
1184
- __props.multiple && (selected == null ? void 0 : selected.length) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(selected, (item, index) => {
1185
- return openBlock(), createBlock(_sfc_main$2, {
1186
- id: item,
1187
- key: index,
1188
- label: item,
1189
- onClick: withModifiers(($event) => select(item), ["stop"]),
1190
- onClose: ($event) => select(item)
1191
- }, null, 8, ["id", "label", "onClick", "onClose"]);
1192
- }), 128)) : (selected == null ? void 0 : selected.length) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1193
- createTextVNode(toDisplayString(selected), 1)
1194
- ], 64)) : (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(__props.placeholder), 1))
1195
- ]),
1196
- createVNode(unref(IconArrow), {
1197
- class: normalizeClass(["icon", { "-open": isOpen }])
1198
- }, null, 8, ["class"])
1199
- ], 2),
1200
- createElementVNode("span", _hoisted_3$4, toDisplayString(__props.error), 1)
1366
+ return openBlock(), createElementBlock("div", {
1367
+ ref_key: "el",
1368
+ ref: el,
1369
+ class: normalizeClass(["sol-select-core", { "-smaller": __props.smallerWidth }]),
1370
+ "data-testid": `select-${__props.id}`,
1371
+ onKeydownPassive: navigation
1372
+ }, [
1373
+ renderSlot(_ctx.$slots, "label", {
1374
+ id: `select-label-${__props.id}`,
1375
+ for: `select-toggle-${__props.id}`
1376
+ }, () => [
1377
+ __props.label ? (openBlock(), createElementBlock("label", {
1378
+ key: 0,
1379
+ id: `select-label-${__props.id}`,
1380
+ class: normalizeClass(["label", { "-disabled": __props.disabled }])
1381
+ }, toDisplayString(__props.label), 11, _hoisted_2$6)) : createCommentVNode("", true)
1201
1382
  ]),
1202
- _: 1
1203
- }, 8, ["id", "selected", "label", "aria-label", "smaller-width", "disabled", "fetch-on-search", "is-multiple-select", "search-placeholder", "searchable", "options"]);
1383
+ createElementVNode("button", {
1384
+ id: `select-toggle-${__props.id}`,
1385
+ disabled: __props.disabled,
1386
+ "data-testid": `select-toggle-${__props.id}`,
1387
+ class: "select-button-toggle",
1388
+ "aria-haspopup": "listbox",
1389
+ "aria-expanded": isDropdownOpen.value,
1390
+ "aria-labelledby": `select-label-${__props.id}`,
1391
+ "aria-label": __props.ariaLabel,
1392
+ "aria-controls": `select-list-${__props.id}`,
1393
+ onClick: withModifiers(toggleDropdown, ["stop"])
1394
+ }, [
1395
+ renderSlot(_ctx.$slots, "toggle-dropdown", {
1396
+ toggle: { open, close: close2, toggleDropdown },
1397
+ isOpen: isDropdownOpen.value,
1398
+ select,
1399
+ selected: __props.selected
1400
+ }, () => {
1401
+ var _a2;
1402
+ return [
1403
+ __props.multiple && Array.isArray(__props.selected) && ((_a2 = __props.selected) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
1404
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.selected, (item, index) => {
1405
+ return openBlock(), createBlock(_sfc_main$4, {
1406
+ id: item.value,
1407
+ key: index,
1408
+ label: item.name,
1409
+ onClick: withModifiers(($event) => select(item), ["stop"]),
1410
+ onClose: ($event) => select(item)
1411
+ }, null, 8, ["id", "label", "onClick", "onClose"]);
1412
+ }), 128))
1413
+ ])) : (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(renderSingleSelectionOrPlaceholder()), 1)),
1414
+ createVNode(unref(IconArrow), {
1415
+ "aria-hidden": "true",
1416
+ tabindex: "-1",
1417
+ class: normalizeClass(["icon", { "-open": isDropdownOpen.value }])
1418
+ }, null, 8, ["class"])
1419
+ ];
1420
+ })
1421
+ ], 8, _hoisted_3$6),
1422
+ createElementVNode("span", _hoisted_6$1, toDisplayString(__props.error), 1),
1423
+ createVNode(Transition$1, {
1424
+ mode: "out-in",
1425
+ name: "dropdown"
1426
+ }, {
1427
+ default: withCtx(() => [
1428
+ withDirectives(createElementVNode("div", _hoisted_7, [
1429
+ renderSlot(_ctx.$slots, "search", {}, () => [
1430
+ __props.searchable ? (openBlock(), createElementBlock("div", {
1431
+ key: 0,
1432
+ class: normalizeClass(["search-container", { "-loading": __props.loading }])
1433
+ }, [
1434
+ renderSlot(_ctx.$slots, "search", { filter: filter.value }, () => [
1435
+ createVNode(_sfc_main$e, {
1436
+ id: `select-search-${__props.id}`,
1437
+ ref: addRefElementToElements("search"),
1438
+ modelValue: filter.value,
1439
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value = $event),
1440
+ "data-testid": `select-search-${__props.id}`,
1441
+ role: "combobox",
1442
+ class: "search",
1443
+ "aria-autocomplete": "list",
1444
+ placeholder: __props.searchPlaceholder,
1445
+ "aria-expanded": isDropdownOpen.value,
1446
+ "aria-haspopup": "listbox",
1447
+ "aria-owns": `select-list-${__props.id}`,
1448
+ "aria-controls": `select-list-${__props.id}`,
1449
+ "aria-activedescendant": elementFocus.id,
1450
+ "aria-labelledby": `select-label-${__props.id}`,
1451
+ onClick: _cache[1] || (_cache[1] = withModifiers(() => {
1452
+ }, ["stop"])),
1453
+ onInput: _cache[2] || (_cache[2] = ($event) => {
1454
+ var _a2;
1455
+ return emit("search", (_a2 = $event.target) == null ? void 0 : _a2.value);
1456
+ })
1457
+ }, null, 8, ["id", "modelValue", "data-testid", "placeholder", "aria-expanded", "aria-owns", "aria-controls", "aria-activedescendant", "aria-labelledby"]),
1458
+ createVNode(unref(IconSearch), {
1459
+ "aria-hidden": "true",
1460
+ class: "icon"
1461
+ })
1462
+ ])
1463
+ ], 2)) : createCommentVNode("", true),
1464
+ createVNode(_sfc_main$3, {
1465
+ id: __props.id,
1466
+ ref: addRefElementToElements("list"),
1467
+ options: unref(filtered),
1468
+ multiple: __props.multiple,
1469
+ "is-selected": isSelected,
1470
+ onSelect: select
1471
+ }, {
1472
+ "item-list": withCtx(({ text, value, option, isSelected: isSelected2 }) => [
1473
+ renderSlot(_ctx.$slots, "default", {
1474
+ text,
1475
+ value,
1476
+ option,
1477
+ isSelected: isSelected2
1478
+ })
1479
+ ]),
1480
+ "no-data": withCtx(() => [
1481
+ renderSlot(_ctx.$slots, "no-data")
1482
+ ]),
1483
+ _: 3
1484
+ }, 8, ["id", "options", "multiple"])
1485
+ ])
1486
+ ], 512), [
1487
+ [vShow, isDropdownOpen.value]
1488
+ ])
1489
+ ]),
1490
+ _: 3
1491
+ })
1492
+ ], 42, _hoisted_1$6);
1204
1493
  };
1205
1494
  }
1206
1495
  });
1207
- _sfc_main$1.install = (app) => {
1208
- app.component("SolSelect", _sfc_main$1);
1209
- };
1210
1496
  _sfc_main$2.install = (app) => {
1211
- app.component("SolChip", _sfc_main$2);
1497
+ app.component("SolSelect", _sfc_main$2);
1498
+ };
1499
+ _sfc_main$4.install = (app) => {
1500
+ app.component("SolChip", _sfc_main$4);
1501
+ };
1502
+ const _hoisted_1$5 = {
1503
+ preserveAspectRatio: "xMidYMid meet",
1504
+ viewBox: "0 0 24 24",
1505
+ width: "1.2em",
1506
+ height: "1.2em"
1507
+ };
1508
+ const _hoisted_2$5 = /* @__PURE__ */ createElementVNode("path", {
1509
+ fill: "currentColor",
1510
+ d: "M11.293 7.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1-1.414 1.414L12 9.414l-5.293 5.293a1 1 0 0 1-1.414-1.414l6-6z"
1511
+ }, null, -1);
1512
+ const _hoisted_3$5 = [
1513
+ _hoisted_2$5
1514
+ ];
1515
+ function render$3(_ctx, _cache) {
1516
+ return openBlock(), createElementBlock("svg", _hoisted_1$5, _hoisted_3$5);
1517
+ }
1518
+ var Chevron = { name: "mi-chevron-up", render: render$3 };
1519
+ var Accordion_vue_vue_type_style_index_0_lang = "";
1520
+ const _hoisted_1$4 = ["id", "data-testid", "aria-disabled"];
1521
+ const _hoisted_2$4 = ["data-testid", "tabindex"];
1522
+ const _hoisted_3$4 = ["data-testid"];
1523
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1524
+ __name: "Accordion",
1525
+ props: {
1526
+ id: null,
1527
+ title: { default: "Title" },
1528
+ invert: { type: Boolean },
1529
+ disabled: { type: Boolean }
1530
+ },
1531
+ setup(__props) {
1532
+ return (_ctx, _cache) => {
1533
+ return openBlock(), createElementBlock("details", {
1534
+ id: `accordion-${__props.id}`,
1535
+ "data-testid": `accordion-${__props.id}`,
1536
+ class: normalizeClass(["sol-accordion-core", { "-invert": __props.invert, "-disabled": __props.disabled }]),
1537
+ "aria-disabled": __props.disabled
1538
+ }, [
1539
+ createElementVNode("summary", {
1540
+ "data-testid": `accordion-title-${__props.id}`,
1541
+ class: "summary",
1542
+ tabindex: __props.disabled ? -1 : 0
1543
+ }, [
1544
+ renderSlot(_ctx.$slots, "title", {}, () => [
1545
+ createTextVNode(toDisplayString(__props.title), 1)
1546
+ ]),
1547
+ createVNode(unref(Chevron), {
1548
+ class: "icon",
1549
+ "aria-hidden": "true"
1550
+ })
1551
+ ], 8, _hoisted_2$4),
1552
+ createElementVNode("div", {
1553
+ "data-testid": `accordion-content-${__props.id}`,
1554
+ class: "container"
1555
+ }, [
1556
+ renderSlot(_ctx.$slots, "default")
1557
+ ], 8, _hoisted_3$4)
1558
+ ], 10, _hoisted_1$4);
1559
+ };
1560
+ }
1561
+ });
1562
+ _sfc_main$1.install = (app) => {
1563
+ app.component("SolAccordion", _sfc_main$1);
1212
1564
  };
1213
1565
  var windiBase = "";
1214
1566
  var windiComponents = "";
@@ -1384,7 +1736,7 @@ const _hoisted_5 = {
1384
1736
  };
1385
1737
  const _hoisted_6 = ["data-testid"];
1386
1738
  const _sfc_main = /* @__PURE__ */ defineComponent({
1387
- name: "Toast",
1739
+ __name: "Toast",
1388
1740
  props: {
1389
1741
  id: null,
1390
1742
  type: { default: DEFAULT_OPTIONS.type },
@@ -1547,7 +1899,7 @@ function setupVNode(id, options, content) {
1547
1899
  const container = document.createElement("div");
1548
1900
  document.body.appendChild(container);
1549
1901
  const toastVNode = createVNode(_sfc_main, setupVNodeProps(options, id, verticalOffset, close, content));
1550
- render$8(toastVNode, container);
1902
+ render$9(toastVNode, container);
1551
1903
  toasts[options.position].push({ toastVNode, container });
1552
1904
  if (toastVNode.component)
1553
1905
  toastVNode.component.props.visible = true;
@@ -1603,32 +1955,30 @@ function close(id, position) {
1603
1955
  componentProps.visible = false;
1604
1956
  componentProps.onClose && componentProps.onClose();
1605
1957
  setTimeout(() => {
1606
- render$8(null, container);
1958
+ render$9(null, container);
1607
1959
  document.body.removeChild(container);
1608
1960
  }, 1e3);
1609
1961
  }
1610
1962
  console.log("%c\u{1F33B}[Girassol]\u{1F33B}", "padding: 8px;background: #212121;color: gold; font-family: 'Fira code'; font-weight: bold; font-size: 1.2rem");
1611
1963
  const components = {
1612
- SolButton: _sfc_main$d,
1613
- SolInput: _sfc_main$c,
1614
- SolTextarea: _sfc_main$9,
1615
- SolTextfield: _sfc_main$b,
1616
- SolTextfieldPassword: _sfc_main$a,
1617
- SolRadio: _sfc_main$8,
1618
- SolRadioGroup: _sfc_main$7,
1619
- SolCheckbox: _sfc_main$6,
1620
- SolCheckboxGroup: _sfc_main$5,
1621
- SolSwitch: _sfc_main$4,
1622
- SolDropdown: _sfc_main$3,
1623
- SolSelect: _sfc_main$1,
1624
- SolChip: _sfc_main$2
1964
+ SolButton: _sfc_main$f,
1965
+ SolInput: _sfc_main$e,
1966
+ SolTextarea: _sfc_main$b,
1967
+ SolTextfield: _sfc_main$d,
1968
+ SolTextfieldPassword: _sfc_main$c,
1969
+ SolRadio: _sfc_main$a,
1970
+ SolRadioGroup: _sfc_main$9,
1971
+ SolCheckbox: _sfc_main$8,
1972
+ SolCheckboxGroup: _sfc_main$7,
1973
+ SolSwitch: _sfc_main$6,
1974
+ SolDropdown: _sfc_main$5,
1975
+ SolSelect: _sfc_main$2,
1976
+ SolChip: _sfc_main$4,
1977
+ SolAccordion: _sfc_main$1
1625
1978
  };
1626
1979
  function install(App) {
1627
1980
  for (const component in components) {
1628
1981
  App.component(component, components[component]);
1629
1982
  }
1630
1983
  }
1631
- const componentsNames = [];
1632
- for (const component in components)
1633
- componentsNames.push(component);
1634
- export { _sfc_main$d as SolButton, _sfc_main$6 as SolCheckbox, _sfc_main$5 as SolCheckboxGroup, _sfc_main$2 as SolChip, _sfc_main$3 as SolDropdown, _sfc_main$c as SolInput, _sfc_main$8 as SolRadio, _sfc_main$7 as SolRadioGroup, _sfc_main$1 as SolSelect, _sfc_main$4 as SolSwitch, _sfc_main$9 as SolTextarea, _sfc_main$b as SolTextfield, _sfc_main$a as SolTextfieldPassword, componentsNames, install, useToast };
1984
+ export { _sfc_main$1 as SolAccordion, _sfc_main$f as SolButton, _sfc_main$8 as SolCheckbox, _sfc_main$7 as SolCheckboxGroup, _sfc_main$4 as SolChip, _sfc_main$5 as SolDropdown, _sfc_main$e as SolInput, _sfc_main$a as SolRadio, _sfc_main$9 as SolRadioGroup, _sfc_main$2 as SolSelect, _sfc_main$6 as SolSwitch, _sfc_main$b as SolTextarea, _sfc_main$d as SolTextfield, _sfc_main$c as SolTextfieldPassword, components, install, useToast };