@flux-ui/types 3.0.0-next.23 → 3.0.0-next.24

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flux-ui/types",
3
3
  "description": "Contains all public types of Flux UI packages.",
4
- "version": "3.0.0-next.23",
4
+ "version": "3.0.0-next.24",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/basmilius",
@@ -33,6 +33,7 @@
33
33
  "sideEffects": false,
34
34
  "dependencies": {},
35
35
  "devDependencies": {
36
+ "@fortawesome/fontawesome-common-types": "^7.2.0",
36
37
  "@types/luxon": "^3.7.1"
37
38
  }
38
39
  }
package/src/common.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { FontAwesome } from './font-awesome';
1
+ import type { IconName as FontAwesome } from '@fortawesome/fontawesome-common-types';
2
2
  import type { MaterialSymbol } from './material-symbols';
3
3
 
4
4
  export type FluxIconName = FontAwesome | MaterialSymbol;
package/src/filter.ts CHANGED
@@ -41,6 +41,7 @@ export type FluxFilterOptionHeader = {
41
41
  };
42
42
 
43
43
  export type FluxFilterOptionItem = {
44
+ readonly icon?: FluxIconName;
44
45
  readonly label: string;
45
46
  readonly value: FluxFilterValueSingle;
46
47
  };
@@ -60,10 +61,4 @@ export type FluxFilterValue =
60
61
  | FluxFilterValueSingle
61
62
  | FluxFilterValueSingle[];
62
63
 
63
- export type FluxFilterState = {
64
- get resettable(): string[];
65
-
66
- reset(): void;
67
- } & {
68
- [key: string]: FluxFilterValue | Function;
69
- };
64
+ export type FluxFilterState = Record<string, FluxFilterValue>;