@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.
- package/CHANGELOG.md +25 -0
- package/lib/appui-react/accudraw/AccuDrawStoreProvider.d.ts +7 -0
- package/lib/appui-react/accudraw/AccuDrawStoreProvider.d.ts.map +1 -0
- package/lib/appui-react/accudraw/AccuDrawStoreProvider.js +26 -0
- package/lib/appui-react/accudraw/AccuDrawStoreProvider.js.map +1 -0
- package/lib/appui-react/accudraw/FrameworkAccuDraw.d.ts +1 -1
- package/lib/appui-react/accudraw/FrameworkAccuDraw.d.ts.map +1 -1
- package/lib/appui-react/accudraw/FrameworkAccuDraw.js +1 -4
- package/lib/appui-react/accudraw/FrameworkAccuDraw.js.map +1 -1
- package/lib/appui-react/configurableui/ConfigurableUiContent.d.ts +12 -0
- package/lib/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
- package/lib/appui-react/configurableui/ConfigurableUiContent.js +3 -1
- package/lib/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
- package/lib/appui-react/frontstage/ModalFrontstage.d.ts +27 -15
- package/lib/appui-react/frontstage/ModalFrontstage.d.ts.map +1 -1
- package/lib/appui-react/frontstage/ModalFrontstage.js +16 -20
- package/lib/appui-react/frontstage/ModalFrontstage.js.map +1 -1
- package/lib/appui-react/frontstage/ModalFrontstage.scss +11 -17
- package/lib/appui-react/hooks/useActiveModalFrontstage.d.ts +8 -0
- package/lib/appui-react/hooks/useActiveModalFrontstage.d.ts.map +1 -0
- package/lib/appui-react/hooks/useActiveModalFrontstage.js +23 -0
- package/lib/appui-react/hooks/useActiveModalFrontstage.js.map +1 -0
- package/lib/appui-react/hooks/useListeners.d.ts +8 -0
- package/lib/appui-react/hooks/useListeners.d.ts.map +1 -0
- package/lib/appui-react/hooks/useListeners.js +25 -0
- package/lib/appui-react/hooks/useListeners.js.map +1 -0
- package/lib/appui-react/hooks/useViewports.d.ts +9 -0
- package/lib/appui-react/hooks/useViewports.d.ts.map +1 -0
- package/lib/appui-react/hooks/useViewports.js +35 -0
- package/lib/appui-react/hooks/useViewports.js.map +1 -0
- package/lib/appui-react/layout/StandardLayout.d.ts +1 -2
- package/lib/appui-react/layout/StandardLayout.d.ts.map +1 -1
- package/lib/appui-react/layout/StandardLayout.js +9 -9
- package/lib/appui-react/layout/StandardLayout.js.map +1 -1
- package/lib/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
- package/lib/appui-react/widget-panels/Frontstage.js +9 -4
- package/lib/appui-react/widget-panels/Frontstage.js.map +1 -1
- package/lib/appui-react/widget-panels/ModalFrontstageComposer.d.ts +1 -6
- package/lib/appui-react/widget-panels/ModalFrontstageComposer.d.ts.map +1 -1
- package/lib/appui-react/widget-panels/ModalFrontstageComposer.js +7 -16
- package/lib/appui-react/widget-panels/ModalFrontstageComposer.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/ModalFrontstage.scss +11 -17
- package/lib/esm/appui-react/frontstage/ModalFrontstage.scss +11 -17
- 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;
|
|
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:
|
|
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:
|
|
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.
|
|
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.
|
|
49
|
-
"@itwin/core-react": "5.
|
|
50
|
-
"@itwin/imodel-components-react": "5.
|
|
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.
|
|
93
|
-
"@itwin/
|
|
94
|
-
"@itwin/
|
|
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",
|