@assembly-js/design-system 3.1.9 → 3.1.10
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/dist/esm/common/utils.js +1 -24
- package/dist/esm/components/Chip/Chip.js +2 -8
- package/dist/esm/components/Icon.js +2 -10
- package/dist/esm/components/__tests__/Icon.test.js +82 -0
- package/dist/esm/components/iconType.js +21 -0
- package/dist/esm/types/components/Avatar/Avatar.d.ts +2 -2
- package/dist/esm/types/components/Icon.d.ts +2 -3
- package/dist/esm/types/components/__tests__/Icon.test.d.ts +1 -0
- package/dist/esm/types/components/iconType.d.ts +5 -0
- package/dist/esm/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/components/Avatar/Avatar.d.ts +2 -2
- package/dist/types/components/Icon.d.ts +2 -3
- package/dist/types/components/__tests__/Icon.test.d.ts +1 -0
- package/dist/types/components/iconType.d.ts +5 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/common/utils.js +1 -24
- package/dist/umd/components/Chip/Chip.js +5 -12
- package/dist/umd/components/Icon.js +11 -15
- package/dist/umd/components/__tests__/Icon.test.js +98 -0
- package/dist/umd/components/iconType.js +43 -0
- package/dist/umd/types/components/Avatar/Avatar.d.ts +2 -2
- package/dist/umd/types/components/Icon.d.ts +2 -3
- package/dist/umd/types/components/__tests__/Icon.test.d.ts +1 -0
- package/dist/umd/types/components/iconType.d.ts +5 -0
- package/dist/umd/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -20,8 +20,8 @@ declare const Avatar: React.ForwardRefExoticComponent<({
|
|
|
20
20
|
content?: string | undefined;
|
|
21
21
|
translate?: "yes" | "no" | undefined;
|
|
22
22
|
prefix?: string | undefined;
|
|
23
|
-
className?: string | undefined;
|
|
24
23
|
children?: React.ReactNode;
|
|
24
|
+
className?: string | undefined;
|
|
25
25
|
slot?: string | undefined;
|
|
26
26
|
style?: React.CSSProperties | undefined;
|
|
27
27
|
title?: string | undefined;
|
|
@@ -299,8 +299,8 @@ declare const Avatar: React.ForwardRefExoticComponent<({
|
|
|
299
299
|
content?: string | undefined;
|
|
300
300
|
translate?: "yes" | "no" | undefined;
|
|
301
301
|
prefix?: string | undefined;
|
|
302
|
-
className?: string | undefined;
|
|
303
302
|
children?: React.ReactNode;
|
|
303
|
+
className?: string | undefined;
|
|
304
304
|
slot?: string | undefined;
|
|
305
305
|
style?: React.CSSProperties | undefined;
|
|
306
306
|
title?: string | undefined;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
export type IconType = keyof typeof icons | FAIconName;
|
|
2
|
+
import type { IconType } from './iconType';
|
|
3
|
+
export { type IconType, isValidIconType } from './iconType';
|
|
5
4
|
/**
|
|
6
5
|
* Icon component that renders either a Font Awesome icon or a Design System icon.
|
|
7
6
|
* it checks if the icon name is in the Font Awesome icon set and renders the corresponding icon.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as icons from '../icons';
|
|
2
|
+
import { type FAIcon, type FAIconName } from './IconPicker/icons.generated';
|
|
3
|
+
export type IconType = keyof typeof icons | FAIconName;
|
|
4
|
+
export declare const getFAIconMap: (source?: ReadonlyArray<FAIcon>) => Map<string, FAIcon>;
|
|
5
|
+
export declare const isValidIconType: (arg: unknown) => arg is IconType;
|