@up42/up-components 5.0.0 → 5.2.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,9 @@
1
+ import React, { ReactNode } from 'react';
2
+ type EditTagsCardProps = {
3
+ onClose: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
4
+ onSave: () => void;
5
+ children: ReactNode;
6
+ isUpdatingTags?: boolean;
7
+ };
8
+ export declare const EditTagsCard: React.ForwardRefExoticComponent<EditTagsCardProps & React.RefAttributes<HTMLDivElement>>;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ import React, { type PropsWithChildren } from 'react';
2
+ export type EditTagsModalProps = PropsWithChildren<{
3
+ open: boolean;
4
+ onClose: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
5
+ }>;
6
+ export declare const EditTagsModal: ({ open, onClose, children }: EditTagsModalProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export type SearchTagsProps = {
3
3
  tags: string[];
4
- onAddTag: (tag: string) => void;
4
+ onAddTags: (tags: string[]) => void;
5
5
  };
6
- export declare const SearchTags: ({ tags, onAddTag }: SearchTagsProps) => React.JSX.Element;
6
+ export declare const SearchTags: ({ tags, onAddTags }: SearchTagsProps) => React.JSX.Element;
@@ -28,4 +28,37 @@ export type FeatureCardProps = CardProps & {
28
28
  */
29
29
  hovered?: boolean;
30
30
  };
31
- export declare const FeatureCard: ({ children, header, footer, bannerProps, isSelectable, selected, isHoverable, hovered, ...props }: FeatureCardProps) => React.JSX.Element;
31
+ /**
32
+ * Documentation: https://up-components.up42.com/?path=/docs/data-entry-featurecard--docs
33
+ */
34
+ export declare const FeatureCard: React.ForwardRefExoticComponent<Omit<import("@mui/material").CardOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
35
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
36
+ }, "className" | "style" | "classes" | "children" | "sx" | "elevation" | "square" | "variant" | "raised"> & {
37
+ component?: React.ElementType<any> | undefined;
38
+ } & {
39
+ bannerProps?: Omit<BannerProps, "title" | "variant"> | undefined;
40
+ header?: {
41
+ title: ReactNode;
42
+ actions?: ReactNode;
43
+ } | undefined;
44
+ footer?: {
45
+ info?: ReactNode;
46
+ actions?: ReactNode;
47
+ } | undefined;
48
+ /**
49
+ * Whether the card is selectable.
50
+ */
51
+ isSelectable?: boolean | undefined;
52
+ /**
53
+ * Applies the selected state to the card from the parent.
54
+ */
55
+ selected?: boolean | undefined;
56
+ /**
57
+ * Whether the card is hoverable.
58
+ */
59
+ isHoverable?: boolean | undefined;
60
+ /**
61
+ * Applies the hovered state to the card from the parent.
62
+ */
63
+ hovered?: boolean | undefined;
64
+ }, "ref"> & React.RefAttributes<unknown>>;