@caipira/tamandua 0.0.44 → 0.0.45

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.
@@ -0,0 +1,76 @@
1
+ import './Drawer.css';
2
+ import { defineComponent as v, ref as b, onMounted as h, resolveComponent as c, openBlock as o, createElementBlock as l, withKeys as w, createVNode as d, createElementVNode as a, normalizeClass as f, createBlock as k, createCommentVNode as r, renderSlot as n } from "vue";
3
+ import { _ as x } from "./Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js";
4
+ import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const C = {
6
+ key: 0,
7
+ class: "flex justify-between items-center pl-4 py-1 pr-1 border-b border-color"
8
+ }, $ = { class: "flex flex-col flex-1 relative overflow-y-auto scrollbar" }, z = /* @__PURE__ */ v({
9
+ name: "TDrawer",
10
+ __name: "Drawer",
11
+ props: {
12
+ title: { default: "" },
13
+ style: { default: () => ({
14
+ footer: ""
15
+ }) },
16
+ direction: { default: "rtl" },
17
+ showHeader: { type: Boolean, default: !0 }
18
+ },
19
+ emits: ["closed"],
20
+ setup(u, { emit: p }) {
21
+ const t = u, m = p, i = b(null), s = (e) => {
22
+ e.stopPropagation(), m("closed");
23
+ };
24
+ return h(() => {
25
+ i.value?.focus();
26
+ }), (e, B) => {
27
+ const _ = c("t-graphy-subtitle"), y = c("t-button");
28
+ return o(), l("div", {
29
+ class: "fixed inset-0 flex items-center z-10",
30
+ tabindex: "0",
31
+ ref_key: "modal",
32
+ ref: i,
33
+ onKeyup: w(s, ["esc"])
34
+ }, [
35
+ d(x, { onClick: s }),
36
+ a("div", {
37
+ class: f(["w-[38rem] absolute inset-y-0 z-20 flex flex-col bg-caipira-primary drawer", {
38
+ "right-0 drop-shadow-lg": t.direction === "ltr",
39
+ "left-0": t.direction === "rtl"
40
+ }])
41
+ }, [
42
+ t.showHeader ? (o(), l("div", C, [
43
+ a("div", null, [
44
+ t.title ? (o(), k(_, {
45
+ key: 0,
46
+ text: t.title
47
+ }, null, 8, ["text"])) : r("", !0),
48
+ e.$slots.header ? n(e.$slots, "header", { key: 1 }, void 0, !0) : r("", !0)
49
+ ]),
50
+ d(y, {
51
+ variant: "transparent",
52
+ class: "self-start",
53
+ size: "lg",
54
+ icon: "close",
55
+ onClick: s
56
+ })
57
+ ])) : r("", !0),
58
+ a("div", $, [
59
+ n(e.$slots, "default", {}, void 0, !0)
60
+ ]),
61
+ e.$slots.footer ? (o(), l("div", {
62
+ key: 1,
63
+ class: f(["p-4 border-t border-color", {
64
+ [e.style.footer]: !0
65
+ }])
66
+ }, [
67
+ n(e.$slots, "footer", {}, void 0, !0)
68
+ ], 2)) : r("", !0)
69
+ ], 2)
70
+ ], 544);
71
+ };
72
+ }
73
+ }), E = /* @__PURE__ */ g(z, [["__scopeId", "data-v-1e2fe237"]]);
74
+ export {
75
+ E as D
76
+ };
package/dist/Drawer.css CHANGED
@@ -1 +1 @@
1
- .drawer[data-v-4b55ad69]{box-shadow:#0003 0 8px 10px -5px,#00000024 0 16px 24px 2px,#0000001f 0 6px 30px 5px}
1
+ .drawer[data-v-1e2fe237]{box-shadow:#0003 0 8px 10px -5px,#00000024 0 16px 24px 2px,#0000001f 0 6px 30px 5px}
package/dist/Drawer.js CHANGED
@@ -1,5 +1,5 @@
1
- import { D as e } from "./Drawer-KwhQs5WA.js";
2
- import { p } from "./plugin-CrUFQdOK.js";
1
+ import { D as e } from "./Drawer-BNQfu7JD.js";
2
+ import { p } from "./plugin-D0o7F2L4.js";
3
3
  export {
4
4
  e as Drawer,
5
5
  p as DrawerPlugin
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./GraphySubtitle.vue_vue_type_script_setup_true_lang-DtAmgZWp.js";
2
- import { p as e } from "./plugin-DN54VuID.js";
1
+ import { _ as p } from "./GraphySubtitle.vue_vue_type_script_setup_true_lang-DsBHn2gS.js";
2
+ import { p as e } from "./plugin-F3dxY_wr.js";
3
3
  export {
4
4
  p as GraphySubtitle,
5
5
  e as GraphySubtitlePlugin
@@ -0,0 +1,18 @@
1
+ import { defineComponent as r, openBlock as n, createElementBlock as a, normalizeClass as l, toDisplayString as p } from "vue";
2
+ const i = /* @__PURE__ */ r({
3
+ name: "TGraphySubtitle",
4
+ __name: "GraphySubtitle",
5
+ props: {
6
+ text: {},
7
+ textColor: { default: "color-text" }
8
+ },
9
+ setup(t) {
10
+ const e = t;
11
+ return (o, c) => (n(), a("h2", {
12
+ class: l(["color-caipira-primary-inverted text-2xl select-none", [o.textColor]])
13
+ }, p(e.text), 3));
14
+ }
15
+ });
16
+ export {
17
+ i as _
18
+ };
package/dist/Link.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-DBYJfl5l.js";
2
- import { p } from "./plugin-BDFttGl1.js";
1
+ import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-gTf77Jvd.js";
2
+ import { p } from "./plugin-DHstqRmE.js";
3
3
  export {
4
4
  i as Link,
5
5
  p as LinkPlugin
@@ -1,6 +1,6 @@
1
- import { defineComponent as m, computed as o, resolveComponent as p, openBlock as t, createBlock as n, resolveDynamicComponent as d, mergeProps as u, withCtx as f, renderSlot as _, createElementBlock as k, Fragment as y, createTextVNode as b, toDisplayString as g, createCommentVNode as h } from "vue";
1
+ import { defineComponent as p, computed as o, resolveComponent as u, openBlock as t, createBlock as r, resolveDynamicComponent as m, mergeProps as d, withCtx as f, renderSlot as _, createElementBlock as k, Fragment as y, createTextVNode as b, toDisplayString as g, createCommentVNode as h } from "vue";
2
2
  import { L as a } from "./ui-BC6H9E93.js";
3
- const w = /* @__PURE__ */ m({
3
+ const w = /* @__PURE__ */ p({
4
4
  name: "TLink",
5
5
  __name: "Link",
6
6
  props: {
@@ -12,29 +12,29 @@ const w = /* @__PURE__ */ m({
12
12
  disabled: { type: Boolean, default: !1 }
13
13
  },
14
14
  setup(l, { emit: v }) {
15
- const e = l, s = o(() => {
15
+ const e = l, i = o(() => {
16
16
  switch (e.type) {
17
17
  case a.Router:
18
18
  return "router-link";
19
19
  default:
20
20
  return "a";
21
21
  }
22
- }), i = o(() => e.type === "router" ? {
22
+ }), s = o(() => e.type === "router" ? {
23
23
  to: e.to
24
24
  } : {
25
25
  href: e.href
26
26
  });
27
- return (r, C) => {
28
- const c = p("t-icon");
29
- return t(), n(d(s.value), u({
27
+ return (n, C) => {
28
+ const c = u("t-icon");
29
+ return t(), r(m(i.value), d({
30
30
  target: e.target,
31
31
  disabled: e.disabled
32
- }, i.value, { class: "color-caipira-primary-inverted underline font-bold inline-flex items-baseline" }), {
32
+ }, s.value, { class: "color-caipira-primary-inverted underline font-bold inline-flex items-baseline input-outline" }), {
33
33
  default: f(() => [
34
- r.$slots.default ? _(r.$slots, "default", { key: 0 }) : (t(), k(y, { key: 1 }, [
34
+ n.$slots.default ? _(n.$slots, "default", { key: 0 }) : (t(), k(y, { key: 1 }, [
35
35
  b(g(e.label), 1)
36
36
  ], 64)),
37
- e.target === "_blank" ? (t(), n(c, {
37
+ e.target === "_blank" ? (t(), r(c, {
38
38
  key: 2,
39
39
  size: 15,
40
40
  class: "ml-1",
@@ -3,7 +3,7 @@ import { _ as p } from "./Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.
3
3
  import { B as s } from "./Button-DxCwFAWy.js";
4
4
  import { _ as f } from "./ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js";
5
5
  import { _ as n } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-DzIPutlk.js";
6
- import { D as u } from "./Drawer-KwhQs5WA.js";
6
+ import { D as u } from "./Drawer-BNQfu7JD.js";
7
7
  import { _ as l } from "./Dropdown.vue_vue_type_script_setup_true_lang-pjG__bX2.js";
8
8
  import { _ as h } from "./FileDrop.vue_vue_type_script_setup_true_lang-DLEH_LLX.js";
9
9
  import { _ as T } from "./Form.vue_vue_type_script_setup_true_lang-CaCu47jH.js";
@@ -11,7 +11,7 @@ import { _ as y } from "./FormItem.vue_vue_type_script_setup_true_lang-CV7IVjE4.
11
11
  import { _ as C } from "./GraphyEmpty.vue_vue_type_script_setup_true_lang-B-hAjDCw.js";
12
12
  import { _ as G } from "./GraphyLabel.vue_vue_type_script_setup_true_lang-n_0200p7.js";
13
13
  import { _ as g } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-BdCwug4U.js";
14
- import { _ as v } from "./GraphySubtitle.vue_vue_type_script_setup_true_lang-DtAmgZWp.js";
14
+ import { _ as v } from "./GraphySubtitle.vue_vue_type_script_setup_true_lang-DsBHn2gS.js";
15
15
  import { _ as F } from "./GraphyTitle.vue_vue_type_script_setup_true_lang-DXnrZHV2.js";
16
16
  import { _ as B } from "./Icon.vue_vue_type_script_setup_true_lang-DXUyEtqW.js";
17
17
  import { _ as A } from "./InputAvatar.vue_vue_type_script_setup_true_lang-coNpUH5g.js";
@@ -28,7 +28,7 @@ import { _ as $ } from "./InputSelect.vue_vue_type_script_setup_true_lang-vCtwK7
28
28
  import { _ as or } from "./InputSwitch.vue_vue_type_script_setup_true_lang-Dq_U-mFJ.js";
29
29
  import { _ as er } from "./InputText.vue_vue_type_script_setup_true_lang-D4nIMRiz.js";
30
30
  import { _ as pr } from "./InputTextarea.vue_vue_type_script_setup_true_lang-DRo5eIw4.js";
31
- import { _ as sr } from "./Link.vue_vue_type_script_setup_true_lang-DBYJfl5l.js";
31
+ import { _ as sr } from "./Link.vue_vue_type_script_setup_true_lang-gTf77Jvd.js";
32
32
  import { _ as fr } from "./Modal.vue_vue_type_script_setup_true_lang-aQ-G7tuI.js";
33
33
  import { _ as nr } from "./ModalForm.vue_vue_type_script_setup_true_lang-B4dU1AzJ.js";
34
34
  import { _ as ur } from "./Pagination.vue_vue_type_script_setup_true_lang-PLZQJUd0.js";
@@ -1,5 +1,5 @@
1
1
  import { r as o } from "./register-component-B-fdqewb.js";
2
- import { D as t } from "./Drawer-KwhQs5WA.js";
2
+ import { D as t } from "./Drawer-BNQfu7JD.js";
3
3
  const a = {
4
4
  install(r) {
5
5
  o(r, t);
@@ -1,5 +1,5 @@
1
1
  import { r } from "./register-component-B-fdqewb.js";
2
- import { _ as s } from "./Link.vue_vue_type_script_setup_true_lang-DBYJfl5l.js";
2
+ import { _ as s } from "./Link.vue_vue_type_script_setup_true_lang-gTf77Jvd.js";
3
3
  const m = {
4
4
  install(o) {
5
5
  r(o, s);
@@ -1,5 +1,5 @@
1
1
  import { r } from "./register-component-B-fdqewb.js";
2
- import { _ as s } from "./GraphySubtitle.vue_vue_type_script_setup_true_lang-DtAmgZWp.js";
2
+ import { _ as s } from "./GraphySubtitle.vue_vue_type_script_setup_true_lang-DsBHn2gS.js";
3
3
  const m = {
4
4
  install(o) {
5
5
  r(o, s);
@@ -8,8 +8,8 @@ import "./transform-DSaNEFMr.js";
8
8
  import "./ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js";
9
9
  import { p as o } from "./plugin-DDXOF4cU.js";
10
10
  import { p as n } from "./plugin-D4x3uASg.js";
11
- import "./Drawer-KwhQs5WA.js";
12
- import { p as m } from "./plugin-CrUFQdOK.js";
11
+ import "./Drawer-BNQfu7JD.js";
12
+ import { p as m } from "./plugin-D0o7F2L4.js";
13
13
  import { p as u } from "./plugin-CNqL90UL.js";
14
14
  import { p as l } from "./plugin-BscWXR9h.js";
15
15
  import "./Form.vue_vue_type_script_setup_true_lang-CaCu47jH.js";
@@ -19,7 +19,7 @@ import { p as a } from "./plugin-Buc7eEox.js";
19
19
  import { p as s } from "./plugin-D9k93Uu1.js";
20
20
  import "./GraphyPrice.vue_vue_type_script_setup_true_lang-BdCwug4U.js";
21
21
  import { p as P } from "./plugin-CxYhyNRA.js";
22
- import { p as f } from "./plugin-DN54VuID.js";
22
+ import { p as f } from "./plugin-F3dxY_wr.js";
23
23
  import { p as e } from "./plugin-DOeDaXWj.js";
24
24
  import "./Icon.vue_vue_type_script_setup_true_lang-DXUyEtqW.js";
25
25
  import { p as $ } from "./plugin-Dk3KBChD.js";
@@ -39,8 +39,8 @@ import { p as C } from "./plugin-cVdTR_s6.js";
39
39
  import { p as G } from "./plugin-DT7LVAli.js";
40
40
  import { p as k } from "./plugin-DDUNw6fL.js";
41
41
  import { p as w } from "./plugin-BQFwx3d5.js";
42
- import "./Link.vue_vue_type_script_setup_true_lang-DBYJfl5l.js";
43
- import { p as x } from "./plugin-BDFttGl1.js";
42
+ import "./Link.vue_vue_type_script_setup_true_lang-gTf77Jvd.js";
43
+ import { p as x } from "./plugin-DHstqRmE.js";
44
44
  import { p as D } from "./plugin-GUvrG7aO.js";
45
45
  import { p as F } from "./plugin-DmPqmScT.js";
46
46
  import { p as L } from "./plugin-YUomn9tF.js";
package/dist/plugins.js CHANGED
@@ -8,8 +8,8 @@ import "./transform-DSaNEFMr.js";
8
8
  import "./ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js";
9
9
  import { p as v } from "./plugin-DDXOF4cU.js";
10
10
  import { p as D } from "./plugin-D4x3uASg.js";
11
- import "./Drawer-KwhQs5WA.js";
12
- import { p as L } from "./plugin-CrUFQdOK.js";
11
+ import "./Drawer-BNQfu7JD.js";
12
+ import { p as L } from "./plugin-D0o7F2L4.js";
13
13
  import { p as A } from "./plugin-CNqL90UL.js";
14
14
  import { p as E } from "./plugin-BscWXR9h.js";
15
15
  import "./Form.vue_vue_type_script_setup_true_lang-CaCu47jH.js";
@@ -19,7 +19,7 @@ import { p as J } from "./plugin-Buc7eEox.js";
19
19
  import { p as N } from "./plugin-D9k93Uu1.js";
20
20
  import "./GraphyPrice.vue_vue_type_script_setup_true_lang-BdCwug4U.js";
21
21
  import { p as Q } from "./plugin-CxYhyNRA.js";
22
- import { p as V } from "./plugin-DN54VuID.js";
22
+ import { p as V } from "./plugin-F3dxY_wr.js";
23
23
  import { p as X } from "./plugin-DOeDaXWj.js";
24
24
  import "./Icon.vue_vue_type_script_setup_true_lang-DXUyEtqW.js";
25
25
  import { p as Z } from "./plugin-Dk3KBChD.js";
@@ -39,8 +39,8 @@ import { p as hr } from "./plugin-cVdTR_s6.js";
39
39
  import { p as Tr } from "./plugin-DT7LVAli.js";
40
40
  import { p as yr } from "./plugin-DDUNw6fL.js";
41
41
  import { p as Cr } from "./plugin-BQFwx3d5.js";
42
- import "./Link.vue_vue_type_script_setup_true_lang-DBYJfl5l.js";
43
- import { p as Sr } from "./plugin-BDFttGl1.js";
42
+ import "./Link.vue_vue_type_script_setup_true_lang-gTf77Jvd.js";
43
+ import { p as Sr } from "./plugin-DHstqRmE.js";
44
44
  import { p as vr } from "./plugin-GUvrG7aO.js";
45
45
  import { p as Dr } from "./plugin-DmPqmScT.js";
46
46
  import { p as Lr } from "./plugin-YUomn9tF.js";
package/dist/tamandua.js CHANGED
@@ -1,4 +1,4 @@
1
- import { p as n } from "./plugins-Dwz7OLJO.js";
1
+ import { p as n } from "./plugins-C7Uur4I5.js";
2
2
  const o = {
3
3
  install(s) {
4
4
  for (const i in n)
@@ -0,0 +1,31 @@
1
+ import { FormSchema } from '../../types/form.js';
2
+
3
+ declare const _default: {
4
+ title: string;
5
+ args: {};
6
+ argTypes: {};
7
+ };
8
+ export default _default;
9
+ export declare const Drawer: (args: any) => {
10
+ components: {
11
+ Form: {
12
+ setup(): {
13
+ schema: FormSchema;
14
+ };
15
+ name: string;
16
+ template: string;
17
+ };
18
+ };
19
+ setup(): {
20
+ args: any;
21
+ Form: {
22
+ setup(): {
23
+ schema: FormSchema;
24
+ };
25
+ name: string;
26
+ template: string;
27
+ };
28
+ isDrawerVisible: import('vue').Ref<boolean>;
29
+ };
30
+ template: string;
31
+ };
@@ -0,0 +1,97 @@
1
+ import { DropdownProps } from './types.js';
2
+ import { InputSelectOption } from '../InputSelect/types.js';
3
+
4
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DropdownProps>, {
5
+ items: () => never[];
6
+ loading: boolean;
7
+ multiple: boolean;
8
+ isVisible: boolean;
9
+ optionMarginClass: string;
10
+ optionPaddingClass: string;
11
+ wrapperPaddingClass: string;
12
+ optionRoundnessClass: string;
13
+ wrapperRoundnessClass: string;
14
+ }>, {
15
+ move: (e: KeyboardEvent) => boolean;
16
+ resetScroll: () => void;
17
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ change: (val: import("./types.js").SelectEvent) => void;
19
+ "end-reached": () => void;
20
+ created: (val: import("vue").ComponentInternalInstance | null) => void;
21
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DropdownProps>, {
22
+ items: () => never[];
23
+ loading: boolean;
24
+ multiple: boolean;
25
+ isVisible: boolean;
26
+ optionMarginClass: string;
27
+ optionPaddingClass: string;
28
+ wrapperPaddingClass: string;
29
+ optionRoundnessClass: string;
30
+ wrapperRoundnessClass: string;
31
+ }>>> & {
32
+ onChange?: ((val: import("./types.js").SelectEvent) => any) | undefined;
33
+ "onEnd-reached"?: (() => any) | undefined;
34
+ onCreated?: ((val: import("vue").ComponentInternalInstance | null) => any) | undefined;
35
+ }, {
36
+ loading: boolean;
37
+ multiple: boolean;
38
+ items: InputSelectOption[];
39
+ isVisible: boolean;
40
+ optionMarginClass: string;
41
+ optionPaddingClass: string;
42
+ wrapperPaddingClass: string;
43
+ optionRoundnessClass: string;
44
+ wrapperRoundnessClass: string;
45
+ }, {}>, {
46
+ default?(_: {
47
+ icon?: "circle" | "account" | "alert-octagon" | "alert-octagon-outline" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "camera" | "cards-outline" | "cards-variant" | "cart-outline" | "chart-box" | "chart-box-outline" | "check" | "check-circle" | "check-circle-outline" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "close" | "close-circle" | "close-circle-outline" | "cog" | "color-fill" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "filter" | "fullscreen" | "fullscreen-exit" | "group" | "image" | "image-album" | "image-album-outline" | "image-outline" | "info-outline" | "key" | "key-chain" | "key-variant" | "listbox-outline" | "loading" | "lock" | "lock-outline" | "logout" | "menu" | "menu-down" | "menu-left" | "menu-right" | "minus" | "minus-circle" | "minus-circle-outline" | "moon" | "open-in-new" | "pencil" | "people" | "piggy-bank-outline" | "plus" | "plus-circle" | "plus-circle-outline" | "qrcode-scan" | "refresh" | "save" | "search" | "spotlight" | "store-outline" | "sun" | "swap" | "swap-horizontal" | "swap-left" | "swap-right" | "system-theme" | "tag-outline" | "trash-can" | "trash-can-outline" | "upload" | "user-circle" | "zip-box" | undefined;
48
+ label: string | object;
49
+ type?: string | undefined;
50
+ renderer?: string | undefined;
51
+ isGroupLabel: boolean;
52
+ value?: undefined;
53
+ action?: undefined;
54
+ } | {
55
+ icon?: "circle" | "account" | "alert-octagon" | "alert-octagon-outline" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "camera" | "cards-outline" | "cards-variant" | "cart-outline" | "chart-box" | "chart-box-outline" | "check" | "check-circle" | "check-circle-outline" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "close" | "close-circle" | "close-circle-outline" | "cog" | "color-fill" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "filter" | "fullscreen" | "fullscreen-exit" | "group" | "image" | "image-album" | "image-album-outline" | "image-outline" | "info-outline" | "key" | "key-chain" | "key-variant" | "listbox-outline" | "loading" | "lock" | "lock-outline" | "logout" | "menu" | "menu-down" | "menu-left" | "menu-right" | "minus" | "minus-circle" | "minus-circle-outline" | "moon" | "open-in-new" | "pencil" | "people" | "piggy-bank-outline" | "plus" | "plus-circle" | "plus-circle-outline" | "qrcode-scan" | "refresh" | "save" | "search" | "spotlight" | "store-outline" | "sun" | "swap" | "swap-horizontal" | "swap-left" | "swap-right" | "system-theme" | "tag-outline" | "trash-can" | "trash-can-outline" | "upload" | "user-circle" | "zip-box" | undefined;
56
+ label: string | object;
57
+ type?: string | undefined;
58
+ renderer?: string | undefined;
59
+ value: import('../InputSelect/types.js').InputSelectValue;
60
+ action?: undefined;
61
+ isGroupLabel?: undefined;
62
+ } | {
63
+ icon?: "circle" | "account" | "alert-octagon" | "alert-octagon-outline" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "camera" | "cards-outline" | "cards-variant" | "cart-outline" | "chart-box" | "chart-box-outline" | "check" | "check-circle" | "check-circle-outline" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "close" | "close-circle" | "close-circle-outline" | "cog" | "color-fill" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "filter" | "fullscreen" | "fullscreen-exit" | "group" | "image" | "image-album" | "image-album-outline" | "image-outline" | "info-outline" | "key" | "key-chain" | "key-variant" | "listbox-outline" | "loading" | "lock" | "lock-outline" | "logout" | "menu" | "menu-down" | "menu-left" | "menu-right" | "minus" | "minus-circle" | "minus-circle-outline" | "moon" | "open-in-new" | "pencil" | "people" | "piggy-bank-outline" | "plus" | "plus-circle" | "plus-circle-outline" | "qrcode-scan" | "refresh" | "save" | "search" | "spotlight" | "store-outline" | "sun" | "swap" | "swap-horizontal" | "swap-left" | "swap-right" | "system-theme" | "tag-outline" | "trash-can" | "trash-can-outline" | "upload" | "user-circle" | "zip-box" | undefined;
64
+ label: string | object;
65
+ type?: string | undefined;
66
+ renderer?: string | undefined;
67
+ action: (filters?: import('../../index.js').APISearchFilters | undefined) => void | Promise<void> | Promise<{
68
+ items: unknown[];
69
+ pagination: import('../../index.js').Pagination;
70
+ }>;
71
+ value?: undefined;
72
+ isGroupLabel?: undefined;
73
+ }): any;
74
+ }>;
75
+ export default _default;
76
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
77
+ type __VLS_TypePropsToRuntimeProps<T> = {
78
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
79
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
80
+ } : {
81
+ type: import('vue').PropType<T[K]>;
82
+ required: true;
83
+ };
84
+ };
85
+ type __VLS_WithDefaults<P, D> = {
86
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
87
+ default: D[K];
88
+ }> : P[K];
89
+ };
90
+ type __VLS_Prettify<T> = {
91
+ [K in keyof T]: T[K];
92
+ } & {};
93
+ type __VLS_WithTemplateSlots<T, S> = T & {
94
+ new (): {
95
+ $slots: S;
96
+ };
97
+ };
@@ -12,14 +12,13 @@ export type DropdownProps = {
12
12
  optionRoundnessClass?: string;
13
13
  wrapperRoundnessClass?: string;
14
14
  };
15
- interface SelectEvent {
15
+ export type SelectEvent = {
16
16
  index: number;
17
17
  option: InputSelectOption;
18
18
  hold: boolean;
19
- }
19
+ };
20
20
  export type DropdownEvents = {
21
21
  (e: "change", val: SelectEvent): void;
22
22
  (e: "end-reached"): void;
23
23
  (e: "created", val: ReturnType<typeof getCurrentInstance>): void;
24
24
  };
25
- export {};
@@ -1,4 +1,4 @@
1
- import { InputAvatarProps } from './types.ts';
1
+ import { InputAvatarProps } from './types.js';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<InputAvatarProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
4
  "update:model-value": (val: File) => void;
@@ -12,8 +12,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
12
12
  }>>> & {
13
13
  onConfirm?: (() => any) | undefined;
14
14
  }, {
15
- message: string;
16
15
  placement: "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start";
16
+ message: string;
17
17
  }, {}>, {
18
18
  default?(_: {
19
19
  onTogglePopover: any;
@@ -10,14 +10,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
10
10
  type: import("vue").PropType<"auto" | "static">;
11
11
  default: string;
12
12
  };
13
- placement: {
14
- type: import("vue").PropType<"top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start">;
15
- default: ElementPosition;
16
- };
17
13
  trigger: {
18
14
  type: import("vue").PropType<"click" | "hover">;
19
15
  default: ElementTrigger;
20
16
  };
17
+ placement: {
18
+ type: import("vue").PropType<"top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start">;
19
+ default: ElementPosition;
20
+ };
21
21
  slotWrapperClasses: {
22
22
  type: import("vue").PropType<string>;
23
23
  default: string;
@@ -34,14 +34,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
34
34
  type: import("vue").PropType<"auto" | "static">;
35
35
  default: string;
36
36
  };
37
- placement: {
38
- type: import("vue").PropType<"top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start">;
39
- default: ElementPosition;
40
- };
41
37
  trigger: {
42
38
  type: import("vue").PropType<"click" | "hover">;
43
39
  default: ElementTrigger;
44
40
  };
41
+ placement: {
42
+ type: import("vue").PropType<"top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start">;
43
+ default: ElementPosition;
44
+ };
45
45
  slotWrapperClasses: {
46
46
  type: import("vue").PropType<string>;
47
47
  default: string;
@@ -49,8 +49,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
49
49
  }>>, {
50
50
  disabled: boolean;
51
51
  width: "auto" | "static";
52
- placement: "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start";
53
52
  trigger: "click" | "hover";
53
+ placement: "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start";
54
54
  slotWrapperClasses: string;
55
55
  }, {}>, {
56
56
  default?(_: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caipira/tamandua",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "private": false,
5
5
  "description": "UI library for the Caipira ecosystem",
6
6
  "license": "GPL-3.0-only",
@@ -1,74 +0,0 @@
1
- import './Drawer.css';
2
- import { defineComponent as _, ref as y, onMounted as b, resolveComponent as v, openBlock as o, createElementBlock as t, withKeys as h, createVNode as i, createElementVNode as a, normalizeClass as c, renderSlot as l, toDisplayString as w, createCommentVNode as d } from "vue";
3
- import { _ as k } from "./Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js";
4
- import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const C = {
6
- key: 0,
7
- class: "flex justify-between items-center p-4 border-b border-color"
8
- }, $ = { key: 0 }, g = {
9
- key: 1,
10
- class: "inline-block text-base"
11
- }, D = { class: "flex flex-col flex-1 relative overflow-y-auto scrollbar" }, z = /* @__PURE__ */ _({
12
- name: "TDrawer",
13
- __name: "Drawer",
14
- props: {
15
- title: { default: "" },
16
- style: { default: () => ({
17
- footer: ""
18
- }) },
19
- direction: { default: "rtl" },
20
- showHeader: { type: Boolean, default: !0 }
21
- },
22
- emits: ["closed"],
23
- setup(f, { emit: m }) {
24
- const r = f, p = m, n = y(null), s = (e) => {
25
- e.stopPropagation(), p("closed");
26
- };
27
- return b(() => {
28
- n.value?.focus();
29
- }), (e, B) => {
30
- const u = v("t-icon");
31
- return o(), t("div", {
32
- class: "fixed inset-0 flex items-center z-10",
33
- tabindex: "0",
34
- ref_key: "modal",
35
- ref: n,
36
- onKeyup: h(s, ["esc"])
37
- }, [
38
- i(k, { onClick: s }),
39
- a("div", {
40
- class: c(["w-[38rem] absolute inset-y-0 z-20 flex flex-col bg-caipira-primary drawer", {
41
- "right-0 drop-shadow-lg": r.direction === "ltr",
42
- "left-0": r.direction === "rtl"
43
- }])
44
- }, [
45
- r.showHeader ? (o(), t("div", C, [
46
- e.$slots.header ? (o(), t("div", $, [
47
- l(e.$slots, "header", {}, void 0, !0)
48
- ])) : (o(), t("span", g, w(r.title), 1)),
49
- i(u, {
50
- icon: "close",
51
- role: "button",
52
- onClick: s,
53
- size: "sm"
54
- })
55
- ])) : d("", !0),
56
- a("div", D, [
57
- l(e.$slots, "default", {}, void 0, !0)
58
- ]),
59
- e.$slots.footer ? (o(), t("div", {
60
- key: 1,
61
- class: c(["p-4 border-t border-color", {
62
- [e.style.footer]: !0
63
- }])
64
- }, [
65
- l(e.$slots, "footer", {}, void 0, !0)
66
- ], 2)) : d("", !0)
67
- ], 2)
68
- ], 544);
69
- };
70
- }
71
- }), H = /* @__PURE__ */ x(z, [["__scopeId", "data-v-4b55ad69"]]);
72
- export {
73
- H as D
74
- };
@@ -1,18 +0,0 @@
1
- import { defineComponent as r, openBlock as l, createElementBlock as n, normalizeClass as a, toDisplayString as p } from "vue";
2
- const m = /* @__PURE__ */ r({
3
- name: "TGraphySubtitle",
4
- __name: "GraphySubtitle",
5
- props: {
6
- text: {},
7
- textColor: { default: "color-text" }
8
- },
9
- setup(t) {
10
- const e = t;
11
- return (o, s) => (l(), n("h2", {
12
- class: a(["text-2xl font-bold mr-2", [o.textColor]])
13
- }, p(e.text), 3));
14
- }
15
- });
16
- export {
17
- m as _
18
- };