@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.
- package/components/input/Checkbox/Checkbox.d.ts +2 -1
- package/components/input/Checkbox/Checkbox.d.ts.map +1 -1
- package/components/input/Checkbox/CheckboxIndicator.d.ts +17 -0
- package/components/input/Checkbox/CheckboxIndicator.d.ts.map +1 -0
- package/components/input/Checkbox/index.d.ts +1 -0
- package/components/input/Checkbox/index.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.mjs +9482 -9479
- package/package.json +1 -1
|
@@ -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?:
|
|
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":"
|
|
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 +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"}
|