@cloudscape-design/components-themeable 3.0.1393 → 3.0.1395
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/internal/components/control-group/styles.scss +29 -0
- package/lib/internal/scss/internal/components/control-group/test-classes/styles.scss +4 -0
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/internal/styles/utils/mixins.scss +6 -0
- package/lib/internal/scss/toggle/motion.scss +46 -20
- package/lib/internal/scss/toggle/styles.scss +4 -3
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/components/control-group/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/control-group/index.js +41 -14
- package/lib/internal/template/internal/components/control-group/index.js.map +1 -1
- package/lib/internal/template/internal/components/control-group/interfaces.d.ts +8 -1
- package/lib/internal/template/internal/components/control-group/interfaces.d.ts.map +1 -1
- package/lib/internal/template/internal/components/control-group/interfaces.js.map +1 -1
- package/lib/internal/template/internal/components/control-group/styles.css.js +20 -16
- package/lib/internal/template/internal/components/control-group/styles.scoped.css +52 -16
- package/lib/internal/template/internal/components/control-group/styles.selectors.js +20 -16
- package/lib/internal/template/internal/components/control-group/test-classes/styles.css.js +4 -3
- package/lib/internal/template/internal/components/control-group/test-classes/styles.scoped.css +7 -3
- package/lib/internal/template/internal/components/control-group/test-classes/styles.selectors.js +4 -3
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/generated/styles/tokens.js +1167 -1167
- package/lib/internal/template/internal/generated/theming/index.cjs +1167 -1167
- package/lib/internal/template/internal/generated/theming/index.js +1167 -1167
- package/lib/internal/template/internal/hooks/use-fits-inline.d.ts +16 -0
- package/lib/internal/template/internal/hooks/use-fits-inline.d.ts.map +1 -0
- package/lib/internal/template/internal/hooks/use-fits-inline.js +31 -0
- package/lib/internal/template/internal/hooks/use-fits-inline.js.map +1 -0
- package/lib/internal/template/test-utils/dom/internal/control-group.d.ts +4 -0
- package/lib/internal/template/test-utils/dom/internal/control-group.js +6 -0
- package/lib/internal/template/test-utils/dom/internal/control-group.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/internal/control-group.d.ts +4 -0
- package/lib/internal/template/test-utils/selectors/internal/control-group.js +6 -0
- package/lib/internal/template/test-utils/selectors/internal/control-group.js.map +1 -1
- package/lib/internal/template/toggle/styles.css.js +10 -10
- package/lib/internal/template/toggle/styles.scoped.css +30 -17
- package/lib/internal/template/toggle/styles.selectors.js +10 -10
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface UseFitsInlineResult<T extends HTMLElement> {
|
|
3
|
+
fits: boolean;
|
|
4
|
+
ghostRef: React.Ref<T>;
|
|
5
|
+
sensorRef: React.Ref<T>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Reports whether content fits by comparing the available width (hidden sensor) against the
|
|
9
|
+
* required width (hidden single-row ghost). Measuring these independently avoids the feedback
|
|
10
|
+
* loop where the content's own collapse would shrink the measurement and never re-expand.
|
|
11
|
+
*
|
|
12
|
+
* The ghost is a hidden single-row copy of everything on the row.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useFitsInline<T extends HTMLElement = HTMLElement>(): UseFitsInlineResult<T>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=use-fits-inline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-fits-inline.d.ts","sourceRoot":"","sources":["../../../../src/internal/hooks/use-fits-inline.ts"],"names":[],"mappings":"AAEA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAK3C,UAAU,mBAAmB,CAAC,CAAC,SAAS,WAAW;IAEjD,IAAI,EAAE,OAAO,CAAC;IAGd,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAEvB,SAAS,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACzB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,KAAK,mBAAmB,CAAC,CAAC,CAAC,CAoB3F"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { useCallback } from 'react';
|
|
4
|
+
import { useContainerQuery } from '@cloudscape-design/component-toolkit';
|
|
5
|
+
import { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';
|
|
6
|
+
/**
|
|
7
|
+
* Reports whether content fits by comparing the available width (hidden sensor) against the
|
|
8
|
+
* required width (hidden single-row ghost). Measuring these independently avoids the feedback
|
|
9
|
+
* loop where the content's own collapse would shrink the measurement and never re-expand.
|
|
10
|
+
*
|
|
11
|
+
* The ghost is a hidden single-row copy of everything on the row.
|
|
12
|
+
*/
|
|
13
|
+
export function useFitsInline() {
|
|
14
|
+
const [availableWidth, sensorWidthRef] = useContainerQuery(entry => entry.contentBoxWidth);
|
|
15
|
+
const [requiredWidth, ghostWidthRef] = useContainerQuery(entry => entry.contentBoxWidth);
|
|
16
|
+
// Mark the ghost subtree `inert` so its duplicated content adds no tab stops and is hidden from
|
|
17
|
+
// assistive tech. A ref callback rather than an effect, since `inert` isn't rendered by React < 19.
|
|
18
|
+
const ghostInertRef = useCallback((node) => {
|
|
19
|
+
if (node) {
|
|
20
|
+
node.inert = true;
|
|
21
|
+
}
|
|
22
|
+
}, []);
|
|
23
|
+
// `-1` tolerance avoids flipping on sub-pixel rounding.
|
|
24
|
+
const fits = availableWidth !== null && requiredWidth !== null ? availableWidth >= requiredWidth - 1 : true;
|
|
25
|
+
return {
|
|
26
|
+
fits,
|
|
27
|
+
ghostRef: useMergeRefs(ghostWidthRef, ghostInertRef),
|
|
28
|
+
sensorRef: sensorWidthRef,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=use-fits-inline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-fits-inline.js","sourceRoot":"","sources":["../../../../src/internal/hooks/use-fits-inline.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAY7E;;;;;;GAMG;AACH,MAAM,UAAU,aAAa;IAC3B,MAAM,CAAC,cAAc,EAAE,cAAc,CAAC,GAAG,iBAAiB,CAAS,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IACnG,MAAM,CAAC,aAAa,EAAE,aAAa,CAAC,GAAG,iBAAiB,CAAS,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAEjG,gGAAgG;IAChG,oGAAoG;IACpG,MAAM,aAAa,GAAG,WAAW,CAAC,CAAC,IAAc,EAAE,EAAE;QACnD,IAAI,IAAI,EAAE,CAAC;YACT,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QACpB,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,wDAAwD;IACxD,MAAM,IAAI,GAAG,cAAc,KAAK,IAAI,IAAI,aAAa,KAAK,IAAI,CAAC,CAAC,CAAC,cAAc,IAAI,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAE5G,OAAO;QACL,IAAI;QACJ,QAAQ,EAAE,YAAY,CAAC,aAAa,EAAE,aAAa,CAAC;QACpD,SAAS,EAAE,cAAc;KAC1B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback } from 'react';\n\nimport { useContainerQuery } from '@cloudscape-design/component-toolkit';\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\n\ninterface UseFitsInlineResult<T extends HTMLElement> {\n // `true` when content fits; also `true` until both widths are known.\n fits: boolean;\n // Attach to the hidden single-row ghost (required width). The ghost must contain\n // everything that shares the row, so its measured width is the full required width.\n ghostRef: React.Ref<T>;\n // Attach to the hidden sensor (available width).\n sensorRef: React.Ref<T>;\n}\n\n/**\n * Reports whether content fits by comparing the available width (hidden sensor) against the\n * required width (hidden single-row ghost). Measuring these independently avoids the feedback\n * loop where the content's own collapse would shrink the measurement and never re-expand.\n *\n * The ghost is a hidden single-row copy of everything on the row.\n */\nexport function useFitsInline<T extends HTMLElement = HTMLElement>(): UseFitsInlineResult<T> {\n const [availableWidth, sensorWidthRef] = useContainerQuery<number>(entry => entry.contentBoxWidth);\n const [requiredWidth, ghostWidthRef] = useContainerQuery<number>(entry => entry.contentBoxWidth);\n\n // Mark the ghost subtree `inert` so its duplicated content adds no tab stops and is hidden from\n // assistive tech. A ref callback rather than an effect, since `inert` isn't rendered by React < 19.\n const ghostInertRef = useCallback((node: T | null) => {\n if (node) {\n node.inert = true;\n }\n }, []);\n\n // `-1` tolerance avoids flipping on sub-pixel rounding.\n const fits = availableWidth !== null && requiredWidth !== null ? availableWidth >= requiredWidth - 1 : true;\n\n return {\n fits,\n ghostRef: useMergeRefs(ghostWidthRef, ghostInertRef),\n sensorRef: sensorWidthRef,\n };\n}\n"]}
|
|
@@ -2,6 +2,10 @@ import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-
|
|
|
2
2
|
import ButtonWrapper from '../button';
|
|
3
3
|
export default class ControlGroupWrapper extends ComponentWrapper {
|
|
4
4
|
static rootSelector: string;
|
|
5
|
+
/**
|
|
6
|
+
* Returns an array of the individual grouped controls.
|
|
7
|
+
*/
|
|
8
|
+
findControls(): Array<ElementWrapper>;
|
|
5
9
|
/**
|
|
6
10
|
* Returns the visible inline label element, or null if no label is set.
|
|
7
11
|
*/
|
|
@@ -6,6 +6,12 @@ const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
|
6
6
|
const button_1 = require("../button");
|
|
7
7
|
const styles_selectors_js_1 = require("../../../internal/components/control-group/test-classes/styles.selectors.js");
|
|
8
8
|
class ControlGroupWrapper extends dom_1.ComponentWrapper {
|
|
9
|
+
/**
|
|
10
|
+
* Returns an array of the individual grouped controls.
|
|
11
|
+
*/
|
|
12
|
+
findControls() {
|
|
13
|
+
return this.findAll(`.${styles_selectors_js_1.default.control}`);
|
|
14
|
+
}
|
|
9
15
|
/**
|
|
10
16
|
* Returns the visible inline label element, or null if no label is set.
|
|
11
17
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-group.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/control-group.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,sCAAsC;AAEtC,qHAAyG;AAEzG,MAAqB,mBAAoB,SAAQ,sBAAgB;IAG/D;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,cAAc,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAc,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAClF,CAAC;;
|
|
1
|
+
{"version":3,"file":"control-group.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/control-group.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,sCAAsC;AAEtC,qHAAyG;AAEzG,MAAqB,mBAAoB,SAAQ,sBAAgB;IAG/D;;OAEG;IACH,YAAY;QACV,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,6BAAc,CAAC,OAAO,EAAE,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,cAAc,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAc,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAClF,CAAC;;AArBM,gCAAY,GAAW,6BAAc,CAAC,IAAI,CAAC;kBAD/B,mBAAmB"}
|
|
@@ -2,6 +2,10 @@ import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-
|
|
|
2
2
|
import ButtonWrapper from '../button';
|
|
3
3
|
export default class ControlGroupWrapper extends ComponentWrapper {
|
|
4
4
|
static rootSelector: string;
|
|
5
|
+
/**
|
|
6
|
+
* Returns an array of the individual grouped controls.
|
|
7
|
+
*/
|
|
8
|
+
findControls(): import("@cloudscape-design/test-utils-core/selectors").MultiElementWrapper<ElementWrapper>;
|
|
5
9
|
/**
|
|
6
10
|
* Returns the visible inline label element, or null if no label is set.
|
|
7
11
|
*/
|
|
@@ -6,6 +6,12 @@ const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
|
6
6
|
const button_1 = require("../button");
|
|
7
7
|
const styles_selectors_js_1 = require("../../../internal/components/control-group/test-classes/styles.selectors.js");
|
|
8
8
|
class ControlGroupWrapper extends selectors_1.ComponentWrapper {
|
|
9
|
+
/**
|
|
10
|
+
* Returns an array of the individual grouped controls.
|
|
11
|
+
*/
|
|
12
|
+
findControls() {
|
|
13
|
+
return this.findAll(`.${styles_selectors_js_1.default.control}`);
|
|
14
|
+
}
|
|
9
15
|
/**
|
|
10
16
|
* Returns the visible inline label element, or null if no label is set.
|
|
11
17
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-group.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/internal/control-group.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,sCAAsC;AACtC,qHAAyG;AACzG,MAAqB,mBAAoB,SAAQ,4BAAgB;IAG/D;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,cAAc,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAc,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAClF,CAAC;;
|
|
1
|
+
{"version":3,"file":"control-group.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/internal/control-group.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,sCAAsC;AACtC,qHAAyG;AACzG,MAAqB,mBAAoB,SAAQ,4BAAgB;IAG/D;;OAEG;IACH,YAAY;QACV,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,6BAAc,CAAC,OAAO,EAAE,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,cAAc,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAc,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAClF,CAAC;;AArBM,gCAAY,GAAW,6BAAc,CAAC,IAAI,CAAC;kBAD/B,mBAAmB"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"outline": "
|
|
6
|
-
"toggle-control": "awsui_toggle-
|
|
7
|
-
"toggle-control-checked": "awsui_toggle-control-
|
|
8
|
-
"toggle-control-disabled": "awsui_toggle-control-
|
|
9
|
-
"toggle-control-readonly": "awsui_toggle-control-
|
|
10
|
-
"toggle-handle": "awsui_toggle-
|
|
11
|
-
"toggle-handle-checked": "awsui_toggle-handle-
|
|
12
|
-
"toggle-handle-disabled": "awsui_toggle-handle-
|
|
13
|
-
"toggle-handle-readonly": "awsui_toggle-handle-
|
|
4
|
+
"root": "awsui_root_4yi2u_v0uut_44",
|
|
5
|
+
"outline": "awsui_outline_4yi2u_v0uut_77",
|
|
6
|
+
"toggle-control": "awsui_toggle-control_4yi2u_v0uut_99",
|
|
7
|
+
"toggle-control-checked": "awsui_toggle-control-checked_4yi2u_v0uut_119",
|
|
8
|
+
"toggle-control-disabled": "awsui_toggle-control-disabled_4yi2u_v0uut_122",
|
|
9
|
+
"toggle-control-readonly": "awsui_toggle-control-readonly_4yi2u_v0uut_128",
|
|
10
|
+
"toggle-handle": "awsui_toggle-handle_4yi2u_v0uut_131",
|
|
11
|
+
"toggle-handle-checked": "awsui_toggle-handle-checked_4yi2u_v0uut_156",
|
|
12
|
+
"toggle-handle-disabled": "awsui_toggle-handle-disabled_4yi2u_v0uut_163",
|
|
13
|
+
"toggle-handle-readonly": "awsui_toggle-handle-readonly_4yi2u_v0uut_167"
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
7
7
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
8
8
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
9
|
+
/*
|
|
10
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
11
|
+
SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
*/
|
|
9
13
|
@property --awsui-style-color {
|
|
10
14
|
syntax: "*";
|
|
11
15
|
inherits: false;
|
|
@@ -37,7 +41,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
37
41
|
/* awsui:style-api-slot name=control tokens=color, background-color, focus-ring-color, focus-ring-width, focus-ring-radius, focus-ring-gutter-block, focus-ring-gutter-inline properties= */
|
|
38
42
|
/* awsui:style-api-slot name=label tokens=color properties= */
|
|
39
43
|
/* awsui:style-api-slot name=description tokens=color properties= */
|
|
40
|
-
.
|
|
44
|
+
.awsui_root_4yi2u_v0uut_44:not(#\9) {
|
|
41
45
|
border-collapse: separate;
|
|
42
46
|
border-spacing: 0;
|
|
43
47
|
box-sizing: border-box;
|
|
@@ -70,14 +74,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
70
74
|
display: flex;
|
|
71
75
|
}
|
|
72
76
|
|
|
73
|
-
.
|
|
77
|
+
.awsui_outline_4yi2u_v0uut_77:not(#\9) {
|
|
74
78
|
position: relative;
|
|
75
79
|
}
|
|
76
|
-
.
|
|
80
|
+
.awsui_outline_4yi2u_v0uut_77:not(#\9) {
|
|
77
81
|
outline: 2px dotted transparent;
|
|
78
82
|
outline-offset: calc(var(--awsui-internal-style-focus-ring-gutter-inline, 2px) - 1px);
|
|
79
83
|
}
|
|
80
|
-
.
|
|
84
|
+
.awsui_outline_4yi2u_v0uut_77:not(#\9)::before {
|
|
81
85
|
content: " ";
|
|
82
86
|
display: block;
|
|
83
87
|
position: absolute;
|
|
@@ -92,7 +96,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
92
96
|
box-shadow: 0 0 0 var(--awsui-internal-style-focus-ring-width, var(--awsui-style-focus-ring-border-width-ka4djm, 2px)) var(--awsui-internal-style-focus-ring-color, var(--awsui-style-focus-ring-border-color-ka4djm, var(--color-border-item-focused-sewkzn, #0073bb)));
|
|
93
97
|
}
|
|
94
98
|
|
|
95
|
-
.awsui_toggle-
|
|
99
|
+
.awsui_toggle-control_4yi2u_v0uut_99:not(#\9) {
|
|
96
100
|
--awsui-internal-style-color: var(--awsui-style-color);
|
|
97
101
|
--awsui-internal-style-background-color: var(--awsui-style-background-color);
|
|
98
102
|
--awsui-internal-style-focus-ring-color: var(--awsui-style-focus-ring-color);
|
|
@@ -112,19 +116,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
112
116
|
border-end-start-radius: 8px;
|
|
113
117
|
border-end-end-radius: 8px;
|
|
114
118
|
}
|
|
115
|
-
.awsui_toggle-control-
|
|
119
|
+
.awsui_toggle-control-checked_4yi2u_v0uut_119:not(#\9) {
|
|
116
120
|
background: var(--awsui-internal-style-background-color, var(--color-background-control-checked-ksqwhc, #0073bb));
|
|
117
121
|
}
|
|
118
|
-
.awsui_toggle-control-
|
|
122
|
+
.awsui_toggle-control-disabled_4yi2u_v0uut_122:not(#\9) {
|
|
119
123
|
background: var(--awsui-internal-style-background-color, var(--color-background-control-disabled-m61b8s, #d5dbdb));
|
|
120
124
|
}
|
|
121
|
-
.awsui_toggle-control-
|
|
125
|
+
.awsui_toggle-control-disabled_4yi2u_v0uut_122.awsui_toggle-control-checked_4yi2u_v0uut_119:not(#\9) {
|
|
122
126
|
background: var(--awsui-internal-style-background-color, var(--color-background-toggle-checked-disabled-81loy3, #99cbe4));
|
|
123
127
|
}
|
|
124
|
-
.awsui_toggle-control-
|
|
128
|
+
.awsui_toggle-control-readonly_4yi2u_v0uut_128:not(#\9) {
|
|
125
129
|
background: var(--awsui-internal-style-background-color, var(--color-background-control-disabled-m61b8s, #d5dbdb));
|
|
126
130
|
}
|
|
127
|
-
.awsui_toggle-
|
|
131
|
+
.awsui_toggle-handle_4yi2u_v0uut_131:not(#\9) {
|
|
128
132
|
display: block;
|
|
129
133
|
position: absolute;
|
|
130
134
|
border-start-start-radius: 6px;
|
|
@@ -140,29 +144,38 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
140
144
|
transition: transform var(--motion-duration-fast-yb0m8k, 90ms) var(--motion-easing-ease-out-quart-k5q7pi, cubic-bezier(0.165, 0.84, 0.44, 1)), background-color var(--motion-duration-fast-yb0m8k, 90ms) var(--motion-easing-ease-out-quart-k5q7pi, cubic-bezier(0.165, 0.84, 0.44, 1));
|
|
141
145
|
}
|
|
142
146
|
@media (prefers-reduced-motion: reduce) {
|
|
143
|
-
.awsui_toggle-
|
|
147
|
+
.awsui_toggle-handle_4yi2u_v0uut_131:not(#\9) {
|
|
144
148
|
animation: none;
|
|
145
149
|
transition: none;
|
|
146
150
|
}
|
|
147
151
|
}
|
|
148
|
-
.awsui-motion-disabled .awsui_toggle-
|
|
152
|
+
.awsui-motion-disabled .awsui_toggle-handle_4yi2u_v0uut_131:not(#\9), .awsui-mode-entering .awsui_toggle-handle_4yi2u_v0uut_131:not(#\9) {
|
|
149
153
|
animation: none;
|
|
150
154
|
transition: none;
|
|
151
155
|
}
|
|
152
|
-
.awsui_toggle-handle-
|
|
156
|
+
.awsui_toggle-handle-checked_4yi2u_v0uut_156:not(#\9) {
|
|
153
157
|
transform: translateX(8px);
|
|
154
158
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
155
159
|
}
|
|
156
|
-
.awsui_toggle-handle-
|
|
160
|
+
.awsui_toggle-handle-checked_4yi2u_v0uut_156:not(#\9):dir(rtl) {
|
|
157
161
|
transform: translateX(-8px);
|
|
158
162
|
}
|
|
159
|
-
.awsui_toggle-handle-
|
|
163
|
+
.awsui_toggle-handle-disabled_4yi2u_v0uut_163:not(#\9) {
|
|
160
164
|
background: var(--awsui-internal-style-color, var(--color-foreground-control-disabled-bikivj, #ffffff));
|
|
161
165
|
box-shadow: none;
|
|
162
166
|
}
|
|
163
|
-
.awsui_toggle-handle-
|
|
167
|
+
.awsui_toggle-handle-readonly_4yi2u_v0uut_167:not(#\9):not(.awsui_toggle-handle-disabled_4yi2u_v0uut_163) {
|
|
164
168
|
box-shadow: none;
|
|
165
169
|
}
|
|
166
|
-
.awsui_toggle-handle-
|
|
170
|
+
.awsui_toggle-handle-readonly_4yi2u_v0uut_167:not(#\9):not(.awsui_toggle-handle-disabled_4yi2u_v0uut_163).awsui_toggle-handle-checked_4yi2u_v0uut_156 {
|
|
167
171
|
background: var(--awsui-internal-style-color, var(--color-foreground-control-read-only-8sqxyy, #687078));
|
|
172
|
+
}
|
|
173
|
+
.awsui_toggle-handle_4yi2u_v0uut_131.awsui_toggle-handle-checked_4yi2u_v0uut_156:not(#\9) {
|
|
174
|
+
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
175
|
+
}
|
|
176
|
+
.awsui_toggle-handle_4yi2u_v0uut_131[data-awsui-motion-ready]:not(#\9) {
|
|
177
|
+
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
178
|
+
}
|
|
179
|
+
.awsui_toggle-handle_4yi2u_v0uut_131[data-awsui-motion-ready].awsui_toggle-handle-checked_4yi2u_v0uut_156:not(#\9) {
|
|
180
|
+
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
168
181
|
}
|
|
@@ -2,15 +2,15 @@
|
|
|
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
|
-
"outline": "
|
|
7
|
-
"toggle-control": "awsui_toggle-
|
|
8
|
-
"toggle-control-checked": "awsui_toggle-control-
|
|
9
|
-
"toggle-control-disabled": "awsui_toggle-control-
|
|
10
|
-
"toggle-control-readonly": "awsui_toggle-control-
|
|
11
|
-
"toggle-handle": "awsui_toggle-
|
|
12
|
-
"toggle-handle-checked": "awsui_toggle-handle-
|
|
13
|
-
"toggle-handle-disabled": "awsui_toggle-handle-
|
|
14
|
-
"toggle-handle-readonly": "awsui_toggle-handle-
|
|
5
|
+
"root": "awsui_root_4yi2u_v0uut_44",
|
|
6
|
+
"outline": "awsui_outline_4yi2u_v0uut_77",
|
|
7
|
+
"toggle-control": "awsui_toggle-control_4yi2u_v0uut_99",
|
|
8
|
+
"toggle-control-checked": "awsui_toggle-control-checked_4yi2u_v0uut_119",
|
|
9
|
+
"toggle-control-disabled": "awsui_toggle-control-disabled_4yi2u_v0uut_122",
|
|
10
|
+
"toggle-control-readonly": "awsui_toggle-control-readonly_4yi2u_v0uut_128",
|
|
11
|
+
"toggle-handle": "awsui_toggle-handle_4yi2u_v0uut_131",
|
|
12
|
+
"toggle-handle-checked": "awsui_toggle-handle-checked_4yi2u_v0uut_156",
|
|
13
|
+
"toggle-handle-disabled": "awsui_toggle-handle-disabled_4yi2u_v0uut_163",
|
|
14
|
+
"toggle-handle-readonly": "awsui_toggle-handle-readonly_4yi2u_v0uut_167"
|
|
15
15
|
};
|
|
16
16
|
|