@devopness/ui-react 2.159.0 → 2.160.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.
@@ -1,3 +1,3 @@
1
1
  export * from './getImageAssetUrl';
2
- export type { Icon } from './iconLoader';
2
+ export type { Icon } from './types';
3
3
  export { iconLoader } from './iconLoader';
@@ -0,0 +1,15 @@
1
+ import { deprecatedToNewIconMap, iconList } from './iconLoader';
2
+ /**
3
+ * Lists all valid icon names available in the iconList
4
+ */
5
+ type Icon = (typeof iconList)[number]['name'];
6
+ /**
7
+ * Lists all valid icon names, filtered out the deprecated ones
8
+ *
9
+ * If you need to migrate from a deprecated icon, you can use the
10
+ * deprecatedToNewIconMap object to find the new icon name.
11
+ *
12
+ * @see {deprecatedToNewIconMap}
13
+ */
14
+ type ValidIcon = Exclude<Icon, keyof typeof deprecatedToNewIconMap>;
15
+ export type { ValidIcon as Icon };