@tscircuit/props 0.0.289 → 0.0.291

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.js CHANGED
@@ -113,7 +113,8 @@ var pinAttributeMap = z6.object({
113
113
  providesGround: z6.boolean().optional(),
114
114
  requiresGround: z6.boolean().optional(),
115
115
  providesVoltage: z6.union([z6.string(), z6.number()]).optional(),
116
- requiresVoltage: z6.union([z6.string(), z6.number()]).optional()
116
+ requiresVoltage: z6.union([z6.string(), z6.number()]).optional(),
117
+ doNotConnect: z6.boolean().optional()
117
118
  });
118
119
  expectTypesMatch(true);
119
120
  var commonComponentProps = commonLayoutProps.merge(supplierProps).extend({
@@ -1065,6 +1066,7 @@ var footprintProps = z48.object({
1065
1066
  expectTypesMatch(true);
1066
1067
 
1067
1068
  // lib/components/battery.ts
1069
+ import { voltage as voltage2 } from "circuit-json";
1068
1070
  import { z as z49 } from "zod";
1069
1071
  var capacity = z49.number().or(z49.string().endsWith("mAh")).transform((v) => {
1070
1072
  if (typeof v === "string") {
@@ -1079,6 +1081,8 @@ var capacity = z49.number().or(z49.string().endsWith("mAh")).transform((v) => {
1079
1081
  }).describe("Battery capacity in mAh");
1080
1082
  var batteryProps = commonComponentProps.extend({
1081
1083
  capacity: capacity.optional(),
1084
+ voltage: voltage2.optional(),
1085
+ standard: z49.enum(["AA", "AAA", "9V", "CR2032", "18650", "C"]).optional(),
1082
1086
  schOrientation: schematicOrientation.optional()
1083
1087
  });
1084
1088
  var batteryPins = lrPolarPins;
@@ -1421,13 +1425,13 @@ var pcbKeepoutProps = z66.union([
1421
1425
  ]);
1422
1426
 
1423
1427
  // lib/components/power-source.ts
1424
- import { voltage as voltage2 } from "circuit-json";
1428
+ import { voltage as voltage3 } from "circuit-json";
1425
1429
  var powerSourceProps = commonComponentProps.extend({
1426
- voltage: voltage2
1430
+ voltage: voltage3
1427
1431
  });
1428
1432
 
1429
1433
  // lib/components/voltagesource.ts
1430
- import { frequency as frequency3, rotation as rotation4, voltage as voltage3 } from "circuit-json";
1434
+ import { frequency as frequency3, rotation as rotation4, voltage as voltage4 } from "circuit-json";
1431
1435
  import { z as z67 } from "zod";
1432
1436
  var percentage = z67.union([z67.string(), z67.number()]).transform((val) => {
1433
1437
  if (typeof val === "string") {
@@ -1441,9 +1445,9 @@ var percentage = z67.union([z67.string(), z67.number()]).transform((val) => {
1441
1445
  z67.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
1442
1446
  );
1443
1447
  var voltageSourceProps = commonComponentProps.extend({
1444
- voltage: voltage3.optional(),
1448
+ voltage: voltage4.optional(),
1445
1449
  frequency: frequency3.optional(),
1446
- peakToPeakVoltage: voltage3.optional(),
1450
+ peakToPeakVoltage: voltage4.optional(),
1447
1451
  waveShape: z67.enum(["sinewave", "square", "triangle", "sawtooth"]).optional(),
1448
1452
  phase: rotation4.optional(),
1449
1453
  dutyCycle: percentage.optional()