@tscircuit/common 0.0.27 → 0.0.28

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 CHANGED
@@ -46,6 +46,7 @@ declare const PIN_LABELS: {
46
46
  };
47
47
  declare const XiaoReceiver: (props: ChipProps<typeof PIN_LABELS> & {
48
48
  children?: any;
49
+ throughHole?: boolean;
49
50
  }) => react_jsx_runtime.JSX.Element;
50
51
 
51
52
  type ProMicroBoardProps = ChipProps & BoardProps & {
package/dist/index.js CHANGED
@@ -3113,7 +3113,7 @@ var XiaoBoardFootprint = ({
3113
3113
  pcbX: leftRowX,
3114
3114
  pcbY: yOffset - i * pitch,
3115
3115
  shape: "circular_hole_with_rect_pad",
3116
- holeOffsetX: 0.63
3116
+ holeOffsetX: -0.63
3117
3117
  })
3118
3118
  );
3119
3119
  pinNumber++;
@@ -3156,7 +3156,7 @@ var XiaoBoardFootprint = ({
3156
3156
  pcbX: rightRowX,
3157
3157
  pcbY: yOffset - i * pitch,
3158
3158
  shape: "circular_hole_with_rect_pad",
3159
- holeOffsetX: -0.63
3159
+ holeOffsetX: 0.63
3160
3160
  })
3161
3161
  );
3162
3162
  pinNumber++;
@@ -3340,11 +3340,11 @@ var PIN_ARRANGEMENT = {
3340
3340
  }
3341
3341
  };
3342
3342
  var XiaoReceiver = (props) => {
3343
- const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
3343
+ const _a = props, { children, throughHole } = _a, rest = __objRest(_a, ["children", "throughHole"]);
3344
3344
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
3345
3345
  "chip",
3346
3346
  __spreadProps(__spreadValues({}, rest), {
3347
- footprint: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(XiaoBoardFootprint, { variant: "Receiver" }),
3347
+ footprint: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(XiaoBoardFootprint, { variant: "Receiver", withPlatedHoles: throughHole }),
3348
3348
  pinLabels: PIN_LABELS,
3349
3349
  schPinArrangement: PIN_ARRANGEMENT,
3350
3350
  schWidth: 1.5,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/common",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",