@patternfly/react-core 4.178.0 → 4.179.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/esm/components/Card/Card.d.ts +5 -7
- package/dist/esm/components/Card/Card.d.ts.map +1 -1
- package/dist/esm/components/Card/Card.js +14 -2
- package/dist/esm/components/Card/Card.js.map +1 -1
- package/dist/js/components/Card/Card.d.ts +5 -7
- package/dist/js/components/Card/Card.d.ts.map +1 -1
- package/dist/js/components/Card/Card.js +14 -2
- package/dist/js/components/Card/Card.js.map +1 -1
- package/dist/umd/react-core.css +191 -191
- package/dist/umd/react-core.js +14 -2
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +5 -5
- package/src/components/Card/Card.tsx +23 -17
- package/src/components/Card/__tests__/Card.test.tsx +8 -14
- package/src/components/Card/__tests__/__snapshots__/Card.test.tsx.snap +2 -12
- package/src/components/Card/examples/Card.md +230 -264
- package/src/components/DragDrop/examples/DragDrop.md +2 -0
- package/src/demos/Card/Card.md +47 -23
- package/src/demos/TextInputGroupDemo.md +8 -246
- package/src/demos/examples/TextInputGroup/AttributeValueFiltering.js +250 -0
- package/src/demos/examples/TextInputGroup/AutoCompleteSearch.js +230 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 4.179.0 (2021-12-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **Card:** Add disabled card and clean up props ([#6659](https://github.com/patternfly/patternfly-react/issues/6659)) ([86f225a](https://github.com/patternfly/patternfly-react/commit/86f225ab2e02d617e2d380c4a7f7593037c50e84))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# 4.178.0 (2021-12-06)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -9,20 +9,18 @@ export interface CardProps extends React.HTMLProps<HTMLElement>, OUIAProps {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
/** Sets the base component to render. defaults to article */
|
|
11
11
|
component?: keyof JSX.IntrinsicElements;
|
|
12
|
-
/**
|
|
12
|
+
/** @deprecated to make a card hoverable, use isSelectable or isSelectableRaised. */
|
|
13
13
|
isHoverable?: boolean;
|
|
14
|
-
/** @beta Modifies the card to include hoverable-raised styles on :hover, this styling is included by default with isSelectableRaised */
|
|
15
|
-
isHoverableRaised?: boolean;
|
|
16
14
|
/** Modifies the card to include compact styling. Should not be used with isLarge. */
|
|
17
15
|
isCompact?: boolean;
|
|
18
16
|
/** Modifies the card to include selectable styling */
|
|
19
17
|
isSelectable?: boolean;
|
|
18
|
+
/** @beta Specifies the card is selectable, and applies the new raised styling on hover and select */
|
|
19
|
+
isSelectableRaised?: boolean;
|
|
20
20
|
/** Modifies the card to include selected styling */
|
|
21
21
|
isSelected?: boolean;
|
|
22
|
-
/** @beta Modifies
|
|
23
|
-
|
|
24
|
-
/** @beta Modifies the card to include selected-raised styling */
|
|
25
|
-
isSelectedRaised?: boolean;
|
|
22
|
+
/** @beta Modifies a raised selectable card to have disabled styling */
|
|
23
|
+
isDisabledRaised?: boolean;
|
|
26
24
|
/** Modifies the card to include flat styling */
|
|
27
25
|
isFlat?: boolean;
|
|
28
26
|
/** Modifies the card to include rounded styling */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAgB,SAAS,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,SAAS;IACxE,uCAAuC;IACvC,QAAQ,CAAC,EA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AqF;IACrF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iFAAiF;IACjF,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,WAAW,0CAGtB,CAAC;AAEH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAuEnD,CAAC"}
|
|
@@ -8,7 +8,7 @@ export const CardContext = React.createContext({
|
|
|
8
8
|
isExpanded: false
|
|
9
9
|
});
|
|
10
10
|
export const Card = (_a) => {
|
|
11
|
-
var { children = null, id = '', className = '', component = 'article', isHoverable = false,
|
|
11
|
+
var { children = null, id = '', className = '', component = 'article', isHoverable = false, isCompact = false, isSelectable = false, isSelectableRaised = false, isSelected = false, isDisabledRaised = false, isFlat = false, isExpanded = false, isRounded = false, isLarge = false, isFullHeight = false, isPlain = false, ouiaId, ouiaSafe = true } = _a, props = __rest(_a, ["children", "id", "className", "component", "isHoverable", "isCompact", "isSelectable", "isSelectableRaised", "isSelected", "isDisabledRaised", "isFlat", "isExpanded", "isRounded", "isLarge", "isFullHeight", "isPlain", "ouiaId", "ouiaSafe"]);
|
|
12
12
|
const Component = component;
|
|
13
13
|
const ouiaProps = useOUIAProps(Card.displayName, ouiaId, ouiaSafe);
|
|
14
14
|
if (isCompact && isLarge) {
|
|
@@ -16,11 +16,23 @@ export const Card = (_a) => {
|
|
|
16
16
|
console.warn('Card: Cannot use isCompact with isLarge. Defaulting to isCompact');
|
|
17
17
|
isLarge = false;
|
|
18
18
|
}
|
|
19
|
+
const getSelectableModifiers = () => {
|
|
20
|
+
if (isDisabledRaised) {
|
|
21
|
+
return css(styles.modifiers.nonSelectableRaised);
|
|
22
|
+
}
|
|
23
|
+
if (isSelectableRaised) {
|
|
24
|
+
return css(styles.modifiers.selectableRaised, isSelected && styles.modifiers.selectedRaised);
|
|
25
|
+
}
|
|
26
|
+
if (isSelectable || isHoverable) {
|
|
27
|
+
return css(styles.modifiers.selectable, isSelected && styles.modifiers.selected);
|
|
28
|
+
}
|
|
29
|
+
return '';
|
|
30
|
+
};
|
|
19
31
|
return (React.createElement(CardContext.Provider, { value: {
|
|
20
32
|
cardId: id,
|
|
21
33
|
isExpanded
|
|
22
34
|
} },
|
|
23
|
-
React.createElement(Component, Object.assign({ id: id, className: css(styles.card,
|
|
35
|
+
React.createElement(Component, Object.assign({ id: id, className: css(styles.card, isCompact && styles.modifiers.compact, isExpanded && styles.modifiers.expanded, isFlat && styles.modifiers.flat, isRounded && styles.modifiers.rounded, isLarge && styles.modifiers.displayLg, isFullHeight && styles.modifiers.fullHeight, isPlain && styles.modifiers.plain, getSelectableModifiers(), className), tabIndex: isSelectable || isSelectableRaised ? '0' : undefined }, props, ouiaProps), children)));
|
|
24
36
|
};
|
|
25
37
|
Card.displayName = 'Card';
|
|
26
38
|
//# sourceMappingURL=Card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../src/components/Card/Card.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,mDAAmD,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAa,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../src/components/Card/Card.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,mDAAmD,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAa,MAAM,eAAe,CAAC;AA0CxD,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAA4B;IACxE,MAAM,E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AAU,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;SAClF;QACD,OAAO,EAAE,CAAC;IACZ,CAAC,CAAC;IAEF,OAAO,CACL,oBAAC,WAAW,CAAC,QAAQ,IACnB,KAAK,EAAE;YACL,MAAM,EAAE,EAAE;YACV,UAAU;SACX;QAED,oBAAC,SAAS,kBACR,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,GAAG,CACZ,MAAM,CAAC,IAAI,EACX,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EACrC,UAAU,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,EACvC,MAAM,IAAI,MAAM,CAAC,SAAS,CAAC,IAAI,EAC/B,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EACrC,OAAO,IAAI,MAAM,CAAC,SAAS,CAAC,SAAS,EACrC,YAAY,IAAI,MAAM,CAAC,SAAS,CAAC,UAAU,EAC3C,OAAO,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,EACjC,sBAAsB,EAAE,EACxB,SAAS,CACV,EACD,QAAQ,EAAE,YAAY,IAAI,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,IAC1D,KAAK,EACL,SAAS,GAEZ,QAAQ,CACC,CACS,CACxB,CAAC;AACJ,CAAC,CAAC;AACF,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC"}
|
|
@@ -9,20 +9,18 @@ export interface CardProps extends React.HTMLProps<HTMLElement>, OUIAProps {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
/** Sets the base component to render. defaults to article */
|
|
11
11
|
component?: keyof JSX.IntrinsicElements;
|
|
12
|
-
/**
|
|
12
|
+
/** @deprecated to make a card hoverable, use isSelectable or isSelectableRaised. */
|
|
13
13
|
isHoverable?: boolean;
|
|
14
|
-
/** @beta Modifies the card to include hoverable-raised styles on :hover, this styling is included by default with isSelectableRaised */
|
|
15
|
-
isHoverableRaised?: boolean;
|
|
16
14
|
/** Modifies the card to include compact styling. Should not be used with isLarge. */
|
|
17
15
|
isCompact?: boolean;
|
|
18
16
|
/** Modifies the card to include selectable styling */
|
|
19
17
|
isSelectable?: boolean;
|
|
18
|
+
/** @beta Specifies the card is selectable, and applies the new raised styling on hover and select */
|
|
19
|
+
isSelectableRaised?: boolean;
|
|
20
20
|
/** Modifies the card to include selected styling */
|
|
21
21
|
isSelected?: boolean;
|
|
22
|
-
/** @beta Modifies
|
|
23
|
-
|
|
24
|
-
/** @beta Modifies the card to include selected-raised styling */
|
|
25
|
-
isSelectedRaised?: boolean;
|
|
22
|
+
/** @beta Modifies a raised selectable card to have disabled styling */
|
|
23
|
+
isDisabledRaised?: boolean;
|
|
26
24
|
/** Modifies the card to include flat styling */
|
|
27
25
|
isFlat?: boolean;
|
|
28
26
|
/** Modifies the card to include rounded styling */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAgB,SAAS,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,SAAS;IACxE,uCAAuC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,4EAA4E;IAC5E,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,GAAG,CAAC,iBAAiB,CAAC;IACxC,
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAgB,SAAS,EAAE,MAAM,eAAe,CAAC;AAEx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card = (_a) => {
|
|
14
|
-
var { children = null, id = '', className = '', component = 'article', isHoverable = false,
|
|
14
|
+
var { children = null, id = '', className = '', component = 'article', isHoverable = false, isCompact = false, isSelectable = false, isSelectableRaised = false, isSelected = false, isDisabledRaised = false, isFlat = false, isExpanded = false, isRounded = false, isLarge = false, isFullHeight = false, isPlain = false, ouiaId, ouiaSafe = true } = _a, props = tslib_1.__rest(_a, ["children", "id", "className", "component", "isHoverable", "isCompact", "isSelectable", "isSelectableRaised", "isSelected", "isDisabledRaised", "isFlat", "isExpanded", "isRounded", "isLarge", "isFullHeight", "isPlain", "ouiaId", "ouiaSafe"]);
|
|
15
15
|
const Component = component;
|
|
16
16
|
const ouiaProps = helpers_1.useOUIAProps(exports.Card.displayName, ouiaId, ouiaSafe);
|
|
17
17
|
if (isCompact && isLarge) {
|
|
@@ -19,11 +19,23 @@ const Card = (_a) => {
|
|
|
19
19
|
console.warn('Card: Cannot use isCompact with isLarge. Defaulting to isCompact');
|
|
20
20
|
isLarge = false;
|
|
21
21
|
}
|
|
22
|
+
const getSelectableModifiers = () => {
|
|
23
|
+
if (isDisabledRaised) {
|
|
24
|
+
return react_styles_1.css(card_1.default.modifiers.nonSelectableRaised);
|
|
25
|
+
}
|
|
26
|
+
if (isSelectableRaised) {
|
|
27
|
+
return react_styles_1.css(card_1.default.modifiers.selectableRaised, isSelected && card_1.default.modifiers.selectedRaised);
|
|
28
|
+
}
|
|
29
|
+
if (isSelectable || isHoverable) {
|
|
30
|
+
return react_styles_1.css(card_1.default.modifiers.selectable, isSelected && card_1.default.modifiers.selected);
|
|
31
|
+
}
|
|
32
|
+
return '';
|
|
33
|
+
};
|
|
22
34
|
return (React.createElement(exports.CardContext.Provider, { value: {
|
|
23
35
|
cardId: id,
|
|
24
36
|
isExpanded
|
|
25
37
|
} },
|
|
26
|
-
React.createElement(Component, Object.assign({ id: id, className: react_styles_1.css(card_1.default.card,
|
|
38
|
+
React.createElement(Component, Object.assign({ id: id, className: react_styles_1.css(card_1.default.card, isCompact && card_1.default.modifiers.compact, isExpanded && card_1.default.modifiers.expanded, isFlat && card_1.default.modifiers.flat, isRounded && card_1.default.modifiers.rounded, isLarge && card_1.default.modifiers.displayLg, isFullHeight && card_1.default.modifiers.fullHeight, isPlain && card_1.default.modifiers.plain, getSelectableModifiers(), className), tabIndex: isSelectable || isSelectableRaised ? '0' : undefined }, props, ouiaProps), children)));
|
|
27
39
|
};
|
|
28
40
|
exports.Card = Card;
|
|
29
41
|
exports.Card.displayName = 'Card';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../src/components/Card/Card.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,qGAAuE;AACvE,2DAA+C;AAC/C,2CAAwD;
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../src/components/Card/Card.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,qGAAuE;AACvE,2DAA+C;AAC/C,2CAAwD;AA0C3C,QAAA,WAAW,GAAG,KAAK,CAAC,aAAa,CAA4B;IACxE,MAAM,EAAE,EAAE;IACV,UAAU,EAAE,KAAK;CAClB,CAAC,CAAC;AAEI,MAAM,IAAI,GAAuC,CAAC,EAoB7C,EAAE,EAAE;QApByC,EACvD,QAAQ,GAAG,IAAI,EACf,EAAE,GAAG,EAAE,EACP,SAAS,GAAG,EAAE,EACd,SAAS,GAAG,SAAS,EACrB,WAAW,GAAG,KAAK,EACnB,SAAS,GAAG,KAAK,EACjB,YAAY,GAAG,KAAK,EACpB,kBAAkB,GAAG,KAAK,EAC1B,UAAU,GAAG,KAAK,EAClB,gBAAgB,GAAG,KAAK,EACxB,MAAM,GAAG,KAAK,EACd,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,KAAK,EACjB,OAAO,GAAG,KAAK,EACf,YAAY,GAAG,KAAK,EACpB,OAAO,GAAG,KAAK,EACf,MAAM,EACN,QAAQ,GAAG,IAAI,OAE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YAAY,IAAI,cAAM,CAAC,SAAS,CAAC,UAAU,EAC3C,OAAO,IAAI,cAAM,CAAC,SAAS,CAAC,KAAK,EACjC,sBAAsB,EAAE,EACxB,SAAS,CACV,EACD,QAAQ,EAAE,YAAY,IAAI,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,IAC1D,KAAK,EACL,SAAS,GAEZ,QAAQ,CACC,CACS,CACxB,CAAC;AACJ,CAAC,CAAC;AAvEW,QAAA,IAAI,QAuEf;AACF,YAAI,CAAC,WAAW,GAAG,MAAM,CAAC"}
|
package/dist/umd/react-core.css
CHANGED
|
@@ -15348,6 +15348,197 @@ label.pf-c-radio, .pf-c-radio__label,
|
|
|
15348
15348
|
cursor: not-allowed;
|
|
15349
15349
|
}
|
|
15350
15350
|
|
|
15351
|
+
.pf-c-search-input {
|
|
15352
|
+
--pf-c-search-input__text--before--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
15353
|
+
--pf-c-search-input__text--before--BorderColor: var(--pf-global--BorderColor--300);
|
|
15354
|
+
--pf-c-search-input__text--after--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
|
|
15355
|
+
--pf-c-search-input__text--after--BorderBottomColor: var(--pf-global--BorderColor--200);
|
|
15356
|
+
--pf-c-search-input__bar--hover__text--after--BorderBottomColor: var(--pf-global--primary-color--100);
|
|
15357
|
+
--pf-c-search-input__text--focus-within--after--BorderBottomWidth: var(--pf-global--BorderWidth--md);
|
|
15358
|
+
--pf-c-search-input__text--focus-within--after--BorderBottomColor: var(--pf-global--primary-color--100);
|
|
15359
|
+
--pf-c-search-input__text-input--PaddingTop: var(--pf-global--spacer--form-element);
|
|
15360
|
+
--pf-c-search-input__text-input--PaddingRight: var(--pf-global--spacer--sm);
|
|
15361
|
+
--pf-c-search-input__text-input--PaddingBottom: var(--pf-global--spacer--form-element);
|
|
15362
|
+
--pf-c-search-input__text-input--PaddingLeft: var(--pf-global--spacer--xl);
|
|
15363
|
+
--pf-c-search-input__text-input--MinWidth: 6ch;
|
|
15364
|
+
--pf-c-search-input__text-input--m-hint--Color: var(--pf-global--Color--dark-200);
|
|
15365
|
+
--pf-c-search-input__icon--Left: var(--pf-global--spacer--sm);
|
|
15366
|
+
--pf-c-search-input__icon--Color: var(--pf-global--Color--200);
|
|
15367
|
+
--pf-c-search-input__text--hover__icon--Color: var(--pf-global--Color--100);
|
|
15368
|
+
--pf-c-search-input__icon--TranslateY: -50%;
|
|
15369
|
+
--pf-c-search-input__utilities--MarginRight: var(--pf-global--spacer--sm);
|
|
15370
|
+
--pf-c-search-input__utilities--MarginLeft: var(--pf-global--spacer--xs);
|
|
15371
|
+
--pf-c-search-input__utilities--child--MarginLeft: var(--pf-global--spacer--xs);
|
|
15372
|
+
--pf-c-search-input__utilities--c-button--PaddingRight: var(--pf-global--spacer--xs);
|
|
15373
|
+
--pf-c-search-input__utilities--c-button--PaddingLeft: var(--pf-global--spacer--xs);
|
|
15374
|
+
--pf-c-search-input__menu-body--PaddingTop: var(--pf-global--spacer--md);
|
|
15375
|
+
--pf-c-search-input__menu-body--PaddingRight: var(--pf-global--spacer--md);
|
|
15376
|
+
--pf-c-search-input__menu-body--PaddingBottom: var(--pf-global--spacer--md);
|
|
15377
|
+
--pf-c-search-input__menu-body--PaddingLeft: var(--pf-global--spacer--md);
|
|
15378
|
+
--pf-c-search-input__menu--BackgroundColor: var(--pf-global--BackgroundColor--light-100);
|
|
15379
|
+
--pf-c-search-input__menu--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
15380
|
+
--pf-c-search-input__menu--Top: calc(100% + var(--pf-global--spacer--xs));
|
|
15381
|
+
--pf-c-search-input__menu--ZIndex: var(--pf-global--ZIndex--sm);
|
|
15382
|
+
--pf-c-search-input--m-top__menu--Top: 0;
|
|
15383
|
+
--pf-c-search-input--m-top__menu--TranslateY: calc(-100% - var(--pf-global--spacer--xs));
|
|
15384
|
+
--pf-c-search-input__menu-list--PaddingTop: var(--pf-global--spacer--sm);
|
|
15385
|
+
--pf-c-search-input__menu-list--PaddingBottom: var(--pf-global--spacer--sm);
|
|
15386
|
+
--pf-c-search-input__menu-item--PaddingTop: var(--pf-global--spacer--sm);
|
|
15387
|
+
--pf-c-search-input__menu-item--PaddingRight: var(--pf-global--spacer--md);
|
|
15388
|
+
--pf-c-search-input__menu-item--PaddingBottom: var(--pf-global--spacer--sm);
|
|
15389
|
+
--pf-c-search-input__menu-item--PaddingLeft: var(--pf-global--spacer--md);
|
|
15390
|
+
--pf-c-search-input__menu-item--Color: var(--pf-global--Color--100);
|
|
15391
|
+
--pf-c-search-input__menu-item--BackgroundColor: transparent;
|
|
15392
|
+
--pf-c-search-input__menu-item--hover--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
15393
|
+
--pf-c-search-input__menu-item--focus--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
15394
|
+
position: relative;
|
|
15395
|
+
}
|
|
15396
|
+
|
|
15397
|
+
.pf-c-search-input__bar {
|
|
15398
|
+
position: relative;
|
|
15399
|
+
display: flex;
|
|
15400
|
+
width: 100%;
|
|
15401
|
+
}
|
|
15402
|
+
|
|
15403
|
+
.pf-c-search-input__bar:hover {
|
|
15404
|
+
--pf-c-search-input__text--after--BorderBottomColor: var(--pf-c-search-input__bar--hover__text--after--BorderBottomColor);
|
|
15405
|
+
}
|
|
15406
|
+
|
|
15407
|
+
.pf-c-search-input__text {
|
|
15408
|
+
display: grid;
|
|
15409
|
+
grid-template-columns: 1fr;
|
|
15410
|
+
grid-template-areas: "text-input";
|
|
15411
|
+
flex: 1;
|
|
15412
|
+
}
|
|
15413
|
+
|
|
15414
|
+
.pf-c-search-input__text::before, .pf-c-search-input__text::after {
|
|
15415
|
+
position: absolute;
|
|
15416
|
+
top: 0;
|
|
15417
|
+
right: 0;
|
|
15418
|
+
bottom: 0;
|
|
15419
|
+
left: 0;
|
|
15420
|
+
pointer-events: none;
|
|
15421
|
+
content: "";
|
|
15422
|
+
}
|
|
15423
|
+
|
|
15424
|
+
.pf-c-search-input__text::before {
|
|
15425
|
+
border: var(--pf-c-search-input__text--before--BorderWidth) solid var(--pf-c-search-input__text--before--BorderColor);
|
|
15426
|
+
}
|
|
15427
|
+
|
|
15428
|
+
.pf-c-search-input__text::after {
|
|
15429
|
+
border-bottom: var(--pf-c-search-input__text--after--BorderBottomWidth) solid var(--pf-c-search-input__text--after--BorderBottomColor);
|
|
15430
|
+
}
|
|
15431
|
+
|
|
15432
|
+
.pf-c-search-input__text:hover, .pf-c-search-input__text:focus-within {
|
|
15433
|
+
--pf-c-search-input__icon--Color: var(--pf-c-search-input__text--hover__icon--Color);
|
|
15434
|
+
}
|
|
15435
|
+
|
|
15436
|
+
.pf-c-search-input__text:focus-within {
|
|
15437
|
+
--pf-c-search-input__text--after--BorderBottomWidth: var(--pf-c-search-input__text--focus-within--after--BorderBottomWidth);
|
|
15438
|
+
--pf-c-search-input__text--after--BorderBottomColor: var(--pf-c-search-input__text--focus-within--after--BorderBottomColor);
|
|
15439
|
+
}
|
|
15440
|
+
|
|
15441
|
+
.pf-c-search-input__icon {
|
|
15442
|
+
position: absolute;
|
|
15443
|
+
top: 50%;
|
|
15444
|
+
left: var(--pf-c-search-input__icon--Left);
|
|
15445
|
+
color: var(--pf-c-search-input__icon--Color);
|
|
15446
|
+
transform: translateY(var(--pf-c-search-input__icon--TranslateY));
|
|
15447
|
+
}
|
|
15448
|
+
|
|
15449
|
+
.pf-c-search-input__text-input {
|
|
15450
|
+
overflow: hidden;
|
|
15451
|
+
text-overflow: ellipsis;
|
|
15452
|
+
white-space: nowrap;
|
|
15453
|
+
position: relative;
|
|
15454
|
+
width: 100%;
|
|
15455
|
+
min-width: var(--pf-c-search-input__text-input--MinWidth);
|
|
15456
|
+
padding: var(--pf-c-search-input__text-input--PaddingTop) var(--pf-c-search-input__text-input--PaddingRight) var(--pf-c-search-input__text-input--PaddingBottom) var(--pf-c-search-input__text-input--PaddingLeft);
|
|
15457
|
+
border: 0;
|
|
15458
|
+
}
|
|
15459
|
+
|
|
15460
|
+
.pf-c-search-input__text-input, .pf-c-search-input__text-input.pf-m-hint {
|
|
15461
|
+
grid-area: text-input;
|
|
15462
|
+
}
|
|
15463
|
+
|
|
15464
|
+
.pf-c-search-input__text-input.pf-m-hint {
|
|
15465
|
+
color: var(--pf-c-search-input__text-input--m-hint--Color);
|
|
15466
|
+
}
|
|
15467
|
+
|
|
15468
|
+
.pf-c-search-input__utilities {
|
|
15469
|
+
display: flex;
|
|
15470
|
+
margin-right: var(--pf-c-search-input__utilities--MarginRight);
|
|
15471
|
+
margin-left: var(--pf-c-search-input__utilities--MarginLeft);
|
|
15472
|
+
}
|
|
15473
|
+
|
|
15474
|
+
.pf-c-search-input__utilities > * + * {
|
|
15475
|
+
margin-left: var(--pf-c-search-input__utilities--child--MarginLeft);
|
|
15476
|
+
}
|
|
15477
|
+
|
|
15478
|
+
.pf-c-search-input__utilities .pf-c-button {
|
|
15479
|
+
--pf-c-button--PaddingRight: var(--pf-c-search-input__utilities--c-button--PaddingRight);
|
|
15480
|
+
--pf-c-button--PaddingLeft: var(--pf-c-search-input__utilities--c-button--PaddingLeft);
|
|
15481
|
+
}
|
|
15482
|
+
|
|
15483
|
+
.pf-c-search-input__nav {
|
|
15484
|
+
display: flex;
|
|
15485
|
+
}
|
|
15486
|
+
|
|
15487
|
+
.pf-c-search-input__count {
|
|
15488
|
+
display: flex;
|
|
15489
|
+
align-items: center;
|
|
15490
|
+
}
|
|
15491
|
+
|
|
15492
|
+
.pf-c-search-input__menu {
|
|
15493
|
+
position: absolute;
|
|
15494
|
+
top: var(--pf-c-search-input__menu--Top);
|
|
15495
|
+
z-index: var(--pf-c-search-input__menu--ZIndex);
|
|
15496
|
+
min-width: 100%;
|
|
15497
|
+
background-color: var(--pf-c-search-input__menu--BackgroundColor);
|
|
15498
|
+
background-clip: padding-box;
|
|
15499
|
+
box-shadow: var(--pf-c-search-input__menu--BoxShadow);
|
|
15500
|
+
}
|
|
15501
|
+
|
|
15502
|
+
.pf-c-search-input.pf-m-top .pf-c-search-input__menu {
|
|
15503
|
+
--pf-c-search-input__menu--Top: var(--pf-c-search-input--m-top__menu--Top);
|
|
15504
|
+
transform: translateY(var(--pf-c-search-input--m-top__menu--TranslateY));
|
|
15505
|
+
}
|
|
15506
|
+
|
|
15507
|
+
.pf-c-search-input__menu-body {
|
|
15508
|
+
padding: var(--pf-c-search-input__menu-body--PaddingTop) var(--pf-c-search-input__menu-body--PaddingRight) var(--pf-c-search-input__menu-body--PaddingBottom) var(--pf-c-search-input__menu-body--PaddingLeft);
|
|
15509
|
+
}
|
|
15510
|
+
|
|
15511
|
+
.pf-c-search-input__menu-list {
|
|
15512
|
+
padding-top: var(--pf-c-search-input__menu-list--PaddingTop);
|
|
15513
|
+
padding-bottom: var(--pf-c-search-input__menu-list--PaddingBottom);
|
|
15514
|
+
}
|
|
15515
|
+
|
|
15516
|
+
.pf-c-search-input__menu-item {
|
|
15517
|
+
display: flex;
|
|
15518
|
+
width: 100%;
|
|
15519
|
+
min-width: 0;
|
|
15520
|
+
padding-top: var(--pf-c-search-input__menu-item--PaddingTop);
|
|
15521
|
+
padding-right: var(--pf-c-search-input__menu-item--PaddingRight);
|
|
15522
|
+
padding-bottom: var(--pf-c-search-input__menu-item--PaddingBottom);
|
|
15523
|
+
padding-left: var(--pf-c-search-input__menu-item--PaddingLeft);
|
|
15524
|
+
color: var(--pf-c-search-input__menu-item--Color);
|
|
15525
|
+
text-align: left;
|
|
15526
|
+
background-color: var(--pf-c-search-input__menu-item--BackgroundColor);
|
|
15527
|
+
border: none;
|
|
15528
|
+
}
|
|
15529
|
+
|
|
15530
|
+
.pf-c-search-input__menu-item:hover {
|
|
15531
|
+
--pf-c-search-input__menu-item--BackgroundColor: var(--pf-c-search-input__menu-item--hover--BackgroundColor);
|
|
15532
|
+
}
|
|
15533
|
+
|
|
15534
|
+
.pf-c-search-input__menu-item:focus {
|
|
15535
|
+
--pf-c-search-input__menu-item--BackgroundColor: var(--pf-c-search-input__menu-item--focus--BackgroundColor);
|
|
15536
|
+
}
|
|
15537
|
+
|
|
15538
|
+
.pf-c-search-input__menu-item-text {
|
|
15539
|
+
flex-grow: 1;
|
|
15540
|
+
}
|
|
15541
|
+
|
|
15351
15542
|
.pf-c-select {
|
|
15352
15543
|
--pf-global--Color--100: var(--pf-global--Color--dark-100);
|
|
15353
15544
|
--pf-global--Color--200: var(--pf-global--Color--dark-200);
|
|
@@ -15950,197 +16141,6 @@ label.pf-c-radio, .pf-c-radio__label,
|
|
|
15950
16141
|
box-shadow: var(--pf-c-select__menu-footer--BoxShadow);
|
|
15951
16142
|
}
|
|
15952
16143
|
|
|
15953
|
-
.pf-c-search-input {
|
|
15954
|
-
--pf-c-search-input__text--before--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
15955
|
-
--pf-c-search-input__text--before--BorderColor: var(--pf-global--BorderColor--300);
|
|
15956
|
-
--pf-c-search-input__text--after--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
|
|
15957
|
-
--pf-c-search-input__text--after--BorderBottomColor: var(--pf-global--BorderColor--200);
|
|
15958
|
-
--pf-c-search-input__bar--hover__text--after--BorderBottomColor: var(--pf-global--primary-color--100);
|
|
15959
|
-
--pf-c-search-input__text--focus-within--after--BorderBottomWidth: var(--pf-global--BorderWidth--md);
|
|
15960
|
-
--pf-c-search-input__text--focus-within--after--BorderBottomColor: var(--pf-global--primary-color--100);
|
|
15961
|
-
--pf-c-search-input__text-input--PaddingTop: var(--pf-global--spacer--form-element);
|
|
15962
|
-
--pf-c-search-input__text-input--PaddingRight: var(--pf-global--spacer--sm);
|
|
15963
|
-
--pf-c-search-input__text-input--PaddingBottom: var(--pf-global--spacer--form-element);
|
|
15964
|
-
--pf-c-search-input__text-input--PaddingLeft: var(--pf-global--spacer--xl);
|
|
15965
|
-
--pf-c-search-input__text-input--MinWidth: 6ch;
|
|
15966
|
-
--pf-c-search-input__text-input--m-hint--Color: var(--pf-global--Color--dark-200);
|
|
15967
|
-
--pf-c-search-input__icon--Left: var(--pf-global--spacer--sm);
|
|
15968
|
-
--pf-c-search-input__icon--Color: var(--pf-global--Color--200);
|
|
15969
|
-
--pf-c-search-input__text--hover__icon--Color: var(--pf-global--Color--100);
|
|
15970
|
-
--pf-c-search-input__icon--TranslateY: -50%;
|
|
15971
|
-
--pf-c-search-input__utilities--MarginRight: var(--pf-global--spacer--sm);
|
|
15972
|
-
--pf-c-search-input__utilities--MarginLeft: var(--pf-global--spacer--xs);
|
|
15973
|
-
--pf-c-search-input__utilities--child--MarginLeft: var(--pf-global--spacer--xs);
|
|
15974
|
-
--pf-c-search-input__utilities--c-button--PaddingRight: var(--pf-global--spacer--xs);
|
|
15975
|
-
--pf-c-search-input__utilities--c-button--PaddingLeft: var(--pf-global--spacer--xs);
|
|
15976
|
-
--pf-c-search-input__menu-body--PaddingTop: var(--pf-global--spacer--md);
|
|
15977
|
-
--pf-c-search-input__menu-body--PaddingRight: var(--pf-global--spacer--md);
|
|
15978
|
-
--pf-c-search-input__menu-body--PaddingBottom: var(--pf-global--spacer--md);
|
|
15979
|
-
--pf-c-search-input__menu-body--PaddingLeft: var(--pf-global--spacer--md);
|
|
15980
|
-
--pf-c-search-input__menu--BackgroundColor: var(--pf-global--BackgroundColor--light-100);
|
|
15981
|
-
--pf-c-search-input__menu--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
15982
|
-
--pf-c-search-input__menu--Top: calc(100% + var(--pf-global--spacer--xs));
|
|
15983
|
-
--pf-c-search-input__menu--ZIndex: var(--pf-global--ZIndex--sm);
|
|
15984
|
-
--pf-c-search-input--m-top__menu--Top: 0;
|
|
15985
|
-
--pf-c-search-input--m-top__menu--TranslateY: calc(-100% - var(--pf-global--spacer--xs));
|
|
15986
|
-
--pf-c-search-input__menu-list--PaddingTop: var(--pf-global--spacer--sm);
|
|
15987
|
-
--pf-c-search-input__menu-list--PaddingBottom: var(--pf-global--spacer--sm);
|
|
15988
|
-
--pf-c-search-input__menu-item--PaddingTop: var(--pf-global--spacer--sm);
|
|
15989
|
-
--pf-c-search-input__menu-item--PaddingRight: var(--pf-global--spacer--md);
|
|
15990
|
-
--pf-c-search-input__menu-item--PaddingBottom: var(--pf-global--spacer--sm);
|
|
15991
|
-
--pf-c-search-input__menu-item--PaddingLeft: var(--pf-global--spacer--md);
|
|
15992
|
-
--pf-c-search-input__menu-item--Color: var(--pf-global--Color--100);
|
|
15993
|
-
--pf-c-search-input__menu-item--BackgroundColor: transparent;
|
|
15994
|
-
--pf-c-search-input__menu-item--hover--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
15995
|
-
--pf-c-search-input__menu-item--focus--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
15996
|
-
position: relative;
|
|
15997
|
-
}
|
|
15998
|
-
|
|
15999
|
-
.pf-c-search-input__bar {
|
|
16000
|
-
position: relative;
|
|
16001
|
-
display: flex;
|
|
16002
|
-
width: 100%;
|
|
16003
|
-
}
|
|
16004
|
-
|
|
16005
|
-
.pf-c-search-input__bar:hover {
|
|
16006
|
-
--pf-c-search-input__text--after--BorderBottomColor: var(--pf-c-search-input__bar--hover__text--after--BorderBottomColor);
|
|
16007
|
-
}
|
|
16008
|
-
|
|
16009
|
-
.pf-c-search-input__text {
|
|
16010
|
-
display: grid;
|
|
16011
|
-
grid-template-columns: 1fr;
|
|
16012
|
-
grid-template-areas: "text-input";
|
|
16013
|
-
flex: 1;
|
|
16014
|
-
}
|
|
16015
|
-
|
|
16016
|
-
.pf-c-search-input__text::before, .pf-c-search-input__text::after {
|
|
16017
|
-
position: absolute;
|
|
16018
|
-
top: 0;
|
|
16019
|
-
right: 0;
|
|
16020
|
-
bottom: 0;
|
|
16021
|
-
left: 0;
|
|
16022
|
-
pointer-events: none;
|
|
16023
|
-
content: "";
|
|
16024
|
-
}
|
|
16025
|
-
|
|
16026
|
-
.pf-c-search-input__text::before {
|
|
16027
|
-
border: var(--pf-c-search-input__text--before--BorderWidth) solid var(--pf-c-search-input__text--before--BorderColor);
|
|
16028
|
-
}
|
|
16029
|
-
|
|
16030
|
-
.pf-c-search-input__text::after {
|
|
16031
|
-
border-bottom: var(--pf-c-search-input__text--after--BorderBottomWidth) solid var(--pf-c-search-input__text--after--BorderBottomColor);
|
|
16032
|
-
}
|
|
16033
|
-
|
|
16034
|
-
.pf-c-search-input__text:hover, .pf-c-search-input__text:focus-within {
|
|
16035
|
-
--pf-c-search-input__icon--Color: var(--pf-c-search-input__text--hover__icon--Color);
|
|
16036
|
-
}
|
|
16037
|
-
|
|
16038
|
-
.pf-c-search-input__text:focus-within {
|
|
16039
|
-
--pf-c-search-input__text--after--BorderBottomWidth: var(--pf-c-search-input__text--focus-within--after--BorderBottomWidth);
|
|
16040
|
-
--pf-c-search-input__text--after--BorderBottomColor: var(--pf-c-search-input__text--focus-within--after--BorderBottomColor);
|
|
16041
|
-
}
|
|
16042
|
-
|
|
16043
|
-
.pf-c-search-input__icon {
|
|
16044
|
-
position: absolute;
|
|
16045
|
-
top: 50%;
|
|
16046
|
-
left: var(--pf-c-search-input__icon--Left);
|
|
16047
|
-
color: var(--pf-c-search-input__icon--Color);
|
|
16048
|
-
transform: translateY(var(--pf-c-search-input__icon--TranslateY));
|
|
16049
|
-
}
|
|
16050
|
-
|
|
16051
|
-
.pf-c-search-input__text-input {
|
|
16052
|
-
overflow: hidden;
|
|
16053
|
-
text-overflow: ellipsis;
|
|
16054
|
-
white-space: nowrap;
|
|
16055
|
-
position: relative;
|
|
16056
|
-
width: 100%;
|
|
16057
|
-
min-width: var(--pf-c-search-input__text-input--MinWidth);
|
|
16058
|
-
padding: var(--pf-c-search-input__text-input--PaddingTop) var(--pf-c-search-input__text-input--PaddingRight) var(--pf-c-search-input__text-input--PaddingBottom) var(--pf-c-search-input__text-input--PaddingLeft);
|
|
16059
|
-
border: 0;
|
|
16060
|
-
}
|
|
16061
|
-
|
|
16062
|
-
.pf-c-search-input__text-input, .pf-c-search-input__text-input.pf-m-hint {
|
|
16063
|
-
grid-area: text-input;
|
|
16064
|
-
}
|
|
16065
|
-
|
|
16066
|
-
.pf-c-search-input__text-input.pf-m-hint {
|
|
16067
|
-
color: var(--pf-c-search-input__text-input--m-hint--Color);
|
|
16068
|
-
}
|
|
16069
|
-
|
|
16070
|
-
.pf-c-search-input__utilities {
|
|
16071
|
-
display: flex;
|
|
16072
|
-
margin-right: var(--pf-c-search-input__utilities--MarginRight);
|
|
16073
|
-
margin-left: var(--pf-c-search-input__utilities--MarginLeft);
|
|
16074
|
-
}
|
|
16075
|
-
|
|
16076
|
-
.pf-c-search-input__utilities > * + * {
|
|
16077
|
-
margin-left: var(--pf-c-search-input__utilities--child--MarginLeft);
|
|
16078
|
-
}
|
|
16079
|
-
|
|
16080
|
-
.pf-c-search-input__utilities .pf-c-button {
|
|
16081
|
-
--pf-c-button--PaddingRight: var(--pf-c-search-input__utilities--c-button--PaddingRight);
|
|
16082
|
-
--pf-c-button--PaddingLeft: var(--pf-c-search-input__utilities--c-button--PaddingLeft);
|
|
16083
|
-
}
|
|
16084
|
-
|
|
16085
|
-
.pf-c-search-input__nav {
|
|
16086
|
-
display: flex;
|
|
16087
|
-
}
|
|
16088
|
-
|
|
16089
|
-
.pf-c-search-input__count {
|
|
16090
|
-
display: flex;
|
|
16091
|
-
align-items: center;
|
|
16092
|
-
}
|
|
16093
|
-
|
|
16094
|
-
.pf-c-search-input__menu {
|
|
16095
|
-
position: absolute;
|
|
16096
|
-
top: var(--pf-c-search-input__menu--Top);
|
|
16097
|
-
z-index: var(--pf-c-search-input__menu--ZIndex);
|
|
16098
|
-
min-width: 100%;
|
|
16099
|
-
background-color: var(--pf-c-search-input__menu--BackgroundColor);
|
|
16100
|
-
background-clip: padding-box;
|
|
16101
|
-
box-shadow: var(--pf-c-search-input__menu--BoxShadow);
|
|
16102
|
-
}
|
|
16103
|
-
|
|
16104
|
-
.pf-c-search-input.pf-m-top .pf-c-search-input__menu {
|
|
16105
|
-
--pf-c-search-input__menu--Top: var(--pf-c-search-input--m-top__menu--Top);
|
|
16106
|
-
transform: translateY(var(--pf-c-search-input--m-top__menu--TranslateY));
|
|
16107
|
-
}
|
|
16108
|
-
|
|
16109
|
-
.pf-c-search-input__menu-body {
|
|
16110
|
-
padding: var(--pf-c-search-input__menu-body--PaddingTop) var(--pf-c-search-input__menu-body--PaddingRight) var(--pf-c-search-input__menu-body--PaddingBottom) var(--pf-c-search-input__menu-body--PaddingLeft);
|
|
16111
|
-
}
|
|
16112
|
-
|
|
16113
|
-
.pf-c-search-input__menu-list {
|
|
16114
|
-
padding-top: var(--pf-c-search-input__menu-list--PaddingTop);
|
|
16115
|
-
padding-bottom: var(--pf-c-search-input__menu-list--PaddingBottom);
|
|
16116
|
-
}
|
|
16117
|
-
|
|
16118
|
-
.pf-c-search-input__menu-item {
|
|
16119
|
-
display: flex;
|
|
16120
|
-
width: 100%;
|
|
16121
|
-
min-width: 0;
|
|
16122
|
-
padding-top: var(--pf-c-search-input__menu-item--PaddingTop);
|
|
16123
|
-
padding-right: var(--pf-c-search-input__menu-item--PaddingRight);
|
|
16124
|
-
padding-bottom: var(--pf-c-search-input__menu-item--PaddingBottom);
|
|
16125
|
-
padding-left: var(--pf-c-search-input__menu-item--PaddingLeft);
|
|
16126
|
-
color: var(--pf-c-search-input__menu-item--Color);
|
|
16127
|
-
text-align: left;
|
|
16128
|
-
background-color: var(--pf-c-search-input__menu-item--BackgroundColor);
|
|
16129
|
-
border: none;
|
|
16130
|
-
}
|
|
16131
|
-
|
|
16132
|
-
.pf-c-search-input__menu-item:hover {
|
|
16133
|
-
--pf-c-search-input__menu-item--BackgroundColor: var(--pf-c-search-input__menu-item--hover--BackgroundColor);
|
|
16134
|
-
}
|
|
16135
|
-
|
|
16136
|
-
.pf-c-search-input__menu-item:focus {
|
|
16137
|
-
--pf-c-search-input__menu-item--BackgroundColor: var(--pf-c-search-input__menu-item--focus--BackgroundColor);
|
|
16138
|
-
}
|
|
16139
|
-
|
|
16140
|
-
.pf-c-search-input__menu-item-text {
|
|
16141
|
-
flex-grow: 1;
|
|
16142
|
-
}
|
|
16143
|
-
|
|
16144
16144
|
.pf-c-simple-list {
|
|
16145
16145
|
--pf-c-simple-list__item-link--PaddingTop: var(--pf-global--spacer--xs);
|
|
16146
16146
|
--pf-c-simple-list__item-link--PaddingRight: var(--pf-global--spacer--md);
|
package/dist/umd/react-core.js
CHANGED
|
@@ -7630,7 +7630,7 @@
|
|
|
7630
7630
|
isExpanded: false
|
|
7631
7631
|
});
|
|
7632
7632
|
const Card = (_a) => {
|
|
7633
|
-
var { children = null, id = '', className = '', component = 'article', isHoverable = false,
|
|
7633
|
+
var { children = null, id = '', className = '', component = 'article', isHoverable = false, isCompact = false, isSelectable = false, isSelectableRaised = false, isSelected = false, isDisabledRaised = false, isFlat = false, isExpanded = false, isRounded = false, isLarge = false, isFullHeight = false, isPlain = false, ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["children", "id", "className", "component", "isHoverable", "isCompact", "isSelectable", "isSelectableRaised", "isSelected", "isDisabledRaised", "isFlat", "isExpanded", "isRounded", "isLarge", "isFullHeight", "isPlain", "ouiaId", "ouiaSafe"]);
|
|
7634
7634
|
const Component = component;
|
|
7635
7635
|
const ouiaProps = useOUIAProps(Card.displayName, ouiaId, ouiaSafe);
|
|
7636
7636
|
if (isCompact && isLarge) {
|
|
@@ -7638,11 +7638,23 @@
|
|
|
7638
7638
|
console.warn('Card: Cannot use isCompact with isLarge. Defaulting to isCompact');
|
|
7639
7639
|
isLarge = false;
|
|
7640
7640
|
}
|
|
7641
|
+
const getSelectableModifiers = () => {
|
|
7642
|
+
if (isDisabledRaised) {
|
|
7643
|
+
return css(_default$Y.modifiers.nonSelectableRaised);
|
|
7644
|
+
}
|
|
7645
|
+
if (isSelectableRaised) {
|
|
7646
|
+
return css(_default$Y.modifiers.selectableRaised, isSelected && _default$Y.modifiers.selectedRaised);
|
|
7647
|
+
}
|
|
7648
|
+
if (isSelectable || isHoverable) {
|
|
7649
|
+
return css(_default$Y.modifiers.selectable, isSelected && _default$Y.modifiers.selected);
|
|
7650
|
+
}
|
|
7651
|
+
return '';
|
|
7652
|
+
};
|
|
7641
7653
|
return (React__namespace.createElement(CardContext.Provider, { value: {
|
|
7642
7654
|
cardId: id,
|
|
7643
7655
|
isExpanded
|
|
7644
7656
|
} },
|
|
7645
|
-
React__namespace.createElement(Component, Object.assign({ id: id, className: css(_default$Y.card,
|
|
7657
|
+
React__namespace.createElement(Component, Object.assign({ id: id, className: css(_default$Y.card, isCompact && _default$Y.modifiers.compact, isExpanded && _default$Y.modifiers.expanded, isFlat && _default$Y.modifiers.flat, isRounded && _default$Y.modifiers.rounded, isLarge && _default$Y.modifiers.displayLg, isFullHeight && _default$Y.modifiers.fullHeight, isPlain && _default$Y.modifiers.plain, getSelectableModifiers(), className), tabIndex: isSelectable || isSelectableRaised ? '0' : undefined }, props, ouiaProps), children)));
|
|
7646
7658
|
};
|
|
7647
7659
|
Card.displayName = 'Card';
|
|
7648
7660
|
|