@design-system-rte/react 0.6.1 → 0.9.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.
@@ -0,0 +1,8 @@
1
+ import { BadgeProps as BadgePropsCore } from '../../../../core/components/badge/badge.interface';
2
+ import { RegularIconIdKey, TogglableIconIdKey } from '../icon/Icon';
3
+ export interface BadgeProps extends BadgePropsCore, Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
4
+ children: React.ReactNode;
5
+ icon?: RegularIconIdKey | TogglableIconIdKey;
6
+ }
7
+ declare const Badge: import('react').ForwardRefExoticComponent<BadgeProps & import('react').RefAttributes<HTMLDivElement>>;
8
+ export default Badge;
@@ -0,0 +1,8 @@
1
+ import { ChipProps as CoreChipProps } from '../../../../core/components/chip/chip.interface';
2
+ import { default as React } from 'react';
3
+ interface ChipProps extends Omit<CoreChipProps, "onClick" | "onClose">, Omit<React.HTMLAttributes<HTMLSpanElement>, "id"> {
4
+ onClick?: (event: React.MouseEvent<HTMLSpanElement> | React.KeyboardEvent<HTMLSpanElement>) => void;
5
+ onClose?: (event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>) => void;
6
+ }
7
+ export declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLSpanElement>>;
8
+ export default Chip;
@@ -6,5 +6,5 @@ interface SplitButtonProps extends CoreSplitButtonProps, Omit<React.ButtonHTMLAt
6
6
  children?: React.ReactNode;
7
7
  icon?: keyof typeof RegularIcons | keyof typeof TogglableIcons;
8
8
  }
9
- declare const SplitButton: React.ForwardRefExoticComponent<SplitButtonProps & React.RefAttributes<HTMLButtonElement | HTMLElement>>;
9
+ declare const SplitButton: React.ForwardRefExoticComponent<SplitButtonProps & React.RefAttributes<HTMLElement | HTMLButtonElement>>;
10
10
  export default SplitButton;
@@ -0,0 +1,7 @@
1
+ import { TagProps as TagPropsCore } from '../../../../core/components/tag/tag.interface';
2
+ import { RegularIconIdKey, TogglableIconIdKey } from '../icon/Icon';
3
+ interface TagProps extends Omit<TagPropsCore, "iconName">, Omit<React.HTMLAttributes<HTMLDivElement>, "color"> {
4
+ iconName?: RegularIconIdKey | TogglableIconIdKey;
5
+ }
6
+ declare const Tag: import('react').ForwardRefExoticComponent<TagProps & import('react').RefAttributes<HTMLDivElement>>;
7
+ export default Tag;
@@ -1,6 +1,6 @@
1
1
  import { TextInputProps as CoreTextInputProps } from '../../../../core/components/text-input/text-input.interface';
2
2
  import { InputHTMLAttributes } from 'react';
3
- interface TextInputProps extends CoreTextInputProps, Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "defaultValue" | "placeholder"> {
3
+ interface TextInputProps extends CoreTextInputProps, Omit<InputHTMLAttributes<HTMLInputElement>, "id" | "onChange" | "value" | "defaultValue" | "placeholder"> {
4
4
  onChange?: (value: string) => void;
5
5
  }
6
6
  declare const TextInput: import('react').ForwardRefExoticComponent<TextInputProps & import('react').RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,7 @@
1
+ import { TextareaProps as CoreTextareaProps } from '../../../../core/components/textarea/textarea.interface';
2
+ import { ChangeEvent, TextareaHTMLAttributes } from 'react';
3
+ interface TextareaProps extends CoreTextareaProps, Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "value" | "defaultValue" | "placeholder"> {
4
+ onChange?: (event: ChangeEvent<HTMLTextAreaElement>) => void;
5
+ }
6
+ declare const Textarea: import('react').ForwardRefExoticComponent<TextareaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
7
+ export default Textarea;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
+ import { default as Badge } from './components/badge/Badge.tsx';
1
2
  import { default as Button } from './components/button/Button';
2
3
  import { default as Checkbox } from './components/checkbox/Checkbox.tsx';
3
4
  import { default as CheckboxGroup } from './components/checkboxGroup/CheckboxGroup.tsx';
5
+ import { default as Chip } from './components/chip/Chip.tsx';
4
6
  import { default as Grid } from './components/grid/Grid.tsx';
5
7
  import { default as Icon } from './components/icon/Icon.tsx';
6
8
  import { default as IconButton } from './components/iconButton/IconButton.tsx';
@@ -9,6 +11,7 @@ import { default as Link } from './components/link/Link.tsx';
9
11
  import { default as RadioButton } from './components/radioButton/RadioButton.tsx';
10
12
  import { default as RadioButtonGroup } from './components/radioButtonGroup/RadioButtonGroup.tsx';
11
13
  import { default as SplitButton } from './components/splitButton/SplitButton.tsx';
14
+ import { default as Textarea } from './components/textarea/Textarea.tsx';
12
15
  import { default as TextInput } from './components/textInput/TextInput.tsx';
13
16
  import { default as Tooltip } from './components/tooltip/Tooltip.tsx';
14
- export { Button, Grid, Checkbox, CheckboxGroup, Link, RadioButton, RadioButtonGroup, Icon, IconButton, IconButtonToggle, SplitButton, Tooltip, TextInput, };
17
+ export { Button, Grid, Checkbox, CheckboxGroup, Link, RadioButton, RadioButtonGroup, Icon, IconButton, IconButtonToggle, SplitButton, Tooltip, TextInput, Chip, Badge, Textarea, };