@itwin/appui-react 5.30.0 → 5.31.0

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 (44) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/lib/appui-react/accudraw/AccuDrawStoreProvider.d.ts +7 -0
  3. package/lib/appui-react/accudraw/AccuDrawStoreProvider.d.ts.map +1 -0
  4. package/lib/appui-react/accudraw/AccuDrawStoreProvider.js +26 -0
  5. package/lib/appui-react/accudraw/AccuDrawStoreProvider.js.map +1 -0
  6. package/lib/appui-react/accudraw/FrameworkAccuDraw.d.ts +1 -1
  7. package/lib/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
  8. package/lib/appui-react/accudraw/FrameworkAccuDraw.js +1 -4
  9. package/lib/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
  10. package/lib/appui-react/configurableui/ConfigurableUiContent.d.ts +12 -0
  11. package/lib/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
  12. package/lib/appui-react/configurableui/ConfigurableUiContent.js +3 -1
  13. package/lib/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
  14. package/lib/appui-react/frontstage/ModalFrontstage.d.ts +27 -15
  15. package/lib/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
  16. package/lib/appui-react/frontstage/ModalFrontstage.js +16 -20
  17. package/lib/appui-react/frontstage/ModalFrontstage.js.map +1 -1
  18. package/lib/appui-react/frontstage/ModalFrontstage.scss +11 -17
  19. package/lib/appui-react/hooks/useActiveModalFrontstage.d.ts +8 -0
  20. package/lib/appui-react/hooks/useActiveModalFrontstage.d.ts.map +1 -0
  21. package/lib/appui-react/hooks/useActiveModalFrontstage.js +23 -0
  22. package/lib/appui-react/hooks/useActiveModalFrontstage.js.map +1 -0
  23. package/lib/appui-react/hooks/useListeners.d.ts +8 -0
  24. package/lib/appui-react/hooks/useListeners.d.ts.map +1 -0
  25. package/lib/appui-react/hooks/useListeners.js +25 -0
  26. package/lib/appui-react/hooks/useListeners.js.map +1 -0
  27. package/lib/appui-react/hooks/useViewports.d.ts +9 -0
  28. package/lib/appui-react/hooks/useViewports.d.ts.map +1 -0
  29. package/lib/appui-react/hooks/useViewports.js +35 -0
  30. package/lib/appui-react/hooks/useViewports.js.map +1 -0
  31. package/lib/appui-react/layout/StandardLayout.d.ts +1 -2
  32. package/lib/appui-react/layout/StandardLayout.d.ts.map +1 -1
  33. package/lib/appui-react/layout/StandardLayout.js +9 -9
  34. package/lib/appui-react/layout/StandardLayout.js.map +1 -1
  35. package/lib/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  36. package/lib/appui-react/widget-panels/Frontstage.js +9 -4
  37. package/lib/appui-react/widget-panels/Frontstage.js.map +1 -1
  38. package/lib/appui-react/widget-panels/ModalFrontstageComposer.d.ts +1 -6
  39. package/lib/appui-react/widget-panels/ModalFrontstageComposer.d.ts.map +1 -1
  40. package/lib/appui-react/widget-panels/ModalFrontstageComposer.js +7 -16
  41. package/lib/appui-react/widget-panels/ModalFrontstageComposer.js.map +1 -1
  42. package/lib/cjs/appui-react/frontstage/ModalFrontstage.scss +11 -17
  43. package/lib/esm/appui-react/frontstage/ModalFrontstage.scss +11 -17
  44. package/package.json +7 -7
@@ -1 +1 @@
1
- {"version":3,"file":"ModalFrontstageComposer.js","sourceRoot":"","sources":["../../../src/appui-react/widget-panels/ModalFrontstageComposer.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,gBAAgB;AAChB,MAAM,UAAU,4BAA4B;IAC1C,MAAM,CAAC,yBAAyB,EAAE,4BAA4B,CAAC,GAC7D,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAChE,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,OAAO,WAAW,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CACtE,CAAC,IAAI,EAAE,EAAE;YACP,4BAA4B,CAC1B,IAAI,CAAC,oBAAoB,KAAK,CAAC;gBAC7B,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,qBAAqB,CAClD,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC,EAAE,CAAC,4BAA4B,CAAC,CAAC,CAAC;IACnC,OAAO,yBAAyB,CAAC;AACnC,CAAC;AAED,gBAAgB;AAChB,MAAM,UAAU,uBAAuB,CAAC,EACtC,SAAS,GAGV;IACC,MAAM,gBAAgB,GAAG,KAAK,CAAC,WAAW,CACxC,GAAG,EAAE,CAAC,WAAW,CAAC,WAAW,CAAC,oBAAoB,EAAE,EACpD,EAAE,CACH,CAAC;IACF,IAAI,CAAC,SAAS;QAAE,OAAO,IAAI,CAAC;IAE5B,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC;IAE9D,OAAO,CACL,oBAAC,eAAe,IACd,MAAM,EAAE,IAAI,EACZ,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,gBAAgB,EAC5B,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,IAErB,OAAO,CACQ,CACnB,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Frontstage\n */\nimport * as React from \"react\";\nimport type { ModalFrontstageInfo } from \"../framework/FrameworkFrontstages.js\";\nimport { ModalFrontstage } from \"../frontstage/ModalFrontstage.js\";\nimport { UiFramework } from \"../UiFramework.js\";\n\n/** @internal */\nexport function useActiveModalFrontstageInfo() {\n const [activeModalFrontstageInfo, setActiveModalFrontstageInfo] =\n React.useState(UiFramework.frontstages.activeModalFrontstage);\n React.useEffect(() => {\n return UiFramework.frontstages.onModalFrontstageChangedEvent.addListener(\n (args) => {\n setActiveModalFrontstageInfo(\n args.modalFrontstageCount === 0\n ? undefined\n : UiFramework.frontstages.activeModalFrontstage\n );\n }\n );\n }, [setActiveModalFrontstageInfo]);\n return activeModalFrontstageInfo;\n}\n\n/** @internal */\nexport function ModalFrontstageComposer({\n stageInfo,\n}: {\n stageInfo: ModalFrontstageInfo | undefined;\n}) {\n const handleCloseModal = React.useCallback(\n () => UiFramework.frontstages.closeModalFrontstage(),\n []\n );\n if (!stageInfo) return null;\n\n const { title, content, appBarRight, backButton } = stageInfo;\n\n return (\n <ModalFrontstage\n isOpen={true}\n title={title}\n closeModal={handleCloseModal}\n appBarRight={appBarRight}\n backButton={backButton}\n >\n {content}\n </ModalFrontstage>\n );\n}\n"]}
1
+ {"version":3,"file":"ModalFrontstageComposer.js","sourceRoot":"","sources":["../../../src/appui-react/widget-panels/ModalFrontstageComposer.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAEnF,gBAAgB;AAChB,MAAM,UAAU,uBAAuB;IACrC,MAAM,EAAE,qBAAqB,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC;IAC1E,MAAM,IAAI,GAAG,wBAAwB,EAAE,CAAC;IACxC,MAAM,gBAAgB,GAAG,KAAK,CAAC,WAAW,CACxC,GAAG,EAAE,CAAC,WAAW,CAAC,WAAW,CAAC,oBAAoB,EAAE,EACpD,EAAE,CACH,CAAC;IAEF,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IACvB,OAAO,CACL,0CACG,qBAAqB,CAAC,CAAC,CAAC,CACvB,qBAAqB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAC9C,CAAC,CAAC,CAAC,CACF,oBAAC,eAAe,IACd,MAAM,EAAE,IAAI,EACZ,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,YAAY,EAAE,gBAAgB,EAC9B,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,UAAU,EAAE,IAAI,CAAC,UAAU,IAE1B,IAAI,CAAC,OAAO,CACG,CACnB,CACA,CACJ,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Frontstage\n */\nimport * as React from \"react\";\nimport { ModalFrontstage } from \"../frontstage/ModalFrontstage.js\";\nimport { UiFramework } from \"../UiFramework.js\";\nimport { useActiveModalFrontstage } from \"../hooks/useActiveModalFrontstage.js\";\nimport { ConfigurableUiContext } from \"../configurableui/ConfigurableUiContent.js\";\n\n/** @internal */\nexport function ModalFrontstageComposer() {\n const { renderModalFrontstage } = React.useContext(ConfigurableUiContext);\n const info = useActiveModalFrontstage();\n const handleCloseModal = React.useCallback(\n () => UiFramework.frontstages.closeModalFrontstage(),\n []\n );\n\n if (!info) return null;\n return (\n <>\n {renderModalFrontstage ? (\n renderModalFrontstage({ info, isOpen: true })\n ) : (\n <ModalFrontstage\n isOpen={true}\n title={info.title}\n navigateBack={handleCloseModal}\n appBarRight={info.appBarRight}\n backButton={info.backButton}\n >\n {info.content}\n </ModalFrontstage>\n )}\n </>\n );\n}\n"]}
@@ -13,15 +13,21 @@
13
13
  pointer-events: none;
14
14
  visibility: hidden;
15
15
  overflow: hidden;
16
- background: transparent;
16
+ background: color-mix(
17
+ in srgb,
18
+ var(--iui-color-background-backdrop),
19
+ transparent 5%
20
+ );
17
21
  transition: background 0.25s ease, visibility 0s ease 0.275s;
18
22
 
19
- display: flex;
20
- flex-direction: column;
21
- align-items: stretch;
22
-
23
23
  @include uicore-z-index(modal-frontstage);
24
24
 
25
+ &:not(.uifw-no-header) {
26
+ display: flex;
27
+ flex-direction: column;
28
+ align-items: stretch;
29
+ }
30
+
25
31
  .uifw-modal-app-bar {
26
32
  transition: transform 0.125s;
27
33
  padding: 10px;
@@ -62,15 +68,3 @@
62
68
  }
63
69
  }
64
70
  }
65
-
66
- .uifw-modal-frontstage-overlay {
67
- position: absolute;
68
- left: 0px;
69
- width: 100%;
70
- top: 0px;
71
- height: 100%;
72
- opacity: 0.95;
73
- background: var(--iui-color-background-backdrop);
74
-
75
- @include uicore-z-index(modal-frontstage-overlay);
76
- }
@@ -13,15 +13,21 @@
13
13
  pointer-events: none;
14
14
  visibility: hidden;
15
15
  overflow: hidden;
16
- background: transparent;
16
+ background: color-mix(
17
+ in srgb,
18
+ var(--iui-color-background-backdrop),
19
+ transparent 5%
20
+ );
17
21
  transition: background 0.25s ease, visibility 0s ease 0.275s;
18
22
 
19
- display: flex;
20
- flex-direction: column;
21
- align-items: stretch;
22
-
23
23
  @include uicore-z-index(modal-frontstage);
24
24
 
25
+ &:not(.uifw-no-header) {
26
+ display: flex;
27
+ flex-direction: column;
28
+ align-items: stretch;
29
+ }
30
+
25
31
  .uifw-modal-app-bar {
26
32
  transition: transform 0.125s;
27
33
  padding: 10px;
@@ -62,15 +68,3 @@
62
68
  }
63
69
  }
64
70
  }
65
-
66
- .uifw-modal-frontstage-overlay {
67
- position: absolute;
68
- left: 0px;
69
- width: 100%;
70
- top: 0px;
71
- height: 100%;
72
- opacity: 0.95;
73
- background: var(--iui-color-background-backdrop);
74
-
75
- @include uicore-z-index(modal-frontstage-overlay);
76
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/appui-react",
3
- "version": "5.30.0",
3
+ "version": "5.31.0",
4
4
  "description": "A react component library for AppUI framework",
5
5
  "type": "module",
6
6
  "types": "./lib/appui-react.d.ts",
@@ -45,9 +45,9 @@
45
45
  "react-dom": "^18.0.0 || ^19.0.0",
46
46
  "react-redux": "^7.2.2 || ^8.0.0 || ^9.0.0",
47
47
  "redux": "^4.1.0 || ^5.0.0",
48
- "@itwin/components-react": "5.30.0",
49
- "@itwin/core-react": "5.30.0",
50
- "@itwin/imodel-components-react": "5.30.0"
48
+ "@itwin/components-react": "5.31.0",
49
+ "@itwin/core-react": "5.31.0",
50
+ "@itwin/imodel-components-react": "5.31.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@itwin/appui-abstract": "^5.8.1",
@@ -89,9 +89,9 @@
89
89
  "typescript": "~5.6.3",
90
90
  "upath": "^2.0.1",
91
91
  "vitest": "^3.2.4",
92
- "@itwin/components-react": "5.30.0",
93
- "@itwin/core-react": "5.30.0",
94
- "@itwin/imodel-components-react": "5.30.0"
92
+ "@itwin/components-react": "5.31.0",
93
+ "@itwin/imodel-components-react": "5.31.0",
94
+ "@itwin/core-react": "5.31.0"
95
95
  },
96
96
  "dependencies": {
97
97
  "@itwin/itwinui-icons-react": "^2.11.0",