@indico-data/design-system 3.8.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/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: 'fas',
5054
+ prefix: faPrefix,
5055
5055
  iconName: faIconName,
5056
5056
  })
5057
5057
  : fontawesomeSvgCore.findIconDefinition({