@caipira/tamandua 0.0.61 → 0.0.62

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 (39) hide show
  1. package/dist/InputPrice.js +2 -2
  2. package/dist/{InputPrice.vue_vue_type_script_setup_true_lang-C2wDVwnm.js → InputPrice.vue_vue_type_script_setup_true_lang-R3kHhxN2.js} +20 -20
  3. package/dist/InputSelect.js +2 -2
  4. 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
  5. package/dist/components.js +2 -2
  6. package/dist/date.js +170 -354
  7. package/dist/{plugin-fGlPPiqA.js → plugin-CZiSoM73.js} +1 -1
  8. package/dist/{plugin-CQ-FpZui.js → plugin-RM2wZuwL.js} +1 -1
  9. package/dist/{plugins-B1SFJH99.js → plugins-DD6fcgTJ.js} +3 -3
  10. package/dist/plugins.js +3 -3
  11. package/dist/tamandua.js +1 -1
  12. package/dist/types/components/Avatar/Avatar.vue.d.ts +2 -2
  13. package/dist/types/components/Button/Button.vue.d.ts +13 -11
  14. package/dist/types/components/ChartLine/ChartLine.vue.d.ts +2 -2
  15. package/dist/types/components/Drawer/Drawer.vue.d.ts +8 -6
  16. package/dist/types/components/Dropdown/Dropdown.vue.d.ts +33 -31
  17. package/dist/types/components/Form/Form.vue.d.ts +8 -76
  18. package/dist/types/components/FormItem/FormItem.vue.d.ts +4 -2
  19. package/dist/types/components/GraphyLabel/GraphyLabel.vue.d.ts +4 -2
  20. package/dist/types/components/GraphyPrice/GraphyPrice.vue.d.ts +1 -1
  21. package/dist/types/components/Icon/Icon.vue.d.ts +1 -1
  22. package/dist/types/components/InputPrice/service.d.ts +1 -1
  23. package/dist/types/components/InputPrice/types.d.ts +1 -1
  24. package/dist/types/components/InputRadio/InputRadioGroup.vue.d.ts +6 -4
  25. package/dist/types/components/InputSelect/InputSelect.vue.d.ts +35 -33
  26. package/dist/types/components/Link/Link.vue.d.ts +7 -5
  27. package/dist/types/components/Modal/Modal.vue.d.ts +8 -6
  28. package/dist/types/components/ModalForm/ModalForm.vue.d.ts +7 -5
  29. package/dist/types/components/Pagination/Pagination.vue.d.ts +1 -1
  30. package/dist/types/components/Popconfirm/Popconfirm.vue.d.ts +9 -7
  31. package/dist/types/components/Popover/Popover.vue.d.ts +4 -4
  32. package/dist/types/components/ProgressCircle/ProgressCircle.vue.d.ts +6 -4
  33. package/dist/types/components/ProgressLine/ProgressLine.vue.d.ts +6 -4
  34. package/dist/types/components/SensitiveInfo/SensitiveInfo.vue.d.ts +4 -2
  35. package/dist/types/components/Tab/Tab.vue.d.ts +4 -2
  36. package/dist/types/components/Table/Table.vue.d.ts +12 -73
  37. package/dist/types/components/Tag/Tag.vue.d.ts +6 -4
  38. package/dist/types/services/date.d.ts +2 -2
  39. package/package.json +14 -14
@@ -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.62",
4
4
  "private": false,
5
5
  "description": "UI library for the Caipira ecosystem",
6
6
  "license": "GPL-3.0-only",
@@ -84,15 +84,15 @@
84
84
  },
85
85
  "devDependencies": {
86
86
  "@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",
87
+ "@storybook/addon-actions": "^8.6.6",
88
+ "@storybook/addon-essentials": "^8.6.6",
89
+ "@storybook/addon-interactions": "^8.6.6",
90
+ "@storybook/addon-links": "^8.6.6",
91
+ "@storybook/addon-themes": "^8.6.6",
92
+ "@storybook/blocks": "^8.6.6",
93
+ "@storybook/test": "^8.6.6",
94
+ "@storybook/vue3": "^8.6.6",
95
+ "@storybook/vue3-vite": "^8.6.6",
96
96
  "@types/d3": "^7.4.3",
97
97
  "@types/js-cookie": "^2.2.7",
98
98
  "@types/jsdom": "^21.1.6",
@@ -100,17 +100,17 @@
100
100
  "@vitejs/plugin-vue": "^5.0.4",
101
101
  "@vue/test-utils": "^2.4.1",
102
102
  "@vue/tsconfig": "^0.5.1",
103
- "autoprefixer": "^10.4.0",
104
- "jsdom": "^24.0.0",
103
+ "autoprefixer": "^10.4.21",
104
+ "jsdom": "^26.0.0",
105
105
  "postcss": "^8.4.5",
106
- "storybook": "^8.0.8",
106
+ "storybook": "^8.6.6",
107
107
  "ts-node": "^10.9.1",
108
108
  "typescript": "^5.4.5",
109
109
  "vite": "^5.2.6",
110
110
  "vite-plugin-dts": "^3.8.1",
111
111
  "vite-plugin-lib-inject-css": "^2.0.1",
112
112
  "vite-tsconfig-paths": "^4.2.0",
113
- "vitest": "^1.4.0",
113
+ "vitest": "^3.0.8",
114
114
  "vue": "^3.4.21",
115
115
  "vue-component-type-helpers": "^2.0.19",
116
116
  "vue-tsc": "^2.0.13"