@itwin/itwinui-react 2.8.0 → 2.8.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.8.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1197](https://github.com/iTwin/iTwinUI/pull/1197): Reverted animation class change that broke Dialog.
8
+
9
+ ## 2.8.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#1195](https://github.com/iTwin/iTwinUI/pull/1195): Fixed an issue with missing css in LabeledSelect.
14
+
3
15
  ## 2.8.0
4
16
 
5
17
  ### Minor Changes
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import '@itwin/itwinui-css/css/carousel.css';
3
3
  /**
4
- * The `CarouselDots` component shows a list of `CarouselDot` components which can be used to
4
+ * The `CarouselDotsList` component shows a list of `CarouselDot` components which can be used to
5
5
  * choose a specific slide. If used as a descendant of `Carousel`, then this component does not need
6
6
  * any props or `children`.
7
7
  *
@@ -15,7 +15,7 @@ const utils_1 = require("../utils");
15
15
  const CarouselDot_1 = require("./CarouselDot");
16
16
  require("@itwin/itwinui-css/css/carousel.css");
17
17
  /**
18
- * The `CarouselDots` component shows a list of `CarouselDot` components which can be used to
18
+ * The `CarouselDotsList` component shows a list of `CarouselDot` components which can be used to
19
19
  * choose a specific slide. If used as a descendant of `Carousel`, then this component does not need
20
20
  * any props or `children`.
21
21
  *
@@ -115,6 +115,7 @@ exports.DialogMain = react_1.default.forwardRef((props, ref) => {
115
115
  const content = (react_1.default.createElement("div", { className: (0, classnames_1.default)('iui-dialog', {
116
116
  'iui-dialog-default': styleType === 'default',
117
117
  'iui-dialog-full-page': styleType === 'fullPage',
118
+ 'iui-dialog-visible': isOpen,
118
119
  'iui-dialog-draggable': isDraggable,
119
120
  }, className), role: 'dialog', ref: refs, onKeyDown: handleKeyDown, tabIndex: -1, style: {
120
121
  transform,
@@ -132,7 +133,6 @@ exports.DialogMain = react_1.default.forwardRef((props, ref) => {
132
133
  return (react_1.default.createElement(react_transition_group_1.CSSTransition, { in: isOpen, classNames: {
133
134
  enter: 'iui-dialog-animation-enter',
134
135
  enterActive: 'iui-dialog-animation-enter-active',
135
- enterDone: 'iui-dialog-visible',
136
136
  }, timeout: { exit: 600 },
137
137
  // Focuses dialog when opened
138
138
  onEntered: () => {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { SelectProps } from '../Select/Select';
3
- import { LabeledInputProps } from '../LabeledInput';
4
- import '@itwin/itwinui-css/css/select.css';
2
+ import type { SelectProps } from '../Select/Select';
3
+ import type { LabeledInputProps } from '../LabeledInput';
4
+ import '@itwin/itwinui-css/css/input.css';
5
5
  export declare type LabeledSelectProps<T> = {
6
6
  /**
7
7
  * Label of the select.
@@ -11,7 +11,7 @@ exports.LabeledSelect = void 0;
11
11
  const react_1 = __importDefault(require("react"));
12
12
  const Select_1 = require("../Select");
13
13
  const utils_1 = require("../utils");
14
- require("@itwin/itwinui-css/css/select.css");
14
+ require("@itwin/itwinui-css/css/input.css");
15
15
  /**
16
16
  * Labeled select component to select value from options.
17
17
  * @example
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '@itwin/itwinui-css/css/utils.css';
2
3
  export declare type InputContainerProps<T extends React.ElementType = 'div'> = {
3
4
  as?: T;
4
5
  label?: React.ReactNode;
@@ -10,6 +10,7 @@ exports.InputContainer = void 0;
10
10
  *--------------------------------------------------------------------------------------------*/
11
11
  const react_1 = __importDefault(require("react"));
12
12
  const classnames_1 = __importDefault(require("classnames"));
13
+ require("@itwin/itwinui-css/css/utils.css");
13
14
  /**
14
15
  * Input container to wrap inputs with label, and add optional message and icon.
15
16
  * @private
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import '@itwin/itwinui-css/css/carousel.css';
3
3
  /**
4
- * The `CarouselDots` component shows a list of `CarouselDot` components which can be used to
4
+ * The `CarouselDotsList` component shows a list of `CarouselDot` components which can be used to
5
5
  * choose a specific slide. If used as a descendant of `Carousel`, then this component does not need
6
6
  * any props or `children`.
7
7
  *
@@ -9,7 +9,7 @@ import { getBoundedValue, getWindow, useMergedRefs, useResizeObserver, useTheme,
9
9
  import { CarouselDot } from './CarouselDot';
10
10
  import '@itwin/itwinui-css/css/carousel.css';
11
11
  /**
12
- * The `CarouselDots` component shows a list of `CarouselDot` components which can be used to
12
+ * The `CarouselDotsList` component shows a list of `CarouselDot` components which can be used to
13
13
  * choose a specific slide. If used as a descendant of `Carousel`, then this component does not need
14
14
  * any props or `children`.
15
15
  *
@@ -109,6 +109,7 @@ export const DialogMain = React.forwardRef((props, ref) => {
109
109
  const content = (React.createElement("div", { className: cx('iui-dialog', {
110
110
  'iui-dialog-default': styleType === 'default',
111
111
  'iui-dialog-full-page': styleType === 'fullPage',
112
+ 'iui-dialog-visible': isOpen,
112
113
  'iui-dialog-draggable': isDraggable,
113
114
  }, className), role: 'dialog', ref: refs, onKeyDown: handleKeyDown, tabIndex: -1, style: {
114
115
  transform,
@@ -126,7 +127,6 @@ export const DialogMain = React.forwardRef((props, ref) => {
126
127
  return (React.createElement(CSSTransition, { in: isOpen, classNames: {
127
128
  enter: 'iui-dialog-animation-enter',
128
129
  enterActive: 'iui-dialog-animation-enter-active',
129
- enterDone: 'iui-dialog-visible',
130
130
  }, timeout: { exit: 600 },
131
131
  // Focuses dialog when opened
132
132
  onEntered: () => {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { SelectProps } from '../Select/Select';
3
- import { LabeledInputProps } from '../LabeledInput';
4
- import '@itwin/itwinui-css/css/select.css';
2
+ import type { SelectProps } from '../Select/Select';
3
+ import type { LabeledInputProps } from '../LabeledInput';
4
+ import '@itwin/itwinui-css/css/input.css';
5
5
  export declare type LabeledSelectProps<T> = {
6
6
  /**
7
7
  * Label of the select.
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import { Select } from '../Select';
7
7
  import { StatusIconMap, useTheme, InputContainer } from '../utils';
8
- import '@itwin/itwinui-css/css/select.css';
8
+ import '@itwin/itwinui-css/css/input.css';
9
9
  /**
10
10
  * Labeled select component to select value from options.
11
11
  * @example
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '@itwin/itwinui-css/css/utils.css';
2
3
  export declare type InputContainerProps<T extends React.ElementType = 'div'> = {
3
4
  as?: T;
4
5
  label?: React.ReactNode;
@@ -4,6 +4,7 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import React from 'react';
6
6
  import cx from 'classnames';
7
+ import '@itwin/itwinui-css/css/utils.css';
7
8
  /**
8
9
  * Input container to wrap inputs with label, and add optional message and icon.
9
10
  * @private
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-react",
3
- "version": "2.8.0",
3
+ "version": "2.8.2",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "cjs/index.js",