@up42/up-components 5.1.0 → 5.2.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.
@@ -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>>;
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ import { TypographyProps as TypographyProps$1 } from '@mui/material/Typography';
10
10
  import { DatePickerProps, DateTimePickerProps } from '@mui/x-date-pickers-pro';
11
11
  import dayjs, { Dayjs } from 'dayjs';
12
12
  import { DateRangePickerProps } from '@mui/x-date-pickers-pro/DateRangePicker';
13
+ import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
13
14
  import { TableProps as TableProps$1 } from '@mui/material/Table';
14
15
  import { TableBodyProps as TableBodyProps$1 } from '@mui/material/TableBody';
15
16
  import { TableCellProps as TableCellProps$1 } from '@mui/material/TableCell';
@@ -5207,7 +5208,40 @@ type FeatureCardProps = CardProps & {
5207
5208
  */
5208
5209
  hovered?: boolean;
5209
5210
  };
5210
- declare const FeatureCard: ({ children, header, footer, bannerProps, isSelectable, selected, isHoverable, hovered, ...props }: FeatureCardProps) => React__default.JSX.Element;
5211
+ /**
5212
+ * Documentation: https://up-components.up42.com/?path=/docs/data-entry-featurecard--docs
5213
+ */
5214
+ declare const FeatureCard: React__default.ForwardRefExoticComponent<Omit<_mui_material.CardOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5215
+ ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
5216
+ }, "className" | "style" | "classes" | "children" | "sx" | "elevation" | "square" | "variant" | "raised"> & {
5217
+ component?: React__default.ElementType<any> | undefined;
5218
+ } & {
5219
+ bannerProps?: Omit<BannerProps, "title" | "variant"> | undefined;
5220
+ header?: {
5221
+ title: ReactNode;
5222
+ actions?: ReactNode;
5223
+ } | undefined;
5224
+ footer?: {
5225
+ info?: ReactNode;
5226
+ actions?: ReactNode;
5227
+ } | undefined;
5228
+ /**
5229
+ * Whether the card is selectable.
5230
+ */
5231
+ isSelectable?: boolean | undefined;
5232
+ /**
5233
+ * Applies the selected state to the card from the parent.
5234
+ */
5235
+ selected?: boolean | undefined;
5236
+ /**
5237
+ * Whether the card is hoverable.
5238
+ */
5239
+ isHoverable?: boolean | undefined;
5240
+ /**
5241
+ * Applies the hovered state to the card from the parent.
5242
+ */
5243
+ hovered?: boolean | undefined;
5244
+ }, "ref"> & React__default.RefAttributes<unknown>>;
5211
5245
 
5212
5246
  type FeatureCardHeaderProps = {
5213
5247
  header: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@up42/up-components",
3
- "version": "5.1.0",
3
+ "version": "5.2.1",
4
4
  "description": "UP42 Component Library",
5
5
  "author": "Axel Fuhrmann axel.fuhrmann@up42.com",
6
6
  "license": "ISC",
@@ -125,5 +125,10 @@
125
125
  "tag": true
126
126
  }
127
127
  },
128
- "packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
129
- }
128
+ "packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39",
129
+ "pnpm": {
130
+ "overrides": {
131
+ "tmp": ">=0.2.4"
132
+ }
133
+ }
134
+ }