@itwin/itwinui-react 1.26.1 → 1.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +1 -1
- package/cjs/core/ButtonGroup/ButtonGroup.js +2 -4
- package/cjs/core/Buttons/Button/Button.d.ts +6 -26
- package/cjs/core/Buttons/Button/Button.js +5 -6
- package/cjs/core/Buttons/DropdownButton/DropdownButton.d.ts +1 -1
- package/cjs/core/Buttons/IconButton/IconButton.d.ts +3 -8
- package/cjs/core/Buttons/IconButton/IconButton.js +3 -4
- package/cjs/core/Buttons/SplitButton/SplitButton.d.ts +9 -7
- package/cjs/core/Buttons/SplitButton/SplitButton.js +11 -6
- package/cjs/core/Checkbox/Checkbox.d.ts +11 -0
- package/cjs/core/Checkbox/Checkbox.js +14 -4
- package/cjs/core/ColorPicker/ColorInputPanel.js +2 -2
- package/cjs/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBox.d.ts +2 -2
- package/cjs/core/DatePicker/DatePicker.js +14 -15
- package/cjs/core/ErrorPage/ErrorPage.d.ts +2 -1
- package/cjs/core/ErrorPage/ErrorPage.js +3 -2
- package/cjs/core/Header/HeaderButton.d.ts +6 -4
- package/cjs/core/Header/HeaderButton.js +3 -4
- package/cjs/core/LabeledInput/LabeledInput.d.ts +1 -1
- package/cjs/core/Modal/ModalButtonBar.d.ts +2 -1
- package/cjs/core/Modal/ModalButtonBar.js +3 -2
- package/cjs/core/SideNavigation/SidenavButton.d.ts +3 -13
- package/cjs/core/Table/Table.d.ts +13 -0
- package/cjs/core/Table/Table.js +80 -11
- package/cjs/core/Table/TableCell.js +1 -1
- package/cjs/core/Table/TablePaginator.d.ts +6 -6
- package/cjs/core/Table/TablePaginator.js +23 -12
- package/cjs/core/Table/TableRowMemoized.d.ts +21 -0
- package/cjs/core/Table/TableRowMemoized.js +7 -4
- package/cjs/core/Table/actionHandlers/resizeHandler.d.ts +51 -0
- package/cjs/core/Table/actionHandlers/resizeHandler.js +22 -0
- package/cjs/core/Table/actionHandlers/selectHandler.d.ts +10 -7
- package/cjs/core/Table/filters/BaseFilter.js +3 -1
- package/cjs/core/Table/filters/FilterToggle.js +4 -3
- package/cjs/core/Table/hooks/index.d.ts +1 -0
- package/cjs/core/Table/hooks/index.js +3 -1
- package/cjs/core/Table/hooks/useResizeColumns.d.ts +5 -0
- package/cjs/core/Table/hooks/useResizeColumns.js +273 -0
- package/cjs/core/Table/utils.d.ts +1 -1
- package/cjs/core/Table/utils.js +8 -2
- package/cjs/core/Tabs/Tabs.d.ts +4 -0
- package/cjs/core/Tabs/Tabs.js +2 -2
- package/cjs/core/Typography/Anchor/Anchor.d.ts +3 -0
- package/cjs/core/Typography/Anchor/Anchor.js +41 -0
- package/cjs/core/Typography/Anchor/index.d.ts +3 -0
- package/cjs/core/Typography/Anchor/index.js +10 -0
- package/cjs/core/Typography/Text/Text.d.ts +6 -10
- package/cjs/core/Typography/Text/Text.js +3 -4
- package/cjs/core/Typography/index.d.ts +1 -0
- package/cjs/core/Typography/index.js +3 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +2 -1
- package/cjs/core/utils/hooks/useTheme.js +20 -3
- package/cjs/core/utils/props.d.ts +29 -1
- package/cjs/types/react-table-config.d.ts +16 -3
- package/esm/core/Breadcrumbs/Breadcrumbs.js +1 -1
- package/esm/core/ButtonGroup/ButtonGroup.js +2 -4
- package/esm/core/Buttons/Button/Button.d.ts +6 -26
- package/esm/core/Buttons/Button/Button.js +6 -7
- package/esm/core/Buttons/DropdownButton/DropdownButton.d.ts +1 -1
- package/esm/core/Buttons/IconButton/IconButton.d.ts +3 -8
- package/esm/core/Buttons/IconButton/IconButton.js +3 -4
- package/esm/core/Buttons/SplitButton/SplitButton.d.ts +9 -7
- package/esm/core/Buttons/SplitButton/SplitButton.js +11 -5
- package/esm/core/Checkbox/Checkbox.d.ts +11 -0
- package/esm/core/Checkbox/Checkbox.js +14 -4
- package/esm/core/ColorPicker/ColorInputPanel.js +2 -2
- package/esm/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/esm/core/ComboBox/ComboBox.d.ts +2 -2
- package/esm/core/DatePicker/DatePicker.js +14 -15
- package/esm/core/ErrorPage/ErrorPage.d.ts +2 -1
- package/esm/core/ErrorPage/ErrorPage.js +3 -2
- package/esm/core/Header/HeaderButton.d.ts +6 -4
- package/esm/core/Header/HeaderButton.js +3 -3
- package/esm/core/LabeledInput/LabeledInput.d.ts +1 -1
- package/esm/core/Modal/ModalButtonBar.d.ts +2 -1
- package/esm/core/Modal/ModalButtonBar.js +3 -2
- package/esm/core/SideNavigation/SidenavButton.d.ts +3 -13
- package/esm/core/Table/Table.d.ts +13 -0
- package/esm/core/Table/Table.js +82 -13
- package/esm/core/Table/TableCell.js +1 -1
- package/esm/core/Table/TablePaginator.d.ts +6 -6
- package/esm/core/Table/TablePaginator.js +24 -13
- package/esm/core/Table/TableRowMemoized.d.ts +21 -0
- package/esm/core/Table/TableRowMemoized.js +5 -3
- package/esm/core/Table/actionHandlers/resizeHandler.d.ts +51 -0
- package/esm/core/Table/actionHandlers/resizeHandler.js +17 -0
- package/esm/core/Table/actionHandlers/selectHandler.d.ts +10 -7
- package/esm/core/Table/filters/BaseFilter.js +3 -1
- package/esm/core/Table/filters/FilterToggle.js +4 -3
- package/esm/core/Table/hooks/index.d.ts +1 -0
- package/esm/core/Table/hooks/index.js +1 -0
- package/esm/core/Table/hooks/useResizeColumns.d.ts +5 -0
- package/esm/core/Table/hooks/useResizeColumns.js +269 -0
- package/esm/core/Table/utils.d.ts +1 -1
- package/esm/core/Table/utils.js +8 -2
- package/esm/core/Tabs/Tabs.d.ts +4 -0
- package/esm/core/Tabs/Tabs.js +2 -2
- package/esm/core/Typography/Anchor/Anchor.d.ts +3 -0
- package/esm/core/Typography/Anchor/Anchor.js +35 -0
- package/esm/core/Typography/Anchor/index.d.ts +3 -0
- package/esm/core/Typography/Anchor/index.js +6 -0
- package/esm/core/Typography/Text/Text.d.ts +6 -10
- package/esm/core/Typography/Text/Text.js +4 -4
- package/esm/core/Typography/index.d.ts +1 -0
- package/esm/core/Typography/index.js +1 -0
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/utils/hooks/useTheme.js +20 -3
- package/esm/core/utils/props.d.ts +29 -1
- package/esm/types/react-table-config.d.ts +16 -3
- package/package.json +20 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/itwinui-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.1",
|
|
4
4
|
"author": "Bentley Systems",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "cjs/index.js",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"build-storybook": "build-storybook"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@itwin/itwinui-css": "^0.
|
|
44
|
-
"@itwin/itwinui-icons-react": "^1.
|
|
43
|
+
"@itwin/itwinui-css": "^0.44.0",
|
|
44
|
+
"@itwin/itwinui-icons-react": "^1.5.0",
|
|
45
45
|
"@itwin/itwinui-illustrations-react": "^1.0.1",
|
|
46
46
|
"@tippyjs/react": "^4.2.5",
|
|
47
47
|
"@types/react-table": "^7.0.18",
|
|
@@ -55,14 +55,17 @@
|
|
|
55
55
|
"@storybook/addon-storysource": "~6.3.6",
|
|
56
56
|
"@storybook/addons": "~6.3.6",
|
|
57
57
|
"@storybook/api": "~6.3.6",
|
|
58
|
+
"@storybook/builder-webpack5": "~6.3.6",
|
|
58
59
|
"@storybook/components": "~6.3.6",
|
|
59
60
|
"@storybook/core-events": "~6.3.6",
|
|
61
|
+
"@storybook/manager-webpack5": "~6.3.6",
|
|
60
62
|
"@storybook/preset-typescript": "^3.0.0",
|
|
61
63
|
"@storybook/react": "~6.3.6",
|
|
62
64
|
"@storybook/theming": "~6.3.6",
|
|
63
65
|
"@testing-library/jest-dom": "^5.14.1",
|
|
64
66
|
"@testing-library/react": "^12.0.0",
|
|
65
67
|
"@testing-library/react-hooks": "^7.0.1",
|
|
68
|
+
"@testing-library/user-event": "^13.5.0",
|
|
66
69
|
"@types/classnames": "^2.2.7",
|
|
67
70
|
"@types/jest": "^27.0.0",
|
|
68
71
|
"@types/node": "^10.12.2",
|
|
@@ -81,14 +84,15 @@
|
|
|
81
84
|
"eslint-plugin-react": "^7.25.1",
|
|
82
85
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
83
86
|
"fast-glob": "^3.2.5",
|
|
84
|
-
"husky": "^
|
|
87
|
+
"husky": "^4.0.0",
|
|
85
88
|
"inquirer": "^6.2.2",
|
|
86
89
|
"jest": "^27.0.6",
|
|
87
90
|
"jest-cli": "^27.0.6",
|
|
88
91
|
"jest-junit": "^12.0.0",
|
|
92
|
+
"lint-staged": "^12.1.2",
|
|
89
93
|
"markdown-to-jsx": "6.11.4",
|
|
90
94
|
"mkdirp": "^1.0.4",
|
|
91
|
-
"prettier": "
|
|
95
|
+
"prettier": "2.2.1",
|
|
92
96
|
"react": "^17.0.2",
|
|
93
97
|
"react-dom": "^17.0.2",
|
|
94
98
|
"rimraf": "^2.6.2",
|
|
@@ -98,7 +102,7 @@
|
|
|
98
102
|
"ts-loader": "^8.0.1",
|
|
99
103
|
"ts-node": "^8.0.2",
|
|
100
104
|
"typescript": "^4.4.3",
|
|
101
|
-
"webpack": "
|
|
105
|
+
"webpack": "5"
|
|
102
106
|
},
|
|
103
107
|
"peerDependencies": {
|
|
104
108
|
"react": "^16.8.6 || ^17.0.0",
|
|
@@ -116,13 +120,21 @@
|
|
|
116
120
|
"prismjs": "^1.25.0",
|
|
117
121
|
"nth-check": "^2.0.1",
|
|
118
122
|
"ansi-regex": "^5.0.1",
|
|
119
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.1"
|
|
123
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
|
|
124
|
+
"postcss": "8"
|
|
120
125
|
},
|
|
121
126
|
"husky": {
|
|
122
127
|
"hooks": {
|
|
123
|
-
"pre-commit": "
|
|
128
|
+
"pre-commit": "lint-staged"
|
|
124
129
|
}
|
|
125
130
|
},
|
|
131
|
+
"lint-staged": {
|
|
132
|
+
"*.{tsx,ts,jsx,js}": [
|
|
133
|
+
"prettier --write",
|
|
134
|
+
"eslint --fix",
|
|
135
|
+
"yarn lint:copyright --fix"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
126
138
|
"sideEffects": [
|
|
127
139
|
"**/*.scss",
|
|
128
140
|
"**/*.css"
|