@wallarm-org/design-system 4.2.0-rc-fix-chart-grid-line-props.1 → 4.2.0-rc-fix-filter-input-flaky-e2e.1

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/README.md CHANGED
@@ -6,7 +6,8 @@ Modern React component library for building user interfaces.
6
6
 
7
7
  All documentation is available in:
8
8
 
9
- - [Storybook](https://wallarm.github.io/design-system/) - Interactive component examples
9
+ - [Docs site](https://wallarm.github.io/design-system/) - Guides, component docs and API reference
10
+ - [Storybook](https://wallarm.github.io/design-system/storybook/) - Interactive component examples
10
11
  - [Installation Guide](docs/installation.md) - Setup instructions
11
12
  - [Getting Started](docs/getting-started.md) - Introduction and overview
12
13
 
@@ -116,7 +117,8 @@ The command writes the component files, `src/icons/index.ts`, the gallery catego
116
117
 
117
118
  ## 📖 Resources
118
119
 
119
- - [Storybook](https://wallarm.github.io/design-system/) - Interactive examples
120
+ - [Docs site](https://wallarm.github.io/design-system/) - Guides and component docs
121
+ - [Storybook](https://wallarm.github.io/design-system/storybook/) - Interactive examples
120
122
  - [NPM](https://www.npmjs.com/package/@wallarm-org/design-system) - NPM package
121
123
  - [GitHub](https://github.com/wallarm/design-system) - Source code
122
124
 
@@ -20,6 +20,10 @@ const useFocusManagement = ({ menuState, isFocused, conditionsLength, inputText,
20
20
  if ((null != editingSegment || !focusStaysInside) && blurCommitRef.current?.()) {
21
21
  setIsFocused(false);
22
22
  related?.focus();
23
+ if (!focusStaysInside) {
24
+ setMenuState('closed');
25
+ if (document.activeElement === inputRef.current) inputRef.current?.blur();
26
+ }
23
27
  return;
24
28
  }
25
29
  if (focusStaysInside) return;
@@ -33,7 +33,10 @@ const ThemeProvider = (t0)=>{
33
33
  const frameStyleStorageKey = void 0 === t4 ? "wasd-frame-style" : t4;
34
34
  let t5;
35
35
  if ($[7] !== defaultTheme || $[8] !== storageKey) {
36
- t5 = ()=>localStorage.getItem(storageKey) || defaultTheme;
36
+ t5 = ()=>{
37
+ if ("u" < typeof localStorage) return defaultTheme;
38
+ return localStorage.getItem(storageKey) || defaultTheme;
39
+ };
37
40
  $[7] = defaultTheme;
38
41
  $[8] = storageKey;
39
42
  $[9] = t5;
@@ -42,6 +45,7 @@ const ThemeProvider = (t0)=>{
42
45
  let t6;
43
46
  if ($[10] !== defaultFrameStyle || $[11] !== frameStyleStorageKey) {
44
47
  t6 = ()=>{
48
+ if ("u" < typeof localStorage) return defaultFrameStyle;
45
49
  const stored = localStorage.getItem(frameStyleStorageKey);
46
50
  return "neutral" === stored || "branded" === stored ? stored : defaultFrameStyle;
47
51
  };