@nimbus-ds/components 5.26.0 → 5.28.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/CHANGELOG.md +12 -0
- package/dist/CHANGELOG.md +12 -0
- package/dist/Select/index.d.ts +7 -1
- package/dist/Select/index.js +1 -1
- package/dist/Textarea/index.d.ts +22 -1
- package/dist/Textarea/index.js +1 -1
- package/dist/components-props.json +1 -1
- package/dist/index.d.ts +29 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2806,7 +2806,13 @@ export interface SelectProperties {
|
|
|
2806
2806
|
* Change the visual style of the select.
|
|
2807
2807
|
* @default neutral
|
|
2808
2808
|
*/
|
|
2809
|
-
appearance?: "success" | "warning" | "danger" | "neutral";
|
|
2809
|
+
appearance?: "success" | "warning" | "danger" | "neutral" | "ai-generative";
|
|
2810
|
+
/**
|
|
2811
|
+
* Shows ai-generative appearance with active ai focus shadow.
|
|
2812
|
+
* When true, this styling takes precedence over `appearance`.
|
|
2813
|
+
* @default false
|
|
2814
|
+
*/
|
|
2815
|
+
aiGenerated?: boolean;
|
|
2810
2816
|
}
|
|
2811
2817
|
export declare const Select: React.ForwardRefExoticComponent<SelectProperties & React.SelectHTMLAttributes<HTMLSelectElement> & React.InputHTMLAttributes<HTMLSelectElement> & React.RefAttributes<HTMLSelectElement>> & SelectComponents;
|
|
2812
2818
|
export type SelectProps = ComponentPropsWithRef<typeof Select>;
|
|
@@ -2882,16 +2888,37 @@ export interface TextareaProperties {
|
|
|
2882
2888
|
* Change the visual style of the textarea.
|
|
2883
2889
|
* @default neutral
|
|
2884
2890
|
*/
|
|
2885
|
-
appearance?: "neutral" | "success" | "warning" | "danger" | "ai-generative";
|
|
2891
|
+
appearance?: "neutral" | "success" | "warning" | "danger" | "ai-generative" | "transparent";
|
|
2886
2892
|
/**
|
|
2887
2893
|
* Number of lines to be rendered for the user to input text
|
|
2888
2894
|
* @default 2
|
|
2889
2895
|
*/
|
|
2890
2896
|
lines?: number;
|
|
2897
|
+
/**
|
|
2898
|
+
* Controls intrinsic sizing behavior of the field. When true, the textarea will grow with content up to the maxLines limit (if provided) and then scroll.
|
|
2899
|
+
* @default false
|
|
2900
|
+
*/
|
|
2901
|
+
autoGrow?: boolean;
|
|
2902
|
+
/**
|
|
2903
|
+
* Caps the textarea visual height to the given number of lines.
|
|
2904
|
+
* When used together with autoGrow=true, the textarea will grow
|
|
2905
|
+
* with content up to this limit and then scroll.
|
|
2906
|
+
*/
|
|
2907
|
+
maxLines?: number;
|
|
2908
|
+
/**
|
|
2909
|
+
* Sets the minimum height of the textarea to the given number of lines.
|
|
2910
|
+
* The textarea will never shrink below this height, even when empty.
|
|
2911
|
+
*/
|
|
2912
|
+
minLines?: number;
|
|
2891
2913
|
/**
|
|
2892
2914
|
* ID of the textarea
|
|
2893
2915
|
* */
|
|
2894
2916
|
id: string;
|
|
2917
|
+
/**
|
|
2918
|
+
* Enable/disable textarea resize functionality
|
|
2919
|
+
* @default true
|
|
2920
|
+
*/
|
|
2921
|
+
resize?: boolean;
|
|
2895
2922
|
}
|
|
2896
2923
|
export declare const Textarea: React.ForwardRefExoticComponent<TextareaProperties & React.TextareaHTMLAttributes<HTMLTextAreaElement> & React.InputHTMLAttributes<HTMLTextAreaElement> & React.RefAttributes<HTMLTextAreaElement>> & TextareaComponents;
|
|
2897
2924
|
export type TextareaProps = ComponentPropsWithRef<typeof Textarea>;
|