@cloudscape-design/components 3.0.244 → 3.0.246
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-trigger.d.ts.map +1 -1
- package/annotation-context/annotation/annotation-trigger.js +1 -3
- package/annotation-context/annotation/annotation-trigger.js.map +1 -1
- package/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +29 -29
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/visual-refresh/styles.css.js +61 -61
- package/app-layout/visual-refresh/styles.scoped.css +151 -151
- package/app-layout/visual-refresh/styles.selectors.js +61 -61
- package/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
- package/app-layout/visual-refresh/trigger-button.js +2 -4
- package/app-layout/visual-refresh/trigger-button.js.map +1 -1
- package/breadcrumb-group/item/item.d.ts.map +1 -1
- package/breadcrumb-group/item/item.js +2 -5
- package/breadcrumb-group/item/item.js.map +1 -1
- package/breadcrumb-group/item/styles.css.js +9 -9
- package/breadcrumb-group/item/styles.scoped.css +17 -17
- package/breadcrumb-group/item/styles.selectors.js +9 -9
- package/button/internal.d.ts.map +1 -1
- package/button/internal.js +2 -3
- package/button/internal.js.map +1 -1
- package/button/styles.css.js +19 -18
- package/button/styles.scoped.css +136 -136
- package/button/styles.selectors.js +19 -18
- package/calendar/grid/index.d.ts.map +1 -1
- package/calendar/grid/index.js +2 -4
- package/calendar/grid/index.js.map +1 -1
- package/calendar/styles.css.js +18 -18
- package/calendar/styles.scoped.css +38 -38
- package/calendar/styles.selectors.js +18 -18
- package/code-editor/styles.css.js +32 -32
- package/code-editor/styles.scoped.css +109 -109
- package/code-editor/styles.selectors.js +32 -32
- package/code-editor/tab-button.d.ts.map +1 -1
- package/code-editor/tab-button.js +2 -4
- package/code-editor/tab-button.js.map +1 -1
- package/date-picker/index.d.ts.map +1 -1
- package/date-picker/index.js +1 -3
- package/date-picker/index.js.map +1 -1
- package/date-picker/styles.css.js +7 -7
- package/date-picker/styles.scoped.css +9 -9
- package/date-picker/styles.selectors.js +7 -7
- package/date-range-picker/calendar/grids/grid.d.ts.map +1 -1
- package/date-range-picker/calendar/grids/grid.js +1 -3
- package/date-range-picker/calendar/grids/grid.js.map +1 -1
- package/date-range-picker/calendar/grids/index.d.ts.map +1 -1
- package/date-range-picker/calendar/grids/index.js +1 -3
- package/date-range-picker/calendar/grids/index.js.map +1 -1
- package/date-range-picker/calendar/grids/styles.css.js +25 -25
- package/date-range-picker/calendar/grids/styles.scoped.css +42 -42
- package/date-range-picker/calendar/grids/styles.selectors.js +25 -25
- package/date-range-picker/dropdown.d.ts.map +1 -1
- package/date-range-picker/dropdown.js +1 -3
- package/date-range-picker/dropdown.js.map +1 -1
- package/date-range-picker/styles.css.js +38 -38
- package/date-range-picker/styles.scoped.css +45 -45
- package/date-range-picker/styles.selectors.js +38 -38
- package/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/expandable-section/expandable-section-header.js +8 -11
- package/expandable-section/expandable-section-header.js.map +1 -1
- package/expandable-section/styles.css.js +23 -23
- package/expandable-section/styles.scoped.css +44 -44
- package/expandable-section/styles.selectors.js +23 -23
- package/flashbar/collapsible-flashbar.d.ts.map +1 -1
- package/flashbar/collapsible-flashbar.js +1 -3
- package/flashbar/collapsible-flashbar.js.map +1 -1
- package/flashbar/flash.d.ts.map +1 -1
- package/flashbar/flash.js +1 -3
- package/flashbar/flash.js.map +1 -1
- package/flashbar/styles.css.js +45 -45
- package/flashbar/styles.scoped.css +144 -144
- package/flashbar/styles.selectors.js +45 -45
- package/internal/components/abstract-switch/index.d.ts.map +1 -1
- package/internal/components/abstract-switch/index.js +8 -4
- package/internal/components/abstract-switch/index.js.map +1 -1
- package/internal/components/abstract-switch/styles.css.js +13 -13
- package/internal/components/abstract-switch/styles.scoped.css +19 -19
- package/internal/components/abstract-switch/styles.selectors.js +13 -13
- package/internal/components/button-trigger/index.d.ts.map +1 -1
- package/internal/components/button-trigger/index.js +1 -3
- package/internal/components/button-trigger/index.js.map +1 -1
- package/internal/components/button-trigger/styles.css.js +9 -9
- package/internal/components/button-trigger/styles.scoped.css +23 -23
- package/internal/components/button-trigger/styles.selectors.js +9 -9
- package/internal/components/chart-legend/index.d.ts.map +1 -1
- package/internal/components/chart-legend/index.js +2 -4
- package/internal/components/chart-legend/index.js.map +1 -1
- package/internal/components/chart-legend/styles.css.js +6 -6
- package/internal/components/chart-legend/styles.scoped.css +15 -15
- package/internal/components/chart-legend/styles.selectors.js +6 -6
- package/internal/components/chart-plot/focus-outline.d.ts.map +1 -1
- package/internal/components/chart-plot/focus-outline.js +25 -3
- package/internal/components/chart-plot/focus-outline.js.map +1 -1
- package/internal/components/filtering-token/index.d.ts +2 -1
- package/internal/components/filtering-token/index.d.ts.map +1 -1
- package/internal/components/filtering-token/index.js +3 -5
- package/internal/components/filtering-token/index.js.map +1 -1
- package/internal/components/filtering-token/styles.css.js +7 -7
- package/internal/components/filtering-token/styles.scoped.css +13 -13
- package/internal/components/filtering-token/styles.selectors.js +7 -7
- package/internal/components/menu-dropdown/index.d.ts.map +1 -1
- package/internal/components/menu-dropdown/index.js +2 -4
- package/internal/components/menu-dropdown/index.js.map +1 -1
- package/internal/components/menu-dropdown/styles.css.js +7 -7
- package/internal/components/menu-dropdown/styles.scoped.css +13 -13
- package/internal/components/menu-dropdown/styles.selectors.js +7 -7
- package/internal/components/options-list/utils/use-keyboard.d.ts +0 -2
- package/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
- package/internal/components/options-list/utils/use-keyboard.js +2 -3
- package/internal/components/options-list/utils/use-keyboard.js.map +1 -1
- package/internal/components/token-list/index.d.ts +1 -1
- package/internal/components/token-list/index.d.ts.map +1 -1
- package/internal/components/token-list/index.js +3 -3
- package/internal/components/token-list/index.js.map +1 -1
- package/internal/components/token-list/interfaces.d.ts +0 -1
- package/internal/components/token-list/interfaces.d.ts.map +1 -1
- package/internal/components/token-list/interfaces.js.map +1 -1
- package/internal/components/token-list/styles.css.js +9 -9
- package/internal/components/token-list/styles.scoped.css +20 -20
- package/internal/components/token-list/styles.selectors.js +9 -9
- package/internal/components/token-list/token-focus-controller.js +1 -1
- package/internal/components/token-list/token-focus-controller.js.map +1 -1
- package/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
- package/internal/components/token-list/token-limit-toggle.js +1 -3
- package/internal/components/token-list/token-limit-toggle.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/hooks/focus-visible/index.d.ts +2 -5
- package/internal/hooks/focus-visible/index.d.ts.map +1 -1
- package/internal/hooks/focus-visible/index.js +42 -22
- package/internal/hooks/focus-visible/index.js.map +1 -1
- package/internal/hooks/use-base-component/index.d.ts.map +1 -1
- package/internal/hooks/use-base-component/index.js +2 -0
- package/internal/hooks/use-base-component/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/link/internal.d.ts.map +1 -1
- package/link/internal.js +1 -3
- package/link/internal.js.map +1 -1
- package/link/styles.css.js +20 -20
- package/link/styles.scoped.css +71 -71
- package/link/styles.selectors.js +20 -20
- package/package.json +1 -1
- package/pagination/internal.d.ts.map +1 -1
- package/pagination/internal.js +1 -3
- package/pagination/internal.js.map +1 -1
- package/pagination/styles.css.js +9 -9
- package/pagination/styles.scoped.css +23 -23
- package/pagination/styles.selectors.js +9 -9
- package/popover/internal.d.ts.map +1 -1
- package/popover/internal.js +1 -3
- package/popover/internal.js.map +1 -1
- package/popover/styles.css.js +50 -50
- package/popover/styles.scoped.css +63 -63
- package/popover/styles.selectors.js +50 -50
- package/property-filter/index.d.ts.map +1 -1
- package/property-filter/index.js +2 -2
- package/property-filter/index.js.map +1 -1
- package/property-filter/token.d.ts.map +1 -1
- package/property-filter/token.js +1 -1
- package/property-filter/token.js.map +1 -1
- package/segmented-control/segment.d.ts.map +1 -1
- package/segmented-control/segment.js +1 -3
- package/segmented-control/segment.js.map +1 -1
- package/segmented-control/styles.css.js +14 -14
- package/segmented-control/styles.scoped.css +33 -33
- package/segmented-control/styles.selectors.js +14 -14
- package/select/utils/use-select.d.ts.map +1 -1
- package/select/utils/use-select.js +0 -3
- package/select/utils/use-select.js.map +1 -1
- package/side-navigation/internal.d.ts.map +1 -1
- package/side-navigation/internal.js +2 -5
- package/side-navigation/internal.js.map +1 -1
- package/side-navigation/styles.css.js +27 -27
- package/side-navigation/styles.scoped.css +37 -37
- package/side-navigation/styles.selectors.js +27 -27
- package/split-panel/index.d.ts.map +1 -1
- package/split-panel/index.js +1 -3
- package/split-panel/index.js.map +1 -1
- package/split-panel/styles.css.js +59 -59
- package/split-panel/styles.scoped.css +81 -81
- package/split-panel/styles.selectors.js +59 -59
- package/table/body-cell/index.d.ts.map +1 -1
- package/table/body-cell/index.js +3 -3
- package/table/body-cell/index.js.map +1 -1
- package/table/body-cell/styles.css.js +18 -18
- package/table/body-cell/styles.scoped.css +57 -55
- package/table/body-cell/styles.selectors.js +18 -18
- package/table/header-cell/index.d.ts.map +1 -1
- package/table/header-cell/index.js +11 -9
- package/table/header-cell/index.js.map +1 -1
- package/table/header-cell/styles.css.js +19 -19
- package/table/header-cell/styles.scoped.css +32 -32
- package/table/header-cell/styles.selectors.js +19 -19
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +1 -3
- package/table/internal.js.map +1 -1
- package/table/resizer/styles.css.js +6 -6
- package/table/resizer/styles.scoped.css +11 -11
- package/table/resizer/styles.selectors.js +6 -6
- package/table/styles.css.js +33 -33
- package/table/styles.scoped.css +41 -41
- package/table/styles.selectors.js +33 -33
- package/tabs/index.d.ts.map +1 -1
- package/tabs/index.js +8 -3
- package/tabs/index.js.map +1 -1
- package/tabs/styles.css.js +21 -21
- package/tabs/styles.scoped.css +38 -38
- package/tabs/styles.selectors.js +21 -21
- package/tabs/tab-header-bar.d.ts.map +1 -1
- package/tabs/tab-header-bar.js +9 -3
- package/tabs/tab-header-bar.js.map +1 -1
- package/tag-editor/internal.d.ts.map +1 -1
- package/tag-editor/internal.js +2 -4
- package/tag-editor/internal.js.map +1 -1
- package/tag-editor/styles.css.js +3 -3
- package/tag-editor/styles.scoped.css +10 -10
- package/tag-editor/styles.selectors.js +3 -3
- package/token-group/dismiss-button.d.ts.map +1 -1
- package/token-group/dismiss-button.js +1 -3
- package/token-group/dismiss-button.js.map +1 -1
- package/token-group/internal.js +2 -2
- package/token-group/internal.js.map +1 -1
- package/token-group/styles.css.js +5 -5
- package/token-group/styles.scoped.css +12 -12
- package/token-group/styles.selectors.js +5 -5
- package/token-group/token.d.ts +3 -5
- package/token-group/token.d.ts.map +1 -1
- package/token-group/token.js +2 -2
- package/token-group/token.js.map +1 -1
- package/top-navigation/1.0-beta/internal.d.ts.map +1 -1
- package/top-navigation/1.0-beta/internal.js +1 -3
- package/top-navigation/1.0-beta/internal.js.map +1 -1
- package/top-navigation/1.0-beta/styles.css.js +25 -25
- package/top-navigation/1.0-beta/styles.scoped.css +42 -42
- package/top-navigation/1.0-beta/styles.selectors.js +25 -25
- package/top-navigation/interfaces.d.ts +4 -0
- package/top-navigation/interfaces.d.ts.map +1 -1
- package/top-navigation/interfaces.js.map +1 -1
- package/top-navigation/internal.d.ts.map +1 -1
- package/top-navigation/internal.js +1 -3
- package/top-navigation/internal.js.map +1 -1
- package/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
- package/top-navigation/parts/overflow-menu/menu-item.js +9 -13
- package/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
- package/top-navigation/parts/utility.d.ts.map +1 -1
- package/top-navigation/parts/utility.js +2 -1
- package/top-navigation/parts/utility.js.map +1 -1
- package/top-navigation/styles.css.js +47 -47
- package/top-navigation/styles.scoped.css +66 -66
- package/top-navigation/styles.selectors.js +47 -47
- package/tutorial-panel/components/tutorial-list/index.d.ts.map +1 -1
- package/tutorial-panel/components/tutorial-list/index.js +1 -3
- package/tutorial-panel/components/tutorial-list/index.js.map +1 -1
- package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
- package/tutorial-panel/components/tutorial-list/styles.scoped.css +27 -27
- package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
- package/wizard/styles.css.js +32 -32
- package/wizard/styles.scoped.css +63 -63
- package/wizard/styles.selectors.js +32 -32
- package/wizard/wizard-form.d.ts.map +1 -1
- package/wizard/wizard-form.js +1 -3
- package/wizard/wizard-form.js.map +1 -1
package/token-group/internal.js
CHANGED
|
@@ -17,10 +17,10 @@ export default function InternalTokenGroup(_a) {
|
|
|
17
17
|
const baseProps = getBaseProps(props);
|
|
18
18
|
const hasItems = items.length > 0;
|
|
19
19
|
return (React.createElement("div", Object.assign({}, baseProps, { className: clsx(baseProps.className, styles.root, hasItems && styles['has-items']), ref: __internalRootRef }),
|
|
20
|
-
React.createElement(TokenList, { alignment: alignment, items: items, limit: limit, renderItem: (item, itemIndex) => (React.createElement(Token, { dismissLabel: item.dismissLabel, onDismiss: () => {
|
|
20
|
+
React.createElement(TokenList, { alignment: alignment, items: items, limit: limit, renderItem: (item, itemIndex) => (React.createElement(Token, { ariaLabel: item.label, dismissLabel: item.dismissLabel, onDismiss: () => {
|
|
21
21
|
fireNonCancelableEvent(onDismiss, { itemIndex });
|
|
22
22
|
setRemovedItemIndex(itemIndex);
|
|
23
23
|
}, disabled: item.disabled },
|
|
24
|
-
React.createElement(Option, { option: item, isGenericGroup: false }))),
|
|
24
|
+
React.createElement(Option, { option: item, isGenericGroup: false }))), i18nStrings: i18nStrings, removedItemIndex: removedItemIndex })));
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=internal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["token-group/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,eAAe,MA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C,EAClF,GAAG,EAAE,iBAAiB;QAEtB,oBAAC,SAAS,IACR,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,CAC/B,oBAAC,KAAK,IACJ,SAAS,EAAE,IAAI,CAAC,KAAK,EACrB,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,SAAS,EAAE,GAAG,EAAE;oBACd,sBAAsB,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;oBACjD,mBAAmB,CAAC,SAAS,CAAC,CAAC;gBACjC,CAAC,EACD,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBAEvB,oBAAC,MAAM,IAAC,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,GAAI,CACzC,CACT,EACD,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,GAClC,CACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\n\nimport Option from '../internal/components/option';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n\nimport { TokenGroupProps } from './interfaces';\nimport { SomeRequired } from '../internal/types';\nimport { getBaseProps } from '../internal/base-component';\nimport clsx from 'clsx';\nimport styles from './styles.css.js';\nimport TokenList from '../internal/components/token-list';\nimport { Token } from './token';\n\ntype InternalTokenGroupProps = SomeRequired<TokenGroupProps, 'items' | 'alignment'> & InternalBaseComponentProps;\n\nexport default function InternalTokenGroup({\n alignment,\n items,\n onDismiss,\n limit,\n i18nStrings,\n __internalRootRef,\n ...props\n}: InternalTokenGroupProps) {\n checkControlled('TokenGroup', 'items', items, 'onDismiss', onDismiss);\n\n const [removedItemIndex, setRemovedItemIndex] = useState<null | number>(null);\n\n const baseProps = getBaseProps(props);\n const hasItems = items.length > 0;\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.root, hasItems && styles['has-items'])}\n ref={__internalRootRef}\n >\n <TokenList\n alignment={alignment}\n items={items}\n limit={limit}\n renderItem={(item, itemIndex) => (\n <Token\n ariaLabel={item.label}\n dismissLabel={item.dismissLabel}\n onDismiss={() => {\n fireNonCancelableEvent(onDismiss, { itemIndex });\n setRemovedItemIndex(itemIndex);\n }}\n disabled={item.disabled}\n >\n <Option option={item} isGenericGroup={false} />\n </Token>\n )}\n i18nStrings={i18nStrings}\n removedItemIndex={removedItemIndex}\n />\n </div>\n );\n}\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"has-items": "awsui_has-
|
|
6
|
-
"token": "
|
|
7
|
-
"dismiss-button": "awsui_dismiss-
|
|
8
|
-
"token-disabled": "awsui_token-
|
|
4
|
+
"root": "awsui_root_dm8gx_on6jb_97",
|
|
5
|
+
"has-items": "awsui_has-items_dm8gx_on6jb_109",
|
|
6
|
+
"token": "awsui_token_dm8gx_on6jb_113",
|
|
7
|
+
"dismiss-button": "awsui_dismiss-button_dm8gx_on6jb_125",
|
|
8
|
+
"token-disabled": "awsui_token-disabled_dm8gx_on6jb_159"
|
|
9
9
|
};
|
|
10
10
|
|
|
@@ -94,7 +94,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
94
94
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
95
95
|
SPDX-License-Identifier: Apache-2.0
|
|
96
96
|
*/
|
|
97
|
-
.
|
|
97
|
+
.awsui_root_dm8gx_on6jb_97:not(#\9) {
|
|
98
98
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
99
99
|
border-collapse: separate;
|
|
100
100
|
border-spacing: 0;
|
|
@@ -132,11 +132,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
132
132
|
-webkit-font-smoothing: auto;
|
|
133
133
|
-moz-osx-font-smoothing: auto;
|
|
134
134
|
}
|
|
135
|
-
.
|
|
135
|
+
.awsui_root_dm8gx_on6jb_97.awsui_has-items_dm8gx_on6jb_109:not(#\9) {
|
|
136
136
|
padding-top: var(--space-xs-rsr2qu, 8px);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
.
|
|
139
|
+
.awsui_token_dm8gx_on6jb_113:not(#\9) {
|
|
140
140
|
height: 100%;
|
|
141
141
|
border: var(--border-field-width-idlekx, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
|
|
142
142
|
padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-xxs-ynfts5, 4px) var(--space-scaled-xxs-95dhkm, 4px) var(--space-field-horizontal-89h2yr, 12px);
|
|
@@ -148,21 +148,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
148
148
|
box-sizing: border-box;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
.awsui_dismiss-
|
|
151
|
+
.awsui_dismiss-button_dm8gx_on6jb_125:not(#\9) {
|
|
152
152
|
margin: -1px -1px 0 var(--space-xxs-ynfts5, 4px);
|
|
153
153
|
border: 1px solid transparent;
|
|
154
154
|
padding: 0 var(--space-xxs-ynfts5, 4px);
|
|
155
155
|
color: var(--color-text-button-inline-icon-default-w65lqn, #0972d3);
|
|
156
156
|
background-color: transparent;
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
body[data-awsui-focus-visible=true] .awsui_dismiss-button_dm8gx_on6jb_125:not(#\9):focus {
|
|
159
159
|
position: relative;
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
body[data-awsui-focus-visible=true] .awsui_dismiss-button_dm8gx_on6jb_125:not(#\9):focus {
|
|
162
162
|
outline: 2px dotted transparent;
|
|
163
163
|
outline-offset: calc(0px - 1px);
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
body[data-awsui-focus-visible=true] .awsui_dismiss-button_dm8gx_on6jb_125:not(#\9):focus::before {
|
|
166
166
|
content: " ";
|
|
167
167
|
display: block;
|
|
168
168
|
position: absolute;
|
|
@@ -173,25 +173,25 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
173
173
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
174
174
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
175
175
|
}
|
|
176
|
-
.awsui_dismiss-
|
|
176
|
+
.awsui_dismiss-button_dm8gx_on6jb_125:not(#\9):focus {
|
|
177
177
|
outline: none;
|
|
178
178
|
text-decoration: none;
|
|
179
179
|
}
|
|
180
|
-
.awsui_dismiss-
|
|
180
|
+
.awsui_dismiss-button_dm8gx_on6jb_125:not(#\9):hover {
|
|
181
181
|
cursor: pointer;
|
|
182
182
|
color: var(--color-text-button-inline-icon-hover-wd5icp, #033160);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
.awsui_token-
|
|
185
|
+
.awsui_token-disabled_dm8gx_on6jb_159:not(#\9) {
|
|
186
186
|
border-color: var(--color-border-control-disabled-vx8bco, #d1d5db);
|
|
187
187
|
background-color: var(--color-background-container-content-i8i4a0, #ffffff);
|
|
188
188
|
color: var(--color-text-disabled-a2nkh4, #9ba7b6);
|
|
189
189
|
pointer-events: none;
|
|
190
190
|
}
|
|
191
|
-
.awsui_token-
|
|
191
|
+
.awsui_token-disabled_dm8gx_on6jb_159 > .awsui_dismiss-button_dm8gx_on6jb_125:not(#\9) {
|
|
192
192
|
color: var(--color-text-button-inline-icon-disabled-gfhvz7, #9ba7b6);
|
|
193
193
|
}
|
|
194
|
-
.awsui_token-
|
|
194
|
+
.awsui_token-disabled_dm8gx_on6jb_159 > .awsui_dismiss-button_dm8gx_on6jb_125:not(#\9):hover {
|
|
195
195
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
196
196
|
cursor: auto;
|
|
197
197
|
color: var(--color-text-button-inline-icon-disabled-gfhvz7, #9ba7b6);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"has-items": "awsui_has-
|
|
7
|
-
"token": "
|
|
8
|
-
"dismiss-button": "awsui_dismiss-
|
|
9
|
-
"token-disabled": "awsui_token-
|
|
5
|
+
"root": "awsui_root_dm8gx_on6jb_97",
|
|
6
|
+
"has-items": "awsui_has-items_dm8gx_on6jb_109",
|
|
7
|
+
"token": "awsui_token_dm8gx_on6jb_113",
|
|
8
|
+
"dismiss-button": "awsui_dismiss-button_dm8gx_on6jb_125",
|
|
9
|
+
"token-disabled": "awsui_token-disabled_dm8gx_on6jb_159"
|
|
10
10
|
};
|
|
11
11
|
|
package/token-group/token.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface
|
|
2
|
+
interface TokenProps {
|
|
3
3
|
children: React.ReactNode;
|
|
4
|
+
ariaLabel?: string;
|
|
4
5
|
dismissLabel?: string;
|
|
5
6
|
onDismiss?: () => void;
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export declare function Token({ disabled, dismissLabel, onDismiss, children }: TokenProps): JSX.Element;
|
|
9
|
+
export declare function Token({ ariaLabel, disabled, dismissLabel, onDismiss, children }: TokenProps): JSX.Element;
|
|
12
10
|
export {};
|
|
13
11
|
//# sourceMappingURL=token.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.d.ts","sourceRoot":"lib/default/","sources":["token-group/token.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,
|
|
1
|
+
{"version":3,"file":"token.d.ts","sourceRoot":"lib/default/","sources":["token-group/token.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,UAAU;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,UAAU,eAY3F"}
|
package/token-group/token.js
CHANGED
|
@@ -4,8 +4,8 @@ import React from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import DismissButton from './dismiss-button';
|
|
6
6
|
import styles from './styles.css.js';
|
|
7
|
-
export function Token({ disabled, dismissLabel, onDismiss, children }) {
|
|
8
|
-
return (React.createElement("div", { className: clsx(styles.token, disabled && styles['token-disabled']) },
|
|
7
|
+
export function Token({ ariaLabel, disabled, dismissLabel, onDismiss, children }) {
|
|
8
|
+
return (React.createElement("div", { className: clsx(styles.token, disabled && styles['token-disabled']), role: "group", "aria-label": ariaLabel, "aria-disabled": disabled },
|
|
9
9
|
children,
|
|
10
10
|
onDismiss && React.createElement(DismissButton, { disabled: disabled, dismissLabel: dismissLabel, onDismiss: onDismiss })));
|
|
11
11
|
}
|
package/token-group/token.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.js","sourceRoot":"lib/default/","sources":["token-group/token.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,MAAM,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"token.js","sourceRoot":"lib/default/","sources":["token-group/token.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAUrC,MAAM,UAAU,KAAK,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAc;IAC1F,OAAO,CACL,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAC,EACnE,IAAI,EAAC,OAAO,gBACA,SAAS,mBACN,QAAQ;QAEtB,QAAQ;QACR,SAAS,IAAI,oBAAC,aAAa,IAAC,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,GAAI,CACjG,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport DismissButton from './dismiss-button';\nimport styles from './styles.css.js';\n\ninterface TokenProps {\n children: React.ReactNode;\n ariaLabel?: string;\n dismissLabel?: string;\n onDismiss?: () => void;\n disabled?: boolean;\n}\n\nexport function Token({ ariaLabel, disabled, dismissLabel, onDismiss, children }: TokenProps) {\n return (\n <div\n className={clsx(styles.token, disabled && styles['token-disabled'])}\n role=\"group\"\n aria-label={ariaLabel}\n aria-disabled={disabled}\n >\n {children}\n {onDismiss && <DismissButton disabled={disabled} dismissLabel={dismissLabel} onDismiss={onDismiss} />}\n </div>\n );\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["top-navigation/1.0-beta/internal.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["top-navigation/1.0-beta/internal.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAMrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAQlD,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,GAAG,0BAA0B,CAAC;AAEzF,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,iBAAiB,EACjB,QAAQ,EACR,WAAW,EACX,SAAc,EACd,MAAM,EACN,GAAG,SAAS,EACb,EAAE,0BAA0B,eAkL5B"}
|
|
@@ -7,7 +7,6 @@ import { getBaseProps } from '../../internal/base-component';
|
|
|
7
7
|
import { fireCancelableEvent, isPlainLeftClick } from '../../internal/events';
|
|
8
8
|
import VisualContext from '../../internal/components/visual-context';
|
|
9
9
|
import Portal from '../../internal/components/portal';
|
|
10
|
-
import useFocusVisible from '../../internal/hooks/focus-visible';
|
|
11
10
|
import { useTopNavigation } from './use-top-navigation.js';
|
|
12
11
|
import Utility from './parts/utility';
|
|
13
12
|
import OverflowMenu from './parts/overflow-menu';
|
|
@@ -30,7 +29,6 @@ export default function InternalTopNavigation(_a) {
|
|
|
30
29
|
fireCancelableEvent(identity.onFollow, {}, event);
|
|
31
30
|
}
|
|
32
31
|
};
|
|
33
|
-
const focusVisible = useFocusVisible();
|
|
34
32
|
// Render the top nav twice; once as the top nav that users can see, and another
|
|
35
33
|
// "virtual" top nav used just for calculations. The virtual top nav doesn't react to
|
|
36
34
|
// layout changes and renders two sets of utilities: one with labels and one without.
|
|
@@ -53,7 +51,7 @@ export default function InternalTopNavigation(_a) {
|
|
|
53
51
|
}) },
|
|
54
52
|
React.createElement("div", { className: styles['padding-box'] },
|
|
55
53
|
showIdentity && (React.createElement("div", { className: clsx(styles.identity, !identity.logo && styles['no-logo']) },
|
|
56
|
-
React.createElement("a",
|
|
54
|
+
React.createElement("a", { className: styles['identity-link'], href: identity.href, onClick: onIdentityClick },
|
|
57
55
|
identity.logo && (React.createElement("img", { role: "img", src: (_a = identity.logo) === null || _a === void 0 ? void 0 : _a.src, alt: (_b = identity.logo) === null || _b === void 0 ? void 0 : _b.alt, className: clsx(styles.logo, {
|
|
58
56
|
[styles.narrow]: isNarrowViewport,
|
|
59
57
|
}) })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["top-navigation/1.0-beta/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,aAAa,MAAM,0CAA0C,CAAC;AACrE,OAAO,MAAM,MAAM,kCAAkC,CAAC;AACtD,OAAO,eAAe,MAAM,oCAAoC,CAAC;AAGjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAEjD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAInE,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAOjB;QAPiB,EAC5C,iBAAiB,EACjB,QAAQ,EACR,WAAW,EACX,SAAS,GAAG,EAAE,EACd,MAAM,OAEqB,EADxB,SAAS,cAN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AAC,CAAC;oBAEH,eAAe,IAAI,CAClB,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,iBAAiB,CAAC,EACzB,MAAM,CAAC,4BAA4B,CAAC,EACpC,MAAM,CAAC,sBAAsB,CAAC,CAC/B,0BACoB,cAAc;wBAEnC,oBAAC,YAAY,IACX,SAAS,EAAE,MAAA,MAAA,eAAe,CAAC,aAAa,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,mCAAI,EAAE,EACtE,gBAAgB,EAAE,gBAAgB,IAEjC,WAAW,CAAC,uBAAuB,CACvB,CACX,CACP,CACG,CACF,CACE,CACX,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,6CAAS,SAAS,IAAE,GAAG,EAAE,iBAAiB;QACxC,oBAAC,aAAa,IAAC,WAAW,EAAC,gBAAgB;YACxC,OAAO,CAAC,KAAK,CAAC;YACf,oBAAC,MAAM,QAAE,OAAO,CAAC,IAAI,CAAC,CAAU,CAClB,CACZ,CACP,CAAC;AACJ,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 { InternalBaseComponentProps } from '../../internal/hooks/use-base-component';\nimport { getBaseProps } from '../../internal/base-component';\nimport { fireCancelableEvent, isPlainLeftClick } from '../../internal/events';\nimport VisualContext from '../../internal/components/visual-context';\nimport Portal from '../../internal/components/portal';\nimport useFocusVisible from '../../internal/hooks/focus-visible';\n\nimport { TopNavigationProps } from './interfaces';\nimport { useTopNavigation } from './use-top-navigation.js';\nimport Utility from './parts/utility';\nimport OverflowMenu from './parts/overflow-menu';\n\nimport styles from './styles.css.js';\nimport { checkSafeUrl } from '../../internal/utils/check-safe-url';\n\nexport type InternalTopNavigationProps = TopNavigationProps & InternalBaseComponentProps;\n\nexport default function InternalTopNavigation({\n __internalRootRef,\n identity,\n i18nStrings,\n utilities = [],\n search,\n ...restProps\n}: InternalTopNavigationProps) {\n checkSafeUrl('TopNavigation', identity.href);\n const baseProps = getBaseProps(restProps);\n const { ref, virtualRef, breakpoint, responsiveState, isSearchExpanded, onSearchUtilityClick } = useTopNavigation({\n __internalRootRef,\n identity,\n search,\n utilities,\n });\n\n const isNarrowViewport = breakpoint === 'default';\n const isMediumViewport = breakpoint === 'xxs';\n\n const onIdentityClick = (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n fireCancelableEvent(identity.onFollow, {}, event);\n }\n };\n const focusVisible = useFocusVisible();\n\n // Render the top nav twice; once as the top nav that users can see, and another\n // \"virtual\" top nav used just for calculations. The virtual top nav doesn't react to\n // layout changes and renders two sets of utilities: one with labels and one without.\n const content = (isVirtual: boolean) => {\n const Wrapper = isVirtual ? 'div' : 'header';\n const showIdentity = isVirtual || !isSearchExpanded;\n const showTitle = isVirtual || !responsiveState.hideTitle;\n const showSearchSlot = search && (isVirtual || !responsiveState.hideSearch || isSearchExpanded);\n const showSearchUtility = isVirtual || (search && responsiveState.hideSearch);\n const showUtilities = isVirtual || !isSearchExpanded;\n const showMenuTrigger = isVirtual || (!isSearchExpanded && responsiveState.hideUtilities);\n\n return (\n <Wrapper\n ref={isVirtual ? virtualRef : ref}\n aria-hidden={isVirtual ? true : undefined}\n // False positive, \"Wrapper\" is either a \"div\" or a \"header\"\n // eslint-disable-next-line react/forbid-component-props\n className={clsx(styles['top-navigation'], {\n [styles.hidden]: isVirtual,\n [styles.narrow]: isNarrowViewport,\n [styles.medium]: isMediumViewport,\n })}\n >\n <div className={styles['padding-box']}>\n {showIdentity && (\n <div className={clsx(styles.identity, !identity.logo && styles['no-logo'])}>\n <a {...focusVisible} className={styles['identity-link']} href={identity.href} onClick={onIdentityClick}>\n {identity.logo && (\n <img\n role=\"img\"\n src={identity.logo?.src}\n alt={identity.logo?.alt}\n className={clsx(styles.logo, {\n [styles.narrow]: isNarrowViewport,\n })}\n />\n )}\n {showTitle && <span className={styles.title}>{identity.title}</span>}\n </a>\n </div>\n )}\n\n <div className={styles.inputs}>\n {showSearchSlot && (\n <div className={clsx(styles.search, !isVirtual && isSearchExpanded && styles['search-expanded'])}>\n {search}\n </div>\n )}\n </div>\n\n <div className={styles.utilities}>\n {showSearchUtility && (\n <div\n className={clsx(\n styles['utility-wrapper'],\n styles['utility-type-button'],\n styles['utility-type-button-link']\n )}\n data-utility-special=\"search\"\n >\n <Utility\n hideText={true}\n isNarrowViewport={isNarrowViewport}\n definition={{\n type: 'button',\n iconName: isSearchExpanded ? 'close' : 'search',\n ariaLabel: isSearchExpanded\n ? i18nStrings.searchDismissIconAriaLabel\n : i18nStrings.searchIconAriaLabel,\n onClick: onSearchUtilityClick,\n }}\n />\n </div>\n )}\n\n {showUtilities &&\n utilities\n .filter(\n (_utility, i) =>\n isVirtual || !responsiveState.hideUtilities || responsiveState.hideUtilities.indexOf(i) === -1\n )\n .map((utility, i) => {\n const hideText = !!responsiveState.hideUtilityText;\n const last = (isVirtual || !showMenuTrigger) && i === utilities.length - 1;\n return (\n <div\n key={i}\n className={clsx(\n styles['utility-wrapper'],\n styles[`utility-type-${utility.type}`],\n last && styles['utility-wrapper-last'],\n utility.type === 'button' && styles[`utility-type-button-${utility.variant ?? 'link'}`]\n )}\n data-utility-index={i}\n data-utility-hide={`${hideText}`}\n >\n <Utility\n hideText={hideText}\n definition={utility}\n last={last}\n isNarrowViewport={isNarrowViewport}\n />\n </div>\n );\n })}\n\n {isVirtual &&\n utilities.map((utility, i) => {\n const hideText = !responsiveState.hideUtilityText;\n const last = !showMenuTrigger && i === utilities.length - 1;\n return (\n <div\n key={i}\n className={clsx(\n styles['utility-wrapper'],\n styles[`utility-type-${utility.type}`],\n last && styles['utility-wrapper-last'],\n utility.type === 'button' && styles[`utility-type-button-${utility.variant ?? 'link'}`]\n )}\n data-utility-index={i}\n data-utility-hide={`${hideText}`}\n >\n <Utility hideText={hideText} definition={utility} last={last} isNarrowViewport={isNarrowViewport} />\n </div>\n );\n })}\n\n {showMenuTrigger && (\n <div\n className={clsx(\n styles['utility-wrapper'],\n styles['utility-type-menu-dropdown'],\n styles['utility-wrapper-last']\n )}\n data-utility-special=\"menu-trigger\"\n >\n <OverflowMenu\n utilities={responsiveState.hideUtilities?.map(i => utilities[i]) ?? []}\n isNarrowViewport={isNarrowViewport}\n >\n {i18nStrings.overflowMenuTriggerText}\n </OverflowMenu>\n </div>\n )}\n </div>\n </div>\n </Wrapper>\n );\n };\n\n return (\n <div {...baseProps} ref={__internalRootRef}>\n <VisualContext contextName=\"top-navigation\">\n {content(false)}\n <Portal>{content(true)}</Portal>\n </VisualContext>\n </div>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["top-navigation/1.0-beta/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,aAAa,MAAM,0CAA0C,CAAC;AACrE,OAAO,MAAM,MAAM,kCAAkC,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAEjD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAInE,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAOjB;QAPiB,EAC5C,iBAAiB,EACjB,QAAQ,EACR,WAAW,EACX,SAAS,GAAG,EAAE,EACd,MAAM,OAEqB,EADxB,SAAS,cANgC,uEAO7C,CADa;IAEZ,YAAY,CAAC,eAAe,EAAE,Q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CAAC,4BAA4B,CAAC,EACpC,MAAM,CAAC,sBAAsB,CAAC,CAC/B,0BACoB,cAAc;wBAEnC,oBAAC,YAAY,IACX,SAAS,EAAE,MAAA,MAAA,eAAe,CAAC,aAAa,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,mCAAI,EAAE,EACtE,gBAAgB,EAAE,gBAAgB,IAEjC,WAAW,CAAC,uBAAuB,CACvB,CACX,CACP,CACG,CACF,CACE,CACX,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,6CAAS,SAAS,IAAE,GAAG,EAAE,iBAAiB;QACxC,oBAAC,aAAa,IAAC,WAAW,EAAC,gBAAgB;YACxC,OAAO,CAAC,KAAK,CAAC;YACf,oBAAC,MAAM,QAAE,OAAO,CAAC,IAAI,CAAC,CAAU,CAClB,CACZ,CACP,CAAC;AACJ,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 { InternalBaseComponentProps } from '../../internal/hooks/use-base-component';\nimport { getBaseProps } from '../../internal/base-component';\nimport { fireCancelableEvent, isPlainLeftClick } from '../../internal/events';\nimport VisualContext from '../../internal/components/visual-context';\nimport Portal from '../../internal/components/portal';\n\nimport { TopNavigationProps } from './interfaces';\nimport { useTopNavigation } from './use-top-navigation.js';\nimport Utility from './parts/utility';\nimport OverflowMenu from './parts/overflow-menu';\n\nimport styles from './styles.css.js';\nimport { checkSafeUrl } from '../../internal/utils/check-safe-url';\n\nexport type InternalTopNavigationProps = TopNavigationProps & InternalBaseComponentProps;\n\nexport default function InternalTopNavigation({\n __internalRootRef,\n identity,\n i18nStrings,\n utilities = [],\n search,\n ...restProps\n}: InternalTopNavigationProps) {\n checkSafeUrl('TopNavigation', identity.href);\n const baseProps = getBaseProps(restProps);\n const { ref, virtualRef, breakpoint, responsiveState, isSearchExpanded, onSearchUtilityClick } = useTopNavigation({\n __internalRootRef,\n identity,\n search,\n utilities,\n });\n\n const isNarrowViewport = breakpoint === 'default';\n const isMediumViewport = breakpoint === 'xxs';\n\n const onIdentityClick = (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n fireCancelableEvent(identity.onFollow, {}, event);\n }\n };\n\n // Render the top nav twice; once as the top nav that users can see, and another\n // \"virtual\" top nav used just for calculations. The virtual top nav doesn't react to\n // layout changes and renders two sets of utilities: one with labels and one without.\n const content = (isVirtual: boolean) => {\n const Wrapper = isVirtual ? 'div' : 'header';\n const showIdentity = isVirtual || !isSearchExpanded;\n const showTitle = isVirtual || !responsiveState.hideTitle;\n const showSearchSlot = search && (isVirtual || !responsiveState.hideSearch || isSearchExpanded);\n const showSearchUtility = isVirtual || (search && responsiveState.hideSearch);\n const showUtilities = isVirtual || !isSearchExpanded;\n const showMenuTrigger = isVirtual || (!isSearchExpanded && responsiveState.hideUtilities);\n\n return (\n <Wrapper\n ref={isVirtual ? virtualRef : ref}\n aria-hidden={isVirtual ? true : undefined}\n // False positive, \"Wrapper\" is either a \"div\" or a \"header\"\n // eslint-disable-next-line react/forbid-component-props\n className={clsx(styles['top-navigation'], {\n [styles.hidden]: isVirtual,\n [styles.narrow]: isNarrowViewport,\n [styles.medium]: isMediumViewport,\n })}\n >\n <div className={styles['padding-box']}>\n {showIdentity && (\n <div className={clsx(styles.identity, !identity.logo && styles['no-logo'])}>\n <a className={styles['identity-link']} href={identity.href} onClick={onIdentityClick}>\n {identity.logo && (\n <img\n role=\"img\"\n src={identity.logo?.src}\n alt={identity.logo?.alt}\n className={clsx(styles.logo, {\n [styles.narrow]: isNarrowViewport,\n })}\n />\n )}\n {showTitle && <span className={styles.title}>{identity.title}</span>}\n </a>\n </div>\n )}\n\n <div className={styles.inputs}>\n {showSearchSlot && (\n <div className={clsx(styles.search, !isVirtual && isSearchExpanded && styles['search-expanded'])}>\n {search}\n </div>\n )}\n </div>\n\n <div className={styles.utilities}>\n {showSearchUtility && (\n <div\n className={clsx(\n styles['utility-wrapper'],\n styles['utility-type-button'],\n styles['utility-type-button-link']\n )}\n data-utility-special=\"search\"\n >\n <Utility\n hideText={true}\n isNarrowViewport={isNarrowViewport}\n definition={{\n type: 'button',\n iconName: isSearchExpanded ? 'close' : 'search',\n ariaLabel: isSearchExpanded\n ? i18nStrings.searchDismissIconAriaLabel\n : i18nStrings.searchIconAriaLabel,\n onClick: onSearchUtilityClick,\n }}\n />\n </div>\n )}\n\n {showUtilities &&\n utilities\n .filter(\n (_utility, i) =>\n isVirtual || !responsiveState.hideUtilities || responsiveState.hideUtilities.indexOf(i) === -1\n )\n .map((utility, i) => {\n const hideText = !!responsiveState.hideUtilityText;\n const last = (isVirtual || !showMenuTrigger) && i === utilities.length - 1;\n return (\n <div\n key={i}\n className={clsx(\n styles['utility-wrapper'],\n styles[`utility-type-${utility.type}`],\n last && styles['utility-wrapper-last'],\n utility.type === 'button' && styles[`utility-type-button-${utility.variant ?? 'link'}`]\n )}\n data-utility-index={i}\n data-utility-hide={`${hideText}`}\n >\n <Utility\n hideText={hideText}\n definition={utility}\n last={last}\n isNarrowViewport={isNarrowViewport}\n />\n </div>\n );\n })}\n\n {isVirtual &&\n utilities.map((utility, i) => {\n const hideText = !responsiveState.hideUtilityText;\n const last = !showMenuTrigger && i === utilities.length - 1;\n return (\n <div\n key={i}\n className={clsx(\n styles['utility-wrapper'],\n styles[`utility-type-${utility.type}`],\n last && styles['utility-wrapper-last'],\n utility.type === 'button' && styles[`utility-type-button-${utility.variant ?? 'link'}`]\n )}\n data-utility-index={i}\n data-utility-hide={`${hideText}`}\n >\n <Utility hideText={hideText} definition={utility} last={last} isNarrowViewport={isNarrowViewport} />\n </div>\n );\n })}\n\n {showMenuTrigger && (\n <div\n className={clsx(\n styles['utility-wrapper'],\n styles['utility-type-menu-dropdown'],\n styles['utility-wrapper-last']\n )}\n data-utility-special=\"menu-trigger\"\n >\n <OverflowMenu\n utilities={responsiveState.hideUtilities?.map(i => utilities[i]) ?? []}\n isNarrowViewport={isNarrowViewport}\n >\n {i18nStrings.overflowMenuTriggerText}\n </OverflowMenu>\n </div>\n )}\n </div>\n </div>\n </Wrapper>\n );\n };\n\n return (\n <div {...baseProps} ref={__internalRootRef}>\n <VisualContext contextName=\"top-navigation\">\n {content(false)}\n <Portal>{content(true)}</Portal>\n </VisualContext>\n </div>\n );\n}\n"]}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"top-navigation": "awsui_top-
|
|
5
|
-
"padding-box": "awsui_padding-
|
|
6
|
-
"medium": "
|
|
7
|
-
"narrow": "
|
|
8
|
-
"hidden": "
|
|
9
|
-
"\t": "awsui_\
|
|
10
|
-
"identity": "
|
|
11
|
-
"identity-link": "awsui_identity-
|
|
12
|
-
"no-logo": "awsui_no-
|
|
13
|
-
"logo": "
|
|
14
|
-
"title": "
|
|
15
|
-
"inputs": "
|
|
16
|
-
"search": "
|
|
17
|
-
"search-expanded": "awsui_search-
|
|
18
|
-
"utilities": "
|
|
19
|
-
"utility-wrapper": "awsui_utility-
|
|
20
|
-
"utility-wrapper-last": "awsui_utility-wrapper-
|
|
21
|
-
"utility-type-button-primary-button": "awsui_utility-type-button-primary-
|
|
22
|
-
"utility-type-menu-dropdown": "awsui_utility-type-menu-
|
|
23
|
-
"utility-type-button-link": "awsui_utility-type-button-
|
|
24
|
-
"utility-link-icon": "awsui_utility-link-
|
|
25
|
-
"utility-button-external-icon": "awsui_utility-button-external-
|
|
26
|
-
"trigger": "
|
|
27
|
-
"rotate-up": "awsui_rotate-
|
|
28
|
-
"rotate-down": "awsui_rotate-
|
|
4
|
+
"top-navigation": "awsui_top-navigation_1ca1i_pnu7h_93",
|
|
5
|
+
"padding-box": "awsui_padding-box_1ca1i_pnu7h_106",
|
|
6
|
+
"medium": "awsui_medium_1ca1i_pnu7h_116",
|
|
7
|
+
"narrow": "awsui_narrow_1ca1i_pnu7h_116",
|
|
8
|
+
"hidden": "awsui_hidden_1ca1i_pnu7h_124",
|
|
9
|
+
"\t": "awsui_\t_1ca1i_pnu7h_1",
|
|
10
|
+
"identity": "awsui_identity_1ca1i_pnu7h_137",
|
|
11
|
+
"identity-link": "awsui_identity-link_1ca1i_pnu7h_137",
|
|
12
|
+
"no-logo": "awsui_no-logo_1ca1i_pnu7h_154",
|
|
13
|
+
"logo": "awsui_logo_1ca1i_pnu7h_158",
|
|
14
|
+
"title": "awsui_title_1ca1i_pnu7h_169",
|
|
15
|
+
"inputs": "awsui_inputs_1ca1i_pnu7h_185",
|
|
16
|
+
"search": "awsui_search_1ca1i_pnu7h_192",
|
|
17
|
+
"search-expanded": "awsui_search-expanded_1ca1i_pnu7h_197",
|
|
18
|
+
"utilities": "awsui_utilities_1ca1i_pnu7h_202",
|
|
19
|
+
"utility-wrapper": "awsui_utility-wrapper_1ca1i_pnu7h_214",
|
|
20
|
+
"utility-wrapper-last": "awsui_utility-wrapper-last_1ca1i_pnu7h_230",
|
|
21
|
+
"utility-type-button-primary-button": "awsui_utility-type-button-primary-button_1ca1i_pnu7h_230",
|
|
22
|
+
"utility-type-menu-dropdown": "awsui_utility-type-menu-dropdown_1ca1i_pnu7h_244",
|
|
23
|
+
"utility-type-button-link": "awsui_utility-type-button-link_1ca1i_pnu7h_259",
|
|
24
|
+
"utility-link-icon": "awsui_utility-link-icon_1ca1i_pnu7h_272",
|
|
25
|
+
"utility-button-external-icon": "awsui_utility-button-external-icon_1ca1i_pnu7h_276",
|
|
26
|
+
"trigger": "awsui_trigger_1ca1i_pnu7h_280",
|
|
27
|
+
"rotate-up": "awsui_rotate-up_1ca1i_pnu7h_284",
|
|
28
|
+
"rotate-down": "awsui_rotate-down_1ca1i_pnu7h_299"
|
|
29
29
|
};
|
|
30
30
|
|
|
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
.awsui_top-
|
|
93
|
+
.awsui_top-navigation_1ca1i_pnu7h_93:not(#\9) {
|
|
94
94
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
95
95
|
border-collapse: separate;
|
|
96
96
|
border-spacing: 0;
|
|
@@ -129,7 +129,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
129
129
|
-moz-osx-font-smoothing: auto;
|
|
130
130
|
background: var(--color-background-container-content-i8i4a0, #ffffff);
|
|
131
131
|
}
|
|
132
|
-
.awsui_top-
|
|
132
|
+
.awsui_top-navigation_1ca1i_pnu7h_93 > .awsui_padding-box_1ca1i_pnu7h_106:not(#\9) {
|
|
133
133
|
display: flex;
|
|
134
134
|
flex-direction: row;
|
|
135
135
|
flex-wrap: nowrap;
|
|
@@ -139,15 +139,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
139
139
|
height: calc(var(--space-xxxl-bo9z7f, 40px) + var(--space-scaled-m-pv0fmt, 16px));
|
|
140
140
|
padding: 0 0 0 var(--space-l-4vl6xu, 20px);
|
|
141
141
|
}
|
|
142
|
-
.awsui_top-
|
|
142
|
+
.awsui_top-navigation_1ca1i_pnu7h_93.awsui_medium_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106:not(#\9), .awsui_top-navigation_1ca1i_pnu7h_93.awsui_narrow_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106:not(#\9) {
|
|
143
143
|
height: calc(var(--space-xxxl-bo9z7f, 40px) + var(--space-scaled-xs-6859qs, 8px));
|
|
144
144
|
}
|
|
145
|
-
.awsui_top-
|
|
145
|
+
.awsui_top-navigation_1ca1i_pnu7h_93.awsui_narrow_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106:not(#\9) {
|
|
146
146
|
height: var(--space-xxxl-bo9z7f, 40px);
|
|
147
147
|
padding: 0 0 0 var(--space-xs-rsr2qu, 8px);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
.
|
|
150
|
+
.awsui_hidden_1ca1i_pnu7h_124:not(#\9) {
|
|
151
151
|
position: absolute !important;
|
|
152
152
|
top: -9999px !important;
|
|
153
153
|
left: -9999px !important;
|
|
@@ -156,20 +156,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
/* stylelint-disable-next-line selector-combinator-disallowed-list, selector-max-universal */
|
|
159
|
-
.
|
|
159
|
+
.awsui_hidden_1ca1i_pnu7h_124 *:not(#\9):not(#awsui_\9 _1ca1i_pnu7h_1) {
|
|
160
160
|
visibility: hidden;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
.
|
|
163
|
+
.awsui_identity_1ca1i_pnu7h_137 > .awsui_identity-link_1ca1i_pnu7h_137:not(#\9) {
|
|
164
164
|
display: flex;
|
|
165
165
|
align-items: center;
|
|
166
166
|
text-decoration: none;
|
|
167
167
|
color: var(--color-text-top-navigation-title-oypxe3, #000716);
|
|
168
168
|
}
|
|
169
|
-
.
|
|
169
|
+
.awsui_identity_1ca1i_pnu7h_137 > .awsui_identity-link_1ca1i_pnu7h_137:not(#\9):hover {
|
|
170
170
|
color: var(--color-text-accent-s1eqko, #0972d3);
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
body[data-awsui-focus-visible=true] .awsui_identity_1ca1i_pnu7h_137 > .awsui_identity-link_1ca1i_pnu7h_137:not(#\9):focus {
|
|
173
173
|
outline: thin dotted;
|
|
174
174
|
outline: var(--border-link-focus-ring-outline-k2wccv, 0);
|
|
175
175
|
outline-offset: 2px;
|
|
@@ -177,22 +177,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
177
177
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
178
178
|
box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-nv4ahb, 2px) var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
179
179
|
}
|
|
180
|
-
.
|
|
180
|
+
.awsui_identity_1ca1i_pnu7h_137.awsui_no-logo_1ca1i_pnu7h_154:not(#\9) {
|
|
181
181
|
min-width: 100px;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
.
|
|
184
|
+
.awsui_logo_1ca1i_pnu7h_158:not(#\9) {
|
|
185
185
|
display: block;
|
|
186
186
|
max-height: var(--space-xxl-2nvmf1, 32px);
|
|
187
187
|
margin-left: var(--space-s-hv8c1d, 12px);
|
|
188
188
|
width: auto;
|
|
189
189
|
min-width: 10px;
|
|
190
190
|
}
|
|
191
|
-
.
|
|
191
|
+
.awsui_logo_1ca1i_pnu7h_158.awsui_narrow_1ca1i_pnu7h_116:not(#\9) {
|
|
192
192
|
max-height: var(--space-xl-a39hup, 24px);
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
.
|
|
195
|
+
.awsui_title_1ca1i_pnu7h_169:not(#\9) {
|
|
196
196
|
font-size: var(--font-heading-m-size-6e3jmg, 20px);
|
|
197
197
|
line-height: var(--font-heading-m-line-height-u3t54f, 24px);
|
|
198
198
|
letter-spacing: var(--font-heading-m-letter-spacing-r00pg3, -0.01em);
|
|
@@ -204,28 +204,28 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
204
204
|
overflow: hidden;
|
|
205
205
|
text-overflow: ellipsis;
|
|
206
206
|
}
|
|
207
|
-
.awsui_no-
|
|
207
|
+
.awsui_no-logo_1ca1i_pnu7h_154 > .awsui_identity-link_1ca1i_pnu7h_137 > .awsui_title_1ca1i_pnu7h_169:not(#\9) {
|
|
208
208
|
font-weight: 700;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
.
|
|
211
|
+
.awsui_inputs_1ca1i_pnu7h_185:not(#\9) {
|
|
212
212
|
flex: 1;
|
|
213
213
|
min-width: 0;
|
|
214
214
|
display: flex;
|
|
215
215
|
justify-content: center;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
.
|
|
218
|
+
.awsui_search_1ca1i_pnu7h_192:not(#\9) {
|
|
219
219
|
width: 100%;
|
|
220
220
|
max-width: 340px;
|
|
221
221
|
padding-left: var(--space-xxxl-bo9z7f, 40px);
|
|
222
222
|
}
|
|
223
|
-
.awsui_search-
|
|
223
|
+
.awsui_search-expanded_1ca1i_pnu7h_197:not(#\9) {
|
|
224
224
|
max-width: none;
|
|
225
225
|
padding-left: var(--space-s-hv8c1d, 12px);
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
.
|
|
228
|
+
.awsui_utilities_1ca1i_pnu7h_202:not(#\9) {
|
|
229
229
|
display: flex;
|
|
230
230
|
flex-shrink: 0;
|
|
231
231
|
flex-direction: row;
|
|
@@ -233,17 +233,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
233
233
|
padding-left: var(--space-m-17eucw, 16px);
|
|
234
234
|
height: 100%;
|
|
235
235
|
}
|
|
236
|
-
.
|
|
236
|
+
.awsui_medium_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106 > .awsui_utilities_1ca1i_pnu7h_202:not(#\9), .awsui_narrow_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106 > .awsui_utilities_1ca1i_pnu7h_202:not(#\9) {
|
|
237
237
|
padding-left: 0;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
.awsui_utility-
|
|
240
|
+
.awsui_utility-wrapper_1ca1i_pnu7h_214:not(#\9) {
|
|
241
241
|
display: flex;
|
|
242
242
|
position: relative;
|
|
243
243
|
flex-shrink: 0;
|
|
244
244
|
align-items: center;
|
|
245
245
|
}
|
|
246
|
-
.awsui_utility-
|
|
246
|
+
.awsui_utility-wrapper_1ca1i_pnu7h_214:not(#\9)::after {
|
|
247
247
|
display: block;
|
|
248
248
|
position: absolute;
|
|
249
249
|
content: "";
|
|
@@ -253,86 +253,86 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
253
253
|
bottom: var(--space-s-hv8c1d, 12px);
|
|
254
254
|
background: var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
255
255
|
}
|
|
256
|
-
.awsui_utility-
|
|
256
|
+
.awsui_utility-wrapper_1ca1i_pnu7h_214.awsui_utility-wrapper-last_1ca1i_pnu7h_230:not(#\9):not(.awsui_utility-type-button-primary-button_1ca1i_pnu7h_230) {
|
|
257
257
|
padding-right: 0;
|
|
258
258
|
}
|
|
259
|
-
.awsui_utility-
|
|
259
|
+
.awsui_utility-wrapper_1ca1i_pnu7h_214.awsui_utility-wrapper-last_1ca1i_pnu7h_230:not(#\9):not(.awsui_utility-type-button-primary-button_1ca1i_pnu7h_230)::after {
|
|
260
260
|
display: none;
|
|
261
261
|
}
|
|
262
|
-
.
|
|
262
|
+
.awsui_medium_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106 > .awsui_utilities_1ca1i_pnu7h_202 > .awsui_utility-wrapper_1ca1i_pnu7h_214:not(#\9)::after, .awsui_narrow_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106 > .awsui_utilities_1ca1i_pnu7h_202 > .awsui_utility-wrapper_1ca1i_pnu7h_214:not(#\9)::after {
|
|
263
263
|
top: var(--space-xs-rsr2qu, 8px);
|
|
264
264
|
bottom: var(--space-xs-rsr2qu, 8px);
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
.awsui_utility-wrapper-
|
|
267
|
+
.awsui_utility-wrapper-last_1ca1i_pnu7h_230:not(#\9) {
|
|
268
268
|
margin-right: var(--space-s-hv8c1d, 12px);
|
|
269
269
|
}
|
|
270
|
-
.awsui_utility-wrapper-
|
|
270
|
+
.awsui_utility-wrapper-last_1ca1i_pnu7h_230.awsui_utility-type-menu-dropdown_1ca1i_pnu7h_244:not(#\9) {
|
|
271
271
|
margin-right: 0;
|
|
272
272
|
}
|
|
273
|
-
.
|
|
273
|
+
.awsui_narrow_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106 > .awsui_utilities_1ca1i_pnu7h_202 > .awsui_utility-wrapper-last_1ca1i_pnu7h_230:not(#\9) {
|
|
274
274
|
margin-right: 0;
|
|
275
275
|
}
|
|
276
|
-
.
|
|
276
|
+
.awsui_narrow_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106 > .awsui_utilities_1ca1i_pnu7h_202 > .awsui_utility-wrapper-last_1ca1i_pnu7h_230.awsui_utility-type-button-primary-button_1ca1i_pnu7h_230:not(#\9) {
|
|
277
277
|
padding-right: var(--space-l-4vl6xu, 20px);
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
.awsui_utility-type-menu-
|
|
280
|
+
.awsui_utility-type-menu-dropdown_1ca1i_pnu7h_244:not(#\9) {
|
|
281
281
|
padding: 0 var(--space-s-hv8c1d, 12px);
|
|
282
282
|
align-items: stretch;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
.awsui_utility-type-button-
|
|
286
|
-
.awsui_utility-type-button-primary-
|
|
285
|
+
.awsui_utility-type-button-link_1ca1i_pnu7h_259:not(#\9),
|
|
286
|
+
.awsui_utility-type-button-primary-button_1ca1i_pnu7h_230:not(#\9) {
|
|
287
287
|
padding: 0 var(--space-m-17eucw, 16px);
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
-
.awsui_utility-type-button-primary-
|
|
290
|
+
.awsui_utility-type-button-primary-button_1ca1i_pnu7h_230:not(#\9) {
|
|
291
291
|
left: -1px;
|
|
292
292
|
border-left: 1px solid var(--color-background-container-content-i8i4a0, #ffffff);
|
|
293
293
|
}
|
|
294
|
-
.awsui_utility-type-button-primary-
|
|
294
|
+
.awsui_utility-type-button-primary-button_1ca1i_pnu7h_230:not(#\9)::after {
|
|
295
295
|
display: none;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
.awsui_utility-link-
|
|
298
|
+
.awsui_utility-link-icon_1ca1i_pnu7h_272:not(#\9) {
|
|
299
299
|
margin-right: var(--space-xxs-ynfts5, 4px);
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
.awsui_utility-button-external-
|
|
302
|
+
.awsui_utility-button-external-icon_1ca1i_pnu7h_276:not(#\9) {
|
|
303
303
|
display: inline-block;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
.
|
|
306
|
+
.awsui_trigger_1ca1i_pnu7h_280:not(#\9) {
|
|
307
307
|
/*used in test-utils*/
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
.awsui_rotate-
|
|
310
|
+
.awsui_rotate-up_1ca1i_pnu7h_284:not(#\9) {
|
|
311
311
|
transform: rotate(-180deg);
|
|
312
312
|
transition: transform var(--motion-duration-rotate-180-ofa1ir, 135ms) var(--motion-easing-rotate-180-3rbbga, cubic-bezier(0.165, 0.84, 0.44, 1));
|
|
313
313
|
}
|
|
314
314
|
@media (prefers-reduced-motion: reduce) {
|
|
315
|
-
.awsui_rotate-
|
|
315
|
+
.awsui_rotate-up_1ca1i_pnu7h_284:not(#\9) {
|
|
316
316
|
animation: none;
|
|
317
317
|
transition: none;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
.awsui-motion-disabled .awsui_rotate-
|
|
320
|
+
.awsui-motion-disabled .awsui_rotate-up_1ca1i_pnu7h_284:not(#\9), .awsui-mode-entering .awsui_rotate-up_1ca1i_pnu7h_284:not(#\9) {
|
|
321
321
|
animation: none;
|
|
322
322
|
transition: none;
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
.awsui_rotate-
|
|
325
|
+
.awsui_rotate-down_1ca1i_pnu7h_299:not(#\9) {
|
|
326
326
|
transform: rotate(0deg);
|
|
327
327
|
transition: transform var(--motion-duration-rotate-180-ofa1ir, 135ms) var(--motion-easing-rotate-180-3rbbga, cubic-bezier(0.165, 0.84, 0.44, 1));
|
|
328
328
|
}
|
|
329
329
|
@media (prefers-reduced-motion: reduce) {
|
|
330
|
-
.awsui_rotate-
|
|
330
|
+
.awsui_rotate-down_1ca1i_pnu7h_299:not(#\9) {
|
|
331
331
|
animation: none;
|
|
332
332
|
transition: none;
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
.awsui-motion-disabled .awsui_rotate-
|
|
335
|
+
.awsui-motion-disabled .awsui_rotate-down_1ca1i_pnu7h_299:not(#\9), .awsui-mode-entering .awsui_rotate-down_1ca1i_pnu7h_299:not(#\9) {
|
|
336
336
|
animation: none;
|
|
337
337
|
transition: none;
|
|
338
338
|
}
|