@patternfly/react-core 4.234.4 → 4.235.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 +27 -0
- package/dist/esm/next/components/Wizard/Wizard.d.ts +40 -0
- package/dist/esm/next/components/Wizard/Wizard.d.ts.map +1 -0
- package/dist/esm/next/components/Wizard/Wizard.js +86 -0
- package/dist/esm/next/components/Wizard/Wizard.js.map +1 -0
- package/dist/esm/next/components/Wizard/WizardBody.d.ts +20 -0
- package/dist/esm/next/components/Wizard/WizardBody.d.ts.map +1 -0
- package/dist/esm/next/components/Wizard/WizardBody.js +7 -0
- package/dist/esm/next/components/Wizard/WizardBody.js.map +1 -0
- package/dist/esm/next/components/Wizard/WizardContext.d.ts +49 -0
- package/dist/esm/next/components/Wizard/WizardContext.d.ts.map +1 -0
- package/dist/esm/next/components/Wizard/WizardContext.js +34 -0
- package/dist/esm/next/components/Wizard/WizardContext.js.map +1 -0
- package/dist/esm/next/components/Wizard/WizardFooter.d.ts +28 -0
- package/dist/esm/next/components/Wizard/WizardFooter.d.ts.map +1 -0
- package/dist/esm/next/components/Wizard/WizardFooter.js +11 -0
- package/dist/esm/next/components/Wizard/WizardFooter.js.map +1 -0
- package/dist/esm/next/components/Wizard/WizardHeader.d.ts +21 -0
- package/dist/esm/next/components/Wizard/WizardHeader.d.ts.map +1 -0
- package/dist/esm/next/components/Wizard/WizardHeader.js +13 -0
- package/dist/esm/next/components/Wizard/WizardHeader.js.map +1 -0
- package/dist/esm/next/components/Wizard/WizardNav.d.ts +15 -0
- package/dist/esm/next/components/Wizard/WizardNav.d.ts.map +1 -0
- package/dist/esm/next/components/Wizard/WizardNav.js +13 -0
- package/dist/esm/next/components/Wizard/WizardNav.js.map +1 -0
- package/dist/esm/next/components/Wizard/WizardNavItem.d.ts +25 -0
- package/dist/esm/next/components/Wizard/WizardNavItem.d.ts.map +1 -0
- package/dist/esm/next/components/Wizard/WizardNavItem.js +33 -0
- package/dist/esm/next/components/Wizard/WizardNavItem.js.map +1 -0
- package/dist/esm/next/components/Wizard/WizardStep.d.ts +20 -0
- package/dist/esm/next/components/Wizard/WizardStep.d.ts.map +1 -0
- package/dist/esm/next/components/Wizard/WizardStep.js +5 -0
- package/dist/esm/next/components/Wizard/WizardStep.js.map +1 -0
- package/dist/esm/next/components/Wizard/WizardToggle.d.ts +26 -0
- package/dist/esm/next/components/Wizard/WizardToggle.d.ts.map +1 -0
- package/dist/esm/next/components/Wizard/WizardToggle.js +81 -0
- package/dist/esm/next/components/Wizard/WizardToggle.js.map +1 -0
- package/dist/esm/next/components/Wizard/hooks/index.d.ts +2 -0
- package/dist/esm/next/components/Wizard/hooks/index.d.ts.map +1 -0
- package/dist/esm/next/components/Wizard/hooks/index.js +2 -0
- package/dist/esm/next/components/Wizard/hooks/index.js.map +1 -0
- package/dist/esm/next/components/Wizard/hooks/useWizardFooter.d.ts +8 -0
- package/dist/esm/next/components/Wizard/hooks/useWizardFooter.d.ts.map +1 -0
- package/dist/esm/next/components/Wizard/hooks/useWizardFooter.js +20 -0
- package/dist/esm/next/components/Wizard/hooks/useWizardFooter.js.map +1 -0
- package/dist/esm/next/components/Wizard/index.d.ts +12 -0
- package/dist/esm/next/components/Wizard/index.d.ts.map +1 -0
- package/dist/esm/next/components/Wizard/index.js +12 -0
- package/dist/esm/next/components/Wizard/index.js.map +1 -0
- package/dist/esm/next/components/Wizard/types.d.ts +69 -0
- package/dist/esm/next/components/Wizard/types.d.ts.map +1 -0
- package/dist/esm/next/components/Wizard/types.js +20 -0
- package/dist/esm/next/components/Wizard/types.js.map +1 -0
- package/dist/esm/next/components/Wizard/utils.d.ts +15 -0
- package/dist/esm/next/components/Wizard/utils.d.ts.map +1 -0
- package/dist/esm/next/components/Wizard/utils.js +35 -0
- package/dist/esm/next/components/Wizard/utils.js.map +1 -0
- package/dist/esm/next/components/index.d.ts +1 -1
- package/dist/esm/next/components/index.d.ts.map +1 -1
- package/dist/esm/next/components/index.js +1 -1
- package/dist/esm/next/components/index.js.map +1 -1
- package/dist/js/next/components/Wizard/Wizard.d.ts +40 -0
- package/dist/js/next/components/Wizard/Wizard.d.ts.map +1 -0
- package/dist/js/next/components/Wizard/Wizard.js +90 -0
- package/dist/js/next/components/Wizard/Wizard.js.map +1 -0
- package/dist/js/next/components/Wizard/WizardBody.d.ts +20 -0
- package/dist/js/next/components/Wizard/WizardBody.d.ts.map +1 -0
- package/dist/js/next/components/Wizard/WizardBody.js +12 -0
- package/dist/js/next/components/Wizard/WizardBody.js.map +1 -0
- package/dist/js/next/components/Wizard/WizardContext.d.ts +49 -0
- package/dist/js/next/components/Wizard/WizardContext.d.ts.map +1 -0
- package/dist/js/next/components/Wizard/WizardContext.js +40 -0
- package/dist/js/next/components/Wizard/WizardContext.js.map +1 -0
- package/dist/js/next/components/Wizard/WizardFooter.d.ts +28 -0
- package/dist/js/next/components/Wizard/WizardFooter.d.ts.map +1 -0
- package/dist/js/next/components/Wizard/WizardFooter.js +16 -0
- package/dist/js/next/components/Wizard/WizardFooter.js.map +1 -0
- package/dist/js/next/components/Wizard/WizardHeader.d.ts +21 -0
- package/dist/js/next/components/Wizard/WizardHeader.d.ts.map +1 -0
- package/dist/js/next/components/Wizard/WizardHeader.js +18 -0
- package/dist/js/next/components/Wizard/WizardHeader.js.map +1 -0
- package/dist/js/next/components/Wizard/WizardNav.d.ts +15 -0
- package/dist/js/next/components/Wizard/WizardNav.d.ts.map +1 -0
- package/dist/js/next/components/Wizard/WizardNav.js +18 -0
- package/dist/js/next/components/Wizard/WizardNav.js.map +1 -0
- package/dist/js/next/components/Wizard/WizardNavItem.d.ts +25 -0
- package/dist/js/next/components/Wizard/WizardNavItem.d.ts.map +1 -0
- package/dist/js/next/components/Wizard/WizardNavItem.js +37 -0
- package/dist/js/next/components/Wizard/WizardNavItem.js.map +1 -0
- package/dist/js/next/components/Wizard/WizardStep.d.ts +20 -0
- package/dist/js/next/components/Wizard/WizardStep.d.ts.map +1 -0
- package/dist/js/next/components/Wizard/WizardStep.js +10 -0
- package/dist/js/next/components/Wizard/WizardStep.js.map +1 -0
- package/dist/js/next/components/Wizard/WizardToggle.d.ts +26 -0
- package/dist/js/next/components/Wizard/WizardToggle.d.ts.map +1 -0
- package/dist/js/next/components/Wizard/WizardToggle.js +86 -0
- package/dist/js/next/components/Wizard/WizardToggle.js.map +1 -0
- package/dist/js/next/components/Wizard/hooks/index.d.ts +2 -0
- package/dist/js/next/components/Wizard/hooks/index.d.ts.map +1 -0
- package/dist/js/next/components/Wizard/hooks/index.js +6 -0
- package/dist/js/next/components/Wizard/hooks/index.js.map +1 -0
- package/dist/js/next/components/Wizard/hooks/useWizardFooter.d.ts +8 -0
- package/dist/js/next/components/Wizard/hooks/useWizardFooter.d.ts.map +1 -0
- package/dist/js/next/components/Wizard/hooks/useWizardFooter.js +25 -0
- package/dist/js/next/components/Wizard/hooks/useWizardFooter.js.map +1 -0
- package/dist/js/next/components/Wizard/index.d.ts +12 -0
- package/dist/js/next/components/Wizard/index.d.ts.map +1 -0
- package/dist/js/next/components/Wizard/index.js +17 -0
- package/dist/js/next/components/Wizard/index.js.map +1 -0
- package/dist/js/next/components/Wizard/types.d.ts +69 -0
- package/dist/js/next/components/Wizard/types.d.ts.map +1 -0
- package/dist/js/next/components/Wizard/types.js +29 -0
- package/dist/js/next/components/Wizard/types.js.map +1 -0
- package/dist/js/next/components/Wizard/utils.d.ts +15 -0
- package/dist/js/next/components/Wizard/utils.d.ts.map +1 -0
- package/dist/js/next/components/Wizard/utils.js +41 -0
- package/dist/js/next/components/Wizard/utils.js.map +1 -0
- package/dist/js/next/components/index.d.ts +1 -1
- package/dist/js/next/components/index.d.ts.map +1 -1
- package/dist/js/next/components/index.js +1 -1
- package/dist/js/next/components/index.js.map +1 -1
- package/dist/umd/react-core.css +991 -991
- package/dist/umd/react-core.js +509 -413
- package/dist/umd/react-core.min.css +70 -70
- package/dist/umd/react-core.min.js +5 -5
- package/package.json +10 -10
- package/src/components/Wizard/examples/Wizard.md +21 -4
- package/src/next/components/Wizard/Wizard.tsx +184 -0
- package/src/next/components/Wizard/WizardBody.tsx +34 -0
- package/src/next/components/Wizard/WizardContext.tsx +104 -0
- package/src/next/components/Wizard/WizardFooter.tsx +63 -0
- package/src/next/components/Wizard/WizardHeader.tsx +53 -0
- package/src/next/components/Wizard/WizardNav.tsx +41 -0
- package/src/next/components/Wizard/WizardNavItem.tsx +103 -0
- package/src/next/components/Wizard/WizardStep.tsx +23 -0
- package/src/next/components/Wizard/WizardToggle.tsx +209 -0
- package/src/next/components/Wizard/__tests__/Wizard.test.tsx +298 -0
- package/src/next/components/Wizard/examples/Wizard.md +125 -0
- package/src/next/components/Wizard/examples/WizardBasic.tsx +22 -0
- package/src/next/components/Wizard/examples/WizardCustomNav.tsx +46 -0
- package/src/next/components/Wizard/examples/WizardKitchenSink.tsx +170 -0
- package/src/next/components/Wizard/hooks/index.ts +1 -0
- package/src/next/components/Wizard/hooks/useWizardFooter.tsx +22 -0
- package/src/next/components/Wizard/index.ts +11 -0
- package/src/next/components/Wizard/types.tsx +101 -0
- package/src/next/components/Wizard/utils.ts +47 -0
- package/src/next/components/index.ts +1 -1
package/dist/umd/react-core.js
CHANGED
|
@@ -106,60 +106,70 @@
|
|
|
106
106
|
"value": "576px",
|
|
107
107
|
"var": "var(--pf-global--breakpoint--sm)"
|
|
108
108
|
};
|
|
109
|
+
var globalBreakpointSm = global_breakpoint_sm;
|
|
109
110
|
|
|
110
111
|
const global_breakpoint_md = {
|
|
111
112
|
"name": "--pf-global--breakpoint--md",
|
|
112
113
|
"value": "768px",
|
|
113
114
|
"var": "var(--pf-global--breakpoint--md)"
|
|
114
115
|
};
|
|
116
|
+
var globalBreakpointMd = global_breakpoint_md;
|
|
115
117
|
|
|
116
118
|
const global_breakpoint_lg = {
|
|
117
119
|
"name": "--pf-global--breakpoint--lg",
|
|
118
120
|
"value": "992px",
|
|
119
121
|
"var": "var(--pf-global--breakpoint--lg)"
|
|
120
122
|
};
|
|
123
|
+
var globalBreakpointLg = global_breakpoint_lg;
|
|
121
124
|
|
|
122
125
|
const global_breakpoint_xl = {
|
|
123
126
|
"name": "--pf-global--breakpoint--xl",
|
|
124
127
|
"value": "1200px",
|
|
125
128
|
"var": "var(--pf-global--breakpoint--xl)"
|
|
126
129
|
};
|
|
130
|
+
var globalBreakpointXl = global_breakpoint_xl;
|
|
127
131
|
|
|
128
132
|
const global_breakpoint_2xl = {
|
|
129
133
|
"name": "--pf-global--breakpoint--2xl",
|
|
130
134
|
"value": "1450px",
|
|
131
135
|
"var": "var(--pf-global--breakpoint--2xl)"
|
|
132
136
|
};
|
|
137
|
+
var globalBreakpoint2xl = global_breakpoint_2xl;
|
|
133
138
|
|
|
134
139
|
const global_height_breakpoint_sm = {
|
|
135
140
|
"name": "--pf-global--height-breakpoint--sm",
|
|
136
141
|
"value": "0",
|
|
137
142
|
"var": "var(--pf-global--height-breakpoint--sm)"
|
|
138
143
|
};
|
|
144
|
+
var globalHeightBreakpointSm = global_height_breakpoint_sm;
|
|
139
145
|
|
|
140
146
|
const global_height_breakpoint_md = {
|
|
141
147
|
"name": "--pf-global--height-breakpoint--md",
|
|
142
148
|
"value": "40rem",
|
|
143
149
|
"var": "var(--pf-global--height-breakpoint--md)"
|
|
144
150
|
};
|
|
151
|
+
var globalHeightBreakpointMd = global_height_breakpoint_md;
|
|
145
152
|
|
|
146
153
|
const global_height_breakpoint_lg = {
|
|
147
154
|
"name": "--pf-global--height-breakpoint--lg",
|
|
148
155
|
"value": "48rem",
|
|
149
156
|
"var": "var(--pf-global--height-breakpoint--lg)"
|
|
150
157
|
};
|
|
158
|
+
var globalHeightBreakpointLg = global_height_breakpoint_lg;
|
|
151
159
|
|
|
152
160
|
const global_height_breakpoint_xl = {
|
|
153
161
|
"name": "--pf-global--height-breakpoint--xl",
|
|
154
162
|
"value": "60rem",
|
|
155
163
|
"var": "var(--pf-global--height-breakpoint--xl)"
|
|
156
164
|
};
|
|
165
|
+
var globalHeightBreakpointXl = global_height_breakpoint_xl;
|
|
157
166
|
|
|
158
167
|
const global_height_breakpoint_2xl = {
|
|
159
168
|
"name": "--pf-global--height-breakpoint--2xl",
|
|
160
169
|
"value": "80rem",
|
|
161
170
|
"var": "var(--pf-global--height-breakpoint--2xl)"
|
|
162
171
|
};
|
|
172
|
+
var globalHeightBreakpoint2xl = global_height_breakpoint_2xl;
|
|
163
173
|
|
|
164
174
|
const KEY_CODES = { ARROW_UP: 38, ARROW_DOWN: 40, ESCAPE_KEY: 27, TAB: 9, ENTER: 13, SPACE: 32 };
|
|
165
175
|
const SIDE = { RIGHT: 'right', LEFT: 'left', BOTH: 'both', NONE: 'none' };
|
|
@@ -182,18 +192,18 @@
|
|
|
182
192
|
ArrowRight: 'ArrowRight'
|
|
183
193
|
};
|
|
184
194
|
const globalWidthBreakpoints = {
|
|
185
|
-
sm: parseInt(
|
|
186
|
-
md: parseInt(
|
|
187
|
-
lg: parseInt(
|
|
188
|
-
xl: parseInt(
|
|
189
|
-
'2xl': parseInt(
|
|
195
|
+
sm: parseInt(globalBreakpointSm.value),
|
|
196
|
+
md: parseInt(globalBreakpointMd.value),
|
|
197
|
+
lg: parseInt(globalBreakpointLg.value),
|
|
198
|
+
xl: parseInt(globalBreakpointXl.value),
|
|
199
|
+
'2xl': parseInt(globalBreakpoint2xl.value)
|
|
190
200
|
};
|
|
191
201
|
const globalHeightBreakpoints = {
|
|
192
|
-
sm: parseInt(
|
|
193
|
-
md: parseInt(
|
|
194
|
-
lg: parseInt(
|
|
195
|
-
xl: parseInt(
|
|
196
|
-
'2xl': parseInt(
|
|
202
|
+
sm: parseInt(globalHeightBreakpointSm.value),
|
|
203
|
+
md: parseInt(globalHeightBreakpointMd.value),
|
|
204
|
+
lg: parseInt(globalHeightBreakpointLg.value),
|
|
205
|
+
xl: parseInt(globalHeightBreakpointXl.value),
|
|
206
|
+
'2xl': parseInt(globalHeightBreakpoint2xl.value)
|
|
197
207
|
};
|
|
198
208
|
|
|
199
209
|
/*!
|
|
@@ -4281,13 +4291,14 @@
|
|
|
4281
4291
|
"value": "url(\"../../assets/images/pfbg_992@2x.jpg\")",
|
|
4282
4292
|
"var": "var(--pf-c-about-modal-box__hero--sm--BackgroundImage)"
|
|
4283
4293
|
};
|
|
4294
|
+
var c_about_modal_box__hero_sm_BackgroundImage$1 = c_about_modal_box__hero_sm_BackgroundImage;
|
|
4284
4295
|
|
|
4285
4296
|
const AboutModalBoxHero = (_a) => {
|
|
4286
4297
|
var { className, backgroundImageSrc } = _a, props = __rest$1(_a, ["className", "backgroundImageSrc"]);
|
|
4287
4298
|
return (React__namespace.createElement("div", Object.assign({ style:
|
|
4288
4299
|
/* eslint-disable camelcase */
|
|
4289
4300
|
backgroundImageSrc !== ''
|
|
4290
|
-
? { [c_about_modal_box__hero_sm_BackgroundImage.name]: `url(${backgroundImageSrc})` }
|
|
4301
|
+
? { [c_about_modal_box__hero_sm_BackgroundImage$1.name]: `url(${backgroundImageSrc})` }
|
|
4291
4302
|
: {}, className: css(styles$1g.aboutModalBoxHero, className) }, props)));
|
|
4292
4303
|
};
|
|
4293
4304
|
AboutModalBoxHero.displayName = 'AboutModalBoxHero';
|
|
@@ -4507,11 +4518,13 @@
|
|
|
4507
4518
|
|
|
4508
4519
|
const TimesIcon = createIcon(TimesIconConfig);
|
|
4509
4520
|
|
|
4521
|
+
var TimesIcon$1 = TimesIcon;
|
|
4522
|
+
|
|
4510
4523
|
const AboutModalBoxCloseButton = (_a) => {
|
|
4511
4524
|
var { className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close Dialog' } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label']);
|
|
4512
4525
|
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1g.aboutModalBoxClose, className) }, props),
|
|
4513
4526
|
React__namespace.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
|
|
4514
|
-
React__namespace.createElement(TimesIcon, null))));
|
|
4527
|
+
React__namespace.createElement(TimesIcon$1, null))));
|
|
4515
4528
|
};
|
|
4516
4529
|
AboutModalBoxCloseButton.displayName = 'AboutModalBoxCloseButton';
|
|
4517
4530
|
|
|
@@ -4689,6 +4702,8 @@
|
|
|
4689
4702
|
|
|
4690
4703
|
const AngleRightIcon = createIcon(AngleRightIconConfig);
|
|
4691
4704
|
|
|
4705
|
+
var AngleRightIcon$1 = AngleRightIcon;
|
|
4706
|
+
|
|
4692
4707
|
const AccordionToggle = (_a) => {
|
|
4693
4708
|
var { className = '', id, isExpanded = false, children = null, component } = _a, props = __rest$1(_a, ["className", "id", "isExpanded", "children", "component"]);
|
|
4694
4709
|
return (React__namespace.createElement(AccordionContext.Consumer, null, ({ ToggleContainer }) => {
|
|
@@ -4697,7 +4712,7 @@
|
|
|
4697
4712
|
React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$1c.accordionToggle, isExpanded && styles$1c.modifiers.expanded, className), "aria-expanded": isExpanded, type: "button" }, props),
|
|
4698
4713
|
React__namespace.createElement("span", { className: css(styles$1c.accordionToggleText) }, children),
|
|
4699
4714
|
React__namespace.createElement("span", { className: css(styles$1c.accordionToggleIcon) },
|
|
4700
|
-
React__namespace.createElement(AngleRightIcon, null)))));
|
|
4715
|
+
React__namespace.createElement(AngleRightIcon$1, null)))));
|
|
4701
4716
|
}));
|
|
4702
4717
|
};
|
|
4703
4718
|
AccordionToggle.displayName = 'AccordionToggle';
|
|
@@ -4788,6 +4803,8 @@
|
|
|
4788
4803
|
|
|
4789
4804
|
const CheckCircleIcon = createIcon(CheckCircleIconConfig);
|
|
4790
4805
|
|
|
4806
|
+
var CheckCircleIcon$1 = CheckCircleIcon;
|
|
4807
|
+
|
|
4791
4808
|
const ExclamationCircleIconConfig = {
|
|
4792
4809
|
name: 'ExclamationCircleIcon',
|
|
4793
4810
|
height: 512,
|
|
@@ -4799,6 +4816,8 @@
|
|
|
4799
4816
|
|
|
4800
4817
|
const ExclamationCircleIcon = createIcon(ExclamationCircleIconConfig);
|
|
4801
4818
|
|
|
4819
|
+
var ExclamationCircleIcon$1 = ExclamationCircleIcon;
|
|
4820
|
+
|
|
4802
4821
|
const ExclamationTriangleIconConfig = {
|
|
4803
4822
|
name: 'ExclamationTriangleIcon',
|
|
4804
4823
|
height: 512,
|
|
@@ -4810,6 +4829,8 @@
|
|
|
4810
4829
|
|
|
4811
4830
|
const ExclamationTriangleIcon = createIcon(ExclamationTriangleIconConfig);
|
|
4812
4831
|
|
|
4832
|
+
var ExclamationTriangleIcon$1 = ExclamationTriangleIcon;
|
|
4833
|
+
|
|
4813
4834
|
const InfoCircleIconConfig = {
|
|
4814
4835
|
name: 'InfoCircleIcon',
|
|
4815
4836
|
height: 512,
|
|
@@ -4821,6 +4842,8 @@
|
|
|
4821
4842
|
|
|
4822
4843
|
const InfoCircleIcon = createIcon(InfoCircleIconConfig);
|
|
4823
4844
|
|
|
4845
|
+
var InfoCircleIcon$1 = InfoCircleIcon;
|
|
4846
|
+
|
|
4824
4847
|
const BellIconConfig = {
|
|
4825
4848
|
name: 'BellIcon',
|
|
4826
4849
|
height: 1024,
|
|
@@ -4832,12 +4855,14 @@
|
|
|
4832
4855
|
|
|
4833
4856
|
const BellIcon = createIcon(BellIconConfig);
|
|
4834
4857
|
|
|
4858
|
+
var BellIcon$1 = BellIcon;
|
|
4859
|
+
|
|
4835
4860
|
const variantIcons$2 = {
|
|
4836
|
-
success: CheckCircleIcon,
|
|
4837
|
-
danger: ExclamationCircleIcon,
|
|
4838
|
-
warning: ExclamationTriangleIcon,
|
|
4839
|
-
info: InfoCircleIcon,
|
|
4840
|
-
default: BellIcon
|
|
4861
|
+
success: CheckCircleIcon$1,
|
|
4862
|
+
danger: ExclamationCircleIcon$1,
|
|
4863
|
+
warning: ExclamationTriangleIcon$1,
|
|
4864
|
+
info: InfoCircleIcon$1,
|
|
4865
|
+
default: BellIcon$1
|
|
4841
4866
|
};
|
|
4842
4867
|
const AlertIcon = (_a) => {
|
|
4843
4868
|
var { variant, customIcon, className = '' } = _a, props = __rest$1(_a, ["variant", "customIcon", "className"]);
|
|
@@ -4852,6 +4877,7 @@
|
|
|
4852
4877
|
"value": "1",
|
|
4853
4878
|
"var": "var(--pf-c-alert__title--max-lines)"
|
|
4854
4879
|
};
|
|
4880
|
+
var maxLines$2 = c_alert__title_max_lines;
|
|
4855
4881
|
|
|
4856
4882
|
Promise.resolve().then(function () { return tooltip; });
|
|
4857
4883
|
var styles$19 = {
|
|
@@ -4893,6 +4919,7 @@
|
|
|
4893
4919
|
"value": "18.75rem",
|
|
4894
4920
|
"var": "var(--pf-c-tooltip--MaxWidth)"
|
|
4895
4921
|
};
|
|
4922
|
+
var tooltipMaxWidth = c_tooltip_MaxWidth;
|
|
4896
4923
|
|
|
4897
4924
|
exports.TooltipPosition = void 0;
|
|
4898
4925
|
(function (TooltipPosition) {
|
|
@@ -4913,7 +4940,7 @@
|
|
|
4913
4940
|
// id for associating trigger with the content aria-describedby or aria-labelledby
|
|
4914
4941
|
let pfTooltipIdCounter = 1;
|
|
4915
4942
|
const Tooltip = (_a) => {
|
|
4916
|
-
var { content: bodyContent, position = 'top', trigger = 'mouseenter focus', isVisible = false, isContentLeftAligned = false, enableFlip = true, className = '', entryDelay = 300, exitDelay = 300, appendTo = () => document.body, zIndex = 9999, maxWidth =
|
|
4943
|
+
var { content: bodyContent, position = 'top', trigger = 'mouseenter focus', isVisible = false, isContentLeftAligned = false, enableFlip = true, className = '', entryDelay = 300, exitDelay = 300, appendTo = () => document.body, zIndex = 9999, maxWidth = tooltipMaxWidth.value, distance = 15, aria = 'describedby',
|
|
4917
4944
|
// For every initial starting position, there are 3 escape positions
|
|
4918
4945
|
flipBehavior = ['top', 'right', 'bottom', 'left', 'top', 'right', 'bottom'], id = `pf-tooltip-${pfTooltipIdCounter++}`, children, animationDuration = 300, reference, 'aria-live': ariaLive = reference ? 'polite' : 'off', boundary, isAppLauncher, tippyProps } = _a, rest = __rest$1(_a, ["content", "position", "trigger", "isVisible", "isContentLeftAligned", "enableFlip", "className", "entryDelay", "exitDelay", "appendTo", "zIndex", "maxWidth", "distance", "aria", "flipBehavior", "id", "children", "animationDuration", "reference", 'aria-live', "boundary", "isAppLauncher", "tippyProps"]);
|
|
4919
4946
|
{
|
|
@@ -4996,7 +5023,7 @@
|
|
|
4996
5023
|
'right-start': styles$19.modifiers.rightTop,
|
|
4997
5024
|
'right-end': styles$19.modifiers.rightBottom
|
|
4998
5025
|
};
|
|
4999
|
-
const hasCustomMaxWidth = maxWidth !==
|
|
5026
|
+
const hasCustomMaxWidth = maxWidth !== tooltipMaxWidth.value;
|
|
5000
5027
|
const content = (React__namespace.createElement("div", Object.assign({ "aria-live": ariaLive, className: css(styles$19.tooltip, className), role: "tooltip", id: id, style: {
|
|
5001
5028
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
5002
5029
|
opacity,
|
|
@@ -5035,7 +5062,7 @@
|
|
|
5035
5062
|
const { title, variantLabel: alertVariantLabel } = React__namespace.useContext(AlertContext);
|
|
5036
5063
|
return (React__namespace.createElement(Button, Object.assign({ variant: exports.ButtonVariant.plain, onClick: onToggleExpand, "aria-expanded": isExpanded, "aria-label": ariaLabel === '' ? `Toggle ${variantLabel || alertVariantLabel} alert: ${title}` : ariaLabel }, props),
|
|
5037
5064
|
React__namespace.createElement("span", { className: css(styles$1a.alertToggleIcon) },
|
|
5038
|
-
React__namespace.createElement(AngleRightIcon, { "aria-hidden": "true" }))));
|
|
5065
|
+
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": "true" }))));
|
|
5039
5066
|
};
|
|
5040
5067
|
AlertToggleExpandButton.displayName = 'AlertToggleExpandButton';
|
|
5041
5068
|
|
|
@@ -5060,7 +5087,7 @@
|
|
|
5060
5087
|
if (!titleRef.current || !truncateTitle) {
|
|
5061
5088
|
return;
|
|
5062
5089
|
}
|
|
5063
|
-
titleRef.current.style.setProperty(
|
|
5090
|
+
titleRef.current.style.setProperty(maxLines$2.name, truncateTitle.toString());
|
|
5064
5091
|
const showTooltip = titleRef.current && titleRef.current.offsetHeight < titleRef.current.scrollHeight;
|
|
5065
5092
|
if (isTooltipVisible !== showTooltip) {
|
|
5066
5093
|
setIsTooltipVisible(showTooltip);
|
|
@@ -5140,7 +5167,7 @@
|
|
|
5140
5167
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5141
5168
|
className = '', onClose = () => undefined, 'aria-label': ariaLabel = '', variantLabel } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label', "variantLabel"]);
|
|
5142
5169
|
return (React__namespace.createElement(AlertContext.Consumer, null, ({ title, variantLabel: alertVariantLabel }) => (React__namespace.createElement(Button, Object.assign({ variant: exports.ButtonVariant.plain, onClick: onClose, "aria-label": ariaLabel === '' ? `Close ${variantLabel || alertVariantLabel} alert: ${title}` : ariaLabel }, props),
|
|
5143
|
-
React__namespace.createElement(TimesIcon, null)))));
|
|
5170
|
+
React__namespace.createElement(TimesIcon$1, null)))));
|
|
5144
5171
|
};
|
|
5145
5172
|
AlertActionCloseButton.displayName = 'AlertActionCloseButton';
|
|
5146
5173
|
|
|
@@ -5267,6 +5294,8 @@
|
|
|
5267
5294
|
|
|
5268
5295
|
const ThIcon = createIcon(ThIconConfig);
|
|
5269
5296
|
|
|
5297
|
+
var ThIcon$1 = ThIcon;
|
|
5298
|
+
|
|
5270
5299
|
Promise.resolve().then(function () { return dropdown; });
|
|
5271
5300
|
var styles$16 = {
|
|
5272
5301
|
"badge": "pf-c-badge",
|
|
@@ -5849,6 +5878,8 @@
|
|
|
5849
5878
|
|
|
5850
5879
|
const CaretDownIcon = createIcon(CaretDownIconConfig);
|
|
5851
5880
|
|
|
5881
|
+
var CaretDownIcon$1 = CaretDownIcon;
|
|
5882
|
+
|
|
5852
5883
|
const buttonVariantStyles = {
|
|
5853
5884
|
default: '',
|
|
5854
5885
|
primary: styles$16.modifiers.primary,
|
|
@@ -5960,7 +5991,7 @@
|
|
|
5960
5991
|
React__namespace.createElement(Badge, Object.assign({}, badgeProps),
|
|
5961
5992
|
children,
|
|
5962
5993
|
React__namespace.createElement("span", { className: css(styles$16.dropdownToggleIcon) },
|
|
5963
|
-
React__namespace.createElement(CaretDownIcon, null)))));
|
|
5994
|
+
React__namespace.createElement(CaretDownIcon$1, null)))));
|
|
5964
5995
|
};
|
|
5965
5996
|
BadgeToggle.displayName = 'BadgeToggle';
|
|
5966
5997
|
|
|
@@ -5975,6 +6006,8 @@
|
|
|
5975
6006
|
|
|
5976
6007
|
const EllipsisVIcon = createIcon(EllipsisVIconConfig);
|
|
5977
6008
|
|
|
6009
|
+
var EllipsisVIcon$1 = EllipsisVIcon;
|
|
6010
|
+
|
|
5978
6011
|
const KebabToggle = (_a) => {
|
|
5979
6012
|
var { id = '',
|
|
5980
6013
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -5983,7 +6016,7 @@
|
|
|
5983
6016
|
ref } = _a, // Types of Ref are different for React.FunctionComponent vs React.Component
|
|
5984
6017
|
props = __rest$1(_a, ["id", "children", "className", "isOpen", 'aria-label', "parentRef", "getMenuRef", "isActive", "isPlain", "isDisabled", "bubbleEvent", "onToggle", "ref"]);
|
|
5985
6018
|
return (React__namespace.createElement(Toggle, Object.assign({ id: id, className: className, isOpen: isOpen, "aria-label": ariaLabel, parentRef: parentRef, getMenuRef: getMenuRef, isActive: isActive, isPlain: isPlain, isDisabled: isDisabled, onToggle: onToggle, bubbleEvent: bubbleEvent }, props),
|
|
5986
|
-
React__namespace.createElement(EllipsisVIcon, null)));
|
|
6019
|
+
React__namespace.createElement(EllipsisVIcon$1, null)));
|
|
5987
6020
|
};
|
|
5988
6021
|
KebabToggle.displayName = 'KebabToggle';
|
|
5989
6022
|
|
|
@@ -5992,7 +6025,7 @@
|
|
|
5992
6025
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5993
6026
|
isActive = false,
|
|
5994
6027
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5995
|
-
onToggle = (_isOpen) => undefined, icon = null, toggleIndicator: ToggleIndicator = CaretDownIcon, splitButtonItems, splitButtonVariant = 'checkbox', 'aria-haspopup': ariaHasPopup, ouiaId, ouiaSafe,
|
|
6028
|
+
onToggle = (_isOpen) => undefined, icon = null, toggleIndicator: ToggleIndicator = CaretDownIcon$1, splitButtonItems, splitButtonVariant = 'checkbox', 'aria-haspopup': ariaHasPopup, ouiaId, ouiaSafe,
|
|
5996
6029
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5997
6030
|
ref } = _a, // Types of Ref are different for React.FunctionComponent vs React.Component
|
|
5998
6031
|
props = __rest$1(_a, ["id", "children", "className", "isOpen", "parentRef", "getMenuRef", "isDisabled", "isPlain", "isText", "isPrimary", "toggleVariant", "isActive", "onToggle", "icon", "toggleIndicator", "splitButtonItems", "splitButtonVariant", 'aria-haspopup', "ouiaId", "ouiaSafe", "ref"]);
|
|
@@ -6102,6 +6135,8 @@
|
|
|
6102
6135
|
|
|
6103
6136
|
const ExternalLinkAltIcon = createIcon(ExternalLinkAltIconConfig);
|
|
6104
6137
|
|
|
6138
|
+
var ExternalLinkAltIcon$1 = ExternalLinkAltIcon;
|
|
6139
|
+
|
|
6105
6140
|
const ApplicationLauncherItemContext = React__namespace.createContext({ isExternal: false, icon: null });
|
|
6106
6141
|
|
|
6107
6142
|
const ApplicationLauncherContent = ({ children }) => (React__namespace.createElement(ApplicationLauncherItemContext.Consumer, null, ({ isExternal, icon }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
@@ -6109,7 +6144,7 @@
|
|
|
6109
6144
|
icon ? React__namespace.createElement(ApplicationLauncherText, null, children) : children,
|
|
6110
6145
|
isExternal && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6111
6146
|
React__namespace.createElement("span", { className: css(styles$17.appLauncherMenuItemExternalIcon) },
|
|
6112
|
-
React__namespace.createElement(ExternalLinkAltIcon, null)),
|
|
6147
|
+
React__namespace.createElement(ExternalLinkAltIcon$1, null)),
|
|
6113
6148
|
React__namespace.createElement("span", { className: css(a11yStyles.screenReader) }, "(opens new window)")))))));
|
|
6114
6149
|
ApplicationLauncherContent.displayName = 'ApplicationLauncherContent';
|
|
6115
6150
|
|
|
@@ -6129,6 +6164,8 @@
|
|
|
6129
6164
|
|
|
6130
6165
|
const StarIcon = createIcon(StarIconConfig);
|
|
6131
6166
|
|
|
6167
|
+
var StarIcon$1 = StarIcon;
|
|
6168
|
+
|
|
6132
6169
|
const ApplicationLauncherItem = (_a) => {
|
|
6133
6170
|
var { className = '', id, children, icon = null, isExternal = false, href, tooltip = null, tooltipProps = null, component = 'a', isFavorite = null, ariaIsFavoriteLabel = 'starred', ariaIsNotFavoriteLabel = 'not starred', customChild, enterTriggersArrowDown = false } = _a, props = __rest$1(_a, ["className", "id", "children", "icon", "isExternal", "href", "tooltip", "tooltipProps", "component", "isFavorite", "ariaIsFavoriteLabel", "ariaIsNotFavoriteLabel", "customChild", "enterTriggersArrowDown"]);
|
|
6134
6171
|
return (React__namespace.createElement(ApplicationLauncherItemContext.Provider, { value: { isExternal, icon } },
|
|
@@ -6136,7 +6173,7 @@
|
|
|
6136
6173
|
additionalChild: (React__namespace.createElement("button", { className: css(styles$17.appLauncherMenuItem, styles$17.modifiers.action), "aria-label": isFavorite ? ariaIsFavoriteLabel : ariaIsNotFavoriteLabel, onClick: () => {
|
|
6137
6174
|
onFavorite((id || getUniqueId('app-launcher-option')).replace('favorite-', ''), isFavorite);
|
|
6138
6175
|
} },
|
|
6139
|
-
React__namespace.createElement(StarIcon, null)))
|
|
6176
|
+
React__namespace.createElement(StarIcon$1, null)))
|
|
6140
6177
|
}), props), children && React__namespace.createElement(ApplicationLauncherContent, null, children))))));
|
|
6141
6178
|
};
|
|
6142
6179
|
ApplicationLauncherItem.displayName = 'ApplicationLauncherItem';
|
|
@@ -6279,7 +6316,7 @@
|
|
|
6279
6316
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
6280
6317
|
'aria-label': 'Application launcher',
|
|
6281
6318
|
isGrouped: false,
|
|
6282
|
-
toggleIcon: React__namespace.createElement(ThIcon, null),
|
|
6319
|
+
toggleIcon: React__namespace.createElement(ThIcon$1, null),
|
|
6283
6320
|
searchPlaceholderText: 'Filter by name...',
|
|
6284
6321
|
searchNoResultsText: 'No results found',
|
|
6285
6322
|
favoritesLabel: 'Favorites',
|
|
@@ -6325,6 +6362,8 @@
|
|
|
6325
6362
|
|
|
6326
6363
|
const AngleUpIcon = createIcon(AngleUpIconConfig);
|
|
6327
6364
|
|
|
6365
|
+
var AngleUpIcon$1 = AngleUpIcon;
|
|
6366
|
+
|
|
6328
6367
|
const BackToTopBase = (_a) => {
|
|
6329
6368
|
var { className, title = 'Back to top', innerRef, scrollableSelector, isAlwaysVisible = false } = _a, props = __rest$1(_a, ["className", "title", "innerRef", "scrollableSelector", "isAlwaysVisible"]);
|
|
6330
6369
|
const [visible, setVisible] = React__namespace.useState(isAlwaysVisible);
|
|
@@ -6372,7 +6411,7 @@
|
|
|
6372
6411
|
scrollElement.scrollTo({ top: 0, behavior: 'smooth' });
|
|
6373
6412
|
};
|
|
6374
6413
|
return (React__namespace.createElement("div", Object.assign({ className: css(styles$13.backToTop, !visible && styles$13.modifiers.hidden, className), ref: innerRef, onClick: handleClick }, props),
|
|
6375
|
-
React__namespace.createElement(Button, { variant: "primary", icon: React__namespace.createElement(AngleUpIcon, { "aria-hidden": "true" }), iconPosition: "right" }, title)));
|
|
6414
|
+
React__namespace.createElement(Button, { variant: "primary", icon: React__namespace.createElement(AngleUpIcon$1, { "aria-hidden": "true" }), iconPosition: "right" }, title)));
|
|
6376
6415
|
};
|
|
6377
6416
|
const BackToTop = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(BackToTopBase, Object.assign({ innerRef: ref }, props))));
|
|
6378
6417
|
BackToTop.displayName = 'BackToTop';
|
|
@@ -6382,36 +6421,42 @@
|
|
|
6382
6421
|
"value": "url(\"../../assets/images/pfbg_576.jpg\")",
|
|
6383
6422
|
"var": "var(--pf-c-background-image--BackgroundImage)"
|
|
6384
6423
|
};
|
|
6424
|
+
var cssVar = c_background_image_BackgroundImage;
|
|
6385
6425
|
|
|
6386
6426
|
const c_background_image_BackgroundImage_2x = {
|
|
6387
6427
|
"name": "--pf-c-background-image--BackgroundImage-2x",
|
|
6388
6428
|
"value": "url(\"../../assets/images/pfbg_576@2x.jpg\")",
|
|
6389
6429
|
"var": "var(--pf-c-background-image--BackgroundImage-2x)"
|
|
6390
6430
|
};
|
|
6431
|
+
var cssVarName2x = c_background_image_BackgroundImage_2x;
|
|
6391
6432
|
|
|
6392
6433
|
const c_background_image_BackgroundImage_sm = {
|
|
6393
6434
|
"name": "--pf-c-background-image--BackgroundImage--sm",
|
|
6394
6435
|
"value": "url(\"../../assets/images/pfbg_768.jpg\")",
|
|
6395
6436
|
"var": "var(--pf-c-background-image--BackgroundImage--sm)"
|
|
6396
6437
|
};
|
|
6438
|
+
var cssVarNameSm = c_background_image_BackgroundImage_sm;
|
|
6397
6439
|
|
|
6398
6440
|
const c_background_image_BackgroundImage_sm_2x = {
|
|
6399
6441
|
"name": "--pf-c-background-image--BackgroundImage--sm-2x",
|
|
6400
6442
|
"value": "url(\"../../assets/images/pfbg_768@2x.jpg\")",
|
|
6401
6443
|
"var": "var(--pf-c-background-image--BackgroundImage--sm-2x)"
|
|
6402
6444
|
};
|
|
6445
|
+
var cssVarNameSm2x = c_background_image_BackgroundImage_sm_2x;
|
|
6403
6446
|
|
|
6404
6447
|
const c_background_image_BackgroundImage_lg = {
|
|
6405
6448
|
"name": "--pf-c-background-image--BackgroundImage--lg",
|
|
6406
6449
|
"value": "url(\"../../assets/images/pfbg_2000.jpg\")",
|
|
6407
6450
|
"var": "var(--pf-c-background-image--BackgroundImage--lg)"
|
|
6408
6451
|
};
|
|
6452
|
+
var cssVarNameLg = c_background_image_BackgroundImage_lg;
|
|
6409
6453
|
|
|
6410
6454
|
const c_background_image_Filter = {
|
|
6411
6455
|
"name": "--pf-c-background-image--Filter",
|
|
6412
6456
|
"value": "url(\"#image_overlay\")",
|
|
6413
6457
|
"var": "var(--pf-c-background-image--Filter)"
|
|
6414
6458
|
};
|
|
6459
|
+
var cssVarNameFilter = c_background_image_Filter;
|
|
6415
6460
|
|
|
6416
6461
|
Promise.resolve().then(function () { return backgroundImage; });
|
|
6417
6462
|
var styles$12 = {
|
|
@@ -6441,12 +6486,12 @@
|
|
|
6441
6486
|
const filterNum = React__namespace.useMemo(() => filterCounter++, []);
|
|
6442
6487
|
const filterId = `patternfly-background-image-filter-overlay${filterNum}`;
|
|
6443
6488
|
const style = {
|
|
6444
|
-
[
|
|
6445
|
-
[
|
|
6446
|
-
[
|
|
6447
|
-
[
|
|
6448
|
-
[
|
|
6449
|
-
[
|
|
6489
|
+
[cssVar.name]: getUrlValue('xs'),
|
|
6490
|
+
[cssVarName2x.name]: getUrlValue('xs2x'),
|
|
6491
|
+
[cssVarNameSm.name]: getUrlValue('sm'),
|
|
6492
|
+
[cssVarNameSm2x.name]: getUrlValue('sm2x'),
|
|
6493
|
+
[cssVarNameLg.name]: getUrlValue('lg'),
|
|
6494
|
+
[cssVarNameFilter.name]: `url(#${filterId})`
|
|
6450
6495
|
};
|
|
6451
6496
|
return (React__namespace.createElement("div", Object.assign({ className: css(styles$12.backgroundImage, className), style: style }, props),
|
|
6452
6497
|
React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: "pf-c-background-image__filter", width: "0", height: "0" }, React__namespace.cloneElement(filter, { id: filterId }))));
|
|
@@ -6540,7 +6585,7 @@
|
|
|
6540
6585
|
const className = css(styles$$.breadcrumbLink, isActive && styles$$.modifiers.current);
|
|
6541
6586
|
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles$$.breadcrumbItem, classNameProp) }),
|
|
6542
6587
|
showDivider && (React__namespace.createElement("span", { className: styles$$.breadcrumbItemDivider },
|
|
6543
|
-
React__namespace.createElement(AngleRightIcon, null))),
|
|
6588
|
+
React__namespace.createElement(AngleRightIcon$1, null))),
|
|
6544
6589
|
component === 'button' && (React__namespace.createElement("button", { className: className, "aria-current": ariaCurrent, type: "button" }, children)),
|
|
6545
6590
|
isDropdown && React__namespace.createElement("span", { className: css(styles$$.breadcrumbDropdown) }, children),
|
|
6546
6591
|
render && render({ className, ariaCurrent }),
|
|
@@ -6554,7 +6599,7 @@
|
|
|
6554
6599
|
const Component = component;
|
|
6555
6600
|
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles$$.breadcrumbItem, className) }),
|
|
6556
6601
|
showDivider && (React__namespace.createElement("span", { className: styles$$.breadcrumbItemDivider },
|
|
6557
|
-
React__namespace.createElement(AngleRightIcon, null))),
|
|
6602
|
+
React__namespace.createElement(AngleRightIcon$1, null))),
|
|
6558
6603
|
React__namespace.createElement("h1", { className: styles$$.breadcrumbHeading },
|
|
6559
6604
|
!to && component === 'button' && (React__namespace.createElement("button", { className: css(styles$$.breadcrumbLink, styles$$.modifiers.current), "aria-current": true, type: "button" }, children)),
|
|
6560
6605
|
to && (React__namespace.createElement(Component, { href: to, target: target, className: css(styles$$.breadcrumbLink, styles$$.modifiers.current), "aria-current": "page" }, children)),
|
|
@@ -6739,6 +6784,8 @@
|
|
|
6739
6784
|
|
|
6740
6785
|
const TimesCircleIcon = createIcon(TimesCircleIconConfig);
|
|
6741
6786
|
|
|
6787
|
+
var TimesCircleIcon$1 = TimesCircleIcon;
|
|
6788
|
+
|
|
6742
6789
|
Promise.resolve().then(function () { return form; });
|
|
6743
6790
|
var styles$Z = {
|
|
6744
6791
|
"form": "pf-c-form",
|
|
@@ -6819,6 +6866,8 @@
|
|
|
6819
6866
|
|
|
6820
6867
|
const CheckIcon = createIcon(CheckIconConfig);
|
|
6821
6868
|
|
|
6869
|
+
var CheckIcon$1 = CheckIcon;
|
|
6870
|
+
|
|
6822
6871
|
const SelectContext = React__namespace.createContext(null);
|
|
6823
6872
|
const SelectProvider = SelectContext.Provider;
|
|
6824
6873
|
const SelectConsumer = SelectContext.Consumer;
|
|
@@ -6920,7 +6969,7 @@
|
|
|
6920
6969
|
this.onKeyDown(event, 1, () => onFavorite(generatedId.replace('favorite-', ''), isFavorite));
|
|
6921
6970
|
}, ref: this.favoriteRef },
|
|
6922
6971
|
React__namespace.createElement("span", { className: css(styles$_.selectMenuItemActionIcon) },
|
|
6923
|
-
React__namespace.createElement(StarIcon, null))));
|
|
6972
|
+
React__namespace.createElement(StarIcon$1, null))));
|
|
6924
6973
|
const itemDisplay = itemCount ? (React__namespace.createElement("span", { className: css(styles$_.selectMenuItemRow) },
|
|
6925
6974
|
React__namespace.createElement("span", { className: css(styles$_.selectMenuItemText) }, children || (value && value.toString && value.toString())),
|
|
6926
6975
|
React__namespace.createElement("span", { className: css(styles$_.selectMenuItemCount) }, itemCount))) : (children || value.toString());
|
|
@@ -6963,12 +7012,12 @@
|
|
|
6963
7012
|
React__namespace.createElement("span", { className: css(styles$_.selectMenuItemMain) },
|
|
6964
7013
|
itemDisplay,
|
|
6965
7014
|
isSelected && (React__namespace.createElement("span", { className: css(styles$_.selectMenuItemIcon) },
|
|
6966
|
-
React__namespace.createElement(CheckIcon, { "aria-hidden": true })))),
|
|
7015
|
+
React__namespace.createElement(CheckIcon$1, { "aria-hidden": true })))),
|
|
6967
7016
|
React__namespace.createElement("span", { className: css(styles$_.selectMenuItemDescription) }, description))),
|
|
6968
7017
|
!description && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6969
7018
|
itemDisplay,
|
|
6970
7019
|
isSelected && (React__namespace.createElement("span", { className: css(styles$_.selectMenuItemIcon) },
|
|
6971
|
-
React__namespace.createElement(CheckIcon, { "aria-hidden": true })))))),
|
|
7020
|
+
React__namespace.createElement(CheckIcon$1, { "aria-hidden": true })))))),
|
|
6972
7021
|
isFavorite !== null && id && favoriteButton(onFavorite)))));
|
|
6973
7022
|
}
|
|
6974
7023
|
else if (variant === exports.SelectVariant.checkbox && isLoad) {
|
|
@@ -7341,7 +7390,7 @@
|
|
|
7341
7390
|
}, onKeyDown: this.onKeyDown, disabled: isDisabled }),
|
|
7342
7391
|
children,
|
|
7343
7392
|
React__namespace.createElement("span", { className: css(styles$_.selectToggleArrow) },
|
|
7344
|
-
React__namespace.createElement(CaretDownIcon, null)))),
|
|
7393
|
+
React__namespace.createElement(CaretDownIcon$1, null)))),
|
|
7345
7394
|
isTypeahead && (React__namespace.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css(styles$_.selectToggle, hasPlaceholderStyle && styles$_.modifiers.placeholder, isDisabled && styles$_.modifiers.disabled, isPlain && styles$_.modifiers.plain, isTypeahead && styles$_.modifiers.typeahead, className), onBlur: onBlur,
|
|
7346
7395
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7347
7396
|
onClick: event => {
|
|
@@ -7362,7 +7411,7 @@
|
|
|
7362
7411
|
} }, ((variant === exports.SelectVariant.typeahead || variant === exports.SelectVariant.typeaheadMulti) && {
|
|
7363
7412
|
tabIndex: -1
|
|
7364
7413
|
}), { disabled: isDisabled }),
|
|
7365
|
-
React__namespace.createElement(CaretDownIcon, { className: css(styles$_.selectToggleArrow) }))))));
|
|
7414
|
+
React__namespace.createElement(CaretDownIcon$1, { className: css(styles$_.selectToggleArrow) }))))));
|
|
7366
7415
|
}
|
|
7367
7416
|
}
|
|
7368
7417
|
SelectToggle.displayName = 'SelectToggle';
|
|
@@ -7450,7 +7499,7 @@
|
|
|
7450
7499
|
}), { className: css(styles$W.chip, className) }, (this.state.isTooltipVisible && { tabIndex: 0 }), getOUIAProps(Chip.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
|
|
7451
7500
|
React__namespace.createElement("span", { ref: this.span, className: css(styles$W.chipText), id: id }, children),
|
|
7452
7501
|
!isReadOnly && (React__namespace.createElement(Button, { onClick: onClick, variant: "plain", "aria-label": closeBtnAriaLabel, id: `remove_${id}`, "aria-labelledby": `remove_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
7453
|
-
React__namespace.createElement(TimesIcon, { "aria-hidden": "true" })))));
|
|
7502
|
+
React__namespace.createElement(TimesIcon$1, { "aria-hidden": "true" })))));
|
|
7454
7503
|
}
|
|
7455
7504
|
render() {
|
|
7456
7505
|
const { isOverflowChip } = this.props;
|
|
@@ -7523,7 +7572,7 @@
|
|
|
7523
7572
|
}, component: "button" }, isOpen ? expandedText : collapsedTextResult))))),
|
|
7524
7573
|
isClosable && (React__namespace.createElement("div", { className: css(styles$X.chipGroupClose) },
|
|
7525
7574
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": closeBtnAriaLabel, onClick: onClick, id: `remove_group_${id}`, "aria-labelledby": `remove_group_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
7526
|
-
React__namespace.createElement(TimesCircleIcon, { "aria-hidden": "true" }))))));
|
|
7575
|
+
React__namespace.createElement(TimesCircleIcon$1, { "aria-hidden": "true" }))))));
|
|
7527
7576
|
};
|
|
7528
7577
|
return numChildren === 0 ? null : React__namespace.createElement(GenerateId, null, randomId => renderChipGroup(this.props.id || randomId));
|
|
7529
7578
|
}
|
|
@@ -8223,7 +8272,7 @@
|
|
|
8223
8272
|
this.clearRef.current.click();
|
|
8224
8273
|
}
|
|
8225
8274
|
} },
|
|
8226
|
-
React__namespace.createElement(TimesCircleIcon, { "aria-hidden": true })));
|
|
8275
|
+
React__namespace.createElement(TimesCircleIcon$1, { "aria-hidden": true })));
|
|
8227
8276
|
let selectedChips = null;
|
|
8228
8277
|
if (variant === exports.SelectVariant.typeaheadMulti) {
|
|
8229
8278
|
selectedChips = chipGroupComponent ? (chipGroupComponent) : (React__namespace.createElement(ChipGroup, Object.assign({}, chipGroupProps), selections &&
|
|
@@ -8373,11 +8422,11 @@
|
|
|
8373
8422
|
React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, styles$_.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-multi-typeahead-typeahead`, "aria-label": typeAheadAriaLabel, "aria-invalid": validated === exports.ValidatedOptions.error }, (typeAheadAriaDescribedby && { 'aria-describedby': typeAheadAriaDescribedby }), { placeholder: placeholderText, value: typeaheadInputValue !== null ? typeaheadInputValue : '', type: "text", onChange: this.onChange, onClick: this.onClick, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef }))),
|
|
8374
8423
|
hasOnClear && ((selections && selections.length > 0) || typeaheadInputValue) && clearBtn)),
|
|
8375
8424
|
validated === exports.ValidatedOptions.success && (React__namespace.createElement("span", { className: css(styles$_.selectToggleStatusIcon) },
|
|
8376
|
-
React__namespace.createElement(CheckCircleIcon, { "aria-hidden": "true" }))),
|
|
8425
|
+
React__namespace.createElement(CheckCircleIcon$1, { "aria-hidden": "true" }))),
|
|
8377
8426
|
validated === exports.ValidatedOptions.error && (React__namespace.createElement("span", { className: css(styles$_.selectToggleStatusIcon) },
|
|
8378
|
-
React__namespace.createElement(ExclamationCircleIcon, { "aria-hidden": "true" }))),
|
|
8427
|
+
React__namespace.createElement(ExclamationCircleIcon$1, { "aria-hidden": "true" }))),
|
|
8379
8428
|
validated === exports.ValidatedOptions.warning && (React__namespace.createElement("span", { className: css(styles$_.selectToggleStatusIcon) },
|
|
8380
|
-
React__namespace.createElement(ExclamationTriangleIcon, { "aria-hidden": "true" })))),
|
|
8429
|
+
React__namespace.createElement(ExclamationTriangleIcon$1, { "aria-hidden": "true" })))),
|
|
8381
8430
|
isOpen && menuAppendTo === 'inline' && menuContainer));
|
|
8382
8431
|
const getParentElement = () => {
|
|
8383
8432
|
if (this.parentRef && this.parentRef.current) {
|
|
@@ -8513,6 +8562,7 @@
|
|
|
8513
8562
|
"value": "auto",
|
|
8514
8563
|
"var": "var(--pf-c-form-control--textarea--Height)"
|
|
8515
8564
|
};
|
|
8565
|
+
var heightToken = c_form_control_textarea_Height;
|
|
8516
8566
|
|
|
8517
8567
|
exports.TextAreResizeOrientation = void 0;
|
|
8518
8568
|
(function (TextAreResizeOrientation) {
|
|
@@ -8527,7 +8577,7 @@
|
|
|
8527
8577
|
// https://gomakethings.com/automatically-expand-a-textarea-as-the-user-types-using-vanilla-javascript/
|
|
8528
8578
|
const field = event.currentTarget;
|
|
8529
8579
|
if (this.props.autoResize && canUseDOM) {
|
|
8530
|
-
field.style.setProperty(
|
|
8580
|
+
field.style.setProperty(heightToken.name, 'inherit');
|
|
8531
8581
|
const computed = window.getComputedStyle(field);
|
|
8532
8582
|
// Calculate the height
|
|
8533
8583
|
const height = parseInt(computed.getPropertyValue('border-top-width')) +
|
|
@@ -8535,7 +8585,7 @@
|
|
|
8535
8585
|
field.scrollHeight +
|
|
8536
8586
|
parseInt(computed.getPropertyValue('padding-bottom')) +
|
|
8537
8587
|
parseInt(computed.getPropertyValue('border-bottom-width'));
|
|
8538
|
-
field.style.setProperty(
|
|
8588
|
+
field.style.setProperty(heightToken.name, `${height}px`);
|
|
8539
8589
|
}
|
|
8540
8590
|
if (this.props.onChange) {
|
|
8541
8591
|
this.props.onChange(field.value, event);
|
|
@@ -8608,6 +8658,8 @@
|
|
|
8608
8658
|
|
|
8609
8659
|
const AngleLeftIcon = createIcon(AngleLeftIconConfig);
|
|
8610
8660
|
|
|
8661
|
+
var AngleLeftIcon$1 = AngleLeftIcon;
|
|
8662
|
+
|
|
8611
8663
|
Promise.resolve().then(function () { return calendarMonth; });
|
|
8612
8664
|
var styles$U = {
|
|
8613
8665
|
"calendarMonth": "pf-c-calendar-month",
|
|
@@ -8784,7 +8836,7 @@
|
|
|
8784
8836
|
React__default["default"].createElement("div", { className: styles$U.calendarMonthHeader },
|
|
8785
8837
|
React__default["default"].createElement("div", { className: css(styles$U.calendarMonthHeaderNavControl, styles$U.modifiers.prevMonth) },
|
|
8786
8838
|
React__default["default"].createElement(Button, { variant: "plain", "aria-label": prevMonthAriaLabel, onClick: (ev) => onMonthClick(prevMonth, ev) },
|
|
8787
|
-
React__default["default"].createElement(AngleLeftIcon, { "aria-hidden": true }))),
|
|
8839
|
+
React__default["default"].createElement(AngleLeftIcon$1, { "aria-hidden": true }))),
|
|
8788
8840
|
React__default["default"].createElement(InputGroup, null,
|
|
8789
8841
|
React__default["default"].createElement("div", { className: styles$U.calendarMonthHeaderMonth },
|
|
8790
8842
|
React__default["default"].createElement("span", { id: hiddenMonthId, hidden: true }, "Month"),
|
|
@@ -8820,7 +8872,7 @@
|
|
|
8820
8872
|
} }))),
|
|
8821
8873
|
React__default["default"].createElement("div", { className: css(styles$U.calendarMonthHeaderNavControl, styles$U.modifiers.nextMonth) },
|
|
8822
8874
|
React__default["default"].createElement(Button, { variant: "plain", "aria-label": nextMonthAriaLabel, onClick: (ev) => onMonthClick(nextMonth, ev) },
|
|
8823
|
-
React__default["default"].createElement(AngleRightIcon, { "aria-hidden": true })))),
|
|
8875
|
+
React__default["default"].createElement(AngleRightIcon$1, { "aria-hidden": true })))),
|
|
8824
8876
|
React__default["default"].createElement("table", { className: styles$U.calendarMonthCalendar },
|
|
8825
8877
|
React__default["default"].createElement("thead", { className: styles$U.calendarMonthDays },
|
|
8826
8878
|
React__default["default"].createElement("tr", null, calendar[0].map(({ date }, index) => (React__default["default"].createElement("th", { key: index, className: styles$U.calendarMonthDay, scope: "col" },
|
|
@@ -8993,7 +9045,7 @@
|
|
|
8993
9045
|
onExpand(evt, cardId);
|
|
8994
9046
|
} }, toggleButtonProps),
|
|
8995
9047
|
React__namespace.createElement("span", { className: css(styles$T.cardHeaderToggleIcon) },
|
|
8996
|
-
React__namespace.createElement(AngleRightIcon, { "aria-hidden": "true" })))));
|
|
9048
|
+
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": "true" })))));
|
|
8997
9049
|
return (React__namespace.createElement("div", Object.assign({ className: css(styles$T.cardHeader, isToggleRightAligned && styles$T.modifiers.toggleRight, className), id: id }, props),
|
|
8998
9050
|
onExpand && !isToggleRightAligned && cardHeaderToggle,
|
|
8999
9051
|
children,
|
|
@@ -9165,7 +9217,7 @@
|
|
|
9165
9217
|
}, [closeButtonElement]);
|
|
9166
9218
|
return (React__namespace.createElement(FindRefWrapper, { onFoundRef: (foundRef) => setCloseButtonElement(foundRef) },
|
|
9167
9219
|
React__namespace.createElement(Button, Object.assign({ variant: "plain", "aria-label": true }, props, { style: { pointerEvents: 'auto' } }),
|
|
9168
|
-
React__namespace.createElement(TimesIcon, null))));
|
|
9220
|
+
React__namespace.createElement(TimesIcon$1, null))));
|
|
9169
9221
|
};
|
|
9170
9222
|
PopoverCloseButton.displayName = 'PopoverCloseButton';
|
|
9171
9223
|
|
|
@@ -9180,12 +9232,14 @@
|
|
|
9180
9232
|
"value": "none",
|
|
9181
9233
|
"var": "var(--pf-c-popover--MaxWidth)"
|
|
9182
9234
|
};
|
|
9235
|
+
var popoverMaxWidth = c_popover_MaxWidth;
|
|
9183
9236
|
|
|
9184
9237
|
const c_popover_MinWidth = {
|
|
9185
9238
|
"name": "--pf-c-popover--MinWidth",
|
|
9186
9239
|
"value": "auto",
|
|
9187
9240
|
"var": "var(--pf-c-popover--MinWidth)"
|
|
9188
9241
|
};
|
|
9242
|
+
var popoverMinWidth = c_popover_MinWidth;
|
|
9189
9243
|
|
|
9190
9244
|
exports.PopoverPosition = void 0;
|
|
9191
9245
|
(function (PopoverPosition) {
|
|
@@ -9211,7 +9265,7 @@
|
|
|
9211
9265
|
danger: styles$R.modifiers.danger
|
|
9212
9266
|
};
|
|
9213
9267
|
const Popover = (_a) => {
|
|
9214
|
-
var { children, position = 'top', enableFlip = true, className = '', isVisible = null, shouldClose = () => null, shouldOpen = () => null, 'aria-label': ariaLabel = '', bodyContent, headerContent = null, headerComponent = 'h6', headerIcon = null, alertSeverityVariant, alertSeverityScreenReaderText, footerContent = null, appendTo = () => document.body, hideOnOutsideClick = true, onHide = () => null, onHidden = () => null, onShow = () => null, onShown = () => null, onMount = () => null, zIndex = 9999, minWidth =
|
|
9268
|
+
var { children, position = 'top', enableFlip = true, className = '', isVisible = null, shouldClose = () => null, shouldOpen = () => null, 'aria-label': ariaLabel = '', bodyContent, headerContent = null, headerComponent = 'h6', headerIcon = null, alertSeverityVariant, alertSeverityScreenReaderText, footerContent = null, appendTo = () => document.body, hideOnOutsideClick = true, onHide = () => null, onHidden = () => null, onShow = () => null, onShown = () => null, onMount = () => null, zIndex = 9999, minWidth = popoverMinWidth && popoverMinWidth.value, maxWidth = popoverMaxWidth && popoverMaxWidth.value, closeBtnAriaLabel = 'Close', showClose = true, distance = 25,
|
|
9215
9269
|
// For every initial starting position, there are 3 escape positions
|
|
9216
9270
|
flipBehavior = ['top', 'right', 'bottom', 'left', 'top', 'right', 'bottom'], animationDuration = 300, id, withFocusTrap: propWithFocusTrap, boundary, tippyProps, reference, hasNoPadding = false, hasAutoWidth = false } = _a, rest = __rest$1(_a, ["children", "position", "enableFlip", "className", "isVisible", "shouldClose", "shouldOpen", 'aria-label', "bodyContent", "headerContent", "headerComponent", "headerIcon", "alertSeverityVariant", "alertSeverityScreenReaderText", "footerContent", "appendTo", "hideOnOutsideClick", "onHide", "onHidden", "onShow", "onShown", "onMount", "zIndex", "minWidth", "maxWidth", "closeBtnAriaLabel", "showClose", "distance", "flipBehavior", "animationDuration", "id", "withFocusTrap", "boundary", "tippyProps", "reference", "hasNoPadding", "hasAutoWidth"]);
|
|
9217
9271
|
{
|
|
@@ -9285,8 +9339,8 @@
|
|
|
9285
9339
|
'right-start': styles$R.modifiers.rightTop,
|
|
9286
9340
|
'right-end': styles$R.modifiers.rightBottom
|
|
9287
9341
|
};
|
|
9288
|
-
const hasCustomMinWidth = minWidth !==
|
|
9289
|
-
const hasCustomMaxWidth = maxWidth !==
|
|
9342
|
+
const hasCustomMinWidth = minWidth !== popoverMinWidth.value;
|
|
9343
|
+
const hasCustomMaxWidth = maxWidth !== popoverMaxWidth.value;
|
|
9290
9344
|
const onDocumentKeyDown = (event) => {
|
|
9291
9345
|
if (event.key === KeyTypes.Escape && visible) {
|
|
9292
9346
|
if (triggerManually) {
|
|
@@ -9388,11 +9442,13 @@
|
|
|
9388
9442
|
|
|
9389
9443
|
const CopyIcon = createIcon(CopyIconConfig);
|
|
9390
9444
|
|
|
9445
|
+
var CopyIcon$1 = CopyIcon;
|
|
9446
|
+
|
|
9391
9447
|
const ClipboardCopyButton = (_a) => {
|
|
9392
9448
|
var { onClick, exitDelay = 0, entryDelay = 300, maxWidth = '100px', position = 'top', 'aria-label': ariaLabel = 'Copyable input', id, textId, children, variant = 'control' } = _a, props = __rest$1(_a, ["onClick", "exitDelay", "entryDelay", "maxWidth", "position", 'aria-label', "id", "textId", "children", "variant"]);
|
|
9393
9449
|
return (React__namespace.createElement(Tooltip, { trigger: "mouseenter focus click", exitDelay: exitDelay, entryDelay: entryDelay, maxWidth: maxWidth, position: position, "aria-live": "polite", aria: "none", content: React__namespace.createElement("div", null, children) },
|
|
9394
9450
|
React__namespace.createElement(Button, Object.assign({ type: "button", variant: variant, onClick: onClick, "aria-label": ariaLabel, id: id, "aria-labelledby": `${id} ${textId}` }, props),
|
|
9395
|
-
React__namespace.createElement(CopyIcon, null))));
|
|
9451
|
+
React__namespace.createElement(CopyIcon$1, null))));
|
|
9396
9452
|
};
|
|
9397
9453
|
ClipboardCopyButton.displayName = 'ClipboardCopyButton';
|
|
9398
9454
|
|
|
@@ -9407,9 +9463,11 @@
|
|
|
9407
9463
|
|
|
9408
9464
|
const AngleDownIcon = createIcon(AngleDownIconConfig);
|
|
9409
9465
|
|
|
9466
|
+
var AngleDownIcon$1 = AngleDownIcon;
|
|
9467
|
+
|
|
9410
9468
|
const ClipboardCopyToggle = (_a) => {
|
|
9411
9469
|
var { onClick, id, textId, contentId, isExpanded = false } = _a, props = __rest$1(_a, ["onClick", "id", "textId", "contentId", "isExpanded"]);
|
|
9412
|
-
return (React__namespace.createElement(Button, Object.assign({ type: "button", variant: "control", onClick: onClick, id: id, "aria-labelledby": `${id} ${textId}`, "aria-controls": `${id} ${contentId}`, "aria-expanded": isExpanded }, props), isExpanded ? React__namespace.createElement(AngleDownIcon, { "aria-hidden": "true" }) : React__namespace.createElement(AngleRightIcon, { "aria-hidden": "true" })));
|
|
9470
|
+
return (React__namespace.createElement(Button, Object.assign({ type: "button", variant: "control", onClick: onClick, id: id, "aria-labelledby": `${id} ${textId}`, "aria-controls": `${id} ${contentId}`, "aria-expanded": isExpanded }, props), isExpanded ? React__namespace.createElement(AngleDownIcon$1, { "aria-hidden": "true" }) : React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": "true" })));
|
|
9413
9471
|
};
|
|
9414
9472
|
ClipboardCopyToggle.displayName = 'ClipboardCopyToggle';
|
|
9415
9473
|
|
|
@@ -9621,6 +9679,8 @@
|
|
|
9621
9679
|
|
|
9622
9680
|
const SearchIcon = createIcon(SearchIconConfig);
|
|
9623
9681
|
|
|
9682
|
+
var SearchIcon$1 = SearchIcon;
|
|
9683
|
+
|
|
9624
9684
|
class ContextSelectorToggle extends React__namespace.Component {
|
|
9625
9685
|
constructor() {
|
|
9626
9686
|
super(...arguments);
|
|
@@ -9675,7 +9735,7 @@
|
|
|
9675
9735
|
return (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.toggle, className: css(styles$P.contextSelectorToggle, isActive && styles$P.modifiers.active, isPlain && styles$P.modifiers.plain, isText && styles$P.modifiers.text, className), type: "button", onClick: event => onToggle(event, !isOpen), "aria-expanded": isOpen, onKeyDown: this.onKeyDown }),
|
|
9676
9736
|
React__namespace.createElement("span", { className: css(styles$P.contextSelectorToggleText) }, toggleText),
|
|
9677
9737
|
React__namespace.createElement("span", { className: css(styles$P.contextSelectorToggleIcon) },
|
|
9678
|
-
React__namespace.createElement(CaretDownIcon, { "aria-hidden": true }))));
|
|
9738
|
+
React__namespace.createElement(CaretDownIcon$1, { "aria-hidden": true }))));
|
|
9679
9739
|
}
|
|
9680
9740
|
}
|
|
9681
9741
|
ContextSelectorToggle.displayName = 'ContextSelectorToggle';
|
|
@@ -9747,7 +9807,7 @@
|
|
|
9747
9807
|
React__namespace.createElement(InputGroup, null,
|
|
9748
9808
|
React__namespace.createElement(TextInput, { value: searchInputValue, type: "search", placeholder: searchInputPlaceholder, onChange: onSearchInputChange, onKeyPress: this.onEnterPressed, "aria-label": searchButtonAriaLabel }),
|
|
9749
9809
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.control, "aria-label": searchButtonAriaLabel, onClick: onSearchButtonClick },
|
|
9750
|
-
React__namespace.createElement(SearchIcon, { "aria-hidden": "true" })))),
|
|
9810
|
+
React__namespace.createElement(SearchIcon$1, { "aria-hidden": "true" })))),
|
|
9751
9811
|
React__namespace.createElement(ContextSelectorContext.Provider, { value: { onSelect } },
|
|
9752
9812
|
React__namespace.createElement(ContextSelectorMenuList, { isOpen: isOpen }, children)),
|
|
9753
9813
|
footer))));
|
|
@@ -10201,11 +10261,13 @@
|
|
|
10201
10261
|
|
|
10202
10262
|
const GripVerticalIcon = createIcon(GripVerticalIconConfig);
|
|
10203
10263
|
|
|
10264
|
+
var GripVerticalIcon$1 = GripVerticalIcon;
|
|
10265
|
+
|
|
10204
10266
|
const DataListDragButton = (_a) => {
|
|
10205
10267
|
var { className = '', isDisabled = false } = _a, props = __rest$1(_a, ["className", "isDisabled"]);
|
|
10206
10268
|
return (React__namespace.createElement(DataListContext.Consumer, null, ({ dragKeyHandler }) => (React__namespace.createElement("button", Object.assign({ className: css(styles$O.dataListItemDraggableButton, isDisabled && styles$O.modifiers.disabled, className), onKeyDown: dragKeyHandler, type: "button", disabled: isDisabled }, props),
|
|
10207
10269
|
React__namespace.createElement("span", { className: css(styles$O.dataListItemDraggableIcon) },
|
|
10208
|
-
React__namespace.createElement(GripVerticalIcon, null))))));
|
|
10270
|
+
React__namespace.createElement(GripVerticalIcon$1, null))))));
|
|
10209
10271
|
};
|
|
10210
10272
|
DataListDragButton.displayName = 'DataListDragButton';
|
|
10211
10273
|
|
|
@@ -10305,7 +10367,7 @@
|
|
|
10305
10367
|
React__namespace.createElement("div", { className: css(styles$O.dataListToggle) },
|
|
10306
10368
|
React__namespace.createElement(Button, { id: id, variant: exports.ButtonVariant.plain, "aria-controls": ariaControls !== '' && ariaControls, "aria-label": ariaLabel, "aria-labelledby": ariaLabel !== 'Details' ? null : `${rowid} ${id}`, "aria-expanded": isExpanded },
|
|
10307
10369
|
React__namespace.createElement("div", { className: css(styles$O.dataListToggleIcon) },
|
|
10308
|
-
React__namespace.createElement(AngleRightIcon, null))))));
|
|
10370
|
+
React__namespace.createElement(AngleRightIcon$1, null))))));
|
|
10309
10371
|
};
|
|
10310
10372
|
DataListToggle.displayName = 'DataListToggle';
|
|
10311
10373
|
|
|
@@ -10362,6 +10424,8 @@
|
|
|
10362
10424
|
|
|
10363
10425
|
const OutlinedCalendarAltIcon = createIcon(OutlinedCalendarAltIconConfig);
|
|
10364
10426
|
|
|
10427
|
+
var OutlinedCalendarAltIcon$1 = OutlinedCalendarAltIcon;
|
|
10428
|
+
|
|
10365
10429
|
const yyyyMMddFormat = (date) => `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date
|
|
10366
10430
|
.getDate()
|
|
10367
10431
|
.toString()
|
|
@@ -10464,7 +10528,7 @@
|
|
|
10464
10528
|
React__namespace.createElement(InputGroup, null,
|
|
10465
10529
|
React__namespace.createElement(TextInput, Object.assign({ isDisabled: isDisabled, "aria-label": ariaLabel, placeholder: placeholder, validated: errorText ? 'error' : 'default', value: value, onChange: onTextInput, onBlur: onInputBlur, onKeyPress: onKeyPress }, inputProps)),
|
|
10466
10530
|
React__namespace.createElement("button", { ref: buttonRef, className: css(buttonStyles.button, buttonStyles.modifiers.control), "aria-label": buttonAriaLabel, type: "button", onClick: () => setPopoverOpen(!popoverOpen), disabled: isDisabled },
|
|
10467
|
-
React__namespace.createElement(OutlinedCalendarAltIcon, null))))),
|
|
10531
|
+
React__namespace.createElement(OutlinedCalendarAltIcon$1, null))))),
|
|
10468
10532
|
helperText && React__namespace.createElement("div", { className: datePickerStyles.datePickerHelperText }, helperText),
|
|
10469
10533
|
errorText.trim() && React__namespace.createElement("div", { className: css(datePickerStyles.datePickerHelperText, datePickerStyles.modifiers.error) }, errorText)));
|
|
10470
10534
|
};
|
|
@@ -10675,7 +10739,7 @@
|
|
|
10675
10739
|
className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close drawer panel' } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label']);
|
|
10676
10740
|
return (React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerClose, className) }, props),
|
|
10677
10741
|
React__namespace.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
|
|
10678
|
-
React__namespace.createElement(TimesIcon, null))));
|
|
10742
|
+
React__namespace.createElement(TimesIcon$1, null))));
|
|
10679
10743
|
};
|
|
10680
10744
|
DrawerCloseButton.displayName = 'DrawerCloseButton';
|
|
10681
10745
|
|
|
@@ -10981,6 +11045,8 @@
|
|
|
10981
11045
|
|
|
10982
11046
|
const AngleDoubleLeftIcon = createIcon(AngleDoubleLeftIconConfig);
|
|
10983
11047
|
|
|
11048
|
+
var AngleDoubleLeftIcon$1 = AngleDoubleLeftIcon;
|
|
11049
|
+
|
|
10984
11050
|
const AngleDoubleRightIconConfig = {
|
|
10985
11051
|
name: 'AngleDoubleRightIcon',
|
|
10986
11052
|
height: 512,
|
|
@@ -10992,6 +11058,8 @@
|
|
|
10992
11058
|
|
|
10993
11059
|
const AngleDoubleRightIcon = createIcon(AngleDoubleRightIconConfig);
|
|
10994
11060
|
|
|
11061
|
+
var AngleDoubleRightIcon$1 = AngleDoubleRightIcon;
|
|
11062
|
+
|
|
10995
11063
|
function flattenTree(tree) {
|
|
10996
11064
|
let result = [];
|
|
10997
11065
|
tree.forEach(item => {
|
|
@@ -11095,7 +11163,7 @@
|
|
|
11095
11163
|
}
|
|
11096
11164
|
}, tabIndex: -1 },
|
|
11097
11165
|
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemToggleIcon) },
|
|
11098
|
-
React__namespace.createElement(AngleRightIcon, { "aria-hidden": true })))),
|
|
11166
|
+
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": true })))),
|
|
11099
11167
|
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemCheck) },
|
|
11100
11168
|
React__namespace.createElement("input", Object.assign({ type: "checkbox", onChange: (evt) => {
|
|
11101
11169
|
onOptionCheck && onOptionCheck(evt, !isChecked, itemData);
|
|
@@ -11161,7 +11229,7 @@
|
|
|
11161
11229
|
React__namespace.createElement("div", { className: css(styles$L.dualListSelectorListItemRow, isSelected && styles$L.modifiers.selected) },
|
|
11162
11230
|
isDraggable && !isDisabled && (React__namespace.createElement("div", { className: css(styles$L.dualListSelectorDraggable) },
|
|
11163
11231
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, component: "span" },
|
|
11164
|
-
React__namespace.createElement(GripVerticalIcon, { style: { verticalAlign: '-0.3em' } })))),
|
|
11232
|
+
React__namespace.createElement(GripVerticalIcon$1, { style: { verticalAlign: '-0.3em' } })))),
|
|
11165
11233
|
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItem) },
|
|
11166
11234
|
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemMain) },
|
|
11167
11235
|
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemText) }, children))))));
|
|
@@ -11760,14 +11828,14 @@
|
|
|
11760
11828
|
React__namespace.createElement(DualListSelectorControlsWrapper, { "aria-label": controlsAriaLabel },
|
|
11761
11829
|
React__namespace.createElement(DualListSelectorControl, { isDisabled: (isTree ? availableTreeOptionsChecked.length === 0 : availableOptionsSelected.length === 0) ||
|
|
11762
11830
|
isDisabled, onClick: isTree ? this.addTreeSelected : this.addSelected, ref: this.addSelectedButtonRef, "aria-label": addSelectedAriaLabel, tooltipContent: addSelectedTooltip, tooltipProps: addSelectedTooltipProps },
|
|
11763
|
-
React__namespace.createElement(AngleRightIcon, null)),
|
|
11831
|
+
React__namespace.createElement(AngleRightIcon$1, null)),
|
|
11764
11832
|
React__namespace.createElement(DualListSelectorControl, { isDisabled: availableOptions.length === 0 || isDisabled, onClick: isTree ? this.addAllTreeVisible : this.addAllVisible, ref: this.addAllButtonRef, "aria-label": addAllAriaLabel, tooltipContent: addAllTooltip, tooltipProps: addAllTooltipProps },
|
|
11765
|
-
React__namespace.createElement(AngleDoubleRightIcon, null)),
|
|
11833
|
+
React__namespace.createElement(AngleDoubleRightIcon$1, null)),
|
|
11766
11834
|
React__namespace.createElement(DualListSelectorControl, { isDisabled: chosenOptions.length === 0 || isDisabled, onClick: isTree ? this.removeAllTreeVisible : this.removeAllVisible, "aria-label": removeAllAriaLabel, ref: this.removeAllButtonRef, tooltipContent: removeAllTooltip, tooltipProps: removeAllTooltipProps },
|
|
11767
|
-
React__namespace.createElement(AngleDoubleLeftIcon, null)),
|
|
11835
|
+
React__namespace.createElement(AngleDoubleLeftIcon$1, null)),
|
|
11768
11836
|
React__namespace.createElement(DualListSelectorControl, { onClick: isTree ? this.removeTreeSelected : this.removeSelected, isDisabled: (isTree ? chosenTreeOptionsChecked.length === 0 : chosenOptionsSelected.length === 0) ||
|
|
11769
11837
|
isDisabled, ref: this.removeSelectedButtonRef, "aria-label": removeSelectedAriaLabel, tooltipContent: removeSelectedTooltip, tooltipProps: removeSelectedTooltipProps },
|
|
11770
|
-
React__namespace.createElement(AngleLeftIcon, null))),
|
|
11838
|
+
React__namespace.createElement(AngleLeftIcon$1, null))),
|
|
11771
11839
|
React__namespace.createElement(DualListSelectorPane, { isChosen: true, isSearchable: isSearchable, onFilterUpdate: this.onFilterUpdate, searchInputAriaLabel: chosenOptionsSearchAriaLabel, filterOption: filterOption, onSearchInputChanged: onChosenOptionsSearchInputChanged, title: chosenOptionsTitle, status: chosenOptionsStatusToDisplay, options: chosen, selectedOptions: isTree ? chosenTreeOptionsChecked : chosenOptionsSelected, onOptionSelect: this.onOptionSelect, onOptionCheck: (e, isChecked, itemData) => this.onTreeOptionCheck(e, isChecked, itemData, true), actions: chosenOptionsActions, id: `${id || randomId}-chosen-pane`, isDisabled: isDisabled }))) : (children))))));
|
|
11772
11840
|
}
|
|
11773
11841
|
}
|
|
@@ -11876,6 +11944,7 @@
|
|
|
11876
11944
|
"value": "3",
|
|
11877
11945
|
"var": "var(--pf-c-expandable-section--m-truncate__content--LineClamp)"
|
|
11878
11946
|
};
|
|
11947
|
+
var lineClamp = c_expandable_section_m_truncate__content_LineClamp;
|
|
11879
11948
|
|
|
11880
11949
|
exports.ExpandableSectionVariant = void 0;
|
|
11881
11950
|
(function (ExpandableSectionVariant) {
|
|
@@ -11886,7 +11955,7 @@
|
|
|
11886
11955
|
if (!element || lines < 1) {
|
|
11887
11956
|
return;
|
|
11888
11957
|
}
|
|
11889
|
-
element.style.setProperty(
|
|
11958
|
+
element.style.setProperty(lineClamp.name, lines.toString());
|
|
11890
11959
|
};
|
|
11891
11960
|
class ExpandableSection extends React__namespace.Component {
|
|
11892
11961
|
constructor(props) {
|
|
@@ -11936,7 +12005,7 @@
|
|
|
11936
12005
|
const computedToggleText = this.calculateToggleText(toggleText, toggleTextExpanded, toggleTextCollapsed, propOrStateIsExpanded);
|
|
11937
12006
|
const expandableToggle = !isDetached && (React__namespace.createElement("button", { className: css(styles$J.expandableSectionToggle), type: "button", "aria-expanded": propOrStateIsExpanded, onClick: () => onToggle(!propOrStateIsExpanded) },
|
|
11938
12007
|
variant !== exports.ExpandableSectionVariant.truncate && (React__namespace.createElement("span", { className: css(styles$J.expandableSectionToggleIcon) },
|
|
11939
|
-
React__namespace.createElement(AngleRightIcon, { "aria-hidden": true }))),
|
|
12008
|
+
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": true }))),
|
|
11940
12009
|
React__namespace.createElement("span", { className: css(styles$J.expandableSectionToggleText) }, toggleContent || computedToggleText)));
|
|
11941
12010
|
return (React__namespace.createElement("div", Object.assign({ className: css(styles$J.expandableSection, propOrStateIsExpanded && styles$J.modifiers.expanded, isActive && styles$J.modifiers.active, isDetached && styles$J.modifiers.detached, displaySize === 'large' && styles$J.modifiers.displayLg, isWidthLimited && styles$J.modifiers.limitWidth, isIndented && styles$J.modifiers.indented, variant === exports.ExpandableSectionVariant.truncate && styles$J.modifiers.truncate, className) }, props),
|
|
11942
12011
|
variant === exports.ExpandableSectionVariant.default && expandableToggle,
|
|
@@ -11966,7 +12035,7 @@
|
|
|
11966
12035
|
return (React__namespace.createElement("div", Object.assign({ className: css(styles$J.expandableSection, isExpanded && styles$J.modifiers.expanded, styles$J.modifiers.detached, hasTruncatedContent && styles$J.modifiers.truncate, className) }, props),
|
|
11967
12036
|
React__namespace.createElement("button", { className: css(styles$J.expandableSectionToggle), type: "button", "aria-expanded": isExpanded, "aria-controls": contentId, onClick: () => onToggle(!isExpanded) },
|
|
11968
12037
|
!hasTruncatedContent && (React__namespace.createElement("span", { className: css(styles$J.expandableSectionToggleIcon, isExpanded && direction === 'up' && styles$J.modifiers.expandTop) },
|
|
11969
|
-
React__namespace.createElement(AngleRightIcon, { "aria-hidden": true }))),
|
|
12038
|
+
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": true }))),
|
|
11970
12039
|
React__namespace.createElement("span", { className: css(styles$J.expandableSectionToggleText) }, children))));
|
|
11971
12040
|
};
|
|
11972
12041
|
ExpandableSectionToggle.displayName = 'ExpandableSectionToggle';
|
|
@@ -12352,236 +12421,233 @@
|
|
|
12352
12421
|
|
|
12353
12422
|
|
|
12354
12423
|
|
|
12355
|
-
|
|
12356
|
-
|
|
12357
|
-
|
|
12358
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
12359
|
-
|
|
12360
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
12361
|
-
// nor polyfill, then a plain number is used for performance.
|
|
12362
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
12363
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
12364
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
12365
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
12366
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
12367
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
12368
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
12369
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
12370
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
12371
|
-
|
|
12372
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
12373
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
12374
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
12375
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
12376
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
12377
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
12378
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
12379
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
12380
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
12381
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
12382
|
-
|
|
12383
|
-
function isValidElementType(type) {
|
|
12384
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
12385
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE);
|
|
12386
|
-
}
|
|
12424
|
+
{
|
|
12425
|
+
(function() {
|
|
12387
12426
|
|
|
12388
|
-
|
|
12389
|
-
* Forked from fbjs/warning:
|
|
12390
|
-
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
|
12391
|
-
*
|
|
12392
|
-
* Only change is we use console.warn instead of console.error,
|
|
12393
|
-
* and do nothing when 'console' is not supported.
|
|
12394
|
-
* This really simplifies the code.
|
|
12395
|
-
* ---
|
|
12396
|
-
* Similar to invariant but only logs a warning if the condition is not met.
|
|
12397
|
-
* This can be used to log issues in development environments in critical
|
|
12398
|
-
* paths. Removing the logging code for production environments will keep the
|
|
12399
|
-
* same logic and follow the same code paths.
|
|
12400
|
-
*/
|
|
12401
|
-
var lowPriorityWarningWithoutStack = function () {};
|
|
12402
|
-
|
|
12403
|
-
{
|
|
12404
|
-
var printWarning = function (format) {
|
|
12405
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
12406
|
-
args[_key - 1] = arguments[_key];
|
|
12407
|
-
}
|
|
12408
|
-
|
|
12409
|
-
var argIndex = 0;
|
|
12410
|
-
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
12411
|
-
return args[argIndex++];
|
|
12412
|
-
});
|
|
12413
|
-
|
|
12414
|
-
if (typeof console !== 'undefined') {
|
|
12415
|
-
console.warn(message);
|
|
12416
|
-
}
|
|
12417
|
-
|
|
12418
|
-
try {
|
|
12419
|
-
// --- Welcome to debugging React ---
|
|
12420
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
12421
|
-
// to find the callsite that caused this warning to fire.
|
|
12422
|
-
throw new Error(message);
|
|
12423
|
-
} catch (x) {}
|
|
12424
|
-
};
|
|
12425
|
-
|
|
12426
|
-
lowPriorityWarningWithoutStack = function (condition, format) {
|
|
12427
|
-
if (format === undefined) {
|
|
12428
|
-
throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
12429
|
-
}
|
|
12430
|
-
|
|
12431
|
-
if (!condition) {
|
|
12432
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
12433
|
-
args[_key2 - 2] = arguments[_key2];
|
|
12434
|
-
}
|
|
12435
|
-
|
|
12436
|
-
printWarning.apply(void 0, [format].concat(args));
|
|
12437
|
-
}
|
|
12438
|
-
};
|
|
12439
|
-
}
|
|
12427
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
12440
12428
|
|
|
12441
|
-
|
|
12442
|
-
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
|
|
12451
|
-
|
|
12452
|
-
|
|
12453
|
-
|
|
12454
|
-
|
|
12455
|
-
|
|
12456
|
-
|
|
12457
|
-
|
|
12458
|
-
|
|
12459
|
-
|
|
12460
|
-
|
|
12461
|
-
|
|
12462
|
-
|
|
12463
|
-
|
|
12464
|
-
|
|
12465
|
-
|
|
12466
|
-
|
|
12467
|
-
|
|
12468
|
-
|
|
12469
|
-
default:
|
|
12470
|
-
return $$typeof;
|
|
12471
|
-
}
|
|
12472
|
-
|
|
12473
|
-
}
|
|
12474
|
-
|
|
12475
|
-
case REACT_LAZY_TYPE:
|
|
12476
|
-
case REACT_MEMO_TYPE:
|
|
12477
|
-
case REACT_PORTAL_TYPE:
|
|
12478
|
-
return $$typeof;
|
|
12479
|
-
}
|
|
12480
|
-
}
|
|
12481
|
-
|
|
12482
|
-
return undefined;
|
|
12483
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
12484
|
-
|
|
12485
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
12486
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
12487
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
12488
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
12489
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
12490
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
12491
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
12492
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
12493
|
-
var Memo = REACT_MEMO_TYPE;
|
|
12494
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
12495
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
12496
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
12497
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
12498
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
12499
|
-
|
|
12500
|
-
function isAsyncMode(object) {
|
|
12501
|
-
{
|
|
12502
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
12503
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
12504
|
-
lowPriorityWarningWithoutStack$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
12505
|
-
}
|
|
12506
|
-
}
|
|
12507
|
-
|
|
12508
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
12509
|
-
}
|
|
12510
|
-
function isConcurrentMode(object) {
|
|
12511
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
12512
|
-
}
|
|
12513
|
-
function isContextConsumer(object) {
|
|
12514
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
12515
|
-
}
|
|
12516
|
-
function isContextProvider(object) {
|
|
12517
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
12518
|
-
}
|
|
12519
|
-
function isElement(object) {
|
|
12520
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
12521
|
-
}
|
|
12522
|
-
function isForwardRef(object) {
|
|
12523
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
12524
|
-
}
|
|
12525
|
-
function isFragment(object) {
|
|
12526
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
12527
|
-
}
|
|
12528
|
-
function isLazy(object) {
|
|
12529
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
12530
|
-
}
|
|
12531
|
-
function isMemo(object) {
|
|
12532
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
12533
|
-
}
|
|
12534
|
-
function isPortal(object) {
|
|
12535
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
12536
|
-
}
|
|
12537
|
-
function isProfiler(object) {
|
|
12538
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
12539
|
-
}
|
|
12540
|
-
function isStrictMode(object) {
|
|
12541
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
12542
|
-
}
|
|
12543
|
-
function isSuspense(object) {
|
|
12544
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
12545
|
-
}
|
|
12429
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
12430
|
+
// nor polyfill, then a plain number is used for performance.
|
|
12431
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
12432
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
12433
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
12434
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
12435
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
12436
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
12437
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
12438
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
12439
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
12440
|
+
|
|
12441
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
12442
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
12443
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
12444
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
12445
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
12446
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
12447
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
12448
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
12449
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
12450
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
12451
|
+
|
|
12452
|
+
function isValidElementType(type) {
|
|
12453
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
12454
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE);
|
|
12455
|
+
}
|
|
12546
12456
|
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
|
|
12554
|
-
|
|
12555
|
-
|
|
12556
|
-
|
|
12557
|
-
|
|
12558
|
-
|
|
12559
|
-
|
|
12560
|
-
|
|
12561
|
-
exports.isValidElementType = isValidElementType;
|
|
12562
|
-
exports.isAsyncMode = isAsyncMode;
|
|
12563
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
12564
|
-
exports.isContextConsumer = isContextConsumer;
|
|
12565
|
-
exports.isContextProvider = isContextProvider;
|
|
12566
|
-
exports.isElement = isElement;
|
|
12567
|
-
exports.isForwardRef = isForwardRef;
|
|
12568
|
-
exports.isFragment = isFragment;
|
|
12569
|
-
exports.isLazy = isLazy;
|
|
12570
|
-
exports.isMemo = isMemo;
|
|
12571
|
-
exports.isPortal = isPortal;
|
|
12572
|
-
exports.isProfiler = isProfiler;
|
|
12573
|
-
exports.isStrictMode = isStrictMode;
|
|
12574
|
-
exports.isSuspense = isSuspense;
|
|
12575
|
-
})();
|
|
12576
|
-
}
|
|
12577
|
-
} (reactIs_development));
|
|
12457
|
+
/**
|
|
12458
|
+
* Forked from fbjs/warning:
|
|
12459
|
+
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
|
12460
|
+
*
|
|
12461
|
+
* Only change is we use console.warn instead of console.error,
|
|
12462
|
+
* and do nothing when 'console' is not supported.
|
|
12463
|
+
* This really simplifies the code.
|
|
12464
|
+
* ---
|
|
12465
|
+
* Similar to invariant but only logs a warning if the condition is not met.
|
|
12466
|
+
* This can be used to log issues in development environments in critical
|
|
12467
|
+
* paths. Removing the logging code for production environments will keep the
|
|
12468
|
+
* same logic and follow the same code paths.
|
|
12469
|
+
*/
|
|
12470
|
+
var lowPriorityWarningWithoutStack = function () {};
|
|
12578
12471
|
|
|
12579
|
-
|
|
12472
|
+
{
|
|
12473
|
+
var printWarning = function (format) {
|
|
12474
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
12475
|
+
args[_key - 1] = arguments[_key];
|
|
12476
|
+
}
|
|
12580
12477
|
|
|
12581
|
-
|
|
12582
|
-
|
|
12583
|
-
|
|
12584
|
-
|
|
12478
|
+
var argIndex = 0;
|
|
12479
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
12480
|
+
return args[argIndex++];
|
|
12481
|
+
});
|
|
12482
|
+
|
|
12483
|
+
if (typeof console !== 'undefined') {
|
|
12484
|
+
console.warn(message);
|
|
12485
|
+
}
|
|
12486
|
+
|
|
12487
|
+
try {
|
|
12488
|
+
// --- Welcome to debugging React ---
|
|
12489
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
12490
|
+
// to find the callsite that caused this warning to fire.
|
|
12491
|
+
throw new Error(message);
|
|
12492
|
+
} catch (x) {}
|
|
12493
|
+
};
|
|
12494
|
+
|
|
12495
|
+
lowPriorityWarningWithoutStack = function (condition, format) {
|
|
12496
|
+
if (format === undefined) {
|
|
12497
|
+
throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
12498
|
+
}
|
|
12499
|
+
|
|
12500
|
+
if (!condition) {
|
|
12501
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
12502
|
+
args[_key2 - 2] = arguments[_key2];
|
|
12503
|
+
}
|
|
12504
|
+
|
|
12505
|
+
printWarning.apply(void 0, [format].concat(args));
|
|
12506
|
+
}
|
|
12507
|
+
};
|
|
12508
|
+
}
|
|
12509
|
+
|
|
12510
|
+
var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack;
|
|
12511
|
+
|
|
12512
|
+
function typeOf(object) {
|
|
12513
|
+
if (typeof object === 'object' && object !== null) {
|
|
12514
|
+
var $$typeof = object.$$typeof;
|
|
12515
|
+
|
|
12516
|
+
switch ($$typeof) {
|
|
12517
|
+
case REACT_ELEMENT_TYPE:
|
|
12518
|
+
var type = object.type;
|
|
12519
|
+
|
|
12520
|
+
switch (type) {
|
|
12521
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
12522
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
12523
|
+
case REACT_FRAGMENT_TYPE:
|
|
12524
|
+
case REACT_PROFILER_TYPE:
|
|
12525
|
+
case REACT_STRICT_MODE_TYPE:
|
|
12526
|
+
case REACT_SUSPENSE_TYPE:
|
|
12527
|
+
return type;
|
|
12528
|
+
|
|
12529
|
+
default:
|
|
12530
|
+
var $$typeofType = type && type.$$typeof;
|
|
12531
|
+
|
|
12532
|
+
switch ($$typeofType) {
|
|
12533
|
+
case REACT_CONTEXT_TYPE:
|
|
12534
|
+
case REACT_FORWARD_REF_TYPE:
|
|
12535
|
+
case REACT_PROVIDER_TYPE:
|
|
12536
|
+
return $$typeofType;
|
|
12537
|
+
|
|
12538
|
+
default:
|
|
12539
|
+
return $$typeof;
|
|
12540
|
+
}
|
|
12541
|
+
|
|
12542
|
+
}
|
|
12543
|
+
|
|
12544
|
+
case REACT_LAZY_TYPE:
|
|
12545
|
+
case REACT_MEMO_TYPE:
|
|
12546
|
+
case REACT_PORTAL_TYPE:
|
|
12547
|
+
return $$typeof;
|
|
12548
|
+
}
|
|
12549
|
+
}
|
|
12550
|
+
|
|
12551
|
+
return undefined;
|
|
12552
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
12553
|
+
|
|
12554
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
12555
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
12556
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
12557
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
12558
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
12559
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
12560
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
12561
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
12562
|
+
var Memo = REACT_MEMO_TYPE;
|
|
12563
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
12564
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
12565
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
12566
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
12567
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
12568
|
+
|
|
12569
|
+
function isAsyncMode(object) {
|
|
12570
|
+
{
|
|
12571
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
12572
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
12573
|
+
lowPriorityWarningWithoutStack$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
12574
|
+
}
|
|
12575
|
+
}
|
|
12576
|
+
|
|
12577
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
12578
|
+
}
|
|
12579
|
+
function isConcurrentMode(object) {
|
|
12580
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
12581
|
+
}
|
|
12582
|
+
function isContextConsumer(object) {
|
|
12583
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
12584
|
+
}
|
|
12585
|
+
function isContextProvider(object) {
|
|
12586
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
12587
|
+
}
|
|
12588
|
+
function isElement(object) {
|
|
12589
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
12590
|
+
}
|
|
12591
|
+
function isForwardRef(object) {
|
|
12592
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
12593
|
+
}
|
|
12594
|
+
function isFragment(object) {
|
|
12595
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
12596
|
+
}
|
|
12597
|
+
function isLazy(object) {
|
|
12598
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
12599
|
+
}
|
|
12600
|
+
function isMemo(object) {
|
|
12601
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
12602
|
+
}
|
|
12603
|
+
function isPortal(object) {
|
|
12604
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
12605
|
+
}
|
|
12606
|
+
function isProfiler(object) {
|
|
12607
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
12608
|
+
}
|
|
12609
|
+
function isStrictMode(object) {
|
|
12610
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
12611
|
+
}
|
|
12612
|
+
function isSuspense(object) {
|
|
12613
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
12614
|
+
}
|
|
12615
|
+
|
|
12616
|
+
exports.typeOf = typeOf;
|
|
12617
|
+
exports.AsyncMode = AsyncMode;
|
|
12618
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
12619
|
+
exports.ContextConsumer = ContextConsumer;
|
|
12620
|
+
exports.ContextProvider = ContextProvider;
|
|
12621
|
+
exports.Element = Element;
|
|
12622
|
+
exports.ForwardRef = ForwardRef;
|
|
12623
|
+
exports.Fragment = Fragment;
|
|
12624
|
+
exports.Lazy = Lazy;
|
|
12625
|
+
exports.Memo = Memo;
|
|
12626
|
+
exports.Portal = Portal;
|
|
12627
|
+
exports.Profiler = Profiler;
|
|
12628
|
+
exports.StrictMode = StrictMode;
|
|
12629
|
+
exports.Suspense = Suspense;
|
|
12630
|
+
exports.isValidElementType = isValidElementType;
|
|
12631
|
+
exports.isAsyncMode = isAsyncMode;
|
|
12632
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
12633
|
+
exports.isContextConsumer = isContextConsumer;
|
|
12634
|
+
exports.isContextProvider = isContextProvider;
|
|
12635
|
+
exports.isElement = isElement;
|
|
12636
|
+
exports.isForwardRef = isForwardRef;
|
|
12637
|
+
exports.isFragment = isFragment;
|
|
12638
|
+
exports.isLazy = isLazy;
|
|
12639
|
+
exports.isMemo = isMemo;
|
|
12640
|
+
exports.isPortal = isPortal;
|
|
12641
|
+
exports.isProfiler = isProfiler;
|
|
12642
|
+
exports.isStrictMode = isStrictMode;
|
|
12643
|
+
exports.isSuspense = isSuspense;
|
|
12644
|
+
})();
|
|
12645
|
+
}
|
|
12646
|
+
}(reactIs_development));
|
|
12647
|
+
|
|
12648
|
+
{
|
|
12649
|
+
reactIs.exports = reactIs_development;
|
|
12650
|
+
}
|
|
12585
12651
|
|
|
12586
12652
|
/*
|
|
12587
12653
|
object-assign
|
|
@@ -13390,6 +13456,8 @@
|
|
|
13390
13456
|
propTypes.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
13391
13457
|
}
|
|
13392
13458
|
|
|
13459
|
+
var PropTypes = propTypes.exports;
|
|
13460
|
+
|
|
13393
13461
|
var dist=function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r={};return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e});},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=13)}([function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r);},function(t,n){t.exports=function(t){return "object"==typeof t?null!==t:"function"==typeof t};},function(t,n){var r=t.exports={version:"2.5.0"};"number"==typeof __e&&(__e=r);},function(t,n,r){t.exports=!r(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a});},function(t,n){t.exports=function(t){try{return !!t()}catch(t){return !0}};},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)};},function(t,n,r){var e=r(32)("wks"),o=r(9),i=r(0).Symbol,u="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=e;},function(t,n,r){var e=r(0),o=r(2),i=r(8),u=r(22),c=r(10),f=function(t,n,r){var a,s,p,l,v=t&f.F,y=t&f.G,h=t&f.S,d=t&f.P,x=t&f.B,g=y?e:h?e[n]||(e[n]={}):(e[n]||{}).prototype,m=y?o:o[n]||(o[n]={}),b=m.prototype||(m.prototype={});y&&(r=n);for(a in r)s=!v&&g&&void 0!==g[a],p=(s?g:r)[a],l=x&&s?c(p,e):d&&"function"==typeof p?c(Function.call,p):p,g&&u(g,a,p,t&f.U),m[a]!=p&&i(m,a,l),d&&b[a]!=p&&(b[a]=p);};e.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f;},function(t,n,r){var e=r(16),o=r(21);t.exports=r(3)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t};},function(t,n){var r=0,e=Math.random();t.exports=function(t){return "Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))};},function(t,n,r){var e=r(24);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}};},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t};},function(t,n,r){var e=r(28),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0};},function(t,n,r){n.__esModule=!0,n.default=function(t,n){if(t&&n){var r=Array.isArray(n)?n:n.split(","),e=t.name||"",o=t.type||"",i=o.replace(/\/.*$/,"");return r.some(function(t){var n=t.trim();return "."===n.charAt(0)?e.toLowerCase().endsWith(n.toLowerCase()):n.endsWith("/*")?i===n.replace(/\/.*$/,""):o===n})}return !0},r(14),r(34);},function(t,n,r){r(15),t.exports=r(2).Array.some;},function(t,n,r){var e=r(7),o=r(25)(3);e(e.P+e.F*!r(33)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}});},function(t,n,r){var e=r(17),o=r(18),i=r(20),u=Object.defineProperty;n.f=r(3)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return "value"in r&&(t[n]=r.value),t};},function(t,n,r){var e=r(1);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t};},function(t,n,r){t.exports=!r(3)&&!r(4)(function(){return 7!=Object.defineProperty(r(19)("div"),"a",{get:function(){return 7}}).a});},function(t,n,r){var e=r(1),o=r(0).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}};},function(t,n,r){var e=r(1);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")};},function(t,n){t.exports=function(t,n){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}};},function(t,n,r){var e=r(0),o=r(8),i=r(23),u=r(9)("src"),c=Function.toString,f=(""+c).split("toString");r(2).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var a="function"==typeof r;a&&(i(r,"name")||o(r,"name",n)),t[n]!==r&&(a&&(i(r,u)||o(r,u,t[n]?""+t[n]:f.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:o(t,n,r):(delete t[n],o(t,n,r)));})(Function.prototype,"toString",function(){return "function"==typeof this&&this[u]||c.call(this)});},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)};},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t};},function(t,n,r){var e=r(10),o=r(26),i=r(27),u=r(12),c=r(29);t.exports=function(t,n){var r=1==t,f=2==t,a=3==t,s=4==t,p=6==t,l=5==t||p,v=n||c;return function(n,c,y){for(var h,d,x=i(n),g=o(x),m=e(c,y,3),b=u(g.length),_=0,w=r?v(n,b):f?v(n,0):void 0;b>_;_++)if((l||_ in g)&&(h=g[_],d=m(h,_,x),t))if(r)w[_]=d;else if(d)switch(t){case 3:return !0;case 5:return h;case 6:return _;case 2:w.push(h);}else if(s)return !1;return p?-1:a||s?s:w}};},function(t,n,r){var e=r(5);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return "String"==e(t)?t.split(""):Object(t)};},function(t,n,r){var e=r(11);t.exports=function(t){return Object(e(t))};},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)};},function(t,n,r){var e=r(30);t.exports=function(t,n){return new(e(t))(n)};},function(t,n,r){var e=r(1),o=r(31),i=r(6)("species");t.exports=function(t){var n;return o(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)||(n=void 0),e(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n};},function(t,n,r){var e=r(5);t.exports=Array.isArray||function(t){return "Array"==e(t)};},function(t,n,r){var e=r(0),o=e["__core-js_shared__"]||(e["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})};},function(t,n,r){var e=r(4);t.exports=function(t,n){return !!t&&e(function(){n?t.call(null,function(){},1):t.call(null);})};},function(t,n,r){r(35),t.exports=r(2).String.endsWith;},function(t,n,r){var e=r(7),o=r(12),i=r(36),u="".endsWith;e(e.P+e.F*r(38)("endsWith"),"String",{endsWith:function(t){var n=i(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,e=o(n.length),c=void 0===r?e:Math.min(o(r),e),f=String(t);return u?u.call(n,f,c):n.slice(c-f.length,c)===f}});},function(t,n,r){var e=r(37),o=r(11);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(t))};},function(t,n,r){var e=r(1),o=r(5),i=r(6)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))};},function(t,n,r){var e=r(6)("match");t.exports=function(t){var n=/./;try{"/./"[t](n);}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return !0};}]);
|
|
13394
13462
|
|
|
13395
13463
|
var supportMultiple = typeof document !== 'undefined' && document && document.createElement ? 'multiple' in document.createElement('input') : true;
|
|
@@ -13900,7 +13968,7 @@
|
|
|
13900
13968
|
* Windows. In some cases there might not be a mime type set at all.
|
|
13901
13969
|
* See: https://github.com/react-dropzone/react-dropzone/issues/276
|
|
13902
13970
|
*/
|
|
13903
|
-
accept:
|
|
13971
|
+
accept: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
|
|
13904
13972
|
|
|
13905
13973
|
/**
|
|
13906
13974
|
* Render function that renders the actual component
|
|
@@ -13917,65 +13985,65 @@
|
|
|
13917
13985
|
* @param {Array} props.acceptedFiles Accepted files
|
|
13918
13986
|
* @param {Array} props.rejectedFiles Rejected files
|
|
13919
13987
|
*/
|
|
13920
|
-
children:
|
|
13988
|
+
children: PropTypes.func,
|
|
13921
13989
|
|
|
13922
13990
|
/**
|
|
13923
13991
|
* Enable/disable the dropzone entirely
|
|
13924
13992
|
*/
|
|
13925
|
-
disabled:
|
|
13993
|
+
disabled: PropTypes.bool,
|
|
13926
13994
|
|
|
13927
13995
|
/**
|
|
13928
13996
|
* If false, allow dropped items to take over the current browser window
|
|
13929
13997
|
*/
|
|
13930
|
-
preventDropOnDocument:
|
|
13998
|
+
preventDropOnDocument: PropTypes.bool,
|
|
13931
13999
|
|
|
13932
14000
|
/**
|
|
13933
14001
|
* Allow dropping multiple files
|
|
13934
14002
|
*/
|
|
13935
|
-
multiple:
|
|
14003
|
+
multiple: PropTypes.bool,
|
|
13936
14004
|
|
|
13937
14005
|
/**
|
|
13938
14006
|
* `name` attribute for the input tag
|
|
13939
14007
|
*/
|
|
13940
|
-
name:
|
|
14008
|
+
name: PropTypes.string,
|
|
13941
14009
|
|
|
13942
14010
|
/**
|
|
13943
14011
|
* Maximum file size (in bytes)
|
|
13944
14012
|
*/
|
|
13945
|
-
maxSize:
|
|
14013
|
+
maxSize: PropTypes.number,
|
|
13946
14014
|
|
|
13947
14015
|
/**
|
|
13948
14016
|
* Minimum file size (in bytes)
|
|
13949
14017
|
*/
|
|
13950
|
-
minSize:
|
|
14018
|
+
minSize: PropTypes.number,
|
|
13951
14019
|
|
|
13952
14020
|
/**
|
|
13953
14021
|
* getDataTransferItems handler
|
|
13954
14022
|
* @param {Event} event
|
|
13955
14023
|
* @returns {Array} array of File objects
|
|
13956
14024
|
*/
|
|
13957
|
-
getDataTransferItems:
|
|
14025
|
+
getDataTransferItems: PropTypes.func,
|
|
13958
14026
|
|
|
13959
14027
|
/**
|
|
13960
14028
|
* onClick callback
|
|
13961
14029
|
* @param {Event} event
|
|
13962
14030
|
*/
|
|
13963
|
-
onClick:
|
|
14031
|
+
onClick: PropTypes.func,
|
|
13964
14032
|
|
|
13965
14033
|
/**
|
|
13966
14034
|
* onFocus callback
|
|
13967
14035
|
*/
|
|
13968
|
-
onFocus:
|
|
14036
|
+
onFocus: PropTypes.func,
|
|
13969
14037
|
|
|
13970
14038
|
/**
|
|
13971
14039
|
* onBlur callback
|
|
13972
14040
|
*/
|
|
13973
|
-
onBlur:
|
|
14041
|
+
onBlur: PropTypes.func,
|
|
13974
14042
|
|
|
13975
14043
|
/**
|
|
13976
14044
|
* onKeyDown callback
|
|
13977
14045
|
*/
|
|
13978
|
-
onKeyDown:
|
|
14046
|
+
onKeyDown: PropTypes.func,
|
|
13979
14047
|
|
|
13980
14048
|
/**
|
|
13981
14049
|
* The `onDrop` method that accepts two arguments.
|
|
@@ -14006,42 +14074,42 @@
|
|
|
14006
14074
|
* }
|
|
14007
14075
|
* ```
|
|
14008
14076
|
*/
|
|
14009
|
-
onDrop:
|
|
14077
|
+
onDrop: PropTypes.func,
|
|
14010
14078
|
|
|
14011
14079
|
/**
|
|
14012
14080
|
* onDropAccepted callback
|
|
14013
14081
|
*/
|
|
14014
|
-
onDropAccepted:
|
|
14082
|
+
onDropAccepted: PropTypes.func,
|
|
14015
14083
|
|
|
14016
14084
|
/**
|
|
14017
14085
|
* onDropRejected callback
|
|
14018
14086
|
*/
|
|
14019
|
-
onDropRejected:
|
|
14087
|
+
onDropRejected: PropTypes.func,
|
|
14020
14088
|
|
|
14021
14089
|
/**
|
|
14022
14090
|
* onDragStart callback
|
|
14023
14091
|
*/
|
|
14024
|
-
onDragStart:
|
|
14092
|
+
onDragStart: PropTypes.func,
|
|
14025
14093
|
|
|
14026
14094
|
/**
|
|
14027
14095
|
* onDragEnter callback
|
|
14028
14096
|
*/
|
|
14029
|
-
onDragEnter:
|
|
14097
|
+
onDragEnter: PropTypes.func,
|
|
14030
14098
|
|
|
14031
14099
|
/**
|
|
14032
14100
|
* onDragOver callback
|
|
14033
14101
|
*/
|
|
14034
|
-
onDragOver:
|
|
14102
|
+
onDragOver: PropTypes.func,
|
|
14035
14103
|
|
|
14036
14104
|
/**
|
|
14037
14105
|
* onDragLeave callback
|
|
14038
14106
|
*/
|
|
14039
|
-
onDragLeave:
|
|
14107
|
+
onDragLeave: PropTypes.func,
|
|
14040
14108
|
|
|
14041
14109
|
/**
|
|
14042
14110
|
* Provide a callback on clicking the cancel button of the file dialog
|
|
14043
14111
|
*/
|
|
14044
|
-
onFileDialogCancel:
|
|
14112
|
+
onFileDialogCancel: PropTypes.func
|
|
14045
14113
|
};
|
|
14046
14114
|
|
|
14047
14115
|
Dropzone.defaultProps = {
|
|
@@ -14150,7 +14218,7 @@
|
|
|
14150
14218
|
React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupToggleButton) },
|
|
14151
14219
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": ariaLabel, onClick: onToggle, "aria-expanded": isExpanded, "aria-labelledby": ariaLabelledby, id: toggleId },
|
|
14152
14220
|
React__namespace.createElement("span", { className: css(styles$Z.formFieldGroupToggleIcon) },
|
|
14153
|
-
React__namespace.createElement(AngleRightIcon, { "aria-hidden": "true" }))))));
|
|
14221
|
+
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": "true" }))))));
|
|
14154
14222
|
};
|
|
14155
14223
|
FormFieldGroupToggle.displayName = 'FormFieldGroupToggle';
|
|
14156
14224
|
|
|
@@ -14276,6 +14344,8 @@
|
|
|
14276
14344
|
|
|
14277
14345
|
const MinusIcon = createIcon(MinusIconConfig);
|
|
14278
14346
|
|
|
14347
|
+
var MinusIcon$1 = MinusIcon;
|
|
14348
|
+
|
|
14279
14349
|
const variantStyle$4 = {
|
|
14280
14350
|
default: '',
|
|
14281
14351
|
indeterminate: styles$H.modifiers.indeterminate,
|
|
@@ -14289,10 +14359,10 @@
|
|
|
14289
14359
|
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$H.helperTextItem, variantStyle$4[variant], isDynamic && styles$H.modifiers.dynamic, className), id: id }, props),
|
|
14290
14360
|
icon && (React__namespace.createElement("span", { className: css(styles$H.helperTextItemIcon), "aria-hidden": true }, icon)),
|
|
14291
14361
|
hasIcon && !icon && (React__namespace.createElement("span", { className: css(styles$H.helperTextItemIcon), "aria-hidden": true },
|
|
14292
|
-
(variant === 'default' || variant === 'indeterminate') && React__namespace.createElement(MinusIcon, null),
|
|
14293
|
-
variant === 'warning' && React__namespace.createElement(ExclamationTriangleIcon, null),
|
|
14294
|
-
variant === 'success' && React__namespace.createElement(CheckCircleIcon, null),
|
|
14295
|
-
variant === 'error' && React__namespace.createElement(ExclamationCircleIcon, null))),
|
|
14362
|
+
(variant === 'default' || variant === 'indeterminate') && React__namespace.createElement(MinusIcon$1, null),
|
|
14363
|
+
variant === 'warning' && React__namespace.createElement(ExclamationTriangleIcon$1, null),
|
|
14364
|
+
variant === 'success' && React__namespace.createElement(CheckCircleIcon$1, null),
|
|
14365
|
+
variant === 'error' && React__namespace.createElement(ExclamationCircleIcon$1, null))),
|
|
14296
14366
|
React__namespace.createElement("span", { className: css(styles$H.helperTextItemText) },
|
|
14297
14367
|
children,
|
|
14298
14368
|
isDynamic && React__namespace.createElement("span", { className: "pf-u-screen-reader" },
|
|
@@ -14463,6 +14533,7 @@
|
|
|
14463
14533
|
"value": "none",
|
|
14464
14534
|
"var": "var(--pf-c-jump-links__toggle--Display)"
|
|
14465
14535
|
};
|
|
14536
|
+
var cssToggleDisplayVar = c_jump_links__toggle_Display;
|
|
14466
14537
|
|
|
14467
14538
|
// Recursively find JumpLinkItems and return an array of all their scrollNodes
|
|
14468
14539
|
const getScrollItems = (children, res) => {
|
|
@@ -14493,7 +14564,7 @@
|
|
|
14493
14564
|
// https://github.com/patternfly/patternfly/blob/main/src/patternfly/components/JumpLinks/jump-links.scss#L103
|
|
14494
14565
|
return (jumpLinks &&
|
|
14495
14566
|
getComputedStyle(jumpLinks)
|
|
14496
|
-
.getPropertyValue(
|
|
14567
|
+
.getPropertyValue(cssToggleDisplayVar.name)
|
|
14497
14568
|
.includes('block'));
|
|
14498
14569
|
}
|
|
14499
14570
|
const JumpLinks = (_a) => {
|
|
@@ -14613,7 +14684,7 @@
|
|
|
14613
14684
|
expandable && (React__namespace.createElement("div", { className: styles$F.jumpLinksToggle },
|
|
14614
14685
|
React__namespace.createElement(Button, { variant: "plain", onClick: () => setIsExpanded(!isExpanded), "aria-label": toggleAriaLabel, "aria-expanded": isExpanded },
|
|
14615
14686
|
React__namespace.createElement("span", { className: styles$F.jumpLinksToggleIcon },
|
|
14616
|
-
React__namespace.createElement(AngleRightIcon, null)),
|
|
14687
|
+
React__namespace.createElement(AngleRightIcon$1, null)),
|
|
14617
14688
|
label && React__namespace.createElement("span", { className: css(styles$F.jumpLinksToggleText) },
|
|
14618
14689
|
" ",
|
|
14619
14690
|
label,
|
|
@@ -14748,7 +14819,7 @@
|
|
|
14748
14819
|
};
|
|
14749
14820
|
const LabelComponent = (isOverflowLabel ? 'button' : 'span');
|
|
14750
14821
|
const button = closeBtn ? (closeBtn) : (React__namespace.createElement(Button, Object.assign({ type: "button", variant: "plain", onClick: onClose, "aria-label": closeBtnAriaLabel || `Close ${children}` }, closeBtnProps),
|
|
14751
|
-
React__namespace.createElement(TimesIcon, null)));
|
|
14822
|
+
React__namespace.createElement(TimesIcon$1, null)));
|
|
14752
14823
|
const textRef = React__namespace.createRef();
|
|
14753
14824
|
// ref to apply tooltip when rendered is used
|
|
14754
14825
|
const componentRef = React__namespace.useRef();
|
|
@@ -14853,7 +14924,7 @@
|
|
|
14853
14924
|
React__namespace.createElement("textarea", Object.assign({ className: css(styles$D.labelGroupTextarea), rows: 1, tabIndex: 0 }, editableTextAreaProps)))))));
|
|
14854
14925
|
const close = (React__namespace.createElement("div", { className: css(styles$D.labelGroupClose) },
|
|
14855
14926
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": closeBtnAriaLabel, onClick: onClick, id: `remove_group_${id}`, "aria-labelledby": `remove_group_${id} ${id}` },
|
|
14856
|
-
React__namespace.createElement(TimesCircleIcon, { "aria-hidden": "true" }))));
|
|
14927
|
+
React__namespace.createElement(TimesCircleIcon$1, { "aria-hidden": "true" }))));
|
|
14857
14928
|
return (React__namespace.createElement("div", { className: css(styles$D.labelGroup, className, categoryName && styles$D.modifiers.category, isVertical && styles$D.modifiers.vertical, isEditable && styles$D.modifiers.editable) },
|
|
14858
14929
|
React__namespace.createElement("div", { className: css(styles$D.labelGroupMain) }, content),
|
|
14859
14930
|
isClosable && close));
|
|
@@ -15028,6 +15099,8 @@
|
|
|
15028
15099
|
|
|
15029
15100
|
const EyeSlashIcon = createIcon(EyeSlashIconConfig);
|
|
15030
15101
|
|
|
15102
|
+
var EyeSlashIcon$1 = EyeSlashIcon;
|
|
15103
|
+
|
|
15031
15104
|
const EyeIconConfig = {
|
|
15032
15105
|
name: 'EyeIcon',
|
|
15033
15106
|
height: 512,
|
|
@@ -15039,6 +15112,8 @@
|
|
|
15039
15112
|
|
|
15040
15113
|
const EyeIcon = createIcon(EyeIconConfig);
|
|
15041
15114
|
|
|
15115
|
+
var EyeIcon$1 = EyeIcon;
|
|
15116
|
+
|
|
15042
15117
|
const LoginForm = (_a) => {
|
|
15043
15118
|
var { noAutoFocus = false, className = '', showHelperText = false, helperText = null, helperTextIcon = null, usernameLabel = 'Username', usernameValue = '', onChangeUsername = () => undefined, isValidUsername = true, passwordLabel = 'Password', passwordValue = '', onChangePassword = () => undefined, isShowPasswordEnabled = false, hidePasswordAriaLabel = 'Hide password', showPasswordAriaLabel = 'Show password', isValidPassword = true, loginButtonLabel = 'Log In', isLoginButtonDisabled = false, onLoginButtonClick = () => undefined, rememberMeLabel = '', isRememberMeChecked = false, onChangeRememberMe = () => undefined } = _a, props = __rest$1(_a, ["noAutoFocus", "className", "showHelperText", "helperText", "helperTextIcon", "usernameLabel", "usernameValue", "onChangeUsername", "isValidUsername", "passwordLabel", "passwordValue", "onChangePassword", "isShowPasswordEnabled", "hidePasswordAriaLabel", "showPasswordAriaLabel", "isValidPassword", "loginButtonLabel", "isLoginButtonDisabled", "onLoginButtonClick", "rememberMeLabel", "isRememberMeChecked", "onChangeRememberMe"]);
|
|
15044
15119
|
const [passwordHidden, setPasswordHidden] = React__namespace.useState(true);
|
|
@@ -15050,7 +15125,7 @@
|
|
|
15050
15125
|
React__namespace.createElement(FormGroup, { label: passwordLabel, isRequired: true, validated: isValidPassword ? exports.ValidatedOptions.default : exports.ValidatedOptions.error, fieldId: "pf-login-password-id" },
|
|
15051
15126
|
isShowPasswordEnabled && (React__namespace.createElement(InputGroup, null,
|
|
15052
15127
|
passwordInput,
|
|
15053
|
-
React__namespace.createElement(Button, { variant: "control", onClick: () => setPasswordHidden(!passwordHidden), "aria-label": passwordHidden ? showPasswordAriaLabel : hidePasswordAriaLabel }, passwordHidden ? React__namespace.createElement(EyeIcon, null) : React__namespace.createElement(EyeSlashIcon, null)))),
|
|
15128
|
+
React__namespace.createElement(Button, { variant: "control", onClick: () => setPasswordHidden(!passwordHidden), "aria-label": passwordHidden ? showPasswordAriaLabel : hidePasswordAriaLabel }, passwordHidden ? React__namespace.createElement(EyeIcon$1, null) : React__namespace.createElement(EyeSlashIcon$1, null)))),
|
|
15054
15129
|
!isShowPasswordEnabled && passwordInput),
|
|
15055
15130
|
rememberMeLabel.length > 0 && (React__namespace.createElement(FormGroup, { fieldId: "pf-login-remember-me-id" },
|
|
15056
15131
|
React__namespace.createElement(Checkbox, { id: "pf-login-remember-me-id", label: rememberMeLabel, isChecked: isRememberMeChecked, onChange: onChangeRememberMe }))),
|
|
@@ -15281,7 +15356,7 @@
|
|
|
15281
15356
|
};
|
|
15282
15357
|
this.isMobile = () =>
|
|
15283
15358
|
// eslint-disable-next-line radix
|
|
15284
|
-
this.getWindowWidth() < Number.parseInt(
|
|
15359
|
+
this.getWindowWidth() < Number.parseInt(globalBreakpointXl.value, 10);
|
|
15285
15360
|
this.resize = () => {
|
|
15286
15361
|
const { onPageResize } = this.props;
|
|
15287
15362
|
const mobileView = this.isMobile();
|
|
@@ -15721,18 +15796,21 @@
|
|
|
15721
15796
|
"value": "0px",
|
|
15722
15797
|
"var": "var(--pf-c-menu--m-flyout__menu--top-offset)"
|
|
15723
15798
|
};
|
|
15799
|
+
var topOffset = c_menu_m_flyout__menu_top_offset;
|
|
15724
15800
|
|
|
15725
15801
|
const c_menu_m_flyout__menu_m_left_right_offset = {
|
|
15726
15802
|
"name": "--pf-c-menu--m-flyout__menu--m-left--right-offset",
|
|
15727
15803
|
"value": "0px",
|
|
15728
15804
|
"var": "var(--pf-c-menu--m-flyout__menu--m-left--right-offset)"
|
|
15729
15805
|
};
|
|
15806
|
+
var rightOffset = c_menu_m_flyout__menu_m_left_right_offset;
|
|
15730
15807
|
|
|
15731
15808
|
const c_menu_m_flyout__menu_left_offset = {
|
|
15732
15809
|
"name": "--pf-c-menu--m-flyout__menu--left-offset",
|
|
15733
15810
|
"value": "0px",
|
|
15734
15811
|
"var": "var(--pf-c-menu--m-flyout__menu--left-offset)"
|
|
15735
15812
|
};
|
|
15813
|
+
var leftOffset = c_menu_m_flyout__menu_left_offset;
|
|
15736
15814
|
|
|
15737
15815
|
const MenuItemActionBase = (_a) => {
|
|
15738
15816
|
var { className = '', icon, onClick, 'aria-label': ariaLabel, isFavorited = null, isDisabled, actionId, innerRef } = _a, props = __rest$1(_a, ["className", "icon", "onClick", 'aria-label', "isFavorited", "isDisabled", "actionId", "innerRef"]);
|
|
@@ -15744,7 +15822,7 @@
|
|
|
15744
15822
|
onActionClick && onActionClick(event, itemId, actionId);
|
|
15745
15823
|
};
|
|
15746
15824
|
return (React__namespace.createElement("button", Object.assign({ className: css(menuStyles.menuItemAction, isFavorited !== null && menuStyles.modifiers.favorite, isFavorited && menuStyles.modifiers.favorited, className), "aria-label": ariaLabel, onClick: onClickButton }, ((isDisabled === true || isDisabledContext === true) && { disabled: true }), { ref: innerRef, tabIndex: -1 }, props),
|
|
15747
|
-
React__namespace.createElement("span", { className: css(menuStyles.menuItemActionIcon) }, icon === 'favorites' || isFavorited !== null ? React__namespace.createElement(StarIcon, { "aria-hidden": true }) : icon)));
|
|
15825
|
+
React__namespace.createElement("span", { className: css(menuStyles.menuItemActionIcon) }, icon === 'favorites' || isFavorited !== null ? React__namespace.createElement(StarIcon$1, { "aria-hidden": true }) : icon)));
|
|
15748
15826
|
}))));
|
|
15749
15827
|
};
|
|
15750
15828
|
const MenuItemAction = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(MenuItemActionBase, Object.assign({}, props, { innerRef: ref }))));
|
|
@@ -15799,16 +15877,16 @@
|
|
|
15799
15877
|
}
|
|
15800
15878
|
if (xDir === 'left') {
|
|
15801
15879
|
flyoutMenu.classList.add(menuStyles.modifiers.left);
|
|
15802
|
-
flyoutMenu.style.setProperty(
|
|
15880
|
+
flyoutMenu.style.setProperty(rightOffset.name, `-${xOffset}px`);
|
|
15803
15881
|
}
|
|
15804
15882
|
else {
|
|
15805
|
-
flyoutMenu.style.setProperty(
|
|
15883
|
+
flyoutMenu.style.setProperty(leftOffset.name, `-${xOffset}px`);
|
|
15806
15884
|
}
|
|
15807
15885
|
const spaceLeftBot = window.innerHeight - origin.y - rect.height;
|
|
15808
15886
|
const spaceLeftTop = window.innerHeight - rect.height;
|
|
15809
15887
|
if (spaceLeftTop < 0 && spaceLeftBot < 0) ;
|
|
15810
15888
|
else if (spaceLeftBot < 0) {
|
|
15811
|
-
flyoutMenu.style.setProperty(
|
|
15889
|
+
flyoutMenu.style.setProperty(topOffset.name, `${spaceLeftBot}px`);
|
|
15812
15890
|
}
|
|
15813
15891
|
}
|
|
15814
15892
|
}
|
|
@@ -15931,17 +16009,17 @@
|
|
|
15931
16009
|
}), (hasCheck && { htmlFor: randomId }), additionalProps),
|
|
15932
16010
|
React__namespace.createElement("span", { className: css(menuStyles.menuItemMain) },
|
|
15933
16011
|
direction === 'up' && (React__namespace.createElement("span", { className: css(menuStyles.menuItemToggleIcon) },
|
|
15934
|
-
React__namespace.createElement(AngleLeftIcon, { "aria-hidden": true }))),
|
|
16012
|
+
React__namespace.createElement(AngleLeftIcon$1, { "aria-hidden": true }))),
|
|
15935
16013
|
icon && React__namespace.createElement("span", { className: css(menuStyles.menuItemIcon) }, icon),
|
|
15936
16014
|
hasCheck && (React__namespace.createElement("span", { className: css('pf-c-menu__item-check') },
|
|
15937
16015
|
React__namespace.createElement(Checkbox, { id: randomId, component: "span", isChecked: isSelected || false, onChange: event => onItemSelect(event, onSelect), isDisabled: isDisabled }))),
|
|
15938
16016
|
React__namespace.createElement("span", { className: css(menuStyles.menuItemText) }, children),
|
|
15939
16017
|
isExternalLink && (React__namespace.createElement("span", { className: css(menuStyles.menuItemExternalIcon) },
|
|
15940
|
-
React__namespace.createElement(ExternalLinkAltIcon, { "aria-hidden": true }))),
|
|
16018
|
+
React__namespace.createElement(ExternalLinkAltIcon$1, { "aria-hidden": true }))),
|
|
15941
16019
|
(flyoutMenu || direction === 'down') && (React__namespace.createElement("span", { className: css(menuStyles.menuItemToggleIcon) },
|
|
15942
|
-
React__namespace.createElement(AngleRightIcon, { "aria-hidden": true }))),
|
|
16020
|
+
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": true }))),
|
|
15943
16021
|
getIsSelected() && (React__namespace.createElement("span", { className: css(menuStyles.menuItemSelectIcon) },
|
|
15944
|
-
React__namespace.createElement(CheckIcon, { "aria-hidden": true })))),
|
|
16022
|
+
React__namespace.createElement(CheckIcon$1, { "aria-hidden": true })))),
|
|
15945
16023
|
description && direction !== 'up' && (React__namespace.createElement("span", { className: css(menuStyles.menuItemDescription) },
|
|
15946
16024
|
React__namespace.createElement("span", null, description)))))),
|
|
15947
16025
|
flyoutVisible && (React__namespace.createElement(MenuContext.Provider, { value: { disableHover } },
|
|
@@ -16021,7 +16099,7 @@
|
|
|
16021
16099
|
const isTypeahead = variant === 'typeahead';
|
|
16022
16100
|
const toggleControls = (React__namespace.createElement("span", { className: css(styles$y.menuToggleControls) },
|
|
16023
16101
|
React__namespace.createElement("span", { className: css(styles$y.menuToggleToggleIcon) },
|
|
16024
|
-
React__namespace.createElement(CaretDownIcon, { "aria-hidden": true }))));
|
|
16102
|
+
React__namespace.createElement(CaretDownIcon$1, { "aria-hidden": true }))));
|
|
16025
16103
|
const content = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16026
16104
|
icon && React__namespace.createElement("span", { className: css(styles$y.menuToggleIcon) }, icon),
|
|
16027
16105
|
isTypeahead ? children : React__namespace.createElement("span", { className: css(styles$y.menuToggleText) }, children),
|
|
@@ -16138,7 +16216,7 @@
|
|
|
16138
16216
|
const ModalBoxCloseButton = (_a) => {
|
|
16139
16217
|
var { className = '', onClose = () => undefined, ouiaId } = _a, props = __rest$1(_a, ["className", "onClose", "ouiaId"]);
|
|
16140
16218
|
return (React__namespace.createElement(Button, Object.assign({ className: className, variant: "plain", onClick: onClose, "aria-label": "Close" }, (ouiaId && { ouiaId: `${ouiaId}-${ModalBoxCloseButton.displayName}` }), props),
|
|
16141
|
-
React__namespace.createElement(TimesIcon, null)));
|
|
16219
|
+
React__namespace.createElement(TimesIcon$1, null)));
|
|
16142
16220
|
};
|
|
16143
16221
|
ModalBoxCloseButton.displayName = 'ModalBoxCloseButton';
|
|
16144
16222
|
|
|
@@ -16147,12 +16225,13 @@
|
|
|
16147
16225
|
"value": "0.5rem",
|
|
16148
16226
|
"var": "var(--pf-c-modal-box--m-align-top--spacer)"
|
|
16149
16227
|
};
|
|
16228
|
+
var topSpacer = c_modal_box_m_align_top_spacer;
|
|
16150
16229
|
|
|
16151
16230
|
const ModalBox = (_a) => {
|
|
16152
16231
|
var { children, className = '', variant = 'default', position, positionOffset, 'aria-labelledby': ariaLabelledby, 'aria-label': ariaLabel = '', 'aria-describedby': ariaDescribedby, style } = _a, props = __rest$1(_a, ["children", "className", "variant", "position", "positionOffset", 'aria-labelledby', 'aria-label', 'aria-describedby', "style"]);
|
|
16153
16232
|
if (positionOffset) {
|
|
16154
16233
|
style = style || {};
|
|
16155
|
-
style[
|
|
16234
|
+
style[topSpacer.name] = positionOffset;
|
|
16156
16235
|
}
|
|
16157
16236
|
return (React__namespace.createElement("div", Object.assign({}, props, { role: "dialog", "aria-label": ariaLabel || null, "aria-labelledby": ariaLabelledby || null, "aria-describedby": ariaDescribedby, "aria-modal": "true", className: css(modalStyles.modalBox, className, position === 'top' && modalStyles.modifiers.alignTop, variant === 'large' && modalStyles.modifiers.lg, variant === 'small' && modalStyles.modifiers.sm, variant === 'medium' && modalStyles.modifiers.md), style: style }), children));
|
|
16158
16237
|
};
|
|
@@ -16187,11 +16266,11 @@
|
|
|
16187
16266
|
const h1 = React__namespace.useRef();
|
|
16188
16267
|
const label = titleLabel || (isVariantIcon(titleIconVariant) ? `${capitalize(titleIconVariant)} alert:` : titleLabel);
|
|
16189
16268
|
const variantIcons = {
|
|
16190
|
-
success: React__namespace.createElement(CheckCircleIcon, null),
|
|
16191
|
-
danger: React__namespace.createElement(ExclamationCircleIcon, null),
|
|
16192
|
-
warning: React__namespace.createElement(ExclamationTriangleIcon, null),
|
|
16193
|
-
info: React__namespace.createElement(InfoCircleIcon, null),
|
|
16194
|
-
default: React__namespace.createElement(BellIcon, null)
|
|
16269
|
+
success: React__namespace.createElement(CheckCircleIcon$1, null),
|
|
16270
|
+
danger: React__namespace.createElement(ExclamationCircleIcon$1, null),
|
|
16271
|
+
warning: React__namespace.createElement(ExclamationTriangleIcon$1, null),
|
|
16272
|
+
info: React__namespace.createElement(InfoCircleIcon$1, null),
|
|
16273
|
+
default: React__namespace.createElement(BellIcon$1, null)
|
|
16195
16274
|
};
|
|
16196
16275
|
const CustomIcon = !isVariantIcon(titleIconVariant) && titleIconVariant;
|
|
16197
16276
|
useIsomorphicLayoutEffect(() => {
|
|
@@ -16482,6 +16561,8 @@
|
|
|
16482
16561
|
|
|
16483
16562
|
const InProgressIcon = createIcon(InProgressIconConfig);
|
|
16484
16563
|
|
|
16564
|
+
var InProgressIcon$1 = InProgressIcon;
|
|
16565
|
+
|
|
16485
16566
|
const MultipleFileUploadStatus = (_a) => {
|
|
16486
16567
|
var { children, className, statusToggleText, statusToggleIcon } = _a, props = __rest$1(_a, ["children", "className", "statusToggleText", "statusToggleIcon"]);
|
|
16487
16568
|
const [icon, setIcon] = React__namespace.useState();
|
|
@@ -16489,13 +16570,13 @@
|
|
|
16489
16570
|
React__namespace.useEffect(() => {
|
|
16490
16571
|
switch (statusToggleIcon) {
|
|
16491
16572
|
case 'danger':
|
|
16492
|
-
setIcon(React__namespace.createElement(TimesCircleIcon, null));
|
|
16573
|
+
setIcon(React__namespace.createElement(TimesCircleIcon$1, null));
|
|
16493
16574
|
break;
|
|
16494
16575
|
case 'success':
|
|
16495
|
-
setIcon(React__namespace.createElement(CheckCircleIcon, null));
|
|
16576
|
+
setIcon(React__namespace.createElement(CheckCircleIcon$1, null));
|
|
16496
16577
|
break;
|
|
16497
16578
|
case 'inProgress':
|
|
16498
|
-
setIcon(React__namespace.createElement(InProgressIcon, null));
|
|
16579
|
+
setIcon(React__namespace.createElement(InProgressIcon$1, null));
|
|
16499
16580
|
break;
|
|
16500
16581
|
default:
|
|
16501
16582
|
setIcon(statusToggleIcon);
|
|
@@ -16559,9 +16640,9 @@
|
|
|
16559
16640
|
ProgressVariant["warning"] = "warning";
|
|
16560
16641
|
})(exports.ProgressVariant || (exports.ProgressVariant = {}));
|
|
16561
16642
|
const variantToIcon = {
|
|
16562
|
-
danger: TimesCircleIcon,
|
|
16563
|
-
success: CheckCircleIcon,
|
|
16564
|
-
warning: ExclamationTriangleIcon
|
|
16643
|
+
danger: TimesCircleIcon$1,
|
|
16644
|
+
success: CheckCircleIcon$1,
|
|
16645
|
+
warning: ExclamationTriangleIcon$1
|
|
16565
16646
|
};
|
|
16566
16647
|
const ProgressContainer = ({ progressBarAriaProps, value, title = '', parentId, label = null, variant = null, measureLocation = exports.ProgressMeasureLocation.top, isTitleTruncated = false, tooltipPosition }) => {
|
|
16567
16648
|
const StatusIcon = variantToIcon.hasOwnProperty(variant) && variantToIcon[variant];
|
|
@@ -16655,6 +16736,8 @@
|
|
|
16655
16736
|
|
|
16656
16737
|
const FileIcon = createIcon(FileIconConfig);
|
|
16657
16738
|
|
|
16739
|
+
var FileIcon$1 = FileIcon;
|
|
16740
|
+
|
|
16658
16741
|
const MultipleFileUploadStatusItem = (_a) => {
|
|
16659
16742
|
var { className, file, fileIcon, onReadStarted = () => { }, onReadFinished = () => { }, onReadSuccess = () => { }, onReadFail = () => { }, onClearClick = () => { }, customFileHandler, fileName, fileSize, progressValue, progressVariant, progressAriaLabel, progressAriaLabelledBy, progressId, buttonAriaLabel = 'Remove from list' } = _a, props = __rest$1(_a, ["className", "file", "fileIcon", "onReadStarted", "onReadFinished", "onReadSuccess", "onReadFail", "onClearClick", "customFileHandler", "fileName", "fileSize", "progressValue", "progressVariant", "progressAriaLabel", "progressAriaLabelledBy", "progressId", "buttonAriaLabel"]);
|
|
16660
16743
|
const [loadPercentage, setLoadPercentage] = React__namespace.useState(0);
|
|
@@ -16708,12 +16791,12 @@
|
|
|
16708
16791
|
React__namespace.createElement("span", { className: styles$x.multipleFileUploadStatusItemProgressText }, fileName || (file === null || file === void 0 ? void 0 : file.name) || ''),
|
|
16709
16792
|
React__namespace.createElement("span", { className: styles$x.multipleFileUploadStatusItemProgressSize }, fileSize || getHumanReadableFileSize((file === null || file === void 0 ? void 0 : file.size) || 0))));
|
|
16710
16793
|
return (React__namespace.createElement("li", Object.assign({ className: css(styles$x.multipleFileUploadStatusItem, className) }, props),
|
|
16711
|
-
React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusItemIcon }, fileIcon || React__namespace.createElement(FileIcon, null)),
|
|
16794
|
+
React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusItemIcon }, fileIcon || React__namespace.createElement(FileIcon$1, null)),
|
|
16712
16795
|
React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusItemMain },
|
|
16713
16796
|
React__namespace.createElement(Progress, { title: title, value: progressValue || loadPercentage, variant: progressVariant || loadResult, "aria-label": progressAriaLabel, "aria-labelledby": progressAriaLabelledBy, id: progressId })),
|
|
16714
16797
|
React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusItemClose },
|
|
16715
16798
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": buttonAriaLabel, onClick: onClearClick },
|
|
16716
|
-
React__namespace.createElement(TimesCircleIcon, null)))));
|
|
16799
|
+
React__namespace.createElement(TimesCircleIcon$1, null)))));
|
|
16717
16800
|
};
|
|
16718
16801
|
MultipleFileUploadStatusItem.displayName = 'MultipleFileUploadStatusItem';
|
|
16719
16802
|
|
|
@@ -16900,10 +16983,10 @@
|
|
|
16900
16983
|
const { scrollViewAtStart, scrollViewAtEnd } = this.state;
|
|
16901
16984
|
return (React__namespace.createElement(NavContext.Consumer, null, ({ isHorizontal }) => (React__namespace.createElement(PageSidebarContext.Consumer, null, ({ isNavOpen }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16902
16985
|
isHorizontal && (React__namespace.createElement("button", { className: css(styles$v.navScrollButton), "aria-label": ariaLeftScroll, onClick: this.scrollLeft, disabled: scrollViewAtStart, tabIndex: isNavOpen ? null : -1 },
|
|
16903
|
-
React__namespace.createElement(AngleLeftIcon, null))),
|
|
16986
|
+
React__namespace.createElement(AngleLeftIcon$1, null))),
|
|
16904
16987
|
React__namespace.createElement("ul", Object.assign({ ref: this.navList, className: css(styles$v.navList, className), onScroll: this.handleScrollButtons }, props), children),
|
|
16905
16988
|
isHorizontal && (React__namespace.createElement("button", { className: css(styles$v.navScrollButton), "aria-label": ariaRightScroll, onClick: this.scrollRight, disabled: scrollViewAtEnd, tabIndex: isNavOpen ? null : -1 },
|
|
16906
|
-
React__namespace.createElement(AngleRightIcon, null)))))))));
|
|
16989
|
+
React__namespace.createElement(AngleRightIcon$1, null)))))))));
|
|
16907
16990
|
}
|
|
16908
16991
|
}
|
|
16909
16992
|
NavList.displayName = 'NavList';
|
|
@@ -17013,7 +17096,7 @@
|
|
|
17013
17096
|
}, [flyoutVisible, flyoutTarget]);
|
|
17014
17097
|
const flyoutButton = (React__namespace.createElement("span", { className: css(styles$v.navToggle) },
|
|
17015
17098
|
React__namespace.createElement("span", { className: css(styles$v.navToggleIcon) },
|
|
17016
|
-
React__namespace.createElement(AngleRightIcon, { "aria-hidden": true }))));
|
|
17099
|
+
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": true }))));
|
|
17017
17100
|
const ariaFlyoutProps = {
|
|
17018
17101
|
'aria-haspopup': 'menu',
|
|
17019
17102
|
'aria-expanded': flyoutVisible
|
|
@@ -17097,7 +17180,7 @@
|
|
|
17097
17180
|
title,
|
|
17098
17181
|
React__namespace.createElement("span", { className: css(styles$v.navToggle) },
|
|
17099
17182
|
React__namespace.createElement("span", { className: css(styles$v.navToggleIcon) },
|
|
17100
|
-
React__namespace.createElement(AngleRightIcon, { "aria-hidden": "true" })))))),
|
|
17183
|
+
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": "true" })))))),
|
|
17101
17184
|
React__namespace.createElement("section", { className: css(styles$v.navSubnav), "aria-labelledby": this.id, hidden: expandedState ? null : true },
|
|
17102
17185
|
srText && (React__namespace.createElement("h2", { className: css(a11yStyles.screenReader), id: this.id }, srText)),
|
|
17103
17186
|
React__namespace.createElement("ul", { className: css(styles$v.navList) }, children))))));
|
|
@@ -17139,6 +17222,8 @@
|
|
|
17139
17222
|
|
|
17140
17223
|
const AttentionBellIcon = createIcon(AttentionBellIconConfig);
|
|
17141
17224
|
|
|
17225
|
+
var AttentionBellIcon$1 = AttentionBellIcon;
|
|
17226
|
+
|
|
17142
17227
|
exports.NotificationBadgeVariant = void 0;
|
|
17143
17228
|
(function (NotificationBadgeVariant) {
|
|
17144
17229
|
NotificationBadgeVariant["read"] = "read";
|
|
@@ -17146,7 +17231,7 @@
|
|
|
17146
17231
|
NotificationBadgeVariant["attention"] = "attention";
|
|
17147
17232
|
})(exports.NotificationBadgeVariant || (exports.NotificationBadgeVariant = {}));
|
|
17148
17233
|
const NotificationBadge = (_a) => {
|
|
17149
|
-
var { isRead, children, variant = isRead ? 'read' : 'unread', count = 0, attentionIcon = React__namespace.createElement(AttentionBellIcon, null), icon = React__namespace.createElement(BellIcon, null), className } = _a, props = __rest$1(_a, ["isRead", "children", "variant", "count", "attentionIcon", "icon", "className"]);
|
|
17234
|
+
var { isRead, children, variant = isRead ? 'read' : 'unread', count = 0, attentionIcon = React__namespace.createElement(AttentionBellIcon$1, null), icon = React__namespace.createElement(BellIcon$1, null), className } = _a, props = __rest$1(_a, ["isRead", "children", "variant", "count", "attentionIcon", "icon", "className"]);
|
|
17150
17235
|
let notificationChild = icon;
|
|
17151
17236
|
if (children !== undefined) {
|
|
17152
17237
|
notificationChild = children;
|
|
@@ -17214,6 +17299,7 @@
|
|
|
17214
17299
|
"value": "1",
|
|
17215
17300
|
"var": "var(--pf-c-notification-drawer__group-toggle-title--max-lines)"
|
|
17216
17301
|
};
|
|
17302
|
+
var maxLines$1 = c_notification_drawer__group_toggle_title_max_lines;
|
|
17217
17303
|
|
|
17218
17304
|
const NotificationDrawerGroup = (_a) => {
|
|
17219
17305
|
var { children, className = '', count, isExpanded, isRead = false,
|
|
@@ -17230,7 +17316,7 @@
|
|
|
17230
17316
|
if (!titleRef.current || !truncateTitle) {
|
|
17231
17317
|
return;
|
|
17232
17318
|
}
|
|
17233
|
-
titleRef.current.style.setProperty(
|
|
17319
|
+
titleRef.current.style.setProperty(maxLines$1.name, truncateTitle.toString());
|
|
17234
17320
|
}, [titleRef, truncateTitle, isTooltipVisible]);
|
|
17235
17321
|
const Title = (React__namespace.createElement("div", Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$t.notificationDrawerGroupToggleTitle) }), title));
|
|
17236
17322
|
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(styles$t.notificationDrawerGroup, isExpanded && styles$t.modifiers.expanded, className) }),
|
|
@@ -17245,7 +17331,7 @@
|
|
|
17245
17331
|
React__namespace.createElement("div", { className: css(styles$t.notificationDrawerGroupToggleCount) },
|
|
17246
17332
|
React__namespace.createElement(Badge, { isRead: isRead }, count)),
|
|
17247
17333
|
React__namespace.createElement("span", { className: "pf-c-notification-drawer__group-toggle-icon" },
|
|
17248
|
-
React__namespace.createElement(AngleRightIcon, null)))),
|
|
17334
|
+
React__namespace.createElement(AngleRightIcon$1, null)))),
|
|
17249
17335
|
children));
|
|
17250
17336
|
};
|
|
17251
17337
|
NotificationDrawerGroup.displayName = 'NotificationDrawerGroup';
|
|
@@ -17319,7 +17405,7 @@
|
|
|
17319
17405
|
children,
|
|
17320
17406
|
onClose && (React__namespace.createElement("div", null,
|
|
17321
17407
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, "aria-label": closeButtonAriaLabel, onClick: onClose },
|
|
17322
|
-
React__namespace.createElement(TimesIcon, { "aria-hidden": "true" }))))))));
|
|
17408
|
+
React__namespace.createElement(TimesIcon$1, { "aria-hidden": "true" }))))))));
|
|
17323
17409
|
};
|
|
17324
17410
|
NotificationDrawerHeader.displayName = 'NotificationDrawerHeader';
|
|
17325
17411
|
|
|
@@ -17356,13 +17442,14 @@
|
|
|
17356
17442
|
"value": "1",
|
|
17357
17443
|
"var": "var(--pf-c-notification-drawer__list-item-header-title--max-lines)"
|
|
17358
17444
|
};
|
|
17445
|
+
var maxLines = c_notification_drawer__list_item_header_title_max_lines;
|
|
17359
17446
|
|
|
17360
17447
|
const variantIcons$1 = {
|
|
17361
|
-
success: CheckCircleIcon,
|
|
17362
|
-
danger: ExclamationCircleIcon,
|
|
17363
|
-
warning: ExclamationTriangleIcon,
|
|
17364
|
-
info: InfoCircleIcon,
|
|
17365
|
-
default: BellIcon
|
|
17448
|
+
success: CheckCircleIcon$1,
|
|
17449
|
+
danger: ExclamationCircleIcon$1,
|
|
17450
|
+
warning: ExclamationTriangleIcon$1,
|
|
17451
|
+
info: InfoCircleIcon$1,
|
|
17452
|
+
default: BellIcon$1
|
|
17366
17453
|
};
|
|
17367
17454
|
const NotificationDrawerListItemHeader = (_a) => {
|
|
17368
17455
|
var { children, className = '', icon = null, srTitle, title, variant = 'default', truncateTitle = 0, tooltipPosition, headingLevel: HeadingLevel = 'h2' } = _a, props = __rest$1(_a, ["children", "className", "icon", "srTitle", "title", "variant", "truncateTitle", "tooltipPosition", "headingLevel"]);
|
|
@@ -17372,7 +17459,7 @@
|
|
|
17372
17459
|
if (!titleRef.current || !truncateTitle) {
|
|
17373
17460
|
return;
|
|
17374
17461
|
}
|
|
17375
|
-
titleRef.current.style.setProperty(
|
|
17462
|
+
titleRef.current.style.setProperty(maxLines.name, truncateTitle.toString());
|
|
17376
17463
|
const showTooltip = titleRef.current && titleRef.current.offsetHeight < titleRef.current.scrollHeight;
|
|
17377
17464
|
if (isTooltipVisible !== showTooltip) {
|
|
17378
17465
|
setIsTooltipVisible(showTooltip);
|
|
@@ -17477,7 +17564,7 @@
|
|
|
17477
17564
|
return (React__namespace.createElement(DropdownItem, Object.assign({ id: id, component: "button", isDisabled: isDisabled, onClick: (event) => onSelect(event) }, (isDisabled && { 'aria-disabled': true }), props),
|
|
17478
17565
|
children,
|
|
17479
17566
|
isSelected && (React__namespace.createElement("span", { className: css(styles$s.optionsMenuMenuItemIcon) },
|
|
17480
|
-
React__namespace.createElement(CheckIcon, { "aria-hidden": isSelected })))));
|
|
17567
|
+
React__namespace.createElement(CheckIcon$1, { "aria-hidden": isSelected })))));
|
|
17481
17568
|
};
|
|
17482
17569
|
OptionsMenuItem.displayName = 'OptionsMenuItem';
|
|
17483
17570
|
|
|
@@ -17565,10 +17652,10 @@
|
|
|
17565
17652
|
});
|
|
17566
17653
|
|
|
17567
17654
|
const breakpoints = {
|
|
17568
|
-
md:
|
|
17569
|
-
lg:
|
|
17570
|
-
xl:
|
|
17571
|
-
'2xl':
|
|
17655
|
+
md: globalBreakpointMd,
|
|
17656
|
+
lg: globalBreakpointLg,
|
|
17657
|
+
xl: globalBreakpointXl,
|
|
17658
|
+
'2xl': globalBreakpoint2xl
|
|
17572
17659
|
};
|
|
17573
17660
|
class OverflowMenu extends React__namespace.Component {
|
|
17574
17661
|
constructor(props) {
|
|
@@ -17678,6 +17765,8 @@
|
|
|
17678
17765
|
|
|
17679
17766
|
const BarsIcon = createIcon(BarsIconConfig);
|
|
17680
17767
|
|
|
17768
|
+
var BarsIcon$1 = BarsIcon;
|
|
17769
|
+
|
|
17681
17770
|
const PageHeader = (_a) => {
|
|
17682
17771
|
var { className = '', logo = null, logoProps = null, logoComponent = 'a', headerTools = null, topNav = null, isNavOpen = true, isManagedSidebar: deprecatedIsManagedSidebar = undefined, role = undefined, showNavToggle = false, navToggleId = 'nav-toggle', onNavToggle = () => undefined, 'aria-label': ariaLabel = 'Global navigation', 'aria-controls': ariaControls = null } = _a, props = __rest$1(_a, ["className", "logo", "logoProps", "logoComponent", "headerTools", "topNav", "isNavOpen", "isManagedSidebar", "role", "showNavToggle", "navToggleId", "onNavToggle", 'aria-label', 'aria-controls']);
|
|
17683
17772
|
const LogoComponent = logoComponent;
|
|
@@ -17691,7 +17780,7 @@
|
|
|
17691
17780
|
(showNavToggle || logo) && (React__namespace.createElement("div", { className: css(styles$z.pageHeaderBrand) },
|
|
17692
17781
|
showNavToggle && (React__namespace.createElement("div", { className: css(styles$z.pageHeaderBrandToggle) },
|
|
17693
17782
|
React__namespace.createElement(Button, { id: navToggleId, onClick: navToggle, "aria-label": ariaLabel, "aria-controls": ariaControls, "aria-expanded": navOpen ? 'true' : 'false', variant: exports.ButtonVariant.plain },
|
|
17694
|
-
React__namespace.createElement(BarsIcon, null)))),
|
|
17783
|
+
React__namespace.createElement(BarsIcon$1, null)))),
|
|
17695
17784
|
logo && (React__namespace.createElement(LogoComponent, Object.assign({ className: css(styles$z.pageHeaderBrandLink) }, logoProps), logo)))),
|
|
17696
17785
|
topNav && React__namespace.createElement("div", { className: css(styles$z.pageHeaderNav) }, topNav),
|
|
17697
17786
|
headerTools));
|
|
@@ -17888,7 +17977,7 @@
|
|
|
17888
17977
|
this.handleNewPage(event, 1);
|
|
17889
17978
|
this.setState({ userInputPage: 1 });
|
|
17890
17979
|
} },
|
|
17891
|
-
React__namespace.createElement(AngleDoubleLeftIcon, null)))),
|
|
17980
|
+
React__namespace.createElement(AngleDoubleLeftIcon$1, null)))),
|
|
17892
17981
|
React__namespace.createElement("div", { className: styles$q.paginationNavControl },
|
|
17893
17982
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === firstPage || page === 0, "data-action": "previous", onClick: event => {
|
|
17894
17983
|
const newPage = page - 1 >= 1 ? page - 1 : 1;
|
|
@@ -17896,7 +17985,7 @@
|
|
|
17896
17985
|
this.handleNewPage(event, newPage);
|
|
17897
17986
|
this.setState({ userInputPage: newPage });
|
|
17898
17987
|
}, "aria-label": toPreviousPage },
|
|
17899
|
-
React__namespace.createElement(AngleLeftIcon, null))),
|
|
17988
|
+
React__namespace.createElement(AngleLeftIcon$1, null))),
|
|
17900
17989
|
!isCompact && (React__namespace.createElement("div", { className: styles$q.paginationNavPageSelect },
|
|
17901
17990
|
React__namespace.createElement("input", { className: css(styles$q.formControl), "aria-label": currPage, type: "number", disabled: isDisabled || (itemCount && page === firstPage && page === lastPage && itemCount >= 0) || page === 0, min: lastPage <= 0 && firstPage <= 0 ? 0 : 1, max: lastPage, value: userInputPage, onKeyDown: event => this.onKeyDown(event, page, lastPage, onPageInput), onChange: event => this.onChange(event, lastPage) }),
|
|
17902
17991
|
(itemCount || itemCount === 0) && (React__namespace.createElement("span", { "aria-hidden": "true" },
|
|
@@ -17910,14 +17999,14 @@
|
|
|
17910
17999
|
this.handleNewPage(event, newPage);
|
|
17911
18000
|
this.setState({ userInputPage: newPage });
|
|
17912
18001
|
} },
|
|
17913
|
-
React__namespace.createElement(AngleRightIcon, null))),
|
|
18002
|
+
React__namespace.createElement(AngleRightIcon$1, null))),
|
|
17914
18003
|
!isCompact && (React__namespace.createElement("div", { className: css(styles$q.paginationNavControl, styles$q.modifiers.last) },
|
|
17915
18004
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === lastPage, "aria-label": toLastPage, "data-action": "last", onClick: event => {
|
|
17916
18005
|
onLastClick(event, lastPage);
|
|
17917
18006
|
this.handleNewPage(event, lastPage);
|
|
17918
18007
|
this.setState({ userInputPage: lastPage });
|
|
17919
18008
|
} },
|
|
17920
|
-
React__namespace.createElement(AngleDoubleRightIcon, null))))));
|
|
18009
|
+
React__namespace.createElement(AngleDoubleRightIcon$1, null))))));
|
|
17921
18010
|
}
|
|
17922
18011
|
}
|
|
17923
18012
|
Navigation.displayName = 'Navigation';
|
|
@@ -17992,7 +18081,7 @@
|
|
|
17992
18081
|
title,
|
|
17993
18082
|
` ${perPageSuffix}`,
|
|
17994
18083
|
perPage === value && (React__namespace.createElement("div", { className: css(styles$s.optionsMenuMenuItemIcon) },
|
|
17995
|
-
React__namespace.createElement(CheckIcon, null))))));
|
|
18084
|
+
React__namespace.createElement(CheckIcon$1, null))))));
|
|
17996
18085
|
};
|
|
17997
18086
|
this.state = {
|
|
17998
18087
|
isOpen: false
|
|
@@ -18044,6 +18133,7 @@
|
|
|
18044
18133
|
"value": "2",
|
|
18045
18134
|
"var": "var(--pf-c-pagination__nav-page-select--c-form-control--width-chars)"
|
|
18046
18135
|
};
|
|
18136
|
+
var widthChars = c_pagination__nav_page_select_c_form_control_width_chars;
|
|
18047
18137
|
|
|
18048
18138
|
exports.PaginationVariant = void 0;
|
|
18049
18139
|
(function (PaginationVariant) {
|
|
@@ -18074,10 +18164,10 @@
|
|
|
18074
18164
|
}
|
|
18075
18165
|
const len = String(lastPage).length;
|
|
18076
18166
|
if (len >= 3) {
|
|
18077
|
-
node.style.setProperty(
|
|
18167
|
+
node.style.setProperty(widthChars.name, `${len}`);
|
|
18078
18168
|
}
|
|
18079
18169
|
else {
|
|
18080
|
-
node.style.setProperty(
|
|
18170
|
+
node.style.setProperty(widthChars.name, '2');
|
|
18081
18171
|
}
|
|
18082
18172
|
};
|
|
18083
18173
|
let paginationId = 0;
|
|
@@ -18238,13 +18328,15 @@
|
|
|
18238
18328
|
|
|
18239
18329
|
const ResourcesFullIcon = createIcon(ResourcesFullIconConfig);
|
|
18240
18330
|
|
|
18331
|
+
var ResourcesFullIcon$1 = ResourcesFullIcon;
|
|
18332
|
+
|
|
18241
18333
|
const variantIcons = {
|
|
18242
18334
|
default: undefined,
|
|
18243
18335
|
pending: undefined,
|
|
18244
|
-
success: React__namespace.createElement(CheckCircleIcon, null),
|
|
18245
|
-
info: React__namespace.createElement(ResourcesFullIcon, null),
|
|
18246
|
-
warning: React__namespace.createElement(ExclamationTriangleIcon, null),
|
|
18247
|
-
danger: React__namespace.createElement(ExclamationCircleIcon, null)
|
|
18336
|
+
success: React__namespace.createElement(CheckCircleIcon$1, null),
|
|
18337
|
+
info: React__namespace.createElement(ResourcesFullIcon$1, null),
|
|
18338
|
+
warning: React__namespace.createElement(ExclamationTriangleIcon$1, null),
|
|
18339
|
+
danger: React__namespace.createElement(ExclamationCircleIcon$1, null)
|
|
18248
18340
|
};
|
|
18249
18341
|
const variantStyle$2 = {
|
|
18250
18342
|
default: '',
|
|
@@ -18350,6 +18442,8 @@
|
|
|
18350
18442
|
|
|
18351
18443
|
const ArrowRightIcon = createIcon(ArrowRightIconConfig);
|
|
18352
18444
|
|
|
18445
|
+
var ArrowRightIcon$1 = ArrowRightIcon;
|
|
18446
|
+
|
|
18353
18447
|
Promise.resolve().then(function () { return panel; });
|
|
18354
18448
|
var styles$n = {
|
|
18355
18449
|
"modifiers": {
|
|
@@ -18626,25 +18720,25 @@
|
|
|
18626
18720
|
const buildSearchTextInputGroup = (_a = {}) => {
|
|
18627
18721
|
var searchInputProps = __rest$1(_a, []);
|
|
18628
18722
|
return (React__namespace.createElement(TextInputGroup, Object.assign({ isDisabled: isDisabled }, searchInputProps),
|
|
18629
|
-
React__namespace.createElement(TextInputGroupMain, { hint: hint, icon: React__namespace.createElement(SearchIcon, null), innerRef: searchInputInputRef, value: searchValue, placeholder: placeholder, "aria-label": ariaLabel, onKeyDown: onEnter, onChange: onChangeHandler }),
|
|
18723
|
+
React__namespace.createElement(TextInputGroupMain, { hint: hint, icon: React__namespace.createElement(SearchIcon$1, null), innerRef: searchInputInputRef, value: searchValue, placeholder: placeholder, "aria-label": ariaLabel, onKeyDown: onEnter, onChange: onChangeHandler }),
|
|
18630
18724
|
value && (React__namespace.createElement(TextInputGroupUtilities, null,
|
|
18631
18725
|
resultsCount && React__namespace.createElement(Badge, { isRead: true }, resultsCount),
|
|
18632
18726
|
!!onNextClick && !!onPreviousClick && (React__namespace.createElement("div", { className: "pf-c-text-input-group__group" },
|
|
18633
18727
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, "aria-label": previousNavigationButtonAriaLabel, isDisabled: isDisabled || isPreviousNavigationButtonDisabled, onClick: onPreviousClick },
|
|
18634
|
-
React__namespace.createElement(AngleUpIcon, null)),
|
|
18728
|
+
React__namespace.createElement(AngleUpIcon$1, null)),
|
|
18635
18729
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, "aria-label": nextNavigationButtonAriaLabel, isDisabled: isDisabled || isNextNavigationButtonDisabled, onClick: onNextClick },
|
|
18636
|
-
React__namespace.createElement(AngleDownIcon, null)))),
|
|
18730
|
+
React__namespace.createElement(AngleDownIcon$1, null)))),
|
|
18637
18731
|
!!onClear && (React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled, "aria-label": resetButtonLabel, onClick: onClearInput },
|
|
18638
|
-
React__namespace.createElement(TimesIcon, null)))))));
|
|
18732
|
+
React__namespace.createElement(TimesIcon$1, null)))))));
|
|
18639
18733
|
};
|
|
18640
18734
|
const buildSearchTextInputGroupWithExtraButtons = (_a = {}) => {
|
|
18641
18735
|
var searchInputProps = __rest$1(_a, []);
|
|
18642
18736
|
return (React__namespace.createElement(InputGroup, Object.assign({}, searchInputProps),
|
|
18643
18737
|
buildSearchTextInputGroup(),
|
|
18644
18738
|
(attributes.length > 0 || onToggleAdvancedSearch) && (React__namespace.createElement(Button, { className: isSearchMenuOpen && 'pf-m-expanded', variant: exports.ButtonVariant.control, "aria-label": openMenuButtonAriaLabel, onClick: onToggle, isDisabled: isDisabled, "aria-expanded": isSearchMenuOpen },
|
|
18645
|
-
React__namespace.createElement(CaretDownIcon, null))),
|
|
18739
|
+
React__namespace.createElement(CaretDownIcon$1, null))),
|
|
18646
18740
|
!!onSearch && (React__namespace.createElement(Button, { type: "submit", variant: exports.ButtonVariant.control, "aria-label": submitSearchButtonLabel, onClick: onSearchHandler, isDisabled: isDisabled || !searchValue },
|
|
18647
|
-
React__namespace.createElement(ArrowRightIcon, null)))));
|
|
18741
|
+
React__namespace.createElement(ArrowRightIcon$1, null)))));
|
|
18648
18742
|
};
|
|
18649
18743
|
const searchInputProps = Object.assign(Object.assign({}, props), { className: className && css(className), innerRef: searchInputRef });
|
|
18650
18744
|
if (!!onSearch || attributes.length > 0 || !!onToggleAdvancedSearch) {
|
|
@@ -19151,11 +19245,11 @@
|
|
|
19151
19245
|
React__namespace.createElement("input", Object.assign({ id: this.id, className: css(styles$h.switchInput), type: "checkbox", onChange: event => onChange(event.target.checked, event) }, (defaultChecked !== undefined ? { defaultChecked } : { checked: isChecked }), { disabled: isDisabled, "aria-labelledby": !isAriaLabelledBy ? null : `${this.id}-${isChecked !== true ? 'off' : 'on'}` }, props)),
|
|
19152
19246
|
label !== undefined ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
19153
19247
|
React__namespace.createElement("span", { className: css(styles$h.switchToggle) }, hasCheckIcon && (React__namespace.createElement("span", { className: css(styles$h.switchToggleIcon), "aria-hidden": "true" },
|
|
19154
|
-
React__namespace.createElement(CheckIcon, { noVerticalAlign: true })))),
|
|
19248
|
+
React__namespace.createElement(CheckIcon$1, { noVerticalAlign: true })))),
|
|
19155
19249
|
React__namespace.createElement("span", { className: css(styles$h.switchLabel, styles$h.modifiers.on), id: isAriaLabelledBy ? `${this.id}-on` : null, "aria-hidden": "true" }, label),
|
|
19156
19250
|
React__namespace.createElement("span", { className: css(styles$h.switchLabel, styles$h.modifiers.off), id: isAriaLabelledBy ? `${this.id}-off` : null, "aria-hidden": "true" }, labelOff !== undefined ? labelOff : label))) : (React__namespace.createElement("span", { className: css(styles$h.switchToggle) },
|
|
19157
19251
|
React__namespace.createElement("div", { className: css(styles$h.switchToggleIcon), "aria-hidden": "true" },
|
|
19158
|
-
React__namespace.createElement(CheckIcon, { noVerticalAlign: true }))))));
|
|
19252
|
+
React__namespace.createElement(CheckIcon$1, { noVerticalAlign: true }))))));
|
|
19159
19253
|
}
|
|
19160
19254
|
}
|
|
19161
19255
|
Switch.displayName = 'Switch';
|
|
@@ -19300,7 +19394,7 @@
|
|
|
19300
19394
|
handleTabClose !== undefined && (React__namespace.createElement("span", { className: css(styles$g.tabsItemClose) },
|
|
19301
19395
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": closeButtonAriaLabel || 'Close tab', onClick: (event) => handleTabClose(event, eventKey, tabContentRef), isDisabled: isCloseDisabled },
|
|
19302
19396
|
React__namespace.createElement("span", { className: css(styles$g.tabsItemCloseIcon) },
|
|
19303
|
-
React__namespace.createElement(TimesIcon, null)))))));
|
|
19397
|
+
React__namespace.createElement(TimesIcon$1, null)))))));
|
|
19304
19398
|
};
|
|
19305
19399
|
const Tab = React__namespace.forwardRef((props, ref) => React__namespace.createElement(TabBase, Object.assign({ innerRef: ref }, props)));
|
|
19306
19400
|
Tab.displayName = 'Tab';
|
|
@@ -19316,6 +19410,8 @@
|
|
|
19316
19410
|
|
|
19317
19411
|
const PlusIcon = createIcon(PlusIconConfig);
|
|
19318
19412
|
|
|
19413
|
+
var PlusIcon$1 = PlusIcon;
|
|
19414
|
+
|
|
19319
19415
|
Promise.resolve().then(function () { return tabContent; });
|
|
19320
19416
|
var styles$f = {
|
|
19321
19417
|
"modifiers": {
|
|
@@ -19407,7 +19503,7 @@
|
|
|
19407
19503
|
tabTitle,
|
|
19408
19504
|
showTabCount && tabTitle === defaultTitleText && ` (${overflowingTabs.length})`),
|
|
19409
19505
|
React__default["default"].createElement("span", { className: styles$g.tabsLinkToggleIcon },
|
|
19410
|
-
React__default["default"].createElement(AngleRightIcon, null)))));
|
|
19506
|
+
React__default["default"].createElement(AngleRightIcon$1, null)))));
|
|
19411
19507
|
const tabs = overflowingTabs.map(tab => (React__default["default"].createElement(MenuItem, { key: tab.eventKey, itemId: tab.eventKey, isSelected: localActiveKey === tab.eventKey }, tab.title)));
|
|
19412
19508
|
const onTabSelect = (event, key) => {
|
|
19413
19509
|
closeMenu();
|
|
@@ -19625,18 +19721,18 @@
|
|
|
19625
19721
|
React__namespace.createElement("div", { className: css(styles$g.tabsToggleButton) },
|
|
19626
19722
|
React__namespace.createElement(Button, { onClick: () => toggleTabs(!isExpandedLocal), variant: "plain", "aria-label": toggleAriaLabel, "aria-expanded": isExpandedLocal, id: `${randomId}-button`, "aria-labelledby": `${randomId}-text ${randomId}-button` },
|
|
19627
19723
|
React__namespace.createElement("span", { className: css(styles$g.tabsToggleIcon) },
|
|
19628
|
-
React__namespace.createElement(AngleRightIcon, { "arian-hidden": "true" })),
|
|
19724
|
+
React__namespace.createElement(AngleRightIcon$1, { "arian-hidden": "true" })),
|
|
19629
19725
|
toggleText && (React__namespace.createElement("span", { className: css('pf-c-tabs__toggle-text'), id: `${randomId}-text` }, toggleText)))))))),
|
|
19630
19726
|
!isOverflowHorizontal && (React__namespace.createElement("button", { className: css(styles$g.tabsScrollButton, isSecondary && buttonStyles.modifiers.secondary), "aria-label": leftScrollAriaLabel, onClick: this.scrollLeft, disabled: disableLeftScrollButton, "aria-hidden": disableLeftScrollButton },
|
|
19631
|
-
React__namespace.createElement(AngleLeftIcon, null))),
|
|
19727
|
+
React__namespace.createElement(AngleLeftIcon$1, null))),
|
|
19632
19728
|
React__namespace.createElement("ul", { className: css(styles$g.tabsList), ref: this.tabList, onScroll: this.handleScrollButtons, role: "tablist" },
|
|
19633
19729
|
isOverflowHorizontal ? filteredChildrenWithoutOverflow : filteredChildren,
|
|
19634
19730
|
hasOverflowTab && React__namespace.createElement(OverflowTab, Object.assign({ overflowingTabs: overflowingTabProps }, overflowObjectProps))),
|
|
19635
19731
|
!isOverflowHorizontal && (React__namespace.createElement("button", { className: css(styles$g.tabsScrollButton, isSecondary && buttonStyles.modifiers.secondary), "aria-label": rightScrollAriaLabel, onClick: this.scrollRight, disabled: disableRightScrollButton, "aria-hidden": disableRightScrollButton },
|
|
19636
|
-
React__namespace.createElement(AngleRightIcon, null))),
|
|
19732
|
+
React__namespace.createElement(AngleRightIcon$1, null))),
|
|
19637
19733
|
onAdd !== undefined && (React__namespace.createElement("span", { className: css(styles$g.tabsAdd) },
|
|
19638
19734
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": addButtonAriaLabel || 'Add tab', onClick: onAdd },
|
|
19639
|
-
React__namespace.createElement(PlusIcon, null))))),
|
|
19735
|
+
React__namespace.createElement(PlusIcon$1, null))))),
|
|
19640
19736
|
filteredChildren
|
|
19641
19737
|
.filter(child => child.props.children &&
|
|
19642
19738
|
!(unmountOnExit && child.props.eventKey !== localActiveKey) &&
|
|
@@ -20462,10 +20558,10 @@
|
|
|
20462
20558
|
chipContainerRef: null
|
|
20463
20559
|
});
|
|
20464
20560
|
const globalBreakpoints = {
|
|
20465
|
-
md: parseInt(
|
|
20466
|
-
lg: parseInt(
|
|
20467
|
-
xl: parseInt(
|
|
20468
|
-
'2xl': parseInt(
|
|
20561
|
+
md: parseInt(globalBreakpointMd.value),
|
|
20562
|
+
lg: parseInt(globalBreakpointLg.value),
|
|
20563
|
+
xl: parseInt(globalBreakpointXl.value),
|
|
20564
|
+
'2xl': parseInt(globalBreakpoint2xl.value)
|
|
20469
20565
|
};
|
|
20470
20566
|
|
|
20471
20567
|
exports.ToolbarItemVariant = void 0;
|
|
@@ -20736,7 +20832,7 @@
|
|
|
20736
20832
|
super(...arguments);
|
|
20737
20833
|
this.isContentPopup = () => {
|
|
20738
20834
|
const viewportSize = canUseDOM ? window.innerWidth : 1200;
|
|
20739
|
-
const lgBreakpointValue = parseInt(
|
|
20835
|
+
const lgBreakpointValue = parseInt(globalBreakpointLg.value);
|
|
20740
20836
|
return viewportSize < lgBreakpointValue;
|
|
20741
20837
|
};
|
|
20742
20838
|
}
|
|
@@ -20816,11 +20912,11 @@
|
|
|
20816
20912
|
React__namespace.createElement(InputGroup, null,
|
|
20817
20913
|
React__namespace.createElement(Button, Object.assign({ variant: "control", "aria-label": minusBtnAriaLabel, isDisabled: isDisabled || value <= min, onClick: evt => onMinus(evt, inputName) }, minusBtnProps),
|
|
20818
20914
|
React__namespace.createElement("span", { className: css(styles$a.numberInputIcon) },
|
|
20819
|
-
React__namespace.createElement(MinusIcon, { "aria-hidden": "true" }))),
|
|
20915
|
+
React__namespace.createElement(MinusIcon$1, { "aria-hidden": "true" }))),
|
|
20820
20916
|
React__namespace.createElement(TextInput, Object.assign({ type: "number", value: value, name: inputName, "aria-label": inputAriaLabel }, (isDisabled && { isDisabled }), (onChange && { onChange: (value, event) => onChange(event) }), { onBlur: handleBlur }, (!onChange && { isReadOnly: true }), { onKeyDown: keyDownHandler, validated: validated }, inputProps)),
|
|
20821
20917
|
React__namespace.createElement(Button, Object.assign({ variant: "control", "aria-label": plusBtnAriaLabel, isDisabled: isDisabled || value >= max, onClick: evt => onPlus(evt, inputName) }, plusBtnProps),
|
|
20822
20918
|
React__namespace.createElement("span", { className: css(styles$a.numberInputIcon) },
|
|
20823
|
-
React__namespace.createElement(PlusIcon, { "aria-hidden": "true" })))),
|
|
20919
|
+
React__namespace.createElement(PlusIcon$1, { "aria-hidden": "true" })))),
|
|
20824
20920
|
unit && unitPosition === 'after' && numberInputUnit));
|
|
20825
20921
|
};
|
|
20826
20922
|
NumberInput.displayName = 'NumberInput';
|
|
@@ -20897,7 +20993,7 @@
|
|
|
20897
20993
|
}
|
|
20898
20994
|
} }, ((hasCheck || isSelectable) && { 'aria-labelledby': `label-${randomId}` }), { tabIndex: -1 }),
|
|
20899
20995
|
React__default["default"].createElement("span", { className: css(styles$9.treeViewNodeToggleIcon) },
|
|
20900
|
-
React__default["default"].createElement(AngleRightIcon, { "aria-hidden": "true" }))));
|
|
20996
|
+
React__default["default"].createElement(AngleRightIcon$1, { "aria-hidden": "true" }))));
|
|
20901
20997
|
const renderCheck = (randomId) => (React__default["default"].createElement("span", { className: css(styles$9.treeViewNodeCheck) },
|
|
20902
20998
|
React__default["default"].createElement("input", Object.assign({ type: "checkbox", onChange: evt => onCheck && onCheck(evt, itemData, parentItem), onClick: evt => evt.stopPropagation(), ref: elem => elem && (elem.indeterminate = checkProps.checked === null) }, checkProps, { checked: checkProps.checked === null ? false : checkProps.checked, id: randomId, tabIndex: -1 }))));
|
|
20903
20999
|
const iconRendered = (React__default["default"].createElement("span", { className: css(styles$9.treeViewNodeIcon) },
|
|
@@ -21211,10 +21307,10 @@
|
|
|
21211
21307
|
React__namespace.createElement("span", { className: css(styles$8.wizardToggleNum) }, activeStepIndex),
|
|
21212
21308
|
" ",
|
|
21213
21309
|
activeStepName,
|
|
21214
|
-
activeStepSubName && React__namespace.createElement(AngleRightIcon, { className: css(styles$8.wizardToggleSeparator), "aria-hidden": "true" })),
|
|
21310
|
+
activeStepSubName && React__namespace.createElement(AngleRightIcon$1, { className: css(styles$8.wizardToggleSeparator), "aria-hidden": "true" })),
|
|
21215
21311
|
activeStepSubName && React__namespace.createElement("span", { className: css(styles$8.wizardToggleListItem) }, activeStepSubName)),
|
|
21216
21312
|
React__namespace.createElement("span", { className: css(styles$8.wizardToggleIcon) },
|
|
21217
|
-
React__namespace.createElement(CaretDownIcon, { "aria-hidden": "true" }))),
|
|
21313
|
+
React__namespace.createElement(CaretDownIcon$1, { "aria-hidden": "true" }))),
|
|
21218
21314
|
React__namespace.createElement("div", { className: css(styles$8.wizardOuterWrap) },
|
|
21219
21315
|
React__namespace.createElement("div", { className: css(styles$8.wizardInnerWrap) },
|
|
21220
21316
|
nav(isNavOpen),
|
|
@@ -21258,7 +21354,7 @@
|
|
|
21258
21354
|
React__namespace.createElement("span", { className: css(styles$8.wizardNavLinkText) }, content),
|
|
21259
21355
|
React__namespace.createElement("span", { className: css(styles$8.wizardNavLinkToggle) },
|
|
21260
21356
|
React__namespace.createElement("span", { className: css(styles$8.wizardNavLinkToggleIcon) },
|
|
21261
|
-
React__namespace.createElement(AngleRightIcon, null))))) : (content)),
|
|
21357
|
+
React__namespace.createElement(AngleRightIcon$1, null))))) : (content)),
|
|
21262
21358
|
children));
|
|
21263
21359
|
};
|
|
21264
21360
|
WizardNavItem.displayName = 'WizardNavItem';
|
|
@@ -21276,7 +21372,7 @@
|
|
|
21276
21372
|
|
|
21277
21373
|
const WizardHeader = ({ onClose = () => undefined, title, description, hideClose, closeButtonAriaLabel, titleId, descriptionComponent: Component = 'p', descriptionId }) => (React__namespace.createElement("div", { className: css(styles$8.wizardHeader) },
|
|
21278
21374
|
!hideClose && (React__namespace.createElement(Button, { variant: "plain", className: css(styles$8.wizardClose), "aria-label": closeButtonAriaLabel, onClick: onClose },
|
|
21279
|
-
React__namespace.createElement(TimesIcon, { "aria-hidden": "true" }))),
|
|
21375
|
+
React__namespace.createElement(TimesIcon$1, { "aria-hidden": "true" }))),
|
|
21280
21376
|
React__namespace.createElement(Title, { headingLevel: "h2", size: "3xl", className: css(styles$8.wizardTitle), "aria-label": title, id: titleId }, title || React__namespace.createElement(React__namespace.Fragment, null, "\u00A0")),
|
|
21281
21377
|
description && (React__namespace.createElement(Component, { className: css(styles$8.wizardDescription), id: descriptionId }, description))));
|
|
21282
21378
|
WizardHeader.displayName = 'WizardHeader';
|