@mexi/uikit 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,18 +1,9 @@
1
1
  import { Language } from "../LangSelector/types";
2
2
  import { FooterLinkType } from "./types";
3
3
  export declare const footerLinks: FooterLinkType[];
4
- export declare const socials: ({
4
+ export declare const socials: {
5
5
  label: string;
6
6
  icon: string;
7
7
  href: string;
8
- items?: undefined;
9
- } | {
10
- label: string;
11
- icon: string;
12
- href: string;
13
- items: {
14
- label: string;
15
- href: string;
16
- }[];
17
- })[];
8
+ }[];
18
9
  export declare const langs: Language[];
package/dist/index.cjs.js CHANGED
@@ -2741,7 +2741,7 @@ var dark = {
2741
2741
  boxShadow: shadows.tooltip,
2742
2742
  };
2743
2743
 
2744
- var darkTheme = __assign(__assign({}, base), { isDark: true, alert: dark$7, colors: darkColors, card: dark$6, toggle: dark$3, nav: dark$2, modal: dark$1, pancakeToggle: dark$5, radio: dark$4, tooltip: dark });
2744
+ var darkTheme = __assign(__assign({}, base), { isDark: false, alert: dark$7, colors: darkColors, card: dark$6, toggle: dark$3, nav: dark$2, modal: dark$1, pancakeToggle: dark$5, radio: dark$4, tooltip: dark });
2745
2745
 
2746
2746
  var lightTheme = __assign(__assign({}, base), { isDark: false, alert: light$7, colors: lightColors, card: light$6, toggle: light$3, nav: light$2, modal: light$1, pancakeToggle: light$5, radio: light$4, tooltip: light });
2747
2747
 
@@ -4703,12 +4703,6 @@ var socials = [
4703
4703
  label: "Telegram",
4704
4704
  icon: "Telegram",
4705
4705
  href: "https://t.me/Metaxiz",
4706
- items: [
4707
- {
4708
- label: "",
4709
- href: "",
4710
- },
4711
- ],
4712
4706
  },
4713
4707
  // {
4714
4708
  // label: "Reddit",
@@ -4742,9 +4736,17 @@ var SocialLinks = function (_a) {
4742
4736
  style: { cursor: "pointer" },
4743
4737
  };
4744
4738
  var mr = index < socials.length - 1 ? "24px" : 0;
4745
- if (social.items) {
4746
- return (React__default['default'].createElement(Dropdown, { key: social.label, position: "top", target: React__default['default'].createElement(IconComponent, __assign({}, iconProps, { mr: mr })) }, social.items.map(function (item) { return (React__default['default'].createElement(Link, { external: true, key: item.label, href: item.href, "aria-label": item.label, color: "textSubtle" }, item.label)); })));
4747
- }
4739
+ // if (social.items) {
4740
+ // return (
4741
+ // <Dropdown key={social.label} position="top" target={<IconComponent {...iconProps} mr={mr} />}>
4742
+ // {social.items.map((item) => (
4743
+ // <Link external key={item.label} href={item.href} aria-label={item.label} color="textSubtle">
4744
+ // {item.label}
4745
+ // </Link>
4746
+ // ))}
4747
+ // </Dropdown>
4748
+ // );
4749
+ // }
4748
4750
  return (React__default['default'].createElement(Link, { external: true, key: social.label, href: social.href, "aria-label": social.label, mr: mr },
4749
4751
  React__default['default'].createElement(IconComponent, __assign({}, iconProps))));
4750
4752
  })));
package/dist/index.esm.js CHANGED
@@ -2707,7 +2707,7 @@ var dark = {
2707
2707
  boxShadow: shadows.tooltip,
2708
2708
  };
2709
2709
 
2710
- var darkTheme = __assign(__assign({}, base), { isDark: true, alert: dark$7, colors: darkColors, card: dark$6, toggle: dark$3, nav: dark$2, modal: dark$1, pancakeToggle: dark$5, radio: dark$4, tooltip: dark });
2710
+ var darkTheme = __assign(__assign({}, base), { isDark: false, alert: dark$7, colors: darkColors, card: dark$6, toggle: dark$3, nav: dark$2, modal: dark$1, pancakeToggle: dark$5, radio: dark$4, tooltip: dark });
2711
2711
 
2712
2712
  var lightTheme = __assign(__assign({}, base), { isDark: false, alert: light$7, colors: lightColors, card: light$6, toggle: light$3, nav: light$2, modal: light$1, pancakeToggle: light$5, radio: light$4, tooltip: light });
2713
2713
 
@@ -4669,12 +4669,6 @@ var socials = [
4669
4669
  label: "Telegram",
4670
4670
  icon: "Telegram",
4671
4671
  href: "https://t.me/Metaxiz",
4672
- items: [
4673
- {
4674
- label: "",
4675
- href: "",
4676
- },
4677
- ],
4678
4672
  },
4679
4673
  // {
4680
4674
  // label: "Reddit",
@@ -4708,9 +4702,17 @@ var SocialLinks = function (_a) {
4708
4702
  style: { cursor: "pointer" },
4709
4703
  };
4710
4704
  var mr = index < socials.length - 1 ? "24px" : 0;
4711
- if (social.items) {
4712
- return (React__default.createElement(Dropdown, { key: social.label, position: "top", target: React__default.createElement(IconComponent, __assign({}, iconProps, { mr: mr })) }, social.items.map(function (item) { return (React__default.createElement(Link, { external: true, key: item.label, href: item.href, "aria-label": item.label, color: "textSubtle" }, item.label)); })));
4713
- }
4705
+ // if (social.items) {
4706
+ // return (
4707
+ // <Dropdown key={social.label} position="top" target={<IconComponent {...iconProps} mr={mr} />}>
4708
+ // {social.items.map((item) => (
4709
+ // <Link external key={item.label} href={item.href} aria-label={item.label} color="textSubtle">
4710
+ // {item.label}
4711
+ // </Link>
4712
+ // ))}
4713
+ // </Dropdown>
4714
+ // );
4715
+ // }
4714
4716
  return (React__default.createElement(Link, { external: true, key: social.label, href: social.href, "aria-label": social.label, mr: mr },
4715
4717
  React__default.createElement(IconComponent, __assign({}, iconProps))));
4716
4718
  })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mexi/uikit",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Set of UI components for pancake projects",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",