@goodhood-web/ui 1.11.0-development.2 → 1.11.0-development.4

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.
@@ -1,4 +1,4 @@
1
1
  import { CheckboxInputProps } from './CheckboxInput.types';
2
2
 
3
- export declare function CheckboxInput({ checked, disabled, id, label, onChange, size, }: CheckboxInputProps): import("react/jsx-runtime").JSX.Element | null;
3
+ export declare function CheckboxInput({ checked, children, className, disabled, id, label, onChange, size, }: CheckboxInputProps): import("react/jsx-runtime").JSX.Element | null;
4
4
  export default CheckboxInput;
@@ -1,4 +1,4 @@
1
- import { InputHTMLAttributes } from 'react';
1
+ import { InputHTMLAttributes, ReactNode } from 'react';
2
2
 
3
3
  export declare enum CheckboxInputSizes {
4
4
  medium = "body-large",
@@ -6,7 +6,9 @@ export declare enum CheckboxInputSizes {
6
6
  tiny = "detail-medium"
7
7
  }
8
8
  export interface CheckboxInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
9
+ children?: ReactNode;
10
+ className?: string;
9
11
  id: string;
10
- label: string;
12
+ label?: string;
11
13
  size?: keyof typeof CheckboxInputSizes;
12
14
  }
@@ -1,4 +1,4 @@
1
1
  import { LabelPillProps } from './LabelPill.types';
2
2
 
3
- declare const LabelPill: ({ className, label, size }: LabelPillProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const LabelPill: ({ className, color, label, shape, size, }: LabelPillProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default LabelPill;
@@ -1,5 +1,17 @@
1
- export interface LabelPillProps {
1
+ export type Color = 'teal' | 'lavender';
2
+ interface CommonProps {
2
3
  className?: string;
3
4
  label: string;
5
+ }
6
+ export interface TileProps extends CommonProps {
7
+ color?: never;
8
+ shape: 'tile';
4
9
  size: 'small' | 'medium';
5
10
  }
11
+ export interface PillProps extends CommonProps {
12
+ color?: Color;
13
+ shape?: 'pill';
14
+ size: 'small' | 'medium' | 'large';
15
+ }
16
+ export type LabelPillProps = TileProps | PillProps;
17
+ export {};
@@ -1,4 +1,4 @@
1
1
  import { SelectablePillProps } from './SelectablePill.types';
2
2
 
3
- declare const SelectablePill: ({ disabled, icon, id, isSelected, label, onToggleChange, orientation, style, variant, }: SelectablePillProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SelectablePill: ({ disabled, icon, id, isSelected, label, onToggleChange, orientation, popular, style, value, variant, }: SelectablePillProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default SelectablePill;
@@ -6,8 +6,13 @@ export interface SelectablePillProps {
6
6
  id: string;
7
7
  isSelected?: boolean;
8
8
  label: string;
9
- onToggleChange?: (id: string, value: boolean) => void;
9
+ onToggleChange?: (value: {
10
+ id: string;
11
+ value: string;
12
+ }) => void;
10
13
  orientation?: 'horizontal' | 'vertical';
14
+ popular?: string;
11
15
  style?: 'outline' | 'filled';
16
+ value: string;
12
17
  variant?: 'default' | 'large' | 'medium';
13
18
  }
@@ -1,4 +1,4 @@
1
1
  import { ToggleButtonGroupProps } from './SelectablePillGroup.types';
2
2
 
3
- declare const SelectablePillGroup: ({ className, items, multiselect, onChange, togglable, }: ToggleButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SelectablePillGroup: ({ className, items, multiselect, onChange, selectedItems, togglable, }: ToggleButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default SelectablePillGroup;
@@ -4,6 +4,13 @@ export interface ToggleButtonGroupProps {
4
4
  className?: string;
5
5
  items: SelectablePillProps[];
6
6
  multiselect: boolean;
7
- onChange: (selectedPills: string[]) => void;
7
+ onChange: (pills: {
8
+ id: string;
9
+ value: string;
10
+ }[]) => void;
11
+ selectedItems: {
12
+ id: string;
13
+ value: string;
14
+ }[];
8
15
  togglable?: boolean;
9
16
  }
@@ -2,6 +2,7 @@ import { TextButtonProps } from './TextButton.types';
2
2
 
3
3
  export declare const typographyType: {
4
4
  large: string;
5
+ link: string;
5
6
  medium: string;
6
7
  small: string;
7
8
  };
@@ -8,7 +8,7 @@ export interface TextButtonProps extends Omit<ButtonProps, 'role' | 'className'>
8
8
  color: 'green' | 'blue' | 'deepPurple';
9
9
  leftIcon?: ReactElement<IconProps | NotificationBubbleProps>;
10
10
  rightIcon?: ReactElement<IconProps | NotificationBubbleProps>;
11
- size: 'large' | 'medium' | 'small';
11
+ size: 'large' | 'medium' | 'small' | 'link';
12
12
  text: string;
13
13
  type?: 'button' | 'submit' | 'reset';
14
14
  }
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "1.11.0-development.2",
3
+ "version": "1.11.0-development.4",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {