@makroz/web 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/dist/auth/CookieStorageAdapter.test.d.ts +11 -0
  2. package/dist/auth/CookieStorageAdapter.test.d.ts.map +1 -0
  3. package/dist/auth/CookieStorageAdapter.test.js +80 -0
  4. package/dist/auth/CookieStorageAdapter.test.js.map +1 -0
  5. package/dist/auth/LocalStorageAdapter.test.d.ts +12 -0
  6. package/dist/auth/LocalStorageAdapter.test.d.ts.map +1 -0
  7. package/dist/auth/LocalStorageAdapter.test.js +71 -0
  8. package/dist/auth/LocalStorageAdapter.test.js.map +1 -0
  9. package/dist/auth/authExports.test.d.ts +2 -0
  10. package/dist/auth/authExports.test.d.ts.map +1 -0
  11. package/dist/auth/authExports.test.js +15 -0
  12. package/dist/auth/authExports.test.js.map +1 -0
  13. package/dist/components/MkAccordion.stories.test.d.ts +2 -0
  14. package/dist/components/MkAccordion.stories.test.d.ts.map +1 -0
  15. package/dist/components/MkAccordion.stories.test.js +18 -0
  16. package/dist/components/MkAccordion.stories.test.js.map +1 -0
  17. package/dist/components/MkAlert.stories.test.d.ts +2 -0
  18. package/dist/components/MkAlert.stories.test.d.ts.map +1 -0
  19. package/dist/components/MkAlert.stories.test.js +16 -0
  20. package/dist/components/MkAlert.stories.test.js.map +1 -0
  21. package/dist/components/MkAvatar.stories.test.d.ts +2 -0
  22. package/dist/components/MkAvatar.stories.test.d.ts.map +1 -0
  23. package/dist/components/MkAvatar.stories.test.js +16 -0
  24. package/dist/components/MkAvatar.stories.test.js.map +1 -0
  25. package/dist/components/MkBadge.stories.test.d.ts +2 -0
  26. package/dist/components/MkBadge.stories.test.d.ts.map +1 -0
  27. package/dist/components/MkBadge.stories.test.js +16 -0
  28. package/dist/components/MkBadge.stories.test.js.map +1 -0
  29. package/dist/components/MkButton.test.d.ts +2 -0
  30. package/dist/components/MkButton.test.d.ts.map +1 -0
  31. package/dist/components/MkButton.test.js +56 -0
  32. package/dist/components/MkButton.test.js.map +1 -0
  33. package/dist/components/MkCheck.stories.test.d.ts +2 -0
  34. package/dist/components/MkCheck.stories.test.d.ts.map +1 -0
  35. package/dist/components/MkCheck.stories.test.js +16 -0
  36. package/dist/components/MkCheck.stories.test.js.map +1 -0
  37. package/dist/components/MkDatePicker.stories.test.d.ts +2 -0
  38. package/dist/components/MkDatePicker.stories.test.d.ts.map +1 -0
  39. package/dist/components/MkDatePicker.stories.test.js +16 -0
  40. package/dist/components/MkDatePicker.stories.test.js.map +1 -0
  41. package/dist/components/MkDivider.stories.test.d.ts +2 -0
  42. package/dist/components/MkDivider.stories.test.d.ts.map +1 -0
  43. package/dist/components/MkDivider.stories.test.js +15 -0
  44. package/dist/components/MkDivider.stories.test.js.map +1 -0
  45. package/dist/components/MkDropDown.stories.test.d.ts +2 -0
  46. package/dist/components/MkDropDown.stories.test.d.ts.map +1 -0
  47. package/dist/components/MkDropDown.stories.test.js +18 -0
  48. package/dist/components/MkDropDown.stories.test.js.map +1 -0
  49. package/dist/components/MkEmptyState.stories.test.d.ts +2 -0
  50. package/dist/components/MkEmptyState.stories.test.d.ts.map +1 -0
  51. package/dist/components/MkEmptyState.stories.test.js +15 -0
  52. package/dist/components/MkEmptyState.stories.test.js.map +1 -0
  53. package/dist/components/MkFileUpload-leak.test.d.ts +16 -0
  54. package/dist/components/MkFileUpload-leak.test.d.ts.map +1 -0
  55. package/dist/components/MkFileUpload-leak.test.js +157 -0
  56. package/dist/components/MkFileUpload-leak.test.js.map +1 -0
  57. package/dist/components/MkFileUpload.stories.test.d.ts +2 -0
  58. package/dist/components/MkFileUpload.stories.test.d.ts.map +1 -0
  59. package/dist/components/MkFileUpload.stories.test.js +15 -0
  60. package/dist/components/MkFileUpload.stories.test.js.map +1 -0
  61. package/dist/components/MkInfiniteList.stories.test.d.ts +2 -0
  62. package/dist/components/MkInfiniteList.stories.test.d.ts.map +1 -0
  63. package/dist/components/MkInfiniteList.stories.test.js +24 -0
  64. package/dist/components/MkInfiniteList.stories.test.js.map +1 -0
  65. package/dist/components/MkInput.stories.test.d.ts +2 -0
  66. package/dist/components/MkInput.stories.test.d.ts.map +1 -0
  67. package/dist/components/MkInput.stories.test.js +16 -0
  68. package/dist/components/MkInput.stories.test.js.map +1 -0
  69. package/dist/components/MkLoading.stories.test.d.ts +2 -0
  70. package/dist/components/MkLoading.stories.test.d.ts.map +1 -0
  71. package/dist/components/MkLoading.stories.test.js +15 -0
  72. package/dist/components/MkLoading.stories.test.js.map +1 -0
  73. package/dist/components/MkProgressBar.stories.test.d.ts +2 -0
  74. package/dist/components/MkProgressBar.stories.test.d.ts.map +1 -0
  75. package/dist/components/MkProgressBar.stories.test.js +15 -0
  76. package/dist/components/MkProgressBar.stories.test.js.map +1 -0
  77. package/dist/components/MkRadio.stories.test.d.ts +2 -0
  78. package/dist/components/MkRadio.stories.test.d.ts.map +1 -0
  79. package/dist/components/MkRadio.stories.test.js +18 -0
  80. package/dist/components/MkRadio.stories.test.js.map +1 -0
  81. package/dist/components/MkSearchInput.stories.test.d.ts +2 -0
  82. package/dist/components/MkSearchInput.stories.test.d.ts.map +1 -0
  83. package/dist/components/MkSearchInput.stories.test.js +15 -0
  84. package/dist/components/MkSearchInput.stories.test.js.map +1 -0
  85. package/dist/components/MkSelect.stories.test.d.ts +2 -0
  86. package/dist/components/MkSelect.stories.test.d.ts.map +1 -0
  87. package/dist/components/MkSelect.stories.test.js +21 -0
  88. package/dist/components/MkSelect.stories.test.js.map +1 -0
  89. package/dist/components/MkSkeleton.stories.test.d.ts +2 -0
  90. package/dist/components/MkSkeleton.stories.test.d.ts.map +1 -0
  91. package/dist/components/MkSkeleton.stories.test.js +15 -0
  92. package/dist/components/MkSkeleton.stories.test.js.map +1 -0
  93. package/dist/components/MkSwitch.stories.test.d.ts +2 -0
  94. package/dist/components/MkSwitch.stories.test.d.ts.map +1 -0
  95. package/dist/components/MkSwitch.stories.test.js +15 -0
  96. package/dist/components/MkSwitch.stories.test.js.map +1 -0
  97. package/dist/components/MkTable-keyExtractor.test.d.ts +15 -0
  98. package/dist/components/MkTable-keyExtractor.test.d.ts.map +1 -0
  99. package/dist/components/MkTable-keyExtractor.test.js +65 -0
  100. package/dist/components/MkTable-keyExtractor.test.js.map +1 -0
  101. package/dist/components/MkTable.stories.test.d.ts +2 -0
  102. package/dist/components/MkTable.stories.test.d.ts.map +1 -0
  103. package/dist/components/MkTable.stories.test.js +25 -0
  104. package/dist/components/MkTable.stories.test.js.map +1 -0
  105. package/dist/components/MkTextArea.stories.test.d.ts +2 -0
  106. package/dist/components/MkTextArea.stories.test.d.ts.map +1 -0
  107. package/dist/components/MkTextArea.stories.test.js +15 -0
  108. package/dist/components/MkTextArea.stories.test.js.map +1 -0
  109. package/dist/components/MkToastContainer.stories.test.d.ts +2 -0
  110. package/dist/components/MkToastContainer.stories.test.d.ts.map +1 -0
  111. package/dist/components/MkToastContainer.stories.test.js +29 -0
  112. package/dist/components/MkToastContainer.stories.test.js.map +1 -0
  113. package/dist/components/MkTooltip.stories.test.d.ts +2 -0
  114. package/dist/components/MkTooltip.stories.test.d.ts.map +1 -0
  115. package/dist/components/MkTooltip.stories.test.js +15 -0
  116. package/dist/components/MkTooltip.stories.test.js.map +1 -0
  117. package/dist/components/MkWindowList.stories.test.d.ts +2 -0
  118. package/dist/components/MkWindowList.stories.test.d.ts.map +1 -0
  119. package/dist/components/MkWindowList.stories.test.js +19 -0
  120. package/dist/components/MkWindowList.stories.test.js.map +1 -0
  121. package/dist/hooks/useApi.test.d.ts +2 -0
  122. package/dist/hooks/useApi.test.d.ts.map +1 -0
  123. package/dist/hooks/useApi.test.js +238 -0
  124. package/dist/hooks/useApi.test.js.map +1 -0
  125. package/dist/hooks/useMkCrud.test.d.ts +2 -0
  126. package/dist/hooks/useMkCrud.test.d.ts.map +1 -0
  127. package/dist/hooks/useMkCrud.test.js +87 -0
  128. package/dist/hooks/useMkCrud.test.js.map +1 -0
  129. package/dist/hooks/useMkForm.test.d.ts +2 -0
  130. package/dist/hooks/useMkForm.test.d.ts.map +1 -0
  131. package/dist/hooks/useMkForm.test.js +116 -0
  132. package/dist/hooks/useMkForm.test.js.map +1 -0
  133. package/dist/hooks/useMkInfiniteList.d.ts.map +1 -1
  134. package/dist/hooks/useMkInfiniteList.js +6 -2
  135. package/dist/hooks/useMkInfiniteList.js.map +1 -1
  136. package/dist/hooks/useMkInfiniteList.test.d.ts +2 -0
  137. package/dist/hooks/useMkInfiniteList.test.d.ts.map +1 -0
  138. package/dist/hooks/useMkInfiniteList.test.js +84 -0
  139. package/dist/hooks/useMkInfiniteList.test.js.map +1 -0
  140. package/dist/hooks/useMkList.d.ts +15 -4
  141. package/dist/hooks/useMkList.d.ts.map +1 -1
  142. package/dist/hooks/useMkList.js +16 -12
  143. package/dist/hooks/useMkList.js.map +1 -1
  144. package/dist/hooks/useMkList.test.d.ts +2 -0
  145. package/dist/hooks/useMkList.test.d.ts.map +1 -0
  146. package/dist/hooks/useMkList.test.js +265 -0
  147. package/dist/hooks/useMkList.test.js.map +1 -0
  148. package/dist/theme/MkThemeProvider.test.d.ts +2 -0
  149. package/dist/theme/MkThemeProvider.test.d.ts.map +1 -0
  150. package/dist/theme/MkThemeProvider.test.js +32 -0
  151. package/dist/theme/MkThemeProvider.test.js.map +1 -0
  152. package/package.json +19 -19
  153. package/LICENSE +0 -33
  154. package/dist/components/MkAccordion.module.css +0 -79
  155. package/dist/components/MkAlert.module.css +0 -103
  156. package/dist/components/MkAvatar.module.css +0 -62
  157. package/dist/components/MkBadge.module.css +0 -74
  158. package/dist/components/MkButton.module.css +0 -85
  159. package/dist/components/MkCard.module.css +0 -63
  160. package/dist/components/MkCheck.module.css +0 -87
  161. package/dist/components/MkDatePicker.module.css +0 -77
  162. package/dist/components/MkDivider.module.css +0 -39
  163. package/dist/components/MkDropDown.module.css +0 -108
  164. package/dist/components/MkEmptyState.module.css +0 -35
  165. package/dist/components/MkFileUpload.module.css +0 -74
  166. package/dist/components/MkInfiniteList.module.css +0 -69
  167. package/dist/components/MkInput.module.css +0 -94
  168. package/dist/components/MkLoading.module.css +0 -39
  169. package/dist/components/MkModal.module.css +0 -107
  170. package/dist/components/MkProgressBar.module.css +0 -48
  171. package/dist/components/MkRadio.module.css +0 -74
  172. package/dist/components/MkSearchInput.module.css +0 -80
  173. package/dist/components/MkSelect.module.css +0 -177
  174. package/dist/components/MkSkeleton.module.css +0 -28
  175. package/dist/components/MkSwitch.module.css +0 -108
  176. package/dist/components/MkTable.module.css +0 -163
  177. package/dist/components/MkTabs.module.css +0 -117
  178. package/dist/components/MkThemeEditor.module.css +0 -177
  179. package/dist/components/MkToastContainer.module.css +0 -95
  180. package/dist/components/MkTooltip.module.css +0 -43
  181. package/dist/components/MkWindowList.module.css +0 -59
  182. package/dist/styles/index.css +0 -124
@@ -0,0 +1,157 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Tests for MkFileUpload object-URL lifecycle.
4
+ *
5
+ * Regression coverage for the leak fixed in v1.3.0: every
6
+ * `URL.createObjectURL` call used to be dropped on the floor, so
7
+ * picking a new set of images (single-select mode) or unmounting
8
+ * with files selected kept the underlying blobs alive in the browser.
9
+ *
10
+ * jsdom 24 does NOT implement `URL.createObjectURL` /
11
+ * `URL.revokeObjectURL` (they are browser-only WHATWG URL extensions),
12
+ * so we stub them on the jsdom `URL` global per test. In a real
13
+ * browser the native implementations do the right thing — these
14
+ * tests just confirm we call them.
15
+ */
16
+ import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';
17
+ import { render, fireEvent, cleanup } from '@testing-library/react';
18
+ import { MkFileUpload } from './MkFileUpload';
19
+ function makeImageFile(name) {
20
+ return new File(['fake-image-bytes'], name, { type: 'image/png' });
21
+ }
22
+ function makePdfFile(name) {
23
+ return new File(['fake-pdf-bytes'], name, { type: 'application/pdf' });
24
+ }
25
+ describe('MkFileUpload — object URL lifecycle (A3)', () => {
26
+ let created;
27
+ let revoked;
28
+ let counter;
29
+ let originalCreate;
30
+ let originalRevoke;
31
+ beforeEach(() => {
32
+ var _a, _b;
33
+ created = [];
34
+ revoked = [];
35
+ counter = 0;
36
+ // Capture whatever the environment has (likely undefined on
37
+ // Node's URL — jsdom only patches its own `window.URL`, not
38
+ // `globalThis.URL`) and install our own via `defineProperty`
39
+ // to defeat any non-writable getter.
40
+ originalCreate = (_a = globalThis.URL) === null || _a === void 0 ? void 0 : _a.createObjectURL;
41
+ originalRevoke = (_b = globalThis.URL) === null || _b === void 0 ? void 0 : _b.revokeObjectURL;
42
+ Object.defineProperty(globalThis.URL, 'createObjectURL', {
43
+ configurable: true,
44
+ writable: true,
45
+ value: vi.fn((_blob) => {
46
+ const url = `blob:test/${++counter}`;
47
+ created.push(url);
48
+ return url;
49
+ }),
50
+ });
51
+ Object.defineProperty(globalThis.URL, 'revokeObjectURL', {
52
+ configurable: true,
53
+ writable: true,
54
+ value: vi.fn((url) => {
55
+ revoked.push(url);
56
+ }),
57
+ });
58
+ });
59
+ afterEach(() => {
60
+ // IMPORTANT: run cleanup() FIRST so the component's useEffect
61
+ // cleanup fires while our mocks are still installed. If we
62
+ // restore URL.revokeObjectURL to its original (undefined on
63
+ // Node) before unmounting, the cleanup callback would crash
64
+ // trying to call a missing function.
65
+ cleanup();
66
+ Object.defineProperty(globalThis.URL, 'createObjectURL', {
67
+ configurable: true,
68
+ writable: true,
69
+ value: originalCreate,
70
+ });
71
+ Object.defineProperty(globalThis.URL, 'revokeObjectURL', {
72
+ configurable: true,
73
+ writable: true,
74
+ value: originalRevoke,
75
+ });
76
+ });
77
+ it('creates one preview URL per image file selected', () => {
78
+ const onFiles = vi.fn();
79
+ const { container } = render(_jsx(MkFileUpload, { onFiles: onFiles, accept: "image/*" }));
80
+ const input = container.querySelector('input[type="file"]');
81
+ expect(input).toBeTruthy();
82
+ const files = [makeImageFile('a.png'), makeImageFile('b.png')];
83
+ Object.defineProperty(input, 'files', { value: files, configurable: true });
84
+ fireEvent.change(input);
85
+ expect(created.length).toBe(2);
86
+ // Selection is still mounted — no revokes yet (they happen on
87
+ // unmount or on single-select replacement).
88
+ expect(revoked.length).toBe(0);
89
+ });
90
+ it('revokes all previews on unmount', () => {
91
+ const onFiles = vi.fn();
92
+ const { container, unmount } = render(_jsx(MkFileUpload, { onFiles: onFiles, accept: "image/*", multiple: true }));
93
+ const input = container.querySelector('input[type="file"]');
94
+ const files = [makeImageFile('a.png'), makeImageFile('b.png'), makeImageFile('c.png')];
95
+ Object.defineProperty(input, 'files', { value: files, configurable: true });
96
+ fireEvent.change(input);
97
+ expect(created.length).toBe(3);
98
+ unmount();
99
+ expect(revoked.length).toBe(3);
100
+ expect(revoked.sort()).toEqual([...created].sort());
101
+ });
102
+ it('revokes previous previews when single-select replaces the fileList', () => {
103
+ const onFiles = vi.fn();
104
+ const { container, rerender } = render(_jsx(MkFileUpload, { onFiles: onFiles, accept: "image/*" }));
105
+ const input = container.querySelector('input[type="file"]');
106
+ Object.defineProperty(input, 'files', {
107
+ value: [makeImageFile('a.png'), makeImageFile('b.png')],
108
+ configurable: true,
109
+ });
110
+ fireEvent.change(input);
111
+ expect(created.length).toBe(2);
112
+ expect(revoked.length).toBe(0);
113
+ // Second selection: 1 image replaces the previous 2.
114
+ rerender(_jsx(MkFileUpload, { onFiles: onFiles, accept: "image/*" }));
115
+ const input2 = container.querySelector('input[type="file"]');
116
+ Object.defineProperty(input2, 'files', {
117
+ value: [makeImageFile('c.png')],
118
+ configurable: true,
119
+ });
120
+ fireEvent.change(input2);
121
+ expect(created.length).toBe(3);
122
+ expect(revoked.length).toBe(2);
123
+ // The 2 revokes must be the OLD URLs, not the new one.
124
+ expect(revoked).toEqual(created.slice(0, 2));
125
+ });
126
+ it('does not create a preview for non-image MIME types', () => {
127
+ const onFiles = vi.fn();
128
+ const { container } = render(_jsx(MkFileUpload, { onFiles: onFiles }));
129
+ const input = container.querySelector('input[type="file"]');
130
+ Object.defineProperty(input, 'files', {
131
+ value: [makePdfFile('doc.pdf')],
132
+ configurable: true,
133
+ });
134
+ fireEvent.change(input);
135
+ expect(created.length).toBe(0);
136
+ expect(revoked.length).toBe(0);
137
+ });
138
+ it('revokes only the removed file preview when removeFile is called', () => {
139
+ const onFiles = vi.fn();
140
+ const { container, rerender } = render(_jsx(MkFileUpload, { onFiles: onFiles, accept: "image/*", multiple: true }));
141
+ const input = container.querySelector('input[type="file"]');
142
+ Object.defineProperty(input, 'files', {
143
+ value: [makeImageFile('a.png'), makeImageFile('b.png'), makeImageFile('c.png')],
144
+ configurable: true,
145
+ });
146
+ fireEvent.change(input);
147
+ const urlsBeforeRemove = [...created];
148
+ const removedUrl = urlsBeforeRemove[1];
149
+ expect(removedUrl).toBeDefined();
150
+ rerender(_jsx(MkFileUpload, { onFiles: onFiles, accept: "image/*", multiple: true }));
151
+ const removeButtons = container.querySelectorAll('button[aria-label="Eliminar"]');
152
+ fireEvent.click(removeButtons[1]);
153
+ expect(revoked.length).toBe(1);
154
+ expect(revoked[0]).toBe(removedUrl);
155
+ });
156
+ });
157
+ //# sourceMappingURL=MkFileUpload-leak.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkFileUpload-leak.test.js","sourceRoot":"","sources":["../../src/components/MkFileUpload-leak.test.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,SAAS,aAAa,CAAC,IAAY;IAC/B,OAAO,IAAI,IAAI,CAAC,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;AACvE,CAAC;AAED,SAAS,WAAW,CAAC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C;QACtC,MAAM,UAAU,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;QACvC,MAAM,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAC;QAEjC,QAAQ,CAAC,KAAC,YAAY,IAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAC,SAAS,EAAC,QAAQ,SAAG,CAAC,CAAC;QACvE,MAAM,aAAa,GAAG,SAAS,CAAC,gBAAgB,CAAC,+BAA+B,CAAC,CAAC;QAClF,SAAS,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;QAElC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MkFileUpload.stories.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkFileUpload.stories.test.d.ts","sourceRoot":"","sources":["../../src/components/MkFileUpload.stories.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Smoke snapshot for MkFileUpload — required by R-MK-002.
4
+ */
5
+ import { describe, it, expect, afterEach, vi } from 'vitest';
6
+ import { render, cleanup } from '@testing-library/react';
7
+ import { MkFileUpload } from './MkFileUpload';
8
+ describe('MkFileUpload story smoke', () => {
9
+ afterEach(cleanup);
10
+ it('renders default', () => {
11
+ const { container } = render(_jsx(MkFileUpload, { onFiles: vi.fn(), label: "Sube un archivo" }));
12
+ expect(container.firstChild).toMatchSnapshot();
13
+ });
14
+ });
15
+ //# sourceMappingURL=MkFileUpload.stories.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkFileUpload.stories.test.js","sourceRoot":"","sources":["../../src/components/MkFileUpload.stories.test.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACtC,SAAS,CAAC,OAAO,CAAC,CAAC;IAEnB,EAAE,CAAC,iBAAiB,EAAE,GAAG,EAAE;QACvB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CACxB,KAAC,YAAY,IAAC,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,EAAC,iBAAiB,GAAG,CAC7D,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;IACnD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MkInfiniteList.stories.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkInfiniteList.stories.test.d.ts","sourceRoot":"","sources":["../../src/components/MkInfiniteList.stories.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Smoke snapshot for MkInfiniteList — required by R-MK-002.
4
+ *
5
+ * Note: jsdom's IntersectionObserver is not implemented natively,
6
+ * so onLoadMore will not be triggered by the observer. We just
7
+ * render the items as-is. The snapshot captures the component
8
+ * structure.
9
+ */
10
+ import { describe, it, expect, afterEach, vi } from 'vitest';
11
+ import { render, cleanup } from '@testing-library/react';
12
+ import { MkInfiniteList } from './MkInfiniteList';
13
+ describe('MkInfiniteList story smoke', () => {
14
+ afterEach(cleanup);
15
+ it('renders with items', () => {
16
+ const { container } = render(_jsx(MkInfiniteList, { items: [
17
+ { id: 1, name: 'A' },
18
+ { id: 2, name: 'B' },
19
+ { id: 3, name: 'C' },
20
+ ], renderItem: (item) => _jsx("div", { children: item.name }, item.id), hasMore: true, loading: false, onLoadMore: vi.fn() }));
21
+ expect(container.firstChild).toMatchSnapshot();
22
+ });
23
+ });
24
+ //# sourceMappingURL=MkInfiniteList.stories.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkInfiniteList.stories.test.js","sourceRoot":"","sources":["../../src/components/MkInfiniteList.stories.test.tsx"],"names":[],"mappings":";AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IACxC,SAAS,CAAC,OAAO,CAAC,CAAC;IAEnB,EAAE,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAC1B,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CACxB,KAAC,cAAc,IACX,KAAK,EAAE;gBACH,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE;gBACpB,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE;gBACpB,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE;aACvB,EACD,UAAU,EAAE,CAAC,IAAS,EAAE,EAAE,CAAC,wBAAoB,IAAI,CAAC,IAAI,IAAnB,IAAI,CAAC,EAAE,CAAmB,EAC/D,OAAO,QACP,OAAO,EAAE,KAAK,EACd,UAAU,EAAE,EAAE,CAAC,EAAE,EAAE,GACrB,CACL,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;IACnD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MkInput.stories.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkInput.stories.test.d.ts","sourceRoot":"","sources":["../../src/components/MkInput.stories.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Smoke snapshot for MkInput — generates `__snapshots__/MkInput.stories.snap`.
4
+ * Required by R-MK-002 stories coverage rule (mk:lint:stories).
5
+ */
6
+ import { describe, it, expect, afterEach } from 'vitest';
7
+ import { render, cleanup } from '@testing-library/react';
8
+ import { MkInput } from './MkInput';
9
+ describe('MkInput story smoke', () => {
10
+ afterEach(cleanup);
11
+ it('renders default', () => {
12
+ const { container } = render(_jsx(MkInput, { placeholder: "Enter your name" }));
13
+ expect(container.firstChild).toMatchSnapshot();
14
+ });
15
+ });
16
+ //# sourceMappingURL=MkInput.stories.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkInput.stories.test.js","sourceRoot":"","sources":["../../src/components/MkInput.stories.test.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACjC,SAAS,CAAC,OAAO,CAAC,CAAC;IAEnB,EAAE,CAAC,iBAAiB,EAAE,GAAG,EAAE;QACvB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,KAAC,OAAO,IAAC,WAAW,EAAC,iBAAiB,GAAG,CAAC,CAAC;QACxE,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;IACnD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MkLoading.stories.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkLoading.stories.test.d.ts","sourceRoot":"","sources":["../../src/components/MkLoading.stories.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Smoke snapshot for MkLoading — required by R-MK-002.
4
+ */
5
+ import { describe, it, expect, afterEach } from 'vitest';
6
+ import { render, cleanup } from '@testing-library/react';
7
+ import { MkLoading } from './MkLoading';
8
+ describe('MkLoading story smoke', () => {
9
+ afterEach(cleanup);
10
+ it('renders with label', () => {
11
+ const { container } = render(_jsx(MkLoading, { label: "Cargando..." }));
12
+ expect(container.firstChild).toMatchSnapshot();
13
+ });
14
+ });
15
+ //# sourceMappingURL=MkLoading.stories.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkLoading.stories.test.js","sourceRoot":"","sources":["../../src/components/MkLoading.stories.test.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACnC,SAAS,CAAC,OAAO,CAAC,CAAC;IAEnB,EAAE,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAC1B,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,KAAC,SAAS,IAAC,KAAK,EAAC,aAAa,GAAG,CAAC,CAAC;QAChE,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;IACnD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MkProgressBar.stories.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkProgressBar.stories.test.d.ts","sourceRoot":"","sources":["../../src/components/MkProgressBar.stories.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Smoke snapshot for MkProgressBar — required by R-MK-002.
4
+ */
5
+ import { describe, it, expect, afterEach } from 'vitest';
6
+ import { render, cleanup } from '@testing-library/react';
7
+ import { MkProgressBar } from './MkProgressBar';
8
+ describe('MkProgressBar story smoke', () => {
9
+ afterEach(cleanup);
10
+ it('renders with label and percent', () => {
11
+ const { container } = render(_jsx(MkProgressBar, { value: 65, label: "Progreso", showPercent: true }));
12
+ expect(container.firstChild).toMatchSnapshot();
13
+ });
14
+ });
15
+ //# sourceMappingURL=MkProgressBar.stories.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkProgressBar.stories.test.js","sourceRoot":"","sources":["../../src/components/MkProgressBar.stories.test.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACvC,SAAS,CAAC,OAAO,CAAC,CAAC;IAEnB,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACtC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CACxB,KAAC,aAAa,IAAC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAC,UAAU,EAAC,WAAW,SAAG,CAC5D,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;IACnD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MkRadio.stories.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkRadio.stories.test.d.ts","sourceRoot":"","sources":["../../src/components/MkRadio.stories.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Smoke snapshot for MkRadio — required by R-MK-002 (mk:lint:stories).
4
+ */
5
+ import { describe, it, expect, afterEach } from 'vitest';
6
+ import { render, cleanup } from '@testing-library/react';
7
+ import { MkRadio } from './MkRadio';
8
+ describe('MkRadio story smoke', () => {
9
+ afterEach(cleanup);
10
+ it('renders with options', () => {
11
+ const { container } = render(_jsx(MkRadio, { label: "G\u00E9nero", options: [
12
+ { value: 'M', label: 'Masculino' },
13
+ { value: 'F', label: 'Femenino' },
14
+ ] }));
15
+ expect(container.firstChild).toMatchSnapshot();
16
+ });
17
+ });
18
+ //# sourceMappingURL=MkRadio.stories.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkRadio.stories.test.js","sourceRoot":"","sources":["../../src/components/MkRadio.stories.test.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACjC,SAAS,CAAC,OAAO,CAAC,CAAC;IAEnB,EAAE,CAAC,sBAAsB,EAAE,GAAG,EAAE;QAC5B,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CACxB,KAAC,OAAO,IACJ,KAAK,EAAC,aAAQ,EACd,OAAO,EAAE;gBACL,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE;gBAClC,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE;aACpC,GACH,CACL,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;IACnD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MkSearchInput.stories.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkSearchInput.stories.test.d.ts","sourceRoot":"","sources":["../../src/components/MkSearchInput.stories.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Smoke snapshot for MkSearchInput — required by R-MK-002.
4
+ */
5
+ import { describe, it, expect, afterEach, vi } from 'vitest';
6
+ import { render, cleanup } from '@testing-library/react';
7
+ import { MkSearchInput } from './MkSearchInput';
8
+ describe('MkSearchInput story smoke', () => {
9
+ afterEach(cleanup);
10
+ it('renders with placeholder', () => {
11
+ const { container } = render(_jsx(MkSearchInput, { onSearch: vi.fn(), placeholder: "Buscar..." }));
12
+ expect(container.firstChild).toMatchSnapshot();
13
+ });
14
+ });
15
+ //# sourceMappingURL=MkSearchInput.stories.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkSearchInput.stories.test.js","sourceRoot":"","sources":["../../src/components/MkSearchInput.stories.test.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACvC,SAAS,CAAC,OAAO,CAAC,CAAC;IAEnB,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QAChC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CACxB,KAAC,aAAa,IAAC,QAAQ,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,WAAW,EAAC,WAAW,GAAG,CAC/D,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;IACnD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MkSelect.stories.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkSelect.stories.test.d.ts","sourceRoot":"","sources":["../../src/components/MkSelect.stories.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Smoke snapshot for MkSelect — generates `__snapshots__/MkSelect.stories.snap`.
4
+ * Required by R-MK-002 stories coverage rule (mk:lint:stories).
5
+ */
6
+ import { describe, it, expect, afterEach } from 'vitest';
7
+ import { render, cleanup } from '@testing-library/react';
8
+ import { MkSelect } from './MkSelect';
9
+ const FRUITS = [
10
+ { label: 'Apple', value: 'apple' },
11
+ { label: 'Banana', value: 'banana' },
12
+ { label: 'Cherry', value: 'cherry' },
13
+ ];
14
+ describe('MkSelect story smoke', () => {
15
+ afterEach(cleanup);
16
+ it('renders with options', () => {
17
+ const { container } = render(_jsx(MkSelect, { label: "Pick a fruit", options: FRUITS }));
18
+ expect(container.firstChild).toMatchSnapshot();
19
+ });
20
+ });
21
+ //# sourceMappingURL=MkSelect.stories.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkSelect.stories.test.js","sourceRoot":"","sources":["../../src/components/MkSelect.stories.test.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,MAAM,GAAG;IACX,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;IACpC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;CACvC,CAAC;AAEF,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IAClC,SAAS,CAAC,OAAO,CAAC,CAAC;IAEnB,EAAE,CAAC,sBAAsB,EAAE,GAAG,EAAE;QAC5B,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CACxB,KAAC,QAAQ,IAAC,KAAK,EAAC,cAAc,EAAC,OAAO,EAAE,MAAM,GAAI,CACrD,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;IACnD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MkSkeleton.stories.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkSkeleton.stories.test.d.ts","sourceRoot":"","sources":["../../src/components/MkSkeleton.stories.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Smoke snapshot for MkSkeleton — required by R-MK-002.
4
+ */
5
+ import { describe, it, expect, afterEach } from 'vitest';
6
+ import { render, cleanup } from '@testing-library/react';
7
+ import { MkSkeleton } from './MkSkeleton';
8
+ describe('MkSkeleton story smoke', () => {
9
+ afterEach(cleanup);
10
+ it('renders text lines', () => {
11
+ const { container } = render(_jsx(MkSkeleton, { variant: "text", lines: 3 }));
12
+ expect(container.firstChild).toMatchSnapshot();
13
+ });
14
+ });
15
+ //# sourceMappingURL=MkSkeleton.stories.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkSkeleton.stories.test.js","sourceRoot":"","sources":["../../src/components/MkSkeleton.stories.test.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACpC,SAAS,CAAC,OAAO,CAAC,CAAC;IAEnB,EAAE,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAC1B,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,KAAC,UAAU,IAAC,OAAO,EAAC,MAAM,EAAC,KAAK,EAAE,CAAC,GAAI,CAAC,CAAC;QACtE,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;IACnD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MkSwitch.stories.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkSwitch.stories.test.d.ts","sourceRoot":"","sources":["../../src/components/MkSwitch.stories.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Smoke snapshot for MkSwitch — required by R-MK-002.
4
+ */
5
+ import { describe, it, expect, afterEach } from 'vitest';
6
+ import { render, cleanup } from '@testing-library/react';
7
+ import { MkSwitch } from './MkSwitch';
8
+ describe('MkSwitch story smoke', () => {
9
+ afterEach(cleanup);
10
+ it('renders on', () => {
11
+ const { container } = render(_jsx(MkSwitch, { label: "Enabled", checked: true }));
12
+ expect(container.firstChild).toMatchSnapshot();
13
+ });
14
+ });
15
+ //# sourceMappingURL=MkSwitch.stories.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkSwitch.stories.test.js","sourceRoot":"","sources":["../../src/components/MkSwitch.stories.test.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IAClC,SAAS,CAAC,OAAO,CAAC,CAAC;IAEnB,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE;QAClB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,KAAC,QAAQ,IAAC,KAAK,EAAC,SAAS,EAAC,OAAO,SAAG,CAAC,CAAC;QACnE,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;IACnD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Regression test for the smart keyExtractor added in v1.3.0.
3
+ *
4
+ * Before the fix, MkTable used `key={idx}` for every row. React
5
+ * reconciled rows by position, so sort / filter operations caused
6
+ * rows to keep their previous DOM nodes (and their previous state)
7
+ * even when their data had moved. The fix:
8
+ *
9
+ * 1. A `keyExtractor` prop is honored (consumer override).
10
+ * 2. The default tries `id`, then `uuid`, then `key`.
11
+ * 3. When none of those exist, the row logs a one-time
12
+ * `console.warn` in dev and falls back to a positional key.
13
+ */
14
+ export {};
15
+ //# sourceMappingURL=MkTable-keyExtractor.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkTable-keyExtractor.test.d.ts","sourceRoot":"","sources":["../../src/components/MkTable-keyExtractor.test.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
@@ -0,0 +1,65 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Regression test for the smart keyExtractor added in v1.3.0.
4
+ *
5
+ * Before the fix, MkTable used `key={idx}` for every row. React
6
+ * reconciled rows by position, so sort / filter operations caused
7
+ * rows to keep their previous DOM nodes (and their previous state)
8
+ * even when their data had moved. The fix:
9
+ *
10
+ * 1. A `keyExtractor` prop is honored (consumer override).
11
+ * 2. The default tries `id`, then `uuid`, then `key`.
12
+ * 3. When none of those exist, the row logs a one-time
13
+ * `console.warn` in dev and falls back to a positional key.
14
+ */
15
+ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
16
+ import { render } from '@testing-library/react';
17
+ import { MkTable } from './MkTable';
18
+ describe('MkTable — smart keyExtractor (D1)', () => {
19
+ let warnSpy;
20
+ beforeEach(() => {
21
+ warnSpy = vi.spyOn(console, 'warn').mockImplementation(() => { });
22
+ });
23
+ afterEach(() => {
24
+ warnSpy.mockRestore();
25
+ });
26
+ it('uses row.id when present', () => {
27
+ var _a, _b, _c, _d;
28
+ const data = [{ id: 'a', name: 'Ana' }, { id: 'b', name: 'Bea' }];
29
+ const { container } = render(_jsx(MkTable, { data: data, columns: [{ key: 'name', label: 'Name' }] }));
30
+ const rows = container.querySelectorAll('tbody tr');
31
+ expect((_b = (_a = rows[0]) === null || _a === void 0 ? void 0 : _a.getAttribute('style')) !== null && _b !== void 0 ? _b : '').toContain('--row-index: 0');
32
+ expect((_d = (_c = rows[1]) === null || _c === void 0 ? void 0 : _c.getAttribute('style')) !== null && _d !== void 0 ? _d : '').toContain('--row-index: 1');
33
+ // Internal: React keys aren't rendered as attributes, so we
34
+ // assert via the absence of the fallback warning instead.
35
+ expect(warnSpy).not.toHaveBeenCalled();
36
+ });
37
+ it('falls back to row.uuid when id is missing', () => {
38
+ const data = [{ uuid: 'u-1' }, { uuid: 'u-2' }];
39
+ render(_jsx(MkTable, { data: data, columns: [{ key: 'uuid', label: 'UUID' }] }));
40
+ expect(warnSpy).not.toHaveBeenCalled();
41
+ });
42
+ it('falls back to row.key when id and uuid are missing', () => {
43
+ const data = [{ key: 'k-1' }, { key: 'k-2' }];
44
+ render(_jsx(MkTable, { data: data, columns: [{ key: 'key', label: 'Key' }] }));
45
+ expect(warnSpy).not.toHaveBeenCalled();
46
+ });
47
+ it('warns and falls back to positional key when no id/uuid/key', () => {
48
+ var _a;
49
+ const data = [{ name: 'Ana' }, { name: 'Bea' }];
50
+ render(_jsx(MkTable, { data: data, columns: [{ key: 'name', label: 'Name' }] }));
51
+ expect(warnSpy).toHaveBeenCalledTimes(2); // one per row
52
+ const firstArg = (_a = warnSpy.mock.calls[0]) === null || _a === void 0 ? void 0 : _a[0];
53
+ const message = typeof firstArg === 'string' ? firstArg : '';
54
+ expect(message).toContain('has no id/uuid/key');
55
+ expect(message).toContain('positional key');
56
+ });
57
+ it('honors a consumer-supplied keyExtractor', () => {
58
+ const data = [{ id: 'a' }, { id: 'b' }, { id: 'c' }];
59
+ const keyExtractor = vi.fn((item) => `custom-${item.id}`);
60
+ render(_jsx(MkTable, { data: data, columns: [{ key: 'id', label: 'ID' }], keyExtractor: keyExtractor }));
61
+ expect(keyExtractor).toHaveBeenCalledTimes(3);
62
+ expect(warnSpy).not.toHaveBeenCalled();
63
+ });
64
+ });
65
+ //# sourceMappingURL=MkTable-keyExtractor.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkTable-keyExtractor.test.js","sourceRoot":"","sources":["../../src/components/MkTable-keyExtractor.test.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE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d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkTable.stories.test.d.ts","sourceRoot":"","sources":["../../src/components/MkTable.stories.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Smoke snapshot for MkTable — generates `__snapshots__/MkTable.stories.snap`.
4
+ * Required by R-MK-002 stories coverage rule (mk:lint:stories).
5
+ */
6
+ import { describe, it, expect, afterEach } from 'vitest';
7
+ import { render, cleanup } from '@testing-library/react';
8
+ import { MkTable } from './MkTable';
9
+ const SAMPLE_USERS = [
10
+ { id: 1, name: 'Mario Guzman', email: 'mario@makromania.com' },
11
+ { id: 2, name: 'Ana López', email: 'ana@example.com' },
12
+ ];
13
+ const COLUMNS = [
14
+ { key: 'id', label: 'ID' },
15
+ { key: 'name', label: 'Name' },
16
+ { key: 'email', label: 'Email' },
17
+ ];
18
+ describe('MkTable story smoke', () => {
19
+ afterEach(cleanup);
20
+ it('renders with rows', () => {
21
+ const { container } = render(_jsx(MkTable, { data: SAMPLE_USERS, columns: COLUMNS }));
22
+ expect(container.firstChild).toMatchSnapshot();
23
+ });
24
+ });
25
+ //# sourceMappingURL=MkTable.stories.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MkTable.stories.test.js","sourceRoot":"","sources":["../../src/components/MkTable.stories.test.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,MAAM,YAAY,GAAW;IACzB,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,sBAAsB,EAAE;IAC9D,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,iBAAiB,EAAE;CACzD,CAAC;AAEF,MAAM,OAAO,GAAG;IACZ,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;IAC1B,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAC9B,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;CACnC,CAAC;AAEF,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACjC,SAAS,CAAC,OAAO,CAAC,CAAC;IAEnB,EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE;QACzB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CACxB,KAAC,OAAO,IAAO,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,OAAc,GAAI,CACjE,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,eAAe,EAAE,CAAC;IACnD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MkTextArea.stories.test.d.ts.map