@iconify-icon/react
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -14,4 +14,4 @@ import React from 'react'; | ||
*/ | ||
declare const Icon: React.ForwardRefExoticComponent<Pick<IconifyIconProps, "preserveAspectRatio" | "rotate" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "icon" | "mode" | "inline" | "flip"> & React.RefAttributes<IconifyIconHTMLElement>>; | ||
declare const Icon: React.ForwardRefExoticComponent<Omit<IconifyIconProps, "ref"> & React.RefAttributes<IconifyIconHTMLElement>>; | ||
export { Icon, IconifyIconProps }; |
@@ -21,2 +21,6 @@ "use strict"; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
@@ -23,0 +27,0 @@ mod |
MIT License | ||
Copyright (c) 2022 Vjacheslav Trushkin / Iconify OÜ | ||
Copyright (c) 2022-PRESENT Vjacheslav Trushkin | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -5,3 +5,3 @@ { | ||
"author": "Vjacheslav Trushkin", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"license": "MIT", | ||
@@ -33,15 +33,15 @@ "bugs": "https://github.com/iconify/iconify/issues", | ||
"dependencies": { | ||
"iconify-icon": "^1.0.7" | ||
"iconify-icon": "^1.0.8" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.0.26", | ||
"@types/react": "^18.2.8", | ||
"@types/react-test-renderer": "^18.0.0", | ||
"@vitejs/plugin-react": "^3.0.0", | ||
"jest": "^29.3.1", | ||
"@vitejs/plugin-react": "^3.1.0", | ||
"jest": "^29.5.0", | ||
"react": "^18.2.0", | ||
"react-test-renderer": "^18.2.0", | ||
"rimraf": "^3.0.2", | ||
"tsup": "^6.5.0", | ||
"typescript": "^4.9.4", | ||
"vitest": "^0.26.2" | ||
"rimraf": "^4.4.1", | ||
"tsup": "^6.7.0", | ||
"typescript": "^5.1.3", | ||
"vitest": "^0.29.8" | ||
}, | ||
@@ -48,0 +48,0 @@ "peerDependencies": { |
@@ -7,3 +7,3 @@ # Iconify Icon for React | ||
For documentation visit [Iconify Icon web component documentation](https://docs.iconify.design/iconify-icon/). | ||
For documentation visit [Iconify Icon web component documentation](https://iconify.design/docs/iconify-icon/). | ||
@@ -40,14 +40,8 @@ ## Installation | ||
## Offline Usage | ||
## Offline usage | ||
Retrieving icon data from Iconify API requires visitor to be online. What if you want to use component offline or on local network? | ||
Iconify Icon web component is designed to be used with Iconify API, loading icon data on demand instead of bundling it.. | ||
If you want to use icon component without relying on public Iconify API, there are several options: | ||
If you want to use icons without Iconify API, [there are many other options available](https://iconify.design/docs/usage/). | ||
1. You can import icon data from Iconify Icons packages. | ||
2. You can create custom icon bundles (more efficient, but requires more coding). | ||
3. You can host your own Iconify API instead of relying on third party service. | ||
See [offline use documentation](https://docs.iconify.design/iconify-icon/without-api.html) or [Iconify API documentation](https://docs.iconify.design/sources/api/). | ||
## Icon Names | ||
@@ -66,3 +60,3 @@ | ||
See [icon names documentation](https://docs.iconify.design/iconify-icon/icon-name.html) for more detailed explanation. | ||
See [icon names documentation](https://iconify.design/docs/iconify-icon/icon-name.html) for more detailed explanation. | ||
@@ -82,3 +76,3 @@ ## Using icon data | ||
See [icon packages documentation](https://docs.iconify.design/sources/npm/) for more details. | ||
See [icon packages documentation](https://iconify.design/docs/icons/) for more details. | ||
@@ -103,3 +97,3 @@ ### Next.js notice | ||
For more details, see [icon packages documentation](https://docs.iconify.design/sources/npm/). | ||
For more details, see [icon packages documentation](https://iconify.design/docs/icons/). | ||
@@ -236,3 +230,3 @@ ## Icon component properties | ||
See [icon transformations documentation](https://docs.iconify.design/iconify-icon/transform.html) for more details. | ||
See [icon transformations documentation](https://iconify.design/docs/iconify-icon/transform.html) for more details. | ||
@@ -281,3 +275,3 @@ #### Flipping an icon | ||
For extended documentation visit [Iconify Icon web component documentation](https://docs.iconify.design/iconify-icon/). | ||
For extended documentation visit [Iconify Icon web component documentation](https://iconify.design/docs/iconify-icon/). | ||
@@ -288,4 +282,4 @@ ## License | ||
© 2022 Vjacheslav Trushkin / Iconify OÜ | ||
© 2022-PRESENT Vjacheslav Trushkin | ||
See [Iconify icon sets page](https://icon-sets.iconify.design/) for list of icon sets and their licenses. |
@@ -10,3 +10,2 @@ { | ||
"forceConsistentCasingInFileNames": true, | ||
"importsNotUsedAsValues": "error", | ||
"resolveJsonModule": true, | ||
@@ -13,0 +12,0 @@ "jsx": "react-jsx" |
17755
191
278
Updatediconify-icon@^1.0.8