@indico-data/design-system 3.7.0 → 3.9.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.
- package/lib/components/icons/Icon.d.ts +1 -1
- package/lib/components/icons/types.d.ts +5 -1
- package/lib/index.d.ts +6 -2
- package/lib/index.esm.js +2 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +7 -7
- package/src/components/icons/Icon.stories.tsx +7 -0
- package/src/components/icons/Icon.tsx +9 -2
- package/src/components/icons/types.ts +5 -1
package/lib/index.js
CHANGED
|
@@ -5041,7 +5041,7 @@ var classnamesExports = classnames.exports;
|
|
|
5041
5041
|
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
5042
5042
|
|
|
5043
5043
|
const Icon = (_a) => {
|
|
5044
|
-
var { name, size = 'md', className, ariaLabel } = _a, props = __rest(_a, ["name", "size", "className", "ariaLabel"]);
|
|
5044
|
+
var { name, size = 'md', className, ariaLabel, faPrefix = 'fas' } = _a, props = __rest(_a, ["name", "size", "className", "ariaLabel", "faPrefix"]);
|
|
5045
5045
|
const label = ariaLabel || `${name} Icon`;
|
|
5046
5046
|
const iconClasses = classNames('icon', {
|
|
5047
5047
|
[`icon--${size}`]: size,
|
|
@@ -5051,7 +5051,7 @@ const Icon = (_a) => {
|
|
|
5051
5051
|
// Otherwise, search for an indicon (registered under Font Awesome with a prefix of 'fak')
|
|
5052
5052
|
const icon = faIconName
|
|
5053
5053
|
? fontawesomeSvgCore.findIconDefinition({
|
|
5054
|
-
prefix:
|
|
5054
|
+
prefix: faPrefix,
|
|
5055
5055
|
iconName: faIconName,
|
|
5056
5056
|
})
|
|
5057
5057
|
: fontawesomeSvgCore.findIconDefinition({
|