@cloudscape-design/components 3.0.1142 → 3.0.1144
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/annotation-context/annotation/annotation-popover.d.ts.map +1 -1
- package/annotation-context/annotation/annotation-popover.js +2 -5
- package/annotation-context/annotation/annotation-popover.js.map +1 -1
- package/annotation-context/annotation/styles.css.js +13 -24
- package/annotation-context/annotation/styles.scoped.css +20 -87
- package/annotation-context/annotation/styles.selectors.js +13 -24
- package/flashbar/interfaces.d.ts +1 -1
- package/flashbar/interfaces.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/manifest.json +1 -1
- package/navigable-group/index.d.ts +1 -1
- package/navigable-group/index.d.ts.map +1 -1
- package/navigable-group/index.js +4 -19
- package/navigable-group/index.js.map +1 -1
- package/package.json +1 -2
- package/popover/arrow.d.ts +5 -1
- package/popover/arrow.d.ts.map +1 -1
- package/popover/arrow.js +2 -2
- package/popover/arrow.js.map +1 -1
- package/popover/styles.css.js +57 -56
- package/popover/styles.scoped.css +91 -84
- package/popover/styles.selectors.js +57 -56
- package/prompt-input/styles.d.ts +38 -1
- package/prompt-input/styles.d.ts.map +1 -1
- package/prompt-input/styles.js +1 -2
- package/prompt-input/styles.js.map +1 -1
- package/radio-group/internal.d.ts.map +1 -1
- package/radio-group/internal.js +1 -1
- package/radio-group/internal.js.map +1 -1
- package/radio-group/styles.css.js +6 -5
- package/radio-group/styles.scoped.css +10 -6
- package/radio-group/styles.selectors.js +6 -5
- package/segmented-control/index.d.ts.map +1 -1
- package/segmented-control/index.js +13 -14
- package/segmented-control/interfaces.d.ts +31 -0
- package/segmented-control/interfaces.d.ts.map +1 -1
- package/segmented-control/interfaces.js.map +1 -1
- package/segmented-control/internal-do-not-use-core.js +19 -0
- package/segmented-control/{index.js.map → internal-do-not-use-core.js.map} +1 -1
- package/segmented-control/internal-segmented-control.d.ts +2 -1
- package/segmented-control/internal-segmented-control.d.ts.map +1 -1
- package/segmented-control/internal-segmented-control.js +4 -3
- package/segmented-control/internal-segmented-control.js.map +1 -1
- package/segmented-control/internal.d.ts +1 -0
- package/segmented-control/internal.d.ts.map +1 -1
- package/segmented-control/internal.js +2 -2
- package/segmented-control/internal.js.map +1 -1
- package/segmented-control/segment.d.ts +1 -0
- package/segmented-control/segment.d.ts.map +1 -1
- package/segmented-control/segment.js +3 -2
- package/segmented-control/segment.js.map +1 -1
- package/segmented-control/style.d.ts +29 -0
- package/segmented-control/style.d.ts.map +1 -0
- package/segmented-control/style.js +37 -0
- package/segmented-control/style.js.map +1 -0
- package/segmented-control/styles.css.js +16 -16
- package/segmented-control/styles.scoped.css +47 -59
- package/segmented-control/styles.selectors.js +16 -16
- package/test-utils/dom/radio-group/index.d.ts +1 -0
- package/test-utils/dom/radio-group/index.js +5 -3
- package/test-utils/dom/radio-group/index.js.map +1 -1
- package/test-utils/selectors/radio-group/index.d.ts +1 -0
- package/test-utils/selectors/radio-group/index.js +5 -3
- package/test-utils/selectors/radio-group/index.js.map +1 -1
- package/tree-view/vertical-connector/styles.css.js +3 -3
- package/tree-view/vertical-connector/styles.scoped.css +5 -5
- package/tree-view/vertical-connector/styles.selectors.js +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotation-popover.d.ts","sourceRoot":"","sources":["../../../../src/annotation-context/annotation/annotation-popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"annotation-popover.d.ts","sourceRoot":"","sources":["../../../../src/annotation-context/annotation/annotation-popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAOzC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAOxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAIvD,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB,SAAS,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IAErC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAE9B,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAElC,kBAAkB,EAAE,MAAM,CAAC;IAE3B,eAAe,EAAE,MAAM,CAAC;IAExB,gBAAgB,EAAE,OAAO,CAAC;IAE1B,SAAS,EAAE,MAAM,IAAI,CAAC;IAEtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAEvC,WAAW,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;CACpD;AAED,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,OAAO,EACP,KAAK,EAEL,SAAiB,EAEjB,kBAAkB,EAElB,eAAe,EAEf,kBAAkB,EAClB,gBAAgB,EAEhB,SAAS,EAET,iBAAiB,EACjB,iBAAiB,EAEjB,QAAQ,EAER,QAAQ,EAER,qBAAqB,EACrB,qBAAqB,EACrB,WAAW,GACZ,EAAE,sBAAsB,eAwGxB"}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import React, { useEffect } from 'react';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
4
|
import { useUniqueId } from '@cloudscape-design/component-toolkit/internal';
|
|
6
5
|
import InternalAlert from '../../alert/internal';
|
|
7
6
|
import InternalBox from '../../box/internal';
|
|
8
7
|
import { InternalButton } from '../../button/internal';
|
|
9
8
|
import { scrollElementIntoView } from '../../internal/utils/scrollable-containers';
|
|
10
9
|
import { joinStrings } from '../../internal/utils/strings/join-strings.js';
|
|
10
|
+
import Arrow from '../../popover/arrow';
|
|
11
11
|
import PopoverBody from '../../popover/body';
|
|
12
12
|
import PopoverContainer from '../../popover/container';
|
|
13
13
|
import InternalSpaceBetween from '../../space-between/internal';
|
|
14
14
|
import styles from './styles.css.js';
|
|
15
|
-
const arrow = (position) => (React.createElement("div", { className: clsx(styles.arrow, styles[`arrow-position-${position}`]) },
|
|
16
|
-
React.createElement("div", { className: styles['arrow-outer'] }),
|
|
17
|
-
React.createElement("div", { className: styles['arrow-inner'] })));
|
|
18
15
|
export function AnnotationPopover({ title, content, alert, direction = 'top', taskLocalStepIndex, totalLocalSteps, showPreviousButton, showFinishButton, onDismiss, nextButtonEnabled, onNextButtonClick, onFinish, trackRef, previousButtonEnabled, onPreviousButtonClick, i18nStrings, }) {
|
|
19
16
|
useEffect(() => {
|
|
20
17
|
var _a;
|
|
@@ -22,7 +19,7 @@ export function AnnotationPopover({ title, content, alert, direction = 'top', ta
|
|
|
22
19
|
}, [trackRef]);
|
|
23
20
|
const popoverHeaderId = useUniqueId('poppver-header-');
|
|
24
21
|
const stepCounterId = useUniqueId('step-counter-');
|
|
25
|
-
return (React.createElement(PopoverContainer, { size: "medium", fixedWidth: false, position: direction, trackRef: trackRef, trackKey: taskLocalStepIndex, variant: "annotation", arrow:
|
|
22
|
+
return (React.createElement(PopoverContainer, { size: "medium", fixedWidth: false, position: direction, trackRef: trackRef, trackKey: taskLocalStepIndex, variant: "annotation", arrow: position => React.createElement(Arrow, { position: position, variant: "info" }), zIndex: 7000, renderWithPortal: true },
|
|
26
23
|
React.createElement(PopoverBody, { dismissButton: true, dismissAriaLabel: i18nStrings.labelDismissAnnotation, header: React.createElement(InternalBox, { id: popoverHeaderId, color: "text-body-secondary", fontSize: "body-s", margin: { top: 'xxxs' }, className: styles.header }, title), onDismiss: onDismiss, className: styles.annotation, variant: "annotation", overflowVisible: "content",
|
|
27
24
|
// create new dialog to have the native dialog behavior of the screen readers
|
|
28
25
|
key: taskLocalStepIndex, ariaLabelledby: joinStrings(popoverHeaderId, stepCounterId) },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotation-popover.js","sourceRoot":"","sources":["../../../../src/annotation-context/annotation/annotation-popover.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"annotation-popover.js","sourceRoot":"","sources":["../../../../src/annotation-context/annotation/annotation-popover.tsx"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect } from 'react';\n\nimport { useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nimport InternalAlert from '../../alert/internal';\nimport InternalBox from '../../box/internal';\nimport { InternalButton } from '../../button/internal';\nimport { HotspotProps } from '../../hotspot/interfaces';\nimport { scrollElementIntoView } from '../../internal/utils/scrollable-containers';\nimport { joinStrings } from '../../internal/utils/strings/join-strings.js';\nimport Arrow from '../../popover/arrow';\nimport PopoverBody from '../../popover/body';\nimport PopoverContainer from '../../popover/container';\nimport InternalSpaceBetween from '../../space-between/internal';\nimport { AnnotationContextProps } from '../interfaces';\n\nimport styles from './styles.css.js';\n\ninterface AnnotationPopoverProps {\n title: string;\n content: React.ReactNode;\n alert: React.ReactNode;\n\n direction: HotspotProps['direction'];\n\n nextButtonEnabled: boolean;\n onNextButtonClick: () => void;\n\n onFinish: () => void;\n\n showPreviousButton: boolean;\n previousButtonEnabled: boolean;\n onPreviousButtonClick: () => void;\n\n taskLocalStepIndex: number;\n\n totalLocalSteps: number;\n\n showFinishButton: boolean;\n\n onDismiss: () => void;\n\n trackRef: React.RefObject<HTMLElement>;\n\n i18nStrings: AnnotationContextProps['i18nStrings'];\n}\n\nexport function AnnotationPopover({\n title,\n content,\n alert,\n\n direction = 'top',\n\n taskLocalStepIndex,\n\n totalLocalSteps,\n\n showPreviousButton,\n showFinishButton,\n\n onDismiss,\n\n nextButtonEnabled,\n onNextButtonClick,\n\n onFinish,\n\n trackRef,\n\n previousButtonEnabled,\n onPreviousButtonClick,\n i18nStrings,\n}: AnnotationPopoverProps) {\n useEffect(() => {\n scrollElementIntoView(trackRef.current ?? undefined);\n }, [trackRef]);\n\n const popoverHeaderId = useUniqueId('poppver-header-');\n const stepCounterId = useUniqueId('step-counter-');\n\n return (\n <PopoverContainer\n size=\"medium\"\n fixedWidth={false}\n position={direction}\n trackRef={trackRef}\n trackKey={taskLocalStepIndex}\n variant=\"annotation\"\n arrow={position => <Arrow position={position} variant=\"info\" />}\n zIndex={7000}\n renderWithPortal={true}\n >\n <PopoverBody\n dismissButton={true}\n dismissAriaLabel={i18nStrings.labelDismissAnnotation}\n header={\n <InternalBox\n id={popoverHeaderId}\n color=\"text-body-secondary\"\n fontSize=\"body-s\"\n margin={{ top: 'xxxs' }}\n className={styles.header}\n >\n {title}\n </InternalBox>\n }\n onDismiss={onDismiss}\n className={styles.annotation}\n variant=\"annotation\"\n overflowVisible=\"content\"\n // create new dialog to have the native dialog behavior of the screen readers\n key={taskLocalStepIndex}\n ariaLabelledby={joinStrings(popoverHeaderId, stepCounterId)}\n >\n <InternalSpaceBetween size=\"s\">\n <div className={styles.description}>\n <InternalBox className={styles.content}>{content}</InternalBox>\n </div>\n\n {alert && <InternalAlert type=\"warning\">{alert}</InternalAlert>}\n\n <InternalSpaceBetween size=\"s\">\n <div className={styles.divider} />\n\n <div className={styles.actionBar}>\n <div className={styles.stepCounter}>\n <InternalBox\n id={stepCounterId}\n className={styles['step-counter-content']}\n color=\"text-body-secondary\"\n fontSize=\"body-s\"\n >\n {i18nStrings.stepCounterText(taskLocalStepIndex ?? 0, totalLocalSteps ?? 0)}\n </InternalBox>\n </div>\n <InternalSpaceBetween size=\"xs\" direction=\"horizontal\">\n {showPreviousButton && (\n <InternalButton\n variant=\"link\"\n onClick={onPreviousButtonClick}\n disabled={!previousButtonEnabled}\n formAction=\"none\"\n ariaLabel={i18nStrings.previousButtonText}\n className={styles['previous-button']}\n >\n {i18nStrings.previousButtonText}\n </InternalButton>\n )}\n\n {showFinishButton ? (\n <InternalButton\n onClick={onFinish}\n formAction=\"none\"\n ariaLabel={i18nStrings.finishButtonText}\n className={styles['finish-button']}\n >\n {i18nStrings.finishButtonText}\n </InternalButton>\n ) : (\n <InternalButton\n onClick={onNextButtonClick}\n disabled={!nextButtonEnabled}\n formAction=\"none\"\n ariaLabel={i18nStrings.nextButtonText}\n className={styles['next-button']}\n >\n {i18nStrings.nextButtonText}\n </InternalButton>\n )}\n </InternalSpaceBetween>\n </div>\n </InternalSpaceBetween>\n </InternalSpaceBetween>\n </PopoverBody>\n </PopoverContainer>\n );\n}\n"]}
|
|
@@ -1,29 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"previous-button": "awsui_previous-button_1hpp3_8jup6_254",
|
|
18
|
-
"finish-button": "awsui_finish-button_1hpp3_8jup6_255",
|
|
19
|
-
"header": "awsui_header_1hpp3_8jup6_256",
|
|
20
|
-
"step-counter-content": "awsui_step-counter-content_1hpp3_8jup6_257",
|
|
21
|
-
"content": "awsui_content_1hpp3_8jup6_258",
|
|
22
|
-
"description": "awsui_description_1hpp3_8jup6_262",
|
|
23
|
-
"actionBar": "awsui_actionBar_1hpp3_8jup6_267",
|
|
24
|
-
"stepCounter": "awsui_stepCounter_1hpp3_8jup6_274",
|
|
25
|
-
"divider": "awsui_divider_1hpp3_8jup6_278",
|
|
26
|
-
"hotspot": "awsui_hotspot_1hpp3_8jup6_282",
|
|
27
|
-
"icon": "awsui_icon_1hpp3_8jup6_352"
|
|
4
|
+
"annotation": "awsui_annotation_1hpp3_d3vev_185",
|
|
5
|
+
"next-button": "awsui_next-button_1hpp3_d3vev_186",
|
|
6
|
+
"previous-button": "awsui_previous-button_1hpp3_d3vev_187",
|
|
7
|
+
"finish-button": "awsui_finish-button_1hpp3_d3vev_188",
|
|
8
|
+
"header": "awsui_header_1hpp3_d3vev_189",
|
|
9
|
+
"step-counter-content": "awsui_step-counter-content_1hpp3_d3vev_190",
|
|
10
|
+
"content": "awsui_content_1hpp3_d3vev_191",
|
|
11
|
+
"description": "awsui_description_1hpp3_d3vev_195",
|
|
12
|
+
"actionBar": "awsui_actionBar_1hpp3_d3vev_200",
|
|
13
|
+
"stepCounter": "awsui_stepCounter_1hpp3_d3vev_207",
|
|
14
|
+
"divider": "awsui_divider_1hpp3_d3vev_211",
|
|
15
|
+
"hotspot": "awsui_hotspot_1hpp3_d3vev_215",
|
|
16
|
+
"icon": "awsui_icon_1hpp3_d3vev_285"
|
|
28
17
|
};
|
|
29
18
|
|
|
@@ -182,104 +182,37 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
182
182
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
183
183
|
SPDX-License-Identifier: Apache-2.0
|
|
184
184
|
*/
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
*/
|
|
193
|
-
.awsui_arrow_1hpp3_8jup6_193:not(#\9) {
|
|
194
|
-
inline-size: 20px;
|
|
195
|
-
block-size: 10px;
|
|
196
|
-
}
|
|
197
|
-
.awsui_arrow-outer_1hpp3_8jup6_197:not(#\9), .awsui_arrow-inner_1hpp3_8jup6_197:not(#\9) {
|
|
198
|
-
position: absolute;
|
|
199
|
-
overflow: hidden;
|
|
200
|
-
inline-size: 20px;
|
|
201
|
-
block-size: 10px;
|
|
202
|
-
inset-block-start: 0;
|
|
203
|
-
inset-inline-start: 0;
|
|
204
|
-
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
205
|
-
}
|
|
206
|
-
.awsui_arrow-outer_1hpp3_8jup6_197:not(#\9)::after, .awsui_arrow-inner_1hpp3_8jup6_197:not(#\9)::after {
|
|
207
|
-
content: "";
|
|
208
|
-
box-sizing: border-box;
|
|
209
|
-
display: inline-block;
|
|
210
|
-
position: absolute;
|
|
211
|
-
border-start-start-radius: 2px;
|
|
212
|
-
border-start-end-radius: 0;
|
|
213
|
-
border-end-start-radius: 0;
|
|
214
|
-
border-end-end-radius: 0;
|
|
215
|
-
inset-block-end: 0;
|
|
216
|
-
inset-inline-start: 0;
|
|
217
|
-
inline-size: 14px;
|
|
218
|
-
block-size: 14px;
|
|
219
|
-
transform: rotate(45deg);
|
|
220
|
-
transform-origin: 0 100%;
|
|
221
|
-
}
|
|
222
|
-
.awsui_arrow-outer_1hpp3_8jup6_197:not(#\9):dir(rtl)::after, .awsui_arrow-inner_1hpp3_8jup6_197:not(#\9):dir(rtl)::after {
|
|
223
|
-
transform: rotate(-45deg);
|
|
224
|
-
transform-origin: 100% 100%;
|
|
225
|
-
}
|
|
226
|
-
.awsui_arrow-outer_1hpp3_8jup6_197:not(#\9)::after {
|
|
227
|
-
background-color: var(--color-border-status-info-qf6jok, #006ce0);
|
|
228
|
-
}
|
|
229
|
-
.awsui_arrow-inner_1hpp3_8jup6_197:not(#\9) {
|
|
230
|
-
inset-block-start: 2px;
|
|
231
|
-
}
|
|
232
|
-
.awsui_arrow-inner_1hpp3_8jup6_197:not(#\9)::after {
|
|
233
|
-
border-start-start-radius: 1px;
|
|
234
|
-
border-start-end-radius: 0;
|
|
235
|
-
border-end-start-radius: 0;
|
|
236
|
-
border-end-end-radius: 0;
|
|
237
|
-
background-color: var(--color-background-status-info-sfobba, #f0fbff);
|
|
238
|
-
}
|
|
239
|
-
.awsui_arrow-position-right-top_1hpp3_8jup6_239 > .awsui_arrow-outer_1hpp3_8jup6_197:not(#\9)::after, .awsui_arrow-position-right-bottom_1hpp3_8jup6_239 > .awsui_arrow-outer_1hpp3_8jup6_197:not(#\9)::after {
|
|
240
|
-
box-shadow: -0.71px 0.71px 4px -2px var(--color-shadow-default-o7dmmm, rgba(15, 20, 26, 0.12));
|
|
241
|
-
}
|
|
242
|
-
.awsui_arrow-position-left-top_1hpp3_8jup6_242 > .awsui_arrow-outer_1hpp3_8jup6_197:not(#\9)::after, .awsui_arrow-position-left-bottom_1hpp3_8jup6_242 > .awsui_arrow-outer_1hpp3_8jup6_197:not(#\9)::after {
|
|
243
|
-
box-shadow: 0.71px -0.71px 4px -2px var(--color-shadow-default-o7dmmm, rgba(15, 20, 26, 0.12));
|
|
244
|
-
}
|
|
245
|
-
.awsui_arrow-position-top-center_1hpp3_8jup6_245 > .awsui_arrow-outer_1hpp3_8jup6_197:not(#\9)::after, .awsui_arrow-position-top-responsive_1hpp3_8jup6_245 > .awsui_arrow-outer_1hpp3_8jup6_197:not(#\9)::after {
|
|
246
|
-
box-shadow: -0.71px -0.71px 4px -2px var(--color-shadow-default-o7dmmm, rgba(15, 20, 26, 0.12));
|
|
247
|
-
}
|
|
248
|
-
.awsui_arrow-position-bottom-center_1hpp3_8jup6_248 > .awsui_arrow-outer_1hpp3_8jup6_197:not(#\9)::after, .awsui_arrow-position-bottom-responsive_1hpp3_8jup6_248 > .awsui_arrow-outer_1hpp3_8jup6_197:not(#\9)::after {
|
|
249
|
-
box-shadow: 0.71px 0.71px 4px -2px var(--color-shadow-default-o7dmmm, rgba(15, 20, 26, 0.12));
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.awsui_annotation_1hpp3_8jup6_252:not(#\9),
|
|
253
|
-
.awsui_next-button_1hpp3_8jup6_253:not(#\9),
|
|
254
|
-
.awsui_previous-button_1hpp3_8jup6_254:not(#\9),
|
|
255
|
-
.awsui_finish-button_1hpp3_8jup6_255:not(#\9),
|
|
256
|
-
.awsui_header_1hpp3_8jup6_256:not(#\9),
|
|
257
|
-
.awsui_step-counter-content_1hpp3_8jup6_257:not(#\9),
|
|
258
|
-
.awsui_content_1hpp3_8jup6_258:not(#\9) {
|
|
185
|
+
.awsui_annotation_1hpp3_d3vev_185:not(#\9),
|
|
186
|
+
.awsui_next-button_1hpp3_d3vev_186:not(#\9),
|
|
187
|
+
.awsui_previous-button_1hpp3_d3vev_187:not(#\9),
|
|
188
|
+
.awsui_finish-button_1hpp3_d3vev_188:not(#\9),
|
|
189
|
+
.awsui_header_1hpp3_d3vev_189:not(#\9),
|
|
190
|
+
.awsui_step-counter-content_1hpp3_d3vev_190:not(#\9),
|
|
191
|
+
.awsui_content_1hpp3_d3vev_191:not(#\9) {
|
|
259
192
|
/* used in test-utils */
|
|
260
193
|
}
|
|
261
194
|
|
|
262
|
-
.
|
|
195
|
+
.awsui_description_1hpp3_d3vev_195:not(#\9) {
|
|
263
196
|
overflow: hidden;
|
|
264
197
|
margin-block-start: var(--space-xxs-hwfkai, 4px);
|
|
265
198
|
}
|
|
266
199
|
|
|
267
|
-
.
|
|
200
|
+
.awsui_actionBar_1hpp3_d3vev_200:not(#\9) {
|
|
268
201
|
display: flex;
|
|
269
202
|
justify-content: space-between;
|
|
270
203
|
align-items: center;
|
|
271
204
|
position: relative;
|
|
272
205
|
}
|
|
273
206
|
|
|
274
|
-
.
|
|
207
|
+
.awsui_stepCounter_1hpp3_d3vev_207:not(#\9) {
|
|
275
208
|
margin-inline-end: 20px;
|
|
276
209
|
}
|
|
277
210
|
|
|
278
|
-
.
|
|
211
|
+
.awsui_divider_1hpp3_d3vev_211:not(#\9) {
|
|
279
212
|
border-block-end: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-divider-default-nr68jt, #c6c6cd);
|
|
280
213
|
}
|
|
281
214
|
|
|
282
|
-
.
|
|
215
|
+
.awsui_hotspot_1hpp3_d3vev_215:not(#\9) {
|
|
283
216
|
border-collapse: separate;
|
|
284
217
|
border-spacing: 0;
|
|
285
218
|
box-sizing: border-box;
|
|
@@ -320,22 +253,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
320
253
|
inline-size: 16px;
|
|
321
254
|
block-size: 16px;
|
|
322
255
|
}
|
|
323
|
-
.
|
|
256
|
+
.awsui_hotspot_1hpp3_d3vev_215:not(#\9):before {
|
|
324
257
|
content: "";
|
|
325
258
|
position: absolute;
|
|
326
259
|
inset: calc(-1 * var(--space-xxs-hwfkai, 4px));
|
|
327
260
|
}
|
|
328
|
-
.
|
|
261
|
+
.awsui_hotspot_1hpp3_d3vev_215:not(#\9):focus {
|
|
329
262
|
outline: none;
|
|
330
263
|
}
|
|
331
|
-
body[data-awsui-focus-visible=true] .
|
|
264
|
+
body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_d3vev_215:not(#\9):focus {
|
|
332
265
|
position: relative;
|
|
333
266
|
}
|
|
334
|
-
body[data-awsui-focus-visible=true] .
|
|
267
|
+
body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_d3vev_215:not(#\9):focus {
|
|
335
268
|
outline: 2px dotted transparent;
|
|
336
269
|
outline-offset: calc(2px - 1px);
|
|
337
270
|
}
|
|
338
|
-
body[data-awsui-focus-visible=true] .
|
|
271
|
+
body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_d3vev_215:not(#\9):focus::before {
|
|
339
272
|
content: " ";
|
|
340
273
|
display: block;
|
|
341
274
|
position: absolute;
|
|
@@ -349,13 +282,13 @@ body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_8jup6_282:not(#\9):focu
|
|
|
349
282
|
border-end-end-radius: var(--border-radius-control-circular-focus-ring-yjhscw, 4px);
|
|
350
283
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
|
|
351
284
|
}
|
|
352
|
-
.
|
|
285
|
+
.awsui_hotspot_1hpp3_d3vev_215 > .awsui_icon_1hpp3_d3vev_285:not(#\9) {
|
|
353
286
|
position: relative;
|
|
354
287
|
stroke: var(--color-text-tutorial-hotspot-default-xfv3ow, #006ce0);
|
|
355
288
|
}
|
|
356
|
-
.
|
|
289
|
+
.awsui_hotspot_1hpp3_d3vev_215:not(#\9):hover > .awsui_icon_1hpp3_d3vev_285 {
|
|
357
290
|
stroke: var(--color-text-tutorial-hotspot-hover-92pxog, #002b66);
|
|
358
291
|
}
|
|
359
|
-
.
|
|
292
|
+
.awsui_hotspot_1hpp3_d3vev_215:not(#\9):active > .awsui_icon_1hpp3_d3vev_285 {
|
|
360
293
|
stroke: var(--color-text-tutorial-hotspot-default-xfv3ow, #006ce0);
|
|
361
294
|
}
|
|
@@ -2,29 +2,18 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"previous-button": "awsui_previous-button_1hpp3_8jup6_254",
|
|
19
|
-
"finish-button": "awsui_finish-button_1hpp3_8jup6_255",
|
|
20
|
-
"header": "awsui_header_1hpp3_8jup6_256",
|
|
21
|
-
"step-counter-content": "awsui_step-counter-content_1hpp3_8jup6_257",
|
|
22
|
-
"content": "awsui_content_1hpp3_8jup6_258",
|
|
23
|
-
"description": "awsui_description_1hpp3_8jup6_262",
|
|
24
|
-
"actionBar": "awsui_actionBar_1hpp3_8jup6_267",
|
|
25
|
-
"stepCounter": "awsui_stepCounter_1hpp3_8jup6_274",
|
|
26
|
-
"divider": "awsui_divider_1hpp3_8jup6_278",
|
|
27
|
-
"hotspot": "awsui_hotspot_1hpp3_8jup6_282",
|
|
28
|
-
"icon": "awsui_icon_1hpp3_8jup6_352"
|
|
5
|
+
"annotation": "awsui_annotation_1hpp3_d3vev_185",
|
|
6
|
+
"next-button": "awsui_next-button_1hpp3_d3vev_186",
|
|
7
|
+
"previous-button": "awsui_previous-button_1hpp3_d3vev_187",
|
|
8
|
+
"finish-button": "awsui_finish-button_1hpp3_d3vev_188",
|
|
9
|
+
"header": "awsui_header_1hpp3_d3vev_189",
|
|
10
|
+
"step-counter-content": "awsui_step-counter-content_1hpp3_d3vev_190",
|
|
11
|
+
"content": "awsui_content_1hpp3_d3vev_191",
|
|
12
|
+
"description": "awsui_description_1hpp3_d3vev_195",
|
|
13
|
+
"actionBar": "awsui_actionBar_1hpp3_d3vev_200",
|
|
14
|
+
"stepCounter": "awsui_stepCounter_1hpp3_d3vev_207",
|
|
15
|
+
"divider": "awsui_divider_1hpp3_d3vev_211",
|
|
16
|
+
"hotspot": "awsui_hotspot_1hpp3_d3vev_215",
|
|
17
|
+
"icon": "awsui_icon_1hpp3_d3vev_285"
|
|
29
18
|
};
|
|
30
19
|
|
package/flashbar/interfaces.d.ts
CHANGED
|
@@ -175,7 +175,7 @@ export interface FlashbarProps extends BaseComponentProps {
|
|
|
175
175
|
* * `id` (string) - Specifies a unique flash message identifier. This property is used in two ways:
|
|
176
176
|
* 1. As a [keys](https://reactjs.org/docs/lists-and-keys.html#keys) source for React rendering.
|
|
177
177
|
* 2. To identify which flash message will be removed from the DOM when it is dismissed, to animate it out.
|
|
178
|
-
* * `persistenceConfig` (FlashbarProps.PersistenceConfig) - Config to persist dismiss state for dismissable Flashbar item, used only in AWS
|
|
178
|
+
* * `persistenceConfig` (FlashbarProps.PersistenceConfig) - Config to persist dismiss state for dismissable Flashbar item, used only in AWS Consoles.
|
|
179
179
|
* * `uniqueKey` (string) - This key to store the persistence state, it must be unique across your console.
|
|
180
180
|
* * `crossServicePersistence` (boolean) - If true, the persistence state will be shared across AWS services.
|
|
181
181
|
* * `analyticsMetadata` (FlashbarProps.ItemAnalyticsMetadata) - (Optional) Specifies additional analytics-related metadata.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/flashbar/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { ButtonProps } from '../button/interfaces';\nimport { ErrorContext } from '../internal/analytics/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n\nexport namespace FlashbarProps {\n export interface MessageDefinition {\n header?: React.ReactNode;\n content?: React.ReactNode;\n dismissible?: boolean;\n dismissLabel?: string;\n statusIconAriaLabel?: string;\n loading?: boolean;\n type?: FlashbarProps.Type;\n ariaRole?: FlashbarProps.AriaRole;\n action?: React.ReactNode;\n id?: string;\n buttonText?: ButtonProps['children'];\n onButtonClick?: ButtonProps['onClick'];\n onDismiss?: ButtonProps['onClick'];\n analyticsMetadata?: FlashbarProps.ItemAnalyticsMetadata;\n persistenceConfig?: FlashbarProps.PersistenceConfig;\n }\n\n export interface ItemAnalyticsMetadata {\n suppressFlowMetricEvents?: boolean;\n errorContext?: ErrorContext;\n }\n export interface PersistenceConfig {\n uniqueKey: string;\n crossServicePersistence?: boolean;\n }\n\n export interface I18nStrings {\n ariaLabel?: string;\n errorIconAriaLabel?: string;\n infoIconAriaLabel?: string;\n inProgressIconAriaLabel?: string;\n notificationBarAriaLabel?: string;\n notificationBarText?: string;\n successIconAriaLabel?: string;\n warningIconAriaLabel?: string;\n }\n\n export interface Style {\n item?: {\n root?: {\n background?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n borderColor?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n color?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n focusRing?: {\n borderColor?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n dismissButton?: {\n color?: {\n active?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n default?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n hover?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n };\n focusRing?: {\n borderColor?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n };\n notificationBar?: {\n root?: {\n background?: {\n active?: string;\n default?: string;\n hover?: string;\n };\n borderColor?: {\n active?: string;\n default?: string;\n hover?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n color?: {\n active?: string;\n default?: string;\n hover?: string;\n };\n };\n expandButton?: {\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n };\n }\n\n export type Type = 'success' | 'warning' | 'info' | 'error' | 'in-progress';\n export type AriaRole = 'alert' | 'status';\n}\n\nexport interface FlashbarProps extends BaseComponentProps {\n /**\n * Specifies flash messages that appear in the same order that they are listed.\n * The value is an array of flash message definition objects.\n *\n * A flash message object contains the following properties:\n * * `header` (ReactNode) - Specifies the heading text.\n * * `content` (ReactNode) - Specifies the primary text displayed in the flash element.\n * * `type` (string) - Indicates the type of the message to be displayed. Allowed values are as follows: `success, error, warning, info, in-progress`. The default is `info`.\n * * `loading` (boolean) - Replaces the status icon with a spinner and forces the type to `info`.\n * * `dismissible` (boolean) - Determines whether the component includes a close button icon. By default, the close button is not included.\n * When a user clicks on this button the `onDismiss` handler is called.\n * * `dismissLabel` (string) - Specifies an `aria-label` for to the dismiss icon button for improved accessibility.\n * * `statusIconAriaLabel` (string) - Specifies an `aria-label` for to the status icon for improved accessibility.\n * If not provided, `i18nStrings.{type}IconAriaLabel` will be used as a fallback.\n * * `ariaRole` (string) - For flash messages added after page load, specifies how this message is communicated to assistive\n * technology. Use \"status\" for status updates or informational content. Use \"alert\" for important messages that need the\n * user's attention.\n * * `action` (ReactNode) - Specifies an action for the flash message. Although it is technically possible to insert any content,\n * our UX guidelines only allow you to add a button.\n * * `buttonText` (string) - Specifies that an action button should be displayed, with the specified text.\n * When a user clicks on this button the `onButtonClick` handler is called.\n * If the `action` property is set, this property is ignored. **Deprecated**, replaced by `action`.\n * * `onButtonClick` (event => void) - Called when a user clicks on the action button. This is not called if you create a custom button\n * using the `action` property. **Deprecated**, replaced by `action`.\n * * `onDismiss` (event => void) - (Optional) Called when a user clicks on the dismiss button.\n * * `id` (string) - Specifies a unique flash message identifier. This property is used in two ways:\n * 1. As a [keys](https://reactjs.org/docs/lists-and-keys.html#keys) source for React rendering.\n * 2. To identify which flash message will be removed from the DOM when it is dismissed, to animate it out.\n * * `persistenceConfig` (FlashbarProps.PersistenceConfig) - Config to persist dismiss state for dismissable Flashbar item, used only in AWS
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/flashbar/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { ButtonProps } from '../button/interfaces';\nimport { ErrorContext } from '../internal/analytics/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n\nexport namespace FlashbarProps {\n export interface MessageDefinition {\n header?: React.ReactNode;\n content?: React.ReactNode;\n dismissible?: boolean;\n dismissLabel?: string;\n statusIconAriaLabel?: string;\n loading?: boolean;\n type?: FlashbarProps.Type;\n ariaRole?: FlashbarProps.AriaRole;\n action?: React.ReactNode;\n id?: string;\n buttonText?: ButtonProps['children'];\n onButtonClick?: ButtonProps['onClick'];\n onDismiss?: ButtonProps['onClick'];\n analyticsMetadata?: FlashbarProps.ItemAnalyticsMetadata;\n persistenceConfig?: FlashbarProps.PersistenceConfig;\n }\n\n export interface ItemAnalyticsMetadata {\n suppressFlowMetricEvents?: boolean;\n errorContext?: ErrorContext;\n }\n export interface PersistenceConfig {\n uniqueKey: string;\n crossServicePersistence?: boolean;\n }\n\n export interface I18nStrings {\n ariaLabel?: string;\n errorIconAriaLabel?: string;\n infoIconAriaLabel?: string;\n inProgressIconAriaLabel?: string;\n notificationBarAriaLabel?: string;\n notificationBarText?: string;\n successIconAriaLabel?: string;\n warningIconAriaLabel?: string;\n }\n\n export interface Style {\n item?: {\n root?: {\n background?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n borderColor?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n color?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n focusRing?: {\n borderColor?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n dismissButton?: {\n color?: {\n active?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n default?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n hover?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n };\n focusRing?: {\n borderColor?: {\n error?: string;\n info?: string;\n inProgress?: string;\n success?: string;\n warning?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n };\n notificationBar?: {\n root?: {\n background?: {\n active?: string;\n default?: string;\n hover?: string;\n };\n borderColor?: {\n active?: string;\n default?: string;\n hover?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n color?: {\n active?: string;\n default?: string;\n hover?: string;\n };\n };\n expandButton?: {\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n };\n }\n\n export type Type = 'success' | 'warning' | 'info' | 'error' | 'in-progress';\n export type AriaRole = 'alert' | 'status';\n}\n\nexport interface FlashbarProps extends BaseComponentProps {\n /**\n * Specifies flash messages that appear in the same order that they are listed.\n * The value is an array of flash message definition objects.\n *\n * A flash message object contains the following properties:\n * * `header` (ReactNode) - Specifies the heading text.\n * * `content` (ReactNode) - Specifies the primary text displayed in the flash element.\n * * `type` (string) - Indicates the type of the message to be displayed. Allowed values are as follows: `success, error, warning, info, in-progress`. The default is `info`.\n * * `loading` (boolean) - Replaces the status icon with a spinner and forces the type to `info`.\n * * `dismissible` (boolean) - Determines whether the component includes a close button icon. By default, the close button is not included.\n * When a user clicks on this button the `onDismiss` handler is called.\n * * `dismissLabel` (string) - Specifies an `aria-label` for to the dismiss icon button for improved accessibility.\n * * `statusIconAriaLabel` (string) - Specifies an `aria-label` for to the status icon for improved accessibility.\n * If not provided, `i18nStrings.{type}IconAriaLabel` will be used as a fallback.\n * * `ariaRole` (string) - For flash messages added after page load, specifies how this message is communicated to assistive\n * technology. Use \"status\" for status updates or informational content. Use \"alert\" for important messages that need the\n * user's attention.\n * * `action` (ReactNode) - Specifies an action for the flash message. Although it is technically possible to insert any content,\n * our UX guidelines only allow you to add a button.\n * * `buttonText` (string) - Specifies that an action button should be displayed, with the specified text.\n * When a user clicks on this button the `onButtonClick` handler is called.\n * If the `action` property is set, this property is ignored. **Deprecated**, replaced by `action`.\n * * `onButtonClick` (event => void) - Called when a user clicks on the action button. This is not called if you create a custom button\n * using the `action` property. **Deprecated**, replaced by `action`.\n * * `onDismiss` (event => void) - (Optional) Called when a user clicks on the dismiss button.\n * * `id` (string) - Specifies a unique flash message identifier. This property is used in two ways:\n * 1. As a [keys](https://reactjs.org/docs/lists-and-keys.html#keys) source for React rendering.\n * 2. To identify which flash message will be removed from the DOM when it is dismissed, to animate it out.\n * * `persistenceConfig` (FlashbarProps.PersistenceConfig) - Config to persist dismiss state for dismissable Flashbar item, used only in AWS Consoles.\n * * `uniqueKey` (string) - This key to store the persistence state, it must be unique across your console.\n * * `crossServicePersistence` (boolean) - If true, the persistence state will be shared across AWS services.\n * * `analyticsMetadata` (FlashbarProps.ItemAnalyticsMetadata) - (Optional) Specifies additional analytics-related metadata.\n * * `suppressFlowMetricEvents` - Prevent this item from generating events related to flow metrics.\n * @analytics\n */\n items: ReadonlyArray<FlashbarProps.MessageDefinition>;\n\n /**\n * Specifies whether flash messages should be stacked.\n */\n stackItems?: boolean;\n\n /**\n * An object containing all the necessary localized strings required by the component. The object should contain:\n *\n * * `ariaLabel` - Specifies the ARIA label for the list of notifications.\n *\n * If `stackItems` is set to `true`, it should also contain:\n *\n * * `notificationBarAriaLabel` - (optional) Specifies the ARIA label for the notification bar\n * * `notificationBarText` - (optional) Specifies the text shown in the notification bar\n * * `errorIconAriaLabel` - (optional) Specifies the ARIA label for the icon displayed next to the number of items of type `error`.\n * * `warningIconAriaLabel` - (optional) Specifies the ARIA label for the icon displayed next to the number of items of type `warning`.\n * * `infoIconAriaLabel` - (optional) Specifies the ARIA label for the icon displayed next to the number of items of type `info`.\n * * `successIconAriaLabel` - (optional) Specifies the ARIA label for the icon displayed next to the number of items of type `success`.\n * * `inProgressIconAriaLabel` - (optional) Specifies the ARIA label for the icon displayed next to the number of items of type `in-progress` or with `loading` set to `true`.\n * @i18n\n */\n i18nStrings?: FlashbarProps.I18nStrings;\n\n /**\n * @awsuiSystem core\n */\n style?: FlashbarProps.Style;\n}\n\nexport type InternalFlashbarProps = FlashbarProps & InternalBaseComponentProps;\n"]}
|
package/index.d.ts
CHANGED
|
@@ -48,7 +48,6 @@ export { default as LiveRegion, LiveRegionProps } from './live-region';
|
|
|
48
48
|
export { default as MixedLineBarChart, MixedLineBarChartProps } from './mixed-line-bar-chart';
|
|
49
49
|
export { default as Modal, ModalProps } from './modal';
|
|
50
50
|
export { default as Multiselect, MultiselectProps } from './multiselect';
|
|
51
|
-
export { default as NavigableGroup, NavigableGroupProps } from './navigable-group';
|
|
52
51
|
export { default as Pagination, PaginationProps } from './pagination';
|
|
53
52
|
export { default as PieChart, PieChartProps } from './pie-chart';
|
|
54
53
|
export { default as Popover, PopoverProps } from './popover';
|
package/index.js
CHANGED
|
@@ -48,7 +48,6 @@ export { default as LiveRegion } from './live-region';
|
|
|
48
48
|
export { default as MixedLineBarChart } from './mixed-line-bar-chart';
|
|
49
49
|
export { default as Modal } from './modal';
|
|
50
50
|
export { default as Multiselect } from './multiselect';
|
|
51
|
-
export { default as NavigableGroup } from './navigable-group';
|
|
52
51
|
export { default as Pagination } from './pagination';
|
|
53
52
|
export { default as PieChart } from './pie-chart';
|
|
54
53
|
export { default as Popover } from './popover';
|
package/internal/environment.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export var PACKAGE_SOURCE = "components";
|
|
2
|
-
export var PACKAGE_VERSION = "3.0.0 (
|
|
3
|
-
export var GIT_SHA = "
|
|
2
|
+
export var PACKAGE_VERSION = "3.0.0 (fe52d2c1)";
|
|
3
|
+
export var GIT_SHA = "fe52d2c1";
|
|
4
4
|
export var THEME = "open-source-visual-refresh";
|
|
5
5
|
export var SYSTEM = "console";
|
|
6
6
|
export var ALWAYS_VISUAL_REFRESH = true;
|
package/internal/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NavigableGroupProps } from './interfaces';
|
|
3
3
|
export { NavigableGroupProps };
|
|
4
|
+
declare const NavigableGroup: React.ForwardRefExoticComponent<NavigableGroupProps & React.RefAttributes<NavigableGroupProps.Ref>>;
|
|
4
5
|
/**
|
|
5
6
|
* @awsuiSystem core
|
|
6
7
|
*/
|
|
7
|
-
declare const NavigableGroup: React.ForwardRefExoticComponent<NavigableGroupProps & React.RefAttributes<NavigableGroupProps.Ref>>;
|
|
8
8
|
export default NavigableGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/navigable-group/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/navigable-group/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B,QAAA,MAAM,cAAc,qGAMlB,CAAC;AAIH;;GAEG;AACH,eAAe,cAAc,CAAC"}
|
package/navigable-group/index.js
CHANGED
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { applyDisplayName } from '../internal/utils/apply-display-name';
|
|
8
|
-
import { getExternalProps } from '../internal/utils/external-props';
|
|
9
|
-
import InternalNavigableGroup from './internal';
|
|
10
|
-
/**
|
|
11
|
-
* @awsuiSystem core
|
|
12
|
-
*/
|
|
13
|
-
const NavigableGroup = React.forwardRef(({ ...rest }, ref) => {
|
|
14
|
-
const baseProps = getBaseProps(rest);
|
|
15
|
-
const baseComponentProps = useBaseComponent('NavigableGroup');
|
|
16
|
-
const externalProps = getExternalProps(rest);
|
|
17
|
-
return React.createElement(InternalNavigableGroup, { ...baseProps, ...baseComponentProps, ...externalProps, ref: ref });
|
|
18
|
-
});
|
|
19
|
-
applyDisplayName(NavigableGroup, 'NavigableGroup');
|
|
20
|
-
export default NavigableGroup;
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
3
|
+
|
|
4
|
+
export default function NavigableGroup(props) {
|
|
5
|
+
throw new Error('The component NavigableGroup is not supported in this package');
|
|
6
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/navigable-group/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,sBAAsB,MAAM,YAAY,CAAC;AAIhD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/navigable-group/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,sBAAsB,MAAM,YAAY,CAAC;AAIhD,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,EAAE,GAAG,IAAI,EAAuB,EAAE,GAAuC,EAAE,EAAE;IACpH,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAC9D,MAAM,aAAa,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAE7C,OAAO,oBAAC,sBAAsB,OAAK,SAAS,KAAM,kBAAkB,KAAM,aAAa,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AACxG,CAAC,CAAC,CAAC;AAEH,gBAAgB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AAEnD;;GAEG;AACH,eAAe,cAAc,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React from 'react';\n\nimport { getBaseProps } from '../internal/base-component';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { getExternalProps } from '../internal/utils/external-props';\nimport { NavigableGroupProps } from './interfaces';\nimport InternalNavigableGroup from './internal';\n\nexport { NavigableGroupProps };\n\nconst NavigableGroup = React.forwardRef(({ ...rest }: NavigableGroupProps, ref: React.Ref<NavigableGroupProps.Ref>) => {\n const baseProps = getBaseProps(rest);\n const baseComponentProps = useBaseComponent('NavigableGroup');\n const externalProps = getExternalProps(rest);\n\n return <InternalNavigableGroup {...baseProps} {...baseComponentProps} {...externalProps} ref={ref} />;\n});\n\napplyDisplayName(NavigableGroup, 'NavigableGroup');\n\n/**\n * @awsuiSystem core\n */\nexport default NavigableGroup;\n"]}
|
package/package.json
CHANGED
|
@@ -81,7 +81,6 @@
|
|
|
81
81
|
"./mixed-line-bar-chart": "./mixed-line-bar-chart/index.js",
|
|
82
82
|
"./modal": "./modal/index.js",
|
|
83
83
|
"./multiselect": "./multiselect/index.js",
|
|
84
|
-
"./navigable-group": "./navigable-group/index.js",
|
|
85
84
|
"./pagination": "./pagination/index.js",
|
|
86
85
|
"./pie-chart": "./pie-chart/index.js",
|
|
87
86
|
"./popover": "./popover/index.js",
|
|
@@ -154,7 +153,7 @@
|
|
|
154
153
|
"./internal/base-component/index.js",
|
|
155
154
|
"./internal/base-component/styles.css.js"
|
|
156
155
|
],
|
|
157
|
-
"version": "3.0.
|
|
156
|
+
"version": "3.0.1144",
|
|
158
157
|
"repository": {
|
|
159
158
|
"type": "git",
|
|
160
159
|
"url": "https://github.com/cloudscape-design/components.git"
|
package/popover/arrow.d.ts
CHANGED
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { InternalPosition } from './interfaces';
|
|
3
3
|
interface ArrowProps {
|
|
4
4
|
position: InternalPosition | null;
|
|
5
|
+
variant?: 'default' | 'info';
|
|
5
6
|
}
|
|
6
|
-
declare const _default: React.MemoExoticComponent<(
|
|
7
|
+
declare const _default: React.MemoExoticComponent<({
|
|
8
|
+
position,
|
|
9
|
+
variant
|
|
10
|
+
}: ArrowProps) => JSX.Element>;
|
|
7
11
|
export default _default;
|
package/popover/arrow.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrow.d.ts","sourceRoot":"","sources":["../../../src/popover/arrow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIhD,UAAU,UAAU;IAClB,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"arrow.d.ts","sourceRoot":"","sources":["../../../src/popover/arrow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIhD,UAAU,UAAU;IAClB,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAC9B;0EAEqC,UAAU;AAUhD,wBAAiC"}
|
package/popover/arrow.js
CHANGED
|
@@ -4,9 +4,9 @@ import React from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
|
|
6
6
|
import styles from './styles.css.js';
|
|
7
|
-
const Arrow = (
|
|
7
|
+
const Arrow = ({ position, variant }) => {
|
|
8
8
|
const isVisualRefresh = useVisualRefresh();
|
|
9
|
-
return (React.createElement("div", { className: clsx(styles.arrow,
|
|
9
|
+
return (React.createElement("div", { className: clsx(styles.arrow, styles[`arrow-position-${position}`], styles[`arrow-variant-${variant}`]) },
|
|
10
10
|
React.createElement("div", { className: styles['arrow-outer'] }),
|
|
11
11
|
React.createElement("div", { className: clsx(styles['arrow-inner'], isVisualRefresh && styles.refresh) })));
|
|
12
12
|
};
|
package/popover/arrow.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrow.js","sourceRoot":"","sources":["../../../src/popover/arrow.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGrE,OAAO,MAAM,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"arrow.js","sourceRoot":"","sources":["../../../src/popover/arrow.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGrE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAOrC,MAAM,KAAK,GAAG,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAc,EAAE,EAAE;IAClD,MAAM,eAAe,GAAG,gBAAgB,EAAE,CAAC;IAC3C,OAAO,CACL,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,kBAAkB,QAAQ,EAAE,CAAC,EAAE,MAAM,CAAC,iBAAiB,OAAO,EAAE,CAAC,CAAC;QAC1G,6BAAK,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,GAAI;QACzC,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,eAAe,IAAI,MAAM,CAAC,OAAO,CAAC,GAAI,CAC9E,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { InternalPosition } from './interfaces';\n\nimport styles from './styles.css.js';\n\ninterface ArrowProps {\n position: InternalPosition | null;\n variant?: 'default' | 'info';\n}\n\nconst Arrow = ({ position, variant }: ArrowProps) => {\n const isVisualRefresh = useVisualRefresh();\n return (\n <div className={clsx(styles.arrow, styles[`arrow-position-${position}`], styles[`arrow-variant-${variant}`])}>\n <div className={styles['arrow-outer']} />\n <div className={clsx(styles['arrow-inner'], isVisualRefresh && styles.refresh)} />\n </div>\n );\n};\n\nexport default React.memo(Arrow);\n"]}
|