@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.
@@ -105,6 +105,7 @@ export interface PinAttributeMap {
105
105
  requiresGround?: boolean
106
106
  providesVoltage?: string | number
107
107
  requiresVoltage?: string | number
108
+ doNotConnect?: boolean
108
109
  }
109
110
 
110
111
  export const pinAttributeMap = z.object({
@@ -114,6 +115,7 @@ export const pinAttributeMap = z.object({
114
115
  requiresGround: z.boolean().optional(),
115
116
  providesVoltage: z.union([z.string(), z.number()]).optional(),
116
117
  requiresVoltage: z.union([z.string(), z.number()]).optional(),
118
+ doNotConnect: z.boolean().optional(),
117
119
  })
118
120
 
119
121
  expectTypesMatch<PinAttributeMap, z.input<typeof pinAttributeMap>>(true)
@@ -1,3 +1,4 @@
1
+ import { voltage } from "circuit-json"
1
2
  import { z } from "zod"
2
3
  import {
3
4
  commonComponentProps,
@@ -31,11 +32,15 @@ const capacity = z
31
32
  export interface BatteryProps<PinLabel extends string = string>
32
33
  extends CommonComponentProps<PinLabel> {
33
34
  capacity?: number | string
35
+ voltage?: number | string
36
+ standard?: "AA" | "AAA" | "9V" | "CR2032" | "18650" | "C"
34
37
  schOrientation?: SchematicOrientation
35
38
  }
36
39
 
37
40
  export const batteryProps = commonComponentProps.extend({
38
41
  capacity: capacity.optional(),
42
+ voltage: voltage.optional(),
43
+ standard: z.enum(["AA", "AAA", "9V", "CR2032", "18650", "C"]).optional(),
39
44
  schOrientation: schematicOrientation.optional(),
40
45
  })
41
46
  export const batteryPins = lrPolarPins
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.289",
3
+ "version": "0.0.291",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",