@up42/up-components 7.4.0 → 7.5.0-react-18.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.
@@ -11,6 +11,4 @@ export declare const AlertBase: React.ForwardRefExoticComponent<Omit<MUIALertPro
11
11
  /**
12
12
  * Documentation: https://up-components.up42.com/?path=/docs/feedback-alert--docs
13
13
  */
14
- export declare const Alert: React.ForwardRefExoticComponent<Omit<Omit<MUIALertProps, "color" | "elevation" | "action" | "square" | "iconMapping" | "severity" | "variant"> & {
15
- type?: AlertColor | undefined;
16
- }, "ref"> & React.RefAttributes<unknown>>;
14
+ export declare const Alert: React.ForwardRefExoticComponent<Omit<AlertProps, "ref"> & React.RefAttributes<unknown>>;
@@ -10,9 +10,4 @@ export type AvatarProps = MUIGlobalOmit<Omit<MUIAvatarProps, 'children' | 'alt'
10
10
  /**
11
11
  * Documentation: https://up-components.up42.com/?path=/docs/data-display-avatar--docs
12
12
  */
13
- export declare const Avatar: React.ForwardRefExoticComponent<Omit<{
14
- firstName?: string | undefined;
15
- lastName?: string | undefined;
16
- icon?: React.ReactNode;
17
- selected?: boolean | undefined;
18
- } & Omit<Omit<MUIAvatarProps<"div", {}>, "children" | "alt" | "src" | "sizes" | "srcSet" | "variant" | "imgProps">, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React.RefAttributes<unknown>>;
13
+ export declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & React.RefAttributes<unknown>>;
@@ -35,34 +35,4 @@ export type BannerProps = {
35
35
  /**
36
36
  * Documentation: https://up-components.up42.com/?path=/docs/feedback-banner--docs
37
37
  */
38
- export declare const Banner: React.ForwardRefExoticComponent<Omit<{
39
- /**
40
- * Call To Action label
41
- * */
42
- actionLabel?: string | undefined;
43
- /**
44
- * Call To Action button props
45
- * */
46
- actionProps?: ButtonProps | undefined;
47
- /**
48
- * ### Stacked
49
- * Stacked banners are contextual and should be placed within the page content.
50
- *
51
- * ### Inline
52
- * Inline banners can be displayed prominently at the top of the screen (below the navigation) or contextually within the page content. Inline banners can be global or page specific.
53
- */
54
- variant?: "inline" | "stacked" | undefined;
55
- /**
56
- * Callback fired when the Banner requests to be dismissed.
57
- */
58
- onDismiss?: ButtonProps['onClick'];
59
- title: string;
60
- /**
61
- * The size(height) of the banner.
62
- * - 'default': Standard banner height.
63
- * - 'slim': Reduced height, intended for use only with the 'inline' variant.
64
- *
65
- * Note: 'slim' size has a fixed height of '32px' and should be used exclusively with variant='inline' and probably text ellipsis to ensure proper layout and appearance.
66
- */
67
- size?: "default" | "slim" | undefined;
68
- } & Omit<AlertProps, "title" | "role" | "onClose" | "closeText">, "ref"> & React.RefAttributes<unknown>>;
38
+ export declare const Banner: React.ForwardRefExoticComponent<Omit<BannerProps, "ref"> & React.RefAttributes<unknown>>;
@@ -19,7 +19,7 @@ export type ButtonProps = MUIGlobalOmit<Omit<MUIButtonProps, 'size' | 'color'>,
19
19
  *
20
20
  * ```js
21
21
  * import { Link } from '@up42/up-components'
22
- * import { Link } from 'react-router-dom'
22
+ * import { Link as ReactRouterLink } from 'react-router'
23
23
  *
24
24
  * <Button component={Link} to="/my-path">
25
25
  * client-side navigation button.
@@ -28,14 +28,4 @@ export type ButtonProps = MUIGlobalOmit<Omit<MUIButtonProps, 'size' | 'color'>,
28
28
  *
29
29
  * Documentation: https://up-components.up42.com/?path=/docs/data-entry-button--docs
30
30
  */
31
- export declare const Button: React.ForwardRefExoticComponent<Omit<{
32
- loading?: boolean | undefined;
33
- size?: "default" | "slim" | undefined;
34
- color?: 'critical' | MUIButtonProps['color'];
35
- component?: MUIButtonProps['LinkComponent'];
36
- to?: MUIButtonProps['href'];
37
- /**
38
- * Determines whether to open the link in the same tab for external links.
39
- */
40
- openInSameTab?: boolean | undefined;
41
- } & Omit<Omit<MUIButtonProps<"button", {}>, "color" | "size">, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React.RefAttributes<unknown>>;
31
+ export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<unknown>>;
@@ -11,10 +11,4 @@ export type ControlButtonProps = MUIGlobalOmit<MUIIconButtonProps, {
11
11
  /**
12
12
  * Documentation: https://up-components.up42.com/?path=/docs/data-entry-controlbutton--docs
13
13
  */
14
- export declare const ControlButton: React.ForwardRefExoticComponent<Omit<{
15
- size?: "small" | "medium" | undefined;
16
- /**
17
- * Remove default padding when using icons with built-in padding (Like MUI icons)
18
- */
19
- removePadding?: boolean | undefined;
20
- } & Omit<MUIIconButtonProps<"button", {}>, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React.RefAttributes<unknown>>;
14
+ export declare const ControlButton: React.ForwardRefExoticComponent<Omit<ControlButtonProps, "ref"> & React.RefAttributes<unknown>>;
@@ -15,15 +15,4 @@ export type DividerProps = Omit<MUIDividerProps, 'classes' | 'light'> & {
15
15
  /**
16
16
  * Documentation: https://up-components.up42.com/?path=/docs/layout-divider--docs
17
17
  */
18
- export declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<MUIDividerProps<"hr", {}>, "classes" | "light"> & {
19
- /**
20
- * @default 'default'
21
- * The color of the divider.
22
- */
23
- color?: "default" | "primary" | "neutral" | undefined;
24
- /**
25
- * @default 'small'
26
- * The height of the divider.
27
- */
28
- size?: "small" | "large" | "medium" | undefined;
29
- }, "ref"> & React.RefAttributes<unknown>>;
18
+ export declare const Divider: React.ForwardRefExoticComponent<Omit<DividerProps, "ref"> & React.RefAttributes<unknown>>;
@@ -36,39 +36,4 @@ export type FeatureCardProps = CardProps & {
36
36
  /**
37
37
  * Documentation: https://up-components.up42.com/?path=/docs/data-entry-featurecard--docs
38
38
  */
39
- 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"> & {
40
- ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
41
- }, "className" | "style" | "classes" | "children" | "sx" | "elevation" | "square" | "variant" | "raised"> & {
42
- component?: React.ElementType<any> | undefined;
43
- } & {
44
- bannerProps?: Omit<BannerProps, "title" | "variant"> | undefined;
45
- header?: {
46
- title: ReactNode;
47
- actions?: ReactNode;
48
- } | undefined;
49
- footer?: {
50
- info?: ReactNode;
51
- actions?: ReactNode;
52
- } | undefined;
53
- /**
54
- * Applies the selected state to the card from the parent.
55
- */
56
- selected?: boolean | undefined;
57
- /**
58
- * Whether the card is hoverable.
59
- */
60
- isHoverable?: boolean | undefined;
61
- /**
62
- * Applies the hovered state to the card from the parent.
63
- */
64
- hovered?: boolean | undefined;
65
- /**
66
- * Applies the active state to the card from the parent.
67
- */
68
- active?: boolean | undefined;
69
- /**
70
- * Whether to show the connector (the visual line that connects the card to the Popover).
71
- * @default false
72
- */
73
- showConnector?: boolean | undefined;
74
- }, "ref"> & React.RefAttributes<unknown>>;
39
+ export declare const FeatureCard: React.ForwardRefExoticComponent<Omit<FeatureCardProps, "ref"> & React.RefAttributes<unknown>>;
@@ -48,23 +48,4 @@ export declare const InfoCardBase: ({ title, titleVariant, subtitle, children, a
48
48
  /**
49
49
  * Documentation: https://up-components.up42.com/?path=/docs/patterns-infocard--docs
50
50
  */
51
- export declare const InfoCard: React.ForwardRefExoticComponent<Omit<{
52
- title: string;
53
- subtitle?: string | undefined;
54
- /**
55
- * The content action section aka. card footer.
56
- */
57
- actions?: React.ReactNode;
58
- /**
59
- * The content of the header action, usually an icon with a close event.
60
- */
61
- headerAction?: React.ReactNode;
62
- /**
63
- * The Card's title typography variant: 'headingSmall' | 'headingXSmall' | 'note'
64
- */
65
- titleVariant?: "note" | "headingSmall" | "headingXSmall" | undefined;
66
- /**
67
- * Choose whether to hide divider or not.
68
- */
69
- hideDivider?: boolean | undefined;
70
- } & Omit<CardProps<"div", {}>, "square" | "variant" | "raised">, "ref"> & React.RefAttributes<unknown>>;
51
+ export declare const InfoCard: React.ForwardRefExoticComponent<Omit<InfoCardProps, "ref"> & React.RefAttributes<unknown>>;
@@ -19,7 +19,7 @@ export type LinkProps<C extends React.ElementType> = MuiLinkProps<C, {
19
19
  *
20
20
  * ```js
21
21
  * import { Link } from '@up42/up-components'
22
- * import { Link as RouterLink } from 'react-router-dom'
22
+ * import { Link as RouterLink } from 'react-router'
23
23
  *
24
24
  * <Link component={RouterLink} to="/my-path">
25
25
  * client-side navigation link.
@@ -28,4 +28,4 @@ export type LinkProps<C extends React.ElementType> = MuiLinkProps<C, {
28
28
  *
29
29
  * Documentation: https://up-components.up42.com/?path=/docs/navigation-link--docs
30
30
  */
31
- export declare const Link: <C extends React.ElementType<any>>({ children, underline, hideIcon, openInSameTab, ...props }: LinkProps<C>) => React.JSX.Element;
31
+ export declare const Link: <C extends React.ElementType<any, keyof React.JSX.IntrinsicElements>>({ children, underline, hideIcon, openInSameTab, ...props }: LinkProps<C>) => React.JSX.Element;
@@ -81,63 +81,4 @@ export type PopoverProps = Omit<MUIPopoverProps, 'content' | 'open' | 'onClose'>
81
81
  *
82
82
  * Documentation: https://up-components.up42.com/?path=/docs-patterns-popovers-popover--docs
83
83
  */
84
- export declare const Popover: React.ForwardRefExoticComponent<Omit<Omit<MUIPopoverProps, "content" | "open" | "onClose"> & {
85
- /**
86
- * Opens the modal if true, closes it if false
87
- * This is optional for compatibility purposes
88
- */
89
- open?: boolean | undefined;
90
- /**
91
- * External callback fired when the popover should close
92
- */
93
- onClose?: (() => void) | undefined;
94
- /**
95
- * Header content (optional)
96
- */
97
- header?: React.ReactNode;
98
- /**
99
- * Footer info (optional)
100
- */
101
- footerInfo?: React.ReactNode;
102
- /**
103
- * Primary button props (optional)
104
- */
105
- primaryButton?: PopoverButtonProps | undefined;
106
- /**
107
- * Secondary button props (optional)
108
- */
109
- secondaryButton?: PopoverButtonProps | undefined;
110
- /**
111
- * Primarily used to indicate that the anchor is the built in button icon.
112
- * @default false
113
- */
114
- showControlButton?: boolean | undefined;
115
- /**
116
- * Alternative icon to display as the built in button's icon (only applicable if isIconAnchor is true)
117
- */
118
- controlButtonIcon?: "AccessTime" | "Add" | "AddCircleFilled" | "AddPlusCircle" | "AlarmBell" | "AlertCircleFilled" | "AlertTriangle" | "Angle" | "AppWindowCode" | "ArrowBack" | "ArrowBackIos" | "ArrowDownLeft" | "ArrowDownRight" | "ArrowDownward" | "ArrowForward" | "ArrowTopLeft" | "ArrowTopRight" | "ArrowUpward" | "Attachment" | "AutoStoriesOutlined" | "Balance" | "Bin" | "Block" | "Blocked" | "Boxes" | "BoxesGrid" | "Brightness1" | "Calendar" | "CalendarAdd" | "CalendarCheck" | "CalendarDate" | "CalendarEdit" | "CalendarRemove" | "CalendarSearchDate" | "CampaignOutlined" | "CaretCircleFilledDown" | "CaretCircleFilledLeft" | "CaretCircleFilledRight" | "CaretCircleFilledUp" | "Catalog" | "CheckCircle" | "CheckCircleFilled" | "CheckList" | "CheckMark" | "ChevronCircleFilledDown" | "ChevronCircleFilledLeft" | "ChevronCircleFilledRight" | "ChevronCircleFilledUp" | "Close" | "CloseCircle" | "CloseCircleFilled" | "Cloud" | "CloudCheck" | "CloudDownload" | "CloudOff" | "CloudRemove" | "CloudSearch" | "CloudSync" | "CloudUpload" | "CloudWarning" | "Coin" | "CoinEuro" | "Compass" | "ContactSupportOutlined" | "ContentCut" | "ContentPaste" | "Copy" | "Credit" | "Dashboard" | "DataTransferVertical" | "Delivery" | "DollarCoinCircleFilled" | "DottedLines" | "Download" | "DownloadCircle" | "EditPencil" | "EuroCoinCircleFilled" | "ExitLeaveBack" | "ExternalLink" | "EyeCircleFilled" | "FlagQuestion" | "FolderEmpty" | "Footprint" | "HeadphonesQuestion" | "Heart" | "HeartCircleFilled" | "Hyperlink" | "ImageResolution" | "ImageUnavailable" | "Invoice" | "KeyboardArrowDown" | "KeyboardArrowLeft" | "KeyboardArrowRight" | "KeyboardArrowUp" | "Layers" | "Library" | "Lightbulb" | "LightbulbOutlined" | "LocalOfferOutlined" | "Lock" | "LockCircleFilled" | "LockShield" | "Logo" | "LogoKSA" | "Map" | "MapPin" | "MapSearch" | "Marketplace" | "MarketplaceExternal" | "MenuCircleFilledHorizontal" | "MenuCircleFilledVertical" | "MenuOpenHorizontal" | "MenuOpenVertical" | "MinusCircleFilled" | "Module" | "Module2" | "ModuleThree" | "MoreHoriz" | "MultipleUsers" | "NotificationError" | "NotificationInfo" | "NotificationSuccess" | "NotificationWarning" | "PenCircleFilled" | "Pencil" | "PercentCircle" | "Person" | "Pin" | "Polygon" | "Projects" | "QuestionBubble" | "QuestionCircle" | "QuestionCircleFilled" | "QuestionMark" | "Rectangle" | "RectangleAOI" | "Redo" | "Remove" | "Resolution" | "Satellite" | "Save" | "Scissors" | "Search" | "SelectedIndicator" | "SelectedIndicatorWide" | "ServerCheck" | "ServerDeny" | "ServerDownload" | "ServerEdit" | "ServerError" | "ServerLock" | "ServerMinus" | "ServerQuestion" | "ServerRefresh" | "ServerSearch" | "ServerSync" | "ServerUpload" | "ServerWarning" | "SettingsCog" | "SettingsCog2" | "SettingsSliderHorizontal" | "SettingsVertical" | "Share" | "ShareNetwork" | "Shield" | "ShieldWithLock" | "ShoppingCartCheck" | "ShoppingCartClose" | "ShoppingCartMinus" | "ShoppingCartOutlined" | "ShoppingCartPlus" | "Storage" | "Support" | "SupportClear" | "SupportHeadphones" | "System" | "Tag" | "TagAlert" | "TagCheck" | "TagDouble" | "TagEdit" | "TagMinus" | "TagPlus" | "TagSearch" | "TagX" | "Target" | "Transaction" | "TrashBin" | "Undo" | "Unlock" | "UpgradeShield" | "Upload" | "UploadCircle" | "User" | "VisibilityOffOutlined" | "VisibilityOutlined" | "WeatherCloud" | "Webhooks" | "Workflow" | "WorkflowPencil" | "ZoomIn" | "ZoomOut" | undefined;
119
- /**
120
- * Whether to show dividers between sections
121
- * @default false
122
- */
123
- showDividers?: boolean | undefined;
124
- /**
125
- * Whether to show a connector line between the popover and anchor
126
- * @default false
127
- */
128
- showConnector?: boolean | undefined;
129
- /**
130
- * Content to be displayed inside the popover, with padding applied by default
131
- */
132
- content?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
133
- /**
134
- * Size of the popover
135
- * @default false
136
- */
137
- size?: "small" | "large" | "medium" | "auto" | "extraSmall" | "extraLarge" | undefined;
138
- /**
139
- * Custom styles for the popover
140
- */
141
- sx?: SxProps<Theme> | undefined;
142
- inputRef?: MUIPopoverProps['ref'];
143
- }, "ref"> & React.RefAttributes<unknown>>;
84
+ export declare const Popover: React.ForwardRefExoticComponent<Omit<PopoverProps, "ref"> & React.RefAttributes<unknown>>;
@@ -7,7 +7,4 @@ export type TypographyProps = Omit<MUITypographyProps, 'variant'> & {
7
7
  /**
8
8
  * Documentation: https://up-components.up42.com/?path=/docs/data-display-typography--docs
9
9
  */
10
- export declare const Typography: React.ForwardRefExoticComponent<Omit<Omit<MUITypographyProps<"span", {}>, "variant"> & {
11
- component?: React.ElementType<any> | undefined;
12
- variant?: MUITypographyProps['variant'] | 'heading' | 'headingSmall' | 'headingXSmall' | 'body' | 'label' | 'note';
13
- }, "ref"> & React.RefAttributes<unknown>>;
10
+ export declare const Typography: React.ForwardRefExoticComponent<Omit<TypographyProps, "ref"> & React.RefAttributes<unknown>>;
@@ -11,6 +11,4 @@ export declare const AlertBase: React.ForwardRefExoticComponent<Omit<MUIALertPro
11
11
  /**
12
12
  * Documentation: https://up-components.up42.com/?path=/docs/feedback-alert--docs
13
13
  */
14
- export declare const Alert: React.ForwardRefExoticComponent<Omit<Omit<MUIALertProps, "color" | "elevation" | "action" | "square" | "iconMapping" | "severity" | "variant"> & {
15
- type?: AlertColor | undefined;
16
- }, "ref"> & React.RefAttributes<unknown>>;
14
+ export declare const Alert: React.ForwardRefExoticComponent<Omit<AlertProps, "ref"> & React.RefAttributes<unknown>>;
@@ -10,9 +10,4 @@ export type AvatarProps = MUIGlobalOmit<Omit<MUIAvatarProps, 'children' | 'alt'
10
10
  /**
11
11
  * Documentation: https://up-components.up42.com/?path=/docs/data-display-avatar--docs
12
12
  */
13
- export declare const Avatar: React.ForwardRefExoticComponent<Omit<{
14
- firstName?: string | undefined;
15
- lastName?: string | undefined;
16
- icon?: React.ReactNode;
17
- selected?: boolean | undefined;
18
- } & Omit<Omit<MUIAvatarProps<"div", {}>, "children" | "alt" | "src" | "sizes" | "srcSet" | "variant" | "imgProps">, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React.RefAttributes<unknown>>;
13
+ export declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & React.RefAttributes<unknown>>;
@@ -35,34 +35,4 @@ export type BannerProps = {
35
35
  /**
36
36
  * Documentation: https://up-components.up42.com/?path=/docs/feedback-banner--docs
37
37
  */
38
- export declare const Banner: React.ForwardRefExoticComponent<Omit<{
39
- /**
40
- * Call To Action label
41
- * */
42
- actionLabel?: string | undefined;
43
- /**
44
- * Call To Action button props
45
- * */
46
- actionProps?: ButtonProps | undefined;
47
- /**
48
- * ### Stacked
49
- * Stacked banners are contextual and should be placed within the page content.
50
- *
51
- * ### Inline
52
- * Inline banners can be displayed prominently at the top of the screen (below the navigation) or contextually within the page content. Inline banners can be global or page specific.
53
- */
54
- variant?: "inline" | "stacked" | undefined;
55
- /**
56
- * Callback fired when the Banner requests to be dismissed.
57
- */
58
- onDismiss?: ButtonProps['onClick'];
59
- title: string;
60
- /**
61
- * The size(height) of the banner.
62
- * - 'default': Standard banner height.
63
- * - 'slim': Reduced height, intended for use only with the 'inline' variant.
64
- *
65
- * Note: 'slim' size has a fixed height of '32px' and should be used exclusively with variant='inline' and probably text ellipsis to ensure proper layout and appearance.
66
- */
67
- size?: "default" | "slim" | undefined;
68
- } & Omit<AlertProps, "title" | "role" | "onClose" | "closeText">, "ref"> & React.RefAttributes<unknown>>;
38
+ export declare const Banner: React.ForwardRefExoticComponent<Omit<BannerProps, "ref"> & React.RefAttributes<unknown>>;
@@ -19,7 +19,7 @@ export type ButtonProps = MUIGlobalOmit<Omit<MUIButtonProps, 'size' | 'color'>,
19
19
  *
20
20
  * ```js
21
21
  * import { Link } from '@up42/up-components'
22
- * import { Link } from 'react-router-dom'
22
+ * import { Link as ReactRouterLink } from 'react-router'
23
23
  *
24
24
  * <Button component={Link} to="/my-path">
25
25
  * client-side navigation button.
@@ -28,14 +28,4 @@ export type ButtonProps = MUIGlobalOmit<Omit<MUIButtonProps, 'size' | 'color'>,
28
28
  *
29
29
  * Documentation: https://up-components.up42.com/?path=/docs/data-entry-button--docs
30
30
  */
31
- export declare const Button: React.ForwardRefExoticComponent<Omit<{
32
- loading?: boolean | undefined;
33
- size?: "default" | "slim" | undefined;
34
- color?: 'critical' | MUIButtonProps['color'];
35
- component?: MUIButtonProps['LinkComponent'];
36
- to?: MUIButtonProps['href'];
37
- /**
38
- * Determines whether to open the link in the same tab for external links.
39
- */
40
- openInSameTab?: boolean | undefined;
41
- } & Omit<Omit<MUIButtonProps<"button", {}>, "color" | "size">, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React.RefAttributes<unknown>>;
31
+ export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<unknown>>;
@@ -11,10 +11,4 @@ export type ControlButtonProps = MUIGlobalOmit<MUIIconButtonProps, {
11
11
  /**
12
12
  * Documentation: https://up-components.up42.com/?path=/docs/data-entry-controlbutton--docs
13
13
  */
14
- export declare const ControlButton: React.ForwardRefExoticComponent<Omit<{
15
- size?: "small" | "medium" | undefined;
16
- /**
17
- * Remove default padding when using icons with built-in padding (Like MUI icons)
18
- */
19
- removePadding?: boolean | undefined;
20
- } & Omit<MUIIconButtonProps<"button", {}>, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React.RefAttributes<unknown>>;
14
+ export declare const ControlButton: React.ForwardRefExoticComponent<Omit<ControlButtonProps, "ref"> & React.RefAttributes<unknown>>;
@@ -15,15 +15,4 @@ export type DividerProps = Omit<MUIDividerProps, 'classes' | 'light'> & {
15
15
  /**
16
16
  * Documentation: https://up-components.up42.com/?path=/docs/layout-divider--docs
17
17
  */
18
- export declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<MUIDividerProps<"hr", {}>, "classes" | "light"> & {
19
- /**
20
- * @default 'default'
21
- * The color of the divider.
22
- */
23
- color?: "default" | "primary" | "neutral" | undefined;
24
- /**
25
- * @default 'small'
26
- * The height of the divider.
27
- */
28
- size?: "small" | "large" | "medium" | undefined;
29
- }, "ref"> & React.RefAttributes<unknown>>;
18
+ export declare const Divider: React.ForwardRefExoticComponent<Omit<DividerProps, "ref"> & React.RefAttributes<unknown>>;
@@ -36,39 +36,4 @@ export type FeatureCardProps = CardProps & {
36
36
  /**
37
37
  * Documentation: https://up-components.up42.com/?path=/docs/data-entry-featurecard--docs
38
38
  */
39
- 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"> & {
40
- ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
41
- }, "className" | "style" | "classes" | "children" | "sx" | "elevation" | "square" | "variant" | "raised"> & {
42
- component?: React.ElementType<any> | undefined;
43
- } & {
44
- bannerProps?: Omit<BannerProps, "title" | "variant"> | undefined;
45
- header?: {
46
- title: ReactNode;
47
- actions?: ReactNode;
48
- } | undefined;
49
- footer?: {
50
- info?: ReactNode;
51
- actions?: ReactNode;
52
- } | undefined;
53
- /**
54
- * Applies the selected state to the card from the parent.
55
- */
56
- selected?: boolean | undefined;
57
- /**
58
- * Whether the card is hoverable.
59
- */
60
- isHoverable?: boolean | undefined;
61
- /**
62
- * Applies the hovered state to the card from the parent.
63
- */
64
- hovered?: boolean | undefined;
65
- /**
66
- * Applies the active state to the card from the parent.
67
- */
68
- active?: boolean | undefined;
69
- /**
70
- * Whether to show the connector (the visual line that connects the card to the Popover).
71
- * @default false
72
- */
73
- showConnector?: boolean | undefined;
74
- }, "ref"> & React.RefAttributes<unknown>>;
39
+ export declare const FeatureCard: React.ForwardRefExoticComponent<Omit<FeatureCardProps, "ref"> & React.RefAttributes<unknown>>;
@@ -48,23 +48,4 @@ export declare const InfoCardBase: ({ title, titleVariant, subtitle, children, a
48
48
  /**
49
49
  * Documentation: https://up-components.up42.com/?path=/docs/patterns-infocard--docs
50
50
  */
51
- export declare const InfoCard: React.ForwardRefExoticComponent<Omit<{
52
- title: string;
53
- subtitle?: string | undefined;
54
- /**
55
- * The content action section aka. card footer.
56
- */
57
- actions?: React.ReactNode;
58
- /**
59
- * The content of the header action, usually an icon with a close event.
60
- */
61
- headerAction?: React.ReactNode;
62
- /**
63
- * The Card's title typography variant: 'headingSmall' | 'headingXSmall' | 'note'
64
- */
65
- titleVariant?: "note" | "headingSmall" | "headingXSmall" | undefined;
66
- /**
67
- * Choose whether to hide divider or not.
68
- */
69
- hideDivider?: boolean | undefined;
70
- } & Omit<CardProps<"div", {}>, "square" | "variant" | "raised">, "ref"> & React.RefAttributes<unknown>>;
51
+ export declare const InfoCard: React.ForwardRefExoticComponent<Omit<InfoCardProps, "ref"> & React.RefAttributes<unknown>>;
@@ -19,7 +19,7 @@ export type LinkProps<C extends React.ElementType> = MuiLinkProps<C, {
19
19
  *
20
20
  * ```js
21
21
  * import { Link } from '@up42/up-components'
22
- * import { Link as RouterLink } from 'react-router-dom'
22
+ * import { Link as RouterLink } from 'react-router'
23
23
  *
24
24
  * <Link component={RouterLink} to="/my-path">
25
25
  * client-side navigation link.
@@ -28,4 +28,4 @@ export type LinkProps<C extends React.ElementType> = MuiLinkProps<C, {
28
28
  *
29
29
  * Documentation: https://up-components.up42.com/?path=/docs/navigation-link--docs
30
30
  */
31
- export declare const Link: <C extends React.ElementType<any>>({ children, underline, hideIcon, openInSameTab, ...props }: LinkProps<C>) => React.JSX.Element;
31
+ export declare const Link: <C extends React.ElementType<any, keyof React.JSX.IntrinsicElements>>({ children, underline, hideIcon, openInSameTab, ...props }: LinkProps<C>) => React.JSX.Element;
@@ -81,63 +81,4 @@ export type PopoverProps = Omit<MUIPopoverProps, 'content' | 'open' | 'onClose'>
81
81
  *
82
82
  * Documentation: https://up-components.up42.com/?path=/docs-patterns-popovers-popover--docs
83
83
  */
84
- export declare const Popover: React.ForwardRefExoticComponent<Omit<Omit<MUIPopoverProps, "content" | "open" | "onClose"> & {
85
- /**
86
- * Opens the modal if true, closes it if false
87
- * This is optional for compatibility purposes
88
- */
89
- open?: boolean | undefined;
90
- /**
91
- * External callback fired when the popover should close
92
- */
93
- onClose?: (() => void) | undefined;
94
- /**
95
- * Header content (optional)
96
- */
97
- header?: React.ReactNode;
98
- /**
99
- * Footer info (optional)
100
- */
101
- footerInfo?: React.ReactNode;
102
- /**
103
- * Primary button props (optional)
104
- */
105
- primaryButton?: PopoverButtonProps | undefined;
106
- /**
107
- * Secondary button props (optional)
108
- */
109
- secondaryButton?: PopoverButtonProps | undefined;
110
- /**
111
- * Primarily used to indicate that the anchor is the built in button icon.
112
- * @default false
113
- */
114
- showControlButton?: boolean | undefined;
115
- /**
116
- * Alternative icon to display as the built in button's icon (only applicable if isIconAnchor is true)
117
- */
118
- controlButtonIcon?: "AccessTime" | "Add" | "AddCircleFilled" | "AddPlusCircle" | "AlarmBell" | "AlertCircleFilled" | "AlertTriangle" | "Angle" | "AppWindowCode" | "ArrowBack" | "ArrowBackIos" | "ArrowDownLeft" | "ArrowDownRight" | "ArrowDownward" | "ArrowForward" | "ArrowTopLeft" | "ArrowTopRight" | "ArrowUpward" | "Attachment" | "AutoStoriesOutlined" | "Balance" | "Bin" | "Block" | "Blocked" | "Boxes" | "BoxesGrid" | "Brightness1" | "Calendar" | "CalendarAdd" | "CalendarCheck" | "CalendarDate" | "CalendarEdit" | "CalendarRemove" | "CalendarSearchDate" | "CampaignOutlined" | "CaretCircleFilledDown" | "CaretCircleFilledLeft" | "CaretCircleFilledRight" | "CaretCircleFilledUp" | "Catalog" | "CheckCircle" | "CheckCircleFilled" | "CheckList" | "CheckMark" | "ChevronCircleFilledDown" | "ChevronCircleFilledLeft" | "ChevronCircleFilledRight" | "ChevronCircleFilledUp" | "Close" | "CloseCircle" | "CloseCircleFilled" | "Cloud" | "CloudCheck" | "CloudDownload" | "CloudOff" | "CloudRemove" | "CloudSearch" | "CloudSync" | "CloudUpload" | "CloudWarning" | "Coin" | "CoinEuro" | "Compass" | "ContactSupportOutlined" | "ContentCut" | "ContentPaste" | "Copy" | "Credit" | "Dashboard" | "DataTransferVertical" | "Delivery" | "DollarCoinCircleFilled" | "DottedLines" | "Download" | "DownloadCircle" | "EditPencil" | "EuroCoinCircleFilled" | "ExitLeaveBack" | "ExternalLink" | "EyeCircleFilled" | "FlagQuestion" | "FolderEmpty" | "Footprint" | "HeadphonesQuestion" | "Heart" | "HeartCircleFilled" | "Hyperlink" | "ImageResolution" | "ImageUnavailable" | "Invoice" | "KeyboardArrowDown" | "KeyboardArrowLeft" | "KeyboardArrowRight" | "KeyboardArrowUp" | "Layers" | "Library" | "Lightbulb" | "LightbulbOutlined" | "LocalOfferOutlined" | "Lock" | "LockCircleFilled" | "LockShield" | "Logo" | "LogoKSA" | "Map" | "MapPin" | "MapSearch" | "Marketplace" | "MarketplaceExternal" | "MenuCircleFilledHorizontal" | "MenuCircleFilledVertical" | "MenuOpenHorizontal" | "MenuOpenVertical" | "MinusCircleFilled" | "Module" | "Module2" | "ModuleThree" | "MoreHoriz" | "MultipleUsers" | "NotificationError" | "NotificationInfo" | "NotificationSuccess" | "NotificationWarning" | "PenCircleFilled" | "Pencil" | "PercentCircle" | "Person" | "Pin" | "Polygon" | "Projects" | "QuestionBubble" | "QuestionCircle" | "QuestionCircleFilled" | "QuestionMark" | "Rectangle" | "RectangleAOI" | "Redo" | "Remove" | "Resolution" | "Satellite" | "Save" | "Scissors" | "Search" | "SelectedIndicator" | "SelectedIndicatorWide" | "ServerCheck" | "ServerDeny" | "ServerDownload" | "ServerEdit" | "ServerError" | "ServerLock" | "ServerMinus" | "ServerQuestion" | "ServerRefresh" | "ServerSearch" | "ServerSync" | "ServerUpload" | "ServerWarning" | "SettingsCog" | "SettingsCog2" | "SettingsSliderHorizontal" | "SettingsVertical" | "Share" | "ShareNetwork" | "Shield" | "ShieldWithLock" | "ShoppingCartCheck" | "ShoppingCartClose" | "ShoppingCartMinus" | "ShoppingCartOutlined" | "ShoppingCartPlus" | "Storage" | "Support" | "SupportClear" | "SupportHeadphones" | "System" | "Tag" | "TagAlert" | "TagCheck" | "TagDouble" | "TagEdit" | "TagMinus" | "TagPlus" | "TagSearch" | "TagX" | "Target" | "Transaction" | "TrashBin" | "Undo" | "Unlock" | "UpgradeShield" | "Upload" | "UploadCircle" | "User" | "VisibilityOffOutlined" | "VisibilityOutlined" | "WeatherCloud" | "Webhooks" | "Workflow" | "WorkflowPencil" | "ZoomIn" | "ZoomOut" | undefined;
119
- /**
120
- * Whether to show dividers between sections
121
- * @default false
122
- */
123
- showDividers?: boolean | undefined;
124
- /**
125
- * Whether to show a connector line between the popover and anchor
126
- * @default false
127
- */
128
- showConnector?: boolean | undefined;
129
- /**
130
- * Content to be displayed inside the popover, with padding applied by default
131
- */
132
- content?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
133
- /**
134
- * Size of the popover
135
- * @default false
136
- */
137
- size?: "small" | "large" | "medium" | "auto" | "extraSmall" | "extraLarge" | undefined;
138
- /**
139
- * Custom styles for the popover
140
- */
141
- sx?: SxProps<Theme> | undefined;
142
- inputRef?: MUIPopoverProps['ref'];
143
- }, "ref"> & React.RefAttributes<unknown>>;
84
+ export declare const Popover: React.ForwardRefExoticComponent<Omit<PopoverProps, "ref"> & React.RefAttributes<unknown>>;
@@ -7,7 +7,4 @@ export type TypographyProps = Omit<MUITypographyProps, 'variant'> & {
7
7
  /**
8
8
  * Documentation: https://up-components.up42.com/?path=/docs/data-display-typography--docs
9
9
  */
10
- export declare const Typography: React.ForwardRefExoticComponent<Omit<Omit<MUITypographyProps<"span", {}>, "variant"> & {
11
- component?: React.ElementType<any> | undefined;
12
- variant?: MUITypographyProps['variant'] | 'heading' | 'headingSmall' | 'headingXSmall' | 'body' | 'label' | 'note';
13
- }, "ref"> & React.RefAttributes<unknown>>;
10
+ export declare const Typography: React.ForwardRefExoticComponent<Omit<TypographyProps, "ref"> & React.RefAttributes<unknown>>;
package/dist/index.d.ts CHANGED
@@ -10,7 +10,6 @@ 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';
14
13
  import Prism from 'prismjs';
15
14
  import { TableProps as TableProps$1 } from '@mui/material/Table';
16
15
  import { TableBodyProps as TableBodyProps$1 } from '@mui/material/TableBody';
@@ -74,7 +73,7 @@ type ButtonProps = MUIGlobalOmit<Omit<ButtonProps$1, 'size' | 'color'>, {
74
73
  *
75
74
  * ```js
76
75
  * import { Link } from '@up42/up-components'
77
- * import { Link } from 'react-router-dom'
76
+ * import { Link as ReactRouterLink } from 'react-router'
78
77
  *
79
78
  * <Button component={Link} to="/my-path">
80
79
  * client-side navigation button.
@@ -83,17 +82,7 @@ type ButtonProps = MUIGlobalOmit<Omit<ButtonProps$1, 'size' | 'color'>, {
83
82
  *
84
83
  * Documentation: https://up-components.up42.com/?path=/docs/data-entry-button--docs
85
84
  */
86
- declare const Button: React__default.ForwardRefExoticComponent<Omit<{
87
- loading?: boolean | undefined;
88
- size?: "default" | "slim" | undefined;
89
- color?: 'critical' | ButtonProps$1['color'];
90
- component?: ButtonProps$1['LinkComponent'];
91
- to?: ButtonProps$1['href'];
92
- /**
93
- * Determines whether to open the link in the same tab for external links.
94
- */
95
- openInSameTab?: boolean | undefined;
96
- } & Omit<Omit<ButtonProps$1<"button", {}>, "color" | "size">, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React__default.RefAttributes<unknown>>;
85
+ declare const Button: React__default.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React__default.RefAttributes<unknown>>;
97
86
 
98
87
  type TypographyProps = Omit<TypographyProps$1, 'variant'> & {
99
88
  component?: React__default.ElementType;
@@ -102,10 +91,7 @@ type TypographyProps = Omit<TypographyProps$1, 'variant'> & {
102
91
  /**
103
92
  * Documentation: https://up-components.up42.com/?path=/docs/data-display-typography--docs
104
93
  */
105
- declare const Typography: React__default.ForwardRefExoticComponent<Omit<Omit<TypographyProps$1<"span", {}>, "variant"> & {
106
- component?: React__default.ElementType<any> | undefined;
107
- variant?: TypographyProps$1['variant'] | 'heading' | 'headingSmall' | 'headingXSmall' | 'body' | 'label' | 'note';
108
- }, "ref"> & React__default.RefAttributes<unknown>>;
94
+ declare const Typography: React__default.ForwardRefExoticComponent<Omit<TypographyProps, "ref"> & React__default.RefAttributes<unknown>>;
109
95
 
110
96
  type AvatarProps = MUIGlobalOmit<Omit<AvatarProps$1, 'children' | 'alt' | 'imgProps' | 'sizes' | 'src' | 'srcSet' | 'variant'>, {
111
97
  firstName?: string;
@@ -116,12 +102,7 @@ type AvatarProps = MUIGlobalOmit<Omit<AvatarProps$1, 'children' | 'alt' | 'imgPr
116
102
  /**
117
103
  * Documentation: https://up-components.up42.com/?path=/docs/data-display-avatar--docs
118
104
  */
119
- declare const Avatar: React__default.ForwardRefExoticComponent<Omit<{
120
- firstName?: string | undefined;
121
- lastName?: string | undefined;
122
- icon?: React__default.ReactNode;
123
- selected?: boolean | undefined;
124
- } & Omit<Omit<AvatarProps$1<"div", {}>, "children" | "alt" | "src" | "sizes" | "srcSet" | "variant" | "imgProps">, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React__default.RefAttributes<unknown>>;
105
+ declare const Avatar: React__default.ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & React__default.RefAttributes<unknown>>;
125
106
 
126
107
  type GridContainerProps = Omit<GridProps, 'container' | 'item' | 'xs' | 'columnSpacing'>;
127
108
  /**
@@ -326,7 +307,7 @@ type LinkProps<C extends React__default.ElementType> = LinkProps$1<C, {
326
307
  *
327
308
  * ```js
328
309
  * import { Link } from '@up42/up-components'
329
- * import { Link as RouterLink } from 'react-router-dom'
310
+ * import { Link as RouterLink } from 'react-router'
330
311
  *
331
312
  * <Link component={RouterLink} to="/my-path">
332
313
  * client-side navigation link.
@@ -335,7 +316,7 @@ type LinkProps<C extends React__default.ElementType> = LinkProps$1<C, {
335
316
  *
336
317
  * Documentation: https://up-components.up42.com/?path=/docs/navigation-link--docs
337
318
  */
338
- declare const Link: <C extends React__default.ElementType<any>>({ children, underline, hideIcon, openInSameTab, ...props }: LinkProps<C>) => React__default.JSX.Element;
319
+ declare const Link: <C extends React__default.ElementType<any, keyof React__default.JSX.IntrinsicElements>>({ children, underline, hideIcon, openInSameTab, ...props }: LinkProps<C>) => React__default.JSX.Element;
339
320
 
340
321
  type TabsProps = MUIGlobalOmit<TabsProps$1>;
341
322
  type TabProps = MUIGlobalOmit<TabProps$1>;
@@ -418,26 +399,7 @@ type InfoCardProps = {
418
399
  /**
419
400
  * Documentation: https://up-components.up42.com/?path=/docs/patterns-infocard--docs
420
401
  */
421
- declare const InfoCard: React__default.ForwardRefExoticComponent<Omit<{
422
- title: string;
423
- subtitle?: string | undefined;
424
- /**
425
- * The content action section aka. card footer.
426
- */
427
- actions?: React__default.ReactNode;
428
- /**
429
- * The content of the header action, usually an icon with a close event.
430
- */
431
- headerAction?: React__default.ReactNode;
432
- /**
433
- * The Card's title typography variant: 'headingSmall' | 'headingXSmall' | 'note'
434
- */
435
- titleVariant?: "note" | "headingSmall" | "headingXSmall" | undefined;
436
- /**
437
- * Choose whether to hide divider or not.
438
- */
439
- hideDivider?: boolean | undefined;
440
- } & Omit<CardProps<"div", {}>, "square" | "variant" | "raised">, "ref"> & React__default.RefAttributes<unknown>>;
402
+ declare const InfoCard: React__default.ForwardRefExoticComponent<Omit<InfoCardProps, "ref"> & React__default.RefAttributes<unknown>>;
441
403
 
442
404
  type InfoModalProps = MUIGlobalOmit<Omit<ModalProps, 'BackdropProps' | 'BackdropComponent' | 'onBackdropClick'>, Omit<InfoCardProps, 'headerAction'> & {
443
405
  /**
@@ -457,9 +419,7 @@ type AlertProps = Omit<AlertProps$1, 'color' | 'elevation' | 'iconMapping' | 'se
457
419
  /**
458
420
  * Documentation: https://up-components.up42.com/?path=/docs/feedback-alert--docs
459
421
  */
460
- declare const Alert: React__default.ForwardRefExoticComponent<Omit<Omit<AlertProps$1, "color" | "elevation" | "action" | "square" | "iconMapping" | "severity" | "variant"> & {
461
- type?: AlertColor | undefined;
462
- }, "ref"> & React__default.RefAttributes<unknown>>;
422
+ declare const Alert: React__default.ForwardRefExoticComponent<Omit<AlertProps, "ref"> & React__default.RefAttributes<unknown>>;
463
423
 
464
424
  type BannerProps = {
465
425
  /**
@@ -495,37 +455,7 @@ type BannerProps = {
495
455
  /**
496
456
  * Documentation: https://up-components.up42.com/?path=/docs/feedback-banner--docs
497
457
  */
498
- declare const Banner: React__default.ForwardRefExoticComponent<Omit<{
499
- /**
500
- * Call To Action label
501
- * */
502
- actionLabel?: string | undefined;
503
- /**
504
- * Call To Action button props
505
- * */
506
- actionProps?: ButtonProps | undefined;
507
- /**
508
- * ### Stacked
509
- * Stacked banners are contextual and should be placed within the page content.
510
- *
511
- * ### Inline
512
- * Inline banners can be displayed prominently at the top of the screen (below the navigation) or contextually within the page content. Inline banners can be global or page specific.
513
- */
514
- variant?: "inline" | "stacked" | undefined;
515
- /**
516
- * Callback fired when the Banner requests to be dismissed.
517
- */
518
- onDismiss?: ButtonProps['onClick'];
519
- title: string;
520
- /**
521
- * The size(height) of the banner.
522
- * - 'default': Standard banner height.
523
- * - 'slim': Reduced height, intended for use only with the 'inline' variant.
524
- *
525
- * Note: 'slim' size has a fixed height of '32px' and should be used exclusively with variant='inline' and probably text ellipsis to ensure proper layout and appearance.
526
- */
527
- size?: "default" | "slim" | undefined;
528
- } & Omit<AlertProps, "title" | "role" | "onClose" | "closeText">, "ref"> & React__default.RefAttributes<unknown>>;
458
+ declare const Banner: React__default.ForwardRefExoticComponent<Omit<BannerProps, "ref"> & React__default.RefAttributes<unknown>>;
529
459
 
530
460
  type ContactBoxProps = {
531
461
  customIcon?: React__default.ReactNode;
@@ -549,13 +479,7 @@ type ControlButtonProps = MUIGlobalOmit<IconButtonProps, {
549
479
  /**
550
480
  * Documentation: https://up-components.up42.com/?path=/docs/data-entry-controlbutton--docs
551
481
  */
552
- declare const ControlButton: React__default.ForwardRefExoticComponent<Omit<{
553
- size?: "small" | "medium" | undefined;
554
- /**
555
- * Remove default padding when using icons with built-in padding (Like MUI icons)
556
- */
557
- removePadding?: boolean | undefined;
558
- } & Omit<IconButtonProps<"button", {}>, "classes" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple">, "ref"> & React__default.RefAttributes<unknown>>;
482
+ declare const ControlButton: React__default.ForwardRefExoticComponent<Omit<ControlButtonProps, "ref"> & React__default.RefAttributes<unknown>>;
559
483
 
560
484
  interface CopyButtonProps {
561
485
  data: string;
@@ -4814,66 +4738,7 @@ type PopoverProps = Omit<PopoverProps$1, 'content' | 'open' | 'onClose'> & {
4814
4738
  *
4815
4739
  * Documentation: https://up-components.up42.com/?path=/docs-patterns-popovers-popover--docs
4816
4740
  */
4817
- declare const Popover: React__default.ForwardRefExoticComponent<Omit<Omit<PopoverProps$1, "content" | "open" | "onClose"> & {
4818
- /**
4819
- * Opens the modal if true, closes it if false
4820
- * This is optional for compatibility purposes
4821
- */
4822
- open?: boolean | undefined;
4823
- /**
4824
- * External callback fired when the popover should close
4825
- */
4826
- onClose?: (() => void) | undefined;
4827
- /**
4828
- * Header content (optional)
4829
- */
4830
- header?: React__default.ReactNode;
4831
- /**
4832
- * Footer info (optional)
4833
- */
4834
- footerInfo?: React__default.ReactNode;
4835
- /**
4836
- * Primary button props (optional)
4837
- */
4838
- primaryButton?: PopoverButtonProps | undefined;
4839
- /**
4840
- * Secondary button props (optional)
4841
- */
4842
- secondaryButton?: PopoverButtonProps | undefined;
4843
- /**
4844
- * Primarily used to indicate that the anchor is the built in button icon.
4845
- * @default false
4846
- */
4847
- showControlButton?: boolean | undefined;
4848
- /**
4849
- * Alternative icon to display as the built in button's icon (only applicable if isIconAnchor is true)
4850
- */
4851
- controlButtonIcon?: "AccessTime" | "Add" | "AddCircleFilled" | "AddPlusCircle" | "AlarmBell" | "AlertCircleFilled" | "AlertTriangle" | "Angle" | "AppWindowCode" | "ArrowBack" | "ArrowBackIos" | "ArrowDownLeft" | "ArrowDownRight" | "ArrowDownward" | "ArrowForward" | "ArrowTopLeft" | "ArrowTopRight" | "ArrowUpward" | "Attachment" | "AutoStoriesOutlined" | "Balance" | "Bin" | "Block" | "Blocked" | "Boxes" | "BoxesGrid" | "Brightness1" | "Calendar" | "CalendarAdd" | "CalendarCheck" | "CalendarDate" | "CalendarEdit" | "CalendarRemove" | "CalendarSearchDate" | "CampaignOutlined" | "CaretCircleFilledDown" | "CaretCircleFilledLeft" | "CaretCircleFilledRight" | "CaretCircleFilledUp" | "Catalog" | "CheckCircle" | "CheckCircleFilled" | "CheckList" | "CheckMark" | "ChevronCircleFilledDown" | "ChevronCircleFilledLeft" | "ChevronCircleFilledRight" | "ChevronCircleFilledUp" | "Close" | "CloseCircle" | "CloseCircleFilled" | "Cloud" | "CloudCheck" | "CloudDownload" | "CloudOff" | "CloudRemove" | "CloudSearch" | "CloudSync" | "CloudUpload" | "CloudWarning" | "Coin" | "CoinEuro" | "Compass" | "ContactSupportOutlined" | "ContentCut" | "ContentPaste" | "Copy" | "Credit" | "Dashboard" | "DataTransferVertical" | "Delivery" | "DollarCoinCircleFilled" | "DottedLines" | "Download" | "DownloadCircle" | "EditPencil" | "EuroCoinCircleFilled" | "ExitLeaveBack" | "ExternalLink" | "EyeCircleFilled" | "FlagQuestion" | "FolderEmpty" | "Footprint" | "HeadphonesQuestion" | "Heart" | "HeartCircleFilled" | "Hyperlink" | "ImageResolution" | "ImageUnavailable" | "Invoice" | "KeyboardArrowDown" | "KeyboardArrowLeft" | "KeyboardArrowRight" | "KeyboardArrowUp" | "Layers" | "Library" | "Lightbulb" | "LightbulbOutlined" | "LocalOfferOutlined" | "Lock" | "LockCircleFilled" | "LockShield" | "Logo" | "LogoKSA" | "Map" | "MapPin" | "MapSearch" | "Marketplace" | "MarketplaceExternal" | "MenuCircleFilledHorizontal" | "MenuCircleFilledVertical" | "MenuOpenHorizontal" | "MenuOpenVertical" | "MinusCircleFilled" | "Module" | "Module2" | "ModuleThree" | "MoreHoriz" | "MultipleUsers" | "NotificationError" | "NotificationInfo" | "NotificationSuccess" | "NotificationWarning" | "PenCircleFilled" | "Pencil" | "PercentCircle" | "Person" | "Pin" | "Polygon" | "Projects" | "QuestionBubble" | "QuestionCircle" | "QuestionCircleFilled" | "QuestionMark" | "Rectangle" | "RectangleAOI" | "Redo" | "Remove" | "Resolution" | "Satellite" | "Save" | "Scissors" | "Search" | "SelectedIndicator" | "SelectedIndicatorWide" | "ServerCheck" | "ServerDeny" | "ServerDownload" | "ServerEdit" | "ServerError" | "ServerLock" | "ServerMinus" | "ServerQuestion" | "ServerRefresh" | "ServerSearch" | "ServerSync" | "ServerUpload" | "ServerWarning" | "SettingsCog" | "SettingsCog2" | "SettingsSliderHorizontal" | "SettingsVertical" | "Share" | "ShareNetwork" | "Shield" | "ShieldWithLock" | "ShoppingCartCheck" | "ShoppingCartClose" | "ShoppingCartMinus" | "ShoppingCartOutlined" | "ShoppingCartPlus" | "Storage" | "Support" | "SupportClear" | "SupportHeadphones" | "System" | "Tag" | "TagAlert" | "TagCheck" | "TagDouble" | "TagEdit" | "TagMinus" | "TagPlus" | "TagSearch" | "TagX" | "Target" | "Transaction" | "TrashBin" | "Undo" | "Unlock" | "UpgradeShield" | "Upload" | "UploadCircle" | "User" | "VisibilityOffOutlined" | "VisibilityOutlined" | "WeatherCloud" | "Webhooks" | "Workflow" | "WorkflowPencil" | "ZoomIn" | "ZoomOut" | undefined;
4852
- /**
4853
- * Whether to show dividers between sections
4854
- * @default false
4855
- */
4856
- showDividers?: boolean | undefined;
4857
- /**
4858
- * Whether to show a connector line between the popover and anchor
4859
- * @default false
4860
- */
4861
- showConnector?: boolean | undefined;
4862
- /**
4863
- * Content to be displayed inside the popover, with padding applied by default
4864
- */
4865
- content?: React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | undefined;
4866
- /**
4867
- * Size of the popover
4868
- * @default false
4869
- */
4870
- size?: "small" | "large" | "medium" | "auto" | "extraSmall" | "extraLarge" | undefined;
4871
- /**
4872
- * Custom styles for the popover
4873
- */
4874
- sx?: SxProps<Theme> | undefined;
4875
- inputRef?: PopoverProps$1['ref'];
4876
- }, "ref"> & React__default.RefAttributes<unknown>>;
4741
+ declare const Popover: React__default.ForwardRefExoticComponent<Omit<PopoverProps, "ref"> & React__default.RefAttributes<unknown>>;
4877
4742
 
4878
4743
  type PageHeaderProps = {
4879
4744
  title: string;
@@ -11266,18 +11131,7 @@ type DividerProps = Omit<DividerProps$1, 'classes' | 'light'> & {
11266
11131
  /**
11267
11132
  * Documentation: https://up-components.up42.com/?path=/docs/layout-divider--docs
11268
11133
  */
11269
- declare const Divider: React__default.ForwardRefExoticComponent<Omit<Omit<DividerProps$1<"hr", {}>, "classes" | "light"> & {
11270
- /**
11271
- * @default 'default'
11272
- * The color of the divider.
11273
- */
11274
- color?: "default" | "primary" | "neutral" | undefined;
11275
- /**
11276
- * @default 'small'
11277
- * The height of the divider.
11278
- */
11279
- size?: "small" | "large" | "medium" | undefined;
11280
- }, "ref"> & React__default.RefAttributes<unknown>>;
11134
+ declare const Divider: React__default.ForwardRefExoticComponent<Omit<DividerProps, "ref"> & React__default.RefAttributes<unknown>>;
11281
11135
 
11282
11136
  type FeatureCardProps = CardProps & {
11283
11137
  bannerProps?: Omit<BannerProps, 'title' | 'variant'>;
@@ -11314,42 +11168,7 @@ type FeatureCardProps = CardProps & {
11314
11168
  /**
11315
11169
  * Documentation: https://up-components.up42.com/?path=/docs/data-entry-featurecard--docs
11316
11170
  */
11317
- 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"> & {
11318
- ref?: ((instance: HTMLDivElement | null) => void) | React__default.RefObject<HTMLDivElement> | null | undefined;
11319
- }, "className" | "style" | "classes" | "children" | "sx" | "elevation" | "square" | "variant" | "raised"> & {
11320
- component?: React__default.ElementType<any> | undefined;
11321
- } & {
11322
- bannerProps?: Omit<BannerProps, "title" | "variant"> | undefined;
11323
- header?: {
11324
- title: ReactNode;
11325
- actions?: ReactNode;
11326
- } | undefined;
11327
- footer?: {
11328
- info?: ReactNode;
11329
- actions?: ReactNode;
11330
- } | undefined;
11331
- /**
11332
- * Applies the selected state to the card from the parent.
11333
- */
11334
- selected?: boolean | undefined;
11335
- /**
11336
- * Whether the card is hoverable.
11337
- */
11338
- isHoverable?: boolean | undefined;
11339
- /**
11340
- * Applies the hovered state to the card from the parent.
11341
- */
11342
- hovered?: boolean | undefined;
11343
- /**
11344
- * Applies the active state to the card from the parent.
11345
- */
11346
- active?: boolean | undefined;
11347
- /**
11348
- * Whether to show the connector (the visual line that connects the card to the Popover).
11349
- * @default false
11350
- */
11351
- showConnector?: boolean | undefined;
11352
- }, "ref"> & React__default.RefAttributes<unknown>>;
11171
+ declare const FeatureCard: React__default.ForwardRefExoticComponent<Omit<FeatureCardProps, "ref"> & React__default.RefAttributes<unknown>>;
11353
11172
 
11354
11173
  type FeatureCardHeaderImageProps = {
11355
11174
  url?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@up42/up-components",
3
- "version": "7.4.0",
3
+ "version": "7.5.0-react-18.0",
4
4
  "description": "UP42 Component Library",
5
5
  "author": "Axel Fuhrmann axel.fuhrmann@up42.com",
6
6
  "license": "ISC",
@@ -58,10 +58,9 @@
58
58
  "@storybook/react-vite": "^8.6.15",
59
59
  "@storybook/theming": "^8.6.15",
60
60
  "@svgr/rollup": "^6.2.1",
61
- "@testing-library/react": "^12.1.2",
62
- "@testing-library/react-hooks": "^8.0.1",
61
+ "@testing-library/react": "^14.3.1",
63
62
  "@types/prismjs": "^1.26.0",
64
- "@types/react": "^17.0.38",
63
+ "@types/react": "^18.3.1",
65
64
  "@typescript-eslint/eslint-plugin": "^5.10.0",
66
65
  "@typescript-eslint/parser": "^5.10.0",
67
66
  "commit-and-tag-version": "^12.4.1",
@@ -75,10 +74,11 @@
75
74
  "eslint-plugin-react-hooks": "^4.3.0",
76
75
  "eslint-plugin-storybook": "^0.12.0",
77
76
  "husky": "^7.0.4",
77
+ "jsdom": "^21.1.1",
78
78
  "lint-staged": "^12.3.1",
79
79
  "prettier": "^2.5.1",
80
- "react": "^17.0.2",
81
- "react-router-dom": "^6.30.3",
80
+ "react": "^18.3.1",
81
+ "react-router": "^7.12.0",
82
82
  "rimraf": "^6.1.2",
83
83
  "rollup": "^4.13.2",
84
84
  "rollup-plugin-dts": "^6.1.0",
@@ -87,7 +87,7 @@
87
87
  "svgo": "^3.3.2",
88
88
  "tslib": "^2.8.1",
89
89
  "typescript": "^4.5.4",
90
- "vite": "^7.1.4",
90
+ "vite": "^7.1.12",
91
91
  "vite-plugin-svgr": "^4.2.0",
92
92
  "vitest": "^3.2.4"
93
93
  },
@@ -98,8 +98,8 @@
98
98
  "@mui/material": "^5.3.0",
99
99
  "@mui/x-data-grid-premium": "^6.8.0",
100
100
  "@mui/x-date-pickers-pro": "^6.8.0",
101
- "react": "^17.0.2",
102
- "react-dom": "^17.0.2"
101
+ "react": "^18.3.1",
102
+ "react-dom": "^18.3.1"
103
103
  },
104
104
  "lint-staged": {
105
105
  "*.{js,tsx,ts}": "eslint --cache --fix",
@@ -119,7 +119,8 @@
119
119
  "pnpm": {
120
120
  "//": "Lodash override should be removed when we upgrade to Storybook 9+",
121
121
  "overrides": {
122
- "lodash@>=4.0.0 <=4.17.22": ">=4.17.23"
122
+ "lodash@>=4.0.0 <=4.17.22": ">=4.17.23",
123
+ "csstype@>=3.0.0": "3.1.3"
123
124
  }
124
125
  }
125
126
  }