@rio-cloud/rio-uikit 0.16.2 → 0.16.3-beta.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/AspectRatioPlaceholder.d.ts +5 -0
- package/ConfirmationDialog.d.ts +2 -0
- package/Dialog.d.ts +2 -0
- package/README.md +11 -1
- package/SaveDialog.d.ts +2 -0
- package/SimpleDialog.d.ts +2 -0
- package/SplitDialog.d.ts +2 -0
- package/components/dialog/Dialog.js +3 -1
- package/index.d.ts +2 -0
- package/lib/es/AspectRatioPlaceholder.d.ts +5 -0
- package/lib/es/ConfirmationDialog.d.ts +2 -0
- package/lib/es/Dialog.d.ts +2 -0
- package/lib/es/SaveDialog.d.ts +2 -0
- package/lib/es/SimpleDialog.d.ts +2 -0
- package/lib/es/SplitDialog.d.ts +2 -0
- package/lib/es/components/dialog/Dialog.js +3 -1
- package/lib/es/index.d.ts +2 -0
- package/lib/es/styles/components/ApplicationHeader.less +2 -0
- package/lib/es/styles/components/Dialog.less +34 -19
- package/lib/es/types.ts +2 -2
- package/lib/es/version.json +1 -1
- package/package.json +1 -1
- package/styles/components/ApplicationHeader.less +2 -0
- package/styles/components/Dialog.less +34 -19
- package/types.ts +2 -2
- package/version.json +1 -1
package/ConfirmationDialog.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare module '@rio-cloud/rio-uikit/ConfirmationDialog' {
|
|
|
7
7
|
static SIZE_LG = 'lg';
|
|
8
8
|
static SIZE_XL = 'xl';
|
|
9
9
|
static SIZE_FULL = 'full';
|
|
10
|
+
static SIZE_FULL_WIDTH = 'fullwidth';
|
|
11
|
+
static SIZE_FULL_HEIGHT = 'fullheight';
|
|
10
12
|
static SIZE_FULL_SCREEN = 'fullscreen';
|
|
11
13
|
}
|
|
12
14
|
}
|
package/Dialog.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ declare module '@rio-cloud/rio-uikit/Dialog' {
|
|
|
5
5
|
export default class Dialog extends React.Component<DialogProps> {
|
|
6
6
|
public static SIZE_FULL_SCREEN: 'fullscreen';
|
|
7
7
|
public static SIZE_FULL: 'full';
|
|
8
|
+
public static SIZE_FULL_WIDTH: 'fullwidth';
|
|
9
|
+
public static SIZE_FULL_HEIGHT: 'fullheight';
|
|
8
10
|
public static SIZE_XL: 'xl';
|
|
9
11
|
public static SIZE_LG: 'lg';
|
|
10
12
|
public static SIZE_MD: 'md';
|
package/README.md
CHANGED
|
@@ -17,6 +17,13 @@ When releasing a new version:
|
|
|
17
17
|
1. Create new `release/${VERSION}` branch and trigger pipeline with a commit
|
|
18
18
|
2. After the new uikit-demo is published, update `versionsList.json` in `master` branch.
|
|
19
19
|
|
|
20
|
+
Create a new development beta version:
|
|
21
|
+
|
|
22
|
+
1. Update the `package.json`. Example `0.16.3-beta.1`
|
|
23
|
+
2. Update the `version.json`. Example `0.16.3-beta.1`
|
|
24
|
+
3. run `npm i` or update `package-lock.json`. Example `0.16.3-beta.1`
|
|
25
|
+
4. Update the `uikit-demo/package.json`. Example `0.16.3`
|
|
26
|
+
|
|
20
27
|
## Development
|
|
21
28
|
|
|
22
29
|
To run the UIKIT and the UIKIT Demo locally for development, use:
|
|
@@ -69,14 +76,17 @@ We introduced a versions list containing all the versions for which a uikit-demo
|
|
|
69
76
|
The UIKIT needs to be published to NPM for the JavaScript components and the UIKIT CDN for the CSS files.
|
|
70
77
|
|
|
71
78
|
### Publish to NPM
|
|
79
|
+
|
|
72
80
|
Run `npm run build:npm` to compile the components via babel to the `package` folder. The UIKIT exports CommonJS and ESM files. Later ones are directly in the package root. CommonJS components are generated in `package/lib/es` due to backwards compatibility reasons as Services import those components from `lib/es`.
|
|
73
81
|
|
|
74
|
-
|
|
82
|
+
**Publish** the UIKIT **only from** the **package** folder. All required files like package.json, README and License files are copied there during the build.
|
|
75
83
|
|
|
76
84
|
### Publishing to UIKIT CDN
|
|
85
|
+
|
|
77
86
|
Run `npm run build` to build the production bundle and compile the styles to inspect locally. When comitting to the main development branch the build outcome from `dist` is published via our internal CICD pipeline.
|
|
78
87
|
|
|
79
88
|
### Beta Versions
|
|
89
|
+
|
|
80
90
|
Beta versions of the UIKIT ideally should be kept in synch in NPM and CDN. After a new beta has been released, increase the version number to avoid overwriting published stylings.
|
|
81
91
|
|
|
82
92
|
## License
|
package/SaveDialog.d.ts
CHANGED
package/SimpleDialog.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare module '@rio-cloud/rio-uikit/SimpleDialog' {
|
|
|
7
7
|
static SIZE_LG = 'lg';
|
|
8
8
|
static SIZE_XL = 'xl';
|
|
9
9
|
static SIZE_FULL = 'full';
|
|
10
|
+
static SIZE_FULL_WIDTH: 'fullwidth';
|
|
11
|
+
static SIZE_FULL_HEIGHT: 'fullheight';
|
|
10
12
|
static SIZE_FULL_SCREEN = 'fullscreen';
|
|
11
13
|
}
|
|
12
14
|
}
|
package/SplitDialog.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare module '@rio-cloud/rio-uikit/SplitDialog' {
|
|
|
7
7
|
static SIZE_LG = 'lg';
|
|
8
8
|
static SIZE_XL = 'xl';
|
|
9
9
|
static SIZE_FULL = 'full';
|
|
10
|
+
static SIZE_FULL_WIDTH: 'fullwidth';
|
|
11
|
+
static SIZE_FULL_HEIGHT: 'fullheight';
|
|
10
12
|
static SIZE_FULL_SCREEN = 'fullscreen';
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -84,7 +84,7 @@ var Dialog = function Dialog(props) {
|
|
|
84
84
|
dialogWrapperRef && dialogWrapperRef.current && dialogWrapperRef.current.focus();
|
|
85
85
|
};
|
|
86
86
|
var modalClasses = classNames('modal', 'show', className);
|
|
87
|
-
var modalDialogClasses = classNames(MODAL_DIALOG_CLASS, useOverflow && 'modal-overflow', bsSize === Dialog.SIZE_SM && 'modal-sm', bsSize === Dialog.SIZE_LG && 'modal-lg', bsSize === Dialog.SIZE_XL && 'modal-xl', bsSize === Dialog.SIZE_FULL && 'modal-full', bsSize === Dialog.SIZE_FULL_SCREEN && 'modal-fullscreen');
|
|
87
|
+
var modalDialogClasses = classNames(MODAL_DIALOG_CLASS, useOverflow && 'modal-overflow', bsSize === Dialog.SIZE_SM && 'modal-sm', bsSize === Dialog.SIZE_LG && 'modal-lg', bsSize === Dialog.SIZE_XL && 'modal-xl', bsSize === Dialog.SIZE_FULL && 'modal-full-width', bsSize === Dialog.SIZE_FULL_WIDTH && 'modal-full-width', bsSize === Dialog.SIZE_FULL_HEIGHT && 'modal-full-height', bsSize === Dialog.SIZE_FULL_SCREEN && 'modal-fullscreen');
|
|
88
88
|
var backdropClasses = classNames('modal-backdrop');
|
|
89
89
|
return /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(CSSTransition, {
|
|
90
90
|
"in": open,
|
|
@@ -121,6 +121,8 @@ Dialog.SIZE_MD = 'md'; // default
|
|
|
121
121
|
Dialog.SIZE_LG = 'lg';
|
|
122
122
|
Dialog.SIZE_XL = 'xl';
|
|
123
123
|
Dialog.SIZE_FULL = 'full';
|
|
124
|
+
Dialog.SIZE_FULL_WIDTH = 'fullwidth';
|
|
125
|
+
Dialog.SIZE_FULL_HEIGHT = 'fullheight';
|
|
124
126
|
Dialog.SIZE_FULL_SCREEN = 'fullscreen';
|
|
125
127
|
Dialog.defaultProps = {
|
|
126
128
|
show: false,
|
package/index.d.ts
CHANGED
|
@@ -158,6 +158,8 @@ declare module '@rio-cloud/rio-uikit' {
|
|
|
158
158
|
export class Dialog extends React.Component<DialogProps> {
|
|
159
159
|
public static SIZE_FULL_SCREEN: 'fullscreen';
|
|
160
160
|
public static SIZE_FULL: 'full';
|
|
161
|
+
public static SIZE_FULL_WIDTH = 'fullwidth';
|
|
162
|
+
public static SIZE_FULL_HEIGHT = 'fullheight';
|
|
161
163
|
public static SIZE_XL: 'xl';
|
|
162
164
|
public static SIZE_LG: 'lg';
|
|
163
165
|
public static SIZE_MD: 'md';
|
|
@@ -7,6 +7,8 @@ declare module '@rio-cloud/rio-uikit/lib/es/ConfirmationDialog' {
|
|
|
7
7
|
static SIZE_LG = 'lg';
|
|
8
8
|
static SIZE_XL = 'xl';
|
|
9
9
|
static SIZE_FULL = 'full';
|
|
10
|
+
static SIZE_FULL_WIDTH = 'fullwidth';
|
|
11
|
+
static SIZE_FULL_HEIGHT = 'fullheight';
|
|
10
12
|
static SIZE_FULL_SCREEN = 'fullscreen';
|
|
11
13
|
}
|
|
12
14
|
}
|
package/lib/es/Dialog.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ declare module '@rio-cloud/rio-uikit/lib/es/Dialog' {
|
|
|
5
5
|
export default class Dialog extends React.Component<DialogProps> {
|
|
6
6
|
public static SIZE_FULL_SCREEN: 'fullscreen';
|
|
7
7
|
public static SIZE_FULL: 'full';
|
|
8
|
+
public static SIZE_FULL_WIDTH: 'fullwidth';
|
|
9
|
+
public static SIZE_FULL_HEIGHT: 'fullheight';
|
|
8
10
|
public static SIZE_XL: 'xl';
|
|
9
11
|
public static SIZE_LG: 'lg';
|
|
10
12
|
public static SIZE_MD: 'md';
|
package/lib/es/SaveDialog.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare module '@rio-cloud/rio-uikit/lib/es/SaveDialog' {
|
|
|
7
7
|
static SIZE_LG = 'lg';
|
|
8
8
|
static SIZE_XL = 'xl';
|
|
9
9
|
static SIZE_FULL = 'full';
|
|
10
|
+
static SIZE_FULL_WIDTH: 'fullwidth';
|
|
11
|
+
static SIZE_FULL_HEIGHT: 'fullheight';
|
|
10
12
|
static SIZE_FULL_SCREEN = 'fullscreen';
|
|
11
13
|
}
|
|
12
14
|
}
|
package/lib/es/SimpleDialog.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare module '@rio-cloud/rio-uikit/lib/es/SimpleDialog' {
|
|
|
7
7
|
static SIZE_LG = 'lg';
|
|
8
8
|
static SIZE_XL = 'xl';
|
|
9
9
|
static SIZE_FULL = 'full';
|
|
10
|
+
static SIZE_FULL_WIDTH: 'fullwidth';
|
|
11
|
+
static SIZE_FULL_HEIGHT: 'fullheight';
|
|
10
12
|
static SIZE_FULL_SCREEN = 'fullscreen';
|
|
11
13
|
}
|
|
12
14
|
}
|
package/lib/es/SplitDialog.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare module '@rio-cloud/rio-uikit/lib/es/SplitDialog' {
|
|
|
7
7
|
static SIZE_LG = 'lg';
|
|
8
8
|
static SIZE_XL = 'xl';
|
|
9
9
|
static SIZE_FULL = 'full';
|
|
10
|
+
static SIZE_FULL_WIDTH: 'fullwidth';
|
|
11
|
+
static SIZE_FULL_HEIGHT: 'fullheight';
|
|
10
12
|
static SIZE_FULL_SCREEN = 'fullscreen';
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -94,7 +94,7 @@ var Dialog = function Dialog(props) {
|
|
|
94
94
|
dialogWrapperRef && dialogWrapperRef.current && dialogWrapperRef.current.focus();
|
|
95
95
|
};
|
|
96
96
|
var modalClasses = (0, _classnames["default"])('modal', 'show', className);
|
|
97
|
-
var modalDialogClasses = (0, _classnames["default"])(MODAL_DIALOG_CLASS, useOverflow && 'modal-overflow', bsSize === Dialog.SIZE_SM && 'modal-sm', bsSize === Dialog.SIZE_LG && 'modal-lg', bsSize === Dialog.SIZE_XL && 'modal-xl', bsSize === Dialog.SIZE_FULL && 'modal-full', bsSize === Dialog.SIZE_FULL_SCREEN && 'modal-fullscreen');
|
|
97
|
+
var modalDialogClasses = (0, _classnames["default"])(MODAL_DIALOG_CLASS, useOverflow && 'modal-overflow', bsSize === Dialog.SIZE_SM && 'modal-sm', bsSize === Dialog.SIZE_LG && 'modal-lg', bsSize === Dialog.SIZE_XL && 'modal-xl', bsSize === Dialog.SIZE_FULL && 'modal-full-width', bsSize === Dialog.SIZE_FULL_WIDTH && 'modal-full-width', bsSize === Dialog.SIZE_FULL_HEIGHT && 'modal-full-height', bsSize === Dialog.SIZE_FULL_SCREEN && 'modal-fullscreen');
|
|
98
98
|
var backdropClasses = (0, _classnames["default"])('modal-backdrop');
|
|
99
99
|
return /*#__PURE__*/_reactDom["default"].createPortal( /*#__PURE__*/_react["default"].createElement(_reactTransitionGroup.CSSTransition, {
|
|
100
100
|
"in": open,
|
|
@@ -131,6 +131,8 @@ Dialog.SIZE_MD = 'md'; // default
|
|
|
131
131
|
Dialog.SIZE_LG = 'lg';
|
|
132
132
|
Dialog.SIZE_XL = 'xl';
|
|
133
133
|
Dialog.SIZE_FULL = 'full';
|
|
134
|
+
Dialog.SIZE_FULL_WIDTH = 'fullwidth';
|
|
135
|
+
Dialog.SIZE_FULL_HEIGHT = 'fullheight';
|
|
134
136
|
Dialog.SIZE_FULL_SCREEN = 'fullscreen';
|
|
135
137
|
Dialog.defaultProps = {
|
|
136
138
|
show: false,
|
package/lib/es/index.d.ts
CHANGED
|
@@ -158,6 +158,8 @@ declare module '@rio-cloud/lib/es/rio-uikit' {
|
|
|
158
158
|
export class Dialog extends React.Component<DialogProps> {
|
|
159
159
|
public static SIZE_FULL_SCREEN: 'fullscreen';
|
|
160
160
|
public static SIZE_FULL: 'full';
|
|
161
|
+
public static SIZE_FULL_WIDTH = 'fullwidth';
|
|
162
|
+
public static SIZE_FULL_HEIGHT = 'fullheight';
|
|
161
163
|
public static SIZE_XL: 'xl';
|
|
162
164
|
public static SIZE_LG: 'lg';
|
|
163
165
|
public static SIZE_MD: 'md';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@modal-outer-margin: 30px;
|
|
2
2
|
@modal-inner-padding: 20px;
|
|
3
|
-
@modal-title-padding: 15px;
|
|
3
|
+
@modal-title-y-padding: 15px;
|
|
4
|
+
@modal-title-x-padding: 20px;
|
|
4
5
|
@modal-content-bg: var(--color-white);
|
|
5
6
|
@modal-content-border-color: var(--gray-light);
|
|
6
7
|
@modal-backdrop-bg: var(--always-color-black);
|
|
@@ -134,7 +135,6 @@ body {
|
|
|
134
135
|
border-bottom: 1px solid @modal-header-border-color;
|
|
135
136
|
display: flex;
|
|
136
137
|
justify-content: space-between;
|
|
137
|
-
padding: @modal-title-padding;
|
|
138
138
|
padding: 0;
|
|
139
139
|
position: relative;
|
|
140
140
|
z-index: 1;
|
|
@@ -146,7 +146,7 @@ body {
|
|
|
146
146
|
float: left;
|
|
147
147
|
font-weight: @font-light;
|
|
148
148
|
justify-content: center;
|
|
149
|
-
padding:
|
|
149
|
+
padding: @modal-title-y-padding @modal-title-x-padding;
|
|
150
150
|
width: calc(~'100% - 60px');
|
|
151
151
|
word-break: break-word;
|
|
152
152
|
|
|
@@ -251,16 +251,12 @@ body {
|
|
|
251
251
|
width: @modal-xl;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
&.modal-full {
|
|
255
|
-
width: calc(~'100vw - @{modal-outer-margin} * 2');
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
&.modal-fullscreen {
|
|
254
|
+
&.modal-fullscreen, &.modal-full, &.modal-full-width {
|
|
259
255
|
width: calc(~'100vw - @{modal-outer-margin} * 2');
|
|
260
256
|
}
|
|
261
257
|
}
|
|
262
258
|
|
|
263
|
-
&.modal-fullscreen {
|
|
259
|
+
&.modal-fullscreen, &.modal-full-height {
|
|
264
260
|
.modal-content {
|
|
265
261
|
height: calc(~'100vh - (@{modal-outer-margin} * 2)'); // --vh fallback
|
|
266
262
|
height: calc(~'var(--vh, 1vh) * 100 - (@{modal-outer-margin} * 2)');
|
|
@@ -275,6 +271,7 @@ body {
|
|
|
275
271
|
.modal-body {
|
|
276
272
|
flex: 1 1 0; // instead "auto" we 0 for safari
|
|
277
273
|
position: relative;
|
|
274
|
+
overflow-y: auto;
|
|
278
275
|
|
|
279
276
|
.iframe-wrapper {
|
|
280
277
|
overflow: hidden;
|
|
@@ -303,12 +300,6 @@ body {
|
|
|
303
300
|
.modal-body {
|
|
304
301
|
overflow-y: auto;
|
|
305
302
|
|
|
306
|
-
// &:after {
|
|
307
|
-
// content: '';
|
|
308
|
-
// display: block;
|
|
309
|
-
// height: 30px;
|
|
310
|
-
// }
|
|
311
|
-
|
|
312
303
|
&.no-overflow-gradient {
|
|
313
304
|
+ .modal-footer:before {
|
|
314
305
|
display: none;
|
|
@@ -423,7 +414,8 @@ body {
|
|
|
423
414
|
|
|
424
415
|
.modal-lg &,
|
|
425
416
|
.modal-xl &,
|
|
426
|
-
.modal-full
|
|
417
|
+
.modal-full &,
|
|
418
|
+
.modal-full-width & {
|
|
427
419
|
@media (min-width: @splitWrapperBreakpoint) {
|
|
428
420
|
width: 20%;
|
|
429
421
|
}
|
|
@@ -456,7 +448,8 @@ body {
|
|
|
456
448
|
|
|
457
449
|
.modal-lg &,
|
|
458
450
|
.modal-xl &,
|
|
459
|
-
.modal-full
|
|
451
|
+
.modal-full &,
|
|
452
|
+
.modal-full-width & {
|
|
460
453
|
@media (min-width: @splitWrapperBreakpoint) {
|
|
461
454
|
max-width: 80%;
|
|
462
455
|
}
|
|
@@ -464,7 +457,7 @@ body {
|
|
|
464
457
|
}
|
|
465
458
|
}
|
|
466
459
|
|
|
467
|
-
|
|
460
|
+
// Animation classes for dialogs triggered by "react-transition-group" component
|
|
468
461
|
.modal-enter {
|
|
469
462
|
.modal-content {
|
|
470
463
|
display: block;
|
|
@@ -501,4 +494,26 @@ body {
|
|
|
501
494
|
.modal-backdrop {
|
|
502
495
|
opacity: 0;
|
|
503
496
|
}
|
|
504
|
-
}
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
// modal-body atomic vh classes for iframes with unknown height
|
|
500
|
+
// .modal-body {
|
|
501
|
+
// &.height-100vh {
|
|
502
|
+
// height: calc(~"var(--vh, 1vh) * 100 - 190px") !important;
|
|
503
|
+
|
|
504
|
+
// @media (max-width: @modal-sm) {
|
|
505
|
+
// height: calc(~"var(--vh, 1vh) * 100 - 170px") !important;
|
|
506
|
+
// }
|
|
507
|
+
// }
|
|
508
|
+
|
|
509
|
+
// // no modal-footer version
|
|
510
|
+
// &:last-child {
|
|
511
|
+
// &.height-100vh {
|
|
512
|
+
// height: calc(~"var(--vh, 1vh) * 100 - 120px") !important;
|
|
513
|
+
|
|
514
|
+
// @media (max-width: @modal-sm) {
|
|
515
|
+
// height: calc(~"var(--vh, 1vh) * 100 - 90px") !important;
|
|
516
|
+
// }
|
|
517
|
+
// }
|
|
518
|
+
// }
|
|
519
|
+
// }
|
package/lib/es/types.ts
CHANGED
|
@@ -277,7 +277,7 @@ export interface BarChartProps {
|
|
|
277
277
|
|
|
278
278
|
export type bsStyle = 'default' | 'primary' | 'info' | 'warning' | 'danger' | 'success' | 'link';
|
|
279
279
|
|
|
280
|
-
export type bsSizeDialog = 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'fullscreen';
|
|
280
|
+
export type bsSizeDialog = 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'fullwidth' | 'fullheight' | 'fullscreen';
|
|
281
281
|
|
|
282
282
|
export type bsSize = 'xs' | 'sm' | 'lg';
|
|
283
283
|
|
|
@@ -1551,7 +1551,7 @@ export interface SelectProps {
|
|
|
1551
1551
|
useClear?: boolean;
|
|
1552
1552
|
noItemMessage?: string | React.ReactNode;
|
|
1553
1553
|
showSelectedItemIcon?: boolean;
|
|
1554
|
-
|
|
1554
|
+
showUnselectedItemIcons?: boolean;
|
|
1555
1555
|
value?: string[] | undefined;
|
|
1556
1556
|
className?: string;
|
|
1557
1557
|
btnClassName?: string;
|
package/lib/es/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@modal-outer-margin: 30px;
|
|
2
2
|
@modal-inner-padding: 20px;
|
|
3
|
-
@modal-title-padding: 15px;
|
|
3
|
+
@modal-title-y-padding: 15px;
|
|
4
|
+
@modal-title-x-padding: 20px;
|
|
4
5
|
@modal-content-bg: var(--color-white);
|
|
5
6
|
@modal-content-border-color: var(--gray-light);
|
|
6
7
|
@modal-backdrop-bg: var(--always-color-black);
|
|
@@ -134,7 +135,6 @@ body {
|
|
|
134
135
|
border-bottom: 1px solid @modal-header-border-color;
|
|
135
136
|
display: flex;
|
|
136
137
|
justify-content: space-between;
|
|
137
|
-
padding: @modal-title-padding;
|
|
138
138
|
padding: 0;
|
|
139
139
|
position: relative;
|
|
140
140
|
z-index: 1;
|
|
@@ -146,7 +146,7 @@ body {
|
|
|
146
146
|
float: left;
|
|
147
147
|
font-weight: @font-light;
|
|
148
148
|
justify-content: center;
|
|
149
|
-
padding:
|
|
149
|
+
padding: @modal-title-y-padding @modal-title-x-padding;
|
|
150
150
|
width: calc(~'100% - 60px');
|
|
151
151
|
word-break: break-word;
|
|
152
152
|
|
|
@@ -251,16 +251,12 @@ body {
|
|
|
251
251
|
width: @modal-xl;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
&.modal-full {
|
|
255
|
-
width: calc(~'100vw - @{modal-outer-margin} * 2');
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
&.modal-fullscreen {
|
|
254
|
+
&.modal-fullscreen, &.modal-full, &.modal-full-width {
|
|
259
255
|
width: calc(~'100vw - @{modal-outer-margin} * 2');
|
|
260
256
|
}
|
|
261
257
|
}
|
|
262
258
|
|
|
263
|
-
&.modal-fullscreen {
|
|
259
|
+
&.modal-fullscreen, &.modal-full-height {
|
|
264
260
|
.modal-content {
|
|
265
261
|
height: calc(~'100vh - (@{modal-outer-margin} * 2)'); // --vh fallback
|
|
266
262
|
height: calc(~'var(--vh, 1vh) * 100 - (@{modal-outer-margin} * 2)');
|
|
@@ -275,6 +271,7 @@ body {
|
|
|
275
271
|
.modal-body {
|
|
276
272
|
flex: 1 1 0; // instead "auto" we 0 for safari
|
|
277
273
|
position: relative;
|
|
274
|
+
overflow-y: auto;
|
|
278
275
|
|
|
279
276
|
.iframe-wrapper {
|
|
280
277
|
overflow: hidden;
|
|
@@ -303,12 +300,6 @@ body {
|
|
|
303
300
|
.modal-body {
|
|
304
301
|
overflow-y: auto;
|
|
305
302
|
|
|
306
|
-
// &:after {
|
|
307
|
-
// content: '';
|
|
308
|
-
// display: block;
|
|
309
|
-
// height: 30px;
|
|
310
|
-
// }
|
|
311
|
-
|
|
312
303
|
&.no-overflow-gradient {
|
|
313
304
|
+ .modal-footer:before {
|
|
314
305
|
display: none;
|
|
@@ -423,7 +414,8 @@ body {
|
|
|
423
414
|
|
|
424
415
|
.modal-lg &,
|
|
425
416
|
.modal-xl &,
|
|
426
|
-
.modal-full
|
|
417
|
+
.modal-full &,
|
|
418
|
+
.modal-full-width & {
|
|
427
419
|
@media (min-width: @splitWrapperBreakpoint) {
|
|
428
420
|
width: 20%;
|
|
429
421
|
}
|
|
@@ -456,7 +448,8 @@ body {
|
|
|
456
448
|
|
|
457
449
|
.modal-lg &,
|
|
458
450
|
.modal-xl &,
|
|
459
|
-
.modal-full
|
|
451
|
+
.modal-full &,
|
|
452
|
+
.modal-full-width & {
|
|
460
453
|
@media (min-width: @splitWrapperBreakpoint) {
|
|
461
454
|
max-width: 80%;
|
|
462
455
|
}
|
|
@@ -464,7 +457,7 @@ body {
|
|
|
464
457
|
}
|
|
465
458
|
}
|
|
466
459
|
|
|
467
|
-
|
|
460
|
+
// Animation classes for dialogs triggered by "react-transition-group" component
|
|
468
461
|
.modal-enter {
|
|
469
462
|
.modal-content {
|
|
470
463
|
display: block;
|
|
@@ -501,4 +494,26 @@ body {
|
|
|
501
494
|
.modal-backdrop {
|
|
502
495
|
opacity: 0;
|
|
503
496
|
}
|
|
504
|
-
}
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
// modal-body atomic vh classes for iframes with unknown height
|
|
500
|
+
// .modal-body {
|
|
501
|
+
// &.height-100vh {
|
|
502
|
+
// height: calc(~"var(--vh, 1vh) * 100 - 190px") !important;
|
|
503
|
+
|
|
504
|
+
// @media (max-width: @modal-sm) {
|
|
505
|
+
// height: calc(~"var(--vh, 1vh) * 100 - 170px") !important;
|
|
506
|
+
// }
|
|
507
|
+
// }
|
|
508
|
+
|
|
509
|
+
// // no modal-footer version
|
|
510
|
+
// &:last-child {
|
|
511
|
+
// &.height-100vh {
|
|
512
|
+
// height: calc(~"var(--vh, 1vh) * 100 - 120px") !important;
|
|
513
|
+
|
|
514
|
+
// @media (max-width: @modal-sm) {
|
|
515
|
+
// height: calc(~"var(--vh, 1vh) * 100 - 90px") !important;
|
|
516
|
+
// }
|
|
517
|
+
// }
|
|
518
|
+
// }
|
|
519
|
+
// }
|
package/types.ts
CHANGED
|
@@ -277,7 +277,7 @@ export interface BarChartProps {
|
|
|
277
277
|
|
|
278
278
|
export type bsStyle = 'default' | 'primary' | 'info' | 'warning' | 'danger' | 'success' | 'link';
|
|
279
279
|
|
|
280
|
-
export type bsSizeDialog = 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'fullscreen';
|
|
280
|
+
export type bsSizeDialog = 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'fullwidth' | 'fullheight' | 'fullscreen';
|
|
281
281
|
|
|
282
282
|
export type bsSize = 'xs' | 'sm' | 'lg';
|
|
283
283
|
|
|
@@ -1551,7 +1551,7 @@ export interface SelectProps {
|
|
|
1551
1551
|
useClear?: boolean;
|
|
1552
1552
|
noItemMessage?: string | React.ReactNode;
|
|
1553
1553
|
showSelectedItemIcon?: boolean;
|
|
1554
|
-
|
|
1554
|
+
showUnselectedItemIcons?: boolean;
|
|
1555
1555
|
value?: string[] | undefined;
|
|
1556
1556
|
className?: string;
|
|
1557
1557
|
btnClassName?: string;
|
package/version.json
CHANGED