@custmaz/layout-icons 0.1.0

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.
@@ -0,0 +1,22 @@
1
+ import { createIcon } from "../createIcon";
2
+ import { horizontalStack } from "../iconLayout";
3
+
4
+ export const Split = createIcon("Split", ({ radius }) => (
5
+ <>
6
+ {horizontalStack({
7
+ count: 2,
8
+ startX: 3,
9
+ gap: 10,
10
+ render: (x, i) => (
11
+ <rect
12
+ key={i}
13
+ x={x}
14
+ y={3}
15
+ width={8}
16
+ height={18}
17
+ rx={radius}
18
+ />
19
+ ),
20
+ })}
21
+ </>
22
+ ));
@@ -0,0 +1,22 @@
1
+ import { createIcon } from "../createIcon";
2
+ import { horizontalStack } from "../iconLayout";
3
+
4
+ export const Tall = createIcon("Tall", ({ radius }) => (
5
+ <>
6
+ {horizontalStack({
7
+ count: 3,
8
+ startX: 3,
9
+ gap: 6.5,
10
+ render: (x, i) => (
11
+ <rect
12
+ key={i}
13
+ x={x}
14
+ y={3}
15
+ width={5}
16
+ height={18}
17
+ rx={radius}
18
+ />
19
+ ),
20
+ })}
21
+ </>
22
+ ));
package/src/index.tsx ADDED
@@ -0,0 +1,14 @@
1
+ export { Grid } from "./icons/Grid";
2
+ export { Grid3x3 } from "./icons/Grid3x3";
3
+ export { Masonry } from "./icons/Masonry";
4
+ export { List } from "./icons/List";
5
+ export { Tall } from "./icons/Tall";
6
+ export { Landscape } from "./icons/Landscape";
7
+ export { Card } from "./icons/Card";
8
+ export { Split } from "./icons/Split";
9
+
10
+ export { HamburgerMenu } from "./icons/HamburgerMenu";
11
+ export { Kebab } from "./icons/Kebab";
12
+ export { Meatballs } from "./icons/Meatballs";
13
+
14
+ export type { IconProps } from "./types";
package/src/types.ts ADDED
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+
3
+ export interface IconProps extends React.SVGProps<SVGSVGElement> {
4
+ size?: number | string;
5
+ strokeWidth?: number;
6
+ radius?: number;
7
+ variant?: "outline" | "filled";
8
+ title?: string;
9
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2019",
4
+ "module": "ESNext",
5
+ "jsx": "react-jsx",
6
+ "declaration": true,
7
+ "outDir": "dist",
8
+ "strict": true,
9
+ "moduleResolution": "Node",
10
+ "esModuleInterop": true,
11
+ "skipLibCheck": true
12
+ },
13
+ "include": [
14
+ "src"
15
+ ]
16
+ }