@itwin/itwinui-react 1.38.1 → 1.40.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.
Files changed (98) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/cjs/core/Carousel/Carousel.js +21 -12
  3. package/cjs/core/Carousel/CarouselContext.d.ts +4 -2
  4. package/cjs/core/Carousel/CarouselDotsList.js +1 -0
  5. package/cjs/core/Carousel/CarouselNavigation.js +8 -10
  6. package/cjs/core/Carousel/CarouselSlide.js +3 -7
  7. package/cjs/core/Carousel/CarouselSlider.js +23 -28
  8. package/cjs/core/ColorPicker/ColorPickerContext.d.ts +2 -2
  9. package/cjs/core/ComboBox/ComboBox.d.ts +10 -1
  10. package/cjs/core/ComboBox/ComboBox.js +39 -20
  11. package/cjs/core/ComboBox/ComboBoxDropdown.d.ts +5 -6
  12. package/cjs/core/ComboBox/ComboBoxInput.js +28 -9
  13. package/cjs/core/ComboBox/ComboBoxMenu.js +10 -2
  14. package/cjs/core/ComboBox/helpers.d.ts +1 -1
  15. package/cjs/core/ComboBox/helpers.js +1 -1
  16. package/cjs/core/DatePicker/DatePicker.d.ts +1 -1
  17. package/cjs/core/Menu/MenuItemSkeleton.d.ts +32 -0
  18. package/cjs/core/Menu/MenuItemSkeleton.js +53 -0
  19. package/cjs/core/Menu/index.d.ts +2 -0
  20. package/cjs/core/Menu/index.js +3 -1
  21. package/cjs/core/Table/Table.js +68 -25
  22. package/cjs/core/Table/TableCell.js +10 -3
  23. package/cjs/core/Table/TablePaginator.js +1 -1
  24. package/cjs/core/Table/TableRowMemoized.js +5 -1
  25. package/cjs/core/Table/actionHandlers/resizeHandler.d.ts +8 -0
  26. package/cjs/core/Table/actionHandlers/selectHandler.d.ts +4 -0
  27. package/cjs/core/Table/columns/selectionColumn.js +4 -2
  28. package/cjs/core/Table/filters/tableFilters.d.ts +3 -3
  29. package/cjs/core/Table/hooks/index.d.ts +1 -0
  30. package/cjs/core/Table/hooks/index.js +3 -1
  31. package/cjs/core/Table/hooks/useExpanderCell.js +11 -1
  32. package/cjs/core/Table/hooks/useStickyColumns.d.ts +2 -0
  33. package/cjs/core/Table/hooks/useStickyColumns.js +84 -0
  34. package/cjs/core/Table/utils.d.ts +1 -0
  35. package/cjs/core/Table/utils.js +36 -1
  36. package/cjs/core/Toast/Toaster.js +97 -18
  37. package/cjs/core/index.d.ts +2 -2
  38. package/cjs/core/index.js +4 -3
  39. package/cjs/core/utils/components/Popover.d.ts +1 -18
  40. package/cjs/core/utils/components/VirtualScroll.js +2 -2
  41. package/cjs/core/utils/components/VisuallyHidden.d.ts +9 -0
  42. package/cjs/core/utils/components/VisuallyHidden.js +44 -0
  43. package/cjs/core/utils/components/WithCSSTransition.d.ts +1 -2
  44. package/cjs/core/utils/components/icons.d.ts +4 -4
  45. package/cjs/core/utils/components/index.d.ts +1 -0
  46. package/cjs/core/utils/components/index.js +1 -0
  47. package/cjs/core/utils/hooks/useOverflow.js +4 -2
  48. package/cjs/core/utils/hooks/useTheme.d.ts +1 -1
  49. package/cjs/types/react-table-config.d.ts +9 -0
  50. package/esm/core/Carousel/Carousel.js +21 -12
  51. package/esm/core/Carousel/CarouselContext.d.ts +4 -2
  52. package/esm/core/Carousel/CarouselDotsList.js +1 -0
  53. package/esm/core/Carousel/CarouselNavigation.js +8 -10
  54. package/esm/core/Carousel/CarouselSlide.js +3 -7
  55. package/esm/core/Carousel/CarouselSlider.js +24 -29
  56. package/esm/core/ColorPicker/ColorPickerContext.d.ts +2 -2
  57. package/esm/core/ComboBox/ComboBox.d.ts +10 -1
  58. package/esm/core/ComboBox/ComboBox.js +39 -20
  59. package/esm/core/ComboBox/ComboBoxDropdown.d.ts +5 -6
  60. package/esm/core/ComboBox/ComboBoxInput.js +28 -9
  61. package/esm/core/ComboBox/ComboBoxMenu.js +10 -2
  62. package/esm/core/ComboBox/helpers.d.ts +1 -1
  63. package/esm/core/ComboBox/helpers.js +1 -1
  64. package/esm/core/DatePicker/DatePicker.d.ts +1 -1
  65. package/esm/core/Menu/MenuItemSkeleton.d.ts +32 -0
  66. package/esm/core/Menu/MenuItemSkeleton.js +46 -0
  67. package/esm/core/Menu/index.d.ts +2 -0
  68. package/esm/core/Menu/index.js +1 -0
  69. package/esm/core/Table/Table.js +70 -27
  70. package/esm/core/Table/TableCell.js +11 -4
  71. package/esm/core/Table/TablePaginator.js +1 -1
  72. package/esm/core/Table/TableRowMemoized.js +5 -1
  73. package/esm/core/Table/actionHandlers/resizeHandler.d.ts +8 -0
  74. package/esm/core/Table/actionHandlers/selectHandler.d.ts +4 -0
  75. package/esm/core/Table/columns/selectionColumn.js +4 -2
  76. package/esm/core/Table/filters/tableFilters.d.ts +3 -3
  77. package/esm/core/Table/hooks/index.d.ts +1 -0
  78. package/esm/core/Table/hooks/index.js +1 -0
  79. package/esm/core/Table/hooks/useExpanderCell.js +8 -1
  80. package/esm/core/Table/hooks/useStickyColumns.d.ts +2 -0
  81. package/esm/core/Table/hooks/useStickyColumns.js +80 -0
  82. package/esm/core/Table/utils.d.ts +1 -0
  83. package/esm/core/Table/utils.js +34 -0
  84. package/esm/core/Toast/Toaster.js +75 -19
  85. package/esm/core/index.d.ts +2 -2
  86. package/esm/core/index.js +1 -1
  87. package/esm/core/utils/components/Popover.d.ts +1 -18
  88. package/esm/core/utils/components/VirtualScroll.js +2 -2
  89. package/esm/core/utils/components/VisuallyHidden.d.ts +9 -0
  90. package/esm/core/utils/components/VisuallyHidden.js +38 -0
  91. package/esm/core/utils/components/WithCSSTransition.d.ts +1 -2
  92. package/esm/core/utils/components/icons.d.ts +4 -4
  93. package/esm/core/utils/components/index.d.ts +1 -0
  94. package/esm/core/utils/components/index.js +1 -0
  95. package/esm/core/utils/hooks/useOverflow.js +4 -2
  96. package/esm/core/utils/hooks/useTheme.d.ts +1 -1
  97. package/esm/types/react-table-config.d.ts +9 -0
  98. package/package.json +24 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-react",
3
- "version": "1.38.1",
3
+ "version": "1.40.1",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "cjs/index.js",
@@ -40,68 +40,53 @@
40
40
  "lint": "eslint \"**/*.{js,ts,tsx}\" --max-warnings=0",
41
41
  "lint:fix": "yarn lint --fix && node ../configs/copyrightLinter.js --fix \"*/**/*.{js,ts,tsx}\"",
42
42
  "copy-files": "cpy \"../../{README,LICENSE}.md\" .",
43
- "storybook": "start-storybook -p 6006",
44
- "dev": "yarn storybook",
45
- "build-storybook": "yarn copy-files && build-storybook"
43
+ "dev": "yarn build:watch"
46
44
  },
47
45
  "dependencies": {
48
- "@itwin/itwinui-css": "^0.58.0",
49
- "@itwin/itwinui-icons-react": "^1.5.0",
50
- "@itwin/itwinui-illustrations-react": "^1.0.1",
46
+ "@itwin/itwinui-css": "^0.59.2",
47
+ "@itwin/itwinui-icons-react": "^1.10.1",
48
+ "@itwin/itwinui-illustrations-react": "^1.3.1",
51
49
  "@tippyjs/react": "^4.2.5",
52
50
  "@types/react-table": "^7.0.18",
53
51
  "classnames": "^2.2.6",
54
52
  "react-table": "^7.1.0",
55
- "react-transition-group": "^4.1.1"
53
+ "react-transition-group": "^4.4.2"
56
54
  },
57
55
  "devDependencies": {
58
56
  "@babel/core": "^7.12.10",
59
- "@storybook/addon-a11y": "^6.4.19",
60
- "@storybook/addon-essentials": "~6.4.19",
61
- "@storybook/addon-storysource": "~6.4.19",
62
- "@storybook/addons": "~6.4.19",
63
- "@storybook/api": "~6.4.19",
64
- "@storybook/builder-webpack5": "~6.4.19",
65
- "@storybook/components": "~6.4.19",
66
- "@storybook/core-events": "~6.4.19",
67
- "@storybook/manager-webpack5": "~6.4.19",
68
- "@storybook/preset-typescript": "^3.0.0",
69
- "@storybook/react": "~6.4.19",
70
- "@storybook/theming": "~6.4.19",
71
- "@testing-library/jest-dom": "^5.14.1",
72
- "@testing-library/react": "^12.0.0",
73
- "@testing-library/react-hooks": "^7.0.1",
74
- "@testing-library/user-event": "^13.5.0",
57
+ "@testing-library/jest-dom": "^5.16.4",
58
+ "@testing-library/react": "^13.2.0",
59
+ "@testing-library/user-event": "^14.1.1",
75
60
  "@types/classnames": "^2.2.7",
76
61
  "@types/jest": "^27.0.0",
77
62
  "@types/node": "^10.12.2",
78
- "@types/react": "^17.0.3",
79
- "@types/react-dom": "^17.0.3",
80
- "@types/react-transition-group": "^2.9.2",
63
+ "@types/react": "^18.0.6",
64
+ "@types/react-dom": "^18.0.2",
65
+ "@types/react-transition-group": "^4.4.4",
81
66
  "@typescript-eslint/eslint-plugin": "^5.17.0",
82
67
  "@typescript-eslint/parser": "^5.17.0",
83
68
  "babel-loader": "^8.2.2",
84
69
  "concurrently": "^5.3.0",
85
70
  "configs": "*",
86
- "creevey": "^0.8.0-beta.0",
71
+ "eslint": "^8.12.0",
72
+ "eslint-config-prettier": "^8.5.0",
87
73
  "inquirer": "^6.2.2",
88
- "jest": "^27.0.6",
89
- "jest-cli": "^27.0.6",
90
- "jest-junit": "^12.0.0",
74
+ "jest": "^28.1.0",
75
+ "jest-cli": "^28.1.0",
76
+ "jest-environment-jsdom": "^28.1.0",
77
+ "jest-junit": "^13.2.0",
91
78
  "markdown-to-jsx": "6.11.4",
92
- "react": "^17.0.2",
93
- "react-dom": "^17.0.2",
94
- "storybook-dark-mode": "^1.0.9",
79
+ "react": "^18.0.0",
80
+ "react-dom": "^18.0.0",
95
81
  "tippy.js": "^6.3.1",
96
- "ts-jest": "^27.0.4",
82
+ "ts-jest": "^28.0.2",
97
83
  "ts-loader": "^9.2.8",
98
84
  "ts-node": "^8.0.2",
99
- "typescript": "^4.4.3",
100
- "webpack": "5"
85
+ "typescript": "^4.4.3"
101
86
  },
102
87
  "peerDependencies": {
103
- "react": "^16.8.6 || ^17.0.0",
104
- "react-dom": "^16.8.6 || ^17.0.0"
88
+ "react": ">=16.8.6 < 19.0.0",
89
+ "react-dom": ">=16.8.6 < 19.0.0"
105
90
  },
106
91
  "lint-staged": {
107
92
  "*.{tsx,ts,jsx,js}": [