@itwin/itwinui-react 2.0.0-dev.0 → 2.0.0-dev.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/cjs/core/Alert/Alert.js +3 -3
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +1 -2
- package/cjs/core/Buttons/DropdownButton/DropdownButton.js +1 -3
- package/cjs/core/Buttons/IdeasButton/IdeasButton.js +1 -2
- package/cjs/core/Buttons/SplitButton/SplitButton.js +1 -3
- package/cjs/core/Carousel/CarouselNavigation.js +3 -4
- package/cjs/core/ColorPicker/ColorInputPanel.js +1 -2
- package/cjs/core/ComboBox/ComboBoxEndIcon.js +1 -2
- package/cjs/core/DatePicker/DatePicker.js +4 -8
- package/cjs/core/Dialog/DialogTitleBar.js +1 -2
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +1 -2
- package/cjs/core/FileUpload/FileUploadTemplate.js +1 -2
- package/cjs/core/Header/Header.js +2 -3
- package/cjs/core/Header/HeaderBreadcrumbs.js +1 -2
- package/cjs/core/Header/HeaderDropdownButton.js +2 -5
- package/cjs/core/Header/HeaderSplitButton.js +1 -3
- package/cjs/core/InformationPanel/InformationPanelHeader.js +1 -2
- package/cjs/core/Menu/MenuItem.js +1 -2
- package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +2 -4
- package/cjs/core/Select/Select.js +1 -2
- package/cjs/core/SideNavigation/SideNavigation.js +1 -2
- package/cjs/core/Surface/Surface.d.ts +0 -2
- package/cjs/core/Surface/Surface.js +9 -7
- package/cjs/core/Table/SubRowExpander.js +2 -2
- package/cjs/core/Table/Table.js +1 -3
- package/cjs/core/Table/TablePaginator.js +2 -4
- package/cjs/core/Table/columns/actionColumn.js +2 -2
- package/cjs/core/Table/columns/expanderColumn.js +2 -2
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +1 -2
- package/cjs/core/Table/filters/FilterToggle.js +1 -3
- package/cjs/core/Tabs/Tabs.d.ts +32 -12
- package/cjs/core/Tabs/Tabs.js +8 -1
- package/cjs/core/Tabs/index.d.ts +2 -2
- package/cjs/core/Tabs/index.js +2 -1
- package/cjs/core/Tag/Tag.js +1 -2
- package/cjs/core/Tile/Tile.js +3 -6
- package/cjs/core/Toast/Toast.js +1 -2
- package/cjs/core/Tree/TreeNodeExpander.js +2 -2
- package/cjs/core/Typography/Body/Body.d.ts +5 -3
- package/cjs/core/Typography/Body/Body.js +2 -3
- package/cjs/core/Typography/Headline/Headline.d.ts +2 -3
- package/cjs/core/Typography/Headline/Headline.js +2 -3
- package/cjs/core/Typography/Leading/Leading.d.ts +2 -3
- package/cjs/core/Typography/Leading/Leading.js +2 -3
- package/cjs/core/Typography/Small/Small.d.ts +2 -3
- package/cjs/core/Typography/Small/Small.js +2 -3
- package/cjs/core/Typography/Subheading/Subheading.d.ts +2 -3
- package/cjs/core/Typography/Subheading/Subheading.js +2 -3
- package/cjs/core/Typography/Text/Text.d.ts +2 -0
- package/cjs/core/Typography/Text/Text.js +2 -0
- package/cjs/core/Typography/Title/Title.d.ts +2 -3
- package/cjs/core/Typography/Title/Title.js +2 -3
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +4 -3
- package/cjs/core/utils/components/index.d.ts +0 -1
- package/cjs/core/utils/components/index.js +0 -1
- package/cjs/core/utils/functions/colors.d.ts +11 -11
- package/cjs/core/utils/functions/colors.js +11 -11
- package/cjs/core/utils/{components/icons.d.ts → icons/StatusIconMap.d.ts} +1 -1
- package/cjs/core/utils/icons/StatusIconMap.js +52 -0
- package/cjs/core/utils/icons/SvgCalendar.d.ts +2 -0
- package/cjs/core/utils/icons/SvgCalendar.js +47 -0
- package/cjs/core/utils/icons/SvgCaretDownSmall.d.ts +2 -0
- package/cjs/core/utils/icons/SvgCaretDownSmall.js +47 -0
- package/cjs/core/utils/icons/SvgCaretRightSmall.d.ts +2 -0
- package/cjs/core/utils/icons/SvgCaretRightSmall.js +47 -0
- package/cjs/core/utils/icons/SvgCaretUpSmall.d.ts +2 -0
- package/cjs/core/utils/icons/SvgCaretUpSmall.js +47 -0
- package/cjs/core/utils/icons/SvgCheckmark.d.ts +2 -0
- package/cjs/core/utils/icons/SvgCheckmark.js +47 -0
- package/cjs/core/utils/icons/SvgCheckmarkSmall.d.ts +2 -0
- package/cjs/core/utils/icons/SvgCheckmarkSmall.js +47 -0
- package/cjs/core/utils/icons/SvgChevronLeft.d.ts +2 -0
- package/cjs/core/utils/icons/SvgChevronLeft.js +47 -0
- package/cjs/core/utils/icons/SvgChevronLeftDouble.d.ts +2 -0
- package/cjs/core/utils/icons/SvgChevronLeftDouble.js +47 -0
- package/cjs/core/utils/icons/SvgChevronRight.d.ts +2 -0
- package/cjs/core/utils/icons/SvgChevronRight.js +47 -0
- package/cjs/core/utils/icons/SvgChevronRightDouble.d.ts +2 -0
- package/cjs/core/utils/icons/SvgChevronRightDouble.js +47 -0
- package/cjs/core/utils/icons/SvgClose.d.ts +2 -0
- package/cjs/core/utils/icons/SvgClose.js +47 -0
- package/cjs/core/utils/icons/SvgCloseSmall.d.ts +2 -0
- package/cjs/core/utils/icons/SvgCloseSmall.js +47 -0
- package/cjs/core/utils/icons/SvgColumnManager.d.ts +2 -0
- package/cjs/core/utils/icons/SvgColumnManager.js +47 -0
- package/cjs/core/utils/icons/SvgFilter.d.ts +2 -0
- package/cjs/core/utils/icons/SvgFilter.js +47 -0
- package/cjs/core/utils/icons/SvgFilterHollow.d.ts +2 -0
- package/cjs/core/utils/icons/SvgFilterHollow.js +47 -0
- package/cjs/core/utils/icons/SvgImportantSmall.d.ts +2 -0
- package/cjs/core/utils/icons/SvgImportantSmall.js +47 -0
- package/cjs/core/utils/icons/SvgInfoCircular.d.ts +2 -0
- package/cjs/core/utils/icons/SvgInfoCircular.js +47 -0
- package/cjs/core/utils/icons/SvgMore.d.ts +2 -0
- package/cjs/core/utils/icons/SvgMore.js +47 -0
- package/cjs/core/utils/icons/SvgMoreVertical.d.ts +2 -0
- package/cjs/core/utils/icons/SvgMoreVertical.js +47 -0
- package/cjs/core/utils/icons/SvgNew.d.ts +2 -0
- package/cjs/core/utils/icons/SvgNew.js +47 -0
- package/cjs/core/utils/icons/SvgSmileyHappy.d.ts +2 -0
- package/cjs/core/utils/icons/SvgSmileyHappy.js +47 -0
- package/cjs/core/utils/icons/SvgSortDown.d.ts +2 -0
- package/cjs/core/utils/icons/SvgSortDown.js +47 -0
- package/cjs/core/utils/icons/SvgSortUp.d.ts +2 -0
- package/cjs/core/utils/icons/SvgSortUp.js +47 -0
- package/cjs/core/utils/icons/SvgStatusError.d.ts +2 -0
- package/cjs/core/utils/icons/SvgStatusError.js +47 -0
- package/cjs/core/utils/icons/SvgStatusSuccess.d.ts +2 -0
- package/cjs/core/utils/icons/SvgStatusSuccess.js +47 -0
- package/cjs/core/utils/icons/SvgStatusWarning.d.ts +2 -0
- package/cjs/core/utils/icons/SvgStatusWarning.js +47 -0
- package/cjs/core/utils/icons/SvgSwap.d.ts +2 -0
- package/cjs/core/utils/icons/SvgSwap.js +47 -0
- package/cjs/core/utils/icons/SvgUpload.d.ts +2 -0
- package/cjs/core/utils/icons/SvgUpload.js +47 -0
- package/cjs/core/utils/icons/index.d.ts +29 -0
- package/cjs/core/utils/icons/index.js +49 -0
- package/cjs/core/utils/index.d.ts +1 -0
- package/cjs/core/utils/index.js +1 -0
- package/esm/core/Alert/Alert.js +4 -4
- package/esm/core/Breadcrumbs/Breadcrumbs.js +1 -2
- package/esm/core/Buttons/DropdownButton/DropdownButton.js +1 -3
- package/esm/core/Buttons/IdeasButton/IdeasButton.js +1 -2
- package/esm/core/Buttons/SplitButton/SplitButton.js +1 -3
- package/esm/core/Carousel/CarouselNavigation.js +1 -2
- package/esm/core/ColorPicker/ColorInputPanel.js +1 -2
- package/esm/core/ComboBox/ComboBoxEndIcon.js +1 -2
- package/esm/core/DatePicker/DatePicker.js +1 -5
- package/esm/core/Dialog/DialogTitleBar.js +1 -2
- package/esm/core/ExpandableBlock/ExpandableBlock.js +1 -2
- package/esm/core/FileUpload/FileUploadTemplate.js +1 -2
- package/esm/core/Header/Header.js +2 -3
- package/esm/core/Header/HeaderBreadcrumbs.js +1 -2
- package/esm/core/Header/HeaderDropdownButton.js +1 -4
- package/esm/core/Header/HeaderSplitButton.js +1 -3
- package/esm/core/InformationPanel/InformationPanelHeader.js +1 -2
- package/esm/core/Menu/MenuItem.js +1 -2
- package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +3 -5
- package/esm/core/Select/Select.js +1 -2
- package/esm/core/SideNavigation/SideNavigation.js +1 -2
- package/esm/core/Surface/Surface.d.ts +0 -2
- package/esm/core/Surface/Surface.js +9 -7
- package/esm/core/Table/SubRowExpander.js +1 -1
- package/esm/core/Table/Table.js +2 -4
- package/esm/core/Table/TablePaginator.js +1 -3
- package/esm/core/Table/columns/actionColumn.js +1 -1
- package/esm/core/Table/columns/expanderColumn.js +1 -1
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +1 -2
- package/esm/core/Table/filters/FilterToggle.js +1 -3
- package/esm/core/Tabs/Tabs.d.ts +32 -12
- package/esm/core/Tabs/Tabs.js +8 -1
- package/esm/core/Tabs/index.d.ts +2 -2
- package/esm/core/Tabs/index.js +1 -1
- package/esm/core/Tag/Tag.js +1 -2
- package/esm/core/Tile/Tile.js +1 -4
- package/esm/core/Toast/Toast.js +1 -2
- package/esm/core/Tree/TreeNodeExpander.js +1 -1
- package/esm/core/Typography/Body/Body.d.ts +5 -3
- package/esm/core/Typography/Body/Body.js +2 -3
- package/esm/core/Typography/Headline/Headline.d.ts +2 -3
- package/esm/core/Typography/Headline/Headline.js +2 -3
- package/esm/core/Typography/Leading/Leading.d.ts +2 -3
- package/esm/core/Typography/Leading/Leading.js +2 -3
- package/esm/core/Typography/Small/Small.d.ts +2 -3
- package/esm/core/Typography/Small/Small.js +2 -3
- package/esm/core/Typography/Subheading/Subheading.d.ts +2 -3
- package/esm/core/Typography/Subheading/Subheading.js +2 -3
- package/esm/core/Typography/Text/Text.d.ts +2 -0
- package/esm/core/Typography/Text/Text.js +2 -0
- package/esm/core/Typography/Title/Title.d.ts +2 -3
- package/esm/core/Typography/Title/Title.js +2 -3
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/utils/components/index.d.ts +0 -1
- package/esm/core/utils/components/index.js +0 -1
- package/esm/core/utils/functions/colors.d.ts +11 -11
- package/esm/core/utils/functions/colors.js +11 -11
- package/esm/core/utils/{components/icons.d.ts → icons/StatusIconMap.d.ts} +1 -1
- package/esm/core/utils/{components/icons.js → icons/StatusIconMap.js} +5 -5
- package/esm/core/utils/icons/SvgCalendar.d.ts +2 -0
- package/esm/core/utils/icons/SvgCalendar.js +20 -0
- package/esm/core/utils/icons/SvgCaretDownSmall.d.ts +2 -0
- package/esm/core/utils/icons/SvgCaretDownSmall.js +20 -0
- package/esm/core/utils/icons/SvgCaretRightSmall.d.ts +2 -0
- package/esm/core/utils/icons/SvgCaretRightSmall.js +20 -0
- package/esm/core/utils/icons/SvgCaretUpSmall.d.ts +2 -0
- package/esm/core/utils/icons/SvgCaretUpSmall.js +20 -0
- package/esm/core/utils/icons/SvgCheckmark.d.ts +2 -0
- package/esm/core/utils/icons/SvgCheckmark.js +20 -0
- package/esm/core/utils/icons/SvgCheckmarkSmall.d.ts +2 -0
- package/esm/core/utils/icons/SvgCheckmarkSmall.js +20 -0
- package/esm/core/utils/icons/SvgChevronLeft.d.ts +2 -0
- package/esm/core/utils/icons/SvgChevronLeft.js +20 -0
- package/esm/core/utils/icons/SvgChevronLeftDouble.d.ts +2 -0
- package/esm/core/utils/icons/SvgChevronLeftDouble.js +20 -0
- package/esm/core/utils/icons/SvgChevronRight.d.ts +2 -0
- package/esm/core/utils/icons/SvgChevronRight.js +20 -0
- package/esm/core/utils/icons/SvgChevronRightDouble.d.ts +2 -0
- package/esm/core/utils/icons/SvgChevronRightDouble.js +20 -0
- package/esm/core/utils/icons/SvgClose.d.ts +2 -0
- package/esm/core/utils/icons/SvgClose.js +20 -0
- package/esm/core/utils/icons/SvgCloseSmall.d.ts +2 -0
- package/esm/core/utils/icons/SvgCloseSmall.js +20 -0
- package/esm/core/utils/icons/SvgColumnManager.d.ts +2 -0
- package/esm/core/utils/icons/SvgColumnManager.js +20 -0
- package/esm/core/utils/icons/SvgFilter.d.ts +2 -0
- package/esm/core/utils/icons/SvgFilter.js +20 -0
- package/esm/core/utils/icons/SvgFilterHollow.d.ts +2 -0
- package/esm/core/utils/icons/SvgFilterHollow.js +20 -0
- package/esm/core/utils/icons/SvgImportantSmall.d.ts +2 -0
- package/esm/core/utils/icons/SvgImportantSmall.js +20 -0
- package/esm/core/utils/icons/SvgInfoCircular.d.ts +2 -0
- package/esm/core/utils/icons/SvgInfoCircular.js +20 -0
- package/esm/core/utils/icons/SvgMore.d.ts +2 -0
- package/esm/core/utils/icons/SvgMore.js +20 -0
- package/esm/core/utils/icons/SvgMoreVertical.d.ts +2 -0
- package/esm/core/utils/icons/SvgMoreVertical.js +20 -0
- package/esm/core/utils/icons/SvgNew.d.ts +2 -0
- package/esm/core/utils/icons/SvgNew.js +20 -0
- package/esm/core/utils/icons/SvgSmileyHappy.d.ts +2 -0
- package/esm/core/utils/icons/SvgSmileyHappy.js +20 -0
- package/esm/core/utils/icons/SvgSortDown.d.ts +2 -0
- package/esm/core/utils/icons/SvgSortDown.js +20 -0
- package/esm/core/utils/icons/SvgSortUp.d.ts +2 -0
- package/esm/core/utils/icons/SvgSortUp.js +20 -0
- package/esm/core/utils/icons/SvgStatusError.d.ts +2 -0
- package/esm/core/utils/icons/SvgStatusError.js +20 -0
- package/esm/core/utils/icons/SvgStatusSuccess.d.ts +2 -0
- package/esm/core/utils/icons/SvgStatusSuccess.js +20 -0
- package/esm/core/utils/icons/SvgStatusWarning.d.ts +2 -0
- package/esm/core/utils/icons/SvgStatusWarning.js +20 -0
- package/esm/core/utils/icons/SvgSwap.d.ts +2 -0
- package/esm/core/utils/icons/SvgSwap.js +20 -0
- package/esm/core/utils/icons/SvgUpload.d.ts +2 -0
- package/esm/core/utils/icons/SvgUpload.js +20 -0
- package/esm/core/utils/icons/index.d.ts +29 -0
- package/esm/core/utils/icons/index.js +33 -0
- package/esm/core/utils/index.d.ts +1 -0
- package/esm/core/utils/index.js +1 -0
- package/package.json +20 -4
- package/cjs/core/utils/components/icons.js +0 -32
|
@@ -28,9 +28,8 @@ import React from 'react';
|
|
|
28
28
|
import cx from 'classnames';
|
|
29
29
|
import { DropdownMenu } from '../DropdownMenu';
|
|
30
30
|
import { MenuItem } from '../Menu/MenuItem';
|
|
31
|
-
import { useTheme, useOverflow, } from '../utils';
|
|
31
|
+
import { useTheme, useOverflow, SvgCaretDownSmall, } from '../utils';
|
|
32
32
|
import '@itwin/itwinui-css/css/select.css';
|
|
33
|
-
import SvgCaretDownSmall from '@itwin/itwinui-icons-react/cjs/icons/CaretDownSmall';
|
|
34
33
|
import SelectTag from './SelectTag';
|
|
35
34
|
var isMultipleEnabled = function (variable, multiple) {
|
|
36
35
|
return multiple;
|
|
@@ -26,8 +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, WithCSSTransition } from '../utils';
|
|
30
|
-
import SvgChevronRight from '@itwin/itwinui-icons-react/cjs/icons/ChevronRight';
|
|
29
|
+
import { useTheme, WithCSSTransition, SvgChevronRight, } from '../utils';
|
|
31
30
|
import { IconButton } from '../Buttons';
|
|
32
31
|
import { Tooltip } from '../Tooltip';
|
|
33
32
|
import '@itwin/itwinui-css/css/side-navigation.css';
|
|
@@ -4,7 +4,6 @@ import '@itwin/itwinui-css/css/surface.css';
|
|
|
4
4
|
export declare type SurfaceProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Sets the elevation of the surface
|
|
7
|
-
* @default 0
|
|
8
7
|
*/
|
|
9
8
|
elevation?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
10
9
|
/**
|
|
@@ -21,7 +20,6 @@ export declare type SurfaceProps = {
|
|
|
21
20
|
export declare const Surface: React.ForwardRefExoticComponent<{
|
|
22
21
|
/**
|
|
23
22
|
* Sets the elevation of the surface
|
|
24
|
-
* @default 0
|
|
25
23
|
*/
|
|
26
24
|
elevation?: 0 | 1 | 2 | 3 | 4 | 5 | undefined;
|
|
27
25
|
/**
|
|
@@ -33,18 +33,20 @@ import '@itwin/itwinui-css/css/surface.css';
|
|
|
33
33
|
*/
|
|
34
34
|
var getSurfaceElevationValue = function (elevation) {
|
|
35
35
|
switch (elevation) {
|
|
36
|
+
case 0:
|
|
37
|
+
return 'none';
|
|
36
38
|
case 1:
|
|
37
|
-
return '
|
|
39
|
+
return 'var(--iui-shadow-1)';
|
|
38
40
|
case 2:
|
|
39
|
-
return '
|
|
41
|
+
return 'var(--iui-shadow-2)';
|
|
40
42
|
case 3:
|
|
41
|
-
return '
|
|
43
|
+
return 'var(--iui-shadow-3)';
|
|
42
44
|
case 4:
|
|
43
|
-
return '
|
|
45
|
+
return 'var(--iui-shadow-4)';
|
|
44
46
|
case 5:
|
|
45
|
-
return '
|
|
47
|
+
return 'var(--iui-shadow-5)';
|
|
46
48
|
default:
|
|
47
|
-
return '
|
|
49
|
+
return '';
|
|
48
50
|
}
|
|
49
51
|
};
|
|
50
52
|
/**
|
|
@@ -54,7 +56,7 @@ var getSurfaceElevationValue = function (elevation) {
|
|
|
54
56
|
* <Surface elevation={2}>Surface Content</Surface>
|
|
55
57
|
*/
|
|
56
58
|
export var Surface = React.forwardRef(function (props, ref) {
|
|
57
|
-
var
|
|
59
|
+
var elevation = props.elevation, className = props.className, style = props.style, children = props.children, rest = __rest(props, ["elevation", "className", "style", "children"]);
|
|
58
60
|
useTheme();
|
|
59
61
|
var _style = __assign({ '--iui-surface-elevation': getSurfaceElevationValue(elevation) }, style);
|
|
60
62
|
return (React.createElement("div", __assign({ className: cx('iui-surface', className), style: _style, ref: ref }, rest), children));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import SvgChevronRight from '
|
|
6
|
+
import { SvgChevronRight } from '../utils';
|
|
7
7
|
import { IconButton } from '../Buttons';
|
|
8
8
|
export var SubRowExpander = function (props) {
|
|
9
9
|
var cell = props.cell, isDisabled = props.isDisabled, cellProps = props.cellProps, expanderCell = props.expanderCell;
|
package/esm/core/Table/Table.js
CHANGED
|
@@ -28,10 +28,8 @@ import React from 'react';
|
|
|
28
28
|
import cx from 'classnames';
|
|
29
29
|
import { actions as TableActions, useFlexLayout, useFilters, useRowSelect, useSortBy, useTable, useExpanded, usePagination, useColumnOrder, useGlobalFilter, } from 'react-table';
|
|
30
30
|
import { ProgressRadial } from '../ProgressIndicators';
|
|
31
|
-
import { useTheme, useResizeObserver } from '../utils';
|
|
31
|
+
import { useTheme, useResizeObserver, SvgSortDown, SvgSortUp, } from '../utils';
|
|
32
32
|
import '@itwin/itwinui-css/css/table.css';
|
|
33
|
-
import SvgSortDown from '@itwin/itwinui-icons-react/cjs/icons/SortDown';
|
|
34
|
-
import SvgSortUp from '@itwin/itwinui-icons-react/cjs/icons/SortUp';
|
|
35
33
|
import { getCellStyle, getStickyStyle } from './utils';
|
|
36
34
|
import { TableRowMemoized } from './TableRowMemoized';
|
|
37
35
|
import { FilterToggle } from './filters';
|
|
@@ -418,7 +416,7 @@ export var Table = function (props) {
|
|
|
418
416
|
showSortButton(column)) && (React.createElement("div", { className: 'iui-table-header-actions-container' },
|
|
419
417
|
showFilterButton(column) && (React.createElement(FilterToggle, { column: column })),
|
|
420
418
|
showSortButton(column) && (React.createElement("div", { className: 'iui-table-cell-end-icon' }, column.isSortedDesc ||
|
|
421
|
-
(!column.isSorted && column.sortDescFirst) ? (React.createElement(SvgSortDown, { className: 'iui-
|
|
419
|
+
(!column.isSorted && column.sortDescFirst) ? (React.createElement(SvgSortDown, { className: 'iui-table-sort', "aria-hidden": true })) : (React.createElement(SvgSortUp, { className: 'iui-table-sort', "aria-hidden": true })))))),
|
|
422
420
|
isResizable &&
|
|
423
421
|
column.isResizerVisible &&
|
|
424
422
|
(index !== headerGroup.headers.length - 1 ||
|
|
@@ -27,12 +27,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
27
|
import React from 'react';
|
|
28
28
|
import cx from 'classnames';
|
|
29
29
|
import '@itwin/itwinui-css/css/table.css';
|
|
30
|
-
import SvgChevronLeft from '@itwin/itwinui-icons-react/cjs/icons/ChevronLeft';
|
|
31
|
-
import SvgChevronRight from '@itwin/itwinui-icons-react/cjs/icons/ChevronRight';
|
|
32
30
|
import { IconButton, Button, DropdownButton } from '../Buttons';
|
|
33
31
|
import { ProgressRadial } from '../ProgressIndicators';
|
|
34
32
|
import { MenuItem } from '../Menu';
|
|
35
|
-
import { getBoundedValue, useTheme, useOverflow, useContainerWidth, } from '../utils';
|
|
33
|
+
import { getBoundedValue, useTheme, useOverflow, useContainerWidth, SvgChevronLeft, SvgChevronRight, } from '../utils';
|
|
36
34
|
var defaultLocalization = {
|
|
37
35
|
pageSizeLabel: function (size) { return "".concat(size, " per page"); },
|
|
38
36
|
rangeLabel: function (startIndex, endIndex, totalRows, isLoading) {
|
|
@@ -15,7 +15,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
15
15
|
*--------------------------------------------------------------------------------------------*/
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import { Checkbox } from '../../Checkbox';
|
|
18
|
-
import SvgColumnManager from '
|
|
18
|
+
import { SvgColumnManager } from '../../utils';
|
|
19
19
|
import { DropdownMenu } from '../../DropdownMenu';
|
|
20
20
|
import { IconButton } from '../../Buttons/IconButton';
|
|
21
21
|
import { MenuItem } from '../../Menu';
|
|
@@ -14,7 +14,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
14
14
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
15
15
|
*--------------------------------------------------------------------------------------------*/
|
|
16
16
|
import React from 'react';
|
|
17
|
-
import SvgChevronRight from '
|
|
17
|
+
import { SvgChevronRight } from '../../utils';
|
|
18
18
|
import { IconButton } from '../../Buttons';
|
|
19
19
|
import { DefaultCell } from '../cells';
|
|
20
20
|
export var EXPANDER_CELL_ID = 'iui-table-expander';
|
|
@@ -25,8 +25,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
25
25
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
26
26
|
*--------------------------------------------------------------------------------------------*/
|
|
27
27
|
import React from 'react';
|
|
28
|
-
import SvgCalendar from '
|
|
29
|
-
import { Popover } from '../../../utils';
|
|
28
|
+
import { Popover, SvgCalendar } from '../../../utils';
|
|
30
29
|
import { LabeledInput } from '../../../LabeledInput';
|
|
31
30
|
import { DatePicker } from '../../../DatePicker';
|
|
32
31
|
import { IconButton } from '../../../Buttons';
|
|
@@ -24,12 +24,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
24
24
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
25
25
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
26
26
|
*--------------------------------------------------------------------------------------------*/
|
|
27
|
-
import SvgFilterHollow from '@itwin/itwinui-icons-react/cjs/icons/FilterHollow';
|
|
28
|
-
import SvgFilter from '@itwin/itwinui-icons-react/cjs/icons/Filter';
|
|
29
27
|
import React from 'react';
|
|
30
28
|
import cx from 'classnames';
|
|
31
29
|
import '@itwin/itwinui-css/css/table.css';
|
|
32
|
-
import { useTheme, Popover } from '../../utils';
|
|
30
|
+
import { useTheme, Popover, SvgFilterHollow, SvgFilter, } from '../../utils';
|
|
33
31
|
import { IconButton } from '../../Buttons';
|
|
34
32
|
/**
|
|
35
33
|
* Handles showing filter icon and opening filter component.
|
package/esm/core/Tabs/Tabs.d.ts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import '@itwin/itwinui-css/css/tabs.css';
|
|
3
|
+
declare type TabsOrientationProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Orientation of the tabs.
|
|
6
|
+
* @default 'horizontal'
|
|
7
|
+
*/
|
|
8
|
+
orientation?: 'horizontal';
|
|
9
|
+
/**
|
|
10
|
+
* Type of the tabs.
|
|
11
|
+
*
|
|
12
|
+
* If `orientation = 'vertical'`, `pill` is not applicable.
|
|
13
|
+
* @default 'default'
|
|
14
|
+
*/
|
|
15
|
+
type?: 'default' | 'borderless' | 'pill';
|
|
16
|
+
} | {
|
|
17
|
+
orientation: 'vertical';
|
|
18
|
+
type?: 'default' | 'borderless';
|
|
19
|
+
};
|
|
3
20
|
export declare type TabsProps = {
|
|
4
21
|
/**
|
|
5
22
|
* Elements shown for each tab.
|
|
@@ -25,16 +42,6 @@ export declare type TabsProps = {
|
|
|
25
42
|
* @default 'blue'
|
|
26
43
|
*/
|
|
27
44
|
color?: 'blue' | 'green';
|
|
28
|
-
/**
|
|
29
|
-
* Type of the tabs.
|
|
30
|
-
* @default 'default'
|
|
31
|
-
*/
|
|
32
|
-
type?: 'default' | 'borderless' | 'pill';
|
|
33
|
-
/**
|
|
34
|
-
* Orientation of the tabs.
|
|
35
|
-
* @default 'horizontal'
|
|
36
|
-
*/
|
|
37
|
-
orientation?: 'horizontal' | 'vertical';
|
|
38
45
|
/**
|
|
39
46
|
* Custom CSS class name for tabs.
|
|
40
47
|
*/
|
|
@@ -51,8 +58,14 @@ export declare type TabsProps = {
|
|
|
51
58
|
* Content inside the tab panel.
|
|
52
59
|
*/
|
|
53
60
|
children?: React.ReactNode;
|
|
54
|
-
};
|
|
61
|
+
} & TabsOrientationProps;
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated Since v2, use `TabProps` with `Tabs`
|
|
64
|
+
*/
|
|
55
65
|
export declare type HorizontalTabsProps = Omit<TabsProps, 'orientation'>;
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated Since v2, use `TabProps` with `Tabs`
|
|
68
|
+
*/
|
|
56
69
|
export declare type VerticalTabsProps = Omit<TabsProps, 'orientation' | 'type'> & {
|
|
57
70
|
type?: 'default' | 'borderless';
|
|
58
71
|
};
|
|
@@ -67,6 +80,9 @@ export declare type VerticalTabsProps = Omit<TabsProps, 'orientation' | 'type'>
|
|
|
67
80
|
* <Tabs labels={tabs} />
|
|
68
81
|
*
|
|
69
82
|
* @example
|
|
83
|
+
* <Tabs orientation='vertical' labels={tabs} />
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
70
86
|
* const tabsWithSublabels = [
|
|
71
87
|
* <Tab label='Label 1' sublabel='First tab' />,
|
|
72
88
|
* <Tab label='Label 2' sublabel='Active tab' />,
|
|
@@ -82,6 +98,8 @@ export declare type VerticalTabsProps = Omit<TabsProps, 'orientation' | 'type'>
|
|
|
82
98
|
*/
|
|
83
99
|
export declare const Tabs: (props: TabsProps) => JSX.Element;
|
|
84
100
|
/**
|
|
101
|
+
* @deprecated Since v2, directly use `Tabs` with `orientation: 'horizontal'`
|
|
102
|
+
*
|
|
85
103
|
* Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.
|
|
86
104
|
* @example
|
|
87
105
|
* const tabs = [
|
|
@@ -93,12 +111,14 @@ export declare const Tabs: (props: TabsProps) => JSX.Element;
|
|
|
93
111
|
*/
|
|
94
112
|
export declare const HorizontalTabs: (props: HorizontalTabsProps) => JSX.Element;
|
|
95
113
|
/**
|
|
114
|
+
* @deprecated Since v2, directly use `Tabs` with `orientation: 'vertical'`
|
|
115
|
+
*
|
|
96
116
|
* Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.
|
|
97
117
|
* @example
|
|
98
118
|
* const tabs = [
|
|
99
119
|
* <Tab label='Label 1' sublabel='First tab' />,
|
|
100
120
|
* <Tab label='Label 2' sublabel='Active tab' />,
|
|
101
|
-
* <Tab label='Label 3'
|
|
121
|
+
* <Tab label='Label 3' sublabel='Disabled tab' disabled icon={<SvgPlaceholder />} />,
|
|
102
122
|
* ];
|
|
103
123
|
* <VerticalTabs labels={tabs} activeIndex={1}>Tabpanel content</VerticalTabs>
|
|
104
124
|
*/
|
package/esm/core/Tabs/Tabs.js
CHANGED
|
@@ -40,6 +40,9 @@ import { Tab } from './Tab';
|
|
|
40
40
|
* <Tabs labels={tabs} />
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
+
* <Tabs orientation='vertical' labels={tabs} />
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
43
46
|
* const tabsWithSublabels = [
|
|
44
47
|
* <Tab label='Label 1' sublabel='First tab' />,
|
|
45
48
|
* <Tab label='Label 2' sublabel='Active tab' />,
|
|
@@ -192,6 +195,8 @@ export var Tabs = function (props) {
|
|
|
192
195
|
children && (React.createElement("div", { className: cx('iui-tabs-content', contentClassName), role: 'tabpanel' }, children))));
|
|
193
196
|
};
|
|
194
197
|
/**
|
|
198
|
+
* @deprecated Since v2, directly use `Tabs` with `orientation: 'horizontal'`
|
|
199
|
+
*
|
|
195
200
|
* Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.
|
|
196
201
|
* @example
|
|
197
202
|
* const tabs = [
|
|
@@ -203,12 +208,14 @@ export var Tabs = function (props) {
|
|
|
203
208
|
*/
|
|
204
209
|
export var HorizontalTabs = function (props) { return (React.createElement(Tabs, __assign({ orientation: 'horizontal' }, props))); };
|
|
205
210
|
/**
|
|
211
|
+
* @deprecated Since v2, directly use `Tabs` with `orientation: 'vertical'`
|
|
212
|
+
*
|
|
206
213
|
* Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.
|
|
207
214
|
* @example
|
|
208
215
|
* const tabs = [
|
|
209
216
|
* <Tab label='Label 1' sublabel='First tab' />,
|
|
210
217
|
* <Tab label='Label 2' sublabel='Active tab' />,
|
|
211
|
-
* <Tab label='Label 3'
|
|
218
|
+
* <Tab label='Label 3' sublabel='Disabled tab' disabled icon={<SvgPlaceholder />} />,
|
|
212
219
|
* ];
|
|
213
220
|
* <VerticalTabs labels={tabs} activeIndex={1}>Tabpanel content</VerticalTabs>
|
|
214
221
|
*/
|
package/esm/core/Tabs/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { VerticalTabs, HorizontalTabs } from './Tabs';
|
|
2
|
-
export type { VerticalTabsProps, HorizontalTabsProps } from './Tabs';
|
|
1
|
+
export { Tabs, VerticalTabs, HorizontalTabs } from './Tabs';
|
|
2
|
+
export type { TabsProps, VerticalTabsProps, HorizontalTabsProps } from './Tabs';
|
|
3
3
|
export { Tab } from './Tab';
|
|
4
4
|
export type { TabProps } from './Tab';
|
package/esm/core/Tabs/index.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
export { VerticalTabs, HorizontalTabs } from './Tabs';
|
|
5
|
+
export { Tabs, VerticalTabs, HorizontalTabs } from './Tabs';
|
|
6
6
|
export { Tab } from './Tab';
|
package/esm/core/Tag/Tag.js
CHANGED
|
@@ -26,8 +26,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
26
26
|
*--------------------------------------------------------------------------------------------*/
|
|
27
27
|
import cx from 'classnames';
|
|
28
28
|
import React from 'react';
|
|
29
|
-
import SvgCloseSmall from '
|
|
30
|
-
import { useTheme } from '../utils';
|
|
29
|
+
import { useTheme, SvgCloseSmall } from '../utils';
|
|
31
30
|
import '@itwin/itwinui-css/css/tag.css';
|
|
32
31
|
import { IconButton } from '../Buttons';
|
|
33
32
|
/**
|
package/esm/core/Tile/Tile.js
CHANGED
|
@@ -26,10 +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 SvgCheckmark from '
|
|
30
|
-
import SvgMore from '@itwin/itwinui-icons-react/cjs/icons/More';
|
|
31
|
-
import SvgNew from '@itwin/itwinui-icons-react/cjs/icons/New';
|
|
32
|
-
import { StatusIconMap, useTheme } from '../utils';
|
|
29
|
+
import { StatusIconMap, useTheme, SvgMore, SvgNew, SvgCheckmark, } from '../utils';
|
|
33
30
|
import '@itwin/itwinui-css/css/tile.css';
|
|
34
31
|
import { DropdownMenu } from '../DropdownMenu';
|
|
35
32
|
import { IconButton } from '../Buttons';
|
package/esm/core/Toast/Toast.js
CHANGED
|
@@ -26,9 +26,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
26
26
|
*--------------------------------------------------------------------------------------------*/
|
|
27
27
|
import React from 'react';
|
|
28
28
|
import { Transition } from 'react-transition-group';
|
|
29
|
-
import SvgCloseSmall from '@itwin/itwinui-icons-react/cjs/icons/CloseSmall';
|
|
30
29
|
import cx from 'classnames';
|
|
31
|
-
import { useTheme, getWindow, StatusIconMap } from '../utils';
|
|
30
|
+
import { useTheme, getWindow, StatusIconMap, SvgCloseSmall, } from '../utils';
|
|
32
31
|
import '@itwin/itwinui-css/css/toast.css';
|
|
33
32
|
import { IconButton } from '../Buttons';
|
|
34
33
|
/**
|
|
@@ -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 SvgChevronRight from '
|
|
29
|
+
import { SvgChevronRight } from '../utils';
|
|
30
30
|
import { IconButton } from '../Buttons/IconButton';
|
|
31
31
|
import '@itwin/itwinui-css/css/tree.css';
|
|
32
32
|
export var TreeNodeExpander = function (props) {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import '@itwin/itwinui-css/css/text.css';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Since v2, use `Text` with variant 'body'.
|
|
5
|
+
*/
|
|
3
6
|
export declare type BodyProps = {
|
|
4
7
|
/**
|
|
5
8
|
* Set text to muted.
|
|
@@ -13,10 +16,9 @@ export declare type BodyProps = {
|
|
|
13
16
|
isSkeleton?: boolean;
|
|
14
17
|
} & React.HTMLAttributes<HTMLParagraphElement>;
|
|
15
18
|
/**
|
|
16
|
-
*
|
|
19
|
+
* @deprecated Since v2, use `Text` with variant 'body'.
|
|
17
20
|
* @example
|
|
18
|
-
* <
|
|
19
|
-
* <Body isMuted>I'm some muted body text.</Body>
|
|
21
|
+
* <Text variant='body' as='p'>I'm some body text!</Text>
|
|
20
22
|
*/
|
|
21
23
|
export declare const Body: React.ForwardRefExoticComponent<{
|
|
22
24
|
/**
|
|
@@ -29,10 +29,9 @@ import React from 'react';
|
|
|
29
29
|
import { useTheme } from '../../utils';
|
|
30
30
|
import '@itwin/itwinui-css/css/text.css';
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* @deprecated Since v2, use `Text` with variant 'body'.
|
|
33
33
|
* @example
|
|
34
|
-
* <
|
|
35
|
-
* <Body isMuted>I'm some muted body text.</Body>
|
|
34
|
+
* <Text variant='body' as='p'>I'm some body text!</Text>
|
|
36
35
|
*/
|
|
37
36
|
export var Body = React.forwardRef(function (props, ref) {
|
|
38
37
|
var className = props.className, _a = props.isMuted, isMuted = _a === void 0 ? false : _a, _b = props.isSkeleton, isSkeleton = _b === void 0 ? false : _b, rest = __rest(props, ["className", "isMuted", "isSkeleton"]);
|
|
@@ -8,10 +8,9 @@ export declare type HeadlineProps = {
|
|
|
8
8
|
isMuted?: boolean;
|
|
9
9
|
} & React.HTMLAttributes<HTMLHeadingElement>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* @deprecated Since v2, use `Text` with variant 'headline'.
|
|
12
12
|
* @example
|
|
13
|
-
* <
|
|
14
|
-
* <Headline isMuted>I'm a muted headline.</Headline>
|
|
13
|
+
* <Text variant='headline' as='h1'>I'm a headline!</Text>
|
|
15
14
|
*/
|
|
16
15
|
export declare const Headline: React.ForwardRefExoticComponent<{
|
|
17
16
|
/**
|
|
@@ -29,10 +29,9 @@ import React from 'react';
|
|
|
29
29
|
import { useTheme } from '../../utils';
|
|
30
30
|
import '@itwin/itwinui-css/css/text.css';
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* @deprecated Since v2, use `Text` with variant 'headline'.
|
|
33
33
|
* @example
|
|
34
|
-
* <
|
|
35
|
-
* <Headline isMuted>I'm a muted headline.</Headline>
|
|
34
|
+
* <Text variant='headline' as='h1'>I'm a headline!</Text>
|
|
36
35
|
*/
|
|
37
36
|
export var Headline = React.forwardRef(function (props, ref) {
|
|
38
37
|
var className = props.className, _a = props.isMuted, isMuted = _a === void 0 ? false : _a, rest = __rest(props, ["className", "isMuted"]);
|
|
@@ -8,10 +8,9 @@ export declare type LeadingProps = {
|
|
|
8
8
|
isMuted?: boolean;
|
|
9
9
|
} & React.HTMLAttributes<HTMLHeadingElement>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* @deprecated Since v2, use `Text` with variant 'leading'.
|
|
12
12
|
* @example
|
|
13
|
-
* <
|
|
14
|
-
* <Leading isMuted>I'm a muted Leading.</Leading>
|
|
13
|
+
* <Text variant='leading' as='h3'>I'm a leading!</Text>
|
|
15
14
|
*/
|
|
16
15
|
export declare const Leading: React.ForwardRefExoticComponent<{
|
|
17
16
|
/**
|
|
@@ -29,10 +29,9 @@ import React from 'react';
|
|
|
29
29
|
import { useTheme } from '../../utils';
|
|
30
30
|
import '@itwin/itwinui-css/css/text.css';
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* @deprecated Since v2, use `Text` with variant 'leading'.
|
|
33
33
|
* @example
|
|
34
|
-
* <
|
|
35
|
-
* <Leading isMuted>I'm a muted Leading.</Leading>
|
|
34
|
+
* <Text variant='leading' as='h3'>I'm a leading!</Text>
|
|
36
35
|
*/
|
|
37
36
|
export var Leading = React.forwardRef(function (props, ref) {
|
|
38
37
|
var className = props.className, _a = props.isMuted, isMuted = _a === void 0 ? false : _a, rest = __rest(props, ["className", "isMuted"]);
|
|
@@ -8,10 +8,9 @@ export declare type SmallProps = {
|
|
|
8
8
|
isMuted?: boolean;
|
|
9
9
|
} & React.HTMLAttributes<HTMLParagraphElement>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* @deprecated Since v2, use `Text` with variant 'small'.
|
|
12
12
|
* @example
|
|
13
|
-
* <
|
|
14
|
-
* <Small isMuted>I'm some muted small text.</Small>
|
|
13
|
+
* <Text variant='small' as='small'>I'm some small text!</Text>
|
|
15
14
|
*/
|
|
16
15
|
export declare const Small: React.ForwardRefExoticComponent<{
|
|
17
16
|
/**
|
|
@@ -29,10 +29,9 @@ import React from 'react';
|
|
|
29
29
|
import { useTheme } from '../../utils';
|
|
30
30
|
import '@itwin/itwinui-css/css/text.css';
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* @deprecated Since v2, use `Text` with variant 'small'.
|
|
33
33
|
* @example
|
|
34
|
-
* <
|
|
35
|
-
* <Small isMuted>I'm some muted small text.</Small>
|
|
34
|
+
* <Text variant='small' as='small'>I'm some small text!</Text>
|
|
36
35
|
*/
|
|
37
36
|
export var Small = React.forwardRef(function (props, ref) {
|
|
38
37
|
var className = props.className, _a = props.isMuted, isMuted = _a === void 0 ? false : _a, rest = __rest(props, ["className", "isMuted"]);
|
|
@@ -8,10 +8,9 @@ export declare type SubheadingProps = {
|
|
|
8
8
|
isMuted?: boolean;
|
|
9
9
|
} & React.HTMLAttributes<HTMLHeadingElement>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* @deprecated Since v2, use `Text` with variant 'subheading'.
|
|
12
12
|
* @example
|
|
13
|
-
* <
|
|
14
|
-
* <Subheading isMuted>I'm a muted subheading.</Subheading>
|
|
13
|
+
* <Text variant='subheading' as='h3'>I'm a subheading!</Text>
|
|
15
14
|
*/
|
|
16
15
|
export declare const Subheading: React.ForwardRefExoticComponent<{
|
|
17
16
|
/**
|
|
@@ -29,10 +29,9 @@ import React from 'react';
|
|
|
29
29
|
import { useTheme } from '../../utils';
|
|
30
30
|
import '@itwin/itwinui-css/css/text.css';
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* @deprecated Since v2, use `Text` with variant 'subheading'.
|
|
33
33
|
* @example
|
|
34
|
-
* <
|
|
35
|
-
* <Subheading isMuted>I'm a muted subheading.</Subheading>
|
|
34
|
+
* <Text variant='subheading' as='h3'>I'm a subheading!</Text>
|
|
36
35
|
*/
|
|
37
36
|
export var Subheading = React.forwardRef(function (props, ref) {
|
|
38
37
|
var className = props.className, _a = props.isMuted, isMuted = _a === void 0 ? false : _a, rest = __rest(props, ["className", "isMuted"]);
|
|
@@ -30,6 +30,8 @@ export declare type TextProps<T extends React.ElementType = 'div'> = Polymorphic
|
|
|
30
30
|
declare type TextComponent = PolymorphicForwardRefComponent<'div', TextOwnProps>;
|
|
31
31
|
/**
|
|
32
32
|
* Polymorphic typography component to render any kind of text as any kind of element.
|
|
33
|
+
* Users should decide which element to render based on the context of their app. Link to heading levels docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements#accessibility_concerns
|
|
34
|
+
*
|
|
33
35
|
* @example
|
|
34
36
|
* <Text>Some normal paragraph text rendered as a div</Text>
|
|
35
37
|
* @example
|
|
@@ -30,6 +30,8 @@ import { useTheme, } from '../../utils';
|
|
|
30
30
|
import '@itwin/itwinui-css/css/text.css';
|
|
31
31
|
/**
|
|
32
32
|
* Polymorphic typography component to render any kind of text as any kind of element.
|
|
33
|
+
* Users should decide which element to render based on the context of their app. Link to heading levels docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements#accessibility_concerns
|
|
34
|
+
*
|
|
33
35
|
* @example
|
|
34
36
|
* <Text>Some normal paragraph text rendered as a div</Text>
|
|
35
37
|
* @example
|
|
@@ -8,10 +8,9 @@ export declare type TitleProps = {
|
|
|
8
8
|
isMuted?: boolean;
|
|
9
9
|
} & React.HTMLAttributes<HTMLHeadingElement>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* @deprecated Since v2, use `Text` with variant 'title'.
|
|
12
12
|
* @example
|
|
13
|
-
* <
|
|
14
|
-
* <Title isMuted>I'm a muted title.</Title>
|
|
13
|
+
* <Text variant='title' as='h2'>I'm a title!</Text>
|
|
15
14
|
*/
|
|
16
15
|
export declare const Title: React.ForwardRefExoticComponent<{
|
|
17
16
|
/**
|
|
@@ -29,10 +29,9 @@ import React from 'react';
|
|
|
29
29
|
import { useTheme } from '../../utils';
|
|
30
30
|
import '@itwin/itwinui-css/css/text.css';
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* @deprecated Since v2, use `Text` with variant 'title'.
|
|
33
33
|
* @example
|
|
34
|
-
* <
|
|
35
|
-
* <Title isMuted>I'm a muted title.</Title>
|
|
34
|
+
* <Text variant='title' as='h2'>I'm a title!</Text>
|
|
36
35
|
*/
|
|
37
36
|
export var Title = React.forwardRef(function (props, ref) {
|
|
38
37
|
var className = props.className, _a = props.isMuted, isMuted = _a === void 0 ? false : _a, rest = __rest(props, ["className", "isMuted"]);
|
package/esm/core/index.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export { Footer, defaultFooterElements } from './Footer';
|
|
|
40
40
|
export type { FooterProps, FooterElement, TitleTranslations } from './Footer';
|
|
41
41
|
export { Header, HeaderBreadcrumbs, HeaderButton, HeaderLogo } from './Header';
|
|
42
42
|
export type { HeaderProps, HeaderBreadcrumbsProps, HeaderButtonProps, HeaderLogoProps, } from './Header';
|
|
43
|
-
export { VerticalTabs, Tab, HorizontalTabs } from './Tabs';
|
|
43
|
+
export { VerticalTabs, Tabs, Tab, HorizontalTabs } from './Tabs';
|
|
44
44
|
export type { VerticalTabsProps, TabProps, HorizontalTabsProps } from './Tabs';
|
|
45
45
|
export { InformationPanel, InformationPanelWrapper, InformationPanelHeader, InformationPanelBody, InformationPanelContent, } from './InformationPanel';
|
|
46
46
|
export type { InformationPanelProps, InformationPanelWrapperProps, InformationPanelHeaderProps, InformationPanelBodyProps, InformationPanelContentProps, } from './InformationPanel';
|
package/esm/core/index.js
CHANGED
|
@@ -23,7 +23,7 @@ export { Fieldset } from './Fieldset';
|
|
|
23
23
|
export { FileUpload, FileUploadTemplate } from './FileUpload';
|
|
24
24
|
export { Footer, defaultFooterElements } from './Footer';
|
|
25
25
|
export { Header, HeaderBreadcrumbs, HeaderButton, HeaderLogo } from './Header';
|
|
26
|
-
export { VerticalTabs, Tab, HorizontalTabs } from './Tabs';
|
|
26
|
+
export { VerticalTabs, Tabs, Tab, HorizontalTabs } from './Tabs';
|
|
27
27
|
export { InformationPanel, InformationPanelWrapper, InformationPanelHeader, InformationPanelBody, InformationPanelContent, } from './InformationPanel';
|
|
28
28
|
export { Input } from './Input';
|
|
29
29
|
export { Label } from './Label';
|
|
@@ -6,7 +6,6 @@ export * from './Popover';
|
|
|
6
6
|
export * from './Resizer';
|
|
7
7
|
export * from './FocusTrap';
|
|
8
8
|
export * from './InputContainer';
|
|
9
|
-
export * from './icons';
|
|
10
9
|
export * from './WithCSSTransition';
|
|
11
10
|
export * from './MiddleTextTruncation';
|
|
12
11
|
export * from './VirtualScroll';
|