weasel-icons 0.1.0 → 0.3.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/README.md +93 -5
- package/THIRD_PARTY_NOTICES.md +17 -5
- package/dist/icons/alert/alert-icon.d.ts +6 -0
- package/dist/icons/alert/alert-icon.js +22 -0
- package/dist/icons/alert/alert-rig.d.ts +12 -0
- package/dist/icons/alert/alert-rig.js +25 -0
- package/dist/icons/arrow-down/arrow-down-icon.d.ts +5 -0
- package/dist/icons/arrow-down/arrow-down-icon.js +9 -0
- package/dist/icons/arrow-down/arrow-down-rig.d.ts +43 -0
- package/dist/icons/arrow-down/arrow-down-rig.js +64 -0
- package/dist/icons/arrow-left/arrow-left-icon.d.ts +5 -0
- package/dist/icons/arrow-left/arrow-left-icon.js +9 -0
- package/dist/icons/arrow-left/arrow-left-rig.d.ts +43 -0
- package/dist/icons/arrow-left/arrow-left-rig.js +64 -0
- package/dist/icons/arrow-right/arrow-right-icon.d.ts +5 -0
- package/dist/icons/arrow-right/arrow-right-icon.js +9 -0
- package/dist/icons/arrow-right/arrow-right-rig.d.ts +43 -0
- package/dist/icons/arrow-right/arrow-right-rig.js +64 -0
- package/dist/icons/arrow-up/arrow-up-icon.d.ts +5 -0
- package/dist/icons/arrow-up/arrow-up-icon.js +9 -0
- package/dist/icons/arrow-up/arrow-up-rig.d.ts +43 -0
- package/dist/icons/arrow-up/arrow-up-rig.js +64 -0
- package/dist/icons/badge-check/badge-check-icon.d.ts +5 -0
- package/dist/icons/badge-check/badge-check-icon.js +33 -0
- package/dist/icons/badge-check/badge-check-rig.d.ts +14 -0
- package/dist/icons/badge-check/badge-check-rig.js +36 -0
- package/dist/icons/bell/bell-icon.js +1 -1
- package/dist/icons/book-open/book-open-icon.d.ts +5 -0
- package/dist/icons/book-open/book-open-icon.js +9 -0
- package/dist/icons/book-open/book-open-rig.d.ts +65 -0
- package/dist/icons/book-open/book-open-rig.js +95 -0
- package/dist/icons/bookmark/bookmark-icon.d.ts +5 -0
- package/dist/icons/bookmark/bookmark-icon.js +9 -0
- package/dist/icons/bookmark/bookmark-rig.d.ts +43 -0
- package/dist/icons/bookmark/bookmark-rig.js +65 -0
- package/dist/icons/bulb/bulb-icon.d.ts +5 -0
- package/dist/icons/bulb/bulb-icon.js +25 -0
- package/dist/icons/bulb/bulb-rig.d.ts +13 -0
- package/dist/icons/bulb/bulb-rig.js +37 -0
- package/dist/icons/calendar/calendar-icon.d.ts +5 -0
- package/dist/icons/calendar/calendar-icon.js +9 -0
- package/dist/icons/calendar/calendar-rig.d.ts +67 -0
- package/dist/icons/calendar/calendar-rig.js +95 -0
- package/dist/icons/camera/camera-icon.d.ts +5 -0
- package/dist/icons/camera/camera-icon.js +9 -0
- package/dist/icons/camera/camera-rig.d.ts +58 -0
- package/dist/icons/camera/camera-rig.js +82 -0
- package/dist/icons/check/check-icon.d.ts +5 -0
- package/dist/icons/check/check-icon.js +26 -0
- package/dist/icons/check/check-rig.d.ts +6 -0
- package/dist/icons/check/check-rig.js +38 -0
- package/dist/icons/chevron-down/chevron-down-icon.d.ts +5 -0
- package/dist/icons/chevron-down/chevron-down-icon.js +9 -0
- package/dist/icons/chevron-down/chevron-down-rig.d.ts +48 -0
- package/dist/icons/chevron-down/chevron-down-rig.js +30 -0
- package/dist/icons/chevron-left/chevron-left-icon.d.ts +5 -0
- package/dist/icons/chevron-left/chevron-left-icon.js +9 -0
- package/dist/icons/chevron-left/chevron-left-rig.d.ts +34 -0
- package/dist/icons/chevron-left/chevron-left-rig.js +49 -0
- package/dist/icons/chevron-right/chevron-right-icon.d.ts +5 -0
- package/dist/icons/chevron-right/chevron-right-icon.js +9 -0
- package/dist/icons/chevron-right/chevron-right-rig.d.ts +34 -0
- package/dist/icons/chevron-right/chevron-right-rig.js +49 -0
- package/dist/icons/chevron-up/chevron-up-icon.d.ts +5 -0
- package/dist/icons/chevron-up/chevron-up-icon.js +9 -0
- package/dist/icons/chevron-up/chevron-up-rig.d.ts +48 -0
- package/dist/icons/chevron-up/chevron-up-rig.js +30 -0
- package/dist/icons/circle-help/circle-help-icon.d.ts +5 -0
- package/dist/icons/circle-help/circle-help-icon.js +9 -0
- package/dist/icons/circle-help/circle-help-rig.d.ts +45 -0
- package/dist/icons/circle-help/circle-help-rig.js +70 -0
- package/dist/icons/clapperboard/clapperboard-icon.d.ts +5 -0
- package/dist/icons/clapperboard/clapperboard-icon.js +18 -0
- package/dist/icons/clapperboard/clapperboard-rig.d.ts +12 -0
- package/dist/icons/clapperboard/clapperboard-rig.js +25 -0
- package/dist/icons/clipboard/clipboard-icon.d.ts +5 -0
- package/dist/icons/clipboard/clipboard-icon.js +9 -0
- package/dist/icons/clipboard/clipboard-rig.d.ts +69 -0
- package/dist/icons/clipboard/clipboard-rig.js +99 -0
- package/dist/icons/clock/clock-icon.d.ts +5 -0
- package/dist/icons/clock/clock-icon.js +9 -0
- package/dist/icons/clock/clock-rig.d.ts +40 -0
- package/dist/icons/clock/clock-rig.js +53 -0
- package/dist/icons/close/close-icon.d.ts +5 -0
- package/dist/icons/close/close-icon.js +27 -0
- package/dist/icons/close/close-rig.d.ts +10 -0
- package/dist/icons/close/close-rig.js +31 -0
- package/dist/icons/cloud/cloud-icon.d.ts +5 -0
- package/dist/icons/cloud/cloud-icon.js +9 -0
- package/dist/icons/cloud/cloud-rig.d.ts +74 -0
- package/dist/icons/cloud/cloud-rig.js +103 -0
- package/dist/icons/code/code-icon.d.ts +5 -0
- package/dist/icons/code/code-icon.js +9 -0
- package/dist/icons/code/code-rig.d.ts +104 -0
- package/dist/icons/code/code-rig.js +148 -0
- package/dist/icons/copy/copy-icon.d.ts +5 -0
- package/dist/icons/copy/copy-icon.js +31 -0
- package/dist/icons/copy/copy-rig.d.ts +13 -0
- package/dist/icons/copy/copy-rig.js +44 -0
- package/dist/icons/credit-card/credit-card-icon.d.ts +5 -0
- package/dist/icons/credit-card/credit-card-icon.js +9 -0
- package/dist/icons/credit-card/credit-card-rig.d.ts +88 -0
- package/dist/icons/credit-card/credit-card-rig.js +122 -0
- package/dist/icons/cursor/cursor-icon.d.ts +5 -0
- package/dist/icons/cursor/cursor-icon.js +32 -0
- package/dist/icons/cursor/cursor-rig.d.ts +21 -0
- package/dist/icons/cursor/cursor-rig.js +63 -0
- package/dist/icons/database/database-icon.d.ts +5 -0
- package/dist/icons/database/database-icon.js +9 -0
- package/dist/icons/database/database-rig.d.ts +61 -0
- package/dist/icons/database/database-rig.js +86 -0
- package/dist/icons/delete/delete-icon.d.ts +5 -0
- package/dist/icons/delete/delete-icon.js +25 -0
- package/dist/icons/delete/delete-rig.d.ts +15 -0
- package/dist/icons/delete/delete-rig.js +33 -0
- package/dist/icons/dog/dog-icon.js +1 -1
- package/dist/icons/download/download-icon.js +1 -1
- package/dist/icons/external-link/external-link-icon.d.ts +5 -0
- package/dist/icons/external-link/external-link-icon.js +9 -0
- package/dist/icons/external-link/external-link-rig.d.ts +45 -0
- package/dist/icons/external-link/external-link-rig.js +42 -0
- package/dist/icons/eye/eye-icon.d.ts +5 -0
- package/dist/icons/eye/eye-icon.js +27 -0
- package/dist/icons/eye/eye-rig.d.ts +9 -0
- package/dist/icons/eye/eye-rig.js +37 -0
- package/dist/icons/file/file-icon.d.ts +5 -0
- package/dist/icons/file/file-icon.js +9 -0
- package/dist/icons/file/file-rig.d.ts +53 -0
- package/dist/icons/file/file-rig.js +80 -0
- package/dist/icons/file-text/file-text-icon.d.ts +5 -0
- package/dist/icons/file-text/file-text-icon.js +9 -0
- package/dist/icons/file-text/file-text-rig.d.ts +93 -0
- package/dist/icons/file-text/file-text-rig.js +138 -0
- package/dist/icons/filter/filter-icon.d.ts +5 -0
- package/dist/icons/filter/filter-icon.js +9 -0
- package/dist/icons/filter/filter-rig.d.ts +72 -0
- package/dist/icons/filter/filter-rig.js +99 -0
- package/dist/icons/folder/folder-icon.d.ts +5 -0
- package/dist/icons/folder/folder-icon.js +9 -0
- package/dist/icons/folder/folder-rig.d.ts +20 -0
- package/dist/icons/folder/folder-rig.js +28 -0
- package/dist/icons/globe/globe-icon.d.ts +5 -0
- package/dist/icons/globe/globe-icon.js +9 -0
- package/dist/icons/globe/globe-rig.d.ts +40 -0
- package/dist/icons/globe/globe-rig.js +57 -0
- package/dist/icons/heart/heart-icon.js +1 -1
- package/dist/icons/heart/heart-rig.js +1 -1
- package/dist/icons/home/home-icon.d.ts +5 -0
- package/dist/icons/home/home-icon.js +9 -0
- package/dist/icons/home/home-rig.d.ts +49 -0
- package/dist/icons/home/home-rig.js +76 -0
- package/dist/icons/image/image-icon.d.ts +5 -0
- package/dist/icons/image/image-icon.js +9 -0
- package/dist/icons/image/image-rig.d.ts +70 -0
- package/dist/icons/image/image-rig.js +99 -0
- package/dist/icons/info/info-icon.d.ts +5 -0
- package/dist/icons/info/info-icon.js +9 -0
- package/dist/icons/info/info-rig.d.ts +48 -0
- package/dist/icons/info/info-rig.js +69 -0
- package/dist/icons/key/key-icon.d.ts +5 -0
- package/dist/icons/key/key-icon.js +9 -0
- package/dist/icons/key/key-rig.d.ts +50 -0
- package/dist/icons/key/key-rig.js +76 -0
- package/dist/icons/layers/layers-icon.d.ts +5 -0
- package/dist/icons/layers/layers-icon.js +9 -0
- package/dist/icons/layers/layers-rig.d.ts +147 -0
- package/dist/icons/layers/layers-rig.js +211 -0
- package/dist/icons/layout-dashboard/layout-dashboard-icon.d.ts +5 -0
- package/dist/icons/layout-dashboard/layout-dashboard-icon.js +9 -0
- package/dist/icons/layout-dashboard/layout-dashboard-rig.d.ts +194 -0
- package/dist/icons/layout-dashboard/layout-dashboard-rig.js +284 -0
- package/dist/icons/layout-grid/layout-grid-icon.d.ts +5 -0
- package/dist/icons/layout-grid/layout-grid-icon.js +9 -0
- package/dist/icons/layout-grid/layout-grid-rig.d.ts +103 -0
- package/dist/icons/layout-grid/layout-grid-rig.js +167 -0
- package/dist/icons/link/link-icon.d.ts +5 -0
- package/dist/icons/link/link-icon.js +30 -0
- package/dist/icons/link/link-rig.d.ts +13 -0
- package/dist/icons/link/link-rig.js +37 -0
- package/dist/icons/list/list-icon.d.ts +5 -0
- package/dist/icons/list/list-icon.js +9 -0
- package/dist/icons/list/list-rig.d.ts +165 -0
- package/dist/icons/list/list-rig.js +231 -0
- package/dist/icons/lock/lock-icon.d.ts +5 -0
- package/dist/icons/lock/lock-icon.js +9 -0
- package/dist/icons/lock/lock-rig.d.ts +42 -0
- package/dist/icons/lock/lock-rig.js +58 -0
- package/dist/icons/log-in/log-in-icon.d.ts +5 -0
- package/dist/icons/log-in/log-in-icon.js +9 -0
- package/dist/icons/log-in/log-in-rig.d.ts +39 -0
- package/dist/icons/log-in/log-in-rig.js +55 -0
- package/dist/icons/log-out/log-out-icon.d.ts +5 -0
- package/dist/icons/log-out/log-out-icon.js +9 -0
- package/dist/icons/log-out/log-out-rig.d.ts +39 -0
- package/dist/icons/log-out/log-out-rig.js +55 -0
- package/dist/icons/mail/mail-icon.d.ts +5 -0
- package/dist/icons/mail/mail-icon.js +9 -0
- package/dist/icons/mail/mail-rig.d.ts +20 -0
- package/dist/icons/mail/mail-rig.js +28 -0
- package/dist/icons/map-pin/map-pin-icon.d.ts +5 -0
- package/dist/icons/map-pin/map-pin-icon.js +9 -0
- package/dist/icons/map-pin/map-pin-rig.d.ts +118 -0
- package/dist/icons/map-pin/map-pin-rig.js +164 -0
- package/dist/icons/maximize/maximize-icon.d.ts +5 -0
- package/dist/icons/maximize/maximize-icon.js +9 -0
- package/dist/icons/maximize/maximize-rig.d.ts +190 -0
- package/dist/icons/maximize/maximize-rig.js +268 -0
- package/dist/icons/menu/menu-icon.d.ts +5 -0
- package/dist/icons/menu/menu-icon.js +9 -0
- package/dist/icons/menu/menu-rig.d.ts +41 -0
- package/dist/icons/menu/menu-rig.js +58 -0
- package/dist/icons/message-circle/message-circle-icon.d.ts +5 -0
- package/dist/icons/message-circle/message-circle-icon.js +9 -0
- package/dist/icons/message-circle/message-circle-rig.d.ts +99 -0
- package/dist/icons/message-circle/message-circle-rig.js +143 -0
- package/dist/icons/mic/mic-icon.d.ts +5 -0
- package/dist/icons/mic/mic-icon.js +9 -0
- package/dist/icons/mic/mic-rig.d.ts +67 -0
- package/dist/icons/mic/mic-rig.js +96 -0
- package/dist/icons/minimize/minimize-icon.d.ts +5 -0
- package/dist/icons/minimize/minimize-icon.js +9 -0
- package/dist/icons/minimize/minimize-rig.d.ts +190 -0
- package/dist/icons/minimize/minimize-rig.js +268 -0
- package/dist/icons/minus/minus-icon.d.ts +5 -0
- package/dist/icons/minus/minus-icon.js +9 -0
- package/dist/icons/minus/minus-rig.d.ts +31 -0
- package/dist/icons/minus/minus-rig.js +47 -0
- package/dist/icons/monkey/monkey-icon.js +1 -1
- package/dist/icons/moon/moon-icon.d.ts +5 -0
- package/dist/icons/moon/moon-icon.js +9 -0
- package/dist/icons/moon/moon-rig.d.ts +62 -0
- package/dist/icons/moon/moon-rig.js +87 -0
- package/dist/icons/more-horizontal/more-horizontal-icon.d.ts +5 -0
- package/dist/icons/more-horizontal/more-horizontal-icon.js +9 -0
- package/dist/icons/more-horizontal/more-horizontal-rig.d.ts +91 -0
- package/dist/icons/more-horizontal/more-horizontal-rig.js +141 -0
- package/dist/icons/more-vertical/more-vertical-icon.d.ts +5 -0
- package/dist/icons/more-vertical/more-vertical-icon.js +9 -0
- package/dist/icons/more-vertical/more-vertical-rig.d.ts +91 -0
- package/dist/icons/more-vertical/more-vertical-rig.js +141 -0
- package/dist/icons/music/music-icon.d.ts +5 -0
- package/dist/icons/music/music-icon.js +9 -0
- package/dist/icons/music/music-rig.d.ts +66 -0
- package/dist/icons/music/music-rig.js +95 -0
- package/dist/icons/package/package-icon.d.ts +5 -0
- package/dist/icons/package/package-icon.js +9 -0
- package/dist/icons/package/package-rig.d.ts +40 -0
- package/dist/icons/package/package-rig.js +60 -0
- package/dist/icons/pause/pause-icon.d.ts +5 -0
- package/dist/icons/pause/pause-icon.js +9 -0
- package/dist/icons/pause/pause-rig.d.ts +104 -0
- package/dist/icons/pause/pause-rig.js +147 -0
- package/dist/icons/pencil/pencil-icon.d.ts +5 -0
- package/dist/icons/pencil/pencil-icon.js +9 -0
- package/dist/icons/pencil/pencil-rig.d.ts +48 -0
- package/dist/icons/pencil/pencil-rig.js +68 -0
- package/dist/icons/phone/phone-icon.d.ts +5 -0
- package/dist/icons/phone/phone-icon.js +9 -0
- package/dist/icons/phone/phone-rig.d.ts +41 -0
- package/dist/icons/phone/phone-rig.js +60 -0
- package/dist/icons/play/play-icon.d.ts +5 -0
- package/dist/icons/play/play-icon.js +9 -0
- package/dist/icons/play/play-rig.d.ts +58 -0
- package/dist/icons/play/play-rig.js +80 -0
- package/dist/icons/plug/plug-icon.d.ts +5 -0
- package/dist/icons/plug/plug-icon.js +21 -0
- package/dist/icons/plug/plug-rig.d.ts +16 -0
- package/dist/icons/plug/plug-rig.js +29 -0
- package/dist/icons/plus/plus-icon.d.ts +5 -0
- package/dist/icons/plus/plus-icon.js +9 -0
- package/dist/icons/plus/plus-rig.d.ts +94 -0
- package/dist/icons/plus/plus-rig.js +137 -0
- package/dist/icons/refresh/refresh-icon.d.ts +5 -0
- package/dist/icons/refresh/refresh-icon.js +40 -0
- package/dist/icons/refresh/refresh-rig.d.ts +11 -0
- package/dist/icons/refresh/refresh-rig.js +30 -0
- package/dist/icons/replace/replace-icon.d.ts +5 -0
- package/dist/icons/replace/replace-icon.js +26 -0
- package/dist/icons/replace/replace-rig.d.ts +20 -0
- package/dist/icons/replace/replace-rig.js +42 -0
- package/dist/icons/rocket/rocket-icon.js +1 -1
- package/dist/icons/save/save-icon.d.ts +5 -0
- package/dist/icons/save/save-icon.js +9 -0
- package/dist/icons/save/save-rig.d.ts +43 -0
- package/dist/icons/save/save-rig.js +63 -0
- package/dist/icons/search/search-icon.js +1 -1
- package/dist/icons/send/send-icon.d.ts +5 -0
- package/dist/icons/send/send-icon.js +9 -0
- package/dist/icons/send/send-rig.d.ts +43 -0
- package/dist/icons/send/send-rig.js +61 -0
- package/dist/icons/settings/settings-icon.d.ts +5 -0
- package/dist/icons/settings/settings-icon.js +9 -0
- package/dist/icons/settings/settings-rig.d.ts +41 -0
- package/dist/icons/settings/settings-rig.js +64 -0
- package/dist/icons/share/share-icon.d.ts +5 -0
- package/dist/icons/share/share-icon.js +9 -0
- package/dist/icons/share/share-rig.d.ts +80 -0
- package/dist/icons/share/share-rig.js +114 -0
- package/dist/icons/shield/shield-icon.d.ts +5 -0
- package/dist/icons/shield/shield-icon.js +25 -0
- package/dist/icons/shield/shield-rig.d.ts +23 -0
- package/dist/icons/shield/shield-rig.js +42 -0
- package/dist/icons/ship/ship-icon.js +1 -1
- package/dist/icons/shopping-bag/shopping-bag-icon.d.ts +5 -0
- package/dist/icons/shopping-bag/shopping-bag-icon.js +9 -0
- package/dist/icons/shopping-bag/shopping-bag-rig.d.ts +92 -0
- package/dist/icons/shopping-bag/shopping-bag-rig.js +139 -0
- package/dist/icons/shopping-cart/shopping-cart-icon.d.ts +5 -0
- package/dist/icons/shopping-cart/shopping-cart-icon.js +9 -0
- package/dist/icons/shopping-cart/shopping-cart-rig.d.ts +72 -0
- package/dist/icons/shopping-cart/shopping-cart-rig.js +111 -0
- package/dist/icons/sliders/sliders-icon.d.ts +5 -0
- package/dist/icons/sliders/sliders-icon.js +9 -0
- package/dist/icons/sliders/sliders-rig.d.ts +156 -0
- package/dist/icons/sliders/sliders-rig.js +231 -0
- package/dist/icons/sparkle/sparkle-icon.d.ts +5 -0
- package/dist/icons/sparkle/sparkle-icon.js +27 -0
- package/dist/icons/sparkle/sparkle-rig.d.ts +8 -0
- package/dist/icons/sparkle/sparkle-rig.js +6 -0
- package/dist/icons/sparkles/sparkles-icon.d.ts +5 -0
- package/dist/icons/sparkles/sparkles-icon.js +27 -0
- package/dist/icons/sparkles/sparkles-rig.d.ts +14 -0
- package/dist/icons/sparkles/sparkles-rig.js +24 -0
- package/dist/icons/star/star-icon.d.ts +5 -0
- package/dist/icons/star/star-icon.js +38 -0
- package/dist/icons/star/star-rig.d.ts +20 -0
- package/dist/icons/star/star-rig.js +61 -0
- package/dist/icons/sun/sun-icon.d.ts +5 -0
- package/dist/icons/sun/sun-icon.js +9 -0
- package/dist/icons/sun/sun-rig.d.ts +290 -0
- package/dist/icons/sun/sun-rig.js +401 -0
- package/dist/icons/swap/swap-icon.d.ts +5 -0
- package/dist/icons/swap/swap-icon.js +26 -0
- package/dist/icons/swap/swap-rig.d.ts +10 -0
- package/dist/icons/swap/swap-rig.js +24 -0
- package/dist/icons/terminal/terminal-icon.d.ts +5 -0
- package/dist/icons/terminal/terminal-icon.js +9 -0
- package/dist/icons/terminal/terminal-rig.d.ts +71 -0
- package/dist/icons/terminal/terminal-rig.js +102 -0
- package/dist/icons/timer/timer-icon.d.ts +5 -0
- package/dist/icons/timer/timer-icon.js +9 -0
- package/dist/icons/timer/timer-rig.d.ts +50 -0
- package/dist/icons/timer/timer-rig.js +72 -0
- package/dist/icons/truck/truck-icon.d.ts +5 -0
- package/dist/icons/truck/truck-icon.js +9 -0
- package/dist/icons/truck/truck-rig.d.ts +184 -0
- package/dist/icons/truck/truck-rig.js +272 -0
- package/dist/icons/upload/upload-icon.d.ts +5 -0
- package/dist/icons/upload/upload-icon.js +9 -0
- package/dist/icons/upload/upload-rig.d.ts +99 -0
- package/dist/icons/upload/upload-rig.js +124 -0
- package/dist/icons/user/user-icon.d.ts +5 -0
- package/dist/icons/user/user-icon.js +9 -0
- package/dist/icons/user/user-rig.d.ts +45 -0
- package/dist/icons/user/user-rig.js +66 -0
- package/dist/icons/users/users-icon.d.ts +5 -0
- package/dist/icons/users/users-icon.js +9 -0
- package/dist/icons/users/users-rig.d.ts +76 -0
- package/dist/icons/users/users-rig.js +113 -0
- package/dist/icons/video/video-icon.d.ts +5 -0
- package/dist/icons/video/video-icon.js +9 -0
- package/dist/icons/video/video-rig.d.ts +62 -0
- package/dist/icons/video/video-rig.js +84 -0
- package/dist/icons/volume/volume-icon.d.ts +5 -0
- package/dist/icons/volume/volume-icon.js +9 -0
- package/dist/icons/volume/volume-rig.d.ts +82 -0
- package/dist/icons/volume/volume-rig.js +120 -0
- package/dist/icons/wallet/wallet-icon.d.ts +5 -0
- package/dist/icons/wallet/wallet-icon.js +9 -0
- package/dist/icons/wallet/wallet-rig.d.ts +63 -0
- package/dist/icons/wallet/wallet-rig.js +90 -0
- package/dist/icons/wave/wave-icon.d.ts +5 -0
- package/dist/icons/wave/wave-icon.js +18 -0
- package/dist/icons/wave/wave-rig.d.ts +8 -0
- package/dist/icons/wave/wave-rig.js +39 -0
- package/dist/icons/wifi/wifi-icon.d.ts +5 -0
- package/dist/icons/wifi/wifi-icon.js +9 -0
- package/dist/icons/wifi/wifi-rig.d.ts +189 -0
- package/dist/icons/wifi/wifi-rig.js +260 -0
- package/dist/index.d.ts +93 -2
- package/dist/index.js +92 -1
- package/dist/shared/articulated-icon.d.ts +7 -0
- package/dist/shared/articulated-icon.js +49 -0
- package/dist/shared/articulation.d.ts +62 -0
- package/dist/shared/articulation.js +85 -0
- package/dist/shared/icon-colors.d.ts +95 -4
- package/dist/shared/icon-types.d.ts +1 -0
- package/dist/shared/sparkle-motion.d.ts +12 -0
- package/dist/shared/sparkle-motion.js +38 -0
- package/dist/shared/use-icon-motion.d.ts +5 -1
- package/dist/shared/use-icon-motion.js +30 -3
- package/package.json +464 -9
- package/dist/icons/leaf/leaf-icon.d.ts +0 -6
- package/dist/icons/leaf/leaf-icon.js +0 -29
- package/dist/icons/leaf/leaf-rig.d.ts +0 -25
- package/dist/icons/leaf/leaf-rig.js +0 -201
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export const phoneStates = ['idle', 'ringing', 'connected'];
|
|
2
|
+
// Lucide-derived outline; attribution and pinned source: THIRD_PARTY_NOTICES.md.
|
|
3
|
+
// The handset rings in a short double oscillation, then lifts to a held call posture for connection.
|
|
4
|
+
export const phoneArt = {
|
|
5
|
+
name: 'phone',
|
|
6
|
+
parts: [
|
|
7
|
+
{
|
|
8
|
+
name: 'receiver',
|
|
9
|
+
paths: [
|
|
10
|
+
'M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384',
|
|
11
|
+
],
|
|
12
|
+
poses: [
|
|
13
|
+
{},
|
|
14
|
+
{
|
|
15
|
+
angle: -16,
|
|
16
|
+
scaleX: 0.92,
|
|
17
|
+
scaleY: 0.92,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
angle: 35,
|
|
21
|
+
scaleX: 0.9,
|
|
22
|
+
scaleY: 0.9,
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
pivot: [12, 12],
|
|
26
|
+
gestures: [
|
|
27
|
+
null,
|
|
28
|
+
{
|
|
29
|
+
duration: 0.8,
|
|
30
|
+
repeatAfter: 1.65,
|
|
31
|
+
loop: true,
|
|
32
|
+
frames: [
|
|
33
|
+
{
|
|
34
|
+
at: 0,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
at: 0.14,
|
|
38
|
+
angle: 24,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
at: 0.32,
|
|
42
|
+
angle: -8,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
at: 0.51,
|
|
46
|
+
angle: 20,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
at: 0.7,
|
|
50
|
+
angle: -4,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
at: 1,
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { StatefulIconProps } from "../../shared/icon-types.js";
|
|
2
|
+
import { type PlayState } from "./play-rig.js";
|
|
3
|
+
export { playStates, type PlayState } from "./play-rig.js";
|
|
4
|
+
export type PlayIconProps = StatefulIconProps<PlayState>;
|
|
5
|
+
export declare const PlayIcon: import("react").NamedExoticComponent<PlayIconProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { memo } from 'react';
|
|
4
|
+
import { ArticulatedIcon } from "../../shared/articulated-icon.js";
|
|
5
|
+
import { playArt, playStates } from "./play-rig.js";
|
|
6
|
+
export { playStates } from "./play-rig.js";
|
|
7
|
+
export const PlayIcon = memo(function PlayIcon(props) {
|
|
8
|
+
return _jsx(ArticulatedIcon, { art: playArt, states: playStates, ...props });
|
|
9
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const playStates: readonly ["idle", "hover", "pressed"];
|
|
2
|
+
export type PlayState = (typeof playStates)[number];
|
|
3
|
+
export declare const playArt: {
|
|
4
|
+
readonly name: "play";
|
|
5
|
+
readonly parts: readonly [{
|
|
6
|
+
readonly name: "triangle";
|
|
7
|
+
readonly paths: readonly ["M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"];
|
|
8
|
+
readonly poses: readonly [{}, {
|
|
9
|
+
readonly x: 1.4;
|
|
10
|
+
readonly scaleX: 0.85;
|
|
11
|
+
}, {
|
|
12
|
+
readonly scaleX: 0.62;
|
|
13
|
+
readonly scaleY: 0.62;
|
|
14
|
+
readonly x: 0.8;
|
|
15
|
+
}];
|
|
16
|
+
readonly pivot: readonly [12, 12];
|
|
17
|
+
readonly gestures: readonly [null, {
|
|
18
|
+
readonly duration: 0.8;
|
|
19
|
+
readonly repeatAfter: 1.8;
|
|
20
|
+
readonly loop: false;
|
|
21
|
+
readonly frames: readonly [{
|
|
22
|
+
readonly at: 0;
|
|
23
|
+
}, {
|
|
24
|
+
readonly at: 0.22;
|
|
25
|
+
readonly x: -0.7;
|
|
26
|
+
readonly scaleX: -0.07;
|
|
27
|
+
}, {
|
|
28
|
+
readonly at: 0.55;
|
|
29
|
+
readonly x: 0.5;
|
|
30
|
+
readonly scaleX: 0.04;
|
|
31
|
+
}, {
|
|
32
|
+
readonly at: 1;
|
|
33
|
+
}];
|
|
34
|
+
}, {
|
|
35
|
+
readonly duration: 0.95;
|
|
36
|
+
readonly repeatAfter: 1.95;
|
|
37
|
+
readonly loop: false;
|
|
38
|
+
readonly frames: readonly [{
|
|
39
|
+
readonly at: 0;
|
|
40
|
+
}, {
|
|
41
|
+
readonly at: 0.18;
|
|
42
|
+
readonly x: -1.1;
|
|
43
|
+
readonly scaleX: -0.08;
|
|
44
|
+
}, {
|
|
45
|
+
readonly at: 0.46;
|
|
46
|
+
readonly x: 1.9;
|
|
47
|
+
readonly scaleX: 0.17;
|
|
48
|
+
readonly scaleY: -0.06;
|
|
49
|
+
}, {
|
|
50
|
+
readonly at: 0.72;
|
|
51
|
+
readonly x: -0.25;
|
|
52
|
+
readonly scaleX: -0.025;
|
|
53
|
+
}, {
|
|
54
|
+
readonly at: 1;
|
|
55
|
+
}];
|
|
56
|
+
}];
|
|
57
|
+
}];
|
|
58
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export const playStates = ['idle', 'hover', 'pressed'];
|
|
2
|
+
// Lucide-derived outline; attribution and pinned source: THIRD_PARTY_NOTICES.md.
|
|
3
|
+
// Start playback: a short backward load precedes a rightward launch and controlled landing. The action does not repeat while playback is running.
|
|
4
|
+
export const playArt = {
|
|
5
|
+
name: 'play',
|
|
6
|
+
parts: [
|
|
7
|
+
{
|
|
8
|
+
name: 'triangle',
|
|
9
|
+
paths: ['M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z'],
|
|
10
|
+
poses: [
|
|
11
|
+
{},
|
|
12
|
+
{
|
|
13
|
+
x: 1.4,
|
|
14
|
+
scaleX: 0.85,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
scaleX: 0.62,
|
|
18
|
+
scaleY: 0.62,
|
|
19
|
+
x: 0.8,
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
pivot: [12, 12],
|
|
23
|
+
gestures: [
|
|
24
|
+
null,
|
|
25
|
+
{
|
|
26
|
+
duration: 0.8,
|
|
27
|
+
repeatAfter: 1.8,
|
|
28
|
+
loop: false,
|
|
29
|
+
frames: [
|
|
30
|
+
{
|
|
31
|
+
at: 0,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
at: 0.22,
|
|
35
|
+
x: -0.7,
|
|
36
|
+
scaleX: -0.07,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
at: 0.55,
|
|
40
|
+
x: 0.5,
|
|
41
|
+
scaleX: 0.04,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
at: 1,
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
duration: 0.95,
|
|
50
|
+
repeatAfter: 1.95,
|
|
51
|
+
loop: false,
|
|
52
|
+
frames: [
|
|
53
|
+
{
|
|
54
|
+
at: 0,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
at: 0.18,
|
|
58
|
+
x: -1.1,
|
|
59
|
+
scaleX: -0.08,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
at: 0.46,
|
|
63
|
+
x: 1.9,
|
|
64
|
+
scaleX: 0.17,
|
|
65
|
+
scaleY: -0.06,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
at: 0.72,
|
|
69
|
+
x: -0.25,
|
|
70
|
+
scaleX: -0.025,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
at: 1,
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { StatefulIconProps } from "../../shared/icon-types.js";
|
|
2
|
+
import { type PlugState } from "./plug-rig.js";
|
|
3
|
+
export { plugStates, type PlugState } from "./plug-rig.js";
|
|
4
|
+
export type PlugIconProps = StatefulIconProps<PlugState>;
|
|
5
|
+
export declare const PlugIcon: import("react").NamedExoticComponent<PlugIconProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { memo, useRef } from 'react';
|
|
4
|
+
import { motion, useTransform } from 'motion/react';
|
|
5
|
+
import { usePoseWeight, useBehaviorClock } from "../../shared/use-icon-motion.js";
|
|
6
|
+
import { useMotionPreference } from "../../shared/use-motion-preference.js";
|
|
7
|
+
import { PLUG_MALE, PLUG_SOCKET, samplePlug } from "./plug-rig.js";
|
|
8
|
+
export { plugStates } from "./plug-rig.js";
|
|
9
|
+
const ORIGIN = { originX: '0px', originY: '0px', transformBox: 'view-box' };
|
|
10
|
+
export const PlugIcon = memo(function PlugIcon({ state = 'disconnected', size = 24, color = 'currentColor', accentColor = 'currentColor', strokeWidth = 1.65, speed = 1, alive = false, className, }) {
|
|
11
|
+
const reduced = useMotionPreference(), element = useRef(null);
|
|
12
|
+
const pace = Number.isFinite(speed) ? Math.min(4, Math.max(0.1, speed)) : 1;
|
|
13
|
+
const disconnected = usePoseWeight(state === 'disconnected', pace, reduced), connecting = usePoseWeight(state === 'connecting', pace, reduced), connected = usePoseWeight(state === 'connected', pace, reduced), error = usePoseWeight(state === 'error', pace, reduced);
|
|
14
|
+
const performs = alive && !reduced && state !== 'disconnected', life = usePoseWeight(performs, pace, reduced), time = useBehaviorClock(element, performs, pace, life);
|
|
15
|
+
const rig = useTransform(() => samplePlug([disconnected.get(), connecting.get(), connected.get(), error.get()], time.get(), life.get()));
|
|
16
|
+
const male = useTransform(rig, (r) => r.male), socket = useTransform(rig, (r) => r.socket), cables = useTransform(rig, (r) => r.cables), pins = useTransform(rig, (r) => r.pins), pinOpacity = useTransform(rig, (r) => r.pinOpacity), signal = useTransform(rig, (r) => r.signal), warning = useTransform(rig, (r) => r.error), signalScale = useTransform(rig, (r) => r.signalScale);
|
|
17
|
+
return (_jsx("svg", { ref: element, className: className, width: size, height: size, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", focusable: "false", pointerEvents: "none", style: { display: 'block', overflow: 'visible' }, children: _jsxs("g", { style: {
|
|
18
|
+
...ORIGIN,
|
|
19
|
+
transform: 'translate(12px, 12px) scale(.78) rotate(-45deg) translate(-12px, -12px)',
|
|
20
|
+
}, children: [_jsx(motion.path, { "data-layer": "plug-cables", d: cables, stroke: color, strokeWidth: strokeWidth }), _jsx(motion.path, { "data-layer": "plug-signal", d: "M10 6l2-1 2 1M10 18l2 1 2-1", stroke: accentColor, strokeWidth: strokeWidth * 0.7, opacity: signal, style: { ...ORIGIN, scale: signalScale, originX: '12px', originY: '12px' } }), _jsxs(motion.g, { "data-layer": "plug-male", transform: male, style: ORIGIN, stroke: color, strokeWidth: strokeWidth, children: [_jsx("path", { "data-part": "male", d: PLUG_MALE }), _jsx(motion.path, { "data-layer": "plug-pins", d: pins, opacity: pinOpacity })] }), _jsx(motion.g, { "data-layer": "plug-socket", transform: socket, style: ORIGIN, stroke: color, strokeWidth: strokeWidth, children: _jsx("path", { "data-part": "socket", d: PLUG_SOCKET }) }), _jsx(motion.path, { "data-layer": "plug-error", d: "M12 3v2M12 7v.1", stroke: accentColor, strokeWidth: strokeWidth * 0.8, opacity: warning })] }) }));
|
|
21
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const plugStates: readonly ["disconnected", "connecting", "connected", "error"];
|
|
2
|
+
export type PlugState = (typeof plugStates)[number];
|
|
3
|
+
export declare const PLUG_MALE = "M8 8H6a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h2Z";
|
|
4
|
+
export declare const PLUG_SOCKET = "M16 8h2a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2Z";
|
|
5
|
+
export declare function samplePlug(weights: readonly number[], time?: number, alive?: number): {
|
|
6
|
+
male: string;
|
|
7
|
+
socket: string;
|
|
8
|
+
cables: string;
|
|
9
|
+
pins: string;
|
|
10
|
+
pinOpacity: number;
|
|
11
|
+
signal: number;
|
|
12
|
+
signalScale: number;
|
|
13
|
+
error: number;
|
|
14
|
+
gap: number;
|
|
15
|
+
contact: number;
|
|
16
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { behaviorBeat } from "../../shared/behavior-curves.js";
|
|
2
|
+
export const plugStates = ['disconnected', 'connecting', 'connected', 'error'];
|
|
3
|
+
// A straightened Lucide Unplug pair, rotated together onto its original diagonal.
|
|
4
|
+
export const PLUG_MALE = 'M8 8H6a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h2Z';
|
|
5
|
+
export const PLUG_SOCKET = 'M16 8h2a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2Z';
|
|
6
|
+
const clamp = (n) => Math.max(0, Math.min(1, n));
|
|
7
|
+
export function samplePlug(weights, time = 0, alive = 0) {
|
|
8
|
+
const [, c, on, e] = weights.map(clamp), life = clamp(alive), t = time % 8.2;
|
|
9
|
+
const approach = behaviorBeat(t, 0.15, 0.85, 0.3, 1.1) + 0.65 * behaviorBeat(t, 4.4, 0.65, 0.15, 0.9);
|
|
10
|
+
const latch = behaviorBeat(t, 0.98, 0.16, 0.08, 0.5);
|
|
11
|
+
const retry = behaviorBeat(t, 0.2, 0.55, 0.1, 0.85) + 0.6 * behaviorBeat(t, 4.6, 0.45, 0.1, 0.75);
|
|
12
|
+
// Connecting approaches but never declares success. Error attempts cannot mate.
|
|
13
|
+
const contact = clamp(on + c * (0.18 + life * 0.3 * approach) + e * life * 0.12 * retry);
|
|
14
|
+
const shift = 4 * contact, gap = 8 - 2 * shift;
|
|
15
|
+
const pulse = on * life * (behaviorBeat(t, 0.2, 0.8, 0.2, 1) + 0.7 * behaviorBeat(t, 4.5, 0.7, 0.2, 0.9));
|
|
16
|
+
const pins = Math.min(3, gap);
|
|
17
|
+
return {
|
|
18
|
+
male: `translate(${shift}px, 0px)`,
|
|
19
|
+
socket: `translate(${-shift}px, 0px)`,
|
|
20
|
+
cables: `M2 12H${4 + shift}M${20 - shift} 12H22`,
|
|
21
|
+
pins: `M8 10H${8 + pins}M8 14H${8 + pins}`,
|
|
22
|
+
pinOpacity: clamp(gap / 1.8),
|
|
23
|
+
signal: c * (0.35 + life * 0.45 * approach) + pulse * 0.4,
|
|
24
|
+
signalScale: 1 + c * life * 0.18 * latch,
|
|
25
|
+
error: e,
|
|
26
|
+
gap,
|
|
27
|
+
contact,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { StatefulIconProps } from "../../shared/icon-types.js";
|
|
2
|
+
import { type PlusState } from "./plus-rig.js";
|
|
3
|
+
export { plusStates, type PlusState } from "./plus-rig.js";
|
|
4
|
+
export type PlusIconProps = StatefulIconProps<PlusState>;
|
|
5
|
+
export declare const PlusIcon: import("react").NamedExoticComponent<PlusIconProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { memo } from 'react';
|
|
4
|
+
import { ArticulatedIcon } from "../../shared/articulated-icon.js";
|
|
5
|
+
import { plusArt, plusStates } from "./plus-rig.js";
|
|
6
|
+
export { plusStates } from "./plus-rig.js";
|
|
7
|
+
export const PlusIcon = memo(function PlusIcon(props) {
|
|
8
|
+
return _jsx(ArticulatedIcon, { art: plusArt, states: plusStates, ...props });
|
|
9
|
+
});
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export declare const plusStates: readonly ["idle", "hover", "pressed"];
|
|
2
|
+
export type PlusState = (typeof plusStates)[number];
|
|
3
|
+
export declare const plusArt: {
|
|
4
|
+
readonly name: "plus";
|
|
5
|
+
readonly parts: readonly [{
|
|
6
|
+
readonly name: "horizontal";
|
|
7
|
+
readonly paths: readonly ["M5 12h14"];
|
|
8
|
+
readonly poses: readonly [{}, {
|
|
9
|
+
readonly scaleX: 1.22;
|
|
10
|
+
}, {
|
|
11
|
+
readonly scaleX: 0.58;
|
|
12
|
+
}];
|
|
13
|
+
readonly pivot: readonly [12, 12];
|
|
14
|
+
readonly gestures: readonly [null, {
|
|
15
|
+
readonly duration: 0.8;
|
|
16
|
+
readonly repeatAfter: 1.8;
|
|
17
|
+
readonly loop: false;
|
|
18
|
+
readonly frames: readonly [{
|
|
19
|
+
readonly at: 0;
|
|
20
|
+
}, {
|
|
21
|
+
readonly at: 0.22;
|
|
22
|
+
readonly scaleX: 0.1;
|
|
23
|
+
}, {
|
|
24
|
+
readonly at: 0.54;
|
|
25
|
+
readonly scaleX: -0.08;
|
|
26
|
+
}, {
|
|
27
|
+
readonly at: 1;
|
|
28
|
+
}];
|
|
29
|
+
}, {
|
|
30
|
+
readonly duration: 0.9;
|
|
31
|
+
readonly repeatAfter: 1.9;
|
|
32
|
+
readonly loop: false;
|
|
33
|
+
readonly frames: readonly [{
|
|
34
|
+
readonly at: 0;
|
|
35
|
+
}, {
|
|
36
|
+
readonly at: 0.17;
|
|
37
|
+
readonly scaleX: -0.16;
|
|
38
|
+
}, {
|
|
39
|
+
readonly at: 0.44;
|
|
40
|
+
readonly scaleX: 0.25;
|
|
41
|
+
}, {
|
|
42
|
+
readonly at: 0.74;
|
|
43
|
+
readonly scaleX: -0.04;
|
|
44
|
+
}, {
|
|
45
|
+
readonly at: 1;
|
|
46
|
+
}];
|
|
47
|
+
}];
|
|
48
|
+
}, {
|
|
49
|
+
readonly name: "vertical";
|
|
50
|
+
readonly paths: readonly ["M12 5v14"];
|
|
51
|
+
readonly poses: readonly [{}, {
|
|
52
|
+
readonly scaleY: 1.22;
|
|
53
|
+
}, {
|
|
54
|
+
readonly scaleY: 0.58;
|
|
55
|
+
}];
|
|
56
|
+
readonly pivot: readonly [12, 12];
|
|
57
|
+
readonly gestures: readonly [null, {
|
|
58
|
+
readonly duration: 0.8;
|
|
59
|
+
readonly repeatAfter: 1.8;
|
|
60
|
+
readonly loop: false;
|
|
61
|
+
readonly frames: readonly [{
|
|
62
|
+
readonly at: 0;
|
|
63
|
+
}, {
|
|
64
|
+
readonly at: 0.18;
|
|
65
|
+
}, {
|
|
66
|
+
readonly at: 0.43;
|
|
67
|
+
readonly scaleY: 0.1;
|
|
68
|
+
}, {
|
|
69
|
+
readonly at: 0.66;
|
|
70
|
+
readonly scaleY: -0.06;
|
|
71
|
+
}, {
|
|
72
|
+
readonly at: 1;
|
|
73
|
+
}];
|
|
74
|
+
}, {
|
|
75
|
+
readonly duration: 0.9;
|
|
76
|
+
readonly repeatAfter: 1.9;
|
|
77
|
+
readonly loop: false;
|
|
78
|
+
readonly frames: readonly [{
|
|
79
|
+
readonly at: 0;
|
|
80
|
+
}, {
|
|
81
|
+
readonly at: 0.28;
|
|
82
|
+
readonly scaleY: -0.14;
|
|
83
|
+
}, {
|
|
84
|
+
readonly at: 0.6;
|
|
85
|
+
readonly scaleY: 0.22;
|
|
86
|
+
}, {
|
|
87
|
+
readonly at: 0.84;
|
|
88
|
+
readonly scaleY: -0.03;
|
|
89
|
+
}, {
|
|
90
|
+
readonly at: 1;
|
|
91
|
+
}];
|
|
92
|
+
}];
|
|
93
|
+
}];
|
|
94
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
export const plusStates = ['idle', 'hover', 'pressed'];
|
|
2
|
+
// Lucide-derived outline; attribution and pinned source: THIRD_PARTY_NOTICES.md.
|
|
3
|
+
// Add action: horizontal compression leads, the vertical arm follows, then the cross springs open once. It remains a plus throughout.
|
|
4
|
+
export const plusArt = {
|
|
5
|
+
name: 'plus',
|
|
6
|
+
parts: [
|
|
7
|
+
{
|
|
8
|
+
name: 'horizontal',
|
|
9
|
+
paths: ['M5 12h14'],
|
|
10
|
+
poses: [
|
|
11
|
+
{},
|
|
12
|
+
{
|
|
13
|
+
scaleX: 1.22,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
scaleX: 0.58,
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
pivot: [12, 12],
|
|
20
|
+
gestures: [
|
|
21
|
+
null,
|
|
22
|
+
{
|
|
23
|
+
duration: 0.8,
|
|
24
|
+
repeatAfter: 1.8,
|
|
25
|
+
loop: false,
|
|
26
|
+
frames: [
|
|
27
|
+
{
|
|
28
|
+
at: 0,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
at: 0.22,
|
|
32
|
+
scaleX: 0.1,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
at: 0.54,
|
|
36
|
+
scaleX: -0.08,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
at: 1,
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
duration: 0.9,
|
|
45
|
+
repeatAfter: 1.9,
|
|
46
|
+
loop: false,
|
|
47
|
+
frames: [
|
|
48
|
+
{
|
|
49
|
+
at: 0,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
at: 0.17,
|
|
53
|
+
scaleX: -0.16,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
at: 0.44,
|
|
57
|
+
scaleX: 0.25,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
at: 0.74,
|
|
61
|
+
scaleX: -0.04,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
at: 1,
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'vertical',
|
|
72
|
+
paths: ['M12 5v14'],
|
|
73
|
+
poses: [
|
|
74
|
+
{},
|
|
75
|
+
{
|
|
76
|
+
scaleY: 1.22,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
scaleY: 0.58,
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
pivot: [12, 12],
|
|
83
|
+
gestures: [
|
|
84
|
+
null,
|
|
85
|
+
{
|
|
86
|
+
duration: 0.8,
|
|
87
|
+
repeatAfter: 1.8,
|
|
88
|
+
loop: false,
|
|
89
|
+
frames: [
|
|
90
|
+
{
|
|
91
|
+
at: 0,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
at: 0.18,
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
at: 0.43,
|
|
98
|
+
scaleY: 0.1,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
at: 0.66,
|
|
102
|
+
scaleY: -0.06,
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
at: 1,
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
duration: 0.9,
|
|
111
|
+
repeatAfter: 1.9,
|
|
112
|
+
loop: false,
|
|
113
|
+
frames: [
|
|
114
|
+
{
|
|
115
|
+
at: 0,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
at: 0.28,
|
|
119
|
+
scaleY: -0.14,
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
at: 0.6,
|
|
123
|
+
scaleY: 0.22,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
at: 0.84,
|
|
127
|
+
scaleY: -0.03,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
at: 1,
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { StatefulIconProps } from "../../shared/icon-types.js";
|
|
2
|
+
import { type RefreshState } from "./refresh-rig.js";
|
|
3
|
+
export { refreshStates, type RefreshState } from "./refresh-rig.js";
|
|
4
|
+
export type RefreshIconProps = StatefulIconProps<RefreshState>;
|
|
5
|
+
export declare const RefreshIcon: import("react").NamedExoticComponent<RefreshIconProps>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { memo, useRef, useCallback, useEffect } from 'react';
|
|
4
|
+
import { motion, useTransform, useMotionValue } from 'motion/react';
|
|
5
|
+
import { usePoseWeight, useBehaviorClock, useActionProgress } from "../../shared/use-icon-motion.js";
|
|
6
|
+
import { useMotionPreference } from "../../shared/use-motion-preference.js";
|
|
7
|
+
import { REFRESH_UPPER, REFRESH_LOWER, REFRESH_HEADS, sampleRefresh, } from "./refresh-rig.js";
|
|
8
|
+
export { refreshStates } from "./refresh-rig.js";
|
|
9
|
+
const ORIGIN = { originX: '0px', originY: '0px', transformBox: 'view-box' };
|
|
10
|
+
export const RefreshIcon = memo(function RefreshIcon({ state = 'ready', size = 24, color = 'currentColor', accentColor = 'currentColor', strokeWidth = 1.65, speed = 1, alive = false, className, }) {
|
|
11
|
+
const reduced = useMotionPreference(), element = useRef(null);
|
|
12
|
+
const pace = Number.isFinite(speed) ? Math.min(4, Math.max(0.1, speed)) : 1;
|
|
13
|
+
const w0 = usePoseWeight(state === 'ready', pace, reduced);
|
|
14
|
+
const w1 = usePoseWeight(state === 'refreshing', pace, reduced);
|
|
15
|
+
const w2 = usePoseWeight(state === 'complete', pace, reduced);
|
|
16
|
+
const w3 = usePoseWeight(state === 'failed', pace, reduced);
|
|
17
|
+
const performs = alive && !reduced && state === 'refreshing';
|
|
18
|
+
const life = usePoseWeight(performs, pace, reduced), time = useBehaviorClock(element, performs, pace, life);
|
|
19
|
+
const phase = useMotionValue(0);
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
let previous = time.get();
|
|
22
|
+
return time.on('change', (now) => {
|
|
23
|
+
const delta = Math.max(0, now - previous);
|
|
24
|
+
previous = now;
|
|
25
|
+
phase.set(phase.get() + delta * 180 * life.get() * w1.get());
|
|
26
|
+
});
|
|
27
|
+
}, [time, phase, life, w1]);
|
|
28
|
+
const can0 = useCallback(() => w1.get() < 0.001, [w1]);
|
|
29
|
+
const e0 = useActionProgress(state === 'refreshing', pace, reduced, 1.1, can0);
|
|
30
|
+
const can1 = useCallback(() => w2.get() < 0.001, [w2]);
|
|
31
|
+
const e1 = useActionProgress(state === 'complete', pace, reduced, 0.85, can1);
|
|
32
|
+
const can2 = useCallback(() => w3.get() < 0.001, [w3]);
|
|
33
|
+
const e2 = useActionProgress(state === 'failed', pace, reduced, 0.95, can2);
|
|
34
|
+
const rig = useTransform(() => sampleRefresh([w0.get(), w1.get(), w2.get(), w3.get()], time.get(), life.get(), e0.get(), e1.get(), e2.get(), phase.get()));
|
|
35
|
+
const wheel = useTransform(rig, (r) => r.wheel);
|
|
36
|
+
const check = useTransform(rig, (r) => r.check);
|
|
37
|
+
const checkOffset = useTransform(rig, (r) => r.checkOffset);
|
|
38
|
+
const failure = useTransform(rig, (r) => r.failure);
|
|
39
|
+
return (_jsx("svg", { ref: element, className: className, width: size, height: size, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "none", stroke: color, strokeWidth: strokeWidth, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", focusable: "false", pointerEvents: "none", style: { display: 'block' }, children: _jsxs("g", { "data-layer": "refresh-body", transform: "translate(12 12) scale(.8) translate(-12 -12)", children: [_jsxs(motion.g, { "data-layer": "refresh-wheel", transform: wheel, style: ORIGIN, children: [_jsx("path", { "data-part": "upper-arc", d: REFRESH_UPPER }), _jsx("path", { "data-part": "lower-arc", d: REFRESH_LOWER }), _jsx("path", { "data-part": "heads", d: REFRESH_HEADS })] }), _jsx(motion.path, { "data-layer": "refresh-check", d: "M8.8 12L11.2 14.4L15.2 10.4", opacity: check, stroke: accentColor, strokeWidth: Math.min(strokeWidth * 0.8, 1.5), strokeDasharray: "9.06", strokeDashoffset: checkOffset }), _jsx(motion.g, { "data-layer": "refresh-failure", opacity: failure, children: _jsx("path", { d: "M9.5 9.5L14.5 14.5M14.5 9.5L9.5 14.5", strokeWidth: Math.min(strokeWidth * 0.8, 1.5) }) })] }) }));
|
|
40
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const refreshStates: readonly ["ready", "refreshing", "complete", "failed"];
|
|
2
|
+
export type RefreshState = (typeof refreshStates)[number];
|
|
3
|
+
export declare const REFRESH_UPPER = "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8";
|
|
4
|
+
export declare const REFRESH_LOWER = "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16";
|
|
5
|
+
export declare const REFRESH_HEADS = "M21 3v5h-5M8 16H3v5";
|
|
6
|
+
export declare function sampleRefresh(weights: readonly number[], _time?: number, _alive?: number, entry?: number, successEntry?: number, _failureEntry?: number, phase?: number): {
|
|
7
|
+
wheel: string;
|
|
8
|
+
check: number;
|
|
9
|
+
checkOffset: number;
|
|
10
|
+
failure: number;
|
|
11
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const clamp = (n) => Math.max(0, Math.min(1, Number.isFinite(n) ? n : 0));
|
|
2
|
+
const smooth = (n) => {
|
|
3
|
+
const q = clamp(n);
|
|
4
|
+
return q * q * q * (q * (q * 6 - 15) + 10);
|
|
5
|
+
};
|
|
6
|
+
const normalized = (values) => {
|
|
7
|
+
const w = values.map(clamp), sum = w.reduce((a, b) => a + b, 0) || 1;
|
|
8
|
+
return w.map((v) => v / sum);
|
|
9
|
+
};
|
|
10
|
+
export const refreshStates = ['ready', 'refreshing', 'complete', 'failed'];
|
|
11
|
+
export const REFRESH_UPPER = 'M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8';
|
|
12
|
+
export const REFRESH_LOWER = 'M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16';
|
|
13
|
+
export const REFRESH_HEADS = 'M21 3v5h-5M8 16H3v5';
|
|
14
|
+
export function sampleRefresh(weights, _time = 0, _alive = 0, entry = 1, successEntry = 1, _failureEntry = 1, phase = 0) {
|
|
15
|
+
// Retain the common rig-sampler positions; this rig consumes integrated
|
|
16
|
+
// phase rather than the raw behavior clock or a refusal playhead.
|
|
17
|
+
void _time;
|
|
18
|
+
void _alive;
|
|
19
|
+
void _failureEntry;
|
|
20
|
+
const w = normalized(weights);
|
|
21
|
+
// Opposed arrows return to an equivalent outline after a finite half-turn.
|
|
22
|
+
// Living phase accumulates in the renderer; a fade never rewinds this angle.
|
|
23
|
+
const turn = phase + 180 * smooth(entry);
|
|
24
|
+
return {
|
|
25
|
+
wheel: `translate(12px, 12px) rotate(${turn}deg) translate(-12px, -12px)`,
|
|
26
|
+
check: w[2],
|
|
27
|
+
checkOffset: 9.06 * (1 - smooth((successEntry - 0.08) / 0.62)),
|
|
28
|
+
failure: w[3],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { StatefulIconProps } from "../../shared/icon-types.js";
|
|
2
|
+
import { type ReplaceState } from "./replace-rig.js";
|
|
3
|
+
export { replaceStates, type ReplaceState } from "./replace-rig.js";
|
|
4
|
+
export type ReplaceIconProps = StatefulIconProps<ReplaceState>;
|
|
5
|
+
export declare const ReplaceIcon: import("react").NamedExoticComponent<ReplaceIconProps>;
|