@carbonplan/components 13.3.0 → 13.4.0-develop.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/dst/index.d.mts CHANGED
@@ -224,6 +224,14 @@ interface HeaderProps {
224
224
  }
225
225
  declare const Header: ({ status, mode, nav, menuItems }: HeaderProps) => React.JSX.Element;
226
226
 
227
+ interface HeaderIconProps extends Omit<IconButtonProps, 'value'> {
228
+ value?: boolean;
229
+ label?: string;
230
+ }
231
+
232
+ type MenuProps = HeaderIconProps;
233
+ declare const Menu: (props: HeaderIconProps) => React.JSX.Element;
234
+
227
235
  interface HeadingProps {
228
236
  children: ReactNode;
229
237
  sidenote?: ReactNode;
@@ -241,11 +249,10 @@ interface InputProps extends Omit<React.ComponentPropsWithRef<typeof Input>, 'si
241
249
  }
242
250
  declare const _default$3: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
243
251
 
244
- interface SettingsProps extends Omit<IconButtonProps, 'value' | 'onClick'> {
245
- value: boolean;
252
+ interface SettingsProps extends Omit<HeaderIconProps, 'onClick'> {
246
253
  onClick?: (e?: React.MouseEvent<HTMLButtonElement>) => void;
247
254
  }
248
- declare const Settings: ({ value, sx, ...props }: SettingsProps) => React.JSX.Element;
255
+ declare const Settings: (props: SettingsProps) => React.JSX.Element;
249
256
 
250
257
  interface LayoutProps {
251
258
  title?: string;
@@ -293,11 +300,6 @@ declare const LinkGroup: ({ members, color, inverted, size, rowGap, columnGap, d
293
300
  type LogoProps = BoxProps;
294
301
  declare const Logo: ({ ...props }: LogoProps) => React.JSX.Element;
295
302
 
296
- interface MenuProps extends Omit<IconButtonProps, 'value'> {
297
- value?: boolean;
298
- }
299
- declare const Menu: ({ value, sx, ...props }: MenuProps) => React.JSX.Element;
300
-
301
303
  interface MetaProps {
302
304
  title?: string;
303
305
  description?: string;
package/dst/index.d.ts CHANGED
@@ -224,6 +224,14 @@ interface HeaderProps {
224
224
  }
225
225
  declare const Header: ({ status, mode, nav, menuItems }: HeaderProps) => React.JSX.Element;
226
226
 
227
+ interface HeaderIconProps extends Omit<IconButtonProps, 'value'> {
228
+ value?: boolean;
229
+ label?: string;
230
+ }
231
+
232
+ type MenuProps = HeaderIconProps;
233
+ declare const Menu: (props: HeaderIconProps) => React.JSX.Element;
234
+
227
235
  interface HeadingProps {
228
236
  children: ReactNode;
229
237
  sidenote?: ReactNode;
@@ -241,11 +249,10 @@ interface InputProps extends Omit<React.ComponentPropsWithRef<typeof Input>, 'si
241
249
  }
242
250
  declare const _default$3: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
243
251
 
244
- interface SettingsProps extends Omit<IconButtonProps, 'value' | 'onClick'> {
245
- value: boolean;
252
+ interface SettingsProps extends Omit<HeaderIconProps, 'onClick'> {
246
253
  onClick?: (e?: React.MouseEvent<HTMLButtonElement>) => void;
247
254
  }
248
- declare const Settings: ({ value, sx, ...props }: SettingsProps) => React.JSX.Element;
255
+ declare const Settings: (props: SettingsProps) => React.JSX.Element;
249
256
 
250
257
  interface LayoutProps {
251
258
  title?: string;
@@ -293,11 +300,6 @@ declare const LinkGroup: ({ members, color, inverted, size, rowGap, columnGap, d
293
300
  type LogoProps = BoxProps;
294
301
  declare const Logo: ({ ...props }: LogoProps) => React.JSX.Element;
295
302
 
296
- interface MenuProps extends Omit<IconButtonProps, 'value'> {
297
- value?: boolean;
298
- }
299
- declare const Menu: ({ value, sx, ...props }: MenuProps) => React.JSX.Element;
300
-
301
303
  interface MetaProps {
302
304
  title?: string;
303
305
  description?: string;