@cloudscape-design/components 3.0.684 → 3.0.686
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +31 -31
- package/annotation-context/annotation/styles.selectors.js +24 -24
- 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 +82 -82
- package/app-layout/visual-refresh/styles.scoped.css +255 -255
- package/app-layout/visual-refresh/styles.selectors.js +82 -82
- 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 +16 -16
- package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +37 -37
- package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +16 -16
- package/area-chart/model/use-chart-model.d.ts.map +1 -1
- package/area-chart/model/use-chart-model.js +2 -1
- package/area-chart/model/use-chart-model.js.map +1 -1
- package/area-chart/model/utils.d.ts +0 -1
- package/area-chart/model/utils.d.ts.map +1 -1
- package/area-chart/model/utils.js +0 -10
- package/area-chart/model/utils.js.map +1 -1
- package/button/interfaces.d.ts +1 -1
- package/button/interfaces.js.map +1 -1
- package/button-dropdown/item-element/index.js +1 -1
- package/button-dropdown/item-element/index.js.map +1 -1
- package/button-dropdown/item-element/styles.css.js +12 -11
- package/button-dropdown/item-element/styles.scoped.css +14 -14
- package/button-dropdown/item-element/styles.selectors.js +12 -11
- package/button-dropdown/tooltip.d.ts +2 -1
- package/button-dropdown/tooltip.d.ts.map +1 -1
- package/button-dropdown/tooltip.js +2 -2
- package/button-dropdown/tooltip.js.map +1 -1
- 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/copy-to-clipboard/index.d.ts +1 -1
- package/copy-to-clipboard/index.d.ts.map +1 -1
- package/copy-to-clipboard/index.js +2 -2
- package/copy-to-clipboard/index.js.map +1 -1
- package/copy-to-clipboard/interfaces.d.ts +8 -0
- package/copy-to-clipboard/interfaces.d.ts.map +1 -1
- package/copy-to-clipboard/interfaces.js.map +1 -1
- package/copy-to-clipboard/internal.d.ts +1 -1
- package/copy-to-clipboard/internal.d.ts.map +1 -1
- package/copy-to-clipboard/internal.js +2 -2
- package/copy-to-clipboard/internal.js.map +1 -1
- package/flashbar/styles.css.js +47 -47
- package/flashbar/styles.scoped.css +171 -171
- package/flashbar/styles.selectors.js +47 -47
- package/i18n/dynamic.js +2 -0
- package/i18n/messages/all.all.js +1 -1
- package/i18n/messages/all.all.json +1 -1
- package/i18n/messages/all.ar.d.ts +3 -0
- package/i18n/messages/all.ar.js +1 -0
- package/i18n/messages/all.ar.json +1 -0
- package/i18n/messages/all.de.js +1 -1
- package/i18n/messages/all.de.json +1 -1
- package/i18n/messages/all.en-GB.js +1 -1
- package/i18n/messages/all.en-GB.json +1 -1
- package/i18n/messages/all.en.js +1 -1
- package/i18n/messages/all.en.json +1 -1
- package/i18n/messages/all.es.js +1 -1
- package/i18n/messages/all.es.json +1 -1
- package/i18n/messages/all.fr.js +1 -1
- package/i18n/messages/all.fr.json +1 -1
- package/i18n/messages/all.id.js +1 -1
- package/i18n/messages/all.id.json +1 -1
- package/i18n/messages/all.it.js +1 -1
- package/i18n/messages/all.it.json +1 -1
- package/i18n/messages/all.ja.js +1 -1
- package/i18n/messages/all.ja.json +1 -1
- package/i18n/messages/all.ko.js +1 -1
- package/i18n/messages/all.ko.json +1 -1
- package/i18n/messages/all.pt-BR.js +1 -1
- package/i18n/messages/all.pt-BR.json +1 -1
- package/i18n/messages/all.tr.js +1 -1
- package/i18n/messages/all.tr.json +1 -1
- package/i18n/messages/all.zh-CN.js +1 -1
- package/i18n/messages/all.zh-CN.json +1 -1
- package/i18n/messages/all.zh-TW.js +1 -1
- package/i18n/messages/all.zh-TW.json +1 -1
- package/i18n/messages-types.d.ts +12 -0
- package/i18n/messages-types.d.ts.map +1 -1
- package/i18n/messages-types.js.map +1 -1
- package/icon/styles.css.js +38 -37
- package/icon/styles.scoped.css +82 -80
- package/icon/styles.selectors.js +38 -37
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/internal/components/chart-plot/focus-outline.js +1 -1
- package/internal/components/chart-plot/focus-outline.js.map +1 -1
- package/internal/components/dropdown/styles.css.js +20 -20
- package/internal/components/dropdown/styles.scoped.css +40 -40
- package/internal/components/dropdown/styles.selectors.js +20 -20
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/generated/custom-css-properties/index.d.ts +2 -0
- package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/internal/generated/custom-css-properties/index.js +57 -55
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/hooks/use-base-component/index.d.ts.map +1 -1
- package/internal/hooks/use-base-component/index.js +1 -2
- package/internal/hooks/use-base-component/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/internal/utils/circle-index.d.ts +2 -0
- package/internal/utils/circle-index.d.ts.map +1 -0
- package/internal/utils/circle-index.js +13 -0
- package/internal/utils/circle-index.js.map +1 -0
- package/key-value-pairs/index.d.ts +1 -1
- package/key-value-pairs/index.d.ts.map +1 -1
- package/key-value-pairs/index.js +2 -2
- package/key-value-pairs/index.js.map +1 -1
- package/key-value-pairs/interfaces.d.ts +11 -0
- package/key-value-pairs/interfaces.d.ts.map +1 -1
- package/key-value-pairs/interfaces.js.map +1 -1
- package/key-value-pairs/internal.d.ts.map +1 -1
- package/key-value-pairs/internal.js +2 -2
- package/key-value-pairs/internal.js.map +1 -1
- package/mixed-line-bar-chart/hooks/use-navigation.d.ts.map +1 -1
- package/mixed-line-bar-chart/hooks/use-navigation.js +1 -10
- package/mixed-line-bar-chart/hooks/use-navigation.js.map +1 -1
- package/package.json +4 -1
- package/prompt-input/index.d.ts +6 -0
- package/prompt-input/index.d.ts.map +1 -0
- package/prompt-input/index.js +27 -0
- package/prompt-input/index.js.map +1 -0
- package/prompt-input/interfaces.d.ts +82 -0
- package/prompt-input/interfaces.d.ts.map +1 -0
- package/prompt-input/interfaces.js +2 -0
- package/prompt-input/interfaces.js.map +1 -0
- package/prompt-input/internal.d.ts +8 -0
- package/prompt-input/internal.d.ts.map +1 -0
- package/prompt-input/internal.js +109 -0
- package/prompt-input/internal.js.map +1 -0
- package/prompt-input/styles.css.js +13 -0
- package/prompt-input/styles.scoped.css +248 -0
- package/prompt-input/styles.selectors.js +14 -0
- package/prompt-input/test-classes/styles.css.js +8 -0
- package/prompt-input/test-classes/styles.scoped.css +15 -0
- package/prompt-input/test-classes/styles.selectors.js +9 -0
- package/property-filter/filtering-token/index.d.ts.map +1 -0
- package/{internal/components → property-filter}/filtering-token/index.js +7 -6
- package/property-filter/filtering-token/index.js.map +1 -0
- package/property-filter/filtering-token/styles.css.js +12 -0
- package/{internal/components → property-filter}/filtering-token/styles.scoped.css +15 -15
- package/property-filter/filtering-token/styles.selectors.js +13 -0
- package/property-filter/test-classes/styles.css.js +14 -0
- package/property-filter/test-classes/styles.scoped.css +39 -0
- package/property-filter/test-classes/styles.selectors.js +15 -0
- package/property-filter/token-editor.d.ts.map +1 -1
- package/property-filter/token-editor.js +7 -5
- package/property-filter/token-editor.js.map +1 -1
- package/property-filter/token.js +1 -1
- package/property-filter/token.js.map +1 -1
- package/select/parts/filter.d.ts +1 -1
- package/slider/styles.css.js +26 -27
- package/slider/styles.scoped.css +90 -90
- package/slider/styles.selectors.js +26 -27
- package/spinner/styles.css.js +13 -13
- package/spinner/styles.scoped.css +39 -39
- package/spinner/styles.selectors.js +13 -13
- package/table/body-cell/styles.css.js +46 -46
- package/table/body-cell/styles.scoped.css +525 -274
- package/table/body-cell/styles.selectors.js +46 -46
- package/table/body-cell/td-element.d.ts.map +1 -1
- package/table/body-cell/td-element.js +3 -4
- package/table/body-cell/td-element.js.map +1 -1
- package/tabs/styles.css.js +28 -28
- package/tabs/styles.scoped.css +53 -53
- package/tabs/styles.selectors.js +28 -28
- package/tabs/tab-header-bar.d.ts.map +1 -1
- package/tabs/tab-header-bar.js +1 -9
- package/tabs/tab-header-bar.js.map +1 -1
- package/test-utils/dom/copy-to-clipboard/index.d.ts +3 -1
- package/test-utils/dom/copy-to-clipboard/index.js +2 -2
- package/test-utils/dom/copy-to-clipboard/index.js.map +1 -1
- package/test-utils/dom/index.d.ts +3 -0
- package/test-utils/dom/index.js +10 -2
- package/test-utils/dom/index.js.map +1 -1
- package/test-utils/dom/prompt-input/index.d.ts +18 -0
- package/test-utils/dom/prompt-input/index.js +49 -0
- package/test-utils/dom/prompt-input/index.js.map +1 -0
- package/test-utils/dom/property-filter/index.d.ts +25 -2
- package/test-utils/dom/property-filter/index.js +59 -6
- package/test-utils/dom/property-filter/index.js.map +1 -1
- package/test-utils/selectors/copy-to-clipboard/index.d.ts +3 -1
- package/test-utils/selectors/copy-to-clipboard/index.js +4 -2
- package/test-utils/selectors/copy-to-clipboard/index.js.map +1 -1
- package/test-utils/selectors/index.d.ts +3 -0
- package/test-utils/selectors/index.js +10 -2
- package/test-utils/selectors/index.js.map +1 -1
- package/test-utils/selectors/prompt-input/index.d.ts +6 -0
- package/test-utils/selectors/prompt-input/index.js +15 -0
- package/test-utils/selectors/prompt-input/index.js.map +1 -0
- package/test-utils/selectors/property-filter/index.d.ts +25 -2
- package/test-utils/selectors/property-filter/index.js +61 -6
- package/test-utils/selectors/property-filter/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/internal/components/filtering-token/index.d.ts.map +0 -1
- package/internal/components/filtering-token/index.js.map +0 -1
- package/internal/components/filtering-token/styles.css.js +0 -12
- package/internal/components/filtering-token/styles.selectors.js +0 -13
- package/internal/hooks/focus-visible/index.d.ts +0 -3
- package/internal/hooks/focus-visible/index.d.ts.map +0 -1
- package/internal/hooks/focus-visible/index.js +0 -49
- package/internal/hooks/focus-visible/index.js.map +0 -1
- package/test-utils/dom/internal/filtering-token.d.ts +0 -8
- package/test-utils/dom/internal/filtering-token.js +0 -21
- package/test-utils/dom/internal/filtering-token.js.map +0 -1
- package/test-utils/selectors/internal/filtering-token.d.ts +0 -8
- package/test-utils/selectors/internal/filtering-token.js +0 -21
- package/test-utils/selectors/internal/filtering-token.js.map +0 -1
- /package/{internal/components → property-filter}/filtering-token/index.d.ts +0 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
/*
|
|
6
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
7
|
+
SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
*/
|
|
9
|
+
/*
|
|
10
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
11
|
+
SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
*/
|
|
13
|
+
/*
|
|
14
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
15
|
+
SPDX-License-Identifier: Apache-2.0
|
|
16
|
+
*/
|
|
17
|
+
/*
|
|
18
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
19
|
+
SPDX-License-Identifier: Apache-2.0
|
|
20
|
+
*/
|
|
21
|
+
/*
|
|
22
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
23
|
+
SPDX-License-Identifier: Apache-2.0
|
|
24
|
+
*/
|
|
25
|
+
/*
|
|
26
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
27
|
+
SPDX-License-Identifier: Apache-2.0
|
|
28
|
+
*/
|
|
29
|
+
/*
|
|
30
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
31
|
+
SPDX-License-Identifier: Apache-2.0
|
|
32
|
+
*/
|
|
33
|
+
/*
|
|
34
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
35
|
+
SPDX-License-Identifier: Apache-2.0
|
|
36
|
+
*/
|
|
37
|
+
/*
|
|
38
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
39
|
+
SPDX-License-Identifier: Apache-2.0
|
|
40
|
+
*/
|
|
41
|
+
/*
|
|
42
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
43
|
+
SPDX-License-Identifier: Apache-2.0
|
|
44
|
+
*/
|
|
45
|
+
/*
|
|
46
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
47
|
+
SPDX-License-Identifier: Apache-2.0
|
|
48
|
+
*/
|
|
49
|
+
/*
|
|
50
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
51
|
+
SPDX-License-Identifier: Apache-2.0
|
|
52
|
+
*/
|
|
53
|
+
/*
|
|
54
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
55
|
+
SPDX-License-Identifier: Apache-2.0
|
|
56
|
+
*/
|
|
57
|
+
/*
|
|
58
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
59
|
+
SPDX-License-Identifier: Apache-2.0
|
|
60
|
+
*/
|
|
61
|
+
/*
|
|
62
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
63
|
+
SPDX-License-Identifier: Apache-2.0
|
|
64
|
+
*/
|
|
65
|
+
/*
|
|
66
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
67
|
+
SPDX-License-Identifier: Apache-2.0
|
|
68
|
+
*/
|
|
69
|
+
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
70
|
+
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
71
|
+
/*
|
|
72
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
73
|
+
SPDX-License-Identifier: Apache-2.0
|
|
74
|
+
*/
|
|
75
|
+
/*
|
|
76
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
77
|
+
SPDX-License-Identifier: Apache-2.0
|
|
78
|
+
*/
|
|
79
|
+
/*
|
|
80
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
81
|
+
SPDX-License-Identifier: Apache-2.0
|
|
82
|
+
*/
|
|
83
|
+
/*
|
|
84
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
85
|
+
SPDX-License-Identifier: Apache-2.0
|
|
86
|
+
*/
|
|
87
|
+
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
88
|
+
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
89
|
+
/*
|
|
90
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
|
+
SPDX-License-Identifier: Apache-2.0
|
|
92
|
+
*/
|
|
93
|
+
/*
|
|
94
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
95
|
+
SPDX-License-Identifier: Apache-2.0
|
|
96
|
+
*/
|
|
97
|
+
/* stylelint-disable */
|
|
98
|
+
.awsui_root_55fkh_v0e3_98:not(#\9) {
|
|
99
|
+
position: relative;
|
|
100
|
+
}
|
|
101
|
+
.awsui_root_55fkh_v0e3_98 > .awsui_button_55fkh_v0e3_101:not(#\9) {
|
|
102
|
+
position: absolute;
|
|
103
|
+
inset-inline-end: var(--space-static-xxs-82cdfi, 4px);
|
|
104
|
+
inset-block-end: 0;
|
|
105
|
+
}
|
|
106
|
+
body[data-awsui-focus-visible=true] .awsui_root_55fkh_v0e3_98 > .awsui_button_55fkh_v0e3_101 > .awsui_action-button_55fkh_v0e3_106:not(#\9):focus {
|
|
107
|
+
position: relative;
|
|
108
|
+
}
|
|
109
|
+
body[data-awsui-focus-visible=true] .awsui_root_55fkh_v0e3_98 > .awsui_button_55fkh_v0e3_101 > .awsui_action-button_55fkh_v0e3_106:not(#\9):focus {
|
|
110
|
+
outline: 2px dotted transparent;
|
|
111
|
+
outline-offset: calc(calc((var(--space-xxxs-zbmxqb, 2px)) - 1px) - 1px);
|
|
112
|
+
}
|
|
113
|
+
body[data-awsui-focus-visible=true] .awsui_root_55fkh_v0e3_98 > .awsui_button_55fkh_v0e3_101 > .awsui_action-button_55fkh_v0e3_106:not(#\9):focus::before {
|
|
114
|
+
content: " ";
|
|
115
|
+
display: block;
|
|
116
|
+
position: absolute;
|
|
117
|
+
inset-inline-start: calc(-1 * calc((var(--space-xxxs-zbmxqb, 2px)) - 1px));
|
|
118
|
+
inset-block-start: calc(-1 * calc((-1 * var(--space-xxxs-zbmxqb, 2px)) - 1px));
|
|
119
|
+
inline-size: calc(100% + calc((var(--space-xxxs-zbmxqb, 2px)) - 1px) + calc((var(--space-xxxs-zbmxqb, 2px)) - 1px));
|
|
120
|
+
block-size: calc(100% + calc((-1 * var(--space-xxxs-zbmxqb, 2px)) - 1px) + calc((-1 * var(--space-xxxs-zbmxqb, 2px)) - 1px));
|
|
121
|
+
border-start-start-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
122
|
+
border-start-end-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
123
|
+
border-end-start-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
124
|
+
border-end-end-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
125
|
+
box-shadow: 0 0 0 2px var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.awsui_textarea_55fkh_v0e3_128:not(#\9) {
|
|
129
|
+
border-collapse: separate;
|
|
130
|
+
border-spacing: 0;
|
|
131
|
+
box-sizing: border-box;
|
|
132
|
+
caption-side: top;
|
|
133
|
+
cursor: auto;
|
|
134
|
+
direction: inherit;
|
|
135
|
+
empty-cells: show;
|
|
136
|
+
font-family: serif;
|
|
137
|
+
font-size: medium;
|
|
138
|
+
font-style: normal;
|
|
139
|
+
font-variant: normal;
|
|
140
|
+
font-weight: 400;
|
|
141
|
+
font-stretch: normal;
|
|
142
|
+
line-height: normal;
|
|
143
|
+
-webkit-hyphens: none;
|
|
144
|
+
hyphens: none;
|
|
145
|
+
letter-spacing: normal;
|
|
146
|
+
list-style: disc outside none;
|
|
147
|
+
tab-size: 8;
|
|
148
|
+
text-align: start;
|
|
149
|
+
text-indent: 0;
|
|
150
|
+
text-shadow: none;
|
|
151
|
+
text-transform: none;
|
|
152
|
+
visibility: visible;
|
|
153
|
+
white-space: normal;
|
|
154
|
+
word-spacing: normal;
|
|
155
|
+
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
156
|
+
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
157
|
+
color: var(--color-text-body-default-at06ol, #000716);
|
|
158
|
+
font-weight: 400;
|
|
159
|
+
font-family: var(--font-family-base-dnvic8, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
160
|
+
-webkit-font-smoothing: auto;
|
|
161
|
+
-moz-osx-font-smoothing: auto;
|
|
162
|
+
resize: none;
|
|
163
|
+
cursor: text;
|
|
164
|
+
white-space: pre-wrap;
|
|
165
|
+
padding-block: var(--space-scaled-xxs-7597g1, 4px);
|
|
166
|
+
padding-inline: var(--space-field-horizontal-gg19kw, 12px);
|
|
167
|
+
color: var(--color-text-body-default-at06ol, #000716);
|
|
168
|
+
max-inline-size: 100%;
|
|
169
|
+
inline-size: 100%;
|
|
170
|
+
display: block;
|
|
171
|
+
box-sizing: border-box;
|
|
172
|
+
background-color: var(--color-background-input-default-igdh5e, #ffffff);
|
|
173
|
+
border-start-start-radius: var(--border-radius-input-plgbrq, 8px);
|
|
174
|
+
border-start-end-radius: var(--border-radius-input-plgbrq, 8px);
|
|
175
|
+
border-end-start-radius: var(--border-radius-input-plgbrq, 8px);
|
|
176
|
+
border-end-end-radius: var(--border-radius-input-plgbrq, 8px);
|
|
177
|
+
border-block: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-default-1zl7hq, #7d8998);
|
|
178
|
+
border-inline: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-default-1zl7hq, #7d8998);
|
|
179
|
+
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
180
|
+
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
181
|
+
}
|
|
182
|
+
.awsui_textarea_55fkh_v0e3_128.awsui_textarea-readonly_55fkh_v0e3_181:not(#\9) {
|
|
183
|
+
background-color: var(--color-background-input-default-igdh5e, #ffffff);
|
|
184
|
+
border-block: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-disabled-rx2aau, #e9ebed);
|
|
185
|
+
border-inline: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-disabled-rx2aau, #e9ebed);
|
|
186
|
+
}
|
|
187
|
+
.awsui_textarea_55fkh_v0e3_128:not(#\9)::placeholder {
|
|
188
|
+
color: var(--color-text-input-placeholder-mx1ygd, #5f6b7a);
|
|
189
|
+
font-style: italic;
|
|
190
|
+
opacity: 1;
|
|
191
|
+
}
|
|
192
|
+
.awsui_textarea_55fkh_v0e3_128:not(#\9):-ms-input-placeholder {
|
|
193
|
+
color: var(--color-text-input-placeholder-mx1ygd, #5f6b7a);
|
|
194
|
+
font-style: italic;
|
|
195
|
+
}
|
|
196
|
+
.awsui_textarea_55fkh_v0e3_128:not(#\9):focus {
|
|
197
|
+
outline: 2px dotted transparent;
|
|
198
|
+
border-block: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-focused-3d15sl, #033160);
|
|
199
|
+
border-inline: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-focused-3d15sl, #033160);
|
|
200
|
+
border-start-start-radius: var(--border-radius-input-plgbrq, 8px);
|
|
201
|
+
border-start-end-radius: var(--border-radius-input-plgbrq, 8px);
|
|
202
|
+
border-end-start-radius: var(--border-radius-input-plgbrq, 8px);
|
|
203
|
+
border-end-end-radius: var(--border-radius-input-plgbrq, 8px);
|
|
204
|
+
box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-0ctpjf, 0px) var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
205
|
+
}
|
|
206
|
+
.awsui_textarea_55fkh_v0e3_128:not(#\9):invalid {
|
|
207
|
+
box-shadow: none;
|
|
208
|
+
}
|
|
209
|
+
.awsui_textarea_55fkh_v0e3_128:not(#\9):disabled {
|
|
210
|
+
background-color: var(--color-background-input-disabled-ab59a3, #e9ebed);
|
|
211
|
+
border-block: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-disabled-rx2aau, #e9ebed);
|
|
212
|
+
border-inline: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-disabled-rx2aau, #e9ebed);
|
|
213
|
+
color: var(--color-text-input-disabled-f8pjm5, #9ba7b6);
|
|
214
|
+
cursor: auto;
|
|
215
|
+
cursor: default;
|
|
216
|
+
}
|
|
217
|
+
.awsui_textarea_55fkh_v0e3_128:not(#\9):disabled::placeholder {
|
|
218
|
+
color: var(--color-text-input-placeholder-disabled-abhb0d, #9ba7b6);
|
|
219
|
+
opacity: 1;
|
|
220
|
+
}
|
|
221
|
+
.awsui_textarea_55fkh_v0e3_128:not(#\9):disabled:-ms-input-placeholder {
|
|
222
|
+
color: var(--color-text-input-placeholder-disabled-abhb0d, #9ba7b6);
|
|
223
|
+
}
|
|
224
|
+
.awsui_textarea_55fkh_v0e3_128.awsui_textarea-invalid_55fkh_v0e3_223:not(#\9) {
|
|
225
|
+
color: var(--color-text-status-error-wdvepn, #d91515);
|
|
226
|
+
border-color: var(--color-text-status-error-wdvepn, #d91515);
|
|
227
|
+
padding-inline-start: calc(
|
|
228
|
+
var(--space-field-horizontal-gg19kw, 12px) - (var(--border-invalid-width-5ktjp2, 8px) - var(--border-field-width-09w7vk, 2px))
|
|
229
|
+
);
|
|
230
|
+
border-inline-start-width: var(--border-invalid-width-5ktjp2, 8px);
|
|
231
|
+
}
|
|
232
|
+
.awsui_textarea_55fkh_v0e3_128.awsui_textarea-invalid_55fkh_v0e3_223:not(#\9):focus {
|
|
233
|
+
box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-fhmbjn, 2px) var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
234
|
+
}
|
|
235
|
+
.awsui_textarea_55fkh_v0e3_128.awsui_textarea-warning_55fkh_v0e3_234:not(#\9) {
|
|
236
|
+
color: var(--color-text-status-warning-yik8vi, #8d6605);
|
|
237
|
+
border-color: var(--color-text-status-warning-yik8vi, #8d6605);
|
|
238
|
+
padding-inline-start: calc(
|
|
239
|
+
var(--space-field-horizontal-gg19kw, 12px) - (var(--border-invalid-width-5ktjp2, 8px) - var(--border-field-width-09w7vk, 2px))
|
|
240
|
+
);
|
|
241
|
+
border-inline-start-width: var(--border-invalid-width-5ktjp2, 8px);
|
|
242
|
+
}
|
|
243
|
+
.awsui_textarea_55fkh_v0e3_128.awsui_textarea-warning_55fkh_v0e3_234:not(#\9):focus {
|
|
244
|
+
box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-fhmbjn, 2px) var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
245
|
+
}
|
|
246
|
+
.awsui_textarea_55fkh_v0e3_128.awsui_textarea-with-button_55fkh_v0e3_245:not(#\9) {
|
|
247
|
+
padding-inline-end: calc(var(--space-field-horizontal-gg19kw, 12px) + var(--space-static-xxs-82cdfi, 4px) + var(--size-icon-normal-0m1722, 16px));
|
|
248
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
// es-module interop with Babel and Typescript
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
module.exports.default = {
|
|
5
|
+
"root": "awsui_root_55fkh_v0e3_98",
|
|
6
|
+
"button": "awsui_button_55fkh_v0e3_101",
|
|
7
|
+
"action-button": "awsui_action-button_55fkh_v0e3_106",
|
|
8
|
+
"textarea": "awsui_textarea_55fkh_v0e3_128",
|
|
9
|
+
"textarea-readonly": "awsui_textarea-readonly_55fkh_v0e3_181",
|
|
10
|
+
"textarea-invalid": "awsui_textarea-invalid_55fkh_v0e3_223",
|
|
11
|
+
"textarea-warning": "awsui_textarea-warning_55fkh_v0e3_234",
|
|
12
|
+
"textarea-with-button": "awsui_textarea-with-button_55fkh_v0e3_245"
|
|
13
|
+
};
|
|
14
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
.awsui_root_nr3gs_1mr3y_5:not(#\9) {
|
|
6
|
+
/* used in test-utils */
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.awsui_textarea_nr3gs_1mr3y_9:not(#\9) {
|
|
10
|
+
/* used in test-utils */
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.awsui_action-button_nr3gs_1mr3y_13:not(#\9) {
|
|
14
|
+
/* used in test-utils */
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
// es-module interop with Babel and Typescript
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
module.exports.default = {
|
|
5
|
+
"root": "awsui_root_nr3gs_1mr3y_5",
|
|
6
|
+
"textarea": "awsui_textarea_nr3gs_1mr3y_9",
|
|
7
|
+
"action-button": "awsui_action-button_nr3gs_1mr3y_13"
|
|
8
|
+
};
|
|
9
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/property-filter/filtering-token/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,yBAAiB,mBAAmB,CAAC;IACnC,KAAY,SAAS,GAAG,KAAK,GAAG,IAAI,CAAC;CACtC;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,QAAQ,EAAE,CAAC,EAAE,EAAE,mBAAmB,CAAC,SAAS,KAAK,IAAI,CAAC;IACtD,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,SAAS,EACT,aAAa,EACb,SAAS,EACT,OAAO,EACP,MAAM,EACN,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,GACV,EAAE,mBAAmB,eAkCrB"}
|
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import InternalSelect from '
|
|
6
|
-
import InternalIcon from '
|
|
5
|
+
import InternalSelect from '../../select/internal';
|
|
6
|
+
import InternalIcon from '../../icon/internal';
|
|
7
7
|
import styles from './styles.css.js';
|
|
8
|
+
import testUtilStyles from '../test-classes/styles.css.js';
|
|
8
9
|
export default function FilteringToken({ ariaLabel, showOperation, operation, andText, orText, dismissAriaLabel, operatorAriaLabel, disabled, children, onChange, onDismiss, }) {
|
|
9
|
-
return (React.createElement("div", { className: styles.root, role: "group", "aria-label": ariaLabel },
|
|
10
|
-
showOperation && (React.createElement(InternalSelect, { __inFilteringToken: true, className: styles.select, options: [
|
|
10
|
+
return (React.createElement("div", { className: clsx(styles.root, testUtilStyles['filtering-token']), role: "group", "aria-label": ariaLabel },
|
|
11
|
+
showOperation && (React.createElement(InternalSelect, { __inFilteringToken: true, className: clsx(styles.select, testUtilStyles['filtering-token-select']), options: [
|
|
11
12
|
{ value: 'and', label: andText },
|
|
12
13
|
{ value: 'or', label: orText },
|
|
13
14
|
], selectedOption: { value: operation, label: operation === 'and' ? andText : orText }, onChange: e => onChange(e.detail.selectedOption.value), disabled: disabled, ariaLabel: operatorAriaLabel })),
|
|
14
15
|
React.createElement("div", { className: clsx(styles.token, showOperation && styles['show-operation'], disabled && styles['token-disabled']), "aria-disabled": disabled },
|
|
15
|
-
React.createElement("div", { className: styles['token-content'] }, children),
|
|
16
|
-
React.createElement("button", { type: "button", className: styles['dismiss-button'], "aria-label": dismissAriaLabel, onClick: onDismiss, disabled: disabled },
|
|
16
|
+
React.createElement("div", { className: clsx(styles['token-content'], testUtilStyles['filtering-token-content']) }, children),
|
|
17
|
+
React.createElement("button", { type: "button", className: clsx(styles['dismiss-button'], testUtilStyles['filtering-token-dismiss-button']), "aria-label": dismissAriaLabel, onClick: onDismiss, disabled: disabled },
|
|
17
18
|
React.createElement(InternalIcon, { name: "close" })))));
|
|
18
19
|
}
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/property-filter/filtering-token/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,cAAc,MAAM,uBAAuB,CAAC;AACnD,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAE/C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAsB3D,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,SAAS,EACT,aAAa,EACb,SAAS,EACT,OAAO,EACP,MAAM,EACN,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,GACW;IACpB,OAAO,CACL,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAC,EAAE,IAAI,EAAC,OAAO,gBAAa,SAAS;QACrG,aAAa,IAAI,CAChB,oBAAC,cAAc,IACb,kBAAkB,EAAE,IAAI,EACxB,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,wBAAwB,CAAC,CAAC,EACxE,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE;gBAChC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE;aAC/B,EACD,cAAc,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,EACnF,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,KAAsC,CAAC,EACvF,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,iBAAiB,GAC5B,CACH;QACD,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,aAAa,IAAI,MAAM,CAAC,gBAAgB,CAAC,EAAE,QAAQ,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAC,mBAC/F,QAAQ;YAEvB,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,cAAc,CAAC,yBAAyB,CAAC,CAAC,IAAG,QAAQ,CAAO;YAC1G,gCACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,cAAc,CAAC,gCAAgC,CAAC,CAAC,gBAC/E,gBAAgB,EAC5B,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,QAAQ;gBAElB,oBAAC,YAAY,IAAC,IAAI,EAAC,OAAO,GAAG,CACtB,CACL,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport InternalSelect from '../../select/internal';\nimport InternalIcon from '../../icon/internal';\n\nimport styles from './styles.css.js';\nimport testUtilStyles from '../test-classes/styles.css.js';\n\nexport namespace FilteringTokenProps {\n export type Operation = 'and' | 'or';\n}\n\nexport interface FilteringTokenProps {\n ariaLabel?: string;\n showOperation: boolean;\n operation: FilteringTokenProps.Operation;\n andText: string;\n orText: string;\n dismissAriaLabel?: string;\n operatorAriaLabel?: string;\n disabled?: boolean;\n\n children: React.ReactNode;\n\n onChange: (op: FilteringTokenProps.Operation) => void;\n onDismiss: () => void;\n}\n\nexport default function FilteringToken({\n ariaLabel,\n showOperation,\n operation,\n andText,\n orText,\n dismissAriaLabel,\n operatorAriaLabel,\n disabled,\n children,\n onChange,\n onDismiss,\n}: FilteringTokenProps) {\n return (\n <div className={clsx(styles.root, testUtilStyles['filtering-token'])} role=\"group\" aria-label={ariaLabel}>\n {showOperation && (\n <InternalSelect\n __inFilteringToken={true}\n className={clsx(styles.select, testUtilStyles['filtering-token-select'])}\n options={[\n { value: 'and', label: andText },\n { value: 'or', label: orText },\n ]}\n selectedOption={{ value: operation, label: operation === 'and' ? andText : orText }}\n onChange={e => onChange(e.detail.selectedOption.value as FilteringTokenProps.Operation)}\n disabled={disabled}\n ariaLabel={operatorAriaLabel}\n />\n )}\n <div\n className={clsx(styles.token, showOperation && styles['show-operation'], disabled && styles['token-disabled'])}\n aria-disabled={disabled}\n >\n <div className={clsx(styles['token-content'], testUtilStyles['filtering-token-content'])}>{children}</div>\n <button\n type=\"button\"\n className={clsx(styles['dismiss-button'], testUtilStyles['filtering-token-dismiss-button'])}\n aria-label={dismissAriaLabel}\n onClick={onDismiss}\n disabled={disabled}\n >\n <InternalIcon name=\"close\" />\n </button>\n </div>\n </div>\n );\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
import './styles.scoped.css';
|
|
3
|
+
export default {
|
|
4
|
+
"root": "awsui_root_19bso_1g39x_101",
|
|
5
|
+
"token": "awsui_token_19bso_1g39x_106",
|
|
6
|
+
"show-operation": "awsui_show-operation_19bso_1g39x_121",
|
|
7
|
+
"select": "awsui_select_19bso_1g39x_127",
|
|
8
|
+
"token-content": "awsui_token-content_19bso_1g39x_131",
|
|
9
|
+
"dismiss-button": "awsui_dismiss-button_19bso_1g39x_136",
|
|
10
|
+
"token-disabled": "awsui_token-disabled_19bso_1g39x_178"
|
|
11
|
+
};
|
|
12
|
+
|
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
67
67
|
SPDX-License-Identifier: Apache-2.0
|
|
68
68
|
*/
|
|
69
|
-
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
70
|
-
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
71
69
|
/*
|
|
72
70
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
73
71
|
SPDX-License-Identifier: Apache-2.0
|
|
74
72
|
*/
|
|
73
|
+
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
74
|
+
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
75
75
|
/*
|
|
76
76
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
77
77
|
SPDX-License-Identifier: Apache-2.0
|
|
@@ -98,12 +98,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
98
98
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
99
99
|
SPDX-License-Identifier: Apache-2.0
|
|
100
100
|
*/
|
|
101
|
-
.
|
|
101
|
+
.awsui_root_19bso_1g39x_101:not(#\9) {
|
|
102
102
|
display: flex;
|
|
103
103
|
align-content: stretch;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.
|
|
106
|
+
.awsui_token_19bso_1g39x_106:not(#\9) {
|
|
107
107
|
flex-grow: 1;
|
|
108
108
|
border-block: var(--border-field-width-09w7vk, 2px) solid var(--color-border-item-selected-k00wlz, #0972d3);
|
|
109
109
|
border-inline: var(--border-field-width-09w7vk, 2px) solid var(--color-border-item-selected-k00wlz, #0972d3);
|
|
@@ -118,22 +118,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
118
118
|
box-sizing: border-box;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.awsui_show-
|
|
121
|
+
.awsui_show-operation_19bso_1g39x_121:not(#\9) {
|
|
122
122
|
border-inline-start: none;
|
|
123
123
|
border-start-start-radius: 0;
|
|
124
124
|
border-end-start-radius: 0;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
.
|
|
127
|
+
.awsui_select_19bso_1g39x_127:not(#\9) {
|
|
128
128
|
/* used in test-utils */
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.awsui_token-
|
|
131
|
+
.awsui_token-content_19bso_1g39x_131:not(#\9) {
|
|
132
132
|
padding-block: var(--space-scaled-xxs-7597g1, 4px);
|
|
133
133
|
padding-inline: var(--space-field-horizontal-gg19kw, 12px);
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
.awsui_dismiss-
|
|
136
|
+
.awsui_dismiss-button_19bso_1g39x_136:not(#\9) {
|
|
137
137
|
inline-size: 30px;
|
|
138
138
|
margin-block: 0;
|
|
139
139
|
margin-inline: 0;
|
|
@@ -145,14 +145,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
145
145
|
background-color: transparent;
|
|
146
146
|
border-inline-start: var(--border-field-width-09w7vk, 2px) solid var(--color-border-item-selected-k00wlz, #0972d3);
|
|
147
147
|
}
|
|
148
|
-
body[data-awsui-focus-visible=true] .awsui_dismiss-
|
|
148
|
+
body[data-awsui-focus-visible=true] .awsui_dismiss-button_19bso_1g39x_136:not(#\9):focus {
|
|
149
149
|
position: relative;
|
|
150
150
|
}
|
|
151
|
-
body[data-awsui-focus-visible=true] .awsui_dismiss-
|
|
151
|
+
body[data-awsui-focus-visible=true] .awsui_dismiss-button_19bso_1g39x_136:not(#\9):focus {
|
|
152
152
|
outline: 2px dotted transparent;
|
|
153
153
|
outline-offset: calc(var(--space-filtering-token-dismiss-button-focus-outline-gutter-76gsim, -5px) - 1px);
|
|
154
154
|
}
|
|
155
|
-
body[data-awsui-focus-visible=true] .awsui_dismiss-
|
|
155
|
+
body[data-awsui-focus-visible=true] .awsui_dismiss-button_19bso_1g39x_136:not(#\9):focus::before {
|
|
156
156
|
content: " ";
|
|
157
157
|
display: block;
|
|
158
158
|
position: absolute;
|
|
@@ -166,22 +166,22 @@ body[data-awsui-focus-visible=true] .awsui_dismiss-button_10m3l_9o8ze_136:not(#\
|
|
|
166
166
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
167
167
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
168
168
|
}
|
|
169
|
-
.awsui_dismiss-
|
|
169
|
+
.awsui_dismiss-button_19bso_1g39x_136:not(#\9):focus {
|
|
170
170
|
outline: none;
|
|
171
171
|
text-decoration: none;
|
|
172
172
|
}
|
|
173
|
-
.awsui_dismiss-
|
|
173
|
+
.awsui_dismiss-button_19bso_1g39x_136:not(#\9):hover {
|
|
174
174
|
cursor: pointer;
|
|
175
175
|
color: var(--color-text-interactive-hover-mj8add, #000716);
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
.awsui_token-
|
|
178
|
+
.awsui_token-disabled_19bso_1g39x_178:not(#\9) {
|
|
179
179
|
border-color: var(--color-border-control-disabled-bv2kkn, #d1d5db);
|
|
180
180
|
background-color: var(--color-background-container-content-4un1ap, #ffffff);
|
|
181
181
|
color: var(--color-text-disabled-f4c52h, #9ba7b6);
|
|
182
182
|
pointer-events: none;
|
|
183
183
|
}
|
|
184
|
-
.awsui_token-
|
|
184
|
+
.awsui_token-disabled_19bso_1g39x_178 > .awsui_dismiss-button_19bso_1g39x_136:not(#\9) {
|
|
185
185
|
color: var(--color-text-interactive-disabled-z7a3t4, #9ba7b6);
|
|
186
186
|
border-color: var(--color-border-control-disabled-bv2kkn, #d1d5db);
|
|
187
187
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
// es-module interop with Babel and Typescript
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
module.exports.default = {
|
|
5
|
+
"root": "awsui_root_19bso_1g39x_101",
|
|
6
|
+
"token": "awsui_token_19bso_1g39x_106",
|
|
7
|
+
"show-operation": "awsui_show-operation_19bso_1g39x_121",
|
|
8
|
+
"select": "awsui_select_19bso_1g39x_127",
|
|
9
|
+
"token-content": "awsui_token-content_19bso_1g39x_131",
|
|
10
|
+
"dismiss-button": "awsui_dismiss-button_19bso_1g39x_136",
|
|
11
|
+
"token-disabled": "awsui_token-disabled_19bso_1g39x_178"
|
|
12
|
+
};
|
|
13
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
import './styles.scoped.css';
|
|
3
|
+
export default {
|
|
4
|
+
"filtering-token": "awsui_filtering-token_1heb1_tpllu_5",
|
|
5
|
+
"filtering-token-dismiss-button": "awsui_filtering-token-dismiss-button_1heb1_tpllu_9",
|
|
6
|
+
"filtering-token-select": "awsui_filtering-token-select_1heb1_tpllu_13",
|
|
7
|
+
"filtering-token-content": "awsui_filtering-token-content_1heb1_tpllu_17",
|
|
8
|
+
"token-editor-field-property": "awsui_token-editor-field-property_1heb1_tpllu_21",
|
|
9
|
+
"token-editor-field-operator": "awsui_token-editor-field-operator_1heb1_tpllu_25",
|
|
10
|
+
"token-editor-field-value": "awsui_token-editor-field-value_1heb1_tpllu_29",
|
|
11
|
+
"token-editor-cancel": "awsui_token-editor-cancel_1heb1_tpllu_33",
|
|
12
|
+
"token-editor-submit": "awsui_token-editor-submit_1heb1_tpllu_37"
|
|
13
|
+
};
|
|
14
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
.awsui_filtering-token_1heb1_tpllu_5:not(#\9) {
|
|
6
|
+
/* used in test-utils */
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.awsui_filtering-token-dismiss-button_1heb1_tpllu_9:not(#\9) {
|
|
10
|
+
/* used in test-utils */
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.awsui_filtering-token-select_1heb1_tpllu_13:not(#\9) {
|
|
14
|
+
/* used in test-utils */
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.awsui_filtering-token-content_1heb1_tpllu_17:not(#\9) {
|
|
18
|
+
/* used in test-utils */
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.awsui_token-editor-field-property_1heb1_tpllu_21:not(#\9) {
|
|
22
|
+
/* used in test-utils */
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.awsui_token-editor-field-operator_1heb1_tpllu_25:not(#\9) {
|
|
26
|
+
/* used in test-utils */
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.awsui_token-editor-field-value_1heb1_tpllu_29:not(#\9) {
|
|
30
|
+
/* used in test-utils */
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.awsui_token-editor-cancel_1heb1_tpllu_33:not(#\9) {
|
|
34
|
+
/* used in test-utils */
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.awsui_token-editor-submit_1heb1_tpllu_37:not(#\9) {
|
|
38
|
+
/* used in test-utils */
|
|
39
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
// es-module interop with Babel and Typescript
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
module.exports.default = {
|
|
5
|
+
"filtering-token": "awsui_filtering-token_1heb1_tpllu_5",
|
|
6
|
+
"filtering-token-dismiss-button": "awsui_filtering-token-dismiss-button_1heb1_tpllu_9",
|
|
7
|
+
"filtering-token-select": "awsui_filtering-token-select_1heb1_tpllu_13",
|
|
8
|
+
"filtering-token-content": "awsui_filtering-token-content_1heb1_tpllu_17",
|
|
9
|
+
"token-editor-field-property": "awsui_token-editor-field-property_1heb1_tpllu_21",
|
|
10
|
+
"token-editor-field-operator": "awsui_token-editor-field-operator_1heb1_tpllu_25",
|
|
11
|
+
"token-editor-field-value": "awsui_token-editor-field-value_1heb1_tpllu_29",
|
|
12
|
+
"token-editor-cancel": "awsui_token-editor-cancel_1heb1_tpllu_33",
|
|
13
|
+
"token-editor-submit": "awsui_token-editor-submit_1heb1_tpllu_37"
|
|
14
|
+
};
|
|
15
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-editor.d.ts","sourceRoot":"","sources":["../../../src/property-filter/token-editor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAMhD,OAAO,EAEL,SAAS,EACT,WAAW,EACX,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,aAAa,EACb,eAAe,EACf,KAAK,EACN,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"token-editor.d.ts","sourceRoot":"","sources":["../../../src/property-filter/token-editor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAMhD,OAAO,EAEL,SAAS,EACT,WAAW,EACX,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,aAAa,EACb,eAAe,EACf,KAAK,EACN,MAAM,cAAc,CAAC;AAKtB,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAmJxF,UAAU,gBAAgB;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,mBAAmB,CAAC;IAChC,gBAAgB,EAAE,SAAS,SAAS,EAAE,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,yBAAyB,CAAC;IAC7C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,EAAE,SAAS,yBAAyB,EAAE,CAAC;IAC1D,gBAAgB,EAAE,SAAS,uBAAuB,EAAE,CAAC;IACrD,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAE,yBAAyB,CAAC,eAAe,CAAC,CAAC;IACzD,QAAQ,EAAE,CAAC,QAAQ,EAAE,KAAK,KAAK,IAAI,CAAC;IACpC,KAAK,EAAE,aAAa,CAAC;IACrB,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACpC;AAED,wBAAgB,WAAW,CAAC,EAC1B,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,KAAK,EACL,gBAAgB,GACjB,EAAE,gBAAgB,eAsHlB"}
|
|
@@ -5,11 +5,13 @@ import InternalSelect from '../select/internal';
|
|
|
5
5
|
import InternalAutosuggest from '../autosuggest/internal';
|
|
6
6
|
import InternalPopover from '../popover/internal';
|
|
7
7
|
import styles from './styles.css.js';
|
|
8
|
+
import testUtilStyles from './test-classes/styles.css.js';
|
|
8
9
|
import { useLoadItems } from './use-load-items';
|
|
9
10
|
import { getAllowedOperators, operatorToDescription, getPropertySuggestions } from './controller';
|
|
10
11
|
import InternalButton from '../button/internal';
|
|
11
12
|
import InternalFormField from '../form-field/internal';
|
|
12
13
|
import { matchTokenValue } from './utils';
|
|
14
|
+
import clsx from 'clsx';
|
|
13
15
|
function PropertyInput({ property, onChangePropertyKey, asyncProps, filteringProperties, onLoadItems, customGroupsText, i18nStrings, freeTextFiltering, }) {
|
|
14
16
|
var _a;
|
|
15
17
|
const propertySelectHandlers = useLoadItems(onLoadItems);
|
|
@@ -88,15 +90,15 @@ export function TokenEditor({ asyncProperties, asyncProps, customGroupsText, fre
|
|
|
88
90
|
};
|
|
89
91
|
return (React.createElement(InternalPopover, { ref: popoverRef, className: styles['token-label'], triggerType: "text", header: i18nStrings.editTokenHeader, size: "large", position: "right", dismissAriaLabel: i18nStrings.dismissAriaLabel, __onOpen: () => setTemporaryToken(token), renderWithPortal: expandToViewport, content: React.createElement("div", { className: styles['token-editor'] },
|
|
90
92
|
React.createElement("div", { className: styles['token-editor-form'] },
|
|
91
|
-
React.createElement(InternalFormField, { label: i18nStrings.propertyText, className: styles['token-editor-field-property'] },
|
|
93
|
+
React.createElement(InternalFormField, { label: i18nStrings.propertyText, className: clsx(styles['token-editor-field-property'], testUtilStyles['token-editor-field-property']) },
|
|
92
94
|
React.createElement(PropertyInput, { property: property, onChangePropertyKey: onChangePropertyKey, asyncProps: asyncProperties ? asyncProps : null, filteringProperties: filteringProperties, onLoadItems: onLoadItems, customGroupsText: customGroupsText, i18nStrings: i18nStrings, freeTextFiltering: freeTextFiltering })),
|
|
93
|
-
React.createElement(InternalFormField, { label: i18nStrings.operatorText, className: styles['token-editor-field-operator'] },
|
|
95
|
+
React.createElement(InternalFormField, { label: i18nStrings.operatorText, className: clsx(styles['token-editor-field-operator'], testUtilStyles['token-editor-field-operator']) },
|
|
94
96
|
React.createElement(OperatorInput, { property: property, operator: operator, onChangeOperator: onChangeOperator, i18nStrings: i18nStrings, freeTextFiltering: freeTextFiltering })),
|
|
95
|
-
React.createElement(InternalFormField, { label: i18nStrings.valueText, className: styles['token-editor-field-value'] },
|
|
97
|
+
React.createElement(InternalFormField, { label: i18nStrings.valueText, className: clsx(styles['token-editor-field-value'], testUtilStyles['token-editor-field-value']) },
|
|
96
98
|
React.createElement(ValueInput, { property: property, operator: operator, value: value, onChangeValue: onChangeValue, asyncProps: asyncProps, filteringOptions: filteringOptions, onLoadItems: onLoadItems, i18nStrings: i18nStrings }))),
|
|
97
99
|
React.createElement("div", { className: styles['token-editor-actions'] },
|
|
98
|
-
React.createElement(InternalButton, { formAction: "none", variant: "link", className: styles['token-editor-cancel'], onClick: closePopover }, i18nStrings.cancelActionText),
|
|
99
|
-
React.createElement(InternalButton, { className: styles['token-editor-submit'], formAction: "none", onClick: () => {
|
|
100
|
+
React.createElement(InternalButton, { formAction: "none", variant: "link", className: clsx(styles['token-editor-cancel'], testUtilStyles['token-editor-cancel']), onClick: closePopover }, i18nStrings.cancelActionText),
|
|
101
|
+
React.createElement(InternalButton, { className: clsx(styles['token-editor-submit'], testUtilStyles['token-editor-submit']), formAction: "none", onClick: () => {
|
|
100
102
|
setToken(matchTokenValue(temporaryToken, filteringOptions));
|
|
101
103
|
closePopover();
|
|
102
104
|
} }, i18nStrings.applyActionText))) }, triggerComponent));
|