@tscircuit/props 0.0.616 → 0.0.617

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.
@@ -1,4 +1,4 @@
1
- import { capacitance, voltage } from "circuit-json"
1
+ import { capacitance, distance, voltage } from "circuit-json"
2
2
  import { createConnectionsProp } from "lib/common/connectionsProp"
3
3
  import {
4
4
  type CommonComponentProps,
@@ -37,7 +37,8 @@ export interface CapacitorProps<PinLabel extends string = string>
37
37
  decouplingTo?: string
38
38
  bypassFor?: string
39
39
  bypassTo?: string
40
- maxDecouplingTraceLength?: number
40
+ /** Maximum allowed PCB trace length between this capacitor and the component it decouples */
41
+ maxDecouplingTraceLength?: number | string
41
42
  schOrientation?: SchematicOrientation
42
43
  schSize?: SchematicSymbolSize
43
44
  connections?: Connections<CapacitorPinLabels>
@@ -52,7 +53,7 @@ export const capacitorProps = commonComponentProps.extend({
52
53
  decouplingTo: z.string().optional(),
53
54
  bypassFor: z.string().optional(),
54
55
  bypassTo: z.string().optional(),
55
- maxDecouplingTraceLength: z.number().optional(),
56
+ maxDecouplingTraceLength: distance.optional(),
56
57
  schOrientation: schematicOrientation.optional(),
57
58
  schSize: schematicSymbolSize.optional(),
58
59
  connections: createConnectionsProp(capacitorPinLabels).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.616",
3
+ "version": "0.0.617",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",