2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-13 22:18:24 +00:00
iconify/packages/utils/src/index.ts

67 lines
2.1 KiB
TypeScript
Raw Normal View History

2021-11-13 19:25:38 +00:00
// 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 { quicklyValidateIconSet } from './icon-set/validate-basic';
2021-11-13 19:25:38 +00:00
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';
2022-03-21 16:54:25 +00:00
export { trimSVG } from './svg/trim';
2021-11-13 19:25:38 +00:00
// Colors
export { colorKeywords } from './colors/keywords';
export { stringToColor, compareColors, colorToString } from './colors/index';
2021-12-09 21:12:00 +00:00
// SVG Icon loader
export type {
CustomIconLoader,
CustomCollections,
2022-01-10 12:43:35 +00:00
IconCustomizer,
IconCustomizations,
IconifyLoaderOptions,
InlineCollection,
UniversalIconLoader,
} from './loader/types';
export { mergeIconProps } from './loader/utils';
2021-12-11 20:36:36 +00:00
export { getCustomIcon } from './loader/custom';
export { searchForIcon } from './loader/modern';
export { loadIcon } from './loader/loader';
// Misc
2022-03-02 20:11:50 +00:00
export { camelize, camelToKebab, snakelize, pascalize } from './misc/strings';