@patternfly/react-core 4.192.21 → 4.194.2
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 +38 -0
- package/dist/esm/components/MenuToggle/MenuToggle.d.ts +3 -0
- package/dist/esm/components/MenuToggle/MenuToggle.d.ts.map +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.js +3 -2
- package/dist/esm/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.d.ts +3 -0
- package/dist/js/components/MenuToggle/MenuToggle.d.ts.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.js +3 -2
- package/dist/js/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/umd/react-core.css +63 -63
- package/dist/umd/react-core.js +3 -2
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +5 -5
- package/src/components/MenuToggle/MenuToggle.tsx +16 -1
- package/src/components/MenuToggle/__tests__/__snapshots__/MenuToggle.test.tsx.snap +9 -0
- package/src/components/MenuToggle/examples/MenuToggle.md +13 -0
- package/src/demos/CardDemos.md +349 -333
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
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.194.2 (2022-02-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 4.194.1 (2022-02-09)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @patternfly/react-core
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# 4.194.0 (2022-02-08)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **MenuToggle:** add full height variation ([#6869](https://github.com/patternfly/patternfly-react/issues/6869)) ([415e02f](https://github.com/patternfly/patternfly-react/commit/415e02f5e5617367db717cd5120df04ec1a208eb))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# 4.193.0 (2022-02-08)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* **Table:** add striping ([#6886](https://github.com/patternfly/patternfly-react/issues/6886)) ([47abda7](https://github.com/patternfly/patternfly-react/commit/47abda7831e21c58051b90982f02cb48f7a22a22))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
## 4.192.21 (2022-02-07)
|
|
7
45
|
|
|
8
46
|
|
|
@@ -9,6 +9,8 @@ export interface MenuToggleProps extends Omit<React.DetailedHTMLProps<React.Butt
|
|
|
9
9
|
isExpanded?: boolean;
|
|
10
10
|
/** Flag indicating the toggle is disabled */
|
|
11
11
|
isDisabled?: boolean;
|
|
12
|
+
/** Flag indicating the toggle is full height */
|
|
13
|
+
isFullHeight?: boolean;
|
|
12
14
|
/** Variant styles of the menu toggle */
|
|
13
15
|
variant?: 'default' | 'plain' | 'primary' | 'plainText';
|
|
14
16
|
/** Optional icon rendered inside the toggle, before the children content */
|
|
@@ -24,6 +26,7 @@ export declare class MenuToggleBase extends React.Component<MenuToggleProps> {
|
|
|
24
26
|
className: string;
|
|
25
27
|
isExpanded: boolean;
|
|
26
28
|
isDisabled: boolean;
|
|
29
|
+
isFullHeight: boolean;
|
|
27
30
|
variant: string;
|
|
28
31
|
};
|
|
29
32
|
render(): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuToggle.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuToggle/MenuToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,E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IAC3B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gDAAgD;IAChD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wCAAwC;IACxC,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;IACxD,4EAA4E;IAC5E,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC;IACrC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;CACzC;AAED,qBAAa,cAAe,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC;IAClE,WAAW,SAAoB;IAC/B,MAAM,CAAC,YAAY;;;;;;MAMjB;IAEF,MAAM;CAoDP;AAED,eAAO,MAAM,UAAU,2FAErB,CAAC"}
|
|
@@ -9,7 +9,7 @@ export class MenuToggleBase extends React.Component {
|
|
|
9
9
|
this.displayName = 'MenuToggleBase';
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
const _a = this.props, { children, className, icon, badge, isExpanded, isDisabled, variant, innerRef } = _a, props = __rest(_a, ["children", "className", "icon", "badge", "isExpanded", "isDisabled", "variant", "innerRef"]);
|
|
12
|
+
const _a = this.props, { children, className, icon, badge, isExpanded, isDisabled, isFullHeight, variant, innerRef } = _a, props = __rest(_a, ["children", "className", "icon", "badge", "isExpanded", "isDisabled", "isFullHeight", "variant", "innerRef"]);
|
|
13
13
|
const isPlain = variant === 'plain';
|
|
14
14
|
const isPlainText = variant === 'plainText';
|
|
15
15
|
const content = (React.createElement(React.Fragment, null,
|
|
@@ -19,7 +19,7 @@ export class MenuToggleBase extends React.Component {
|
|
|
19
19
|
React.createElement("span", { className: css(styles.menuToggleControls) },
|
|
20
20
|
React.createElement("span", { className: css(styles.menuToggleToggleIcon) },
|
|
21
21
|
React.createElement(CaretDownIcon, { "aria-hidden": true })))));
|
|
22
|
-
return (React.createElement("button", Object.assign({ className: css(styles.menuToggle, isExpanded && styles.modifiers.expanded, variant === 'primary' && styles.modifiers.primary, (isPlain || isPlainText) && styles.modifiers.plain, isPlainText && styles.modifiers.text, className), type: "button", "aria-expanded": false, ref: innerRef }, (isExpanded && { 'aria-expanded': true }), (isDisabled && { disabled: true }), props),
|
|
22
|
+
return (React.createElement("button", Object.assign({ className: css(styles.menuToggle, isExpanded && styles.modifiers.expanded, variant === 'primary' && styles.modifiers.primary, (isPlain || isPlainText) && styles.modifiers.plain, isPlainText && styles.modifiers.text, isFullHeight && styles.modifiers.fullHeight, className), type: "button", "aria-expanded": false, ref: innerRef }, (isExpanded && { 'aria-expanded': true }), (isDisabled && { disabled: true }), props),
|
|
23
23
|
isPlain && children,
|
|
24
24
|
!isPlain && content));
|
|
25
25
|
}
|
|
@@ -28,6 +28,7 @@ MenuToggleBase.defaultProps = {
|
|
|
28
28
|
className: '',
|
|
29
29
|
isExpanded: false,
|
|
30
30
|
isDisabled: false,
|
|
31
|
+
isFullHeight: false,
|
|
31
32
|
variant: 'default'
|
|
32
33
|
};
|
|
33
34
|
export const MenuToggle = React.forwardRef((props, ref) => (React.createElement(MenuToggleBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuToggle.js","sourceRoot":"","sources":["../../../../src/components/MenuToggle/MenuToggle.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,aAAa,MAAM,wDAAwD,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuToggle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AAQ,EACvC,OAAO,KAAK,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EACjD,CAAC,OAAO,IAAI,WAAW,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,EAClD,WAAW,IAAI,MAAM,CAAC,SAAS,CAAC,IAAI,EACpC,YAAY,IAAI,MAAM,CAAC,SAAS,CAAC,UAAU,EAC3C,SAAS,CACV,EACD,IAAI,EAAC,QAAQ,mBACE,KAAK,EACpB,GAAG,EAAE,QAAQ,IACT,CAAC,UAAU,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,EACzC,CAAC,UAAU,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAClC,KAAK;YAER,OAAO,IAAI,QAAQ;YACnB,CAAC,OAAO,IAAI,OAAO,CACb,CACV,CAAC;IACJ,CAAC;;AA3DM,2BAAY,GAAG;IACpB,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,KAAK;IACjB,YAAY,EAAE,KAAK;IACnB,OAAO,EAAE,SAAS;CACnB,CAAC;AAwDJ,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAsB,EAAE,GAAiC,EAAE,EAAE,CAAC,CACxG,oBAAC,cAAc,kBAAC,QAAQ,EAAE,GAAG,IAAM,KAAK,EAAI,CAC7C,CAAC,CAAC;AAEH,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
|
|
@@ -9,6 +9,8 @@ export interface MenuToggleProps extends Omit<React.DetailedHTMLProps<React.Butt
|
|
|
9
9
|
isExpanded?: boolean;
|
|
10
10
|
/** Flag indicating the toggle is disabled */
|
|
11
11
|
isDisabled?: boolean;
|
|
12
|
+
/** Flag indicating the toggle is full height */
|
|
13
|
+
isFullHeight?: boolean;
|
|
12
14
|
/** Variant styles of the menu toggle */
|
|
13
15
|
variant?: 'default' | 'plain' | 'primary' | 'plainText';
|
|
14
16
|
/** Optional icon rendered inside the toggle, before the children content */
|
|
@@ -24,6 +26,7 @@ export declare class MenuToggleBase extends React.Component<MenuToggleProps> {
|
|
|
24
26
|
className: string;
|
|
25
27
|
isExpanded: boolean;
|
|
26
28
|
isDisabled: boolean;
|
|
29
|
+
isFullHeight: boolean;
|
|
27
30
|
variant: string;
|
|
28
31
|
};
|
|
29
32
|
render(): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuToggle.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuToggle/MenuToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,EAAE,KAAK,CAAC;IAC9G,yCAAyC;IACzC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,wCAAwC;IACxC,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;IACxD,4EAA4E;IAC5E,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC;IACrC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;CACzC;AAED,qBAAa,cAAe,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC;IAClE,WAAW,SAAoB;IAC/B,MAAM,CAAC,YAAY
|
|
1
|
+
{"version":3,"file":"MenuToggle.d.ts","sourceRoot":"","sources":["../../../../src/components/MenuToggle/MenuToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,EAAE,KAAK,CAAC;IAC9G,yCAAyC;IACzC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gDAAgD;IAChD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wCAAwC;IACxC,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;IACxD,4EAA4E;IAC5E,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC;IACrC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;CACzC;AAED,qBAAa,cAAe,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC;IAClE,WAAW,SAAoB;IAC/B,MAAM,CAAC,YAAY;;;;;;MAMjB;IAEF,MAAM;CAoDP;AAED,eAAO,MAAM,UAAU,2FAErB,CAAC"}
|
|
@@ -12,7 +12,7 @@ class MenuToggleBase extends React.Component {
|
|
|
12
12
|
this.displayName = 'MenuToggleBase';
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
const _a = this.props, { children, className, icon, badge, isExpanded, isDisabled, variant, innerRef } = _a, props = tslib_1.__rest(_a, ["children", "className", "icon", "badge", "isExpanded", "isDisabled", "variant", "innerRef"]);
|
|
15
|
+
const _a = this.props, { children, className, icon, badge, isExpanded, isDisabled, isFullHeight, variant, innerRef } = _a, props = tslib_1.__rest(_a, ["children", "className", "icon", "badge", "isExpanded", "isDisabled", "isFullHeight", "variant", "innerRef"]);
|
|
16
16
|
const isPlain = variant === 'plain';
|
|
17
17
|
const isPlainText = variant === 'plainText';
|
|
18
18
|
const content = (React.createElement(React.Fragment, null,
|
|
@@ -22,7 +22,7 @@ class MenuToggleBase extends React.Component {
|
|
|
22
22
|
React.createElement("span", { className: react_styles_1.css(menu_toggle_1.default.menuToggleControls) },
|
|
23
23
|
React.createElement("span", { className: react_styles_1.css(menu_toggle_1.default.menuToggleToggleIcon) },
|
|
24
24
|
React.createElement(caret_down_icon_1.default, { "aria-hidden": true })))));
|
|
25
|
-
return (React.createElement("button", Object.assign({ className: react_styles_1.css(menu_toggle_1.default.menuToggle, isExpanded && menu_toggle_1.default.modifiers.expanded, variant === 'primary' && menu_toggle_1.default.modifiers.primary, (isPlain || isPlainText) && menu_toggle_1.default.modifiers.plain, isPlainText && menu_toggle_1.default.modifiers.text, className), type: "button", "aria-expanded": false, ref: innerRef }, (isExpanded && { 'aria-expanded': true }), (isDisabled && { disabled: true }), props),
|
|
25
|
+
return (React.createElement("button", Object.assign({ className: react_styles_1.css(menu_toggle_1.default.menuToggle, isExpanded && menu_toggle_1.default.modifiers.expanded, variant === 'primary' && menu_toggle_1.default.modifiers.primary, (isPlain || isPlainText) && menu_toggle_1.default.modifiers.plain, isPlainText && menu_toggle_1.default.modifiers.text, isFullHeight && menu_toggle_1.default.modifiers.fullHeight, className), type: "button", "aria-expanded": false, ref: innerRef }, (isExpanded && { 'aria-expanded': true }), (isDisabled && { disabled: true }), props),
|
|
26
26
|
isPlain && children,
|
|
27
27
|
!isPlain && content));
|
|
28
28
|
}
|
|
@@ -32,6 +32,7 @@ MenuToggleBase.defaultProps = {
|
|
|
32
32
|
className: '',
|
|
33
33
|
isExpanded: false,
|
|
34
34
|
isDisabled: false,
|
|
35
|
+
isFullHeight: false,
|
|
35
36
|
variant: 'default'
|
|
36
37
|
};
|
|
37
38
|
exports.MenuToggle = React.forwardRef((props, ref) => (React.createElement(MenuToggleBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuToggle.js","sourceRoot":"","sources":["../../../../src/components/MenuToggle/MenuToggle.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,yHAAoF;AACpF,2DAA+C;AAC/C,oHAAmF;
|
|
1
|
+
{"version":3,"file":"MenuToggle.js","sourceRoot":"","sources":["../../../../src/components/MenuToggle/MenuToggle.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,yHAAoF;AACpF,2DAA+C;AAC/C,oHAAmF;AAyBnF,MAAa,cAAe,SAAQ,KAAK,CAAC,SAA0B;IAApE;;QACE,gBAAW,GAAG,gBAAgB,CAAC;IA6DjC,CAAC;IApDC,MAAM;QACJ,MAAM,KAWF,IAAI,CAAC,KAAK,EAXR,EACJ,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,KAAK,EACL,UAAU,EACV,UAAU,EACV,YAAY,EACZ,OAAO,EACP,QAAQ,OAEI,EADT,KAAK,sBAVJ,6GAWL,CAAa,CAAC;QAEf,MAAM,OAAO,GAAG,OAAO,KAAK,OAAO,CAAC;QACpC,MAAM,WAAW,GAAG,OAAO,KAAK,WAAW,CAAC;QAE5C,MAAM,OAAO,GAAG,CACd,oBAAC,KAAK,CAAC,QAAQ;YACZ,IAAI,IAAI,8BAAM,SAAS,EAAE,kBAAG,CAAC,qBAAM,CAAC,cAAc,CAAC,IAAG,IAAI,CAAQ;YACnE,8BAAM,SAAS,EAAC,wBAAwB,IAAE,QAAQ,CAAQ;YACzD,KAAK,IAAI,8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K,EAAI,CAC7C,CAAC,CAAC;AAEH,kBAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
|
package/dist/umd/react-core.css
CHANGED
|
@@ -20717,6 +20717,69 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
20717
20717
|
--pf-c-tree-view--m-compact--m-no-background--border--nested--Left: calc(var(--pf-c-tree-view__node--PaddingLeft) - var(--pf-c-tree-view--m-compact--m-no-background--base-border--Left--offset));
|
|
20718
20718
|
}
|
|
20719
20719
|
|
|
20720
|
+
.pf-c-draggable {
|
|
20721
|
+
--pf-c-draggable--Cursor: auto;
|
|
20722
|
+
--pf-c-draggable--m-dragging--Cursor: grabbing;
|
|
20723
|
+
--pf-c-draggable--m-dragging--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
20724
|
+
--pf-c-draggable--m-dragging--after--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
20725
|
+
--pf-c-draggable--m-dragging--after--BorderColor: var(--pf-global--active-color--100);
|
|
20726
|
+
--pf-c-draggable--m-drag-outside--Cursor: not-allowed;
|
|
20727
|
+
--pf-c-draggable--m-drag-outside--after--BorderColor: var(--pf-global--danger-color--100);
|
|
20728
|
+
cursor: var(--pf-c-draggable--Cursor);
|
|
20729
|
+
}
|
|
20730
|
+
|
|
20731
|
+
.pf-c-draggable.pf-m-dragging {
|
|
20732
|
+
--pf-c-draggable--Cursor: var(--pf-c-draggable--m-dragging--Cursor);
|
|
20733
|
+
position: relative;
|
|
20734
|
+
background-color: var(--pf-c-draggable--m-dragging--BackgroundColor);
|
|
20735
|
+
box-shadow: var(--pf-c-draggable--m-dragging--BoxShadow);
|
|
20736
|
+
}
|
|
20737
|
+
|
|
20738
|
+
.pf-c-draggable.pf-m-dragging::after {
|
|
20739
|
+
position: absolute;
|
|
20740
|
+
top: 0;
|
|
20741
|
+
right: 0;
|
|
20742
|
+
bottom: 0;
|
|
20743
|
+
left: 0;
|
|
20744
|
+
content: "";
|
|
20745
|
+
border: var(--pf-c-draggable--m-dragging--after--BorderWidth) solid var(--pf-c-draggable--m-dragging--after--BorderColor);
|
|
20746
|
+
}
|
|
20747
|
+
|
|
20748
|
+
.pf-c-draggable.pf-m-drag-outside {
|
|
20749
|
+
--pf-c-draggable--m-dragging--Cursor: var(--pf-c-draggable--m-drag-outside--Cursor);
|
|
20750
|
+
--pf-c-draggable--m-dragging--after--BorderColor: var(--pf-c-draggable--m-drag-outside--after--BorderColor);
|
|
20751
|
+
}
|
|
20752
|
+
|
|
20753
|
+
.pf-c-droppable {
|
|
20754
|
+
--pf-c-droppable--m-dragging--after--BackgroundColor: rgba(255, 255, 255, 0.6);
|
|
20755
|
+
--pf-c-droppable--m-dragging--after--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
20756
|
+
--pf-c-droppable--m-dragging--after--BorderColor: var(--pf-global--active-color--100);
|
|
20757
|
+
--pf-c-droppable--m-drag-outside--after--BorderColor: var(--pf-global--danger-color--100);
|
|
20758
|
+
}
|
|
20759
|
+
|
|
20760
|
+
.pf-c-droppable.pf-m-dragging {
|
|
20761
|
+
position: relative;
|
|
20762
|
+
}
|
|
20763
|
+
|
|
20764
|
+
.pf-c-droppable.pf-m-dragging::after {
|
|
20765
|
+
position: absolute;
|
|
20766
|
+
top: 0;
|
|
20767
|
+
right: 0;
|
|
20768
|
+
bottom: 0;
|
|
20769
|
+
left: 0;
|
|
20770
|
+
pointer-events: none;
|
|
20771
|
+
content: "";
|
|
20772
|
+
}
|
|
20773
|
+
|
|
20774
|
+
.pf-c-droppable::after {
|
|
20775
|
+
background-color: var(--pf-c-droppable--m-dragging--after--BackgroundColor);
|
|
20776
|
+
border: var(--pf-c-droppable--m-dragging--after--BorderWidth) solid var(--pf-c-droppable--m-dragging--after--BorderColor);
|
|
20777
|
+
}
|
|
20778
|
+
|
|
20779
|
+
.pf-c-droppable.pf-m-drag-outside {
|
|
20780
|
+
--pf-c-droppable--m-dragging--after--BorderColor: var(--pf-c-droppable--m-drag-outside--after--BorderColor);
|
|
20781
|
+
}
|
|
20782
|
+
|
|
20720
20783
|
.pf-c-wizard__header {
|
|
20721
20784
|
--pf-global--Color--100: var(--pf-global--Color--light-100);
|
|
20722
20785
|
--pf-global--Color--200: var(--pf-global--Color--light-200);
|
|
@@ -21258,69 +21321,6 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
21258
21321
|
margin-left: var(--pf-c-wizard__footer-cancel--MarginLeft);
|
|
21259
21322
|
}
|
|
21260
21323
|
|
|
21261
|
-
.pf-c-draggable {
|
|
21262
|
-
--pf-c-draggable--Cursor: auto;
|
|
21263
|
-
--pf-c-draggable--m-dragging--Cursor: grabbing;
|
|
21264
|
-
--pf-c-draggable--m-dragging--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
21265
|
-
--pf-c-draggable--m-dragging--after--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
21266
|
-
--pf-c-draggable--m-dragging--after--BorderColor: var(--pf-global--active-color--100);
|
|
21267
|
-
--pf-c-draggable--m-drag-outside--Cursor: not-allowed;
|
|
21268
|
-
--pf-c-draggable--m-drag-outside--after--BorderColor: var(--pf-global--danger-color--100);
|
|
21269
|
-
cursor: var(--pf-c-draggable--Cursor);
|
|
21270
|
-
}
|
|
21271
|
-
|
|
21272
|
-
.pf-c-draggable.pf-m-dragging {
|
|
21273
|
-
--pf-c-draggable--Cursor: var(--pf-c-draggable--m-dragging--Cursor);
|
|
21274
|
-
position: relative;
|
|
21275
|
-
background-color: var(--pf-c-draggable--m-dragging--BackgroundColor);
|
|
21276
|
-
box-shadow: var(--pf-c-draggable--m-dragging--BoxShadow);
|
|
21277
|
-
}
|
|
21278
|
-
|
|
21279
|
-
.pf-c-draggable.pf-m-dragging::after {
|
|
21280
|
-
position: absolute;
|
|
21281
|
-
top: 0;
|
|
21282
|
-
right: 0;
|
|
21283
|
-
bottom: 0;
|
|
21284
|
-
left: 0;
|
|
21285
|
-
content: "";
|
|
21286
|
-
border: var(--pf-c-draggable--m-dragging--after--BorderWidth) solid var(--pf-c-draggable--m-dragging--after--BorderColor);
|
|
21287
|
-
}
|
|
21288
|
-
|
|
21289
|
-
.pf-c-draggable.pf-m-drag-outside {
|
|
21290
|
-
--pf-c-draggable--m-dragging--Cursor: var(--pf-c-draggable--m-drag-outside--Cursor);
|
|
21291
|
-
--pf-c-draggable--m-dragging--after--BorderColor: var(--pf-c-draggable--m-drag-outside--after--BorderColor);
|
|
21292
|
-
}
|
|
21293
|
-
|
|
21294
|
-
.pf-c-droppable {
|
|
21295
|
-
--pf-c-droppable--m-dragging--after--BackgroundColor: rgba(255, 255, 255, 0.6);
|
|
21296
|
-
--pf-c-droppable--m-dragging--after--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
21297
|
-
--pf-c-droppable--m-dragging--after--BorderColor: var(--pf-global--active-color--100);
|
|
21298
|
-
--pf-c-droppable--m-drag-outside--after--BorderColor: var(--pf-global--danger-color--100);
|
|
21299
|
-
}
|
|
21300
|
-
|
|
21301
|
-
.pf-c-droppable.pf-m-dragging {
|
|
21302
|
-
position: relative;
|
|
21303
|
-
}
|
|
21304
|
-
|
|
21305
|
-
.pf-c-droppable.pf-m-dragging::after {
|
|
21306
|
-
position: absolute;
|
|
21307
|
-
top: 0;
|
|
21308
|
-
right: 0;
|
|
21309
|
-
bottom: 0;
|
|
21310
|
-
left: 0;
|
|
21311
|
-
pointer-events: none;
|
|
21312
|
-
content: "";
|
|
21313
|
-
}
|
|
21314
|
-
|
|
21315
|
-
.pf-c-droppable::after {
|
|
21316
|
-
background-color: var(--pf-c-droppable--m-dragging--after--BackgroundColor);
|
|
21317
|
-
border: var(--pf-c-droppable--m-dragging--after--BorderWidth) solid var(--pf-c-droppable--m-dragging--after--BorderColor);
|
|
21318
|
-
}
|
|
21319
|
-
|
|
21320
|
-
.pf-c-droppable.pf-m-drag-outside {
|
|
21321
|
-
--pf-c-droppable--m-dragging--after--BorderColor: var(--pf-c-droppable--m-drag-outside--after--BorderColor);
|
|
21322
|
-
}
|
|
21323
|
-
|
|
21324
21324
|
.pf-c-text-input-group {
|
|
21325
21325
|
--pf-c-text-input-group--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
21326
21326
|
--pf-c-text-input-group__text--before--BorderWidth: var(--pf-global--BorderWidth--sm);
|
package/dist/umd/react-core.js
CHANGED
|
@@ -14934,7 +14934,7 @@
|
|
|
14934
14934
|
this.displayName = 'MenuToggleBase';
|
|
14935
14935
|
}
|
|
14936
14936
|
render() {
|
|
14937
|
-
const _a = this.props, { children, className, icon, badge, isExpanded, isDisabled, variant, innerRef } = _a, props = __rest$1(_a, ["children", "className", "icon", "badge", "isExpanded", "isDisabled", "variant", "innerRef"]);
|
|
14937
|
+
const _a = this.props, { children, className, icon, badge, isExpanded, isDisabled, isFullHeight, variant, innerRef } = _a, props = __rest$1(_a, ["children", "className", "icon", "badge", "isExpanded", "isDisabled", "isFullHeight", "variant", "innerRef"]);
|
|
14938
14938
|
const isPlain = variant === 'plain';
|
|
14939
14939
|
const isPlainText = variant === 'plainText';
|
|
14940
14940
|
const content = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
@@ -14944,7 +14944,7 @@
|
|
|
14944
14944
|
React__namespace.createElement("span", { className: css(_default$y.menuToggleControls) },
|
|
14945
14945
|
React__namespace.createElement("span", { className: css(_default$y.menuToggleToggleIcon) },
|
|
14946
14946
|
React__namespace.createElement(CaretDownIcon$1, { "aria-hidden": true })))));
|
|
14947
|
-
return (React__namespace.createElement("button", Object.assign({ className: css(_default$y.menuToggle, isExpanded && _default$y.modifiers.expanded, variant === 'primary' && _default$y.modifiers.primary, (isPlain || isPlainText) && _default$y.modifiers.plain, isPlainText && _default$y.modifiers.text, className), type: "button", "aria-expanded": false, ref: innerRef }, (isExpanded && { 'aria-expanded': true }), (isDisabled && { disabled: true }), props),
|
|
14947
|
+
return (React__namespace.createElement("button", Object.assign({ className: css(_default$y.menuToggle, isExpanded && _default$y.modifiers.expanded, variant === 'primary' && _default$y.modifiers.primary, (isPlain || isPlainText) && _default$y.modifiers.plain, isPlainText && _default$y.modifiers.text, isFullHeight && _default$y.modifiers.fullHeight, className), type: "button", "aria-expanded": false, ref: innerRef }, (isExpanded && { 'aria-expanded': true }), (isDisabled && { disabled: true }), props),
|
|
14948
14948
|
isPlain && children,
|
|
14949
14949
|
!isPlain && content));
|
|
14950
14950
|
}
|
|
@@ -14953,6 +14953,7 @@
|
|
|
14953
14953
|
className: '',
|
|
14954
14954
|
isExpanded: false,
|
|
14955
14955
|
isDisabled: false,
|
|
14956
|
+
isFullHeight: false,
|
|
14956
14957
|
variant: 'default'
|
|
14957
14958
|
};
|
|
14958
14959
|
const MenuToggle = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(MenuToggleBase, Object.assign({ innerRef: ref }, props))));
|