@goodhood-web/ui 3.1.1-development.1 → 3.2.0-development.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.
@@ -0,0 +1,3 @@
1
+ import { AccordionProps } from './Accordion.types';
2
+ declare const Accordion: ({ children, className, id }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Accordion;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ export type AccordionProps = {
3
+ children: ReactNode;
4
+ className?: string;
5
+ id?: string;
6
+ title?: string;
7
+ };
@@ -0,0 +1,3 @@
1
+ import { AccordionItemProps } from './AccordionItem.types';
2
+ declare const AccordionItem: ({ accordionBtnClassName, accordionPanelClassName, children, id, size, title, }: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default AccordionItem;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ export type AccordionItemProps = {
3
+ accordionBtnClassName?: string;
4
+ accordionPanelClassName?: string;
5
+ children: ReactNode;
6
+ id: number | string;
7
+ size?: 'small' | 'large';
8
+ title: string;
9
+ };
@@ -9,19 +9,19 @@ type BaseIconButtonProps = Omit<ButtonProps, 'children' | 'ref' | 'className'> &
9
9
  iconClassName?: string;
10
10
  loading?: boolean;
11
11
  type?: 'button' | 'submit' | 'reset';
12
- variant?: 'green' | 'white' | 'grey';
12
+ variant?: 'green' | 'white' | 'grey' | 'inverse' | 'none';
13
13
  };
14
14
  export type IconButtonIcon16Props = {
15
15
  icon: Icon16;
16
- size?: 'extraSmall';
16
+ size?: 'small';
17
17
  } & BaseIconButtonProps;
18
18
  export type IconButtonIcon24Props = {
19
19
  icon: Icon24;
20
- size?: 'small';
20
+ size?: 'medium';
21
21
  } & BaseIconButtonProps;
22
22
  export type IconButtonIcon32Props = {
23
23
  icon: Icon32;
24
- size?: 'medium' | 'large';
24
+ size?: 'large';
25
25
  } & BaseIconButtonProps;
26
26
  export type IconButtonProps = IconButtonIcon32Props | IconButtonIcon24Props | IconButtonIcon16Props;
27
27
  export {};
@@ -1,3 +1,3 @@
1
- type IconButtonSize = 'large' | 'medium' | 'small' | 'extraSmall';
1
+ type IconButtonSize = 'large' | 'medium' | 'small';
2
2
  export declare const getIconSize: (size: IconButtonSize) => "32" | "24" | "16";
3
3
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "3.1.1-development.1",
3
+ "version": "3.2.0-development.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",