@synerise/ds-mocks 0.1.11 → 0.1.13

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 (62) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/Button/index.js +5 -1
  3. package/dist/Button/jest.d.ts +1 -1
  4. package/dist/Button/jest.js +25 -36
  5. package/dist/Button/vi.d.ts +3 -4
  6. package/dist/Button/vi.js +19 -50
  7. package/dist/Cruds/index.js +5 -1
  8. package/dist/Cruds/jest.d.ts +1 -1
  9. package/dist/Cruds/jest.js +33 -52
  10. package/dist/Cruds/vi.d.ts +3 -4
  11. package/dist/Cruds/vi.js +27 -66
  12. package/dist/Dropdown/index.js +5 -1
  13. package/dist/Dropdown/jest.d.ts +1 -1
  14. package/dist/Dropdown/jest.js +31 -38
  15. package/dist/Dropdown/vi.d.ts +3 -4
  16. package/dist/Dropdown/vi.js +25 -52
  17. package/dist/Form/index.js +5 -1
  18. package/dist/Form/jest.d.ts +2 -2
  19. package/dist/Form/jest.js +58 -75
  20. package/dist/Form/vi.d.ts +6 -16
  21. package/dist/Form/vi.js +56 -93
  22. package/dist/Icon/index.js +6 -1
  23. package/dist/Icon/jest.d.ts +1 -1
  24. package/dist/Icon/jest.js +34 -75
  25. package/dist/Icon/vi.d.ts +4 -5
  26. package/dist/Icon/vi.js +26 -69
  27. package/dist/Input/index.js +5 -1
  28. package/dist/Input/jest.d.ts +1 -1
  29. package/dist/Input/jest.js +35 -58
  30. package/dist/Input/vi.d.ts +5 -6
  31. package/dist/Input/vi.js +29 -72
  32. package/dist/Modal/index.js +5 -1
  33. package/dist/Modal/jest.d.ts +1 -1
  34. package/dist/Modal/jest.js +52 -66
  35. package/dist/Modal/vi.d.ts +3 -4
  36. package/dist/Modal/vi.js +46 -80
  37. package/dist/Scrollbar/index.js +4 -1
  38. package/dist/Scrollbar/vi.d.ts +1 -1
  39. package/dist/Scrollbar/vi.js +10 -22
  40. package/dist/Select/index.js +5 -1
  41. package/dist/Select/jest.d.ts +1 -1
  42. package/dist/Select/jest.js +48 -66
  43. package/dist/Select/vi.d.ts +5 -9
  44. package/dist/Select/vi.js +42 -80
  45. package/dist/Table/index.js +5 -1
  46. package/dist/Table/jest.d.ts +1 -1
  47. package/dist/Table/jest.js +85 -105
  48. package/dist/Table/vi.d.ts +3 -4
  49. package/dist/Table/vi.js +79 -120
  50. package/dist/Tabs/index.js +5 -1
  51. package/dist/Tabs/jest.d.ts +1 -1
  52. package/dist/Tabs/jest.js +29 -45
  53. package/dist/Tabs/vi.d.ts +3 -4
  54. package/dist/Tabs/vi.js +23 -59
  55. package/dist/Tooltip/index.js +5 -1
  56. package/dist/Tooltip/jest.d.ts +1 -1
  57. package/dist/Tooltip/jest.js +33 -39
  58. package/dist/Tooltip/vi.d.ts +3 -4
  59. package/dist/Tooltip/vi.js +27 -55
  60. package/dist/index.js +40 -14
  61. package/dist/jest.js +36 -11
  62. package/package.json +119 -119
@@ -1,59 +1,36 @@
1
- import React from 'react';
2
- export var mockInput = function mockInput() {
3
- jest.mock('@synerise/ds-input', function () {
4
- return {
5
- __esModule: true,
6
- "default": jest.fn(function (_ref) {
7
- var value = _ref.value,
8
- defaultValue = _ref.defaultValue,
9
- onChange = _ref.onChange,
10
- onBlur = _ref.onBlur,
11
- onFocus = _ref.onFocus,
12
- placeholder = _ref.placeholder,
13
- disabled = _ref.disabled,
14
- error = _ref.error,
15
- className = _ref.className,
16
- dataTestId = _ref['data-testid'];
17
- return /*#__PURE__*/React.createElement("input", {
18
- className: "ds-input " + (className || ''),
19
- "data-testid": dataTestId || 'ds-input',
20
- "data-error": error,
21
- value: value,
22
- defaultValue: defaultValue,
23
- onChange: onChange,
24
- onBlur: onBlur,
25
- onFocus: onFocus,
26
- placeholder: placeholder,
27
- disabled: disabled
28
- });
29
- }),
30
- TextArea: jest.fn(function (_ref2) {
31
- var value = _ref2.value,
32
- onChange = _ref2.onChange,
33
- placeholder = _ref2.placeholder,
34
- disabled = _ref2.disabled,
35
- dataTestId = _ref2['data-testid'];
36
- return /*#__PURE__*/React.createElement("textarea", {
37
- "data-testid": dataTestId || 'ds-textarea',
38
- value: value,
39
- onChange: onChange,
40
- placeholder: placeholder,
41
- disabled: disabled
42
- });
43
- })
44
- };
45
- });
1
+ import { jsx } from "react/jsx-runtime";
2
+ const mockInput = () => {
3
+ jest.mock("@synerise/ds-input", () => ({
4
+ __esModule: true,
5
+ default: jest.fn(({
6
+ value,
7
+ defaultValue,
8
+ onChange,
9
+ onBlur,
10
+ onFocus,
11
+ placeholder,
12
+ disabled,
13
+ error,
14
+ className,
15
+ "data-testid": dataTestId
16
+ }) => /* @__PURE__ */ jsx("input", { className: `ds-input ${className || ""}`, "data-testid": dataTestId || "ds-input", "data-error": error, value, defaultValue, onChange, onBlur, onFocus, placeholder, disabled })),
17
+ TextArea: jest.fn(({
18
+ value,
19
+ onChange,
20
+ placeholder,
21
+ disabled,
22
+ "data-testid": dataTestId
23
+ }) => /* @__PURE__ */ jsx("textarea", { "data-testid": dataTestId || "ds-textarea", value, onChange, placeholder, disabled }))
24
+ }));
25
+ };
26
+ const mockInputMinimal = () => {
27
+ jest.mock("@synerise/ds-input", () => ({
28
+ __esModule: true,
29
+ default: jest.fn(() => null),
30
+ TextArea: jest.fn(() => null)
31
+ }));
32
+ };
33
+ export {
34
+ mockInput,
35
+ mockInputMinimal
46
36
  };
47
- export var mockInputMinimal = function mockInputMinimal() {
48
- jest.mock('@synerise/ds-input', function () {
49
- return {
50
- __esModule: true,
51
- "default": jest.fn(function () {
52
- return null;
53
- }),
54
- TextArea: jest.fn(function () {
55
- return null;
56
- })
57
- };
58
- });
59
- };
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import type { InputProps } from '@synerise/ds-input';
1
+ import { InputProps } from '@synerise/ds-input';
3
2
  export type MockInputProps = InputProps & {
4
3
  'data-testid'?: string;
5
4
  };
@@ -15,8 +14,8 @@ export type MockInputProps = InputProps & {
15
14
  * ```
16
15
  */
17
16
  export declare const inputMockFactory: () => {
18
- default: import("vitest").Mock<({ value, defaultValue, onChange, onBlur, onFocus, placeholder, disabled, error, className, "data-testid": dataTestId, }: MockInputProps) => React.JSX.Element>;
19
- TextArea: import("vitest").Mock<({ value, onChange, placeholder, disabled, "data-testid": dataTestId, }: MockInputProps) => React.JSX.Element>;
17
+ default: any;
18
+ TextArea: any;
20
19
  };
21
20
  /**
22
21
  * Factory function for minimal Input mock.
@@ -27,6 +26,6 @@ export declare const inputMockFactory: () => {
27
26
  * ```
28
27
  */
29
28
  export declare const inputMinimalMockFactory: () => {
30
- default: import("vitest").Mock<() => null>;
31
- TextArea: import("vitest").Mock<() => null>;
29
+ default: any;
30
+ TextArea: any;
32
31
  };
package/dist/Input/vi.js CHANGED
@@ -1,73 +1,30 @@
1
- import React from 'react';
2
- /**
3
- * Factory function for Input mock.
4
- * Use directly with vi.mock() to avoid hoisting issues.
5
- *
6
- * @example
7
- * ```typescript
8
- * import { inputMockFactory } from '@synerise/ds-mocks/Input/vi';
9
- *
10
- * vi.mock('@synerise/ds-input', inputMockFactory);
11
- * ```
12
- */
13
- export var inputMockFactory = function inputMockFactory() {
14
- return {
15
- "default": vi.fn(function (_ref) {
16
- var value = _ref.value,
17
- defaultValue = _ref.defaultValue,
18
- onChange = _ref.onChange,
19
- onBlur = _ref.onBlur,
20
- onFocus = _ref.onFocus,
21
- placeholder = _ref.placeholder,
22
- disabled = _ref.disabled,
23
- error = _ref.error,
24
- className = _ref.className,
25
- dataTestId = _ref['data-testid'];
26
- return /*#__PURE__*/React.createElement("input", {
27
- className: "ds-input " + (className || ''),
28
- "data-testid": dataTestId || 'ds-input',
29
- "data-error": error,
30
- value: value,
31
- defaultValue: defaultValue,
32
- onChange: onChange,
33
- onBlur: onBlur,
34
- onFocus: onFocus,
35
- placeholder: placeholder,
36
- disabled: disabled
37
- });
38
- }),
39
- TextArea: vi.fn(function (_ref2) {
40
- var value = _ref2.value,
41
- onChange = _ref2.onChange,
42
- placeholder = _ref2.placeholder,
43
- disabled = _ref2.disabled,
44
- dataTestId = _ref2['data-testid'];
45
- return /*#__PURE__*/React.createElement("textarea", {
46
- "data-testid": dataTestId || 'ds-textarea',
47
- value: value,
48
- onChange: onChange,
49
- placeholder: placeholder,
50
- disabled: disabled
51
- });
52
- })
53
- };
1
+ import { jsx } from "react/jsx-runtime";
2
+ const inputMockFactory = () => ({
3
+ default: vi.fn(({
4
+ value,
5
+ defaultValue,
6
+ onChange,
7
+ onBlur,
8
+ onFocus,
9
+ placeholder,
10
+ disabled,
11
+ error,
12
+ className,
13
+ "data-testid": dataTestId
14
+ }) => /* @__PURE__ */ jsx("input", { className: `ds-input ${className || ""}`, "data-testid": dataTestId || "ds-input", "data-error": error, value, defaultValue, onChange, onBlur, onFocus, placeholder, disabled })),
15
+ TextArea: vi.fn(({
16
+ value,
17
+ onChange,
18
+ placeholder,
19
+ disabled,
20
+ "data-testid": dataTestId
21
+ }) => /* @__PURE__ */ jsx("textarea", { "data-testid": dataTestId || "ds-textarea", value, onChange, placeholder, disabled }))
22
+ });
23
+ const inputMinimalMockFactory = () => ({
24
+ default: vi.fn(() => null),
25
+ TextArea: vi.fn(() => null)
26
+ });
27
+ export {
28
+ inputMinimalMockFactory,
29
+ inputMockFactory
54
30
  };
55
-
56
- /**
57
- * Factory function for minimal Input mock.
58
- *
59
- * @example
60
- * ```typescript
61
- * vi.mock('@synerise/ds-input', inputMinimalMockFactory);
62
- * ```
63
- */
64
- export var inputMinimalMockFactory = function inputMinimalMockFactory() {
65
- return {
66
- "default": vi.fn(function () {
67
- return null;
68
- }),
69
- TextArea: vi.fn(function () {
70
- return null;
71
- })
72
- };
73
- };
@@ -1 +1,5 @@
1
- export * from './vi';
1
+ import { modalMinimalMockFactory, modalMockFactory } from "./vi.js";
2
+ export {
3
+ modalMinimalMockFactory,
4
+ modalMockFactory
5
+ };
@@ -1,4 +1,4 @@
1
- import type { ModalProps } from '@synerise/ds-modal';
1
+ import { ModalProps } from '@synerise/ds-modal';
2
2
  export type MockModalProps = ModalProps & {
3
3
  'data-testid'?: string;
4
4
  };
@@ -1,67 +1,53 @@
1
- import React from 'react';
2
- export var mockModal = function mockModal() {
3
- jest.mock('@synerise/ds-modal', function () {
4
- return {
5
- __esModule: true,
6
- "default": jest.fn(function (_ref) {
7
- var open = _ref.open,
8
- visible = _ref.visible,
9
- title = _ref.title,
10
- children = _ref.children,
11
- onCancel = _ref.onCancel,
12
- onOk = _ref.onOk,
13
- footer = _ref.footer,
14
- _ref$closable = _ref.closable,
15
- closable = _ref$closable === void 0 ? true : _ref$closable,
16
- size = _ref.size,
17
- texts = _ref.texts,
18
- dataTestId = _ref['data-testid'];
19
- var isOpen = open != null ? open : visible;
20
- if (!isOpen) {
21
- return null;
22
- }
23
- var testId = dataTestId || 'ds-modal';
24
- return /*#__PURE__*/React.createElement("div", {
25
- "data-testid": testId,
26
- className: "ds-modal",
27
- "data-size": size,
28
- role: "dialog"
29
- }, /*#__PURE__*/React.createElement("div", {
30
- "data-testid": testId + "-header"
31
- }, title && /*#__PURE__*/React.createElement("div", {
32
- "data-testid": testId + "-title"
33
- }, title), closable && /*#__PURE__*/React.createElement("button", {
34
- "data-testid": testId + "-close",
35
- onClick: onCancel,
36
- "aria-label": "Close"
37
- }, "\xD7")), /*#__PURE__*/React.createElement("div", {
38
- "data-testid": testId + "-body"
39
- }, children), footer !== null && /*#__PURE__*/React.createElement("div", {
40
- "data-testid": testId + "-footer"
41
- }, footer || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
42
- "data-testid": testId + "-cancel",
43
- onClick: onCancel
44
- }, (texts == null ? void 0 : texts.cancelButton) || 'Cancel'), /*#__PURE__*/React.createElement("button", {
45
- "data-testid": testId + "-ok",
46
- onClick: onOk
47
- }, (texts == null ? void 0 : texts.okButton) || 'OK'))));
48
- })
49
- };
50
- });
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
+ const mockModal = () => {
3
+ jest.mock("@synerise/ds-modal", () => ({
4
+ __esModule: true,
5
+ default: jest.fn(({
6
+ open,
7
+ visible,
8
+ title,
9
+ children,
10
+ onCancel,
11
+ onOk,
12
+ footer,
13
+ closable = true,
14
+ size,
15
+ texts,
16
+ "data-testid": dataTestId
17
+ }) => {
18
+ const isOpen = open ?? visible;
19
+ if (!isOpen) {
20
+ return null;
21
+ }
22
+ const testId = dataTestId || "ds-modal";
23
+ return /* @__PURE__ */ jsxs("div", { "data-testid": testId, className: "ds-modal", "data-size": size, role: "dialog", children: [
24
+ /* @__PURE__ */ jsxs("div", { "data-testid": `${testId}-header`, children: [
25
+ title && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-title`, children: title }),
26
+ closable && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-close`, onClick: onCancel, "aria-label": "Close", children: "×" })
27
+ ] }),
28
+ /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-body`, children }),
29
+ footer !== null && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-footer`, children: footer || /* @__PURE__ */ jsxs(Fragment, { children: [
30
+ /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-cancel`, onClick: onCancel, children: texts?.cancelButton || "Cancel" }),
31
+ /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-ok`, onClick: onOk, children: texts?.okButton || "OK" })
32
+ ] }) })
33
+ ] });
34
+ })
35
+ }));
36
+ };
37
+ const mockModalMinimal = () => {
38
+ jest.mock("@synerise/ds-modal", () => ({
39
+ __esModule: true,
40
+ default: jest.fn(({
41
+ open,
42
+ visible,
43
+ children
44
+ }) => {
45
+ const isOpen = open ?? visible;
46
+ return isOpen ? /* @__PURE__ */ jsx("div", { "data-testid": "ds-modal", children }) : null;
47
+ })
48
+ }));
49
+ };
50
+ export {
51
+ mockModal,
52
+ mockModalMinimal
51
53
  };
52
- export var mockModalMinimal = function mockModalMinimal() {
53
- jest.mock('@synerise/ds-modal', function () {
54
- return {
55
- __esModule: true,
56
- "default": jest.fn(function (_ref2) {
57
- var open = _ref2.open,
58
- visible = _ref2.visible,
59
- children = _ref2.children;
60
- var isOpen = open != null ? open : visible;
61
- return isOpen ? /*#__PURE__*/React.createElement("div", {
62
- "data-testid": "ds-modal"
63
- }, children) : null;
64
- })
65
- };
66
- });
67
- };
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import type { ModalProps } from '@synerise/ds-modal';
1
+ import { ModalProps } from '@synerise/ds-modal';
3
2
  export type MockModalProps = ModalProps & {
4
3
  'data-testid'?: string;
5
4
  };
@@ -15,7 +14,7 @@ export type MockModalProps = ModalProps & {
15
14
  * ```
16
15
  */
17
16
  export declare const modalMockFactory: () => {
18
- default: import("vitest").Mock<({ open, visible, title, children, onCancel, onOk, footer, closable, size, texts, "data-testid": dataTestId, }: MockModalProps) => React.JSX.Element | null>;
17
+ default: any;
19
18
  };
20
19
  /**
21
20
  * Factory function for minimal Modal mock.
@@ -26,5 +25,5 @@ export declare const modalMockFactory: () => {
26
25
  * ```
27
26
  */
28
27
  export declare const modalMinimalMockFactory: () => {
29
- default: import("vitest").Mock<({ open, visible, children }: MockModalProps) => React.JSX.Element | null>;
28
+ default: any;
30
29
  };
package/dist/Modal/vi.js CHANGED
@@ -1,81 +1,47 @@
1
- import React from 'react';
2
- /**
3
- * Factory function for Modal mock.
4
- * Use directly with vi.mock() to avoid hoisting issues.
5
- *
6
- * @example
7
- * ```typescript
8
- * import { modalMockFactory } from '@synerise/ds-mocks/Modal/vi';
9
- *
10
- * vi.mock('@synerise/ds-modal', modalMockFactory);
11
- * ```
12
- */
13
- export var modalMockFactory = function modalMockFactory() {
14
- return {
15
- "default": vi.fn(function (_ref) {
16
- var open = _ref.open,
17
- visible = _ref.visible,
18
- title = _ref.title,
19
- children = _ref.children,
20
- onCancel = _ref.onCancel,
21
- onOk = _ref.onOk,
22
- footer = _ref.footer,
23
- _ref$closable = _ref.closable,
24
- closable = _ref$closable === void 0 ? true : _ref$closable,
25
- size = _ref.size,
26
- texts = _ref.texts,
27
- dataTestId = _ref['data-testid'];
28
- var isOpen = open != null ? open : visible;
29
- if (!isOpen) {
30
- return null;
31
- }
32
- var testId = dataTestId || 'ds-modal';
33
- return /*#__PURE__*/React.createElement("div", {
34
- "data-testid": testId,
35
- className: "ds-modal",
36
- "data-size": size,
37
- role: "dialog"
38
- }, /*#__PURE__*/React.createElement("div", {
39
- "data-testid": testId + "-header"
40
- }, title && /*#__PURE__*/React.createElement("div", {
41
- "data-testid": testId + "-title"
42
- }, title), closable && /*#__PURE__*/React.createElement("button", {
43
- "data-testid": testId + "-close",
44
- onClick: onCancel,
45
- "aria-label": "Close"
46
- }, "\xD7")), /*#__PURE__*/React.createElement("div", {
47
- "data-testid": testId + "-body"
48
- }, children), footer !== null && /*#__PURE__*/React.createElement("div", {
49
- "data-testid": testId + "-footer"
50
- }, footer || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
51
- "data-testid": testId + "-cancel",
52
- onClick: onCancel
53
- }, (texts == null ? void 0 : texts.cancelButton) || 'Cancel'), /*#__PURE__*/React.createElement("button", {
54
- "data-testid": testId + "-ok",
55
- onClick: onOk
56
- }, (texts == null ? void 0 : texts.okButton) || 'OK'))));
57
- })
58
- };
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ const modalMockFactory = () => ({
3
+ default: vi.fn(({
4
+ open,
5
+ visible,
6
+ title,
7
+ children,
8
+ onCancel,
9
+ onOk,
10
+ footer,
11
+ closable = true,
12
+ size,
13
+ texts,
14
+ "data-testid": dataTestId
15
+ }) => {
16
+ const isOpen = open ?? visible;
17
+ if (!isOpen) {
18
+ return null;
19
+ }
20
+ const testId = dataTestId || "ds-modal";
21
+ return /* @__PURE__ */ jsxs("div", { "data-testid": testId, className: "ds-modal", "data-size": size, role: "dialog", children: [
22
+ /* @__PURE__ */ jsxs("div", { "data-testid": `${testId}-header`, children: [
23
+ title && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-title`, children: title }),
24
+ closable && /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-close`, onClick: onCancel, "aria-label": "Close", children: "×" })
25
+ ] }),
26
+ /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-body`, children }),
27
+ footer !== null && /* @__PURE__ */ jsx("div", { "data-testid": `${testId}-footer`, children: footer || /* @__PURE__ */ jsxs(Fragment, { children: [
28
+ /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-cancel`, onClick: onCancel, children: texts?.cancelButton || "Cancel" }),
29
+ /* @__PURE__ */ jsx("button", { "data-testid": `${testId}-ok`, onClick: onOk, children: texts?.okButton || "OK" })
30
+ ] }) })
31
+ ] });
32
+ })
33
+ });
34
+ const modalMinimalMockFactory = () => ({
35
+ default: vi.fn(({
36
+ open,
37
+ visible,
38
+ children
39
+ }) => {
40
+ const isOpen = open ?? visible;
41
+ return isOpen ? /* @__PURE__ */ jsx("div", { "data-testid": "ds-modal", children }) : null;
42
+ })
43
+ });
44
+ export {
45
+ modalMinimalMockFactory,
46
+ modalMockFactory
59
47
  };
60
-
61
- /**
62
- * Factory function for minimal Modal mock.
63
- *
64
- * @example
65
- * ```typescript
66
- * vi.mock('@synerise/ds-modal', modalMinimalMockFactory);
67
- * ```
68
- */
69
- export var modalMinimalMockFactory = function modalMinimalMockFactory() {
70
- return {
71
- "default": vi.fn(function (_ref2) {
72
- var open = _ref2.open,
73
- visible = _ref2.visible,
74
- children = _ref2.children;
75
- var isOpen = open != null ? open : visible;
76
- return isOpen ? /*#__PURE__*/React.createElement("div", {
77
- "data-testid": "ds-modal"
78
- }, children) : null;
79
- })
80
- };
81
- };
@@ -1 +1,4 @@
1
- export * from './vi';
1
+ import { scrollbarMockFactory } from "./vi.js";
2
+ export {
3
+ scrollbarMockFactory
4
+ };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  /**
3
3
  * Factory function for Scrollbar mock.
4
4
  * Use directly with vi.mock() to avoid hoisting issues.
@@ -1,22 +1,10 @@
1
- import React from 'react';
2
-
3
- /**
4
- * Factory function for Scrollbar mock.
5
- * Use directly with vi.mock() to avoid hoisting issues.
6
- *
7
- * @example
8
- * ```typescript
9
- * import { scrollbarMockFactory } from '@synerise/ds-mocks/Scrollbar/vi';
10
- *
11
- * vi.mock('@synerise/ds-scrollbar', scrollbarMockFactory);
12
- * ```
13
- */
14
- export var scrollbarMockFactory = function scrollbarMockFactory() {
15
- return {
16
- __esModule: true,
17
- "default": function _default(_ref) {
18
- var children = _ref.children;
19
- return /*#__PURE__*/React.createElement('div', null, children);
20
- }
21
- };
22
- };
1
+ import React from "react";
2
+ const scrollbarMockFactory = () => ({
3
+ __esModule: true,
4
+ default: ({
5
+ children
6
+ }) => React.createElement("div", null, children)
7
+ });
8
+ export {
9
+ scrollbarMockFactory
10
+ };
@@ -1 +1,5 @@
1
- export * from './vi';
1
+ import { selectMinimalMockFactory, selectMockFactory } from "./vi.js";
2
+ export {
3
+ selectMinimalMockFactory,
4
+ selectMockFactory
5
+ };
@@ -1,4 +1,4 @@
1
- import type { SelectProps } from '@synerise/ds-select';
1
+ import { SelectProps } from '@synerise/ds-select';
2
2
  export type MockSelectProps = SelectProps & {
3
3
  'data-testid'?: string;
4
4
  };