@caipira/tamandua 0.0.61 → 0.0.63

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 (101) hide show
  1. package/dist/{Button-uTiKL1_J.js → Button-BThdMs5-.js} +3 -2
  2. package/dist/Button.css +1 -1
  3. package/dist/Button.js +2 -2
  4. package/dist/ChartTreemap.js +2 -2
  5. package/dist/{ChartTreemap.vue_vue_type_script_setup_true_lang-DKaI62CD.js → ChartTreemap.vue_vue_type_script_setup_true_lang-CLi_IXfP.js} +9 -9
  6. package/dist/Dropdown.js +2 -2
  7. package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-pjG__bX2.js → Dropdown.vue_vue_type_script_setup_true_lang-ByO3ZI8p.js} +28 -28
  8. package/dist/GraphyLabel.js +2 -2
  9. package/dist/GraphyLabel.vue_vue_type_script_setup_true_lang-DIKuG0Po.js +18 -0
  10. package/dist/InputCheckbox.js +2 -2
  11. package/dist/InputCheckbox.vue_vue_type_style_index_0_lang-BOY41cD-.js +58 -0
  12. package/dist/InputDate.js +2 -2
  13. package/dist/{InputDate.vue_vue_type_script_setup_true_lang-mrB_0-J7.js → InputDate.vue_vue_type_script_setup_true_lang-UQywr42W.js} +1 -1
  14. package/dist/InputPassword.js +2 -2
  15. package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-CPDcQb5I.js → InputPassword.vue_vue_type_script_setup_true_lang-BMChy2_E.js} +32 -32
  16. package/dist/InputPrice.js +2 -2
  17. package/dist/{InputPrice.vue_vue_type_script_setup_true_lang-C2wDVwnm.js → InputPrice.vue_vue_type_script_setup_true_lang-R3kHhxN2.js} +20 -20
  18. package/dist/InputSelect.js +2 -2
  19. package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-DgMRjecc.js → InputSelect.vue_vue_type_script_setup_true_lang-W2S_TcOu.js} +79 -78
  20. package/dist/InputTextarea.js +2 -2
  21. package/dist/{InputTextarea.vue_vue_type_script_setup_true_lang-DRo5eIw4.js → InputTextarea.vue_vue_type_script_setup_true_lang-q9T4fINI.js} +1 -1
  22. package/dist/Modal.js +2 -2
  23. package/dist/{Modal.vue_vue_type_script_setup_true_lang-CEaX1svl.js → Modal.vue_vue_type_script_setup_true_lang-DiUI27HX.js} +1 -1
  24. package/dist/Pagination.js +2 -2
  25. package/dist/{Pagination.vue_vue_type_script_setup_true_lang-Bgc3FPMU.js → Pagination.vue_vue_type_script_setup_true_lang-BNeFZWgA.js} +1 -1
  26. package/dist/Popconfirm.js +2 -2
  27. package/dist/{Popconfirm.vue_vue_type_script_setup_true_lang-CQJc0gL_.js → Popconfirm.vue_vue_type_script_setup_true_lang-CgWeJEGu.js} +2 -2
  28. package/dist/{ProgressLine-bKh0terH.js → ProgressLine-CTS0VOAI.js} +8 -8
  29. package/dist/ProgressLine.css +1 -1
  30. package/dist/ProgressLine.js +2 -2
  31. package/dist/SensitiveInfo.js +2 -2
  32. package/dist/{SensitiveInfo.vue_vue_type_script_setup_true_lang-lCdRDxvZ.js → SensitiveInfo.vue_vue_type_script_setup_true_lang-D288W5VF.js} +1 -1
  33. package/dist/Skeleton.js +2 -2
  34. package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-BZItfVoN.js → Skeleton.vue_vue_type_script_setup_true_lang-WahY1vGW.js} +3 -3
  35. package/dist/Tab.js +2 -2
  36. package/dist/{Tab.vue_vue_type_script_setup_true_lang-Bk9igf63.js → Tab.vue_vue_type_script_setup_true_lang-6bgS8FOw.js} +6 -6
  37. package/dist/{Table-C0Sr_Lfm.js → Table-DAdBSj3C.js} +25 -25
  38. package/dist/Table.css +1 -1
  39. package/dist/Table.js +2 -2
  40. package/dist/Tag.js +2 -2
  41. package/dist/{Tag.vue_vue_type_script_setup_true_lang-D7gxjn91.js → Tag.vue_vue_type_script_setup_true_lang-CkDz2_qz.js} +1 -1
  42. package/dist/Toast.js +2 -2
  43. package/dist/{Toast.vue_vue_type_script_setup_true_lang-xJF3jtka.js → Toast.vue_vue_type_script_setup_true_lang-Lw1lJoH3.js} +6 -6
  44. package/dist/components.js +20 -20
  45. package/dist/date.js +170 -354
  46. package/dist/index.css +197 -215
  47. package/dist/{plugin-CNqL90UL.js → plugin-8nvB-f8B.js} +1 -1
  48. package/dist/{plugin-BQPL19WY.js → plugin-B1ev5kjp.js} +1 -1
  49. package/dist/{plugin-CGCl2Tuy.js → plugin-B5vbbM7n.js} +1 -1
  50. package/dist/{plugin-B-YDK-TW.js → plugin-BJyDH94F.js} +1 -1
  51. package/dist/{plugin-B6qqYLZU.js → plugin-BOewyU0C.js} +1 -1
  52. package/dist/{plugin-4XhHBTQc.js → plugin-BQqeQUxM.js} +1 -1
  53. package/dist/{plugin-TONwKALZ.js → plugin-BU44OLnf.js} +1 -1
  54. package/dist/{plugin-cvHKUGjm.js → plugin-BWfDY9pB.js} +1 -1
  55. package/dist/{plugin-D3ADZgWc.js → plugin-BoP2-VzO.js} +1 -1
  56. package/dist/{plugin-CTMcmMdr.js → plugin-BpdfpzgE.js} +1 -1
  57. package/dist/{plugin-B9wG8DUw.js → plugin-C1kAmMfE.js} +1 -1
  58. package/dist/{plugin-BQFwx3d5.js → plugin-C8Z-XgLn.js} +1 -1
  59. package/dist/{plugin-D9k93Uu1.js → plugin-CC97Vx-s.js} +1 -1
  60. package/dist/{plugin-VQZG4jD0.js → plugin-CZ2rAHjJ.js} +1 -1
  61. package/dist/{plugin-fGlPPiqA.js → plugin-CZiSoM73.js} +1 -1
  62. package/dist/{plugin-B97_3CZA.js → plugin-CyDnzy2n.js} +1 -1
  63. package/dist/{plugin-KCYRmKkj.js → plugin-DPcsc5tO.js} +1 -1
  64. package/dist/{plugin-CQ-FpZui.js → plugin-RM2wZuwL.js} +1 -1
  65. package/dist/{plugin-DKjcKBPg.js → plugin-dX-bbpm5.js} +1 -1
  66. package/dist/{plugin-BV-k02s1.js → plugin-wVt0wQNv.js} +1 -1
  67. package/dist/{plugins-B1SFJH99.js → plugins-B3Md0lwW.js} +27 -27
  68. package/dist/plugins.js +27 -27
  69. package/dist/tamandua.js +1 -1
  70. package/dist/types/components/Avatar/Avatar.vue.d.ts +2 -2
  71. package/dist/types/components/Button/Button.vue.d.ts +13 -11
  72. package/dist/types/components/ChartLine/ChartLine.vue.d.ts +2 -2
  73. package/dist/types/components/Drawer/Drawer.story.d.ts +2 -11
  74. package/dist/types/components/Drawer/Drawer.vue.d.ts +8 -6
  75. package/dist/types/components/Dropdown/Dropdown.vue.d.ts +33 -31
  76. package/dist/types/components/Form/Form.vue.d.ts +8 -76
  77. package/dist/types/components/FormItem/FormItem.vue.d.ts +4 -2
  78. package/dist/types/components/GraphyLabel/GraphyLabel.vue.d.ts +4 -2
  79. package/dist/types/components/GraphyPrice/GraphyPrice.vue.d.ts +1 -1
  80. package/dist/types/components/Icon/Icon.vue.d.ts +1 -1
  81. package/dist/types/components/InputCheckbox/types.d.ts +7 -0
  82. package/dist/types/components/InputPrice/service.d.ts +1 -1
  83. package/dist/types/components/InputPrice/types.d.ts +1 -1
  84. package/dist/types/components/InputRadio/InputRadioGroup.vue.d.ts +6 -4
  85. package/dist/types/components/InputSelect/InputSelect.vue.d.ts +35 -33
  86. package/dist/types/components/Link/Link.vue.d.ts +7 -5
  87. package/dist/types/components/Modal/Modal.vue.d.ts +8 -6
  88. package/dist/types/components/ModalForm/ModalForm.vue.d.ts +7 -5
  89. package/dist/types/components/Pagination/Pagination.vue.d.ts +1 -1
  90. package/dist/types/components/Popconfirm/Popconfirm.vue.d.ts +9 -7
  91. package/dist/types/components/Popover/Popover.vue.d.ts +4 -4
  92. package/dist/types/components/ProgressCircle/ProgressCircle.vue.d.ts +6 -4
  93. package/dist/types/components/ProgressLine/ProgressLine.vue.d.ts +6 -4
  94. package/dist/types/components/SensitiveInfo/SensitiveInfo.vue.d.ts +4 -2
  95. package/dist/types/components/Tab/Tab.vue.d.ts +4 -2
  96. package/dist/types/components/Table/Table.vue.d.ts +12 -73
  97. package/dist/types/components/Tag/Tag.vue.d.ts +6 -4
  98. package/dist/types/services/date.d.ts +2 -2
  99. package/package.json +15 -16
  100. package/dist/GraphyLabel.vue_vue_type_script_setup_true_lang-n_0200p7.js +0 -18
  101. package/dist/InputCheckbox.vue_vue_type_style_index_0_lang-DnRqQiOj.js +0 -50
@@ -3,7 +3,38 @@ import { InputSelectValue, InputSelectOption, SelectValuePrimitives } from './ty
3
3
  import { APISearchFilters } from '../../types/api.js';
4
4
  import { Pagination } from '../../types/ui.js';
5
5
 
6
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
6
+ declare function __VLS_template(): {
7
+ selection?(_: {
8
+ icon?: `${import('../../enums/ui.js').Icon}` | undefined;
9
+ label: string | object;
10
+ type?: string | undefined;
11
+ renderer?: string | undefined;
12
+ isGroupLabel: boolean;
13
+ value?: never | undefined;
14
+ action?: never | undefined;
15
+ } | {
16
+ icon?: `${import('../../enums/ui.js').Icon}` | undefined;
17
+ label: string | object;
18
+ type?: string | undefined;
19
+ renderer?: string | undefined;
20
+ value: SelectValuePrimitives | SelectValuePrimitives[];
21
+ action?: never | undefined;
22
+ isGroupLabel?: never | undefined;
23
+ } | {
24
+ icon?: `${import('../../enums/ui.js').Icon}` | undefined;
25
+ label: string | object;
26
+ type?: string | undefined;
27
+ renderer?: string | undefined;
28
+ action: (filters?: APISearchFilters) => Promise<{
29
+ items: unknown[];
30
+ pagination: Pagination;
31
+ }> | Promise<void> | void;
32
+ value?: never | undefined;
33
+ isGroupLabel?: never | undefined;
34
+ }): any;
35
+ default?(_: any): any;
36
+ };
37
+ declare const __VLS_component: import('vue').DefineComponent<{
7
38
  modelValue: import("vue").PropType<InputSelectValue>;
8
39
  filter: {
9
40
  type: import("vue").PropType<(input: string, option: InputSelectOption) => boolean>;
@@ -140,41 +171,12 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
140
171
  placeholder: string;
141
172
  mapper: (i: any) => InputSelectOption;
142
173
  isSearchable: boolean;
143
- dropdownPlacement: "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start";
174
+ dropdownPlacement: `${ElementPosition}`;
144
175
  widthClass: string;
145
176
  borderClass: string;
146
177
  roundnessClass: string;
147
- }, {}>, {
148
- selection?(_: {
149
- icon?: "circle" | "account" | "alert-octagon" | "alert-octagon-outline" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "book-alphabet" | "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" | "text-box" | "text-box-multiple" | "text-box-multiple-outline" | "text-box-outline" | "trash-can" | "trash-can-outline" | "upload" | "user-circle" | "zip-box" | undefined;
150
- label: string | object;
151
- type?: string | undefined;
152
- renderer?: string | undefined;
153
- isGroupLabel: boolean;
154
- value?: undefined;
155
- action?: undefined;
156
- } | {
157
- icon?: "circle" | "account" | "alert-octagon" | "alert-octagon-outline" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "book-alphabet" | "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" | "text-box" | "text-box-multiple" | "text-box-multiple-outline" | "text-box-outline" | "trash-can" | "trash-can-outline" | "upload" | "user-circle" | "zip-box" | undefined;
158
- label: string | object;
159
- type?: string | undefined;
160
- renderer?: string | undefined;
161
- value: SelectValuePrimitives | SelectValuePrimitives[];
162
- action?: undefined;
163
- isGroupLabel?: undefined;
164
- } | {
165
- icon?: "circle" | "account" | "alert-octagon" | "alert-octagon-outline" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "book-alphabet" | "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" | "text-box" | "text-box-multiple" | "text-box-multiple-outline" | "text-box-outline" | "trash-can" | "trash-can-outline" | "upload" | "user-circle" | "zip-box" | undefined;
166
- label: string | object;
167
- type?: string | undefined;
168
- renderer?: string | undefined;
169
- action: (filters?: APISearchFilters | undefined) => void | Promise<void> | Promise<{
170
- items: unknown[];
171
- pagination: Pagination;
172
- }>;
173
- value?: undefined;
174
- isGroupLabel?: undefined;
175
- }): any;
176
- default?(_: any): any;
177
- }>;
178
+ }, {}>;
179
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
178
180
  export default _default;
179
181
  type __VLS_WithTemplateSlots<T, S> = T & {
180
182
  new (): {
@@ -1,7 +1,10 @@
1
1
  import { LinkType } from '../../enums/ui.js';
2
2
  import { LinkProps } from './types.js';
3
3
 
4
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<LinkProps>, {
4
+ declare function __VLS_template(): {
5
+ default?(_: {}): any;
6
+ };
7
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<LinkProps>, {
5
8
  link: string;
6
9
  type: LinkType;
7
10
  label: string;
@@ -14,13 +17,12 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
14
17
  target: string;
15
18
  disabled: boolean;
16
19
  }>>>, {
17
- type: "default" | "router";
20
+ type: `${LinkType}`;
18
21
  label: string;
19
22
  disabled: boolean;
20
23
  target: "_self" | "_blank" | "_parent" | "_top" | "_unfencedTop";
21
- }, {}>, {
22
- default?(_: {}): any;
23
- }>;
24
+ }, {}>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
24
26
  export default _default;
25
27
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
28
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,6 +1,11 @@
1
1
  import { ModalProps } from './types.js';
2
2
 
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ModalProps>, {
3
+ declare function __VLS_template(): {
4
+ header?(_: {}): any;
5
+ default?(_: {}): any;
6
+ footer?(_: {}): any;
7
+ };
8
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ModalProps>, {
4
9
  title: string;
5
10
  showHeader: boolean;
6
11
  injectStyle: () => {
@@ -30,11 +35,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
30
35
  showHeader: boolean;
31
36
  injectStyle: any;
32
37
  hasBackdrop: boolean;
33
- }, {}>, {
34
- header?(_: {}): any;
35
- default?(_: {}): any;
36
- footer?(_: {}): any;
37
- }>;
38
+ }, {}>;
39
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
38
40
  export default _default;
39
41
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
42
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,10 +1,13 @@
1
1
  import { ModalFormProps } from './types.js';
2
2
 
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ModalFormProps>, {
3
+ declare function __VLS_template(): {
4
+ header?(_: {}): any;
5
+ };
6
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ModalFormProps>, {
4
7
  options: () => never[];
5
8
  formClass: string;
6
9
  }>, {
7
- open: (key: string, id?: string | undefined) => void;
10
+ open: (key: string, id?: string) => void;
8
11
  delete: () => void;
9
12
  submit: () => Promise<{
10
13
  isValid: boolean;
@@ -25,9 +28,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
25
28
  }, {
26
29
  options: import("../types.js").InputSelectOption[];
27
30
  formClass: string;
28
- }, {}>, {
29
- header?(_: {}): any;
30
- }>;
31
+ }, {}>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
31
33
  export default _default;
32
34
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
35
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -41,7 +41,7 @@ declare const _default: import('vue').DefineComponent<{
41
41
  }>>, {
42
42
  disabled: boolean;
43
43
  hasPageSize: boolean;
44
- pageLengths: number[];
44
+ pageLengths: Array<number>;
45
45
  showDescription: boolean;
46
46
  }, {}>;
47
47
  export default _default;
@@ -1,7 +1,12 @@
1
1
  import { ElementPosition } from '../../enums/ui.js';
2
2
  import { PopconfirmProps } from './types.js';
3
3
 
4
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PopconfirmProps>, {
4
+ declare function __VLS_template(): {
5
+ default?(_: {
6
+ onTogglePopover: any;
7
+ }): any;
8
+ };
9
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PopconfirmProps>, {
5
10
  message: string;
6
11
  placement: ElementPosition;
7
12
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -12,13 +17,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
12
17
  }>>> & {
13
18
  onConfirm?: (() => any) | undefined;
14
19
  }, {
15
- placement: "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start";
20
+ placement: `${ElementPosition}`;
16
21
  message: string;
17
- }, {}>, {
18
- default?(_: {
19
- onTogglePopover: any;
20
- }): any;
21
- }>;
22
+ }, {}>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
22
24
  export default _default;
23
25
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
26
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,7 +1,7 @@
1
1
  import { ElementPosition, ElementTrigger } from '../../enums/ui.js';
2
2
 
3
3
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
4
- open: import('vue').PropType<boolean>;
4
+ open: import("vue").PropType<boolean>;
5
5
  disabled: {
6
6
  type: import("vue").PropType<boolean>;
7
7
  default: boolean;
@@ -25,7 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
25
25
  }, {
26
26
  name: string;
27
27
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
- open: import('vue').PropType<boolean>;
28
+ open: import("vue").PropType<boolean>;
29
29
  disabled: {
30
30
  type: import("vue").PropType<boolean>;
31
31
  default: boolean;
@@ -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
- trigger: "click" | "hover";
52
+ placement: `${ElementPosition}`;
53
+ trigger: `${ElementTrigger}`;
54
54
  slotWrapperClasses: string;
55
55
  }, {}>, {
56
56
  default?(_: {
@@ -1,6 +1,9 @@
1
1
  import { ProgressCircleProps } from './types.js';
2
2
 
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProgressCircleProps>, {
3
+ declare function __VLS_template(): {
4
+ default?(_: {}): any;
5
+ };
6
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProgressCircleProps>, {
4
7
  value: number;
5
8
  width: number;
6
9
  strokeWidth: number;
@@ -18,9 +21,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
18
21
  strokeWidth: number;
19
22
  width: number;
20
23
  strokeColor: string;
21
- }, {}>, {
22
- default?(_: {}): any;
23
- }>;
24
+ }, {}>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
24
26
  export default _default;
25
27
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
28
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,6 +1,9 @@
1
1
  import { ProgressLineProps } from './types.js';
2
2
 
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProgressLineProps>, {
3
+ declare function __VLS_template(): {
4
+ label?(_: {}): any;
5
+ };
6
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProgressLineProps>, {
4
7
  value: number;
5
8
  height: number;
6
9
  borderRadius: number;
@@ -33,9 +36,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
33
36
  overColor: string;
34
37
  progressColor: string;
35
38
  finishedColor: string;
36
- }, {}>, {
37
- label?(_: {}): any;
38
- }>;
39
+ }, {}>;
40
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
39
41
  export default _default;
40
42
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
41
43
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,8 +1,10 @@
1
1
  import { SensitiveInfoProps } from './types.js';
2
2
 
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<SensitiveInfoProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SensitiveInfoProps>>>, {}, {}>, {
3
+ declare function __VLS_template(): {
4
4
  default?(_: {}): any;
5
- }>;
5
+ };
6
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<SensitiveInfoProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SensitiveInfoProps>>>, {}, {}>;
7
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
6
8
  export default _default;
7
9
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
10
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,12 +1,14 @@
1
1
  import { TabProps } from './types.js';
2
2
 
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TabProps>, {
3
+ declare function __VLS_template(): Partial<Record<string, (_: {}) => any>>;
4
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TabProps>, {
4
5
  tabs: () => never[];
5
6
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TabProps>, {
6
7
  tabs: () => never[];
7
8
  }>>>, {
8
9
  tabs: import("../../index.js").Tab[];
9
- }, {}>, Partial<Record<string, (_: {}) => any>>>;
10
+ }, {}>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
10
12
  export default _default;
11
13
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
14
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,91 +1,30 @@
1
- import { TableEvents } from './types.js';
1
+ import { TableProps, TableEvents } from './types.js';
2
2
 
3
- declare const _default: <T extends object>(__VLS_props: {
4
- loading?: boolean | undefined;
5
- data: T[];
6
- columns: import('../../index.js').TableColumn[];
7
- onSelected?: ((val: any) => any) | undefined;
8
- "onRow-click"?: ((val: any) => any) | undefined;
9
- "onAction-click"?: ((val: any) => any) | undefined;
10
- rowKey?: string | undefined;
11
- selectable?: boolean | undefined;
12
- actionable?: boolean | undefined;
13
- stickyHeader?: boolean | undefined;
14
- rowClass?: string | undefined;
15
- tableDataClass?: string | undefined;
16
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
17
- attrs: any;
18
- slots: Partial<Record<string, (_: {
19
- row: T;
20
- }) => any>> & {
21
- details?(_: {
22
- row: T;
23
- }): any;
24
- };
25
- emit: TableEvents;
26
- } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{
27
- clearSelection: () => void;
28
- inSelectionMode: import("vue").Ref<boolean>;
29
- }>) => void) | undefined, __VLS_setup?: Promise<{
30
- props: {
31
- loading?: boolean | undefined;
32
- data: T[];
33
- columns: import('../../index.js').TableColumn[];
3
+ declare const _default: <T extends object>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
34
5
  onSelected?: ((val: any) => any) | undefined;
35
6
  "onRow-click"?: ((val: any) => any) | undefined;
36
7
  "onAction-click"?: ((val: any) => any) | undefined;
37
- rowKey?: string | undefined;
38
- selectable?: boolean | undefined;
39
- actionable?: boolean | undefined;
40
- stickyHeader?: boolean | undefined;
41
- rowClass?: string | undefined;
42
- tableDataClass?: string | undefined;
43
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
8
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
9
+ onSelected?: ((val: any) => any) | undefined;
10
+ "onRow-click"?: ((val: any) => any) | undefined;
11
+ "onAction-click"?: ((val: any) => any) | undefined;
12
+ }, never>) & TableProps<T>, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
44
13
  expose(exposed: import('vue').ShallowUnwrapRef<{
45
14
  clearSelection: () => void;
46
15
  inSelectionMode: import("vue").Ref<boolean>;
47
16
  }>): void;
48
17
  attrs: any;
49
- slots: Partial<Record<string, (_: {
18
+ slots: ReturnType<() => Partial<Record<string, (_: {
50
19
  row: T;
51
20
  }) => any>> & {
52
21
  details?(_: {
53
22
  row: T;
54
23
  }): any;
55
- };
24
+ }>;
56
25
  emit: TableEvents;
57
- }>) => import('vue').VNode<import("vue").RendererNode, import("vue").RendererElement, {
58
- [key: string]: any;
59
- }> & {
60
- __ctx?: {
61
- props: {
62
- loading?: boolean | undefined;
63
- data: T[];
64
- columns: import('../../index.js').TableColumn[];
65
- onSelected?: ((val: any) => any) | undefined;
66
- "onRow-click"?: ((val: any) => any) | undefined;
67
- "onAction-click"?: ((val: any) => any) | undefined;
68
- rowKey?: string | undefined;
69
- selectable?: boolean | undefined;
70
- actionable?: boolean | undefined;
71
- stickyHeader?: boolean | undefined;
72
- rowClass?: string | undefined;
73
- tableDataClass?: string | undefined;
74
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
75
- expose(exposed: import('vue').ShallowUnwrapRef<{
76
- clearSelection: () => void;
77
- inSelectionMode: import("vue").Ref<boolean>;
78
- }>): void;
79
- attrs: any;
80
- slots: Partial<Record<string, (_: {
81
- row: T;
82
- }) => any>> & {
83
- details?(_: {
84
- row: T;
85
- }): any;
86
- };
87
- emit: TableEvents;
88
- } | undefined;
26
+ }>) => import('vue').VNode & {
27
+ __ctx?: Awaited<typeof __VLS_setup>;
89
28
  };
90
29
  export default _default;
91
30
  type __VLS_Prettify<T> = {
@@ -1,7 +1,10 @@
1
1
  import { TagProps } from './types.js';
2
2
  import { ElementSize } from '../../enums/ui.js';
3
3
 
4
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TagProps>, {
4
+ declare function __VLS_template(): {
5
+ default?(_: {}): any;
6
+ };
7
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TagProps>, {
5
8
  text: string;
6
9
  size: ElementSize;
7
10
  role: string;
@@ -26,9 +29,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
26
29
  color: string;
27
30
  confirmClose: boolean;
28
31
  hasCloseButton: boolean;
29
- }, {}>, {
30
- default?(_: {}): any;
31
- }>;
32
+ }, {}>;
33
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
32
34
  export default _default;
33
35
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
36
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,4 +1,4 @@
1
1
  import { format, isToday, setDate, setYear, addMonths, subMonths, addMinutes, getUnixTime, formatDistance, getDaysInMonth, addMilliseconds, formatDistanceToNow } from 'date-fns';
2
- import { toZonedTime, getTimezoneOffset } from 'date-fns-tz';
2
+ import { getTimezoneOffset } from 'date-fns-tz';
3
3
 
4
- export { format, isToday, setDate, setYear, addMonths, subMonths, addMinutes, toZonedTime, getUnixTime, formatDistance, getDaysInMonth, addMilliseconds, getTimezoneOffset, formatDistanceToNow, };
4
+ export { format, isToday, setDate, setYear, addMonths, subMonths, addMinutes, getUnixTime, formatDistance, getDaysInMonth, addMilliseconds, getTimezoneOffset, formatDistanceToNow, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caipira/tamandua",
3
- "version": "0.0.61",
3
+ "version": "0.0.63",
4
4
  "private": false,
5
5
  "description": "UI library for the Caipira ecosystem",
6
6
  "license": "GPL-3.0-only",
@@ -71,28 +71,29 @@
71
71
  },
72
72
  "dependencies": {
73
73
  "@floating-ui/vue": "^1.0.6",
74
+ "@tailwindcss/vite": "^4.0.15",
74
75
  "d3": "^7.9.0",
75
76
  "date-fns": "^4.1.0",
76
77
  "date-fns-tz": "^3.2.0",
77
78
  "gsap": "^3.12.2"
78
79
  },
79
80
  "peerDependencies": {
80
- "tailwindcss": "^3.4.3",
81
+ "tailwindcss": "^4.0.15",
81
82
  "vue": "^3.0.0",
82
83
  "vue-i18n": "9",
83
84
  "vue-router": "4.3.0"
84
85
  },
85
86
  "devDependencies": {
86
87
  "@faker-js/faker": "^8.4.1",
87
- "@storybook/addon-actions": "^8.0.8",
88
- "@storybook/addon-essentials": "^8.0.8",
89
- "@storybook/addon-interactions": "^8.0.8",
90
- "@storybook/addon-links": "^8.0.8",
91
- "@storybook/addon-themes": "^8.0.8",
92
- "@storybook/blocks": "^8.0.8",
93
- "@storybook/test": "^8.0.8",
94
- "@storybook/vue3": "^8.0.8",
95
- "@storybook/vue3-vite": "^8.0.8",
88
+ "@storybook/addon-actions": "^8.6.6",
89
+ "@storybook/addon-essentials": "^8.6.6",
90
+ "@storybook/addon-interactions": "^8.6.6",
91
+ "@storybook/addon-links": "^8.6.6",
92
+ "@storybook/addon-themes": "^8.6.6",
93
+ "@storybook/blocks": "^8.6.6",
94
+ "@storybook/test": "^8.6.6",
95
+ "@storybook/vue3": "^8.6.6",
96
+ "@storybook/vue3-vite": "^8.6.6",
96
97
  "@types/d3": "^7.4.3",
97
98
  "@types/js-cookie": "^2.2.7",
98
99
  "@types/jsdom": "^21.1.6",
@@ -100,17 +101,15 @@
100
101
  "@vitejs/plugin-vue": "^5.0.4",
101
102
  "@vue/test-utils": "^2.4.1",
102
103
  "@vue/tsconfig": "^0.5.1",
103
- "autoprefixer": "^10.4.0",
104
- "jsdom": "^24.0.0",
105
- "postcss": "^8.4.5",
106
- "storybook": "^8.0.8",
104
+ "jsdom": "^26.0.0",
105
+ "storybook": "^8.6.6",
107
106
  "ts-node": "^10.9.1",
108
107
  "typescript": "^5.4.5",
109
108
  "vite": "^5.2.6",
110
109
  "vite-plugin-dts": "^3.8.1",
111
110
  "vite-plugin-lib-inject-css": "^2.0.1",
112
111
  "vite-tsconfig-paths": "^4.2.0",
113
- "vitest": "^1.4.0",
112
+ "vitest": "^3.0.8",
114
113
  "vue": "^3.4.21",
115
114
  "vue-component-type-helpers": "^2.0.19",
116
115
  "vue-tsc": "^2.0.13"
@@ -1,18 +0,0 @@
1
- import { defineComponent as a, openBlock as n, createElementBlock as r, createTextVNode as l, toDisplayString as s, renderSlot as p } from "vue";
2
- const c = { class: "input-label" }, m = /* @__PURE__ */ a({
3
- name: "TGraphyLabel",
4
- __name: "GraphyLabel",
5
- props: {
6
- text: {}
7
- },
8
- setup(e) {
9
- const t = e;
10
- return (o, _) => (n(), r("label", c, [
11
- l(s(t.text) + " ", 1),
12
- p(o.$slots, "default")
13
- ]));
14
- }
15
- });
16
- export {
17
- m as _
18
- };
@@ -1,50 +0,0 @@
1
- import './InputCheckbox.css';
2
- import { defineComponent as c, ref as m, watch as b, openBlock as o, createElementBlock as r, withDirectives as f, createElementVNode as h, mergeProps as v, vModelCheckbox as k, toDisplayString as y, createCommentVNode as x } from "vue";
3
- const _ = { class: "h-9 inline-flex items-center" }, B = ["indeterminate", "disabled"];
4
- let V = 0;
5
- const I = /* @__PURE__ */ c({
6
- name: "TInputCheckbox",
7
- __name: "InputCheckbox",
8
- props: {
9
- label: { default: "" },
10
- disabled: { type: Boolean, default: !1 },
11
- modelValue: { type: Boolean },
12
- isIndeterminate: { type: Boolean, default: !1 },
13
- initializeValue: { type: Boolean, default: !1 }
14
- },
15
- emits: ["update:model-value", "input"],
16
- setup(d, { emit: s }) {
17
- const t = d, l = s, i = `checkbox_${++V}`, a = m(!1), p = () => {
18
- const e = !a.value;
19
- l("update:model-value", e), l("input", e);
20
- };
21
- return b(
22
- () => t.modelValue,
23
- (e) => {
24
- t.initializeValue && typeof e > "u" && l("update:model-value", !1), a.value = e;
25
- },
26
- { immediate: !0 }
27
- ), (e, n) => (o(), r("div", _, [
28
- f(h("input", v({
29
- "onUpdate:modelValue": n[0] || (n[0] = (u) => a.value = u)
30
- }, e.$attrs, {
31
- type: "checkbox",
32
- class: "form-checkbox w-5 h-5 border input-border input-roundness color-caipira-primary-inverted bg-caipira-primary checked:bg-caipira-primary-inverted input-outline",
33
- indeterminate: t.isIndeterminate,
34
- id: i,
35
- disabled: e.disabled,
36
- onInput: p
37
- }), null, 16, B), [
38
- [k, a.value]
39
- ]),
40
- t.label ? (o(), r("label", {
41
- key: 0,
42
- class: "cursor-pointer pl-2 mr-3 input-label",
43
- for: i
44
- }, y(t.label), 1)) : x("", !0)
45
- ]));
46
- }
47
- });
48
- export {
49
- I as _
50
- };