@onewelcome/react-lib-components 2.0.0-alpha.1 → 2.0.0-alpha.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.
- package/dist/cjs/DataGrid/DataGridActions/DataGridActions.cjs.js +1 -1
- package/dist/cjs/Form/Toggle/Toggle.module.cjs.js +1 -1
- package/dist/cjs/Notifications/Banner/Banner.module.cjs.js +1 -1
- package/dist/cjs/Notifications/BaseModal/BaseModal.module.cjs.js +1 -1
- package/dist/cjs/Pagination/Pagination.cjs.js +1 -1
- package/dist/cjs/ProgressBar/ProgressBar.module.cjs.js +1 -1
- package/dist/cjs/Tooltip/Tooltip.module.cjs.js +1 -1
- package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js +1 -1
- package/dist/cjs/components/Form/FormControl/FormControl.d.ts +1 -1
- package/dist/cjs/components/_BaseStyling_/BaseStyling.d.ts +4 -0
- package/dist/esm/Breadcrumbs/Breadcrumbs.module.esm.js +1 -1
- package/dist/esm/Button/BaseButton.module.esm.js +1 -1
- package/dist/esm/Button/Button.module.esm.js +1 -1
- package/dist/esm/Button/IconButton.module.esm.js +1 -1
- package/dist/esm/ContextMenu/ContextMenu.module.esm.js +1 -1
- package/dist/esm/ContextMenu/ContextMenuItem.module.esm.js +1 -1
- package/dist/esm/DataGrid/DataGrid.module.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridActions/DataGridActions.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridActions/DataGridActions.module.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.module.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridBody/DataGridBody.module.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridBody/DataGridCell.module.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridBody/DataGridRow.module.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.module.esm.js +1 -1
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.module.esm.js +1 -1
- package/dist/esm/Form/Checkbox/Checkbox.module.esm.js +1 -1
- package/dist/esm/Form/Fieldset/Fieldset.module.esm.js +1 -1
- package/dist/esm/Form/Form.module.esm.js +1 -1
- package/dist/esm/Form/FormControl/FormControl.module.esm.js +1 -1
- package/dist/esm/Form/FormGroup/FormGroup.module.esm.js +1 -1
- package/dist/esm/Form/FormHelperText/FormHelperText.module.esm.js +1 -1
- package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.module.esm.js +1 -1
- package/dist/esm/Form/Input/Input.module.esm.js +1 -1
- package/dist/esm/Form/Label/Label.module.esm.js +1 -1
- package/dist/esm/Form/Radio/Radio.module.esm.js +1 -1
- package/dist/esm/Form/Select/Select.module.esm.js +1 -1
- package/dist/esm/Form/Textarea/Textarea.module.esm.js +1 -1
- package/dist/esm/Form/Toggle/Toggle.module.esm.js +1 -1
- package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.esm.js +1 -1
- package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.module.esm.js +1 -1
- package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.module.esm.js +1 -1
- package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.module.esm.js +1 -1
- package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.esm.js +1 -1
- package/dist/esm/Form/Wrapper/Wrapper/Wrapper.module.esm.js +1 -1
- package/dist/esm/Icon/Icon.module.esm.js +1 -1
- package/dist/esm/Link/Link.module.esm.js +1 -1
- package/dist/esm/Notifications/Banner/Banner.module.esm.js +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModal.module.esm.js +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.esm.js +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.esm.js +1 -1
- package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.esm.js +1 -1
- package/dist/esm/Notifications/Dialog/Dialog.module.esm.js +1 -1
- package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.module.esm.js +1 -1
- package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.module.esm.js +1 -1
- package/dist/esm/Notifications/SlideInModal/SlideInModal.module.esm.js +1 -1
- package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.esm.js +1 -1
- package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.esm.js +1 -1
- package/dist/esm/Pagination/Pagination.esm.js +1 -1
- package/dist/esm/Pagination/Pagination.module.esm.js +1 -1
- package/dist/esm/Popover/Popover.module.esm.js +1 -1
- package/dist/esm/ProgressBar/ProgressBar.module.esm.js +1 -1
- package/dist/esm/Skeleton/Skeleton.module.esm.js +1 -1
- package/dist/esm/StatusIndicator/StatusIndicator.module.esm.js +1 -1
- package/dist/esm/Tabs/Tab.module.esm.js +1 -1
- package/dist/esm/Tabs/TabButton.module.esm.js +1 -1
- package/dist/esm/Tabs/Tabs.module.esm.js +1 -1
- package/dist/esm/TextEllipsis/TextEllipsis.module.esm.js +1 -1
- package/dist/esm/Tiles/Tile.module.esm.js +1 -1
- package/dist/esm/Tiles/Tiles.module.esm.js +1 -1
- package/dist/esm/Tooltip/Tooltip.module.esm.js +1 -1
- package/dist/esm/Typography/Typography.module.esm.js +1 -1
- package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.module.esm.js +1 -1
- package/dist/esm/_BaseStyling_/BaseStyling.esm.js +1 -1
- package/dist/esm/components/Form/FormControl/FormControl.d.ts +1 -1
- package/dist/esm/components/_BaseStyling_/BaseStyling.d.ts +4 -0
- package/dist/esm/src/readyclasses.module.esm.js +1 -1
- package/package.json +23 -20
- package/src/components/DataGrid/DataGridActions/DataGridActions.test.tsx +2 -0
- package/src/components/DataGrid/DataGridActions/DataGridActions.tsx +1 -1
- package/src/components/Form/FormControl/FormControl.tsx +1 -1
- package/src/components/Form/Toggle/Toggle.module.scss +1 -1
- package/src/components/Notifications/Banner/Banner.module.scss +1 -1
- package/src/components/Notifications/BaseModal/BaseModal.module.scss +1 -1
- package/src/components/Pagination/Pagination.tsx +11 -1
- package/src/components/ProgressBar/ProgressBar.module.scss +1 -1
- package/src/components/Tooltip/Tooltip.module.scss +1 -1
- package/src/components/_BaseStyling_/BaseStyling.tsx +11 -3
|
@@ -14,7 +14,13 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import React, {
|
|
17
|
+
import React, {
|
|
18
|
+
ForwardRefRenderFunction,
|
|
19
|
+
ComponentPropsWithRef,
|
|
20
|
+
Fragment,
|
|
21
|
+
useState,
|
|
22
|
+
useEffect
|
|
23
|
+
} from "react";
|
|
18
24
|
import classes from "./Pagination.module.scss";
|
|
19
25
|
import readyclasses from "../../readyclasses.module.scss";
|
|
20
26
|
import { IconButton } from "../Button/IconButton";
|
|
@@ -78,6 +84,10 @@ const PaginationComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (
|
|
|
78
84
|
return Math.ceil(totalElements / pageSize);
|
|
79
85
|
};
|
|
80
86
|
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
setInternalCurrentPage(currentPage?.toString() ?? "1");
|
|
89
|
+
}, [currentPage]);
|
|
90
|
+
|
|
81
91
|
const onEnterListener = (event: React.KeyboardEvent<HTMLInputElement>) => {
|
|
82
92
|
if (event.code === "Enter") {
|
|
83
93
|
onPageChange(Number(internalCurrentPage));
|
|
@@ -94,6 +94,7 @@ interface CSSProperties {
|
|
|
94
94
|
dragBorderStyle?: string;
|
|
95
95
|
modalShadowColor?: string;
|
|
96
96
|
modalBackgroundColor?: string;
|
|
97
|
+
modalBackdropColor?: string;
|
|
97
98
|
modalHeaderBackgroundColor?: string;
|
|
98
99
|
skeletonBackgroundColor?: string;
|
|
99
100
|
skeletonAnimationColorRgb?: string;
|
|
@@ -106,6 +107,7 @@ interface CSSProperties {
|
|
|
106
107
|
bannerBorderWidth?: string;
|
|
107
108
|
dataGridRowBackgroundColor?: string;
|
|
108
109
|
dataGridRowHoverBackgroundColor?: string;
|
|
110
|
+
progressBarBackgroundColor?: string;
|
|
109
111
|
tabsBackgroundColor?: string;
|
|
110
112
|
tabActiveBorderHeight?: string;
|
|
111
113
|
tabActiveBorderColor?: string;
|
|
@@ -113,6 +115,8 @@ interface CSSProperties {
|
|
|
113
115
|
tablistBorderStyle?: string;
|
|
114
116
|
tablistBorderColor?: string;
|
|
115
117
|
tabTextColor?: string;
|
|
118
|
+
toggleBackgroundColor?: string;
|
|
119
|
+
tooltipBackgroundColor?: string;
|
|
116
120
|
wizardStepIndicatorFutureColor?: string;
|
|
117
121
|
default?: string;
|
|
118
122
|
success?: string;
|
|
@@ -142,14 +146,14 @@ export interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
|
142
146
|
|
|
143
147
|
export const BaseStyling = ({ children, properties = {} }: Props) => {
|
|
144
148
|
const defaultProperties: CSSProperties = {
|
|
145
|
-
colorBlack10: "
|
|
149
|
+
colorBlack10: "rgba(0 ,0 ,0, .1)",
|
|
146
150
|
colorPrimary300: "#6871BF",
|
|
147
151
|
colorPrimary500: "#041295",
|
|
148
152
|
colorPrimary600: "#030F77",
|
|
149
153
|
colorPrimary700: "#020B59",
|
|
150
154
|
colorPrimary900: "#01041E",
|
|
151
155
|
colorBlueGrey25: "#F7F7F9",
|
|
152
|
-
colorBlueGrey25Transparent: "
|
|
156
|
+
colorBlueGrey25Transparent: "rgba(247, 247, 249, .8)",
|
|
153
157
|
colorBlueGrey50: "#EEEFF3",
|
|
154
158
|
colorBlueGrey100: "#DEDEE6",
|
|
155
159
|
colorBlueGrey200: "#BCBECE",
|
|
@@ -169,7 +173,7 @@ export const BaseStyling = ({ children, properties = {} }: Props) => {
|
|
|
169
173
|
colorRed500: "#E01E00",
|
|
170
174
|
colorRed600: "#B31800",
|
|
171
175
|
colorRed700: "#861200",
|
|
172
|
-
colorBlack100: "
|
|
176
|
+
colorBlack100: "#000000",
|
|
173
177
|
colorBlack20: "rgba(0, 0, 0, 0.2)",
|
|
174
178
|
colorShadowBlue: "#7078C3",
|
|
175
179
|
colorWhite: "#FFFFFF",
|
|
@@ -213,6 +217,7 @@ export const BaseStyling = ({ children, properties = {} }: Props) => {
|
|
|
213
217
|
dragBorderStyle: "solid",
|
|
214
218
|
modalShadowColor: "rgba(0, 0, 0, 0.16)",
|
|
215
219
|
modalBackgroundColor: "var(--color-blue-grey25)",
|
|
220
|
+
modalBackdropColor: "var(--default)",
|
|
216
221
|
modalHeaderBackgroundColor: "var(--light)",
|
|
217
222
|
skeletonBackgroundColor: "var(--disabled)",
|
|
218
223
|
skeletonAnimationColorRgb: "255, 255, 255",
|
|
@@ -225,6 +230,7 @@ export const BaseStyling = ({ children, properties = {} }: Props) => {
|
|
|
225
230
|
bannerBorderWidth: "0 0 0 4px",
|
|
226
231
|
dataGridRowBackgroundColor: "transparent",
|
|
227
232
|
dataGridRowHoverBackgroundColor: "var(--color-blue-grey25)",
|
|
233
|
+
progressBarBackgroundColor: "var(--disabled)",
|
|
228
234
|
tabsBackgroundColor: "var(--light)",
|
|
229
235
|
tabActiveBorderHeight: "4px",
|
|
230
236
|
tabActiveBorderColor: "var(--color-primary)",
|
|
@@ -232,6 +238,8 @@ export const BaseStyling = ({ children, properties = {} }: Props) => {
|
|
|
232
238
|
tablistBorderStyle: "solid",
|
|
233
239
|
tablistBorderColor: "var(--color-blue-grey100)",
|
|
234
240
|
tabTextColor: "var(--color-blue-grey900)",
|
|
241
|
+
toggleBackgroundColor: "var(--default)",
|
|
242
|
+
tooltipBackgroundColor: "var(--default)",
|
|
235
243
|
wizardStepIndicatorFutureColor: "var(--color-blue-grey200)",
|
|
236
244
|
default: "var(--color-blue-grey900)",
|
|
237
245
|
success: "var(--color-green500)",
|