@bcgov/design-system-react-components 0.1.1-pr429 → 0.1.1-pr431
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/cjs/index.cjs +3 -3
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/components/Select/Select.d.ts +4 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Select/Select.d.ts +4 -1
- package/dist/index.d.ts +4 -1
- package/package.json +1 -1
|
@@ -31,7 +31,10 @@ export interface SelectProps<T extends object> extends ReactAriaSelectProps<T> {
|
|
|
31
31
|
placeholder?: string;
|
|
32
32
|
/** Defaults to `medium` */
|
|
33
33
|
size?: "small" | "medium";
|
|
34
|
+
/** Description or helper text that renders below the select input */
|
|
35
|
+
description?: string;
|
|
36
|
+
/** Used for data validation and error handling */
|
|
34
37
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
35
38
|
}
|
|
36
39
|
/** Select displays a collapsible list of options and allows a user to select one of them. */
|
|
37
|
-
export default function Select<T extends object>({ items, sections, label, placeholder, size, errorMessage, ...props }: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export default function Select<T extends object>({ items, sections, label, description, placeholder, size, errorMessage, ...props }: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -147,10 +147,13 @@ interface SelectProps<T extends object> extends SelectProps$1<T> {
|
|
|
147
147
|
placeholder?: string;
|
|
148
148
|
/** Defaults to `medium` */
|
|
149
149
|
size?: "small" | "medium";
|
|
150
|
+
/** Description or helper text that renders below the select input */
|
|
151
|
+
description?: string;
|
|
152
|
+
/** Used for data validation and error handling */
|
|
150
153
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
151
154
|
}
|
|
152
155
|
/** Select displays a collapsible list of options and allows a user to select one of them. */
|
|
153
|
-
declare function Select<T extends object>({ items, sections, label, placeholder, size, errorMessage, ...props }: SelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
156
|
+
declare function Select<T extends object>({ items, sections, label, description, placeholder, size, errorMessage, ...props }: SelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
154
157
|
|
|
155
158
|
declare function SvgBcLogo({ id }: {
|
|
156
159
|
id?: string | undefined;
|