@itwin/itwinui-react 3.18.2 → 3.19.0
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 +50 -0
- package/DEV-cjs/core/ComboBox/ComboBoxMenuItem.js +1 -1
- package/DEV-cjs/core/Menu/MenuItem.js +8 -7
- package/DEV-cjs/core/Select/Select.js +18 -10
- package/DEV-cjs/core/SideNavigation/SideNavigation.js +2 -2
- package/DEV-cjs/core/Table/ColumnHeader.js +7 -3
- package/DEV-cjs/core/Table/Table.js +65 -5
- package/DEV-cjs/core/Table/cells/DefaultCell.js +14 -9
- package/DEV-cjs/core/Table/columns/actionColumn.js +1 -0
- package/DEV-cjs/core/Table/columns/expanderColumn.js +25 -20
- package/DEV-cjs/core/Table/columns/selectionColumn.js +14 -8
- package/DEV-cjs/core/Table/hooks/useExpanderCell.js +10 -6
- package/DEV-cjs/core/Tag/Tag.js +8 -2
- package/DEV-cjs/core/ThemeProvider/ThemeProvider.js +46 -46
- package/DEV-cjs/core/ToggleSwitch/ToggleSwitch.js +15 -4
- package/DEV-cjs/styles.js +1 -1
- package/DEV-cjs/utils/components/index.js +1 -1
- package/DEV-cjs/utils/components/lineClamp.js +23 -0
- package/DEV-cjs/utils/functions/react.js +18 -4
- package/DEV-cjs/utils/hooks/useControlledState.js +5 -1
- package/DEV-cjs/utils/providers/FutureFlagsProvider.js +48 -0
- package/DEV-cjs/utils/providers/index.js +1 -0
- package/DEV-esm/core/ComboBox/ComboBoxMenuItem.js +1 -1
- package/DEV-esm/core/Menu/MenuItem.js +8 -7
- package/DEV-esm/core/Select/Select.js +19 -10
- package/DEV-esm/core/SideNavigation/SideNavigation.js +2 -2
- package/DEV-esm/core/Table/ColumnHeader.js +8 -4
- package/DEV-esm/core/Table/Table.js +65 -5
- package/DEV-esm/core/Table/cells/DefaultCell.js +15 -10
- package/DEV-esm/core/Table/columns/actionColumn.js +1 -0
- package/DEV-esm/core/Table/columns/expanderColumn.js +25 -20
- package/DEV-esm/core/Table/columns/selectionColumn.js +14 -8
- package/DEV-esm/core/Table/hooks/useExpanderCell.js +10 -6
- package/DEV-esm/core/Tag/Tag.js +11 -3
- package/DEV-esm/core/ThemeProvider/ThemeProvider.js +48 -42
- package/DEV-esm/core/ToggleSwitch/ToggleSwitch.js +15 -5
- package/DEV-esm/styles.js +1 -1
- package/DEV-esm/utils/components/index.js +1 -1
- package/DEV-esm/utils/components/lineClamp.js +13 -0
- package/DEV-esm/utils/functions/react.js +6 -1
- package/DEV-esm/utils/hooks/useControlledState.js +5 -1
- package/DEV-esm/utils/providers/FutureFlagsProvider.js +28 -0
- package/DEV-esm/utils/providers/index.js +1 -0
- package/cjs/core/Buttons/DropdownButton.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxMenuItem.d.ts +5 -16
- package/cjs/core/ComboBox/ComboBoxMenuItem.js +1 -1
- package/cjs/core/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/cjs/core/Menu/MenuItem.d.ts +7 -1
- package/cjs/core/Menu/MenuItem.js +8 -7
- package/cjs/core/Popover/Popover.d.ts +5 -3
- package/cjs/core/Select/Select.js +18 -10
- package/cjs/core/SideNavigation/SideNavigation.js +2 -2
- package/cjs/core/Table/ColumnHeader.js +7 -3
- package/cjs/core/Table/Table.d.ts +2 -2
- package/cjs/core/Table/Table.js +65 -5
- package/cjs/core/Table/cells/DefaultCell.js +14 -9
- package/cjs/core/Table/columns/actionColumn.d.ts +1 -0
- package/cjs/core/Table/columns/actionColumn.js +1 -0
- package/cjs/core/Table/columns/expanderColumn.d.ts +2 -2
- package/cjs/core/Table/columns/expanderColumn.js +25 -20
- package/cjs/core/Table/columns/selectionColumn.d.ts +2 -2
- package/cjs/core/Table/columns/selectionColumn.js +14 -8
- package/cjs/core/Table/hooks/useExpanderCell.js +10 -6
- package/cjs/core/Tabs/Tabs.d.ts +4 -1
- package/cjs/core/Tag/Tag.js +8 -2
- package/cjs/core/ThemeProvider/ThemeContext.d.ts +1 -2
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +8 -18
- package/cjs/core/ThemeProvider/ThemeProvider.js +46 -46
- package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +21 -0
- package/cjs/core/ToggleSwitch/ToggleSwitch.js +15 -4
- package/cjs/styles.js +1 -1
- package/cjs/utils/components/index.d.ts +1 -1
- package/cjs/utils/components/index.js +1 -1
- package/cjs/utils/components/lineClamp.d.ts +5 -0
- package/cjs/utils/components/lineClamp.js +23 -0
- package/cjs/utils/functions/react.d.ts +5 -0
- package/cjs/utils/functions/react.js +18 -4
- package/cjs/utils/hooks/useControlledState.d.ts +5 -2
- package/cjs/utils/hooks/useControlledState.js +5 -1
- package/cjs/utils/hooks/useGlobals.d.ts +0 -1
- package/cjs/utils/providers/FutureFlagsProvider.d.ts +37 -0
- package/cjs/utils/providers/FutureFlagsProvider.js +48 -0
- package/cjs/utils/providers/index.d.ts +1 -0
- package/cjs/utils/providers/index.js +1 -0
- package/esm/core/Buttons/DropdownButton.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxMenuItem.d.ts +5 -16
- package/esm/core/ComboBox/ComboBoxMenuItem.js +1 -1
- package/esm/core/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/esm/core/Menu/MenuItem.d.ts +7 -1
- package/esm/core/Menu/MenuItem.js +8 -7
- package/esm/core/Popover/Popover.d.ts +5 -3
- package/esm/core/Select/Select.js +19 -10
- package/esm/core/SideNavigation/SideNavigation.js +2 -2
- package/esm/core/Table/ColumnHeader.js +8 -4
- package/esm/core/Table/Table.d.ts +2 -2
- package/esm/core/Table/Table.js +65 -5
- package/esm/core/Table/cells/DefaultCell.js +15 -10
- package/esm/core/Table/columns/actionColumn.d.ts +1 -0
- package/esm/core/Table/columns/actionColumn.js +1 -0
- package/esm/core/Table/columns/expanderColumn.d.ts +2 -2
- package/esm/core/Table/columns/expanderColumn.js +25 -20
- package/esm/core/Table/columns/selectionColumn.d.ts +2 -2
- package/esm/core/Table/columns/selectionColumn.js +14 -8
- package/esm/core/Table/hooks/useExpanderCell.js +10 -6
- package/esm/core/Tabs/Tabs.d.ts +4 -1
- package/esm/core/Tag/Tag.js +11 -3
- package/esm/core/ThemeProvider/ThemeContext.d.ts +1 -2
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +8 -18
- package/esm/core/ThemeProvider/ThemeProvider.js +48 -42
- package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +21 -0
- package/esm/core/ToggleSwitch/ToggleSwitch.js +15 -5
- package/esm/styles.js +1 -1
- package/esm/utils/components/index.d.ts +1 -1
- package/esm/utils/components/index.js +1 -1
- package/esm/utils/components/lineClamp.d.ts +5 -0
- package/esm/utils/components/lineClamp.js +13 -0
- package/esm/utils/functions/react.d.ts +5 -0
- package/esm/utils/functions/react.js +6 -1
- package/esm/utils/hooks/useControlledState.d.ts +5 -2
- package/esm/utils/hooks/useControlledState.js +5 -1
- package/esm/utils/hooks/useGlobals.d.ts +0 -1
- package/esm/utils/providers/FutureFlagsProvider.d.ts +37 -0
- package/esm/utils/providers/FutureFlagsProvider.js +28 -0
- package/esm/utils/providers/index.d.ts +1 -0
- package/esm/utils/providers/index.js +1 -0
- package/package.json +11 -5
- package/styles.css +10 -10
- package/DEV-cjs/utils/components/LineClamp.js +0 -50
- package/DEV-esm/utils/components/LineClamp.js +0 -36
- package/cjs/utils/components/LineClamp.d.ts +0 -5
- package/cjs/utils/components/LineClamp.js +0 -50
- package/esm/utils/components/LineClamp.d.ts +0 -5
- package/esm/utils/components/LineClamp.js +0 -36
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, '__esModule', {
|
|
3
|
-
value: true,
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, 'LineClamp', {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function () {
|
|
8
|
-
return LineClamp;
|
|
9
|
-
},
|
|
10
|
-
});
|
|
11
|
-
const _interop_require_default = require('@swc/helpers/_/_interop_require_default');
|
|
12
|
-
const _interop_require_wildcard = require('@swc/helpers/_/_interop_require_wildcard');
|
|
13
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard._(require('react'));
|
|
14
|
-
const _classnames = /*#__PURE__*/ _interop_require_default._(
|
|
15
|
-
require('classnames'),
|
|
16
|
-
);
|
|
17
|
-
const _Box = require('./Box.js');
|
|
18
|
-
const _ShadowRoot = require('./ShadowRoot.js');
|
|
19
|
-
const LineClamp = _react.forwardRef((props, forwardedRef) => {
|
|
20
|
-
let { lines, children, ...rest } = props;
|
|
21
|
-
return _react.createElement(
|
|
22
|
-
_Box.Box,
|
|
23
|
-
{
|
|
24
|
-
ref: forwardedRef,
|
|
25
|
-
...rest,
|
|
26
|
-
className: (0, _classnames.default)('iui-line-clamp', props.className),
|
|
27
|
-
style: {
|
|
28
|
-
'--_iui-line-clamp': lines,
|
|
29
|
-
...props.style,
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
_react.createElement(
|
|
33
|
-
_ShadowRoot.ShadowRoot,
|
|
34
|
-
{
|
|
35
|
-
css: css,
|
|
36
|
-
flush: false,
|
|
37
|
-
},
|
|
38
|
-
_react.createElement('slot', null),
|
|
39
|
-
),
|
|
40
|
-
children,
|
|
41
|
-
);
|
|
42
|
-
});
|
|
43
|
-
const css = `
|
|
44
|
-
:host {
|
|
45
|
-
overflow: hidden;
|
|
46
|
-
display: -webkit-box;
|
|
47
|
-
-webkit-line-clamp: var(--_iui-line-clamp, 3);
|
|
48
|
-
-webkit-box-orient: vertical;
|
|
49
|
-
}
|
|
50
|
-
`;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import cx from 'classnames';
|
|
3
|
-
import { Box } from './Box.js';
|
|
4
|
-
import { ShadowRoot } from './ShadowRoot.js';
|
|
5
|
-
export const LineClamp = React.forwardRef((props, forwardedRef) => {
|
|
6
|
-
let { lines, children, ...rest } = props;
|
|
7
|
-
return React.createElement(
|
|
8
|
-
Box,
|
|
9
|
-
{
|
|
10
|
-
ref: forwardedRef,
|
|
11
|
-
...rest,
|
|
12
|
-
className: cx('iui-line-clamp', props.className),
|
|
13
|
-
style: {
|
|
14
|
-
'--_iui-line-clamp': lines,
|
|
15
|
-
...props.style,
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
React.createElement(
|
|
19
|
-
ShadowRoot,
|
|
20
|
-
{
|
|
21
|
-
css: css,
|
|
22
|
-
flush: false,
|
|
23
|
-
},
|
|
24
|
-
React.createElement('slot', null),
|
|
25
|
-
),
|
|
26
|
-
children,
|
|
27
|
-
);
|
|
28
|
-
});
|
|
29
|
-
let css = `
|
|
30
|
-
:host {
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
display: -webkit-box;
|
|
33
|
-
-webkit-line-clamp: var(--_iui-line-clamp, 3);
|
|
34
|
-
-webkit-box-orient: vertical;
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, '__esModule', {
|
|
3
|
-
value: true,
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, 'LineClamp', {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function () {
|
|
8
|
-
return LineClamp;
|
|
9
|
-
},
|
|
10
|
-
});
|
|
11
|
-
const _interop_require_default = require('@swc/helpers/_/_interop_require_default');
|
|
12
|
-
const _interop_require_wildcard = require('@swc/helpers/_/_interop_require_wildcard');
|
|
13
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard._(require('react'));
|
|
14
|
-
const _classnames = /*#__PURE__*/ _interop_require_default._(
|
|
15
|
-
require('classnames'),
|
|
16
|
-
);
|
|
17
|
-
const _Box = require('./Box.js');
|
|
18
|
-
const _ShadowRoot = require('./ShadowRoot.js');
|
|
19
|
-
const LineClamp = _react.forwardRef((props, forwardedRef) => {
|
|
20
|
-
let { lines, children, ...rest } = props;
|
|
21
|
-
return _react.createElement(
|
|
22
|
-
_Box.Box,
|
|
23
|
-
{
|
|
24
|
-
ref: forwardedRef,
|
|
25
|
-
...rest,
|
|
26
|
-
className: (0, _classnames.default)('iui-line-clamp', props.className),
|
|
27
|
-
style: {
|
|
28
|
-
'--_iui-line-clamp': lines,
|
|
29
|
-
...props.style,
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
_react.createElement(
|
|
33
|
-
_ShadowRoot.ShadowRoot,
|
|
34
|
-
{
|
|
35
|
-
css: css,
|
|
36
|
-
flush: false,
|
|
37
|
-
},
|
|
38
|
-
_react.createElement('slot', null),
|
|
39
|
-
),
|
|
40
|
-
children,
|
|
41
|
-
);
|
|
42
|
-
});
|
|
43
|
-
const css = `
|
|
44
|
-
:host {
|
|
45
|
-
overflow: hidden;
|
|
46
|
-
display: -webkit-box;
|
|
47
|
-
-webkit-line-clamp: var(--_iui-line-clamp, 3);
|
|
48
|
-
-webkit-box-orient: vertical;
|
|
49
|
-
}
|
|
50
|
-
`;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import cx from 'classnames';
|
|
3
|
-
import { Box } from './Box.js';
|
|
4
|
-
import { ShadowRoot } from './ShadowRoot.js';
|
|
5
|
-
export const LineClamp = React.forwardRef((props, forwardedRef) => {
|
|
6
|
-
let { lines, children, ...rest } = props;
|
|
7
|
-
return React.createElement(
|
|
8
|
-
Box,
|
|
9
|
-
{
|
|
10
|
-
ref: forwardedRef,
|
|
11
|
-
...rest,
|
|
12
|
-
className: cx('iui-line-clamp', props.className),
|
|
13
|
-
style: {
|
|
14
|
-
'--_iui-line-clamp': lines,
|
|
15
|
-
...props.style,
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
React.createElement(
|
|
19
|
-
ShadowRoot,
|
|
20
|
-
{
|
|
21
|
-
css: css,
|
|
22
|
-
flush: false,
|
|
23
|
-
},
|
|
24
|
-
React.createElement('slot', null),
|
|
25
|
-
),
|
|
26
|
-
children,
|
|
27
|
-
);
|
|
28
|
-
});
|
|
29
|
-
let css = `
|
|
30
|
-
:host {
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
display: -webkit-box;
|
|
33
|
-
-webkit-line-clamp: var(--_iui-line-clamp, 3);
|
|
34
|
-
-webkit-box-orient: vertical;
|
|
35
|
-
}
|
|
36
|
-
`;
|