@photoroom/ui 0.1.159 → 0.1.160

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,5 +1,6 @@
1
1
  import { CheckboxProps as RadixCheckboxProps } from "@radix-ui/react-checkbox";
2
+ import { type CheckboxIndicatorVariant } from "./CheckboxIndicator";
2
3
  export declare const Checkbox: ({ className, variant, ...props }: RadixCheckboxProps & {
3
- variant?: "editor";
4
+ variant?: CheckboxIndicatorVariant;
4
5
  }) => import("react/jsx-runtime").JSX.Element;
5
6
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/input/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,aAAa,IAAI,kBAAkB,EAEpC,MAAM,0BAA0B,CAAC;AAwElC,eAAO,MAAM,QAAQ,GAAI,kCAItB,kBAAkB,GAAG;IAAE,OAAO,CAAC,EAAE,QAAQ,CAAA;CAAE,4CAgB7C,CAAC"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/input/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,IAAI,kBAAkB,EAEpC,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAqB,KAAK,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAEvF,eAAO,MAAM,QAAQ,GAAI,kCAItB,kBAAkB,GAAG;IAAE,OAAO,CAAC,EAAE,wBAAwB,CAAA;CAAE,4CAc7D,CAAC"}
@@ -0,0 +1,17 @@
1
+ export type CheckboxIndicatorVariant = "default" | "editor";
2
+ export type CheckboxIndicatorProps = {
3
+ /** Color variant — `default` for the standard accent fill, `editor` for the muted on-canvas style. */
4
+ variant?: CheckboxIndicatorVariant;
5
+ /** Pass-through className — useful for adding a focus-ring from an ancestor group (see Checkbox). */
6
+ className?: string;
7
+ };
8
+ /**
9
+ * Pure visual 20×20 checkbox indicator. Reads its state from the nearest
10
+ * `RadixCheckboxRoot` via Radix's `data-state` attribute (no prop plumbing).
11
+ *
12
+ * Drop this inside any `RadixCheckboxRoot` to get the standard DS checkbox
13
+ * visuals — the standalone `Checkbox` and the `CheckboxPullDown` both consume
14
+ * it.
15
+ */
16
+ export declare const CheckboxIndicator: ({ variant, className }: CheckboxIndicatorProps) => import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=CheckboxIndicator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxIndicator.d.ts","sourceRoot":"","sources":["../../../../src/components/input/Checkbox/CheckboxIndicator.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,QAAQ,CAAC;AA6D5D,MAAM,MAAM,sBAAsB,GAAG;IACnC,sGAAsG;IACtG,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC,qGAAqG;IACrG,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAAI,wBAAwB,sBAAsB,4CAO/E,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from "./Checkbox";
2
+ export * from "./CheckboxIndicator";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/input/Checkbox/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/input/Checkbox/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC"}