@goodhood-web/ui 1.10.0-development.1 → 1.10.0-development.11

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,9 +1,11 @@
1
1
  import { AriaRole } from 'react';
2
+ import { default as icons18 } from './icons/18x18';
2
3
  import { default as icons24 } from './icons/24x24';
3
4
  import { default as icons32 } from './icons/32x32';
4
5
 
5
6
  export type Icon32 = keyof typeof icons32;
6
7
  export type Icon24 = keyof typeof icons24;
8
+ export type Icon18 = keyof typeof icons18;
7
9
  type BaseIconProps = {
8
10
  className?: string;
9
11
  role?: Extract<AriaRole, 'presentation' | 'img'>;
@@ -15,5 +17,8 @@ export type IconProps = ({
15
17
  } & BaseIconProps) | ({
16
18
  name: Icon24;
17
19
  size: '24';
20
+ } & BaseIconProps) | ({
21
+ name: Icon18;
22
+ size: '18';
18
23
  } & BaseIconProps);
19
24
  export {};
@@ -0,0 +1,18 @@
1
+ declare const IconsMap: {
2
+ chevron_down: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
3
+ title?: string;
4
+ }>;
5
+ chevron_left: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
6
+ title?: string;
7
+ }>;
8
+ chevron_right: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
9
+ title?: string;
10
+ }>;
11
+ chevron_up: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
12
+ title?: string;
13
+ }>;
14
+ privacy_lock_closed: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
15
+ title?: string;
16
+ }>;
17
+ };
18
+ export default IconsMap;
@@ -206,6 +206,9 @@ declare const IconsMap: {
206
206
  readonly nebenan_de: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
207
207
  title?: string;
208
208
  }>;
209
+ readonly error: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
210
+ title?: string;
211
+ }>;
209
212
  readonly neighbour: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
210
213
  title?: string;
211
214
  }>;
@@ -1,4 +1,21 @@
1
1
  declare const iconsMap: {
2
+ '18': {
3
+ chevron_down: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
4
+ title?: string;
5
+ }>;
6
+ chevron_left: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
7
+ title?: string;
8
+ }>;
9
+ chevron_right: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
10
+ title?: string;
11
+ }>;
12
+ chevron_up: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
13
+ title?: string;
14
+ }>;
15
+ privacy_lock_closed: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
16
+ title?: string;
17
+ }>;
18
+ };
2
19
  '24': {
3
20
  readonly arrow_left: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
4
21
  title?: string;
@@ -353,6 +370,9 @@ declare const iconsMap: {
353
370
  readonly nebenan_de: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
354
371
  title?: string;
355
372
  }>;
373
+ readonly error: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
374
+ title?: string;
375
+ }>;
356
376
  readonly neighbour: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
357
377
  title?: string;
358
378
  }>;
@@ -0,0 +1,4 @@
1
+ import { InputFieldSpecialProps } from './InputFieldSpecial.types';
2
+
3
+ declare const InputFieldSpecial: ({ ariaLabel, disabled, errorMessage, id, maxDigits, name, onChange, placeholder, style, value, }: InputFieldSpecialProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default InputFieldSpecial;
@@ -0,0 +1,22 @@
1
+ export interface InputFieldSpecialProps {
2
+ ariaLabel?: string;
3
+ disabled?: boolean;
4
+ errorMessage?: string;
5
+ id: string;
6
+ maxDigits?: 'two' | 'three' | 'four';
7
+ name?: string;
8
+ onChange: (id: string, value: number) => void;
9
+ placeholder?: string;
10
+ style?: 'outline' | 'filled';
11
+ value?: number;
12
+ }
13
+ export declare const maxDigitsInputMap: {
14
+ four: number;
15
+ three: number;
16
+ two: number;
17
+ };
18
+ export declare const maxDigitsValueMap: {
19
+ four: number;
20
+ three: number;
21
+ two: number;
22
+ };
@@ -0,0 +1,3 @@
1
+ import { maxDigitsValueMap } from './InputFieldSpecial.types';
2
+
3
+ export declare const getValue: (value: number, maxDigits: keyof typeof maxDigitsValueMap) => number;
@@ -0,0 +1,4 @@
1
+ import { NavigationTabProps } from './NavigationTab.types';
2
+
3
+ declare const NavigationTab: ({ onChange, tabs, value }: NavigationTabProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default NavigationTab;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export interface TabsProps {
4
+ content: ReactNode;
5
+ id: string | number;
6
+ label: string;
7
+ }
8
+ export interface NavigationTabProps {
9
+ onChange?: (event: React.SyntheticEvent | null, value: number | string | null) => void;
10
+ tabs: TabsProps[];
11
+ value: string | number | null;
12
+ }
@@ -3,5 +3,5 @@ import { InputHTMLAttributes } from 'react';
3
3
  export interface RadioButtonTypes extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
4
4
  id: string;
5
5
  label: string;
6
- size: 'small' | 'medium';
6
+ size: 'tiny' | 'small' | 'medium';
7
7
  }
@@ -0,0 +1,4 @@
1
+ import { SelectablePillProps } from './SelectablePill.types';
2
+
3
+ declare const SelectablePill: ({ disabled, icon, id, isSelected, label, onToggleChange, orientation, style, variant, }: SelectablePillProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default SelectablePill;
@@ -0,0 +1,13 @@
1
+ import { Icon32 } from '../Icon/Icon.types';
2
+
3
+ export interface SelectablePillProps {
4
+ disabled?: boolean;
5
+ icon?: Icon32;
6
+ id: string;
7
+ isSelected?: boolean;
8
+ label: string;
9
+ onToggleChange?: (id: string, value: boolean) => void;
10
+ orientation?: 'horizontal' | 'vertical';
11
+ style?: 'outline' | 'filled';
12
+ variant?: 'default' | 'large' | 'medium';
13
+ }
@@ -0,0 +1,4 @@
1
+ import { ToggleButtonGroupProps } from './SelectablePillGroup.types';
2
+
3
+ declare const SelectablePillGroup: ({ className, items, multiselect, onChange, togglable, }: ToggleButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default SelectablePillGroup;
@@ -0,0 +1,9 @@
1
+ import { SelectablePillProps } from '../SelectablePill/SelectablePill.types';
2
+
3
+ export interface ToggleButtonGroupProps {
4
+ className?: string;
5
+ items: SelectablePillProps[];
6
+ multiselect: boolean;
7
+ onChange: (selectedPills: string[]) => void;
8
+ togglable?: boolean;
9
+ }
@@ -0,0 +1,4 @@
1
+ import { SwitcherToggleProps } from './SwitcherToggle.types';
2
+
3
+ declare const SwitcherToggle: ({ className, items, onChange, style, value, }: SwitcherToggleProps) => import("react/jsx-runtime").JSX.Element | null;
4
+ export default SwitcherToggle;
@@ -0,0 +1,12 @@
1
+ export interface Item {
2
+ defaultChecked?: boolean;
3
+ id: string;
4
+ label: string;
5
+ }
6
+ export interface SwitcherToggleProps {
7
+ className?: string;
8
+ items: Item[];
9
+ onChange: (value: string) => void;
10
+ style?: 'outline' | 'filled';
11
+ value: string;
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "1.10.0-development.1",
3
+ "version": "1.10.0-development.11",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {