@worldresources/wri-design-systems 2.167.0 → 2.169.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 CHANGED
@@ -236,8 +236,13 @@ type SwitchProps = Omit<Switch$1.RootProps, 'size' | 'variant' | 'colorPalette'
236
236
 
237
237
  declare const Switch: ({ name, defaultChecked, onChange, disabled, isLabelOnLeft, children, ...rest }: SwitchProps) => _emotion_react_jsx_runtime.JSX.Element;
238
238
 
239
- type CheckboxListProps = {
239
+ type CheckboxListLabel = string | {
240
+ type: 'checkbox';
240
241
  label: string;
242
+ name: string;
243
+ };
244
+ type CheckboxListProps = {
245
+ label: CheckboxListLabel;
241
246
  caption?: string;
242
247
  checkboxes: CheckboxProps[];
243
248
  defaultValue?: string;
@@ -247,9 +252,11 @@ type CheckboxListProps = {
247
252
  errorMessage?: string;
248
253
  horizontal?: boolean;
249
254
  required?: boolean;
255
+ hideCheckedCounter?: boolean;
256
+ hideExpandToggle?: boolean;
250
257
  };
251
258
 
252
- declare const CheckboxList: ({ label, caption, checkboxes, defaultValue, onCheckedChange, errorMessage, horizontal, required, }: CheckboxListProps) => _emotion_react_jsx_runtime.JSX.Element;
259
+ declare const CheckboxList: ({ label, caption, checkboxes, defaultValue, onCheckedChange, errorMessage, horizontal, required, hideCheckedCounter, hideExpandToggle, }: CheckboxListProps) => _emotion_react_jsx_runtime.JSX.Element;
253
260
 
254
261
  type InputWithUnitsProps = {
255
262
  label: string;