@cambly/syntax-core 5.9.0 → 5.10.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/index.d.ts +5 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -781,7 +781,7 @@ declare const RadioButton: ({ checked, "data-testid": dataTestId, disabled, erro
|
|
|
781
781
|
}) => ReactElement;
|
|
782
782
|
|
|
783
783
|
declare const SelectList: {
|
|
784
|
-
({ children, "data-testid": dataTestId, disabled, errorText, helperText, label, onChange, placeholderText, selectedValue, size, }: {
|
|
784
|
+
({ children, "data-testid": dataTestId, disabled, errorText, helperText, label, onChange, onClick, placeholderText, selectedValue, size, }: {
|
|
785
785
|
/**
|
|
786
786
|
* One or more SelectList.Option components.
|
|
787
787
|
*/
|
|
@@ -795,6 +795,10 @@ declare const SelectList: {
|
|
|
795
795
|
* @defaultValue false
|
|
796
796
|
*/
|
|
797
797
|
disabled?: boolean | undefined;
|
|
798
|
+
/**
|
|
799
|
+
* Callback to be called when select is clicked
|
|
800
|
+
*/
|
|
801
|
+
onClick?: React__default.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
798
802
|
/**
|
|
799
803
|
* Text shown below select box if there is an input error.
|
|
800
804
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1224,6 +1224,7 @@ var SelectList = ({
|
|
|
1224
1224
|
helperText,
|
|
1225
1225
|
label,
|
|
1226
1226
|
onChange,
|
|
1227
|
+
onClick,
|
|
1227
1228
|
placeholderText,
|
|
1228
1229
|
selectedValue = "",
|
|
1229
1230
|
size = "md"
|
|
@@ -1256,7 +1257,7 @@ var SelectList = ({
|
|
|
1256
1257
|
// for focus mouse
|
|
1257
1258
|
}),
|
|
1258
1259
|
onChange,
|
|
1259
|
-
onClick
|
|
1260
|
+
onClick,
|
|
1260
1261
|
value: placeholderText && !selectedValue ? placeholderText : selectedValue,
|
|
1261
1262
|
onFocus: () => setIsFocused(true),
|
|
1262
1263
|
onBlur: () => setIsFocused(false),
|