@ws-ui/ui-components 1.0.11 → 1.0.12
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 +15 -15
- package/dist/index.d.ts +38 -0
- package/dist/index.js +2095 -2048
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.js +1 -1
- package/dist/ui-components.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3313,6 +3313,44 @@ export declare const Select: {
|
|
|
3313
3313
|
}) => React.ReactElement;
|
|
3314
3314
|
};
|
|
3315
3315
|
|
|
3316
|
+
/**
|
|
3317
|
+
* Adapter component to usage the system Select with the legacy interface.
|
|
3318
|
+
* Original interface:
|
|
3319
|
+
* {
|
|
3320
|
+
* value: string;
|
|
3321
|
+
* onChange: (val: string) => void;
|
|
3322
|
+
* options: { name: string }[];
|
|
3323
|
+
* errorMessage?: string;
|
|
3324
|
+
* onBlur?: () => void;
|
|
3325
|
+
* }
|
|
3326
|
+
*/
|
|
3327
|
+
export declare const SelectAdapter: ({ value, onChange, options, errorMessage, onBlur, }: SelectAdapterProps) => JSX_2.Element;
|
|
3328
|
+
|
|
3329
|
+
declare interface SelectAdapterProps {
|
|
3330
|
+
/**
|
|
3331
|
+
* The current value of the select (name property of the option)
|
|
3332
|
+
*/
|
|
3333
|
+
value: string;
|
|
3334
|
+
/**
|
|
3335
|
+
* Callback when value changes. Returns the name property.
|
|
3336
|
+
*/
|
|
3337
|
+
onChange: (val: string) => void;
|
|
3338
|
+
/**
|
|
3339
|
+
* List of options. Each option must have a name property.
|
|
3340
|
+
*/
|
|
3341
|
+
options: {
|
|
3342
|
+
name: string;
|
|
3343
|
+
}[];
|
|
3344
|
+
/**
|
|
3345
|
+
* Error message to display. If provided, shows error state.
|
|
3346
|
+
*/
|
|
3347
|
+
errorMessage?: string;
|
|
3348
|
+
/**
|
|
3349
|
+
* Blur handler
|
|
3350
|
+
*/
|
|
3351
|
+
onBlur?: () => void;
|
|
3352
|
+
}
|
|
3353
|
+
|
|
3316
3354
|
export declare interface SelectClearIndicatorProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
3317
3355
|
color?: SelectColor;
|
|
3318
3356
|
className?: string;
|