@pixerate/editor-react 0.98.0 → 0.100.0
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/animation-editor/index.cjs +11 -7
- package/dist/animation-editor/index.js +7 -7
- package/dist/canvas/index.cjs +20 -11
- package/dist/canvas/index.js +14 -9
- package/dist/canvas/useCanvasPlaybackSurface.d.cts +8 -2
- package/dist/canvas/useCanvasPlaybackSurface.d.ts +8 -2
- package/dist/chart/index.cjs +8 -4
- package/dist/chart/index.js +2 -2
- package/dist/{chunk-S6C2W5JW.js → chunk-EP6MSQN4.js} +1 -1
- package/dist/{chunk-AILJ4JOW.js → chunk-GDPWLGPD.js} +3 -3
- package/dist/{chunk-SI2V7XPZ.js → chunk-GNO54NFG.js} +5 -1
- package/dist/{chunk-TFEKLNC7.js → chunk-OTDAEVHW.js} +415 -358
- package/dist/{chunk-NEQI2ZIU.js → chunk-V2YC5T4R.js} +14 -8
- package/dist/image-editor/AdjustmentLayersPanel.d.cts +2 -0
- package/dist/image-editor/AdjustmentLayersPanel.d.ts +2 -0
- package/dist/image-editor/ControlSlider.d.cts +2 -0
- package/dist/image-editor/ControlSlider.d.ts +2 -0
- package/dist/image-editor/CurvesEditor.d.cts +2 -0
- package/dist/image-editor/CurvesEditor.d.ts +2 -0
- package/dist/image-editor/ImageEffectControls.d.cts +3 -1
- package/dist/image-editor/ImageEffectControls.d.ts +3 -1
- package/dist/image-editor/index.cjs +423 -361
- package/dist/image-editor/index.js +2 -2
- package/dist/image-editor/styles.d.cts +51 -0
- package/dist/image-editor/styles.d.ts +51 -0
- package/dist/index.cjs +461 -395
- package/dist/index.js +5 -5
- package/dist/paint-editor/index.cjs +8 -4
- package/dist/paint-editor/index.js +4 -4
- package/dist/parameters/index.cjs +18 -8
- package/dist/parameters/index.js +2 -2
- package/dist/playback/useElementPlaybackSurface.d.cts +5 -4
- package/dist/playback/useElementPlaybackSurface.d.ts +5 -4
- package/dist/spreadsheet/index.cjs +5 -1
- package/dist/spreadsheet/index.js +2 -2
- package/dist/vector/index.cjs +5 -1
- package/dist/vector/index.js +1 -1
- package/dist/video-editor/index.cjs +11 -7
- package/dist/video-editor/index.js +7 -7
- package/package.json +3 -3
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
useImageEditor,
|
|
21
21
|
useImageEffectsTools,
|
|
22
22
|
useImageHistogram
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-OTDAEVHW.js";
|
|
24
24
|
import "../chunk-AJCWF6SN.js";
|
|
25
25
|
import "../chunk-Q7LAFHGP.js";
|
|
26
26
|
import "../chunk-5LFQ2UQZ.js";
|
|
27
27
|
import "../chunk-KIRIU53A.js";
|
|
28
28
|
import "../chunk-3I7FOSLF.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-GNO54NFG.js";
|
|
30
30
|
export {
|
|
31
31
|
AdjustmentLayersPanel,
|
|
32
32
|
BrushOptionsBar,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tailwind classes shared by the image editor and its panels (same in the React and Svelte
|
|
3
|
+
* packages). They use shadcn theme tokens (`background`, `foreground`, `muted`, `accent`,
|
|
4
|
+
* `border`, `input`, `primary`, `destructive`), so the editor follows the host's light or dark theme.
|
|
5
|
+
*/
|
|
6
|
+
/** The editor's frame. */
|
|
7
|
+
export declare const imageEditorFrameClass = "relative flex flex-col bg-background border border-border rounded-xl overflow-hidden shadow-sm text-foreground";
|
|
8
|
+
/** The bar above the canvas (tabs and global actions). */
|
|
9
|
+
export declare const imageEditorHeaderClass = "flex flex-wrap items-center justify-between px-4 py-3 bg-muted/40 border-b border-border gap-3";
|
|
10
|
+
/** The tab strip. */
|
|
11
|
+
export declare const imageTabListClass = "flex items-center gap-1 bg-background p-1 rounded-lg border border-border text-xs";
|
|
12
|
+
/** A tab of the editor, highlighted when `active`. */
|
|
13
|
+
export declare const imageTabClass: (active: boolean) => string;
|
|
14
|
+
/** A bordered button in the header (undo, redo, zoom…). */
|
|
15
|
+
export declare const imageHeaderButtonClass = "p-1.5 rounded-lg border border-border bg-background text-foreground hover:bg-muted disabled:opacity-40 disabled:cursor-not-allowed";
|
|
16
|
+
/** The primary action (export, apply). */
|
|
17
|
+
export declare const imagePrimaryButtonClass = "rounded-lg bg-primary hover:bg-primary/90 text-primary-foreground font-medium shadow transition-colors disabled:opacity-50";
|
|
18
|
+
/** The side panel next to the canvas. */
|
|
19
|
+
export declare const imageSidebarClass = "w-full md:w-80 bg-background border-t md:border-t-0 md:border-l border-border p-4 overflow-y-auto h-auto md:h-full md:max-h-[560px]";
|
|
20
|
+
/** The canvas area's background. */
|
|
21
|
+
export declare const imageCanvasAreaClass = "bg-muted";
|
|
22
|
+
/** A small uppercase section title. */
|
|
23
|
+
export declare const imageSectionTitleClass = "font-semibold text-foreground uppercase tracking-wider text-[11px]";
|
|
24
|
+
/** A section under a rule. */
|
|
25
|
+
export declare const imageSectionClass = "border-t border-border pt-3";
|
|
26
|
+
/** A thin rule between groups of controls. */
|
|
27
|
+
export declare const imageDividerClass = "h-px bg-border my-1";
|
|
28
|
+
/** A small secondary button. */
|
|
29
|
+
export declare const imageSmallButtonClass = "px-2 py-1 rounded text-[11px] bg-muted text-foreground hover:bg-accent hover:text-accent-foreground self-start disabled:opacity-40";
|
|
30
|
+
/** A tiny button in a row (layer actions, effect actions). */
|
|
31
|
+
export declare const imageIconButtonClass = "px-1.5 py-0.5 rounded text-[10px] bg-muted text-foreground hover:bg-accent hover:text-accent-foreground disabled:opacity-40";
|
|
32
|
+
/** An outlined tiny button. */
|
|
33
|
+
export declare const imageOutlineButtonClass = "rounded border border-border px-1.5 py-0.5 text-[11px] text-foreground hover:bg-muted disabled:opacity-40";
|
|
34
|
+
/** A toggle chip, filled when `on`. */
|
|
35
|
+
export declare const imageChipClass: (on: boolean) => string;
|
|
36
|
+
/** A bordered choice button, highlighted when `on`. */
|
|
37
|
+
export declare const imageChoiceClass: (on: boolean) => string;
|
|
38
|
+
/** A text or number field. */
|
|
39
|
+
export declare const imageFieldClass = "rounded border border-input bg-background px-1 py-0.5 text-foreground";
|
|
40
|
+
/** A select. */
|
|
41
|
+
export declare const imageSelectClass = "rounded border border-input bg-background px-1.5 py-1 text-foreground";
|
|
42
|
+
/** A colour input swatch. */
|
|
43
|
+
export declare const imageColorInputClass = "h-6 w-8 rounded border border-border bg-transparent";
|
|
44
|
+
/** A full-width range slider. */
|
|
45
|
+
export declare const imageRangeClass = "w-full accent-primary";
|
|
46
|
+
/** An error message. */
|
|
47
|
+
export declare const imageErrorClass = "text-destructive";
|
|
48
|
+
/** An error banner. */
|
|
49
|
+
export declare const imageErrorBannerClass = "border-b border-destructive/40 bg-destructive/10 px-4 py-1.5 text-xs text-destructive";
|
|
50
|
+
/** A spinner on a primary button. */
|
|
51
|
+
export declare const imageSpinnerClass = "w-3.5 h-3.5 border-2 border-primary-foreground/30 border-t-primary-foreground rounded-full animate-spin";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tailwind classes shared by the image editor and its panels (same in the React and Svelte
|
|
3
|
+
* packages). They use shadcn theme tokens (`background`, `foreground`, `muted`, `accent`,
|
|
4
|
+
* `border`, `input`, `primary`, `destructive`), so the editor follows the host's light or dark theme.
|
|
5
|
+
*/
|
|
6
|
+
/** The editor's frame. */
|
|
7
|
+
export declare const imageEditorFrameClass = "relative flex flex-col bg-background border border-border rounded-xl overflow-hidden shadow-sm text-foreground";
|
|
8
|
+
/** The bar above the canvas (tabs and global actions). */
|
|
9
|
+
export declare const imageEditorHeaderClass = "flex flex-wrap items-center justify-between px-4 py-3 bg-muted/40 border-b border-border gap-3";
|
|
10
|
+
/** The tab strip. */
|
|
11
|
+
export declare const imageTabListClass = "flex items-center gap-1 bg-background p-1 rounded-lg border border-border text-xs";
|
|
12
|
+
/** A tab of the editor, highlighted when `active`. */
|
|
13
|
+
export declare const imageTabClass: (active: boolean) => string;
|
|
14
|
+
/** A bordered button in the header (undo, redo, zoom…). */
|
|
15
|
+
export declare const imageHeaderButtonClass = "p-1.5 rounded-lg border border-border bg-background text-foreground hover:bg-muted disabled:opacity-40 disabled:cursor-not-allowed";
|
|
16
|
+
/** The primary action (export, apply). */
|
|
17
|
+
export declare const imagePrimaryButtonClass = "rounded-lg bg-primary hover:bg-primary/90 text-primary-foreground font-medium shadow transition-colors disabled:opacity-50";
|
|
18
|
+
/** The side panel next to the canvas. */
|
|
19
|
+
export declare const imageSidebarClass = "w-full md:w-80 bg-background border-t md:border-t-0 md:border-l border-border p-4 overflow-y-auto h-auto md:h-full md:max-h-[560px]";
|
|
20
|
+
/** The canvas area's background. */
|
|
21
|
+
export declare const imageCanvasAreaClass = "bg-muted";
|
|
22
|
+
/** A small uppercase section title. */
|
|
23
|
+
export declare const imageSectionTitleClass = "font-semibold text-foreground uppercase tracking-wider text-[11px]";
|
|
24
|
+
/** A section under a rule. */
|
|
25
|
+
export declare const imageSectionClass = "border-t border-border pt-3";
|
|
26
|
+
/** A thin rule between groups of controls. */
|
|
27
|
+
export declare const imageDividerClass = "h-px bg-border my-1";
|
|
28
|
+
/** A small secondary button. */
|
|
29
|
+
export declare const imageSmallButtonClass = "px-2 py-1 rounded text-[11px] bg-muted text-foreground hover:bg-accent hover:text-accent-foreground self-start disabled:opacity-40";
|
|
30
|
+
/** A tiny button in a row (layer actions, effect actions). */
|
|
31
|
+
export declare const imageIconButtonClass = "px-1.5 py-0.5 rounded text-[10px] bg-muted text-foreground hover:bg-accent hover:text-accent-foreground disabled:opacity-40";
|
|
32
|
+
/** An outlined tiny button. */
|
|
33
|
+
export declare const imageOutlineButtonClass = "rounded border border-border px-1.5 py-0.5 text-[11px] text-foreground hover:bg-muted disabled:opacity-40";
|
|
34
|
+
/** A toggle chip, filled when `on`. */
|
|
35
|
+
export declare const imageChipClass: (on: boolean) => string;
|
|
36
|
+
/** A bordered choice button, highlighted when `on`. */
|
|
37
|
+
export declare const imageChoiceClass: (on: boolean) => string;
|
|
38
|
+
/** A text or number field. */
|
|
39
|
+
export declare const imageFieldClass = "rounded border border-input bg-background px-1 py-0.5 text-foreground";
|
|
40
|
+
/** A select. */
|
|
41
|
+
export declare const imageSelectClass = "rounded border border-input bg-background px-1.5 py-1 text-foreground";
|
|
42
|
+
/** A colour input swatch. */
|
|
43
|
+
export declare const imageColorInputClass = "h-6 w-8 rounded border border-border bg-transparent";
|
|
44
|
+
/** A full-width range slider. */
|
|
45
|
+
export declare const imageRangeClass = "w-full accent-primary";
|
|
46
|
+
/** An error message. */
|
|
47
|
+
export declare const imageErrorClass = "text-destructive";
|
|
48
|
+
/** An error banner. */
|
|
49
|
+
export declare const imageErrorBannerClass = "border-b border-destructive/40 bg-destructive/10 px-4 py-1.5 text-xs text-destructive";
|
|
50
|
+
/** A spinner on a primary button. */
|
|
51
|
+
export declare const imageSpinnerClass = "w-3.5 h-3.5 border-2 border-primary-foreground/30 border-t-primary-foreground rounded-full animate-spin";
|