@bigbinary/neeto-icons 1.9.3 → 1.9.5

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.
@@ -4,6 +4,7 @@ import IconsList from "./IconsList";
4
4
  import { Toaster } from "react-hot-toast";
5
5
  import * as icons from "../../../lib/icons";
6
6
  import * as logos from "../../../lib/logos";
7
+ import * as appIcons from "../../../lib/app-icons";
7
8
 
8
9
  function Dashboard() {
9
10
  const [searchTerm, setSearchTerm] = useState("");
@@ -11,10 +12,12 @@ function Dashboard() {
11
12
  <>
12
13
  <Toaster position="bottom-center" />
13
14
  <Header searchTerm={searchTerm} setSearchTerm={setSearchTerm} />
14
- <h2 className="px-8 pt-4">Logos</h2>
15
- <IconsList searchTerm={searchTerm} icons={logos} listName="logos" />
16
15
  <h2 className="px-8 pt-4">Icons</h2>
17
16
  <IconsList searchTerm={searchTerm} icons={icons} listName="icons" />
17
+ <h2 className="px-8 pt-4">Logos</h2>
18
+ <IconsList searchTerm={searchTerm} icons={logos} listName="logos" />
19
+ <h2 className="px-8 pt-4">App Icons</h2>
20
+ <IconsList searchTerm={searchTerm} icons={appIcons} listName="appIcons" />
18
21
  </>
19
22
  );
20
23
  }
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-icons",
3
- "version": "1.9.3",
3
+ "version": "1.9.5",
4
4
  "main": "./dist/neeto-icons.js",
5
5
  "author": "vinay0x",
6
6
  "license": "MIT",
7
7
  "types": "./index.d.ts",
8
8
  "exports": {
9
+ "./app-icons": {
10
+ "import": "./dist/app-icons.js"
11
+ },
9
12
  "./logos": {
10
13
  "import": "./dist/neeto-logos.js"
11
14
  },
package/rollup.config.js CHANGED
@@ -14,6 +14,7 @@ export const extensions = [".js", ".jsx"];
14
14
  const input = Object.fromEntries([
15
15
  ["neeto-icons", "./lib/icons/index.js"],
16
16
  ["neeto-logos", "./lib/logos/index.js"],
17
+ ["app-icons", "./lib/app-icons/index.js"],
17
18
  ...glob.sync("./lib/icons/*").map((componentPath) => {
18
19
  const componentName = path.basename(componentPath);
19
20
  return [componentName, componentPath];
@@ -23,7 +24,7 @@ const input = Object.fromEntries([
23
24
  // Export non index chunks in `esm/_internal` (enables tree shaking but detracts user from importing them directly).
24
25
  const renameFile = (info) => {
25
26
  let name = info.name;
26
- if (!["neeto-icons", "neeto-logos"].includes(name)) {
27
+ if (!["neeto-icons", "neeto-logos", "app-icons"].includes(name)) {
27
28
  name = `_internal/${name}`;
28
29
  }
29
30
  return `${name}.js`;