@up42/up-components 4.14.0 → 4.14.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.
@@ -2,8 +2,9 @@ import React from 'react';
2
2
  export type EditTagsButtonProps = {
3
3
  tags: string[];
4
4
  tagPool?: string[];
5
- onSave: (tags: string[]) => void;
5
+ onSave: (tags: string[]) => Promise<void>;
6
6
  label?: string;
7
7
  tooltip?: string;
8
+ isUpdatingTags?: boolean;
8
9
  };
9
- export declare function EditTagsButton({ tags, tagPool, onSave, label, tooltip }: EditTagsButtonProps): React.JSX.Element;
10
+ export declare function EditTagsButton({ tags, tagPool, onSave, label, tooltip, isUpdatingTags }: EditTagsButtonProps): React.JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  export type TagsListProps = {
3
3
  tags: string[];
4
- onTagsChange?: (tags: string[]) => void;
4
+ onTagsUpdate?: (tags: string[]) => Promise<void>;
5
+ isUpdatingTags?: boolean;
5
6
  };
6
- export declare const TagsList: ({ tags: tagsProp, onTagsChange }: TagsListProps) => React.JSX.Element;
7
+ export declare const TagsList: ({ tags: tagsProp, onTagsUpdate, isUpdatingTags }: TagsListProps) => React.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -5219,18 +5219,20 @@ declare const StatusLight: ({ label, variant, color, size, sx, }: StatusLightPro
5219
5219
 
5220
5220
  type TagsListProps = {
5221
5221
  tags: string[];
5222
- onTagsChange?: (tags: string[]) => void;
5222
+ onTagsUpdate?: (tags: string[]) => Promise<void>;
5223
+ isUpdatingTags?: boolean;
5223
5224
  };
5224
- declare const TagsList: ({ tags: tagsProp, onTagsChange }: TagsListProps) => React__default.JSX.Element;
5225
+ declare const TagsList: ({ tags: tagsProp, onTagsUpdate, isUpdatingTags }: TagsListProps) => React__default.JSX.Element;
5225
5226
 
5226
5227
  type EditTagsButtonProps = {
5227
5228
  tags: string[];
5228
5229
  tagPool?: string[];
5229
- onSave: (tags: string[]) => void;
5230
+ onSave: (tags: string[]) => Promise<void>;
5230
5231
  label?: string;
5231
5232
  tooltip?: string;
5233
+ isUpdatingTags?: boolean;
5232
5234
  };
5233
- declare function EditTagsButton({ tags, tagPool, onSave, label, tooltip }: EditTagsButtonProps): React__default.JSX.Element;
5235
+ declare function EditTagsButton({ tags, tagPool, onSave, label, tooltip, isUpdatingTags }: EditTagsButtonProps): React__default.JSX.Element;
5234
5236
 
5235
5237
  type FeatureFlagCheckboxProps = {
5236
5238
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@up42/up-components",
3
- "version": "4.14.0",
3
+ "version": "4.14.1",
4
4
  "description": "UP42 Component Library",
5
5
  "author": "Axel Fuhrmann axel.fuhrmann@up42.com",
6
6
  "license": "ISC",