@cloudscape-design/components-themeable 3.0.1142 → 3.0.1144
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/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/status-indicator/styles.scss +1 -0
- package/lib/internal/scss/tree-view/tree-item/styles.scss +2 -3
- package/lib/internal/scss/tree-view/vertical-connector/styles.scss +29 -0
- package/lib/internal/template/collection-preferences/visible-content.d.ts.map +1 -1
- package/lib/internal/template/collection-preferences/visible-content.js +1 -1
- package/lib/internal/template/collection-preferences/visible-content.js.map +1 -1
- package/lib/internal/template/icon/generated/icons.d.ts +1 -0
- package/lib/internal/template/icon/generated/icons.d.ts.map +1 -1
- package/lib/internal/template/icon/generated/icons.js +2 -0
- package/lib/internal/template/icon/generated/icons.js.map +1 -1
- package/lib/internal/template/icon/interfaces.d.ts +1 -1
- package/lib/internal/template/icon/interfaces.d.ts.map +1 -1
- package/lib/internal/template/icon/interfaces.js.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts +1 -0
- package/lib/internal/template/icon-provider/interfaces.d.ts.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +13 -1
- 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.d.ts +2 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +2 -0
- package/lib/internal/template/internal/generated/theming/index.cjs +45 -0
- package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +9 -0
- package/lib/internal/template/internal/generated/theming/index.d.ts +9 -0
- package/lib/internal/template/internal/generated/theming/index.js +45 -0
- package/lib/internal/template/internal/hooks/use-mobile/index.d.ts.map +1 -1
- package/lib/internal/template/internal/hooks/use-mobile/index.js +3 -1
- package/lib/internal/template/internal/hooks/use-mobile/index.js.map +1 -1
- package/lib/internal/template/internal/plugins/api.d.ts.map +1 -1
- package/lib/internal/template/internal/plugins/api.js +1 -3
- package/lib/internal/template/internal/plugins/api.js.map +1 -1
- package/lib/internal/template/internal/utils/check-safe-url.d.ts.map +1 -1
- package/lib/internal/template/internal/utils/check-safe-url.js +1 -3
- package/lib/internal/template/internal/utils/check-safe-url.js.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/make-scaled-series.js +2 -10
- package/lib/internal/template/mixed-line-bar-chart/make-scaled-series.js.map +1 -1
- package/lib/internal/template/status-indicator/interfaces.d.ts +1 -1
- package/lib/internal/template/status-indicator/interfaces.d.ts.map +1 -1
- package/lib/internal/template/status-indicator/interfaces.js.map +1 -1
- package/lib/internal/template/status-indicator/internal.d.ts.map +1 -1
- package/lib/internal/template/status-indicator/internal.js +1 -0
- package/lib/internal/template/status-indicator/internal.js.map +1 -1
- package/lib/internal/template/status-indicator/styles.css.js +24 -23
- package/lib/internal/template/status-indicator/styles.scoped.css +32 -29
- package/lib/internal/template/status-indicator/styles.selectors.js +24 -23
- package/lib/internal/template/steps/internal.d.ts.map +1 -1
- package/lib/internal/template/steps/internal.js +1 -0
- package/lib/internal/template/steps/internal.js.map +1 -1
- package/lib/internal/template/table/body-cell/inline-editor.d.ts.map +1 -1
- package/lib/internal/template/table/body-cell/inline-editor.js +1 -3
- package/lib/internal/template/table/body-cell/inline-editor.js.map +1 -1
- package/lib/internal/template/tree-view/index.d.ts +1 -1
- package/lib/internal/template/tree-view/index.d.ts.map +1 -1
- package/lib/internal/template/tree-view/index.js +5 -3
- package/lib/internal/template/tree-view/index.js.map +1 -1
- package/lib/internal/template/tree-view/interfaces.d.ts +5 -0
- package/lib/internal/template/tree-view/interfaces.d.ts.map +1 -1
- package/lib/internal/template/tree-view/interfaces.js.map +1 -1
- package/lib/internal/template/tree-view/internal.d.ts +1 -1
- package/lib/internal/template/tree-view/internal.d.ts.map +1 -1
- package/lib/internal/template/tree-view/internal.js +2 -2
- package/lib/internal/template/tree-view/internal.js.map +1 -1
- package/lib/internal/template/tree-view/tree-item/index.d.ts +2 -2
- package/lib/internal/template/tree-view/tree-item/index.d.ts.map +1 -1
- package/lib/internal/template/tree-view/tree-item/index.js +10 -5
- package/lib/internal/template/tree-view/tree-item/index.js.map +1 -1
- package/lib/internal/template/tree-view/tree-item/styles.css.js +9 -9
- package/lib/internal/template/tree-view/tree-item/styles.scoped.css +14 -15
- package/lib/internal/template/tree-view/tree-item/styles.selectors.js +9 -9
- package/lib/internal/template/tree-view/vertical-connector/index.d.ts +6 -0
- package/lib/internal/template/tree-view/vertical-connector/index.d.ts.map +1 -0
- package/lib/internal/template/tree-view/vertical-connector/index.js +11 -0
- package/lib/internal/template/tree-view/vertical-connector/index.js.map +1 -0
- package/lib/internal/template/tree-view/vertical-connector/styles.css.js +8 -0
- package/lib/internal/template/tree-view/vertical-connector/styles.scoped.css +25 -0
- package/lib/internal/template/tree-view/vertical-connector/styles.selectors.js +9 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tree-view/tree-item/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,sBAAsB,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,MAAM,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tree-view/tree-item/index.tsx"],"names":[],"mappings":"AAA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Ae,EAAE,eAAe,EAChC,oBAAoB,EAAE,oBAAoB,EAC1C,sBAAsB,EAAE,sBAAsB,EAC9C,cAAc,EAAE,cAAc,GAC9B,CACH,CAAC;YACJ,CAAC,CAAC;YAED,0BAA0B,IAAI,oBAAC,iBAAiB,IAAC,OAAO,EAAC,UAAU,GAAG,CACpE,CACN,CACE,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,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 { useInternalI18n } from '../../i18n/context';\nimport { ExpandToggleButton } from '../../internal/components/expand-toggle-button';\nimport InternalStructuredItem from '../../internal/components/structured-item';\nimport { joinStrings } from '../../internal/utils/strings';\nimport { TreeViewProps } from '../interfaces';\nimport VerticalConnector from '../vertical-connector';\nimport FocusTarget from './focus-target';\n\nimport testUtilStyles from '../test-classes/styles.css.js';\nimport styles from './styles.css.js';\n\ninterface InternalTreeItemProps<T>\n extends Pick<\n TreeViewProps,\n | 'expandedItems'\n | 'renderItem'\n | 'getItemId'\n | 'getItemChildren'\n | 'renderItemToggleIcon'\n | 'i18nStrings'\n | 'connectorLines'\n > {\n item: T;\n index: number;\n level: number;\n onItemToggle: (detail: TreeViewProps.ItemToggleDetail<T>) => void;\n allVisibleItemsIndices: {\n [key: string]: number;\n };\n}\n\nconst InternalTreeItem = <T,>({\n item,\n index,\n level,\n i18nStrings,\n expandedItems = [],\n connectorLines,\n renderItemToggleIcon,\n renderItem,\n getItemId,\n getItemChildren,\n onItemToggle,\n allVisibleItemsIndices,\n}: InternalTreeItemProps<T>) => {\n const i18n = useInternalI18n('tree-view');\n\n const { icon, content, secondaryContent, actions, announcementLabel } = renderItem(item, index);\n const id = getItemId(item, index);\n const children = getItemChildren(item, index) || [];\n const isExpandable = children.length > 0;\n const isExpanded = isExpandable && expandedItems.includes(id);\n const nextLevel = level + 1;\n\n const showVerticalConnectorLines = connectorLines === 'vertical' && isExpanded;\n\n let customIcon: React.ReactNode | undefined = undefined;\n if (isExpandable && renderItemToggleIcon) {\n customIcon = renderItemToggleIcon({ expanded: isExpanded });\n }\n\n const itemLabelToAnnounce = announcementLabel\n ? announcementLabel\n : typeof content === 'string'\n ? (content as string)\n : '';\n\n return (\n <li\n role=\"treeitem\"\n id={id}\n className={clsx(\n styles.treeitem,\n testUtilStyles.treeitem,\n level > 1 && styles.offset,\n isExpandable && [testUtilStyles.expandable],\n isExpanded && [testUtilStyles.expanded]\n )}\n aria-expanded={isExpandable ? isExpanded : undefined}\n aria-level={level}\n data-testid={`awsui-treeitem-${id}`}\n data-awsui-tree-item-index={allVisibleItemsIndices[id]}\n >\n <div className={styles['treeitem-content-wrapper']}>\n <div className={styles['expand-toggle-wrapper']}>\n <div className={styles.toggle}>\n {isExpandable ? (\n <ExpandToggleButton\n isExpanded={isExpanded}\n customIcon={customIcon}\n expandButtonLabel={joinStrings(\n i18n('i18nStrings.expandButtonLabel', i18nStrings?.expandButtonLabel?.(item)),\n itemLabelToAnnounce\n )}\n collapseButtonLabel={joinStrings(\n i18n('i18nStrings.collapseButtonLabel', i18nStrings?.collapseButtonLabel?.(item)),\n itemLabelToAnnounce\n )}\n onExpandableItemToggle={() => onItemToggle({ id, item, expanded: !isExpanded })}\n className={styles['tree-item-focus-target']}\n disableFocusHighlight={true}\n />\n ) : (\n <FocusTarget ariaLabel={itemLabelToAnnounce} />\n )}\n </div>\n </div>\n\n {showVerticalConnectorLines && <VerticalConnector variant=\"grid\" />}\n\n <div className={styles['structured-item-wrapper']}>\n <InternalStructuredItem\n icon={icon}\n content={content}\n secondaryContent={secondaryContent}\n actions={actions}\n wrapActions={false}\n className={styles['tree-item-structured-item']}\n />\n </div>\n </div>\n\n {isExpanded && children.length && (\n <ul role=\"group\" className={styles['treeitem-group']}>\n {children.map((child, index) => {\n const itemId = getItemId(child, index);\n return (\n <InternalTreeItem<T>\n item={child}\n index={index}\n key={itemId}\n level={nextLevel}\n expandedItems={expandedItems}\n i18nStrings={i18nStrings}\n onItemToggle={onItemToggle}\n renderItem={renderItem}\n getItemId={getItemId}\n getItemChildren={getItemChildren}\n renderItemToggleIcon={renderItemToggleIcon}\n allVisibleItemsIndices={allVisibleItemsIndices}\n connectorLines={connectorLines}\n />\n );\n })}\n\n {showVerticalConnectorLines && <VerticalConnector variant=\"absolute\" />}\n </ul>\n )}\n </li>\n );\n};\n\nexport default InternalTreeItem;\n"]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"treeitem-group": "awsui_treeitem-
|
|
5
|
-
"treeitem": "
|
|
6
|
-
"offset": "
|
|
7
|
-
"treeitem-content-wrapper": "awsui_treeitem-content-
|
|
8
|
-
"tree-item-focus-target": "awsui_tree-item-focus-
|
|
9
|
-
"expand-toggle-wrapper": "awsui_expand-toggle-
|
|
10
|
-
"toggle": "
|
|
11
|
-
"structured-item-wrapper": "awsui_structured-item-
|
|
12
|
-
"tree-item-structured-item": "awsui_tree-item-structured-
|
|
4
|
+
"treeitem-group": "awsui_treeitem-group_1agpu_1lkhl_185",
|
|
5
|
+
"treeitem": "awsui_treeitem_1agpu_1lkhl_185",
|
|
6
|
+
"offset": "awsui_offset_1agpu_1lkhl_202",
|
|
7
|
+
"treeitem-content-wrapper": "awsui_treeitem-content-wrapper_1agpu_1lkhl_205",
|
|
8
|
+
"tree-item-focus-target": "awsui_tree-item-focus-target_1agpu_1lkhl_210",
|
|
9
|
+
"expand-toggle-wrapper": "awsui_expand-toggle-wrapper_1agpu_1lkhl_231",
|
|
10
|
+
"toggle": "awsui_toggle_1agpu_1lkhl_236",
|
|
11
|
+
"structured-item-wrapper": "awsui_structured-item-wrapper_1agpu_1lkhl_241",
|
|
12
|
+
"tree-item-structured-item": "awsui_tree-item-structured-item_1agpu_1lkhl_248"
|
|
13
13
|
};
|
|
14
14
|
|
|
@@ -182,7 +182,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
182
182
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
183
183
|
SPDX-License-Identifier: Apache-2.0
|
|
184
184
|
*/
|
|
185
|
-
.awsui_treeitem-
|
|
185
|
+
.awsui_treeitem-group_1agpu_1lkhl_185:not(#\9) {
|
|
186
186
|
list-style: none;
|
|
187
187
|
margin-block: 0;
|
|
188
188
|
margin-inline: 0;
|
|
@@ -191,7 +191,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
191
191
|
position: relative;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
.
|
|
194
|
+
.awsui_treeitem_1agpu_1lkhl_185:not(#\9) {
|
|
195
195
|
list-style: none;
|
|
196
196
|
margin-block: 0;
|
|
197
197
|
margin-inline: 0;
|
|
@@ -199,22 +199,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
199
199
|
padding-inline: 0;
|
|
200
200
|
position: relative;
|
|
201
201
|
}
|
|
202
|
-
.
|
|
203
|
-
margin-inline-start:
|
|
202
|
+
.awsui_treeitem_1agpu_1lkhl_185.awsui_offset_1agpu_1lkhl_202:not(#\9) {
|
|
203
|
+
margin-inline-start: var(--space-tree-view-indentation-5cp0z1, 20px);
|
|
204
204
|
}
|
|
205
|
-
.
|
|
205
|
+
.awsui_treeitem_1agpu_1lkhl_185 > .awsui_treeitem-content-wrapper_1agpu_1lkhl_205:not(#\9) {
|
|
206
206
|
display: grid;
|
|
207
207
|
grid-template-columns: 28px 1fr;
|
|
208
208
|
align-items: baseline;
|
|
209
209
|
}
|
|
210
|
-
body[data-awsui-focus-visible=true] .
|
|
210
|
+
body[data-awsui-focus-visible=true] .awsui_treeitem_1agpu_1lkhl_185 > .awsui_treeitem-content-wrapper_1agpu_1lkhl_205:not(#\9):has(.awsui_tree-item-focus-target_1agpu_1lkhl_210:focus) {
|
|
211
211
|
position: relative;
|
|
212
212
|
}
|
|
213
|
-
body[data-awsui-focus-visible=true] .
|
|
213
|
+
body[data-awsui-focus-visible=true] .awsui_treeitem_1agpu_1lkhl_185 > .awsui_treeitem-content-wrapper_1agpu_1lkhl_205:not(#\9):has(.awsui_tree-item-focus-target_1agpu_1lkhl_210:focus) {
|
|
214
214
|
outline: 2px dotted transparent;
|
|
215
215
|
outline-offset: calc(0px - 1px);
|
|
216
216
|
}
|
|
217
|
-
body[data-awsui-focus-visible=true] .
|
|
217
|
+
body[data-awsui-focus-visible=true] .awsui_treeitem_1agpu_1lkhl_185 > .awsui_treeitem-content-wrapper_1agpu_1lkhl_205:not(#\9):has(.awsui_tree-item-focus-target_1agpu_1lkhl_210:focus)::before {
|
|
218
218
|
content: " ";
|
|
219
219
|
display: block;
|
|
220
220
|
position: absolute;
|
|
@@ -228,28 +228,27 @@ body[data-awsui-focus-visible=true] .awsui_treeitem_1agpu_601dz_185 > .awsui_tre
|
|
|
228
228
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
|
|
229
229
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-r5f6xl, #0073bb);
|
|
230
230
|
}
|
|
231
|
-
.
|
|
231
|
+
.awsui_treeitem_1agpu_1lkhl_185 > .awsui_treeitem-content-wrapper_1agpu_1lkhl_205 > .awsui_expand-toggle-wrapper_1agpu_1lkhl_231:not(#\9) {
|
|
232
232
|
display: grid;
|
|
233
233
|
grid-column: 1;
|
|
234
234
|
grid-row: 1;
|
|
235
|
-
padding-inline-end: var(--space-scaled-xxs-jatbiv, 4px);
|
|
236
235
|
}
|
|
237
|
-
.
|
|
236
|
+
.awsui_treeitem_1agpu_1lkhl_185 > .awsui_treeitem-content-wrapper_1agpu_1lkhl_205 > .awsui_expand-toggle-wrapper_1agpu_1lkhl_231 > .awsui_toggle_1agpu_1lkhl_236:not(#\9) {
|
|
238
237
|
justify-self: center;
|
|
239
238
|
position: relative;
|
|
240
239
|
inset-block-start: 2px;
|
|
241
240
|
}
|
|
242
|
-
.
|
|
241
|
+
.awsui_treeitem_1agpu_1lkhl_185 > .awsui_treeitem-content-wrapper_1agpu_1lkhl_205 > .awsui_structured-item-wrapper_1agpu_1lkhl_241:not(#\9) {
|
|
243
242
|
grid-column: 2;
|
|
244
243
|
grid-row: 1/span 2;
|
|
245
|
-
padding-block: var(--space-scaled-
|
|
244
|
+
padding-block: var(--space-scaled-xxxs-prgw5k, 2px);
|
|
246
245
|
position: relative;
|
|
247
246
|
}
|
|
248
247
|
|
|
249
|
-
.awsui_tree-item-structured-
|
|
248
|
+
.awsui_tree-item-structured-item_1agpu_1lkhl_248:not(#\9) {
|
|
250
249
|
/* used in keyboard navigation */
|
|
251
250
|
}
|
|
252
251
|
|
|
253
|
-
.awsui_tree-item-focus-
|
|
252
|
+
.awsui_tree-item-focus-target_1agpu_1lkhl_210:not(#\9) {
|
|
254
253
|
outline: none;
|
|
255
254
|
}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"treeitem-group": "awsui_treeitem-
|
|
6
|
-
"treeitem": "
|
|
7
|
-
"offset": "
|
|
8
|
-
"treeitem-content-wrapper": "awsui_treeitem-content-
|
|
9
|
-
"tree-item-focus-target": "awsui_tree-item-focus-
|
|
10
|
-
"expand-toggle-wrapper": "awsui_expand-toggle-
|
|
11
|
-
"toggle": "
|
|
12
|
-
"structured-item-wrapper": "awsui_structured-item-
|
|
13
|
-
"tree-item-structured-item": "awsui_tree-item-structured-
|
|
5
|
+
"treeitem-group": "awsui_treeitem-group_1agpu_1lkhl_185",
|
|
6
|
+
"treeitem": "awsui_treeitem_1agpu_1lkhl_185",
|
|
7
|
+
"offset": "awsui_offset_1agpu_1lkhl_202",
|
|
8
|
+
"treeitem-content-wrapper": "awsui_treeitem-content-wrapper_1agpu_1lkhl_205",
|
|
9
|
+
"tree-item-focus-target": "awsui_tree-item-focus-target_1agpu_1lkhl_210",
|
|
10
|
+
"expand-toggle-wrapper": "awsui_expand-toggle-wrapper_1agpu_1lkhl_231",
|
|
11
|
+
"toggle": "awsui_toggle_1agpu_1lkhl_236",
|
|
12
|
+
"structured-item-wrapper": "awsui_structured-item-wrapper_1agpu_1lkhl_241",
|
|
13
|
+
"tree-item-structured-item": "awsui_tree-item-structured-item_1agpu_1lkhl_248"
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tree-view/vertical-connector/index.tsx"],"names":[],"mappings":"AAOA,UAAU,sBAAsB;IAC9B,OAAO,EAAE,MAAM,GAAG,UAAU,CAAC;CAC9B;AAGD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,sBAAsB,eAG5E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import styles from './styles.css.js';
|
|
6
|
+
// istanbul ignore next - tested via screenshot tests
|
|
7
|
+
export default function VerticalConnector({ variant }) {
|
|
8
|
+
// istanbul ignore next - tested via screenshot tests
|
|
9
|
+
return React.createElement("div", { className: clsx(styles['vertical-connector'], styles[variant]) });
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tree-view/vertical-connector/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAMrC,qDAAqD;AACrD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,OAAO,EAA0B;IAC3E,qDAAqD;IACrD,OAAO,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,GAAI,CAAC;AACjF,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 styles from './styles.css.js';\n\ninterface VerticalConnectorProps {\n variant: 'grid' | 'absolute';\n}\n\n// istanbul ignore next - tested via screenshot tests\nexport default function VerticalConnector({ variant }: VerticalConnectorProps) {\n // istanbul ignore next - tested via screenshot tests\n return <div className={clsx(styles['vertical-connector'], styles[variant])} />;\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
.awsui_vertical-connector_1r2pu_1f9ek_9:not(#\9) {
|
|
10
|
+
background-color: var(--color-tree-view-connector-line-ao4t04, #879596);
|
|
11
|
+
inline-size: var(--border-divider-list-width-8ggz94, 1px);
|
|
12
|
+
}
|
|
13
|
+
.awsui_vertical-connector_1r2pu_1f9ek_9.awsui_grid_1r2pu_1f9ek_13:not(#\9) {
|
|
14
|
+
grid-row: 2/span 3;
|
|
15
|
+
grid-column: 1;
|
|
16
|
+
block-size: 100%;
|
|
17
|
+
position: relative;
|
|
18
|
+
inset-inline-start: 14px;
|
|
19
|
+
}
|
|
20
|
+
.awsui_vertical-connector_1r2pu_1f9ek_9.awsui_absolute_1r2pu_1f9ek_20:not(#\9) {
|
|
21
|
+
position: absolute;
|
|
22
|
+
inset: 0;
|
|
23
|
+
inset-block-end: var(--space-scaled-xs-sppte9, 8px);
|
|
24
|
+
inset-inline-start: 14px;
|
|
25
|
+
}
|
|
@@ -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
|
+
"vertical-connector": "awsui_vertical-connector_1r2pu_1f9ek_9",
|
|
6
|
+
"grid": "awsui_grid_1r2pu_1f9ek_13",
|
|
7
|
+
"absolute": "awsui_absolute_1r2pu_1f9ek_20"
|
|
8
|
+
};
|
|
9
|
+
|