@itwin/itwinui-react 1.43.0 → 1.43.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ### [1.43.1](https://www.github.com/iTwin/iTwinUI-react/compare/v1.43.0...v1.43.1) (2022-08-18)
4
+
5
+ ### Fixes
6
+
7
+ * **Dialog:** Fixed import path for `useTheme` ([#780](https://www.github.com/iTwin/iTwinUI-react/issues/780)) ([dc5f65a](https://www.github.com/iTwin/iTwinUI-react/commit/dc5f65af8a4a7e8d50f05952084a2ffe98bc0800))
8
+
3
9
  ## [1.43.0](https://www.github.com/iTwin/iTwinUI-react/compare/v1.42.0...v1.43.0) (2022-08-17)
4
10
 
5
11
  ### What's new
@@ -33,7 +33,7 @@ exports.DialogTitleBar = void 0;
33
33
  var react_1 = __importDefault(require("react"));
34
34
  var classnames_1 = __importDefault(require("classnames"));
35
35
  var Close_1 = __importDefault(require("@itwin/itwinui-icons-react/cjs/icons/Close"));
36
- var theming_1 = require("@storybook/theming");
36
+ var utils_1 = require("../utils");
37
37
  var Buttons_1 = require("../Buttons");
38
38
  require("@itwin/itwinui-css/css/dialog.css");
39
39
  var DialogContext_1 = require("./DialogContext");
@@ -58,7 +58,7 @@ var DialogTitleBarTitle_1 = require("./DialogTitleBarTitle");
58
58
  exports.DialogTitleBar = Object.assign(react_1.default.forwardRef(function (props, ref) {
59
59
  var dialogContext = (0, DialogContext_1.useDialogContext)();
60
60
  var children = props.children, titleText = props.titleText, _a = props.isDismissible, isDismissible = _a === void 0 ? dialogContext.isDismissible : _a, _b = props.onClose, onClose = _b === void 0 ? dialogContext.onClose : _b, className = props.className, rest = __rest(props, ["children", "titleText", "isDismissible", "onClose", "className"]);
61
- (0, theming_1.useTheme)();
61
+ (0, utils_1.useTheme)();
62
62
  return (react_1.default.createElement("div", __assign({ className: (0, classnames_1.default)('iui-dialog-title-bar', className), ref: ref }, rest), children ? (children) : (react_1.default.createElement(react_1.default.Fragment, null,
63
63
  react_1.default.createElement(DialogTitleBarTitle_1.DialogTitleBarTitle, null, titleText),
64
64
  isDismissible && (react_1.default.createElement(Buttons_1.IconButton, { size: 'small', styleType: 'borderless', onClick: onClose, "aria-label": 'Close' },
@@ -32,7 +32,7 @@ exports.DialogTitleBarTitle = void 0;
32
32
  *--------------------------------------------------------------------------------------------*/
33
33
  var react_1 = __importDefault(require("react"));
34
34
  var classnames_1 = __importDefault(require("classnames"));
35
- var theming_1 = require("@storybook/theming");
35
+ var utils_1 = require("../utils");
36
36
  require("@itwin/itwinui-css/css/dialog.css");
37
37
  /**
38
38
  * Dialog title bar. Recommended to be used as a child of `Dialog`.
@@ -41,7 +41,7 @@ require("@itwin/itwinui-css/css/dialog.css");
41
41
  */
42
42
  exports.DialogTitleBarTitle = react_1.default.forwardRef(function (props, ref) {
43
43
  var children = props.children, className = props.className, rest = __rest(props, ["children", "className"]);
44
- (0, theming_1.useTheme)();
44
+ (0, utils_1.useTheme)();
45
45
  return (react_1.default.createElement("div", __assign({ className: (0, classnames_1.default)('iui-dialog-title', className), ref: ref }, rest), children));
46
46
  });
47
47
  exports.default = exports.DialogTitleBarTitle;
@@ -27,7 +27,7 @@ var __rest = (this && this.__rest) || function (s, e) {
27
27
  import React from 'react';
28
28
  import cx from 'classnames';
29
29
  import SvgClose from '@itwin/itwinui-icons-react/cjs/icons/Close';
30
- import { useTheme } from '@storybook/theming';
30
+ import { useTheme } from '../utils';
31
31
  import { IconButton } from '../Buttons';
32
32
  import '@itwin/itwinui-css/css/dialog.css';
33
33
  import { useDialogContext } from './DialogContext';
@@ -26,7 +26,7 @@ var __rest = (this && this.__rest) || function (s, e) {
26
26
  *--------------------------------------------------------------------------------------------*/
27
27
  import React from 'react';
28
28
  import cx from 'classnames';
29
- import { useTheme } from '@storybook/theming';
29
+ import { useTheme } from '../utils';
30
30
  import '@itwin/itwinui-css/css/dialog.css';
31
31
  /**
32
32
  * Dialog title bar. Recommended to be used as a child of `Dialog`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-react",
3
- "version": "1.43.0",
3
+ "version": "1.43.1",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "cjs/index.js",