@jetbrains/ring-ui 6.0.52 → 6.0.53

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.
@@ -1,10 +1,8 @@
1
1
  import { PureComponent } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
- import deprecate from 'util-deprecate';
5
4
  import dataTests from '../global/data-tests';
6
5
  import style from './badge.css';
7
- const warn = deprecate(() => { }, 'Badge is deprecated and will be removed in RingUI 7.0. Use Tag instead.');
8
6
  /**
9
7
  * @name Badge
10
8
  */
@@ -20,7 +18,6 @@ export default class Badge extends PureComponent {
20
18
  'data-test': PropTypes.string
21
19
  };
22
20
  render() {
23
- warn();
24
21
  const {
25
22
  // Modifiers
26
23
  gray, valid, invalid, disabled,
@@ -7,6 +7,7 @@ declare enum Theme {
7
7
  export declare const ThemeContext: import("react").Context<{
8
8
  theme: Theme.LIGHT | Theme.DARK;
9
9
  }>;
10
+ export declare const GLOBAL_DARK_CLASS_NAME = "ring-ui-theme-dark";
10
11
  export declare function useTheme(): Theme.LIGHT | Theme.DARK;
11
12
  export declare function useThemeClasses(theme: Theme): string;
12
13
  export interface WithThemeClassesProps {
@@ -13,7 +13,7 @@ var Theme;
13
13
  Theme["DARK"] = "dark";
14
14
  })(Theme || (Theme = {}));
15
15
  export const ThemeContext = createContext({ theme: Theme.LIGHT });
16
- const GLOBAL_DARK_CLASS_NAME = 'ring-ui-theme-dark';
16
+ export const GLOBAL_DARK_CLASS_NAME = 'ring-ui-theme-dark';
17
17
  const darkMatcher = window.matchMedia('(prefers-color-scheme: dark)');
18
18
  export function useTheme() {
19
19
  const [dark, setDark] = useState(darkMatcher.matches);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "6.0.52",
3
+ "version": "6.0.53",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",