@patternfly/react-core 4.205.0 → 4.206.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/CHANGELOG.md +27 -0
- package/dist/esm/components/HelperText/HelperText.d.ts +9 -0
- package/dist/esm/components/HelperText/HelperText.d.ts.map +1 -1
- package/dist/esm/components/HelperText/HelperText.js +2 -2
- package/dist/esm/components/HelperText/HelperText.js.map +1 -1
- package/dist/esm/components/HelperText/HelperTextItem.d.ts +9 -1
- package/dist/esm/components/HelperText/HelperTextItem.d.ts.map +1 -1
- package/dist/esm/components/HelperText/HelperTextItem.js +2 -2
- package/dist/esm/components/HelperText/HelperTextItem.js.map +1 -1
- package/dist/js/components/HelperText/HelperText.d.ts +9 -0
- package/dist/js/components/HelperText/HelperText.d.ts.map +1 -1
- package/dist/js/components/HelperText/HelperText.js +2 -2
- package/dist/js/components/HelperText/HelperText.js.map +1 -1
- package/dist/js/components/HelperText/HelperTextItem.d.ts +9 -1
- package/dist/js/components/HelperText/HelperTextItem.d.ts.map +1 -1
- package/dist/js/components/HelperText/HelperTextItem.js +2 -2
- package/dist/js/components/HelperText/HelperTextItem.js.map +1 -1
- package/dist/umd/react-core.css +179 -12
- package/dist/umd/react-core.js +18 -5
- package/dist/umd/react-core.min.css +332 -165
- package/dist/umd/react-core.min.js +3 -3
- package/package.json +6 -6
- package/src/components/HelperText/HelperText.tsx +17 -1
- package/src/components/HelperText/HelperTextItem.tsx +11 -1
- package/src/demos/HelperText.md +48 -0
- package/src/demos/examples/HelperText/HelperTextDynamicVariantStaticText.tsx +71 -0
- package/src/demos/examples/HelperText/HelperTextStaticVariantDynamicText.tsx +47 -0
- package/src/demos/examples/HelperText/HelperTextStaticVariantStaticText.tsx +30 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.206.1 (2022-04-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# 4.206.0 (2022-04-19)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **HelperText:** add react demos ([#7250](https://github.com/patternfly/patternfly-react/issues/7250)) ([bf68976](https://github.com/patternfly/patternfly-react/commit/bf68976bebd683c935f587795a868c32ea8c5616))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## 4.205.1 (2022-04-19)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @patternfly/react-core
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# 4.205.0 (2022-04-18)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -6,6 +6,15 @@ export interface HelperTextProps extends React.HTMLProps<HTMLDivElement | HTMLUL
|
|
|
6
6
|
className?: string;
|
|
7
7
|
/** Component type of the helper text container */
|
|
8
8
|
component?: 'div' | 'ul';
|
|
9
|
+
/** ID for the helper text container. The value of this prop can be passed into a form component's
|
|
10
|
+
* aria-describedby prop when you intend for all helper text items to be announced to
|
|
11
|
+
* assistive technologies.
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/** Flag for indicating whether the helper text container is a live region. Use this prop when you
|
|
15
|
+
* expect or intend for any helper text items within the container to be dynamically updated.
|
|
16
|
+
*/
|
|
17
|
+
isLiveRegion?: boolean;
|
|
9
18
|
}
|
|
10
19
|
export declare const HelperText: React.FunctionComponent<HelperTextProps>;
|
|
11
20
|
//# sourceMappingURL=HelperText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelperText.d.ts","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,gBAAgB,CAAC;IACzF,yDAAyD;IACzD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"HelperText.d.ts","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,gBAAgB,CAAC;IACzF,yDAAyD;IACzD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACzB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAmB/D,CAAC"}
|
|
@@ -3,9 +3,9 @@ import * as React from 'react';
|
|
|
3
3
|
import styles from '@patternfly/react-styles/css/components/HelperText/helper-text';
|
|
4
4
|
import { css } from '@patternfly/react-styles';
|
|
5
5
|
export const HelperText = (_a) => {
|
|
6
|
-
var { children, className, component = 'div' } = _a, props = __rest(_a, ["children", "className", "component"]);
|
|
6
|
+
var { children, className, component = 'div', id, isLiveRegion = false } = _a, props = __rest(_a, ["children", "className", "component", "id", "isLiveRegion"]);
|
|
7
7
|
const Component = component;
|
|
8
|
-
return (React.createElement(Component, Object.assign({ className: css(styles.helperText, className) }, props), children));
|
|
8
|
+
return (React.createElement(Component, Object.assign({ id: id, className: css(styles.helperText, className) }, (isLiveRegion && { 'aria-live': 'polite' }), props), children));
|
|
9
9
|
};
|
|
10
10
|
HelperText.displayName = 'HelperText';
|
|
11
11
|
//# sourceMappingURL=HelperText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelperText.js","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperText.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,gEAAgE,CAAC;AACpF,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"HelperText.js","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperText.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,gEAAgE,CAAC;AACpF,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAoB/C,MAAM,CAAC,MAAM,UAAU,GAA6C,CAAC,EAOnD,EAAE,EAAE;QAP+C,EACnE,QAAQ,EACR,SAAS,EACT,SAAS,GAAG,KAAK,EACjB,EAAE,EACF,YAAY,GAAG,KAAK,OAEJ,EADb,KAAK,cAN2D,4DAOpE,CADS;IAER,MAAM,SAAS,GAAG,SAAgB,CAAC;IACnC,OAAO,CACL,oBAAC,SAAS,kBACR,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,IACxC,CAAC,YAAY,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,EAC3C,KAAK,GAER,QAAQ,CACC,CACb,CAAC;AACJ,CAAC,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
|
|
@@ -10,10 +10,18 @@ export interface HelperTextItemProps extends React.HTMLProps<HTMLDivElement | HT
|
|
|
10
10
|
variant?: 'default' | 'indeterminate' | 'warning' | 'success' | 'error';
|
|
11
11
|
/** Custom icon prefixing the helper text. This property will override the default icon paired with each helper text variant. */
|
|
12
12
|
icon?: React.ReactNode;
|
|
13
|
-
/** Flag indicating the helper text item is dynamic.
|
|
13
|
+
/** Flag indicating the helper text item is dynamic. This prop should be used when the
|
|
14
|
+
* text content of the helper text item will never change, but the icon and styling will
|
|
15
|
+
* be dynamically updated via the `variant` prop.
|
|
16
|
+
*/
|
|
14
17
|
isDynamic?: boolean;
|
|
15
18
|
/** Flag indicating the helper text should have an icon. Dynamic helper texts include icons by default while static helper texts do not. */
|
|
16
19
|
hasIcon?: boolean;
|
|
20
|
+
/** ID for the helper text item. The value of this prop can be passed into a form component's
|
|
21
|
+
* aria-describedby prop when you intend for only specific helper text items to be announced to
|
|
22
|
+
* assistive technologies.
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
17
25
|
}
|
|
18
26
|
export declare const HelperTextItem: React.FunctionComponent<HelperTextItemProps>;
|
|
19
27
|
//# sourceMappingURL=HelperTextItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelperTextItem.d.ts","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperTextItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,aAAa,CAAC;IAC1F,oDAAoD;IACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACzB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,SAAS,GAAG,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACxE,gIAAgI;IAChI,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB
|
|
1
|
+
{"version":3,"file":"HelperTextItem.d.ts","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperTextItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,aAAa,CAAC;IAC1F,oDAAoD;IACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACzB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,SAAS,GAAG,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACxE,gIAAgI;IAChI,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2IAA2I;IAC3I,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAUD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CAkCvE,CAAC"}
|
|
@@ -14,9 +14,9 @@ const variantStyle = {
|
|
|
14
14
|
error: styles.modifiers.error
|
|
15
15
|
};
|
|
16
16
|
export const HelperTextItem = (_a) => {
|
|
17
|
-
var { children, className, component = 'div', variant = 'default', icon, isDynamic = false, hasIcon = isDynamic } = _a, props = __rest(_a, ["children", "className", "component", "variant", "icon", "isDynamic", "hasIcon"]);
|
|
17
|
+
var { children, className, component = 'div', variant = 'default', icon, isDynamic = false, hasIcon = isDynamic, id } = _a, props = __rest(_a, ["children", "className", "component", "variant", "icon", "isDynamic", "hasIcon", "id"]);
|
|
18
18
|
const Component = component;
|
|
19
|
-
return (React.createElement(Component, Object.assign({ className: css(styles.helperTextItem, variantStyle[variant], isDynamic && styles.modifiers.dynamic, className) }, props),
|
|
19
|
+
return (React.createElement(Component, Object.assign({ className: css(styles.helperTextItem, variantStyle[variant], isDynamic && styles.modifiers.dynamic, className), id: id }, props),
|
|
20
20
|
icon && (React.createElement("span", { className: css(styles.helperTextItemIcon), "aria-hidden": true }, icon)),
|
|
21
21
|
hasIcon && !icon && (React.createElement("span", { className: css(styles.helperTextItemIcon), "aria-hidden": true },
|
|
22
22
|
(variant === 'default' || variant === 'indeterminate') && React.createElement(MinusIcon, null),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelperTextItem.js","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperTextItem.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,gEAAgE,CAAC;AACpF,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,SAAS,MAAM,mDAAmD,CAAC;AAC1E,OAAO,uBAAuB,MAAM,kEAAkE,CAAC;AACvG,OAAO,eAAe,MAAM,0DAA0D,CAAC;AACvF,OAAO,qBAAqB,MAAM,gEAAgE,CAAC;
|
|
1
|
+
{"version":3,"file":"HelperTextItem.js","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperTextItem.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,gEAAgE,CAAC;AACpF,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,SAAS,MAAM,mDAAmD,CAAC;AAC1E,OAAO,uBAAuB,MAAM,kEAAkE,CAAC;AACvG,OAAO,eAAe,MAAM,0DAA0D,CAAC;AACvF,OAAO,qBAAqB,MAAM,gEAAgE,CAAC;AA2BnG,MAAM,YAAY,GAAG;IACnB,OAAO,EAAE,EAAE;IACX,aAAa,EAAE,MAAM,CAAC,SAAS,CAAC,aAAa;IAC7C,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO;IACjC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO;IACjC,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAiD,CAAC,EAUvD,EAAE,EAAE;QAVmD,EAC3E,QAAQ,EACR,SAAS,EACT,SAAS,GAAG,KAAK,EACjB,OAAO,GAAG,SAAS,EACnB,IAAI,EACJ,SAAS,GAAG,KAAK,EACjB,OAAO,GAAG,SAAS,EACnB,EAAE,OAEkB,EADjB,KAAK,cATmE,uFAU5E,CADS;IAER,MAAM,SAAS,GAAG,SAAgB,CAAC;IACnC,OAAO,CACL,oBAAC,SAAS,kBACR,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC,EAC9G,EAAE,EAAE,EAAE,IACF,KAAK;QAER,IAAI,IAAI,CACP,8BAAM,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,kBAAkB,CAAC,yBAC5C,IAAI,CACA,CACR;QACA,OAAO,IAAI,CAAC,IAAI,IAAI,CACnB,8BAAM,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,kBAAkB,CAAC;YAC5C,CAAC,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,eAAe,CAAC,IAAI,oBAAC,SAAS,OAAG;YACvE,OAAO,KAAK,SAAS,IAAI,oBAAC,uBAAuB,OAAG;YACpD,OAAO,KAAK,SAAS,IAAI,oBAAC,eAAe,OAAG;YAC5C,OAAO,KAAK,OAAO,IAAI,oBAAC,qBAAqB,OAAG,CAC5C,CACR;QACD,8BAAM,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,kBAAkB,CAAC,IAAG,QAAQ,CAAQ,CACxD,CACb,CAAC;AACJ,CAAC,CAAC;AACF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC"}
|
|
@@ -6,6 +6,15 @@ export interface HelperTextProps extends React.HTMLProps<HTMLDivElement | HTMLUL
|
|
|
6
6
|
className?: string;
|
|
7
7
|
/** Component type of the helper text container */
|
|
8
8
|
component?: 'div' | 'ul';
|
|
9
|
+
/** ID for the helper text container. The value of this prop can be passed into a form component's
|
|
10
|
+
* aria-describedby prop when you intend for all helper text items to be announced to
|
|
11
|
+
* assistive technologies.
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/** Flag for indicating whether the helper text container is a live region. Use this prop when you
|
|
15
|
+
* expect or intend for any helper text items within the container to be dynamically updated.
|
|
16
|
+
*/
|
|
17
|
+
isLiveRegion?: boolean;
|
|
9
18
|
}
|
|
10
19
|
export declare const HelperText: React.FunctionComponent<HelperTextProps>;
|
|
11
20
|
//# sourceMappingURL=HelperText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelperText.d.ts","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,gBAAgB,CAAC;IACzF,yDAAyD;IACzD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"HelperText.d.ts","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,gBAAgB,CAAC;IACzF,yDAAyD;IACzD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACzB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAmB/D,CAAC"}
|
|
@@ -6,9 +6,9 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const helper_text_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/HelperText/helper-text"));
|
|
7
7
|
const react_styles_1 = require("@patternfly/react-styles");
|
|
8
8
|
const HelperText = (_a) => {
|
|
9
|
-
var { children, className, component = 'div' } = _a, props = tslib_1.__rest(_a, ["children", "className", "component"]);
|
|
9
|
+
var { children, className, component = 'div', id, isLiveRegion = false } = _a, props = tslib_1.__rest(_a, ["children", "className", "component", "id", "isLiveRegion"]);
|
|
10
10
|
const Component = component;
|
|
11
|
-
return (React.createElement(Component, Object.assign({ className: react_styles_1.css(helper_text_1.default.helperText, className) }, props), children));
|
|
11
|
+
return (React.createElement(Component, Object.assign({ id: id, className: react_styles_1.css(helper_text_1.default.helperText, className) }, (isLiveRegion && { 'aria-live': 'polite' }), props), children));
|
|
12
12
|
};
|
|
13
13
|
exports.HelperText = HelperText;
|
|
14
14
|
exports.HelperText.displayName = 'HelperText';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelperText.js","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperText.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,yHAAoF;AACpF,2DAA+C;
|
|
1
|
+
{"version":3,"file":"HelperText.js","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperText.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,yHAAoF;AACpF,2DAA+C;AAoBxC,MAAM,UAAU,GAA6C,CAAC,EAOnD,EAAE,EAAE;QAP+C,EACnE,QAAQ,EACR,SAAS,EACT,SAAS,GAAG,KAAK,EACjB,EAAE,EACF,YAAY,GAAG,KAAK,OAEJ,EADb,KAAK,sBAN2D,4DAOpE,CADS;IAER,MAAM,SAAS,GAAG,SAAgB,CAAC;IACnC,OAAO,CACL,oBAAC,SAAS,kBACR,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,kBAAG,CAAC,qBAAM,CAAC,UAAU,EAAE,SAAS,CAAC,IACxC,CAAC,YAAY,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,EAC3C,KAAK,GAER,QAAQ,CACC,CACb,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,UAAU,cAmBrB;AACF,kBAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
|
|
@@ -10,10 +10,18 @@ export interface HelperTextItemProps extends React.HTMLProps<HTMLDivElement | HT
|
|
|
10
10
|
variant?: 'default' | 'indeterminate' | 'warning' | 'success' | 'error';
|
|
11
11
|
/** Custom icon prefixing the helper text. This property will override the default icon paired with each helper text variant. */
|
|
12
12
|
icon?: React.ReactNode;
|
|
13
|
-
/** Flag indicating the helper text item is dynamic.
|
|
13
|
+
/** Flag indicating the helper text item is dynamic. This prop should be used when the
|
|
14
|
+
* text content of the helper text item will never change, but the icon and styling will
|
|
15
|
+
* be dynamically updated via the `variant` prop.
|
|
16
|
+
*/
|
|
14
17
|
isDynamic?: boolean;
|
|
15
18
|
/** Flag indicating the helper text should have an icon. Dynamic helper texts include icons by default while static helper texts do not. */
|
|
16
19
|
hasIcon?: boolean;
|
|
20
|
+
/** ID for the helper text item. The value of this prop can be passed into a form component's
|
|
21
|
+
* aria-describedby prop when you intend for only specific helper text items to be announced to
|
|
22
|
+
* assistive technologies.
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
17
25
|
}
|
|
18
26
|
export declare const HelperTextItem: React.FunctionComponent<HelperTextItemProps>;
|
|
19
27
|
//# sourceMappingURL=HelperTextItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelperTextItem.d.ts","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperTextItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,aAAa,CAAC;IAC1F,oDAAoD;IACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACzB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,SAAS,GAAG,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACxE,gIAAgI;IAChI,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB
|
|
1
|
+
{"version":3,"file":"HelperTextItem.d.ts","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperTextItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,aAAa,CAAC;IAC1F,oDAAoD;IACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACzB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,SAAS,GAAG,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACxE,gIAAgI;IAChI,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2IAA2I;IAC3I,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAUD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CAkCvE,CAAC"}
|
|
@@ -17,9 +17,9 @@ const variantStyle = {
|
|
|
17
17
|
error: helper_text_1.default.modifiers.error
|
|
18
18
|
};
|
|
19
19
|
const HelperTextItem = (_a) => {
|
|
20
|
-
var { children, className, component = 'div', variant = 'default', icon, isDynamic = false, hasIcon = isDynamic } = _a, props = tslib_1.__rest(_a, ["children", "className", "component", "variant", "icon", "isDynamic", "hasIcon"]);
|
|
20
|
+
var { children, className, component = 'div', variant = 'default', icon, isDynamic = false, hasIcon = isDynamic, id } = _a, props = tslib_1.__rest(_a, ["children", "className", "component", "variant", "icon", "isDynamic", "hasIcon", "id"]);
|
|
21
21
|
const Component = component;
|
|
22
|
-
return (React.createElement(Component, Object.assign({ className: react_styles_1.css(helper_text_1.default.helperTextItem, variantStyle[variant], isDynamic && helper_text_1.default.modifiers.dynamic, className) }, props),
|
|
22
|
+
return (React.createElement(Component, Object.assign({ className: react_styles_1.css(helper_text_1.default.helperTextItem, variantStyle[variant], isDynamic && helper_text_1.default.modifiers.dynamic, className), id: id }, props),
|
|
23
23
|
icon && (React.createElement("span", { className: react_styles_1.css(helper_text_1.default.helperTextItemIcon), "aria-hidden": true }, icon)),
|
|
24
24
|
hasIcon && !icon && (React.createElement("span", { className: react_styles_1.css(helper_text_1.default.helperTextItemIcon), "aria-hidden": true },
|
|
25
25
|
(variant === 'default' || variant === 'indeterminate') && React.createElement(minus_icon_1.default, null),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelperTextItem.js","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperTextItem.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,yHAAoF;AACpF,2DAA+C;AAC/C,0GAA0E;AAC1E,wIAAuG;AACvG,wHAAuF;AACvF,oIAAmG;
|
|
1
|
+
{"version":3,"file":"HelperTextItem.js","sourceRoot":"","sources":["../../../../src/components/HelperText/HelperTextItem.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,yHAAoF;AACpF,2DAA+C;AAC/C,0GAA0E;AAC1E,wIAAuG;AACvG,wHAAuF;AACvF,oIAAmG;AA2BnG,MAAM,YAAY,GAAG;IACnB,OAAO,EAAE,EAAE;IACX,aAAa,EAAE,qBAAM,CAAC,SAAS,CAAC,aAAa;IAC7C,OAAO,EAAE,qBAAM,CAAC,SAAS,CAAC,OAAO;IACjC,OAAO,EAAE,qBAAM,CAAC,SAAS,CAAC,OAAO;IACjC,KAAK,EAAE,qBAAM,CAAC,SAAS,CAAC,KAAK;CAC9B,CAAC;AAEK,MAAM,cAAc,GAAiD,CAAC,EAUvD,EAAE,EAAE;QAVmD,EAC3E,QAAQ,EACR,SAAS,EACT,SAAS,GAAG,KAAK,EACjB,OAAO,GAAG,SAAS,EACnB,IAAI,EACJ,SAAS,GAAG,KAAK,EACjB,OAAO,GAAG,SAAS,EACnB,EAAE,OAEkB,EADjB,KAAK,sBATmE,uFAU5E,CADS;IAER,MAAM,SAAS,GAAG,SAAgB,CAAC;IACnC,OAAO,CACL,oBAAC,SAAS,kBACR,SAAS,EAAE,kBAAG,CAAC,qBAAM,CAAC,cAAc,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,SAAS,IAAI,qBAAM,CAAC,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC,EAC9G,EAAE,EAAE,EAAE,IACF,KAAK;QAER,IAAI,IAAI,CACP,8BAAM,SAAS,EAAE,kBAAG,CAAC,qBAAM,CAAC,kBAAkB,CAAC,yBAC5C,IAAI,CACA,CACR;QACA,OAAO,IAAI,CAAC,IAAI,IAAI,CACnB,8BAAM,SAAS,EAAE,kBAAG,CAAC,qBAAM,CAAC,kBAAkB,CAAC;YAC5C,CAAC,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,eAAe,CAAC,IAAI,oBAAC,oBAAS,OAAG;YACvE,OAAO,KAAK,SAAS,IAAI,oBAAC,mCAAuB,OAAG;YACpD,OAAO,KAAK,SAAS,IAAI,oBAAC,2BAAe,OAAG;YAC5C,OAAO,KAAK,OAAO,IAAI,oBAAC,iCAAqB,OAAG,CAC5C,CACR;QACD,8BAAM,SAAS,EAAE,kBAAG,CAAC,qBAAM,CAAC,kBAAkB,CAAC,IAAG,QAAQ,CAAQ,CACxD,CACb,CAAC;AACJ,CAAC,CAAC;AAlCW,QAAA,cAAc,kBAkCzB;AACF,sBAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC"}
|
package/dist/umd/react-core.css
CHANGED
|
@@ -5616,27 +5616,45 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
5616
5616
|
}
|
|
5617
5617
|
}
|
|
5618
5618
|
.pf-c-divider {
|
|
5619
|
-
--pf-c-divider--
|
|
5619
|
+
--pf-c-divider--BorderWidth--base: var(--pf-global--BorderWidth--sm);
|
|
5620
|
+
--pf-c-divider--BorderColor--base: var(--pf-c-divider--BackgroundColor);
|
|
5621
|
+
--pf-c-divider--Height: var(--pf-c-divider--BorderWidth--base);
|
|
5620
5622
|
--pf-c-divider--BackgroundColor: var(--pf-global--BorderColor--100);
|
|
5621
|
-
--pf-c-divider--after--
|
|
5622
|
-
--pf-c-divider--after--BackgroundColor: var(--pf-c-divider--BackgroundColor);
|
|
5623
|
-
--pf-c-divider--Display: flex;
|
|
5623
|
+
--pf-c-divider--after--BackgroundColor: var(--pf-c-divider--BorderColor--base);
|
|
5624
5624
|
--pf-c-divider--after--FlexBasis: 100%;
|
|
5625
5625
|
--pf-c-divider--after--Inset: 0%;
|
|
5626
5626
|
--pf-c-divider--m-vertical--after--FlexBasis: 100%;
|
|
5627
|
-
--pf-c-divider--m-
|
|
5627
|
+
--pf-c-divider--m-horizontal--Display: flex;
|
|
5628
|
+
--pf-c-divider--m-horizontal--FlexDirection: row;
|
|
5629
|
+
--pf-c-divider--m-horizontal--after--Height: var(--pf-c-divider--Height);
|
|
5630
|
+
--pf-c-divider--m-horizontal--after--Width: auto;
|
|
5631
|
+
--pf-c-divider--m-vertical--Display: inline-flex;
|
|
5632
|
+
--pf-c-divider--m-vertical--FlexDirection: column;
|
|
5633
|
+
--pf-c-divider--m-vertical--after--Height: auto;
|
|
5634
|
+
--pf-c-divider--m-vertical--after--Width: var(--pf-c-divider--BorderWidth--base);
|
|
5628
5635
|
--pf-hidden-visible--visible--Display: var(--pf-c-divider--Display);
|
|
5636
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-horizontal--Display);
|
|
5637
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-horizontal--FlexDirection);
|
|
5638
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-horizontal--after--Width);
|
|
5639
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-horizontal--after--Height);
|
|
5640
|
+
width: 100%;
|
|
5641
|
+
height: auto;
|
|
5642
|
+
display: var(--pf-c-divider--Display);
|
|
5643
|
+
flex-direction: var(--pf-c-divider--FlexDirection);
|
|
5629
5644
|
align-items: center;
|
|
5630
5645
|
align-self: stretch;
|
|
5631
5646
|
flex-shrink: 0;
|
|
5632
5647
|
justify-content: center;
|
|
5633
|
-
width: 100%;
|
|
5634
5648
|
border: 0;
|
|
5635
5649
|
}
|
|
5636
5650
|
|
|
5637
5651
|
.pf-c-divider::after {
|
|
5638
5652
|
flex-basis: calc(var(--pf-c-divider--after--FlexBasis) - var(--pf-c-divider--after--Inset) * 2);
|
|
5653
|
+
}
|
|
5654
|
+
|
|
5655
|
+
.pf-c-divider::after {
|
|
5639
5656
|
align-self: stretch;
|
|
5657
|
+
width: var(--pf-c-divider--after--Width);
|
|
5640
5658
|
height: var(--pf-c-divider--after--Height);
|
|
5641
5659
|
content: "";
|
|
5642
5660
|
background-color: var(--pf-c-divider--after--BackgroundColor);
|
|
@@ -5644,17 +5662,16 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
5644
5662
|
}
|
|
5645
5663
|
|
|
5646
5664
|
.pf-c-divider.pf-m-vertical {
|
|
5647
|
-
|
|
5648
|
-
|
|
5665
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-vertical--Display);
|
|
5666
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-vertical--FlexDirection);
|
|
5667
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-vertical--after--Width);
|
|
5668
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-vertical--after--Height);
|
|
5649
5669
|
width: auto;
|
|
5650
5670
|
height: inherit;
|
|
5651
|
-
min-height: 100%;
|
|
5652
|
-
max-height: 100%;
|
|
5653
5671
|
}
|
|
5654
5672
|
|
|
5655
5673
|
.pf-c-divider.pf-m-vertical::after {
|
|
5656
5674
|
flex-basis: calc(var(--pf-c-divider--m-vertical--after--FlexBasis) - var(--pf-c-divider--after--Inset));
|
|
5657
|
-
width: var(--pf-c-divider--m-vertical--after--Width);
|
|
5658
5675
|
}
|
|
5659
5676
|
|
|
5660
5677
|
.pf-c-divider.pf-m-inset-none {
|
|
@@ -5689,6 +5706,34 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
5689
5706
|
--pf-c-divider--after--Inset: var(--pf-global--spacer--3xl);
|
|
5690
5707
|
}
|
|
5691
5708
|
|
|
5709
|
+
@media (min-width: 576px) {
|
|
5710
|
+
.pf-c-divider.pf-m-horizontal-on-sm {
|
|
5711
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-horizontal--Display);
|
|
5712
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-horizontal--FlexDirection);
|
|
5713
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-horizontal--after--Width);
|
|
5714
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-horizontal--after--Height);
|
|
5715
|
+
width: 100%;
|
|
5716
|
+
height: auto;
|
|
5717
|
+
}
|
|
5718
|
+
|
|
5719
|
+
.pf-c-divider.pf-m-horizontal-on-sm::after {
|
|
5720
|
+
flex-basis: calc(var(--pf-c-divider--after--FlexBasis) - var(--pf-c-divider--after--Inset) * 2);
|
|
5721
|
+
}
|
|
5722
|
+
}
|
|
5723
|
+
@media (min-width: 576px) {
|
|
5724
|
+
.pf-c-divider.pf-m-vertical-on-sm {
|
|
5725
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-vertical--Display);
|
|
5726
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-vertical--FlexDirection);
|
|
5727
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-vertical--after--Width);
|
|
5728
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-vertical--after--Height);
|
|
5729
|
+
width: auto;
|
|
5730
|
+
height: inherit;
|
|
5731
|
+
}
|
|
5732
|
+
|
|
5733
|
+
.pf-c-divider.pf-m-vertical-on-sm::after {
|
|
5734
|
+
flex-basis: calc(var(--pf-c-divider--m-vertical--after--FlexBasis) - var(--pf-c-divider--after--Inset));
|
|
5735
|
+
}
|
|
5736
|
+
}
|
|
5692
5737
|
@media (min-width: 576px) {
|
|
5693
5738
|
.pf-c-divider.pf-m-inset-none-on-sm {
|
|
5694
5739
|
--pf-c-divider--after--Inset: 0%;
|
|
@@ -5722,6 +5767,34 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
5722
5767
|
--pf-c-divider--after--Inset: var(--pf-global--spacer--3xl);
|
|
5723
5768
|
}
|
|
5724
5769
|
}
|
|
5770
|
+
@media (min-width: 768px) {
|
|
5771
|
+
.pf-c-divider.pf-m-horizontal-on-md {
|
|
5772
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-horizontal--Display);
|
|
5773
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-horizontal--FlexDirection);
|
|
5774
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-horizontal--after--Width);
|
|
5775
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-horizontal--after--Height);
|
|
5776
|
+
width: 100%;
|
|
5777
|
+
height: auto;
|
|
5778
|
+
}
|
|
5779
|
+
|
|
5780
|
+
.pf-c-divider.pf-m-horizontal-on-md::after {
|
|
5781
|
+
flex-basis: calc(var(--pf-c-divider--after--FlexBasis) - var(--pf-c-divider--after--Inset) * 2);
|
|
5782
|
+
}
|
|
5783
|
+
}
|
|
5784
|
+
@media (min-width: 768px) {
|
|
5785
|
+
.pf-c-divider.pf-m-vertical-on-md {
|
|
5786
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-vertical--Display);
|
|
5787
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-vertical--FlexDirection);
|
|
5788
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-vertical--after--Width);
|
|
5789
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-vertical--after--Height);
|
|
5790
|
+
width: auto;
|
|
5791
|
+
height: inherit;
|
|
5792
|
+
}
|
|
5793
|
+
|
|
5794
|
+
.pf-c-divider.pf-m-vertical-on-md::after {
|
|
5795
|
+
flex-basis: calc(var(--pf-c-divider--m-vertical--after--FlexBasis) - var(--pf-c-divider--after--Inset));
|
|
5796
|
+
}
|
|
5797
|
+
}
|
|
5725
5798
|
@media (min-width: 768px) {
|
|
5726
5799
|
.pf-c-divider.pf-m-inset-none-on-md {
|
|
5727
5800
|
--pf-c-divider--after--Inset: 0%;
|
|
@@ -5755,6 +5828,34 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
5755
5828
|
--pf-c-divider--after--Inset: var(--pf-global--spacer--3xl);
|
|
5756
5829
|
}
|
|
5757
5830
|
}
|
|
5831
|
+
@media (min-width: 992px) {
|
|
5832
|
+
.pf-c-divider.pf-m-horizontal-on-lg {
|
|
5833
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-horizontal--Display);
|
|
5834
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-horizontal--FlexDirection);
|
|
5835
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-horizontal--after--Width);
|
|
5836
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-horizontal--after--Height);
|
|
5837
|
+
width: 100%;
|
|
5838
|
+
height: auto;
|
|
5839
|
+
}
|
|
5840
|
+
|
|
5841
|
+
.pf-c-divider.pf-m-horizontal-on-lg::after {
|
|
5842
|
+
flex-basis: calc(var(--pf-c-divider--after--FlexBasis) - var(--pf-c-divider--after--Inset) * 2);
|
|
5843
|
+
}
|
|
5844
|
+
}
|
|
5845
|
+
@media (min-width: 992px) {
|
|
5846
|
+
.pf-c-divider.pf-m-vertical-on-lg {
|
|
5847
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-vertical--Display);
|
|
5848
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-vertical--FlexDirection);
|
|
5849
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-vertical--after--Width);
|
|
5850
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-vertical--after--Height);
|
|
5851
|
+
width: auto;
|
|
5852
|
+
height: inherit;
|
|
5853
|
+
}
|
|
5854
|
+
|
|
5855
|
+
.pf-c-divider.pf-m-vertical-on-lg::after {
|
|
5856
|
+
flex-basis: calc(var(--pf-c-divider--m-vertical--after--FlexBasis) - var(--pf-c-divider--after--Inset));
|
|
5857
|
+
}
|
|
5858
|
+
}
|
|
5758
5859
|
@media (min-width: 992px) {
|
|
5759
5860
|
.pf-c-divider.pf-m-inset-none-on-lg {
|
|
5760
5861
|
--pf-c-divider--after--Inset: 0%;
|
|
@@ -5788,6 +5889,34 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
5788
5889
|
--pf-c-divider--after--Inset: var(--pf-global--spacer--3xl);
|
|
5789
5890
|
}
|
|
5790
5891
|
}
|
|
5892
|
+
@media (min-width: 1200px) {
|
|
5893
|
+
.pf-c-divider.pf-m-horizontal-on-xl {
|
|
5894
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-horizontal--Display);
|
|
5895
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-horizontal--FlexDirection);
|
|
5896
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-horizontal--after--Width);
|
|
5897
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-horizontal--after--Height);
|
|
5898
|
+
width: 100%;
|
|
5899
|
+
height: auto;
|
|
5900
|
+
}
|
|
5901
|
+
|
|
5902
|
+
.pf-c-divider.pf-m-horizontal-on-xl::after {
|
|
5903
|
+
flex-basis: calc(var(--pf-c-divider--after--FlexBasis) - var(--pf-c-divider--after--Inset) * 2);
|
|
5904
|
+
}
|
|
5905
|
+
}
|
|
5906
|
+
@media (min-width: 1200px) {
|
|
5907
|
+
.pf-c-divider.pf-m-vertical-on-xl {
|
|
5908
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-vertical--Display);
|
|
5909
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-vertical--FlexDirection);
|
|
5910
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-vertical--after--Width);
|
|
5911
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-vertical--after--Height);
|
|
5912
|
+
width: auto;
|
|
5913
|
+
height: inherit;
|
|
5914
|
+
}
|
|
5915
|
+
|
|
5916
|
+
.pf-c-divider.pf-m-vertical-on-xl::after {
|
|
5917
|
+
flex-basis: calc(var(--pf-c-divider--m-vertical--after--FlexBasis) - var(--pf-c-divider--after--Inset));
|
|
5918
|
+
}
|
|
5919
|
+
}
|
|
5791
5920
|
@media (min-width: 1200px) {
|
|
5792
5921
|
.pf-c-divider.pf-m-inset-none-on-xl {
|
|
5793
5922
|
--pf-c-divider--after--Inset: 0%;
|
|
@@ -5821,6 +5950,34 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
5821
5950
|
--pf-c-divider--after--Inset: var(--pf-global--spacer--3xl);
|
|
5822
5951
|
}
|
|
5823
5952
|
}
|
|
5953
|
+
@media (min-width: 1450px) {
|
|
5954
|
+
.pf-c-divider.pf-m-horizontal-on-2xl {
|
|
5955
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-horizontal--Display);
|
|
5956
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-horizontal--FlexDirection);
|
|
5957
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-horizontal--after--Width);
|
|
5958
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-horizontal--after--Height);
|
|
5959
|
+
width: 100%;
|
|
5960
|
+
height: auto;
|
|
5961
|
+
}
|
|
5962
|
+
|
|
5963
|
+
.pf-c-divider.pf-m-horizontal-on-2xl::after {
|
|
5964
|
+
flex-basis: calc(var(--pf-c-divider--after--FlexBasis) - var(--pf-c-divider--after--Inset) * 2);
|
|
5965
|
+
}
|
|
5966
|
+
}
|
|
5967
|
+
@media (min-width: 1450px) {
|
|
5968
|
+
.pf-c-divider.pf-m-vertical-on-2xl {
|
|
5969
|
+
--pf-c-divider--Display: var(--pf-c-divider--m-vertical--Display);
|
|
5970
|
+
--pf-c-divider--FlexDirection: var(--pf-c-divider--m-vertical--FlexDirection);
|
|
5971
|
+
--pf-c-divider--after--Width: var(--pf-c-divider--m-vertical--after--Width);
|
|
5972
|
+
--pf-c-divider--after--Height: var(--pf-c-divider--m-vertical--after--Height);
|
|
5973
|
+
width: auto;
|
|
5974
|
+
height: inherit;
|
|
5975
|
+
}
|
|
5976
|
+
|
|
5977
|
+
.pf-c-divider.pf-m-vertical-on-2xl::after {
|
|
5978
|
+
flex-basis: calc(var(--pf-c-divider--m-vertical--after--FlexBasis) - var(--pf-c-divider--after--Inset));
|
|
5979
|
+
}
|
|
5980
|
+
}
|
|
5824
5981
|
@media (min-width: 1450px) {
|
|
5825
5982
|
.pf-c-divider.pf-m-inset-none-on-2xl {
|
|
5826
5983
|
--pf-c-divider--after--Inset: 0%;
|
|
@@ -14631,6 +14788,7 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
|
|
|
14631
14788
|
--pf-c-page__main-wizard--BackgroundColor: var(--pf-global--BackgroundColor--light-100);
|
|
14632
14789
|
--pf-c-page__main-wizard--BorderTopColor: var(--pf-global--BorderColor--100);
|
|
14633
14790
|
--pf-c-page__main-wizard--BorderTopWidth: var(--pf-global--BorderWidth--sm);
|
|
14791
|
+
--pf-c-page__main-wizard--m-light-200--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
14634
14792
|
display: grid;
|
|
14635
14793
|
height: 100%;
|
|
14636
14794
|
grid-template-columns: 1fr;
|
|
@@ -15221,6 +15379,10 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
|
|
|
15221
15379
|
--pf-c-page__main-wizard--BorderTopWidth: 0;
|
|
15222
15380
|
}
|
|
15223
15381
|
|
|
15382
|
+
.pf-c-page__main-wizard.pf-m-light-200 {
|
|
15383
|
+
--pf-c-page__main-wizard--BackgroundColor: var(--pf-c-page__main-wizard--m-light-200--BackgroundColor);
|
|
15384
|
+
}
|
|
15385
|
+
|
|
15224
15386
|
.pf-c-page__main-wizard .pf-c-page__main-body {
|
|
15225
15387
|
min-height: 0;
|
|
15226
15388
|
}
|
|
@@ -21779,7 +21941,7 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
21779
21941
|
min-height: 0;
|
|
21780
21942
|
}
|
|
21781
21943
|
|
|
21782
|
-
.pf-c-wizard >
|
|
21944
|
+
.pf-c-wizard > :not(.pf-c-wizard__outer-wrap):not(.pf-c-drawer) {
|
|
21783
21945
|
flex-shrink: 0;
|
|
21784
21946
|
}
|
|
21785
21947
|
|
|
@@ -22202,6 +22364,7 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
22202
22364
|
--pf-c-text-input-group--m-disabled--BackgroundColor: var(--pf-global--disabled-color--300);
|
|
22203
22365
|
position: relative;
|
|
22204
22366
|
display: flex;
|
|
22367
|
+
width: 100%;
|
|
22205
22368
|
color: var(--pf-c-text-input-group--Color, inherit);
|
|
22206
22369
|
background-color: var(--pf-c-text-input-group--BackgroundColor);
|
|
22207
22370
|
}
|
|
@@ -22338,6 +22501,10 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
22338
22501
|
--pf-c-button--PaddingLeft: var(--pf-c-text-input-group__utilities--c-button--PaddingLeft);
|
|
22339
22502
|
}
|
|
22340
22503
|
|
|
22504
|
+
.pf-c-text-input-group__group {
|
|
22505
|
+
display: flex;
|
|
22506
|
+
}
|
|
22507
|
+
|
|
22341
22508
|
.pf-c-panel {
|
|
22342
22509
|
--pf-c-panel--Width: auto;
|
|
22343
22510
|
--pf-c-panel--MinWidth: auto;
|
package/dist/umd/react-core.js
CHANGED
|
@@ -5059,6 +5059,8 @@
|
|
|
5059
5059
|
"insetXl": "pf-m-inset-xl",
|
|
5060
5060
|
"inset_2xl": "pf-m-inset-2xl",
|
|
5061
5061
|
"inset_3xl": "pf-m-inset-3xl",
|
|
5062
|
+
"horizontalOnSm": "pf-m-horizontal-on-sm",
|
|
5063
|
+
"verticalOnSm": "pf-m-vertical-on-sm",
|
|
5062
5064
|
"insetNoneOnSm": "pf-m-inset-none-on-sm",
|
|
5063
5065
|
"insetXsOnSm": "pf-m-inset-xs-on-sm",
|
|
5064
5066
|
"insetSmOnSm": "pf-m-inset-sm-on-sm",
|
|
@@ -5067,6 +5069,8 @@
|
|
|
5067
5069
|
"insetXlOnSm": "pf-m-inset-xl-on-sm",
|
|
5068
5070
|
"inset_2xlOnSm": "pf-m-inset-2xl-on-sm",
|
|
5069
5071
|
"inset_3xlOnSm": "pf-m-inset-3xl-on-sm",
|
|
5072
|
+
"horizontalOnMd": "pf-m-horizontal-on-md",
|
|
5073
|
+
"verticalOnMd": "pf-m-vertical-on-md",
|
|
5070
5074
|
"insetNoneOnMd": "pf-m-inset-none-on-md",
|
|
5071
5075
|
"insetXsOnMd": "pf-m-inset-xs-on-md",
|
|
5072
5076
|
"insetSmOnMd": "pf-m-inset-sm-on-md",
|
|
@@ -5075,6 +5079,8 @@
|
|
|
5075
5079
|
"insetXlOnMd": "pf-m-inset-xl-on-md",
|
|
5076
5080
|
"inset_2xlOnMd": "pf-m-inset-2xl-on-md",
|
|
5077
5081
|
"inset_3xlOnMd": "pf-m-inset-3xl-on-md",
|
|
5082
|
+
"horizontalOnLg": "pf-m-horizontal-on-lg",
|
|
5083
|
+
"verticalOnLg": "pf-m-vertical-on-lg",
|
|
5078
5084
|
"insetNoneOnLg": "pf-m-inset-none-on-lg",
|
|
5079
5085
|
"insetXsOnLg": "pf-m-inset-xs-on-lg",
|
|
5080
5086
|
"insetSmOnLg": "pf-m-inset-sm-on-lg",
|
|
@@ -5083,6 +5089,8 @@
|
|
|
5083
5089
|
"insetXlOnLg": "pf-m-inset-xl-on-lg",
|
|
5084
5090
|
"inset_2xlOnLg": "pf-m-inset-2xl-on-lg",
|
|
5085
5091
|
"inset_3xlOnLg": "pf-m-inset-3xl-on-lg",
|
|
5092
|
+
"horizontalOnXl": "pf-m-horizontal-on-xl",
|
|
5093
|
+
"verticalOnXl": "pf-m-vertical-on-xl",
|
|
5086
5094
|
"insetNoneOnXl": "pf-m-inset-none-on-xl",
|
|
5087
5095
|
"insetXsOnXl": "pf-m-inset-xs-on-xl",
|
|
5088
5096
|
"insetSmOnXl": "pf-m-inset-sm-on-xl",
|
|
@@ -5091,6 +5099,8 @@
|
|
|
5091
5099
|
"insetXlOnXl": "pf-m-inset-xl-on-xl",
|
|
5092
5100
|
"inset_2xlOnXl": "pf-m-inset-2xl-on-xl",
|
|
5093
5101
|
"inset_3xlOnXl": "pf-m-inset-3xl-on-xl",
|
|
5102
|
+
"horizontalOn_2xl": "pf-m-horizontal-on-2xl",
|
|
5103
|
+
"verticalOn_2xl": "pf-m-vertical-on-2xl",
|
|
5094
5104
|
"insetNoneOn_2xl": "pf-m-inset-none-on-2xl",
|
|
5095
5105
|
"insetXsOn_2xl": "pf-m-inset-xs-on-2xl",
|
|
5096
5106
|
"insetSmOn_2xl": "pf-m-inset-sm-on-2xl",
|
|
@@ -13434,9 +13444,9 @@
|
|
|
13434
13444
|
};
|
|
13435
13445
|
|
|
13436
13446
|
const HelperText = (_a) => {
|
|
13437
|
-
var { children, className, component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
13447
|
+
var { children, className, component = 'div', id, isLiveRegion = false } = _a, props = __rest$1(_a, ["children", "className", "component", "id", "isLiveRegion"]);
|
|
13438
13448
|
const Component = component;
|
|
13439
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$H.helperText, className) }, props), children));
|
|
13449
|
+
return (React__namespace.createElement(Component, Object.assign({ id: id, className: css(styles$H.helperText, className) }, (isLiveRegion && { 'aria-live': 'polite' }), props), children));
|
|
13440
13450
|
};
|
|
13441
13451
|
HelperText.displayName = 'HelperText';
|
|
13442
13452
|
|
|
@@ -13461,9 +13471,9 @@
|
|
|
13461
13471
|
error: styles$H.modifiers.error
|
|
13462
13472
|
};
|
|
13463
13473
|
const HelperTextItem = (_a) => {
|
|
13464
|
-
var { children, className, component = 'div', variant = 'default', icon, isDynamic = false, hasIcon = isDynamic } = _a, props = __rest$1(_a, ["children", "className", "component", "variant", "icon", "isDynamic", "hasIcon"]);
|
|
13474
|
+
var { children, className, component = 'div', variant = 'default', icon, isDynamic = false, hasIcon = isDynamic, id } = _a, props = __rest$1(_a, ["children", "className", "component", "variant", "icon", "isDynamic", "hasIcon", "id"]);
|
|
13465
13475
|
const Component = component;
|
|
13466
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$H.helperTextItem, variantStyle$4[variant], isDynamic && styles$H.modifiers.dynamic, className) }, props),
|
|
13476
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$H.helperTextItem, variantStyle$4[variant], isDynamic && styles$H.modifiers.dynamic, className), id: id }, props),
|
|
13467
13477
|
icon && (React__namespace.createElement("span", { className: css(styles$H.helperTextItemIcon), "aria-hidden": true }, icon)),
|
|
13468
13478
|
hasIcon && !icon && (React__namespace.createElement("span", { className: css(styles$H.helperTextItemIcon), "aria-hidden": true },
|
|
13469
13479
|
(variant === 'default' || variant === 'indeterminate') && React__namespace.createElement(MinusIcon$1, null),
|
|
@@ -14371,7 +14381,8 @@
|
|
|
14371
14381
|
"paddingOnXl": "pf-m-padding-on-xl",
|
|
14372
14382
|
"noPaddingOnXl": "pf-m-no-padding-on-xl",
|
|
14373
14383
|
"paddingOn_2xl": "pf-m-padding-on-2xl",
|
|
14374
|
-
"noPaddingOn_2xl": "pf-m-no-padding-on-2xl"
|
|
14384
|
+
"noPaddingOn_2xl": "pf-m-no-padding-on-2xl",
|
|
14385
|
+
"light_200": "pf-m-light-200"
|
|
14375
14386
|
},
|
|
14376
14387
|
"nav": "pf-c-nav",
|
|
14377
14388
|
"notificationBadge": "pf-c-notification-badge",
|
|
@@ -19905,6 +19916,7 @@
|
|
|
19905
19916
|
var styles$a = {
|
|
19906
19917
|
"button": "pf-c-button",
|
|
19907
19918
|
"card": "pf-c-card",
|
|
19919
|
+
"drawer": "pf-c-drawer",
|
|
19908
19920
|
"modalBox": "pf-c-modal-box",
|
|
19909
19921
|
"modifiers": {
|
|
19910
19922
|
"finished": "pf-m-finished",
|
|
@@ -20604,6 +20616,7 @@
|
|
|
20604
20616
|
"hint": "pf-m-hint"
|
|
20605
20617
|
},
|
|
20606
20618
|
"textInputGroup": "pf-c-text-input-group",
|
|
20619
|
+
"textInputGroupGroup": "pf-c-text-input-group__group",
|
|
20607
20620
|
"textInputGroupIcon": "pf-c-text-input-group__icon",
|
|
20608
20621
|
"textInputGroupMain": "pf-c-text-input-group__main",
|
|
20609
20622
|
"textInputGroupText": "pf-c-text-input-group__text",
|