@up42/up-components 1.4.1 → 1.4.3

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.
@@ -1,5 +1,15 @@
1
1
  /// <reference types="react" />
2
+ export declare type NotFoundProps = {
3
+ /**
4
+ * The label of the CTA button
5
+ */
6
+ ctaLabel?: string;
7
+ /**
8
+ * The path of the CTA button.
9
+ */
10
+ ctaPath?: string;
11
+ };
2
12
  /**
3
13
  * Documentation: https://up-components.up42.com/?path=/docs/patterns-notfound--docs
4
14
  */
5
- export declare const NotFound: () => JSX.Element;
15
+ export declare const NotFound: ({ ctaLabel, ctaPath }: NotFoundProps) => JSX.Element;
@@ -38,7 +38,7 @@ export { CopyButton, type CopyButtonProps } from './components/CopyButton/CopyBu
38
38
  export { Popover, type PopoverProps } from './components/Popover/Popover';
39
39
  export { InfoPopover, type InfoPopoverProps } from './components/InfoPopover/InfoPopover';
40
40
  export { PageHeader, type PageHeaderProps } from './components/PageHeader/PageHeader';
41
- export { NotFound } from './components/NotFound/NotFound';
41
+ export { NotFound, type NotFoundProps } from './components/NotFound/NotFound';
42
42
  export { Loading, type LoadingProps } from './components/Loading/Loading';
43
43
  export { Icon, type IconProps } from './components/Icon/Icon';
44
44
  export { Badge, type BadgeProps } from './components/Badge/Badge';
package/dist/index.d.ts CHANGED
@@ -632,10 +632,20 @@ declare type PageHeaderProps = {
632
632
  */
633
633
  declare const PageHeader: ({ title, description, divider, action, secondaryAction, onSubmitTitle, }: PageHeaderProps) => JSX.Element;
634
634
 
635
+ declare type NotFoundProps = {
636
+ /**
637
+ * The label of the CTA button
638
+ */
639
+ ctaLabel?: string;
640
+ /**
641
+ * The path of the CTA button.
642
+ */
643
+ ctaPath?: string;
644
+ };
635
645
  /**
636
646
  * Documentation: https://up-components.up42.com/?path=/docs/patterns-notfound--docs
637
647
  */
638
- declare const NotFound: () => JSX.Element;
648
+ declare const NotFound: ({ ctaLabel, ctaPath }: NotFoundProps) => JSX.Element;
639
649
 
640
650
  declare type LoadingProps = {
641
651
  /**
@@ -2161,4 +2171,4 @@ declare type ContextState = {
2161
2171
  */
2162
2172
  declare const useAlert: () => ContextState;
2163
2173
 
2164
- export { Alert, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Banner, BannerProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, CodeInline, CodeInlineProps, CodeSnippet, CodeSnippetItemProps, CodeSnippetProps, ContactBox, ContactBoxProps, Container, ContainerProps, ControlButton, ControlButtonProps, CopyButton, CopyButtonProps, CreateAlertProps, DataGrid, DataGridProps, DatePickerDateType, DateTime, DateTimeProps, Divider, DividerProps, DocumentationPopover, DocumentationPopoverProps, EmptyState, EmptyStateProps, FormCheckbox, FormCheckboxProps, FormDatePicker, FormDatePickerProps, FormDateRangePicker, FormDateRangePickerProps, FormInput, FormInputProps, FormRadio, FormRadioProps, FormSelect, FormSelectProps, FormSwitch, FormSwitchProps, Icon, IconProps, InfoCard, InfoCardProps, InfoModal, InfoModalProps, InfoPopover, InfoPopoverProps, Input, InputProps, Link, LinkProps, Loading, LoadingProps, Menu, MenuItem, MenuItemProps, MenuProps, Modal, ModalProps, NotFound, PageHeader, PageHeaderProps, PaginatedResponse, Popover, PopoverProps, Radio, RadioProps, Select, SelectProps, Slider, SliderProps, Switch, SwitchProps, Tab, TabGroup, TabGroupProps, TabProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableContainer, TableContainerProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TablePagination, TablePaginationProps, TableProps, TableRow, TableRowProps, TableSortLabel, TableSortLabelProps, Tabs, TabsProps, Tag, TagProps, Tooltip, TooltipProps, Typography, TypographyProps, UpComponentsProvider, capitalize, copyToClipboard, formatDate, formatFileSize, formatNumber, theme, useAlert, useQueryParams, useRemotePagination };
2174
+ export { Alert, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Banner, BannerProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, CodeInline, CodeInlineProps, CodeSnippet, CodeSnippetItemProps, CodeSnippetProps, ContactBox, ContactBoxProps, Container, ContainerProps, ControlButton, ControlButtonProps, CopyButton, CopyButtonProps, CreateAlertProps, DataGrid, DataGridProps, DatePickerDateType, DateTime, DateTimeProps, Divider, DividerProps, DocumentationPopover, DocumentationPopoverProps, EmptyState, EmptyStateProps, FormCheckbox, FormCheckboxProps, FormDatePicker, FormDatePickerProps, FormDateRangePicker, FormDateRangePickerProps, FormInput, FormInputProps, FormRadio, FormRadioProps, FormSelect, FormSelectProps, FormSwitch, FormSwitchProps, Icon, IconProps, InfoCard, InfoCardProps, InfoModal, InfoModalProps, InfoPopover, InfoPopoverProps, Input, InputProps, Link, LinkProps, Loading, LoadingProps, Menu, MenuItem, MenuItemProps, MenuProps, Modal, ModalProps, NotFound, NotFoundProps, PageHeader, PageHeaderProps, PaginatedResponse, Popover, PopoverProps, Radio, RadioProps, Select, SelectProps, Slider, SliderProps, Switch, SwitchProps, Tab, TabGroup, TabGroupProps, TabProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableContainer, TableContainerProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TablePagination, TablePaginationProps, TableProps, TableRow, TableRowProps, TableSortLabel, TableSortLabelProps, Tabs, TabsProps, Tag, TagProps, Tooltip, TooltipProps, Typography, TypographyProps, UpComponentsProvider, capitalize, copyToClipboard, formatDate, formatFileSize, formatNumber, theme, useAlert, useQueryParams, useRemotePagination };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@up42/up-components",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "UP42 Component Library",
5
5
  "author": "Axel Fuhrmann axel.fuhrmann@up42.com",
6
6
  "license": "ISC",