@iconix/icons 0.0.0-stage → 1.0.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/CHANGELOG.md +8 -0
- package/LICENSE +21 -0
- package/README.md +822 -2
- package/data/meta.json +8442 -0
- package/dist/cli.js +154 -0
- package/dist/core.cjs +405 -0
- package/dist/core.d.cts +37 -0
- package/dist/core.d.ts +37 -0
- package/dist/core.js +386 -0
- package/dist/element.cjs +85 -0
- package/dist/element.d.cts +18 -0
- package/dist/element.d.ts +18 -0
- package/dist/element.js +66 -0
- package/dist/generated/data.cjs +2411 -0
- package/dist/generated/data.d.cts +1196 -0
- package/dist/generated/data.d.ts +1196 -0
- package/dist/generated/data.js +2392 -0
- package/dist/generated/names.cjs +15 -0
- package/dist/generated/names.d.cts +4 -0
- package/dist/generated/names.d.ts +4 -0
- package/dist/generated/names.js +0 -0
- package/dist/generated/react-icons.cjs +2413 -0
- package/dist/generated/react-icons.d.cts +1196 -0
- package/dist/generated/react-icons.d.ts +1196 -0
- package/dist/generated/react-icons.js +3590 -0
- package/dist/generated/registry.cjs +1224 -0
- package/dist/generated/registry.d.cts +6 -0
- package/dist/generated/registry.d.ts +6 -0
- package/dist/generated/registry.js +2401 -0
- package/dist/generated/vue-icons.cjs +2413 -0
- package/dist/generated/vue-icons.d.cts +1196 -0
- package/dist/generated/vue-icons.d.ts +1196 -0
- package/dist/generated/vue-icons.js +3590 -0
- package/dist/index.cjs +116 -0
- package/dist/index.d.cts +32 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +98 -0
- package/dist/lite.cjs +40 -0
- package/dist/lite.d.cts +3 -0
- package/dist/lite.d.ts +3 -0
- package/dist/lite.js +37 -0
- package/dist/react-core.cjs +133 -0
- package/dist/react-core.d.cts +22 -0
- package/dist/react-core.d.ts +22 -0
- package/dist/react-core.js +104 -0
- package/dist/react.cjs +28 -0
- package/dist/react.d.cts +4 -0
- package/dist/react.d.ts +4 -0
- package/dist/react.js +8 -0
- package/dist/types.cjs +15 -0
- package/dist/types.d.cts +103 -0
- package/dist/types.d.ts +103 -0
- package/dist/types.js +0 -0
- package/dist/vue-core.cjs +107 -0
- package/dist/vue-core.d.cts +390 -0
- package/dist/vue-core.d.ts +390 -0
- package/dist/vue-core.js +88 -0
- package/dist/vue.cjs +30 -0
- package/dist/vue.d.cts +4 -0
- package/dist/vue.d.ts +4 -0
- package/dist/vue.js +10 -0
- package/iconix.css +34 -0
- package/package.json +156 -4
- package/sprites/iconix-circle.svg +1 -0
- package/sprites/iconix-square.svg +1 -0
- package/sprites/iconix.svg +1 -0
- package/svg/3d-printer.svg +1 -0
- package/svg/abacus.svg +1 -0
- package/svg/accessibility.svg +1 -0
- package/svg/acorn.svg +1 -0
- package/svg/activity.svg +1 -0
- package/svg/address-book.svg +1 -0
- package/svg/advent-candles.svg +1 -0
- package/svg/ai-chip.svg +1 -0
- package/svg/air-conditioner.svg +1 -0
- package/svg/air-filter.svg +1 -0
- package/svg/airflow.svg +1 -0
- package/svg/alarm-off.svg +1 -0
- package/svg/alarm-plus.svg +1 -0
- package/svg/alarm.svg +1 -0
- package/svg/alert-circle.svg +1 -0
- package/svg/alert-octagon.svg +1 -0
- package/svg/alert-square.svg +1 -0
- package/svg/alert-triangle.svg +1 -0
- package/svg/align-center.svg +1 -0
- package/svg/align-justify.svg +1 -0
- package/svg/align-left.svg +1 -0
- package/svg/align-right.svg +1 -0
- package/svg/alphabet.svg +1 -0
- package/svg/ambulance.svg +1 -0
- package/svg/anchor.svg +1 -0
- package/svg/angel.svg +1 -0
- package/svg/ant.svg +1 -0
- package/svg/antenna.svg +1 -0
- package/svg/anvil.svg +1 -0
- package/svg/aperture.svg +1 -0
- package/svg/api.svg +1 -0
- package/svg/apple.svg +1 -0
- package/svg/apps.svg +1 -0
- package/svg/aquarium.svg +1 -0
- package/svg/archive.svg +1 -0
- package/svg/arrow-big-left.svg +1 -0
- package/svg/arrow-big-right.svg +1 -0
- package/svg/arrow-big-up.svg +1 -0
- package/svg/arrow-circle-left.svg +1 -0
- package/svg/arrow-circle-right.svg +1 -0
- package/svg/arrow-down-circle.svg +1 -0
- package/svg/arrow-down-left.svg +1 -0
- package/svg/arrow-down-right.svg +1 -0
- package/svg/arrow-down.svg +1 -0
- package/svg/arrow-left-right.svg +1 -0
- package/svg/arrow-left.svg +1 -0
- package/svg/arrow-right.svg +1 -0
- package/svg/arrow-to-bottom.svg +1 -0
- package/svg/arrow-to-left.svg +1 -0
- package/svg/arrow-to-right.svg +1 -0
- package/svg/arrow-to-top.svg +1 -0
- package/svg/arrow-up-circle.svg +1 -0
- package/svg/arrow-up-left.svg +1 -0
- package/svg/arrow-up-right.svg +1 -0
- package/svg/arrow-up.svg +1 -0
- package/svg/arrows-up-down.svg +1 -0
- package/svg/at-sign.svg +1 -0
- package/svg/atm.svg +1 -0
- package/svg/atom.svg +1 -0
- package/svg/audio-waveform.svg +1 -0
- package/svg/award.svg +1 -0
- package/svg/baby.svg +1 -0
- package/svg/backend.svg +1 -0
- package/svg/backpack.svg +1 -0
- package/svg/badge-alert.svg +1 -0
- package/svg/badge-dot.svg +1 -0
- package/svg/badge-star.svg +1 -0
- package/svg/badge-x.svg +1 -0
- package/svg/bag-cement.svg +1 -0
- package/svg/bag-check.svg +1 -0
- package/svg/bag-plus.svg +1 -0
- package/svg/ball-valve.svg +1 -0
- package/svg/ball.svg +1 -0
- package/svg/balloon.svg +1 -0
- package/svg/balloons.svg +1 -0
- package/svg/ballot.svg +1 -0
- package/svg/ban.svg +1 -0
- package/svg/bandage.svg +1 -0
- package/svg/bank.svg +1 -0
- package/svg/bar-chart-horizontal.svg +1 -0
- package/svg/bar-chart.svg +1 -0
- package/svg/barcode-label.svg +1 -0
- package/svg/barcode.svg +1 -0
- package/svg/barn.svg +1 -0
- package/svg/barrel.svg +1 -0
- package/svg/basket.svg +1 -0
- package/svg/basketball.svg +1 -0
- package/svg/bathroom-scale.svg +1 -0
- package/svg/bathtub.svg +1 -0
- package/svg/battery-cell.svg +1 -0
- package/svg/battery-charging.svg +1 -0
- package/svg/battery-full.svg +1 -0
- package/svg/battery-low.svg +1 -0
- package/svg/battery-warning.svg +1 -0
- package/svg/battery.svg +1 -0
- package/svg/beaker.svg +1 -0
- package/svg/beanie.svg +1 -0
- package/svg/bear.svg +1 -0
- package/svg/bearing.svg +1 -0
- package/svg/bed.svg +1 -0
- package/svg/bee.svg +1 -0
- package/svg/beehive.svg +1 -0
- package/svg/beer.svg +1 -0
- package/svg/bell-curve.svg +1 -0
- package/svg/bell-off.svg +1 -0
- package/svg/bell-ring.svg +1 -0
- package/svg/bell.svg +1 -0
- package/svg/belt.svg +1 -0
- package/svg/bezier.svg +1 -0
- package/svg/bike.svg +1 -0
- package/svg/binary.svg +1 -0
- package/svg/binoculars.svg +1 -0
- package/svg/biomass.svg +1 -0
- package/svg/bird.svg +1 -0
- package/svg/birdhouse.svg +1 -0
- package/svg/blood-drop.svg +1 -0
- package/svg/blueprint.svg +1 -0
- package/svg/bluetooth.svg +1 -0
- package/svg/boiler.svg +1 -0
- package/svg/bold.svg +1 -0
- package/svg/book-open.svg +1 -0
- package/svg/book.svg +1 -0
- package/svg/bookmark.svg +1 -0
- package/svg/books.svg +1 -0
- package/svg/boot.svg +1 -0
- package/svg/bot.svg +1 -0
- package/svg/bouquet.svg +1 -0
- package/svg/bow-tie.svg +1 -0
- package/svg/bowling-ball.svg +1 -0
- package/svg/box-taped.svg +1 -0
- package/svg/boxes.svg +1 -0
- package/svg/braces.svg +1 -0
- package/svg/brackets.svg +1 -0
- package/svg/brain.svg +1 -0
- package/svg/brake-disc.svg +1 -0
- package/svg/bread.svg +1 -0
- package/svg/breadboard.svg +1 -0
- package/svg/brick-wall.svg +1 -0
- package/svg/bricks.svg +1 -0
- package/svg/briefcase.svg +1 -0
- package/svg/broadcast.svg +1 -0
- package/svg/browser.svg +1 -0
- package/svg/brush.svg +1 -0
- package/svg/bucket.svg +1 -0
- package/svg/bug.svg +1 -0
- package/svg/building.svg +1 -0
- package/svg/bulb-led.svg +1 -0
- package/svg/bulb-off.svg +1 -0
- package/svg/bulb-on.svg +1 -0
- package/svg/burger.svg +1 -0
- package/svg/bus.svg +1 -0
- package/svg/butterfly.svg +1 -0
- package/svg/button.svg +1 -0
- package/svg/buzzer.svg +1 -0
- package/svg/cable-car.svg +1 -0
- package/svg/cable-reel.svg +1 -0
- package/svg/cable.svg +1 -0
- package/svg/cactus.svg +1 -0
- package/svg/cake.svg +1 -0
- package/svg/calculator.svg +1 -0
- package/svg/calendar-check.svg +1 -0
- package/svg/calendar-clock.svg +1 -0
- package/svg/calendar-days.svg +1 -0
- package/svg/calendar-edit.svg +1 -0
- package/svg/calendar-heart.svg +1 -0
- package/svg/calendar-minus.svg +1 -0
- package/svg/calendar-off.svg +1 -0
- package/svg/calendar-plus.svg +1 -0
- package/svg/calendar-range.svg +1 -0
- package/svg/calendar-repeat.svg +1 -0
- package/svg/calendar-search.svg +1 -0
- package/svg/calendar-x.svg +1 -0
- package/svg/calendar.svg +1 -0
- package/svg/camera-off.svg +1 -0
- package/svg/camera.svg +1 -0
- package/svg/campfire.svg +1 -0
- package/svg/candle.svg +1 -0
- package/svg/candlestick.svg +1 -0
- package/svg/candy-cane.svg +1 -0
- package/svg/capacitor-polar.svg +1 -0
- package/svg/capacitor.svg +1 -0
- package/svg/car-battery.svg +1 -0
- package/svg/car-door.svg +1 -0
- package/svg/car-front.svg +1 -0
- package/svg/car-insurance.svg +1 -0
- package/svg/car-lift.svg +1 -0
- package/svg/car-wash.svg +1 -0
- package/svg/car.svg +1 -0
- package/svg/caravan.svg +1 -0
- package/svg/care.svg +1 -0
- package/svg/carrot.svg +1 -0
- package/svg/cart-check.svg +1 -0
- package/svg/cart-plus.svg +1 -0
- package/svg/cart-remove.svg +1 -0
- package/svg/cart.svg +1 -0
- package/svg/cash.svg +1 -0
- package/svg/cassette.svg +1 -0
- package/svg/cast.svg +1 -0
- package/svg/castle.svg +1 -0
- package/svg/cat.svg +1 -0
- package/svg/ceiling-lamp.svg +1 -0
- package/svg/cell.svg +1 -0
- package/svg/certificate.svg +1 -0
- package/svg/chain.svg +1 -0
- package/svg/chair.svg +1 -0
- package/svg/chalice.svg +1 -0
- package/svg/chalkboard.svg +1 -0
- package/svg/champagne.svg +1 -0
- package/svg/chart-area.svg +1 -0
- package/svg/chart-donut.svg +1 -0
- package/svg/check-circle.svg +1 -0
- package/svg/check-double.svg +1 -0
- package/svg/check.svg +1 -0
- package/svg/checklist.svg +1 -0
- package/svg/chef-hat.svg +1 -0
- package/svg/cherry.svg +1 -0
- package/svg/chess-pawn.svg +1 -0
- package/svg/chess-rook.svg +1 -0
- package/svg/chevron-down.svg +1 -0
- package/svg/chevron-left.svg +1 -0
- package/svg/chevron-right.svg +1 -0
- package/svg/chevron-up-down.svg +1 -0
- package/svg/chevron-up.svg +1 -0
- package/svg/chevrons-down.svg +1 -0
- package/svg/chevrons-left.svg +1 -0
- package/svg/chevrons-right.svg +1 -0
- package/svg/chevrons-up.svg +1 -0
- package/svg/chick.svg +1 -0
- package/svg/child.svg +1 -0
- package/svg/chimney.svg +1 -0
- package/svg/christmas-tree.svg +1 -0
- package/svg/church-bell.svg +1 -0
- package/svg/church.svg +1 -0
- package/svg/circle-dashed.svg +1 -0
- package/svg/circle-dot.svg +1 -0
- package/svg/circle-minus.svg +1 -0
- package/svg/circle-pause.svg +1 -0
- package/svg/circuit-board.svg +1 -0
- package/svg/circuit-breaker.svg +1 -0
- package/svg/clapperboard.svg +1 -0
- package/svg/classroom.svg +1 -0
- package/svg/clipboard-list.svg +1 -0
- package/svg/clipboard.svg +1 -0
- package/svg/clock-check.svg +1 -0
- package/svg/clock-fast.svg +1 -0
- package/svg/clock.svg +1 -0
- package/svg/close.svg +1 -0
- package/svg/cloud-alert.svg +1 -0
- package/svg/cloud-check.svg +1 -0
- package/svg/cloud-code.svg +1 -0
- package/svg/cloud-download.svg +1 -0
- package/svg/cloud-drizzle.svg +1 -0
- package/svg/cloud-lightning.svg +1 -0
- package/svg/cloud-off.svg +1 -0
- package/svg/cloud-rain.svg +1 -0
- package/svg/cloud-snow.svg +1 -0
- package/svg/cloud-sun.svg +1 -0
- package/svg/cloud-upload.svg +1 -0
- package/svg/cloud.svg +1 -0
- package/svg/cloudy.svg +1 -0
- package/svg/clover.svg +1 -0
- package/svg/code-block.svg +1 -0
- package/svg/code-review.svg +1 -0
- package/svg/code-slash.svg +1 -0
- package/svg/code.svg +1 -0
- package/svg/coffee.svg +1 -0
- package/svg/cog.svg +1 -0
- package/svg/cogs.svg +1 -0
- package/svg/coil.svg +1 -0
- package/svg/coins.svg +1 -0
- package/svg/collapse.svg +1 -0
- package/svg/color-picker.svg +1 -0
- package/svg/column.svg +1 -0
- package/svg/columns.svg +1 -0
- package/svg/comet.svg +1 -0
- package/svg/command.svg +1 -0
- package/svg/commit-log.svg +1 -0
- package/svg/committee.svg +1 -0
- package/svg/compare.svg +1 -0
- package/svg/compass.svg +1 -0
- package/svg/complaint.svg +1 -0
- package/svg/component.svg +1 -0
- package/svg/compressor.svg +1 -0
- package/svg/confetti.svg +1 -0
- package/svg/constellation.svg +1 -0
- package/svg/contact-nc.svg +1 -0
- package/svg/contact-no.svg +1 -0
- package/svg/contact.svg +1 -0
- package/svg/contactless.svg +1 -0
- package/svg/contactor.svg +1 -0
- package/svg/container-ship.svg +1 -0
- package/svg/container.svg +1 -0
- package/svg/contrast.svg +1 -0
- package/svg/control-loop.svg +1 -0
- package/svg/conveyor.svg +1 -0
- package/svg/cooking-pot.svg +1 -0
- package/svg/coolant-temp.svg +1 -0
- package/svg/coolant.svg +1 -0
- package/svg/cooling-tower.svg +1 -0
- package/svg/copy.svg +1 -0
- package/svg/corner-down-left.svg +1 -0
- package/svg/corner-down-right.svg +1 -0
- package/svg/corner-up-left.svg +1 -0
- package/svg/corner-up-right.svg +1 -0
- package/svg/coupon.svg +1 -0
- package/svg/cpu.svg +1 -0
- package/svg/crab.svg +1 -0
- package/svg/crane-hook.svg +1 -0
- package/svg/crane.svg +1 -0
- package/svg/credit-card.svg +1 -0
- package/svg/crop.svg +1 -0
- package/svg/cross.svg +1 -0
- package/svg/crown.svg +1 -0
- package/svg/crystal.svg +1 -0
- package/svg/current-source.svg +1 -0
- package/svg/cursor-pointer.svg +1 -0
- package/svg/curtains.svg +1 -0
- package/svg/dashboard.svg +1 -0
- package/svg/data-protection.svg +1 -0
- package/svg/database-backup.svg +1 -0
- package/svg/database.svg +1 -0
- package/svg/dehumidifier.svg +1 -0
- package/svg/delivery-done.svg +1 -0
- package/svg/dependency.svg +1 -0
- package/svg/devices.svg +1 -0
- package/svg/dice.svg +1 -0
- package/svg/dimension.svg +1 -0
- package/svg/dimmer.svg +1 -0
- package/svg/din-rail.svg +1 -0
- package/svg/diode.svg +1 -0
- package/svg/diploma.svg +1 -0
- package/svg/disc.svg +1 -0
- package/svg/discount.svg +1 -0
- package/svg/dispatch.svg +1 -0
- package/svg/distance.svg +1 -0
- package/svg/dna.svg +1 -0
- package/svg/dog-house.svg +1 -0
- package/svg/dollar.svg +1 -0
- package/svg/door-frame.svg +1 -0
- package/svg/door.svg +1 -0
- package/svg/doorbell.svg +1 -0
- package/svg/download.svg +1 -0
- package/svg/drafting-compass.svg +1 -0
- package/svg/drag-handle.svg +1 -0
- package/svg/drain.svg +1 -0
- package/svg/dress.svg +1 -0
- package/svg/dresser.svg +1 -0
- package/svg/droplet.svg +1 -0
- package/svg/droplets.svg +1 -0
- package/svg/drum.svg +1 -0
- package/svg/duct.svg +1 -0
- package/svg/dumbbell.svg +1 -0
- package/svg/e-learning.svg +1 -0
- package/svg/easel.svg +1 -0
- package/svg/easter-egg.svg +1 -0
- package/svg/eco-bulb.svg +1 -0
- package/svg/eco-energy.svg +1 -0
- package/svg/edit.svg +1 -0
- package/svg/egg.svg +1 -0
- package/svg/electric-car.svg +1 -0
- package/svg/electric-meter.svg +1 -0
- package/svg/electrical-panel.svg +1 -0
- package/svg/elements.svg +1 -0
- package/svg/emergency-stop.svg +1 -0
- package/svg/encoder.svg +1 -0
- package/svg/energy-rating.svg +1 -0
- package/svg/energy-storage.svg +1 -0
- package/svg/energy.svg +1 -0
- package/svg/engine.svg +1 -0
- package/svg/equalizer.svg +1 -0
- package/svg/eraser.svg +1 -0
- package/svg/ethernet-port.svg +1 -0
- package/svg/euro.svg +1 -0
- package/svg/ev-charger.svg +1 -0
- package/svg/ev-plug.svg +1 -0
- package/svg/event-ticket.svg +1 -0
- package/svg/exchange.svg +1 -0
- package/svg/expand.svg +1 -0
- package/svg/external-link.svg +1 -0
- package/svg/eye-off.svg +1 -0
- package/svg/eye.svg +1 -0
- package/svg/face-id.svg +1 -0
- package/svg/factory.svg +1 -0
- package/svg/family.svg +1 -0
- package/svg/fan.svg +1 -0
- package/svg/farmer.svg +1 -0
- package/svg/fast-forward.svg +1 -0
- package/svg/faucet.svg +1 -0
- package/svg/feather.svg +1 -0
- package/svg/fence.svg +1 -0
- package/svg/field.svg +1 -0
- package/svg/fieldbus.svg +1 -0
- package/svg/file-archive.svg +1 -0
- package/svg/file-audio.svg +1 -0
- package/svg/file-chart.svg +1 -0
- package/svg/file-check.svg +1 -0
- package/svg/file-clock.svg +1 -0
- package/svg/file-code.svg +1 -0
- package/svg/file-diff.svg +1 -0
- package/svg/file-download.svg +1 -0
- package/svg/file-heart.svg +1 -0
- package/svg/file-image.svg +1 -0
- package/svg/file-lock.svg +1 -0
- package/svg/file-minus.svg +1 -0
- package/svg/file-pen.svg +1 -0
- package/svg/file-plus.svg +1 -0
- package/svg/file-question.svg +1 -0
- package/svg/file-search.svg +1 -0
- package/svg/file-settings.svg +1 -0
- package/svg/file-signature.svg +1 -0
- package/svg/file-spreadsheet.svg +1 -0
- package/svg/file-star.svg +1 -0
- package/svg/file-text.svg +1 -0
- package/svg/file-upload.svg +1 -0
- package/svg/file-user.svg +1 -0
- package/svg/file-video.svg +1 -0
- package/svg/file-warning.svg +1 -0
- package/svg/file-x.svg +1 -0
- package/svg/file.svg +1 -0
- package/svg/files.svg +1 -0
- package/svg/film-reel.svg +1 -0
- package/svg/film.svg +1 -0
- package/svg/filter.svg +1 -0
- package/svg/fingerprint.svg +1 -0
- package/svg/fire-extinguisher.svg +1 -0
- package/svg/fireplace.svg +1 -0
- package/svg/fireworks.svg +1 -0
- package/svg/first-aid-kit.svg +1 -0
- package/svg/first-aid.svg +1 -0
- package/svg/fish.svg +1 -0
- package/svg/fishing-hook.svg +1 -0
- package/svg/fishing-rod.svg +1 -0
- package/svg/flag.svg +1 -0
- package/svg/flame.svg +1 -0
- package/svg/flask-bubbles.svg +1 -0
- package/svg/flask-round.svg +1 -0
- package/svg/flask.svg +1 -0
- package/svg/flip-flop.svg +1 -0
- package/svg/float-switch.svg +1 -0
- package/svg/flood.svg +1 -0
- package/svg/floor-heating.svg +1 -0
- package/svg/floor-plan.svg +1 -0
- package/svg/flow-meter.svg +1 -0
- package/svg/flowchart.svg +1 -0
- package/svg/flower.svg +1 -0
- package/svg/fog.svg +1 -0
- package/svg/folder-check.svg +1 -0
- package/svg/folder-clock.svg +1 -0
- package/svg/folder-code.svg +1 -0
- package/svg/folder-download.svg +1 -0
- package/svg/folder-heart.svg +1 -0
- package/svg/folder-lock.svg +1 -0
- package/svg/folder-minus.svg +1 -0
- package/svg/folder-open.svg +1 -0
- package/svg/folder-plus.svg +1 -0
- package/svg/folder-search.svg +1 -0
- package/svg/folder-settings.svg +1 -0
- package/svg/folder-star.svg +1 -0
- package/svg/folder-sync.svg +1 -0
- package/svg/folder-tree.svg +1 -0
- package/svg/folder-upload.svg +1 -0
- package/svg/folder-user.svg +1 -0
- package/svg/folder-x.svg +1 -0
- package/svg/folder.svg +1 -0
- package/svg/folders.svg +1 -0
- package/svg/font-size.svg +1 -0
- package/svg/forest.svg +1 -0
- package/svg/forklift.svg +1 -0
- package/svg/forward.svg +1 -0
- package/svg/fox.svg +1 -0
- package/svg/fragile.svg +1 -0
- package/svg/frame.svg +1 -0
- package/svg/fridge.svg +1 -0
- package/svg/fried-egg.svg +1 -0
- package/svg/frog.svg +1 -0
- package/svg/frown.svg +1 -0
- package/svg/fruit-tree.svg +1 -0
- package/svg/fuel-gauge.svg +1 -0
- package/svg/fuel.svg +1 -0
- package/svg/function.svg +1 -0
- package/svg/fuse-symbol.svg +1 -0
- package/svg/fuse.svg +1 -0
- package/svg/gamepad.svg +1 -0
- package/svg/garage.svg +1 -0
- package/svg/garland.svg +1 -0
- package/svg/gate-valve.svg +1 -0
- package/svg/gauge.svg +1 -0
- package/svg/gavel.svg +1 -0
- package/svg/gear-shift.svg +1 -0
- package/svg/gem.svg +1 -0
- package/svg/generator.svg +1 -0
- package/svg/geothermal.svg +1 -0
- package/svg/ghost.svg +1 -0
- package/svg/gift-card.svg +1 -0
- package/svg/gift.svg +1 -0
- package/svg/git-branch.svg +1 -0
- package/svg/git-commit.svg +1 -0
- package/svg/git-compare.svg +1 -0
- package/svg/git-fork.svg +1 -0
- package/svg/git-merge.svg +1 -0
- package/svg/git-pull-request.svg +1 -0
- package/svg/glass-water.svg +1 -0
- package/svg/glasses.svg +1 -0
- package/svg/globe.svg +1 -0
- package/svg/glue.svg +1 -0
- package/svg/golf.svg +1 -0
- package/svg/government.svg +1 -0
- package/svg/grade.svg +1 -0
- package/svg/graduation-cap.svg +1 -0
- package/svg/grapes.svg +1 -0
- package/svg/green-power.svg +1 -0
- package/svg/greenhouse.svg +1 -0
- package/svg/grid.svg +1 -0
- package/svg/ground.svg +1 -0
- package/svg/growth.svg +1 -0
- package/svg/hail.svg +1 -0
- package/svg/hammer.svg +1 -0
- package/svg/hand-pointer.svg +1 -0
- package/svg/hand-stop.svg +1 -0
- package/svg/handbag.svg +1 -0
- package/svg/handwheel.svg +1 -0
- package/svg/hanger.svg +1 -0
- package/svg/hard-drive.svg +1 -0
- package/svg/hard-hat.svg +1 -0
- package/svg/harvest.svg +1 -0
- package/svg/hash.svg +1 -0
- package/svg/hat.svg +1 -0
- package/svg/hay-bale.svg +1 -0
- package/svg/heading-1.svg +1 -0
- package/svg/heading-2.svg +1 -0
- package/svg/heading.svg +1 -0
- package/svg/headlight.svg +1 -0
- package/svg/headphones.svg +1 -0
- package/svg/headset.svg +1 -0
- package/svg/heart-pulse.svg +1 -0
- package/svg/heart.svg +1 -0
- package/svg/heat-pump.svg +1 -0
- package/svg/heat-sink.svg +1 -0
- package/svg/helicopter.svg +1 -0
- package/svg/help-circle.svg +1 -0
- package/svg/high-heel.svg +1 -0
- package/svg/high-voltage.svg +1 -0
- package/svg/highlighter.svg +1 -0
- package/svg/history.svg +1 -0
- package/svg/hmi-panel.svg +1 -0
- package/svg/holiday.svg +1 -0
- package/svg/home-battery.svg +1 -0
- package/svg/home-heart.svg +1 -0
- package/svg/home.svg +1 -0
- package/svg/homework.svg +1 -0
- package/svg/hoodie.svg +1 -0
- package/svg/hopper.svg +1 -0
- package/svg/horseshoe.svg +1 -0
- package/svg/hospital-bed.svg +1 -0
- package/svg/hospital.svg +1 -0
- package/svg/hotel.svg +1 -0
- package/svg/hourglass.svg +1 -0
- package/svg/house-construction.svg +1 -0
- package/svg/house-frame.svg +1 -0
- package/svg/house-key.svg +1 -0
- package/svg/house-plan.svg +1 -0
- package/svg/humidity.svg +1 -0
- package/svg/hydro-dam.svg +1 -0
- package/svg/hydrogen.svg +1 -0
- package/svg/hypothesis.svg +1 -0
- package/svg/i-beam.svg +1 -0
- package/svg/ic-chip.svg +1 -0
- package/svg/ice-cream.svg +1 -0
- package/svg/id-badge.svg +1 -0
- package/svg/id-verified.svg +1 -0
- package/svg/image.svg +1 -0
- package/svg/images.svg +1 -0
- package/svg/inbox.svg +1 -0
- package/svg/indent.svg +1 -0
- package/svg/inductor.svg +1 -0
- package/svg/infinity.svg +1 -0
- package/svg/info-square.svg +1 -0
- package/svg/info.svg +1 -0
- package/svg/inspection.svg +1 -0
- package/svg/inventory.svg +1 -0
- package/svg/inverter.svg +1 -0
- package/svg/invoice.svg +1 -0
- package/svg/io-module.svg +1 -0
- package/svg/irrigation.svg +1 -0
- package/svg/italic.svg +1 -0
- package/svg/jacket.svg +1 -0
- package/svg/jackhammer.svg +1 -0
- package/svg/jellyfish.svg +1 -0
- package/svg/joystick.svg +1 -0
- package/svg/jumper-wire.svg +1 -0
- package/svg/junction-box.svg +1 -0
- package/svg/karaoke.svg +1 -0
- package/svg/keep-dry.svg +1 -0
- package/svg/kettle.svg +1 -0
- package/svg/key-fob.svg +1 -0
- package/svg/key.svg +1 -0
- package/svg/keyboard.svg +1 -0
- package/svg/keyhole.svg +1 -0
- package/svg/kite.svg +1 -0
- package/svg/koala.svg +1 -0
- package/svg/lab-results.svg +1 -0
- package/svg/ladder-logic.svg +1 -0
- package/svg/ladder.svg +1 -0
- package/svg/ladybug.svg +1 -0
- package/svg/lambda.svg +1 -0
- package/svg/lamp-symbol.svg +1 -0
- package/svg/lamp.svg +1 -0
- package/svg/lantern.svg +1 -0
- package/svg/laptop-code.svg +1 -0
- package/svg/laptop.svg +1 -0
- package/svg/laundry.svg +1 -0
- package/svg/law-book.svg +1 -0
- package/svg/lawyer.svg +1 -0
- package/svg/layers.svg +1 -0
- package/svg/layout.svg +1 -0
- package/svg/ldr.svg +1 -0
- package/svg/leaf.svg +1 -0
- package/svg/led-strip.svg +1 -0
- package/svg/led.svg +1 -0
- package/svg/ledger.svg +1 -0
- package/svg/legal-document.svg +1 -0
- package/svg/letter-case.svg +1 -0
- package/svg/level-sensor.svg +1 -0
- package/svg/library.svg +1 -0
- package/svg/license-plate.svg +1 -0
- package/svg/light-switch.svg +1 -0
- package/svg/lightbulb.svg +1 -0
- package/svg/lighthouse.svg +1 -0
- package/svg/lightning-rod.svg +1 -0
- package/svg/limit-switch.svg +1 -0
- package/svg/line-chart-down.svg +1 -0
- package/svg/line-chart.svg +1 -0
- package/svg/line-height.svg +1 -0
- package/svg/link.svg +1 -0
- package/svg/lion.svg +1 -0
- package/svg/list-checks.svg +1 -0
- package/svg/list-ordered.svg +1 -0
- package/svg/list.svg +1 -0
- package/svg/live.svg +1 -0
- package/svg/loaded-pallet.svg +1 -0
- package/svg/loader.svg +1 -0
- package/svg/locate.svg +1 -0
- package/svg/lock.svg +1 -0
- package/svg/log-in.svg +1 -0
- package/svg/log-out.svg +1 -0
- package/svg/logic-and.svg +1 -0
- package/svg/logic-nand.svg +1 -0
- package/svg/logic-not.svg +1 -0
- package/svg/logic-or.svg +1 -0
- package/svg/logic-xor.svg +1 -0
- package/svg/loyalty-card.svg +1 -0
- package/svg/luggage.svg +1 -0
- package/svg/lungs.svg +1 -0
- package/svg/magnet.svg +1 -0
- package/svg/mail-check.svg +1 -0
- package/svg/mail-open.svg +1 -0
- package/svg/mail-plus.svg +1 -0
- package/svg/mail-x.svg +1 -0
- package/svg/mail.svg +1 -0
- package/svg/mailbox.svg +1 -0
- package/svg/manifold.svg +1 -0
- package/svg/map-pin-check.svg +1 -0
- package/svg/map-pin-plus.svg +1 -0
- package/svg/map-pin.svg +1 -0
- package/svg/map.svg +1 -0
- package/svg/mask.svg +1 -0
- package/svg/math.svg +1 -0
- package/svg/maximize.svg +1 -0
- package/svg/measuring-tape.svg +1 -0
- package/svg/medal.svg +1 -0
- package/svg/meditation.svg +1 -0
- package/svg/megaphone.svg +1 -0
- package/svg/menu.svg +1 -0
- package/svg/message-check.svg +1 -0
- package/svg/message-circle.svg +1 -0
- package/svg/message-dots.svg +1 -0
- package/svg/message-plus.svg +1 -0
- package/svg/message-square.svg +1 -0
- package/svg/messages.svg +1 -0
- package/svg/meter-bidirectional.svg +1 -0
- package/svg/metro.svg +1 -0
- package/svg/metronome.svg +1 -0
- package/svg/mic-off.svg +1 -0
- package/svg/mic.svg +1 -0
- package/svg/microcontroller.svg +1 -0
- package/svg/microscope.svg +1 -0
- package/svg/microwave.svg +1 -0
- package/svg/milk.svg +1 -0
- package/svg/minimize.svg +1 -0
- package/svg/minus.svg +1 -0
- package/svg/mitten.svg +1 -0
- package/svg/molecule.svg +1 -0
- package/svg/money-bag.svg +1 -0
- package/svg/monitor-check.svg +1 -0
- package/svg/monitor.svg +1 -0
- package/svg/monkey.svg +1 -0
- package/svg/moon-phase.svg +1 -0
- package/svg/moon-stars.svg +1 -0
- package/svg/moon.svg +1 -0
- package/svg/more-horizontal.svg +1 -0
- package/svg/more-vertical.svg +1 -0
- package/svg/motor-symbol.svg +1 -0
- package/svg/motor-valve.svg +1 -0
- package/svg/motor.svg +1 -0
- package/svg/mountain-snow.svg +1 -0
- package/svg/mountain.svg +1 -0
- package/svg/mouse-face.svg +1 -0
- package/svg/mouse.svg +1 -0
- package/svg/move.svg +1 -0
- package/svg/multimeter.svg +1 -0
- package/svg/mushroom.svg +1 -0
- package/svg/music-note.svg +1 -0
- package/svg/music.svg +1 -0
- package/svg/navigation.svg +1 -0
- package/svg/necklace.svg +1 -0
- package/svg/network.svg +1 -0
- package/svg/newspaper.svg +1 -0
- package/svg/notebook.svg +1 -0
- package/svg/notepad.svg +1 -0
- package/svg/numbers.svg +1 -0
- package/svg/nut.svg +1 -0
- package/svg/object.svg +1 -0
- package/svg/octopus.svg +1 -0
- package/svg/official-mail.svg +1 -0
- package/svg/official-seal.svg +1 -0
- package/svg/ohm.svg +1 -0
- package/svg/oil-can.svg +1 -0
- package/svg/oil-rig.svg +1 -0
- package/svg/oil.svg +1 -0
- package/svg/op-amp.svg +1 -0
- package/svg/orbit.svg +1 -0
- package/svg/org-chart.svg +1 -0
- package/svg/ornament.svg +1 -0
- package/svg/oscilloscope.svg +1 -0
- package/svg/outdent.svg +1 -0
- package/svg/oven.svg +1 -0
- package/svg/owl.svg +1 -0
- package/svg/package-check.svg +1 -0
- package/svg/package-clock.svg +1 -0
- package/svg/package-x.svg +1 -0
- package/svg/package.svg +1 -0
- package/svg/page-break.svg +1 -0
- package/svg/paint-brush.svg +1 -0
- package/svg/paint-bucket.svg +1 -0
- package/svg/paintbrush-roller.svg +1 -0
- package/svg/palette.svg +1 -0
- package/svg/pallet-jack.svg +1 -0
- package/svg/pallet.svg +1 -0
- package/svg/palm-tree.svg +1 -0
- package/svg/panda.svg +1 -0
- package/svg/panel-bottom.svg +1 -0
- package/svg/pants.svg +1 -0
- package/svg/paperclip.svg +1 -0
- package/svg/paragraph.svg +1 -0
- package/svg/parcel-locker.svg +1 -0
- package/svg/parcel.svg +1 -0
- package/svg/parking.svg +1 -0
- package/svg/partners.svg +1 -0
- package/svg/party-popper.svg +1 -0
- package/svg/passport.svg +1 -0
- package/svg/password.svg +1 -0
- package/svg/pause.svg +1 -0
- package/svg/paw.svg +1 -0
- package/svg/payment-received.svg +1 -0
- package/svg/pen-nib.svg +1 -0
- package/svg/pen-tool.svg +1 -0
- package/svg/pencil-line.svg +1 -0
- package/svg/pending.svg +1 -0
- package/svg/people.svg +1 -0
- package/svg/percent.svg +1 -0
- package/svg/permit.svg +1 -0
- package/svg/person.svg +1 -0
- package/svg/petri-dish.svg +1 -0
- package/svg/phone-call.svg +1 -0
- package/svg/phone-incoming.svg +1 -0
- package/svg/phone-off.svg +1 -0
- package/svg/phone-outgoing.svg +1 -0
- package/svg/phone.svg +1 -0
- package/svg/photo-sensor.svg +1 -0
- package/svg/pi.svg +1 -0
- package/svg/piano.svg +1 -0
- package/svg/pickup-truck.svg +1 -0
- package/svg/picture-frame.svg +1 -0
- package/svg/pie-chart.svg +1 -0
- package/svg/pilcrow.svg +1 -0
- package/svg/pill-bottle.svg +1 -0
- package/svg/pill.svg +1 -0
- package/svg/pin.svg +1 -0
- package/svg/pip.svg +1 -0
- package/svg/pipe-tee.svg +1 -0
- package/svg/pipe.svg +1 -0
- package/svg/pipeline-ci.svg +1 -0
- package/svg/pipette.svg +1 -0
- package/svg/piston.svg +1 -0
- package/svg/pitchfork.svg +1 -0
- package/svg/pizza.svg +1 -0
- package/svg/plane.svg +1 -0
- package/svg/planet.svg +1 -0
- package/svg/plant-pot.svg +1 -0
- package/svg/play-circle.svg +1 -0
- package/svg/play.svg +1 -0
- package/svg/playing-cards.svg +1 -0
- package/svg/playlist.svg +1 -0
- package/svg/plc.svg +1 -0
- package/svg/plug-eu.svg +1 -0
- package/svg/plug.svg +1 -0
- package/svg/plumb-bob.svg +1 -0
- package/svg/plunger.svg +1 -0
- package/svg/plus-circle.svg +1 -0
- package/svg/plus.svg +1 -0
- package/svg/pneumatic-cylinder.svg +1 -0
- package/svg/podcast.svg +1 -0
- package/svg/port-crane.svg +1 -0
- package/svg/pos-terminal.svg +1 -0
- package/svg/potentiometer.svg +1 -0
- package/svg/pound.svg +1 -0
- package/svg/power-bank.svg +1 -0
- package/svg/power-cord.svg +1 -0
- package/svg/power-flow.svg +1 -0
- package/svg/power-off.svg +1 -0
- package/svg/power-pylon.svg +1 -0
- package/svg/power-strip.svg +1 -0
- package/svg/power.svg +1 -0
- package/svg/presentation.svg +1 -0
- package/svg/press.svg +1 -0
- package/svg/printer.svg +1 -0
- package/svg/prism.svg +1 -0
- package/svg/privacy.svg +1 -0
- package/svg/produce-crate.svg +1 -0
- package/svg/progress.svg +1 -0
- package/svg/projector.svg +1 -0
- package/svg/proximity-sensor.svg +1 -0
- package/svg/pump.svg +1 -0
- package/svg/pumpjack.svg +1 -0
- package/svg/pumpkin.svg +1 -0
- package/svg/push-button.svg +1 -0
- package/svg/puzzle.svg +1 -0
- package/svg/qr-code.svg +1 -0
- package/svg/quiz.svg +1 -0
- package/svg/quote.svg +1 -0
- package/svg/rabbit.svg +1 -0
- package/svg/racing-flag.svg +1 -0
- package/svg/radar.svg +1 -0
- package/svg/radiator.svg +1 -0
- package/svg/radio.svg +1 -0
- package/svg/rainbow.svg +1 -0
- package/svg/rake.svg +1 -0
- package/svg/rating.svg +1 -0
- package/svg/receipt-check.svg +1 -0
- package/svg/receipt.svg +1 -0
- package/svg/receive.svg +1 -0
- package/svg/record.svg +1 -0
- package/svg/recycle.svg +1 -0
- package/svg/redo.svg +1 -0
- package/svg/refresh.svg +1 -0
- package/svg/regex.svg +1 -0
- package/svg/relay.svg +1 -0
- package/svg/remove-format.svg +1 -0
- package/svg/repeat-once.svg +1 -0
- package/svg/repeat.svg +1 -0
- package/svg/reply.svg +1 -0
- package/svg/resistor.svg +1 -0
- package/svg/returns.svg +1 -0
- package/svg/reviews.svg +1 -0
- package/svg/rewind.svg +1 -0
- package/svg/ring.svg +1 -0
- package/svg/road-sign.svg +1 -0
- package/svg/road.svg +1 -0
- package/svg/rock.svg +1 -0
- package/svg/rocket.svg +1 -0
- package/svg/roof.svg +1 -0
- package/svg/room-size.svg +1 -0
- package/svg/rosary.svg +1 -0
- package/svg/rose.svg +1 -0
- package/svg/rotate-ccw.svg +1 -0
- package/svg/rotate-cw.svg +1 -0
- package/svg/route.svg +1 -0
- package/svg/router.svg +1 -0
- package/svg/rss.svg +1 -0
- package/svg/rug.svg +1 -0
- package/svg/ruler.svg +1 -0
- package/svg/running.svg +1 -0
- package/svg/safe.svg +1 -0
- package/svg/safety-goggles.svg +1 -0
- package/svg/sailboat.svg +1 -0
- package/svg/salad.svg +1 -0
- package/svg/sale-tag.svg +1 -0
- package/svg/satellite-dish.svg +1 -0
- package/svg/save.svg +1 -0
- package/svg/scada.svg +1 -0
- package/svg/scaffold.svg +1 -0
- package/svg/scale.svg +1 -0
- package/svg/scan-qr.svg +1 -0
- package/svg/scan.svg +1 -0
- package/svg/scatter-plot.svg +1 -0
- package/svg/school-bell.svg +1 -0
- package/svg/school-bus.svg +1 -0
- package/svg/school-desk.svg +1 -0
- package/svg/school.svg +1 -0
- package/svg/scissors.svg +1 -0
- package/svg/scooter.svg +1 -0
- package/svg/screen-share.svg +1 -0
- package/svg/screw.svg +1 -0
- package/svg/screwdriver.svg +1 -0
- package/svg/sd-card.svg +1 -0
- package/svg/search.svg +1 -0
- package/svg/secure-code.svg +1 -0
- package/svg/secure-payment.svg +1 -0
- package/svg/secured.svg +1 -0
- package/svg/seismic.svg +1 -0
- package/svg/selection.svg +1 -0
- package/svg/selector-switch.svg +1 -0
- package/svg/send.svg +1 -0
- package/svg/senior.svg +1 -0
- package/svg/sensor.svg +1 -0
- package/svg/server.svg +1 -0
- package/svg/servo.svg +1 -0
- package/svg/set-square.svg +1 -0
- package/svg/settings.svg +1 -0
- package/svg/seven-segment.svg +1 -0
- package/svg/shapes.svg +1 -0
- package/svg/share-out.svg +1 -0
- package/svg/share.svg +1 -0
- package/svg/shell.svg +1 -0
- package/svg/shelving.svg +1 -0
- package/svg/shield-alert.svg +1 -0
- package/svg/shield-check.svg +1 -0
- package/svg/shield-lock.svg +1 -0
- package/svg/shield-user.svg +1 -0
- package/svg/shield-x.svg +1 -0
- package/svg/shield.svg +1 -0
- package/svg/ship.svg +1 -0
- package/svg/shipment-tracking.svg +1 -0
- package/svg/shipping-container.svg +1 -0
- package/svg/shipping-fast.svg +1 -0
- package/svg/shipping-label.svg +1 -0
- package/svg/shoe.svg +1 -0
- package/svg/shooting-star.svg +1 -0
- package/svg/shopping-bag.svg +1 -0
- package/svg/shorts.svg +1 -0
- package/svg/shovel.svg +1 -0
- package/svg/shower.svg +1 -0
- package/svg/shuffle.svg +1 -0
- package/svg/sidebar.svg +1 -0
- package/svg/sigma.svg +1 -0
- package/svg/sign.svg +1 -0
- package/svg/signal-weak.svg +1 -0
- package/svg/signal.svg +1 -0
- package/svg/signature.svg +1 -0
- package/svg/signpost.svg +1 -0
- package/svg/silo.svg +1 -0
- package/svg/sine-wave.svg +1 -0
- package/svg/sink.svg +1 -0
- package/svg/siren.svg +1 -0
- package/svg/sitemap.svg +1 -0
- package/svg/skateboard.svg +1 -0
- package/svg/skip-back.svg +1 -0
- package/svg/skip-forward.svg +1 -0
- package/svg/skirt.svg +1 -0
- package/svg/sleep.svg +1 -0
- package/svg/sliders-vertical.svg +1 -0
- package/svg/sliders.svg +1 -0
- package/svg/smart-home.svg +1 -0
- package/svg/smartphone.svg +1 -0
- package/svg/smile.svg +1 -0
- package/svg/smoke-detector.svg +1 -0
- package/svg/snail.svg +1 -0
- package/svg/snake.svg +1 -0
- package/svg/snowflake.svg +1 -0
- package/svg/snowman.svg +1 -0
- package/svg/sock.svg +1 -0
- package/svg/socket.svg +1 -0
- package/svg/sofa.svg +1 -0
- package/svg/soil-moisture.svg +1 -0
- package/svg/solar-home.svg +1 -0
- package/svg/solar-panel.svg +1 -0
- package/svg/solar-system.svg +1 -0
- package/svg/soldering-iron.svg +1 -0
- package/svg/solenoid-valve.svg +1 -0
- package/svg/soup.svg +1 -0
- package/svg/spark-plug.svg +1 -0
- package/svg/spark.svg +1 -0
- package/svg/sparkles.svg +1 -0
- package/svg/speaker-user.svg +1 -0
- package/svg/speaker.svg +1 -0
- package/svg/speech-bubbles.svg +1 -0
- package/svg/speed-camera.svg +1 -0
- package/svg/speedometer.svg +1 -0
- package/svg/spider.svg +1 -0
- package/svg/spinner.svg +1 -0
- package/svg/spirit-level.svg +1 -0
- package/svg/spray-can.svg +1 -0
- package/svg/sprinkler.svg +1 -0
- package/svg/sprout.svg +1 -0
- package/svg/square-check.svg +1 -0
- package/svg/square-plus.svg +1 -0
- package/svg/square-root.svg +1 -0
- package/svg/square-wave.svg +1 -0
- package/svg/square-x.svg +1 -0
- package/svg/stack-light.svg +1 -0
- package/svg/stairs.svg +1 -0
- package/svg/stamp.svg +1 -0
- package/svg/star-half.svg +1 -0
- package/svg/star.svg +1 -0
- package/svg/starburst.svg +1 -0
- package/svg/stationery.svg +1 -0
- package/svg/steering-wheel.svg +1 -0
- package/svg/stethoscope.svg +1 -0
- package/svg/sticky-note.svg +1 -0
- package/svg/stock-ok.svg +1 -0
- package/svg/stop.svg +1 -0
- package/svg/stopwatch.svg +1 -0
- package/svg/store.svg +1 -0
- package/svg/strikethrough.svg +1 -0
- package/svg/student.svg +1 -0
- package/svg/subscript.svg +1 -0
- package/svg/subscription.svg +1 -0
- package/svg/substation.svg +1 -0
- package/svg/subtitles.svg +1 -0
- package/svg/suit.svg +1 -0
- package/svg/sun-dim.svg +1 -0
- package/svg/sun.svg +1 -0
- package/svg/sunglasses.svg +1 -0
- package/svg/sunrise.svg +1 -0
- package/svg/sunset.svg +1 -0
- package/svg/superscript.svg +1 -0
- package/svg/surfboard.svg +1 -0
- package/svg/swap.svg +1 -0
- package/svg/swimming.svg +1 -0
- package/svg/swing.svg +1 -0
- package/svg/switch-spst.svg +1 -0
- package/svg/sync.svg +1 -0
- package/svg/syringe.svg +1 -0
- package/svg/table-desk.svg +1 -0
- package/svg/table.svg +1 -0
- package/svg/tablet.svg +1 -0
- package/svg/tag-check.svg +1 -0
- package/svg/tag.svg +1 -0
- package/svg/tank.svg +1 -0
- package/svg/target.svg +1 -0
- package/svg/tax.svg +1 -0
- package/svg/taxi.svg +1 -0
- package/svg/team.svg +1 -0
- package/svg/telescope.svg +1 -0
- package/svg/temp-sensor.svg +1 -0
- package/svg/tennis-ball.svg +1 -0
- package/svg/tent.svg +1 -0
- package/svg/terminal-block.svg +1 -0
- package/svg/terminal-square.svg +1 -0
- package/svg/terminal.svg +1 -0
- package/svg/terms.svg +1 -0
- package/svg/test-pass.svg +1 -0
- package/svg/test-tube.svg +1 -0
- package/svg/text-cursor.svg +1 -0
- package/svg/text-image.svg +1 -0
- package/svg/text-wrap.svg +1 -0
- package/svg/thermometer-cold.svg +1 -0
- package/svg/thermometer-sun.svg +1 -0
- package/svg/thermometer.svg +1 -0
- package/svg/thermostat.svg +1 -0
- package/svg/this-side-up.svg +1 -0
- package/svg/three-phase.svg +1 -0
- package/svg/thumbs-down.svg +1 -0
- package/svg/thumbs-up.svg +1 -0
- package/svg/ticket.svg +1 -0
- package/svg/tie.svg +1 -0
- package/svg/tiles.svg +1 -0
- package/svg/time-zone.svg +1 -0
- package/svg/timer-off.svg +1 -0
- package/svg/timer-relay.svg +1 -0
- package/svg/timer.svg +1 -0
- package/svg/timetable.svg +1 -0
- package/svg/tire-pressure.svg +1 -0
- package/svg/toggle.svg +1 -0
- package/svg/toilet.svg +1 -0
- package/svg/tomato.svg +1 -0
- package/svg/toolbox.svg +1 -0
- package/svg/tooth.svg +1 -0
- package/svg/tornado.svg +1 -0
- package/svg/touch.svg +1 -0
- package/svg/tow-truck.svg +1 -0
- package/svg/town-hall.svg +1 -0
- package/svg/toy-blocks.svg +1 -0
- package/svg/traffic-cone.svg +1 -0
- package/svg/traffic-light.svg +1 -0
- package/svg/train.svg +1 -0
- package/svg/tram.svg +1 -0
- package/svg/transformer.svg +1 -0
- package/svg/transistor.svg +1 -0
- package/svg/translate.svg +1 -0
- package/svg/transmitter.svg +1 -0
- package/svg/trash.svg +1 -0
- package/svg/tree-round.svg +1 -0
- package/svg/tree.svg +1 -0
- package/svg/trending-down.svg +1 -0
- package/svg/trending-up.svg +1 -0
- package/svg/triangle-wave.svg +1 -0
- package/svg/trophy.svg +1 -0
- package/svg/truck.svg +1 -0
- package/svg/tshirt.svg +1 -0
- package/svg/tulip.svg +1 -0
- package/svg/turbo.svg +1 -0
- package/svg/tv.svg +1 -0
- package/svg/type.svg +1 -0
- package/svg/ufo.svg +1 -0
- package/svg/umbrella.svg +1 -0
- package/svg/under-construction.svg +1 -0
- package/svg/underline.svg +1 -0
- package/svg/undo.svg +1 -0
- package/svg/unlock.svg +1 -0
- package/svg/upload.svg +1 -0
- package/svg/usb-outlet.svg +1 -0
- package/svg/usb.svg +1 -0
- package/svg/user-alert.svg +1 -0
- package/svg/user-check.svg +1 -0
- package/svg/user-circle.svg +1 -0
- package/svg/user-clock.svg +1 -0
- package/svg/user-edit.svg +1 -0
- package/svg/user-heart.svg +1 -0
- package/svg/user-lock.svg +1 -0
- package/svg/user-minus.svg +1 -0
- package/svg/user-plus.svg +1 -0
- package/svg/user-search.svg +1 -0
- package/svg/user-settings.svg +1 -0
- package/svg/user-shield.svg +1 -0
- package/svg/user-square.svg +1 -0
- package/svg/user-star.svg +1 -0
- package/svg/user-x.svg +1 -0
- package/svg/user.svg +1 -0
- package/svg/users.svg +1 -0
- package/svg/utensils.svg +1 -0
- package/svg/uv-index.svg +1 -0
- package/svg/valve.svg +1 -0
- package/svg/van.svg +1 -0
- package/svg/variable.svg +1 -0
- package/svg/vase.svg +1 -0
- package/svg/vent.svg +1 -0
- package/svg/verified.svg +1 -0
- package/svg/vfd-drive.svg +1 -0
- package/svg/video-off.svg +1 -0
- package/svg/video.svg +1 -0
- package/svg/virus.svg +1 -0
- package/svg/voicemail.svg +1 -0
- package/svg/volcano.svg +1 -0
- package/svg/voltage-ac.svg +1 -0
- package/svg/voltage-dc.svg +1 -0
- package/svg/voltage-source.svg +1 -0
- package/svg/volume-1.svg +1 -0
- package/svg/volume-2.svg +1 -0
- package/svg/volume-x.svg +1 -0
- package/svg/volume.svg +1 -0
- package/svg/vr-headset.svg +1 -0
- package/svg/walkie-talkie.svg +1 -0
- package/svg/walking.svg +1 -0
- package/svg/wallet.svg +1 -0
- package/svg/wand.svg +1 -0
- package/svg/wardrobe.svg +1 -0
- package/svg/warehouse.svg +1 -0
- package/svg/washing-machine.svg +1 -0
- package/svg/watch.svg +1 -0
- package/svg/water-filter.svg +1 -0
- package/svg/water-heater.svg +1 -0
- package/svg/water-pipe-leak.svg +1 -0
- package/svg/watering-can.svg +1 -0
- package/svg/wave-energy.svg +1 -0
- package/svg/waves.svg +1 -0
- package/svg/web-code.svg +1 -0
- package/svg/webcam.svg +1 -0
- package/svg/wedding-rings.svg +1 -0
- package/svg/weight.svg +1 -0
- package/svg/wheat.svg +1 -0
- package/svg/wheel.svg +1 -0
- package/svg/wheelbarrow.svg +1 -0
- package/svg/wifi-off.svg +1 -0
- package/svg/wifi.svg +1 -0
- package/svg/wind-farm.svg +1 -0
- package/svg/wind-turbine.svg +1 -0
- package/svg/wind.svg +1 -0
- package/svg/windmill.svg +1 -0
- package/svg/window.svg +1 -0
- package/svg/windsock.svg +1 -0
- package/svg/wine.svg +1 -0
- package/svg/wires.svg +1 -0
- package/svg/wishlist.svg +1 -0
- package/svg/work-glove.svg +1 -0
- package/svg/work-zone.svg +1 -0
- package/svg/workflow.svg +1 -0
- package/svg/wrench.svg +1 -0
- package/svg/x-circle.svg +1 -0
- package/svg/yen.svg +1 -0
- package/svg/zap-off.svg +1 -0
- package/svg/zap.svg +1 -0
- package/svg/zener-diode.svg +1 -0
- package/svg/zoom-in.svg +1 -0
- package/svg/zoom-out.svg +1 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var index_exports = {};
|
|
30
|
+
__export(index_exports, {
|
|
31
|
+
DEFAULT_OPTIONS: () => import_core.DEFAULT_OPTIONS,
|
|
32
|
+
OPTION_KEYS: () => import_core.OPTION_KEYS,
|
|
33
|
+
buildIconTree: () => import_core.buildIconTree,
|
|
34
|
+
categories: () => import_registry.categories,
|
|
35
|
+
createElement: () => createElement,
|
|
36
|
+
escapeHtml: () => import_core.escapeHtml,
|
|
37
|
+
getDefaults: () => import_core.getDefaults,
|
|
38
|
+
getIcon: () => getIcon,
|
|
39
|
+
getIconsByCategory: () => getIconsByCategory,
|
|
40
|
+
hasIcon: () => hasIcon,
|
|
41
|
+
iconNames: () => import_registry.iconNames,
|
|
42
|
+
icons: () => import_registry.icons,
|
|
43
|
+
isIcon: () => import_core.isIcon,
|
|
44
|
+
replace: () => replace,
|
|
45
|
+
resetDefaults: () => import_core.resetDefaults,
|
|
46
|
+
resolveOptions: () => import_core.resolveOptions,
|
|
47
|
+
searchIcons: () => searchIcons,
|
|
48
|
+
setDefaults: () => import_core.setDefaults,
|
|
49
|
+
suggestIcons: () => suggestIcons,
|
|
50
|
+
toDataUri: () => toDataUri,
|
|
51
|
+
toSprite: () => toSprite,
|
|
52
|
+
toSvg: () => toSvg,
|
|
53
|
+
treeToElement: () => import_core.treeToElement,
|
|
54
|
+
treeToString: () => import_core.treeToString
|
|
55
|
+
});
|
|
56
|
+
module.exports = __toCommonJS(index_exports);
|
|
57
|
+
var core = __toESM(require("./core.cjs"));
|
|
58
|
+
var import_registry = require("./generated/registry.cjs");
|
|
59
|
+
__reExport(index_exports, require("./generated/data.cjs"), module.exports);
|
|
60
|
+
var import_core = require("./core.cjs");
|
|
61
|
+
const registry = import_registry.icons;
|
|
62
|
+
function getIcon(name) {
|
|
63
|
+
if (core.isIcon(name)) return name;
|
|
64
|
+
if (typeof name !== "string") return void 0;
|
|
65
|
+
return Object.prototype.hasOwnProperty.call(registry, name) ? registry[name] : void 0;
|
|
66
|
+
}
|
|
67
|
+
function hasIcon(name) {
|
|
68
|
+
return getIcon(name) !== void 0;
|
|
69
|
+
}
|
|
70
|
+
function suggestIcons(name, limit = 3) {
|
|
71
|
+
const q = String(name).toLowerCase();
|
|
72
|
+
return import_registry.iconNames.map((n) => [n, core.levenshtein(q, n) - (n.includes(q) || q.includes(n) ? 2 : 0)]).sort((a, b) => a[1] - b[1] || a[0].localeCompare(b[0])).slice(0, limit).map(([n]) => n);
|
|
73
|
+
}
|
|
74
|
+
function resolveIcon(nameOrIcon) {
|
|
75
|
+
const icon = getIcon(nameOrIcon);
|
|
76
|
+
if (!icon) {
|
|
77
|
+
const hint = typeof nameOrIcon === "string" ? ` Did you mean: ${suggestIcons(nameOrIcon).join(", ")}?` : "";
|
|
78
|
+
throw new Error(`[iconix] unknown icon ${JSON.stringify(nameOrIcon)}.${hint}`);
|
|
79
|
+
}
|
|
80
|
+
return icon;
|
|
81
|
+
}
|
|
82
|
+
function toSvg(icon, options) {
|
|
83
|
+
return core.toSvg(resolveIcon(icon), options);
|
|
84
|
+
}
|
|
85
|
+
function toDataUri(icon, options) {
|
|
86
|
+
return core.toDataUri(resolveIcon(icon), options);
|
|
87
|
+
}
|
|
88
|
+
function createElement(icon, options, doc) {
|
|
89
|
+
return core.createElement(resolveIcon(icon), options, doc);
|
|
90
|
+
}
|
|
91
|
+
function toSprite(list, options) {
|
|
92
|
+
const items = list === void 0 ? Object.values(registry) : (Array.isArray(list) ? list : [list]).map(resolveIcon);
|
|
93
|
+
return core.toSprite(items, options);
|
|
94
|
+
}
|
|
95
|
+
function replace(options) {
|
|
96
|
+
return core.replaceElements((name) => getIcon(name), options);
|
|
97
|
+
}
|
|
98
|
+
function getIconsByCategory(category) {
|
|
99
|
+
return Object.values(import_registry.icons).filter((icon) => icon.category === category);
|
|
100
|
+
}
|
|
101
|
+
function searchIcons(query, { limit = 50, category } = {}) {
|
|
102
|
+
const q = String(query || "").trim().toLowerCase();
|
|
103
|
+
const results = [];
|
|
104
|
+
for (const icon of Object.values(import_registry.icons)) {
|
|
105
|
+
if (category && icon.category !== category) continue;
|
|
106
|
+
let score = -1;
|
|
107
|
+
if (!q) score = 0;
|
|
108
|
+
else if (icon.name === q) score = 100;
|
|
109
|
+
else if (icon.name.startsWith(q)) score = 80;
|
|
110
|
+
else if (icon.name.split("-").includes(q)) score = 70;
|
|
111
|
+
else if (icon.name.includes(q)) score = 50;
|
|
112
|
+
else if (icon.category.includes(q)) score = 20;
|
|
113
|
+
if (score >= 0) results.push([score, icon]);
|
|
114
|
+
}
|
|
115
|
+
return results.sort((a, b) => b[0] - a[0] || a[1].name.localeCompare(b[1].name)).slice(0, limit).map(([, icon]) => icon);
|
|
116
|
+
}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { icons, categories, iconNames } from './generated/registry.cjs';
|
|
2
|
+
import type { IconCategory, IconData, IconLike, IconName, IconOptions, ReplaceOptions, SpriteOptions } from './types.cjs';
|
|
3
|
+
export * from './generated/data.cjs';
|
|
4
|
+
export type * from './types.cjs';
|
|
5
|
+
export { icons, categories, iconNames };
|
|
6
|
+
export { DEFAULT_OPTIONS, OPTION_KEYS, setDefaults, getDefaults, resetDefaults, resolveOptions, buildIconTree, treeToString, treeToElement, isIcon, escapeHtml, } from './core.cjs';
|
|
7
|
+
/** A built-in icon name or any icon object. */
|
|
8
|
+
export type IconInput = IconName | IconLike;
|
|
9
|
+
/** Returns an icon object by name (or undefined). */
|
|
10
|
+
export declare function getIcon<N extends IconName>(name: N | IconData<N>): IconData<N>;
|
|
11
|
+
export declare function getIcon(name: unknown): IconLike | undefined;
|
|
12
|
+
export declare function hasIcon(name: string): name is IconName;
|
|
13
|
+
/** Suggests the closest icon names (e.g. for a typo). */
|
|
14
|
+
export declare function suggestIcons(name: string, limit?: number): IconName[];
|
|
15
|
+
/** Returns SVG markup as a string. */
|
|
16
|
+
export declare function toSvg(icon: IconInput, options?: IconOptions): string;
|
|
17
|
+
/** Returns a data URI for <img src> or CSS background-image. */
|
|
18
|
+
export declare function toDataUri(icon: IconInput, options?: IconOptions): string;
|
|
19
|
+
/** Creates an <svg> DOM element. */
|
|
20
|
+
export declare function createElement(icon: IconInput, options?: IconOptions, doc?: Document): SVGSVGElement;
|
|
21
|
+
/** Returns an SVG sprite of the given icons (names or objects); without a list – all icons. */
|
|
22
|
+
export declare function toSprite(list?: IconInput | IconInput[], options?: SpriteOptions): string;
|
|
23
|
+
/** Replaces <i data-icon="name" data-size="32"> with <svg>. Returns the number of replacements. */
|
|
24
|
+
export declare function replace(options?: ReplaceOptions): number;
|
|
25
|
+
/** Icons in the given category. */
|
|
26
|
+
export declare function getIconsByCategory(category: IconCategory): IconData[];
|
|
27
|
+
export interface SearchOptions {
|
|
28
|
+
limit?: number;
|
|
29
|
+
category?: IconCategory;
|
|
30
|
+
}
|
|
31
|
+
/** Searches icons by name and category. */
|
|
32
|
+
export declare function searchIcons(query: string, { limit, category }?: SearchOptions): IconData[];
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { icons, categories, iconNames } from './generated/registry.js';
|
|
2
|
+
import type { IconCategory, IconData, IconLike, IconName, IconOptions, ReplaceOptions, SpriteOptions } from './types.js';
|
|
3
|
+
export * from './generated/data.js';
|
|
4
|
+
export type * from './types.js';
|
|
5
|
+
export { icons, categories, iconNames };
|
|
6
|
+
export { DEFAULT_OPTIONS, OPTION_KEYS, setDefaults, getDefaults, resetDefaults, resolveOptions, buildIconTree, treeToString, treeToElement, isIcon, escapeHtml, } from './core.js';
|
|
7
|
+
/** A built-in icon name or any icon object. */
|
|
8
|
+
export type IconInput = IconName | IconLike;
|
|
9
|
+
/** Returns an icon object by name (or undefined). */
|
|
10
|
+
export declare function getIcon<N extends IconName>(name: N | IconData<N>): IconData<N>;
|
|
11
|
+
export declare function getIcon(name: unknown): IconLike | undefined;
|
|
12
|
+
export declare function hasIcon(name: string): name is IconName;
|
|
13
|
+
/** Suggests the closest icon names (e.g. for a typo). */
|
|
14
|
+
export declare function suggestIcons(name: string, limit?: number): IconName[];
|
|
15
|
+
/** Returns SVG markup as a string. */
|
|
16
|
+
export declare function toSvg(icon: IconInput, options?: IconOptions): string;
|
|
17
|
+
/** Returns a data URI for <img src> or CSS background-image. */
|
|
18
|
+
export declare function toDataUri(icon: IconInput, options?: IconOptions): string;
|
|
19
|
+
/** Creates an <svg> DOM element. */
|
|
20
|
+
export declare function createElement(icon: IconInput, options?: IconOptions, doc?: Document): SVGSVGElement;
|
|
21
|
+
/** Returns an SVG sprite of the given icons (names or objects); without a list – all icons. */
|
|
22
|
+
export declare function toSprite(list?: IconInput | IconInput[], options?: SpriteOptions): string;
|
|
23
|
+
/** Replaces <i data-icon="name" data-size="32"> with <svg>. Returns the number of replacements. */
|
|
24
|
+
export declare function replace(options?: ReplaceOptions): number;
|
|
25
|
+
/** Icons in the given category. */
|
|
26
|
+
export declare function getIconsByCategory(category: IconCategory): IconData[];
|
|
27
|
+
export interface SearchOptions {
|
|
28
|
+
limit?: number;
|
|
29
|
+
category?: IconCategory;
|
|
30
|
+
}
|
|
31
|
+
/** Searches icons by name and category. */
|
|
32
|
+
export declare function searchIcons(query: string, { limit, category }?: SearchOptions): IconData[];
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as core from "./core.js";
|
|
2
|
+
import { icons, categories, iconNames } from "./generated/registry.js";
|
|
3
|
+
export * from "./generated/data.js";
|
|
4
|
+
import {
|
|
5
|
+
DEFAULT_OPTIONS,
|
|
6
|
+
OPTION_KEYS,
|
|
7
|
+
setDefaults,
|
|
8
|
+
getDefaults,
|
|
9
|
+
resetDefaults,
|
|
10
|
+
resolveOptions,
|
|
11
|
+
buildIconTree,
|
|
12
|
+
treeToString,
|
|
13
|
+
treeToElement,
|
|
14
|
+
isIcon,
|
|
15
|
+
escapeHtml
|
|
16
|
+
} from "./core.js";
|
|
17
|
+
const registry = icons;
|
|
18
|
+
function getIcon(name) {
|
|
19
|
+
if (core.isIcon(name)) return name;
|
|
20
|
+
if (typeof name !== "string") return void 0;
|
|
21
|
+
return Object.prototype.hasOwnProperty.call(registry, name) ? registry[name] : void 0;
|
|
22
|
+
}
|
|
23
|
+
function hasIcon(name) {
|
|
24
|
+
return getIcon(name) !== void 0;
|
|
25
|
+
}
|
|
26
|
+
function suggestIcons(name, limit = 3) {
|
|
27
|
+
const q = String(name).toLowerCase();
|
|
28
|
+
return iconNames.map((n) => [n, core.levenshtein(q, n) - (n.includes(q) || q.includes(n) ? 2 : 0)]).sort((a, b) => a[1] - b[1] || a[0].localeCompare(b[0])).slice(0, limit).map(([n]) => n);
|
|
29
|
+
}
|
|
30
|
+
function resolveIcon(nameOrIcon) {
|
|
31
|
+
const icon = getIcon(nameOrIcon);
|
|
32
|
+
if (!icon) {
|
|
33
|
+
const hint = typeof nameOrIcon === "string" ? ` Did you mean: ${suggestIcons(nameOrIcon).join(", ")}?` : "";
|
|
34
|
+
throw new Error(`[iconix] unknown icon ${JSON.stringify(nameOrIcon)}.${hint}`);
|
|
35
|
+
}
|
|
36
|
+
return icon;
|
|
37
|
+
}
|
|
38
|
+
function toSvg(icon, options) {
|
|
39
|
+
return core.toSvg(resolveIcon(icon), options);
|
|
40
|
+
}
|
|
41
|
+
function toDataUri(icon, options) {
|
|
42
|
+
return core.toDataUri(resolveIcon(icon), options);
|
|
43
|
+
}
|
|
44
|
+
function createElement(icon, options, doc) {
|
|
45
|
+
return core.createElement(resolveIcon(icon), options, doc);
|
|
46
|
+
}
|
|
47
|
+
function toSprite(list, options) {
|
|
48
|
+
const items = list === void 0 ? Object.values(registry) : (Array.isArray(list) ? list : [list]).map(resolveIcon);
|
|
49
|
+
return core.toSprite(items, options);
|
|
50
|
+
}
|
|
51
|
+
function replace(options) {
|
|
52
|
+
return core.replaceElements((name) => getIcon(name), options);
|
|
53
|
+
}
|
|
54
|
+
function getIconsByCategory(category) {
|
|
55
|
+
return Object.values(icons).filter((icon) => icon.category === category);
|
|
56
|
+
}
|
|
57
|
+
function searchIcons(query, { limit = 50, category } = {}) {
|
|
58
|
+
const q = String(query || "").trim().toLowerCase();
|
|
59
|
+
const results = [];
|
|
60
|
+
for (const icon of Object.values(icons)) {
|
|
61
|
+
if (category && icon.category !== category) continue;
|
|
62
|
+
let score = -1;
|
|
63
|
+
if (!q) score = 0;
|
|
64
|
+
else if (icon.name === q) score = 100;
|
|
65
|
+
else if (icon.name.startsWith(q)) score = 80;
|
|
66
|
+
else if (icon.name.split("-").includes(q)) score = 70;
|
|
67
|
+
else if (icon.name.includes(q)) score = 50;
|
|
68
|
+
else if (icon.category.includes(q)) score = 20;
|
|
69
|
+
if (score >= 0) results.push([score, icon]);
|
|
70
|
+
}
|
|
71
|
+
return results.sort((a, b) => b[0] - a[0] || a[1].name.localeCompare(b[1].name)).slice(0, limit).map(([, icon]) => icon);
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
DEFAULT_OPTIONS,
|
|
75
|
+
OPTION_KEYS,
|
|
76
|
+
buildIconTree,
|
|
77
|
+
categories,
|
|
78
|
+
createElement,
|
|
79
|
+
escapeHtml,
|
|
80
|
+
getDefaults,
|
|
81
|
+
getIcon,
|
|
82
|
+
getIconsByCategory,
|
|
83
|
+
hasIcon,
|
|
84
|
+
iconNames,
|
|
85
|
+
icons,
|
|
86
|
+
isIcon,
|
|
87
|
+
replace,
|
|
88
|
+
resetDefaults,
|
|
89
|
+
resolveOptions,
|
|
90
|
+
searchIcons,
|
|
91
|
+
setDefaults,
|
|
92
|
+
suggestIcons,
|
|
93
|
+
toDataUri,
|
|
94
|
+
toSprite,
|
|
95
|
+
toSvg,
|
|
96
|
+
treeToElement,
|
|
97
|
+
treeToString
|
|
98
|
+
};
|
package/dist/lite.cjs
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var lite_exports = {};
|
|
20
|
+
__export(lite_exports, {
|
|
21
|
+
DEFAULT_OPTIONS: () => import_core.DEFAULT_OPTIONS,
|
|
22
|
+
OPTION_KEYS: () => import_core.OPTION_KEYS,
|
|
23
|
+
buildIconTree: () => import_core.buildIconTree,
|
|
24
|
+
createElement: () => import_core.createElement,
|
|
25
|
+
escapeHtml: () => import_core.escapeHtml,
|
|
26
|
+
getDefaults: () => import_core.getDefaults,
|
|
27
|
+
isIcon: () => import_core.isIcon,
|
|
28
|
+
replaceElements: () => import_core.replaceElements,
|
|
29
|
+
resetDefaults: () => import_core.resetDefaults,
|
|
30
|
+
resolveOptions: () => import_core.resolveOptions,
|
|
31
|
+
setDefaults: () => import_core.setDefaults,
|
|
32
|
+
toDataUri: () => import_core.toDataUri,
|
|
33
|
+
toSprite: () => import_core.toSprite,
|
|
34
|
+
toSvg: () => import_core.toSvg,
|
|
35
|
+
treeToElement: () => import_core.treeToElement,
|
|
36
|
+
treeToString: () => import_core.treeToString
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(lite_exports);
|
|
39
|
+
__reExport(lite_exports, require("./generated/data.cjs"), module.exports);
|
|
40
|
+
var import_core = require("./core.cjs");
|
package/dist/lite.d.cts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './generated/data.cjs';
|
|
2
|
+
export type * from './types.cjs';
|
|
3
|
+
export { DEFAULT_OPTIONS, OPTION_KEYS, setDefaults, getDefaults, resetDefaults, resolveOptions, buildIconTree, treeToString, treeToElement, isIcon, escapeHtml, toSvg, toDataUri, toSprite, createElement, replaceElements, } from './core.cjs';
|
package/dist/lite.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './generated/data.js';
|
|
2
|
+
export type * from './types.js';
|
|
3
|
+
export { DEFAULT_OPTIONS, OPTION_KEYS, setDefaults, getDefaults, resetDefaults, resolveOptions, buildIconTree, treeToString, treeToElement, isIcon, escapeHtml, toSvg, toDataUri, toSprite, createElement, replaceElements, } from './core.js';
|
package/dist/lite.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export * from "./generated/data.js";
|
|
2
|
+
import {
|
|
3
|
+
DEFAULT_OPTIONS,
|
|
4
|
+
OPTION_KEYS,
|
|
5
|
+
setDefaults,
|
|
6
|
+
getDefaults,
|
|
7
|
+
resetDefaults,
|
|
8
|
+
resolveOptions,
|
|
9
|
+
buildIconTree,
|
|
10
|
+
treeToString,
|
|
11
|
+
treeToElement,
|
|
12
|
+
isIcon,
|
|
13
|
+
escapeHtml,
|
|
14
|
+
toSvg,
|
|
15
|
+
toDataUri,
|
|
16
|
+
toSprite,
|
|
17
|
+
createElement,
|
|
18
|
+
replaceElements
|
|
19
|
+
} from "./core.js";
|
|
20
|
+
export {
|
|
21
|
+
DEFAULT_OPTIONS,
|
|
22
|
+
OPTION_KEYS,
|
|
23
|
+
buildIconTree,
|
|
24
|
+
createElement,
|
|
25
|
+
escapeHtml,
|
|
26
|
+
getDefaults,
|
|
27
|
+
isIcon,
|
|
28
|
+
replaceElements,
|
|
29
|
+
resetDefaults,
|
|
30
|
+
resolveOptions,
|
|
31
|
+
setDefaults,
|
|
32
|
+
toDataUri,
|
|
33
|
+
toSprite,
|
|
34
|
+
toSvg,
|
|
35
|
+
treeToElement,
|
|
36
|
+
treeToString
|
|
37
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var react_core_exports = {};
|
|
29
|
+
__export(react_core_exports, {
|
|
30
|
+
Icon: () => Icon,
|
|
31
|
+
IconProvider: () => IconProvider,
|
|
32
|
+
createIconComponent: () => createIconComponent,
|
|
33
|
+
useIconDefaults: () => useIconDefaults
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(react_core_exports);
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_core = require("./core.cjs");
|
|
38
|
+
var import_registry = require("./generated/registry.cjs");
|
|
39
|
+
function createIconContext() {
|
|
40
|
+
return typeof React.createContext === "function" ? React.createContext({}) : null;
|
|
41
|
+
}
|
|
42
|
+
const IconContext = /* @__PURE__ */ createIconContext();
|
|
43
|
+
function useDefaults() {
|
|
44
|
+
return IconContext && typeof React.useContext === "function" ? React.useContext(IconContext) : {};
|
|
45
|
+
}
|
|
46
|
+
const OPTION_SET = new Set(import_core.OPTION_KEYS);
|
|
47
|
+
function splitProps(props) {
|
|
48
|
+
const options = {};
|
|
49
|
+
const rest = {};
|
|
50
|
+
for (const [key, value] of Object.entries(props)) {
|
|
51
|
+
if (OPTION_SET.has(key)) {
|
|
52
|
+
if (value !== void 0) options[key] = value;
|
|
53
|
+
} else {
|
|
54
|
+
rest[key] = value;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return { options, rest };
|
|
58
|
+
}
|
|
59
|
+
function IconProvider(props) {
|
|
60
|
+
if (!IconContext) {
|
|
61
|
+
throw new Error('[iconix] IconProvider must be rendered in a client component. Add "use client" at the top of the file that renders it.');
|
|
62
|
+
}
|
|
63
|
+
const { children, ...defaults } = props;
|
|
64
|
+
const parent = useDefaults();
|
|
65
|
+
const { options } = splitProps(defaults);
|
|
66
|
+
return React.createElement(IconContext.Provider, { value: { ...parent, ...options } }, children);
|
|
67
|
+
}
|
|
68
|
+
function useIconDefaults() {
|
|
69
|
+
return useDefaults();
|
|
70
|
+
}
|
|
71
|
+
function reactAttrName(key) {
|
|
72
|
+
if (key === "class") return "className";
|
|
73
|
+
if (key.startsWith("aria-") || key.startsWith("data-")) return key;
|
|
74
|
+
return key.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
|
|
75
|
+
}
|
|
76
|
+
function reactAttrs(attrs) {
|
|
77
|
+
const out = {};
|
|
78
|
+
for (const [k, v] of Object.entries(attrs)) out[reactAttrName(k)] = v;
|
|
79
|
+
return out;
|
|
80
|
+
}
|
|
81
|
+
function parseStyle(style) {
|
|
82
|
+
if (!style) return void 0;
|
|
83
|
+
if (typeof style !== "string") return style;
|
|
84
|
+
const out = {};
|
|
85
|
+
for (const decl of style.split(";")) {
|
|
86
|
+
const idx = decl.indexOf(":");
|
|
87
|
+
if (idx < 0) continue;
|
|
88
|
+
const prop = decl.slice(0, idx).trim();
|
|
89
|
+
const value = decl.slice(idx + 1).trim();
|
|
90
|
+
if (!prop) continue;
|
|
91
|
+
out[prop.startsWith("--") ? prop : prop.replace(/-([a-z])/g, (_, c) => c.toUpperCase())] = value;
|
|
92
|
+
}
|
|
93
|
+
return out;
|
|
94
|
+
}
|
|
95
|
+
function renderNodes(nodes) {
|
|
96
|
+
return nodes.map(([tag, attrs, children], i) => React.createElement(
|
|
97
|
+
tag,
|
|
98
|
+
{ key: i, ...reactAttrs(attrs) },
|
|
99
|
+
...children ? renderNodes(children) : []
|
|
100
|
+
));
|
|
101
|
+
}
|
|
102
|
+
function renderTree(tree, extraProps) {
|
|
103
|
+
const props = { ...reactAttrs(tree.attrs), ...extraProps };
|
|
104
|
+
const style = parseStyle(tree.style);
|
|
105
|
+
if (style) props.style = style;
|
|
106
|
+
const children = renderNodes(tree.children);
|
|
107
|
+
if (tree.title) children.unshift(React.createElement("title", { key: "title" }, tree.title));
|
|
108
|
+
return React.createElement("svg", props, ...children);
|
|
109
|
+
}
|
|
110
|
+
function renderIcon(icon, props, ref, ctx) {
|
|
111
|
+
const { options, rest } = splitProps(props);
|
|
112
|
+
const tree = (0, import_core.buildIconTree)(icon, { ...ctx, ...options });
|
|
113
|
+
return renderTree(tree, ref ? { ...rest, ref } : rest);
|
|
114
|
+
}
|
|
115
|
+
function createIconComponent(icon) {
|
|
116
|
+
if (!(0, import_core.isIcon)(icon)) throw new TypeError("[iconix] createIconComponent() expects an icon object");
|
|
117
|
+
const Component = React.forwardRef(function IconixIcon(props, ref) {
|
|
118
|
+
return renderIcon(icon, props, ref, useDefaults());
|
|
119
|
+
});
|
|
120
|
+
Component.displayName = `Icon${(0, import_core.toPascalCase)(icon.name)}`;
|
|
121
|
+
return Object.assign(Component, { icon });
|
|
122
|
+
}
|
|
123
|
+
const registry = import_registry.icons;
|
|
124
|
+
function createNamedIcon() {
|
|
125
|
+
return React.forwardRef(function Icon2(props, ref) {
|
|
126
|
+
const { name, ...rest } = props;
|
|
127
|
+
const ctx = useDefaults();
|
|
128
|
+
const icon = (0, import_core.isIcon)(name) ? name : registry[name];
|
|
129
|
+
if (!icon) throw new Error(`[iconix] unknown icon ${JSON.stringify(name)}`);
|
|
130
|
+
return renderIcon(icon, rest, ref, ctx);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
const Icon = /* @__PURE__ */ createNamedIcon();
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { IconLike, IconName, IconOptions } from './types.cjs';
|
|
3
|
+
/** Icon component props: iconix options + all <svg> props. */
|
|
4
|
+
export type IconProps = Omit<React.SVGProps<SVGSVGElement>, keyof IconOptions | 'ref'> & Omit<IconOptions, 'attrs' | 'style'> & {
|
|
5
|
+
style?: React.CSSProperties | string;
|
|
6
|
+
};
|
|
7
|
+
export type IconixIcon = React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>> & {
|
|
8
|
+
icon: IconLike;
|
|
9
|
+
};
|
|
10
|
+
export type NamedIconProps = Omit<IconProps, 'name'> & {
|
|
11
|
+
name: IconName | IconLike;
|
|
12
|
+
};
|
|
13
|
+
export type IconProviderProps = Omit<IconOptions, 'attrs'> & {
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
/** Sets default options for all icons inside. Nested providers merge their values. */
|
|
17
|
+
export declare function IconProvider(props: IconProviderProps): React.ReactElement;
|
|
18
|
+
export declare function useIconDefaults(): IconOptions;
|
|
19
|
+
/** Creates a React component for any icon object. */
|
|
20
|
+
export declare function createIconComponent(icon: IconLike): IconixIcon;
|
|
21
|
+
/** <Icon name="home" /> – icon by name (bundles all icons). */
|
|
22
|
+
export declare const Icon: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { IconLike, IconName, IconOptions } from './types.js';
|
|
3
|
+
/** Icon component props: iconix options + all <svg> props. */
|
|
4
|
+
export type IconProps = Omit<React.SVGProps<SVGSVGElement>, keyof IconOptions | 'ref'> & Omit<IconOptions, 'attrs' | 'style'> & {
|
|
5
|
+
style?: React.CSSProperties | string;
|
|
6
|
+
};
|
|
7
|
+
export type IconixIcon = React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>> & {
|
|
8
|
+
icon: IconLike;
|
|
9
|
+
};
|
|
10
|
+
export type NamedIconProps = Omit<IconProps, 'name'> & {
|
|
11
|
+
name: IconName | IconLike;
|
|
12
|
+
};
|
|
13
|
+
export type IconProviderProps = Omit<IconOptions, 'attrs'> & {
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
/** Sets default options for all icons inside. Nested providers merge their values. */
|
|
17
|
+
export declare function IconProvider(props: IconProviderProps): React.ReactElement;
|
|
18
|
+
export declare function useIconDefaults(): IconOptions;
|
|
19
|
+
/** Creates a React component for any icon object. */
|
|
20
|
+
export declare function createIconComponent(icon: IconLike): IconixIcon;
|
|
21
|
+
/** <Icon name="home" /> – icon by name (bundles all icons). */
|
|
22
|
+
export declare const Icon: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { buildIconTree, OPTION_KEYS, isIcon, toPascalCase } from "./core.js";
|
|
3
|
+
import { icons } from "./generated/registry.js";
|
|
4
|
+
function createIconContext() {
|
|
5
|
+
return typeof React.createContext === "function" ? React.createContext({}) : null;
|
|
6
|
+
}
|
|
7
|
+
const IconContext = /* @__PURE__ */ createIconContext();
|
|
8
|
+
function useDefaults() {
|
|
9
|
+
return IconContext && typeof React.useContext === "function" ? React.useContext(IconContext) : {};
|
|
10
|
+
}
|
|
11
|
+
const OPTION_SET = new Set(OPTION_KEYS);
|
|
12
|
+
function splitProps(props) {
|
|
13
|
+
const options = {};
|
|
14
|
+
const rest = {};
|
|
15
|
+
for (const [key, value] of Object.entries(props)) {
|
|
16
|
+
if (OPTION_SET.has(key)) {
|
|
17
|
+
if (value !== void 0) options[key] = value;
|
|
18
|
+
} else {
|
|
19
|
+
rest[key] = value;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return { options, rest };
|
|
23
|
+
}
|
|
24
|
+
function IconProvider(props) {
|
|
25
|
+
if (!IconContext) {
|
|
26
|
+
throw new Error('[iconix] IconProvider must be rendered in a client component. Add "use client" at the top of the file that renders it.');
|
|
27
|
+
}
|
|
28
|
+
const { children, ...defaults } = props;
|
|
29
|
+
const parent = useDefaults();
|
|
30
|
+
const { options } = splitProps(defaults);
|
|
31
|
+
return React.createElement(IconContext.Provider, { value: { ...parent, ...options } }, children);
|
|
32
|
+
}
|
|
33
|
+
function useIconDefaults() {
|
|
34
|
+
return useDefaults();
|
|
35
|
+
}
|
|
36
|
+
function reactAttrName(key) {
|
|
37
|
+
if (key === "class") return "className";
|
|
38
|
+
if (key.startsWith("aria-") || key.startsWith("data-")) return key;
|
|
39
|
+
return key.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
|
|
40
|
+
}
|
|
41
|
+
function reactAttrs(attrs) {
|
|
42
|
+
const out = {};
|
|
43
|
+
for (const [k, v] of Object.entries(attrs)) out[reactAttrName(k)] = v;
|
|
44
|
+
return out;
|
|
45
|
+
}
|
|
46
|
+
function parseStyle(style) {
|
|
47
|
+
if (!style) return void 0;
|
|
48
|
+
if (typeof style !== "string") return style;
|
|
49
|
+
const out = {};
|
|
50
|
+
for (const decl of style.split(";")) {
|
|
51
|
+
const idx = decl.indexOf(":");
|
|
52
|
+
if (idx < 0) continue;
|
|
53
|
+
const prop = decl.slice(0, idx).trim();
|
|
54
|
+
const value = decl.slice(idx + 1).trim();
|
|
55
|
+
if (!prop) continue;
|
|
56
|
+
out[prop.startsWith("--") ? prop : prop.replace(/-([a-z])/g, (_, c) => c.toUpperCase())] = value;
|
|
57
|
+
}
|
|
58
|
+
return out;
|
|
59
|
+
}
|
|
60
|
+
function renderNodes(nodes) {
|
|
61
|
+
return nodes.map(([tag, attrs, children], i) => React.createElement(
|
|
62
|
+
tag,
|
|
63
|
+
{ key: i, ...reactAttrs(attrs) },
|
|
64
|
+
...children ? renderNodes(children) : []
|
|
65
|
+
));
|
|
66
|
+
}
|
|
67
|
+
function renderTree(tree, extraProps) {
|
|
68
|
+
const props = { ...reactAttrs(tree.attrs), ...extraProps };
|
|
69
|
+
const style = parseStyle(tree.style);
|
|
70
|
+
if (style) props.style = style;
|
|
71
|
+
const children = renderNodes(tree.children);
|
|
72
|
+
if (tree.title) children.unshift(React.createElement("title", { key: "title" }, tree.title));
|
|
73
|
+
return React.createElement("svg", props, ...children);
|
|
74
|
+
}
|
|
75
|
+
function renderIcon(icon, props, ref, ctx) {
|
|
76
|
+
const { options, rest } = splitProps(props);
|
|
77
|
+
const tree = buildIconTree(icon, { ...ctx, ...options });
|
|
78
|
+
return renderTree(tree, ref ? { ...rest, ref } : rest);
|
|
79
|
+
}
|
|
80
|
+
function createIconComponent(icon) {
|
|
81
|
+
if (!isIcon(icon)) throw new TypeError("[iconix] createIconComponent() expects an icon object");
|
|
82
|
+
const Component = React.forwardRef(function IconixIcon(props, ref) {
|
|
83
|
+
return renderIcon(icon, props, ref, useDefaults());
|
|
84
|
+
});
|
|
85
|
+
Component.displayName = `Icon${toPascalCase(icon.name)}`;
|
|
86
|
+
return Object.assign(Component, { icon });
|
|
87
|
+
}
|
|
88
|
+
const registry = icons;
|
|
89
|
+
function createNamedIcon() {
|
|
90
|
+
return React.forwardRef(function Icon2(props, ref) {
|
|
91
|
+
const { name, ...rest } = props;
|
|
92
|
+
const ctx = useDefaults();
|
|
93
|
+
const icon = isIcon(name) ? name : registry[name];
|
|
94
|
+
if (!icon) throw new Error(`[iconix] unknown icon ${JSON.stringify(name)}`);
|
|
95
|
+
return renderIcon(icon, rest, ref, ctx);
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
const Icon = /* @__PURE__ */ createNamedIcon();
|
|
99
|
+
export {
|
|
100
|
+
Icon,
|
|
101
|
+
IconProvider,
|
|
102
|
+
createIconComponent,
|
|
103
|
+
useIconDefaults
|
|
104
|
+
};
|