@indigoai/indigo-design-system 0.10.20 → 0.10.22
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/dist/components/input/text-field-multiline/text-field-multiline.stories.d.ts +1 -0
- package/dist/components/input/text-field-multiline/types.d.ts +3 -0
- package/dist/components/tag/constants.d.ts +7 -2
- package/dist/components/tag/types.d.ts +2 -1
- package/dist/indigo-design-system.js +4941 -4899
- package/dist/indigo-design-system.js.map +1 -1
- package/dist/indigo-design-system.umd.cjs +30 -30
- package/dist/indigo-design-system.umd.cjs.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TEXT_FIELD_SIZES, TEXT_FIELD_VARIANTS } from '../text-field/constants';
|
|
2
2
|
import { ChangeEvent, FocusEvent } from 'react';
|
|
3
|
+
import { TagProps } from '../../tag';
|
|
3
4
|
|
|
4
5
|
export type TextFieldSizes = (typeof TEXT_FIELD_SIZES)[number];
|
|
5
6
|
export type TextFieldVariants = (typeof TEXT_FIELD_VARIANTS)[number];
|
|
@@ -26,6 +27,8 @@ export type InputTextFieldMultilineProps = {
|
|
|
26
27
|
resize?: boolean;
|
|
27
28
|
autoResize?: boolean;
|
|
28
29
|
inputClassName?: string;
|
|
30
|
+
tags?: TagProps[];
|
|
31
|
+
onTagsChange?: (tags: TagProps[]) => void;
|
|
29
32
|
};
|
|
30
33
|
export type ResizerProps = {
|
|
31
34
|
autoResize?: boolean;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export declare const TAG_COLORS: readonly ["gray", "sand", "purple", "green", "red", "salmon", "orange", "pink", "yellow", "darkblue", "lightblue", "mint"];
|
|
2
|
-
export declare const TAG_TYPES: readonly ["soft", "outlined", "filled"];
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const TAG_TYPES: readonly ["soft", "outlined", "filled", "text"];
|
|
3
|
+
export declare const TAG_ICON_SIZES: {
|
|
4
|
+
readonly sm: 12;
|
|
5
|
+
readonly md: 16;
|
|
6
|
+
readonly lg: 20;
|
|
7
|
+
};
|
|
8
|
+
export type TagIconSize = keyof typeof TAG_ICON_SIZES;
|
|
4
9
|
export declare const TAG_FONT_WEIGHTS: readonly ["semibold", "regular"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TAG_TYPES, TAG_COLORS, TAG_FONT_WEIGHTS } from './constants';
|
|
1
|
+
import { TAG_TYPES, TAG_COLORS, TAG_FONT_WEIGHTS, TagIconSize } from './constants';
|
|
2
2
|
import { ComponentPropsWithRef, SVGProps } from 'react';
|
|
3
3
|
|
|
4
4
|
export type TagColor = (typeof TAG_COLORS)[number];
|
|
@@ -11,6 +11,7 @@ export type TagProps = {
|
|
|
11
11
|
variant?: TagVariant;
|
|
12
12
|
fontWeight?: TagFontWeights;
|
|
13
13
|
closeIcon?: boolean;
|
|
14
|
+
iconSize?: TagIconSize;
|
|
14
15
|
renderIcon?: ((props?: Partial<SVGProps<SVGSVGElement>>) => React.ReactNode) | null;
|
|
15
16
|
onCloseIconClicked?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
16
17
|
} & ComponentPropsWithRef<'div'>;
|