@up42/up-components 7.1.0 → 7.3.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/RoleBanner/RoleBanner.d.ts +13 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/components/RoleBanner/RoleBanner.d.ts +13 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +15 -3
- package/package.json +8 -5
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { type ButtonProps } from '../Button/Button';
|
|
3
|
+
export type RoleBannerProps = PropsWithChildren<{
|
|
4
|
+
title: string;
|
|
5
|
+
}>;
|
|
6
|
+
/**
|
|
7
|
+
* Documentation: https://up-components.up42.com/?path=/docs/patterns-rolebanner--docs
|
|
8
|
+
*/
|
|
9
|
+
export declare function RoleBanner({ title, children }: RoleBannerProps): React.JSX.Element;
|
|
10
|
+
export type LearnMoreButtonProps = ButtonProps;
|
|
11
|
+
export declare function LearnMoreButton(props: LearnMoreButtonProps): React.JSX.Element;
|
|
12
|
+
export type FindUsersButtonProps = ButtonProps;
|
|
13
|
+
export declare function FindUsersButton(props: FindUsersButtonProps): React.JSX.Element;
|
|
@@ -61,6 +61,7 @@ export { Table, TableBody, TableCell, TableHead, TableContainer, TableRow, Table
|
|
|
61
61
|
export { DataGrid, GridRow, GridCell, GridEditInputCell, GridCellModes, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridRowCount, GridSelectedRowCount, gridColumnDefinitionsSelector, gridColumnVisibilityModelSelector, gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridRowsLookupSelector, GRID_DETAIL_PANEL_TOGGLE_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, useGridApiContext, useGridApiRef, useGridSelector, } from './components/DataGrid/DataGrid';
|
|
62
62
|
export type { GridColDef, GridRenderEditCellParams, GridCellModesModel, GridCellParams, GridRenderCellParams, GridRowId, GridRowParams, GridRowSelectionModel, GridRowsProp, GridSortModel, GridTreeNodeWithRender, GridColumnHeaderParams, GridEditCellProps, GridInitialState, GridPreProcessEditCellProps, } from './components/DataGrid/DataGrid';
|
|
63
63
|
export { ToggleButton, type ToggleButtonProps } from './components/ToggleButton/ToggleButton';
|
|
64
|
+
export { FindUsersButton, LearnMoreButton, RoleBanner, type FindUsersButtonProps, type LearnMoreButtonProps, type RoleBannerProps, } from './components/RoleBanner/RoleBanner';
|
|
64
65
|
export { capitalize } from './utils/helpers/capitalize';
|
|
65
66
|
export { copyToClipboard } from './utils/helpers/copyToClipboard';
|
|
66
67
|
export { formatNumber } from './utils/helpers/formatNumber';
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { BoxProps, TextFieldProps, AvatarProps as AvatarProps$1, GridProps, Cont
|
|
|
4
4
|
export * from '@mui/material';
|
|
5
5
|
import { ThemeProviderProps } from '@mui/material/styles/ThemeProvider';
|
|
6
6
|
import * as React from 'react';
|
|
7
|
-
import React__default, { ReactNode, ElementType, SyntheticEvent } from 'react';
|
|
7
|
+
import React__default, { ReactNode, ElementType, SyntheticEvent, PropsWithChildren } from 'react';
|
|
8
8
|
import { ButtonProps as ButtonProps$1 } from '@mui/material/Button';
|
|
9
9
|
import { TypographyProps as TypographyProps$1 } from '@mui/material/Typography';
|
|
10
10
|
import { DatePickerProps, DateTimePickerProps } from '@mui/x-date-pickers-pro';
|
|
@@ -11962,6 +11962,18 @@ type ToggleButtonProps = Omit<ToggleButtonProps$1, 'size' | 'color' | 'value'> &
|
|
|
11962
11962
|
*/
|
|
11963
11963
|
declare const ToggleButton: ({ size, color, value, iconName, ...props }: ToggleButtonProps) => React__default.JSX.Element;
|
|
11964
11964
|
|
|
11965
|
+
type RoleBannerProps = PropsWithChildren<{
|
|
11966
|
+
title: string;
|
|
11967
|
+
}>;
|
|
11968
|
+
/**
|
|
11969
|
+
* Documentation: https://up-components.up42.com/?path=/docs/patterns-rolebanner--docs
|
|
11970
|
+
*/
|
|
11971
|
+
declare function RoleBanner({ title, children }: RoleBannerProps): React__default.JSX.Element;
|
|
11972
|
+
type LearnMoreButtonProps = ButtonProps;
|
|
11973
|
+
declare function LearnMoreButton(props: LearnMoreButtonProps): React__default.JSX.Element;
|
|
11974
|
+
type FindUsersButtonProps = ButtonProps;
|
|
11975
|
+
declare function FindUsersButton(props: FindUsersButtonProps): React__default.JSX.Element;
|
|
11976
|
+
|
|
11965
11977
|
/**
|
|
11966
11978
|
* It should to be noted that this helper isn't equivalent to `text-transform: capitalize`.
|
|
11967
11979
|
* A strict capitalization should uppercase the first letter of each word in the sentence.
|
|
@@ -12190,5 +12202,5 @@ type ContextState = {
|
|
|
12190
12202
|
*/
|
|
12191
12203
|
declare const useAlert: () => ContextState;
|
|
12192
12204
|
|
|
12193
|
-
export { Alert, Avatar, Badge, Banner, Button, Checkbox, CodeBlock, CodeInline, CodeSnippet, ContactBox, ControlButton, CopyButton, DataGrid, DateTime, Divider, DocumentationPopover, EditTagsButton, EmptyState, FeatureCard, FeatureCardHeader, FeatureCardHeaderActions, FeatureFlagCheckbox, FormCheckbox, FormDatePicker, FormDateRangePicker, FormDateRangePickerList, FormDateTimePicker, FormInput, FormRadio, FormSelect, FormSwitch, GridContainer, GridItem, Icon, Illustration, InfoCard, InfoModal, InfoPopover, Input, Link, Loading, Logo, NotFound, PageContainer, PageHeader, PageHeaderV2, Popover, Radio, 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 };
|
|
12194
|
-
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, FormCheckboxProps, FormDatePickerDateType, FormDatePickerProps, FormDateRangePickerListProps, FormDateRangePickerProps, FormDateTimePickerProps, FormInputProps, FormRadioProps, FormSelectProps, FormSwitchProps, GridContainerProps, GridItemProps, IconAction, IconProps$1 as IconProps, IllustrationProps, InfoCardProps, InfoModalProps, InfoPopoverProps, InputProps, LinkProps, LoadingProps, LogoProps, MenuAction, NotFoundProps, PageContainerProps, PageHeaderProps, PageHeaderV2Props, PaginatedResponse, PopoverProps, RadioProps, SelectProps, SliderProps, StatusLightProps, SwitchProps, TabGroupProps, TabProps, TableBodyProps, TableCellProps, TableContainerProps, TableFooterProps, TableHeadProps, TablePaginationProps, TableProps, TableRowProps, TableSortLabelProps, TabsProps, TagItem, TagProps, TagsListProps, ToggleButtonProps, TypographyProps, UseToggleResult };
|
|
12205
|
+
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 };
|
|
12206
|
+
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@up42/up-components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "UP42 Component Library",
|
|
5
5
|
"author": "Axel Fuhrmann axel.fuhrmann@up42.com",
|
|
6
6
|
"license": "ISC",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"optimize-icons": "svgo -f src/global/icons"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@up42/design-system-tokens": "^
|
|
33
|
+
"@up42/design-system-tokens": "^8.0.0",
|
|
34
34
|
"dayjs": "^1.11.7",
|
|
35
35
|
"prismjs": "^1.29.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@commitlint/cli": "^
|
|
39
|
-
"@commitlint/config-conventional": "^
|
|
38
|
+
"@commitlint/cli": "^20.3.1",
|
|
39
|
+
"@commitlint/config-conventional": "^20.3.1",
|
|
40
40
|
"@emotion/react": "^11.7.1",
|
|
41
41
|
"@emotion/styled": "^11.6.0",
|
|
42
42
|
"@mui/icons-material": "^5.3.0",
|
|
@@ -117,6 +117,9 @@
|
|
|
117
117
|
},
|
|
118
118
|
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39",
|
|
119
119
|
"pnpm": {
|
|
120
|
-
"
|
|
120
|
+
"//": "Lodash override should be removed when we upgrade to Storybook 9+",
|
|
121
|
+
"overrides": {
|
|
122
|
+
"lodash@>=4.0.0 <=4.17.22": ">=4.17.23"
|
|
123
|
+
}
|
|
121
124
|
}
|
|
122
125
|
}
|