@stackshift-ui/social-icons 7.0.0-beta.5 → 7.0.0-beta.7
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/dist/chunk-HFYWFLWE.mjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/dist/social-icons.d.ts +10 -0
- package/dist/social-icons.js +1 -0
- package/dist/social-icons.mjs +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useStackShiftUIComponents as c}from"@stackshift-ui/system";import m from"classnames";import{FaDiscord as p,FaFacebook as l,FaGithub as d,FaInstagram as k,FaLinkedin as u,FaPinterest as F,FaTiktok as y,FaXTwitter as S,FaYoutube as b,FaThreads as f}from"react-icons/fa6";import{jsx as T}from"react/jsx-runtime";var e={facebook:l,twitter:S,instagram:k,youtube:b,linkedin:u,tiktok:y,pinterest:F,github:d,discord:p,threads:f},o="SocialIcons",h=({social:t,children:a,className:s,as:n,...i})=>{if(!t||!e[t])return null;let{[o]:r=e[t]}=c();return T(r,{as:n,className:m("w-8 h-8",s),...i,"data-testid":o.toLowerCase(),children:a})};h.displayName=o;export{h as a};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./social-icons";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";var F=Object.create;var i=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var h=(o,e)=>{for(var a in e)i(o,a,{get:e[a],enumerable:!0})},c=(o,e,a,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of y(e))!b.call(o,s)&&s!==a&&i(o,s,{get:()=>e[s],enumerable:!(n=f(e,s))||n.enumerable});return o};var T=(o,e,a)=>(a=o!=null?F(S(o)):{},c(e||!o||!o.__esModule?i(a,"default",{value:o,enumerable:!0}):a,o)),C=o=>c(i({},"__esModule",{value:!0}),o);var I={};h(I,{SocialIcons:()=>d});module.exports=C(I);var p=require("@stackshift-ui/system"),l=T(require("classnames")),t=require("react-icons/fa6"),k=require("react/jsx-runtime"),m={facebook:t.FaFacebook,twitter:t.FaXTwitter,instagram:t.FaInstagram,youtube:t.FaYoutube,linkedin:t.FaLinkedin,tiktok:t.FaTiktok,pinterest:t.FaPinterest,github:t.FaGithub,discord:t.FaDiscord,threads:t.FaThreads},r="SocialIcons",d=({social:o,children:e,className:a,as:n,...s})=>{if(!o||!m[o])return null;let{[r]:u=m[o]}=(0,p.useStackShiftUIComponents)();return(0,k.jsx)(u,{as:n,className:(0,l.default)("w-8 h-8",a),...s,"data-testid":r.toLowerCase(),children:e})};d.displayName=r;0&&(module.exports={SocialIcons});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ElementType, HTMLProps, ReactNode } from "react";
|
|
2
|
+
type Socials = "facebook" | "instagram" | "youtube" | "linkedin" | "twitter" | "tiktok" | "pinterest" | "github" | "discord" | "threads";
|
|
3
|
+
export interface SocialIconsProps extends Omit<HTMLProps<HTMLElement>, "as"> {
|
|
4
|
+
social?: Socials;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
as?: ElementType;
|
|
8
|
+
}
|
|
9
|
+
export declare const SocialIcons: React.FC<SocialIconsProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var F=Object.create;var i=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var b=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var h=(o,e)=>{for(var a in e)i(o,a,{get:e[a],enumerable:!0})},c=(o,e,a,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of S(e))!f.call(o,s)&&s!==a&&i(o,s,{get:()=>e[s],enumerable:!(n=y(e,s))||n.enumerable});return o};var T=(o,e,a)=>(a=o!=null?F(b(o)):{},c(e||!o||!o.__esModule?i(a,"default",{value:o,enumerable:!0}):a,o)),C=o=>c(i({},"__esModule",{value:!0}),o);var I={};h(I,{SocialIcons:()=>d});module.exports=C(I);var p=require("@stackshift-ui/system"),l=T(require("classnames")),t=require("react-icons/fa6"),k=require("react/jsx-runtime"),m={facebook:t.FaFacebook,twitter:t.FaXTwitter,instagram:t.FaInstagram,youtube:t.FaYoutube,linkedin:t.FaLinkedin,tiktok:t.FaTiktok,pinterest:t.FaPinterest,github:t.FaGithub,discord:t.FaDiscord,threads:t.FaThreads},r="SocialIcons",d=({social:o,children:e,className:a,as:n,...s})=>{if(!o||!m[o])return null;let{[r]:u=m[o]}=(0,p.useStackShiftUIComponents)();return(0,k.jsx)(u,{as:n,className:(0,l.default)("w-8 h-8",a),...s,"data-testid":r.toLowerCase(),children:e})};d.displayName=r;0&&(module.exports={SocialIcons});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-HFYWFLWE.mjs";export{a as SocialIcons};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/social-icons",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.7",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"typescript": "^5.6.2",
|
|
30
30
|
"vite-tsconfig-paths": "^5.0.1",
|
|
31
31
|
"vitest": "^2.1.1",
|
|
32
|
-
"@stackshift-ui/
|
|
33
|
-
"@stackshift-ui/
|
|
32
|
+
"@stackshift-ui/typescript-config": "6.0.10",
|
|
33
|
+
"@stackshift-ui/eslint-config": "6.0.10"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
37
|
"react-icons": "^5.3.0",
|
|
38
|
-
"@stackshift-ui/scripts": "7.0.0-beta.
|
|
39
|
-
"@stackshift-ui/system": "7.0.0-beta.
|
|
38
|
+
"@stackshift-ui/scripts": "7.0.0-beta.6",
|
|
39
|
+
"@stackshift-ui/system": "7.0.0-beta.7"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@stackshift-ui/system": ">=7.0.0-beta.
|
|
42
|
+
"@stackshift-ui/system": ">=7.0.0-beta.7",
|
|
43
43
|
"@types/react": "16.8 - 19",
|
|
44
44
|
"next": "10 - 14",
|
|
45
45
|
"react": "16.8 - 19",
|