@worldresources/wri-design-systems 2.199.0 → 2.200.1
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.js +132 -121
- package/dist/index.d.ts +7 -4
- package/dist/index.esm.js +128 -117
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1127,15 +1127,16 @@ type TextareaProps = Omit<TextareaProps$1, 'size' | 'variant' | 'colorPalette' |
|
|
|
1127
1127
|
required?: boolean;
|
|
1128
1128
|
disabled?: boolean;
|
|
1129
1129
|
size?: 'small' | 'default';
|
|
1130
|
+
showOptionalLabel?: boolean;
|
|
1130
1131
|
defaultValue?: string;
|
|
1131
|
-
onChange?: (e: React.ChangeEvent<
|
|
1132
|
+
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
1132
1133
|
minLength?: number;
|
|
1133
1134
|
maxLength?: number;
|
|
1134
1135
|
/** Override internal UI labels for internationalization support. */
|
|
1135
1136
|
labels?: Partial<TextareaLabels>;
|
|
1136
1137
|
};
|
|
1137
1138
|
|
|
1138
|
-
declare const Textarea: ({ label, caption, placeholder, errorMessage, required, disabled, size, defaultValue, onChange, minLength, maxLength, labels, ...rest }: TextareaProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1139
|
+
declare const Textarea: ({ label, caption, placeholder, errorMessage, required, disabled, size, showOptionalLabel, defaultValue, onChange, minLength, maxLength, labels, ...rest }: TextareaProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1139
1140
|
|
|
1140
1141
|
type TextInputProps = Omit<InputProps, 'size' | 'variant' | 'colorPalette' | 'defaultChecked'> & {
|
|
1141
1142
|
label?: string;
|
|
@@ -1145,6 +1146,7 @@ type TextInputProps = Omit<InputProps, 'size' | 'variant' | 'colorPalette' | 'de
|
|
|
1145
1146
|
required?: boolean;
|
|
1146
1147
|
disabled?: boolean;
|
|
1147
1148
|
size?: 'small' | 'default';
|
|
1149
|
+
showOptionalLabel?: boolean;
|
|
1148
1150
|
noMarginBottom?: boolean;
|
|
1149
1151
|
defaultValue?: string;
|
|
1150
1152
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -1152,7 +1154,7 @@ type TextInputProps = Omit<InputProps, 'size' | 'variant' | 'colorPalette' | 'de
|
|
|
1152
1154
|
labels?: Partial<TextInputLabels>;
|
|
1153
1155
|
};
|
|
1154
1156
|
|
|
1155
|
-
declare const TextInput: ({ label, caption, placeholder, errorMessage, required, disabled, size, noMarginBottom, defaultValue, onChange, labels, ...rest }: TextInputProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1157
|
+
declare const TextInput: ({ label, caption, placeholder, errorMessage, required, disabled, size, showOptionalLabel, noMarginBottom, defaultValue, onChange, labels, ...rest }: TextInputProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1156
1158
|
|
|
1157
1159
|
type ComboboxProps = {
|
|
1158
1160
|
initialItems?: {
|
|
@@ -1165,6 +1167,7 @@ type ComboboxProps = {
|
|
|
1165
1167
|
errorMessage?: string;
|
|
1166
1168
|
size?: 'small' | 'default';
|
|
1167
1169
|
disabled?: boolean;
|
|
1170
|
+
showOptionalLabel?: boolean;
|
|
1168
1171
|
placeholder?: string;
|
|
1169
1172
|
labels?: Partial<ComboboxLabels>;
|
|
1170
1173
|
noMarginBottom?: boolean;
|
|
@@ -1172,7 +1175,7 @@ type ComboboxProps = {
|
|
|
1172
1175
|
showSelectedItems?: boolean;
|
|
1173
1176
|
};
|
|
1174
1177
|
|
|
1175
|
-
declare const Combobox: ({ label, required, caption, errorMessage, size, disabled, placeholder, labels, noMarginBottom, initialItems, multiple, showSelectedItems, }: ComboboxProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1178
|
+
declare const Combobox: ({ label, required, caption, errorMessage, size, disabled, showOptionalLabel, placeholder, labels, noMarginBottom, initialItems, multiple, showSelectedItems, }: ComboboxProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1176
1179
|
|
|
1177
1180
|
type TagProps = Omit<Tag$1.RootProps, 'size' | 'variant' | 'colorPalette' | 'children'> & {
|
|
1178
1181
|
label: string;
|