@itwin/itwinui-react 2.0.0-dev.0 → 2.0.0-dev.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/cjs/core/Alert/Alert.js +2 -2
- 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 +3 -3
- 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 +1 -2
- package/cjs/core/utils/components/icons.js +0 -32
|
@@ -30,7 +30,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
30
30
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
31
31
|
*--------------------------------------------------------------------------------------------*/
|
|
32
32
|
var react_1 = __importDefault(require("react"));
|
|
33
|
-
var Calendar_1 = __importDefault(require("@itwin/itwinui-icons-react/cjs/icons/Calendar"));
|
|
34
33
|
var utils_1 = require("../../../utils");
|
|
35
34
|
var LabeledInput_1 = require("../../../LabeledInput");
|
|
36
35
|
var DatePicker_1 = require("../../../DatePicker");
|
|
@@ -70,6 +69,6 @@ var DatePickerInput = function (props) {
|
|
|
70
69
|
}
|
|
71
70
|
}, appendTo: 'parent' },
|
|
72
71
|
react_1.default.createElement(LabeledInput_1.LabeledInput, __assign({ displayStyle: 'inline', value: inputValue, onChange: onInputChange, onClick: close, svgIcon: react_1.default.createElement(Buttons_1.IconButton, { styleType: 'borderless', onClick: function () { return setIsVisible(function (v) { return !v; }); }, ref: buttonRef },
|
|
73
|
-
react_1.default.createElement(
|
|
72
|
+
react_1.default.createElement(utils_1.SvgCalendar, null)) }, rest))));
|
|
74
73
|
};
|
|
75
74
|
exports.default = DatePickerInput;
|
|
@@ -30,8 +30,6 @@ exports.FilterToggle = void 0;
|
|
|
30
30
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
31
31
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
32
32
|
*--------------------------------------------------------------------------------------------*/
|
|
33
|
-
var FilterHollow_1 = __importDefault(require("@itwin/itwinui-icons-react/cjs/icons/FilterHollow"));
|
|
34
|
-
var Filter_1 = __importDefault(require("@itwin/itwinui-icons-react/cjs/icons/Filter"));
|
|
35
33
|
var react_1 = __importDefault(require("react"));
|
|
36
34
|
var classnames_1 = __importDefault(require("classnames"));
|
|
37
35
|
require("@itwin/itwinui-css/css/table.css");
|
|
@@ -59,6 +57,6 @@ var FilterToggle = function (props) {
|
|
|
59
57
|
setIsVisible(function (v) { return !v; });
|
|
60
58
|
// Prevents from triggering sort
|
|
61
59
|
e.stopPropagation();
|
|
62
|
-
} }, rest), isColumnFiltered ? react_1.default.createElement(
|
|
60
|
+
} }, rest), isColumnFiltered ? react_1.default.createElement(utils_1.SvgFilter, null) : react_1.default.createElement(utils_1.SvgFilterHollow, null))))));
|
|
63
61
|
};
|
|
64
62
|
exports.FilterToggle = FilterToggle;
|
package/cjs/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/cjs/core/Tabs/Tabs.js
CHANGED
|
@@ -46,6 +46,9 @@ var Tab_1 = require("./Tab");
|
|
|
46
46
|
* <Tabs labels={tabs} />
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
|
+
* <Tabs orientation='vertical' labels={tabs} />
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
49
52
|
* const tabsWithSublabels = [
|
|
50
53
|
* <Tab label='Label 1' sublabel='First tab' />,
|
|
51
54
|
* <Tab label='Label 2' sublabel='Active tab' />,
|
|
@@ -199,6 +202,8 @@ var Tabs = function (props) {
|
|
|
199
202
|
};
|
|
200
203
|
exports.Tabs = Tabs;
|
|
201
204
|
/**
|
|
205
|
+
* @deprecated Since v2, directly use `Tabs` with `orientation: 'horizontal'`
|
|
206
|
+
*
|
|
202
207
|
* Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.
|
|
203
208
|
* @example
|
|
204
209
|
* const tabs = [
|
|
@@ -211,12 +216,14 @@ exports.Tabs = Tabs;
|
|
|
211
216
|
var HorizontalTabs = function (props) { return (react_1.default.createElement(exports.Tabs, __assign({ orientation: 'horizontal' }, props))); };
|
|
212
217
|
exports.HorizontalTabs = HorizontalTabs;
|
|
213
218
|
/**
|
|
219
|
+
* @deprecated Since v2, directly use `Tabs` with `orientation: 'vertical'`
|
|
220
|
+
*
|
|
214
221
|
* Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.
|
|
215
222
|
* @example
|
|
216
223
|
* const tabs = [
|
|
217
224
|
* <Tab label='Label 1' sublabel='First tab' />,
|
|
218
225
|
* <Tab label='Label 2' sublabel='Active tab' />,
|
|
219
|
-
* <Tab label='Label 3'
|
|
226
|
+
* <Tab label='Label 3' sublabel='Disabled tab' disabled icon={<SvgPlaceholder />} />,
|
|
220
227
|
* ];
|
|
221
228
|
* <VerticalTabs labels={tabs} activeIndex={1}>Tabpanel content</VerticalTabs>
|
|
222
229
|
*/
|
package/cjs/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/cjs/core/Tabs/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Tab = exports.HorizontalTabs = exports.VerticalTabs = void 0;
|
|
3
|
+
exports.Tab = exports.HorizontalTabs = exports.VerticalTabs = exports.Tabs = void 0;
|
|
4
4
|
/*---------------------------------------------------------------------------------------------
|
|
5
5
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
6
6
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
7
7
|
*--------------------------------------------------------------------------------------------*/
|
|
8
8
|
var Tabs_1 = require("./Tabs");
|
|
9
|
+
Object.defineProperty(exports, "Tabs", { enumerable: true, get: function () { return Tabs_1.Tabs; } });
|
|
9
10
|
Object.defineProperty(exports, "VerticalTabs", { enumerable: true, get: function () { return Tabs_1.VerticalTabs; } });
|
|
10
11
|
Object.defineProperty(exports, "HorizontalTabs", { enumerable: true, get: function () { return Tabs_1.HorizontalTabs; } });
|
|
11
12
|
var Tab_1 = require("./Tab");
|
package/cjs/core/Tag/Tag.js
CHANGED
|
@@ -32,7 +32,6 @@ exports.Tag = void 0;
|
|
|
32
32
|
*--------------------------------------------------------------------------------------------*/
|
|
33
33
|
var classnames_1 = __importDefault(require("classnames"));
|
|
34
34
|
var react_1 = __importDefault(require("react"));
|
|
35
|
-
var CloseSmall_1 = __importDefault(require("@itwin/itwinui-icons-react/cjs/icons/CloseSmall"));
|
|
36
35
|
var utils_1 = require("../utils");
|
|
37
36
|
require("@itwin/itwinui-css/css/tag.css");
|
|
38
37
|
var Buttons_1 = require("../Buttons");
|
|
@@ -51,7 +50,7 @@ var Tag = function (props) {
|
|
|
51
50
|
}, className) }, rest),
|
|
52
51
|
variant === 'default' ? (react_1.default.createElement("span", { className: 'iui-tag-label' }, children)) : (children),
|
|
53
52
|
onRemove && (react_1.default.createElement(Buttons_1.IconButton, { styleType: 'borderless', size: 'small', onClick: onRemove, "aria-label": 'Delete tag', className: 'iui-tag-button' },
|
|
54
|
-
react_1.default.createElement(
|
|
53
|
+
react_1.default.createElement(utils_1.SvgCloseSmall, { "aria-hidden": true })))));
|
|
55
54
|
};
|
|
56
55
|
exports.Tag = Tag;
|
|
57
56
|
exports.default = exports.Tag;
|
package/cjs/core/Tile/Tile.js
CHANGED
|
@@ -32,9 +32,6 @@ exports.Tile = void 0;
|
|
|
32
32
|
*--------------------------------------------------------------------------------------------*/
|
|
33
33
|
var react_1 = __importDefault(require("react"));
|
|
34
34
|
var classnames_1 = __importDefault(require("classnames"));
|
|
35
|
-
var Checkmark_1 = __importDefault(require("@itwin/itwinui-icons-react/cjs/icons/Checkmark"));
|
|
36
|
-
var More_1 = __importDefault(require("@itwin/itwinui-icons-react/cjs/icons/More"));
|
|
37
|
-
var New_1 = __importDefault(require("@itwin/itwinui-icons-react/cjs/icons/New"));
|
|
38
35
|
var utils_1 = require("../utils");
|
|
39
36
|
require("@itwin/itwinui-css/css/tile.css");
|
|
40
37
|
var DropdownMenu_1 = require("../DropdownMenu");
|
|
@@ -111,7 +108,7 @@ var Tile = function (props) {
|
|
|
111
108
|
'iui-visible': isMenuVisible,
|
|
112
109
|
}) },
|
|
113
110
|
react_1.default.createElement(Buttons_1.IconButton, { styleType: 'borderless', size: 'small', "aria-label": 'More options' },
|
|
114
|
-
react_1.default.createElement(
|
|
111
|
+
react_1.default.createElement(utils_1.SvgMore, null))))),
|
|
115
112
|
children),
|
|
116
113
|
buttons && react_1.default.createElement("div", { className: 'iui-tile-buttons' }, buttons)));
|
|
117
114
|
};
|
|
@@ -123,10 +120,10 @@ var TitleIcon = function (_a) {
|
|
|
123
120
|
return (react_1.default.createElement(ProgressIndicators_1.ProgressRadial, { className: 'iui-tile-status-icon', "aria-hidden": true, indeterminate: true }));
|
|
124
121
|
}
|
|
125
122
|
if (isSelected) {
|
|
126
|
-
return react_1.default.createElement(
|
|
123
|
+
return react_1.default.createElement(utils_1.SvgCheckmark, { className: 'iui-tile-status-icon', "aria-hidden": true });
|
|
127
124
|
}
|
|
128
125
|
if (isNew) {
|
|
129
|
-
return react_1.default.createElement(
|
|
126
|
+
return react_1.default.createElement(utils_1.SvgNew, { className: 'iui-tile-status-icon', "aria-hidden": true });
|
|
130
127
|
}
|
|
131
128
|
if (StatusIcon) {
|
|
132
129
|
return react_1.default.createElement(StatusIcon, { className: 'iui-tile-status-icon' });
|
package/cjs/core/Toast/Toast.js
CHANGED
|
@@ -32,7 +32,6 @@ exports.ToastPresentation = exports.Toast = void 0;
|
|
|
32
32
|
*--------------------------------------------------------------------------------------------*/
|
|
33
33
|
var react_1 = __importDefault(require("react"));
|
|
34
34
|
var react_transition_group_1 = require("react-transition-group");
|
|
35
|
-
var CloseSmall_1 = __importDefault(require("@itwin/itwinui-icons-react/cjs/icons/CloseSmall"));
|
|
36
35
|
var classnames_1 = __importDefault(require("classnames"));
|
|
37
36
|
var utils_1 = require("../utils");
|
|
38
37
|
require("@itwin/itwinui-css/css/toast.css");
|
|
@@ -145,7 +144,7 @@ var ToastPresentation = function (props) {
|
|
|
145
144
|
react_1.default.createElement("div", { className: 'iui-message' }, content),
|
|
146
145
|
link && (react_1.default.createElement("a", { className: 'iui-toast-anchor', onClick: link.onClick }, link.title)),
|
|
147
146
|
(type === 'persisting' || hasCloseButton) && (react_1.default.createElement(Buttons_1.IconButton, { size: 'small', styleType: 'borderless', onClick: onClose, "aria-label": 'Close' },
|
|
148
|
-
react_1.default.createElement(
|
|
147
|
+
react_1.default.createElement(utils_1.SvgCloseSmall, null)))));
|
|
149
148
|
};
|
|
150
149
|
exports.ToastPresentation = ToastPresentation;
|
|
151
150
|
exports.default = exports.Toast;
|
|
@@ -32,13 +32,13 @@ exports.TreeNodeExpander = void 0;
|
|
|
32
32
|
*--------------------------------------------------------------------------------------------*/
|
|
33
33
|
var react_1 = __importDefault(require("react"));
|
|
34
34
|
var classnames_1 = __importDefault(require("classnames"));
|
|
35
|
-
var
|
|
35
|
+
var utils_1 = require("../utils");
|
|
36
36
|
var IconButton_1 = require("../Buttons/IconButton");
|
|
37
37
|
require("@itwin/itwinui-css/css/tree.css");
|
|
38
38
|
var TreeNodeExpander = function (props) {
|
|
39
39
|
var isExpanded = props.isExpanded, rest = __rest(props, ["isExpanded"]);
|
|
40
40
|
return (react_1.default.createElement(IconButton_1.IconButton, __assign({ styleType: 'borderless', size: 'small', "aria-label": isExpanded ? 'Collapse' : 'Expand' }, rest),
|
|
41
|
-
react_1.default.createElement(
|
|
41
|
+
react_1.default.createElement(utils_1.SvgChevronRight, { className: (0, classnames_1.default)('iui-tree-node-content-expander-icon', {
|
|
42
42
|
'iui-tree-node-content-expander-icon-expanded': isExpanded,
|
|
43
43
|
}) })));
|
|
44
44
|
};
|
|
@@ -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
|
/**
|
|
@@ -35,10 +35,9 @@ var react_1 = __importDefault(require("react"));
|
|
|
35
35
|
var utils_1 = require("../../utils");
|
|
36
36
|
require("@itwin/itwinui-css/css/text.css");
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* @deprecated Since v2, use `Text` with variant 'body'.
|
|
39
39
|
* @example
|
|
40
|
-
* <
|
|
41
|
-
* <Body isMuted>I'm some muted body text.</Body>
|
|
40
|
+
* <Text variant='body' as='p'>I'm some body text!</Text>
|
|
42
41
|
*/
|
|
43
42
|
exports.Body = react_1.default.forwardRef(function (props, ref) {
|
|
44
43
|
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
|
/**
|
|
@@ -35,10 +35,9 @@ var react_1 = __importDefault(require("react"));
|
|
|
35
35
|
var utils_1 = require("../../utils");
|
|
36
36
|
require("@itwin/itwinui-css/css/text.css");
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* @deprecated Since v2, use `Text` with variant 'headline'.
|
|
39
39
|
* @example
|
|
40
|
-
* <
|
|
41
|
-
* <Headline isMuted>I'm a muted headline.</Headline>
|
|
40
|
+
* <Text variant='headline' as='h1'>I'm a headline!</Text>
|
|
42
41
|
*/
|
|
43
42
|
exports.Headline = react_1.default.forwardRef(function (props, ref) {
|
|
44
43
|
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
|
/**
|
|
@@ -35,10 +35,9 @@ var react_1 = __importDefault(require("react"));
|
|
|
35
35
|
var utils_1 = require("../../utils");
|
|
36
36
|
require("@itwin/itwinui-css/css/text.css");
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* @deprecated Since v2, use `Text` with variant 'leading'.
|
|
39
39
|
* @example
|
|
40
|
-
* <
|
|
41
|
-
* <Leading isMuted>I'm a muted Leading.</Leading>
|
|
40
|
+
* <Text variant='leading' as='h3'>I'm a leading!</Text>
|
|
42
41
|
*/
|
|
43
42
|
exports.Leading = react_1.default.forwardRef(function (props, ref) {
|
|
44
43
|
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
|
/**
|
|
@@ -35,10 +35,9 @@ var react_1 = __importDefault(require("react"));
|
|
|
35
35
|
var utils_1 = require("../../utils");
|
|
36
36
|
require("@itwin/itwinui-css/css/text.css");
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* @deprecated Since v2, use `Text` with variant 'small'.
|
|
39
39
|
* @example
|
|
40
|
-
* <
|
|
41
|
-
* <Small isMuted>I'm some muted small text.</Small>
|
|
40
|
+
* <Text variant='small' as='small'>I'm some small text!</Text>
|
|
42
41
|
*/
|
|
43
42
|
exports.Small = react_1.default.forwardRef(function (props, ref) {
|
|
44
43
|
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
|
/**
|
|
@@ -35,10 +35,9 @@ var react_1 = __importDefault(require("react"));
|
|
|
35
35
|
var utils_1 = require("../../utils");
|
|
36
36
|
require("@itwin/itwinui-css/css/text.css");
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* @deprecated Since v2, use `Text` with variant 'subheading'.
|
|
39
39
|
* @example
|
|
40
|
-
* <
|
|
41
|
-
* <Subheading isMuted>I'm a muted subheading.</Subheading>
|
|
40
|
+
* <Text variant='subheading' as='h3'>I'm a subheading!</Text>
|
|
42
41
|
*/
|
|
43
42
|
exports.Subheading = react_1.default.forwardRef(function (props, ref) {
|
|
44
43
|
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
|
|
@@ -36,6 +36,8 @@ var utils_1 = require("../../utils");
|
|
|
36
36
|
require("@itwin/itwinui-css/css/text.css");
|
|
37
37
|
/**
|
|
38
38
|
* Polymorphic typography component to render any kind of text as any kind of element.
|
|
39
|
+
* 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
|
|
40
|
+
*
|
|
39
41
|
* @example
|
|
40
42
|
* <Text>Some normal paragraph text rendered as a div</Text>
|
|
41
43
|
* @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
|
/**
|
|
@@ -35,10 +35,9 @@ var react_1 = __importDefault(require("react"));
|
|
|
35
35
|
var utils_1 = require("../../utils");
|
|
36
36
|
require("@itwin/itwinui-css/css/text.css");
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* @deprecated Since v2, use `Text` with variant 'title'.
|
|
39
39
|
* @example
|
|
40
|
-
* <
|
|
41
|
-
* <Title isMuted>I'm a muted title.</Title>
|
|
40
|
+
* <Text variant='title' as='h2'>I'm a title!</Text>
|
|
42
41
|
*/
|
|
43
42
|
exports.Title = react_1.default.forwardRef(function (props, ref) {
|
|
44
43
|
var className = props.className, _a = props.isMuted, isMuted = _a === void 0 ? false : _a, rest = __rest(props, ["className", "isMuted"]);
|
package/cjs/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/cjs/core/index.js
CHANGED
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.MiddleTextTruncation = exports.ColorValue = exports.useTheme = exports.getUserColor = exports.WorkflowDiagram = exports.Stepper = exports.Wizard = exports.Text = exports.KbdKeys = exports.Kbd = exports.Code = exports.Blockquote = exports.Title = exports.Subheading = void 0;
|
|
6
|
+
exports.InputGroup = exports.LabeledInput = exports.Label = exports.Input = exports.InformationPanelContent = exports.InformationPanelBody = exports.InformationPanelHeader = exports.InformationPanelWrapper = exports.InformationPanel = exports.HorizontalTabs = exports.Tab = exports.Tabs = exports.VerticalTabs = exports.HeaderLogo = exports.HeaderButton = exports.HeaderBreadcrumbs = exports.Header = exports.defaultFooterElements = exports.Footer = exports.FileUploadTemplate = exports.FileUpload = exports.Fieldset = exports.ExpandableBlock = exports.ErrorPage = exports.DropdownMenu = exports.Dialog = exports.generateLocalizedStrings = exports.DatePicker = exports.ComboBox = exports.ColorPalette = exports.ColorInputPanel = exports.ColorBuilder = exports.ColorSwatch = exports.ColorPicker = exports.Checkbox = exports.Carousel = exports.ButtonGroup = exports.SplitButton = exports.IdeasButton = exports.IconButton = exports.DropdownButton = exports.Button = exports.Breadcrumbs = exports.Badge = exports.Backdrop = exports.UserIconGroup = exports.AvatarGroup = exports.UserIcon = exports.Avatar = exports.Alert = void 0;
|
|
7
|
+
exports.Leading = exports.Headline = exports.Body = exports.Anchor = exports.TreeNodeExpander = exports.TreeNode = exports.Tree = exports.Tooltip = exports.ToggleSwitch = exports.ThemeProvider = exports.toaster = exports.TimePicker = exports.Tile = exports.Textarea = exports.TagContainer = exports.Tag = exports.SelectionColumn = exports.ExpanderColumn = exports.ActionColumn = exports.TablePaginator = exports.EditableCell = exports.DefaultCell = exports.FilterButtonBar = exports.BaseFilter = exports.tableFilters = exports.Table = exports.Surface = exports.StatusMessage = exports.Slider = exports.SkipToContentLink = exports.SidenavSubmenuHeader = exports.SidenavSubmenu = exports.SidenavButton = exports.SideNavigation = exports.Select = exports.RadioTileGroup = exports.RadioTile = exports.Radio = exports.ProgressRadial = exports.ProgressLinear = exports.ModalContent = exports.ModalButtonBar = exports.Modal = exports.MenuItemSkeleton = exports.MenuExtraContent = exports.MenuDivider = exports.MenuItem = exports.Menu = exports.LabeledTextarea = exports.LabeledSelect = void 0;
|
|
8
|
+
exports.MiddleTextTruncation = exports.ColorValue = exports.useTheme = exports.getUserColor = exports.WorkflowDiagram = exports.Stepper = exports.Wizard = exports.Text = exports.KbdKeys = exports.Kbd = exports.Code = exports.Blockquote = exports.Title = exports.Subheading = exports.Small = void 0;
|
|
9
9
|
/*---------------------------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
11
11
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -70,6 +70,7 @@ Object.defineProperty(exports, "HeaderButton", { enumerable: true, get: function
|
|
|
70
70
|
Object.defineProperty(exports, "HeaderLogo", { enumerable: true, get: function () { return Header_1.HeaderLogo; } });
|
|
71
71
|
var Tabs_1 = require("./Tabs");
|
|
72
72
|
Object.defineProperty(exports, "VerticalTabs", { enumerable: true, get: function () { return Tabs_1.VerticalTabs; } });
|
|
73
|
+
Object.defineProperty(exports, "Tabs", { enumerable: true, get: function () { return Tabs_1.Tabs; } });
|
|
73
74
|
Object.defineProperty(exports, "Tab", { enumerable: true, get: function () { return Tabs_1.Tab; } });
|
|
74
75
|
Object.defineProperty(exports, "HorizontalTabs", { enumerable: true, get: function () { return Tabs_1.HorizontalTabs; } });
|
|
75
76
|
var InformationPanel_1 = require("./InformationPanel");
|
|
@@ -22,7 +22,6 @@ __exportStar(require("./Popover"), exports);
|
|
|
22
22
|
__exportStar(require("./Resizer"), exports);
|
|
23
23
|
__exportStar(require("./FocusTrap"), exports);
|
|
24
24
|
__exportStar(require("./InputContainer"), exports);
|
|
25
|
-
__exportStar(require("./icons"), exports);
|
|
26
25
|
__exportStar(require("./WithCSSTransition"), exports);
|
|
27
26
|
__exportStar(require("./MiddleTextTruncation"), exports);
|
|
28
27
|
__exportStar(require("./VirtualScroll"), exports);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare const SoftBackgrounds: {
|
|
2
|
-
readonly skyblue: "
|
|
3
|
-
readonly celery: "
|
|
4
|
-
readonly froly: "
|
|
5
|
-
readonly steelblue: "
|
|
6
|
-
readonly sunglow: "
|
|
7
|
-
readonly seabuckthorn: "
|
|
8
|
-
readonly montecarlo: "
|
|
9
|
-
readonly poloblue: "
|
|
10
|
-
readonly bouquet: "
|
|
11
|
-
readonly ash: "
|
|
12
|
-
readonly oak: "
|
|
2
|
+
readonly skyblue: "var(--iui-color-background-skyblue)";
|
|
3
|
+
readonly celery: "var(--iui-color-background-celery)";
|
|
4
|
+
readonly froly: "var(--iui-color-background-froly)";
|
|
5
|
+
readonly steelblue: "var(--iui-color-background-steelblue)";
|
|
6
|
+
readonly sunglow: "var(--iui-color-background-sunglow)";
|
|
7
|
+
readonly seabuckthorn: "var(--iui-color-background-seabuckthorn)";
|
|
8
|
+
readonly montecarlo: "var(--iui-color-background-montecarlo)";
|
|
9
|
+
readonly poloblue: "var(--iui-color-background-poloblue)";
|
|
10
|
+
readonly bouquet: "var(--iui-color-background-bouquet)";
|
|
11
|
+
readonly ash: "var(--iui-color-background-ash)";
|
|
12
|
+
readonly oak: "var(--iui-color-background-oak)";
|
|
13
13
|
};
|
|
14
14
|
/** Returns true if a string value is one of the SoftBackgrounds keys */
|
|
15
15
|
export declare const isSoftBackground: (value: string) => value is "skyblue" | "celery" | "froly" | "steelblue" | "sunglow" | "seabuckthorn" | "montecarlo" | "poloblue" | "bouquet" | "ash" | "oak";
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.getUserColor = exports.isSoftBackground = exports.SoftBackgrounds = void 0;
|
|
8
8
|
exports.SoftBackgrounds = {
|
|
9
|
-
skyblue: '
|
|
10
|
-
celery: '
|
|
11
|
-
froly: '
|
|
12
|
-
steelblue: '
|
|
13
|
-
sunglow: '
|
|
14
|
-
seabuckthorn: '
|
|
15
|
-
montecarlo: '
|
|
16
|
-
poloblue: '
|
|
17
|
-
bouquet: '
|
|
18
|
-
ash: '
|
|
19
|
-
oak: '
|
|
9
|
+
skyblue: 'var(--iui-color-background-skyblue)',
|
|
10
|
+
celery: 'var(--iui-color-background-celery)',
|
|
11
|
+
froly: 'var(--iui-color-background-froly)',
|
|
12
|
+
steelblue: 'var(--iui-color-background-steelblue)',
|
|
13
|
+
sunglow: 'var(--iui-color-background-sunglow)',
|
|
14
|
+
seabuckthorn: 'var(--iui-color-background-seabuckthorn)',
|
|
15
|
+
montecarlo: 'var(--iui-color-background-montecarlo)',
|
|
16
|
+
poloblue: 'var(--iui-color-background-poloblue)',
|
|
17
|
+
bouquet: 'var(--iui-color-background-bouquet)',
|
|
18
|
+
ash: 'var(--iui-color-background-ash)',
|
|
19
|
+
oak: 'var(--iui-color-background-oak)',
|
|
20
20
|
};
|
|
21
21
|
/** Returns true if a string value is one of the SoftBackgrounds keys */
|
|
22
22
|
var isSoftBackground = function (value) {
|