@flanksource/icons 1.0.16 → 1.0.23
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/LICENSE +9 -196
- package/README.md +270 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/index.mjs +2 -0
- package/lib/iconBase.d.ts +19 -0
- package/lib/iconBase.js +58 -0
- package/lib/iconBase.mjs +50 -0
- package/lib/iconContext.d.ts +10 -0
- package/lib/iconContext.js +16 -0
- package/lib/iconContext.mjs +9 -0
- package/lib/iconsManifest.d.ts +8 -0
- package/lib/iconsManifest.js +6 -0
- package/lib/iconsManifest.mjs +6 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +38 -0
- package/lib/index.mjs +3 -0
- package/lib/package.json +4 -0
- package/mi/index.d.ts +570 -0
- package/mi/index.js +2272 -0
- package/mi/index.mjs +2273 -0
- package/mi/package.json +4 -0
- package/package.json +29 -28
- package/.eslintignore +0 -1
- package/.github/workflows/publish.yaml +0 -38
- package/babel.config.json +0 -18
- package/dist/icons/AccessDenied.tsx +0 -30
- package/dist/icons/Activemq.tsx +0 -60
- package/dist/icons/Add.tsx +0 -30
- package/dist/icons/AddAlarm.tsx +0 -30
- package/dist/icons/AddAlert.tsx +0 -30
- package/dist/icons/AddCertificate.tsx +0 -54
- package/dist/icons/AddClock.tsx +0 -30
- package/dist/icons/AddCloud.tsx +0 -30
- package/dist/icons/AddCost.tsx +0 -30
- package/dist/icons/AddDatabase.tsx +0 -30
- package/dist/icons/AddDisk.tsx +0 -30
- package/dist/icons/AddEmail.tsx +0 -30
- package/dist/icons/AddFirewall.tsx +0 -54
- package/dist/icons/AddFolder.tsx +0 -30
- package/dist/icons/AddGroup.tsx +0 -30
- package/dist/icons/AddInbox.tsx +0 -30
- package/dist/icons/AddKey.tsx +0 -30
- package/dist/icons/AddList.tsx +0 -30
- package/dist/icons/AddNetworkCard.tsx +0 -54
- package/dist/icons/AddNode.tsx +0 -30
- package/dist/icons/AddPage.tsx +0 -30
- package/dist/icons/AddReceipt.tsx +0 -30
- package/dist/icons/AddShield.tsx +0 -54
- package/dist/icons/AddSnapshot.tsx +0 -30
- package/dist/icons/AddTag.tsx +0 -30
- package/dist/icons/AddTicket.tsx +0 -30
- package/dist/icons/AddUser.tsx +0 -30
- package/dist/icons/Alarm.tsx +0 -30
- package/dist/icons/Alarm3.tsx +0 -30
- package/dist/icons/Alert.tsx +0 -30
- package/dist/icons/Ansible.tsx +0 -36
- package/dist/icons/Archive.tsx +0 -36
- package/dist/icons/Argo.tsx +0 -186
- package/dist/icons/ArtifactRegistry.tsx +0 -84
- package/dist/icons/Aws.tsx +0 -36
- package/dist/icons/AwsAck.tsx +0 -30
- package/dist/icons/AwsAcm.tsx +0 -53
- package/dist/icons/AwsAlb.tsx +0 -42
- package/dist/icons/AwsAmi.tsx +0 -60
- package/dist/icons/AwsApiGateway.tsx +0 -36
- package/dist/icons/AwsAuditManager.tsx +0 -53
- package/dist/icons/AwsAutoScaling.tsx +0 -30
- package/dist/icons/AwsCloudDirectory.tsx +0 -53
- package/dist/icons/AwsCloudformation.tsx +0 -36
- package/dist/icons/AwsCloudfront.tsx +0 -36
- package/dist/icons/AwsCloudtrail.tsx +0 -36
- package/dist/icons/AwsCloudwatch.tsx +0 -36
- package/dist/icons/AwsCloudwatchAlarm.tsx +0 -30
- package/dist/icons/AwsConfig.tsx +0 -36
- package/dist/icons/AwsDetective.tsx +0 -53
- package/dist/icons/AwsDirectoryService.tsx +0 -53
- package/dist/icons/AwsDnszone.tsx +0 -36
- package/dist/icons/AwsEbsVolume.tsx +0 -53
- package/dist/icons/AwsEc2AutoScaling.tsx +0 -36
- package/dist/icons/AwsEc2Instance.tsx +0 -36
- package/dist/icons/AwsEc2RouteTable.tsx +0 -72
- package/dist/icons/AwsEc2Vpc.tsx +0 -42
- package/dist/icons/AwsEcr.tsx +0 -53
- package/dist/icons/AwsEcrRepository.tsx +0 -53
- package/dist/icons/AwsEfs.tsx +0 -53
- package/dist/icons/AwsEksCluster.tsx +0 -101
- package/dist/icons/AwsElasticIp.tsx +0 -30
- package/dist/icons/AwsElb.tsx +0 -42
- package/dist/icons/AwsEni.tsx +0 -54
- package/dist/icons/AwsFirewall.tsx +0 -53
- package/dist/icons/AwsFirewallManager.tsx +0 -53
- package/dist/icons/AwsGuardDuty.tsx +0 -53
- package/dist/icons/AwsIam.tsx +0 -36
- package/dist/icons/AwsIamRole.tsx +0 -30
- package/dist/icons/AwsIamSts.tsx +0 -30
- package/dist/icons/AwsIamUser.tsx +0 -30
- package/dist/icons/AwsInspector.tsx +0 -53
- package/dist/icons/AwsKms.tsx +0 -53
- package/dist/icons/AwsLambda.tsx +0 -42
- package/dist/icons/AwsMacie.tsx +0 -53
- package/dist/icons/AwsRds.tsx +0 -36
- package/dist/icons/AwsRoute53Hostedzone.tsx +0 -36
- package/dist/icons/AwsS3.tsx +0 -53
- package/dist/icons/AwsSecretsManager.tsx +0 -53
- package/dist/icons/AwsSecurityGroup.tsx +0 -30
- package/dist/icons/AwsSes.tsx +0 -36
- package/dist/icons/AwsShield.tsx +0 -53
- package/dist/icons/AwsSns.tsx +0 -36
- package/dist/icons/AwsSqs.tsx +0 -36
- package/dist/icons/AwsTrustedAdvisor.tsx +0 -36
- package/dist/icons/AwsTrustedAdvisorCost.tsx +0 -54
- package/dist/icons/AwsTrustedAdvisorFaultTolerance.tsx +0 -54
- package/dist/icons/AwsTrustedAdvisorSecurity.tsx +0 -54
- package/dist/icons/AwsVpc.tsx +0 -36
- package/dist/icons/AwsWaf.tsx +0 -53
- package/dist/icons/Azure.tsx +0 -30
- package/dist/icons/AzureAci.tsx +0 -122
- package/dist/icons/AzureAcl.tsx +0 -84
- package/dist/icons/AzureAcr.tsx +0 -124
- package/dist/icons/AzureActivityLog.tsx +0 -69
- package/dist/icons/AzureAd.tsx +0 -121
- package/dist/icons/AzureAdvisor.tsx +0 -95
- package/dist/icons/AzureAks.tsx +0 -243
- package/dist/icons/AzureAppRegistration.tsx +0 -101
- package/dist/icons/AzureAppService.tsx +0 -359
- package/dist/icons/AzureApplicationGateway.tsx +0 -224
- package/dist/icons/AzureAvailabilitySet.tsx +0 -136
- package/dist/icons/AzureCosmos.tsx +0 -86
- package/dist/icons/AzureDevops.tsx +0 -66
- package/dist/icons/AzureDevopsPipeline.tsx +0 -80
- package/dist/icons/AzureDisk.tsx +0 -131
- package/dist/icons/AzureDiskSnapshot.tsx +0 -92
- package/dist/icons/AzureDns.tsx +0 -64
- package/dist/icons/AzureEnterpriseApp.tsx +0 -191
- package/dist/icons/AzureFirewall.tsx +0 -99
- package/dist/icons/AzureGroup.tsx +0 -152
- package/dist/icons/AzureImage.tsx +0 -112
- package/dist/icons/AzureIp.tsx +0 -73
- package/dist/icons/AzureKeyVaults.tsx +0 -214
- package/dist/icons/AzureLoadBalancer.tsx +0 -74
- package/dist/icons/AzureLoadBalancers.tsx +0 -74
- package/dist/icons/AzureLogAnalytics.tsx +0 -97
- package/dist/icons/AzureLogicApp.tsx +0 -94
- package/dist/icons/AzureManagedIdentity.tsx +0 -217
- package/dist/icons/AzureMetrics.tsx +0 -150
- package/dist/icons/AzureNat.tsx +0 -98
- package/dist/icons/AzureNetworkInterface.tsx +0 -91
- package/dist/icons/AzurePostgres.tsx +0 -100
- package/dist/icons/AzureRedis.tsx +0 -200
- package/dist/icons/AzureResourceGroup.tsx +0 -78
- package/dist/icons/AzureRouteTable.tsx +0 -120
- package/dist/icons/AzureServiceBus.tsx +0 -96
- package/dist/icons/AzureSqlServer.tsx +0 -106
- package/dist/icons/AzureStorage.tsx +0 -80
- package/dist/icons/AzureStorageContainer.tsx +0 -81
- package/dist/icons/AzureSubscription.tsx +0 -176
- package/dist/icons/AzureUser.tsx +0 -114
- package/dist/icons/AzureVm.tsx +0 -106
- package/dist/icons/AzureVmScaleset.tsx +0 -154
- package/dist/icons/AzureVnet.tsx +0 -125
- package/dist/icons/AzureVpn.tsx +0 -126
- package/dist/icons/Badge.tsx +0 -30
- package/dist/icons/Ban.tsx +0 -30
- package/dist/icons/Bell.tsx +0 -35
- package/dist/icons/BellDark.tsx +0 -30
- package/dist/icons/Bizagi.tsx +0 -48
- package/dist/icons/Block.tsx +0 -30
- package/dist/icons/Brain.tsx +0 -30
- package/dist/icons/Broadcast.tsx +0 -30
- package/dist/icons/BrokenHeart.tsx +0 -30
- package/dist/icons/Ca.tsx +0 -30
- package/dist/icons/Cal.tsx +0 -48
- package/dist/icons/Calico.tsx +0 -312
- package/dist/icons/CanaryChecker.tsx +0 -36
- package/dist/icons/CanaryCheckerWhite.tsx +0 -30
- package/dist/icons/Cancel.tsx +0 -30
- package/dist/icons/Cassandra.tsx +0 -60
- package/dist/icons/CertManager.tsx +0 -76
- package/dist/icons/Certificate.tsx +0 -30
- package/dist/icons/Cfg.tsx +0 -37
- package/dist/icons/Changes.tsx +0 -30
- package/dist/icons/Check.tsx +0 -30
- package/dist/icons/CheckDatabase.tsx +0 -30
- package/dist/icons/CheckDocker.tsx +0 -42
- package/dist/icons/Cilium.tsx +0 -72
- package/dist/icons/Cisco.tsx +0 -30
- package/dist/icons/Clock.tsx +0 -35
- package/dist/icons/Clone.tsx +0 -30
- package/dist/icons/CloudBuild.tsx +0 -42
- package/dist/icons/CloudDone.tsx +0 -30
- package/dist/icons/CloudDownload.tsx +0 -30
- package/dist/icons/CloudUpload.tsx +0 -30
- package/dist/icons/Cloudformation.tsx +0 -60
- package/dist/icons/Cloudsql.tsx +0 -60
- package/dist/icons/Cloudwatch.tsx +0 -84
- package/dist/icons/CloudwatchAlarm.tsx +0 -48
- package/dist/icons/CloudwatchConfig.tsx +0 -54
- package/dist/icons/Cluster.tsx +0 -37
- package/dist/icons/Cni.tsx +0 -107
- package/dist/icons/Cog.tsx +0 -30
- package/dist/icons/ComputeEngine.tsx +0 -66
- package/dist/icons/Config.tsx +0 -30
- package/dist/icons/ConfigDb.tsx +0 -30
- package/dist/icons/Connected.tsx +0 -30
- package/dist/icons/Console.tsx +0 -30
- package/dist/icons/Consul.tsx +0 -36
- package/dist/icons/Containerd.tsx +0 -30
- package/dist/icons/ContainerdPull.tsx +0 -30
- package/dist/icons/ContainerdPush.tsx +0 -30
- package/dist/icons/Cpu.tsx +0 -30
- package/dist/icons/Crossplane.tsx +0 -136
- package/dist/icons/Csi.tsx +0 -158
- package/dist/icons/Csv.tsx +0 -38
- package/dist/icons/D365.tsx +0 -60
- package/dist/icons/Database.tsx +0 -30
- package/dist/icons/DatabaseFill.tsx +0 -30
- package/dist/icons/DatabaseFillGear.tsx +0 -30
- package/dist/icons/DatabasePlus.tsx +0 -35
- package/dist/icons/Databases.tsx +0 -35
- package/dist/icons/Datadog.tsx +0 -30
- package/dist/icons/DatapowerMonitoring.tsx +0 -94
- package/dist/icons/DatapowerRouting.tsx +0 -102
- package/dist/icons/DatapowerThreat.tsx +0 -109
- package/dist/icons/Deb.tsx +0 -38
- package/dist/icons/Debian.tsx +0 -30
- package/dist/icons/Decrease.tsx +0 -30
- package/dist/icons/Deployment.tsx +0 -30
- package/dist/icons/DeploymentFail.tsx +0 -30
- package/dist/icons/DeploymentSuccess.tsx +0 -30
- package/dist/icons/Dex.tsx +0 -36
- package/dist/icons/Diff.tsx +0 -30
- package/dist/icons/Discord.tsx +0 -30
- package/dist/icons/Disk.tsx +0 -30
- package/dist/icons/DiskFailed.tsx +0 -46
- package/dist/icons/DiskSuccess.tsx +0 -30
- package/dist/icons/Django.tsx +0 -30
- package/dist/icons/Dns.tsx +0 -30
- package/dist/icons/Docker.tsx +0 -30
- package/dist/icons/DockerPull.tsx +0 -30
- package/dist/icons/DockerPush.tsx +0 -30
- package/dist/icons/Docx.tsx +0 -38
- package/dist/icons/Dollar.tsx +0 -30
- package/dist/icons/Dotnet.tsx +0 -90
- package/dist/icons/DotsTriple.tsx +0 -35
- package/dist/icons/Down.tsx +0 -30
- package/dist/icons/DownBordered.tsx +0 -36
- package/dist/icons/DownDatabase.tsx +0 -30
- package/dist/icons/DownShield.tsx +0 -42
- package/dist/icons/Download.tsx +0 -30
- package/dist/icons/DownloadCloud.tsx +0 -30
- package/dist/icons/Dynatrace.tsx +0 -60
- package/dist/icons/Ec2.tsx +0 -72
- package/dist/icons/Ecr.tsx +0 -72
- package/dist/icons/Edit.tsx +0 -30
- package/dist/icons/Editorconfig.tsx +0 -315
- package/dist/icons/Eks.tsx +0 -101
- package/dist/icons/Elastic.tsx +0 -66
- package/dist/icons/Elasticsearch.tsx +0 -42
- package/dist/icons/Elb.tsx +0 -42
- package/dist/icons/Email.tsx +0 -46
- package/dist/icons/Envoy.tsx +0 -42
- package/dist/icons/Error.tsx +0 -30
- package/dist/icons/ErrorDatabase.tsx +0 -30
- package/dist/icons/ErrorNetworkCard.tsx +0 -54
- package/dist/icons/Etcd.tsx +0 -30
- package/dist/icons/Exchange.tsx +0 -30
- package/dist/icons/Export.tsx +0 -30
- package/dist/icons/Filter.tsx +0 -30
- package/dist/icons/Fire.tsx +0 -30
- package/dist/icons/Firewall.tsx +0 -30
- package/dist/icons/Flanksource.tsx +0 -30
- package/dist/icons/FlanksourceIcon.tsx +0 -30
- package/dist/icons/Fluentd.tsx +0 -248
- package/dist/icons/Flux.tsx +0 -42
- package/dist/icons/Folder.tsx +0 -60
- package/dist/icons/FolderGit.tsx +0 -42
- package/dist/icons/Gcp.tsx +0 -66
- package/dist/icons/GcpRepos.tsx +0 -84
- package/dist/icons/GcsBucket.tsx +0 -84
- package/dist/icons/Gif.tsx +0 -38
- package/dist/icons/Git.tsx +0 -30
- package/dist/icons/GitCompare.tsx +0 -30
- package/dist/icons/GitMergeQueue.tsx +0 -30
- package/dist/icons/GitPr.tsx +0 -30
- package/dist/icons/Github.tsx +0 -30
- package/dist/icons/Gitlab.tsx +0 -60
- package/dist/icons/Gke.tsx +0 -56
- package/dist/icons/Go.tsx +0 -30
- package/dist/icons/Google.tsx +0 -54
- package/dist/icons/GoogleChat.tsx +0 -42
- package/dist/icons/Gradle.tsx +0 -30
- package/dist/icons/Grafana.tsx +0 -51
- package/dist/icons/Graphql.tsx +0 -30
- package/dist/icons/Group.tsx +0 -30
- package/dist/icons/Grpc.tsx +0 -30
- package/dist/icons/Grpc2.tsx +0 -30
- package/dist/icons/Gz.tsx +0 -38
- package/dist/icons/Haproxy.tsx +0 -93
- package/dist/icons/Harbor.tsx +0 -394
- package/dist/icons/Hazelcast.tsx +0 -36
- package/dist/icons/Health.tsx +0 -30
- package/dist/icons/Health2.tsx +0 -30
- package/dist/icons/Heart.tsx +0 -30
- package/dist/icons/Helm.tsx +0 -30
- package/dist/icons/Hibernate.tsx +0 -30
- package/dist/icons/Hide.tsx +0 -30
- package/dist/icons/Hourglass.tsx +0 -30
- package/dist/icons/Html.tsx +0 -48
- package/dist/icons/Http.tsx +0 -30
- package/dist/icons/Https.tsx +0 -30
- package/dist/icons/Ibm.tsx +0 -30
- package/dist/icons/IbmCloud.tsx +0 -151
- package/dist/icons/IbmMq.tsx +0 -157
- package/dist/icons/Icmp.tsx +0 -30
- package/dist/icons/IdNotVerified.tsx +0 -30
- package/dist/icons/IdVerified.tsx +0 -30
- package/dist/icons/Ifttt.tsx +0 -30
- package/dist/icons/Import.tsx +0 -30
- package/dist/icons/Incidents.tsx +0 -30
- package/dist/icons/Increase.tsx +0 -30
- package/dist/icons/Increase2.tsx +0 -30
- package/dist/icons/Infinity.tsx +0 -30
- package/dist/icons/Info.tsx +0 -30
- package/dist/icons/Ini.tsx +0 -315
- package/dist/icons/Ip.tsx +0 -30
- package/dist/icons/Istio.tsx +0 -30
- package/dist/icons/Jaeger.tsx +0 -144
- package/dist/icons/Jar.tsx +0 -44
- package/dist/icons/Java.tsx +0 -36
- package/dist/icons/Jira.tsx +0 -82
- package/dist/icons/Jmeter.tsx +0 -30
- package/dist/icons/Js.tsx +0 -218
- package/dist/icons/Json.tsx +0 -30
- package/dist/icons/Junit.tsx +0 -30
- package/dist/icons/Jwt.tsx +0 -54
- package/dist/icons/K3s.tsx +0 -30
- package/dist/icons/K6.tsx +0 -30
- package/dist/icons/K8s.tsx +0 -43
- package/dist/icons/K8sClusterrole.tsx +0 -36
- package/dist/icons/K8sClusterrolebinding.tsx +0 -36
- package/dist/icons/K8sConfigmap.tsx +0 -47
- package/dist/icons/K8sCronjob.tsx +0 -36
- package/dist/icons/K8sCustomresourcedefinition.tsx +0 -36
- package/dist/icons/K8sDaemonset.tsx +0 -92
- package/dist/icons/K8sDeployment.tsx +0 -42
- package/dist/icons/K8sEndpoint.tsx +0 -48
- package/dist/icons/K8sEp.tsx +0 -48
- package/dist/icons/K8sGroup.tsx +0 -36
- package/dist/icons/K8sHpa.tsx +0 -48
- package/dist/icons/K8sIngress.tsx +0 -36
- package/dist/icons/K8sJob.tsx +0 -36
- package/dist/icons/K8sLimits.tsx +0 -55
- package/dist/icons/K8sNamespace.tsx +0 -49
- package/dist/icons/K8sNetpol.tsx +0 -36
- package/dist/icons/K8sNetworkpolicy.tsx +0 -36
- package/dist/icons/K8sNode.tsx +0 -36
- package/dist/icons/K8sPersistentvolume.tsx +0 -53
- package/dist/icons/K8sPersistentvolumeclaim.tsx +0 -48
- package/dist/icons/K8sPod.tsx +0 -42
- package/dist/icons/K8sPodsecuritypolicy.tsx +0 -48
- package/dist/icons/K8sQuota.tsx +0 -36
- package/dist/icons/K8sReplicaset.tsx +0 -79
- package/dist/icons/K8sRole.tsx +0 -49
- package/dist/icons/K8sRolebinding.tsx +0 -55
- package/dist/icons/K8sSecret.tsx +0 -112
- package/dist/icons/K8sService.tsx +0 -75
- package/dist/icons/K8sServiceaccount.tsx +0 -36
- package/dist/icons/K8sStatefulset.tsx +0 -94
- package/dist/icons/K8sStorageclass.tsx +0 -96
- package/dist/icons/K8sUser.tsx +0 -36
- package/dist/icons/K8sVol.tsx +0 -53
- package/dist/icons/Kubescape.tsx +0 -210
- package/dist/icons/Kustomize.tsx +0 -169
- package/dist/icons/Ldap.tsx +0 -30
- package/dist/icons/Letsencrypt.tsx +0 -42
- package/dist/icons/Lifebuoy.tsx +0 -30
- package/dist/icons/Link.tsx +0 -30
- package/dist/icons/Linux.tsx +0 -66
- package/dist/icons/List.tsx +0 -30
- package/dist/icons/Loadbalancer.tsx +0 -42
- package/dist/icons/Lock.tsx +0 -30
- package/dist/icons/Log.tsx +0 -38
- package/dist/icons/LogicApps.tsx +0 -66
- package/dist/icons/Login.tsx +0 -30
- package/dist/icons/Logout.tsx +0 -30
- package/dist/icons/Logs.tsx +0 -30
- package/dist/icons/Logs2.tsx +0 -30
- package/dist/icons/Lua.tsx +0 -59
- package/dist/icons/Matrix.tsx +0 -30
- package/dist/icons/Mattermost.tsx +0 -30
- package/dist/icons/Maximize.tsx +0 -30
- package/dist/icons/Mem.tsx +0 -30
- package/dist/icons/Memchache.tsx +0 -192
- package/dist/icons/Metrics.tsx +0 -30
- package/dist/icons/Mfa.tsx +0 -30
- package/dist/icons/Microsoft.tsx +0 -48
- package/dist/icons/Minimize.tsx +0 -30
- package/dist/icons/Minus.tsx +0 -30
- package/dist/icons/MissionControl.tsx +0 -176
- package/dist/icons/MissionControlLogo.tsx +0 -188
- package/dist/icons/MissionControlLogoWhite.tsx +0 -30
- package/dist/icons/MissionControlWhite.tsx +0 -30
- package/dist/icons/Mongo.tsx +0 -42
- package/dist/icons/Mongodb.tsx +0 -42
- package/dist/icons/Mqtt.tsx +0 -30
- package/dist/icons/Msplanner.tsx +0 -48
- package/dist/icons/Multiple.tsx +0 -30
- package/dist/icons/Mysql.tsx +0 -30
- package/dist/icons/Namespace.tsx +0 -49
- package/dist/icons/Network.tsx +0 -30
- package/dist/icons/NetworkCard.tsx +0 -30
- package/dist/icons/Newrelic.tsx +0 -36
- package/dist/icons/Nginx.tsx +0 -36
- package/dist/icons/Nodejs.tsx +0 -30
- package/dist/icons/Npm.tsx +0 -30
- package/dist/icons/Ntfy.tsx +0 -35
- package/dist/icons/O365.tsx +0 -30
- package/dist/icons/Ods.tsx +0 -38
- package/dist/icons/Off.tsx +0 -30
- package/dist/icons/Ok.tsx +0 -30
- package/dist/icons/On.tsx +0 -30
- package/dist/icons/Opa.tsx +0 -48
- package/dist/icons/Openid.tsx +0 -36
- package/dist/icons/Opensearch.tsx +0 -42
- package/dist/icons/Openshift.tsx +0 -48
- package/dist/icons/Opentelemetry.tsx +0 -36
- package/dist/icons/Operatorframework.tsx +0 -36
- package/dist/icons/Opsgenie.tsx +0 -82
- package/dist/icons/Oracle.tsx +0 -30
- package/dist/icons/OracleIcon.tsx +0 -30
- package/dist/icons/Ory.tsx +0 -30
- package/dist/icons/OryHydra.tsx +0 -36
- package/dist/icons/OryKratos.tsx +0 -30
- package/dist/icons/OryLogo.tsx +0 -30
- package/dist/icons/PackageInstall.tsx +0 -30
- package/dist/icons/PackageRollback.tsx +0 -30
- package/dist/icons/PackageUninstall.tsx +0 -30
- package/dist/icons/PackageUpgrade.tsx +0 -30
- package/dist/icons/Pagerduty.tsx +0 -30
- package/dist/icons/Pages.tsx +0 -44
- package/dist/icons/Pause.tsx +0 -30
- package/dist/icons/Pem.tsx +0 -38
- package/dist/icons/Php.tsx +0 -99
- package/dist/icons/Ping.tsx +0 -36
- package/dist/icons/Playbook.tsx +0 -30
- package/dist/icons/Playwright.tsx +0 -60
- package/dist/icons/Plus.tsx +0 -30
- package/dist/icons/Png.tsx +0 -38
- package/dist/icons/Pod.tsx +0 -42
- package/dist/icons/Pom.tsx +0 -182
- package/dist/icons/Postgres.tsx +0 -36
- package/dist/icons/PostgresWhite.tsx +0 -30
- package/dist/icons/Postman.tsx +0 -138
- package/dist/icons/Powershell.tsx +0 -36
- package/dist/icons/Ppt.tsx +0 -48
- package/dist/icons/Pptx.tsx +0 -38
- package/dist/icons/Prometheus.tsx +0 -30
- package/dist/icons/Pushbullet.tsx +0 -149
- package/dist/icons/Pushover.tsx +0 -36
- package/dist/icons/Py.tsx +0 -50
- package/dist/icons/Python.tsx +0 -76
- package/dist/icons/Question.tsx +0 -30
- package/dist/icons/Rabbitmq.tsx +0 -30
- package/dist/icons/Rancher.tsx +0 -30
- package/dist/icons/Rb.tsx +0 -30
- package/dist/icons/Recycle.tsx +0 -30
- package/dist/icons/Redhat.tsx +0 -36
- package/dist/icons/Redis.tsx +0 -78
- package/dist/icons/Reload.tsx +0 -35
- package/dist/icons/Remove.tsx +0 -30
- package/dist/icons/RemoveAlarm.tsx +0 -30
- package/dist/icons/RemoveCertificate.tsx +0 -54
- package/dist/icons/RemoveClock.tsx +0 -30
- package/dist/icons/RemoveCloud.tsx +0 -30
- package/dist/icons/RemoveComment.tsx +0 -30
- package/dist/icons/RemoveCost.tsx +0 -30
- package/dist/icons/RemoveDatabase.tsx +0 -30
- package/dist/icons/RemoveEmail.tsx +0 -30
- package/dist/icons/RemoveFilter.tsx +0 -30
- package/dist/icons/RemoveFirewall.tsx +0 -54
- package/dist/icons/RemoveFolder.tsx +0 -30
- package/dist/icons/RemoveGroup.tsx +0 -30
- package/dist/icons/RemoveKey.tsx +0 -30
- package/dist/icons/RemoveLink.tsx +0 -30
- package/dist/icons/RemoveList.tsx +0 -30
- package/dist/icons/RemoveNetworkCard.tsx +0 -54
- package/dist/icons/RemoveNode.tsx +0 -30
- package/dist/icons/RemovePage.tsx +0 -30
- package/dist/icons/RemoveShield.tsx +0 -30
- package/dist/icons/RemoveSilence.tsx +0 -30
- package/dist/icons/RemoveTag.tsx +0 -30
- package/dist/icons/RemoveTicket.tsx +0 -30
- package/dist/icons/RemoveTrash.tsx +0 -30
- package/dist/icons/RemoveUser.tsx +0 -30
- package/dist/icons/Restic.tsx +0 -42
- package/dist/icons/Restrict.tsx +0 -30
- package/dist/icons/Rocket.tsx +0 -30
- package/dist/icons/Router.tsx +0 -30
- package/dist/icons/Rub.tsx +0 -51
- package/dist/icons/Ruby.tsx +0 -570
- package/dist/icons/Save.tsx +0 -30
- package/dist/icons/ScaleDown.tsx +0 -30
- package/dist/icons/ScaleIn.tsx +0 -30
- package/dist/icons/ScaleOut.tsx +0 -30
- package/dist/icons/ScaleUp.tsx +0 -30
- package/dist/icons/Schedule.tsx +0 -30
- package/dist/icons/Seal.tsx +0 -30
- package/dist/icons/Search.tsx +0 -35
- package/dist/icons/SearchInList.tsx +0 -30
- package/dist/icons/Send.tsx +0 -30
- package/dist/icons/Server.tsx +0 -30
- package/dist/icons/Servers.tsx +0 -30
- package/dist/icons/ServersOutline.tsx +0 -30
- package/dist/icons/ServiceNow.tsx +0 -30
- package/dist/icons/Servicenow.tsx +0 -30
- package/dist/icons/ServicenowLogo.tsx +0 -60
- package/dist/icons/Settings.tsx +0 -30
- package/dist/icons/Sftp.tsx +0 -30
- package/dist/icons/Shield.tsx +0 -30
- package/dist/icons/ShieldUser.tsx +0 -30
- package/dist/icons/ShieldWarn.tsx +0 -30
- package/dist/icons/Show.tsx +0 -30
- package/dist/icons/Silence.tsx +0 -48
- package/dist/icons/Skip.tsx +0 -30
- package/dist/icons/Slack.tsx +0 -128
- package/dist/icons/Smb.tsx +0 -60
- package/dist/icons/Sms.tsx +0 -30
- package/dist/icons/Snail.tsx +0 -30
- package/dist/icons/Source.tsx +0 -30
- package/dist/icons/Speak.tsx +0 -30
- package/dist/icons/Split.tsx +0 -30
- package/dist/icons/Spring.tsx +0 -30
- package/dist/icons/Sql.tsx +0 -30
- package/dist/icons/Sqlserver.tsx +0 -102
- package/dist/icons/Ssl.tsx +0 -30
- package/dist/icons/Ssl2.tsx +0 -30
- package/dist/icons/Stackdriver.tsx +0 -42
- package/dist/icons/StackdriverMonitoring.tsx +0 -48
- package/dist/icons/StackdriverTrace.tsx +0 -36
- package/dist/icons/Star.tsx +0 -30
- package/dist/icons/Start.tsx +0 -30
- package/dist/icons/Stop.tsx +0 -30
- package/dist/icons/Structure.tsx +0 -30
- package/dist/icons/SubmitForApproval.tsx +0 -30
- package/dist/icons/Swagger.tsx +0 -42
- package/dist/icons/Switch.tsx +0 -30
- package/dist/icons/Sync.tsx +0 -30
- package/dist/icons/Sys.tsx +0 -193
- package/dist/icons/Tag.tsx +0 -30
- package/dist/icons/Talk.tsx +0 -30
- package/dist/icons/Target.tsx +0 -30
- package/dist/icons/Teams.tsx +0 -306
- package/dist/icons/Telegram.tsx +0 -69
- package/dist/icons/Terraform.tsx +0 -36
- package/dist/icons/Test.tsx +0 -30
- package/dist/icons/Thousandeyes.tsx +0 -42
- package/dist/icons/Timezone.tsx +0 -35
- package/dist/icons/ToggleOff.tsx +0 -30
- package/dist/icons/ToggleOn.tsx +0 -30
- package/dist/icons/Topology.tsx +0 -30
- package/dist/icons/TopologyWhite.tsx +0 -30
- package/dist/icons/Traces.tsx +0 -30
- package/dist/icons/Trafficlight.tsx +0 -54
- package/dist/icons/Trash.tsx +0 -30
- package/dist/icons/Tree.tsx +0 -30
- package/dist/icons/Trivy.tsx +0 -54
- package/dist/icons/Ts.tsx +0 -37
- package/dist/icons/Txt.tsx +0 -228
- package/dist/icons/Ubuntu.tsx +0 -36
- package/dist/icons/Unhealthy.tsx +0 -30
- package/dist/icons/Unlock.tsx +0 -30
- package/dist/icons/Up.tsx +0 -30
- package/dist/icons/UpBordered.tsx +0 -36
- package/dist/icons/UpDatabase.tsx +0 -30
- package/dist/icons/UpShield.tsx +0 -42
- package/dist/icons/Upload.tsx +0 -30
- package/dist/icons/User.tsx +0 -30
- package/dist/icons/Vault.tsx +0 -30
- package/dist/icons/Vcluster.tsx +0 -30
- package/dist/icons/Vpn.tsx +0 -30
- package/dist/icons/Vsd.tsx +0 -62
- package/dist/icons/Vsphere.tsx +0 -30
- package/dist/icons/WaitForApproval.tsx +0 -54
- package/dist/icons/Webhook.tsx +0 -42
- package/dist/icons/Workdflow.tsx +0 -30
- package/dist/icons/World.tsx +0 -35
- package/dist/icons/Www.tsx +0 -30
- package/dist/icons/Xls.tsx +0 -48
- package/dist/icons/Xlsx.tsx +0 -38
- package/dist/icons/Xml.tsx +0 -431
- package/dist/icons/Yaml.tsx +0 -228
- package/dist/icons/Zip.tsx +0 -38
- package/dist/icons/Zulip.tsx +0 -51
- package/dist/index.ts +0 -568
- package/make.sh +0 -3
- package/svgo.config.mjs +0 -100
package/LICENSE
CHANGED
|
@@ -1,201 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
1
|
+
Copyright 2018 kamijin_fanta <kamijin@live.jp>
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
---
|
|
10
|
+
Icons are taken from the other projects
|
|
11
|
+
so please check each project licences accordingly.
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright [yyyy] [name of copyright owner]
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
13
|
+
Mission Control Icons - undefined
|
|
14
|
+
License: undefined undefined
|
package/README.md
ADDED
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
<img src="https://raw.githubusercontent.com/react-icons/react-icons/master/react-icons.svg" width="120" alt="React Icons">
|
|
2
|
+
|
|
3
|
+
# [React Icons](https://react-icons.github.io/react-icons)
|
|
4
|
+
|
|
5
|
+
[![npm][npm-image]][npm-url]
|
|
6
|
+
|
|
7
|
+
[npm-image]: https://img.shields.io/npm/v/react-icons.svg?style=flat-square
|
|
8
|
+
[npm-url]: https://www.npmjs.com/package/react-icons
|
|
9
|
+
|
|
10
|
+
Include popular icons in your React projects easily with `react-icons`, which utilizes ES6 imports that allows you to include only the icons that your project is using.
|
|
11
|
+
|
|
12
|
+
## Installation (for standard modern project)
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
yarn add react-icons
|
|
16
|
+
# or
|
|
17
|
+
npm install react-icons --save
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
example usage
|
|
21
|
+
|
|
22
|
+
```jsx
|
|
23
|
+
import { FaBeer } from "react-icons/fa";
|
|
24
|
+
|
|
25
|
+
function Question() {
|
|
26
|
+
return (
|
|
27
|
+
<h3>
|
|
28
|
+
Lets go for a <FaBeer />?
|
|
29
|
+
</h3>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[View the documentation](https://react-icons.github.io/react-icons) for further usage examples and how to use icons from other packages. _NOTE_: each Icon package has it's own subfolder under `react-icons` you import from.
|
|
35
|
+
|
|
36
|
+
For example, to use an icon from **Material Design**, your import would be: `import { ICON_NAME } from 'react-icons/md';`
|
|
37
|
+
|
|
38
|
+
## Installation (for meteorjs, gatsbyjs, etc)
|
|
39
|
+
|
|
40
|
+
> **Note**
|
|
41
|
+
> This option has not had a new release for some time.
|
|
42
|
+
> More info https://github.com/react-icons/react-icons/issues/593
|
|
43
|
+
|
|
44
|
+
If your project grows in size, this option is available.
|
|
45
|
+
This method has the trade-off that it takes a long time to install the package.
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
yarn add @react-icons/all-files
|
|
49
|
+
# or
|
|
50
|
+
npm install @react-icons/all-files --save
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
example usage
|
|
54
|
+
|
|
55
|
+
```jsx
|
|
56
|
+
import { FaBeer } from "@react-icons/all-files/fa/FaBeer";
|
|
57
|
+
|
|
58
|
+
function Question() {
|
|
59
|
+
return (
|
|
60
|
+
<h3>
|
|
61
|
+
Lets go for a <FaBeer />?
|
|
62
|
+
</h3>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Icons
|
|
68
|
+
|
|
69
|
+
| Icon Library | License | Version | Count |
|
|
70
|
+
| ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------- | ----: |
|
|
71
|
+
| [Circum Icons](https://circumicons.com/) | [MPL-2.0 license](https://github.com/Klarr-Agency/Circum-Icons/blob/main/LICENSE) | 1.0.0 | 288 |
|
|
72
|
+
| [Font Awesome 5](https://fontawesome.com/) | [CC BY 4.0 License](https://creativecommons.org/licenses/by/4.0/) | 5.15.4-3-gafecf2a | 1612 |
|
|
73
|
+
| [Font Awesome 6](https://fontawesome.com/) | [CC BY 4.0 License](https://creativecommons.org/licenses/by/4.0/) | 6.4.2 | 2025 |
|
|
74
|
+
| [Ionicons 4](https://ionicons.com/) | [MIT](https://github.com/ionic-team/ionicons/blob/master/LICENSE) | 4.6.3 | 696 |
|
|
75
|
+
| [Ionicons 5](https://ionicons.com/) | [MIT](https://github.com/ionic-team/ionicons/blob/master/LICENSE) | 5.5.4 | 1332 |
|
|
76
|
+
| [Material Design icons](http://google.github.io/material-design-icons/) | [Apache License Version 2.0](https://github.com/google/material-design-icons/blob/master/LICENSE) | 4.0.0-90-g1ea21d5429 | 4341 |
|
|
77
|
+
| [Typicons](http://s-ings.com/typicons/) | [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) | 2.1.2 | 336 |
|
|
78
|
+
| [Github Octicons icons](https://octicons.github.com/) | [MIT](https://github.com/primer/octicons/blob/master/LICENSE) | 18.3.0 | 264 |
|
|
79
|
+
| [Feather](https://feathericons.com/) | [MIT](https://github.com/feathericons/feather/blob/master/LICENSE) | 4.29.1 | 287 |
|
|
80
|
+
| [Lucide](https://lucide.dev/) | [ISC](https://github.com/lucide-icons/lucide/blob/main/LICENSE) | v4.11.0-15-g7493227d | 1215 |
|
|
81
|
+
| [Game Icons](https://game-icons.net/) | [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/) | 12920d6565588f0512542a3cb0cdfd36a497f910 | 4040 |
|
|
82
|
+
| [Weather Icons](https://erikflowers.github.io/weather-icons/) | [SIL OFL 1.1](http://scripts.sil.org/OFL) | 2.0.12 | 219 |
|
|
83
|
+
| [Devicons](https://vorillaz.github.io/devicons/) | [MIT](https://opensource.org/licenses/MIT) | 1.8.0 | 192 |
|
|
84
|
+
| [Ant Design Icons](https://github.com/ant-design/ant-design-icons) | [MIT](https://opensource.org/licenses/MIT) | 4.3.1 | 789 |
|
|
85
|
+
| [Bootstrap Icons](https://github.com/twbs/icons) | [MIT](https://opensource.org/licenses/MIT) | 1.11.1 | 2716 |
|
|
86
|
+
| [Remix Icon](https://github.com/Remix-Design/RemixIcon) | [Apache License Version 2.0](http://www.apache.org/licenses/) | 3.5.0 | 2537 |
|
|
87
|
+
| [Flat Color Icons](https://github.com/icons8/flat-color-icons) | [MIT](https://opensource.org/licenses/MIT) | 1.0.2 | 329 |
|
|
88
|
+
| [Grommet-Icons](https://github.com/grommet/grommet-icons) | [Apache License Version 2.0](http://www.apache.org/licenses/) | 4.11.0 | 635 |
|
|
89
|
+
| [Heroicons](https://github.com/tailwindlabs/heroicons) | [MIT](https://opensource.org/licenses/MIT) | 1.0.6 | 460 |
|
|
90
|
+
| [Heroicons 2](https://github.com/tailwindlabs/heroicons) | [MIT](https://opensource.org/licenses/MIT) | 2.0.18 | 876 |
|
|
91
|
+
| [Simple Icons](https://simpleicons.org/) | [CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/) | 9.20.0 | 2753 |
|
|
92
|
+
| [Simple Line Icons](https://thesabbir.github.io/simple-line-icons/) | [MIT](https://opensource.org/licenses/MIT) | 2.5.5 | 189 |
|
|
93
|
+
| [IcoMoon Free](https://github.com/Keyamoon/IcoMoon-Free) | [CC BY 4.0 License](https://github.com/Keyamoon/IcoMoon-Free/blob/master/License.txt) | d006795ede82361e1bac1ee76f215cf1dc51e4ca | 491 |
|
|
94
|
+
| [BoxIcons](https://github.com/atisawd/boxicons) | [CC BY 4.0 License](https://github.com/atisawd/boxicons/blob/master/LICENSE) | 2.1.4 | 1634 |
|
|
95
|
+
| [css.gg](https://github.com/astrit/css.gg) | [MIT](https://opensource.org/licenses/MIT) | 2.1.1 | 704 |
|
|
96
|
+
| [VS Code Icons](https://github.com/microsoft/vscode-codicons) | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) | 0.0.35 | 439 |
|
|
97
|
+
| [Tabler Icons](https://github.com/tabler/tabler-icons) | [MIT](https://opensource.org/licenses/MIT) | 2.40.0 | 4836 |
|
|
98
|
+
| [Themify Icons](https://github.com/lykmapipo/themify-icons) | [MIT](https://github.com/thecreation/standard-icons/blob/master/modules/themify-icons/LICENSE) | v0.1.2-2-g9600186 | 352 |
|
|
99
|
+
| [Radix Icons](https://icons.radix-ui.com) | [MIT](https://github.com/radix-ui/icons/blob/master/LICENSE) | @radix-ui/react-icons@1.3.0-1-g94b3fcf | 318 |
|
|
100
|
+
| [Phosphor Icons](https://github.com/phosphor-icons/core) | [MIT](https://github.com/phosphor-icons/core/blob/main/LICENSE) | 2.0.2 | 7488 |
|
|
101
|
+
| [Icons8 Line Awesome](https://icons8.com/line-awesome) | [MIT](https://github.com/icons8/line-awesome/blob/master/LICENSE.md) | 1.3.1 | 1544 |
|
|
102
|
+
|
|
103
|
+
You can add more icons by submitting pull requests or creating issues.
|
|
104
|
+
|
|
105
|
+
## Configuration
|
|
106
|
+
|
|
107
|
+
You can configure react-icons props using [React Context API](https://reactjs.org/docs/context.html).
|
|
108
|
+
|
|
109
|
+
_Requires **React 16.3** or higher._
|
|
110
|
+
|
|
111
|
+
```jsx
|
|
112
|
+
import { IconContext } from "react-icons";
|
|
113
|
+
|
|
114
|
+
<IconContext.Provider value={{ color: "blue", className: "global-class-name" }}>
|
|
115
|
+
<div>
|
|
116
|
+
<FaFolder />
|
|
117
|
+
</div>
|
|
118
|
+
</IconContext.Provider>;
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
| Key | Default | Notes |
|
|
122
|
+
| ----------- | --------------------- | ---------------------------------- |
|
|
123
|
+
| `color` | `undefined` (inherit) | |
|
|
124
|
+
| `size` | `1em` | |
|
|
125
|
+
| `className` | `undefined` | |
|
|
126
|
+
| `style` | `undefined` | Can overwrite size and color |
|
|
127
|
+
| `attr` | `undefined` | Overwritten by other attributes |
|
|
128
|
+
| `title` | `undefined` | Icon description for accessibility |
|
|
129
|
+
|
|
130
|
+
## Migrating from version 2 -> 3
|
|
131
|
+
|
|
132
|
+
### Change import style
|
|
133
|
+
|
|
134
|
+
Import path has changed. You need to rewrite from the old style.
|
|
135
|
+
|
|
136
|
+
```jsx
|
|
137
|
+
// OLD IMPORT STYLE
|
|
138
|
+
import FaBeer from "react-icons/lib/fa/beer";
|
|
139
|
+
|
|
140
|
+
function Question() {
|
|
141
|
+
return (
|
|
142
|
+
<h3>
|
|
143
|
+
Lets go for a <FaBeer />?
|
|
144
|
+
</h3>
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
```jsx
|
|
150
|
+
// NEW IMPORT STYLE
|
|
151
|
+
import { FaBeer } from "react-icons/fa";
|
|
152
|
+
|
|
153
|
+
function Question() {
|
|
154
|
+
return (
|
|
155
|
+
<h3>
|
|
156
|
+
Lets go for a <FaBeer />?
|
|
157
|
+
</h3>
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Ending up with a large JS bundle? Check out [this issue](https://github.com/react-icons/react-icons/issues/154).
|
|
163
|
+
|
|
164
|
+
### Adjustment CSS
|
|
165
|
+
|
|
166
|
+
From version 3, `vertical-align: middle` is not automatically given. Please use IconContext to specify className or specify an inline style.
|
|
167
|
+
|
|
168
|
+
#### Global Inline Styling
|
|
169
|
+
|
|
170
|
+
```tsx
|
|
171
|
+
<IconContext.Provider value={{ style: { verticalAlign: 'middle' } }}>
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
#### Global `className` Styling
|
|
175
|
+
|
|
176
|
+
Component
|
|
177
|
+
|
|
178
|
+
```tsx
|
|
179
|
+
<IconContext.Provider value={{ className: 'react-icons' }}>
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
CSS
|
|
183
|
+
|
|
184
|
+
```css
|
|
185
|
+
.react-icons {
|
|
186
|
+
vertical-align: middle;
|
|
187
|
+
}
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### TypeScript native support
|
|
191
|
+
|
|
192
|
+
Dependencies on `@types/react-icons` can be deleted.
|
|
193
|
+
|
|
194
|
+
#### Yarn
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
yarn remove @types/react-icons
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
#### NPM
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
npm remove @types/react-icons
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## Contributing
|
|
207
|
+
|
|
208
|
+
`./build-script.sh` will build the whole project. See also CI scripts for more information.
|
|
209
|
+
|
|
210
|
+
### Development
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
yarn
|
|
214
|
+
cd packages/react-icons
|
|
215
|
+
yarn fetch # fetch icon sources
|
|
216
|
+
yarn build
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Add/Update icon set
|
|
220
|
+
|
|
221
|
+
First, check the discussion to see if anyone would like to add an icon set.
|
|
222
|
+
|
|
223
|
+
https://github.com/react-icons/react-icons/discussions/categories/new-icon-set
|
|
224
|
+
|
|
225
|
+
The SVG files to be fetched are managed in this file. Edit this file and run `yarn fetch && yarn check && yarn build`.
|
|
226
|
+
|
|
227
|
+
https://github.com/react-icons/react-icons/blob/master/packages/react-icons/src/icons/index.ts
|
|
228
|
+
|
|
229
|
+
### Preview
|
|
230
|
+
|
|
231
|
+
> **Note**
|
|
232
|
+
> The project is not actively accepting PR for the preview site at this time.
|
|
233
|
+
|
|
234
|
+
The preview site is the [`react-icons`](https://react-icons.github.io/react-icons/) website, built in Astro+React.
|
|
235
|
+
|
|
236
|
+
```bash
|
|
237
|
+
cd packages/react-icons
|
|
238
|
+
yarn fetch
|
|
239
|
+
yarn build
|
|
240
|
+
|
|
241
|
+
cd ../preview-astro
|
|
242
|
+
yarn start
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
### Demo
|
|
246
|
+
|
|
247
|
+
The demo is a [Create React App](https://create-react-app.dev/) boilerplate with `react-icons` added as a dependency for easy testing.
|
|
248
|
+
|
|
249
|
+
```bash
|
|
250
|
+
cd packages/react-icons
|
|
251
|
+
yarn fetch
|
|
252
|
+
yarn build
|
|
253
|
+
|
|
254
|
+
cd ../demo
|
|
255
|
+
yarn start
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
## Why React SVG components instead of fonts?
|
|
259
|
+
|
|
260
|
+
SVG is [supported by all major browsers](http://caniuse.com/#search=svg). With `react-icons`, you can serve only the needed icons instead of one big font file to the users, helping you to recognize which icons are used in your project.
|
|
261
|
+
|
|
262
|
+
## Related Projects
|
|
263
|
+
|
|
264
|
+
- [react-svg-morph](https://github.com/gorangajic/react-svg-morph/)
|
|
265
|
+
|
|
266
|
+
## Licence
|
|
267
|
+
|
|
268
|
+
MIT
|
|
269
|
+
|
|
270
|
+
- Icons are taken from the other projects so please check each project licences accordingly.
|
package/index.d.ts
ADDED
package/index.js
ADDED
package/index.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IconTree {
|
|
3
|
+
tag: string;
|
|
4
|
+
attr: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
child: IconTree[];
|
|
8
|
+
}
|
|
9
|
+
export declare function GenIcon(data: IconTree): (props: IconBaseProps) => React.JSX.Element;
|
|
10
|
+
export interface IconBaseProps extends React.SVGAttributes<SVGElement> {
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
size?: string | number;
|
|
13
|
+
color?: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
}
|
|
16
|
+
export type IconType = (props: IconBaseProps) => JSX.Element;
|
|
17
|
+
export declare function IconBase(props: IconBaseProps & {
|
|
18
|
+
attr?: Record<string, string>;
|
|
19
|
+
}): JSX.Element;
|
package/lib/iconBase.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.GenIcon = GenIcon;
|
|
7
|
+
exports.IconBase = IconBase;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _iconContext = require("./iconContext");
|
|
10
|
+
var _excluded = ["attr", "size", "title"];
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
13
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
14
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
19
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
20
|
+
function Tree2Element(tree) {
|
|
21
|
+
return tree && tree.map((node, i) => /*#__PURE__*/_react.default.createElement(node.tag, _objectSpread({
|
|
22
|
+
key: i
|
|
23
|
+
}, node.attr), Tree2Element(node.child)));
|
|
24
|
+
}
|
|
25
|
+
function GenIcon(data) {
|
|
26
|
+
// eslint-disable-next-line react/display-name
|
|
27
|
+
return props => /*#__PURE__*/_react.default.createElement(IconBase, _extends({
|
|
28
|
+
attr: _objectSpread({}, data.attr)
|
|
29
|
+
}, props), Tree2Element(data.child));
|
|
30
|
+
}
|
|
31
|
+
function IconBase(props) {
|
|
32
|
+
var elem = conf => {
|
|
33
|
+
var {
|
|
34
|
+
attr,
|
|
35
|
+
size,
|
|
36
|
+
title
|
|
37
|
+
} = props,
|
|
38
|
+
svgProps = _objectWithoutProperties(props, _excluded);
|
|
39
|
+
var computedSize = size || conf.size || "1em";
|
|
40
|
+
var className;
|
|
41
|
+
if (conf.className) className = conf.className;
|
|
42
|
+
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement("svg", _extends({
|
|
44
|
+
stroke: "currentColor",
|
|
45
|
+
fill: "currentColor",
|
|
46
|
+
strokeWidth: "0"
|
|
47
|
+
}, conf.attr, attr, svgProps, {
|
|
48
|
+
className: className,
|
|
49
|
+
style: _objectSpread(_objectSpread({
|
|
50
|
+
color: props.color || conf.color
|
|
51
|
+
}, conf.style), props.style),
|
|
52
|
+
height: computedSize,
|
|
53
|
+
width: computedSize,
|
|
54
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
55
|
+
}), title && /*#__PURE__*/_react.default.createElement("title", null, title), props.children);
|
|
56
|
+
};
|
|
57
|
+
return _iconContext.IconContext !== undefined ? /*#__PURE__*/_react.default.createElement(_iconContext.IconContext.Consumer, null, conf => elem(conf)) : elem(_iconContext.DefaultContext);
|
|
58
|
+
}
|
package/lib/iconBase.mjs
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var _excluded = ["attr", "size", "title"];
|
|
2
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
9
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
|
+
import React from "react";
|
|
11
|
+
import { IconContext, DefaultContext } from "./iconContext.mjs";
|
|
12
|
+
function Tree2Element(tree) {
|
|
13
|
+
return tree && tree.map((node, i) => /*#__PURE__*/React.createElement(node.tag, _objectSpread({
|
|
14
|
+
key: i
|
|
15
|
+
}, node.attr), Tree2Element(node.child)));
|
|
16
|
+
}
|
|
17
|
+
export function GenIcon(data) {
|
|
18
|
+
// eslint-disable-next-line react/display-name
|
|
19
|
+
return props => /*#__PURE__*/React.createElement(IconBase, _extends({
|
|
20
|
+
attr: _objectSpread({}, data.attr)
|
|
21
|
+
}, props), Tree2Element(data.child));
|
|
22
|
+
}
|
|
23
|
+
export function IconBase(props) {
|
|
24
|
+
var elem = conf => {
|
|
25
|
+
var {
|
|
26
|
+
attr,
|
|
27
|
+
size,
|
|
28
|
+
title
|
|
29
|
+
} = props,
|
|
30
|
+
svgProps = _objectWithoutProperties(props, _excluded);
|
|
31
|
+
var computedSize = size || conf.size || "1em";
|
|
32
|
+
var className;
|
|
33
|
+
if (conf.className) className = conf.className;
|
|
34
|
+
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
35
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
36
|
+
stroke: "currentColor",
|
|
37
|
+
fill: "currentColor",
|
|
38
|
+
strokeWidth: "0"
|
|
39
|
+
}, conf.attr, attr, svgProps, {
|
|
40
|
+
className: className,
|
|
41
|
+
style: _objectSpread(_objectSpread({
|
|
42
|
+
color: props.color || conf.color
|
|
43
|
+
}, conf.style), props.style),
|
|
44
|
+
height: computedSize,
|
|
45
|
+
width: computedSize,
|
|
46
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
47
|
+
}), title && /*#__PURE__*/React.createElement("title", null, title), props.children);
|
|
48
|
+
};
|
|
49
|
+
return IconContext !== undefined ? /*#__PURE__*/React.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);
|
|
50
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IconContext {
|
|
3
|
+
color?: string;
|
|
4
|
+
size?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
attr?: React.SVGAttributes<SVGElement>;
|
|
8
|
+
}
|
|
9
|
+
export declare const DefaultContext: IconContext;
|
|
10
|
+
export declare const IconContext: React.Context<IconContext>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.IconContext = exports.DefaultContext = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
var DefaultContext = exports.DefaultContext = {
|
|
10
|
+
color: undefined,
|
|
11
|
+
size: undefined,
|
|
12
|
+
className: undefined,
|
|
13
|
+
style: undefined,
|
|
14
|
+
attr: undefined
|
|
15
|
+
};
|
|
16
|
+
var IconContext = exports.IconContext = _react.default.createContext && /*#__PURE__*/_react.default.createContext(DefaultContext);
|