@ultraviolet/ui 1.45.0 → 1.45.2

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
@@ -516,9 +516,17 @@ declare const extendTheme: (extendedTheme: RecursivePartial<UltravioletUITheme>)
516
516
  };
517
517
  icon: {
518
518
  category: {
519
+ neutral: {
520
+ fill: string;
521
+ fillDisabled: string;
522
+ fillStrong: string;
523
+ fillStrongDisabled: string;
524
+ };
519
525
  primary: {
520
526
  fill: string;
527
+ fillDisabled: string;
521
528
  fillStrong: string;
529
+ fillStrongDisabled: string;
522
530
  };
523
531
  };
524
532
  product: {
@@ -3189,7 +3197,7 @@ declare const ToggleGroup: {
3189
3197
  Toggle: ({ disabled, name, value, label, helper, className, "data-testid": dataTestId, }: ToggleGroupToggleProps) => _emotion_react_jsx_runtime.JSX.Element;
3190
3198
  };
3191
3199
 
3192
- type TooltipProps = Pick<ComponentProps<typeof Popup>, 'id' | 'children' | 'maxWidth' | 'placement' | 'text' | 'className' | 'visible' | 'innerRef' | 'role' | 'data-testid' | 'containerFullWidth' | 'portalTarget'>;
3200
+ type TooltipProps = Pick<ComponentProps<typeof Popup>, 'id' | 'children' | 'maxWidth' | 'placement' | 'text' | 'className' | 'visible' | 'innerRef' | 'role' | 'data-testid' | 'containerFullWidth' | 'portalTarget' | 'tabIndex'>;
3193
3201
  /**
3194
3202
  * Tooltip component is used to display additional information on hover or focus.
3195
3203
  * It is used to explain the purpose of the element it is attached to.
@@ -53,10 +53,12 @@ const Expandable = ({
53
53
  useEffect(() => {
54
54
  if (opened && ref.current && height) {
55
55
  ref.current.style.maxHeight = `${height}px`;
56
+ ref.current.style.visibility = '';
56
57
  transitionTimer.current = setTimeout(() => {
57
58
  if (ref.current) {
58
59
  ref.current.style.maxHeight = 'initial';
59
60
  ref.current.style.overflow = 'visible';
61
+ ref.current.style.visibility = '';
60
62
  }
61
63
  }, ANIMATION_DURATION);
62
64
  } else {
@@ -67,6 +69,11 @@ const Expandable = ({
67
69
  if (ref.current) {
68
70
  ref.current.style.maxHeight = `${minHeight}px`;
69
71
  ref.current.style.overflow = 'hidden';
72
+ setTimeout(() => {
73
+ if (ref.current && !minHeight) {
74
+ ref.current.style.visibility = 'hidden';
75
+ }
76
+ }, ANIMATION_DURATION);
70
77
  }
71
78
  }, 0);
72
79
  }
@@ -31,7 +31,8 @@ const Tooltip = /*#__PURE__*/forwardRef(({
31
31
  innerRef,
32
32
  role = 'tooltip',
33
33
  'data-testid': dataTestId,
34
- portalTarget
34
+ portalTarget,
35
+ tabIndex
35
36
  }, tooltipRef) => jsx(StyledPopup, {
36
37
  id: id,
37
38
  ref: tooltipRef,
@@ -45,6 +46,7 @@ const Tooltip = /*#__PURE__*/forwardRef(({
45
46
  text: text,
46
47
  innerRef: innerRef,
47
48
  portalTarget: portalTarget,
49
+ tabIndex: tabIndex,
48
50
  children: children
49
51
  }));
50
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/ui",
3
- "version": "1.45.0",
3
+ "version": "1.45.2",
4
4
  "description": "Ultraviolet UI",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@emotion/react": "11.11.4",
37
- "@emotion/styled": "11.11.0",
37
+ "@emotion/styled": "11.11.5",
38
38
  "react": "18.2.0",
39
39
  "react-dom": "18.2.0"
40
40
  },
@@ -42,30 +42,30 @@
42
42
  "@babel/core": "7.24.3",
43
43
  "@emotion/babel-plugin": "11.11.0",
44
44
  "@emotion/react": "11.11.4",
45
- "@emotion/styled": "11.11.0",
46
- "@types/react": "18.2.64",
45
+ "@emotion/styled": "11.11.5",
46
+ "@types/react": "18.2.74",
47
47
  "@types/react-datepicker": "4.19.6",
48
- "@types/react-dom": "18.2.21",
48
+ "@types/react-dom": "18.2.23",
49
49
  "react": "18.2.0",
50
50
  "react-dom": "18.2.0"
51
51
  },
52
52
  "dependencies": {
53
- "@emotion/serialize": "1.1.3",
53
+ "@emotion/serialize": "1.1.4",
54
54
  "@nivo/bar": "0.80.0",
55
55
  "@nivo/core": "0.80.0",
56
56
  "@nivo/line": "0.80.0",
57
57
  "@nivo/pie": "0.80.0",
58
58
  "@nivo/scales": "0.80.0",
59
59
  "@scaleway/random-name": "5.0.0",
60
- "@scaleway/use-media": "2.0.1",
60
+ "@scaleway/use-media": "3.0.0",
61
61
  "deepmerge": "4.3.1",
62
62
  "react-datepicker": "4.25.0",
63
63
  "react-select": "5.8.0",
64
64
  "react-toastify": "10.0.5",
65
65
  "react-use-clipboard": "1.0.9",
66
66
  "reakit": "1.3.11",
67
- "@ultraviolet/themes": "1.9.0",
68
- "@ultraviolet/icons": "2.11.1"
67
+ "@ultraviolet/themes": "1.10.0",
68
+ "@ultraviolet/icons": "2.12.0"
69
69
  },
70
70
  "scripts": {
71
71
  "build": "rollup -c ../../rollup.config.mjs",