@iconify/utils
Advanced tools
Comparing version 2.0.0-beta.3 to 2.0.0-beta.4
import { IconifyJSON, ExtendedIconifyIcon } from '@iconify/types'; | ||
import { FullExtendedIconifyIcon } from '../icon/defaults.js'; | ||
@@ -7,10 +6,8 @@ /** | ||
*/ | ||
declare function internalGetIconData(data: IconifyJSON, name: string, tree: string[], full: true): FullExtendedIconifyIcon; | ||
declare function internalGetIconData(data: IconifyJSON, name: string, tree: string[], full: false): ExtendedIconifyIcon; | ||
declare function internalGetIconData(data: IconifyJSON, name: string, tree: string[]): ExtendedIconifyIcon; | ||
/** | ||
* Get data for icon | ||
*/ | ||
declare function getIconData(data: IconifyJSON, name: string, full: true): FullExtendedIconifyIcon | null; | ||
declare function getIconData(data: IconifyJSON, name: string, full: false): ExtendedIconifyIcon | null; | ||
declare function getIconData(data: IconifyJSON, name: string): ExtendedIconifyIcon | null; | ||
export { getIconData, internalGetIconData }; |
@@ -1,3 +0,2 @@ | ||
import { IconifyJSON } from '@iconify/types'; | ||
import { FullExtendedIconifyIcon } from '../icon/defaults.js'; | ||
import { ExtendedIconifyIcon, IconifyJSON } from '@iconify/types'; | ||
@@ -9,3 +8,3 @@ /** | ||
*/ | ||
declare type SplitIconSetCallback = (name: string, data: FullExtendedIconifyIcon | null) => void; | ||
declare type SplitIconSetCallback = (name: string, data: ExtendedIconifyIcon | null) => void; | ||
/** | ||
@@ -12,0 +11,0 @@ * Extract icons from an icon set |
@@ -26,4 +26,4 @@ /** | ||
*/ | ||
declare const validateIcon: (icon: IconifyIconName | null, allowSimpleName?: boolean) => boolean; | ||
declare const validateIconName: (icon: IconifyIconName | null, allowSimpleName?: boolean) => boolean; | ||
export { IconifyIconName, IconifyIconSource, matchIconName, stringToIcon, validateIcon }; | ||
export { IconifyIconName, IconifyIconSource, matchIconName, stringToIcon, validateIconName }; |
@@ -1,2 +0,2 @@ | ||
export { defaultIconCustomisations, defaultIconSizeCustomisations } from './customisations/defaults.js'; | ||
export { FullIconCustomisations, IconifyIconCustomisations, IconifyIconSize, IconifyIconSizeCustomisations, defaultIconCustomisations, defaultIconSizeCustomisations } from './customisations/defaults.js'; | ||
export { mergeCustomisations } from './customisations/merge.js'; | ||
@@ -6,7 +6,7 @@ export { toBoolean } from './customisations/bool.js'; | ||
export { rotateFromString } from './customisations/rotate.js'; | ||
export { matchIconName, stringToIcon, validateIcon as validateIconName } from './icon/name.js'; | ||
export { IconifyIconName, IconifyIconSource, matchIconName, stringToIcon, validateIconName } from './icon/name.js'; | ||
export { mergeIconData } from './icon/merge.js'; | ||
export { mergeIconTransformations } from './icon/transformations.js'; | ||
export { defaultIconDimensions, defaultIconProps, defaultIconTransformations } from './icon/defaults.js'; | ||
export { getIconsTree } from './icon-set/tree.js'; | ||
export { FullExtendedIconifyIcon, FullIconifyIcon, PartialExtendedIconifyIcon, defaultExtendedIconProps, defaultIconDimensions, defaultIconProps, defaultIconTransformations } from './icon/defaults.js'; | ||
export { ParentIconsList, ParentIconsTree, getIconsTree } from './icon-set/tree.js'; | ||
export { parseIconSet } from './icon-set/parse.js'; | ||
@@ -20,3 +20,3 @@ export { validateIconSet } from './icon-set/validate.js'; | ||
export { convertIconSetInfo } from './icon-set/convert-info.js'; | ||
export { iconToSVG } from './svg/build.js'; | ||
export { IconifyIconBuildResult, iconToSVG } from './svg/build.js'; | ||
export { replaceIDs } from './svg/id.js'; | ||
@@ -36,4 +36,5 @@ export { calculateSize } from './svg/size.js'; | ||
export { camelToKebab, camelize, pascalize, snakelize } from './misc/strings.js'; | ||
import '@iconify/types'; | ||
export { commonObjectProps, compareObjects, unmergeObjects } from './misc/objects.js'; | ||
export { IconifyIcon } from '@iconify/types'; | ||
import './colors/types.js'; | ||
import '@antfu/utils'; |
@@ -1,4 +0,3 @@ | ||
import { FullIconifyIcon } from '../icon/defaults.js'; | ||
import { FullIconCustomisations } from '../customisations/defaults.js'; | ||
import '@iconify/types'; | ||
import { IconifyIcon } from '@iconify/types'; | ||
import { IconifyIconCustomisations } from '../customisations/defaults.js'; | ||
@@ -26,4 +25,4 @@ /** | ||
*/ | ||
declare function iconToSVG(icon: FullIconifyIcon, customisations: FullIconCustomisations): IconifyIconBuildResult; | ||
declare function iconToSVG(icon: IconifyIcon, customisations?: IconifyIconCustomisations): IconifyIconBuildResult; | ||
export { IconifyIconBuildResult, iconToSVG }; |
@@ -6,3 +6,3 @@ { | ||
"author": "Vjacheslav Trushkin", | ||
"version": "2.0.0-beta.3", | ||
"version": "2.0.0-beta.4", | ||
"license": "MIT", | ||
@@ -9,0 +9,0 @@ "bugs": "https://github.com/iconify/iconify/issues", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
153208
4586