@caipira/tamandua 0.0.91 → 0.0.93

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 (85) hide show
  1. package/dist/Avatar.js +2 -2
  2. package/dist/{Avatar.vue_vue_type_script_setup_true_lang-CAxLKAlD.js → Avatar.vue_vue_type_script_setup_true_lang-CnvI4bGL.js} +1 -1
  3. package/dist/Button.js +2 -2
  4. package/dist/{Button.vue_vue_type_script_setup_true_lang-Cr2j9uAI.js → Button.vue_vue_type_script_setup_true_lang-CmbPvjSg.js} +36 -34
  5. package/dist/Dropdown.js +2 -2
  6. package/dist/Dropdown.vue_vue_type_script_setup_true_lang-DtTBnNsn.js +179 -0
  7. package/dist/Form.js +2 -2
  8. package/dist/{Form.vue_vue_type_script_setup_true_lang-s3wmU1NZ.js → Form.vue_vue_type_script_setup_true_lang-Bd8NlDpG.js} +33 -27
  9. package/dist/FormItem.js +2 -2
  10. package/dist/FormItem.vue_vue_type_script_setup_true_lang-3M-bOZ8R.js +74 -0
  11. package/dist/GraphyPrice.js +2 -2
  12. package/dist/{GraphyPrice.vue_vue_type_script_setup_true_lang-Dxw3dcsW.js → GraphyPrice.vue_vue_type_script_setup_true_lang-Cr4zjIiS.js} +1 -1
  13. package/dist/Icon.js +2 -2
  14. package/dist/{Icon.vue_vue_type_script_setup_true_lang-DeZj2CXU.js → Icon.vue_vue_type_script_setup_true_lang-BuMQjBAy.js} +1 -1
  15. package/dist/InputCheckbox.js +2 -2
  16. package/dist/{InputCheckbox.vue_vue_type_style_index_0_lang-DqRzwkVN.js → InputCheckbox.vue_vue_type_style_index_0_lang-XU9rYa47.js} +14 -14
  17. package/dist/InputMultiplier.js +2 -2
  18. package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-C7tInheA.js +71 -0
  19. package/dist/InputPassword.js +2 -2
  20. package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-CYcJ-agy.js → InputPassword.vue_vue_type_script_setup_true_lang-Qeq0BBp3.js} +18 -17
  21. package/dist/InputRadio.js +2 -2
  22. package/dist/InputRadio.vue_vue_type_style_index_0_lang-DG-7xEeZ.js +35 -0
  23. package/dist/InputSelect.js +2 -2
  24. package/dist/InputSelect.vue_vue_type_script_setup_true_lang-uUjFwWIE.js +243 -0
  25. package/dist/InputText.js +2 -2
  26. package/dist/InputText.vue_vue_type_script_setup_true_lang-twigJ_WD.js +43 -0
  27. package/dist/Link.js +2 -2
  28. package/dist/{Link.vue_vue_type_script_setup_true_lang-CwkZkVVz.js → Link.vue_vue_type_script_setup_true_lang-0z-EeE3p.js} +1 -1
  29. package/dist/Popconfirm.js +2 -2
  30. package/dist/{Popconfirm.vue_vue_type_script_setup_true_lang-BIZGp2xy.js → Popconfirm.vue_vue_type_script_setup_true_lang-BDEqMoax.js} +1 -1
  31. package/dist/{Popover-7oD7AiXt.js → Popover-C3ovolxY.js} +1 -1
  32. package/dist/Popover.js +2 -2
  33. package/dist/Tag.js +2 -2
  34. package/dist/{Tag.vue_vue_type_script_setup_true_lang-CmhP0b0y.js → Tag.vue_vue_type_script_setup_true_lang-G3i5m3sB.js} +1 -1
  35. package/dist/Toast.js +2 -2
  36. package/dist/{Toast.vue_vue_type_script_setup_true_lang-By7Au8E3.js → Toast.vue_vue_type_script_setup_true_lang-BlfCFBHV.js} +1 -1
  37. package/dist/components.js +18 -18
  38. package/dist/enums.js +1 -1
  39. package/dist/{plugin-CLzytwhj.js → plugin-B2DiDUlP.js} +1 -1
  40. package/dist/{plugin-DXPEO1fb.js → plugin-B578b4C_.js} +1 -1
  41. package/dist/{plugin-DIj5ypE6.js → plugin-BemLz7kA.js} +1 -1
  42. package/dist/{plugin-s4eLZhyy.js → plugin-Bij2CJr7.js} +1 -1
  43. package/dist/{plugin-AGrPuw2y.js → plugin-BviXQKyF.js} +1 -1
  44. package/dist/{plugin-NrO_mAYp.js → plugin-CDu6of44.js} +1 -1
  45. package/dist/{plugin-lYDlOt8p.js → plugin-CQXEZDaa.js} +1 -1
  46. package/dist/{plugin-BUBXUbq8.js → plugin-CdZkyAp1.js} +1 -1
  47. package/dist/{plugin-D-WO1cMl.js → plugin-CnSU08rb.js} +1 -1
  48. package/dist/{plugin-b9_KKf-9.js → plugin-DArlmex8.js} +1 -1
  49. package/dist/{plugin-CzRCyET3.js → plugin-DKMiwQmN.js} +1 -1
  50. package/dist/{plugin-CBUyNiTn.js → plugin-DX5ICUyA.js} +1 -1
  51. package/dist/{plugin-B8k-Q9lw.js → plugin-DhHWk6sK.js} +1 -1
  52. package/dist/{plugin-BwA1VXdD.js → plugin-Dja0bljQ.js} +1 -1
  53. package/dist/{plugin-UbK5d4SN.js → plugin-ZJybqwxT.js} +1 -1
  54. package/dist/{plugin-Br-QOjhk.js → plugin-fh29h6vq.js} +1 -1
  55. package/dist/{plugin-CEsqY6D6.js → plugin-hAKUUhA-.js} +1 -1
  56. package/dist/{plugin-B7BtMlal.js → plugin-i0cgy8R3.js} +1 -1
  57. package/dist/{plugins-ilcR1VlL.js → plugins-Cf2JwB3G.js} +39 -36
  58. package/dist/plugins.js +103 -100
  59. package/dist/tamandua.js +1 -1
  60. package/dist/types/components/Button/Button.vue.d.ts +5 -5
  61. package/dist/types/components/Dropdown/Dropdown.vue.d.ts +4 -0
  62. package/dist/types/components/Dropdown/types.d.ts +2 -0
  63. package/dist/types/components/Form/types.d.ts +2 -0
  64. package/dist/types/components/FormItem/types.d.ts +0 -3
  65. package/dist/types/components/Icon/Icon.vue.d.ts +1 -1
  66. package/dist/types/components/Icon/types.d.ts +1 -1
  67. package/dist/types/components/InputMultiplier/InputMultiplier.vue.d.ts +4 -0
  68. package/dist/types/components/InputMultiplier/input-multiplier.story.d.ts +7 -0
  69. package/dist/types/components/InputMultiplier/types.d.ts +2 -0
  70. package/dist/types/components/InputSelect/InputSelect.story.d.ts +8 -0
  71. package/dist/types/components/InputSelect/InputSelect.vue.d.ts +6 -6
  72. package/dist/types/components/InputSelect/types.d.ts +2 -2
  73. package/dist/types/components/InputText/InputText.story.d.ts +22 -0
  74. package/dist/types/components/InputText/InputText.vue.d.ts +11 -0
  75. package/dist/types/components/InputText/types.d.ts +3 -0
  76. package/dist/types/enums/ui.d.ts +4 -0
  77. package/dist/ui-D5oXHNg_.js +14 -0
  78. package/package.json +1 -1
  79. package/dist/Dropdown.vue_vue_type_script_setup_true_lang-MuajPvzR.js +0 -156
  80. package/dist/FormItem.vue_vue_type_script_setup_true_lang-CInvGeMR.js +0 -71
  81. package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-BguqKGGe.js +0 -65
  82. package/dist/InputRadio.vue_vue_type_style_index_0_lang-DlTO78_z.js +0 -35
  83. package/dist/InputSelect.vue_vue_type_script_setup_true_lang-BRqdwhz4.js +0 -232
  84. package/dist/InputText.vue_vue_type_script_setup_true_lang-JLAlUE_2.js +0 -38
  85. package/dist/ui-CzOLy35H.js +0 -13
@@ -29,7 +29,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
29
29
  default: string;
30
30
  };
31
31
  size: {
32
- type: import("vue").PropType<"" | "xs" | "sm" | "default" | "lg" | "xl">;
32
+ type: import("vue").PropType<number | "" | "xs" | "sm" | "default" | "lg" | "xl">;
33
33
  default: ElementSize;
34
34
  };
35
35
  }>>, {
@@ -44,12 +44,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
44
44
  default: string;
45
45
  };
46
46
  size: {
47
- type: import("vue").PropType<"" | "xs" | "sm" | "default" | "lg" | "xl">;
47
+ type: import("vue").PropType<number | "" | "xs" | "sm" | "default" | "lg" | "xl">;
48
48
  default: ElementSize;
49
49
  };
50
50
  }>>, {
51
51
  role: string;
52
- size: `${ElementSize}`;
52
+ size: `${ElementSize}` | number;
53
53
  }, true, {}, {}, {
54
54
  P: {};
55
55
  B: {};
@@ -67,14 +67,14 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
67
67
  default: string;
68
68
  };
69
69
  size: {
70
- type: import("vue").PropType<"" | "xs" | "sm" | "default" | "lg" | "xl">;
70
+ type: import("vue").PropType<number | "" | "xs" | "sm" | "default" | "lg" | "xl">;
71
71
  default: ElementSize;
72
72
  };
73
73
  }>>, {
74
74
  reference: import("vue").Ref<HTMLElement | null>;
75
75
  }, {}, {}, {}, {
76
76
  role: string;
77
- size: `${ElementSize}`;
77
+ size: `${ElementSize}` | number;
78
78
  }> | null>;
79
79
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
80
80
  upload: (val: FileList) => void;
@@ -1,3 +1,4 @@
1
+ import { FormControlSize } from '../../enums/ui.js';
1
2
  import { DropdownProps } from './types.js';
2
3
  import { InputSelectOption } from '../InputSelect/types.js';
3
4
 
@@ -32,6 +33,7 @@ declare function __VLS_template(): {
32
33
  }): any;
33
34
  };
34
35
  declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DropdownProps>, {
36
+ size: FormControlSize;
35
37
  items: () => never[];
36
38
  loading: boolean;
37
39
  multiple: boolean;
@@ -49,6 +51,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
49
51
  "end-reached": () => void;
50
52
  created: (val: import("vue").ComponentInternalInstance | null) => void;
51
53
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DropdownProps>, {
54
+ size: FormControlSize;
52
55
  items: () => never[];
53
56
  loading: boolean;
54
57
  multiple: boolean;
@@ -64,6 +67,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
64
67
  onCreated?: ((val: import("vue").ComponentInternalInstance | null) => any) | undefined;
65
68
  }, {
66
69
  loading: boolean;
70
+ size: `${FormControlSize}`;
67
71
  multiple: boolean;
68
72
  items: InputSelectOption[];
69
73
  isVisible: boolean;
@@ -1,7 +1,9 @@
1
+ import { FormControlSize } from '../../enums/ui.js';
1
2
  import { getCurrentInstance } from 'vue';
2
3
  import { InputSelectOption } from '../InputSelect/types.js';
3
4
 
4
5
  export type DropdownProps = {
6
+ size?: `${FormControlSize}`;
5
7
  items?: InputSelectOption[];
6
8
  loading?: boolean;
7
9
  multiple?: boolean;
@@ -1,4 +1,5 @@
1
1
  import { FormSubmissionFormat } from '../../enums/form.js';
2
+ import { FormControlSize } from '../../enums/ui.js';
2
3
  import { ButtonProps } from '../Button/types.js';
3
4
  import { FormSchema, FormInstance, ValidationResult } from '../../types/form.js';
4
5
 
@@ -7,6 +8,7 @@ export type FormStyle = {
7
8
  };
8
9
  export type FormLayout = "horizontal" | "vertical" | "inline";
9
10
  export type FormProps<T extends FormSchema> = {
11
+ size: `${FormControlSize}`;
10
12
  schema?: T;
11
13
  layout?: FormLayout;
12
14
  formStyle?: FormStyle;
@@ -1,7 +1,4 @@
1
- import { FormLayout } from '../Form/types.js';
2
-
3
1
  export type FormItemProps = {
4
2
  label?: string;
5
3
  rules?: any;
6
- layout?: FormLayout;
7
4
  };
@@ -11,7 +11,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
11
11
  size: ElementSize;
12
12
  }>>>, {
13
13
  role: string;
14
- size: `${ElementSize}`;
14
+ size: `${ElementSize}` | number;
15
15
  }, {}>;
16
16
  export default _default;
17
17
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -3,5 +3,5 @@ import { Icon, ElementSize } from '../../enums/ui.js';
3
3
  export type IconProps = {
4
4
  icon: `${Icon}` | number;
5
5
  role?: string;
6
- size?: `${ElementSize}`;
6
+ size?: `${ElementSize}` | number;
7
7
  };
@@ -1,18 +1,22 @@
1
+ import { FormControlSize } from '../../enums/ui.js';
1
2
  import { InputMultiplierProps } from './types.js';
2
3
 
3
4
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputMultiplierProps>, {
5
+ size: FormControlSize;
4
6
  component: string;
5
7
  listeners: () => {};
6
8
  inputProps: () => {};
7
9
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
10
  "update:model-value": (value: any[]) => void;
9
11
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputMultiplierProps>, {
12
+ size: FormControlSize;
10
13
  component: string;
11
14
  listeners: () => {};
12
15
  inputProps: () => {};
13
16
  }>>> & {
14
17
  "onUpdate:model-value"?: ((value: any[]) => any) | undefined;
15
18
  }, {
19
+ size: `${FormControlSize}`;
16
20
  component: import("vue").Component | "t-input-text" | "t-input-phone";
17
21
  inputProps: any;
18
22
  listeners: {
@@ -1,10 +1,17 @@
1
+ import { FormControlSize } from '../../enums/ui.js';
2
+
1
3
  declare const _default: {
2
4
  title: string;
3
5
  args: {
6
+ size: FormControlSize;
4
7
  label: string;
5
8
  component: string;
6
9
  };
7
10
  argTypes: {
11
+ size: {
12
+ options: FormControlSize[];
13
+ control: string;
14
+ };
8
15
  component: {
9
16
  options: string[];
10
17
  control: string;
@@ -1,7 +1,9 @@
1
+ import { FormControlSize } from '../../enums/ui.js';
1
2
  import { Component } from 'vue';
2
3
 
3
4
  type ComponentType = "t-input-text" | "t-input-phone" | Component;
4
5
  export type InputMultiplierProps = {
6
+ size?: `${FormControlSize}`;
5
7
  component?: ComponentType;
6
8
  inputProps?: any;
7
9
  listeners?: {
@@ -1,3 +1,4 @@
1
+ import { FormControlSize } from '../../enums/ui.js';
1
2
  import { InputSelectOption } from './types.js';
2
3
  import { APISearchFilters } from '../../types/api.js';
3
4
  import { Pagination } from '../../types/ui.js';
@@ -5,8 +6,15 @@ import { Pagination } from '../../types/ui.js';
5
6
  declare const _default: {
6
7
  title: string;
7
8
  args: {
9
+ size: FormControlSize;
8
10
  placeholder: string;
9
11
  };
12
+ argTypes: {
13
+ size: {
14
+ options: FormControlSize[];
15
+ control: string;
16
+ };
17
+ };
10
18
  };
11
19
  export default _default;
12
20
  export declare const Select: (args: any) => {
@@ -1,4 +1,4 @@
1
- import { ElementSize, ElementPosition } from '../../enums/ui.js';
1
+ import { FormControlSize, ElementPosition } from '../../enums/ui.js';
2
2
  import { InputSelectValue, InputSelectOption, SelectValuePrimitives } from './types.js';
3
3
  import { APISearchFilters } from '../../types/api.js';
4
4
  import { Pagination } from '../../types/ui.js';
@@ -41,8 +41,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
41
41
  default: (input: string, option: InputSelectOption) => boolean;
42
42
  };
43
43
  size: {
44
- type: import("vue").PropType<ElementSize>;
45
- default: ElementSize;
44
+ type: import("vue").PropType<FormControlSize>;
45
+ default: FormControlSize;
46
46
  };
47
47
  disabled: {
48
48
  type: import("vue").PropType<boolean>;
@@ -105,8 +105,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
105
105
  default: (input: string, option: InputSelectOption) => boolean;
106
106
  };
107
107
  size: {
108
- type: import("vue").PropType<ElementSize>;
109
- default: ElementSize;
108
+ type: import("vue").PropType<FormControlSize>;
109
+ default: FormControlSize;
110
110
  };
111
111
  disabled: {
112
112
  type: import("vue").PropType<boolean>;
@@ -164,7 +164,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
164
164
  "onUpdate:model-value"?: ((val: any) => any) | undefined;
165
165
  }, {
166
166
  filter: (input: string, option: InputSelectOption) => boolean;
167
- size: ElementSize;
167
+ size: FormControlSize;
168
168
  multiple: boolean;
169
169
  options: InputSelectOption[];
170
170
  tooltip: string;
@@ -1,4 +1,4 @@
1
- import { Icon, ElementSize, ElementPosition } from '../../enums/ui.js';
1
+ import { Icon, FormControlSize, ElementPosition } from '../../enums/ui.js';
2
2
  import { APISearchFilters } from '../../types/api.js';
3
3
  import { Pagination } from '../../types/ui.js';
4
4
 
@@ -35,7 +35,7 @@ export type InputSelectOption = {
35
35
  isGroupLabel?: never;
36
36
  });
37
37
  export type InputSelectProps = {
38
- size?: ElementSize;
38
+ size?: FormControlSize;
39
39
  options?: InputSelectOption[];
40
40
  /** Mapper to convert search results to InputSelectOption */
41
41
  mapper?: (i: any) => InputSelectOption;
@@ -0,0 +1,22 @@
1
+ import { FormControlSize } from '../../enums/ui.js';
2
+
3
+ declare const _default: {
4
+ title: string;
5
+ args: {
6
+ size: FormControlSize;
7
+ model: string;
8
+ };
9
+ argTypes: {
10
+ size: {
11
+ options: FormControlSize[];
12
+ control: string;
13
+ };
14
+ };
15
+ };
16
+ export default _default;
17
+ export declare const Text: (args: any) => {
18
+ setup(): {
19
+ args: any;
20
+ };
21
+ template: string;
22
+ };
@@ -1,5 +1,11 @@
1
+ import { FormControlSize } from '../../enums/ui.js';
2
+
1
3
  declare const _default: import('vue').DefineComponent<{
2
4
  modelValue: import("vue").PropType<any>;
5
+ size: {
6
+ type: import("vue").PropType<"sm" | "default">;
7
+ default: FormControlSize;
8
+ };
3
9
  type: {
4
10
  type: import("vue").PropType<string>;
5
11
  default: string;
@@ -24,6 +30,10 @@ declare const _default: import('vue').DefineComponent<{
24
30
  "keyup.enter": (val: any) => void;
25
31
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
26
32
  modelValue: import("vue").PropType<any>;
33
+ size: {
34
+ type: import("vue").PropType<"sm" | "default">;
35
+ default: FormControlSize;
36
+ };
27
37
  type: {
28
38
  type: import("vue").PropType<string>;
29
39
  default: string;
@@ -47,6 +57,7 @@ declare const _default: import('vue').DefineComponent<{
47
57
  }>> & {
48
58
  "onKeyup.enter"?: ((val: any) => any) | undefined;
49
59
  }, {
60
+ size: `${FormControlSize}`;
50
61
  type: string;
51
62
  disabled: boolean;
52
63
  disableStyle: boolean;
@@ -1,4 +1,7 @@
1
+ import { FormControlSize } from '../../enums/ui.js';
2
+
1
3
  export type InputTextProps = {
4
+ size?: `${FormControlSize}`;
2
5
  type?: string;
3
6
  placeholder?: string;
4
7
  autocomplete?: string;
@@ -30,6 +30,10 @@ export declare enum ElementPosition {
30
30
  LEFT = "left",
31
31
  LEFT_START = "left-start"
32
32
  }
33
+ export declare enum FormControlSize {
34
+ Small = "sm",
35
+ Default = "default"
36
+ }
33
37
  export declare enum ToastVariant {
34
38
  DEFAULT = "default",
35
39
  PRIMARY = "primary",
@@ -0,0 +1,14 @@
1
+ var l = /* @__PURE__ */ ((e) => (e.Unset = "", e.ExtraSmall = "xs", e.Small = "sm", e.Default = "default", e.Large = "lg", e.ExtraLarge = "xl", e))(l || {}), t = /* @__PURE__ */ ((e) => (e.Unset = "", e.Square = "square", e.Rounded = "rounded", e.Circle = "circle", e))(t || {}), u = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.HOVER = "hover", e))(u || {}), i = /* @__PURE__ */ ((e) => (e.TOP_START = "top-start", e.TOP = "top", e.TOP_END = "top-end", e.RIGHT_START = "right-start", e.RIGHT = "right", e.RIGHT_END = "right-end", e.BOTTOM_END = "bottom-end", e.BOTTOM = "bottom", e.BOTTOM_START = "bottom-start", e.LEFT_END = "left-end", e.LEFT = "left", e.LEFT_START = "left-start", e))(i || {}), r = /* @__PURE__ */ ((e) => (e.Small = "sm", e.Default = "default", e))(r || {}), a = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PRIMARY = "primary", e.SUCCESS = "success", e.DANGER = "danger", e.WARNING = "warning", e))(a || {}), s = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PRIMARY = "primary", e.SUCCESS = "success", e.DANGER = "danger", e.WARNING = "warning", e.LINK = "link", e.TRANSPARENT = "transparent", e))(s || {}), p = /* @__PURE__ */ ((e) => (e.BUTTON = "button", e.SUBMIT = "submit", e.FILE = "file", e))(p || {}), o = /* @__PURE__ */ ((e) => (e.Default = "default", e.Router = "router", e))(o || {}), d = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.INCREASE = "increase", e.DECREASE = "decrease", e.AUTO = "auto", e))(d || {}), O = /* @__PURE__ */ ((e) => (e.Account = "account", e.AccountBox = "account-box", e.AccountBoxOutline = "account-box-outline", e.AccountCircle = "account-circle", e.AccountCircleOutline = "account-circle-outline", e.AccountGroup = "account-group", e.AccountGroupOutline = "account-group-outline", e.AccountMultiple = "account-multiple", e.AccountMultipleOutline = "account-multiple-outline", e.AccountOutline = "account-outline", e.AlertOctagon = "alert-octagon", e.AlertOctagonOutline = "alert-octagon-outline", e.Archive = "archive", e.ArchiveOutline = "archive-outline", e.ArrowLeft = "arrow-left", e.ArrowRight = "arrow-right", e.Bank = "bank", e.BankOutline = "bank-outline", e.BookAlphabet = "book-alphabet", e.BookMultiple = "book-multiple", e.BookMultipleOutline = "book-multiple-outline", e.Bookshelf = "bookshelf", e.Camera = "camera", e.CardsOutline = "cards-outline", e.CardsVariant = "cards-variant", e.CartOutline = "cart-outline", e.ChartBox = "chart-box", e.ChartBoxOutline = "chart-box-outline", e.Check = "check", e.CheckCircle = "check-circle", e.CheckCircleOutline = "check-circle-outline", e.ChevronDown = "chevron-down", e.ChevronLeft = "chevron-left", e.ChevronRight = "chevron-right", e.ChevronUp = "chevron-up", e.Circle = "circle", e.Clock = "clock", e.ClockFast = "clock-fast", e.ClockOutline = "clock-outline", e.Close = "close", e.CloseCircle = "close-circle", e.CloseCircleOutline = "close-circle-outline", e.Cog = "cog", e.Contacts = "contacts", e.ContactsOutline = "contacts-outline", e.Copy = "copy", e.CreditCard = "credit-card", e.CreditCardPlus = "credit-card-plus", e.Currency = "currency", e.Database = "database", e.DotsGrid = "dots-grid", e.DotsHorizontal = "dots-horizontal", e.DotsVertical = "dots-vertical", e.EmailOpenOutline = "email-open-outline", e.EmailOutline = "email-outline", e.Eye = "eye", e.EyeOff = "eye-off", e.FIleDocumentPlusOutline = "file-document-plus-outline", e.Filmstrip = "filmstrip", e.Filter = "filter", e.Fullscreen = "fullscreen", e.FullscreenExit = "fullscreen-exit", e.Group = "group", e.Home = "home", e.HomeOutline = "home-outline", e.Image = "image", e.ImageAlbum = "image-album", e.ImageAlbumOutline = "image-album-outline", e.ImageOutline = "image-outline", e.InfoOutline = "info-outline", e.Key = "key", e.KeyChain = "key-chain", e.KeyVariant = "key-variant", e.ListboxOutline = "listbox-outline", e.Loading = "loading", e.Lock = "lock", e.LockOutline = "lock-outline", e.Logout = "logout", e.Menu = "menu", e.MenuDown = "menu-down", e.MenuLeft = "menu-left", e.MenuRight = "menu-right", e.Minus = "minus", e.MinusCircle = "minus-circle", e.MinusCircleOutline = "minus-circle-outline", e.Moon = "moon", e.MovieOpen = "movie-open", e.MovieOpenOutline = "movie-open-outline", e.OpenInNew = "open-in-new", e.Pause = "pause", e.PauseCircle = "pause-circle", e.Pencil = "pencil", e.PiggyBankOutline = "piggy-bank-outline", e.Play = "play", e.PlayBox = "play-box", e.PlayBoxEditOutline = "play-box-edit-outline", e.PlayBoxOutline = "play-box-outline", e.PlayCircle = "play-circle", e.PlaylistPlay = "playlist-play", e.Plus = "plus", e.PlusCircle = "plus-circle", e.PlusCircleOutline = "plus-circle-outline", e.ProgressClock = "progress-clock", e.QrcodeScan = "qrcode-scan", e.Refresh = "refresh", e.Save = "save", e.Search = "search", e.Shuffle = "shuffle", e.ShuffleDisabled = "shuffle-disabled", e.ShuffleVariant = "shuffle-variant", e.SkipBackward = "skip-backward", e.SkipForward = "skip-forward", e.SkipNext = "skip-next", e.SkipPrevious = "skip-previous", e.Spotlight = "spotlight", e.Stop = "stop", e.Store = "store", e.StoreOutline = "store-outline", e.Sun = "sun", e.Swap = "swap", e.SwapHorizontal = "swap-horizontal", e.SwapLeft = "swap-left", e.SwapRight = "swap-right", e.SystemTheme = "system-theme", e.TagOutline = "tag-outline", e.Text = "text", e.TextBox = "text-box", e.TextBoxMultiple = "text-box-multiple", e.TextBoxMultipleOutline = "text-box-multiple-outline", e.TextBoxOutline = "text-box-outline", e.TextLong = "text-long", e.TimerOutline = "timer-outline", e.TimerRefreshOutline = "timer-refresh-outline", e.TrashCan = "trash-can", e.TrashCanOutline = "trash-can-outline", e.Ungroup = "ungroup", e.Upload = "upload", e.UploadBoxOutline = "upload-box-outline", e.UploadMultipleOutline = "upload-multiple-outline", e.UploadOutline = "upload-outline", e.Video = "video", e.VideoOutline = "video-outline", e.Web = "web", e.ZipBox = "zip-box", e))(O || {});
2
+ export {
3
+ s as B,
4
+ l as E,
5
+ r as F,
6
+ d as G,
7
+ O as I,
8
+ o as L,
9
+ a as T,
10
+ i as a,
11
+ t as b,
12
+ p as c,
13
+ u as d
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caipira/tamandua",
3
- "version": "0.0.91",
3
+ "version": "0.0.93",
4
4
  "private": false,
5
5
  "description": "UI library for the Caipira ecosystem",
6
6
  "license": "GPL-3.0-only",
@@ -1,156 +0,0 @@
1
- import { defineComponent as T, ref as w, resolveComponent as V, openBlock as l, createElementBlock as a, normalizeClass as u, createVNode as z, Fragment as R, renderList as K, toDisplayString as P, withKeys as A, renderSlot as E, normalizeProps as G, mergeProps as $, createBlock as I, createCommentVNode as O, createTextVNode as F, createElementVNode as U } from "vue";
2
- const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected", "onKeydown", "onClick"], J = {
3
- key: 1,
4
- class: "inline-flex items-center select-none input-text-color"
5
- }, W = /* @__PURE__ */ T({
6
- name: "TDropdown",
7
- __name: "Dropdown",
8
- props: {
9
- items: { default: () => [] },
10
- loading: { type: Boolean, default: !1 },
11
- multiple: { type: Boolean, default: !1 },
12
- isVisible: { type: Boolean, default: !1 },
13
- optionMarginClass: { default: "" },
14
- optionPaddingClass: { default: "py-2 px-2" },
15
- wrapperPaddingClass: { default: "" },
16
- optionRoundnessClass: { default: "input-roundness" },
17
- wrapperRoundnessClass: { default: "input-roundness" }
18
- },
19
- emits: ["change", "end-reached", "created"],
20
- setup(H, { expose: S, emit: B }) {
21
- const s = H, b = B, i = w(-1), v = w(null), d = w([]), f = w("keyboard"), y = (o = i.value, t = s.items[o], n = void 0) => {
22
- n?.stopPropagation(), b("change", {
23
- index: o,
24
- option: t,
25
- hold: n?.ctrlKey ?? !1
26
- }), t.action && t.action();
27
- }, D = (o) => {
28
- if (!s.isVisible)
29
- return !1;
30
- switch (o.preventDefault(), f.value = "keyboard", o.key) {
31
- case "ArrowUp":
32
- case "ArrowDown":
33
- return x(o);
34
- case "Enter":
35
- return y();
36
- }
37
- }, L = () => {
38
- const o = v.value;
39
- o.scrollTop = 0;
40
- }, x = (o) => {
41
- const t = o.key === "ArrowDown", n = s.items.length;
42
- let e = i.value;
43
- const r = () => s.items[e] ? "isGroupLabel" in s.items[e] && s.items[e].isGroupLabel : !1, p = () => {
44
- e === n - 1 ? e = 0 : e++;
45
- }, N = () => {
46
- e === 0 ? e = n - 1 : e--;
47
- };
48
- if (t)
49
- do
50
- p();
51
- while (r());
52
- else
53
- do
54
- N();
55
- while (r());
56
- e > -1 && e < n && (i.value = e);
57
- const C = v.value, k = d.value[i.value], m = k.offsetTop, g = k.offsetHeight, _ = C.offsetHeight, c = C.scrollTop;
58
- let h = 0;
59
- if (k.focus(), m === 0 || c === 0)
60
- h = m - _ + g;
61
- else if (t && m + g > _ + c)
62
- h = c + g;
63
- else if (!t && m < c)
64
- h = c - g;
65
- else
66
- return !0;
67
- return C.scroll({ top: h }), !0;
68
- }, M = (o) => {
69
- const t = o.target, n = d.value[0];
70
- !t || !n || t.scrollTop + t.clientHeight + n.offsetHeight >= t.scrollHeight && b("end-reached");
71
- };
72
- return S({ move: x, resetScroll: L }), (o, t) => {
73
- const n = V("t-icon");
74
- return l(), a("ul", {
75
- ref_key: "listRef",
76
- ref: v,
77
- role: "listbox",
78
- class: u(["text-left max-h-60 min-w-[8rem] z-10 overflow-y-auto scrollbar select-none floatable w-full", [s.wrapperRoundnessClass, s.wrapperPaddingClass]]),
79
- onScrollend: M,
80
- onMousemove: t[0] || (t[0] = () => f.value = "mouse"),
81
- onKeydown: D
82
- }, [
83
- s.loading ? (l(), a("li", {
84
- key: 0,
85
- role: "option",
86
- "aria-disabled": "true",
87
- class: u(["whitespace-nowrap inline-flex items-center", [
88
- s.optionPaddingClass,
89
- s.optionMarginClass,
90
- s.optionRoundnessClass
91
- ]])
92
- }, [
93
- z(n, {
94
- size: "sm",
95
- class: "w-6 h-6 animate-spin mr-3",
96
- icon: "loading"
97
- }),
98
- j
99
- ], 2)) : o.items.length === 0 ? (l(), a("li", {
100
- key: 1,
101
- role: "option",
102
- "aria-disabled": "true",
103
- class: u(["whitespace-nowrap text-gray-400", [
104
- s.optionPaddingClass,
105
- s.optionMarginClass,
106
- s.optionRoundnessClass
107
- ]])
108
- }, " Nothing here ", 2)) : (l(!0), a(R, { key: 2 }, K(o.items, (e, r) => (l(), a(R, {
109
- key: e?.isGroupLabel ? r : e.value
110
- }, [
111
- e.isGroupLabel ? (l(), a("li", {
112
- key: 0,
113
- class: u(["text-xs font-bold tracking-wider text-neutral-600", [
114
- s.optionPaddingClass,
115
- s.optionMarginClass,
116
- s.optionRoundnessClass
117
- ]]),
118
- ref_for: !0,
119
- ref_key: "itemRefs",
120
- ref: d
121
- }, P(e.label), 3)) : (l(), a("li", {
122
- key: 1,
123
- class: u([{
124
- "bg-[var(--hover-color)]": r === i.value && f.value === "keyboard",
125
- "hover:bg-[var(--hover-color)]": f.value === "mouse",
126
- [s.optionMarginClass]: !0,
127
- [s.optionPaddingClass]: !0,
128
- [s.optionRoundnessClass]: !0
129
- }, "flex text-base cursor-pointer whitespace-nowrap items-center focus-visible:outline-hidden"]),
130
- role: "option",
131
- ref_for: !0,
132
- ref_key: "itemRefs",
133
- ref: d,
134
- tabindex: 0,
135
- "aria-selected": r === i.value,
136
- onKeydown: A((p) => y(r, e), ["enter"]),
137
- onClick: (p) => y(r, e, p)
138
- }, [
139
- o.$slots.default ? E(o.$slots, "default", G($({ key: 0 }, e))) : (l(), a("div", J, [
140
- e.icon ? (l(), I(n, {
141
- key: 0,
142
- icon: e.icon,
143
- class: "mr-2",
144
- size: "xs"
145
- }, null, 8, ["icon"])) : O("", !0),
146
- F(" " + P(e.label), 1)
147
- ]))
148
- ], 42, q))
149
- ], 64))), 128))
150
- ], 34);
151
- };
152
- }
153
- });
154
- export {
155
- W as _
156
- };
@@ -1,71 +0,0 @@
1
- import { defineComponent as b, useSlots as x, inject as g, computed as u, resolveComponent as k, openBlock as l, createElementBlock as a, createElementVNode as i, normalizeClass as s, createBlock as z, unref as c, withCtx as C, renderSlot as f, Fragment as S, renderList as B, toDisplayString as F, createCommentVNode as I } from "vue";
2
- const w = { class: "w-full" }, E = {
3
- key: 0,
4
- class: "float-right"
5
- }, T = /* @__PURE__ */ b({
6
- name: "TFormItem",
7
- __name: "FormItem",
8
- props: {
9
- label: {},
10
- rules: {},
11
- layout: {}
12
- },
13
- setup(d) {
14
- const o = d, n = x(), m = [], e = g("formStyle", {
15
- label: "",
16
- input: "",
17
- layout: "horizontal"
18
- }), y = u(() => {
19
- if (!n || !n.default)
20
- return !1;
21
- const t = n?.default();
22
- return t ? t[0].type.name : !1;
23
- }), p = u(() => y.value === "TInputMultiplier"), r = u(() => o.layout ? o.layout : e.layout ? e.layout : "horizontal");
24
- return (t, M) => {
25
- const h = k("t-graphy-label");
26
- return l(), a("div", w, [
27
- i("div", {
28
- class: s(["flex gap-2 my-5", {
29
- "flex-col": r.value === "vertical",
30
- "items-center": r.value === "horizontal" && !p.value,
31
- "items-start": p.value
32
- }])
33
- }, [
34
- o.label ? (l(), z(h, {
35
- key: 0,
36
- text: o.label,
37
- class: s({
38
- [c(e).label]: !0,
39
- "text-right": r.value === "horizontal"
40
- })
41
- }, {
42
- default: C(() => [
43
- f(t.$slots, "label")
44
- ]),
45
- _: 3
46
- }, 8, ["text", "class"])) : (l(), a("div", {
47
- key: 1,
48
- class: s({
49
- [c(e).label]: !0,
50
- "text-right": r.value === "horizontal"
51
- })
52
- }, null, 2)),
53
- i("div", {
54
- class: s({ [c(e).input]: !0 })
55
- }, [
56
- f(t.$slots, "default")
57
- ], 2)
58
- ], 2),
59
- m ? (l(), a("div", E, [
60
- (l(), a(S, null, B(m, (v, _) => i("span", {
61
- class: "text-sm text-red-600",
62
- key: _
63
- }, F(v), 1)), 64))
64
- ])) : I("", !0)
65
- ]);
66
- };
67
- }
68
- });
69
- export {
70
- T as _
71
- };
@@ -1,65 +0,0 @@
1
- import { defineComponent as f, ref as V, watch as r, resolveComponent as k, openBlock as o, createElementBlock as a, createVNode as m, Fragment as C, renderList as y, createBlock as I, resolveDynamicComponent as b, mergeProps as h, toHandlers as B } from "vue";
2
- const M = /* @__PURE__ */ f({
3
- name: "TInputMultiplier",
4
- __name: "InputMultiplier",
5
- props: {
6
- component: { default: "t-input-text" },
7
- inputProps: { default: () => ({}) },
8
- listeners: { default: () => ({}) },
9
- modelValue: {}
10
- },
11
- emits: ["update:model-value"],
12
- setup(c, { emit: p }) {
13
- const l = c, i = p, t = V([]), d = () => {
14
- t.value.push("");
15
- }, v = (e) => {
16
- t.value = e;
17
- }, _ = (e) => {
18
- t.value.splice(e, 1);
19
- };
20
- return r(
21
- t,
22
- (e) => {
23
- i("update:model-value", e);
24
- },
25
- { deep: !0 }
26
- ), r(
27
- () => l.modelValue,
28
- (e) => {
29
- v(e ?? []);
30
- },
31
- { immediate: !0 }
32
- ), (e, P) => {
33
- const u = k("t-button");
34
- return o(), a("div", null, [
35
- m(u, {
36
- label: "Add",
37
- variant: "primary",
38
- "is-outline": !0,
39
- icon: "plus",
40
- size: "sm",
41
- onClick: d
42
- }),
43
- (o(!0), a(C, null, y(t.value, (g, n) => (o(), a("div", {
44
- key: n,
45
- class: "flex items-center justify-start mt-2"
46
- }, [
47
- (o(), I(b(l.component), h(l.inputProps, B(l.listeners), {
48
- modelValue: t.value[n],
49
- "onUpdate:modelValue": (s) => t.value[n] = s,
50
- class: "my-1"
51
- }), null, 16, ["modelValue", "onUpdate:modelValue"])),
52
- m(u, {
53
- variant: "transparent",
54
- icon: "close",
55
- class: "ml-0.5",
56
- onClick: (s) => _(n)
57
- }, null, 8, ["onClick"])
58
- ]))), 128))
59
- ]);
60
- };
61
- }
62
- });
63
- export {
64
- M as _
65
- };