vadivam-react 0.0.17 → 0.0.21
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 +34 -5
- package/dist/Icon.d.ts +5 -0
- package/dist/Icon.js +45 -0
- package/dist/context.d.ts +5 -0
- package/dist/context.js +11 -0
- package/dist/createIcon.d.ts +2 -1
- package/dist/createIcon.js +11 -32
- package/dist/defaultAttributes.js +2 -0
- package/dist/dynamic.d.ts +7 -4
- package/dist/dynamic.js +10 -7
- package/dist/dynamicIconImports.d.ts +232 -231
- package/dist/icons/a-arrow-down.d.ts +7 -1
- package/dist/icons/a-arrow-down.js +2 -1
- package/dist/icons/a-arrow-up.d.ts +7 -1
- package/dist/icons/a-arrow-up.js +2 -1
- package/dist/icons/a-large-small.d.ts +7 -1
- package/dist/icons/a-large-small.js +2 -1
- package/dist/icons/accessibility.d.ts +7 -1
- package/dist/icons/accessibility.js +2 -1
- package/dist/icons/activity.d.ts +7 -1
- package/dist/icons/activity.js +2 -1
- package/dist/icons/air-vent.d.ts +7 -1
- package/dist/icons/air-vent.js +2 -1
- package/dist/icons/airplay.d.ts +7 -1
- package/dist/icons/airplay.js +2 -1
- package/dist/icons/alarm-clock-check.d.ts +7 -1
- package/dist/icons/alarm-clock-check.js +2 -1
- package/dist/icons/alarm-clock-minus.d.ts +7 -1
- package/dist/icons/alarm-clock-minus.js +2 -1
- package/dist/icons/alarm-clock-off.d.ts +7 -1
- package/dist/icons/alarm-clock-off.js +2 -1
- package/dist/icons/alarm-clock-plus.d.ts +7 -1
- package/dist/icons/alarm-clock-plus.js +2 -1
- package/dist/icons/alarm-clock.d.ts +7 -1
- package/dist/icons/alarm-clock.js +2 -1
- package/dist/icons/alarm-smoke.d.ts +7 -1
- package/dist/icons/alarm-smoke.js +2 -1
- package/dist/icons/album.d.ts +7 -1
- package/dist/icons/album.js +2 -1
- package/dist/icons/align-center-horizontal.d.ts +7 -1
- package/dist/icons/align-center-horizontal.js +2 -1
- package/dist/icons/align-center-vertical.d.ts +7 -1
- package/dist/icons/align-center-vertical.js +2 -1
- package/dist/icons/align-end-horizontal.d.ts +7 -1
- package/dist/icons/align-end-horizontal.js +2 -1
- package/dist/icons/align-end-vertical.d.ts +7 -1
- package/dist/icons/align-end-vertical.js +2 -1
- package/dist/icons/align-horizontal-distribute-center.d.ts +7 -1
- package/dist/icons/align-horizontal-distribute-center.js +2 -1
- package/dist/icons/align-horizontal-distribute-end.d.ts +7 -1
- package/dist/icons/align-horizontal-distribute-end.js +2 -1
- package/dist/icons/align-horizontal-distribute-start.d.ts +7 -1
- package/dist/icons/align-horizontal-distribute-start.js +2 -1
- package/dist/icons/align-horizontal-justify-center.d.ts +7 -1
- package/dist/icons/align-horizontal-justify-center.js +2 -1
- package/dist/icons/align-horizontal-justify-end.d.ts +7 -1
- package/dist/icons/align-horizontal-justify-end.js +2 -1
- package/dist/icons/align-horizontal-justify-start.d.ts +7 -1
- package/dist/icons/align-horizontal-justify-start.js +2 -1
- package/dist/icons/align-horizontal-space-around.d.ts +7 -1
- package/dist/icons/align-horizontal-space-around.js +2 -1
- package/dist/icons/align-horizontal-space-between.d.ts +7 -1
- package/dist/icons/align-horizontal-space-between.js +2 -1
- package/dist/icons/align-start-horizontal.d.ts +7 -1
- package/dist/icons/align-start-horizontal.js +2 -1
- package/dist/icons/align-start-vertical.d.ts +7 -1
- package/dist/icons/align-start-vertical.js +2 -1
- package/dist/icons/align-vertical-distribute-center.d.ts +7 -1
- package/dist/icons/align-vertical-distribute-center.js +2 -1
- package/dist/icons/align-vertical-distribute-end.d.ts +7 -1
- package/dist/icons/align-vertical-distribute-end.js +2 -1
- package/dist/icons/align-vertical-distribute-start.d.ts +7 -1
- package/dist/icons/align-vertical-distribute-start.js +2 -1
- package/dist/icons/align-vertical-justify-center.d.ts +7 -1
- package/dist/icons/align-vertical-justify-center.js +2 -1
- package/dist/icons/align-vertical-justify-end.d.ts +7 -1
- package/dist/icons/align-vertical-justify-end.js +2 -1
- package/dist/icons/align-vertical-justify-start.d.ts +7 -1
- package/dist/icons/align-vertical-justify-start.js +2 -1
- package/dist/icons/align-vertical-space-around.d.ts +7 -1
- package/dist/icons/align-vertical-space-around.js +2 -1
- package/dist/icons/align-vertical-space-between.d.ts +7 -1
- package/dist/icons/align-vertical-space-between.js +2 -1
- package/dist/icons/ambulance.d.ts +7 -1
- package/dist/icons/ambulance.js +2 -1
- package/dist/icons/ampersand.d.ts +7 -1
- package/dist/icons/ampersand.js +2 -1
- package/dist/icons/ampersands.d.ts +7 -1
- package/dist/icons/ampersands.js +2 -1
- package/dist/icons/amphora.d.ts +7 -1
- package/dist/icons/amphora.js +2 -1
- package/dist/icons/anchor.d.ts +7 -1
- package/dist/icons/anchor.js +2 -1
- package/dist/icons/angry.d.ts +7 -1
- package/dist/icons/angry.js +2 -1
- package/dist/icons/annoyed.d.ts +7 -1
- package/dist/icons/annoyed.js +2 -1
- package/dist/icons/antenna.d.ts +7 -1
- package/dist/icons/antenna.js +2 -1
- package/dist/icons/anvil.d.ts +7 -1
- package/dist/icons/anvil.js +2 -1
- package/dist/icons/aperture.d.ts +7 -1
- package/dist/icons/aperture.js +2 -1
- package/dist/icons/app-window-mac.d.ts +7 -1
- package/dist/icons/app-window-mac.js +2 -1
- package/dist/icons/app-window.d.ts +7 -1
- package/dist/icons/app-window.js +2 -1
- package/dist/icons/apple.d.ts +7 -1
- package/dist/icons/apple.js +2 -1
- package/dist/icons/archive-restore.d.ts +7 -1
- package/dist/icons/archive-restore.js +2 -1
- package/dist/icons/archive-x.d.ts +7 -1
- package/dist/icons/archive-x.js +2 -1
- package/dist/icons/archive.d.ts +7 -1
- package/dist/icons/archive.js +2 -1
- package/dist/icons/armchair.d.ts +7 -1
- package/dist/icons/armchair.js +2 -1
- package/dist/icons/arrow-big-down-dash.d.ts +7 -1
- package/dist/icons/arrow-big-down-dash.js +2 -1
- package/dist/icons/arrow-big-down.d.ts +7 -1
- package/dist/icons/arrow-big-down.js +2 -1
- package/dist/icons/arrow-big-left-dash.d.ts +7 -1
- package/dist/icons/arrow-big-left-dash.js +2 -1
- package/dist/icons/arrow-big-left.d.ts +7 -1
- package/dist/icons/arrow-big-left.js +2 -1
- package/dist/icons/arrow-big-right-dash.d.ts +7 -1
- package/dist/icons/arrow-big-right-dash.js +2 -1
- package/dist/icons/arrow-big-right.d.ts +7 -1
- package/dist/icons/arrow-big-right.js +2 -1
- package/dist/icons/arrow-big-up-dash.d.ts +7 -1
- package/dist/icons/arrow-big-up-dash.js +2 -1
- package/dist/icons/arrow-big-up.d.ts +7 -1
- package/dist/icons/arrow-big-up.js +2 -1
- package/dist/icons/arrow-down-0-1.d.ts +7 -1
- package/dist/icons/arrow-down-0-1.js +2 -1
- package/dist/icons/arrow-down-1-0.d.ts +7 -1
- package/dist/icons/arrow-down-1-0.js +2 -1
- package/dist/icons/arrow-down-a-z.d.ts +7 -1
- package/dist/icons/arrow-down-a-z.js +2 -1
- package/dist/icons/arrow-down-from-line.d.ts +7 -1
- package/dist/icons/arrow-down-from-line.js +2 -1
- package/dist/icons/arrow-down-left.d.ts +7 -1
- package/dist/icons/arrow-down-left.js +2 -1
- package/dist/icons/arrow-down-narrow-wide.d.ts +7 -1
- package/dist/icons/arrow-down-narrow-wide.js +2 -1
- package/dist/icons/arrow-down-right.d.ts +7 -1
- package/dist/icons/arrow-down-right.js +2 -1
- package/dist/icons/arrow-down-to-dot.d.ts +7 -1
- package/dist/icons/arrow-down-to-dot.js +2 -1
- package/dist/icons/arrow-down-to-line.d.ts +7 -1
- package/dist/icons/arrow-down-to-line.js +2 -1
- package/dist/icons/arrow-down-up.d.ts +7 -1
- package/dist/icons/arrow-down-up.js +2 -1
- package/dist/icons/arrow-down-wide-narrow.d.ts +7 -1
- package/dist/icons/arrow-down-wide-narrow.js +2 -1
- package/dist/icons/arrow-down-z-a.d.ts +7 -1
- package/dist/icons/arrow-down-z-a.js +2 -1
- package/dist/icons/arrow-down.d.ts +7 -1
- package/dist/icons/arrow-down.js +2 -1
- package/dist/icons/arrow-left-from-line.d.ts +7 -1
- package/dist/icons/arrow-left-from-line.js +2 -1
- package/dist/icons/arrow-left-right.d.ts +7 -1
- package/dist/icons/arrow-left-right.js +2 -1
- package/dist/icons/arrow-left-to-line.d.ts +7 -1
- package/dist/icons/arrow-left-to-line.js +2 -1
- package/dist/icons/arrow-left.d.ts +7 -1
- package/dist/icons/arrow-left.js +2 -1
- package/dist/icons/arrow-right-from-line.d.ts +7 -1
- package/dist/icons/arrow-right-from-line.js +2 -1
- package/dist/icons/arrow-right-left.d.ts +7 -1
- package/dist/icons/arrow-right-left.js +2 -1
- package/dist/icons/arrow-right-to-line.d.ts +7 -1
- package/dist/icons/arrow-right-to-line.js +2 -1
- package/dist/icons/arrow-right.d.ts +7 -1
- package/dist/icons/arrow-right.js +2 -1
- package/dist/icons/arrow-up-0-1.d.ts +7 -1
- package/dist/icons/arrow-up-0-1.js +2 -1
- package/dist/icons/arrow-up-1-0.d.ts +7 -1
- package/dist/icons/arrow-up-1-0.js +2 -1
- package/dist/icons/arrow-up-a-z.d.ts +7 -1
- package/dist/icons/arrow-up-a-z.js +2 -1
- package/dist/icons/arrow-up-down.d.ts +7 -1
- package/dist/icons/arrow-up-down.js +2 -1
- package/dist/icons/arrow-up-from-dot.d.ts +7 -1
- package/dist/icons/arrow-up-from-dot.js +2 -1
- package/dist/icons/arrow-up-from-line.d.ts +7 -1
- package/dist/icons/arrow-up-from-line.js +2 -1
- package/dist/icons/arrow-up-left.d.ts +7 -1
- package/dist/icons/arrow-up-left.js +2 -1
- package/dist/icons/arrow-up-narrow-wide.d.ts +7 -1
- package/dist/icons/arrow-up-narrow-wide.js +2 -1
- package/dist/icons/arrow-up-right.d.ts +7 -1
- package/dist/icons/arrow-up-right.js +2 -1
- package/dist/icons/arrow-up-to-line.d.ts +7 -1
- package/dist/icons/arrow-up-to-line.js +2 -1
- package/dist/icons/arrow-up-wide-narrow.d.ts +7 -1
- package/dist/icons/arrow-up-wide-narrow.js +2 -1
- package/dist/icons/arrow-up-z-a.d.ts +7 -1
- package/dist/icons/arrow-up-z-a.js +2 -1
- package/dist/icons/arrow-up.d.ts +7 -1
- package/dist/icons/arrow-up.js +2 -1
- package/dist/icons/arrows-up-from-line.d.ts +7 -1
- package/dist/icons/arrows-up-from-line.js +2 -1
- package/dist/icons/asterisk.d.ts +7 -1
- package/dist/icons/asterisk.js +2 -1
- package/dist/icons/astroid.d.ts +7 -1
- package/dist/icons/astroid.js +2 -1
- package/dist/icons/at-sign.d.ts +7 -1
- package/dist/icons/at-sign.js +2 -1
- package/dist/icons/atom.d.ts +7 -1
- package/dist/icons/atom.js +2 -1
- package/dist/icons/audio-lines.d.ts +7 -1
- package/dist/icons/audio-lines.js +2 -1
- package/dist/icons/audio-waveform.d.ts +7 -1
- package/dist/icons/audio-waveform.js +2 -1
- package/dist/icons/award.d.ts +7 -1
- package/dist/icons/award.js +2 -1
- package/dist/icons/axe.d.ts +7 -1
- package/dist/icons/axe.js +2 -1
- package/dist/icons/axis-3d.d.ts +7 -1
- package/dist/icons/axis-3d.js +2 -1
- package/dist/icons/baby.d.ts +7 -1
- package/dist/icons/baby.js +2 -1
- package/dist/icons/backpack.d.ts +7 -1
- package/dist/icons/backpack.js +2 -1
- package/dist/icons/badge-alert.d.ts +7 -1
- package/dist/icons/badge-alert.js +2 -1
- package/dist/icons/badge-cent.d.ts +7 -1
- package/dist/icons/badge-cent.js +2 -1
- package/dist/icons/badge-check.d.ts +7 -1
- package/dist/icons/badge-check.js +2 -1
- package/dist/icons/badge-dollar-sign.d.ts +7 -1
- package/dist/icons/badge-dollar-sign.js +2 -1
- package/dist/icons/badge-euro.d.ts +7 -1
- package/dist/icons/badge-euro.js +2 -1
- package/dist/icons/badge-indian-rupee.d.ts +7 -1
- package/dist/icons/badge-indian-rupee.js +2 -1
- package/dist/icons/badge-info.d.ts +7 -1
- package/dist/icons/badge-info.js +2 -1
- package/dist/icons/badge-japanese-yen.d.ts +7 -1
- package/dist/icons/badge-japanese-yen.js +2 -1
- package/dist/icons/badge-minus.d.ts +7 -1
- package/dist/icons/badge-minus.js +2 -1
- package/dist/icons/badge-percent.d.ts +7 -1
- package/dist/icons/badge-percent.js +2 -1
- package/dist/icons/badge-plus.d.ts +7 -1
- package/dist/icons/badge-plus.js +2 -1
- package/dist/icons/badge-pound-sterling.d.ts +7 -1
- package/dist/icons/badge-pound-sterling.js +2 -1
- package/dist/icons/badge-question-mark.d.ts +7 -1
- package/dist/icons/badge-question-mark.js +2 -1
- package/dist/icons/badge-russian-ruble.d.ts +7 -1
- package/dist/icons/badge-russian-ruble.js +2 -1
- package/dist/icons/badge-swiss-franc.d.ts +7 -1
- package/dist/icons/badge-swiss-franc.js +2 -1
- package/dist/icons/badge-turkish-lira.d.ts +7 -1
- package/dist/icons/badge-turkish-lira.js +2 -1
- package/dist/icons/badge-x.d.ts +7 -1
- package/dist/icons/badge-x.js +2 -1
- package/dist/icons/badge.d.ts +7 -1
- package/dist/icons/badge.js +2 -1
- package/dist/icons/baggage-claim.d.ts +7 -1
- package/dist/icons/baggage-claim.js +2 -1
- package/dist/icons/balloon.d.ts +7 -1
- package/dist/icons/balloon.js +2 -1
- package/dist/icons/ban.d.ts +7 -1
- package/dist/icons/ban.js +2 -1
- package/dist/icons/banana.d.ts +7 -1
- package/dist/icons/banana.js +2 -1
- package/dist/icons/bandage.d.ts +7 -1
- package/dist/icons/bandage.js +2 -1
- package/dist/icons/banknote-arrow-down.d.ts +7 -1
- package/dist/icons/banknote-arrow-down.js +2 -1
- package/dist/icons/banknote-arrow-up.d.ts +7 -1
- package/dist/icons/banknote-arrow-up.js +2 -1
- package/dist/icons/banknote-x.d.ts +7 -1
- package/dist/icons/banknote-x.js +2 -1
- package/dist/icons/banknote.d.ts +7 -1
- package/dist/icons/banknote.js +2 -1
- package/dist/icons/barcode.d.ts +7 -1
- package/dist/icons/barcode.js +2 -1
- package/dist/icons/barrel.d.ts +7 -1
- package/dist/icons/barrel.js +2 -1
- package/dist/icons/baseline.d.ts +7 -1
- package/dist/icons/baseline.js +2 -1
- package/dist/icons/bath.d.ts +7 -1
- package/dist/icons/bath.js +2 -1
- package/dist/icons/battery-charging.d.ts +7 -1
- package/dist/icons/battery-charging.js +2 -1
- package/dist/icons/battery-full.d.ts +7 -1
- package/dist/icons/battery-full.js +2 -1
- package/dist/icons/battery-low.d.ts +7 -1
- package/dist/icons/battery-low.js +2 -1
- package/dist/icons/battery-medium.d.ts +7 -1
- package/dist/icons/battery-medium.js +2 -1
- package/dist/icons/battery-plus.d.ts +7 -1
- package/dist/icons/battery-plus.js +2 -1
- package/dist/icons/battery-warning.d.ts +7 -1
- package/dist/icons/battery-warning.js +2 -1
- package/dist/icons/battery.d.ts +7 -1
- package/dist/icons/battery.js +2 -1
- package/dist/icons/beaker.d.ts +7 -1
- package/dist/icons/beaker.js +2 -1
- package/dist/icons/bean-off.d.ts +7 -1
- package/dist/icons/bean-off.js +2 -1
- package/dist/icons/bean.d.ts +7 -1
- package/dist/icons/bean.js +2 -1
- package/dist/icons/bed-double.d.ts +7 -1
- package/dist/icons/bed-double.js +2 -1
- package/dist/icons/bed-single.d.ts +7 -1
- package/dist/icons/bed-single.js +2 -1
- package/dist/icons/bed.d.ts +7 -1
- package/dist/icons/bed.js +2 -1
- package/dist/icons/beef-off.d.ts +7 -1
- package/dist/icons/beef-off.js +2 -1
- package/dist/icons/beef.d.ts +7 -1
- package/dist/icons/beef.js +2 -1
- package/dist/icons/beer-off.d.ts +7 -1
- package/dist/icons/beer-off.js +2 -1
- package/dist/icons/beer.d.ts +7 -1
- package/dist/icons/beer.js +2 -1
- package/dist/icons/bell-check.d.ts +7 -1
- package/dist/icons/bell-check.js +2 -1
- package/dist/icons/bell-dot.d.ts +7 -1
- package/dist/icons/bell-dot.js +2 -1
- package/dist/icons/bell-electric.d.ts +7 -1
- package/dist/icons/bell-electric.js +2 -1
- package/dist/icons/bell-minus.d.ts +7 -1
- package/dist/icons/bell-minus.js +2 -1
- package/dist/icons/bell-off.d.ts +7 -1
- package/dist/icons/bell-off.js +2 -1
- package/dist/icons/bell-plus.d.ts +7 -1
- package/dist/icons/bell-plus.js +2 -1
- package/dist/icons/bell-ring.d.ts +7 -1
- package/dist/icons/bell-ring.js +2 -1
- package/dist/icons/bell.d.ts +7 -1
- package/dist/icons/bell.js +2 -1
- package/dist/icons/between-horizontal-end.d.ts +7 -1
- package/dist/icons/between-horizontal-end.js +2 -1
- package/dist/icons/between-horizontal-start.d.ts +7 -1
- package/dist/icons/between-horizontal-start.js +2 -1
- package/dist/icons/between-vertical-end.d.ts +7 -1
- package/dist/icons/between-vertical-end.js +2 -1
- package/dist/icons/between-vertical-start.d.ts +7 -1
- package/dist/icons/between-vertical-start.js +2 -1
- package/dist/icons/book-open.d.ts +7 -1
- package/dist/icons/book-open.js +2 -1
- package/dist/icons/bot.d.ts +7 -1
- package/dist/icons/bot.js +2 -1
- package/dist/icons/calendar.d.ts +7 -1
- package/dist/icons/calendar.js +2 -1
- package/dist/icons/check.d.ts +7 -1
- package/dist/icons/check.js +2 -1
- package/dist/icons/chevron-down.d.ts +7 -1
- package/dist/icons/chevron-down.js +2 -1
- package/dist/icons/chevron-left.d.ts +7 -1
- package/dist/icons/chevron-left.js +2 -1
- package/dist/icons/chevron-right.d.ts +7 -1
- package/dist/icons/chevron-right.js +2 -1
- package/dist/icons/chevron-up.d.ts +7 -1
- package/dist/icons/chevron-up.js +2 -1
- package/dist/icons/circle.d.ts +7 -1
- package/dist/icons/circle.js +2 -1
- package/dist/icons/clock.d.ts +7 -1
- package/dist/icons/clock.js +2 -1
- package/dist/icons/code.d.ts +7 -1
- package/dist/icons/code.js +2 -1
- package/dist/icons/copy.d.ts +7 -1
- package/dist/icons/copy.js +2 -1
- package/dist/icons/database.d.ts +7 -1
- package/dist/icons/database.js +2 -1
- package/dist/icons/download.d.ts +7 -1
- package/dist/icons/download.js +2 -1
- package/dist/icons/external-link.d.ts +7 -1
- package/dist/icons/external-link.js +2 -1
- package/dist/icons/eye-off.d.ts +7 -1
- package/dist/icons/eye-off.js +2 -1
- package/dist/icons/eye.d.ts +7 -1
- package/dist/icons/eye.js +2 -1
- package/dist/icons/file-text.d.ts +7 -1
- package/dist/icons/file-text.js +2 -1
- package/dist/icons/file.d.ts +7 -1
- package/dist/icons/file.js +2 -1
- package/dist/icons/folder-open.d.ts +7 -1
- package/dist/icons/folder-open.js +2 -1
- package/dist/icons/folder.d.ts +7 -1
- package/dist/icons/folder.js +2 -1
- package/dist/icons/globe.d.ts +7 -1
- package/dist/icons/globe.js +2 -1
- package/dist/icons/grip-horizontal.d.ts +7 -1
- package/dist/icons/grip-horizontal.js +2 -1
- package/dist/icons/grip-vertical.d.ts +7 -1
- package/dist/icons/grip-vertical.js +2 -1
- package/dist/icons/heart.d.ts +7 -1
- package/dist/icons/heart.js +2 -1
- package/dist/icons/image.d.ts +7 -1
- package/dist/icons/image.js +2 -1
- package/dist/icons/info.d.ts +7 -1
- package/dist/icons/info.js +2 -1
- package/dist/icons/layers.d.ts +7 -1
- package/dist/icons/layers.js +2 -1
- package/dist/icons/link.d.ts +7 -1
- package/dist/icons/link.js +2 -1
- package/dist/icons/list.d.ts +7 -1
- package/dist/icons/list.js +2 -1
- package/dist/icons/lock.d.ts +7 -1
- package/dist/icons/lock.js +2 -1
- package/dist/icons/log-out.d.ts +7 -1
- package/dist/icons/log-out.js +2 -1
- package/dist/icons/mail.d.ts +7 -1
- package/dist/icons/mail.js +2 -1
- package/dist/icons/menu.d.ts +7 -1
- package/dist/icons/menu.js +2 -1
- package/dist/icons/message-square.d.ts +7 -1
- package/dist/icons/message-square.js +2 -1
- package/dist/icons/minus.d.ts +7 -1
- package/dist/icons/minus.js +2 -1
- package/dist/icons/monitor.d.ts +7 -1
- package/dist/icons/monitor.js +2 -1
- package/dist/icons/moon.d.ts +7 -1
- package/dist/icons/moon.js +2 -1
- package/dist/icons/pencil.d.ts +7 -1
- package/dist/icons/pencil.js +2 -1
- package/dist/icons/play.d.ts +7 -1
- package/dist/icons/play.js +2 -1
- package/dist/icons/plus.d.ts +7 -1
- package/dist/icons/plus.js +2 -1
- package/dist/icons/refresh-ccw.d.ts +7 -1
- package/dist/icons/refresh-ccw.js +2 -1
- package/dist/icons/refresh-cw.d.ts +7 -1
- package/dist/icons/refresh-cw.js +2 -1
- package/dist/icons/rotate-ccw.d.ts +7 -1
- package/dist/icons/rotate-ccw.js +2 -1
- package/dist/icons/rotate-cw.d.ts +7 -1
- package/dist/icons/rotate-cw.js +2 -1
- package/dist/icons/save.d.ts +7 -1
- package/dist/icons/save.js +2 -1
- package/dist/icons/search.d.ts +7 -1
- package/dist/icons/search.js +2 -1
- package/dist/icons/send.d.ts +7 -1
- package/dist/icons/send.js +2 -1
- package/dist/icons/server.d.ts +7 -1
- package/dist/icons/server.js +2 -1
- package/dist/icons/settings.d.ts +7 -1
- package/dist/icons/settings.js +2 -1
- package/dist/icons/shield-check.d.ts +7 -1
- package/dist/icons/shield-check.js +2 -1
- package/dist/icons/shield.d.ts +7 -1
- package/dist/icons/shield.js +2 -1
- package/dist/icons/sparkles.d.ts +7 -1
- package/dist/icons/sparkles.js +2 -1
- package/dist/icons/square.d.ts +7 -1
- package/dist/icons/square.js +2 -1
- package/dist/icons/star.d.ts +7 -1
- package/dist/icons/star.js +2 -1
- package/dist/icons/sun.d.ts +7 -1
- package/dist/icons/sun.js +2 -1
- package/dist/icons/terminal.d.ts +7 -1
- package/dist/icons/terminal.js +2 -1
- package/dist/icons/trash-2.d.ts +7 -1
- package/dist/icons/trash-2.js +2 -1
- package/dist/icons/upload.d.ts +7 -1
- package/dist/icons/upload.js +2 -1
- package/dist/icons/user.d.ts +7 -1
- package/dist/icons/user.js +2 -1
- package/dist/icons/users.d.ts +7 -1
- package/dist/icons/users.js +2 -1
- package/dist/icons/x.d.ts +7 -1
- package/dist/icons/x.js +2 -1
- package/dist/icons/zap.d.ts +7 -1
- package/dist/icons/zap.js +2 -1
- package/dist/icons.d.ts +234 -0
- package/dist/icons.js +464 -0
- package/dist/index.d.ts +235 -234
- package/dist/index.js +234 -233
- package/dist/types.d.ts +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Pixel-perfect, open-source, gorgeous React icons for refined interfaces.
|
|
4
4
|
|
|
5
|
-

|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
8
|
bun add vadivam-react
|
|
@@ -12,13 +12,42 @@ bun add vadivam-react
|
|
|
12
12
|
import { Activity } from "vadivam-react";
|
|
13
13
|
|
|
14
14
|
export function Example() {
|
|
15
|
-
return <Activity size={20} color="currentColor" />;
|
|
15
|
+
return <Activity size={20} color="currentColor" strokeWidth={2} />;
|
|
16
16
|
}
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Icons accept SVG properties, `size`, `color`, `strokeWidth`,
|
|
20
|
+
`absoluteStrokeWidth`, `title`, refs, and SVG children. Use `fill` for filled
|
|
21
|
+
icons, or nest icons and SVG elements to combine them.
|
|
22
|
+
|
|
23
|
+
Apply shared defaults with the provider or target the generated `vadivam` and
|
|
24
|
+
`vadivam-{name}` classes in CSS:
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
import { Activity, VadivamProvider } from "vadivam-react";
|
|
28
|
+
|
|
29
|
+
<VadivamProvider size={20} color="navy" strokeWidth={1.5}>
|
|
30
|
+
<Activity />
|
|
31
|
+
</VadivamProvider>;
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Every icon has normal, suffixed, and prefixed aliases:
|
|
20
35
|
|
|
21
36
|
```tsx
|
|
22
|
-
import Activity from "vadivam-react
|
|
23
|
-
import { DynamicIcon } from "vadivam-react/dynamic";
|
|
37
|
+
import { Activity, ActivityIcon, VadivamActivity } from "vadivam-react";
|
|
24
38
|
```
|
|
39
|
+
|
|
40
|
+
Per-icon, generic-node, and dynamic APIs are generated during build:
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
import Activity, { __iconNode } from "vadivam-react/activity";
|
|
44
|
+
import { Icon } from "vadivam-react";
|
|
45
|
+
import { DynamicIcon, iconNames } from "vadivam-react/dynamic";
|
|
46
|
+
|
|
47
|
+
<Icon iconNode={__iconNode} />;
|
|
48
|
+
<DynamicIcon name="activity" />;
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Prefer static icon imports when the icon name is known. `DynamicIcon` is
|
|
52
|
+
intended for names stored in external data and creates a separate lazy module
|
|
53
|
+
for every icon.
|
package/dist/Icon.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { IconNode, VadivamProps } from "./types.js";
|
|
3
|
+
export interface IconProps extends VadivamProps { iconNode: IconNode; }
|
|
4
|
+
export declare const Icon: React.ForwardRefExoticComponent<Omit<IconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
5
|
+
export default Icon;
|
package/dist/Icon.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React, { forwardRef } from "react";
|
|
3
|
+
import defaultAttributes from "./defaultAttributes.js";
|
|
4
|
+
import { useVadivamContext } from "./context.js";
|
|
5
|
+
|
|
6
|
+
function mergeClasses(...values) {
|
|
7
|
+
return values.flatMap((value) => typeof value === "string" ? value.split(/\s+/) : []).filter((value, index, all) => value && all.indexOf(value) === index).join(" ");
|
|
8
|
+
}
|
|
9
|
+
function hasA11yProp(props) {
|
|
10
|
+
return Object.keys(props).some((name) => name.startsWith("aria-") || name === "role" || name === "title");
|
|
11
|
+
}
|
|
12
|
+
function renderNode([tag, attrs]) {
|
|
13
|
+
return React.createElement(tag, attrs);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Icon = forwardRef(({ color, size, strokeWidth, absoluteStrokeWidth, className = "", title, children, iconNode, ...rest }, ref) => {
|
|
17
|
+
const context = useVadivamContext();
|
|
18
|
+
const resolvedSize = size ?? context.size ?? 24;
|
|
19
|
+
const resolvedStrokeWidth = strokeWidth ?? context.strokeWidth ?? 2;
|
|
20
|
+
const numericSize = Number(resolvedSize);
|
|
21
|
+
const numericStrokeWidth = Number(resolvedStrokeWidth);
|
|
22
|
+
const useAbsoluteStrokeWidth = absoluteStrokeWidth ?? context.absoluteStrokeWidth ?? false;
|
|
23
|
+
const calculatedStrokeWidth = useAbsoluteStrokeWidth && Number.isFinite(numericSize) && numericSize !== 0 && Number.isFinite(numericStrokeWidth) ? numericStrokeWidth * 24 / numericSize : resolvedStrokeWidth;
|
|
24
|
+
const labelled = Boolean(title) || hasA11yProp(rest);
|
|
25
|
+
return React.createElement(
|
|
26
|
+
"svg",
|
|
27
|
+
{
|
|
28
|
+
ref,
|
|
29
|
+
...defaultAttributes,
|
|
30
|
+
width: resolvedSize,
|
|
31
|
+
height: resolvedSize,
|
|
32
|
+
stroke: color ?? context.color ?? "currentColor",
|
|
33
|
+
strokeWidth: calculatedStrokeWidth,
|
|
34
|
+
className: mergeClasses("vadivam", context.className, className),
|
|
35
|
+
...(!labelled ? { "aria-hidden": "true" } : {}),
|
|
36
|
+
...(title ? { role: "img" } : {}),
|
|
37
|
+
...rest
|
|
38
|
+
},
|
|
39
|
+
title ? React.createElement("title", { key: "title" }, title) : null,
|
|
40
|
+
...iconNode.map(renderNode),
|
|
41
|
+
children
|
|
42
|
+
);
|
|
43
|
+
});
|
|
44
|
+
Icon.displayName = "Icon";
|
|
45
|
+
export default Icon;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { VadivamProps } from "./types.js";
|
|
3
|
+
export interface VadivamProviderProps extends Pick<VadivamProps, "size" | "color" | "strokeWidth" | "absoluteStrokeWidth" | "className"> { children: React.ReactNode; }
|
|
4
|
+
export declare function VadivamProvider(props: VadivamProviderProps): React.ReactElement;
|
|
5
|
+
export declare function useVadivamContext(): Partial<VadivamProps>;
|
package/dist/context.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
const VadivamContext = React.createContext({});
|
|
5
|
+
export function VadivamProvider({ children, size, color, strokeWidth, absoluteStrokeWidth, className }) {
|
|
6
|
+
const value = React.useMemo(() => ({ size, color, strokeWidth, absoluteStrokeWidth, className }), [size, color, strokeWidth, absoluteStrokeWidth, className]);
|
|
7
|
+
return React.createElement(VadivamContext.Provider, { value }, children);
|
|
8
|
+
}
|
|
9
|
+
export function useVadivamContext() {
|
|
10
|
+
return React.useContext(VadivamContext);
|
|
11
|
+
}
|
package/dist/createIcon.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { IconNode, VadivamIcon } from "./types.js";
|
|
2
|
-
export declare function createIcon(
|
|
2
|
+
export declare function createIcon(iconName: string, iconNode: IconNode): VadivamIcon;
|
|
3
|
+
export { createIcon as createVadivamIcon };
|
package/dist/createIcon.js
CHANGED
|
@@ -1,36 +1,15 @@
|
|
|
1
1
|
import React, { forwardRef } from "react";
|
|
2
|
+
import Icon from "./Icon.js";
|
|
2
3
|
|
|
3
|
-
function
|
|
4
|
-
return
|
|
4
|
+
function toKebabCase(value) {
|
|
5
|
+
return value.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/[ _]+/g, "-").toLowerCase();
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"svg",
|
|
14
|
-
{
|
|
15
|
-
ref,
|
|
16
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
-
width: size,
|
|
18
|
-
height: size,
|
|
19
|
-
viewBox: "0 0 24 24",
|
|
20
|
-
fill: "none",
|
|
21
|
-
stroke: color,
|
|
22
|
-
strokeWidth: calculatedStrokeWidth,
|
|
23
|
-
strokeLinecap: "round",
|
|
24
|
-
strokeLinejoin: "round",
|
|
25
|
-
"aria-hidden": labelled ? undefined : "true",
|
|
26
|
-
role: labelled ? "img" : undefined,
|
|
27
|
-
...rest
|
|
28
|
-
},
|
|
29
|
-
title ? React.createElement("title", { key: "title" }, title) : null,
|
|
30
|
-
...iconNode.map(renderNode),
|
|
31
|
-
children
|
|
32
|
-
);
|
|
33
|
-
});
|
|
34
|
-
Icon.displayName = displayName;
|
|
35
|
-
return Icon;
|
|
7
|
+
function toPascalCase(value) {
|
|
8
|
+
return value.split(/[-_ ]+/).filter(Boolean).map((part) => part[0].toUpperCase() + part.slice(1)).join("");
|
|
9
|
+
}
|
|
10
|
+
export function createIcon(iconName, iconNode) {
|
|
11
|
+
const Component = forwardRef(({ className, ...props }, ref) => React.createElement(Icon, { ref, iconNode, className: [`vadivam-${toKebabCase(iconName)}`, className].filter(Boolean).join(" "), ...props }));
|
|
12
|
+
Component.displayName = toPascalCase(iconName);
|
|
13
|
+
return Component;
|
|
36
14
|
}
|
|
15
|
+
export const createVadivamIcon = createIcon;
|
package/dist/dynamic.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
|
-
import type { VadivamProps } from "./types.js";
|
|
3
|
-
import
|
|
4
|
-
export type IconName = keyof typeof dynamicIconImports;
|
|
2
|
+
import type { IconName, VadivamProps } from "./types.js";
|
|
3
|
+
import dynamicIconImports from "./dynamicIconImports.js";
|
|
5
4
|
export interface DynamicIconProps extends Omit<VadivamProps, "ref"> {
|
|
6
5
|
name: IconName;
|
|
7
6
|
fallback?: React.ReactNode;
|
|
8
7
|
}
|
|
9
|
-
export declare
|
|
8
|
+
export declare const iconNames: IconName[];
|
|
9
|
+
export declare const DynamicIcon: React.ForwardRefExoticComponent<DynamicIconProps & React.RefAttributes<SVGSVGElement>>;
|
|
10
|
+
export { dynamicIconImports };
|
|
11
|
+
export type { DynamicIconModule } from "./dynamicIconImports.js";
|
|
12
|
+
export type { IconName } from "./types.js";
|
|
10
13
|
export default DynamicIcon;
|
package/dist/dynamic.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import React, { forwardRef } from "react";
|
|
2
3
|
import dynamicIconImports from "./dynamicIconImports.js";
|
|
3
4
|
|
|
4
|
-
export
|
|
5
|
+
export const iconNames = Object.keys(dynamicIconImports);
|
|
6
|
+
export const DynamicIcon = forwardRef(({ name, fallback = null, ...props }, ref) => {
|
|
5
7
|
const importer = dynamicIconImports[name];
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return React.createElement(React.Suspense, { fallback }, React.createElement(
|
|
9
|
-
}
|
|
10
|
-
|
|
8
|
+
const Component = React.useMemo(() => importer ? React.lazy(importer) : null, [importer]);
|
|
9
|
+
if (!Component) return fallback;
|
|
10
|
+
return React.createElement(React.Suspense, { fallback }, React.createElement(Component, { ...props, ref }));
|
|
11
|
+
});
|
|
12
|
+
DynamicIcon.displayName = "DynamicIcon";
|
|
13
|
+
export { dynamicIconImports };
|
|
11
14
|
export default DynamicIcon;
|