2
0
mirror of https://github.com/iconify/iconify.git synced 2024-10-24 09:32:02 +00:00
iconify/packages/utils/src/index.ts
Joaquín Sánchez Jiménez 7dd250ef55 chore: remove node stuff
2022-02-27 17:58:24 +01:00

63 lines
1.9 KiB
TypeScript

// Customisations
export { compare as compareCustomisations } from './customisations/compare';
export {
defaults as defaultCustomisations,
mergeCustomisations,
} from './customisations/index';
// Customisations: converting attributes in components
export { toBoolean } from './customisations/bool';
export {
flipFromString,
alignmentFromString,
} from './customisations/shorthand';
export { rotateFromString } from './customisations/rotate';
// Icon names
export { stringToIcon, validateIcon as validateIconName } from './icon/name';
export { matchName as matchIconName } from './icon/index';
// Icon data
export { mergeIconData } from './icon/merge';
export {
iconDefaults as defaultIconData,
fullIcon as fullIconData,
} from './icon/index';
// Icon set functions
export { parseIconSet, isVariation } from './icon-set/parse';
export { validateIconSet } from './icon-set/validate';
export { expandIconSet } from './icon-set/expand';
export { minifyIconSet } from './icon-set/minify';
export { getIcons } from './icon-set/get-icons';
export { getIconData } from './icon-set/get-icon';
// Icon set: convert information
export { convertIconSetInfo } from './icon-set/convert-info';
// Build SVG
export { iconToSVG } from './svg/build';
export { replaceIDs } from './svg/id';
export { calculateSize } from './svg/size';
export { encodeSvgForCss } from './svg/encode-svg-for-css';
// Colors
export { colorKeywords } from './colors/keywords';
export { stringToColor, compareColors, colorToString } from './colors/index';
// SVG Icon loader
export type {
CustomIconLoader,
CustomCollections,
IconCustomizer,
IconCustomizations,
IconifyLoaderOptions,
InlineCollection,
} from './loader/types';
export { mergeIconProps } from './loader/utils';
export { getCustomIcon } from './loader/custom';
export { searchForIcon } from './loader/modern';
// Misc
export { camelize, camelToKebab, pascalize } from './misc/strings';