@cloudscape-design/components-themeable 3.0.1315 → 3.0.1317
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/link/styles.scss +16 -0
- package/lib/internal/scss/side-navigation/styles.scss +221 -48
- package/lib/internal/scss/side-navigation/test-classes/styles.scss +4 -0
- package/lib/internal/scss/top-navigation/test-classes/styles.scss +8 -0
- package/lib/internal/template/file-token-group/file-token.d.ts.map +1 -1
- package/lib/internal/template/file-token-group/file-token.js +33 -27
- package/lib/internal/template/file-token-group/file-token.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +35 -17
- package/lib/internal/template/internal/breakpoints.d.ts +1 -1
- package/lib/internal/template/internal/breakpoints.d.ts.map +1 -1
- package/lib/internal/template/internal/breakpoints.js +25 -3
- package/lib/internal/template/internal/breakpoints.js.map +1 -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 +6 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +6 -0
- package/lib/internal/template/internal/generated/theming/index.cjs +153 -21
- package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +45 -0
- package/lib/internal/template/internal/generated/theming/index.d.ts +45 -0
- package/lib/internal/template/internal/generated/theming/index.js +153 -21
- package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.d.ts.map +1 -1
- package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.js +2 -1
- package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.js.map +1 -1
- package/lib/internal/template/link/internal.js +1 -1
- package/lib/internal/template/link/internal.js.map +1 -1
- package/lib/internal/template/link/styles.css.js +21 -21
- package/lib/internal/template/link/styles.scoped.css +118 -72
- package/lib/internal/template/link/styles.selectors.js +21 -21
- package/lib/internal/template/prompt-input/index.d.ts.map +1 -1
- package/lib/internal/template/prompt-input/index.js +3 -1
- package/lib/internal/template/prompt-input/index.js.map +1 -1
- package/lib/internal/template/side-navigation/implementation.d.ts +1 -1
- package/lib/internal/template/side-navigation/implementation.d.ts.map +1 -1
- package/lib/internal/template/side-navigation/implementation.js +4 -4
- package/lib/internal/template/side-navigation/implementation.js.map +1 -1
- package/lib/internal/template/side-navigation/index.d.ts +1 -1
- package/lib/internal/template/side-navigation/index.d.ts.map +1 -1
- package/lib/internal/template/side-navigation/index.js +5 -3
- package/lib/internal/template/side-navigation/index.js.map +1 -1
- package/lib/internal/template/side-navigation/interfaces.d.ts +20 -1
- package/lib/internal/template/side-navigation/interfaces.d.ts.map +1 -1
- package/lib/internal/template/side-navigation/interfaces.js.map +1 -1
- package/lib/internal/template/side-navigation/parts.d.ts +3 -2
- package/lib/internal/template/side-navigation/parts.d.ts.map +1 -1
- package/lib/internal/template/side-navigation/parts.js +147 -37
- package/lib/internal/template/side-navigation/parts.js.map +1 -1
- package/lib/internal/template/side-navigation/styles.css.js +46 -30
- package/lib/internal/template/side-navigation/styles.scoped.css +223 -74
- package/lib/internal/template/side-navigation/styles.selectors.js +46 -30
- package/lib/internal/template/side-navigation/test-classes/styles.css.js +2 -1
- package/lib/internal/template/side-navigation/test-classes/styles.scoped.css +5 -1
- package/lib/internal/template/side-navigation/test-classes/styles.selectors.js +2 -1
- package/lib/internal/template/test-utils/dom/top-navigation/index.d.ts +2 -1
- package/lib/internal/template/test-utils/dom/top-navigation/index.js +4 -0
- package/lib/internal/template/test-utils/dom/top-navigation/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/top-navigation/index.d.ts +1 -0
- package/lib/internal/template/test-utils/selectors/top-navigation/index.js +4 -0
- package/lib/internal/template/test-utils/selectors/top-navigation/index.js.map +1 -1
- package/lib/internal/template/token/internal.d.ts +18 -2
- package/lib/internal/template/token/internal.d.ts.map +1 -1
- package/lib/internal/template/token/internal.js +20 -9
- package/lib/internal/template/token/internal.js.map +1 -1
- package/lib/internal/template/top-navigation/index.d.ts +1 -1
- package/lib/internal/template/top-navigation/index.d.ts.map +1 -1
- package/lib/internal/template/top-navigation/index.js +2 -2
- package/lib/internal/template/top-navigation/index.js.map +1 -1
- package/lib/internal/template/top-navigation/interfaces.d.ts +14 -1
- package/lib/internal/template/top-navigation/interfaces.d.ts.map +1 -1
- package/lib/internal/template/top-navigation/interfaces.js.map +1 -1
- package/lib/internal/template/top-navigation/internal.d.ts +2 -2
- package/lib/internal/template/top-navigation/internal.d.ts.map +1 -1
- package/lib/internal/template/top-navigation/internal.js +42 -21
- package/lib/internal/template/top-navigation/internal.js.map +1 -1
- package/lib/internal/template/top-navigation/test-classes/styles.css.js +6 -0
- package/lib/internal/template/top-navigation/test-classes/styles.scoped.css +7 -0
- package/lib/internal/template/top-navigation/test-classes/styles.selectors.js +7 -0
- package/lib/internal/template/top-navigation/use-top-navigation.d.ts +5 -0
- package/lib/internal/template/top-navigation/use-top-navigation.d.ts.map +1 -1
- package/lib/internal/template/top-navigation/use-top-navigation.js +12 -5
- package/lib/internal/template/top-navigation/use-top-navigation.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/link/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAE3F,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EA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AAqC,EAAE,KAAiC;IAC7F,OAAO,SAAS,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;AAC1D,CAAC;AAED,eAAe,YAAY,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useContext, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useUniqueId } from '@cloudscape-design/component-toolkit/internal';\nimport { useSingleTabStopNavigation } from '@cloudscape-design/component-toolkit/internal';\n\nimport { useInternalI18n } from '../i18n/context';\nimport InternalIcon from '../icon/internal';\nimport { FunnelMetrics } from '../internal/analytics';\nimport { useFunnel, useFunnelStep, useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport {\n DATA_ATTR_FUNNEL_VALUE,\n getFunnelValueSelector,\n getSubStepAllSelector,\n getTextFromSelector,\n} from '../internal/analytics/selectors';\nimport { getBaseProps } from '../internal/base-component';\nimport { InfoLinkLabelContext } from '../internal/context/info-link-label-context';\nimport { LinkDefaultVariantContext } from '../internal/context/link-default-variant-context';\nimport { useTokenInlineContext } from '../internal/context/token-inline-context';\nimport { fireCancelableEvent, fireNonCancelableEvent, isPlainLeftClick } from '../internal/events';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { KeyCode } from '../internal/keycode';\nimport { checkSafeUrl } from '../internal/utils/check-safe-url';\nimport WithNativeAttributes from '../internal/utils/with-native-attributes';\nimport { LinkProps } from './interfaces';\nimport { getLinkStyles } from './style';\n\nimport styles from './styles.css.js';\n\ntype InternalLinkProps = InternalBaseComponentProps &\n Omit<LinkProps, 'variant'> & {\n variant?: LinkProps['variant'] | 'top-navigation' | 'link' | 'recovery';\n };\n\nconst InternalLink = React.forwardRef(\n (\n {\n variant: providedVariant,\n fontSize = 'body-m',\n color = 'normal',\n external = false,\n target,\n href,\n rel,\n ariaLabel,\n externalIconAriaLabel,\n onFollow,\n onClick,\n children,\n nativeAttributes,\n __internalRootRef,\n style,\n ...props\n }: InternalLinkProps,\n ref: React.Ref<LinkProps.Ref>\n ) => {\n checkSafeUrl('Link', href);\n const isButton = !href;\n const { defaultVariant } = useContext(LinkDefaultVariantContext);\n const variant = providedVariant || defaultVariant;\n const specialStyles = ['top-navigation', 'link', 'recovery'];\n const hasSpecialStyle = specialStyles.indexOf(variant) > -1;\n\n const i18n = useInternalI18n('link');\n const baseProps = getBaseProps(props);\n const anchorTarget = target ?? (external ? '_blank' : undefined);\n const anchorRel = rel ?? (anchorTarget === '_blank' ? 'noopener noreferrer' : undefined);\n const uniqueId = useUniqueId('link');\n const linkId = useUniqueId('link-self');\n const infoId = useUniqueId('link-info');\n\n const infoLinkLabelFromContext = useContext(InfoLinkLabelContext);\n\n const { funnelIdentifier, funnelInteractionId } = useFunnel();\n const { stepIdentifier, stepNumber, stepNameSelector } = useFunnelStep();\n const { subStepIdentifier, subStepSelector, subStepNameSelector } = useFunnelSubStep();\n\n const fireFunnelEvent = (funnelInteractionId: string) => {\n if (variant === 'info') {\n const stepName = getTextFromSelector(stepNameSelector);\n const subStepName = getTextFromSelector(subStepNameSelector);\n\n FunnelMetrics.helpPanelInteracted({\n funnelIdentifier,\n funnelInteractionId,\n stepIdentifier,\n stepNumber,\n stepName,\n subStepIdentifier,\n stepNameSelector,\n subStepSelector,\n subStepName,\n subStepNameSelector,\n elementSelector: getFunnelValueSelector(uniqueId),\n subStepAllSelector: getSubStepAllSelector(),\n });\n } else if (external) {\n const stepName = getTextFromSelector(stepNameSelector);\n const subStepName = getTextFromSelector(subStepNameSelector);\n\n FunnelMetrics.externalLinkInteracted({\n funnelIdentifier,\n funnelInteractionId,\n stepIdentifier,\n stepNumber,\n stepName,\n stepNameSelector,\n subStepIdentifier,\n subStepSelector,\n subStepName,\n subStepNameSelector,\n elementSelector: getFunnelValueSelector(uniqueId),\n subStepAllSelector: getSubStepAllSelector(),\n });\n }\n };\n\n const fireFollowEvent = (event: React.SyntheticEvent) => {\n if (funnelInteractionId) {\n fireFunnelEvent(funnelInteractionId);\n }\n\n fireCancelableEvent(onFollow, { href, external, target: anchorTarget }, event);\n };\n\n const fireClickEvent = (event: React.MouseEvent | React.KeyboardEvent) => {\n const { altKey, ctrlKey, metaKey, shiftKey } = event;\n // eslint-disable-next-line no-restricted-syntax -- MouseEvent vs KeyboardEvent discrimination\n const button = 'button' in event ? event.button : 0;\n // make onClick non-cancelable to prevent it from being used to block full page reload\n // for navigation use `onFollow` event instead\n fireNonCancelableEvent(onClick, { altKey, button, ctrlKey, metaKey, shiftKey });\n };\n\n const handleLinkClick = (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n fireFollowEvent(event);\n }\n fireClickEvent(event);\n };\n\n const handleButtonClick = (event: React.MouseEvent) => {\n fireFollowEvent(event);\n fireClickEvent(event);\n };\n\n const handleButtonKeyDown = (event: React.KeyboardEvent) => {\n if (event.keyCode === KeyCode.space || event.keyCode === KeyCode.enter) {\n event.preventDefault();\n fireFollowEvent(event);\n fireClickEvent(event);\n }\n };\n\n const linkRef = useRef<HTMLElement>(null);\n const isVisualRefresh = useVisualRefresh();\n const { isInlineToken } = useTokenInlineContext();\n useForwardFocus(ref, linkRef);\n\n // Visual refresh should only add styles to buttons that don't already have unique styles (e.g. primary/secondary variants)\n const applyButtonStyles = isButton && isVisualRefresh && !hasSpecialStyle;\n\n const sharedProps = {\n id: linkId,\n ...baseProps,\n ref: useMergeRefs(linkRef, __internalRootRef),\n className: clsx(\n styles.link,\n baseProps.className,\n applyButtonStyles ? styles.button : null,\n styles[getVariantStyle(variant)],\n styles[getFontSizeStyle(variant, fontSize)],\n styles[getColorStyle(variant, color)],\n isInlineToken && styles['in-inline-token']\n ),\n style: getLinkStyles(style),\n 'aria-label': ariaLabel,\n 'aria-labelledby': undefined as string | undefined,\n [DATA_ATTR_FUNNEL_VALUE]: uniqueId,\n };\n\n if (variant === 'info' && infoLinkLabelFromContext && !ariaLabel) {\n sharedProps['aria-labelledby'] = `${sharedProps.id} ${infoId} ${infoLinkLabelFromContext}`;\n }\n\n const renderedExternalIconAriaLabel = i18n('externalIconAriaLabel', externalIconAriaLabel);\n const content = (\n <>\n <span>{children}</span>\n {external && (\n <span className={styles['icon-wrapper']}>\n \n <span\n className={styles.icon}\n aria-label={renderedExternalIconAriaLabel}\n role={renderedExternalIconAriaLabel ? 'img' : undefined}\n >\n <InternalIcon name=\"external\" size=\"inherit\" />\n </span>\n </span>\n )}\n {variant === 'info' && (\n <span hidden={true} id={infoId}>\n :\n </span>\n )}\n </>\n );\n\n const { tabIndex } = useSingleTabStopNavigation(linkRef, { tabIndex: isButton ? 0 : undefined });\n\n if (isButton) {\n return (\n <WithNativeAttributes\n {...sharedProps}\n tag=\"a\"\n componentName=\"Link\"\n nativeAttributes={nativeAttributes}\n role=\"button\"\n tabIndex={tabIndex}\n onKeyDown={handleButtonKeyDown}\n onClick={handleButtonClick}\n >\n {content}\n </WithNativeAttributes>\n );\n }\n\n return (\n <WithNativeAttributes\n {...sharedProps}\n tag=\"a\"\n componentName=\"Link\"\n nativeAttributes={nativeAttributes}\n tabIndex={tabIndex}\n target={anchorTarget}\n rel={anchorRel}\n href={href}\n onClick={handleLinkClick}\n >\n {content}\n </WithNativeAttributes>\n );\n }\n);\n\nfunction getVariantStyle(variant: Exclude<InternalLinkProps['variant'], undefined>) {\n return `variant-${variant.replace(/^awsui-/, '')}`;\n}\n\nfunction getFontSizeStyle(variant: InternalLinkProps['variant'], fontSize: InternalLinkProps['fontSize']) {\n switch (variant) {\n case 'info':\n return 'font-size-body-s';\n case 'awsui-value-large':\n return 'font-size-display-l';\n default:\n return `font-size-${fontSize}`;\n }\n}\n\nfunction getColorStyle(variant: InternalLinkProps['variant'], color: InternalLinkProps['color']) {\n return `color-${variant === 'info' ? 'normal' : color}`;\n}\n\nexport default InternalLink;\n"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ACpB,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,eAAe,IAEvB,OAAO,CACa,CACxB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,eAAe,CAAC,OAAyD;IAChF,OAAO,WAAW,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAC;AACrD,CAAC;AAED,SAAS,gBAAgB,CAAC,OAAqC,EAAE,QAAuC;IACtG,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,MAAM;YACT,OAAO,kBAAkB,CAAC;QAC5B,KAAK,mBAAmB;YACtB,OAAO,qBAAqB,CAAC;QAC/B;YACE,OAAO,aAAa,QAAQ,EAAE,CAAC;IACnC,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,OAAqC,EAAE,KAAiC;IAC7F,OAAO,SAAS,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;AAC1D,CAAC;AAED,eAAe,YAAY,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useContext, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useUniqueId } from '@cloudscape-design/component-toolkit/internal';\nimport { useSingleTabStopNavigation } from '@cloudscape-design/component-toolkit/internal';\n\nimport { useInternalI18n } from '../i18n/context';\nimport InternalIcon from '../icon/internal';\nimport { FunnelMetrics } from '../internal/analytics';\nimport { useFunnel, useFunnelStep, useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport {\n DATA_ATTR_FUNNEL_VALUE,\n getFunnelValueSelector,\n getSubStepAllSelector,\n getTextFromSelector,\n} from '../internal/analytics/selectors';\nimport { getBaseProps } from '../internal/base-component';\nimport { InfoLinkLabelContext } from '../internal/context/info-link-label-context';\nimport { LinkDefaultVariantContext } from '../internal/context/link-default-variant-context';\nimport { useTokenInlineContext } from '../internal/context/token-inline-context';\nimport { fireCancelableEvent, fireNonCancelableEvent, isPlainLeftClick } from '../internal/events';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { KeyCode } from '../internal/keycode';\nimport { checkSafeUrl } from '../internal/utils/check-safe-url';\nimport WithNativeAttributes from '../internal/utils/with-native-attributes';\nimport { LinkProps } from './interfaces';\nimport { getLinkStyles } from './style';\n\nimport styles from './styles.css.js';\n\ntype InternalLinkProps = InternalBaseComponentProps &\n Omit<LinkProps, 'variant'> & {\n variant?: LinkProps['variant'] | 'top-navigation' | 'link' | 'recovery';\n };\n\nconst InternalLink = React.forwardRef(\n (\n {\n variant: providedVariant,\n fontSize = 'body-m',\n color = 'normal',\n external = false,\n target,\n href,\n rel,\n ariaLabel,\n externalIconAriaLabel,\n onFollow,\n onClick,\n children,\n nativeAttributes,\n __internalRootRef,\n style,\n ...props\n }: InternalLinkProps,\n ref: React.Ref<LinkProps.Ref>\n ) => {\n checkSafeUrl('Link', href);\n const isButton = !href;\n const { defaultVariant } = useContext(LinkDefaultVariantContext);\n const variant = providedVariant || defaultVariant;\n const specialStyles = ['top-navigation', 'link', 'recovery', 'info'];\n const hasSpecialStyle = specialStyles.indexOf(variant) > -1;\n\n const i18n = useInternalI18n('link');\n const baseProps = getBaseProps(props);\n const anchorTarget = target ?? (external ? '_blank' : undefined);\n const anchorRel = rel ?? (anchorTarget === '_blank' ? 'noopener noreferrer' : undefined);\n const uniqueId = useUniqueId('link');\n const linkId = useUniqueId('link-self');\n const infoId = useUniqueId('link-info');\n\n const infoLinkLabelFromContext = useContext(InfoLinkLabelContext);\n\n const { funnelIdentifier, funnelInteractionId } = useFunnel();\n const { stepIdentifier, stepNumber, stepNameSelector } = useFunnelStep();\n const { subStepIdentifier, subStepSelector, subStepNameSelector } = useFunnelSubStep();\n\n const fireFunnelEvent = (funnelInteractionId: string) => {\n if (variant === 'info') {\n const stepName = getTextFromSelector(stepNameSelector);\n const subStepName = getTextFromSelector(subStepNameSelector);\n\n FunnelMetrics.helpPanelInteracted({\n funnelIdentifier,\n funnelInteractionId,\n stepIdentifier,\n stepNumber,\n stepName,\n subStepIdentifier,\n stepNameSelector,\n subStepSelector,\n subStepName,\n subStepNameSelector,\n elementSelector: getFunnelValueSelector(uniqueId),\n subStepAllSelector: getSubStepAllSelector(),\n });\n } else if (external) {\n const stepName = getTextFromSelector(stepNameSelector);\n const subStepName = getTextFromSelector(subStepNameSelector);\n\n FunnelMetrics.externalLinkInteracted({\n funnelIdentifier,\n funnelInteractionId,\n stepIdentifier,\n stepNumber,\n stepName,\n stepNameSelector,\n subStepIdentifier,\n subStepSelector,\n subStepName,\n subStepNameSelector,\n elementSelector: getFunnelValueSelector(uniqueId),\n subStepAllSelector: getSubStepAllSelector(),\n });\n }\n };\n\n const fireFollowEvent = (event: React.SyntheticEvent) => {\n if (funnelInteractionId) {\n fireFunnelEvent(funnelInteractionId);\n }\n\n fireCancelableEvent(onFollow, { href, external, target: anchorTarget }, event);\n };\n\n const fireClickEvent = (event: React.MouseEvent | React.KeyboardEvent) => {\n const { altKey, ctrlKey, metaKey, shiftKey } = event;\n // eslint-disable-next-line no-restricted-syntax -- MouseEvent vs KeyboardEvent discrimination\n const button = 'button' in event ? event.button : 0;\n // make onClick non-cancelable to prevent it from being used to block full page reload\n // for navigation use `onFollow` event instead\n fireNonCancelableEvent(onClick, { altKey, button, ctrlKey, metaKey, shiftKey });\n };\n\n const handleLinkClick = (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n fireFollowEvent(event);\n }\n fireClickEvent(event);\n };\n\n const handleButtonClick = (event: React.MouseEvent) => {\n fireFollowEvent(event);\n fireClickEvent(event);\n };\n\n const handleButtonKeyDown = (event: React.KeyboardEvent) => {\n if (event.keyCode === KeyCode.space || event.keyCode === KeyCode.enter) {\n event.preventDefault();\n fireFollowEvent(event);\n fireClickEvent(event);\n }\n };\n\n const linkRef = useRef<HTMLElement>(null);\n const isVisualRefresh = useVisualRefresh();\n const { isInlineToken } = useTokenInlineContext();\n useForwardFocus(ref, linkRef);\n\n // Visual refresh should only add styles to buttons that don't already have unique styles (e.g. primary/secondary variants)\n const applyButtonStyles = isButton && isVisualRefresh && !hasSpecialStyle;\n\n const sharedProps = {\n id: linkId,\n ...baseProps,\n ref: useMergeRefs(linkRef, __internalRootRef),\n className: clsx(\n styles.link,\n baseProps.className,\n applyButtonStyles ? styles.button : null,\n styles[getVariantStyle(variant)],\n styles[getFontSizeStyle(variant, fontSize)],\n styles[getColorStyle(variant, color)],\n isInlineToken && styles['in-inline-token']\n ),\n style: getLinkStyles(style),\n 'aria-label': ariaLabel,\n 'aria-labelledby': undefined as string | undefined,\n [DATA_ATTR_FUNNEL_VALUE]: uniqueId,\n };\n\n if (variant === 'info' && infoLinkLabelFromContext && !ariaLabel) {\n sharedProps['aria-labelledby'] = `${sharedProps.id} ${infoId} ${infoLinkLabelFromContext}`;\n }\n\n const renderedExternalIconAriaLabel = i18n('externalIconAriaLabel', externalIconAriaLabel);\n const content = (\n <>\n <span>{children}</span>\n {external && (\n <span className={styles['icon-wrapper']}>\n \n <span\n className={styles.icon}\n aria-label={renderedExternalIconAriaLabel}\n role={renderedExternalIconAriaLabel ? 'img' : undefined}\n >\n <InternalIcon name=\"external\" size=\"inherit\" />\n </span>\n </span>\n )}\n {variant === 'info' && (\n <span hidden={true} id={infoId}>\n :\n </span>\n )}\n </>\n );\n\n const { tabIndex } = useSingleTabStopNavigation(linkRef, { tabIndex: isButton ? 0 : undefined });\n\n if (isButton) {\n return (\n <WithNativeAttributes\n {...sharedProps}\n tag=\"a\"\n componentName=\"Link\"\n nativeAttributes={nativeAttributes}\n role=\"button\"\n tabIndex={tabIndex}\n onKeyDown={handleButtonKeyDown}\n onClick={handleButtonClick}\n >\n {content}\n </WithNativeAttributes>\n );\n }\n\n return (\n <WithNativeAttributes\n {...sharedProps}\n tag=\"a\"\n componentName=\"Link\"\n nativeAttributes={nativeAttributes}\n tabIndex={tabIndex}\n target={anchorTarget}\n rel={anchorRel}\n href={href}\n onClick={handleLinkClick}\n >\n {content}\n </WithNativeAttributes>\n );\n }\n);\n\nfunction getVariantStyle(variant: Exclude<InternalLinkProps['variant'], undefined>) {\n return `variant-${variant.replace(/^awsui-/, '')}`;\n}\n\nfunction getFontSizeStyle(variant: InternalLinkProps['variant'], fontSize: InternalLinkProps['fontSize']) {\n switch (variant) {\n case 'info':\n return 'font-size-body-s';\n case 'awsui-value-large':\n return 'font-size-display-l';\n default:\n return `font-size-${fontSize}`;\n }\n}\n\nfunction getColorStyle(variant: InternalLinkProps['variant'], color: InternalLinkProps['color']) {\n return `color-${variant === 'info' ? 'normal' : color}`;\n}\n\nexport default InternalLink;\n"]}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"link": "
|
|
5
|
-
"variant-recovery": "awsui_variant-
|
|
6
|
-
"variant-secondary": "awsui_variant-
|
|
7
|
-
"variant-primary": "awsui_variant-
|
|
8
|
-
"variant-info": "awsui_variant-
|
|
9
|
-
"variant-value-large": "awsui_variant-value-
|
|
10
|
-
"variant-top-navigation": "awsui_variant-top-
|
|
11
|
-
"button": "
|
|
12
|
-
"color-inverted": "awsui_color-
|
|
13
|
-
"font-size-body-s": "awsui_font-size-body-
|
|
14
|
-
"font-size-body-m": "awsui_font-size-body-
|
|
15
|
-
"font-size-heading-xs": "awsui_font-size-heading-
|
|
16
|
-
"font-size-heading-s": "awsui_font-size-heading-
|
|
17
|
-
"font-size-heading-m": "awsui_font-size-heading-
|
|
18
|
-
"font-size-heading-l": "awsui_font-size-heading-
|
|
19
|
-
"font-size-heading-xl": "awsui_font-size-heading-
|
|
20
|
-
"font-size-display-l": "awsui_font-size-display-
|
|
21
|
-
"font-size-inherit": "awsui_font-size-
|
|
22
|
-
"in-inline-token": "awsui_in-inline-
|
|
23
|
-
"icon-wrapper": "awsui_icon-
|
|
24
|
-
"icon": "
|
|
4
|
+
"link": "awsui_link_4c84z_1kln3_145",
|
|
5
|
+
"variant-recovery": "awsui_variant-recovery_4c84z_1kln3_213",
|
|
6
|
+
"variant-secondary": "awsui_variant-secondary_4c84z_1kln3_246",
|
|
7
|
+
"variant-primary": "awsui_variant-primary_4c84z_1kln3_281",
|
|
8
|
+
"variant-info": "awsui_variant-info_4c84z_1kln3_314",
|
|
9
|
+
"variant-value-large": "awsui_variant-value-large_4c84z_1kln3_349",
|
|
10
|
+
"variant-top-navigation": "awsui_variant-top-navigation_4c84z_1kln3_381",
|
|
11
|
+
"button": "awsui_button_4c84z_1kln3_416",
|
|
12
|
+
"color-inverted": "awsui_color-inverted_4c84z_1kln3_488",
|
|
13
|
+
"font-size-body-s": "awsui_font-size-body-s_4c84z_1kln3_516",
|
|
14
|
+
"font-size-body-m": "awsui_font-size-body-m_4c84z_1kln3_524",
|
|
15
|
+
"font-size-heading-xs": "awsui_font-size-heading-xs_4c84z_1kln3_531",
|
|
16
|
+
"font-size-heading-s": "awsui_font-size-heading-s_4c84z_1kln3_539",
|
|
17
|
+
"font-size-heading-m": "awsui_font-size-heading-m_4c84z_1kln3_547",
|
|
18
|
+
"font-size-heading-l": "awsui_font-size-heading-l_4c84z_1kln3_555",
|
|
19
|
+
"font-size-heading-xl": "awsui_font-size-heading-xl_4c84z_1kln3_563",
|
|
20
|
+
"font-size-display-l": "awsui_font-size-display-l_4c84z_1kln3_571",
|
|
21
|
+
"font-size-inherit": "awsui_font-size-inherit_4c84z_1kln3_579",
|
|
22
|
+
"in-inline-token": "awsui_in-inline-token_4c84z_1kln3_587",
|
|
23
|
+
"icon-wrapper": "awsui_icon-wrapper_4c84z_1kln3_591",
|
|
24
|
+
"icon": "awsui_icon_4c84z_1kln3_591"
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
*/
|
|
143
143
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
144
144
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
145
|
-
.
|
|
145
|
+
.awsui_link_4c84z_1kln3_145:not(#\9) {
|
|
146
146
|
border-collapse: separate;
|
|
147
147
|
border-spacing: 0;
|
|
148
148
|
box-sizing: border-box;
|
|
@@ -189,30 +189,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
189
189
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
190
190
|
}
|
|
191
191
|
@media (prefers-reduced-motion: reduce) {
|
|
192
|
-
.
|
|
192
|
+
.awsui_link_4c84z_1kln3_145:not(#\9) {
|
|
193
193
|
animation: none;
|
|
194
194
|
transition: none;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
.awsui-motion-disabled .
|
|
197
|
+
.awsui-motion-disabled .awsui_link_4c84z_1kln3_145:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1kln3_145:not(#\9) {
|
|
198
198
|
animation: none;
|
|
199
199
|
transition: none;
|
|
200
200
|
}
|
|
201
|
-
.
|
|
201
|
+
.awsui_link_4c84z_1kln3_145:not(#\9):hover {
|
|
202
202
|
cursor: pointer;
|
|
203
203
|
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-secondary-hover-c3snug, #0a4a74));
|
|
204
204
|
}
|
|
205
|
-
.
|
|
205
|
+
.awsui_link_4c84z_1kln3_145:not(#\9):focus {
|
|
206
206
|
outline: none;
|
|
207
207
|
}
|
|
208
|
-
.
|
|
208
|
+
.awsui_link_4c84z_1kln3_145:not(#\9):active {
|
|
209
209
|
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-secondary-hover-c3snug, #0a4a74));
|
|
210
210
|
}
|
|
211
|
-
.
|
|
211
|
+
.awsui_link_4c84z_1kln3_145:not(#\9):active, .awsui_link_4c84z_1kln3_145:not(#\9):focus, .awsui_link_4c84z_1kln3_145:not(#\9):hover {
|
|
212
212
|
text-decoration-line: underline;
|
|
213
213
|
text-decoration-color: currentColor;
|
|
214
214
|
}
|
|
215
|
-
.
|
|
215
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-recovery_4c84z_1kln3_213:not(#\9) {
|
|
216
216
|
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-default-z7zuy8, #0073bb));
|
|
217
217
|
font-weight: var(--font-link-button-weight-bnpz8h, 400);
|
|
218
218
|
letter-spacing: var(--font-link-button-letter-spacing-yobz7z, normal);
|
|
@@ -224,30 +224,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
224
224
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
225
225
|
}
|
|
226
226
|
@media (prefers-reduced-motion: reduce) {
|
|
227
|
-
.
|
|
227
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-recovery_4c84z_1kln3_213:not(#\9) {
|
|
228
228
|
animation: none;
|
|
229
229
|
transition: none;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
.awsui-motion-disabled .
|
|
232
|
+
.awsui-motion-disabled .awsui_link_4c84z_1kln3_145.awsui_variant-recovery_4c84z_1kln3_213:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1kln3_145.awsui_variant-recovery_4c84z_1kln3_213:not(#\9) {
|
|
233
233
|
animation: none;
|
|
234
234
|
transition: none;
|
|
235
235
|
}
|
|
236
|
-
.
|
|
236
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-recovery_4c84z_1kln3_213:not(#\9):hover {
|
|
237
237
|
cursor: pointer;
|
|
238
238
|
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
239
239
|
}
|
|
240
|
-
.
|
|
240
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-recovery_4c84z_1kln3_213:not(#\9):focus {
|
|
241
241
|
outline: none;
|
|
242
242
|
}
|
|
243
|
-
.
|
|
243
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-recovery_4c84z_1kln3_213:not(#\9):active {
|
|
244
244
|
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
245
245
|
}
|
|
246
|
-
.
|
|
246
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-recovery_4c84z_1kln3_213:not(#\9):active, .awsui_link_4c84z_1kln3_145.awsui_variant-recovery_4c84z_1kln3_213:not(#\9):focus, .awsui_link_4c84z_1kln3_145.awsui_variant-recovery_4c84z_1kln3_213:not(#\9):hover {
|
|
247
247
|
text-decoration-line: underline;
|
|
248
248
|
text-decoration-color: var(--color-text-link-button-underline-hover-s0fj6r, currentColor);
|
|
249
249
|
}
|
|
250
|
-
.
|
|
250
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-secondary_4c84z_1kln3_246:not(#\9) {
|
|
251
251
|
-webkit-font-smoothing: inherit;
|
|
252
252
|
-moz-osx-font-smoothing: inherit;
|
|
253
253
|
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-secondary-default-6w6hsr, #0073bb));
|
|
@@ -261,30 +261,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
261
261
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
262
262
|
}
|
|
263
263
|
@media (prefers-reduced-motion: reduce) {
|
|
264
|
-
.
|
|
264
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-secondary_4c84z_1kln3_246:not(#\9) {
|
|
265
265
|
animation: none;
|
|
266
266
|
transition: none;
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
.awsui-motion-disabled .
|
|
269
|
+
.awsui-motion-disabled .awsui_link_4c84z_1kln3_145.awsui_variant-secondary_4c84z_1kln3_246:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1kln3_145.awsui_variant-secondary_4c84z_1kln3_246:not(#\9) {
|
|
270
270
|
animation: none;
|
|
271
271
|
transition: none;
|
|
272
272
|
}
|
|
273
|
-
.
|
|
273
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-secondary_4c84z_1kln3_246:not(#\9):hover {
|
|
274
274
|
cursor: pointer;
|
|
275
275
|
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-secondary-hover-c3snug, #0a4a74));
|
|
276
276
|
}
|
|
277
|
-
.
|
|
277
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-secondary_4c84z_1kln3_246:not(#\9):focus {
|
|
278
278
|
outline: none;
|
|
279
279
|
}
|
|
280
|
-
.
|
|
280
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-secondary_4c84z_1kln3_246:not(#\9):active {
|
|
281
281
|
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-secondary-hover-c3snug, #0a4a74));
|
|
282
282
|
}
|
|
283
|
-
.
|
|
283
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-secondary_4c84z_1kln3_246:not(#\9):active, .awsui_link_4c84z_1kln3_145.awsui_variant-secondary_4c84z_1kln3_246:not(#\9):focus, .awsui_link_4c84z_1kln3_145.awsui_variant-secondary_4c84z_1kln3_246:not(#\9):hover {
|
|
284
284
|
text-decoration-line: underline;
|
|
285
285
|
text-decoration-color: currentColor;
|
|
286
286
|
}
|
|
287
|
-
.
|
|
287
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-primary_4c84z_1kln3_281:not(#\9) {
|
|
288
288
|
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-default-z7zuy8, #0073bb));
|
|
289
289
|
font-weight: inherit;
|
|
290
290
|
letter-spacing: normal;
|
|
@@ -296,30 +296,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
296
296
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
297
297
|
}
|
|
298
298
|
@media (prefers-reduced-motion: reduce) {
|
|
299
|
-
.
|
|
299
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-primary_4c84z_1kln3_281:not(#\9) {
|
|
300
300
|
animation: none;
|
|
301
301
|
transition: none;
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
.awsui-motion-disabled .
|
|
304
|
+
.awsui-motion-disabled .awsui_link_4c84z_1kln3_145.awsui_variant-primary_4c84z_1kln3_281:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1kln3_145.awsui_variant-primary_4c84z_1kln3_281:not(#\9) {
|
|
305
305
|
animation: none;
|
|
306
306
|
transition: none;
|
|
307
307
|
}
|
|
308
|
-
.
|
|
308
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-primary_4c84z_1kln3_281:not(#\9):hover {
|
|
309
309
|
cursor: pointer;
|
|
310
310
|
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
311
311
|
}
|
|
312
|
-
.
|
|
312
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-primary_4c84z_1kln3_281:not(#\9):focus {
|
|
313
313
|
outline: none;
|
|
314
314
|
}
|
|
315
|
-
.
|
|
315
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-primary_4c84z_1kln3_281:not(#\9):active {
|
|
316
316
|
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
317
317
|
}
|
|
318
|
-
.
|
|
318
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-primary_4c84z_1kln3_281:not(#\9):active, .awsui_link_4c84z_1kln3_145.awsui_variant-primary_4c84z_1kln3_281:not(#\9):focus, .awsui_link_4c84z_1kln3_145.awsui_variant-primary_4c84z_1kln3_281:not(#\9):hover {
|
|
319
319
|
text-decoration-line: underline;
|
|
320
320
|
text-decoration-color: var(--color-text-link-decoration-hover-jnu2g9, currentColor);
|
|
321
321
|
}
|
|
322
|
-
.
|
|
322
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-info_4c84z_1kln3_314:not(#\9) {
|
|
323
323
|
-webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
|
|
324
324
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
|
|
325
325
|
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-info-default-09kbgu, #0073bb));
|
|
@@ -333,30 +333,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
333
333
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
334
334
|
}
|
|
335
335
|
@media (prefers-reduced-motion: reduce) {
|
|
336
|
-
.
|
|
336
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-info_4c84z_1kln3_314:not(#\9) {
|
|
337
337
|
animation: none;
|
|
338
338
|
transition: none;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
.awsui-motion-disabled .
|
|
341
|
+
.awsui-motion-disabled .awsui_link_4c84z_1kln3_145.awsui_variant-info_4c84z_1kln3_314:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1kln3_145.awsui_variant-info_4c84z_1kln3_314:not(#\9) {
|
|
342
342
|
animation: none;
|
|
343
343
|
transition: none;
|
|
344
344
|
}
|
|
345
|
-
.
|
|
345
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-info_4c84z_1kln3_314:not(#\9):hover {
|
|
346
346
|
cursor: pointer;
|
|
347
347
|
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-info-hover-tn4a8r, #0a4a74));
|
|
348
348
|
}
|
|
349
|
-
.
|
|
349
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-info_4c84z_1kln3_314:not(#\9):focus {
|
|
350
350
|
outline: none;
|
|
351
351
|
}
|
|
352
|
-
.
|
|
352
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-info_4c84z_1kln3_314:not(#\9):active {
|
|
353
353
|
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-info-hover-tn4a8r, #0a4a74));
|
|
354
354
|
}
|
|
355
|
-
.
|
|
355
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-info_4c84z_1kln3_314:not(#\9):active, .awsui_link_4c84z_1kln3_145.awsui_variant-info_4c84z_1kln3_314:not(#\9):focus, .awsui_link_4c84z_1kln3_145.awsui_variant-info_4c84z_1kln3_314:not(#\9):hover {
|
|
356
356
|
text-decoration-line: underline;
|
|
357
357
|
text-decoration-color: var(--color-text-link-button-underline-hover-s0fj6r, currentColor);
|
|
358
358
|
}
|
|
359
|
-
.
|
|
359
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-value-large_4c84z_1kln3_349:not(#\9) {
|
|
360
360
|
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-default-z7zuy8, #0073bb));
|
|
361
361
|
font-weight: var(--font-weight-display-l-pgslj8, 700);
|
|
362
362
|
text-decoration-line: underline;
|
|
@@ -367,30 +367,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
367
367
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
368
368
|
}
|
|
369
369
|
@media (prefers-reduced-motion: reduce) {
|
|
370
|
-
.
|
|
370
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-value-large_4c84z_1kln3_349:not(#\9) {
|
|
371
371
|
animation: none;
|
|
372
372
|
transition: none;
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
.awsui-motion-disabled .
|
|
375
|
+
.awsui-motion-disabled .awsui_link_4c84z_1kln3_145.awsui_variant-value-large_4c84z_1kln3_349:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1kln3_145.awsui_variant-value-large_4c84z_1kln3_349:not(#\9) {
|
|
376
376
|
animation: none;
|
|
377
377
|
transition: none;
|
|
378
378
|
}
|
|
379
|
-
.
|
|
379
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-value-large_4c84z_1kln3_349:not(#\9):hover {
|
|
380
380
|
cursor: pointer;
|
|
381
381
|
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
382
382
|
}
|
|
383
|
-
.
|
|
383
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-value-large_4c84z_1kln3_349:not(#\9):focus {
|
|
384
384
|
outline: none;
|
|
385
385
|
}
|
|
386
|
-
.
|
|
386
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-value-large_4c84z_1kln3_349:not(#\9):active {
|
|
387
387
|
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
388
388
|
}
|
|
389
|
-
.
|
|
389
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-value-large_4c84z_1kln3_349:not(#\9):active, .awsui_link_4c84z_1kln3_145.awsui_variant-value-large_4c84z_1kln3_349:not(#\9):focus, .awsui_link_4c84z_1kln3_145.awsui_variant-value-large_4c84z_1kln3_349:not(#\9):hover {
|
|
390
390
|
text-decoration-line: underline;
|
|
391
391
|
text-decoration-color: currentColor;
|
|
392
392
|
}
|
|
393
|
-
.
|
|
393
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-top-navigation_4c84z_1kln3_381:not(#\9) {
|
|
394
394
|
-webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
|
|
395
395
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
|
|
396
396
|
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-interactive-default-qwoe3g, #545b64));
|
|
@@ -404,30 +404,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
404
404
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
405
405
|
}
|
|
406
406
|
@media (prefers-reduced-motion: reduce) {
|
|
407
|
-
.
|
|
407
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-top-navigation_4c84z_1kln3_381:not(#\9) {
|
|
408
408
|
animation: none;
|
|
409
409
|
transition: none;
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
.awsui-motion-disabled .
|
|
412
|
+
.awsui-motion-disabled .awsui_link_4c84z_1kln3_145.awsui_variant-top-navigation_4c84z_1kln3_381:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1kln3_145.awsui_variant-top-navigation_4c84z_1kln3_381:not(#\9) {
|
|
413
413
|
animation: none;
|
|
414
414
|
transition: none;
|
|
415
415
|
}
|
|
416
|
-
.
|
|
416
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-top-navigation_4c84z_1kln3_381:not(#\9):hover {
|
|
417
417
|
cursor: pointer;
|
|
418
418
|
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-interactive-hover-bu4gls, #16191f));
|
|
419
419
|
}
|
|
420
|
-
.
|
|
420
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-top-navigation_4c84z_1kln3_381:not(#\9):focus {
|
|
421
421
|
outline: none;
|
|
422
422
|
}
|
|
423
|
-
.
|
|
423
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-top-navigation_4c84z_1kln3_381:not(#\9):active {
|
|
424
424
|
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-interactive-active-c44vdq, #16191f));
|
|
425
425
|
}
|
|
426
|
-
.
|
|
426
|
+
.awsui_link_4c84z_1kln3_145.awsui_variant-top-navigation_4c84z_1kln3_381:not(#\9):active, .awsui_link_4c84z_1kln3_145.awsui_variant-top-navigation_4c84z_1kln3_381:not(#\9):focus, .awsui_link_4c84z_1kln3_145.awsui_variant-top-navigation_4c84z_1kln3_381:not(#\9):hover {
|
|
427
427
|
text-decoration-line: underline;
|
|
428
428
|
text-decoration-color: transparent;
|
|
429
429
|
}
|
|
430
|
-
.
|
|
430
|
+
.awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9) {
|
|
431
431
|
-webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
|
|
432
432
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
|
|
433
433
|
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-button-normal-default-dm02c2, #545b64));
|
|
@@ -441,40 +441,86 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
441
441
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
442
442
|
}
|
|
443
443
|
@media (prefers-reduced-motion: reduce) {
|
|
444
|
-
.
|
|
444
|
+
.awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9) {
|
|
445
445
|
animation: none;
|
|
446
446
|
transition: none;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
.awsui-motion-disabled .
|
|
449
|
+
.awsui-motion-disabled .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9) {
|
|
450
450
|
animation: none;
|
|
451
451
|
transition: none;
|
|
452
452
|
}
|
|
453
|
-
.
|
|
453
|
+
.awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9):hover {
|
|
454
454
|
cursor: pointer;
|
|
455
455
|
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-button-normal-hover-ldeaqo, #16191f));
|
|
456
456
|
}
|
|
457
|
-
.
|
|
457
|
+
.awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9):focus {
|
|
458
458
|
outline: none;
|
|
459
459
|
}
|
|
460
|
-
.
|
|
460
|
+
.awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9):active {
|
|
461
461
|
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-button-normal-active-q28r86, #16191f));
|
|
462
462
|
}
|
|
463
|
-
.
|
|
463
|
+
.awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9):active, .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9):focus, .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9):hover {
|
|
464
464
|
text-decoration-line: underline;
|
|
465
465
|
text-decoration-color: transparent;
|
|
466
466
|
}
|
|
467
|
-
.
|
|
467
|
+
.awsui-one-theme .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9) {
|
|
468
|
+
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-default-z7zuy8, #0073bb));
|
|
469
|
+
font-weight: inherit;
|
|
470
|
+
letter-spacing: normal;
|
|
471
|
+
text-decoration-line: underline;
|
|
472
|
+
text-decoration-color: var(--color-text-link-decoration-default-15ta09, currentColor);
|
|
473
|
+
transition-property: color, -webkit-text-decoration;
|
|
474
|
+
transition-property: color, text-decoration;
|
|
475
|
+
transition-property: color, text-decoration, -webkit-text-decoration;
|
|
476
|
+
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
477
|
+
}
|
|
478
|
+
@media (prefers-reduced-motion: reduce) {
|
|
479
|
+
.awsui-one-theme .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9) {
|
|
480
|
+
animation: none;
|
|
481
|
+
transition: none;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
.awsui-motion-disabled .awsui-one-theme .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9), .awsui-mode-entering .awsui-one-theme .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9) {
|
|
485
|
+
animation: none;
|
|
486
|
+
transition: none;
|
|
487
|
+
}
|
|
488
|
+
.awsui-one-theme .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9):hover {
|
|
489
|
+
cursor: pointer;
|
|
490
|
+
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
491
|
+
}
|
|
492
|
+
.awsui-one-theme .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9):focus {
|
|
493
|
+
outline: none;
|
|
494
|
+
}
|
|
495
|
+
.awsui-one-theme .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9):active {
|
|
496
|
+
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
497
|
+
}
|
|
498
|
+
.awsui-one-theme .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9):active, .awsui-one-theme .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9):focus, .awsui-one-theme .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9):hover {
|
|
499
|
+
text-decoration-line: underline;
|
|
500
|
+
text-decoration-color: var(--color-text-link-decoration-hover-jnu2g9, currentColor);
|
|
501
|
+
}
|
|
502
|
+
.awsui-one-theme .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416:not(#\9) {
|
|
503
|
+
font-weight: inherit;
|
|
504
|
+
letter-spacing: normal;
|
|
505
|
+
}
|
|
506
|
+
.awsui-one-theme .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416.awsui_color-inverted_4c84z_1kln3_488:not(#\9) {
|
|
507
|
+
color: var(--color-text-notification-default-fmebm4, #fafafa);
|
|
508
|
+
text-decoration-color: currentColor;
|
|
509
|
+
}
|
|
510
|
+
.awsui-one-theme .awsui_link_4c84z_1kln3_145.awsui_button_4c84z_1kln3_416.awsui_color-inverted_4c84z_1kln3_488:not(#\9):hover {
|
|
511
|
+
color: var(--color-text-link-inverted-hover-7jk1d1, #fafafa);
|
|
512
|
+
}
|
|
513
|
+
.awsui_link_4c84z_1kln3_145.awsui_color-inverted_4c84z_1kln3_488:not(#\9) {
|
|
468
514
|
color: var(--color-text-notification-default-fmebm4, #fafafa);
|
|
469
515
|
}
|
|
470
|
-
.
|
|
516
|
+
.awsui_link_4c84z_1kln3_145.awsui_color-inverted_4c84z_1kln3_488:not(#\9):not(.awsui_button_4c84z_1kln3_416) {
|
|
471
517
|
text-decoration-line: underline;
|
|
472
518
|
text-decoration-color: currentColor;
|
|
473
519
|
}
|
|
474
|
-
.
|
|
520
|
+
.awsui_link_4c84z_1kln3_145.awsui_color-inverted_4c84z_1kln3_488:not(#\9):hover {
|
|
475
521
|
color: var(--color-text-link-inverted-hover-7jk1d1, #fafafa);
|
|
476
522
|
}
|
|
477
|
-
body[data-awsui-focus-visible=true] .
|
|
523
|
+
body[data-awsui-focus-visible=true] .awsui_link_4c84z_1kln3_145:not(#\9):focus {
|
|
478
524
|
outline: thin dotted;
|
|
479
525
|
outline: var(--border-link-focus-ring-outline-c5423y, 5px auto Highlight);
|
|
480
526
|
outline-offset: 2px;
|
|
@@ -485,7 +531,7 @@ body[data-awsui-focus-visible=true] .awsui_link_4c84z_1c1ni_145:not(#\9):focus {
|
|
|
485
531
|
border-end-end-radius: var(--awsui-style-focus-ring-border-radius-6b9ypa, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
|
|
486
532
|
box-shadow: var(--awsui-style-focus-ring-box-shadow-6b9ypa);
|
|
487
533
|
}
|
|
488
|
-
.
|
|
534
|
+
.awsui_link_4c84z_1kln3_145.awsui_font-size-body-s_4c84z_1kln3_516:not(#\9) {
|
|
489
535
|
font-size: var(--font-size-body-s-psgqn2, 12px);
|
|
490
536
|
line-height: var(--line-height-body-s-otgtsr, 16px);
|
|
491
537
|
letter-spacing: var(--letter-spacing-body-s-egrcsd, normal);
|
|
@@ -493,14 +539,14 @@ body[data-awsui-focus-visible=true] .awsui_link_4c84z_1c1ni_145:not(#\9):focus {
|
|
|
493
539
|
text-decoration-thickness: var(--font-decoration-thickness-link-4tl2vi, 1px);
|
|
494
540
|
text-decoration-style: var(--font-decoration-style-link-7y21z4, solid);
|
|
495
541
|
}
|
|
496
|
-
.
|
|
542
|
+
.awsui_link_4c84z_1kln3_145.awsui_font-size-body-m_4c84z_1kln3_524:not(#\9) {
|
|
497
543
|
font-size: var(--font-size-body-m-vv54cm, 14px);
|
|
498
544
|
line-height: var(--line-height-body-m-bedeoh, 22px);
|
|
499
545
|
text-underline-offset: 0.25em;
|
|
500
546
|
text-decoration-thickness: var(--font-decoration-thickness-link-4tl2vi, 1px);
|
|
501
547
|
text-decoration-style: var(--font-decoration-style-link-7y21z4, solid);
|
|
502
548
|
}
|
|
503
|
-
.
|
|
549
|
+
.awsui_link_4c84z_1kln3_145.awsui_font-size-heading-xs_4c84z_1kln3_531:not(#\9) {
|
|
504
550
|
font-size: var(--font-size-heading-xs-c20ika, 16px);
|
|
505
551
|
line-height: var(--line-height-heading-xs-fuzanp, 20px);
|
|
506
552
|
letter-spacing: var(--letter-spacing-heading-xs-tefhgo, normal);
|
|
@@ -508,7 +554,7 @@ body[data-awsui-focus-visible=true] .awsui_link_4c84z_1c1ni_145:not(#\9):focus {
|
|
|
508
554
|
text-decoration-thickness: var(--font-decoration-thickness-link-4tl2vi, 1px);
|
|
509
555
|
text-decoration-style: var(--font-decoration-style-link-7y21z4, solid);
|
|
510
556
|
}
|
|
511
|
-
.
|
|
557
|
+
.awsui_link_4c84z_1kln3_145.awsui_font-size-heading-s_4c84z_1kln3_539:not(#\9) {
|
|
512
558
|
font-size: var(--font-size-heading-s-yde02v, 16px);
|
|
513
559
|
line-height: var(--line-height-heading-s-j2axh8, 20px);
|
|
514
560
|
letter-spacing: var(--letter-spacing-heading-s-696sxe, normal);
|
|
@@ -516,7 +562,7 @@ body[data-awsui-focus-visible=true] .awsui_link_4c84z_1c1ni_145:not(#\9):focus {
|
|
|
516
562
|
text-decoration-thickness: var(--font-decoration-thickness-link-4tl2vi, 1px);
|
|
517
563
|
text-decoration-style: var(--font-decoration-style-link-7y21z4, solid);
|
|
518
564
|
}
|
|
519
|
-
.
|
|
565
|
+
.awsui_link_4c84z_1kln3_145.awsui_font-size-heading-m_4c84z_1kln3_547:not(#\9) {
|
|
520
566
|
font-size: var(--font-size-heading-m-56jjln, 18px);
|
|
521
567
|
line-height: var(--line-height-heading-m-irezqt, 22px);
|
|
522
568
|
letter-spacing: var(--letter-spacing-heading-m-93y02s, normal);
|
|
@@ -524,7 +570,7 @@ body[data-awsui-focus-visible=true] .awsui_link_4c84z_1c1ni_145:not(#\9):focus {
|
|
|
524
570
|
text-decoration-thickness: var(--font-decoration-thickness-link-4tl2vi, 1px);
|
|
525
571
|
text-decoration-style: var(--font-decoration-style-link-7y21z4, solid);
|
|
526
572
|
}
|
|
527
|
-
.
|
|
573
|
+
.awsui_link_4c84z_1kln3_145.awsui_font-size-heading-l_4c84z_1kln3_555:not(#\9) {
|
|
528
574
|
font-size: var(--font-size-heading-l-qgg2za, 18px);
|
|
529
575
|
line-height: var(--line-height-heading-l-vhgtnq, 22px);
|
|
530
576
|
letter-spacing: var(--letter-spacing-heading-l-spdx5v, normal);
|
|
@@ -532,7 +578,7 @@ body[data-awsui-focus-visible=true] .awsui_link_4c84z_1c1ni_145:not(#\9):focus {
|
|
|
532
578
|
text-decoration-thickness: var(--font-decoration-thickness-link-4tl2vi, 1px);
|
|
533
579
|
text-decoration-style: var(--font-decoration-style-link-7y21z4, solid);
|
|
534
580
|
}
|
|
535
|
-
.
|
|
581
|
+
.awsui_link_4c84z_1kln3_145.awsui_font-size-heading-xl_4c84z_1kln3_563:not(#\9) {
|
|
536
582
|
font-size: var(--font-size-heading-xl-w5di2k, 28px);
|
|
537
583
|
line-height: var(--line-height-heading-xl-vs1f23, 36px);
|
|
538
584
|
letter-spacing: var(--letter-spacing-heading-xl-33zwds, normal);
|
|
@@ -540,7 +586,7 @@ body[data-awsui-focus-visible=true] .awsui_link_4c84z_1c1ni_145:not(#\9):focus {
|
|
|
540
586
|
text-decoration-thickness: var(--font-decoration-thickness-link-4tl2vi, 1px);
|
|
541
587
|
text-decoration-style: var(--font-decoration-style-link-7y21z4, solid);
|
|
542
588
|
}
|
|
543
|
-
.
|
|
589
|
+
.awsui_link_4c84z_1kln3_145.awsui_font-size-display-l_4c84z_1kln3_571:not(#\9) {
|
|
544
590
|
font-size: var(--font-size-display-l-h1h1h9, 44px);
|
|
545
591
|
line-height: var(--line-height-display-l-3zghmm, 56px);
|
|
546
592
|
letter-spacing: var(--letter-spacing-display-l-dniym1, normal);
|
|
@@ -548,7 +594,7 @@ body[data-awsui-focus-visible=true] .awsui_link_4c84z_1c1ni_145:not(#\9):focus {
|
|
|
548
594
|
text-decoration-thickness: var(--font-decoration-thickness-link-display-l-9lyghn, 2px);
|
|
549
595
|
text-decoration-style: var(--font-decoration-style-link-7y21z4, solid);
|
|
550
596
|
}
|
|
551
|
-
.
|
|
597
|
+
.awsui_link_4c84z_1kln3_145.awsui_font-size-inherit_4c84z_1kln3_579:not(#\9) {
|
|
552
598
|
font-size: inherit;
|
|
553
599
|
line-height: inherit;
|
|
554
600
|
letter-spacing: inherit;
|
|
@@ -556,14 +602,14 @@ body[data-awsui-focus-visible=true] .awsui_link_4c84z_1c1ni_145:not(#\9):focus {
|
|
|
556
602
|
text-decoration-thickness: var(--font-decoration-thickness-link-4tl2vi, 1px);
|
|
557
603
|
text-decoration-style: var(--font-decoration-style-link-7y21z4, solid);
|
|
558
604
|
}
|
|
559
|
-
.
|
|
605
|
+
.awsui_link_4c84z_1kln3_145.awsui_in-inline-token_4c84z_1kln3_587:not(#\9) {
|
|
560
606
|
text-underline-offset: 0.15em;
|
|
561
607
|
}
|
|
562
608
|
|
|
563
|
-
.awsui_icon-
|
|
609
|
+
.awsui_icon-wrapper_4c84z_1kln3_591:not(#\9) {
|
|
564
610
|
white-space: nowrap;
|
|
565
611
|
}
|
|
566
612
|
|
|
567
|
-
.
|
|
613
|
+
.awsui_icon_4c84z_1kln3_591:not(#\9) {
|
|
568
614
|
display: inline-block;
|
|
569
615
|
}
|