@tscircuit/common 0.0.1 → 0.0.2
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/index.d.ts +13 -0
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/dist/index.mjs +0 -2785
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ChipProps } from '@tscircuit/props';
|
|
3
|
+
|
|
4
|
+
declare const ArduinoShield: (props: ChipProps & {
|
|
5
|
+
children?: any;
|
|
6
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
declare const MicroModBoard: ({ variant, ...props }: ChipProps & {
|
|
9
|
+
children?: any;
|
|
10
|
+
variant?: "processor" | "function";
|
|
11
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { ArduinoShield, MicroModBoard };
|
package/dist/index.js
CHANGED
|
@@ -1756,7 +1756,7 @@ var require_jsx_runtime = __commonJS({
|
|
|
1756
1756
|
}
|
|
1757
1757
|
});
|
|
1758
1758
|
|
|
1759
|
-
//
|
|
1759
|
+
// lib/ArduinoShield/ArduinoShieldFootprint.tsx
|
|
1760
1760
|
var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
|
|
1761
1761
|
var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("footprint", { children: [
|
|
1762
1762
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -2145,7 +2145,7 @@ var ArduinoShieldFootprint = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
2145
2145
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("silkscreentext", { text: "SCL", fontSize: 0.8, pcbX: -12.9, pcbY: 22.2 })
|
|
2146
2146
|
] });
|
|
2147
2147
|
|
|
2148
|
-
//
|
|
2148
|
+
// lib/ArduinoShield/ArduinoShield.circuit.tsx
|
|
2149
2149
|
var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
|
|
2150
2150
|
var ArduinoShield = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
2151
2151
|
"board",
|
|
@@ -2269,7 +2269,7 @@ var ArduinoShield = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
|
2269
2269
|
}
|
|
2270
2270
|
);
|
|
2271
2271
|
|
|
2272
|
-
//
|
|
2272
|
+
// lib/MicroModBoard/MicroModBoardFootprint.tsx
|
|
2273
2273
|
var import_react = __toESM(require_react(), 1);
|
|
2274
2274
|
var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
|
|
2275
2275
|
var createSmtPad = (props) => import_react.default.createElement("smtpad", props);
|
|
@@ -2511,11 +2511,11 @@ var outlineBuilder = (x, y) => {
|
|
|
2511
2511
|
return new OutlineBuilder(x, y);
|
|
2512
2512
|
};
|
|
2513
2513
|
|
|
2514
|
-
//
|
|
2514
|
+
// lib/MicroModBoard/outlines/boardOutlines.ts
|
|
2515
2515
|
var processorOutline = outlineBuilder(-9, 11).lineTo(11, 11).corner({ radius: 1, turn: "ccw" }).lineTo(11, -7).corner({ radius: 0.5, turn: "ccw" }).lineTo(10, -7).corner({ radius: 0.5, turn: "cw" }).lineTo(10, -11).lineTo(3.28, -11).lineTo(3.28, -8).arcTo(2.08, -8, { radius: 0.6, sweep: true }).lineTo(2.08, -11).lineTo(-10, -11).lineTo(-10, -7).corner({ radius: 0.5, turn: "cw" }).lineTo(-11, -7).corner({ radius: 0.5, turn: "ccw" }).lineTo(-11, 11).corner({ radius: 1, turn: "ccw" }).toArray();
|
|
2516
2516
|
var functionOutline = outlineBuilder(0, 32.5).lineTo(19, 32.5).corner({ radius: 1, turn: "ccw" }).lineTo(19, -28.5).corner({ radius: 0.5, turn: "ccw" }).lineTo(10, -28.5).corner({ radius: 0.5, turn: "cw" }).lineTo(10, -32.5).lineTo(3.28, -32.5).lineTo(3.28, -29.5).arcTo(2.08, -29.5, { radius: 0.6, sweep: true }).lineTo(2.08, -32.5).lineTo(-10, -32.5).lineTo(-10, -28.5).corner({ radius: 0.5, turn: "cw" }).lineTo(-19, -28.5).corner({ radius: 0.5, turn: "ccw" }).lineTo(-19, 32.5).corner({ radius: 1, turn: "ccw" }).toArray();
|
|
2517
2517
|
|
|
2518
|
-
//
|
|
2518
|
+
// lib/MicroModBoard/MicroModBoard.tsx
|
|
2519
2519
|
var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
|
|
2520
2520
|
var MicroModBoard = (_a) => {
|
|
2521
2521
|
var _b = _a, {
|