@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.
Files changed (87) hide show
  1. package/dist/cjs/DataGrid/DataGridActions/DataGridActions.cjs.js +1 -1
  2. package/dist/cjs/Form/Toggle/Toggle.module.cjs.js +1 -1
  3. package/dist/cjs/Notifications/Banner/Banner.module.cjs.js +1 -1
  4. package/dist/cjs/Notifications/BaseModal/BaseModal.module.cjs.js +1 -1
  5. package/dist/cjs/Pagination/Pagination.cjs.js +1 -1
  6. package/dist/cjs/ProgressBar/ProgressBar.module.cjs.js +1 -1
  7. package/dist/cjs/Tooltip/Tooltip.module.cjs.js +1 -1
  8. package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js +1 -1
  9. package/dist/cjs/components/Form/FormControl/FormControl.d.ts +1 -1
  10. package/dist/cjs/components/_BaseStyling_/BaseStyling.d.ts +4 -0
  11. package/dist/esm/Breadcrumbs/Breadcrumbs.module.esm.js +1 -1
  12. package/dist/esm/Button/BaseButton.module.esm.js +1 -1
  13. package/dist/esm/Button/Button.module.esm.js +1 -1
  14. package/dist/esm/Button/IconButton.module.esm.js +1 -1
  15. package/dist/esm/ContextMenu/ContextMenu.module.esm.js +1 -1
  16. package/dist/esm/ContextMenu/ContextMenuItem.module.esm.js +1 -1
  17. package/dist/esm/DataGrid/DataGrid.module.esm.js +1 -1
  18. package/dist/esm/DataGrid/DataGridActions/DataGridActions.esm.js +1 -1
  19. package/dist/esm/DataGrid/DataGridActions/DataGridActions.module.esm.js +1 -1
  20. package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.module.esm.js +1 -1
  21. package/dist/esm/DataGrid/DataGridBody/DataGridBody.module.esm.js +1 -1
  22. package/dist/esm/DataGrid/DataGridBody/DataGridCell.module.esm.js +1 -1
  23. package/dist/esm/DataGrid/DataGridBody/DataGridRow.module.esm.js +1 -1
  24. package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.module.esm.js +1 -1
  25. package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.module.esm.js +1 -1
  26. package/dist/esm/Form/Checkbox/Checkbox.module.esm.js +1 -1
  27. package/dist/esm/Form/Fieldset/Fieldset.module.esm.js +1 -1
  28. package/dist/esm/Form/Form.module.esm.js +1 -1
  29. package/dist/esm/Form/FormControl/FormControl.module.esm.js +1 -1
  30. package/dist/esm/Form/FormGroup/FormGroup.module.esm.js +1 -1
  31. package/dist/esm/Form/FormHelperText/FormHelperText.module.esm.js +1 -1
  32. package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.module.esm.js +1 -1
  33. package/dist/esm/Form/Input/Input.module.esm.js +1 -1
  34. package/dist/esm/Form/Label/Label.module.esm.js +1 -1
  35. package/dist/esm/Form/Radio/Radio.module.esm.js +1 -1
  36. package/dist/esm/Form/Select/Select.module.esm.js +1 -1
  37. package/dist/esm/Form/Textarea/Textarea.module.esm.js +1 -1
  38. package/dist/esm/Form/Toggle/Toggle.module.esm.js +1 -1
  39. package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.esm.js +1 -1
  40. package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.module.esm.js +1 -1
  41. package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.module.esm.js +1 -1
  42. package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.module.esm.js +1 -1
  43. package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.esm.js +1 -1
  44. package/dist/esm/Form/Wrapper/Wrapper/Wrapper.module.esm.js +1 -1
  45. package/dist/esm/Icon/Icon.module.esm.js +1 -1
  46. package/dist/esm/Link/Link.module.esm.js +1 -1
  47. package/dist/esm/Notifications/Banner/Banner.module.esm.js +1 -1
  48. package/dist/esm/Notifications/BaseModal/BaseModal.module.esm.js +1 -1
  49. package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.esm.js +1 -1
  50. package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.esm.js +1 -1
  51. package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.esm.js +1 -1
  52. package/dist/esm/Notifications/Dialog/Dialog.module.esm.js +1 -1
  53. package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.module.esm.js +1 -1
  54. package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.module.esm.js +1 -1
  55. package/dist/esm/Notifications/SlideInModal/SlideInModal.module.esm.js +1 -1
  56. package/dist/esm/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.esm.js +1 -1
  57. package/dist/esm/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.esm.js +1 -1
  58. package/dist/esm/Pagination/Pagination.esm.js +1 -1
  59. package/dist/esm/Pagination/Pagination.module.esm.js +1 -1
  60. package/dist/esm/Popover/Popover.module.esm.js +1 -1
  61. package/dist/esm/ProgressBar/ProgressBar.module.esm.js +1 -1
  62. package/dist/esm/Skeleton/Skeleton.module.esm.js +1 -1
  63. package/dist/esm/StatusIndicator/StatusIndicator.module.esm.js +1 -1
  64. package/dist/esm/Tabs/Tab.module.esm.js +1 -1
  65. package/dist/esm/Tabs/TabButton.module.esm.js +1 -1
  66. package/dist/esm/Tabs/Tabs.module.esm.js +1 -1
  67. package/dist/esm/TextEllipsis/TextEllipsis.module.esm.js +1 -1
  68. package/dist/esm/Tiles/Tile.module.esm.js +1 -1
  69. package/dist/esm/Tiles/Tiles.module.esm.js +1 -1
  70. package/dist/esm/Tooltip/Tooltip.module.esm.js +1 -1
  71. package/dist/esm/Typography/Typography.module.esm.js +1 -1
  72. package/dist/esm/Wizard/BaseWizardSteps/BaseWizardSteps.module.esm.js +1 -1
  73. package/dist/esm/_BaseStyling_/BaseStyling.esm.js +1 -1
  74. package/dist/esm/components/Form/FormControl/FormControl.d.ts +1 -1
  75. package/dist/esm/components/_BaseStyling_/BaseStyling.d.ts +4 -0
  76. package/dist/esm/src/readyclasses.module.esm.js +1 -1
  77. package/package.json +23 -20
  78. package/src/components/DataGrid/DataGridActions/DataGridActions.test.tsx +2 -0
  79. package/src/components/DataGrid/DataGridActions/DataGridActions.tsx +1 -1
  80. package/src/components/Form/FormControl/FormControl.tsx +1 -1
  81. package/src/components/Form/Toggle/Toggle.module.scss +1 -1
  82. package/src/components/Notifications/Banner/Banner.module.scss +1 -1
  83. package/src/components/Notifications/BaseModal/BaseModal.module.scss +1 -1
  84. package/src/components/Pagination/Pagination.tsx +11 -1
  85. package/src/components/ProgressBar/ProgressBar.module.scss +1 -1
  86. package/src/components/Tooltip/Tooltip.module.scss +1 -1
  87. 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, { ForwardRefRenderFunction, ComponentPropsWithRef, Fragment, useState } from "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));
@@ -21,7 +21,7 @@
21
21
  height: 0.5rem;
22
22
  width: 100%;
23
23
  border-radius: 0.25rem;
24
- background-color: var(--disabled);
24
+ background-color: var(--progress-bar-background-color);
25
25
  overflow: hidden;
26
26
 
27
27
  @media (prefers-reduced-motion: reduce) {
@@ -37,7 +37,7 @@
37
37
  $transition-property: opacity, transform;
38
38
 
39
39
  position: fixed;
40
- background-color: var(--default);
40
+ background-color: var(--tooltip-background-color);
41
41
  padding: 0.1875rem 0.5rem;
42
42
  color: var(--light);
43
43
  max-width: 330px;
@@ -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: "#0000001a",
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: "#F7F7F980",
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: "rgba(0, 0, 0, 1)",
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)",