Socket
Socket
Sign inDemoInstall

@dynamic-labs/iconic

Package Overview
Dependencies
Maintainers
2
Versions
296
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dynamic-labs/iconic - npm Package Compare versions

Comparing version 0.1.22 to 0.1.23

dist/src/components/getSocialIcon.d.ts

2

dist/package.json
{
"name": "@dynamic-labs/iconic",
"version": "0.1.22",
"version": "0.1.23",
"description": "A library of icons used by Dynamic Lab's SDK, served via CDN",

@@ -5,0 +5,0 @@ "main": "dist/src/index.js",

export * from './SocialIcon';
export * from './getSocialIcon';

@@ -18,1 +18,2 @@ "use strict";

__exportStar(require("./SocialIcon"), exports);
__exportStar(require("./getSocialIcon"), exports);
/// <reference types="react" />
import type { ThemeVariant } from '../types';
type SocialIconProps = React.SVGProps<SVGSVGElement> & {
name: string;
variant?: ThemeVariant;
};
export declare const SocialIcon: ({ name, ...props }: SocialIconProps) => JSX.Element;
export declare const SocialIcon: ({ name, variant, ...props }: SocialIconProps) => JSX.Element;
export {};
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __rest = (this && this.__rest) || function (s, e) {

@@ -39,7 +16,6 @@ var t = {};

const jsx_runtime_1 = require("react/jsx-runtime");
const socials = __importStar(require("../icons/social"));
const getSocialIcon_1 = require("./getSocialIcon");
const SocialIcon = (_a) => {
var { name } = _a, props = __rest(_a, ["name"]);
const map = Object.fromEntries(Object.values(socials).map((icon) => [icon.iconName, icon]));
const Icon = map[name.toLowerCase()];
var { name, variant } = _a, props = __rest(_a, ["name", "variant"]);
const Icon = (0, getSocialIcon_1.getSocialIcon)(name, variant);
if (!Icon)

@@ -46,0 +22,0 @@ return null;

@@ -6,2 +6,3 @@ import { type Iconic } from '../../Iconic';

export declare const GithubIcon: Iconic;
export declare const GithubDarkIcon: Iconic;
export declare const GitlabIcon: Iconic;

@@ -15,2 +16,3 @@ export declare const GoogleIcon: Iconic;

export declare const TwitchIcon: Iconic;
export declare const TwitchDarkIcon: Iconic;
export declare const TwitterIcon: Iconic;

@@ -17,0 +19,0 @@ export declare const AppleSocialIcon: Iconic;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.YouTubeIcon = exports.InstagramIcon = exports.AppleDarkSocialIcon = exports.AppleSocialIcon = exports.TwitterIcon = exports.TwitchIcon = exports.TelegramIcon = exports.SlackIcon = exports.MicrosoftIcon = exports.LinkedinIcon = exports.HelpdeskIcon = exports.GoogleIcon = exports.GitlabIcon = exports.GithubIcon = exports.FacebookIcon = exports.DiscordIcon = exports.BitbucketIcon = void 0;
exports.YouTubeIcon = exports.InstagramIcon = exports.AppleDarkSocialIcon = exports.AppleSocialIcon = exports.TwitterIcon = exports.TwitchDarkIcon = exports.TwitchIcon = exports.TelegramIcon = exports.SlackIcon = exports.MicrosoftIcon = exports.LinkedinIcon = exports.HelpdeskIcon = exports.GoogleIcon = exports.GitlabIcon = exports.GithubDarkIcon = exports.GithubIcon = exports.FacebookIcon = exports.DiscordIcon = exports.BitbucketIcon = void 0;
const Iconic_1 = require("../../Iconic");

@@ -25,2 +25,7 @@ exports.BitbucketIcon = (0, Iconic_1.createIconic)({

});
exports.GithubDarkIcon = (0, Iconic_1.createIconic)({
iconName: 'github-dark',
alt: 'Github',
sourcePath: 'icons/social/github-dark.svg'
});
exports.GitlabIcon = (0, Iconic_1.createIconic)({

@@ -66,2 +71,7 @@ iconName: 'gitlab',

});
exports.TwitchDarkIcon = (0, Iconic_1.createIconic)({
iconName: 'twitch-dark',
alt: 'Twitch',
sourcePath: 'icons/social/twitch-dark.svg'
});
exports.TwitterIcon = (0, Iconic_1.createIconic)({

@@ -68,0 +78,0 @@ iconName: 'twitter',

{
"name": "@dynamic-labs/iconic",
"version": "0.1.22",
"version": "0.1.23",
"description": "A library of icons used by Dynamic Lab's SDK, served via CDN",

@@ -5,0 +5,0 @@ "main": "dist/src/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc