@graphty/compact-mantine 0.9.28 → 0.9.29
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/index.cjs +86 -79
- package/dist/index.d.cts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +1615 -1606
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -714,6 +714,8 @@ export declare const compactBrandColors: MantineColorsTuple;
|
|
|
714
714
|
* @param props.onBlur - Called when the hex box or the opacity box loses focus
|
|
715
715
|
* @param props.width - The field's width
|
|
716
716
|
* @param props.showReset - Whether to offer the reset button
|
|
717
|
+
* @param props.hideLabel - Whether the label only names the controls and is not drawn
|
|
718
|
+
* @param props.swatches - The swatches the picker offers in place of the built-in set
|
|
717
719
|
* @returns The paint field, and its reset button when something has been set
|
|
718
720
|
* @example
|
|
719
721
|
* ```tsx
|
|
@@ -724,7 +726,7 @@ export declare const compactBrandColors: MantineColorsTuple;
|
|
|
724
726
|
* </PopoutManager>
|
|
725
727
|
* ```
|
|
726
728
|
*/
|
|
727
|
-
export declare function CompactColorInput({ color, defaultColor, opacity, defaultOpacity, onColorChange, onOpacityChange, onChange, label, showOpacity, disabled, disabledReason, onFocus, onBlur, width, showReset, }: CompactColorInputProps): default_2.JSX.Element;
|
|
729
|
+
export declare function CompactColorInput({ color, defaultColor, opacity, defaultOpacity, onColorChange, onOpacityChange, onChange, label, showOpacity, disabled, disabledReason, onFocus, onBlur, width, showReset, hideLabel, swatches, }: CompactColorInputProps): default_2.JSX.Element;
|
|
728
730
|
|
|
729
731
|
/**
|
|
730
732
|
* Props for the CompactColorInput component.
|
|
@@ -863,6 +865,19 @@ export declare interface CompactColorInputProps {
|
|
|
863
865
|
* @default true
|
|
864
866
|
*/
|
|
865
867
|
showReset?: boolean;
|
|
868
|
+
/**
|
|
869
|
+
* Whether to use `label` only to name the controls, without drawing it above them or
|
|
870
|
+
* grouping them under it. For a field whose name is already drawn beside it, such as the
|
|
871
|
+
* value of a `FieldRow` that shows the property's name in its own column.
|
|
872
|
+
* @default false
|
|
873
|
+
*/
|
|
874
|
+
hideLabel?: boolean;
|
|
875
|
+
/**
|
|
876
|
+
* The swatches the picker offers, as `#RRGGBB` or `#RRGGBBAA` strings, in place of the
|
|
877
|
+
* built-in set: the colors a document already uses, for example. An empty list offers none.
|
|
878
|
+
* @default the built-in swatch set
|
|
879
|
+
*/
|
|
880
|
+
swatches?: readonly string[];
|
|
866
881
|
}
|
|
867
882
|
|
|
868
883
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -714,6 +714,8 @@ export declare const compactBrandColors: MantineColorsTuple;
|
|
|
714
714
|
* @param props.onBlur - Called when the hex box or the opacity box loses focus
|
|
715
715
|
* @param props.width - The field's width
|
|
716
716
|
* @param props.showReset - Whether to offer the reset button
|
|
717
|
+
* @param props.hideLabel - Whether the label only names the controls and is not drawn
|
|
718
|
+
* @param props.swatches - The swatches the picker offers in place of the built-in set
|
|
717
719
|
* @returns The paint field, and its reset button when something has been set
|
|
718
720
|
* @example
|
|
719
721
|
* ```tsx
|
|
@@ -724,7 +726,7 @@ export declare const compactBrandColors: MantineColorsTuple;
|
|
|
724
726
|
* </PopoutManager>
|
|
725
727
|
* ```
|
|
726
728
|
*/
|
|
727
|
-
export declare function CompactColorInput({ color, defaultColor, opacity, defaultOpacity, onColorChange, onOpacityChange, onChange, label, showOpacity, disabled, disabledReason, onFocus, onBlur, width, showReset, }: CompactColorInputProps): default_2.JSX.Element;
|
|
729
|
+
export declare function CompactColorInput({ color, defaultColor, opacity, defaultOpacity, onColorChange, onOpacityChange, onChange, label, showOpacity, disabled, disabledReason, onFocus, onBlur, width, showReset, hideLabel, swatches, }: CompactColorInputProps): default_2.JSX.Element;
|
|
728
730
|
|
|
729
731
|
/**
|
|
730
732
|
* Props for the CompactColorInput component.
|
|
@@ -863,6 +865,19 @@ export declare interface CompactColorInputProps {
|
|
|
863
865
|
* @default true
|
|
864
866
|
*/
|
|
865
867
|
showReset?: boolean;
|
|
868
|
+
/**
|
|
869
|
+
* Whether to use `label` only to name the controls, without drawing it above them or
|
|
870
|
+
* grouping them under it. For a field whose name is already drawn beside it, such as the
|
|
871
|
+
* value of a `FieldRow` that shows the property's name in its own column.
|
|
872
|
+
* @default false
|
|
873
|
+
*/
|
|
874
|
+
hideLabel?: boolean;
|
|
875
|
+
/**
|
|
876
|
+
* The swatches the picker offers, as `#RRGGBB` or `#RRGGBBAA` strings, in place of the
|
|
877
|
+
* built-in set: the colors a document already uses, for example. An empty list offers none.
|
|
878
|
+
* @default the built-in swatch set
|
|
879
|
+
*/
|
|
880
|
+
swatches?: readonly string[];
|
|
866
881
|
}
|
|
867
882
|
|
|
868
883
|
/**
|