@cloudscape-design/components 3.0.685 → 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/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/flashbar/styles.css.js +47 -47
- package/flashbar/styles.scoped.css +171 -171
- package/flashbar/styles.selectors.js +47 -47
- 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/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/manifest.json +1 -1
- 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/package.json +2 -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/slider/styles.css.js +26 -26
- package/slider/styles.scoped.css +86 -86
- package/slider/styles.selectors.js +26 -26
- package/spinner/styles.css.js +13 -13
- package/spinner/styles.scoped.css +39 -39
- package/spinner/styles.selectors.js +13 -13
- 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/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/tsconfig.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/button-dropdown/item-element/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,OAAO,MAAM,YAAY,CAAC;AAGjC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,oBAAoB,MAAM,6CAA6C,CAAC;AAC/E,OAAO,YAAmC,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,MAAM,WAAW,GAAG,CAAC,EACnB,IAAI,EACJ,QAAQ,EACR,cAAc,EACd,WAAW,EACX,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,qBAAqB,GAAG,KAAK,EA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C,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAC,UAAU,GAAG,CAAC;IACzF,OAAO,CACL,8BAAM,SAAS,EAAE,MAAM,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,gBAAc,SAAS,IACjG,IAAI,CACA,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport clsx from 'clsx';\nimport { ItemProps } from '../interfaces';\nimport { isCheckboxItem, isLinkItem } from '../utils/utils';\nimport styles from './styles.css.js';\nimport Tooltip from '../tooltip';\n\nimport { ButtonDropdownProps } from '../interfaces';\nimport { getItemTarget } from '../utils/utils';\nimport useHiddenDescription from '../../internal/hooks/use-hidden-description';\nimport InternalIcon, { InternalIconProps } from '../../icon/internal';\nimport { useDropdownContext } from '../../internal/components/dropdown/context';\nimport { getMenuItemProps, getMenuItemCheckboxProps } from '../utils/menu-item';\n\nconst ItemElement = ({\n item,\n disabled,\n onItemActivate,\n highlighted,\n highlightItem,\n showDivider,\n hasCategoryHeader,\n isKeyboardHighlighted = false,\n variant = 'normal',\n}: ItemProps) => {\n const isLink = isLinkItem(item);\n const isCheckbox = isCheckboxItem(item);\n const onClick = (event: React.MouseEvent) => {\n // Stop propagation to parent node and handle event exclusively in here. This ensures\n // that no group will interfere with the default behavior of links\n event.stopPropagation();\n if (!isLink) {\n event.preventDefault();\n }\n if (!disabled) {\n onItemActivate(item, event);\n }\n };\n\n const onHover = () => {\n highlightItem(item);\n };\n\n return (\n <li\n className={clsx(styles['item-element'], styles[`variant-${variant}`], {\n [styles.highlighted]: highlighted,\n [styles.disabled]: disabled,\n [styles['has-category-header']]: hasCategoryHeader,\n [styles['has-checkmark']]: isCheckbox,\n [styles['show-divider']]: showDivider,\n [styles['is-focused']]: isKeyboardHighlighted,\n })}\n role=\"presentation\"\n data-testid={item.id}\n data-description={item.description}\n onClick={onClick}\n onMouseEnter={onHover}\n onTouchStart={onHover}\n >\n <MenuItem item={item} disabled={disabled} highlighted={highlighted} />\n </li>\n );\n};\n\nexport type InternalItemProps = ButtonDropdownProps.Item & {\n badge?: boolean;\n};\n\nexport type InternalCheckboxItemProps = ButtonDropdownProps.CheckboxItem & {\n badge?: boolean;\n};\n\ninterface MenuItemProps {\n item: InternalItemProps | InternalCheckboxItemProps;\n disabled: boolean;\n highlighted: boolean;\n}\n\nfunction MenuItem({ item, disabled, highlighted }: MenuItemProps) {\n const menuItemRef = useRef<(HTMLSpanElement & HTMLAnchorElement) | null>(null);\n const isCheckbox = isCheckboxItem(item);\n\n useEffect(() => {\n if (highlighted && menuItemRef.current) {\n menuItemRef.current.focus();\n }\n }, [highlighted]);\n\n const isDisabledWithReason = disabled && item.disabledReason;\n const { targetProps, descriptionEl } = useHiddenDescription(item.disabledReason);\n const menuItemProps: React.HTMLAttributes<HTMLSpanElement & HTMLAnchorElement> = {\n className: styles['menu-item'],\n lang: item.lang,\n ref: menuItemRef,\n // We are using the roving tabindex technique to manage the focus state of the dropdown.\n // The current element will always have tabindex=0 which means that it can be tabbed to,\n // while all other items have tabindex=-1 so we can focus them when necessary.\n tabIndex: highlighted ? 0 : -1,\n ...(isCheckbox ? getMenuItemCheckboxProps({ disabled, checked: item.checked }) : getMenuItemProps({ disabled })),\n ...(isDisabledWithReason ? targetProps : {}),\n };\n\n const menuItem = isLinkItem(item) ? (\n <a\n {...menuItemProps}\n href={!disabled ? item.href : undefined}\n target={getItemTarget(item)}\n rel={item.external ? 'noopener noreferrer' : undefined}\n >\n <MenuItemContent item={item} disabled={disabled} />\n </a>\n ) : (\n <span {...menuItemProps}>\n <MenuItemContent item={item} disabled={disabled} />\n </span>\n );\n\n const { position } = useDropdownContext();\n const tooltipPosition = position === 'bottom-left' || position === 'top-left' ? 'left' : 'right';\n return isDisabledWithReason ? (\n <Tooltip content={item.disabledReason} position={tooltipPosition}>\n {menuItem}\n {descriptionEl}\n </Tooltip>\n ) : (\n menuItem\n );\n}\n\nconst MenuItemContent = ({\n item,\n disabled,\n}: {\n item: InternalItemProps | InternalCheckboxItemProps;\n disabled: boolean;\n}) => {\n const hasIcon = !!(item.iconName || item.iconUrl || item.iconSvg);\n const hasExternal = isLinkItem(item) && item.external;\n const isCheckbox = isCheckboxItem(item);\n return (\n <>\n {isCheckbox && <MenuItemCheckmark checked={item.checked} disabled={disabled} />}\n {hasIcon && (\n <MenuItemIcon\n name={item.iconName}\n url={item.iconUrl}\n svg={item.iconSvg}\n alt={item.iconAlt}\n badge={item.badge}\n />\n )}\n {item.text}\n {hasExternal && <ExternalIcon disabled={disabled} ariaLabel={item.externalIconAriaLabel} />}\n </>\n );\n};\n\nconst MenuItemIcon = (props: InternalIconProps) => (\n <span className={styles.icon}>\n <InternalIcon {...props} />\n </span>\n);\n\n// Toggle has aria-hidden set because it's just used as a graphical element,\n// a11y attributes for the checkmark are communicated through the role and aria-checked state\n// of the menu element item.\nconst MenuItemCheckmark = ({ disabled, checked }: { disabled: boolean; checked: boolean }) => {\n const checkmark = <InternalIcon variant={disabled ? 'disabled' : 'normal'} name=\"check\" />;\n return (\n <span\n className={clsx(styles.icon, styles.checkmark, { [styles.disabled]: disabled })}\n aria-hidden=\"true\"\n style={{ visibility: checked ? 'visible' : 'hidden' }}\n >\n {checkmark}\n </span>\n );\n};\n\nconst ExternalIcon = ({ disabled, ariaLabel }: { disabled: boolean; ariaLabel?: string }) => {\n const icon = <InternalIcon variant={disabled ? 'disabled' : 'normal'} name=\"external\" />;\n return (\n <span className={styles['external-icon']} role={ariaLabel ? 'img' : undefined} aria-label={ariaLabel}>\n {icon}\n </span>\n );\n};\n\nexport default ItemElement;\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/button-dropdown/item-element/index.tsx"],"names":[],"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A4E;AAC5E,6FAA6F;AAC7F,4BAA4B;AAC5B,MAAM,iBAAiB,GAAG,CAAC,EAAE,QAAQ,EAAE,OAAO,EAA2C,EAAE,EAAE;IAC3F,MAAM,SAAS,GAAG,oBAAC,YAAY,IAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAC,OAAO,GAAG,CAAC;IAC3F,OAAO,CACL,8BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,iBACnE,MAAM,EAClB,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,IAEpD,SAAS,CACL,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAA6C,EAAE,EAAE;IAC1F,MAAM,IAAI,GAAG,oBAAC,YAAY,IAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAC,UAAU,GAAG,CAAC;IACzF,OAAO,CACL,8BAAM,SAAS,EAAE,MAAM,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,gBAAc,SAAS,IACjG,IAAI,CACA,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport clsx from 'clsx';\nimport { ItemProps } from '../interfaces';\nimport { isCheckboxItem, isLinkItem } from '../utils/utils';\nimport styles from './styles.css.js';\nimport Tooltip from '../tooltip';\n\nimport { ButtonDropdownProps } from '../interfaces';\nimport { getItemTarget } from '../utils/utils';\nimport useHiddenDescription from '../../internal/hooks/use-hidden-description';\nimport InternalIcon, { InternalIconProps } from '../../icon/internal';\nimport { useDropdownContext } from '../../internal/components/dropdown/context';\nimport { getMenuItemProps, getMenuItemCheckboxProps } from '../utils/menu-item';\n\nconst ItemElement = ({\n item,\n disabled,\n onItemActivate,\n highlighted,\n highlightItem,\n showDivider,\n hasCategoryHeader,\n isKeyboardHighlighted = false,\n variant = 'normal',\n}: ItemProps) => {\n const isLink = isLinkItem(item);\n const isCheckbox = isCheckboxItem(item);\n const onClick = (event: React.MouseEvent) => {\n // Stop propagation to parent node and handle event exclusively in here. This ensures\n // that no group will interfere with the default behavior of links\n event.stopPropagation();\n if (!isLink) {\n event.preventDefault();\n }\n if (!disabled) {\n onItemActivate(item, event);\n }\n };\n\n const onHover = () => {\n highlightItem(item);\n };\n\n return (\n <li\n className={clsx(styles['item-element'], styles[`variant-${variant}`], {\n [styles.highlighted]: highlighted,\n [styles.disabled]: disabled,\n [styles['has-category-header']]: hasCategoryHeader,\n [styles['has-checkmark']]: isCheckbox,\n [styles['show-divider']]: showDivider,\n [styles['is-focused']]: isKeyboardHighlighted,\n })}\n role=\"presentation\"\n data-testid={item.id}\n data-description={item.description}\n onClick={onClick}\n onMouseEnter={onHover}\n onTouchStart={onHover}\n >\n <MenuItem item={item} disabled={disabled} highlighted={highlighted} />\n </li>\n );\n};\n\nexport type InternalItemProps = ButtonDropdownProps.Item & {\n badge?: boolean;\n};\n\nexport type InternalCheckboxItemProps = ButtonDropdownProps.CheckboxItem & {\n badge?: boolean;\n};\n\ninterface MenuItemProps {\n item: InternalItemProps | InternalCheckboxItemProps;\n disabled: boolean;\n highlighted: boolean;\n}\n\nfunction MenuItem({ item, disabled, highlighted }: MenuItemProps) {\n const menuItemRef = useRef<(HTMLSpanElement & HTMLAnchorElement) | null>(null);\n const isCheckbox = isCheckboxItem(item);\n\n useEffect(() => {\n if (highlighted && menuItemRef.current) {\n menuItemRef.current.focus();\n }\n }, [highlighted]);\n\n const isDisabledWithReason = disabled && item.disabledReason;\n const { targetProps, descriptionEl } = useHiddenDescription(item.disabledReason);\n const menuItemProps: React.HTMLAttributes<HTMLSpanElement & HTMLAnchorElement> = {\n className: styles['menu-item'],\n lang: item.lang,\n ref: menuItemRef,\n // We are using the roving tabindex technique to manage the focus state of the dropdown.\n // The current element will always have tabindex=0 which means that it can be tabbed to,\n // while all other items have tabindex=-1 so we can focus them when necessary.\n tabIndex: highlighted ? 0 : -1,\n ...(isCheckbox ? getMenuItemCheckboxProps({ disabled, checked: item.checked }) : getMenuItemProps({ disabled })),\n ...(isDisabledWithReason ? targetProps : {}),\n };\n\n const menuItem = isLinkItem(item) ? (\n <a\n {...menuItemProps}\n href={!disabled ? item.href : undefined}\n target={getItemTarget(item)}\n rel={item.external ? 'noopener noreferrer' : undefined}\n >\n <MenuItemContent item={item} disabled={disabled} />\n </a>\n ) : (\n <span {...menuItemProps}>\n <MenuItemContent item={item} disabled={disabled} />\n </span>\n );\n\n const { position } = useDropdownContext();\n const tooltipPosition = position === 'bottom-left' || position === 'top-left' ? 'left' : 'right';\n return isDisabledWithReason ? (\n <Tooltip content={item.disabledReason} position={tooltipPosition} className={styles['item-tooltip-wrapper']}>\n {menuItem}\n {descriptionEl}\n </Tooltip>\n ) : (\n menuItem\n );\n}\n\nconst MenuItemContent = ({\n item,\n disabled,\n}: {\n item: InternalItemProps | InternalCheckboxItemProps;\n disabled: boolean;\n}) => {\n const hasIcon = !!(item.iconName || item.iconUrl || item.iconSvg);\n const hasExternal = isLinkItem(item) && item.external;\n const isCheckbox = isCheckboxItem(item);\n return (\n <>\n {isCheckbox && <MenuItemCheckmark checked={item.checked} disabled={disabled} />}\n {hasIcon && (\n <MenuItemIcon\n name={item.iconName}\n url={item.iconUrl}\n svg={item.iconSvg}\n alt={item.iconAlt}\n badge={item.badge}\n />\n )}\n {item.text}\n {hasExternal && <ExternalIcon disabled={disabled} ariaLabel={item.externalIconAriaLabel} />}\n </>\n );\n};\n\nconst MenuItemIcon = (props: InternalIconProps) => (\n <span className={styles.icon}>\n <InternalIcon {...props} />\n </span>\n);\n\n// Toggle has aria-hidden set because it's just used as a graphical element,\n// a11y attributes for the checkmark are communicated through the role and aria-checked state\n// of the menu element item.\nconst MenuItemCheckmark = ({ disabled, checked }: { disabled: boolean; checked: boolean }) => {\n const checkmark = <InternalIcon variant={disabled ? 'disabled' : 'normal'} name=\"check\" />;\n return (\n <span\n className={clsx(styles.icon, styles.checkmark, { [styles.disabled]: disabled })}\n aria-hidden=\"true\"\n style={{ visibility: checked ? 'visible' : 'hidden' }}\n >\n {checkmark}\n </span>\n );\n};\n\nconst ExternalIcon = ({ disabled, ariaLabel }: { disabled: boolean; ariaLabel?: string }) => {\n const icon = <InternalIcon variant={disabled ? 'disabled' : 'normal'} name=\"external\" />;\n return (\n <span className={styles['external-icon']} role={ariaLabel ? 'img' : undefined} aria-label={ariaLabel}>\n {icon}\n </span>\n );\n};\n\nexport default ItemElement;\n"]}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"item-element": "awsui_item-
|
|
5
|
-
"disabled": "
|
|
6
|
-
"show-divider": "awsui_show-
|
|
7
|
-
"highlighted": "
|
|
8
|
-
"is-focused": "awsui_is-
|
|
9
|
-
"menu-item": "awsui_menu-
|
|
10
|
-
"has-category-header": "awsui_has-category-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
4
|
+
"item-element": "awsui_item-element_93a1u_16wwy_97",
|
|
5
|
+
"disabled": "awsui_disabled_93a1u_16wwy_109",
|
|
6
|
+
"show-divider": "awsui_show-divider_93a1u_16wwy_116",
|
|
7
|
+
"highlighted": "awsui_highlighted_93a1u_16wwy_119",
|
|
8
|
+
"is-focused": "awsui_is-focused_93a1u_16wwy_134",
|
|
9
|
+
"menu-item": "awsui_menu-item_93a1u_16wwy_139",
|
|
10
|
+
"has-category-header": "awsui_has-category-header_93a1u_16wwy_154",
|
|
11
|
+
"item-tooltip-wrapper": "awsui_item-tooltip-wrapper_93a1u_16wwy_154",
|
|
12
|
+
"has-checkmark": "awsui_has-checkmark_93a1u_16wwy_154",
|
|
13
|
+
"icon": "awsui_icon_93a1u_16wwy_158",
|
|
14
|
+
"checkmark": "awsui_checkmark_93a1u_16wwy_162",
|
|
15
|
+
"external-icon": "awsui_external-icon_93a1u_16wwy_169"
|
|
15
16
|
};
|
|
16
17
|
|
|
@@ -94,7 +94,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
94
94
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
95
95
|
SPDX-License-Identifier: Apache-2.0
|
|
96
96
|
*/
|
|
97
|
-
.awsui_item-
|
|
97
|
+
.awsui_item-element_93a1u_16wwy_97:not(#\9) {
|
|
98
98
|
position: relative;
|
|
99
99
|
z-index: 1;
|
|
100
100
|
border-block: var(--border-item-width-yel47s, 2px) solid transparent;
|
|
@@ -106,17 +106,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
106
106
|
margin-block-start: calc(-1 * var(--border-field-width-09w7vk, 2px));
|
|
107
107
|
cursor: pointer;
|
|
108
108
|
}
|
|
109
|
-
.awsui_item-
|
|
109
|
+
.awsui_item-element_93a1u_16wwy_97.awsui_disabled_93a1u_16wwy_109:not(#\9) {
|
|
110
110
|
cursor: default;
|
|
111
111
|
color: var(--color-text-dropdown-item-disabled-6oq3n6, #9ba7b6);
|
|
112
112
|
}
|
|
113
|
-
.awsui_item-
|
|
113
|
+
.awsui_item-element_93a1u_16wwy_97:not(#\9):first-child {
|
|
114
114
|
margin-block-start: 0;
|
|
115
115
|
}
|
|
116
|
-
.awsui_item-
|
|
116
|
+
.awsui_item-element_93a1u_16wwy_97.awsui_show-divider_93a1u_16wwy_116:not(#\9) {
|
|
117
117
|
border-block-end: var(--border-item-width-yel47s, 2px) solid var(--color-border-dropdown-group-yakmix, #b6bec9);
|
|
118
118
|
}
|
|
119
|
-
.awsui_item-
|
|
119
|
+
.awsui_item-element_93a1u_16wwy_97.awsui_highlighted_93a1u_16wwy_119:not(#\9) {
|
|
120
120
|
color: var(--color-text-dropdown-item-highlighted-a51hdb, #000716);
|
|
121
121
|
z-index: 2;
|
|
122
122
|
background-color: var(--color-background-dropdown-item-hover-swsulg, #f4f4f4);
|
|
@@ -126,17 +126,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
126
126
|
border-end-start-radius: var(--border-radius-item-05df9h, 8px);
|
|
127
127
|
border-end-end-radius: var(--border-radius-item-05df9h, 8px);
|
|
128
128
|
}
|
|
129
|
-
.awsui_item-
|
|
129
|
+
.awsui_item-element_93a1u_16wwy_97.awsui_highlighted_93a1u_16wwy_119.awsui_disabled_93a1u_16wwy_109:not(#\9) {
|
|
130
130
|
color: var(--color-text-dropdown-item-dimmed-f2joj8, #9ba7b6);
|
|
131
131
|
border-color: var(--color-border-dropdown-item-dimmed-hover-xdu0hf, #7d8998);
|
|
132
132
|
background-color: var(--color-background-dropdown-item-dimmed-dlm6wk, transparent);
|
|
133
133
|
}
|
|
134
|
-
.awsui_item-
|
|
134
|
+
.awsui_item-element_93a1u_16wwy_97.awsui_highlighted_93a1u_16wwy_119.awsui_is-focused_93a1u_16wwy_134:not(#\9) {
|
|
135
135
|
border-color: var(--color-border-dropdown-item-focused-5hbaf3, #414d5c);
|
|
136
136
|
box-shadow: inset 0 0 0 var(--border-control-focus-ring-shadow-spread-0ctpjf, 0px) var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
.awsui_menu-
|
|
139
|
+
.awsui_menu-item_93a1u_16wwy_139:not(#\9) {
|
|
140
140
|
min-inline-size: 0;
|
|
141
141
|
word-break: break-word;
|
|
142
142
|
display: flex;
|
|
@@ -148,24 +148,24 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
148
148
|
/* stylelint-disable selector-max-type */
|
|
149
149
|
/* stylelint-enable selector-max-type */
|
|
150
150
|
}
|
|
151
|
-
.awsui_menu-
|
|
151
|
+
.awsui_menu-item_93a1u_16wwy_139:not(#\9):focus {
|
|
152
152
|
outline: none;
|
|
153
153
|
}
|
|
154
|
-
.awsui_has-category-
|
|
154
|
+
.awsui_has-category-header_93a1u_16wwy_154 > .awsui_menu-item_93a1u_16wwy_139:not(#\9), .awsui_has-category-header_93a1u_16wwy_154 > .awsui_item-tooltip-wrapper_93a1u_16wwy_154 > .awsui_menu-item_93a1u_16wwy_139:not(#\9), .awsui_has-category-header_93a1u_16wwy_154:not(#\9):not(.awsui_has-checkmark_93a1u_16wwy_154) > span > .awsui_menu-item_93a1u_16wwy_139 {
|
|
155
155
|
padding-inline-start: calc(var(--space-xs-zb16t3, 8px) + var(--space-l-t419sm, 20px));
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
.
|
|
158
|
+
.awsui_icon_93a1u_16wwy_158:not(#\9) {
|
|
159
159
|
padding-inline-end: var(--space-xxs-p8yyaw, 4px);
|
|
160
160
|
flex-shrink: 0;
|
|
161
161
|
}
|
|
162
|
-
.
|
|
162
|
+
.awsui_icon_93a1u_16wwy_158.awsui_checkmark_93a1u_16wwy_162:not(#\9) {
|
|
163
163
|
color: var(--color-text-status-info-ahz8zp, #0972d3);
|
|
164
164
|
}
|
|
165
|
-
.
|
|
165
|
+
.awsui_icon_93a1u_16wwy_158.awsui_disabled_93a1u_16wwy_109:not(#\9) {
|
|
166
166
|
color: var(--color-text-interactive-disabled-z7a3t4, #9ba7b6);
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
.awsui_external-
|
|
169
|
+
.awsui_external-icon_93a1u_16wwy_169:not(#\9) {
|
|
170
170
|
margin-inline-start: var(--space-xxs-p8yyaw, 4px);
|
|
171
171
|
}
|
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"item-element": "awsui_item-
|
|
6
|
-
"disabled": "
|
|
7
|
-
"show-divider": "awsui_show-
|
|
8
|
-
"highlighted": "
|
|
9
|
-
"is-focused": "awsui_is-
|
|
10
|
-
"menu-item": "awsui_menu-
|
|
11
|
-
"has-category-header": "awsui_has-category-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
5
|
+
"item-element": "awsui_item-element_93a1u_16wwy_97",
|
|
6
|
+
"disabled": "awsui_disabled_93a1u_16wwy_109",
|
|
7
|
+
"show-divider": "awsui_show-divider_93a1u_16wwy_116",
|
|
8
|
+
"highlighted": "awsui_highlighted_93a1u_16wwy_119",
|
|
9
|
+
"is-focused": "awsui_is-focused_93a1u_16wwy_134",
|
|
10
|
+
"menu-item": "awsui_menu-item_93a1u_16wwy_139",
|
|
11
|
+
"has-category-header": "awsui_has-category-header_93a1u_16wwy_154",
|
|
12
|
+
"item-tooltip-wrapper": "awsui_item-tooltip-wrapper_93a1u_16wwy_154",
|
|
13
|
+
"has-checkmark": "awsui_has-checkmark_93a1u_16wwy_154",
|
|
14
|
+
"icon": "awsui_icon_93a1u_16wwy_158",
|
|
15
|
+
"checkmark": "awsui_checkmark_93a1u_16wwy_162",
|
|
16
|
+
"external-icon": "awsui_external-icon_93a1u_16wwy_169"
|
|
16
17
|
};
|
|
17
18
|
|
|
@@ -3,6 +3,7 @@ export interface TooltipProps {
|
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
content?: React.ReactNode;
|
|
5
5
|
position?: 'top' | 'right' | 'bottom' | 'left';
|
|
6
|
+
className?: string;
|
|
6
7
|
}
|
|
7
|
-
export default function Tooltip({ children, content, position }: TooltipProps): JSX.Element;
|
|
8
|
+
export default function Tooltip({ children, content, position, className }: TooltipProps): JSX.Element;
|
|
8
9
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/button-dropdown/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAStE,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/button-dropdown/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAStE,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAkB,EAAE,SAAS,EAAE,EAAE,YAAY,eAsCjG"}
|
|
@@ -8,12 +8,12 @@ import Portal from '../internal/components/portal';
|
|
|
8
8
|
import { usePortalModeClasses } from '../internal/hooks/use-portal-mode-classes';
|
|
9
9
|
import { useReducedMotion } from '@cloudscape-design/component-toolkit/internal';
|
|
10
10
|
const DEFAULT_OPEN_TIMEOUT_IN_MS = 120;
|
|
11
|
-
export default function Tooltip({ children, content, position = 'right' }) {
|
|
11
|
+
export default function Tooltip({ children, content, position = 'right', className }) {
|
|
12
12
|
const ref = useRef(null);
|
|
13
13
|
const isReducedMotion = useReducedMotion(ref);
|
|
14
14
|
const { open, triggerProps } = useTooltipOpen(isReducedMotion ? 0 : DEFAULT_OPEN_TIMEOUT_IN_MS);
|
|
15
15
|
const portalClasses = usePortalModeClasses(ref);
|
|
16
|
-
return (React.createElement("span", Object.assign({ ref: ref }, triggerProps),
|
|
16
|
+
return (React.createElement("span", Object.assign({ ref: ref }, triggerProps, { className: className }),
|
|
17
17
|
children,
|
|
18
18
|
open && (React.createElement(Portal, null,
|
|
19
19
|
React.createElement("span", { className: portalClasses },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/button-dropdown/tooltip.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAwB,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AACpD,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/button-dropdown/tooltip.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAwB,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AACpD,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,C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AAe;IACrC,MAAM,MAAM,GAAG,MAAM,EAAU,CAAC;IAChC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,MAAM,KAAK,GAAG,GAAG,EAAE;QACjB,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC7B,SAAS,CAAC,KAAK,CAAC,CAAC;IACnB,CAAC,CAAC;IACF,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACnC,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,MAAM,CAAC,OAAO,GAAG,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC,CAAC;IACF,MAAM,SAAS,GAAyB,CAAC,CAAC,EAAE;QAC1C,IAAI,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;YAC7B,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,CAAC,CAAC,eAAe,EAAE,CAAC;YACpB,KAAK,EAAE,CAAC;SACT;IACH,CAAC,CAAC;IAEF,MAAM,OAAO,GAAG,WAAW,CAAC;IAC5B,MAAM,MAAM,GAAG,KAAK,CAAC;IAErB,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,YAAY,EAAE;YACZ,MAAM;YACN,OAAO;YACP,SAAS;SACV;KACF,CAAC;AACJ,CAAC;AAED,MAAM,QAAQ,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,KAAK,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { KeyboardEventHandler, useRef, useState } from 'react';\n\nimport Arrow from '../popover/arrow';\nimport PopoverContainer from '../popover/container';\nimport PopoverBody from '../popover/body';\nimport Portal from '../internal/components/portal';\nimport { usePortalModeClasses } from '../internal/hooks/use-portal-mode-classes';\nimport { useReducedMotion } from '@cloudscape-design/component-toolkit/internal';\n\nexport interface TooltipProps {\n children?: React.ReactNode;\n content?: React.ReactNode;\n position?: 'top' | 'right' | 'bottom' | 'left';\n className?: string;\n}\n\nconst DEFAULT_OPEN_TIMEOUT_IN_MS = 120;\n\nexport default function Tooltip({ children, content, position = 'right', className }: TooltipProps) {\n const ref = useRef<HTMLSpanElement | null>(null);\n const isReducedMotion = useReducedMotion(ref);\n const { open, triggerProps } = useTooltipOpen(isReducedMotion ? 0 : DEFAULT_OPEN_TIMEOUT_IN_MS);\n const portalClasses = usePortalModeClasses(ref);\n\n return (\n <span ref={ref} {...triggerProps} className={className}>\n {children}\n {open && (\n <Portal>\n <span className={portalClasses}>\n <PopoverContainer\n size=\"small\"\n fixedWidth={false}\n position={position}\n trackRef={ref}\n arrow={position => <Arrow position={position} />}\n renderWithPortal={true}\n zIndex={7000}\n >\n <PopoverBody\n dismissButton={false}\n dismissAriaLabel={undefined}\n header={null}\n onDismiss={() => {}}\n overflowVisible=\"both\"\n >\n <span data-testid=\"button-dropdown-disabled-reason\" role=\"tooltip\">\n {content}\n </span>\n </PopoverBody>\n </PopoverContainer>\n </span>\n </Portal>\n )}\n </span>\n );\n}\n\nfunction useTooltipOpen(timeout: number) {\n const handle = useRef<number>();\n const [isOpen, setIsOpen] = useState(false);\n\n const close = () => {\n clearTimeout(handle.current);\n setIsOpen(false);\n };\n const open = () => setIsOpen(true);\n const openDelayed = () => {\n handle.current = setTimeout(open, timeout);\n };\n const onKeyDown: KeyboardEventHandler = e => {\n if (isOpen && isEscape(e.key)) {\n e.preventDefault();\n e.stopPropagation();\n close();\n }\n };\n\n const onFocus = openDelayed;\n const onBlur = close;\n\n return {\n open: isOpen,\n triggerProps: {\n onBlur,\n onFocus,\n onKeyDown,\n },\n };\n}\n\nconst isEscape = (key: string) => key === 'Escape' || key === 'Esc';\n"]}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"layout": "
|
|
5
|
-
"background": "
|
|
6
|
-
"is-overlap-disabled": "awsui_is-overlap-
|
|
7
|
-
"header-background": "awsui_header-
|
|
8
|
-
"notifications": "
|
|
9
|
-
"breadcrumbs": "
|
|
10
|
-
"default-padding": "awsui_default-
|
|
11
|
-
"header-wrapper": "awsui_header-
|
|
12
|
-
"with-divider": "awsui_with-
|
|
13
|
-
"content": "
|
|
14
|
-
"has-header": "awsui_has-
|
|
15
|
-
"is-visual-refresh": "awsui_is-visual-
|
|
16
|
-
"has-default-background": "awsui_has-default-
|
|
17
|
-
"has-notifications": "awsui_has-
|
|
4
|
+
"layout": "awsui_layout_5gtk3_1hkx1_97",
|
|
5
|
+
"background": "awsui_background_5gtk3_1hkx1_111",
|
|
6
|
+
"is-overlap-disabled": "awsui_is-overlap-disabled_5gtk3_1hkx1_116",
|
|
7
|
+
"header-background": "awsui_header-background_5gtk3_1hkx1_119",
|
|
8
|
+
"notifications": "awsui_notifications_5gtk3_1hkx1_123",
|
|
9
|
+
"breadcrumbs": "awsui_breadcrumbs_5gtk3_1hkx1_128",
|
|
10
|
+
"default-padding": "awsui_default-padding_5gtk3_1hkx1_133",
|
|
11
|
+
"header-wrapper": "awsui_header-wrapper_5gtk3_1hkx1_137",
|
|
12
|
+
"with-divider": "awsui_with-divider_5gtk3_1hkx1_142",
|
|
13
|
+
"content": "awsui_content_5gtk3_1hkx1_145",
|
|
14
|
+
"has-header": "awsui_has-header_5gtk3_1hkx1_149",
|
|
15
|
+
"is-visual-refresh": "awsui_is-visual-refresh_5gtk3_1hkx1_156",
|
|
16
|
+
"has-default-background": "awsui_has-default-background_5gtk3_1hkx1_156",
|
|
17
|
+
"has-notifications": "awsui_has-notifications_5gtk3_1hkx1_160"
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -94,72 +94,72 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
94
94
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
95
95
|
SPDX-License-Identifier: Apache-2.0
|
|
96
96
|
*/
|
|
97
|
-
.
|
|
98
|
-
--awsui-content-layout-default-horizontal-padding-
|
|
99
|
-
--awsui-content-layout-max-content-width-
|
|
100
|
-
--awsui-content-layout-main-gap-
|
|
97
|
+
.awsui_layout_5gtk3_1hkx1_97:not(#\9) {
|
|
98
|
+
--awsui-content-layout-default-horizontal-padding-g964ok: var(--space-layout-content-horizontal-7l52k3, 24px);
|
|
99
|
+
--awsui-content-layout-max-content-width-g964ok: 0px;
|
|
100
|
+
--awsui-content-layout-main-gap-g964ok: 0px;
|
|
101
101
|
display: grid;
|
|
102
|
-
grid-template-columns: 0 0 1fr minmax(0, var(--awsui-content-layout-max-content-width-
|
|
103
|
-
grid-template-rows: var(--awsui-content-layout-main-gap-
|
|
102
|
+
grid-template-columns: 0 0 1fr minmax(0, var(--awsui-content-layout-max-content-width-g964ok)) 1fr 0 0;
|
|
103
|
+
grid-template-rows: var(--awsui-content-layout-main-gap-g964ok) min-content min-content auto var(--space-dark-header-overlap-distance-lxpp0s, 36px) 1fr;
|
|
104
104
|
min-block-size: 100%;
|
|
105
105
|
}
|
|
106
106
|
@media (max-width: 688px) {
|
|
107
|
-
.
|
|
108
|
-
--awsui-content-layout-default-horizontal-padding-
|
|
107
|
+
.awsui_layout_5gtk3_1hkx1_97:not(#\9) {
|
|
108
|
+
--awsui-content-layout-default-horizontal-padding-g964ok: var(--space-l-t419sm, 20px);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
.
|
|
111
|
+
.awsui_layout_5gtk3_1hkx1_97 > .awsui_background_5gtk3_1hkx1_111:not(#\9) {
|
|
112
112
|
grid-column: 1/8;
|
|
113
113
|
grid-row: 1/6;
|
|
114
114
|
color: var(--color-text-body-default-at06ol, #000716);
|
|
115
115
|
}
|
|
116
|
-
.
|
|
116
|
+
.awsui_layout_5gtk3_1hkx1_97 > .awsui_background_5gtk3_1hkx1_111.awsui_is-overlap-disabled_5gtk3_1hkx1_116:not(#\9) {
|
|
117
117
|
grid-row: 1/5;
|
|
118
118
|
}
|
|
119
|
-
.
|
|
119
|
+
.awsui_layout_5gtk3_1hkx1_97 > .awsui_background_5gtk3_1hkx1_111 > .awsui_header-background_5gtk3_1hkx1_119:not(#\9) {
|
|
120
120
|
inline-size: 100%;
|
|
121
121
|
block-size: 100%;
|
|
122
122
|
}
|
|
123
|
-
.
|
|
123
|
+
.awsui_layout_5gtk3_1hkx1_97 > .awsui_notifications_5gtk3_1hkx1_123:not(#\9) {
|
|
124
124
|
grid-column: 4;
|
|
125
125
|
grid-row: 2;
|
|
126
126
|
padding-block-end: var(--space-xs-zb16t3, 8px);
|
|
127
127
|
}
|
|
128
|
-
.
|
|
128
|
+
.awsui_layout_5gtk3_1hkx1_97 > .awsui_breadcrumbs_5gtk3_1hkx1_128:not(#\9) {
|
|
129
129
|
grid-column: 4;
|
|
130
130
|
grid-row: 3;
|
|
131
131
|
padding-block-end: var(--space-xs-zb16t3, 8px);
|
|
132
132
|
}
|
|
133
|
-
.
|
|
134
|
-
--awsui-content-layout-main-gap-
|
|
135
|
-
grid-template-columns: var(--awsui-toggles-left-width-
|
|
133
|
+
.awsui_layout_5gtk3_1hkx1_97.awsui_default-padding_5gtk3_1hkx1_133:not(#\9) {
|
|
134
|
+
--awsui-content-layout-main-gap-g964ok: var(--space-scaled-m-mo5yse, 16px);
|
|
135
|
+
grid-template-columns: var(--awsui-toggles-left-width-g964ok, 0) var(--awsui-content-layout-default-horizontal-padding-g964ok, 0) 1fr minmax(0, var(--awsui-content-layout-max-content-width-g964ok)) 1fr var(--awsui-content-layout-default-horizontal-padding-g964ok, 0) var(--awsui-toggles-right-width-g964ok, 0);
|
|
136
136
|
}
|
|
137
|
-
.
|
|
137
|
+
.awsui_layout_5gtk3_1hkx1_97 > .awsui_header-wrapper_5gtk3_1hkx1_137:not(#\9) {
|
|
138
138
|
grid-column: 4;
|
|
139
139
|
grid-row: 4;
|
|
140
140
|
padding-block-end: var(--space-content-header-padding-bottom-y2enua, 16px);
|
|
141
141
|
}
|
|
142
|
-
.
|
|
142
|
+
.awsui_layout_5gtk3_1hkx1_97 > .awsui_header-wrapper_5gtk3_1hkx1_137.awsui_with-divider_5gtk3_1hkx1_142:not(#\9) {
|
|
143
143
|
border-block-end: 1px solid var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
144
144
|
}
|
|
145
|
-
.
|
|
145
|
+
.awsui_layout_5gtk3_1hkx1_97 > .awsui_content_5gtk3_1hkx1_145:not(#\9) {
|
|
146
146
|
grid-column: 4;
|
|
147
147
|
grid-row: 5/8;
|
|
148
148
|
}
|
|
149
|
-
.
|
|
150
|
-
grid-template-rows: var(--awsui-content-layout-main-gap-
|
|
149
|
+
.awsui_layout_5gtk3_1hkx1_97:not(#\9):not(.awsui_has-header_5gtk3_1hkx1_149) {
|
|
150
|
+
grid-template-rows: var(--awsui-content-layout-main-gap-g964ok) min-content min-content 0 calc(var(--space-dark-header-overlap-distance-lxpp0s, 36px)) 1fr;
|
|
151
151
|
}
|
|
152
|
-
.
|
|
153
|
-
grid-template-rows: var(--awsui-content-layout-main-gap-
|
|
152
|
+
.awsui_layout_5gtk3_1hkx1_97.awsui_is-overlap-disabled_5gtk3_1hkx1_116:not(#\9) {
|
|
153
|
+
grid-template-rows: var(--awsui-content-layout-main-gap-g964ok) min-content min-content auto 0 1fr;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
.
|
|
156
|
+
.awsui_layout_5gtk3_1hkx1_97.awsui_is-visual-refresh_5gtk3_1hkx1_156 > .awsui_background_5gtk3_1hkx1_111.awsui_has-default-background_5gtk3_1hkx1_156:not(#\9) {
|
|
157
157
|
background-color: var(--color-background-layout-main-nx09lr, #ffffff);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
.
|
|
161
|
-
--awsui-content-layout-main-gap-
|
|
160
|
+
.awsui_layout_5gtk3_1hkx1_97:not(#\9):not(.awsui_is-visual-refresh_5gtk3_1hkx1_156).awsui_has-notifications_5gtk3_1hkx1_160 {
|
|
161
|
+
--awsui-content-layout-main-gap-g964ok: 0px;
|
|
162
162
|
}
|
|
163
|
-
.
|
|
163
|
+
.awsui_layout_5gtk3_1hkx1_97:not(#\9):not(.awsui_is-visual-refresh_5gtk3_1hkx1_156) > .awsui_notifications_5gtk3_1hkx1_123 {
|
|
164
164
|
grid-column: 1/8;
|
|
165
165
|
}
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"layout": "
|
|
6
|
-
"background": "
|
|
7
|
-
"is-overlap-disabled": "awsui_is-overlap-
|
|
8
|
-
"header-background": "awsui_header-
|
|
9
|
-
"notifications": "
|
|
10
|
-
"breadcrumbs": "
|
|
11
|
-
"default-padding": "awsui_default-
|
|
12
|
-
"header-wrapper": "awsui_header-
|
|
13
|
-
"with-divider": "awsui_with-
|
|
14
|
-
"content": "
|
|
15
|
-
"has-header": "awsui_has-
|
|
16
|
-
"is-visual-refresh": "awsui_is-visual-
|
|
17
|
-
"has-default-background": "awsui_has-default-
|
|
18
|
-
"has-notifications": "awsui_has-
|
|
5
|
+
"layout": "awsui_layout_5gtk3_1hkx1_97",
|
|
6
|
+
"background": "awsui_background_5gtk3_1hkx1_111",
|
|
7
|
+
"is-overlap-disabled": "awsui_is-overlap-disabled_5gtk3_1hkx1_116",
|
|
8
|
+
"header-background": "awsui_header-background_5gtk3_1hkx1_119",
|
|
9
|
+
"notifications": "awsui_notifications_5gtk3_1hkx1_123",
|
|
10
|
+
"breadcrumbs": "awsui_breadcrumbs_5gtk3_1hkx1_128",
|
|
11
|
+
"default-padding": "awsui_default-padding_5gtk3_1hkx1_133",
|
|
12
|
+
"header-wrapper": "awsui_header-wrapper_5gtk3_1hkx1_137",
|
|
13
|
+
"with-divider": "awsui_with-divider_5gtk3_1hkx1_142",
|
|
14
|
+
"content": "awsui_content_5gtk3_1hkx1_145",
|
|
15
|
+
"has-header": "awsui_has-header_5gtk3_1hkx1_149",
|
|
16
|
+
"is-visual-refresh": "awsui_is-visual-refresh_5gtk3_1hkx1_156",
|
|
17
|
+
"has-default-background": "awsui_has-default-background_5gtk3_1hkx1_156",
|
|
18
|
+
"has-notifications": "awsui_has-notifications_5gtk3_1hkx1_160"
|
|
19
19
|
};
|
|
20
20
|
|
package/flashbar/styles.css.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"flash-with-motion": "awsui_flash-with-
|
|
5
|
-
"enter": "
|
|
6
|
-
"flash-body": "awsui_flash-
|
|
7
|
-
"flash-message": "awsui_flash-
|
|
8
|
-
"flash-header": "awsui_flash-
|
|
9
|
-
"flash-content": "awsui_flash-
|
|
10
|
-
"action-button-wrapper": "awsui_action-button-
|
|
11
|
-
"dismiss-button-wrapper": "awsui_dismiss-button-
|
|
12
|
-
"flash-icon": "awsui_flash-
|
|
13
|
-
"entering": "
|
|
14
|
-
"entered": "
|
|
15
|
-
"exiting": "
|
|
16
|
-
"stack": "
|
|
17
|
-
"animation-running": "awsui_animation-
|
|
18
|
-
"item": "
|
|
19
|
-
"flash-list-item": "awsui_flash-list-
|
|
20
|
-
"notification-bar": "awsui_notification-
|
|
21
|
-
"collapsed": "
|
|
22
|
-
"animation-ready": "awsui_animation-
|
|
23
|
-
"expanded-only": "awsui_expanded-
|
|
24
|
-
"expanded": "
|
|
25
|
-
"flash": "
|
|
26
|
-
"collapsible": "
|
|
27
|
-
"short-list": "awsui_short-
|
|
28
|
-
"visual-refresh": "awsui_visual-
|
|
29
|
-
"status": "
|
|
30
|
-
"header": "
|
|
31
|
-
"item-count": "awsui_item-
|
|
32
|
-
"button": "
|
|
33
|
-
"type-count": "awsui_type-
|
|
34
|
-
"count-number": "awsui_count-
|
|
35
|
-
"icon": "
|
|
36
|
-
"floating": "
|
|
37
|
-
"flashbar": "
|
|
38
|
-
"flash-refresh": "awsui_flash-
|
|
39
|
-
"flash-list": "awsui_flash-
|
|
40
|
-
"flash-focus-container": "awsui_flash-focus-
|
|
41
|
-
"flash-text": "awsui_flash-
|
|
42
|
-
"dismiss-button": "awsui_dismiss-
|
|
43
|
-
"breakpoint-default": "awsui_breakpoint-
|
|
44
|
-
"action-button": "awsui_action-
|
|
45
|
-
"action-slot": "awsui_action-
|
|
46
|
-
"flash-type-success": "awsui_flash-type-
|
|
47
|
-
"flash-type-error": "awsui_flash-type-
|
|
48
|
-
"flash-type-info": "awsui_flash-type-
|
|
49
|
-
"flash-type-in-progress": "awsui_flash-type-in-
|
|
50
|
-
"flash-type-warning": "awsui_flash-type-
|
|
4
|
+
"flash-with-motion": "awsui_flash-with-motion_1q84n_1mepa_97",
|
|
5
|
+
"enter": "awsui_enter_1q84n_1mepa_97",
|
|
6
|
+
"flash-body": "awsui_flash-body_1q84n_1mepa_111",
|
|
7
|
+
"flash-message": "awsui_flash-message_1q84n_1mepa_111",
|
|
8
|
+
"flash-header": "awsui_flash-header_1q84n_1mepa_111",
|
|
9
|
+
"flash-content": "awsui_flash-content_1q84n_1mepa_112",
|
|
10
|
+
"action-button-wrapper": "awsui_action-button-wrapper_1q84n_1mepa_113",
|
|
11
|
+
"dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_1mepa_114",
|
|
12
|
+
"flash-icon": "awsui_flash-icon_1q84n_1mepa_137",
|
|
13
|
+
"entering": "awsui_entering_1q84n_1mepa_150",
|
|
14
|
+
"entered": "awsui_entered_1q84n_1mepa_171",
|
|
15
|
+
"exiting": "awsui_exiting_1q84n_1mepa_276",
|
|
16
|
+
"stack": "awsui_stack_1q84n_1mepa_298",
|
|
17
|
+
"animation-running": "awsui_animation-running_1q84n_1mepa_298",
|
|
18
|
+
"item": "awsui_item_1q84n_1mepa_298",
|
|
19
|
+
"flash-list-item": "awsui_flash-list-item_1q84n_1mepa_299",
|
|
20
|
+
"notification-bar": "awsui_notification-bar_1q84n_1mepa_300",
|
|
21
|
+
"collapsed": "awsui_collapsed_1q84n_1mepa_320",
|
|
22
|
+
"animation-ready": "awsui_animation-ready_1q84n_1mepa_320",
|
|
23
|
+
"expanded-only": "awsui_expanded-only_1q84n_1mepa_320",
|
|
24
|
+
"expanded": "awsui_expanded_1q84n_1mepa_320",
|
|
25
|
+
"flash": "awsui_flash_1q84n_1mepa_97",
|
|
26
|
+
"collapsible": "awsui_collapsible_1q84n_1mepa_384",
|
|
27
|
+
"short-list": "awsui_short-list_1q84n_1mepa_390",
|
|
28
|
+
"visual-refresh": "awsui_visual-refresh_1q84n_1mepa_390",
|
|
29
|
+
"status": "awsui_status_1q84n_1mepa_597",
|
|
30
|
+
"header": "awsui_header_1q84n_1mepa_597",
|
|
31
|
+
"item-count": "awsui_item-count_1q84n_1mepa_598",
|
|
32
|
+
"button": "awsui_button_1q84n_1mepa_599",
|
|
33
|
+
"type-count": "awsui_type-count_1q84n_1mepa_632",
|
|
34
|
+
"count-number": "awsui_count-number_1q84n_1mepa_632",
|
|
35
|
+
"icon": "awsui_icon_1q84n_1mepa_666",
|
|
36
|
+
"floating": "awsui_floating_1q84n_1mepa_707",
|
|
37
|
+
"flashbar": "awsui_flashbar_1q84n_1mepa_715",
|
|
38
|
+
"flash-refresh": "awsui_flash-refresh_1q84n_1mepa_790",
|
|
39
|
+
"flash-list": "awsui_flash-list_1q84n_1mepa_299",
|
|
40
|
+
"flash-focus-container": "awsui_flash-focus-container_1q84n_1mepa_811",
|
|
41
|
+
"flash-text": "awsui_flash-text_1q84n_1mepa_841",
|
|
42
|
+
"dismiss-button": "awsui_dismiss-button_1q84n_1mepa_114",
|
|
43
|
+
"breakpoint-default": "awsui_breakpoint-default_1q84n_1mepa_883",
|
|
44
|
+
"action-button": "awsui_action-button_1q84n_1mepa_113",
|
|
45
|
+
"action-slot": "awsui_action-slot_1q84n_1mepa_893",
|
|
46
|
+
"flash-type-success": "awsui_flash-type-success_1q84n_1mepa_897",
|
|
47
|
+
"flash-type-error": "awsui_flash-type-error_1q84n_1mepa_901",
|
|
48
|
+
"flash-type-info": "awsui_flash-type-info_1q84n_1mepa_905",
|
|
49
|
+
"flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_1mepa_906",
|
|
50
|
+
"flash-type-warning": "awsui_flash-type-warning_1q84n_1mepa_910"
|
|
51
51
|
};
|
|
52
52
|
|