@cloudscape-design/components 3.0.750 → 3.0.751
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/actions-wrapper/index.d.ts +1 -1
- package/alert/actions-wrapper/index.d.ts.map +1 -1
- package/alert/actions-wrapper/index.js +2 -2
- package/alert/actions-wrapper/index.js.map +1 -1
- package/alert/internal.d.ts.map +1 -1
- package/alert/internal.js +15 -5
- package/alert/internal.js.map +1 -1
- package/alert/styles.css.js +27 -25
- package/alert/styles.scoped.css +45 -39
- package/alert/styles.selectors.js +27 -25
- package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +12 -12
- package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +15 -15
- package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +12 -12
- package/breadcrumb-group/implementation.d.ts.map +1 -1
- package/breadcrumb-group/implementation.js +1 -1
- package/breadcrumb-group/implementation.js.map +1 -1
- package/breadcrumb-group/interfaces.d.ts +1 -1
- package/breadcrumb-group/interfaces.js.map +1 -1
- package/button-dropdown/interfaces.d.ts +7 -0
- package/button-dropdown/interfaces.d.ts.map +1 -1
- package/button-dropdown/interfaces.js.map +1 -1
- package/button-dropdown/internal.d.ts.map +1 -1
- package/button-dropdown/internal.js +2 -2
- package/button-dropdown/internal.js.map +1 -1
- package/button-dropdown/item-element/index.d.ts +1 -1
- package/button-dropdown/item-element/index.d.ts.map +1 -1
- package/button-dropdown/item-element/index.js +4 -4
- package/button-dropdown/item-element/index.js.map +1 -1
- package/button-dropdown/item-element/styles.css.js +13 -12
- package/button-dropdown/item-element/styles.scoped.css +52 -14
- package/button-dropdown/item-element/styles.selectors.js +13 -12
- package/button-dropdown/items-list.d.ts +1 -1
- package/button-dropdown/items-list.d.ts.map +1 -1
- package/button-dropdown/items-list.js +2 -2
- package/button-dropdown/items-list.js.map +1 -1
- package/flashbar/analytics-metadata/interfaces.d.ts +36 -0
- package/flashbar/analytics-metadata/interfaces.d.ts.map +1 -0
- package/flashbar/analytics-metadata/interfaces.js +4 -0
- package/flashbar/analytics-metadata/interfaces.js.map +1 -0
- package/flashbar/analytics-metadata/styles.css.js +6 -0
- package/flashbar/analytics-metadata/styles.scoped.css +7 -0
- package/flashbar/analytics-metadata/styles.selectors.js +7 -0
- package/flashbar/analytics-metadata/utils.d.ts +7 -0
- package/flashbar/analytics-metadata/utils.d.ts.map +1 -0
- package/flashbar/analytics-metadata/utils.js +33 -0
- package/flashbar/analytics-metadata/utils.js.map +1 -0
- package/flashbar/collapsible-flashbar.d.ts.map +1 -1
- package/flashbar/collapsible-flashbar.js +13 -5
- package/flashbar/collapsible-flashbar.js.map +1 -1
- package/flashbar/flash.d.ts.map +1 -1
- package/flashbar/flash.js +19 -7
- package/flashbar/flash.js.map +1 -1
- package/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
- package/flashbar/non-collapsible-flashbar.js +4 -2
- package/flashbar/non-collapsible-flashbar.js.map +1 -1
- package/flashbar/styles.css.js +50 -47
- package/flashbar/styles.scoped.css +152 -146
- package/flashbar/styles.selectors.js +50 -47
- package/internal/components/tooltip/index.d.ts +3 -1
- package/internal/components/tooltip/index.d.ts.map +1 -1
- package/internal/components/tooltip/index.js +2 -2
- package/internal/components/tooltip/index.js.map +1 -1
- package/internal/components/tooltip/registry.d.ts +4 -0
- package/internal/components/tooltip/registry.d.ts.map +1 -0
- package/internal/components/tooltip/registry.js +28 -0
- package/internal/components/tooltip/registry.js.map +1 -0
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/internal/plugins/api.d.ts +9 -0
- package/internal/plugins/api.d.ts.map +1 -1
- package/internal/plugins/api.js +7 -0
- package/internal/plugins/api.js.map +1 -1
- package/internal/plugins/controllers/alert-flash-content.d.ts +46 -0
- package/internal/plugins/controllers/alert-flash-content.d.ts.map +1 -0
- package/internal/plugins/controllers/alert-flash-content.js +59 -0
- package/internal/plugins/controllers/alert-flash-content.js.map +1 -0
- package/internal/plugins/helpers/index.d.ts +1 -0
- package/internal/plugins/helpers/index.d.ts.map +1 -1
- package/internal/plugins/helpers/index.js +1 -0
- package/internal/plugins/helpers/index.js.map +1 -1
- package/internal/plugins/helpers/use-discovered-action.d.ts +2 -2
- package/internal/plugins/helpers/use-discovered-action.d.ts.map +1 -1
- package/internal/plugins/helpers/use-discovered-action.js.map +1 -1
- package/internal/plugins/helpers/use-discovered-content.d.ts +15 -0
- package/internal/plugins/helpers/use-discovered-content.d.ts.map +1 -0
- package/internal/plugins/helpers/use-discovered-content.js +82 -0
- package/internal/plugins/helpers/use-discovered-content.js.map +1 -0
- package/package.json +1 -1
- package/property-filter/styles.css.js +38 -38
- package/property-filter/styles.scoped.css +40 -44
- package/property-filter/styles.selectors.js +38 -38
- package/side-navigation/implementation.d.ts +1 -1
- package/side-navigation/implementation.d.ts.map +1 -1
- package/side-navigation/implementation.js +2 -1
- package/side-navigation/implementation.js.map +1 -1
- package/side-navigation/interfaces.d.ts +4 -0
- package/side-navigation/interfaces.d.ts.map +1 -1
- package/side-navigation/interfaces.js.map +1 -1
- package/side-navigation/styles.css.js +30 -29
- package/side-navigation/styles.scoped.css +46 -41
- package/side-navigation/styles.selectors.js +30 -29
- package/test-utils/dom/side-navigation/index.d.ts +1 -0
- package/test-utils/dom/side-navigation/index.js +3 -0
- package/test-utils/dom/side-navigation/index.js.map +1 -1
- package/test-utils/selectors/side-navigation/index.d.ts +1 -0
- package/test-utils/selectors/side-navigation/index.js +3 -0
- package/test-utils/selectors/side-navigation/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/side-navigation/interfaces.tsx"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../internal/base-component';\nimport { BaseNavigationDetail, CancelableEventHandler, NonCancelableEventHandler } from '../internal/events';\n\nexport interface SideNavigationProps extends BaseComponentProps {\n /**\n * Controls the header that appears at the top of the navigation component.\n *\n * It contains the following:\n * - `text` (string) - Specifies the header text.\n * - `href` (string) - Specifies the `href` that the header links to.\n * - `logo` (object) - Specifies a logo image.\n */\n header?: SideNavigationProps.Header;\n\n /**\n * Specifies the `href` of the currently active link.\n * All items within the navigation with a matching `href` are highlighted.\n *\n * `Sections` and `Expandable Page Groups` that contain a highlighted item\n * are automatically expanded, unless their definitions have the `defaultExpanded`\n * property explicitly set to `false`.\n */\n activeHref?: string;\n\n /**\n * Specifies the items to be displayed in the navigation.\n * Allowed objects are: `Link`, `Divider`, `Section`, `LinkGroup` and `ExpandableLinkGroup`.\n *\n * You can inject extra properties (for example, an ID)\n * in order to identify the item when it's used in an event `detail`\n * (for more information, see the events section below).\n *\n * #### Link\n * Object that represents an anchor in the navigation.\n * Links are rendered as `<a>` tags.\n * - `type` - `'link'`.\n * - `text` (string) - Specifies the link text.\n * - `href` (string) - Specifies the `href` of the link.\n * - `external` (boolean) - Determines whether to display an external link icon next to the link.\n * If set to `true`, an external link icon appears next to the link.\n * The anchor also has the attributes `target=\"_blank\"` and `rel=\"noopener\"`.\n * Additionally, the `activeHref` property won't be modified when a user chooses the link.\n * - `externalIconAriaLabel` (string) - Adds an aria-label to the external icon.\n * - `info` (ReactNode) - Enables you to display content next to the link. Although it is technically possible to insert any content,\n * our UX guidelines allow only to add a Badge and/or a \"New\" label.\n *\n * #### Divider\n * Object that represents a horizontal divider between navigation content.\n * It contains `type`: `'divider'` only.\n *\n * #### Section\n * Object that represents a section within the navigation.\n * - `type`: `'section'`.\n * - `text` (string) - Specifies the text to display as a title of the section.\n * - `defaultExpanded` (boolean) - Determines whether the section should be expanded by default. Default value is `true`.\n * - `items` (array) - Specifies the content of the section. You can use any valid item from this list.\n * Although there is no technical limitation to the nesting level,\n * our UX recommendation is to use only one level.\n *\n * #### Section Group\n * Aggregates a set of items that are conceptually related to each other, and can be displayed under a single heading to provide further organization.\n * You can nest sections, links, link groups and expandable link groups within a section group depending on your information architecture needs.\n * - `type`: `'section-group'`.\n * - `title` (string) - Specifies the text to display as a title of the section group.\n * - `items` (array) - Specifies the content of the section header group. You can use `Section`, `Link`, `LinkGroup`, `ExpandableLinkGroup`.\n *\n * #### LinkGroup\n * Object that represents a group of links.\n * - `type`: `'link-group'`.\n * - `text` (string) - Specifies the text of the group link.\n * - `href` (string) - Specifies the `href` of the group link.\n * - `info` (ReactNode) - Enables you to display content next to the link. Although it is technically possible to insert any content,\n * our UX guidelines allow only to add a Badge and/or a \"New\" label.\n * - `items` (array) - Specifies the content of the section. You can use any valid item from this list.\n * Although there is no technical limitation to the nesting level,\n * our UX recommendation is to use only one level.\n *\n * #### ExpandableLinkGroup\n *\n * Object that represents an expandable group of links.\n * - `type`: `'expandable-link-group'`.\n * - `text` (string) - Specifies the text of the group link.\n * - `href` (string) - Specifies the `href` of the group link.\n * - `defaultExpanded` (boolean) - Specifies whether the group should be expanded by default.\n * If not explicitly set, the group is collapsed by default, unless one of the nested links is active.\n * - `items` (array) - Specifies the content of the section. You can use any valid item from this list.\n * Although there is no technical limitation to the nesting level,\n * our UX recommendation is to use only one level.\n */\n items?: ReadonlyArray<SideNavigationProps.Item>;\n\n /**\n * Fired when an anchor is clicked without any modifier (that is, CTRL, ALT, SHIFT).\n * The event `detail` contains a definition of the clicked item.\n * Use this event to prevent default browser navigation (by calling `preventDefault` method)\n * and branch your own routing.\n *\n * If the event is prevented the `activeHref` property won't be automatically set\n * to the href of the clicked item so you'll have to do it yourself.\n */\n onFollow?: CancelableEventHandler<SideNavigationProps.FollowDetail>;\n\n /**\n * Fired when the expansion state of `Section` or `ExpandablePageGroup` items changes\n * as a result of a user interaction. The event `detail` contains an object with information about the changed item.\n *\n * - `item` (object) - Specifies the item that was changed.\n * - `expanded` (boolean) - Specifies whether the item is expanded or not.\n * - `expandableParents` (array) - A list of parent items that have a type of `Section`\n * or `ExpandablePageGroup`. Use this `expandableParents` array to set their expanded\n * state to `true` if you want your data model to keep track of the current state\n * of the navigation items.\n *\n * Note: If the expansion is a result of the activation of a nested link\n * upon changing the `activeHref` property, this event isn't raised.\n */\n onChange?: NonCancelableEventHandler<SideNavigationProps.ChangeDetail>;\n}\n\nexport namespace SideNavigationProps {\n export interface Logo {\n src: string;\n alt?: string;\n }\n export interface Header {\n text?: string;\n href: string;\n logo?: Logo;\n }\n\n export interface Divider {\n type: 'divider';\n }\n\n export interface Link {\n type: 'link';\n text: string;\n href: string;\n external?: boolean;\n externalIconAriaLabel?: string;\n info?: React.ReactNode;\n }\n\n export interface Section {\n type: 'section';\n text: string;\n items: ReadonlyArray<Item>;\n defaultExpanded?: boolean;\n }\n\n export interface SectionGroup {\n type: 'section-group';\n title: string;\n items: ReadonlyArray<Section | Link | LinkGroup | ExpandableLinkGroup>;\n }\n export interface LinkGroup {\n type: 'link-group';\n text: string;\n href: string;\n info?: React.ReactNode;\n items: ReadonlyArray<Item>;\n }\n\n export interface ExpandableLinkGroup {\n type: 'expandable-link-group';\n text: string;\n href: string;\n items: ReadonlyArray<Item>;\n defaultExpanded?: boolean;\n }\n\n export type Item = Divider | Link | Section | LinkGroup | ExpandableLinkGroup | SectionGroup;\n\n export interface ChangeDetail {\n item: Section | ExpandableLinkGroup;\n expanded: boolean;\n expandableParents: ReadonlyArray<Section | ExpandableLinkGroup>;\n }\n\n export interface FollowDetail extends BaseNavigationDetail {\n text?: string;\n href: string;\n type?: 'link' | 'link-group' | 'expandable-link-group' | 'section-header';\n info?: React.ReactNode;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/side-navigation/interfaces.tsx"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../internal/base-component';\nimport { BaseNavigationDetail, CancelableEventHandler, NonCancelableEventHandler } from '../internal/events';\n\nexport interface SideNavigationProps extends BaseComponentProps {\n /**\n * Controls the header that appears at the top of the navigation component.\n *\n * It contains the following:\n * - `text` (string) - Specifies the header text.\n * - `href` (string) - Specifies the `href` that the header links to.\n * - `logo` (object) - Specifies a logo image.\n */\n header?: SideNavigationProps.Header;\n\n /**\n * A slot located below the header and above the items.\n **/\n itemsControl?: React.ReactNode;\n\n /**\n * Specifies the `href` of the currently active link.\n * All items within the navigation with a matching `href` are highlighted.\n *\n * `Sections` and `Expandable Page Groups` that contain a highlighted item\n * are automatically expanded, unless their definitions have the `defaultExpanded`\n * property explicitly set to `false`.\n */\n activeHref?: string;\n\n /**\n * Specifies the items to be displayed in the navigation.\n * Allowed objects are: `Link`, `Divider`, `Section`, `LinkGroup` and `ExpandableLinkGroup`.\n *\n * You can inject extra properties (for example, an ID)\n * in order to identify the item when it's used in an event `detail`\n * (for more information, see the events section below).\n *\n * #### Link\n * Object that represents an anchor in the navigation.\n * Links are rendered as `<a>` tags.\n * - `type` - `'link'`.\n * - `text` (string) - Specifies the link text.\n * - `href` (string) - Specifies the `href` of the link.\n * - `external` (boolean) - Determines whether to display an external link icon next to the link.\n * If set to `true`, an external link icon appears next to the link.\n * The anchor also has the attributes `target=\"_blank\"` and `rel=\"noopener\"`.\n * Additionally, the `activeHref` property won't be modified when a user chooses the link.\n * - `externalIconAriaLabel` (string) - Adds an aria-label to the external icon.\n * - `info` (ReactNode) - Enables you to display content next to the link. Although it is technically possible to insert any content,\n * our UX guidelines allow only to add a Badge and/or a \"New\" label.\n *\n * #### Divider\n * Object that represents a horizontal divider between navigation content.\n * It contains `type`: `'divider'` only.\n *\n * #### Section\n * Object that represents a section within the navigation.\n * - `type`: `'section'`.\n * - `text` (string) - Specifies the text to display as a title of the section.\n * - `defaultExpanded` (boolean) - Determines whether the section should be expanded by default. Default value is `true`.\n * - `items` (array) - Specifies the content of the section. You can use any valid item from this list.\n * Although there is no technical limitation to the nesting level,\n * our UX recommendation is to use only one level.\n *\n * #### Section Group\n * Aggregates a set of items that are conceptually related to each other, and can be displayed under a single heading to provide further organization.\n * You can nest sections, links, link groups and expandable link groups within a section group depending on your information architecture needs.\n * - `type`: `'section-group'`.\n * - `title` (string) - Specifies the text to display as a title of the section group.\n * - `items` (array) - Specifies the content of the section header group. You can use `Section`, `Link`, `LinkGroup`, `ExpandableLinkGroup`.\n *\n * #### LinkGroup\n * Object that represents a group of links.\n * - `type`: `'link-group'`.\n * - `text` (string) - Specifies the text of the group link.\n * - `href` (string) - Specifies the `href` of the group link.\n * - `info` (ReactNode) - Enables you to display content next to the link. Although it is technically possible to insert any content,\n * our UX guidelines allow only to add a Badge and/or a \"New\" label.\n * - `items` (array) - Specifies the content of the section. You can use any valid item from this list.\n * Although there is no technical limitation to the nesting level,\n * our UX recommendation is to use only one level.\n *\n * #### ExpandableLinkGroup\n *\n * Object that represents an expandable group of links.\n * - `type`: `'expandable-link-group'`.\n * - `text` (string) - Specifies the text of the group link.\n * - `href` (string) - Specifies the `href` of the group link.\n * - `defaultExpanded` (boolean) - Specifies whether the group should be expanded by default.\n * If not explicitly set, the group is collapsed by default, unless one of the nested links is active.\n * - `items` (array) - Specifies the content of the section. You can use any valid item from this list.\n * Although there is no technical limitation to the nesting level,\n * our UX recommendation is to use only one level.\n */\n items?: ReadonlyArray<SideNavigationProps.Item>;\n\n /**\n * Fired when an anchor is clicked without any modifier (that is, CTRL, ALT, SHIFT).\n * The event `detail` contains a definition of the clicked item.\n * Use this event to prevent default browser navigation (by calling `preventDefault` method)\n * and branch your own routing.\n *\n * If the event is prevented the `activeHref` property won't be automatically set\n * to the href of the clicked item so you'll have to do it yourself.\n */\n onFollow?: CancelableEventHandler<SideNavigationProps.FollowDetail>;\n\n /**\n * Fired when the expansion state of `Section` or `ExpandablePageGroup` items changes\n * as a result of a user interaction. The event `detail` contains an object with information about the changed item.\n *\n * - `item` (object) - Specifies the item that was changed.\n * - `expanded` (boolean) - Specifies whether the item is expanded or not.\n * - `expandableParents` (array) - A list of parent items that have a type of `Section`\n * or `ExpandablePageGroup`. Use this `expandableParents` array to set their expanded\n * state to `true` if you want your data model to keep track of the current state\n * of the navigation items.\n *\n * Note: If the expansion is a result of the activation of a nested link\n * upon changing the `activeHref` property, this event isn't raised.\n */\n onChange?: NonCancelableEventHandler<SideNavigationProps.ChangeDetail>;\n}\n\nexport namespace SideNavigationProps {\n export interface Logo {\n src: string;\n alt?: string;\n }\n export interface Header {\n text?: string;\n href: string;\n logo?: Logo;\n }\n\n export interface Divider {\n type: 'divider';\n }\n\n export interface Link {\n type: 'link';\n text: string;\n href: string;\n external?: boolean;\n externalIconAriaLabel?: string;\n info?: React.ReactNode;\n }\n\n export interface Section {\n type: 'section';\n text: string;\n items: ReadonlyArray<Item>;\n defaultExpanded?: boolean;\n }\n\n export interface SectionGroup {\n type: 'section-group';\n title: string;\n items: ReadonlyArray<Section | Link | LinkGroup | ExpandableLinkGroup>;\n }\n export interface LinkGroup {\n type: 'link-group';\n text: string;\n href: string;\n info?: React.ReactNode;\n items: ReadonlyArray<Item>;\n }\n\n export interface ExpandableLinkGroup {\n type: 'expandable-link-group';\n text: string;\n href: string;\n items: ReadonlyArray<Item>;\n defaultExpanded?: boolean;\n }\n\n export type Item = Divider | Link | Section | LinkGroup | ExpandableLinkGroup | SectionGroup;\n\n export interface ChangeDetail {\n item: Section | ExpandableLinkGroup;\n expanded: boolean;\n expandableParents: ReadonlyArray<Section | ExpandableLinkGroup>;\n }\n\n export interface FollowDetail extends BaseNavigationDetail {\n text?: string;\n href: string;\n type?: 'link' | 'link-group' | 'expandable-link-group' | 'section-header';\n info?: React.ReactNode;\n }\n}\n"]}
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"header": "
|
|
6
|
-
"with-toolbar": "awsui_with-
|
|
7
|
-
"header-link": "awsui_header-
|
|
8
|
-
"header-link--has-logo": "awsui_header-link--has-
|
|
9
|
-
"header-link-text": "awsui_header-link-
|
|
10
|
-
"header-logo": "awsui_header-
|
|
11
|
-
"header-logo--stretched": "awsui_header-logo--
|
|
12
|
-
"
|
|
13
|
-
"list": "
|
|
14
|
-
"list
|
|
15
|
-
"list-variant-root
|
|
16
|
-
"list-variant-
|
|
17
|
-
"list-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"section-group": "
|
|
25
|
-
"section-group
|
|
26
|
-
"
|
|
27
|
-
"link
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"divider
|
|
32
|
-
"divider-
|
|
4
|
+
"root": "awsui_root_l0dv0_474b6_141",
|
|
5
|
+
"header": "awsui_header_l0dv0_474b6_178",
|
|
6
|
+
"with-toolbar": "awsui_with-toolbar_l0dv0_474b6_190",
|
|
7
|
+
"header-link": "awsui_header-link_l0dv0_474b6_194",
|
|
8
|
+
"header-link--has-logo": "awsui_header-link--has-logo_l0dv0_474b6_204",
|
|
9
|
+
"header-link-text": "awsui_header-link-text_l0dv0_474b6_204",
|
|
10
|
+
"header-logo": "awsui_header-logo_l0dv0_474b6_209",
|
|
11
|
+
"header-logo--stretched": "awsui_header-logo--stretched_l0dv0_474b6_215",
|
|
12
|
+
"items-control": "awsui_items-control_l0dv0_474b6_220",
|
|
13
|
+
"list-container": "awsui_list-container_l0dv0_474b6_225",
|
|
14
|
+
"list": "awsui_list_l0dv0_474b6_225",
|
|
15
|
+
"list-variant-root": "awsui_list-variant-root_l0dv0_474b6_240",
|
|
16
|
+
"list-variant-root--last": "awsui_list-variant-root--last_l0dv0_474b6_247",
|
|
17
|
+
"list-variant-expandable-link-group": "awsui_list-variant-expandable-link-group_l0dv0_474b6_251",
|
|
18
|
+
"list-item": "awsui_list-item_l0dv0_474b6_255",
|
|
19
|
+
"section": "awsui_section_l0dv0_474b6_263",
|
|
20
|
+
"expandable-link-group": "awsui_expandable-link-group_l0dv0_474b6_264",
|
|
21
|
+
"section--no-ident": "awsui_section--no-ident_l0dv0_474b6_267",
|
|
22
|
+
"expandable-link-group--no-ident": "awsui_expandable-link-group--no-ident_l0dv0_474b6_268",
|
|
23
|
+
"refresh": "awsui_refresh_l0dv0_474b6_276",
|
|
24
|
+
"list-variant-section-group": "awsui_list-variant-section-group_l0dv0_474b6_284",
|
|
25
|
+
"section-group": "awsui_section-group_l0dv0_474b6_291",
|
|
26
|
+
"section-group-title": "awsui_section-group-title_l0dv0_474b6_302",
|
|
27
|
+
"link": "awsui_link_l0dv0_474b6_306",
|
|
28
|
+
"link-active": "awsui_link-active_l0dv0_474b6_315",
|
|
29
|
+
"info": "awsui_info_l0dv0_474b6_352",
|
|
30
|
+
"external-icon": "awsui_external-icon_l0dv0_474b6_356",
|
|
31
|
+
"divider": "awsui_divider_l0dv0_474b6_360",
|
|
32
|
+
"divider-default": "awsui_divider-default_l0dv0_474b6_365",
|
|
33
|
+
"divider-header": "awsui_divider-header_l0dv0_474b6_371"
|
|
33
34
|
};
|
|
34
35
|
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
*/
|
|
139
139
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
140
140
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
141
|
-
.
|
|
141
|
+
.awsui_root_l0dv0_474b6_141:not(#\9) {
|
|
142
142
|
border-collapse: separate;
|
|
143
143
|
border-spacing: 0;
|
|
144
144
|
box-sizing: border-box;
|
|
@@ -176,7 +176,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
176
176
|
word-break: break-word;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
.
|
|
179
|
+
.awsui_header_l0dv0_474b6_178:not(#\9) {
|
|
180
180
|
font-size: var(--font-panel-header-size-edjz3l, 18px);
|
|
181
181
|
line-height: var(--font-panel-header-line-height-kxi4u2, 22px);
|
|
182
182
|
font-weight: var(--font-weight-heading-l-f8711v, 700);
|
|
@@ -188,11 +188,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
188
188
|
padding-inline-start: var(--space-panel-nav-left-b1g0mt, 28px);
|
|
189
189
|
padding-inline-end: calc(var(--space-scaled-xxl-wbot5q, 32px) + var(--space-xl-lmui9r, 24px));
|
|
190
190
|
}
|
|
191
|
-
.awsui_with-
|
|
191
|
+
.awsui_with-toolbar_l0dv0_474b6_190 > .awsui_header_l0dv0_474b6_178:not(#\9) {
|
|
192
192
|
padding-block: var(--space-static-m-lrhgl2, 16px);
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
.awsui_header-
|
|
195
|
+
.awsui_header-link_l0dv0_474b6_194:not(#\9) {
|
|
196
196
|
font-size: var(--font-panel-header-size-edjz3l, 18px);
|
|
197
197
|
line-height: var(--font-panel-header-line-height-kxi4u2, 22px);
|
|
198
198
|
font-weight: var(--font-weight-heading-l-f8711v, 700);
|
|
@@ -202,30 +202,35 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
202
202
|
min-block-size: var(--font-panel-header-line-height-kxi4u2, 22px);
|
|
203
203
|
display: flex;
|
|
204
204
|
}
|
|
205
|
-
.awsui_header-link--has-
|
|
205
|
+
.awsui_header-link--has-logo_l0dv0_474b6_204 > .awsui_header-link-text_l0dv0_474b6_204:not(#\9) {
|
|
206
206
|
font-weight: 400;
|
|
207
207
|
align-self: center;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
.awsui_header-
|
|
210
|
+
.awsui_header-logo_l0dv0_474b6_209:not(#\9) {
|
|
211
211
|
margin-inline-end: var(--space-s-34lx8l, 12px);
|
|
212
212
|
margin-block-start: var(--space-xxxs-zbmxqb, 2px);
|
|
213
213
|
max-inline-size: calc(1.25 * var(--size-icon-big-zkdryd, 32px));
|
|
214
214
|
align-self: flex-start;
|
|
215
215
|
}
|
|
216
|
-
.awsui_header-logo--
|
|
216
|
+
.awsui_header-logo--stretched_l0dv0_474b6_215:not(#\9) {
|
|
217
217
|
max-inline-size: 100%;
|
|
218
218
|
margin-inline-end: 0;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
.
|
|
221
|
+
.awsui_items-control_l0dv0_474b6_220:not(#\9) {
|
|
222
222
|
margin-block-start: var(--space-panel-content-top-wac3yp, 20px);
|
|
223
|
+
padding-inline: var(--space-l-t419sm, 20px);
|
|
223
224
|
}
|
|
224
|
-
|
|
225
|
+
|
|
226
|
+
.awsui_list-container_l0dv0_474b6_225:not(#\9) {
|
|
227
|
+
margin-block-start: var(--space-panel-content-top-wac3yp, 20px);
|
|
228
|
+
}
|
|
229
|
+
.awsui_with-toolbar_l0dv0_474b6_190 > .awsui_list-container_l0dv0_474b6_225:not(#\9) {
|
|
225
230
|
margin-block-start: 0px;
|
|
226
231
|
}
|
|
227
232
|
|
|
228
|
-
.
|
|
233
|
+
.awsui_list_l0dv0_474b6_225:not(#\9) {
|
|
229
234
|
margin-block: 0;
|
|
230
235
|
margin-inline: 0;
|
|
231
236
|
padding-block: 0;
|
|
@@ -233,22 +238,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
233
238
|
padding-inline-start: var(--space-l-t419sm, 20px);
|
|
234
239
|
}
|
|
235
240
|
|
|
236
|
-
.awsui_list-variant-
|
|
241
|
+
.awsui_list-variant-root_l0dv0_474b6_240:not(#\9) {
|
|
237
242
|
margin-block: 0;
|
|
238
243
|
margin-inline: 0;
|
|
239
244
|
padding-block: 0;
|
|
240
245
|
padding-inline-start: var(--space-panel-nav-left-b1g0mt, 28px);
|
|
241
246
|
padding-inline-end: var(--space-panel-side-right-xofg51, 24px);
|
|
242
247
|
}
|
|
243
|
-
.awsui_list-variant-root--
|
|
248
|
+
.awsui_list-variant-root--last_l0dv0_474b6_247:not(#\9) {
|
|
244
249
|
margin-block-end: var(--space-panel-content-bottom-7k6er3, 40px);
|
|
245
250
|
}
|
|
246
251
|
|
|
247
|
-
.awsui_list-variant-expandable-link-
|
|
252
|
+
.awsui_list-variant-expandable-link-group_l0dv0_474b6_251:not(#\9) {
|
|
248
253
|
padding-inline-start: var(--space-xxxl-4x2gki, 40px);
|
|
249
254
|
}
|
|
250
255
|
|
|
251
|
-
.awsui_list-
|
|
256
|
+
.awsui_list-item_l0dv0_474b6_255:not(#\9) {
|
|
252
257
|
margin-block: var(--space-scaled-xs-26e2du, 8px);
|
|
253
258
|
margin-inline: 0;
|
|
254
259
|
padding-block: 0;
|
|
@@ -256,35 +261,35 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
256
261
|
list-style: none;
|
|
257
262
|
}
|
|
258
263
|
|
|
259
|
-
.
|
|
260
|
-
.awsui_expandable-link-
|
|
264
|
+
.awsui_section_l0dv0_474b6_263:not(#\9),
|
|
265
|
+
.awsui_expandable-link-group_l0dv0_474b6_264:not(#\9) {
|
|
261
266
|
margin-inline-start: calc(-1 * var(--space-l-t419sm, 20px));
|
|
262
267
|
}
|
|
263
|
-
.awsui_section--no-
|
|
264
|
-
.awsui_expandable-link-group--no-
|
|
268
|
+
.awsui_section--no-ident_l0dv0_474b6_267:not(#\9),
|
|
269
|
+
.awsui_expandable-link-group--no-ident_l0dv0_474b6_268:not(#\9) {
|
|
265
270
|
margin-inline-start: 0;
|
|
266
271
|
}
|
|
267
272
|
|
|
268
|
-
.
|
|
273
|
+
.awsui_section_l0dv0_474b6_263:not(#\9) {
|
|
269
274
|
margin-block: calc(var(--space-scaled-2x-l-ujnz41, 20px) - var(--border-divider-section-width-1061zr, 1px));
|
|
270
275
|
/* stylelint-disable-next-line selector-max-type */
|
|
271
276
|
}
|
|
272
|
-
.
|
|
277
|
+
.awsui_section_l0dv0_474b6_263.awsui_refresh_l0dv0_474b6_276:not(#\9) {
|
|
273
278
|
margin-block: calc(var(--space-scaled-2x-m-owtj1o, 16px) - var(--border-divider-section-width-1061zr, 1px));
|
|
274
279
|
}
|
|
275
|
-
.
|
|
280
|
+
.awsui_section_l0dv0_474b6_263 > div:not(#\9) {
|
|
276
281
|
padding-block: 0;
|
|
277
282
|
padding-inline: 0;
|
|
278
283
|
}
|
|
279
284
|
|
|
280
|
-
.awsui_list-variant-section-
|
|
285
|
+
.awsui_list-variant-section-group_l0dv0_474b6_284:not(#\9) {
|
|
281
286
|
margin-block: 0;
|
|
282
287
|
margin-inline: 0;
|
|
283
288
|
padding-block: 0;
|
|
284
289
|
padding-inline: 0;
|
|
285
290
|
}
|
|
286
291
|
|
|
287
|
-
.awsui_section-
|
|
292
|
+
.awsui_section-group_l0dv0_474b6_291:not(#\9) {
|
|
288
293
|
font-size: var(--font-size-heading-m-sjd256, 18px);
|
|
289
294
|
line-height: var(--line-height-heading-m-50evfk, 22px);
|
|
290
295
|
letter-spacing: var(--letter-spacing-heading-m-0w575i, -0.01em);
|
|
@@ -295,11 +300,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
295
300
|
margin-inline: 0;
|
|
296
301
|
}
|
|
297
302
|
|
|
298
|
-
.awsui_section-group-
|
|
303
|
+
.awsui_section-group-title_l0dv0_474b6_302:not(#\9) {
|
|
299
304
|
/* used in test-utils */
|
|
300
305
|
}
|
|
301
306
|
|
|
302
|
-
.
|
|
307
|
+
.awsui_link_l0dv0_474b6_306:not(#\9) {
|
|
303
308
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
304
309
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
305
310
|
color: var(--color-text-body-secondary-w9jvno, #414d5c);
|
|
@@ -308,30 +313,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
308
313
|
-moz-osx-font-smoothing: auto;
|
|
309
314
|
}
|
|
310
315
|
|
|
311
|
-
.awsui_link-
|
|
316
|
+
.awsui_link-active_l0dv0_474b6_315:not(#\9) {
|
|
312
317
|
font-weight: var(--font-wayfinding-link-active-weight-rbmzei, 700);
|
|
313
318
|
-webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
|
|
314
319
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
|
|
315
320
|
color: var(--color-text-accent-n2acxv, #0972d3);
|
|
316
321
|
}
|
|
317
322
|
|
|
318
|
-
.awsui_header-
|
|
319
|
-
.
|
|
323
|
+
.awsui_header-link_l0dv0_474b6_194:not(#\9),
|
|
324
|
+
.awsui_link_l0dv0_474b6_306:not(#\9) {
|
|
320
325
|
text-decoration: none;
|
|
321
326
|
}
|
|
322
|
-
.awsui_header-
|
|
323
|
-
.
|
|
327
|
+
.awsui_header-link_l0dv0_474b6_194:not(#\9):hover,
|
|
328
|
+
.awsui_link_l0dv0_474b6_306:not(#\9):hover {
|
|
324
329
|
color: var(--color-text-accent-n2acxv, #0972d3);
|
|
325
330
|
}
|
|
326
|
-
.awsui_header-
|
|
327
|
-
.
|
|
331
|
+
.awsui_header-link_l0dv0_474b6_194:not(#\9):focus,
|
|
332
|
+
.awsui_link_l0dv0_474b6_306:not(#\9):focus {
|
|
328
333
|
outline: none;
|
|
329
334
|
}
|
|
330
|
-
.awsui_header-
|
|
335
|
+
.awsui_header-link_l0dv0_474b6_194:not(#\9):hover, .awsui_header-link_l0dv0_474b6_194:not(#\9):focus, .awsui_link_l0dv0_474b6_306:not(#\9):hover, .awsui_link_l0dv0_474b6_306:not(#\9):focus {
|
|
331
336
|
text-decoration: none;
|
|
332
337
|
}
|
|
333
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
334
|
-
body[data-awsui-focus-visible=true] .
|
|
338
|
+
body[data-awsui-focus-visible=true] .awsui_header-link_l0dv0_474b6_194:not(#\9):focus,
|
|
339
|
+
body[data-awsui-focus-visible=true] .awsui_link_l0dv0_474b6_306:not(#\9):focus {
|
|
335
340
|
outline: thin dotted;
|
|
336
341
|
outline: var(--border-link-focus-ring-outline-kkfop6, 0);
|
|
337
342
|
outline-offset: 2px;
|
|
@@ -343,29 +348,29 @@ body[data-awsui-focus-visible=true] .awsui_link_l0dv0_va2r6_301:not(#\9):focus {
|
|
|
343
348
|
box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-v8hkrl, 2px) var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
344
349
|
}
|
|
345
350
|
|
|
346
|
-
.
|
|
351
|
+
.awsui_info_l0dv0_474b6_352:not(#\9) {
|
|
347
352
|
margin-inline-start: var(--space-xs-zb16t3, 8px);
|
|
348
353
|
}
|
|
349
354
|
|
|
350
|
-
.awsui_external-
|
|
355
|
+
.awsui_external-icon_l0dv0_474b6_356:not(#\9) {
|
|
351
356
|
margin-inline-start: var(--space-xxs-p8yyaw, 4px);
|
|
352
357
|
}
|
|
353
358
|
|
|
354
|
-
.
|
|
359
|
+
.awsui_divider_l0dv0_474b6_360:not(#\9) {
|
|
355
360
|
border-block: none;
|
|
356
361
|
border-inline: none;
|
|
357
362
|
}
|
|
358
363
|
|
|
359
|
-
.awsui_divider-
|
|
364
|
+
.awsui_divider-default_l0dv0_474b6_365:not(#\9) {
|
|
360
365
|
margin-block: var(--space-scaled-2x-xl-udij7m, 24px);
|
|
361
366
|
margin-inline: calc(-1 * var(--space-panel-divider-margin-horizontal-sbik1z, 8px));
|
|
362
367
|
border-block-start: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
363
368
|
}
|
|
364
369
|
|
|
365
|
-
.awsui_divider-
|
|
370
|
+
.awsui_divider-header_l0dv0_474b6_371:not(#\9) {
|
|
366
371
|
margin-block-start: 0;
|
|
367
372
|
border-block-start: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-panel-header-lf0q4c, #b6bec9);
|
|
368
373
|
}
|
|
369
|
-
.awsui_with-
|
|
374
|
+
.awsui_with-toolbar_l0dv0_474b6_190 > .awsui_divider-header_l0dv0_474b6_371:not(#\9) {
|
|
370
375
|
border-color: transparent;
|
|
371
376
|
}
|
|
@@ -2,34 +2,35 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"header": "
|
|
7
|
-
"with-toolbar": "awsui_with-
|
|
8
|
-
"header-link": "awsui_header-
|
|
9
|
-
"header-link--has-logo": "awsui_header-link--has-
|
|
10
|
-
"header-link-text": "awsui_header-link-
|
|
11
|
-
"header-logo": "awsui_header-
|
|
12
|
-
"header-logo--stretched": "awsui_header-logo--
|
|
13
|
-
"
|
|
14
|
-
"list": "
|
|
15
|
-
"list
|
|
16
|
-
"list-variant-root
|
|
17
|
-
"list-variant-
|
|
18
|
-
"list-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"section-group": "
|
|
26
|
-
"section-group
|
|
27
|
-
"
|
|
28
|
-
"link
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"divider
|
|
33
|
-
"divider-
|
|
5
|
+
"root": "awsui_root_l0dv0_474b6_141",
|
|
6
|
+
"header": "awsui_header_l0dv0_474b6_178",
|
|
7
|
+
"with-toolbar": "awsui_with-toolbar_l0dv0_474b6_190",
|
|
8
|
+
"header-link": "awsui_header-link_l0dv0_474b6_194",
|
|
9
|
+
"header-link--has-logo": "awsui_header-link--has-logo_l0dv0_474b6_204",
|
|
10
|
+
"header-link-text": "awsui_header-link-text_l0dv0_474b6_204",
|
|
11
|
+
"header-logo": "awsui_header-logo_l0dv0_474b6_209",
|
|
12
|
+
"header-logo--stretched": "awsui_header-logo--stretched_l0dv0_474b6_215",
|
|
13
|
+
"items-control": "awsui_items-control_l0dv0_474b6_220",
|
|
14
|
+
"list-container": "awsui_list-container_l0dv0_474b6_225",
|
|
15
|
+
"list": "awsui_list_l0dv0_474b6_225",
|
|
16
|
+
"list-variant-root": "awsui_list-variant-root_l0dv0_474b6_240",
|
|
17
|
+
"list-variant-root--last": "awsui_list-variant-root--last_l0dv0_474b6_247",
|
|
18
|
+
"list-variant-expandable-link-group": "awsui_list-variant-expandable-link-group_l0dv0_474b6_251",
|
|
19
|
+
"list-item": "awsui_list-item_l0dv0_474b6_255",
|
|
20
|
+
"section": "awsui_section_l0dv0_474b6_263",
|
|
21
|
+
"expandable-link-group": "awsui_expandable-link-group_l0dv0_474b6_264",
|
|
22
|
+
"section--no-ident": "awsui_section--no-ident_l0dv0_474b6_267",
|
|
23
|
+
"expandable-link-group--no-ident": "awsui_expandable-link-group--no-ident_l0dv0_474b6_268",
|
|
24
|
+
"refresh": "awsui_refresh_l0dv0_474b6_276",
|
|
25
|
+
"list-variant-section-group": "awsui_list-variant-section-group_l0dv0_474b6_284",
|
|
26
|
+
"section-group": "awsui_section-group_l0dv0_474b6_291",
|
|
27
|
+
"section-group-title": "awsui_section-group-title_l0dv0_474b6_302",
|
|
28
|
+
"link": "awsui_link_l0dv0_474b6_306",
|
|
29
|
+
"link-active": "awsui_link-active_l0dv0_474b6_315",
|
|
30
|
+
"info": "awsui_info_l0dv0_474b6_352",
|
|
31
|
+
"external-icon": "awsui_external-icon_l0dv0_474b6_356",
|
|
32
|
+
"divider": "awsui_divider_l0dv0_474b6_360",
|
|
33
|
+
"divider-default": "awsui_divider-default_l0dv0_474b6_365",
|
|
34
|
+
"divider-header": "awsui_divider-header_l0dv0_474b6_371"
|
|
34
35
|
};
|
|
35
36
|
|
|
@@ -4,6 +4,7 @@ export default class SideNavigationWrapper extends ComponentWrapper {
|
|
|
4
4
|
static rootSelector: string;
|
|
5
5
|
findHeader(): ElementWrapper<HTMLAnchorElement> | null;
|
|
6
6
|
findHeaderLink(): ElementWrapper<HTMLAnchorElement> | null;
|
|
7
|
+
findItemsControl(): ElementWrapper | null;
|
|
7
8
|
findLinkByHref(href: string): ElementWrapper<HTMLAnchorElement> | null;
|
|
8
9
|
findActiveLink(): ElementWrapper<HTMLAnchorElement> | null;
|
|
9
10
|
findItemByIndex(index: number): SideNavigationItemWrapper | null;
|
|
@@ -13,6 +13,9 @@ class SideNavigationWrapper extends dom_1.ComponentWrapper {
|
|
|
13
13
|
findHeaderLink() {
|
|
14
14
|
return this.findByClassName(styles_selectors_js_1.default['header-link']);
|
|
15
15
|
}
|
|
16
|
+
findItemsControl() {
|
|
17
|
+
return this.findByClassName(styles_selectors_js_1.default['items-control']);
|
|
18
|
+
}
|
|
16
19
|
findLinkByHref(href) {
|
|
17
20
|
return this.find(`.${styles_selectors_js_1.default.link}[href="${href}"]`);
|
|
18
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/side-navigation/index.ts"],"names":[],"mappings":";;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,8DAA6D;AAE7D,sFAAkE;AAElE,MAAqB,qBAAsB,SAAQ,sBAAgB;IAGjE,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,aAAa,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,cAAc,CAAC,IAAY;QACzB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,IAAI,UAAU,IAAI,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,aAAa,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,eAAe,CAAC,KAAa;QAC3B,OAAO,IAAI,CAAC,aAAa,CACvB,IAAI,6BAAM,CAAC,mBAAmB,CAAC,yBAAyB,KAAK,IAAI,EACjE,yBA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ACnB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC7D,CAAC;IAED,uBAAuB;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,uBAAuB,CAAC,EAAE,EAAE,4BAAwB,CAAC,CAAC;IAC7F,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAED,gBAAgB;;QACd,OAAO,MAAA,MAAA,IAAI,CAAC,WAAW,EAAE,0CAAE,UAAU,EAAE,mCAAI,IAAI,CAAC;IAClD,CAAC;IAED,eAAe,CAAC,KAAa;QAC3B,OAAO,IAAI,CAAC,aAAa,CAAC,sBAAsB,KAAK,IAAI,EAAE,yBAAyB,CAAC,CAAC;IACxF,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,yBAAyB,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAChG,CAAC;CACF;AApCD,8DAoCC"}
|
|
@@ -4,6 +4,7 @@ export default class SideNavigationWrapper extends ComponentWrapper {
|
|
|
4
4
|
static rootSelector: string;
|
|
5
5
|
findHeader(): ElementWrapper;
|
|
6
6
|
findHeaderLink(): ElementWrapper;
|
|
7
|
+
findItemsControl(): ElementWrapper;
|
|
7
8
|
findLinkByHref(href: string): ElementWrapper;
|
|
8
9
|
findActiveLink(): ElementWrapper;
|
|
9
10
|
findItemByIndex(index: number): SideNavigationItemWrapper;
|
|
@@ -13,6 +13,9 @@ class SideNavigationWrapper extends selectors_1.ComponentWrapper {
|
|
|
13
13
|
findHeaderLink() {
|
|
14
14
|
return this.findByClassName(styles_selectors_js_1.default['header-link']);
|
|
15
15
|
}
|
|
16
|
+
findItemsControl() {
|
|
17
|
+
return this.findByClassName(styles_selectors_js_1.default['items-control']);
|
|
18
|
+
}
|
|
16
19
|
findLinkByHref(href) {
|
|
17
20
|
return this.find(`.${styles_selectors_js_1.default.link}[href="${href}"]`);
|
|
18
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/side-navigation/index.ts"],"names":[],"mappings":";;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,8DAA6D;AAC7D,sFAAkE;AAClE,MAAqB,qBAAsB,SAAQ,4BAAgB;IAEjE,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,aAAa,CAAC,CAAC,CAAC;IACrD,CAAC;IACD,cAAc,CAAC,IAAY;QACzB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,IAAI,UAAU,IAAI,IAAI,CAAC,CAAC;IACtD,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,aAAa,CAAC,CAAC,CAAC;IACrD,CAAC;IACD,eAAe,CAAC,KAAa;QAC3B,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,mBAAmB,CAAC,yBAAyB,KAAK,IAAI,EAAE,yBAAyB,CAAC,CAAC;IAC1H,CAAC;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/side-navigation/index.ts"],"names":[],"mappings":";;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,8DAA6D;AAC7D,sFAAkE;AAClE,MAAqB,qBAAsB,SAAQ,4BAAgB;IAEjE,UAAU;QACR,OAAO,IAA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