@up42/up-components 7.5.0-react-18.0 → 8.1.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.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/types/components/FilterPopover/FilterPopover.d.ts +43 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/components/FilterPopover/FilterPopover.d.ts +43 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +45 -3
- package/package.json +13 -11
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PopoverProps } from '../Popover/Popover';
|
|
3
|
+
export type FilterPopoverProps = Pick<PopoverProps, 'anchorEl' | 'onClose' | 'header' | 'sx' | 'size'> & {
|
|
4
|
+
/**
|
|
5
|
+
* Filter area content (placeholder node for now).
|
|
6
|
+
*/
|
|
7
|
+
content?: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Apply button text.
|
|
10
|
+
* @default 'Apply filters'
|
|
11
|
+
*/
|
|
12
|
+
applyButtonLabel?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Loading state for the count of results.
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
isLoadingCount?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Clear button text.
|
|
20
|
+
* @default 'Reset to defaults'
|
|
21
|
+
*/
|
|
22
|
+
clearButtonLabel?: string;
|
|
23
|
+
/**
|
|
24
|
+
* When true, Apply is enabled; when false, disabled.
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
disableApplyButton?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Called when Apply is clicked; popover closes after.
|
|
30
|
+
*/
|
|
31
|
+
onApply?: () => void | Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Called when Clear is clicked; no other behaviour (no close).
|
|
34
|
+
*/
|
|
35
|
+
onClear?: () => void | Promise<void>;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Main container for filter inputs. Composes Popover with Apply/Clear footer.
|
|
39
|
+
* Opens when the user clicks the anchor; closes on Apply or Escape.
|
|
40
|
+
*
|
|
41
|
+
* Documentation: https://up-components.up42.com/?path=/docs-patterns-popovers-filterpopover--docs
|
|
42
|
+
*/
|
|
43
|
+
export declare const FilterPopover: ({ anchorEl, onClose, header, content, applyButtonLabel, clearButtonLabel, disableApplyButton, isLoadingCount, onApply, onClear, ...popoverProps }: FilterPopoverProps) => React.JSX.Element;
|
|
@@ -36,6 +36,7 @@ export { ControlButton, type ControlButtonProps } from './components/ControlButt
|
|
|
36
36
|
export { CopyButton, type CopyButtonProps } from './components/CopyButton/CopyButton';
|
|
37
37
|
export { InfoPopover, type InfoPopoverProps } from './components/InfoPopover/InfoPopover';
|
|
38
38
|
export { Popover, type PopoverProps } from './components/Popover/Popover';
|
|
39
|
+
export { FilterPopover, type FilterPopoverProps } from './components/FilterPopover/FilterPopover';
|
|
39
40
|
export { PageHeader, type PageHeaderProps } from './components/PageHeader/PageHeader';
|
|
40
41
|
export { PageHeaderV2, type PageHeaderV2Props } from './components/PageHeaderV2/PageHeaderV2';
|
|
41
42
|
export { NotFound, type NotFoundProps } from './components/NotFound/NotFound';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as tokens } from '@up42/design-system-tokens/dist/json/tokens.json';
|
|
2
2
|
import * as _mui_material from '@mui/material';
|
|
3
|
-
import { BoxProps, TextFieldProps, AvatarProps as AvatarProps$1, GridProps, ContainerProps, CheckboxProps as CheckboxProps$1, RadioProps as RadioProps$1, RadioGroupProps, SwitchProps as SwitchProps$1, SelectProps as SelectProps$1, SliderProps as SliderProps$1, LinkProps as LinkProps$1,
|
|
3
|
+
import { BoxProps, TextFieldProps, AvatarProps as AvatarProps$1, GridProps, ContainerProps, CheckboxProps as CheckboxProps$1, RadioProps as RadioProps$1, RadioGroupProps, SwitchProps as SwitchProps$1, SelectProps as SelectProps$1, SliderProps as SliderProps$1, LinkProps as LinkProps$1, TabProps as TabProps$1, TabsProps as TabsProps$1, CardProps, ModalProps, AlertProps as AlertProps$1, SxProps, Theme, IconButtonProps, SvgIconProps, PopoverProps as PopoverProps$1, BadgeProps as BadgeProps$1, ChipProps, DividerProps as DividerProps$1, ButtonProps as ButtonProps$2, SnackbarProps } from '@mui/material';
|
|
4
4
|
export * from '@mui/material';
|
|
5
5
|
import { ThemeProviderProps } from '@mui/material/styles/ThemeProvider';
|
|
6
6
|
import * as React from 'react';
|
|
@@ -4740,6 +4740,48 @@ type PopoverProps = Omit<PopoverProps$1, 'content' | 'open' | 'onClose'> & {
|
|
|
4740
4740
|
*/
|
|
4741
4741
|
declare const Popover: React__default.ForwardRefExoticComponent<Omit<PopoverProps, "ref"> & React__default.RefAttributes<unknown>>;
|
|
4742
4742
|
|
|
4743
|
+
type FilterPopoverProps = Pick<PopoverProps, 'anchorEl' | 'onClose' | 'header' | 'sx' | 'size'> & {
|
|
4744
|
+
/**
|
|
4745
|
+
* Filter area content (placeholder node for now).
|
|
4746
|
+
*/
|
|
4747
|
+
content?: React__default.ReactNode;
|
|
4748
|
+
/**
|
|
4749
|
+
* Apply button text.
|
|
4750
|
+
* @default 'Apply filters'
|
|
4751
|
+
*/
|
|
4752
|
+
applyButtonLabel?: string;
|
|
4753
|
+
/**
|
|
4754
|
+
* Loading state for the count of results.
|
|
4755
|
+
* @default false
|
|
4756
|
+
*/
|
|
4757
|
+
isLoadingCount?: boolean;
|
|
4758
|
+
/**
|
|
4759
|
+
* Clear button text.
|
|
4760
|
+
* @default 'Reset to defaults'
|
|
4761
|
+
*/
|
|
4762
|
+
clearButtonLabel?: string;
|
|
4763
|
+
/**
|
|
4764
|
+
* When true, Apply is enabled; when false, disabled.
|
|
4765
|
+
* @default false
|
|
4766
|
+
*/
|
|
4767
|
+
disableApplyButton?: boolean;
|
|
4768
|
+
/**
|
|
4769
|
+
* Called when Apply is clicked; popover closes after.
|
|
4770
|
+
*/
|
|
4771
|
+
onApply?: () => void | Promise<void>;
|
|
4772
|
+
/**
|
|
4773
|
+
* Called when Clear is clicked; no other behaviour (no close).
|
|
4774
|
+
*/
|
|
4775
|
+
onClear?: () => void | Promise<void>;
|
|
4776
|
+
};
|
|
4777
|
+
/**
|
|
4778
|
+
* Main container for filter inputs. Composes Popover with Apply/Clear footer.
|
|
4779
|
+
* Opens when the user clicks the anchor; closes on Apply or Escape.
|
|
4780
|
+
*
|
|
4781
|
+
* Documentation: https://up-components.up42.com/?path=/docs-patterns-popovers-filterpopover--docs
|
|
4782
|
+
*/
|
|
4783
|
+
declare const FilterPopover: ({ anchorEl, onClose, header, content, applyButtonLabel, clearButtonLabel, disableApplyButton, isLoadingCount, onApply, onClear, ...popoverProps }: FilterPopoverProps) => React__default.JSX.Element;
|
|
4784
|
+
|
|
4743
4785
|
type PageHeaderProps = {
|
|
4744
4786
|
title: string;
|
|
4745
4787
|
divider?: boolean;
|
|
@@ -11672,5 +11714,5 @@ type ContextState = {
|
|
|
11672
11714
|
*/
|
|
11673
11715
|
declare const useAlert: () => ContextState;
|
|
11674
11716
|
|
|
11675
|
-
export { Alert, Avatar, Badge, Banner, Button, Checkbox, CodeBlock, CodeInline, CodeSnippet, ContactBox, ControlButton, CopyButton, DataGrid, DateTime, Divider, DocumentationPopover, EditTagsButton, EmptyState, FeatureCard, FeatureCardHeader, FeatureCardHeaderActions, FeatureFlagCheckbox, FindUsersButton, FormCheckbox, FormDatePicker, FormDateRangePicker, FormDateRangePickerList, FormDateTimePicker, FormInput, FormRadio, FormSelect, FormSwitch, GridContainer, GridItem, Icon, Illustration, InfoCard, InfoModal, InfoPopover, Input, LearnMoreButton, Link, Loading, Logo, NotFound, PageContainer, PageHeader, PageHeaderV2, Popover, Radio, RoleBanner, Select, Slider, StatusLight, Switch, Tab, TabGroup, Table, TableBody, TableCell, TableContainer, TableFooter, TableHead, TablePagination, TableRow, TableSortLabel, Tabs, Tag, TagsList, ToggleButton, Typography, UpComponentsProvider, analytics, capitalize, copyToClipboard, formatDate, formatFileSize, formatNumber, generateQueryKey, theme, useAlert, useCursorPagination, useDebounce, useQueryParams, useRemotePagination, useToggle };
|
|
11676
|
-
export type { AlertProps, AnalyticsConfig, AvatarProps, BadgeProps, BannerProps, ButtonProps, CheckboxProps, CodeBlockProps, CodeInlineProps, CodeSnippetItemProps, CodeSnippetProps, ContactBoxProps, ControlButtonProps, CopyButtonProps, CreateAlertProps, CreateSnackbarProps, CursorPaginatedResponse, DateRange, DateTimeProps, DividerProps, DocumentationPopoverProps, EditTagsButtonProps, EmptyStateProps, FeatureCardHeaderActionsProps, FeatureCardHeaderProps, FeatureCardProps, FeatureFlagCheckboxProps, FindUsersButtonProps, FormCheckboxProps, FormDatePickerDateType, FormDatePickerProps, FormDateRangePickerListProps, FormDateRangePickerProps, FormDateTimePickerProps, FormInputProps, FormRadioProps, FormSelectProps, FormSwitchProps, GridContainerProps, GridItemProps, IconAction, IconProps$1 as IconProps, IllustrationProps, InfoCardProps, InfoModalProps, InfoPopoverProps, InputProps, LearnMoreButtonProps, LinkProps, LoadingProps, LogoProps, MenuAction, NotFoundProps, PageContainerProps, PageHeaderProps, PageHeaderV2Props, PaginatedResponse, PopoverProps, RadioProps, RoleBannerProps, SelectProps, SliderProps, StatusLightProps, SwitchProps, TabGroupProps, TabProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TableSortLabelProps, TabsProps, TagItem, TagProps, TagsListProps, ToggleButtonProps, TypographyProps, UseToggleResult };
|
|
11717
|
+
export { Alert, Avatar, Badge, Banner, Button, Checkbox, CodeBlock, CodeInline, CodeSnippet, ContactBox, ControlButton, CopyButton, DataGrid, DateTime, Divider, DocumentationPopover, EditTagsButton, EmptyState, FeatureCard, FeatureCardHeader, FeatureCardHeaderActions, FeatureFlagCheckbox, FilterPopover, FindUsersButton, FormCheckbox, FormDatePicker, FormDateRangePicker, FormDateRangePickerList, FormDateTimePicker, FormInput, FormRadio, FormSelect, FormSwitch, GridContainer, GridItem, Icon, Illustration, InfoCard, InfoModal, InfoPopover, Input, LearnMoreButton, Link, Loading, Logo, NotFound, PageContainer, PageHeader, PageHeaderV2, Popover, Radio, RoleBanner, Select, Slider, StatusLight, Switch, Tab, TabGroup, Table, TableBody, TableCell, TableContainer, TableFooter, TableHead, TablePagination, TableRow, TableSortLabel, Tabs, Tag, TagsList, ToggleButton, Typography, UpComponentsProvider, analytics, capitalize, copyToClipboard, formatDate, formatFileSize, formatNumber, generateQueryKey, theme, useAlert, useCursorPagination, useDebounce, useQueryParams, useRemotePagination, useToggle };
|
|
11718
|
+
export type { AlertProps, AnalyticsConfig, AvatarProps, BadgeProps, BannerProps, ButtonProps, CheckboxProps, CodeBlockProps, CodeInlineProps, CodeSnippetItemProps, CodeSnippetProps, ContactBoxProps, ControlButtonProps, CopyButtonProps, CreateAlertProps, CreateSnackbarProps, CursorPaginatedResponse, DateRange, DateTimeProps, DividerProps, DocumentationPopoverProps, EditTagsButtonProps, EmptyStateProps, FeatureCardHeaderActionsProps, FeatureCardHeaderProps, FeatureCardProps, FeatureFlagCheckboxProps, FilterPopoverProps, FindUsersButtonProps, FormCheckboxProps, FormDatePickerDateType, FormDatePickerProps, FormDateRangePickerListProps, FormDateRangePickerProps, FormDateTimePickerProps, FormInputProps, FormRadioProps, FormSelectProps, FormSwitchProps, GridContainerProps, GridItemProps, IconAction, IconProps$1 as IconProps, IllustrationProps, InfoCardProps, InfoModalProps, InfoPopoverProps, InputProps, LearnMoreButtonProps, LinkProps, LoadingProps, LogoProps, MenuAction, NotFoundProps, PageContainerProps, PageHeaderProps, PageHeaderV2Props, PaginatedResponse, PopoverProps, RadioProps, RoleBannerProps, SelectProps, SliderProps, StatusLightProps, SwitchProps, TabGroupProps, TabProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TableSortLabelProps, TabsProps, TagItem, TagProps, TagsListProps, ToggleButtonProps, TypographyProps, UseToggleResult };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@up42/up-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "UP42 Component Library",
|
|
5
5
|
"author": "Axel Fuhrmann axel.fuhrmann@up42.com",
|
|
6
6
|
"license": "ISC",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"optimize-icons": "svgo -f src/global/icons"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@up42/design-system-tokens": "^8.0.
|
|
33
|
+
"@up42/design-system-tokens": "^8.0.5",
|
|
34
34
|
"dayjs": "^1.11.7",
|
|
35
35
|
"prismjs": "^1.29.0"
|
|
36
36
|
},
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"@rollup/plugin-terser": "^0.4.4",
|
|
50
50
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
51
51
|
"@rollup/plugin-url": "^8.0.2",
|
|
52
|
-
"@storybook/addon-a11y": "^8.6.
|
|
53
|
-
"@storybook/addon-docs": "^8.6.
|
|
54
|
-
"@storybook/addon-essentials": "^8.6.
|
|
52
|
+
"@storybook/addon-a11y": "^8.6.17",
|
|
53
|
+
"@storybook/addon-docs": "^8.6.17",
|
|
54
|
+
"@storybook/addon-essentials": "^8.6.17",
|
|
55
55
|
"@storybook/addon-links": "^8.6.15",
|
|
56
56
|
"@storybook/manager-api": "^8.6.15",
|
|
57
|
-
"@storybook/react": "^8.6.
|
|
58
|
-
"@storybook/react-vite": "^8.6.
|
|
57
|
+
"@storybook/react": "^8.6.17",
|
|
58
|
+
"@storybook/react-vite": "^8.6.17",
|
|
59
59
|
"@storybook/theming": "^8.6.15",
|
|
60
60
|
"@svgr/rollup": "^6.2.1",
|
|
61
61
|
"@testing-library/react": "^14.3.1",
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
"react": "^18.3.1",
|
|
81
81
|
"react-router": "^7.12.0",
|
|
82
82
|
"rimraf": "^6.1.2",
|
|
83
|
-
"rollup": "^4.
|
|
83
|
+
"rollup": "^4.59.0",
|
|
84
84
|
"rollup-plugin-dts": "^6.1.0",
|
|
85
85
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
86
|
-
"storybook": "^8.6.
|
|
87
|
-
"svgo": "^3.3.
|
|
86
|
+
"storybook": "^8.6.17",
|
|
87
|
+
"svgo": "^3.3.3",
|
|
88
88
|
"tslib": "^2.8.1",
|
|
89
89
|
"typescript": "^4.5.4",
|
|
90
90
|
"vite": "^7.1.12",
|
|
@@ -120,7 +120,9 @@
|
|
|
120
120
|
"//": "Lodash override should be removed when we upgrade to Storybook 9+",
|
|
121
121
|
"overrides": {
|
|
122
122
|
"lodash@>=4.0.0 <=4.17.22": ">=4.17.23",
|
|
123
|
-
"
|
|
123
|
+
"serialize-javascript@<=7.0.2": ">=7.0.3",
|
|
124
|
+
"csstype@>=3.0.0": "3.1.3",
|
|
125
|
+
"@tootallnate/once@<3.0.1": ">=3.0.1"
|
|
124
126
|
}
|
|
125
127
|
}
|
|
126
128
|
}
|