@ringcentral/juno 3.0.0-alpha.1 → 3.0.0-alpha.10
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/components/Avatar/styles/StyledAvatarWrapper.d.ts +23 -1
- package/components/Avatar/styles/StyledPresenceWrapper.d.ts +4 -2
- package/components/Avatar/styles/StyledPresenceWrapper.js +2 -2
- package/components/Buttons/Button/Button.d.ts +58 -54
- package/components/Buttons/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/components/Buttons/IconButton/IconButton.d.ts +63 -59
- package/components/Buttons/IconButton/utils/IconButtonUtils.d.ts +1 -1
- package/components/Buttons/ToggleButton/ToggleButton.d.ts +5 -1
- package/components/Card/CardContent/CardContent.d.ts +1 -1
- package/components/Card/CardHeader/CardHeader.d.ts +1 -1
- package/components/Card/CardMedia/CardMedia.d.ts +1 -1
- package/components/Dialog/DialogActions/DialogActions.d.ts +49 -49
- package/components/Dialog/DialogContent/DialogContent.d.ts +1 -1
- package/components/Dialog/DialogContentText/DialogContentText.d.ts +3 -3
- package/components/Dialog/DialogTitle/DialogTitle.d.ts +1 -1
- package/components/Divider/Divider.d.ts +1 -1
- package/components/Downshift/SuggestionList/utils/useSuggestionList.d.ts +10 -10
- package/components/Downshift/styles/DownshiftStyle.d.ts +63 -59
- package/components/Downshift/utils/useDownshift.d.ts +104 -104
- package/components/Downshift/utils/useDownshiftTag.d.ts +64 -64
- package/components/Forms/Checkbox/Checkbox.d.ts +5 -1
- package/components/Forms/FormHelperText/FormHelperText.d.ts +1 -1
- package/components/Forms/FormHelperText/styles/StyledFormHelperText.d.ts +1 -1
- package/components/Forms/Picker/DatePicker/styles/StyledCalendar.d.ts +4 -2
- package/components/Forms/Picker/DatePicker/styles/StyledDatePickerHeader.d.ts +65 -60
- package/components/Forms/Picker/DatePicker/styles/StyledDatePickerHeader.js +3 -3
- package/components/Forms/Picker/DatePicker/utils/DatePickerUtils.d.ts +1 -1
- package/components/Forms/Picker/TimePicker/styles/StyledPickerPopperWrap.d.ts +3 -1
- package/components/Forms/Picker/TimePicker/styles/StyledSelectionItem.d.ts +13 -1
- package/components/Forms/Picker/TimePicker/styles/StyledTimeIconButton.d.ts +13 -1
- package/components/Forms/Picker/utils/PickerTextField/PickerTextField.d.ts +1 -1
- package/components/Forms/Radio/Radio.d.ts +5 -1
- package/components/Forms/TextField/TextField.d.ts +60 -60
- package/components/Grid/Grid.d.ts +1 -1
- package/components/List/List/List.d.ts +1 -1
- package/components/List/ListItem/ListItem.d.ts +54 -50
- package/components/Menu/MenuItem/MenuItem.d.ts +113 -51
- package/components/Pagination/PaginationItem/PaginationItem.d.ts +2 -2
- package/components/PopupBox/PopupBox.js +3 -1
- package/components/Table/TableBody/TableBody.d.ts +1 -1
- package/components/Table/TableCell/TableCell.d.ts +53 -53
- package/components/Table/TableCell/utils/TableCellUtils.d.ts +1 -1
- package/components/Table/TableHead/TableHead.d.ts +1 -1
- package/components/TablePagination/styles/TablePaginationStyle.d.ts +104 -52
- package/components/Tag/Tag.d.ts +1 -1
- package/components/Tooltip/withTooltip/withTooltip.d.ts +3 -2
- package/components/Tooltip/withTooltip/withTooltip.js +6 -3
- package/components/Typography/Typography.d.ts +5 -1
- package/components/VirtualizedMenu/VirtualizedDivider/VirtualizedDivider.d.ts +1 -1
- package/components/Virtuoso/react-virtuoso/Virtuoso.d.ts +28 -28
- package/components/Virtuoso/react-virtuoso/VirtuosoGrid.d.ts +6 -6
- package/es6/components/Avatar/styles/StyledPresenceWrapper.js +2 -2
- package/es6/components/Forms/Picker/DatePicker/styles/StyledDatePickerHeader.js +3 -3
- package/es6/components/Forms/Picker/TimePicker/styles/StyledSelectionItem.js +1 -1
- package/es6/components/PopupBox/PopupBox.js +3 -1
- package/es6/components/Tooltip/withTooltip/withTooltip.js +6 -3
- package/es6/foundation/styled-components.js +9 -3
- package/foundation/styled-components.d.ts +14 -4
- package/foundation/styled-components.js +9 -3
- package/package.json +2 -2
|
@@ -20,7 +20,7 @@ interface Hooks {
|
|
|
20
20
|
export declare function buildScroller({ usePublisher, useEmitter, useEmitterValue }: Hooks): React.FunctionComponent<ScrollerProps>;
|
|
21
21
|
export declare function buildWindowScroller({ usePublisher, useEmitter, useEmitterValue }: Hooks): React.FunctionComponent<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
22
22
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
23
|
-
}, "
|
|
23
|
+
}, "ref" | "style" | "tabIndex" | "children"> & {
|
|
24
24
|
'data-test-id'?: string | undefined;
|
|
25
25
|
'data-virtuoso-scroller'?: boolean | undefined;
|
|
26
26
|
} & {
|
|
@@ -6648,14 +6648,14 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
6648
6648
|
}> | null | undefined>;
|
|
6649
6649
|
ListComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6650
6650
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
6651
|
-
}, "
|
|
6651
|
+
}, "ref" | "style" | "children"> & {
|
|
6652
6652
|
'data-test-id': string;
|
|
6653
6653
|
} & {
|
|
6654
6654
|
context?: unknown;
|
|
6655
6655
|
}> | null | undefined>;
|
|
6656
6656
|
ItemComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6657
6657
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
6658
|
-
}, "
|
|
6658
|
+
}, "style" | "children"> & {
|
|
6659
6659
|
'data-index': number;
|
|
6660
6660
|
'data-item-index': number;
|
|
6661
6661
|
'data-item-group-index'?: number | undefined;
|
|
@@ -6666,7 +6666,7 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
6666
6666
|
}> | null | undefined>;
|
|
6667
6667
|
GroupComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6668
6668
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
6669
|
-
}, "
|
|
6669
|
+
}, "style" | "children"> & {
|
|
6670
6670
|
'data-index': number;
|
|
6671
6671
|
'data-item-index': number;
|
|
6672
6672
|
'data-known-size': number;
|
|
@@ -6675,7 +6675,7 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
6675
6675
|
}> | null | undefined>;
|
|
6676
6676
|
ScrollerComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6677
6677
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
6678
|
-
}, "
|
|
6678
|
+
}, "ref" | "style" | "tabIndex" | "children"> & {
|
|
6679
6679
|
'data-test-id'?: string | undefined;
|
|
6680
6680
|
'data-virtuoso-scroller'?: boolean | undefined;
|
|
6681
6681
|
} & {
|
|
@@ -6783,14 +6783,14 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
6783
6783
|
}> | null | undefined>;
|
|
6784
6784
|
ListComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6785
6785
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
6786
|
-
}, "
|
|
6786
|
+
}, "ref" | "style" | "children"> & {
|
|
6787
6787
|
'data-test-id': string;
|
|
6788
6788
|
} & {
|
|
6789
6789
|
context?: unknown;
|
|
6790
6790
|
}> | null | undefined>;
|
|
6791
6791
|
ItemComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6792
6792
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
6793
|
-
}, "
|
|
6793
|
+
}, "style" | "children"> & {
|
|
6794
6794
|
'data-index': number;
|
|
6795
6795
|
'data-item-index': number;
|
|
6796
6796
|
'data-item-group-index'?: number | undefined;
|
|
@@ -6801,7 +6801,7 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
6801
6801
|
}> | null | undefined>;
|
|
6802
6802
|
GroupComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6803
6803
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
6804
|
-
}, "
|
|
6804
|
+
}, "style" | "children"> & {
|
|
6805
6805
|
'data-index': number;
|
|
6806
6806
|
'data-item-index': number;
|
|
6807
6807
|
'data-known-size': number;
|
|
@@ -6810,7 +6810,7 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
6810
6810
|
}> | null | undefined>;
|
|
6811
6811
|
ScrollerComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6812
6812
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
6813
|
-
}, "
|
|
6813
|
+
}, "ref" | "style" | "tabIndex" | "children"> & {
|
|
6814
6814
|
'data-test-id'?: string | undefined;
|
|
6815
6815
|
'data-virtuoso-scroller'?: boolean | undefined;
|
|
6816
6816
|
} & {
|
|
@@ -6841,14 +6841,14 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
6841
6841
|
}> | null | undefined>;
|
|
6842
6842
|
ListComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6843
6843
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
6844
|
-
}, "
|
|
6844
|
+
}, "ref" | "style" | "children"> & {
|
|
6845
6845
|
'data-test-id': string;
|
|
6846
6846
|
} & {
|
|
6847
6847
|
context?: unknown;
|
|
6848
6848
|
}> | null | undefined>;
|
|
6849
6849
|
ItemComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6850
6850
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
6851
|
-
}, "
|
|
6851
|
+
}, "style" | "children"> & {
|
|
6852
6852
|
'data-index': number;
|
|
6853
6853
|
'data-item-index': number;
|
|
6854
6854
|
'data-item-group-index'?: number | undefined;
|
|
@@ -6859,7 +6859,7 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
6859
6859
|
}> | null | undefined>;
|
|
6860
6860
|
GroupComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6861
6861
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
6862
|
-
}, "
|
|
6862
|
+
}, "style" | "children"> & {
|
|
6863
6863
|
'data-index': number;
|
|
6864
6864
|
'data-item-index': number;
|
|
6865
6865
|
'data-known-size': number;
|
|
@@ -6868,7 +6868,7 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
6868
6868
|
}> | null | undefined>;
|
|
6869
6869
|
ScrollerComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6870
6870
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
6871
|
-
}, "
|
|
6871
|
+
}, "ref" | "style" | "tabIndex" | "children"> & {
|
|
6872
6872
|
'data-test-id'?: string | undefined;
|
|
6873
6873
|
'data-virtuoso-scroller'?: boolean | undefined;
|
|
6874
6874
|
} & {
|
|
@@ -7008,7 +7008,7 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
7008
7008
|
itemsRendered: "itemsRendered";
|
|
7009
7009
|
groupIndices: "groupIndices";
|
|
7010
7010
|
};
|
|
7011
|
-
}>>>, usePublisher: <K extends "data" | "log" | "sizes" | "gap" | "
|
|
7011
|
+
}>>>, usePublisher: <K extends "data" | "log" | "sizes" | "gap" | "propsReady" | "logLevel" | "scrollContainerState" | "scrollTop" | "viewportHeight" | "headerHeight" | "fixedHeaderHeight" | "fixedFooterHeight" | "footerHeight" | "scrollHeight" | "smoothScrollTargetReached" | "scrollTo" | "scrollBy" | "statefulScrollTop" | "deviation" | "scrollingInProgress" | "groupIndices" | "totalCount" | "sizeRanges" | "firstItemIndex" | "statefulTotalCount" | "trackItemSizes" | "itemSize" | "scrollToIndex" | "topListHeight" | "isScrolling" | "isAtTop" | "isAtBottom" | "atBottomThreshold" | "atBottomState" | "atTopStateChange" | "atBottomStateChange" | "scrollDirection" | "atTopThreshold" | "scrollVelocity" | "lastJumpDueToItemResize" | "didMount" | "scrolledToInitialItem" | "initialTopMostItemIndex" | "followOutput" | "autoscrollToBottom" | "groupCounts" | "topItemsIndexes" | "listBoundary" | "overscan" | "increaseViewportBy" | "visibleRange" | "listState" | "endReached" | "startReached" | "rangeChanged" | "itemsRendered" | "initialItemCount" | "isSeeking" | "scrollSeekConfiguration" | "scrollSeekRangeChanged" | "topItemCount" | "totalListHeight" | "totalListHeightChanged" | "initialScrollTop" | "alignToBottom" | "paddingTopAddition" | "useWindowScroll" | "customScrollParent" | "windowScrollContainerState" | "windowViewportRect" | "windowScrollTo" | "scrollIntoView" | "getState" | "restoreStateFrom" | "fixedItemHeight" | "defaultItemHeight" | "context" | "components" | "itemContent" | "computeItemKey" | "headerFooterTag" | "scrollerRef" | "groupContent" | "EmptyPlaceholder" | "ScrollSeekPlaceholder" | "FooterComponent" | "HeaderComponent" | "TopItemListComponent" | "ListComponent" | "ItemComponent" | "GroupComponent" | "ScrollerComponent">(key: K) => (value: {
|
|
7012
7012
|
context: u.StatefulStream<unknown>;
|
|
7013
7013
|
itemContent: u.StatefulStream<ItemContent<any, any> | GroupItemContent<any, any>>;
|
|
7014
7014
|
groupContent: u.StatefulStream<GroupContent<any>>;
|
|
@@ -7027,14 +7027,14 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
7027
7027
|
}> | null | undefined>;
|
|
7028
7028
|
ListComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7029
7029
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7030
|
-
}, "
|
|
7030
|
+
}, "ref" | "style" | "children"> & {
|
|
7031
7031
|
'data-test-id': string;
|
|
7032
7032
|
} & {
|
|
7033
7033
|
context?: unknown;
|
|
7034
7034
|
}> | null | undefined>;
|
|
7035
7035
|
ItemComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7036
7036
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7037
|
-
}, "
|
|
7037
|
+
}, "style" | "children"> & {
|
|
7038
7038
|
'data-index': number;
|
|
7039
7039
|
'data-item-index': number;
|
|
7040
7040
|
'data-item-group-index'?: number | undefined;
|
|
@@ -7045,7 +7045,7 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
7045
7045
|
}> | null | undefined>;
|
|
7046
7046
|
GroupComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7047
7047
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7048
|
-
}, "
|
|
7048
|
+
}, "style" | "children"> & {
|
|
7049
7049
|
'data-index': number;
|
|
7050
7050
|
'data-item-index': number;
|
|
7051
7051
|
'data-known-size': number;
|
|
@@ -7054,7 +7054,7 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
7054
7054
|
}> | null | undefined>;
|
|
7055
7055
|
ScrollerComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7056
7056
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7057
|
-
}, "
|
|
7057
|
+
}, "ref" | "style" | "tabIndex" | "children"> & {
|
|
7058
7058
|
'data-test-id'?: string | undefined;
|
|
7059
7059
|
'data-virtuoso-scroller'?: boolean | undefined;
|
|
7060
7060
|
} & {
|
|
@@ -7142,7 +7142,7 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
7142
7142
|
fixedItemHeight: u.StatefulStream<number | undefined>;
|
|
7143
7143
|
defaultItemHeight: u.StatefulStream<number | undefined>;
|
|
7144
7144
|
gap: u.StatefulStream<number>;
|
|
7145
|
-
}[K] extends u.Stream<infer R> ? R : never) => void, useEmitterValue: <K extends "data" | "log" | "sizes" | "gap" | "
|
|
7145
|
+
}[K] extends u.Stream<infer R> ? R : never) => void, useEmitterValue: <K extends "data" | "log" | "sizes" | "gap" | "propsReady" | "logLevel" | "scrollContainerState" | "scrollTop" | "viewportHeight" | "headerHeight" | "fixedHeaderHeight" | "fixedFooterHeight" | "footerHeight" | "scrollHeight" | "smoothScrollTargetReached" | "scrollTo" | "scrollBy" | "statefulScrollTop" | "deviation" | "scrollingInProgress" | "groupIndices" | "totalCount" | "sizeRanges" | "firstItemIndex" | "statefulTotalCount" | "trackItemSizes" | "itemSize" | "scrollToIndex" | "topListHeight" | "isScrolling" | "isAtTop" | "isAtBottom" | "atBottomThreshold" | "atBottomState" | "atTopStateChange" | "atBottomStateChange" | "scrollDirection" | "atTopThreshold" | "scrollVelocity" | "lastJumpDueToItemResize" | "didMount" | "scrolledToInitialItem" | "initialTopMostItemIndex" | "followOutput" | "autoscrollToBottom" | "groupCounts" | "topItemsIndexes" | "listBoundary" | "overscan" | "increaseViewportBy" | "visibleRange" | "listState" | "endReached" | "startReached" | "rangeChanged" | "itemsRendered" | "initialItemCount" | "isSeeking" | "scrollSeekConfiguration" | "scrollSeekRangeChanged" | "topItemCount" | "totalListHeight" | "totalListHeightChanged" | "initialScrollTop" | "alignToBottom" | "paddingTopAddition" | "useWindowScroll" | "customScrollParent" | "windowScrollContainerState" | "windowViewportRect" | "windowScrollTo" | "scrollIntoView" | "getState" | "restoreStateFrom" | "fixedItemHeight" | "defaultItemHeight" | "context" | "components" | "itemContent" | "computeItemKey" | "headerFooterTag" | "scrollerRef" | "groupContent" | "EmptyPlaceholder" | "ScrollSeekPlaceholder" | "FooterComponent" | "HeaderComponent" | "TopItemListComponent" | "ListComponent" | "ItemComponent" | "GroupComponent" | "ScrollerComponent", V = {
|
|
7146
7146
|
context: u.StatefulStream<unknown>;
|
|
7147
7147
|
itemContent: u.StatefulStream<ItemContent<any, any> | GroupItemContent<any, any>>;
|
|
7148
7148
|
groupContent: u.StatefulStream<GroupContent<any>>;
|
|
@@ -7161,14 +7161,14 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
7161
7161
|
}> | null | undefined>;
|
|
7162
7162
|
ListComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7163
7163
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7164
|
-
}, "
|
|
7164
|
+
}, "ref" | "style" | "children"> & {
|
|
7165
7165
|
'data-test-id': string;
|
|
7166
7166
|
} & {
|
|
7167
7167
|
context?: unknown;
|
|
7168
7168
|
}> | null | undefined>;
|
|
7169
7169
|
ItemComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7170
7170
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7171
|
-
}, "
|
|
7171
|
+
}, "style" | "children"> & {
|
|
7172
7172
|
'data-index': number;
|
|
7173
7173
|
'data-item-index': number;
|
|
7174
7174
|
'data-item-group-index'?: number | undefined;
|
|
@@ -7179,7 +7179,7 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
7179
7179
|
}> | null | undefined>;
|
|
7180
7180
|
GroupComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7181
7181
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7182
|
-
}, "
|
|
7182
|
+
}, "style" | "children"> & {
|
|
7183
7183
|
'data-index': number;
|
|
7184
7184
|
'data-item-index': number;
|
|
7185
7185
|
'data-known-size': number;
|
|
@@ -7188,7 +7188,7 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
7188
7188
|
}> | null | undefined>;
|
|
7189
7189
|
ScrollerComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7190
7190
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7191
|
-
}, "
|
|
7191
|
+
}, "ref" | "style" | "tabIndex" | "children"> & {
|
|
7192
7192
|
'data-test-id'?: string | undefined;
|
|
7193
7193
|
'data-virtuoso-scroller'?: boolean | undefined;
|
|
7194
7194
|
} & {
|
|
@@ -7276,7 +7276,7 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
7276
7276
|
fixedItemHeight: u.StatefulStream<number | undefined>;
|
|
7277
7277
|
defaultItemHeight: u.StatefulStream<number | undefined>;
|
|
7278
7278
|
gap: u.StatefulStream<number>;
|
|
7279
|
-
}[K] extends u.StatefulStream<infer R> ? R : never>(key: K) => V, useEmitter: <K extends "data" | "log" | "sizes" | "gap" | "
|
|
7279
|
+
}[K] extends u.StatefulStream<infer R> ? R : never>(key: K) => V, useEmitter: <K extends "data" | "log" | "sizes" | "gap" | "propsReady" | "logLevel" | "scrollContainerState" | "scrollTop" | "viewportHeight" | "headerHeight" | "fixedHeaderHeight" | "fixedFooterHeight" | "footerHeight" | "scrollHeight" | "smoothScrollTargetReached" | "scrollTo" | "scrollBy" | "statefulScrollTop" | "deviation" | "scrollingInProgress" | "groupIndices" | "totalCount" | "sizeRanges" | "firstItemIndex" | "statefulTotalCount" | "trackItemSizes" | "itemSize" | "scrollToIndex" | "topListHeight" | "isScrolling" | "isAtTop" | "isAtBottom" | "atBottomThreshold" | "atBottomState" | "atTopStateChange" | "atBottomStateChange" | "scrollDirection" | "atTopThreshold" | "scrollVelocity" | "lastJumpDueToItemResize" | "didMount" | "scrolledToInitialItem" | "initialTopMostItemIndex" | "followOutput" | "autoscrollToBottom" | "groupCounts" | "topItemsIndexes" | "listBoundary" | "overscan" | "increaseViewportBy" | "visibleRange" | "listState" | "endReached" | "startReached" | "rangeChanged" | "itemsRendered" | "initialItemCount" | "isSeeking" | "scrollSeekConfiguration" | "scrollSeekRangeChanged" | "topItemCount" | "totalListHeight" | "totalListHeightChanged" | "initialScrollTop" | "alignToBottom" | "paddingTopAddition" | "useWindowScroll" | "customScrollParent" | "windowScrollContainerState" | "windowViewportRect" | "windowScrollTo" | "scrollIntoView" | "getState" | "restoreStateFrom" | "fixedItemHeight" | "defaultItemHeight" | "context" | "components" | "itemContent" | "computeItemKey" | "headerFooterTag" | "scrollerRef" | "groupContent" | "EmptyPlaceholder" | "ScrollSeekPlaceholder" | "FooterComponent" | "HeaderComponent" | "TopItemListComponent" | "ListComponent" | "ItemComponent" | "GroupComponent" | "ScrollerComponent", V = {
|
|
7280
7280
|
context: u.StatefulStream<unknown>;
|
|
7281
7281
|
itemContent: u.StatefulStream<ItemContent<any, any> | GroupItemContent<any, any>>;
|
|
7282
7282
|
groupContent: u.StatefulStream<GroupContent<any>>;
|
|
@@ -7295,14 +7295,14 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
7295
7295
|
}> | null | undefined>;
|
|
7296
7296
|
ListComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7297
7297
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7298
|
-
}, "
|
|
7298
|
+
}, "ref" | "style" | "children"> & {
|
|
7299
7299
|
'data-test-id': string;
|
|
7300
7300
|
} & {
|
|
7301
7301
|
context?: unknown;
|
|
7302
7302
|
}> | null | undefined>;
|
|
7303
7303
|
ItemComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7304
7304
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7305
|
-
}, "
|
|
7305
|
+
}, "style" | "children"> & {
|
|
7306
7306
|
'data-index': number;
|
|
7307
7307
|
'data-item-index': number;
|
|
7308
7308
|
'data-item-group-index'?: number | undefined;
|
|
@@ -7313,7 +7313,7 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
7313
7313
|
}> | null | undefined>;
|
|
7314
7314
|
GroupComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7315
7315
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7316
|
-
}, "
|
|
7316
|
+
}, "style" | "children"> & {
|
|
7317
7317
|
'data-index': number;
|
|
7318
7318
|
'data-item-index': number;
|
|
7319
7319
|
'data-known-size': number;
|
|
@@ -7322,7 +7322,7 @@ export declare const List: React.ForwardRefExoticComponent<{} & {
|
|
|
7322
7322
|
}> | null | undefined>;
|
|
7323
7323
|
ScrollerComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7324
7324
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7325
|
-
}, "
|
|
7325
|
+
}, "ref" | "style" | "tabIndex" | "children"> & {
|
|
7326
7326
|
'data-test-id'?: string | undefined;
|
|
7327
7327
|
'data-virtuoso-scroller'?: boolean | undefined;
|
|
7328
7328
|
} & {
|
|
@@ -347,7 +347,7 @@ declare const Grid: React.ForwardRefExoticComponent<{} & {
|
|
|
347
347
|
}> | null | undefined>;
|
|
348
348
|
ListComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
349
349
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
350
|
-
}, "
|
|
350
|
+
}, "ref" | "className" | "style" | "children"> & {
|
|
351
351
|
'data-test-id': string;
|
|
352
352
|
} & {
|
|
353
353
|
context?: any;
|
|
@@ -357,7 +357,7 @@ declare const Grid: React.ForwardRefExoticComponent<{} & {
|
|
|
357
357
|
}> | null | undefined>;
|
|
358
358
|
ScrollerComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
359
359
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
360
|
-
}, "
|
|
360
|
+
}, "ref" | "style" | "tabIndex" | "children"> & {
|
|
361
361
|
'data-test-id'?: string | undefined;
|
|
362
362
|
'data-virtuoso-scroller'?: boolean | undefined;
|
|
363
363
|
} & {
|
|
@@ -432,7 +432,7 @@ declare const Grid: React.ForwardRefExoticComponent<{} & {
|
|
|
432
432
|
}> | null | undefined>;
|
|
433
433
|
ListComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
434
434
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
435
|
-
}, "
|
|
435
|
+
}, "ref" | "className" | "style" | "children"> & {
|
|
436
436
|
'data-test-id': string;
|
|
437
437
|
} & {
|
|
438
438
|
context?: any;
|
|
@@ -442,7 +442,7 @@ declare const Grid: React.ForwardRefExoticComponent<{} & {
|
|
|
442
442
|
}> | null | undefined>;
|
|
443
443
|
ScrollerComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
444
444
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
445
|
-
}, "
|
|
445
|
+
}, "ref" | "style" | "tabIndex" | "children"> & {
|
|
446
446
|
'data-test-id'?: string | undefined;
|
|
447
447
|
'data-virtuoso-scroller'?: boolean | undefined;
|
|
448
448
|
} & {
|
|
@@ -468,7 +468,7 @@ declare const Grid: React.ForwardRefExoticComponent<{} & {
|
|
|
468
468
|
}> | null | undefined>;
|
|
469
469
|
ListComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
470
470
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
471
|
-
}, "
|
|
471
|
+
}, "ref" | "className" | "style" | "children"> & {
|
|
472
472
|
'data-test-id': string;
|
|
473
473
|
} & {
|
|
474
474
|
context?: any;
|
|
@@ -478,7 +478,7 @@ declare const Grid: React.ForwardRefExoticComponent<{} & {
|
|
|
478
478
|
}> | null | undefined>;
|
|
479
479
|
ScrollerComponent: u.StatefulStream<"div" | React.ComponentType<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
480
480
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
481
|
-
}, "
|
|
481
|
+
}, "ref" | "style" | "tabIndex" | "children"> & {
|
|
482
482
|
'data-test-id'?: string | undefined;
|
|
483
483
|
'data-virtuoso-scroller'?: boolean | undefined;
|
|
484
484
|
} & {
|
|
@@ -8,9 +8,9 @@ export var StyledPresenceWrapper = styled.div(templateObject_1 || (templateObjec
|
|
|
8
8
|
return vertical;
|
|
9
9
|
}, function (_a) {
|
|
10
10
|
var horizontal = _a.horizontal;
|
|
11
|
-
return
|
|
11
|
+
return horizontal === 'right' ? '' : '-';
|
|
12
12
|
}, function (_a) {
|
|
13
13
|
var vertical = _a.vertical;
|
|
14
|
-
return
|
|
14
|
+
return vertical === 'bottom' ? '' : '-';
|
|
15
15
|
});
|
|
16
16
|
var templateObject_1;
|
|
@@ -5,9 +5,9 @@ import { RcIconButtonClasses } from '../../../../Buttons/IconButton/utils';
|
|
|
5
5
|
import { RcIcon } from '../../../../Icon';
|
|
6
6
|
import { textColor } from '../utils';
|
|
7
7
|
var monthInactiveStyle = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &,\n ", " {\n color: ", ";\n }\n"], ["\n &,\n ", " {\n color: ", ";\n }\n"])), RcIcon, focusVisibleColor);
|
|
8
|
-
var StyledCurrentMonth = styled.button(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: none;\n border: none;\n cursor: pointer;\n outline: inherit;\n\n ", ";\n position: relative;\n cursor: pointer;\n margin-left: ", ";\n color: ", ";\n ", ";\n border-radius: ", ";\n\n padding: ", ";\n\n ", ";\n\n ", " {\n margin-left: ", ";\n transform: rotate(", "deg);\n color: ", ";\n }\n\n ", " {\n ", ";\n }\n\n ", " {\n &:hover {\n ", ";\n }\n }\n"], ["\n background: none;\n border: none;\n cursor: pointer;\n outline: inherit;\n\n ", ";\n position: relative;\n cursor: pointer;\n margin-left: ", ";\n color: ", ";\n ", ";\n border-radius: ", ";\n\n padding: ", ";\n\n ", ";\n\n ", " {\n margin-left: ", ";\n transform: rotate(", "deg);\n color: ", ";\n }\n\n ", " {\n ", ";\n }\n\n ", " {\n &:hover {\n ", ";\n }\n }\n"])), flexCenterStyle, spacing(5), textColor, typography('body2'), radius('sm'), spacing(1, 0, 1, 1), focusVisibleShadowStyle('lg', undefined, undefined, 2), RcIcon, spacing(2), function (_a) {
|
|
8
|
+
var StyledCurrentMonth = styled.button(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: none;\n border: none;\n cursor: pointer;\n outline: inherit;\n\n ", ";\n position: relative;\n cursor: pointer;\n margin-left: ", ";\n color: ", ";\n ", ";\n border-radius: ", ";\n\n padding: ", ";\n\n ", ";\n\n ", " {\n margin-left: ", ";\n transform: rotate(\n ", "deg\n );\n color: ", ";\n }\n\n ", " {\n ", ";\n }\n\n ", " {\n &:hover {\n ", ";\n }\n }\n"], ["\n background: none;\n border: none;\n cursor: pointer;\n outline: inherit;\n\n ", ";\n position: relative;\n cursor: pointer;\n margin-left: ", ";\n color: ", ";\n ", ";\n border-radius: ", ";\n\n padding: ", ";\n\n ", ";\n\n ", " {\n margin-left: ", ";\n transform: rotate(\n ", "deg\n );\n color: ", ";\n }\n\n ", " {\n ", ";\n }\n\n ", " {\n &:hover {\n ", ";\n }\n }\n"])), flexCenterStyle, spacing(5), textColor, typography('body2'), radius('sm'), spacing(1, 0, 1, 1), focusVisibleShadowStyle('lg', undefined, undefined, 2), RcIcon, spacing(2), function (_a) {
|
|
9
9
|
var view = _a.view;
|
|
10
|
-
return
|
|
10
|
+
return view === 'day' ? '0' : '180';
|
|
11
11
|
}, palette2('neutral', 'f04'), focusVisible, monthInactiveStyle, nonTouchHoverMedia, monthInactiveStyle);
|
|
12
12
|
var SwitchHeaderWrapper = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-wrap: wrap;\n\n ", "\n"], ["\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-wrap: wrap;\n\n ", "\n"])), function (_a) {
|
|
13
13
|
var size = _a.size;
|
|
@@ -18,7 +18,7 @@ var SwitchHeaderWrapper = styled.div(templateObject_4 || (templateObject_4 = __m
|
|
|
18
18
|
});
|
|
19
19
|
var SwitchHeaderButtonWrapper = styled(RcIconButtonGroup)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n flex: 1;\n display: ", ";\n justify-content: flex-end;\n padding-right: 12px;\n\n ", "\n"], ["\n flex: 1;\n display: ", ";\n justify-content: flex-end;\n padding-right: 12px;\n\n ", "\n"])), function (_a) {
|
|
20
20
|
var view = _a.view;
|
|
21
|
-
return
|
|
21
|
+
return view === 'day' ? 'flex' : 'none';
|
|
22
22
|
}, function (_a) {
|
|
23
23
|
var size = _a.size;
|
|
24
24
|
if (size === 'small') {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __makeTemplateObject } from "tslib";
|
|
2
2
|
import { spacing, styled, typography } from '../../../../../foundation';
|
|
3
|
-
import { StyledTimeIconButton } from './StyledTimeIconButton';
|
|
3
|
+
import { StyledTimeIconButton, } from './StyledTimeIconButton';
|
|
4
4
|
export var StyledSelectionItem = styled(StyledTimeIconButton)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n && {\n ", ";\n /* when itemLength is 4 which makes it to become two line, so add padding for it. */\n margin: ", ";\n }\n"], ["\n && {\n ", ";\n /* when itemLength is 4 which makes it to become two line, so add padding for it. */\n margin: ", ";\n }\n"])), typography('body1'), function (_a) {
|
|
5
5
|
var itemLength = _a.itemLength, wrapperSize = _a.wrapperSize;
|
|
6
6
|
return spacing(wrapperSize === 'small' && itemLength === 4 ? 2 : 1);
|
|
@@ -26,7 +26,9 @@ var _RcPopupBox = forwardRef(function (inProps, ref) {
|
|
|
26
26
|
React.createElement(RcDialogTitle, __assign({ "data-test-automation-id": 'DialogTitle' }, TitleProps), title),
|
|
27
27
|
React.createElement(RcDialogContent, __assign({ "data-test-automation-id": 'DialogContent' }, ContentProps), typeof children === 'string' ? (React.createElement(RcDialogContentText, null, children)) : (children)),
|
|
28
28
|
footer !== null && (React.createElement(RcDialogActions, __assign({ "data-test-automation-id": 'DialogActions' }, ActionsProps), footer || (React.createElement(React.Fragment, null,
|
|
29
|
-
cancelButtonText && (React.createElement(RcButton, __assign({ fullWidth: isXsmall, variant: "text", onClick: function (e) {
|
|
29
|
+
cancelButtonText && (React.createElement(RcButton, __assign({ fullWidth: isXsmall, variant: "text", onClick: function (e) {
|
|
30
|
+
return onCancel === null || onCancel === void 0 ? void 0 : onCancel(e, 'cancelClick');
|
|
31
|
+
}, "data-test-automation-id": "DialogCancelButton", disabled: loading }, cancelButtonProps), cancelButtonText)),
|
|
30
32
|
confirmButtonText && (React.createElement(RcButton, __assign({ fullWidth: isXsmall, onClick: onConfirm, variant: "contained", "data-test-automation-id": "DialogOKButton", disabled: loading, loading: loading }, confirmButtonProps), confirmButtonText)))))))));
|
|
31
33
|
});
|
|
32
34
|
/**
|
|
@@ -5,13 +5,16 @@ import { RcTooltip } from '../Tooltip';
|
|
|
5
5
|
* Make a component can be use with `RcTooltip` and Tooltip Props
|
|
6
6
|
*/
|
|
7
7
|
function withTooltip(Component) {
|
|
8
|
-
|
|
8
|
+
var WithTooltip = forwardRef(function (props, ref) {
|
|
9
9
|
var title = props.title, useRcTooltip = props.useRcTooltip, TooltipProps = props.TooltipProps, rest = __rest(props, ["title", "useRcTooltip", "TooltipProps"]);
|
|
10
|
+
var restProps = rest;
|
|
11
|
+
var ComponentWithRef = Component;
|
|
10
12
|
if (title && useRcTooltip) {
|
|
11
13
|
return (React.createElement(RcTooltip, __assign({ title: title }, TooltipProps),
|
|
12
|
-
React.createElement(
|
|
14
|
+
React.createElement(ComponentWithRef, __assign({}, restProps, { ref: ref }))));
|
|
13
15
|
}
|
|
14
|
-
return React.createElement(
|
|
16
|
+
return (React.createElement(ComponentWithRef, __assign({}, __assign(__assign({}, restProps), { title: title }), { ref: ref })));
|
|
15
17
|
});
|
|
18
|
+
return WithTooltip;
|
|
16
19
|
}
|
|
17
20
|
export { withTooltip };
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
/* eslint-disable import/no-duplicates */
|
|
2
2
|
import * as styledComponents from 'styled-components';
|
|
3
3
|
import { useTheme } from '@material-ui/core/styles';
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
var styledModule = styledComponents;
|
|
5
|
+
var styled = styledModule.default;
|
|
6
|
+
var css = styledModule.css;
|
|
7
|
+
var keyframes = styledModule.keyframes;
|
|
8
|
+
var createGlobalStyle = styledModule.createGlobalStyle;
|
|
9
|
+
var withTheme = styledModule.withTheme;
|
|
10
|
+
var StyleSheetManager = styledComponents.StyleSheetManager;
|
|
11
|
+
var ThemeProvider = styledModule.ThemeProvider;
|
|
12
|
+
var ThemeConsumer = styledModule.ThemeConsumer;
|
|
7
13
|
var RcUseTheme = function () { return useTheme(); };
|
|
8
14
|
export { createGlobalStyle, css, keyframes, RcUseTheme as useTheme, StyleSheetManager, ThemeConsumer, ThemeProvider, withTheme, };
|
|
9
15
|
export default styled;
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import type { FlattenInterpolation, Interpolation, InterpolationValue, Keyframes, ThemedStyledProps, ThemeProps as StyledThemeProps } from 'styled-components';
|
|
1
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import type { FlattenInterpolation, Interpolation, InterpolationValue, Keyframes, ThemedCssFunction, ThemedStyledComponentsModule, ThemedStyledInterface, ThemedStyledProps, ThemeProps as StyledThemeProps } from 'styled-components';
|
|
3
3
|
import * as styledComponents from 'styled-components';
|
|
4
4
|
import { RcTheme } from './theme/theme.type';
|
|
5
5
|
type ThemeProps = StyledThemeProps<RcTheme>;
|
|
6
|
-
declare const
|
|
6
|
+
declare const styledModule: ThemedStyledComponentsModule<RcTheme, RcTheme>;
|
|
7
|
+
declare const styled: ThemedStyledInterface<RcTheme>;
|
|
8
|
+
declare const css: ThemedCssFunction<RcTheme>;
|
|
9
|
+
declare const keyframes: typeof styledModule.keyframes;
|
|
10
|
+
declare const createGlobalStyle: typeof styledModule.createGlobalStyle;
|
|
11
|
+
declare const withTheme: typeof styledModule.withTheme;
|
|
12
|
+
declare const StyleSheetManager: typeof styledComponents.StyleSheetManager & ComponentType<{
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}>;
|
|
15
|
+
declare const ThemeProvider: typeof styledModule.ThemeProvider;
|
|
16
|
+
declare const ThemeConsumer: typeof styledModule.ThemeConsumer;
|
|
7
17
|
type Dependencies = {
|
|
8
|
-
dependencies?: (
|
|
18
|
+
dependencies?: (ComponentType | ((props: unknown) => JSX.Element))[];
|
|
9
19
|
};
|
|
10
20
|
declare const RcUseTheme: <T = RcTheme>() => T;
|
|
11
21
|
export { createGlobalStyle, css, keyframes, RcUseTheme as useTheme, StyleSheetManager, ThemeConsumer, ThemeProvider, withTheme, };
|
|
@@ -5,15 +5,21 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
/* eslint-disable import/no-duplicates */
|
|
6
6
|
var styledComponents = tslib_1.__importStar(require("styled-components"));
|
|
7
7
|
var styles_1 = require("@material-ui/core/styles");
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var styledModule = styledComponents;
|
|
9
|
+
var styled = styledModule.default;
|
|
10
|
+
var css = styledModule.css;
|
|
11
11
|
exports.css = css;
|
|
12
|
+
var keyframes = styledModule.keyframes;
|
|
12
13
|
exports.keyframes = keyframes;
|
|
14
|
+
var createGlobalStyle = styledModule.createGlobalStyle;
|
|
13
15
|
exports.createGlobalStyle = createGlobalStyle;
|
|
16
|
+
var withTheme = styledModule.withTheme;
|
|
14
17
|
exports.withTheme = withTheme;
|
|
18
|
+
var StyleSheetManager = styledComponents.StyleSheetManager;
|
|
15
19
|
exports.StyleSheetManager = StyleSheetManager;
|
|
20
|
+
var ThemeProvider = styledModule.ThemeProvider;
|
|
16
21
|
exports.ThemeProvider = ThemeProvider;
|
|
22
|
+
var ThemeConsumer = styledModule.ThemeConsumer;
|
|
17
23
|
exports.ThemeConsumer = ThemeConsumer;
|
|
18
24
|
var RcUseTheme = function () { return (0, styles_1.useTheme)(); };
|
|
19
25
|
exports.useTheme = RcUseTheme;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ringcentral/juno",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.10",
|
|
4
4
|
"author": "RingCentral",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"tslib": ">=2.0.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@ringcentral/juno-icon": "
|
|
36
|
+
"@ringcentral/juno-icon": "^1.0.0 || ^2.0.0-alpha.0 || ^3.0.0-alpha.0",
|
|
37
37
|
"dayjs": "^1.11.6",
|
|
38
38
|
"react": "^17.0.2 || ^18.0.0",
|
|
39
39
|
"react-dom": "^17.0.2 || ^18.0.0",
|