@patternfly/react-core 4.175.3 → 4.175.4
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 +11 -0
- package/dist/esm/components/FileUpload/FileUpload.d.ts +3 -3
- package/dist/esm/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/esm/components/FileUpload/FileUpload.js +5 -2
- package/dist/esm/components/FileUpload/FileUpload.js.map +1 -1
- package/dist/js/components/FileUpload/FileUpload.d.ts +3 -3
- package/dist/js/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/js/components/FileUpload/FileUpload.js +5 -2
- package/dist/js/components/FileUpload/FileUpload.js.map +1 -1
- package/dist/umd/react-core.css +179 -179
- package/dist/umd/react-core.js +1300 -1538
- package/dist/umd/react-core.min.js +4 -3
- package/package.json +6 -6
- package/src/components/FileUpload/FileUpload.tsx +18 -14
- package/src/components/FileUpload/__tests__/__snapshots__/FileUpload.test.tsx.snap +7 -3
- package/src/components/FileUpload/examples/FileUpload.md +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 4.175.4 (2021-11-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **FileUpload:** Downgrade react-dropzone back to 9.0.0 to avoid a breaking type change, fix behavior regressions ([#6610](https://github.com/patternfly/patternfly-react/issues/6610)) ([574bf4f](https://github.com/patternfly/patternfly-react/commit/574bf4ff3ccf7f67ce750bc48067eaf826e99990))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 4.175.3 (2021-11-15)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { DropzoneProps
|
|
2
|
+
import { DropzoneProps } from 'react-dropzone';
|
|
3
3
|
import { FileUploadFieldProps } from './FileUploadField';
|
|
4
4
|
export interface FileUploadProps extends Omit<FileUploadFieldProps, 'children' | 'onBrowseButtonClick' | 'onClearButtonClick' | 'isDragActive' | 'containerRef'> {
|
|
5
5
|
/** Unique id for the TextArea, also used to generate ids for accessible labels. */
|
|
@@ -13,9 +13,9 @@ export interface FileUploadProps extends Omit<FileUploadFieldProps, 'children' |
|
|
|
13
13
|
/** Value to be shown in the read-only filename field. */
|
|
14
14
|
filename?: string;
|
|
15
15
|
/** *(deprecated)* A callback for when the file contents change. Please instead use onFileInputChange, onTextChange, onDataChange, onClearClick individually. */
|
|
16
|
-
onChange?: (value: string | File, filename: string, event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.DragEvent<HTMLElement> | React.ChangeEvent<HTMLElement>
|
|
16
|
+
onChange?: (value: string | File, filename: string, event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.DragEvent<HTMLElement> | React.ChangeEvent<HTMLElement>) => void;
|
|
17
17
|
/** Change event emitted from the hidden \<input type="file" \> field associated with the component */
|
|
18
|
-
onFileInputChange?: (event: React.ChangeEvent<HTMLInputElement> |
|
|
18
|
+
onFileInputChange?: (event: React.ChangeEvent<HTMLInputElement> | React.DragEvent<HTMLElement>, file: File) => void;
|
|
19
19
|
/** Callback for clicking on the FileUploadField text area. By default, prevents a click in the text area from opening file dialog. */
|
|
20
20
|
onClick?: (event: React.MouseEvent) => void;
|
|
21
21
|
/** Additional classes added to the FileUpload container element. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../../../src/components/FileUpload/FileUpload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAiB,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../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IAAI,CAAC;CACvC;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAgH/D,CAAC"}
|
|
@@ -49,7 +49,7 @@ export const FileUpload = (_a) => {
|
|
|
49
49
|
onClearClick === null || onClearClick === void 0 ? void 0 : onClearClick(event);
|
|
50
50
|
setFileValue(null);
|
|
51
51
|
};
|
|
52
|
-
return (React.createElement(Dropzone, Object.assign({ multiple: false }, dropzoneProps, { onDropAccepted: onDropAccepted, onDropRejected: onDropRejected
|
|
52
|
+
return (React.createElement(Dropzone, Object.assign({ multiple: false }, dropzoneProps, { onDropAccepted: onDropAccepted, onDropRejected: onDropRejected }), ({ getRootProps, getInputProps, isDragActive, open }) => {
|
|
53
53
|
const oldInputProps = getInputProps();
|
|
54
54
|
const inputProps = Object.assign(Object.assign({}, oldInputProps), { onChange: (e) => __awaiter(void 0, void 0, void 0, function* () {
|
|
55
55
|
var _a;
|
|
@@ -60,7 +60,10 @@ export const FileUpload = (_a) => {
|
|
|
60
60
|
}
|
|
61
61
|
}) });
|
|
62
62
|
return (React.createElement(FileUploadField, Object.assign({}, getRootProps(Object.assign(Object.assign({}, props), { refKey: 'containerRef', onClick: event => event.preventDefault() })), { tabIndex: null, id: id, type: type, filename: filename, value: value, onChange: onChange, isDragActive: isDragActive, onBrowseButtonClick: open, onClearButtonClick: onClearButtonClick, onTextAreaClick: onClick, onTextChange: onTextChange }),
|
|
63
|
-
React.createElement("input", Object.assign({}, inputProps, { ref:
|
|
63
|
+
React.createElement("input", Object.assign({}, inputProps, { ref: input => {
|
|
64
|
+
fileInputRef.current = input;
|
|
65
|
+
inputProps.ref(input);
|
|
66
|
+
} })),
|
|
64
67
|
children));
|
|
65
68
|
}));
|
|
66
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUpload.js","sourceRoot":"","sources":["../../../../src/components/FileUpload/FileUpload.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,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BACV,YAAY,iCACX,KAAK,KACR,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,EAAE,IACxC,IACF,QAAQ,EAAE,IAAI,EACd,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,mBAAmB,EAAE,IAAI,EACzB,kBAAkB,EAAE,kBAAkB,EACtC,eAAe,EAAE,OAAO,EACxB,YAAY,EAAE,YAAY;YAE1B,+CAEM,UAAU,IACd,GAAG,EAAE,KAAK,CAAC,EAAE;oBACX,YAAY,CAAC,OAAO,GAAG,KAAK,CAAC;oBAC5B,UAAwC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;gBACvD,CAAC,IACD;YACD,QAAQ,CACO,CACnB,CAAC;IACJ,CAAC,CACQ,CACZ,CAAC;AACJ,CAAC,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { DropzoneProps
|
|
2
|
+
import { DropzoneProps } from 'react-dropzone';
|
|
3
3
|
import { FileUploadFieldProps } from './FileUploadField';
|
|
4
4
|
export interface FileUploadProps extends Omit<FileUploadFieldProps, 'children' | 'onBrowseButtonClick' | 'onClearButtonClick' | 'isDragActive' | 'containerRef'> {
|
|
5
5
|
/** Unique id for the TextArea, also used to generate ids for accessible labels. */
|
|
@@ -13,9 +13,9 @@ export interface FileUploadProps extends Omit<FileUploadFieldProps, 'children' |
|
|
|
13
13
|
/** Value to be shown in the read-only filename field. */
|
|
14
14
|
filename?: string;
|
|
15
15
|
/** *(deprecated)* A callback for when the file contents change. Please instead use onFileInputChange, onTextChange, onDataChange, onClearClick individually. */
|
|
16
|
-
onChange?: (value: string | File, filename: string, event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.DragEvent<HTMLElement> | React.ChangeEvent<HTMLElement>
|
|
16
|
+
onChange?: (value: string | File, filename: string, event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.DragEvent<HTMLElement> | React.ChangeEvent<HTMLElement>) => void;
|
|
17
17
|
/** Change event emitted from the hidden \<input type="file" \> field associated with the component */
|
|
18
|
-
onFileInputChange?: (event: React.ChangeEvent<HTMLInputElement> |
|
|
18
|
+
onFileInputChange?: (event: React.ChangeEvent<HTMLInputElement> | React.DragEvent<HTMLElement>, file: File) => void;
|
|
19
19
|
/** Callback for clicking on the FileUploadField text area. By default, prevents a click in the text area from opening file dialog. */
|
|
20
20
|
onClick?: (event: React.MouseEvent) => void;
|
|
21
21
|
/** Additional classes added to the FileUpload container element. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../../../src/components/FileUpload/FileUpload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAiB,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../../../src/components/FileUpload/FileUpload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAiB,EAAE,aAAa,EAA4C,MAAM,gBAAgB,CAAC;AACnG,OAAO,EAAmB,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAQ1E,MAAM,WAAW,eACf,SAAQ,IAAI,CACV,oBAAoB,EACpB,UAAU,GAAG,qBAAqB,GAAG,oBAAoB,GAAG,cAAc,GAAG,cAAc,CAC5F;IACD,mFAAmF;IACnF,EAAE,EAAE,MAAM,CAAC;IACX;yEACqE;IACrE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;sDACkD;IAClD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,yDAAyD;IACzD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ACzB;uEACmE;IACnE,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,qFAAqF;IACrF,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAI3B,yDAAyD;IACzD,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,IAAI,KAAK,IAAI,CAAC;IAC3C,2DAA2D;IAC3D,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,IAAI,KAAK,IAAI,CAAC;IAC5C,mDAAmD;IACnD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,KAAK,IAAI,CAAC;IAC/D,wDAAwD;IACxD,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,+BAA+B;IAC/B,YAAY,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC1D,6BAA6B;IAC7B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,sGAAsG;IACtG,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAgH/D,CAAC"}
|
|
@@ -52,7 +52,7 @@ const FileUpload = (_a) => {
|
|
|
52
52
|
onClearClick === null || onClearClick === void 0 ? void 0 : onClearClick(event);
|
|
53
53
|
setFileValue(null);
|
|
54
54
|
};
|
|
55
|
-
return (React.createElement(react_dropzone_1.default, Object.assign({ multiple: false }, dropzoneProps, { onDropAccepted: onDropAccepted, onDropRejected: onDropRejected
|
|
55
|
+
return (React.createElement(react_dropzone_1.default, Object.assign({ multiple: false }, dropzoneProps, { onDropAccepted: onDropAccepted, onDropRejected: onDropRejected }), ({ getRootProps, getInputProps, isDragActive, open }) => {
|
|
56
56
|
const oldInputProps = getInputProps();
|
|
57
57
|
const inputProps = Object.assign(Object.assign({}, oldInputProps), { onChange: (e) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
58
58
|
var _a;
|
|
@@ -63,7 +63,10 @@ const FileUpload = (_a) => {
|
|
|
63
63
|
}
|
|
64
64
|
}) });
|
|
65
65
|
return (React.createElement(FileUploadField_1.FileUploadField, Object.assign({}, getRootProps(Object.assign(Object.assign({}, props), { refKey: 'containerRef', onClick: event => event.preventDefault() })), { tabIndex: null, id: id, type: type, filename: filename, value: value, onChange: onChange, isDragActive: isDragActive, onBrowseButtonClick: open, onClearButtonClick: onClearButtonClick, onTextAreaClick: onClick, onTextChange: onTextChange }),
|
|
66
|
-
React.createElement("input", Object.assign({}, inputProps, { ref:
|
|
66
|
+
React.createElement("input", Object.assign({}, inputProps, { ref: input => {
|
|
67
|
+
fileInputRef.current = input;
|
|
68
|
+
inputProps.ref(input);
|
|
69
|
+
} })),
|
|
67
70
|
children));
|
|
68
71
|
}));
|
|
69
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUpload.js","sourceRoot":"","sources":["../../../../src/components/FileUpload/FileUpload.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"FileUpload.js","sourceRoot":"","sources":["../../../../src/components/FileUpload/FileUpload.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,4EAAmG;AACnG,uDAA0E;AAC1E,uDAAmE;AACnE,iDAA0C;AAuFnC,MAAM,UAAU,GAA6C,CAAC,EAiBnD,EAAE,EAAE;QAjB+C,EACnE,EAAE,EACF,IAAI,EACJ,KAAK,GAAG,IAAI,KAAK,0BAAc,CAAC,IAAI,IAAI,IAAI,KAAK,0BAAc,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EACnF,QAAQ,GAAG,EAAE,EACb,QAAQ,GAAG,IAAI,EACf,QAAQ,GAAG,GAAG,EAAE,GAAE,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U,CAAC,WAAW,GAAG,YAAY,CAAC"}
|
package/dist/umd/react-core.css
CHANGED
|
@@ -14642,6 +14642,185 @@ ul.pf-c-list {
|
|
|
14642
14642
|
--pf-c-pagination__total-items--Visibility: var(--pf-c-pagination--m-display-full__total-items--Visibility);
|
|
14643
14643
|
}
|
|
14644
14644
|
}
|
|
14645
|
+
.pf-c-progress {
|
|
14646
|
+
--pf-c-progress--GridGap: var(--pf-global--spacer--md);
|
|
14647
|
+
--pf-c-progress__bar--before--BackgroundColor: var(--pf-global--primary-color--100);
|
|
14648
|
+
--pf-c-progress__bar--Height: var(--pf-global--spacer--md);
|
|
14649
|
+
--pf-c-progress__bar--BackgroundColor: var(--pf-global--BackgroundColor--light-100);
|
|
14650
|
+
--pf-c-progress__measure--m-static-width--MinWidth: 4.5ch;
|
|
14651
|
+
--pf-c-progress__status-icon--Color: var(--pf-global--Color--100);
|
|
14652
|
+
--pf-c-progress__status-icon--MarginLeft: var(--pf-global--spacer--sm);
|
|
14653
|
+
--pf-c-progress__bar--before--Opacity: .2;
|
|
14654
|
+
--pf-c-progress__indicator--Height: var(--pf-c-progress__bar--Height);
|
|
14655
|
+
--pf-c-progress__indicator--BackgroundColor: var(--pf-c-progress__bar--before--BackgroundColor);
|
|
14656
|
+
--pf-c-progress--m-success__bar--BackgroundColor: var(--pf-global--success-color--100);
|
|
14657
|
+
--pf-c-progress--m-warning__bar--BackgroundColor: var(--pf-global--warning-color--100);
|
|
14658
|
+
--pf-c-progress--m-danger__bar--BackgroundColor: var(--pf-global--danger-color--100);
|
|
14659
|
+
--pf-c-progress--m-success__status-icon--Color: var(--pf-global--success-color--100);
|
|
14660
|
+
--pf-c-progress--m-warning__status-icon--Color: var(--pf-global--warning-color--100);
|
|
14661
|
+
--pf-c-progress--m-danger__status-icon--Color: var(--pf-global--danger-color--100);
|
|
14662
|
+
--pf-c-progress--m-inside__indicator--MinWidth: var(--pf-global--spacer--xl);
|
|
14663
|
+
--pf-c-progress--m-inside__measure--Color: var(--pf-global--Color--light-100);
|
|
14664
|
+
--pf-c-progress--m-success--m-inside__measure--Color: var(--pf-global--Color--light-100);
|
|
14665
|
+
--pf-c-progress--m-warning--m-inside__measure--Color: var(--pf-global--Color--dark-100);
|
|
14666
|
+
--pf-c-progress--m-inside__measure--FontSize: var(--pf-global--FontSize--sm);
|
|
14667
|
+
--pf-c-progress--m-outside__measure--FontSize: var(--pf-global--FontSize--sm);
|
|
14668
|
+
--pf-c-progress--m-sm__bar--Height: var(--pf-global--spacer--sm);
|
|
14669
|
+
--pf-c-progress--m-sm__description--FontSize: var(--pf-global--FontSize--sm);
|
|
14670
|
+
--pf-c-progress--m-sm__measure--FontSize: var(--pf-global--FontSize--sm);
|
|
14671
|
+
--pf-c-progress--m-lg__bar--Height: var(--pf-global--spacer--lg);
|
|
14672
|
+
display: grid;
|
|
14673
|
+
align-items: end;
|
|
14674
|
+
grid-gap: var(--pf-c-progress--GridGap);
|
|
14675
|
+
grid-template-columns: auto auto;
|
|
14676
|
+
grid-template-rows: 1fr auto;
|
|
14677
|
+
}
|
|
14678
|
+
|
|
14679
|
+
.pf-c-progress.pf-m-sm {
|
|
14680
|
+
--pf-c-progress__bar--Height: var(--pf-c-progress--m-sm__bar--Height);
|
|
14681
|
+
}
|
|
14682
|
+
|
|
14683
|
+
.pf-c-progress.pf-m-sm .pf-c-progress__description {
|
|
14684
|
+
font-size: var(--pf-c-progress--m-sm__description--FontSize);
|
|
14685
|
+
}
|
|
14686
|
+
|
|
14687
|
+
.pf-c-progress.pf-m-sm .pf-c-progress__measure {
|
|
14688
|
+
font-size: var(--pf-c-progress--m-sm__measure--FontSize);
|
|
14689
|
+
}
|
|
14690
|
+
|
|
14691
|
+
.pf-c-progress.pf-m-lg {
|
|
14692
|
+
--pf-c-progress__bar--Height: var(--pf-c-progress--m-lg__bar--Height);
|
|
14693
|
+
}
|
|
14694
|
+
|
|
14695
|
+
.pf-c-progress.pf-m-inside .pf-c-progress__indicator {
|
|
14696
|
+
display: flex;
|
|
14697
|
+
align-items: center;
|
|
14698
|
+
justify-content: center;
|
|
14699
|
+
min-width: var(--pf-c-progress--m-inside__indicator--MinWidth);
|
|
14700
|
+
}
|
|
14701
|
+
|
|
14702
|
+
.pf-c-progress.pf-m-inside .pf-c-progress__measure {
|
|
14703
|
+
font-size: var(--pf-c-progress--m-inside__measure--FontSize);
|
|
14704
|
+
color: var(--pf-c-progress--m-inside__measure--Color);
|
|
14705
|
+
text-align: center;
|
|
14706
|
+
}
|
|
14707
|
+
|
|
14708
|
+
.pf-c-progress.pf-m-outside .pf-c-progress__description {
|
|
14709
|
+
grid-column: 1/3;
|
|
14710
|
+
}
|
|
14711
|
+
|
|
14712
|
+
.pf-c-progress.pf-m-outside .pf-c-progress__status {
|
|
14713
|
+
grid-column: 2/3;
|
|
14714
|
+
grid-row: 2/3;
|
|
14715
|
+
align-self: center;
|
|
14716
|
+
}
|
|
14717
|
+
|
|
14718
|
+
.pf-c-progress.pf-m-outside .pf-c-progress__measure {
|
|
14719
|
+
display: inline-block;
|
|
14720
|
+
font-size: var(--pf-c-progress--m-outside__measure--FontSize);
|
|
14721
|
+
}
|
|
14722
|
+
|
|
14723
|
+
.pf-c-progress.pf-m-outside .pf-c-progress__measure.pf-m-static-width {
|
|
14724
|
+
min-width: var(--pf-c-progress__measure--m-static-width--MinWidth);
|
|
14725
|
+
text-align: left;
|
|
14726
|
+
}
|
|
14727
|
+
|
|
14728
|
+
.pf-c-progress.pf-m-outside .pf-c-progress__bar,
|
|
14729
|
+
.pf-c-progress.pf-m-outside .pf-c-progress__indicator {
|
|
14730
|
+
grid-column: 1/2;
|
|
14731
|
+
}
|
|
14732
|
+
|
|
14733
|
+
.pf-c-progress.pf-m-singleline {
|
|
14734
|
+
grid-template-rows: 1fr;
|
|
14735
|
+
}
|
|
14736
|
+
|
|
14737
|
+
.pf-c-progress.pf-m-singleline .pf-c-progress__description {
|
|
14738
|
+
display: none;
|
|
14739
|
+
visibility: hidden;
|
|
14740
|
+
}
|
|
14741
|
+
|
|
14742
|
+
.pf-c-progress.pf-m-singleline .pf-c-progress__bar {
|
|
14743
|
+
grid-row: 1/2;
|
|
14744
|
+
grid-column: 1/2;
|
|
14745
|
+
}
|
|
14746
|
+
|
|
14747
|
+
.pf-c-progress.pf-m-singleline .pf-c-progress__status {
|
|
14748
|
+
grid-row: 1/2;
|
|
14749
|
+
grid-column: 2/3;
|
|
14750
|
+
}
|
|
14751
|
+
|
|
14752
|
+
.pf-c-progress.pf-m-outside, .pf-c-progress.pf-m-singleline {
|
|
14753
|
+
grid-template-columns: 1fr fit-content(50%);
|
|
14754
|
+
}
|
|
14755
|
+
|
|
14756
|
+
.pf-c-progress.pf-m-success {
|
|
14757
|
+
--pf-c-progress__bar--before--BackgroundColor: var(--pf-c-progress--m-success__bar--BackgroundColor);
|
|
14758
|
+
--pf-c-progress__status-icon--Color: var(--pf-c-progress--m-success__status-icon--Color);
|
|
14759
|
+
--pf-c-progress--m-inside__measure--Color: var(--pf-c-progress--m-success--m-inside__measure--Color);
|
|
14760
|
+
}
|
|
14761
|
+
|
|
14762
|
+
.pf-c-progress.pf-m-warning {
|
|
14763
|
+
--pf-c-progress__bar--before--BackgroundColor: var(--pf-c-progress--m-warning__bar--BackgroundColor);
|
|
14764
|
+
--pf-c-progress__status-icon--Color: var(--pf-c-progress--m-warning__status-icon--Color);
|
|
14765
|
+
--pf-c-progress--m-inside__measure--Color: var(--pf-c-progress--m-warning--m-inside__measure--Color);
|
|
14766
|
+
}
|
|
14767
|
+
|
|
14768
|
+
.pf-c-progress.pf-m-danger {
|
|
14769
|
+
--pf-c-progress__bar--before--BackgroundColor: var(--pf-c-progress--m-danger__bar--BackgroundColor);
|
|
14770
|
+
--pf-c-progress__status-icon--Color: var(--pf-c-progress--m-danger__status-icon--Color);
|
|
14771
|
+
}
|
|
14772
|
+
|
|
14773
|
+
.pf-c-progress__description {
|
|
14774
|
+
word-break: break-word;
|
|
14775
|
+
grid-column: 1/2;
|
|
14776
|
+
}
|
|
14777
|
+
|
|
14778
|
+
.pf-c-progress__description.pf-m-truncate {
|
|
14779
|
+
overflow: hidden;
|
|
14780
|
+
text-overflow: ellipsis;
|
|
14781
|
+
white-space: nowrap;
|
|
14782
|
+
}
|
|
14783
|
+
|
|
14784
|
+
.pf-c-progress__status {
|
|
14785
|
+
grid-column: 2/3;
|
|
14786
|
+
grid-row: 1/2;
|
|
14787
|
+
text-align: right;
|
|
14788
|
+
word-break: break-word;
|
|
14789
|
+
}
|
|
14790
|
+
|
|
14791
|
+
.pf-c-progress__status-icon {
|
|
14792
|
+
margin-left: var(--pf-c-progress__status-icon--MarginLeft);
|
|
14793
|
+
color: var(--pf-c-progress__status-icon--Color);
|
|
14794
|
+
}
|
|
14795
|
+
|
|
14796
|
+
.pf-c-progress__bar {
|
|
14797
|
+
position: relative;
|
|
14798
|
+
grid-column: 1/3;
|
|
14799
|
+
grid-row: 2/3;
|
|
14800
|
+
align-self: center;
|
|
14801
|
+
height: var(--pf-c-progress__bar--Height);
|
|
14802
|
+
background-color: var(--pf-c-progress__bar--BackgroundColor);
|
|
14803
|
+
}
|
|
14804
|
+
|
|
14805
|
+
.pf-c-progress__bar::before {
|
|
14806
|
+
position: absolute;
|
|
14807
|
+
top: 0;
|
|
14808
|
+
left: 0;
|
|
14809
|
+
width: 100%;
|
|
14810
|
+
height: 100%;
|
|
14811
|
+
content: "";
|
|
14812
|
+
background-color: var(--pf-c-progress__bar--before--BackgroundColor);
|
|
14813
|
+
opacity: var(--pf-c-progress__bar--before--Opacity);
|
|
14814
|
+
}
|
|
14815
|
+
|
|
14816
|
+
.pf-c-progress__indicator {
|
|
14817
|
+
position: absolute;
|
|
14818
|
+
top: 0;
|
|
14819
|
+
left: 0;
|
|
14820
|
+
height: var(--pf-c-progress__indicator--Height);
|
|
14821
|
+
background-color: var(--pf-c-progress__indicator--BackgroundColor);
|
|
14822
|
+
}
|
|
14823
|
+
|
|
14645
14824
|
.pf-c-popover {
|
|
14646
14825
|
--pf-c-popover--FontSize: var(--pf-global--FontSize--sm);
|
|
14647
14826
|
--pf-c-popover--MinWidth: calc(var(--pf-c-popover__content--PaddingLeft) + var(--pf-c-popover__content--PaddingRight) + 18.75rem);
|
|
@@ -14834,185 +15013,6 @@ ul.pf-c-list {
|
|
|
14834
15013
|
margin-top: var(--pf-c-popover__footer--MarginTop);
|
|
14835
15014
|
}
|
|
14836
15015
|
|
|
14837
|
-
.pf-c-progress {
|
|
14838
|
-
--pf-c-progress--GridGap: var(--pf-global--spacer--md);
|
|
14839
|
-
--pf-c-progress__bar--before--BackgroundColor: var(--pf-global--primary-color--100);
|
|
14840
|
-
--pf-c-progress__bar--Height: var(--pf-global--spacer--md);
|
|
14841
|
-
--pf-c-progress__bar--BackgroundColor: var(--pf-global--BackgroundColor--light-100);
|
|
14842
|
-
--pf-c-progress__measure--m-static-width--MinWidth: 4.5ch;
|
|
14843
|
-
--pf-c-progress__status-icon--Color: var(--pf-global--Color--100);
|
|
14844
|
-
--pf-c-progress__status-icon--MarginLeft: var(--pf-global--spacer--sm);
|
|
14845
|
-
--pf-c-progress__bar--before--Opacity: .2;
|
|
14846
|
-
--pf-c-progress__indicator--Height: var(--pf-c-progress__bar--Height);
|
|
14847
|
-
--pf-c-progress__indicator--BackgroundColor: var(--pf-c-progress__bar--before--BackgroundColor);
|
|
14848
|
-
--pf-c-progress--m-success__bar--BackgroundColor: var(--pf-global--success-color--100);
|
|
14849
|
-
--pf-c-progress--m-warning__bar--BackgroundColor: var(--pf-global--warning-color--100);
|
|
14850
|
-
--pf-c-progress--m-danger__bar--BackgroundColor: var(--pf-global--danger-color--100);
|
|
14851
|
-
--pf-c-progress--m-success__status-icon--Color: var(--pf-global--success-color--100);
|
|
14852
|
-
--pf-c-progress--m-warning__status-icon--Color: var(--pf-global--warning-color--100);
|
|
14853
|
-
--pf-c-progress--m-danger__status-icon--Color: var(--pf-global--danger-color--100);
|
|
14854
|
-
--pf-c-progress--m-inside__indicator--MinWidth: var(--pf-global--spacer--xl);
|
|
14855
|
-
--pf-c-progress--m-inside__measure--Color: var(--pf-global--Color--light-100);
|
|
14856
|
-
--pf-c-progress--m-success--m-inside__measure--Color: var(--pf-global--Color--light-100);
|
|
14857
|
-
--pf-c-progress--m-warning--m-inside__measure--Color: var(--pf-global--Color--dark-100);
|
|
14858
|
-
--pf-c-progress--m-inside__measure--FontSize: var(--pf-global--FontSize--sm);
|
|
14859
|
-
--pf-c-progress--m-outside__measure--FontSize: var(--pf-global--FontSize--sm);
|
|
14860
|
-
--pf-c-progress--m-sm__bar--Height: var(--pf-global--spacer--sm);
|
|
14861
|
-
--pf-c-progress--m-sm__description--FontSize: var(--pf-global--FontSize--sm);
|
|
14862
|
-
--pf-c-progress--m-sm__measure--FontSize: var(--pf-global--FontSize--sm);
|
|
14863
|
-
--pf-c-progress--m-lg__bar--Height: var(--pf-global--spacer--lg);
|
|
14864
|
-
display: grid;
|
|
14865
|
-
align-items: end;
|
|
14866
|
-
grid-gap: var(--pf-c-progress--GridGap);
|
|
14867
|
-
grid-template-columns: auto auto;
|
|
14868
|
-
grid-template-rows: 1fr auto;
|
|
14869
|
-
}
|
|
14870
|
-
|
|
14871
|
-
.pf-c-progress.pf-m-sm {
|
|
14872
|
-
--pf-c-progress__bar--Height: var(--pf-c-progress--m-sm__bar--Height);
|
|
14873
|
-
}
|
|
14874
|
-
|
|
14875
|
-
.pf-c-progress.pf-m-sm .pf-c-progress__description {
|
|
14876
|
-
font-size: var(--pf-c-progress--m-sm__description--FontSize);
|
|
14877
|
-
}
|
|
14878
|
-
|
|
14879
|
-
.pf-c-progress.pf-m-sm .pf-c-progress__measure {
|
|
14880
|
-
font-size: var(--pf-c-progress--m-sm__measure--FontSize);
|
|
14881
|
-
}
|
|
14882
|
-
|
|
14883
|
-
.pf-c-progress.pf-m-lg {
|
|
14884
|
-
--pf-c-progress__bar--Height: var(--pf-c-progress--m-lg__bar--Height);
|
|
14885
|
-
}
|
|
14886
|
-
|
|
14887
|
-
.pf-c-progress.pf-m-inside .pf-c-progress__indicator {
|
|
14888
|
-
display: flex;
|
|
14889
|
-
align-items: center;
|
|
14890
|
-
justify-content: center;
|
|
14891
|
-
min-width: var(--pf-c-progress--m-inside__indicator--MinWidth);
|
|
14892
|
-
}
|
|
14893
|
-
|
|
14894
|
-
.pf-c-progress.pf-m-inside .pf-c-progress__measure {
|
|
14895
|
-
font-size: var(--pf-c-progress--m-inside__measure--FontSize);
|
|
14896
|
-
color: var(--pf-c-progress--m-inside__measure--Color);
|
|
14897
|
-
text-align: center;
|
|
14898
|
-
}
|
|
14899
|
-
|
|
14900
|
-
.pf-c-progress.pf-m-outside .pf-c-progress__description {
|
|
14901
|
-
grid-column: 1/3;
|
|
14902
|
-
}
|
|
14903
|
-
|
|
14904
|
-
.pf-c-progress.pf-m-outside .pf-c-progress__status {
|
|
14905
|
-
grid-column: 2/3;
|
|
14906
|
-
grid-row: 2/3;
|
|
14907
|
-
align-self: center;
|
|
14908
|
-
}
|
|
14909
|
-
|
|
14910
|
-
.pf-c-progress.pf-m-outside .pf-c-progress__measure {
|
|
14911
|
-
display: inline-block;
|
|
14912
|
-
font-size: var(--pf-c-progress--m-outside__measure--FontSize);
|
|
14913
|
-
}
|
|
14914
|
-
|
|
14915
|
-
.pf-c-progress.pf-m-outside .pf-c-progress__measure.pf-m-static-width {
|
|
14916
|
-
min-width: var(--pf-c-progress__measure--m-static-width--MinWidth);
|
|
14917
|
-
text-align: left;
|
|
14918
|
-
}
|
|
14919
|
-
|
|
14920
|
-
.pf-c-progress.pf-m-outside .pf-c-progress__bar,
|
|
14921
|
-
.pf-c-progress.pf-m-outside .pf-c-progress__indicator {
|
|
14922
|
-
grid-column: 1/2;
|
|
14923
|
-
}
|
|
14924
|
-
|
|
14925
|
-
.pf-c-progress.pf-m-singleline {
|
|
14926
|
-
grid-template-rows: 1fr;
|
|
14927
|
-
}
|
|
14928
|
-
|
|
14929
|
-
.pf-c-progress.pf-m-singleline .pf-c-progress__description {
|
|
14930
|
-
display: none;
|
|
14931
|
-
visibility: hidden;
|
|
14932
|
-
}
|
|
14933
|
-
|
|
14934
|
-
.pf-c-progress.pf-m-singleline .pf-c-progress__bar {
|
|
14935
|
-
grid-row: 1/2;
|
|
14936
|
-
grid-column: 1/2;
|
|
14937
|
-
}
|
|
14938
|
-
|
|
14939
|
-
.pf-c-progress.pf-m-singleline .pf-c-progress__status {
|
|
14940
|
-
grid-row: 1/2;
|
|
14941
|
-
grid-column: 2/3;
|
|
14942
|
-
}
|
|
14943
|
-
|
|
14944
|
-
.pf-c-progress.pf-m-outside, .pf-c-progress.pf-m-singleline {
|
|
14945
|
-
grid-template-columns: 1fr fit-content(50%);
|
|
14946
|
-
}
|
|
14947
|
-
|
|
14948
|
-
.pf-c-progress.pf-m-success {
|
|
14949
|
-
--pf-c-progress__bar--before--BackgroundColor: var(--pf-c-progress--m-success__bar--BackgroundColor);
|
|
14950
|
-
--pf-c-progress__status-icon--Color: var(--pf-c-progress--m-success__status-icon--Color);
|
|
14951
|
-
--pf-c-progress--m-inside__measure--Color: var(--pf-c-progress--m-success--m-inside__measure--Color);
|
|
14952
|
-
}
|
|
14953
|
-
|
|
14954
|
-
.pf-c-progress.pf-m-warning {
|
|
14955
|
-
--pf-c-progress__bar--before--BackgroundColor: var(--pf-c-progress--m-warning__bar--BackgroundColor);
|
|
14956
|
-
--pf-c-progress__status-icon--Color: var(--pf-c-progress--m-warning__status-icon--Color);
|
|
14957
|
-
--pf-c-progress--m-inside__measure--Color: var(--pf-c-progress--m-warning--m-inside__measure--Color);
|
|
14958
|
-
}
|
|
14959
|
-
|
|
14960
|
-
.pf-c-progress.pf-m-danger {
|
|
14961
|
-
--pf-c-progress__bar--before--BackgroundColor: var(--pf-c-progress--m-danger__bar--BackgroundColor);
|
|
14962
|
-
--pf-c-progress__status-icon--Color: var(--pf-c-progress--m-danger__status-icon--Color);
|
|
14963
|
-
}
|
|
14964
|
-
|
|
14965
|
-
.pf-c-progress__description {
|
|
14966
|
-
word-break: break-word;
|
|
14967
|
-
grid-column: 1/2;
|
|
14968
|
-
}
|
|
14969
|
-
|
|
14970
|
-
.pf-c-progress__description.pf-m-truncate {
|
|
14971
|
-
overflow: hidden;
|
|
14972
|
-
text-overflow: ellipsis;
|
|
14973
|
-
white-space: nowrap;
|
|
14974
|
-
}
|
|
14975
|
-
|
|
14976
|
-
.pf-c-progress__status {
|
|
14977
|
-
grid-column: 2/3;
|
|
14978
|
-
grid-row: 1/2;
|
|
14979
|
-
text-align: right;
|
|
14980
|
-
word-break: break-word;
|
|
14981
|
-
}
|
|
14982
|
-
|
|
14983
|
-
.pf-c-progress__status-icon {
|
|
14984
|
-
margin-left: var(--pf-c-progress__status-icon--MarginLeft);
|
|
14985
|
-
color: var(--pf-c-progress__status-icon--Color);
|
|
14986
|
-
}
|
|
14987
|
-
|
|
14988
|
-
.pf-c-progress__bar {
|
|
14989
|
-
position: relative;
|
|
14990
|
-
grid-column: 1/3;
|
|
14991
|
-
grid-row: 2/3;
|
|
14992
|
-
align-self: center;
|
|
14993
|
-
height: var(--pf-c-progress__bar--Height);
|
|
14994
|
-
background-color: var(--pf-c-progress__bar--BackgroundColor);
|
|
14995
|
-
}
|
|
14996
|
-
|
|
14997
|
-
.pf-c-progress__bar::before {
|
|
14998
|
-
position: absolute;
|
|
14999
|
-
top: 0;
|
|
15000
|
-
left: 0;
|
|
15001
|
-
width: 100%;
|
|
15002
|
-
height: 100%;
|
|
15003
|
-
content: "";
|
|
15004
|
-
background-color: var(--pf-c-progress__bar--before--BackgroundColor);
|
|
15005
|
-
opacity: var(--pf-c-progress__bar--before--Opacity);
|
|
15006
|
-
}
|
|
15007
|
-
|
|
15008
|
-
.pf-c-progress__indicator {
|
|
15009
|
-
position: absolute;
|
|
15010
|
-
top: 0;
|
|
15011
|
-
left: 0;
|
|
15012
|
-
height: var(--pf-c-progress__indicator--Height);
|
|
15013
|
-
background-color: var(--pf-c-progress__indicator--BackgroundColor);
|
|
15014
|
-
}
|
|
15015
|
-
|
|
15016
15016
|
.pf-c-progress-stepper {
|
|
15017
15017
|
--pf-c-progress-stepper--GridAutoFlow: column;
|
|
15018
15018
|
--pf-c-progress-stepper--GridTemplateRows: auto 1fr;
|