@cloudscape-design/components 3.0.1391 → 3.0.1392
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/alert/styles.css.js +27 -27
- package/alert/styles.scoped.css +50 -50
- package/alert/styles.selectors.js +27 -27
- package/annotation-context/annotation/styles.css.js +13 -13
- package/annotation-context/annotation/styles.scoped.css +21 -21
- package/annotation-context/annotation/styles.selectors.js +13 -13
- package/app-layout/notifications/styles.css.js +3 -3
- package/app-layout/notifications/styles.scoped.css +7 -7
- package/app-layout/notifications/styles.selectors.js +3 -3
- package/app-layout/visual-refresh/styles.css.js +86 -86
- package/app-layout/visual-refresh/styles.scoped.css +258 -258
- package/app-layout/visual-refresh/styles.selectors.js +86 -86
- package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
- package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +89 -89
- package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
- package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -6
- package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +13 -13
- package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
- package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -30
- package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +68 -68
- package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
- package/attribute-editor/styles.css.js +15 -15
- package/attribute-editor/styles.scoped.css +28 -28
- package/attribute-editor/styles.selectors.js +15 -15
- package/breadcrumb-group/item/styles.css.js +7 -7
- package/breadcrumb-group/item/styles.scoped.css +28 -28
- package/breadcrumb-group/item/styles.selectors.js +7 -7
- package/button/styles.css.js +23 -23
- package/button/styles.scoped.css +261 -261
- package/button/styles.selectors.js +23 -23
- package/button-dropdown/item-element/styles.css.js +21 -21
- package/button-dropdown/item-element/styles.scoped.css +37 -37
- package/button-dropdown/item-element/styles.selectors.js +21 -21
- package/cards/styles.css.js +39 -39
- package/cards/styles.scoped.css +41 -41
- package/cards/styles.selectors.js +39 -39
- package/checkbox/styles.css.js +3 -3
- package/checkbox/styles.scoped.css +10 -10
- package/checkbox/styles.selectors.js +3 -3
- package/container/style.d.ts +1 -15
- package/container/style.d.ts.map +1 -1
- package/container/style.js +6 -2
- package/container/style.js.map +1 -1
- package/container/styles.css.js +34 -34
- package/container/styles.scoped.css +87 -87
- package/container/styles.selectors.js +34 -34
- package/content-layout/styles.css.js +14 -14
- package/content-layout/styles.scoped.css +27 -27
- package/content-layout/styles.selectors.js +14 -14
- package/dropdown/styles.css.js +20 -20
- package/dropdown/styles.scoped.css +49 -49
- package/dropdown/styles.selectors.js +20 -20
- package/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/expandable-section/expandable-section-header.js +1 -1
- package/expandable-section/expandable-section-header.js.map +1 -1
- package/expandable-section/interfaces.d.ts +4 -4
- package/expandable-section/interfaces.js.map +1 -1
- package/file-token-group/styles.css.js +23 -23
- package/file-token-group/styles.scoped.css +36 -36
- package/file-token-group/styles.selectors.js +23 -23
- package/flashbar/styles.css.js +50 -50
- package/flashbar/styles.scoped.css +184 -184
- package/flashbar/styles.selectors.js +50 -50
- package/help-panel/styles.css.js +6 -6
- package/help-panel/styles.scoped.css +72 -72
- package/help-panel/styles.selectors.js +6 -6
- package/input/internal.d.ts.map +1 -1
- package/input/internal.js +11 -4
- package/input/internal.js.map +1 -1
- package/input/styles.css.js +34 -29
- package/input/styles.scoped.css +158 -137
- package/input/styles.selectors.js +34 -29
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/components/autosuggest-input/index.d.ts.map +1 -1
- package/internal/components/autosuggest-input/index.js +4 -1
- package/internal/components/autosuggest-input/index.js.map +1 -1
- package/internal/components/button-trigger/index.d.ts +2 -0
- package/internal/components/button-trigger/index.d.ts.map +1 -1
- package/internal/components/button-trigger/index.js +2 -2
- package/internal/components/button-trigger/index.js.map +1 -1
- package/internal/components/button-trigger/styles.css.js +19 -14
- package/internal/components/button-trigger/styles.scoped.css +53 -33
- package/internal/components/button-trigger/styles.selectors.js +19 -14
- package/internal/components/control-group/index.d.ts +9 -0
- package/internal/components/control-group/index.d.ts.map +1 -0
- package/internal/components/control-group/index.js +20 -0
- package/internal/components/control-group/index.js.map +1 -0
- package/internal/components/control-group/styles.css.js +9 -0
- package/internal/components/control-group/styles.scoped.css +54 -0
- package/internal/components/control-group/styles.selectors.js +10 -0
- package/internal/components/drag-handle-wrapper/styles.css.js +30 -30
- package/internal/components/drag-handle-wrapper/styles.scoped.css +58 -58
- package/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
- package/internal/components/option/styles.css.js +17 -17
- package/internal/components/option/styles.scoped.css +31 -31
- package/internal/components/option/styles.selectors.js +17 -17
- package/internal/components/radio-button/styles.css.js +7 -7
- package/internal/components/radio-button/styles.scoped.css +17 -17
- package/internal/components/radio-button/styles.selectors.js +7 -7
- package/internal/components/selectable-item/styles.css.js +22 -22
- package/internal/components/selectable-item/styles.scoped.css +57 -57
- package/internal/components/selectable-item/styles.selectors.js +22 -22
- package/internal/components/token-list/styles.css.js +10 -10
- package/internal/components/token-list/styles.scoped.css +25 -25
- package/internal/components/token-list/styles.selectors.js +10 -10
- package/internal/context/control-group-context.d.ts +25 -0
- package/internal/context/control-group-context.d.ts.map +1 -0
- package/internal/context/control-group-context.js +22 -0
- package/internal/context/control-group-context.js.map +1 -0
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/generated/custom-css-properties/index.d.ts +1 -0
- package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/internal/generated/custom-css-properties/index.js +175 -174
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/item-card/styles.css.js +14 -14
- package/item-card/styles.scoped.css +63 -63
- package/item-card/styles.selectors.js +14 -14
- package/link/styles.css.js +21 -21
- package/link/styles.scoped.css +104 -104
- package/link/styles.selectors.js +21 -21
- package/manifest.json +2 -2
- package/modal/styles.css.js +31 -31
- package/modal/styles.scoped.css +48 -48
- package/modal/styles.selectors.js +31 -31
- package/multiselect/internal.d.ts.map +1 -1
- package/multiselect/internal.js +12 -9
- package/multiselect/internal.js.map +1 -1
- package/package.json +1 -1
- package/progress-bar/styles.css.js +19 -19
- package/progress-bar/styles.scoped.css +58 -58
- package/progress-bar/styles.selectors.js +19 -19
- package/prompt-input/styles.css.js +26 -26
- package/prompt-input/styles.scoped.css +105 -109
- package/prompt-input/styles.selectors.js +26 -26
- package/segmented-control/internal-segmented-control.d.ts +8 -2
- package/segmented-control/internal-segmented-control.d.ts.map +1 -1
- package/segmented-control/internal-segmented-control.js +3 -1
- package/segmented-control/internal-segmented-control.js.map +1 -1
- package/segmented-control/internal.d.ts.map +1 -1
- package/segmented-control/internal.js +7 -2
- package/segmented-control/internal.js.map +1 -1
- package/segmented-control/styles.css.js +21 -16
- package/segmented-control/styles.scoped.css +74 -46
- package/segmented-control/styles.selectors.js +21 -16
- package/select/internal.d.ts.map +1 -1
- package/select/internal.js +11 -8
- package/select/internal.js.map +1 -1
- package/select/parts/styles.css.js +21 -21
- package/select/parts/styles.scoped.css +24 -24
- package/select/parts/styles.selectors.js +21 -21
- package/select/parts/trigger.d.ts +2 -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/side-navigation/styles.css.js +64 -64
- package/side-navigation/styles.scoped.css +119 -114
- package/side-navigation/styles.selectors.js +64 -64
- package/slider/styles.css.js +26 -26
- package/slider/styles.scoped.css +165 -165
- package/slider/styles.selectors.js +26 -26
- package/spinner/styles.css.js +14 -14
- package/spinner/styles.scoped.css +40 -40
- package/spinner/styles.selectors.js +14 -14
- package/table/styles.css.js +37 -37
- package/table/styles.scoped.css +46 -46
- package/table/styles.selectors.js +37 -37
- package/tabs/styles.css.js +30 -30
- package/tabs/styles.scoped.css +76 -76
- package/tabs/styles.selectors.js +30 -30
- package/tag-editor/styles.css.js +3 -3
- package/tag-editor/styles.scoped.css +13 -13
- package/tag-editor/styles.selectors.js +3 -3
- package/text-content/styles.css.js +1 -1
- package/text-content/styles.scoped.css +66 -66
- package/text-content/styles.selectors.js +1 -1
- package/textarea/styles.css.js +9 -9
- package/textarea/styles.scoped.css +51 -55
- package/textarea/styles.selectors.js +9 -9
- package/toggle/styles.css.js +10 -10
- package/toggle/styles.scoped.css +22 -22
- package/toggle/styles.selectors.js +10 -10
- package/token/styles.css.js +14 -14
- package/token/styles.scoped.css +46 -46
- package/token/styles.selectors.js +14 -14
|
@@ -6,21 +6,21 @@
|
|
|
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
|
-
.
|
|
9
|
+
.awsui_root_gfwv3_1qe9q_9:not(#\9) {
|
|
10
10
|
gap: var(--space-scaled-xs-pajbd1, 8px);
|
|
11
11
|
}
|
|
12
|
-
.
|
|
12
|
+
.awsui_root_gfwv3_1qe9q_9.awsui_horizontal_gfwv3_1qe9q_12:not(#\9) {
|
|
13
13
|
display: flex;
|
|
14
14
|
gap: var(--space-xs-m9b7jf, 8px);
|
|
15
15
|
flex-direction: row;
|
|
16
16
|
flex-wrap: wrap;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.awsui_root_gfwv3_1qe9q_9.awsui_vertical_gfwv3_1qe9q_18:not(#\9) {
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-direction: column;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.
|
|
23
|
+
.awsui_list_gfwv3_1qe9q_23:not(#\9) {
|
|
24
24
|
display: contents;
|
|
25
25
|
list-style: none;
|
|
26
26
|
padding-block: 0;
|
|
@@ -28,43 +28,43 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
28
28
|
margin-block: 0;
|
|
29
29
|
margin-inline: 0;
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.awsui_list_gfwv3_1qe9q_23.awsui_horizontal_gfwv3_1qe9q_12:not(#\9), .awsui_list_gfwv3_1qe9q_23.awsui_vertical_gfwv3_1qe9q_18:not(#\9) {
|
|
32
32
|
display: flex;
|
|
33
33
|
gap: var(--space-xs-m9b7jf, 8px);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.awsui_list_gfwv3_1qe9q_23.awsui_horizontal_gfwv3_1qe9q_12:not(#\9) {
|
|
36
36
|
flex-direction: row;
|
|
37
37
|
flex-wrap: wrap;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.awsui_list_gfwv3_1qe9q_23.awsui_vertical_gfwv3_1qe9q_18:not(#\9) {
|
|
40
40
|
flex-direction: column;
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.awsui_list_gfwv3_1qe9q_23.awsui_grid_gfwv3_1qe9q_42:not(#\9) {
|
|
43
43
|
display: grid;
|
|
44
44
|
gap: var(--space-xs-m9b7jf, 8px);
|
|
45
45
|
grid-template-columns: repeat(auto-fill, 230px);
|
|
46
46
|
}
|
|
47
47
|
@media (max-width: 688px) {
|
|
48
|
-
.
|
|
48
|
+
.awsui_list_gfwv3_1qe9q_23.awsui_grid_gfwv3_1qe9q_42:not(#\9) {
|
|
49
49
|
display: flex;
|
|
50
50
|
flex-direction: column;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.awsui_list-
|
|
54
|
+
.awsui_list-item_gfwv3_1qe9q_54:not(#\9) {
|
|
55
55
|
padding-block: 0;
|
|
56
56
|
padding-inline: 0;
|
|
57
57
|
margin-block: 0;
|
|
58
58
|
margin-inline: 0;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.awsui_toggle-container-
|
|
61
|
+
.awsui_toggle-container-inline_gfwv3_1qe9q_61:not(#\9) {
|
|
62
62
|
padding-inline-start: var(--space-xs-m9b7jf, 8px);
|
|
63
63
|
display: flex;
|
|
64
64
|
align-items: center;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
.
|
|
67
|
+
.awsui_toggle_gfwv3_1qe9q_61:not(#\9) {
|
|
68
68
|
border-collapse: separate;
|
|
69
69
|
border-spacing: 0;
|
|
70
70
|
box-sizing: border-box;
|
|
@@ -105,7 +105,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
105
105
|
text-underline-offset: 0.25em;
|
|
106
106
|
text-decoration-thickness: var(--font-decoration-thickness-link-n3u7wl, 1px);
|
|
107
107
|
text-decoration-style: var(--font-decoration-style-link-lw1s9g, solid);
|
|
108
|
-
color: var(--awsui-style-color-default-
|
|
108
|
+
color: var(--awsui-style-color-default-ka4djm, var(--color-text-link-secondary-default-urew28, #006ce0));
|
|
109
109
|
font-weight: var(--font-weight-link-secondary-gzuq69, inherit);
|
|
110
110
|
letter-spacing: normal;
|
|
111
111
|
text-decoration-line: var(--font-decoration-line-link-secondary-tcr1f6, none);
|
|
@@ -116,34 +116,34 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
116
116
|
transition-duration: var(--motion-duration-refresh-only-medium-s8g1xv, 165ms);
|
|
117
117
|
}
|
|
118
118
|
@media (prefers-reduced-motion: reduce) {
|
|
119
|
-
.
|
|
119
|
+
.awsui_toggle_gfwv3_1qe9q_61:not(#\9) {
|
|
120
120
|
animation: none;
|
|
121
121
|
transition: none;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
.awsui-motion-disabled .
|
|
124
|
+
.awsui-motion-disabled .awsui_toggle_gfwv3_1qe9q_61:not(#\9), .awsui-mode-entering .awsui_toggle_gfwv3_1qe9q_61:not(#\9) {
|
|
125
125
|
animation: none;
|
|
126
126
|
transition: none;
|
|
127
127
|
}
|
|
128
|
-
.
|
|
128
|
+
.awsui_toggle_gfwv3_1qe9q_61:not(#\9):hover {
|
|
129
129
|
cursor: pointer;
|
|
130
|
-
color: var(--awsui-style-color-hover-
|
|
130
|
+
color: var(--awsui-style-color-hover-ka4djm, var(--color-text-link-secondary-hover-kql7rc, #002b66));
|
|
131
131
|
}
|
|
132
|
-
.
|
|
132
|
+
.awsui_toggle_gfwv3_1qe9q_61:not(#\9):focus {
|
|
133
133
|
outline: none;
|
|
134
134
|
}
|
|
135
|
-
.
|
|
136
|
-
color: var(--awsui-style-color-active-
|
|
135
|
+
.awsui_toggle_gfwv3_1qe9q_61:not(#\9):active {
|
|
136
|
+
color: var(--awsui-style-color-active-ka4djm, var(--color-text-link-secondary-hover-kql7rc, #002b66));
|
|
137
137
|
}
|
|
138
|
-
.
|
|
138
|
+
.awsui_toggle_gfwv3_1qe9q_61:not(#\9):active, .awsui_toggle_gfwv3_1qe9q_61:not(#\9):focus, .awsui_toggle_gfwv3_1qe9q_61:not(#\9):hover {
|
|
139
139
|
text-decoration-line: underline;
|
|
140
140
|
text-decoration-color: var(--color-text-link-decoration-hover-opkmr8, currentColor);
|
|
141
141
|
}
|
|
142
|
-
.
|
|
142
|
+
.awsui_toggle_gfwv3_1qe9q_61:not(#\9):active, .awsui_toggle_gfwv3_1qe9q_61:not(#\9):focus, .awsui_toggle_gfwv3_1qe9q_61:not(#\9):hover {
|
|
143
143
|
text-decoration: none;
|
|
144
144
|
text-decoration-color: transparent;
|
|
145
145
|
}
|
|
146
|
-
body[data-awsui-focus-visible=true] .
|
|
146
|
+
body[data-awsui-focus-visible=true] .awsui_toggle_gfwv3_1qe9q_61:not(#\9):focus {
|
|
147
147
|
outline: 2px dotted transparent;
|
|
148
148
|
border-block: var(--border-width-button-lffd4t, 2px) solid var(--color-border-item-focused-sewkzn, #006ce0);
|
|
149
149
|
border-inline: var(--border-width-button-lffd4t, 2px) solid var(--color-border-item-focused-sewkzn, #006ce0);
|
|
@@ -153,11 +153,11 @@ body[data-awsui-focus-visible=true] .awsui_toggle_gfwv3_1nrv0_61:not(#\9):focus
|
|
|
153
153
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-akwhsf, 4px);
|
|
154
154
|
box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-iijyo6, 1px) var(--color-border-item-focused-sewkzn, #006ce0);
|
|
155
155
|
}
|
|
156
|
-
.
|
|
156
|
+
.awsui_toggle_gfwv3_1qe9q_61 > .awsui_description_gfwv3_1qe9q_154:not(#\9) {
|
|
157
157
|
margin-inline-start: var(--space-xxs-3o1yoq, 4px);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
.
|
|
160
|
+
.awsui_separator_gfwv3_1qe9q_158:not(#\9) {
|
|
161
161
|
margin-block: 0;
|
|
162
162
|
margin-inline: var(--space-scaled-m-lfeh3i, 16px);
|
|
163
163
|
inline-size: var(--border-divider-section-width-dlkb8v, 1px);
|
|
@@ -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
|
-
"horizontal": "
|
|
7
|
-
"vertical": "
|
|
8
|
-
"list": "
|
|
9
|
-
"grid": "
|
|
10
|
-
"list-item": "awsui_list-
|
|
11
|
-
"toggle-container-inline": "awsui_toggle-container-
|
|
12
|
-
"toggle": "
|
|
13
|
-
"description": "
|
|
14
|
-
"separator": "
|
|
5
|
+
"root": "awsui_root_gfwv3_1qe9q_9",
|
|
6
|
+
"horizontal": "awsui_horizontal_gfwv3_1qe9q_12",
|
|
7
|
+
"vertical": "awsui_vertical_gfwv3_1qe9q_18",
|
|
8
|
+
"list": "awsui_list_gfwv3_1qe9q_23",
|
|
9
|
+
"grid": "awsui_grid_gfwv3_1qe9q_42",
|
|
10
|
+
"list-item": "awsui_list-item_gfwv3_1qe9q_54",
|
|
11
|
+
"toggle-container-inline": "awsui_toggle-container-inline_gfwv3_1qe9q_61",
|
|
12
|
+
"toggle": "awsui_toggle_gfwv3_1qe9q_61",
|
|
13
|
+
"description": "awsui_description_gfwv3_1qe9q_154",
|
|
14
|
+
"separator": "awsui_separator_gfwv3_1qe9q_158"
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type GroupedControlPosition = 'first' | 'middle' | 'last' | 'only';
|
|
3
|
+
export interface GroupedControlContextProps {
|
|
4
|
+
/**
|
|
5
|
+
* The control's position within a control group,
|
|
6
|
+
* or `null` when the control is not in a control group.
|
|
7
|
+
*/
|
|
8
|
+
position: GroupedControlPosition | null;
|
|
9
|
+
}
|
|
10
|
+
export declare const GroupedControlContext: React.Context<GroupedControlContextProps>;
|
|
11
|
+
export declare function useGroupedControlContext(): GroupedControlContextProps;
|
|
12
|
+
/**
|
|
13
|
+
* Resets the grouped-control context back to "not in a group" for a subtree.
|
|
14
|
+
*
|
|
15
|
+
* Controls that render caller-supplied content (for example, custom dropdown
|
|
16
|
+
* content) should wrap that content with this provider. Otherwise a nested
|
|
17
|
+
* control rendered inside such a slot would inherit the surrounding group's
|
|
18
|
+
* `position` and incorrectly pick up the grouped-control styling
|
|
19
|
+
* where adjacent borders lose their border radii.
|
|
20
|
+
*/
|
|
21
|
+
export declare function ResetGroupedControlContext({
|
|
22
|
+
children
|
|
23
|
+
}: {
|
|
24
|
+
children: React.ReactNode;
|
|
25
|
+
}): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-group-context.d.ts","sourceRoot":"","sources":["../../../../src/internal/context/control-group-context.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1E,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,QAAQ,EAAE,sBAAsB,GAAG,IAAI,CAAC;CACzC;AAED,eAAO,MAAM,qBAAqB,2CAEhC,CAAC;AAEH,wBAAgB,wBAAwB,+BAEvC;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,eAErF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import React, { createContext, useContext } from 'react';
|
|
4
|
+
export const GroupedControlContext = createContext({
|
|
5
|
+
position: null,
|
|
6
|
+
});
|
|
7
|
+
export function useGroupedControlContext() {
|
|
8
|
+
return useContext(GroupedControlContext);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Resets the grouped-control context back to "not in a group" for a subtree.
|
|
12
|
+
*
|
|
13
|
+
* Controls that render caller-supplied content (for example, custom dropdown
|
|
14
|
+
* content) should wrap that content with this provider. Otherwise a nested
|
|
15
|
+
* control rendered inside such a slot would inherit the surrounding group's
|
|
16
|
+
* `position` and incorrectly pick up the grouped-control styling
|
|
17
|
+
* where adjacent borders lose their border radii.
|
|
18
|
+
*/
|
|
19
|
+
export function ResetGroupedControlContext({ children }) {
|
|
20
|
+
return React.createElement(GroupedControlContext.Provider, { value: { position: null } }, children);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=control-group-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-group-context.js","sourceRoot":"","sources":["../../../../src/internal/context/control-group-context.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAYzD,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAA6B;IAC7E,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB;IACtC,OAAO,UAAU,CAAC,qBAAqB,CAAC,CAAC;AAC3C,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,0BAA0B,CAAC,EAAE,QAAQ,EAAiC;IACpF,OAAO,oBAAC,qBAAqB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAG,QAAQ,CAAkC,CAAC;AAChH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { createContext, useContext } from 'react';\n\nexport type GroupedControlPosition = 'first' | 'middle' | 'last' | 'only';\n\nexport interface GroupedControlContextProps {\n /**\n * The control's position within a control group,\n * or `null` when the control is not in a control group.\n */\n position: GroupedControlPosition | null;\n}\n\nexport const GroupedControlContext = createContext<GroupedControlContextProps>({\n position: null,\n});\n\nexport function useGroupedControlContext() {\n return useContext(GroupedControlContext);\n}\n\n/**\n * Resets the grouped-control context back to \"not in a group\" for a subtree.\n *\n * Controls that render caller-supplied content (for example, custom dropdown\n * content) should wrap that content with this provider. Otherwise a nested\n * control rendered inside such a slot would inherit the surrounding group's\n * `position` and incorrectly pick up the grouped-control styling\n * where adjacent borders lose their border radii.\n */\nexport function ResetGroupedControlContext({ children }: { children: React.ReactNode }) {\n return <GroupedControlContext.Provider value={{ position: null }}>{children}</GroupedControlContext.Provider>;\n}\n"]}
|
package/internal/environment.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export var PACKAGE_SOURCE = "components";
|
|
2
|
-
export var PACKAGE_VERSION = "3.0.0 (
|
|
3
|
-
export var GIT_SHA = "
|
|
2
|
+
export var PACKAGE_VERSION = "3.0.0 (3bc1f014)";
|
|
3
|
+
export var GIT_SHA = "3bc1f014";
|
|
4
4
|
export var THEME = "open-source-visual-refresh";
|
|
5
5
|
export var SYSTEM = "core";
|
|
6
6
|
export var ALWAYS_VISUAL_REFRESH = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AACM,QAAA,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AACM,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgL3B,CAAC;AACF,eAAe,sBAAsB,CAAC"}
|