@patternfly/react-core 4.237.4 → 4.237.5
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 +8 -0
- package/dist/esm/components/TextArea/TextArea.d.ts +3 -0
- package/dist/esm/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/esm/components/TextArea/TextArea.js +21 -10
- package/dist/esm/components/TextArea/TextArea.js.map +1 -1
- package/dist/js/components/TextArea/TextArea.d.ts +3 -0
- package/dist/js/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/js/components/TextArea/TextArea.js +21 -10
- package/dist/js/components/TextArea/TextArea.js.map +1 -1
- package/dist/umd/react-core.min.css +86 -86
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +5 -5
- package/src/components/TextArea/TextArea.tsx +26 -12
- package/src/components/TextArea/examples/TextArea.md +47 -21
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.237.5 (2022-09-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## 4.237.4 (2022-09-09)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -37,7 +37,10 @@ export interface TextAreaProps extends Omit<HTMLProps<HTMLTextAreaElement>, 'onC
|
|
|
37
37
|
export declare class TextAreaBase extends React.Component<TextAreaProps> {
|
|
38
38
|
static displayName: string;
|
|
39
39
|
static defaultProps: TextAreaProps;
|
|
40
|
+
inputRef: React.RefObject<HTMLTextAreaElement>;
|
|
41
|
+
private setAutoHeight;
|
|
40
42
|
constructor(props: TextAreaProps);
|
|
43
|
+
componentDidMount(): void;
|
|
41
44
|
private handleChange;
|
|
42
45
|
render(): JSX.Element;
|
|
43
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,oBAAY,wBAAwB;IAClC,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC;IAC7F,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kDAAkD;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACxD,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAClF,kDAAkD;IAClD,iBAAiB,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,MAAM,CAAC;IACvD,qFAAqF;IACrF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;CACjC;AAED,qBAAa,YAAa,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AAC,EAAE,MAAM,CAAC;IACtB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;CACjC;AAED,qBAAa,YAAa,SAAQ,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;IAC9D,MAAM,CAAC,WAAW,SAAc;IAChC,MAAM,CAAC,YAAY,EAAE,aAAa,CAShC;IAEF,QAAQ,uCAA0C;IAElD,OAAO,CAAC,aAAa,CAWnB;gBAEU,KAAK,EAAE,aAAa;IAQhC,iBAAiB,IAAI,IAAI;IAQzB,OAAO,CAAC,YAAY,CASlB;IAEF,MAAM;CAyCP;AAED,eAAO,MAAM,QAAQ,2FAEnB,CAAC"}
|
|
@@ -13,19 +13,23 @@ export var TextAreResizeOrientation;
|
|
|
13
13
|
export class TextAreaBase extends React.Component {
|
|
14
14
|
constructor(props) {
|
|
15
15
|
super(props);
|
|
16
|
+
this.inputRef = React.createRef();
|
|
17
|
+
this.setAutoHeight = (field) => {
|
|
18
|
+
field.style.setProperty(heightToken.name, 'inherit');
|
|
19
|
+
const computed = window.getComputedStyle(field);
|
|
20
|
+
// Calculate the height
|
|
21
|
+
const height = parseInt(computed.getPropertyValue('border-top-width')) +
|
|
22
|
+
parseInt(computed.getPropertyValue('padding-top')) +
|
|
23
|
+
field.scrollHeight +
|
|
24
|
+
parseInt(computed.getPropertyValue('padding-bottom')) +
|
|
25
|
+
parseInt(computed.getPropertyValue('border-bottom-width'));
|
|
26
|
+
field.style.setProperty(heightToken.name, `${height}px`);
|
|
27
|
+
};
|
|
16
28
|
this.handleChange = (event) => {
|
|
17
29
|
// https://gomakethings.com/automatically-expand-a-textarea-as-the-user-types-using-vanilla-javascript/
|
|
18
30
|
const field = event.currentTarget;
|
|
19
31
|
if (this.props.autoResize && canUseDOM) {
|
|
20
|
-
|
|
21
|
-
const computed = window.getComputedStyle(field);
|
|
22
|
-
// Calculate the height
|
|
23
|
-
const height = parseInt(computed.getPropertyValue('border-top-width')) +
|
|
24
|
-
parseInt(computed.getPropertyValue('padding-top')) +
|
|
25
|
-
field.scrollHeight +
|
|
26
|
-
parseInt(computed.getPropertyValue('padding-bottom')) +
|
|
27
|
-
parseInt(computed.getPropertyValue('border-bottom-width'));
|
|
28
|
-
field.style.setProperty(heightToken.name, `${height}px`);
|
|
32
|
+
this.setAutoHeight(field);
|
|
29
33
|
}
|
|
30
34
|
if (this.props.onChange) {
|
|
31
35
|
this.props.onChange(field.value, event);
|
|
@@ -36,6 +40,13 @@ export class TextAreaBase extends React.Component {
|
|
|
36
40
|
console.error('TextArea: TextArea requires either an id or aria-label to be specified');
|
|
37
41
|
}
|
|
38
42
|
}
|
|
43
|
+
componentDidMount() {
|
|
44
|
+
const inputRef = this.props.innerRef || this.inputRef;
|
|
45
|
+
if (this.props.autoResize && canUseDOM) {
|
|
46
|
+
const field = inputRef.current;
|
|
47
|
+
this.setAutoHeight(field);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
39
50
|
render() {
|
|
40
51
|
const _a = this.props, { className, value, validated, isRequired, isDisabled, isIconSprite, isReadOnly, resizeOrientation, innerRef, readOnly, disabled,
|
|
41
52
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
@@ -43,7 +54,7 @@ export class TextAreaBase extends React.Component {
|
|
|
43
54
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
44
55
|
props = __rest(_a, ["className", "value", "validated", "isRequired", "isDisabled", "isIconSprite", "isReadOnly", "resizeOrientation", "innerRef", "readOnly", "disabled", "autoResize", "onChange"]);
|
|
45
56
|
const orientation = `resize${capitalize(resizeOrientation)}`;
|
|
46
|
-
return (React.createElement("textarea", Object.assign({ className: css(styles.formControl, isIconSprite && styles.modifiers.iconSprite, className, resizeOrientation !== TextAreResizeOrientation.both && styles.modifiers[orientation], validated === ValidatedOptions.success && styles.modifiers.success, validated === ValidatedOptions.warning && styles.modifiers.warning), onChange: this.handleChange }, (typeof this.props.defaultValue !== 'string' && { value }), { "aria-invalid": validated === ValidatedOptions.error, required: isRequired, disabled: isDisabled || disabled, readOnly: isReadOnly || readOnly, ref: innerRef }, props)));
|
|
57
|
+
return (React.createElement("textarea", Object.assign({ className: css(styles.formControl, isIconSprite && styles.modifiers.iconSprite, className, resizeOrientation !== TextAreResizeOrientation.both && styles.modifiers[orientation], validated === ValidatedOptions.success && styles.modifiers.success, validated === ValidatedOptions.warning && styles.modifiers.warning), onChange: this.handleChange }, (typeof this.props.defaultValue !== 'string' && { value }), { "aria-invalid": validated === ValidatedOptions.error, required: isRequired, disabled: isDisabled || disabled, readOnly: isReadOnly || readOnly, ref: innerRef || this.inputRef }, props)));
|
|
47
58
|
}
|
|
48
59
|
}
|
|
49
60
|
TextAreaBase.displayName = 'TextArea';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.js","sourceRoot":"","sources":["../../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,MAAM,MAAM,kEAAkE,CAAC;AACtF,OAAO,WAAW,MAAM,kEAAkE,CAAC;AAC3F,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAExE,MAAM,CAAN,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,qDAAyB,CAAA;IACzB,iDAAqB,CAAA;IACrB,yCAAa,CAAA;AACf,CAAC,EAJW,wBAAwB,KAAxB,wBAAwB,QAInC;AAgCD,MAAM,OAAO,YAAa,SAAQ,KAAK,CAAC,SAAwB;
|
|
1
|
+
{"version":3,"file":"TextArea.js","sourceRoot":"","sources":["../../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,MAAM,MAAM,kEAAkE,CAAC;AACtF,OAAO,WAAW,MAAM,kEAAkE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SAAS,CAAC,WAAW,CAAC,EACpF,SAAS,KAAK,gBAAgB,CAAC,OAAO,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAClE,SAAS,KAAK,gBAAgB,CAAC,OAAO,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,CACnE,EACD,QAAQ,EAAE,IAAI,CAAC,YAAY,IACvB,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,KAAK,QAAQ,IAAI,EAAE,KAAK,EAAE,CAAC,oBAChD,SAAS,KAAK,gBAAgB,CAAC,KAAK,EAClD,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,UAAU,IAAI,QAAQ,EAChC,QAAQ,EAAE,UAAU,IAAI,QAAQ,EAChC,GAAG,EAAE,QAAQ,IAAI,IAAI,CAAC,QAAQ,IAC1B,KAAK,EACT,CACH,CAAC;IACJ,CAAC;;AA9FM,wBAAW,GAAG,UAAU,CAAC;AACzB,yBAAY,GAAkB;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,EAAuB;IAChD,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,KAAK;IACjB,YAAY,EAAE,KAAK;IACnB,SAAS,EAAE,SAAS;IACpB,iBAAiB,EAAE,MAAM;IACzB,YAAY,EAAE,IAAc;CAC7B,CAAC;AAuFJ,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAoB,EAAE,GAAmC,EAAE,EAAE,CAAC,CACtG,oBAAC,YAAY,oBAAK,KAAK,IAAE,QAAQ,EAAE,GAAkC,IAAI,CAC1E,CAAC,CAAC;AACH,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC"}
|
|
@@ -37,7 +37,10 @@ export interface TextAreaProps extends Omit<HTMLProps<HTMLTextAreaElement>, 'onC
|
|
|
37
37
|
export declare class TextAreaBase extends React.Component<TextAreaProps> {
|
|
38
38
|
static displayName: string;
|
|
39
39
|
static defaultProps: TextAreaProps;
|
|
40
|
+
inputRef: React.RefObject<HTMLTextAreaElement>;
|
|
41
|
+
private setAutoHeight;
|
|
40
42
|
constructor(props: TextAreaProps);
|
|
43
|
+
componentDidMount(): void;
|
|
41
44
|
private handleChange;
|
|
42
45
|
render(): JSX.Element;
|
|
43
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,oBAAY,wBAAwB;IAClC,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC;IAC7F,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kDAAkD;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACxD,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAClF,kDAAkD;IAClD,iBAAiB,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,MA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AAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAClF,kDAAkD;IAClD,iBAAiB,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,MAAM,CAAC;IACvD,qFAAqF;IACrF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;CACjC;AAED,qBAAa,YAAa,SAAQ,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;IAC9D,MAAM,CAAC,WAAW,SAAc;IAChC,MAAM,CAAC,YAAY,EAAE,aAAa,CAShC;IAEF,QAAQ,uCAA0C;IAElD,OAAO,CAAC,aAAa,CAWnB;gBAEU,KAAK,EAAE,aAAa;IAQhC,iBAAiB,IAAI,IAAI;IAQzB,OAAO,CAAC,YAAY,CASlB;IAEF,MAAM;CAyCP;AAED,eAAO,MAAM,QAAQ,2FAEnB,CAAC"}
|
|
@@ -16,19 +16,23 @@ var TextAreResizeOrientation;
|
|
|
16
16
|
class TextAreaBase extends React.Component {
|
|
17
17
|
constructor(props) {
|
|
18
18
|
super(props);
|
|
19
|
+
this.inputRef = React.createRef();
|
|
20
|
+
this.setAutoHeight = (field) => {
|
|
21
|
+
field.style.setProperty(c_form_control_textarea_Height_1.default.name, 'inherit');
|
|
22
|
+
const computed = window.getComputedStyle(field);
|
|
23
|
+
// Calculate the height
|
|
24
|
+
const height = parseInt(computed.getPropertyValue('border-top-width')) +
|
|
25
|
+
parseInt(computed.getPropertyValue('padding-top')) +
|
|
26
|
+
field.scrollHeight +
|
|
27
|
+
parseInt(computed.getPropertyValue('padding-bottom')) +
|
|
28
|
+
parseInt(computed.getPropertyValue('border-bottom-width'));
|
|
29
|
+
field.style.setProperty(c_form_control_textarea_Height_1.default.name, `${height}px`);
|
|
30
|
+
};
|
|
19
31
|
this.handleChange = (event) => {
|
|
20
32
|
// https://gomakethings.com/automatically-expand-a-textarea-as-the-user-types-using-vanilla-javascript/
|
|
21
33
|
const field = event.currentTarget;
|
|
22
34
|
if (this.props.autoResize && helpers_1.canUseDOM) {
|
|
23
|
-
|
|
24
|
-
const computed = window.getComputedStyle(field);
|
|
25
|
-
// Calculate the height
|
|
26
|
-
const height = parseInt(computed.getPropertyValue('border-top-width')) +
|
|
27
|
-
parseInt(computed.getPropertyValue('padding-top')) +
|
|
28
|
-
field.scrollHeight +
|
|
29
|
-
parseInt(computed.getPropertyValue('padding-bottom')) +
|
|
30
|
-
parseInt(computed.getPropertyValue('border-bottom-width'));
|
|
31
|
-
field.style.setProperty(c_form_control_textarea_Height_1.default.name, `${height}px`);
|
|
35
|
+
this.setAutoHeight(field);
|
|
32
36
|
}
|
|
33
37
|
if (this.props.onChange) {
|
|
34
38
|
this.props.onChange(field.value, event);
|
|
@@ -39,6 +43,13 @@ class TextAreaBase extends React.Component {
|
|
|
39
43
|
console.error('TextArea: TextArea requires either an id or aria-label to be specified');
|
|
40
44
|
}
|
|
41
45
|
}
|
|
46
|
+
componentDidMount() {
|
|
47
|
+
const inputRef = this.props.innerRef || this.inputRef;
|
|
48
|
+
if (this.props.autoResize && helpers_1.canUseDOM) {
|
|
49
|
+
const field = inputRef.current;
|
|
50
|
+
this.setAutoHeight(field);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
42
53
|
render() {
|
|
43
54
|
const _a = this.props, { className, value, validated, isRequired, isDisabled, isIconSprite, isReadOnly, resizeOrientation, innerRef, readOnly, disabled,
|
|
44
55
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
@@ -46,7 +57,7 @@ class TextAreaBase extends React.Component {
|
|
|
46
57
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
47
58
|
props = tslib_1.__rest(_a, ["className", "value", "validated", "isRequired", "isDisabled", "isIconSprite", "isReadOnly", "resizeOrientation", "innerRef", "readOnly", "disabled", "autoResize", "onChange"]);
|
|
48
59
|
const orientation = `resize${helpers_1.capitalize(resizeOrientation)}`;
|
|
49
|
-
return (React.createElement("textarea", Object.assign({ className: react_styles_1.css(form_control_1.default.formControl, isIconSprite && form_control_1.default.modifiers.iconSprite, className, resizeOrientation !== TextAreResizeOrientation.both && form_control_1.default.modifiers[orientation], validated === helpers_1.ValidatedOptions.success && form_control_1.default.modifiers.success, validated === helpers_1.ValidatedOptions.warning && form_control_1.default.modifiers.warning), onChange: this.handleChange }, (typeof this.props.defaultValue !== 'string' && { value }), { "aria-invalid": validated === helpers_1.ValidatedOptions.error, required: isRequired, disabled: isDisabled || disabled, readOnly: isReadOnly || readOnly, ref: innerRef }, props)));
|
|
60
|
+
return (React.createElement("textarea", Object.assign({ className: react_styles_1.css(form_control_1.default.formControl, isIconSprite && form_control_1.default.modifiers.iconSprite, className, resizeOrientation !== TextAreResizeOrientation.both && form_control_1.default.modifiers[orientation], validated === helpers_1.ValidatedOptions.success && form_control_1.default.modifiers.success, validated === helpers_1.ValidatedOptions.warning && form_control_1.default.modifiers.warning), onChange: this.handleChange }, (typeof this.props.defaultValue !== 'string' && { value }), { "aria-invalid": validated === helpers_1.ValidatedOptions.error, required: isRequired, disabled: isDisabled || disabled, readOnly: isReadOnly || readOnly, ref: innerRef || this.inputRef }, props)));
|
|
50
61
|
}
|
|
51
62
|
}
|
|
52
63
|
exports.TextAreaBase = TextAreaBase;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.js","sourceRoot":"","sources":["../../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAE/B,4HAAsF;AACtF,6IAA2F;AAC3F,2DAA+C;AAC/C,2CAAwE;AAExE,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,qDAAyB,CAAA;IACzB,iDAAqB,CAAA;IACrB,yCAAa,CAAA;AACf,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC;AAgCD,MAAa,YAAa,SAAQ,KAAK,CAAC,SAAwB;
|
|
1
|
+
{"version":3,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AAI,IAAI,sBAAM,CAAC,SAAS,CAAC,WAAW,CAAC,EACpF,SAAS,KAAK,0BAAgB,CAAC,OAAO,IAAI,sBAAM,CAAC,SAAS,CAAC,OAAO,EAClE,SAAS,KAAK,0BAAgB,CAAC,OAAO,IAAI,sBAAM,CAAC,SAAS,CAAC,OAAO,CACnE,EACD,QAAQ,EAAE,IAAI,CAAC,YAAY,IACvB,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,KAAK,QAAQ,IAAI,EAAE,KAAK,EAAE,CAAC,oBAChD,SAAS,KAAK,0BAAgB,CAAC,KAAK,EAClD,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,UAAU,IAAI,QAAQ,EAChC,QAAQ,EAAE,UAAU,IAAI,QAAQ,EAChC,GAAG,EAAE,QAAQ,IAAI,IAAI,CAAC,QAAQ,IAC1B,KAAK,EACT,CACH,CAAC;IACJ,CAAC;;AA/FH,oCAgGC;AA/FQ,wBAAW,GAAG,UAAU,CAAC;AACzB,yBAAY,GAAkB;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,EAAuB;IAChD,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,KAAK;IACjB,YAAY,EAAE,KAAK;IACnB,SAAS,EAAE,SAAS;IACpB,iBAAiB,EAAE,MAAM;IACzB,YAAY,EAAE,IAAc;CAC7B,CAAC;AAuFS,QAAA,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAoB,EAAE,GAAmC,EAAE,EAAE,CAAC,CACtG,oBAAC,YAAY,oBAAK,KAAK,IAAE,QAAQ,EAAE,GAAkC,IAAI,CAC1E,CAAC,CAAC;AACH,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC"}
|
|
@@ -10626,92 +10626,6 @@ button.pf-c-label__content:focus {
|
|
|
10626
10626
|
--pf-c-label--m-outline--m-cyan__content--link--focus--before--BorderColor: var(--pf-global--palette--cyan-100);
|
|
10627
10627
|
}
|
|
10628
10628
|
|
|
10629
|
-
.pf-c-list {
|
|
10630
|
-
--pf-c-list--PaddingLeft: var(--pf-global--spacer--lg);
|
|
10631
|
-
--pf-c-list--nested--MarginTop: var(--pf-global--spacer--sm);
|
|
10632
|
-
--pf-c-list--nested--MarginLeft: var(--pf-global--spacer--sm);
|
|
10633
|
-
--pf-c-list--ul--ListStyle: var(--pf-global--ListStyle);
|
|
10634
|
-
--pf-c-list--li--MarginTop: var(--pf-global--spacer--sm);
|
|
10635
|
-
--pf-c-list--m-inline--li--MarginRight: var(--pf-global--spacer--lg);
|
|
10636
|
-
--pf-c-list--m-bordered--li--PaddingBottom: var(--pf-global--spacer--sm);
|
|
10637
|
-
--pf-c-list--m-bordered--li--BorderBottomColor: var(--pf-global--BorderColor--100);
|
|
10638
|
-
--pf-c-list--m-bordered--li--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
|
|
10639
|
-
--pf-c-list__item-icon--MinWidth: var(--pf-global--icon--FontSize--sm);
|
|
10640
|
-
--pf-c-list__item-icon--MarginTop: 0.375rem;
|
|
10641
|
-
--pf-c-list__item-icon--MarginRight: var(--pf-global--spacer--sm);
|
|
10642
|
-
--pf-c-list__item-icon--Color: var(--pf-global--icon--Color--light);
|
|
10643
|
-
--pf-c-list__item-icon--FontSize: var(--pf-global--icon--FontSize--sm);
|
|
10644
|
-
--pf-c-list--m-icon-lg__item-icon--MinWidth: var(--pf-global--icon--FontSize--lg);
|
|
10645
|
-
--pf-c-list--m-icon-lg__item-icon--MarginRight: var(--pf-global--spacer--md);
|
|
10646
|
-
--pf-c-list--m-icon-lg__item-icon--FontSize: var(--pf-global--icon--FontSize--lg);
|
|
10647
|
-
padding-left: var(--pf-c-list--PaddingLeft);
|
|
10648
|
-
}
|
|
10649
|
-
|
|
10650
|
-
.pf-c-list ol,
|
|
10651
|
-
.pf-c-list ul {
|
|
10652
|
-
margin-top: var(--pf-c-list--nested--MarginTop);
|
|
10653
|
-
margin-left: var(--pf-c-list--nested--MarginLeft);
|
|
10654
|
-
}
|
|
10655
|
-
|
|
10656
|
-
.pf-c-list li + li {
|
|
10657
|
-
margin-top: var(--pf-c-list--li--MarginTop);
|
|
10658
|
-
}
|
|
10659
|
-
|
|
10660
|
-
ul.pf-c-list {
|
|
10661
|
-
list-style: var(--pf-c-list--ul--ListStyle);
|
|
10662
|
-
}
|
|
10663
|
-
|
|
10664
|
-
.pf-c-list .pf-c-list__item {
|
|
10665
|
-
display: flex;
|
|
10666
|
-
}
|
|
10667
|
-
|
|
10668
|
-
.pf-c-list .pf-c-list__item-icon {
|
|
10669
|
-
flex-shrink: 0;
|
|
10670
|
-
min-width: var(--pf-c-list__item-icon--MinWidth);
|
|
10671
|
-
margin-top: var(--pf-c-list__item-icon--MarginTop);
|
|
10672
|
-
margin-right: var(--pf-c-list__item-icon--MarginRight);
|
|
10673
|
-
font-size: var(--pf-c-list__item-icon--FontSize);
|
|
10674
|
-
line-height: 1;
|
|
10675
|
-
color: var(--pf-c-list__item-icon--Color);
|
|
10676
|
-
}
|
|
10677
|
-
|
|
10678
|
-
.pf-c-list.pf-m-icon-lg {
|
|
10679
|
-
--pf-c-list__item-icon--MinWidth: var(--pf-c-list--m-icon-lg__item-icon--MinWidth);
|
|
10680
|
-
--pf-c-list__item-icon--MarginTop: 0;
|
|
10681
|
-
--pf-c-list__item-icon--MarginRight: var(--pf-c-list--m-icon-lg__item-icon--MarginRight);
|
|
10682
|
-
--pf-c-list__item-icon--FontSize: var(--pf-c-list--m-icon-lg__item-icon--FontSize);
|
|
10683
|
-
}
|
|
10684
|
-
|
|
10685
|
-
.pf-c-list.pf-m-plain {
|
|
10686
|
-
--pf-c-list--PaddingLeft: 0;
|
|
10687
|
-
list-style: none;
|
|
10688
|
-
}
|
|
10689
|
-
|
|
10690
|
-
.pf-c-list.pf-m-inline {
|
|
10691
|
-
--pf-c-list--PaddingLeft: 0;
|
|
10692
|
-
display: flex;
|
|
10693
|
-
flex-wrap: wrap;
|
|
10694
|
-
list-style: none;
|
|
10695
|
-
}
|
|
10696
|
-
|
|
10697
|
-
.pf-c-list.pf-m-inline li {
|
|
10698
|
-
--pf-c-list--li--MarginTop: 0;
|
|
10699
|
-
}
|
|
10700
|
-
|
|
10701
|
-
.pf-c-list.pf-m-inline li:not(:last-child) {
|
|
10702
|
-
margin-right: var(--pf-c-list--m-inline--li--MarginRight);
|
|
10703
|
-
}
|
|
10704
|
-
|
|
10705
|
-
.pf-c-list.pf-m-bordered > * {
|
|
10706
|
-
padding-bottom: var(--pf-c-list--m-bordered--li--PaddingBottom);
|
|
10707
|
-
border-bottom: var(--pf-c-list--m-bordered--li--BorderBottomWidth) solid var(--pf-c-list--m-bordered--li--BorderBottomColor);
|
|
10708
|
-
}
|
|
10709
|
-
|
|
10710
|
-
.pf-c-list.pf-m-bordered > :last-child {
|
|
10711
|
-
--pf-c-list--m-bordered--li--PaddingBottom: 0;
|
|
10712
|
-
--pf-c-list--m-bordered--li--BorderBottomWidth: 0;
|
|
10713
|
-
}
|
|
10714
|
-
|
|
10715
10629
|
.pf-c-label-group {
|
|
10716
10630
|
--pf-c-label-group__list--MarginBottom: calc(var(--pf-global--spacer--xs) * -1);
|
|
10717
10631
|
--pf-c-label-group__list--MarginRight: calc(var(--pf-global--spacer--xs) * -1);
|
|
@@ -10856,6 +10770,92 @@ ul.pf-c-list {
|
|
|
10856
10770
|
display: none;
|
|
10857
10771
|
}
|
|
10858
10772
|
|
|
10773
|
+
.pf-c-list {
|
|
10774
|
+
--pf-c-list--PaddingLeft: var(--pf-global--spacer--lg);
|
|
10775
|
+
--pf-c-list--nested--MarginTop: var(--pf-global--spacer--sm);
|
|
10776
|
+
--pf-c-list--nested--MarginLeft: var(--pf-global--spacer--sm);
|
|
10777
|
+
--pf-c-list--ul--ListStyle: var(--pf-global--ListStyle);
|
|
10778
|
+
--pf-c-list--li--MarginTop: var(--pf-global--spacer--sm);
|
|
10779
|
+
--pf-c-list--m-inline--li--MarginRight: var(--pf-global--spacer--lg);
|
|
10780
|
+
--pf-c-list--m-bordered--li--PaddingBottom: var(--pf-global--spacer--sm);
|
|
10781
|
+
--pf-c-list--m-bordered--li--BorderBottomColor: var(--pf-global--BorderColor--100);
|
|
10782
|
+
--pf-c-list--m-bordered--li--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
|
|
10783
|
+
--pf-c-list__item-icon--MinWidth: var(--pf-global--icon--FontSize--sm);
|
|
10784
|
+
--pf-c-list__item-icon--MarginTop: 0.375rem;
|
|
10785
|
+
--pf-c-list__item-icon--MarginRight: var(--pf-global--spacer--sm);
|
|
10786
|
+
--pf-c-list__item-icon--Color: var(--pf-global--icon--Color--light);
|
|
10787
|
+
--pf-c-list__item-icon--FontSize: var(--pf-global--icon--FontSize--sm);
|
|
10788
|
+
--pf-c-list--m-icon-lg__item-icon--MinWidth: var(--pf-global--icon--FontSize--lg);
|
|
10789
|
+
--pf-c-list--m-icon-lg__item-icon--MarginRight: var(--pf-global--spacer--md);
|
|
10790
|
+
--pf-c-list--m-icon-lg__item-icon--FontSize: var(--pf-global--icon--FontSize--lg);
|
|
10791
|
+
padding-left: var(--pf-c-list--PaddingLeft);
|
|
10792
|
+
}
|
|
10793
|
+
|
|
10794
|
+
.pf-c-list ol,
|
|
10795
|
+
.pf-c-list ul {
|
|
10796
|
+
margin-top: var(--pf-c-list--nested--MarginTop);
|
|
10797
|
+
margin-left: var(--pf-c-list--nested--MarginLeft);
|
|
10798
|
+
}
|
|
10799
|
+
|
|
10800
|
+
.pf-c-list li + li {
|
|
10801
|
+
margin-top: var(--pf-c-list--li--MarginTop);
|
|
10802
|
+
}
|
|
10803
|
+
|
|
10804
|
+
ul.pf-c-list {
|
|
10805
|
+
list-style: var(--pf-c-list--ul--ListStyle);
|
|
10806
|
+
}
|
|
10807
|
+
|
|
10808
|
+
.pf-c-list .pf-c-list__item {
|
|
10809
|
+
display: flex;
|
|
10810
|
+
}
|
|
10811
|
+
|
|
10812
|
+
.pf-c-list .pf-c-list__item-icon {
|
|
10813
|
+
flex-shrink: 0;
|
|
10814
|
+
min-width: var(--pf-c-list__item-icon--MinWidth);
|
|
10815
|
+
margin-top: var(--pf-c-list__item-icon--MarginTop);
|
|
10816
|
+
margin-right: var(--pf-c-list__item-icon--MarginRight);
|
|
10817
|
+
font-size: var(--pf-c-list__item-icon--FontSize);
|
|
10818
|
+
line-height: 1;
|
|
10819
|
+
color: var(--pf-c-list__item-icon--Color);
|
|
10820
|
+
}
|
|
10821
|
+
|
|
10822
|
+
.pf-c-list.pf-m-icon-lg {
|
|
10823
|
+
--pf-c-list__item-icon--MinWidth: var(--pf-c-list--m-icon-lg__item-icon--MinWidth);
|
|
10824
|
+
--pf-c-list__item-icon--MarginTop: 0;
|
|
10825
|
+
--pf-c-list__item-icon--MarginRight: var(--pf-c-list--m-icon-lg__item-icon--MarginRight);
|
|
10826
|
+
--pf-c-list__item-icon--FontSize: var(--pf-c-list--m-icon-lg__item-icon--FontSize);
|
|
10827
|
+
}
|
|
10828
|
+
|
|
10829
|
+
.pf-c-list.pf-m-plain {
|
|
10830
|
+
--pf-c-list--PaddingLeft: 0;
|
|
10831
|
+
list-style: none;
|
|
10832
|
+
}
|
|
10833
|
+
|
|
10834
|
+
.pf-c-list.pf-m-inline {
|
|
10835
|
+
--pf-c-list--PaddingLeft: 0;
|
|
10836
|
+
display: flex;
|
|
10837
|
+
flex-wrap: wrap;
|
|
10838
|
+
list-style: none;
|
|
10839
|
+
}
|
|
10840
|
+
|
|
10841
|
+
.pf-c-list.pf-m-inline li {
|
|
10842
|
+
--pf-c-list--li--MarginTop: 0;
|
|
10843
|
+
}
|
|
10844
|
+
|
|
10845
|
+
.pf-c-list.pf-m-inline li:not(:last-child) {
|
|
10846
|
+
margin-right: var(--pf-c-list--m-inline--li--MarginRight);
|
|
10847
|
+
}
|
|
10848
|
+
|
|
10849
|
+
.pf-c-list.pf-m-bordered > * {
|
|
10850
|
+
padding-bottom: var(--pf-c-list--m-bordered--li--PaddingBottom);
|
|
10851
|
+
border-bottom: var(--pf-c-list--m-bordered--li--BorderBottomWidth) solid var(--pf-c-list--m-bordered--li--BorderBottomColor);
|
|
10852
|
+
}
|
|
10853
|
+
|
|
10854
|
+
.pf-c-list.pf-m-bordered > :last-child {
|
|
10855
|
+
--pf-c-list--m-bordered--li--PaddingBottom: 0;
|
|
10856
|
+
--pf-c-list--m-bordered--li--BorderBottomWidth: 0;
|
|
10857
|
+
}
|
|
10858
|
+
|
|
10859
10859
|
.pf-c-login__footer, .pf-c-login__header {
|
|
10860
10860
|
--pf-global--Color--100: var(--pf-global--Color--light-100);
|
|
10861
10861
|
--pf-global--Color--200: var(--pf-global--Color--light-200);
|