@connectif/ui-components 2.3.4 → 2.4.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/components/card/EnhancedCard.d.ts +4 -2
- package/dist/components/icon/icons.d.ts +3 -0
- package/dist/components/input/DateIntervalPicker.d.ts +5 -1
- package/dist/components/input/DateIntervalPickerInputs.d.ts +7 -1
- package/dist/components/input/DateIntervalPickerPopover.d.ts +2 -1
- package/dist/components/input/SelectPopover.d.ts +6 -2
- package/dist/components/layout/SwipeableViews.d.ts +2 -1
- package/dist/components/popover/Popover.d.ts +3 -1
- package/dist/components/scrollable/Carousel.d.ts +9 -0
- package/dist/components/scrollable/index.d.ts +2 -0
- package/dist/components/tab/TabContent.d.ts +6 -1
- package/dist/components/tab/Tabs.d.ts +5 -1
- package/dist/i18n/en.d.ts +2 -1
- package/dist/i18n/es.d.ts +2 -1
- package/dist/i18n/fr.d.ts +2 -1
- package/dist/i18n/it.d.ts +2 -1
- package/dist/i18n/pt.d.ts +2 -1
- package/dist/index.js +1022 -532
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/DateUtils.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BoxProps } from '@mui/material';
|
|
1
|
+
import { BoxProps, SxProps } from '@mui/material';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { IconId } from '../icon/Icon';
|
|
4
4
|
import { EnhancedCardImageProps } from './EnhancedCardImage';
|
|
@@ -92,6 +92,8 @@ export type EnhancedCardProps = React.PropsWithChildren<{
|
|
|
92
92
|
* If `true` the onClick callback will also be triggered on aux click. Default is `false`.
|
|
93
93
|
*/
|
|
94
94
|
enableAuxClick?: boolean;
|
|
95
|
-
|
|
95
|
+
/** sx styles for card */
|
|
96
|
+
sx?: Omit<SxProps, 'accentColor'>;
|
|
97
|
+
} & Pick<BoxProps, 'onClick' | 'onMouseDown' | 'onMouseEnter' | 'onMouseLeave'>>;
|
|
96
98
|
declare const _default: EnhancedCardCompound;
|
|
97
99
|
export default _default;
|
|
@@ -369,6 +369,7 @@ export declare const icons: {
|
|
|
369
369
|
'cellphone-link': string;
|
|
370
370
|
'cellphone-link-off': string;
|
|
371
371
|
'cellphone-message': string;
|
|
372
|
+
'cellphone-off': string;
|
|
372
373
|
'cellphone-settings': string;
|
|
373
374
|
certificate: string;
|
|
374
375
|
'chair-school': string;
|
|
@@ -733,6 +734,7 @@ export declare const icons: {
|
|
|
733
734
|
filmstrip: string;
|
|
734
735
|
'filmstrip-off': string;
|
|
735
736
|
filter: string;
|
|
737
|
+
'filter-off': string;
|
|
736
738
|
'filter-outline': string;
|
|
737
739
|
'filter-remove': string;
|
|
738
740
|
'filter-remove-outline': string;
|
|
@@ -1693,6 +1695,7 @@ export declare const icons: {
|
|
|
1693
1695
|
tag: string;
|
|
1694
1696
|
'tag-faces': string;
|
|
1695
1697
|
'tag-heart': string;
|
|
1698
|
+
'tag-hidden': string;
|
|
1696
1699
|
'tag-multiple': string;
|
|
1697
1700
|
'tag-outline': string;
|
|
1698
1701
|
'tag-plus': string;
|
|
@@ -71,6 +71,10 @@ export type DateIntervalPickerProps = {
|
|
|
71
71
|
* Set of intervals to show at the DateIntervalPicker popover. All showed by default.
|
|
72
72
|
*/
|
|
73
73
|
allowedIntervals?: DateInterval[];
|
|
74
|
+
/**
|
|
75
|
+
* Also show time
|
|
76
|
+
*/
|
|
77
|
+
showTime?: boolean;
|
|
74
78
|
/**
|
|
75
79
|
* Function to be called when the date interval changes
|
|
76
80
|
*/
|
|
@@ -79,5 +83,5 @@ export type DateIntervalPickerProps = {
|
|
|
79
83
|
/**
|
|
80
84
|
* Date interval picker component, which allows to select an interval between two Dates.
|
|
81
85
|
*/
|
|
82
|
-
declare const DateIntervalPicker: ({ interval, startDate, endDate, color, maxSelectableDays, disabled, allowCompare, comparisonInterval, comparisonStartDate, comparisonEndDate, comparisonColor, intersectionColor, minDate, maxDate, allowedIntervals, onChange }: DateIntervalPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
declare const DateIntervalPicker: ({ interval, startDate, endDate, color, maxSelectableDays, disabled, allowCompare, comparisonInterval, comparisonStartDate, comparisonEndDate, comparisonColor, intersectionColor, minDate, maxDate, allowedIntervals, showTime, onChange }: DateIntervalPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
83
87
|
export default DateIntervalPicker;
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
export type FocusableInputDate = 'startDate' | 'endDate' | 'comparisonStartDate' | 'comparisonEndDate';
|
|
2
2
|
export type DateIntervalPickerInputsProps = {
|
|
3
3
|
startDate: string;
|
|
4
|
+
startTime: Date;
|
|
4
5
|
endDate: string;
|
|
6
|
+
endTime: Date;
|
|
5
7
|
comparisonStartDate: string;
|
|
8
|
+
comparisonStartTime: Date;
|
|
6
9
|
comparisonEndDate: string;
|
|
10
|
+
comparisonEndTime: Date;
|
|
7
11
|
placeholder: string;
|
|
8
12
|
highlightedInput: FocusableInputDate;
|
|
9
13
|
color: string;
|
|
10
14
|
comparisonColor: string;
|
|
11
15
|
isComparing?: boolean;
|
|
16
|
+
showTime?: boolean;
|
|
12
17
|
onChange: (value: string) => void;
|
|
18
|
+
onChangeTime: (value: Date) => void;
|
|
13
19
|
onFocus: (focusableInput: FocusableInputDate) => void;
|
|
14
20
|
onBlur: (focusableInput: FocusableInputDate, value: string) => void;
|
|
15
21
|
};
|
|
16
|
-
declare const DateIntervalPickerInputs: ({ startDate, endDate, comparisonStartDate, comparisonEndDate, placeholder, highlightedInput, color, comparisonColor, isComparing, onChange, onFocus, onBlur }: DateIntervalPickerInputsProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare const DateIntervalPickerInputs: ({ startDate, startTime, endDate, endTime, comparisonStartDate, comparisonStartTime, comparisonEndDate, comparisonEndTime, placeholder, highlightedInput, color, comparisonColor, isComparing, showTime, onChange, onChangeTime, onFocus, onBlur }: DateIntervalPickerInputsProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
23
|
export default DateIntervalPickerInputs;
|
|
@@ -17,6 +17,7 @@ export type DateIntervalPickerPopoverProps = {
|
|
|
17
17
|
maxDate: Date;
|
|
18
18
|
allowedIntervals?: DateInterval[];
|
|
19
19
|
anchorEl?: HTMLElement | null;
|
|
20
|
+
showTime?: boolean;
|
|
20
21
|
onApply: (values: {
|
|
21
22
|
interval: DateInterval;
|
|
22
23
|
startDate: Date;
|
|
@@ -27,5 +28,5 @@ export type DateIntervalPickerPopoverProps = {
|
|
|
27
28
|
}) => void;
|
|
28
29
|
onCancel: () => void;
|
|
29
30
|
};
|
|
30
|
-
declare const DateIntervalPickerPopover: ({ interval, startDate, endDate, color, maxSelectableDays, allowCompare, comparisonInterval, comparisonStartDate, comparisonEndDate, comparisonColor, intersectionColor, anchorEl, minDate, maxDate, allowedIntervals, onApply, onCancel }: DateIntervalPickerPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare const DateIntervalPickerPopover: ({ interval, startDate, endDate, color, maxSelectableDays, allowCompare, comparisonInterval, comparisonStartDate, comparisonEndDate, comparisonColor, intersectionColor, anchorEl, minDate, maxDate, allowedIntervals, showTime, onApply, onCancel }: DateIntervalPickerPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
32
|
export default DateIntervalPickerPopover;
|
|
@@ -93,15 +93,19 @@ export type SelectPopoverProps = Pick<PopoverProps, 'anchorEl'> & {
|
|
|
93
93
|
/**
|
|
94
94
|
* Text to show when the list is empty.
|
|
95
95
|
*/
|
|
96
|
-
emptyListPlaceholder?: string;
|
|
96
|
+
emptyListPlaceholder?: string | React.ReactNode;
|
|
97
97
|
/**
|
|
98
98
|
* If `true`, the Apply button will be disabled when there are no changes
|
|
99
99
|
* @default false
|
|
100
100
|
*/
|
|
101
101
|
disableApplyWithoutChanges?: boolean;
|
|
102
|
+
/** Popover will be centered in screen */
|
|
103
|
+
centeredInScreen?: boolean;
|
|
104
|
+
/** Padding for div content*/
|
|
105
|
+
paddingContent?: string;
|
|
102
106
|
};
|
|
103
107
|
/**
|
|
104
108
|
* SelectPopover is a components that renders a complex selector with DataDisplayItems and is multiselectable, infinite scroll and search input.
|
|
105
109
|
*/
|
|
106
|
-
declare const SelectPopover: ({ onApply, onCancel, onLoadMore, onSearch, debounce, multiple, hasMore, isLoading, isLoadingSubtitle2, requiredSelectedItemsToApply, searchPlaceholder, items, anchorEl, itemsColorStyles, selectedItemsIds, popoverWidth, disableRestoreFocus, applyButtonText, maxSelectedItems, keepCurrentSelectionOnSearch, emptyListPlaceholder, disableApplyWithoutChanges }: SelectPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
110
|
+
declare const SelectPopover: ({ onApply, onCancel, onLoadMore, onSearch, debounce, multiple, hasMore, isLoading, isLoadingSubtitle2, requiredSelectedItemsToApply, searchPlaceholder, items, anchorEl, itemsColorStyles, selectedItemsIds, popoverWidth, disableRestoreFocus, applyButtonText, maxSelectedItems, keepCurrentSelectionOnSearch, emptyListPlaceholder, disableApplyWithoutChanges, centeredInScreen, paddingContent }: SelectPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
107
111
|
export default SelectPopover;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare function SwipeableViews({ className, index, style, slideStyle, onChangeIndex, children, ...rootProps }: {
|
|
2
|
+
export declare function SwipeableViews({ className, index, style, slideStyle, onChangeIndex, children, disableScroll, ...rootProps }: {
|
|
3
3
|
className?: string;
|
|
4
4
|
index: number;
|
|
5
5
|
style?: React.CSSProperties;
|
|
6
6
|
slideStyle?: React.CSSProperties;
|
|
7
|
+
disableScroll?: boolean;
|
|
7
8
|
onChangeIndex: (index: number) => void;
|
|
8
9
|
} & React.HTMLProps<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,11 +15,13 @@ export type PopoverProps = Pick<MuiPopoverProps, 'children' | 'anchorEl' | 'sx'
|
|
|
15
15
|
anchorVerticalAlign?: 'bottom' | 'center' | 'top';
|
|
16
16
|
/** If `true`, the modal will not restore focus to previously focused element once modal is hidden or unmounted.*/
|
|
17
17
|
disableRestoreFocus?: boolean;
|
|
18
|
+
/** Popover will be centered in screen */
|
|
19
|
+
centeredInScreen?: boolean;
|
|
18
20
|
};
|
|
19
21
|
/**
|
|
20
22
|
* A Popover can be used to display some content on top of another.
|
|
21
23
|
* It is shown when the anchor element is set and hidden when unset.
|
|
22
24
|
* By default it is positioned below the anchor element.
|
|
23
25
|
*/
|
|
24
|
-
declare const Popover: ({ horizontalAlign, anchorHorizontalOrigin, verticalAlign, anchorVerticalAlign, ...props }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare const Popover: ({ horizontalAlign, anchorHorizontalOrigin, verticalAlign, anchorVerticalAlign, centeredInScreen, ...props }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
27
|
export default Popover;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type CarouselProps<T> = {
|
|
3
|
+
items: T[];
|
|
4
|
+
renderItem: (item: T, index: number) => React.ReactNode;
|
|
5
|
+
gap?: number;
|
|
6
|
+
padding?: number;
|
|
7
|
+
};
|
|
8
|
+
declare function Carousel<T>({ items, renderItem, gap, padding }: CarouselProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Carousel;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export type TabContentProps = React.PropsWithChildren<
|
|
2
|
+
export type TabContentProps = React.PropsWithChildren<{
|
|
3
|
+
/**
|
|
4
|
+
* Property to hide tabContent with display: none instead hide content. (This is valid to manage forms)
|
|
5
|
+
*/
|
|
6
|
+
keepMounted?: boolean;
|
|
7
|
+
}>;
|
|
3
8
|
/**
|
|
4
9
|
* The element that should be used as first child of Tabs component.
|
|
5
10
|
*/
|
|
@@ -38,6 +38,10 @@ export type TabsProps = {
|
|
|
38
38
|
* Set the scrollbarGutter property for each slide of the SwipeableViews component.
|
|
39
39
|
*/
|
|
40
40
|
scrollbarGutter?: 'stable' | 'auto';
|
|
41
|
+
/**
|
|
42
|
+
* Hide scroll in tab content
|
|
43
|
+
*/
|
|
44
|
+
disableContentScroll?: boolean;
|
|
41
45
|
};
|
|
42
46
|
/**
|
|
43
47
|
* Define a Tabs container, with a fixed header and a transitions on change between tabs.
|
|
@@ -48,5 +52,5 @@ export type TabsProps = {
|
|
|
48
52
|
* define a callback function to be called when the tab is clicked, so you can do something
|
|
49
53
|
* with the current tab index.
|
|
50
54
|
*/
|
|
51
|
-
declare const Tabs: ({ tabButtons, children, currentTabIndex, onChangeTab, variant, fullHeight, contained, scrollbarGutter }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
declare const Tabs: ({ tabButtons, children, currentTabIndex, onChangeTab, variant, fullHeight, contained, scrollbarGutter, disableContentScroll }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
52
56
|
export default Tabs;
|
package/dist/i18n/en.d.ts
CHANGED
package/dist/i18n/es.d.ts
CHANGED
package/dist/i18n/fr.d.ts
CHANGED
package/dist/i18n/it.d.ts
CHANGED
package/dist/i18n/pt.d.ts
CHANGED