weasel-icons 0.2.0 → 0.4.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 +94 -3
- package/THIRD_PARTY_NOTICES.md +8 -4
- package/dist/icons/app-window/app-window-icon.d.ts +5 -0
- package/dist/icons/app-window/app-window-icon.js +9 -0
- package/dist/icons/app-window/app-window-rig.d.ts +37 -0
- package/dist/icons/app-window/app-window-rig.js +54 -0
- package/dist/icons/archive/archive-icon.d.ts +5 -0
- package/dist/icons/archive/archive-icon.js +9 -0
- package/dist/icons/archive/archive-rig.d.ts +46 -0
- package/dist/icons/archive/archive-rig.js +68 -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/at-sign/at-sign-icon.d.ts +5 -0
- package/dist/icons/at-sign/at-sign-icon.js +9 -0
- package/dist/icons/at-sign/at-sign-rig.d.ts +31 -0
- package/dist/icons/at-sign/at-sign-rig.js +47 -0
- package/dist/icons/bluetooth/bluetooth-icon.d.ts +5 -0
- package/dist/icons/bluetooth/bluetooth-icon.js +9 -0
- package/dist/icons/bluetooth/bluetooth-rig.d.ts +53 -0
- package/dist/icons/bluetooth/bluetooth-rig.js +86 -0
- 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/brush/brush-icon.d.ts +5 -0
- package/dist/icons/brush/brush-icon.js +9 -0
- package/dist/icons/brush/brush-rig.d.ts +67 -0
- package/dist/icons/brush/brush-rig.js +103 -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/cast/cast-icon.d.ts +5 -0
- package/dist/icons/cast/cast-icon.js +9 -0
- package/dist/icons/cast/cast-rig.d.ts +57 -0
- package/dist/icons/cast/cast-rig.js +88 -0
- package/dist/icons/chart-bar/chart-bar-icon.d.ts +5 -0
- package/dist/icons/chart-bar/chart-bar-icon.js +9 -0
- package/dist/icons/chart-bar/chart-bar-rig.d.ts +79 -0
- package/dist/icons/chart-bar/chart-bar-rig.js +124 -0
- package/dist/icons/chart-line/chart-line-icon.d.ts +5 -0
- package/dist/icons/chart-line/chart-line-icon.js +9 -0
- package/dist/icons/chart-line/chart-line-rig.d.ts +50 -0
- package/dist/icons/chart-line/chart-line-rig.js +73 -0
- package/dist/icons/chart-pie/chart-pie-icon.d.ts +5 -0
- package/dist/icons/chart-pie/chart-pie-icon.js +9 -0
- package/dist/icons/chart-pie/chart-pie-rig.d.ts +21 -0
- package/dist/icons/chart-pie/chart-pie-rig.js +31 -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/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/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/columns/columns-icon.d.ts +5 -0
- package/dist/icons/columns/columns-icon.js +9 -0
- package/dist/icons/columns/columns-rig.d.ts +15 -0
- package/dist/icons/columns/columns-rig.js +19 -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/crop/crop-icon.d.ts +5 -0
- package/dist/icons/crop/crop-icon.js +9 -0
- package/dist/icons/crop/crop-rig.d.ts +16 -0
- package/dist/icons/crop/crop-rig.js +28 -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/eraser/eraser-icon.d.ts +5 -0
- package/dist/icons/eraser/eraser-icon.js +9 -0
- package/dist/icons/eraser/eraser-rig.d.ts +48 -0
- package/dist/icons/eraser/eraser-rig.js +76 -0
- 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/fast-forward/fast-forward-icon.d.ts +5 -0
- package/dist/icons/fast-forward/fast-forward-icon.js +9 -0
- package/dist/icons/fast-forward/fast-forward-rig.d.ts +48 -0
- package/dist/icons/fast-forward/fast-forward-rig.js +78 -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-check/file-check-icon.d.ts +5 -0
- package/dist/icons/file-check/file-check-icon.js +9 -0
- package/dist/icons/file-check/file-check-rig.d.ts +57 -0
- package/dist/icons/file-check/file-check-rig.js +89 -0
- package/dist/icons/file-plus/file-plus-icon.d.ts +5 -0
- package/dist/icons/file-plus/file-plus-icon.js +9 -0
- package/dist/icons/file-plus/file-plus-rig.d.ts +33 -0
- package/dist/icons/file-plus/file-plus-rig.js +56 -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/fingerprint/fingerprint-icon.d.ts +5 -0
- package/dist/icons/fingerprint/fingerprint-icon.js +9 -0
- package/dist/icons/fingerprint/fingerprint-rig.d.ts +61 -0
- package/dist/icons/fingerprint/fingerprint-rig.js +102 -0
- package/dist/icons/flag/flag-icon.d.ts +5 -0
- package/dist/icons/flag/flag-icon.js +9 -0
- package/dist/icons/flag/flag-rig.d.ts +35 -0
- package/dist/icons/flag/flag-rig.js +54 -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/folder-open/folder-open-icon.d.ts +5 -0
- package/dist/icons/folder-open/folder-open-icon.js +9 -0
- package/dist/icons/folder-open/folder-open-rig.d.ts +15 -0
- package/dist/icons/folder-open/folder-open-rig.js +23 -0
- package/dist/icons/folder-plus/folder-plus-icon.d.ts +5 -0
- package/dist/icons/folder-plus/folder-plus-icon.js +9 -0
- package/dist/icons/folder-plus/folder-plus-rig.d.ts +46 -0
- package/dist/icons/folder-plus/folder-plus-rig.js +72 -0
- package/dist/icons/forward/forward-icon.d.ts +5 -0
- package/dist/icons/forward/forward-icon.js +9 -0
- package/dist/icons/forward/forward-rig.d.ts +45 -0
- package/dist/icons/forward/forward-rig.js +73 -0
- package/dist/icons/gift/gift-icon.d.ts +5 -0
- package/dist/icons/gift/gift-icon.js +9 -0
- package/dist/icons/gift/gift-rig.d.ts +40 -0
- package/dist/icons/gift/gift-rig.js +64 -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/hard-drive/hard-drive-icon.d.ts +5 -0
- package/dist/icons/hard-drive/hard-drive-icon.js +9 -0
- package/dist/icons/hard-drive/hard-drive-rig.d.ts +54 -0
- package/dist/icons/hard-drive/hard-drive-rig.js +88 -0
- package/dist/icons/headphones/headphones-icon.d.ts +5 -0
- package/dist/icons/headphones/headphones-icon.js +9 -0
- package/dist/icons/headphones/headphones-rig.d.ts +66 -0
- package/dist/icons/headphones/headphones-rig.js +102 -0
- package/dist/icons/highlighter/highlighter-icon.d.ts +5 -0
- package/dist/icons/highlighter/highlighter-icon.js +9 -0
- package/dist/icons/highlighter/highlighter-rig.d.ts +37 -0
- package/dist/icons/highlighter/highlighter-rig.js +57 -0
- 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/inbox/inbox-icon.d.ts +5 -0
- package/dist/icons/inbox/inbox-icon.js +9 -0
- package/dist/icons/inbox/inbox-rig.d.ts +48 -0
- package/dist/icons/inbox/inbox-rig.js +73 -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/kanban/kanban-icon.d.ts +5 -0
- package/dist/icons/kanban/kanban-icon.js +9 -0
- package/dist/icons/kanban/kanban-rig.d.ts +19 -0
- package/dist/icons/kanban/kanban-rig.js +27 -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/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/monitor/monitor-icon.d.ts +5 -0
- package/dist/icons/monitor/monitor-icon.js +9 -0
- package/dist/icons/monitor/monitor-rig.d.ts +42 -0
- package/dist/icons/monitor/monitor-rig.js +67 -0
- 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/panel-left/panel-left-icon.d.ts +5 -0
- package/dist/icons/panel-left/panel-left-icon.js +9 -0
- package/dist/icons/panel-left/panel-left-rig.d.ts +15 -0
- package/dist/icons/panel-left/panel-left-rig.js +19 -0
- package/dist/icons/panel-right/panel-right-icon.d.ts +5 -0
- package/dist/icons/panel-right/panel-right-icon.js +9 -0
- package/dist/icons/panel-right/panel-right-rig.d.ts +15 -0
- package/dist/icons/panel-right/panel-right-rig.js +19 -0
- package/dist/icons/paperclip/paperclip-icon.d.ts +5 -0
- package/dist/icons/paperclip/paperclip-icon.js +9 -0
- package/dist/icons/paperclip/paperclip-rig.d.ts +28 -0
- package/dist/icons/paperclip/paperclip-rig.js +52 -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/picture-in-picture/picture-in-picture-icon.d.ts +5 -0
- package/dist/icons/picture-in-picture/picture-in-picture-icon.js +9 -0
- package/dist/icons/picture-in-picture/picture-in-picture-rig.d.ts +21 -0
- package/dist/icons/picture-in-picture/picture-in-picture-rig.js +29 -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/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/power/power-icon.d.ts +5 -0
- package/dist/icons/power/power-icon.js +9 -0
- package/dist/icons/power/power-rig.d.ts +36 -0
- package/dist/icons/power/power-rig.js +56 -0
- package/dist/icons/printer/printer-icon.d.ts +5 -0
- package/dist/icons/printer/printer-icon.js +9 -0
- package/dist/icons/printer/printer-rig.d.ts +55 -0
- package/dist/icons/printer/printer-rig.js +82 -0
- package/dist/icons/radio/radio-icon.d.ts +5 -0
- package/dist/icons/radio/radio-icon.js +9 -0
- package/dist/icons/radio/radio-rig.d.ts +53 -0
- package/dist/icons/radio/radio-rig.js +83 -0
- package/dist/icons/receipt/receipt-icon.d.ts +5 -0
- package/dist/icons/receipt/receipt-icon.js +9 -0
- package/dist/icons/receipt/receipt-rig.d.ts +65 -0
- package/dist/icons/receipt/receipt-rig.js +110 -0
- package/dist/icons/redo/redo-icon.d.ts +5 -0
- package/dist/icons/redo/redo-icon.js +9 -0
- package/dist/icons/redo/redo-rig.d.ts +28 -0
- package/dist/icons/redo/redo-rig.js +53 -0
- package/dist/icons/repeat/repeat-icon.d.ts +5 -0
- package/dist/icons/repeat/repeat-icon.js +9 -0
- package/dist/icons/repeat/repeat-rig.d.ts +35 -0
- package/dist/icons/repeat/repeat-rig.js +60 -0
- package/dist/icons/replace/replace-icon.js +9 -8
- package/dist/icons/replace/replace-rig.d.ts +7 -1
- package/dist/icons/replace/replace-rig.js +35 -17
- package/dist/icons/reply/reply-icon.d.ts +5 -0
- package/dist/icons/reply/reply-icon.js +9 -0
- package/dist/icons/reply/reply-rig.d.ts +45 -0
- package/dist/icons/reply/reply-rig.js +73 -0
- package/dist/icons/rewind/rewind-icon.d.ts +5 -0
- package/dist/icons/rewind/rewind-icon.js +9 -0
- package/dist/icons/rewind/rewind-rig.d.ts +48 -0
- package/dist/icons/rewind/rewind-rig.js +78 -0
- package/dist/icons/rows/rows-icon.d.ts +5 -0
- package/dist/icons/rows/rows-icon.js +9 -0
- package/dist/icons/rows/rows-rig.d.ts +15 -0
- package/dist/icons/rows/rows-rig.js +19 -0
- 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/scan-face/scan-face-icon.d.ts +5 -0
- package/dist/icons/scan-face/scan-face-icon.js +9 -0
- package/dist/icons/scan-face/scan-face-rig.d.ts +50 -0
- package/dist/icons/scan-face/scan-face-rig.js +82 -0
- package/dist/icons/scan-qr/scan-qr-icon.d.ts +5 -0
- package/dist/icons/scan-qr/scan-qr-icon.js +9 -0
- package/dist/icons/scan-qr/scan-qr-rig.d.ts +50 -0
- package/dist/icons/scan-qr/scan-qr-rig.js +87 -0
- package/dist/icons/scissors/scissors-icon.d.ts +5 -0
- package/dist/icons/scissors/scissors-icon.js +9 -0
- package/dist/icons/scissors/scissors-rig.d.ts +52 -0
- package/dist/icons/scissors/scissors-rig.js +76 -0
- 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/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/shuffle/shuffle-icon.d.ts +5 -0
- package/dist/icons/shuffle/shuffle-icon.js +9 -0
- package/dist/icons/shuffle/shuffle-rig.d.ts +32 -0
- package/dist/icons/shuffle/shuffle-rig.js +56 -0
- package/dist/icons/skip-back/skip-back-icon.d.ts +5 -0
- package/dist/icons/skip-back/skip-back-icon.js +9 -0
- package/dist/icons/skip-back/skip-back-rig.d.ts +31 -0
- package/dist/icons/skip-back/skip-back-rig.js +53 -0
- package/dist/icons/skip-forward/skip-forward-icon.d.ts +5 -0
- package/dist/icons/skip-forward/skip-forward-icon.js +9 -0
- package/dist/icons/skip-forward/skip-forward-rig.d.ts +31 -0
- package/dist/icons/skip-forward/skip-forward-rig.js +53 -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/smartphone/smartphone-icon.d.ts +5 -0
- package/dist/icons/smartphone/smartphone-icon.js +9 -0
- package/dist/icons/smartphone/smartphone-rig.d.ts +39 -0
- package/dist/icons/smartphone/smartphone-rig.js +57 -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/table/table-icon.d.ts +5 -0
- package/dist/icons/table/table-icon.js +9 -0
- package/dist/icons/table/table-rig.d.ts +18 -0
- package/dist/icons/table/table-rig.js +26 -0
- package/dist/icons/tag/tag-icon.d.ts +5 -0
- package/dist/icons/tag/tag-icon.js +9 -0
- package/dist/icons/tag/tag-rig.d.ts +27 -0
- package/dist/icons/tag/tag-rig.js +42 -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/thumbs-down/thumbs-down-icon.d.ts +5 -0
- package/dist/icons/thumbs-down/thumbs-down-icon.js +9 -0
- package/dist/icons/thumbs-down/thumbs-down-rig.d.ts +30 -0
- package/dist/icons/thumbs-down/thumbs-down-rig.js +53 -0
- package/dist/icons/thumbs-up/thumbs-up-icon.d.ts +5 -0
- package/dist/icons/thumbs-up/thumbs-up-icon.js +9 -0
- package/dist/icons/thumbs-up/thumbs-up-rig.d.ts +33 -0
- package/dist/icons/thumbs-up/thumbs-up-rig.js +57 -0
- package/dist/icons/ticket/ticket-icon.d.ts +5 -0
- package/dist/icons/ticket/ticket-icon.js +9 -0
- package/dist/icons/ticket/ticket-rig.d.ts +30 -0
- package/dist/icons/ticket/ticket-rig.js +43 -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/trending-up/trending-up-icon.d.ts +5 -0
- package/dist/icons/trending-up/trending-up-icon.js +9 -0
- package/dist/icons/trending-up/trending-up-rig.d.ts +44 -0
- package/dist/icons/trending-up/trending-up-rig.js +68 -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/undo/undo-icon.d.ts +5 -0
- package/dist/icons/undo/undo-icon.js +9 -0
- package/dist/icons/undo/undo-rig.d.ts +28 -0
- package/dist/icons/undo/undo-rig.js +53 -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/user-minus/user-minus-icon.d.ts +5 -0
- package/dist/icons/user-minus/user-minus-icon.js +9 -0
- package/dist/icons/user-minus/user-minus-rig.d.ts +31 -0
- package/dist/icons/user-minus/user-minus-rig.js +51 -0
- package/dist/icons/user-plus/user-plus-icon.d.ts +5 -0
- package/dist/icons/user-plus/user-plus-icon.js +9 -0
- package/dist/icons/user-plus/user-plus-rig.d.ts +56 -0
- package/dist/icons/user-plus/user-plus-rig.js +85 -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/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 +128 -0
- package/dist/index.js +128 -0
- 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 +128 -0
- package/dist/shared/use-icon-motion.d.ts +1 -1
- package/dist/shared/use-icon-motion.js +4 -3
- package/package.json +641 -1
package/dist/index.js
CHANGED
|
@@ -27,3 +27,131 @@ export { BadgeCheckIcon, badgeCheckStates, } from "./icons/badge-check/badge-che
|
|
|
27
27
|
export { ReplaceIcon, replaceStates, } from "./icons/replace/replace-icon.js";
|
|
28
28
|
export { DeleteIcon, deleteStates, } from "./icons/delete/delete-icon.js";
|
|
29
29
|
export { SwapIcon, swapStates } from "./icons/swap/swap-icon.js";
|
|
30
|
+
export { HomeIcon, homeStates } from "./icons/home/home-icon.js";
|
|
31
|
+
export { MenuIcon, menuStates } from "./icons/menu/menu-icon.js";
|
|
32
|
+
export { PlusIcon, plusStates } from "./icons/plus/plus-icon.js";
|
|
33
|
+
export { MinusIcon, minusStates, } from "./icons/minus/minus-icon.js";
|
|
34
|
+
export { ChevronDownIcon, chevronDownStates, } from "./icons/chevron-down/chevron-down-icon.js";
|
|
35
|
+
export { ChevronRightIcon, chevronRightStates, } from "./icons/chevron-right/chevron-right-icon.js";
|
|
36
|
+
export { ChevronLeftIcon, chevronLeftStates, } from "./icons/chevron-left/chevron-left-icon.js";
|
|
37
|
+
export { ChevronUpIcon, chevronUpStates, } from "./icons/chevron-up/chevron-up-icon.js";
|
|
38
|
+
export { ArrowRightIcon, arrowRightStates, } from "./icons/arrow-right/arrow-right-icon.js";
|
|
39
|
+
export { ArrowLeftIcon, arrowLeftStates, } from "./icons/arrow-left/arrow-left-icon.js";
|
|
40
|
+
export { ArrowUpIcon, arrowUpStates, } from "./icons/arrow-up/arrow-up-icon.js";
|
|
41
|
+
export { ArrowDownIcon, arrowDownStates, } from "./icons/arrow-down/arrow-down-icon.js";
|
|
42
|
+
export { ExternalLinkIcon, externalLinkStates, } from "./icons/external-link/external-link-icon.js";
|
|
43
|
+
export { MoreHorizontalIcon, moreHorizontalStates, } from "./icons/more-horizontal/more-horizontal-icon.js";
|
|
44
|
+
export { MoreVerticalIcon, moreVerticalStates, } from "./icons/more-vertical/more-vertical-icon.js";
|
|
45
|
+
export { UserIcon, userStates } from "./icons/user/user-icon.js";
|
|
46
|
+
export { UsersIcon, usersStates, } from "./icons/users/users-icon.js";
|
|
47
|
+
export { SettingsIcon, settingsStates, } from "./icons/settings/settings-icon.js";
|
|
48
|
+
export { LogInIcon, logInStates, } from "./icons/log-in/log-in-icon.js";
|
|
49
|
+
export { LogOutIcon, logOutStates, } from "./icons/log-out/log-out-icon.js";
|
|
50
|
+
export { LockIcon, lockStates } from "./icons/lock/lock-icon.js";
|
|
51
|
+
export { KeyIcon, keyStates } from "./icons/key/key-icon.js";
|
|
52
|
+
export { InfoIcon, infoStates } from "./icons/info/info-icon.js";
|
|
53
|
+
export { MailIcon, mailStates } from "./icons/mail/mail-icon.js";
|
|
54
|
+
export { SendIcon, sendStates } from "./icons/send/send-icon.js";
|
|
55
|
+
export { MessageCircleIcon, messageCircleStates, } from "./icons/message-circle/message-circle-icon.js";
|
|
56
|
+
export { PhoneIcon, phoneStates, } from "./icons/phone/phone-icon.js";
|
|
57
|
+
export { VideoIcon, videoStates, } from "./icons/video/video-icon.js";
|
|
58
|
+
export { MicIcon, micStates } from "./icons/mic/mic-icon.js";
|
|
59
|
+
export { PencilIcon, pencilStates, } from "./icons/pencil/pencil-icon.js";
|
|
60
|
+
export { FileTextIcon, fileTextStates, } from "./icons/file-text/file-text-icon.js";
|
|
61
|
+
export { FileIcon, fileStates } from "./icons/file/file-icon.js";
|
|
62
|
+
export { FolderIcon, folderStates, } from "./icons/folder/folder-icon.js";
|
|
63
|
+
export { SaveIcon, saveStates } from "./icons/save/save-icon.js";
|
|
64
|
+
export { UploadIcon, uploadStates, } from "./icons/upload/upload-icon.js";
|
|
65
|
+
export { ClipboardIcon, clipboardStates, } from "./icons/clipboard/clipboard-icon.js";
|
|
66
|
+
export { BookmarkIcon, bookmarkStates, } from "./icons/bookmark/bookmark-icon.js";
|
|
67
|
+
export { BookOpenIcon, bookOpenStates, } from "./icons/book-open/book-open-icon.js";
|
|
68
|
+
export { ImageIcon, imageStates, } from "./icons/image/image-icon.js";
|
|
69
|
+
export { CameraIcon, cameraStates, } from "./icons/camera/camera-icon.js";
|
|
70
|
+
export { ShareIcon, shareStates, } from "./icons/share/share-icon.js";
|
|
71
|
+
export { CalendarIcon, calendarStates, } from "./icons/calendar/calendar-icon.js";
|
|
72
|
+
export { ClockIcon, clockStates, } from "./icons/clock/clock-icon.js";
|
|
73
|
+
export { TimerIcon, timerStates, } from "./icons/timer/timer-icon.js";
|
|
74
|
+
export { MapPinIcon, mapPinStates, } from "./icons/map-pin/map-pin-icon.js";
|
|
75
|
+
export { GlobeIcon, globeStates, } from "./icons/globe/globe-icon.js";
|
|
76
|
+
export { CircleHelpIcon, circleHelpStates, } from "./icons/circle-help/circle-help-icon.js";
|
|
77
|
+
export { PlayIcon, playStates } from "./icons/play/play-icon.js";
|
|
78
|
+
export { PauseIcon, pauseStates, } from "./icons/pause/pause-icon.js";
|
|
79
|
+
export { VolumeIcon, volumeStates, } from "./icons/volume/volume-icon.js";
|
|
80
|
+
export { MusicIcon, musicStates, } from "./icons/music/music-icon.js";
|
|
81
|
+
export { SunIcon, sunStates } from "./icons/sun/sun-icon.js";
|
|
82
|
+
export { ShoppingCartIcon, shoppingCartStates, } from "./icons/shopping-cart/shopping-cart-icon.js";
|
|
83
|
+
export { ShoppingBagIcon, shoppingBagStates, } from "./icons/shopping-bag/shopping-bag-icon.js";
|
|
84
|
+
export { CreditCardIcon, creditCardStates, } from "./icons/credit-card/credit-card-icon.js";
|
|
85
|
+
export { WalletIcon, walletStates, } from "./icons/wallet/wallet-icon.js";
|
|
86
|
+
export { PackageIcon, packageStates, } from "./icons/package/package-icon.js";
|
|
87
|
+
export { TruckIcon, truckStates, } from "./icons/truck/truck-icon.js";
|
|
88
|
+
export { FilterIcon, filterStates, } from "./icons/filter/filter-icon.js";
|
|
89
|
+
export { SlidersIcon, slidersStates, } from "./icons/sliders/sliders-icon.js";
|
|
90
|
+
export { LayoutGridIcon, layoutGridStates, } from "./icons/layout-grid/layout-grid-icon.js";
|
|
91
|
+
export { LayoutDashboardIcon, layoutDashboardStates, } from "./icons/layout-dashboard/layout-dashboard-icon.js";
|
|
92
|
+
export { ListIcon, listStates } from "./icons/list/list-icon.js";
|
|
93
|
+
export { LayersIcon, layersStates, } from "./icons/layers/layers-icon.js";
|
|
94
|
+
export { MaximizeIcon, maximizeStates, } from "./icons/maximize/maximize-icon.js";
|
|
95
|
+
export { MinimizeIcon, minimizeStates, } from "./icons/minimize/minimize-icon.js";
|
|
96
|
+
export { CodeIcon, codeStates } from "./icons/code/code-icon.js";
|
|
97
|
+
export { TerminalIcon, terminalStates, } from "./icons/terminal/terminal-icon.js";
|
|
98
|
+
export { DatabaseIcon, databaseStates, } from "./icons/database/database-icon.js";
|
|
99
|
+
export { WifiIcon, wifiStates } from "./icons/wifi/wifi-icon.js";
|
|
100
|
+
export { CloudIcon, cloudStates, } from "./icons/cloud/cloud-icon.js";
|
|
101
|
+
export { MoonIcon, moonStates } from "./icons/moon/moon-icon.js";
|
|
102
|
+
export { UndoIcon, undoStates } from "./icons/undo/undo-icon.js";
|
|
103
|
+
export { RedoIcon, redoStates } from "./icons/redo/redo-icon.js";
|
|
104
|
+
export { CropIcon, cropStates } from "./icons/crop/crop-icon.js";
|
|
105
|
+
export { ScissorsIcon, scissorsStates, } from "./icons/scissors/scissors-icon.js";
|
|
106
|
+
export { PaperclipIcon, paperclipStates, } from "./icons/paperclip/paperclip-icon.js";
|
|
107
|
+
export { EraserIcon, eraserStates, } from "./icons/eraser/eraser-icon.js";
|
|
108
|
+
export { BrushIcon, brushStates, } from "./icons/brush/brush-icon.js";
|
|
109
|
+
export { HighlighterIcon, highlighterStates, } from "./icons/highlighter/highlighter-icon.js";
|
|
110
|
+
export { PanelLeftIcon, panelLeftStates, } from "./icons/panel-left/panel-left-icon.js";
|
|
111
|
+
export { PanelRightIcon, panelRightStates, } from "./icons/panel-right/panel-right-icon.js";
|
|
112
|
+
export { ColumnsIcon, columnsStates, } from "./icons/columns/columns-icon.js";
|
|
113
|
+
export { RowsIcon, rowsStates } from "./icons/rows/rows-icon.js";
|
|
114
|
+
export { TableIcon, tableStates, } from "./icons/table/table-icon.js";
|
|
115
|
+
export { KanbanIcon, kanbanStates, } from "./icons/kanban/kanban-icon.js";
|
|
116
|
+
export { AppWindowIcon, appWindowStates, } from "./icons/app-window/app-window-icon.js";
|
|
117
|
+
export { PictureInPictureIcon, pictureInPictureStates, } from "./icons/picture-in-picture/picture-in-picture-icon.js";
|
|
118
|
+
export { FolderOpenIcon, folderOpenStates, } from "./icons/folder-open/folder-open-icon.js";
|
|
119
|
+
export { FolderPlusIcon, folderPlusStates, } from "./icons/folder-plus/folder-plus-icon.js";
|
|
120
|
+
export { FilePlusIcon, filePlusStates, } from "./icons/file-plus/file-plus-icon.js";
|
|
121
|
+
export { FileCheckIcon, fileCheckStates, } from "./icons/file-check/file-check-icon.js";
|
|
122
|
+
export { ArchiveIcon, archiveStates, } from "./icons/archive/archive-icon.js";
|
|
123
|
+
export { InboxIcon, inboxStates, } from "./icons/inbox/inbox-icon.js";
|
|
124
|
+
export { HardDriveIcon, hardDriveStates, } from "./icons/hard-drive/hard-drive-icon.js";
|
|
125
|
+
export { PrinterIcon, printerStates, } from "./icons/printer/printer-icon.js";
|
|
126
|
+
export { BluetoothIcon, bluetoothStates, } from "./icons/bluetooth/bluetooth-icon.js";
|
|
127
|
+
export { CastIcon, castStates } from "./icons/cast/cast-icon.js";
|
|
128
|
+
export { MonitorIcon, monitorStates, } from "./icons/monitor/monitor-icon.js";
|
|
129
|
+
export { SmartphoneIcon, smartphoneStates, } from "./icons/smartphone/smartphone-icon.js";
|
|
130
|
+
export { PowerIcon, powerStates, } from "./icons/power/power-icon.js";
|
|
131
|
+
export { FingerprintIcon, fingerprintStates, } from "./icons/fingerprint/fingerprint-icon.js";
|
|
132
|
+
export { ScanQrIcon, scanQrStates, } from "./icons/scan-qr/scan-qr-icon.js";
|
|
133
|
+
export { ScanFaceIcon, scanFaceStates, } from "./icons/scan-face/scan-face-icon.js";
|
|
134
|
+
export { SkipForwardIcon, skipForwardStates, } from "./icons/skip-forward/skip-forward-icon.js";
|
|
135
|
+
export { SkipBackIcon, skipBackStates, } from "./icons/skip-back/skip-back-icon.js";
|
|
136
|
+
export { RewindIcon, rewindStates, } from "./icons/rewind/rewind-icon.js";
|
|
137
|
+
export { FastForwardIcon, fastForwardStates, } from "./icons/fast-forward/fast-forward-icon.js";
|
|
138
|
+
export { RepeatIcon, repeatStates, } from "./icons/repeat/repeat-icon.js";
|
|
139
|
+
export { ShuffleIcon, shuffleStates, } from "./icons/shuffle/shuffle-icon.js";
|
|
140
|
+
export { HeadphonesIcon, headphonesStates, } from "./icons/headphones/headphones-icon.js";
|
|
141
|
+
export { RadioIcon, radioStates, } from "./icons/radio/radio-icon.js";
|
|
142
|
+
export { ThumbsUpIcon, thumbsUpStates, } from "./icons/thumbs-up/thumbs-up-icon.js";
|
|
143
|
+
export { ThumbsDownIcon, thumbsDownStates, } from "./icons/thumbs-down/thumbs-down-icon.js";
|
|
144
|
+
export { UserPlusIcon, userPlusStates, } from "./icons/user-plus/user-plus-icon.js";
|
|
145
|
+
export { UserMinusIcon, userMinusStates, } from "./icons/user-minus/user-minus-icon.js";
|
|
146
|
+
export { AtSignIcon, atSignStates, } from "./icons/at-sign/at-sign-icon.js";
|
|
147
|
+
export { ReplyIcon, replyStates, } from "./icons/reply/reply-icon.js";
|
|
148
|
+
export { ForwardIcon, forwardStates, } from "./icons/forward/forward-icon.js";
|
|
149
|
+
export { FlagIcon, flagStates } from "./icons/flag/flag-icon.js";
|
|
150
|
+
export { ChartBarIcon, chartBarStates, } from "./icons/chart-bar/chart-bar-icon.js";
|
|
151
|
+
export { ChartLineIcon, chartLineStates, } from "./icons/chart-line/chart-line-icon.js";
|
|
152
|
+
export { ChartPieIcon, chartPieStates, } from "./icons/chart-pie/chart-pie-icon.js";
|
|
153
|
+
export { TrendingUpIcon, trendingUpStates, } from "./icons/trending-up/trending-up-icon.js";
|
|
154
|
+
export { ReceiptIcon, receiptStates, } from "./icons/receipt/receipt-icon.js";
|
|
155
|
+
export { TagIcon, tagStates } from "./icons/tag/tag-icon.js";
|
|
156
|
+
export { GiftIcon, giftStates } from "./icons/gift/gift-icon.js";
|
|
157
|
+
export { TicketIcon, ticketStates, } from "./icons/ticket/ticket-icon.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StatefulIconProps } from "./icon-types.js";
|
|
2
|
+
import { type Articulation } from "./articulation.js";
|
|
3
|
+
/** Shared binding, never a shared drawing or a generic whole-icon animation. */
|
|
4
|
+
export declare function ArticulatedIcon<State extends string>({ art, states, state, size, color, accentColor, strokeWidth, speed, alive, className, }: StatefulIconProps<State> & {
|
|
5
|
+
art: Articulation;
|
|
6
|
+
states: readonly [State, State, State];
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback, useRef } from 'react';
|
|
4
|
+
import { motion, useTransform } from 'motion/react';
|
|
5
|
+
import { usePoseWeight, useActionProgress, useBehaviorClock } from "./use-icon-motion.js";
|
|
6
|
+
import { useMotionPreference } from "./use-motion-preference.js";
|
|
7
|
+
import { sampleArticulation } from "./articulation.js";
|
|
8
|
+
const ORIGIN = { originX: '0px', originY: '0px', transformBox: 'view-box' };
|
|
9
|
+
function PartPath({ part, index, pathIndex, rig, }) {
|
|
10
|
+
const d = useTransform(rig, (sample) => sample[index].paths[pathIndex]);
|
|
11
|
+
const offset = useTransform(rig, (sample) => (part.traceLength ?? 0) * (1 - sample[index].draw));
|
|
12
|
+
return (_jsx(motion.path, { d: d, fill: part.surface ? 'var(--weasel-surface, #fff)' : undefined, strokeDasharray: part.traceLength, strokeDashoffset: part.traceLength ? offset : undefined }));
|
|
13
|
+
}
|
|
14
|
+
function Part({ part, index, rig, name, accentColor, strokeWidth, }) {
|
|
15
|
+
const transform = useTransform(rig, (sample) => sample[index].transform);
|
|
16
|
+
const opacity = useTransform(rig, (sample) => sample[index].opacity);
|
|
17
|
+
return (_jsx(motion.g, { "data-layer": `${name}-${part.name}`, "data-part": part.name, transform: transform, opacity: opacity, style: ORIGIN, stroke: part.accent ? accentColor : undefined, strokeWidth: part.detail ? Math.min(strokeWidth * 0.8, 1.5) : undefined, children: part.paths.map((_, i) => (_jsx(PartPath, { part: part, index: index, pathIndex: i, rig: rig }, i))) }));
|
|
18
|
+
}
|
|
19
|
+
/** Shared binding, never a shared drawing or a generic whole-icon animation. */
|
|
20
|
+
export function ArticulatedIcon({ art, states, state = states[0], size = 24, color = 'currentColor', accentColor = 'currentColor', strokeWidth = 1.65, speed = 1, alive = false, className, }) {
|
|
21
|
+
const element = useRef(null);
|
|
22
|
+
const reduced = useMotionPreference();
|
|
23
|
+
const pace = Number.isFinite(speed) ? Math.min(4, Math.max(0.1, speed)) : 1;
|
|
24
|
+
const w0 = usePoseWeight(state === states[0], pace, reduced);
|
|
25
|
+
const w1 = usePoseWeight(state === states[1], pace, reduced);
|
|
26
|
+
const w2 = usePoseWeight(state === states[2], pace, reduced);
|
|
27
|
+
const can0 = useCallback(() => w0.get() < 0.001, [w0]);
|
|
28
|
+
const can1 = useCallback(() => w1.get() < 0.001, [w1]);
|
|
29
|
+
const can2 = useCallback(() => w2.get() < 0.001, [w2]);
|
|
30
|
+
const duration = (index) => Math.max(0.8, ...art.parts.map((part) => part.gestures?.[index]?.duration ?? 0));
|
|
31
|
+
const e0 = useActionProgress(state === states[0] && art.parts.some((part) => Boolean(part.gestures?.[0])), pace, reduced, duration(0), can0);
|
|
32
|
+
const e1 = useActionProgress(state === states[1] && art.parts.some((part) => Boolean(part.gestures?.[1])), pace, reduced, duration(1), can1);
|
|
33
|
+
const e2 = useActionProgress(state === states[2] && art.parts.some((part) => Boolean(part.gestures?.[2])), pace, reduced, duration(2), can2);
|
|
34
|
+
const activeIndex = states.indexOf(state);
|
|
35
|
+
const performs = alive &&
|
|
36
|
+
!reduced &&
|
|
37
|
+
art.parts.some((part) => {
|
|
38
|
+
const gesture = part.gestures?.[activeIndex];
|
|
39
|
+
return (gesture && gesture.loop !== false) || part.spin?.state === activeIndex;
|
|
40
|
+
});
|
|
41
|
+
const life = usePoseWeight(performs, pace, reduced);
|
|
42
|
+
const time = useBehaviorClock(element, performs, pace, life, art.parts.some((part) => Boolean(part.spin)));
|
|
43
|
+
const rig = useTransform(() => sampleArticulation(art, [w0.get(), w1.get(), w2.get()], time.get(), life.get(), [
|
|
44
|
+
e0.get(),
|
|
45
|
+
e1.get(),
|
|
46
|
+
e2.get(),
|
|
47
|
+
]));
|
|
48
|
+
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: _jsx("g", { "data-layer": `${art.name}-body`, transform: "translate(12 12) scale(.84) translate(-12 -12)", children: art.parts.map((part, index) => (_jsx(Part, { part: part, index: index, rig: rig, name: art.name, accentColor: accentColor, strokeWidth: strokeWidth }, part.name))) }) }));
|
|
49
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/** Numeric articulation only. Subjects, state meanings and artwork stay in their rigs. */
|
|
2
|
+
export interface PartPose {
|
|
3
|
+
x?: number;
|
|
4
|
+
y?: number;
|
|
5
|
+
angle?: number;
|
|
6
|
+
scaleX?: number;
|
|
7
|
+
scaleY?: number;
|
|
8
|
+
opacity?: number;
|
|
9
|
+
draw?: number;
|
|
10
|
+
/** Local, authored path displacement; zero retains the accepted drawing. */
|
|
11
|
+
flex?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface PartGesture {
|
|
14
|
+
/** Finite entry action; living repeats use the same action followed by a quiet interval. */
|
|
15
|
+
duration: number;
|
|
16
|
+
repeatAfter: number;
|
|
17
|
+
/** A shutter, landing or acknowledgement should play once even when alive stays true. */
|
|
18
|
+
loop?: boolean;
|
|
19
|
+
frames: readonly (PartPose & {
|
|
20
|
+
at: number;
|
|
21
|
+
})[];
|
|
22
|
+
}
|
|
23
|
+
export interface ArticulatedPart {
|
|
24
|
+
name: string;
|
|
25
|
+
paths: readonly string[];
|
|
26
|
+
/** Compatible command streams with corresponding landmarks; node count never changes. */
|
|
27
|
+
pathStates?: readonly (readonly string[])[];
|
|
28
|
+
/** Numeric-coordinate offsets for flex. Fixed landmarks use zero offsets. */
|
|
29
|
+
pathOffsets?: readonly (readonly number[])[];
|
|
30
|
+
pivot?: readonly [number, number];
|
|
31
|
+
/** One pose per public state, in the rig's declared order. */
|
|
32
|
+
poses: readonly PartPose[];
|
|
33
|
+
gestures?: readonly (PartGesture | null | undefined)[];
|
|
34
|
+
accent?: boolean;
|
|
35
|
+
/** Status details retain room inside a heavier structural outline. */
|
|
36
|
+
detail?: boolean;
|
|
37
|
+
surface?: boolean;
|
|
38
|
+
traceLength?: number;
|
|
39
|
+
/** Clock phase is retained on pause; it is never multiplied by the living fade. */
|
|
40
|
+
spin?: {
|
|
41
|
+
state: number;
|
|
42
|
+
degreesPerSecond: number;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export interface Articulation {
|
|
46
|
+
name: string;
|
|
47
|
+
parts: readonly ArticulatedPart[];
|
|
48
|
+
}
|
|
49
|
+
/** Keyframe offsets have zero velocity at authored landmarks and hold outside the action. */
|
|
50
|
+
export declare function gesturePose(gesture: PartGesture, progress: number): PartPose;
|
|
51
|
+
export declare function sampleArticulation(art: Articulation, input: readonly number[], time?: number, living?: number, entries?: readonly number[]): {
|
|
52
|
+
paths: readonly string[];
|
|
53
|
+
transform: string;
|
|
54
|
+
x: number;
|
|
55
|
+
y: number;
|
|
56
|
+
angle: number;
|
|
57
|
+
scaleX: number;
|
|
58
|
+
scaleY: number;
|
|
59
|
+
opacity: number;
|
|
60
|
+
draw: number;
|
|
61
|
+
flex: number;
|
|
62
|
+
}[];
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const channels = ['x', 'y', 'angle', 'scaleX', 'scaleY', 'opacity', 'draw', 'flex'];
|
|
2
|
+
const defaults = { x: 0, y: 0, angle: 0, scaleX: 1, scaleY: 1, opacity: 1, draw: 1, flex: 0 };
|
|
3
|
+
const finite = (n) => (Number.isFinite(n) ? n : 0);
|
|
4
|
+
const unit = (n) => Math.max(0, Math.min(1, finite(n)));
|
|
5
|
+
const smooth = (n) => {
|
|
6
|
+
const t = unit(n);
|
|
7
|
+
return t * t * t * (10 + t * (-15 + 6 * t));
|
|
8
|
+
};
|
|
9
|
+
const morphs = new WeakMap();
|
|
10
|
+
function partPaths(part, weights, flex) {
|
|
11
|
+
if (!part.pathStates && !part.pathOffsets)
|
|
12
|
+
return part.paths;
|
|
13
|
+
let compiled = morphs.get(part);
|
|
14
|
+
if (!compiled) {
|
|
15
|
+
const number = /[-+]?(?:\d*\.\d+|\d+\.?\d*)(?:e[-+]?\d+)?/gi;
|
|
16
|
+
compiled = part.paths.map((_, index) => {
|
|
17
|
+
const paths = part.pathStates?.map((state) => state[index]) ?? part.poses.map(() => part.paths[index]);
|
|
18
|
+
const literals = paths[0].split(number);
|
|
19
|
+
const values = paths.map((path) => (path.match(number) ?? []).map(Number));
|
|
20
|
+
if (part.pathOffsets && part.pathOffsets[index]?.length !== values[0].length)
|
|
21
|
+
throw new Error(`Incompatible path offsets: ${part.name}`);
|
|
22
|
+
for (const path of paths) {
|
|
23
|
+
if (JSON.stringify(path.split(number)) !== JSON.stringify(literals))
|
|
24
|
+
throw new Error(`Incompatible path topology: ${part.name}`);
|
|
25
|
+
}
|
|
26
|
+
return { literals, values };
|
|
27
|
+
});
|
|
28
|
+
morphs.set(part, compiled);
|
|
29
|
+
}
|
|
30
|
+
return compiled.map(({ literals, values }, pathIndex) => literals
|
|
31
|
+
.map((literal, index) => index === literals.length - 1
|
|
32
|
+
? literal
|
|
33
|
+
: literal +
|
|
34
|
+
(values.reduce((sum, row, state) => sum + row[index] * (weights[state] ?? 0), 0) +
|
|
35
|
+
(part.pathOffsets?.[pathIndex]?.[index] ?? 0) * flex))
|
|
36
|
+
.join(''));
|
|
37
|
+
}
|
|
38
|
+
/** Keyframe offsets have zero velocity at authored landmarks and hold outside the action. */
|
|
39
|
+
export function gesturePose(gesture, progress) {
|
|
40
|
+
const t = unit(progress);
|
|
41
|
+
const frames = gesture.frames;
|
|
42
|
+
const right = frames.findIndex((frame) => frame.at >= t);
|
|
43
|
+
if (right <= 0)
|
|
44
|
+
return frames[right < 0 ? frames.length - 1 : 0] ?? {};
|
|
45
|
+
const a = frames[right - 1], b = frames[right];
|
|
46
|
+
const blend = smooth((t - a.at) / (b.at - a.at));
|
|
47
|
+
return Object.fromEntries(channels.map((key) => [key, (a[key] ?? 0) + ((b[key] ?? 0) - (a[key] ?? 0)) * blend]));
|
|
48
|
+
}
|
|
49
|
+
export function sampleArticulation(art, input, time = 0, living = 0, entries = []) {
|
|
50
|
+
const positive = input.map(unit);
|
|
51
|
+
const sum = positive.reduce((a, b) => a + b, 0);
|
|
52
|
+
const weights = sum > 0 ? positive.map((n) => n / sum) : positive.map((_, i) => Number(i === 0));
|
|
53
|
+
const life = unit(living);
|
|
54
|
+
return art.parts.map((part) => {
|
|
55
|
+
const pose = { ...defaults, x: 0, y: 0, angle: 0, scaleX: 0, scaleY: 0, opacity: 0, draw: 0 };
|
|
56
|
+
part.poses.forEach((target, i) => {
|
|
57
|
+
const weight = weights[i] ?? 0;
|
|
58
|
+
if (weight === 0)
|
|
59
|
+
return;
|
|
60
|
+
const gesture = part.gestures?.[i];
|
|
61
|
+
const entry = gesture ? gesturePose(gesture, entries[i] ?? 1) : {};
|
|
62
|
+
// Phase is independent of the living fade. Turning alive off cannot rewind an action.
|
|
63
|
+
const loop = gesture
|
|
64
|
+
? gesturePose(gesture, Math.min((Math.max(0, finite(time)) % gesture.repeatAfter) / gesture.duration, 1))
|
|
65
|
+
: {};
|
|
66
|
+
for (const key of channels) {
|
|
67
|
+
pose[key] +=
|
|
68
|
+
weight *
|
|
69
|
+
((target[key] ?? defaults[key]) +
|
|
70
|
+
(entry[key] ?? 0) * (gesture?.loop === false ? 1 : 1 - life) +
|
|
71
|
+
(loop[key] ?? 0) * (gesture?.loop === false ? 0 : life));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
pose.opacity = unit(pose.opacity);
|
|
75
|
+
pose.draw = unit(pose.draw);
|
|
76
|
+
if (part.spin)
|
|
77
|
+
pose.angle += Math.max(0, finite(time)) * part.spin.degreesPerSecond;
|
|
78
|
+
const [px, py] = part.pivot ?? [12, 12];
|
|
79
|
+
return {
|
|
80
|
+
...pose,
|
|
81
|
+
paths: partPaths(part, weights, pose.flex),
|
|
82
|
+
transform: `translate(${pose.x}px, ${pose.y}px) translate(${px}px, ${py}px) rotate(${pose.angle}deg) scale(${pose.scaleX}, ${pose.scaleY}) translate(${-px}px, ${-py}px)`,
|
|
83
|
+
};
|
|
84
|
+
});
|
|
85
|
+
}
|
|
@@ -22,6 +22,134 @@ export interface AlertColors {
|
|
|
22
22
|
critical?: string;
|
|
23
23
|
}
|
|
24
24
|
export interface IconColors {
|
|
25
|
+
undo: never;
|
|
26
|
+
redo: never;
|
|
27
|
+
crop: never;
|
|
28
|
+
scissors: never;
|
|
29
|
+
paperclip: never;
|
|
30
|
+
eraser: never;
|
|
31
|
+
brush: never;
|
|
32
|
+
highlighter: never;
|
|
33
|
+
'panel-left': never;
|
|
34
|
+
'panel-right': never;
|
|
35
|
+
columns: never;
|
|
36
|
+
rows: never;
|
|
37
|
+
table: never;
|
|
38
|
+
kanban: never;
|
|
39
|
+
'app-window': never;
|
|
40
|
+
'picture-in-picture': never;
|
|
41
|
+
'folder-open': never;
|
|
42
|
+
'folder-plus': never;
|
|
43
|
+
'file-plus': never;
|
|
44
|
+
'file-check': never;
|
|
45
|
+
archive: never;
|
|
46
|
+
inbox: never;
|
|
47
|
+
'hard-drive': never;
|
|
48
|
+
printer: never;
|
|
49
|
+
bluetooth: never;
|
|
50
|
+
cast: never;
|
|
51
|
+
monitor: never;
|
|
52
|
+
smartphone: never;
|
|
53
|
+
power: never;
|
|
54
|
+
fingerprint: never;
|
|
55
|
+
'scan-qr': never;
|
|
56
|
+
'scan-face': never;
|
|
57
|
+
'skip-forward': never;
|
|
58
|
+
'skip-back': never;
|
|
59
|
+
rewind: never;
|
|
60
|
+
'fast-forward': never;
|
|
61
|
+
repeat: never;
|
|
62
|
+
shuffle: never;
|
|
63
|
+
headphones: never;
|
|
64
|
+
radio: never;
|
|
65
|
+
'thumbs-up': never;
|
|
66
|
+
'thumbs-down': never;
|
|
67
|
+
'user-plus': never;
|
|
68
|
+
'user-minus': never;
|
|
69
|
+
'at-sign': never;
|
|
70
|
+
reply: never;
|
|
71
|
+
forward: never;
|
|
72
|
+
flag: never;
|
|
73
|
+
'chart-bar': never;
|
|
74
|
+
'chart-line': never;
|
|
75
|
+
'chart-pie': never;
|
|
76
|
+
'trending-up': never;
|
|
77
|
+
receipt: never;
|
|
78
|
+
tag: never;
|
|
79
|
+
gift: never;
|
|
80
|
+
ticket: never;
|
|
81
|
+
bookmark: never;
|
|
82
|
+
'book-open': never;
|
|
83
|
+
image: never;
|
|
84
|
+
camera: never;
|
|
85
|
+
share: never;
|
|
86
|
+
calendar: never;
|
|
87
|
+
clock: never;
|
|
88
|
+
timer: never;
|
|
89
|
+
'map-pin': never;
|
|
90
|
+
globe: never;
|
|
91
|
+
'circle-help': never;
|
|
92
|
+
play: never;
|
|
93
|
+
pause: never;
|
|
94
|
+
volume: never;
|
|
95
|
+
music: never;
|
|
96
|
+
sun: never;
|
|
97
|
+
'shopping-cart': never;
|
|
98
|
+
'shopping-bag': never;
|
|
99
|
+
'credit-card': never;
|
|
100
|
+
wallet: never;
|
|
101
|
+
package: never;
|
|
102
|
+
truck: never;
|
|
103
|
+
filter: never;
|
|
104
|
+
sliders: never;
|
|
105
|
+
'layout-grid': never;
|
|
106
|
+
'layout-dashboard': never;
|
|
107
|
+
list: never;
|
|
108
|
+
layers: never;
|
|
109
|
+
maximize: never;
|
|
110
|
+
minimize: never;
|
|
111
|
+
code: never;
|
|
112
|
+
terminal: never;
|
|
113
|
+
database: never;
|
|
114
|
+
wifi: never;
|
|
115
|
+
cloud: never;
|
|
116
|
+
moon: never;
|
|
117
|
+
'log-in': never;
|
|
118
|
+
'log-out': never;
|
|
119
|
+
lock: never;
|
|
120
|
+
key: never;
|
|
121
|
+
info: never;
|
|
122
|
+
mail: never;
|
|
123
|
+
send: never;
|
|
124
|
+
'message-circle': never;
|
|
125
|
+
phone: never;
|
|
126
|
+
video: never;
|
|
127
|
+
mic: never;
|
|
128
|
+
pencil: never;
|
|
129
|
+
'file-text': never;
|
|
130
|
+
file: never;
|
|
131
|
+
folder: never;
|
|
132
|
+
save: never;
|
|
133
|
+
upload: never;
|
|
134
|
+
clipboard: never;
|
|
135
|
+
home: never;
|
|
136
|
+
menu: never;
|
|
137
|
+
plus: never;
|
|
138
|
+
minus: never;
|
|
139
|
+
'chevron-down': never;
|
|
140
|
+
'chevron-right': never;
|
|
141
|
+
'chevron-left': never;
|
|
142
|
+
'chevron-up': never;
|
|
143
|
+
'arrow-right': never;
|
|
144
|
+
'arrow-left': never;
|
|
145
|
+
'arrow-up': never;
|
|
146
|
+
'arrow-down': never;
|
|
147
|
+
'external-link': never;
|
|
148
|
+
'more-horizontal': never;
|
|
149
|
+
'more-vertical': never;
|
|
150
|
+
user: never;
|
|
151
|
+
users: never;
|
|
152
|
+
settings: never;
|
|
25
153
|
refresh: never;
|
|
26
154
|
copy: never;
|
|
27
155
|
eye: never;
|
|
@@ -11,4 +11,4 @@ export declare function useActionProgress(active: boolean, pace: number, reduced
|
|
|
11
11
|
* the correct animation cleanup; we forward source values through one listener.
|
|
12
12
|
*/
|
|
13
13
|
export declare function useFollowPose(source: MotionValue<number>, pace: number, reduced: boolean): MotionValue<number>;
|
|
14
|
-
export declare function useBehaviorClock(element: RefObject<SVGSVGElement | null>, enabled: boolean, pace: number, amount: MotionValue<number
|
|
14
|
+
export declare function useBehaviorClock(element: RefObject<SVGSVGElement | null>, enabled: boolean, pace: number, amount: MotionValue<number>, coastWithAmount?: boolean): MotionValue<number>;
|
|
@@ -75,7 +75,7 @@ export function useFollowPose(source, pace, reduced) {
|
|
|
75
75
|
}, [source, value, options, reduced]);
|
|
76
76
|
return value;
|
|
77
77
|
}
|
|
78
|
-
export function useBehaviorClock(element, enabled, pace, amount) {
|
|
78
|
+
export function useBehaviorClock(element, enabled, pace, amount, coastWithAmount = false) {
|
|
79
79
|
const time = useMotionValue(0);
|
|
80
80
|
useEffect(() => {
|
|
81
81
|
if (!element.current || (!enabled && amount.get() < 0.001))
|
|
@@ -83,7 +83,8 @@ export function useBehaviorClock(element, enabled, pace, amount) {
|
|
|
83
83
|
const stop = subscribeBehavior(element.current, (delta) => {
|
|
84
84
|
if (!enabled && amount.get() < 0.001)
|
|
85
85
|
return false;
|
|
86
|
-
|
|
86
|
+
const coast = coastWithAmount ? Math.max(0, Math.min(1, amount.get())) : 1;
|
|
87
|
+
time.set(time.get() + delta * pace * coast);
|
|
87
88
|
});
|
|
88
89
|
const unAmount = amount.on('change', (value) => {
|
|
89
90
|
if (!enabled && value < 0.001)
|
|
@@ -93,6 +94,6 @@ export function useBehaviorClock(element, enabled, pace, amount) {
|
|
|
93
94
|
stop();
|
|
94
95
|
unAmount();
|
|
95
96
|
};
|
|
96
|
-
}, [element, enabled, pace, amount, time]);
|
|
97
|
+
}, [element, enabled, pace, amount, time, coastWithAmount]);
|
|
97
98
|
return time;
|
|
98
99
|
}
|