@itwin/itwinui-react 1.37.0 → 1.37.3

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.
Files changed (120) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/cjs/core/Alert/Alert.js +1 -1
  3. package/cjs/core/Badge/Badge.js +1 -1
  4. package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +2 -2
  5. package/cjs/core/Buttons/Button/Button.js +2 -2
  6. package/cjs/core/Buttons/IconButton/IconButton.js +2 -2
  7. package/cjs/core/Carousel/Carousel.js +1 -1
  8. package/cjs/core/Carousel/CarouselDotsList.js +1 -1
  9. package/cjs/core/Carousel/CarouselSlider.js +1 -1
  10. package/cjs/core/Checkbox/Checkbox.js +1 -1
  11. package/cjs/core/ColorPicker/ColorBuilder.js +3 -3
  12. package/cjs/core/ColorPicker/ColorInputPanel.js +1 -1
  13. package/cjs/core/ColorPicker/ColorSwatch.d.ts +1 -1
  14. package/cjs/core/ColorPicker/ColorSwatch.js +1 -1
  15. package/cjs/core/ComboBox/ComboBox.js +9 -6
  16. package/cjs/core/DatePicker/DatePicker.js +2 -2
  17. package/cjs/core/ExpandableBlock/ExpandableBlock.js +1 -1
  18. package/cjs/core/Footer/Footer.js +2 -2
  19. package/cjs/core/Header/HeaderBreadcrumbs.js +1 -1
  20. package/cjs/core/InformationPanel/InformationPanel.js +2 -2
  21. package/cjs/core/Input/Input.js +1 -1
  22. package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +1 -1
  23. package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +2 -2
  24. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +2 -2
  25. package/cjs/core/Radio/Radio.js +1 -1
  26. package/cjs/core/Select/Select.js +3 -3
  27. package/cjs/core/Slider/Slider.js +1 -1
  28. package/cjs/core/Slider/Thumb.js +16 -2
  29. package/cjs/core/Slider/Track.js +24 -13
  30. package/cjs/core/Surface/Surface.js +1 -1
  31. package/cjs/core/Table/Table.js +18 -6
  32. package/cjs/core/Table/TablePaginator.js +6 -6
  33. package/cjs/core/Table/TableRowMemoized.js +1 -1
  34. package/cjs/core/Table/cells/EditableCell.js +2 -1
  35. package/cjs/core/Table/columns/actionColumn.js +2 -2
  36. package/cjs/core/Table/utils.js +5 -5
  37. package/cjs/core/Tabs/Tabs.d.ts +1 -1
  38. package/cjs/core/Tabs/Tabs.js +7 -8
  39. package/cjs/core/Tag/TagContainer.js +1 -1
  40. package/cjs/core/Tile/Tile.js +1 -1
  41. package/cjs/core/Toast/Toast.js +2 -2
  42. package/cjs/core/Toast/ToastWrapper.js +1 -1
  43. package/cjs/core/Tree/TreeNode.js +2 -2
  44. package/cjs/core/Typography/Text/Text.js +1 -1
  45. package/cjs/core/UserIcon/UserIcon.js +2 -2
  46. package/cjs/core/UserIconGroup/UserIconGroup.js +3 -3
  47. package/cjs/core/Wizard/Step.js +1 -1
  48. package/cjs/core/Wizard/Wizard.js +1 -1
  49. package/cjs/core/utils/color/ColorValue.js +11 -11
  50. package/cjs/core/utils/color/index.js +5 -1
  51. package/cjs/core/utils/components/FocusTrap.js +6 -8
  52. package/cjs/core/utils/components/InputContainer.js +1 -1
  53. package/cjs/core/utils/components/MiddleTextTruncation.js +1 -1
  54. package/cjs/core/utils/components/VirtualScroll.js +1 -1
  55. package/cjs/core/utils/components/WithCSSTransition.js +5 -5
  56. package/cjs/core/utils/components/index.js +5 -1
  57. package/cjs/core/utils/functions/focusable.js +1 -1
  58. package/cjs/core/utils/functions/index.js +5 -1
  59. package/cjs/core/utils/hooks/index.js +5 -1
  60. package/cjs/core/utils/hooks/useOverflow.js +3 -3
  61. package/cjs/core/utils/hooks/useTheme.js +1 -1
  62. package/cjs/core/utils/index.js +5 -1
  63. package/cjs/index.js +5 -1
  64. package/esm/core/Alert/Alert.js +1 -1
  65. package/esm/core/Badge/Badge.js +1 -1
  66. package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +2 -2
  67. package/esm/core/Buttons/Button/Button.js +2 -2
  68. package/esm/core/Buttons/IconButton/IconButton.js +2 -2
  69. package/esm/core/Carousel/Carousel.js +1 -1
  70. package/esm/core/Carousel/CarouselDotsList.js +1 -1
  71. package/esm/core/Carousel/CarouselSlider.js +1 -1
  72. package/esm/core/Checkbox/Checkbox.js +1 -1
  73. package/esm/core/ColorPicker/ColorBuilder.js +3 -3
  74. package/esm/core/ColorPicker/ColorInputPanel.js +1 -1
  75. package/esm/core/ColorPicker/ColorSwatch.d.ts +1 -1
  76. package/esm/core/ColorPicker/ColorSwatch.js +1 -1
  77. package/esm/core/ComboBox/ComboBox.js +9 -6
  78. package/esm/core/DatePicker/DatePicker.js +2 -2
  79. package/esm/core/ExpandableBlock/ExpandableBlock.js +1 -1
  80. package/esm/core/Footer/Footer.js +2 -2
  81. package/esm/core/Header/HeaderBreadcrumbs.js +1 -1
  82. package/esm/core/InformationPanel/InformationPanel.js +2 -2
  83. package/esm/core/Input/Input.js +1 -1
  84. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +1 -1
  85. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +2 -2
  86. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +2 -2
  87. package/esm/core/Radio/Radio.js +1 -1
  88. package/esm/core/Select/Select.js +3 -3
  89. package/esm/core/Slider/Slider.js +1 -1
  90. package/esm/core/Slider/Thumb.js +16 -2
  91. package/esm/core/Slider/Track.js +24 -13
  92. package/esm/core/Surface/Surface.js +1 -1
  93. package/esm/core/Table/Table.js +18 -6
  94. package/esm/core/Table/TablePaginator.js +6 -6
  95. package/esm/core/Table/TableRowMemoized.js +1 -1
  96. package/esm/core/Table/cells/EditableCell.js +2 -1
  97. package/esm/core/Table/columns/actionColumn.js +2 -2
  98. package/esm/core/Table/utils.js +5 -5
  99. package/esm/core/Tabs/Tabs.d.ts +1 -1
  100. package/esm/core/Tabs/Tabs.js +7 -8
  101. package/esm/core/Tag/TagContainer.js +1 -1
  102. package/esm/core/Tile/Tile.js +1 -1
  103. package/esm/core/Toast/Toast.js +2 -2
  104. package/esm/core/Toast/ToastWrapper.js +1 -1
  105. package/esm/core/Tree/TreeNode.js +2 -2
  106. package/esm/core/Typography/Text/Text.js +1 -1
  107. package/esm/core/UserIcon/UserIcon.js +2 -2
  108. package/esm/core/UserIconGroup/UserIconGroup.js +3 -3
  109. package/esm/core/Wizard/Step.js +1 -1
  110. package/esm/core/Wizard/Wizard.js +1 -1
  111. package/esm/core/utils/color/ColorValue.js +11 -11
  112. package/esm/core/utils/components/FocusTrap.js +6 -8
  113. package/esm/core/utils/components/InputContainer.js +1 -1
  114. package/esm/core/utils/components/MiddleTextTruncation.js +1 -1
  115. package/esm/core/utils/components/VirtualScroll.js +1 -1
  116. package/esm/core/utils/components/WithCSSTransition.js +5 -5
  117. package/esm/core/utils/functions/focusable.js +1 -1
  118. package/esm/core/utils/hooks/useOverflow.js +3 -3
  119. package/esm/core/utils/hooks/useTheme.js +1 -1
  120. package/package.json +21 -20
package/package.json CHANGED
@@ -1,11 +1,17 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-react",
3
- "version": "1.37.0",
3
+ "version": "1.37.3",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "cjs/index.js",
7
7
  "module": "esm/index.js",
8
8
  "typings": "cjs/index.d.ts",
9
+ "files": [
10
+ "cjs",
11
+ "esm",
12
+ "CHANGELOG.md",
13
+ "LICENSE.md"
14
+ ],
9
15
  "description": "A react implementation of our iTwinUI UX standards",
10
16
  "homepage": "https://github.com/iTwin/iTwinUI-react",
11
17
  "keywords": [
@@ -23,21 +29,21 @@
23
29
  "ux"
24
30
  ],
25
31
  "scripts": {
26
- "build": "yarn clean && yarn mkdirp lib/ && yarn copy-files && tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json",
27
- "build:watch": "yarn clean && yarn mkdirp lib/ && yarn copy-files && concurrently \"tsc -p tsconfig.cjs.json --watch\" \"tsc -p tsconfig.esm.json --watch\"",
28
- "clean": "yarn clean:coverage && yarn clean:lib",
32
+ "build": "yarn clean && yarn copy-files && tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json",
33
+ "build:watch": "yarn clean && yarn copy-files && concurrently \"tsc -p tsconfig.cjs.json --watch\" \"tsc -p tsconfig.esm.json --watch\"",
34
+ "clean": "yarn clean:coverage && rimraf esm && rimraf cjs",
29
35
  "clean:coverage": "rimraf coverage",
30
- "clean:lib": "rimraf lib",
31
36
  "test": "jest",
32
37
  "test:watch": "jest --watch",
33
38
  "createComponent": "node scripts/createComponent.js",
34
- "pretty": "prettier --config .prettierrc \"scripts/**/*\" src/{__tests__,core,style,utils}/**/*{tsx,ts,jsx,js,css,scss} --write",
35
- "lint": "eslint */**/*.{js,ts,tsx} --max-warnings=0",
39
+ "format": "prettier --config .prettierrc **/*.{tsx,ts,js} --ignore-path .gitignore --write",
40
+ "lint": "eslint \"**/*.{js,ts,tsx}\" --max-warnings=0",
36
41
  "lint:fix": "yarn lint --fix && yarn lint:copyright --fix */**/*.{js,ts,tsx}",
37
42
  "lint:copyright": "node scripts/copyrightLinter.js",
38
- "copy-files": "cpx package.json lib && cpx \"{README,LICENSE,CHANGELOG}.md \" lib",
43
+ "copy-files": "cpx \"../../{README,LICENSE}.md\" .",
39
44
  "storybook": "start-storybook -p 6006",
40
- "build-storybook": "build-storybook"
45
+ "dev": "yarn storybook",
46
+ "build-storybook": "yarn copy-files && build-storybook"
41
47
  },
42
48
  "dependencies": {
43
49
  "@itwin/itwinui-css": "^0.55.0",
@@ -73,18 +79,13 @@
73
79
  "@types/react": "^17.0.3",
74
80
  "@types/react-dom": "^17.0.3",
75
81
  "@types/react-transition-group": "^2.9.2",
76
- "@typescript-eslint/eslint-plugin": "^4.31.1",
77
- "@typescript-eslint/parser": "^4.31.1",
82
+ "@typescript-eslint/eslint-plugin": "^5.17.0",
83
+ "@typescript-eslint/parser": "^5.17.0",
78
84
  "babel-loader": "^8.2.2",
79
85
  "concurrently": "^5.3.0",
86
+ "configs": "*",
80
87
  "cpx": "^1.5.0",
81
88
  "creevey": "^0.8.0-beta.0",
82
- "eslint": "^7.32.0",
83
- "eslint-config-prettier": "^8.3.0",
84
- "eslint-plugin-prettier": "^4.0.0",
85
- "eslint-plugin-react": "^7.25.1",
86
- "eslint-plugin-react-hooks": "^4.2.0",
87
- "eslint-plugin-storybook": "^0.5.7",
88
89
  "fast-glob": "^3.2.5",
89
90
  "husky": "^4.0.0",
90
91
  "inquirer": "^6.2.2",
@@ -94,14 +95,13 @@
94
95
  "lint-staged": "^12.1.2",
95
96
  "markdown-to-jsx": "6.11.4",
96
97
  "mkdirp": "^1.0.4",
97
- "prettier": "2.2.1",
98
98
  "react": "^17.0.2",
99
99
  "react-dom": "^17.0.2",
100
100
  "rimraf": "^2.6.2",
101
101
  "storybook-dark-mode": "^1.0.9",
102
102
  "tippy.js": "^6.3.1",
103
103
  "ts-jest": "^27.0.4",
104
- "ts-loader": "^8.0.1",
104
+ "ts-loader": "^9.2.8",
105
105
  "ts-node": "^8.0.2",
106
106
  "typescript": "^4.4.3",
107
107
  "webpack": "5"
@@ -134,10 +134,11 @@
134
134
  "lint-staged": {
135
135
  "*.{tsx,ts,jsx,js}": [
136
136
  "prettier --write",
137
- "eslint --fix",
137
+ "eslint --max-warnings=0 --fix",
138
138
  "yarn lint:copyright --fix"
139
139
  ]
140
140
  },
141
+ "prettier": "configs/prettier-config",
141
142
  "sideEffects": [
142
143
  "**/*.scss",
143
144
  "**/*.css"