@ultraviolet/ui 1.45.3 → 1.45.5

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/index.d.ts CHANGED
@@ -3353,7 +3353,7 @@ type CloseButtonProps = {
3353
3353
  ariaLabel?: string;
3354
3354
  theme: Theme$1;
3355
3355
  };
3356
- declare const notification: (children: ReactNode | ((props: CloseButtonProps) => ReactNode), title: string, icon?: ReactNode, isClosable?: boolean, containerId?: string, options?: ToastOptions) => react_toastify.Id;
3356
+ declare const notification: (children: ((props: CloseButtonProps) => ReactNode) | ReactNode, title: string, icon?: ReactNode, isClosable?: boolean, containerId?: string, options?: ToastOptions) => react_toastify.Id;
3357
3357
  type NotificationContainerProps = {
3358
3358
  /**
3359
3359
  * Delay (in ms) before the notification autocloses. To disable autoclose, set to false
@@ -114,13 +114,14 @@ const Stepper = ({
114
114
  size = 'medium',
115
115
  'data-testid': dataTestId
116
116
  }) => {
117
- const lastStep = Children.count(children) - 1;
117
+ const cleanChildren = Children.toArray(children);
118
+ const lastStep = Children.count(cleanChildren) - 1;
118
119
  return jsx(StyledContainer, {
119
120
  className: className,
120
121
  "data-testid": dataTestId,
121
122
  labelPosition: labelPosition,
122
123
  size: size,
123
- children: Children.map(children, (child, index) => {
124
+ children: Children.map(cleanChildren, (child, index) => {
124
125
  const getTemporal = () => {
125
126
  if (selected > index) return 'previous';
126
127
  if (selected === index) return 'current';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/ui",
3
- "version": "1.45.3",
3
+ "version": "1.45.5",
4
4
  "description": "Ultraviolet UI",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -45,7 +45,7 @@
45
45
  "@emotion/styled": "11.11.5",
46
46
  "@types/react": "18.2.74",
47
47
  "@types/react-datepicker": "4.19.6",
48
- "@types/react-dom": "18.2.23",
48
+ "@types/react-dom": "18.2.24",
49
49
  "react": "18.2.0",
50
50
  "react-dom": "18.2.0"
51
51
  },
@@ -65,7 +65,7 @@
65
65
  "react-use-clipboard": "1.0.9",
66
66
  "reakit": "1.3.11",
67
67
  "@ultraviolet/themes": "1.10.0",
68
- "@ultraviolet/icons": "2.12.0"
68
+ "@ultraviolet/icons": "2.12.1"
69
69
  },
70
70
  "scripts": {
71
71
  "build": "rollup -c ../../rollup.config.mjs",