@lumx/core 4.19.0 → 4.19.1-alpha.1

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.
@@ -1,4 +1,14 @@
1
1
  import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ /**
3
+ * Build a list of `count` fruit options by repeating the base `FRUITS` list with unique ids.
4
+ * Shared between React and Vue `WithManyOptions` test stories.
5
+ */
6
+ export declare function createManyOptions(count: number): {
7
+ id: string;
8
+ name: string;
9
+ category: string;
10
+ description: string;
11
+ }[];
2
12
  /**
3
13
  * Setup test stories
4
14
  */
@@ -36,4 +46,18 @@ export declare function setup({ components: { SelectTextField }, }: SetupStories
36
46
  WithInfiniteScroll: {
37
47
  play({ canvas }: any): Promise<void>;
38
48
  };
49
+ WithManyOptions: {
50
+ args: {
51
+ optionsCount: number;
52
+ };
53
+ argTypes: {
54
+ optionsCount: {
55
+ control: {
56
+ type: string;
57
+ min: number;
58
+ };
59
+ };
60
+ };
61
+ play({ canvas, args }: any): Promise<void>;
62
+ };
39
63
  };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Wrap `fn` so that, no matter how many times the returned function is called within the same
3
+ * microtask cycle, `fn` only runs once at the end of that cycle.
4
+ */
5
+ export declare function debounceMicrotask(fn: () => void): {
6
+ (): void;
7
+ cancel(): void;
8
+ };
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "dependencies": {
9
9
  "@floating-ui/dom": "^1.7.5",
10
- "@lumx/icons": "^4.19.0",
10
+ "@lumx/icons": "^4.19.1-alpha.1",
11
11
  "classnames": "^2.3.2",
12
12
  "focus-visible": "^5.0.2",
13
13
  "lodash": "4.18.1",
@@ -66,7 +66,7 @@
66
66
  "update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
67
67
  },
68
68
  "sideEffects": false,
69
- "version": "4.19.0",
69
+ "version": "4.19.1-alpha.1",
70
70
  "devDependencies": {
71
71
  "@rollup/plugin-typescript": "^12.3.0",
72
72
  "@testing-library/dom": "^10.4.1",
@@ -89,5 +89,6 @@
89
89
  "vite": "^7.3.5",
90
90
  "vite-tsconfig-paths": "^5.1.4",
91
91
  "vitest": "^4.0.18"
92
- }
92
+ },
93
+ "stableVersion": "4.19.0"
93
94
  }