@cloudscape-design/components 3.0.670 → 3.0.672
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/app-layout/visual-refresh-toolbar/index.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/index.js +9 -2
- package/app-layout/visual-refresh-toolbar/index.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/interfaces.d.ts +2 -0
- package/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/index.js +5 -2
- package/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
- package/breadcrumb-group/index.d.ts.map +1 -1
- package/breadcrumb-group/index.js +5 -0
- package/breadcrumb-group/index.js.map +1 -1
- package/checkbox/base-checkbox.d.ts +7 -0
- package/checkbox/base-checkbox.d.ts.map +1 -1
- package/checkbox/base-checkbox.js.map +1 -1
- package/checkbox/internal.d.ts.map +1 -1
- package/checkbox/internal.js +3 -3
- package/checkbox/internal.js.map +1 -1
- package/date-picker/interfaces.d.ts +1 -1
- package/date-picker/interfaces.js.map +1 -1
- package/date-range-picker/index.d.ts.map +1 -1
- package/date-range-picker/index.js +1 -3
- package/date-range-picker/index.js.map +1 -1
- package/input/interfaces.d.ts +1 -1
- package/input/interfaces.js.map +1 -1
- package/internal/base-component/styles.scoped.css +5 -0
- package/internal/components/abstract-switch/index.d.ts +2 -1
- package/internal/components/abstract-switch/index.d.ts.map +1 -1
- package/internal/components/abstract-switch/index.js +2 -2
- package/internal/components/abstract-switch/index.js.map +1 -1
- package/internal/components/button-trigger/index.d.ts.map +1 -1
- package/internal/components/button-trigger/index.js +5 -2
- package/internal/components/button-trigger/index.js.map +1 -1
- package/internal/components/button-trigger/styles.css.js +11 -11
- package/internal/components/button-trigger/styles.scoped.css +26 -26
- package/internal/components/button-trigger/styles.selectors.js +11 -11
- package/internal/components/checkbox-icon/index.d.ts +2 -1
- package/internal/components/checkbox-icon/index.d.ts.map +1 -1
- package/internal/components/checkbox-icon/index.js +6 -2
- package/internal/components/checkbox-icon/index.js.map +1 -1
- package/internal/components/checkbox-icon/styles.css.js +9 -7
- package/internal/components/checkbox-icon/styles.scoped.css +11 -8
- package/internal/components/checkbox-icon/styles.selectors.js +9 -7
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/generated/styles/tokens.d.ts +1 -0
- package/internal/generated/styles/tokens.js +1 -0
- package/internal/generated/theming/index.cjs +33 -0
- package/internal/generated/theming/index.cjs.d.ts +8 -0
- package/internal/generated/theming/index.d.ts +8 -0
- package/internal/generated/theming/index.js +33 -0
- package/internal/manifest.json +1 -1
- package/internal/plugins/api.d.ts +4 -0
- package/internal/plugins/api.d.ts.map +1 -1
- package/internal/plugins/api.js +3 -0
- package/internal/plugins/api.js.map +1 -1
- package/internal/plugins/controllers/breadcrumbs.d.ts +31 -0
- package/internal/plugins/controllers/breadcrumbs.d.ts.map +1 -0
- package/internal/plugins/controllers/breadcrumbs.js +70 -0
- package/internal/plugins/controllers/breadcrumbs.js.map +1 -0
- package/internal/plugins/helpers/use-global-breadcrumbs.d.ts +4 -0
- package/internal/plugins/helpers/use-global-breadcrumbs.d.ts.map +1 -0
- package/internal/plugins/helpers/use-global-breadcrumbs.js +42 -0
- package/internal/plugins/helpers/use-global-breadcrumbs.js.map +1 -0
- package/multiselect/internal.d.ts.map +1 -1
- package/multiselect/internal.js +3 -3
- package/multiselect/internal.js.map +1 -1
- package/package.json +1 -1
- package/radio-group/interfaces.d.ts +6 -0
- package/radio-group/interfaces.d.ts.map +1 -1
- package/radio-group/interfaces.js.map +1 -1
- package/radio-group/internal.d.ts.map +1 -1
- package/radio-group/internal.js +3 -3
- package/radio-group/internal.js.map +1 -1
- package/radio-group/radio-button.d.ts +1 -0
- package/radio-group/radio-button.d.ts.map +1 -1
- package/radio-group/radio-button.js +7 -3
- package/radio-group/radio-button.js.map +1 -1
- package/radio-group/styles.css.js +10 -9
- package/radio-group/styles.scoped.css +19 -15
- package/radio-group/styles.selectors.js +10 -9
- package/select/interfaces.d.ts +5 -0
- package/select/interfaces.d.ts.map +1 -1
- package/select/interfaces.js.map +1 -1
- package/select/internal.d.ts.map +1 -1
- package/select/internal.js +2 -2
- package/select/internal.js.map +1 -1
- package/select/parts/trigger.d.ts +1 -0
- package/select/parts/trigger.d.ts.map +1 -1
- package/select/parts/trigger.js +2 -2
- package/select/parts/trigger.js.map +1 -1
- package/slider/interfaces.d.ts +6 -0
- package/slider/interfaces.d.ts.map +1 -1
- package/slider/interfaces.js.map +1 -1
- package/slider/internal.d.ts +1 -1
- package/slider/internal.d.ts.map +1 -1
- package/slider/internal.js +15 -6
- package/slider/internal.js.map +1 -1
- package/slider/styles.css.js +27 -25
- package/slider/styles.scoped.css +129 -62
- package/slider/styles.selectors.js +27 -25
- package/slider/tick-marks.d.ts +1 -0
- package/slider/tick-marks.d.ts.map +1 -1
- package/slider/tick-marks.js +2 -1
- package/slider/tick-marks.js.map +1 -1
- package/slider/utils.d.ts +1 -0
- package/slider/utils.d.ts.map +1 -1
- package/slider/utils.js +1 -0
- package/slider/utils.js.map +1 -1
- package/tiles/interfaces.d.ts +6 -0
- package/tiles/interfaces.d.ts.map +1 -1
- package/tiles/interfaces.js.map +1 -1
- package/tiles/internal.d.ts.map +1 -1
- package/tiles/internal.js +3 -3
- package/tiles/internal.js.map +1 -1
- package/tiles/styles.css.js +30 -29
- package/tiles/styles.scoped.css +75 -70
- package/tiles/styles.selectors.js +30 -29
- package/tiles/tile.d.ts +1 -0
- package/tiles/tile.d.ts.map +1 -1
- package/tiles/tile.js +4 -4
- package/tiles/tile.js.map +1 -1
- package/toggle/internal.d.ts.map +1 -1
- package/toggle/internal.js +4 -2
- package/toggle/internal.js.map +1 -1
- package/toggle/styles.css.js +10 -8
- package/toggle/styles.scoped.css +23 -14
- package/toggle/styles.selectors.js +10 -8
- package/token-group/dismiss-button.d.ts +1 -0
- package/token-group/dismiss-button.d.ts.map +1 -1
- package/token-group/dismiss-button.js +7 -2
- package/token-group/dismiss-button.js.map +1 -1
- package/token-group/interfaces.d.ts +5 -0
- package/token-group/interfaces.d.ts.map +1 -1
- package/token-group/interfaces.js.map +1 -1
- package/token-group/internal.d.ts +1 -1
- package/token-group/internal.d.ts.map +1 -1
- package/token-group/internal.js +2 -2
- package/token-group/internal.js.map +1 -1
- package/token-group/styles.css.js +10 -9
- package/token-group/styles.scoped.css +33 -19
- package/token-group/styles.selectors.js +10 -9
- package/token-group/token.d.ts +2 -1
- package/token-group/token.d.ts.map +1 -1
- package/token-group/token.js +3 -3
- package/token-group/token.js.map +1 -1
- package/top-navigation/1.0-beta/interfaces.d.ts +1 -1
- package/top-navigation/1.0-beta/interfaces.js.map +1 -1
- package/top-navigation/interfaces.d.ts +1 -1
- package/top-navigation/interfaces.js.map +1 -1
package/tiles/internal.js
CHANGED
|
@@ -13,7 +13,7 @@ import { Tile } from './tile';
|
|
|
13
13
|
import useRadioGroupForwardFocus from '../internal/hooks/forward-focus/radio-group';
|
|
14
14
|
const COLUMN_TRIGGERS = ['default', 'xxs', 'xs'];
|
|
15
15
|
const InternalTiles = React.forwardRef((_a, ref) => {
|
|
16
|
-
var { name, value, items, ariaLabel, ariaRequired, ariaControls, columns, onChange, __internalRootRef = null } = _a, rest = __rest(_a, ["name", "value", "items", "ariaLabel", "ariaRequired", "ariaControls", "columns", "onChange", "__internalRootRef"]);
|
|
16
|
+
var { name, value, items, ariaLabel, ariaRequired, ariaControls, columns, onChange, readOnly, __internalRootRef = null } = _a, rest = __rest(_a, ["name", "value", "items", "ariaLabel", "ariaRequired", "ariaControls", "columns", "onChange", "readOnly", "__internalRootRef"]);
|
|
17
17
|
const baseProps = getBaseProps(rest);
|
|
18
18
|
const { ariaDescribedby, ariaLabelledby } = useFormFieldContext(rest);
|
|
19
19
|
const generatedName = useUniqueId('awsui-tiles-');
|
|
@@ -21,9 +21,9 @@ const InternalTiles = React.forwardRef((_a, ref) => {
|
|
|
21
21
|
const [breakpoint, breakpointRef] = useContainerBreakpoints(COLUMN_TRIGGERS);
|
|
22
22
|
const mergedRef = useMergeRefs(breakpointRef, __internalRootRef);
|
|
23
23
|
const columnCount = getColumnCount(items, columns);
|
|
24
|
-
return (React.createElement("div", Object.assign({ role: "radiogroup", "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, "aria-required": ariaRequired, "aria-controls": ariaControls }, baseProps, { className: clsx(baseProps.className, styles.root), ref: mergedRef }),
|
|
24
|
+
return (React.createElement("div", Object.assign({ role: "radiogroup", "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, "aria-required": ariaRequired, "aria-controls": ariaControls, "aria-readonly": readOnly ? 'true' : undefined }, baseProps, { className: clsx(baseProps.className, styles.root), ref: mergedRef }),
|
|
25
25
|
React.createElement("div", { className: clsx(styles.columns, styles[`column-${columnCount}`]) }, items &&
|
|
26
|
-
items.map((item, index) => (React.createElement(Tile, { ref: index === tileRefIndex ? tileRef : undefined, key: item.value, item: item, selected: item.value === value, name: name || generatedName, breakpoint: breakpoint, onChange: onChange }))))));
|
|
26
|
+
items.map((item, index) => (React.createElement(Tile, { ref: index === tileRefIndex ? tileRef : undefined, key: item.value, item: item, selected: item.value === value, name: name || generatedName, breakpoint: breakpoint, onChange: onChange, readOnly: readOnly }))))));
|
|
27
27
|
});
|
|
28
28
|
function getColumnCount(items, columns) {
|
|
29
29
|
if (columns) {
|
package/tiles/internal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/tiles/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,yBAAyB,MAAM,6CAA6C,CAAC;AAEpF,MAAM,eAAe,GAA4B,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;AAI1E,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CACpC,CACE,
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/tiles/internal.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 clsx from 'clsx';\nimport React from 'react';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { TilesProps } from './interfaces';\nimport styles from './styles.css.js';\n\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { Tile } from './tile';\nimport useRadioGroupForwardFocus from '../internal/hooks/forward-focus/radio-group';\n\nconst COLUMN_TRIGGERS: TilesProps.Breakpoint[] = ['default', 'xxs', 'xs'];\n\ntype InternalTilesProps = TilesProps & InternalBaseComponentProps;\n\nconst InternalTiles = React.forwardRef(\n (\n {\n name,\n value,\n items,\n ariaLabel,\n ariaRequired,\n ariaControls,\n columns,\n onChange,\n readOnly,\n __internalRootRef = null,\n ...rest\n }: InternalTilesProps,\n ref: React.Ref<TilesProps.Ref>\n ) => {\n const baseProps = getBaseProps(rest);\n const { ariaDescribedby, ariaLabelledby } = useFormFieldContext(rest);\n const generatedName = useUniqueId('awsui-tiles-');\n\n const [tileRef, tileRefIndex] = useRadioGroupForwardFocus(ref, items, value);\n const [breakpoint, breakpointRef] = useContainerBreakpoints(COLUMN_TRIGGERS);\n const mergedRef = useMergeRefs(breakpointRef, __internalRootRef);\n\n const columnCount = getColumnCount(items, columns);\n\n return (\n <div\n role=\"radiogroup\"\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedby}\n aria-required={ariaRequired}\n aria-controls={ariaControls}\n aria-readonly={readOnly ? 'true' : undefined}\n {...baseProps}\n className={clsx(baseProps.className, styles.root)}\n ref={mergedRef}\n >\n <div className={clsx(styles.columns, styles[`column-${columnCount}`])}>\n {items &&\n items.map((item, index) => (\n <Tile\n ref={index === tileRefIndex ? tileRef : undefined}\n key={item.value}\n item={item}\n selected={item.value === value}\n name={name || generatedName}\n breakpoint={breakpoint}\n onChange={onChange}\n readOnly={readOnly}\n />\n ))}\n </div>\n </div>\n );\n }\n);\n\nfunction getColumnCount(\n items: ReadonlyArray<TilesProps.TilesDefinition> | undefined,\n columns: number | undefined\n): number {\n if (columns) {\n return columns;\n }\n\n const nItems = items ? items.length : 0;\n const columnsLookup: Record<number, number> = {\n 0: 1,\n 1: 1,\n 2: 2,\n 4: 2,\n 8: 2,\n };\n return columnsLookup[nItems] || 3;\n}\n\nexport default InternalTiles;\n"]}
|
package/tiles/styles.css.js
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"column-layout": "awsui_column-
|
|
5
|
-
"grid": "
|
|
6
|
-
"grid-no-gutters": "awsui_grid-no-
|
|
7
|
-
"grid-variant-text-grid": "awsui_grid-variant-text-
|
|
8
|
-
"grid-breakpoint-default": "awsui_grid-breakpoint-
|
|
9
|
-
"grid-columns-1": "awsui_grid-columns-
|
|
10
|
-
"grid-breakpoint-xxs": "awsui_grid-breakpoint-
|
|
11
|
-
"grid-breakpoint-xs": "awsui_grid-breakpoint-
|
|
12
|
-
"grid-columns-2": "awsui_grid-columns-
|
|
13
|
-
"grid-columns-3": "awsui_grid-columns-
|
|
14
|
-
"grid-columns-4": "awsui_grid-columns-
|
|
15
|
-
"grid-vertical-borders": "awsui_grid-vertical-
|
|
16
|
-
"grid-horizontal-borders": "awsui_grid-horizontal-
|
|
17
|
-
"root": "
|
|
18
|
-
"tile-container": "awsui_tile-
|
|
19
|
-
"refresh": "
|
|
20
|
-
"has-metadata": "awsui_has-
|
|
21
|
-
"selected": "
|
|
22
|
-
"disabled": "
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"breakpoint-
|
|
27
|
-
"
|
|
28
|
-
"column-
|
|
29
|
-
"column-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"image": "
|
|
4
|
+
"column-layout": "awsui_column-layout_vj6p7_tp6ux_97",
|
|
5
|
+
"grid": "awsui_grid_vj6p7_tp6ux_132",
|
|
6
|
+
"grid-no-gutters": "awsui_grid-no-gutters_vj6p7_tp6ux_138",
|
|
7
|
+
"grid-variant-text-grid": "awsui_grid-variant-text-grid_vj6p7_tp6ux_142",
|
|
8
|
+
"grid-breakpoint-default": "awsui_grid-breakpoint-default_vj6p7_tp6ux_150",
|
|
9
|
+
"grid-columns-1": "awsui_grid-columns-1_vj6p7_tp6ux_153",
|
|
10
|
+
"grid-breakpoint-xxs": "awsui_grid-breakpoint-xxs_vj6p7_tp6ux_153",
|
|
11
|
+
"grid-breakpoint-xs": "awsui_grid-breakpoint-xs_vj6p7_tp6ux_156",
|
|
12
|
+
"grid-columns-2": "awsui_grid-columns-2_vj6p7_tp6ux_159",
|
|
13
|
+
"grid-columns-3": "awsui_grid-columns-3_vj6p7_tp6ux_165",
|
|
14
|
+
"grid-columns-4": "awsui_grid-columns-4_vj6p7_tp6ux_171",
|
|
15
|
+
"grid-vertical-borders": "awsui_grid-vertical-borders_vj6p7_tp6ux_187",
|
|
16
|
+
"grid-horizontal-borders": "awsui_grid-horizontal-borders_vj6p7_tp6ux_220",
|
|
17
|
+
"root": "awsui_root_vj6p7_tp6ux_274",
|
|
18
|
+
"tile-container": "awsui_tile-container_vj6p7_tp6ux_312",
|
|
19
|
+
"refresh": "awsui_refresh_vj6p7_tp6ux_327",
|
|
20
|
+
"has-metadata": "awsui_has-metadata_vj6p7_tp6ux_331",
|
|
21
|
+
"selected": "awsui_selected_vj6p7_tp6ux_337",
|
|
22
|
+
"disabled": "awsui_disabled_vj6p7_tp6ux_342",
|
|
23
|
+
"readonly": "awsui_readonly_vj6p7_tp6ux_347",
|
|
24
|
+
"columns": "awsui_columns_vj6p7_tp6ux_363",
|
|
25
|
+
"column-1": "awsui_column-1_vj6p7_tp6ux_369",
|
|
26
|
+
"breakpoint-xs": "awsui_breakpoint-xs_vj6p7_tp6ux_376",
|
|
27
|
+
"breakpoint-xxs": "awsui_breakpoint-xxs_vj6p7_tp6ux_380",
|
|
28
|
+
"column-2": "awsui_column-2_vj6p7_tp6ux_384",
|
|
29
|
+
"column-3": "awsui_column-3_vj6p7_tp6ux_399",
|
|
30
|
+
"column-4": "awsui_column-4_vj6p7_tp6ux_414",
|
|
31
|
+
"control": "awsui_control_vj6p7_tp6ux_430",
|
|
32
|
+
"no-image": "awsui_no-image_vj6p7_tp6ux_434",
|
|
33
|
+
"image": "awsui_image_vj6p7_tp6ux_438"
|
|
33
34
|
};
|
|
34
35
|
|
package/tiles/styles.scoped.css
CHANGED
|
@@ -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
|
-
div.awsui_column-
|
|
97
|
+
div.awsui_column-layout_vj6p7_tp6ux_97:not(#\9) {
|
|
98
98
|
border-collapse: separate;
|
|
99
99
|
border-spacing: 0;
|
|
100
100
|
box-sizing: border-box;
|
|
@@ -130,141 +130,141 @@ div.awsui_column-layout_vj6p7_h9y4z_97:not(#\9) {
|
|
|
130
130
|
-moz-osx-font-smoothing: auto;
|
|
131
131
|
word-wrap: break-word;
|
|
132
132
|
}
|
|
133
|
-
div.awsui_column-
|
|
133
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132:not(#\9) {
|
|
134
134
|
margin-block: calc(var(--space-grid-gutter-ieqn7e, 20px) / -2);
|
|
135
135
|
margin-inline: calc(var(--space-grid-gutter-ieqn7e, 20px) / -2);
|
|
136
136
|
/* stylelint-disable-next-line selector-max-universal */
|
|
137
137
|
/* stylelint-disable-next-line selector-max-universal */
|
|
138
138
|
}
|
|
139
|
-
div.awsui_column-
|
|
139
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-no-gutters_vj6p7_tp6ux_138:not(#\9) {
|
|
140
140
|
margin-block: 0;
|
|
141
141
|
margin-inline: 0;
|
|
142
142
|
}
|
|
143
|
-
div.awsui_column-
|
|
143
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-variant-text-grid_vj6p7_tp6ux_142:not(#\9) {
|
|
144
144
|
/* stylelint-disable-next-line selector-max-universal */
|
|
145
145
|
margin-block: calc(-1 * var(--space-grid-gutter-ieqn7e, 20px) / 2);
|
|
146
146
|
margin-inline: calc(-1 * var(--space-grid-gutter-ieqn7e, 20px));
|
|
147
147
|
}
|
|
148
|
-
div.awsui_column-
|
|
148
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-variant-text-grid_vj6p7_tp6ux_142 > *:not(#\9) {
|
|
149
149
|
border-inline-start: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
150
150
|
}
|
|
151
|
-
div.awsui_column-
|
|
151
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-variant-text-grid_vj6p7_tp6ux_142.awsui_grid-breakpoint-default_vj6p7_tp6ux_150 > *:not(#\9):nth-child(1n+1) {
|
|
152
152
|
border-inline-start-width: 0;
|
|
153
153
|
}
|
|
154
|
-
div.awsui_column-
|
|
154
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-variant-text-grid_vj6p7_tp6ux_142.awsui_grid-columns-1_vj6p7_tp6ux_153.awsui_grid-breakpoint-xxs_vj6p7_tp6ux_153 > *:not(#\9):nth-child(1n+1) {
|
|
155
155
|
border-inline-start-width: 0;
|
|
156
156
|
}
|
|
157
|
-
div.awsui_column-
|
|
157
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-variant-text-grid_vj6p7_tp6ux_142.awsui_grid-columns-1_vj6p7_tp6ux_153.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-child(1n+1) {
|
|
158
158
|
border-inline-start-width: 0;
|
|
159
159
|
}
|
|
160
|
-
div.awsui_column-
|
|
160
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-variant-text-grid_vj6p7_tp6ux_142.awsui_grid-columns-2_vj6p7_tp6ux_159.awsui_grid-breakpoint-xxs_vj6p7_tp6ux_153 > *:not(#\9):nth-child(2n+1) {
|
|
161
161
|
border-inline-start-width: 0;
|
|
162
162
|
}
|
|
163
|
-
div.awsui_column-
|
|
163
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-variant-text-grid_vj6p7_tp6ux_142.awsui_grid-columns-2_vj6p7_tp6ux_159.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-child(2n+1) {
|
|
164
164
|
border-inline-start-width: 0;
|
|
165
165
|
}
|
|
166
|
-
div.awsui_column-
|
|
166
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-variant-text-grid_vj6p7_tp6ux_142.awsui_grid-columns-3_vj6p7_tp6ux_165.awsui_grid-breakpoint-xxs_vj6p7_tp6ux_153 > *:not(#\9):nth-child(2n+1) {
|
|
167
167
|
border-inline-start-width: 0;
|
|
168
168
|
}
|
|
169
|
-
div.awsui_column-
|
|
169
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-variant-text-grid_vj6p7_tp6ux_142.awsui_grid-columns-3_vj6p7_tp6ux_165.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-child(3n+1) {
|
|
170
170
|
border-inline-start-width: 0;
|
|
171
171
|
}
|
|
172
|
-
div.awsui_column-
|
|
172
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-variant-text-grid_vj6p7_tp6ux_142.awsui_grid-columns-4_vj6p7_tp6ux_171.awsui_grid-breakpoint-xxs_vj6p7_tp6ux_153 > *:not(#\9):nth-child(2n+1) {
|
|
173
173
|
border-inline-start-width: 0;
|
|
174
174
|
}
|
|
175
|
-
div.awsui_column-
|
|
175
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-variant-text-grid_vj6p7_tp6ux_142.awsui_grid-columns-4_vj6p7_tp6ux_171.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-child(4n+1) {
|
|
176
176
|
border-inline-start-width: 0;
|
|
177
177
|
}
|
|
178
|
-
div.awsui_column-
|
|
178
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132:not(#\9):not(.awsui_grid-no-gutters_vj6p7_tp6ux_138) > * {
|
|
179
179
|
padding-block: calc(var(--space-grid-gutter-ieqn7e, 20px) / 2);
|
|
180
180
|
padding-inline: calc(var(--space-grid-gutter-ieqn7e, 20px) / 2);
|
|
181
181
|
}
|
|
182
|
-
div.awsui_column-
|
|
182
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132:not(#\9):not(.awsui_grid-no-gutters_vj6p7_tp6ux_138).awsui_grid-variant-text-grid_vj6p7_tp6ux_142 > * {
|
|
183
183
|
padding-block: 0;
|
|
184
184
|
padding-inline: var(--space-grid-gutter-ieqn7e, 20px);
|
|
185
185
|
margin-block: calc(var(--space-grid-gutter-ieqn7e, 20px) / 2);
|
|
186
186
|
margin-inline: 0;
|
|
187
187
|
}
|
|
188
|
-
div.awsui_column-
|
|
188
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-vertical-borders_vj6p7_tp6ux_187:not(#\9) {
|
|
189
189
|
/* stylelint-disable-next-line selector-max-universal */
|
|
190
190
|
}
|
|
191
|
-
div.awsui_column-
|
|
191
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-vertical-borders_vj6p7_tp6ux_187 > *:not(#\9) {
|
|
192
192
|
border-inline-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
193
193
|
}
|
|
194
|
-
div.awsui_column-
|
|
194
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-vertical-borders_vj6p7_tp6ux_187.awsui_grid-breakpoint-default_vj6p7_tp6ux_150 > *:not(#\9):nth-child(1n) {
|
|
195
195
|
border-inline-end-width: 0;
|
|
196
196
|
}
|
|
197
|
-
div.awsui_column-
|
|
197
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-vertical-borders_vj6p7_tp6ux_187.awsui_grid-columns-1_vj6p7_tp6ux_153.awsui_grid-breakpoint-xxs_vj6p7_tp6ux_153 > *:not(#\9):nth-child(1n) {
|
|
198
198
|
border-inline-end-width: 0;
|
|
199
199
|
}
|
|
200
|
-
div.awsui_column-
|
|
200
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-vertical-borders_vj6p7_tp6ux_187.awsui_grid-columns-1_vj6p7_tp6ux_153.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-child(1n) {
|
|
201
201
|
border-inline-end-width: 0;
|
|
202
202
|
}
|
|
203
|
-
div.awsui_column-
|
|
203
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-vertical-borders_vj6p7_tp6ux_187.awsui_grid-columns-2_vj6p7_tp6ux_159.awsui_grid-breakpoint-xxs_vj6p7_tp6ux_153 > *:not(#\9):nth-child(2n) {
|
|
204
204
|
border-inline-end-width: 0;
|
|
205
205
|
}
|
|
206
|
-
div.awsui_column-
|
|
206
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-vertical-borders_vj6p7_tp6ux_187.awsui_grid-columns-2_vj6p7_tp6ux_159.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-child(2n) {
|
|
207
207
|
border-inline-end-width: 0;
|
|
208
208
|
}
|
|
209
|
-
div.awsui_column-
|
|
209
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-vertical-borders_vj6p7_tp6ux_187.awsui_grid-columns-3_vj6p7_tp6ux_165.awsui_grid-breakpoint-xxs_vj6p7_tp6ux_153 > *:not(#\9):nth-child(2n) {
|
|
210
210
|
border-inline-end-width: 0;
|
|
211
211
|
}
|
|
212
|
-
div.awsui_column-
|
|
212
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-vertical-borders_vj6p7_tp6ux_187.awsui_grid-columns-3_vj6p7_tp6ux_165.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-child(3n) {
|
|
213
213
|
border-inline-end-width: 0;
|
|
214
214
|
}
|
|
215
|
-
div.awsui_column-
|
|
215
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-vertical-borders_vj6p7_tp6ux_187.awsui_grid-columns-4_vj6p7_tp6ux_171.awsui_grid-breakpoint-xxs_vj6p7_tp6ux_153 > *:not(#\9):nth-child(2n) {
|
|
216
216
|
border-inline-end-width: 0;
|
|
217
217
|
}
|
|
218
|
-
div.awsui_column-
|
|
218
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-vertical-borders_vj6p7_tp6ux_187.awsui_grid-columns-4_vj6p7_tp6ux_171.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-child(4n) {
|
|
219
219
|
border-inline-end-width: 0;
|
|
220
220
|
}
|
|
221
|
-
div.awsui_column-
|
|
221
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220:not(#\9) {
|
|
222
222
|
/* stylelint-disable selector-max-universal */
|
|
223
223
|
/* stylelint-enable selector-max-universal */
|
|
224
224
|
}
|
|
225
|
-
div.awsui_column-
|
|
225
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220 > *:not(#\9) {
|
|
226
226
|
border-block-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
227
227
|
}
|
|
228
|
-
div.awsui_column-
|
|
228
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220 > *:not(#\9):last-child {
|
|
229
229
|
border-block-end-width: 0;
|
|
230
230
|
}
|
|
231
|
-
div.awsui_column-
|
|
231
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220.awsui_grid-columns-2_vj6p7_tp6ux_159.awsui_grid-breakpoint-xxs_vj6p7_tp6ux_153 > *:not(#\9):nth-last-child(2):nth-child(2n+1) {
|
|
232
232
|
border-block-end-width: 0;
|
|
233
233
|
}
|
|
234
|
-
div.awsui_column-
|
|
234
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220.awsui_grid-columns-2_vj6p7_tp6ux_159.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-last-child(2):nth-child(2n+1) {
|
|
235
235
|
border-block-end-width: 0;
|
|
236
236
|
}
|
|
237
|
-
div.awsui_column-
|
|
237
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220.awsui_grid-columns-3_vj6p7_tp6ux_165.awsui_grid-breakpoint-xxs_vj6p7_tp6ux_153 > *:not(#\9):nth-last-child(2):nth-child(2n+1) {
|
|
238
238
|
border-block-end-width: 0;
|
|
239
239
|
}
|
|
240
|
-
div.awsui_column-
|
|
240
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220.awsui_grid-columns-3_vj6p7_tp6ux_165.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-last-child(2):nth-child(3n+1) {
|
|
241
241
|
border-block-end-width: 0;
|
|
242
242
|
}
|
|
243
|
-
div.awsui_column-
|
|
243
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220.awsui_grid-columns-3_vj6p7_tp6ux_165.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-last-child(2):nth-child(3n+2) {
|
|
244
244
|
border-block-end-width: 0;
|
|
245
245
|
}
|
|
246
|
-
div.awsui_column-
|
|
246
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220.awsui_grid-columns-3_vj6p7_tp6ux_165.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-last-child(3):nth-child(3n+1) {
|
|
247
247
|
border-block-end-width: 0;
|
|
248
248
|
}
|
|
249
|
-
div.awsui_column-
|
|
249
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220.awsui_grid-columns-4_vj6p7_tp6ux_171.awsui_grid-breakpoint-xxs_vj6p7_tp6ux_153 > *:not(#\9):nth-last-child(2):nth-child(2n+1) {
|
|
250
250
|
border-block-end-width: 0;
|
|
251
251
|
}
|
|
252
|
-
div.awsui_column-
|
|
252
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220.awsui_grid-columns-4_vj6p7_tp6ux_171.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-last-child(2):nth-child(4n+1) {
|
|
253
253
|
border-block-end-width: 0;
|
|
254
254
|
}
|
|
255
|
-
div.awsui_column-
|
|
255
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220.awsui_grid-columns-4_vj6p7_tp6ux_171.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-last-child(2):nth-child(4n+2) {
|
|
256
256
|
border-block-end-width: 0;
|
|
257
257
|
}
|
|
258
|
-
div.awsui_column-
|
|
258
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220.awsui_grid-columns-4_vj6p7_tp6ux_171.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-last-child(2):nth-child(4n+3) {
|
|
259
259
|
border-block-end-width: 0;
|
|
260
260
|
}
|
|
261
|
-
div.awsui_column-
|
|
261
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220.awsui_grid-columns-4_vj6p7_tp6ux_171.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-last-child(3):nth-child(4n+1) {
|
|
262
262
|
border-block-end-width: 0;
|
|
263
263
|
}
|
|
264
|
-
div.awsui_column-
|
|
264
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220.awsui_grid-columns-4_vj6p7_tp6ux_171.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-last-child(3):nth-child(4n+2) {
|
|
265
265
|
border-block-end-width: 0;
|
|
266
266
|
}
|
|
267
|
-
div.awsui_column-
|
|
267
|
+
div.awsui_column-layout_vj6p7_tp6ux_97 > .awsui_grid_vj6p7_tp6ux_132.awsui_grid-horizontal-borders_vj6p7_tp6ux_220.awsui_grid-columns-4_vj6p7_tp6ux_171.awsui_grid-breakpoint-xs_vj6p7_tp6ux_156 > *:not(#\9):nth-last-child(4):nth-child(4n+1) {
|
|
268
268
|
border-block-end-width: 0;
|
|
269
269
|
}
|
|
270
270
|
|
|
@@ -272,7 +272,7 @@ div.awsui_column-layout_vj6p7_h9y4z_97 > .awsui_grid_vj6p7_h9y4z_132.awsui_grid-
|
|
|
272
272
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
273
273
|
SPDX-License-Identifier: Apache-2.0
|
|
274
274
|
*/
|
|
275
|
-
.
|
|
275
|
+
.awsui_root_vj6p7_tp6ux_274:not(#\9) {
|
|
276
276
|
border-collapse: separate;
|
|
277
277
|
border-spacing: 0;
|
|
278
278
|
box-sizing: border-box;
|
|
@@ -311,7 +311,7 @@ div.awsui_column-layout_vj6p7_h9y4z_97 > .awsui_grid_vj6p7_h9y4z_132.awsui_grid-
|
|
|
311
311
|
display: block;
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
-
.awsui_tile-
|
|
314
|
+
.awsui_tile-container_vj6p7_tp6ux_312:not(#\9) {
|
|
315
315
|
box-sizing: border-box;
|
|
316
316
|
display: flex;
|
|
317
317
|
flex-direction: column;
|
|
@@ -326,118 +326,123 @@ div.awsui_column-layout_vj6p7_h9y4z_97 > .awsui_grid_vj6p7_h9y4z_132.awsui_grid-
|
|
|
326
326
|
padding-inline: var(--space-scaled-m-mo5yse, 16px);
|
|
327
327
|
transition: border-color var(--motion-duration-transition-quick-6npj01, 90ms) var(--motion-easing-transition-quick-l9jfsx, linear), background-color var(--motion-duration-transition-quick-6npj01, 90ms) var(--motion-easing-transition-quick-l9jfsx, linear);
|
|
328
328
|
}
|
|
329
|
-
.awsui_tile-
|
|
329
|
+
.awsui_tile-container_vj6p7_tp6ux_312.awsui_refresh_vj6p7_tp6ux_327:not(#\9) {
|
|
330
330
|
padding-block: var(--space-xs-zb16t3, 8px);
|
|
331
331
|
padding-inline: var(--space-s-34lx8l, 12px);
|
|
332
332
|
}
|
|
333
|
-
.awsui_tile-
|
|
333
|
+
.awsui_tile-container_vj6p7_tp6ux_312.awsui_has-metadata_vj6p7_tp6ux_331:not(#\9) {
|
|
334
334
|
padding-block-end: var(--space-s-34lx8l, 12px);
|
|
335
335
|
}
|
|
336
|
-
.awsui_tile-
|
|
336
|
+
.awsui_tile-container_vj6p7_tp6ux_312.awsui_has-metadata_vj6p7_tp6ux_331.awsui_refresh_vj6p7_tp6ux_327:not(#\9) {
|
|
337
337
|
padding-block-end: var(--space-scaled-s-aqzyko, 12px);
|
|
338
338
|
}
|
|
339
|
-
.awsui_tile-
|
|
339
|
+
.awsui_tile-container_vj6p7_tp6ux_312.awsui_selected_vj6p7_tp6ux_337:not(#\9) {
|
|
340
340
|
border-block: var(--border-field-width-09w7vk, 2px) solid var(--color-border-item-selected-k00wlz, #0972d3);
|
|
341
341
|
border-inline: var(--border-field-width-09w7vk, 2px) solid var(--color-border-item-selected-k00wlz, #0972d3);
|
|
342
342
|
background: var(--color-background-item-selected-hcx8l4, #f2f8fd);
|
|
343
343
|
}
|
|
344
|
-
.awsui_tile-
|
|
344
|
+
.awsui_tile-container_vj6p7_tp6ux_312.awsui_disabled_vj6p7_tp6ux_342:not(#\9) {
|
|
345
345
|
border-block: var(--border-field-width-09w7vk, 2px) solid var(--color-border-tiles-disabled-q5e1so, #e9ebed);
|
|
346
346
|
border-inline: var(--border-field-width-09w7vk, 2px) solid var(--color-border-tiles-disabled-q5e1so, #e9ebed);
|
|
347
347
|
background: var(--color-background-tiles-disabled-0j6ior, #e9ebed);
|
|
348
348
|
}
|
|
349
|
+
.awsui_tile-container_vj6p7_tp6ux_312.awsui_readonly_vj6p7_tp6ux_347:not(#\9) {
|
|
350
|
+
background-color: var(--color-background-input-default-igdh5e, #ffffff);
|
|
351
|
+
border-block: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-disabled-rx2aau, #e9ebed);
|
|
352
|
+
border-inline: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-disabled-rx2aau, #e9ebed);
|
|
353
|
+
}
|
|
349
354
|
@media (prefers-reduced-motion: reduce) {
|
|
350
|
-
.awsui_tile-
|
|
355
|
+
.awsui_tile-container_vj6p7_tp6ux_312:not(#\9) {
|
|
351
356
|
animation: none;
|
|
352
357
|
transition: none;
|
|
353
358
|
}
|
|
354
359
|
}
|
|
355
|
-
.awsui-motion-disabled .awsui_tile-
|
|
360
|
+
.awsui-motion-disabled .awsui_tile-container_vj6p7_tp6ux_312:not(#\9), .awsui-mode-entering .awsui_tile-container_vj6p7_tp6ux_312:not(#\9) {
|
|
356
361
|
animation: none;
|
|
357
362
|
transition: none;
|
|
358
363
|
}
|
|
359
364
|
|
|
360
|
-
.
|
|
365
|
+
.awsui_columns_vj6p7_tp6ux_363:not(#\9) {
|
|
361
366
|
display: flex;
|
|
362
367
|
flex-wrap: wrap;
|
|
363
368
|
margin-block: calc(var(--space-grid-gutter-ieqn7e, 20px) / -2);
|
|
364
369
|
margin-inline: calc(var(--space-grid-gutter-ieqn7e, 20px) / -2);
|
|
365
370
|
}
|
|
366
|
-
.
|
|
371
|
+
.awsui_columns_vj6p7_tp6ux_363.awsui_column-1_vj6p7_tp6ux_369 > .awsui_tile-container_vj6p7_tp6ux_312:not(#\9) {
|
|
367
372
|
margin-block: calc(var(--space-grid-gutter-ieqn7e, 20px) / 2);
|
|
368
373
|
margin-inline: calc(var(--space-grid-gutter-ieqn7e, 20px) / 2);
|
|
369
374
|
box-sizing: border-box;
|
|
370
375
|
flex: 0 0 calc(100% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
371
376
|
max-inline-size: calc(100% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
372
377
|
}
|
|
373
|
-
.
|
|
378
|
+
.awsui_columns_vj6p7_tp6ux_363.awsui_column-1_vj6p7_tp6ux_369 > .awsui_tile-container_vj6p7_tp6ux_312.awsui_breakpoint-xs_vj6p7_tp6ux_376:not(#\9) {
|
|
374
379
|
flex: 0 0 calc(100% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
375
380
|
max-inline-size: calc(100% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
376
381
|
}
|
|
377
|
-
.
|
|
382
|
+
.awsui_columns_vj6p7_tp6ux_363.awsui_column-1_vj6p7_tp6ux_369 > .awsui_tile-container_vj6p7_tp6ux_312.awsui_breakpoint-xxs_vj6p7_tp6ux_380:not(#\9) {
|
|
378
383
|
flex: 0 0 calc(100% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
379
384
|
max-inline-size: calc(100% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
380
385
|
}
|
|
381
|
-
.
|
|
386
|
+
.awsui_columns_vj6p7_tp6ux_363.awsui_column-2_vj6p7_tp6ux_384 > .awsui_tile-container_vj6p7_tp6ux_312:not(#\9) {
|
|
382
387
|
margin-block: calc(var(--space-grid-gutter-ieqn7e, 20px) / 2);
|
|
383
388
|
margin-inline: calc(var(--space-grid-gutter-ieqn7e, 20px) / 2);
|
|
384
389
|
box-sizing: border-box;
|
|
385
390
|
flex: 0 0 calc(100% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
386
391
|
max-inline-size: calc(100% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
387
392
|
}
|
|
388
|
-
.
|
|
393
|
+
.awsui_columns_vj6p7_tp6ux_363.awsui_column-2_vj6p7_tp6ux_384 > .awsui_tile-container_vj6p7_tp6ux_312.awsui_breakpoint-xs_vj6p7_tp6ux_376:not(#\9) {
|
|
389
394
|
flex: 0 0 calc(50% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
390
395
|
max-inline-size: calc(50% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
391
396
|
}
|
|
392
|
-
.
|
|
397
|
+
.awsui_columns_vj6p7_tp6ux_363.awsui_column-2_vj6p7_tp6ux_384 > .awsui_tile-container_vj6p7_tp6ux_312.awsui_breakpoint-xxs_vj6p7_tp6ux_380:not(#\9) {
|
|
393
398
|
flex: 0 0 calc(50% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
394
399
|
max-inline-size: calc(50% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
395
400
|
}
|
|
396
|
-
.
|
|
401
|
+
.awsui_columns_vj6p7_tp6ux_363.awsui_column-3_vj6p7_tp6ux_399 > .awsui_tile-container_vj6p7_tp6ux_312:not(#\9) {
|
|
397
402
|
margin-block: calc(var(--space-grid-gutter-ieqn7e, 20px) / 2);
|
|
398
403
|
margin-inline: calc(var(--space-grid-gutter-ieqn7e, 20px) / 2);
|
|
399
404
|
box-sizing: border-box;
|
|
400
405
|
flex: 0 0 calc(100% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
401
406
|
max-inline-size: calc(100% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
402
407
|
}
|
|
403
|
-
.
|
|
408
|
+
.awsui_columns_vj6p7_tp6ux_363.awsui_column-3_vj6p7_tp6ux_399 > .awsui_tile-container_vj6p7_tp6ux_312.awsui_breakpoint-xs_vj6p7_tp6ux_376:not(#\9) {
|
|
404
409
|
flex: 0 0 calc(33.3333333333% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
405
410
|
max-inline-size: calc(33.3333333333% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
406
411
|
}
|
|
407
|
-
.
|
|
412
|
+
.awsui_columns_vj6p7_tp6ux_363.awsui_column-3_vj6p7_tp6ux_399 > .awsui_tile-container_vj6p7_tp6ux_312.awsui_breakpoint-xxs_vj6p7_tp6ux_380:not(#\9) {
|
|
408
413
|
flex: 0 0 calc(50% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
409
414
|
max-inline-size: calc(50% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
410
415
|
}
|
|
411
|
-
.
|
|
416
|
+
.awsui_columns_vj6p7_tp6ux_363.awsui_column-4_vj6p7_tp6ux_414 > .awsui_tile-container_vj6p7_tp6ux_312:not(#\9) {
|
|
412
417
|
margin-block: calc(var(--space-grid-gutter-ieqn7e, 20px) / 2);
|
|
413
418
|
margin-inline: calc(var(--space-grid-gutter-ieqn7e, 20px) / 2);
|
|
414
419
|
box-sizing: border-box;
|
|
415
420
|
flex: 0 0 calc(100% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
416
421
|
max-inline-size: calc(100% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
417
422
|
}
|
|
418
|
-
.
|
|
423
|
+
.awsui_columns_vj6p7_tp6ux_363.awsui_column-4_vj6p7_tp6ux_414 > .awsui_tile-container_vj6p7_tp6ux_312.awsui_breakpoint-xs_vj6p7_tp6ux_376:not(#\9) {
|
|
419
424
|
flex: 0 0 calc(25% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
420
425
|
max-inline-size: calc(25% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
421
426
|
}
|
|
422
|
-
.
|
|
427
|
+
.awsui_columns_vj6p7_tp6ux_363.awsui_column-4_vj6p7_tp6ux_414 > .awsui_tile-container_vj6p7_tp6ux_312.awsui_breakpoint-xxs_vj6p7_tp6ux_380:not(#\9) {
|
|
423
428
|
flex: 0 0 calc(50% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
424
429
|
max-inline-size: calc(50% - var(--space-grid-gutter-ieqn7e, 20px));
|
|
425
430
|
}
|
|
426
431
|
|
|
427
|
-
.
|
|
432
|
+
.awsui_control_vj6p7_tp6ux_430:not(#\9) {
|
|
428
433
|
flex-grow: 1;
|
|
429
434
|
margin-block-end: var(--space-s-34lx8l, 12px);
|
|
430
435
|
}
|
|
431
|
-
.
|
|
436
|
+
.awsui_control_vj6p7_tp6ux_430.awsui_no-image_vj6p7_tp6ux_434:not(#\9) {
|
|
432
437
|
margin-block-end: 0;
|
|
433
438
|
}
|
|
434
439
|
|
|
435
|
-
.
|
|
440
|
+
.awsui_image_vj6p7_tp6ux_438:not(#\9) {
|
|
436
441
|
text-align: center;
|
|
437
442
|
}
|
|
438
|
-
.
|
|
443
|
+
.awsui_image_vj6p7_tp6ux_438 > img:not(#\9) {
|
|
439
444
|
max-inline-size: 100%;
|
|
440
445
|
}
|
|
441
|
-
.
|
|
446
|
+
.awsui_image_vj6p7_tp6ux_438.awsui_disabled_vj6p7_tp6ux_342 > img:not(#\9) {
|
|
442
447
|
opacity: 0.3;
|
|
443
448
|
}
|
|
@@ -2,34 +2,35 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"column-layout": "awsui_column-
|
|
6
|
-
"grid": "
|
|
7
|
-
"grid-no-gutters": "awsui_grid-no-
|
|
8
|
-
"grid-variant-text-grid": "awsui_grid-variant-text-
|
|
9
|
-
"grid-breakpoint-default": "awsui_grid-breakpoint-
|
|
10
|
-
"grid-columns-1": "awsui_grid-columns-
|
|
11
|
-
"grid-breakpoint-xxs": "awsui_grid-breakpoint-
|
|
12
|
-
"grid-breakpoint-xs": "awsui_grid-breakpoint-
|
|
13
|
-
"grid-columns-2": "awsui_grid-columns-
|
|
14
|
-
"grid-columns-3": "awsui_grid-columns-
|
|
15
|
-
"grid-columns-4": "awsui_grid-columns-
|
|
16
|
-
"grid-vertical-borders": "awsui_grid-vertical-
|
|
17
|
-
"grid-horizontal-borders": "awsui_grid-horizontal-
|
|
18
|
-
"root": "
|
|
19
|
-
"tile-container": "awsui_tile-
|
|
20
|
-
"refresh": "
|
|
21
|
-
"has-metadata": "awsui_has-
|
|
22
|
-
"selected": "
|
|
23
|
-
"disabled": "
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"breakpoint-
|
|
28
|
-
"
|
|
29
|
-
"column-
|
|
30
|
-
"column-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"image": "
|
|
5
|
+
"column-layout": "awsui_column-layout_vj6p7_tp6ux_97",
|
|
6
|
+
"grid": "awsui_grid_vj6p7_tp6ux_132",
|
|
7
|
+
"grid-no-gutters": "awsui_grid-no-gutters_vj6p7_tp6ux_138",
|
|
8
|
+
"grid-variant-text-grid": "awsui_grid-variant-text-grid_vj6p7_tp6ux_142",
|
|
9
|
+
"grid-breakpoint-default": "awsui_grid-breakpoint-default_vj6p7_tp6ux_150",
|
|
10
|
+
"grid-columns-1": "awsui_grid-columns-1_vj6p7_tp6ux_153",
|
|
11
|
+
"grid-breakpoint-xxs": "awsui_grid-breakpoint-xxs_vj6p7_tp6ux_153",
|
|
12
|
+
"grid-breakpoint-xs": "awsui_grid-breakpoint-xs_vj6p7_tp6ux_156",
|
|
13
|
+
"grid-columns-2": "awsui_grid-columns-2_vj6p7_tp6ux_159",
|
|
14
|
+
"grid-columns-3": "awsui_grid-columns-3_vj6p7_tp6ux_165",
|
|
15
|
+
"grid-columns-4": "awsui_grid-columns-4_vj6p7_tp6ux_171",
|
|
16
|
+
"grid-vertical-borders": "awsui_grid-vertical-borders_vj6p7_tp6ux_187",
|
|
17
|
+
"grid-horizontal-borders": "awsui_grid-horizontal-borders_vj6p7_tp6ux_220",
|
|
18
|
+
"root": "awsui_root_vj6p7_tp6ux_274",
|
|
19
|
+
"tile-container": "awsui_tile-container_vj6p7_tp6ux_312",
|
|
20
|
+
"refresh": "awsui_refresh_vj6p7_tp6ux_327",
|
|
21
|
+
"has-metadata": "awsui_has-metadata_vj6p7_tp6ux_331",
|
|
22
|
+
"selected": "awsui_selected_vj6p7_tp6ux_337",
|
|
23
|
+
"disabled": "awsui_disabled_vj6p7_tp6ux_342",
|
|
24
|
+
"readonly": "awsui_readonly_vj6p7_tp6ux_347",
|
|
25
|
+
"columns": "awsui_columns_vj6p7_tp6ux_363",
|
|
26
|
+
"column-1": "awsui_column-1_vj6p7_tp6ux_369",
|
|
27
|
+
"breakpoint-xs": "awsui_breakpoint-xs_vj6p7_tp6ux_376",
|
|
28
|
+
"breakpoint-xxs": "awsui_breakpoint-xxs_vj6p7_tp6ux_380",
|
|
29
|
+
"column-2": "awsui_column-2_vj6p7_tp6ux_384",
|
|
30
|
+
"column-3": "awsui_column-3_vj6p7_tp6ux_399",
|
|
31
|
+
"column-4": "awsui_column-4_vj6p7_tp6ux_414",
|
|
32
|
+
"control": "awsui_control_vj6p7_tp6ux_430",
|
|
33
|
+
"no-image": "awsui_no-image_vj6p7_tp6ux_434",
|
|
34
|
+
"image": "awsui_image_vj6p7_tp6ux_438"
|
|
34
35
|
};
|
|
35
36
|
|
package/tiles/tile.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ interface TileProps {
|
|
|
7
7
|
name: string;
|
|
8
8
|
breakpoint: ReturnType<typeof useContainerBreakpoints>[0];
|
|
9
9
|
onChange: TilesProps['onChange'];
|
|
10
|
+
readOnly?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export declare const Tile: React.ForwardRefExoticComponent<TileProps & React.RefAttributes<HTMLInputElement>>;
|
|
12
13
|
export {};
|
package/tiles/tile.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tile.d.ts","sourceRoot":"","sources":["../../../src/tiles/tile.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAK9E,UAAU,SAAS;IACjB,IAAI,EAAE,UAAU,CAAC,eAAe,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1D,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"tile.d.ts","sourceRoot":"","sources":["../../../src/tiles/tile.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAK9E,UAAU,SAAS;IACjB,IAAI,EAAE,UAAU,CAAC,eAAe,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1D,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,IAAI,oFA8ChB,CAAC"}
|
package/tiles/tile.js
CHANGED
|
@@ -7,13 +7,13 @@ import styles from './styles.css.js';
|
|
|
7
7
|
import { fireNonCancelableEvent } from '../internal/events';
|
|
8
8
|
import { useMergeRefs } from '../internal/hooks/use-merge-refs';
|
|
9
9
|
import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
|
|
10
|
-
export const Tile = React.forwardRef(({ item, selected, name, breakpoint, onChange }, forwardedRef) => {
|
|
10
|
+
export const Tile = React.forwardRef(({ item, selected, name, breakpoint, onChange, readOnly }, forwardedRef) => {
|
|
11
11
|
const internalRef = useRef(null);
|
|
12
12
|
const isVisualRefresh = useVisualRefresh();
|
|
13
13
|
const mergedRef = useMergeRefs(internalRef, forwardedRef);
|
|
14
|
-
return (React.createElement("div", { className: clsx(styles['tile-container'], { [styles['has-metadata']]: item.description || item.image }, { [styles.selected]: selected }, { [styles.disabled]: !!item.disabled }, { [styles.refresh]: isVisualRefresh }, styles[`breakpoint-${breakpoint}`]), "data-value": item.value, onClick: () => {
|
|
14
|
+
return (React.createElement("div", { className: clsx(styles['tile-container'], { [styles['has-metadata']]: item.description || item.image }, { [styles.selected]: selected }, { [styles.disabled]: !!item.disabled }, { [styles.readonly]: readOnly }, { [styles.refresh]: isVisualRefresh }, styles[`breakpoint-${breakpoint}`]), "data-value": item.value, onClick: () => {
|
|
15
15
|
var _a;
|
|
16
|
-
if (item.disabled) {
|
|
16
|
+
if (item.disabled || readOnly) {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
(_a = internalRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -22,7 +22,7 @@ export const Tile = React.forwardRef(({ item, selected, name, breakpoint, onChan
|
|
|
22
22
|
}
|
|
23
23
|
} },
|
|
24
24
|
React.createElement("div", { className: clsx(styles.control, { [styles['no-image']]: !item.image }) },
|
|
25
|
-
React.createElement(RadioButton, { checked: selected, ref: mergedRef, name: name, value: item.value, label: item.label, description: item.description, disabled: item.disabled, controlId: item.controlId })),
|
|
25
|
+
React.createElement(RadioButton, { checked: selected, ref: mergedRef, name: name, value: item.value, label: item.label, description: item.description, disabled: item.disabled, controlId: item.controlId, readOnly: readOnly })),
|
|
26
26
|
item.image && React.createElement("div", { className: clsx(styles.image, { [styles.disabled]: !!item.disabled }) }, item.image)));
|
|
27
27
|
});
|
|
28
28
|
//# sourceMappingURL=tile.js.map
|