@cloudscape-design/components 3.0.1048 → 3.0.1050
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alert/interfaces.d.ts +8 -8
- package/alert/interfaces.js.map +1 -1
- package/attribute-editor/styles.css.js +15 -15
- package/attribute-editor/styles.scoped.css +28 -28
- package/attribute-editor/styles.selectors.js +15 -15
- package/breadcrumb-group/item/styles.css.js +7 -7
- package/breadcrumb-group/item/styles.scoped.css +28 -28
- package/breadcrumb-group/item/styles.selectors.js +7 -7
- package/button-dropdown/category-elements/category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/category-element.js +6 -1
- package/button-dropdown/category-elements/category-element.js.map +1 -1
- package/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/expandable-category-element.js +2 -0
- package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.js +2 -0
- package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
- package/button-dropdown/category-elements/styles.css.js +17 -15
- package/button-dropdown/category-elements/styles.scoped.css +36 -25
- package/button-dropdown/category-elements/styles.selectors.js +17 -15
- package/button-dropdown/item-element/styles.css.js +16 -16
- package/button-dropdown/item-element/styles.scoped.css +27 -27
- package/button-dropdown/item-element/styles.selectors.js +16 -16
- package/date-input/index.d.ts +1 -1
- package/date-input/index.d.ts.map +1 -1
- package/date-input/index.js.map +1 -1
- package/date-input/interfaces.d.ts +29 -0
- package/date-input/interfaces.d.ts.map +1 -1
- package/date-input/interfaces.js.map +1 -1
- package/date-input/internal.d.ts +1 -4
- package/date-input/internal.d.ts.map +1 -1
- package/date-input/internal.js +39 -4
- package/date-input/internal.js.map +1 -1
- package/date-input/utils.d.ts +9 -1
- package/date-input/utils.d.ts.map +1 -1
- package/date-input/utils.js +32 -7
- package/date-input/utils.js.map +1 -1
- package/help-panel/styles.css.js +6 -6
- package/help-panel/styles.scoped.css +73 -73
- package/help-panel/styles.selectors.js +6 -6
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/components/masked-input/index.d.ts.map +1 -1
- package/internal/components/masked-input/index.js +2 -2
- package/internal/components/masked-input/index.js.map +1 -1
- package/internal/components/masked-input/interfaces.d.ts +6 -1
- package/internal/components/masked-input/interfaces.d.ts.map +1 -1
- package/internal/components/masked-input/interfaces.js.map +1 -1
- package/internal/components/token-list/styles.css.js +10 -10
- package/internal/components/token-list/styles.scoped.css +25 -25
- package/internal/components/token-list/styles.selectors.js +10 -10
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/manifest.json +1 -1
- package/internal/utils/date-time/format-date-iso.d.ts.map +1 -1
- package/internal/utils/date-time/format-date-iso.js.map +1 -1
- package/internal/utils/date-time/interfaces.d.ts +16 -0
- package/internal/utils/date-time/interfaces.d.ts.map +1 -0
- package/internal/utils/date-time/interfaces.js +4 -0
- package/internal/utils/date-time/interfaces.js.map +1 -0
- package/link/index.d.ts.map +1 -1
- package/link/index.js +11 -27
- package/link/interfaces.d.ts +23 -0
- package/link/interfaces.d.ts.map +1 -1
- package/link/interfaces.js.map +1 -1
- package/link/internal-do-not-use-core.js +34 -0
- package/link/internal-do-not-use-core.js.map +1 -0
- package/link/internal.d.ts.map +1 -1
- package/link/internal.js +3 -2
- package/link/internal.js.map +1 -1
- package/link/style.d.ts +2 -0
- package/link/style.d.ts.map +1 -0
- package/link/style.js +21 -0
- package/link/style.js.map +1 -0
- package/link/styles.css.js +20 -20
- package/link/styles.scoped.css +103 -102
- package/link/styles.selectors.js +20 -20
- package/package.json +1 -1
- package/tag-editor/styles.css.js +3 -3
- package/tag-editor/styles.scoped.css +13 -13
- package/tag-editor/styles.selectors.js +3 -3
- package/text-content/styles.css.js +1 -1
- package/text-content/styles.scoped.css +66 -66
- package/text-content/styles.selectors.js +1 -1
- package/link/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mobile-expandable-category-element.js","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/mobile-expandable-category-element.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,oBAAoB,MAAM,6CAA6C,CAAC;AAG/E,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAO,qBAAqB,MAAM,oDAAoD,CAAC;AACvF,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,+BAA+B,GAAG,CAAC,EACvC,IAAI,EACJ,cAAc,EACd,aAAa,EACb,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd,aAAa,EACb,QAAQ,EACR,OAAO,EACP,QAAQ,GACM,EAAE,EAAE;IAClB,MAAM,WAAW,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;IACxC,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,qBAAqB,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAkB,IAAI,CAAC,CAAC;IAEvD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,UAAU,CAAC,OAAO,IAAI,WAAW,IAAI,CAAC,QAAQ,EAAE;YAClD,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;SAC5B;IACH,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;IAE5B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,EAAE,IAAI,EACvB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,GAClB,CACC,CACN,CACqB,CACzB,CAAC;KACH;IAED,OAAO,CACL,4BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,WAAW,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,UAAU,EAAE;YAChF,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,QAAQ;YAC3B,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,QAAQ;YAC3B,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,WAAW,IAAI,QAAQ;YAC7C,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,IAAI;SAC1B,CAAC,EACF,IAAI,EAAC,cAAc,EACnB,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,OAAO,EACrB,YAAY,EAAE,OAAO,iBACR,IAAI,CAAC,EAAE,IAEnB,OAAO,CACL,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,+BAA+B,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect } from 'react';\nimport clsx from 'clsx';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalIcon from '../../icon/internal';\nimport useHiddenDescription from '../../internal/hooks/use-hidden-description';\nimport { GeneratedAnalyticsMetadataButtonDropdownExpand } from '../analytics-metadata/interfaces.js';\nimport { CategoryProps } from '../interfaces';\nimport ItemsList from '../items-list';\nimport MobileExpandableGroup from '../mobile-expandable-group/mobile-expandable-group';\nimport Tooltip from '../tooltip.js';\nimport { getMenuItemProps } from '../utils/menu-item.js';\n\nimport styles from './styles.css.js';\n\nconst MobileExpandableCategoryElement = ({\n item,\n onItemActivate,\n onGroupToggle,\n targetItem,\n isHighlighted,\n isKeyboardHighlight,\n isExpanded,\n lastInDropdown,\n highlightItem,\n disabled,\n variant,\n position,\n}: CategoryProps) => {\n const highlighted = isHighlighted(item);\n const expanded = isExpanded(item);\n const isKeyboardHighlighted = isKeyboardHighlight(item);\n const triggerRef = React.useRef<HTMLSpanElement>(null);\n\n useEffect(() => {\n if (triggerRef.current && highlighted && !expanded) {\n triggerRef.current.focus();\n }\n }, [expanded, highlighted]);\n\n const onClick = (e: React.MouseEvent) => {\n if (!disabled) {\n e.preventDefault();\n onGroupToggle(item, e);\n }\n };\n\n const onHover = () => {\n highlightItem(item);\n };\n\n const isDisabledWithReason = !!item.disabledReason && item.disabled;\n const { targetProps, descriptionEl } = useHiddenDescription(item.disabledReason);\n const trigger = item.text && (\n <span\n className={clsx(styles.header, styles['expandable-header'], styles[`variant-${variant}`], {\n [styles.highlighted]: highlighted,\n [styles['rolled-down']]: expanded,\n [styles.disabled]: disabled,\n [styles['is-focused']]: isKeyboardHighlighted,\n })}\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 ref={triggerRef}\n {...getMenuItemProps({ parent: true, disabled, expanded })}\n {...(isDisabledWithReason ? targetProps : {})}\n {...getAnalyticsMetadataAttribute(\n disabled\n ? {}\n : ({\n action: 'expand',\n detail: {\n position: position || '0',\n label: { root: 'self' },\n id: item.id || '',\n expanded: `${!expanded}`,\n },\n } as GeneratedAnalyticsMetadataButtonDropdownExpand)\n )}\n >\n {item.text}\n <span\n className={clsx(styles['expand-icon'], {\n [styles['expand-icon-up']]: expanded,\n })}\n >\n <InternalIcon name=\"caret-down-filled\" />\n </span>\n </span>\n );\n\n let content: React.ReactNode;\n\n if (isDisabledWithReason) {\n content = (\n <>\n {descriptionEl}\n <Tooltip content={item.disabledReason}>{trigger}</Tooltip>\n </>\n );\n } else if (disabled) {\n content = trigger;\n } else {\n content = (\n <MobileExpandableGroup open={expanded} trigger={trigger}>\n {item.items && expanded && (\n <ul role=\"menu\" aria-label={item.text} className={styles['items-list-container']}>\n <ItemsList\n items={item.items}\n onItemActivate={onItemActivate}\n onGroupToggle={onGroupToggle}\n targetItem={targetItem}\n isHighlighted={isHighlighted}\n isKeyboardHighlight={isKeyboardHighlight}\n isExpanded={isExpanded}\n lastInDropdown={lastInDropdown}\n highlightItem={highlightItem}\n hasCategoryHeader={true}\n variant={variant}\n position={position}\n />\n </ul>\n )}\n </MobileExpandableGroup>\n );\n }\n\n return (\n <li\n className={clsx(styles.category, styles[`variant-${variant}`], styles.expandable, {\n [styles.expanded]: expanded,\n [styles.disabled]: disabled,\n [styles.highlighted]: highlighted || expanded,\n [styles.expandable]: true,\n })}\n role=\"presentation\"\n onClick={onClick}\n onMouseEnter={onHover}\n onTouchStart={onHover}\n data-testid={item.id}\n >\n {content}\n </li>\n );\n};\n\nexport default MobileExpandableCategoryElement;\n"]}
|
|
1
|
+
{"version":3,"file":"mobile-expandable-category-element.js","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/mobile-expandable-category-element.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,oBAAoB,MAAM,6CAA6C,CAAC;AAG/E,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAO,qBAAqB,MAAM,oDAAoD,CAAC;AACvF,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,+BAA+B,GAAG,CAAC,EACvC,IAAI,EACJ,cAAc,EACd,aAAa,EACb,UAAU,EACV,aAAa,EAC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,CAAC,WAAW,CAAC,EAAE,WAAW,IAAI,QAAQ;YAC7C,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,IAAI;SAC1B,CAAC,EACF,IAAI,EAAC,cAAc,EACnB,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,OAAO,EACrB,YAAY,EAAE,OAAO,iBACR,IAAI,CAAC,EAAE,IAEnB,OAAO,CACL,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,+BAA+B,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect } from 'react';\nimport clsx from 'clsx';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalIcon from '../../icon/internal';\nimport useHiddenDescription from '../../internal/hooks/use-hidden-description';\nimport { GeneratedAnalyticsMetadataButtonDropdownExpand } from '../analytics-metadata/interfaces.js';\nimport { CategoryProps } from '../interfaces';\nimport ItemsList from '../items-list';\nimport MobileExpandableGroup from '../mobile-expandable-group/mobile-expandable-group';\nimport Tooltip from '../tooltip.js';\nimport { getMenuItemProps } from '../utils/menu-item.js';\n\nimport styles from './styles.css.js';\n\nconst MobileExpandableCategoryElement = ({\n item,\n onItemActivate,\n onGroupToggle,\n targetItem,\n isHighlighted,\n isKeyboardHighlight,\n isExpanded,\n lastInDropdown,\n highlightItem,\n disabled,\n variant,\n position,\n}: CategoryProps) => {\n const highlighted = isHighlighted(item);\n const expanded = isExpanded(item);\n const isKeyboardHighlighted = isKeyboardHighlight(item);\n const triggerRef = React.useRef<HTMLSpanElement>(null);\n\n useEffect(() => {\n if (triggerRef.current && highlighted && !expanded) {\n triggerRef.current.focus();\n }\n }, [expanded, highlighted]);\n\n const onClick = (e: React.MouseEvent) => {\n if (!disabled) {\n e.preventDefault();\n onGroupToggle(item, e);\n }\n };\n\n const onHover = () => {\n highlightItem(item);\n };\n\n const isDisabledWithReason = !!item.disabledReason && item.disabled;\n const { targetProps, descriptionEl } = useHiddenDescription(item.disabledReason);\n const trigger = item.text && (\n <span\n className={clsx(styles.header, styles['expandable-header'], styles[`variant-${variant}`], {\n [styles.highlighted]: highlighted,\n [styles['rolled-down']]: expanded,\n [styles.disabled]: disabled,\n [styles['is-focused']]: isKeyboardHighlighted,\n })}\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 ref={triggerRef}\n {...getMenuItemProps({ parent: true, disabled, expanded })}\n {...(isDisabledWithReason ? targetProps : {})}\n {...getAnalyticsMetadataAttribute(\n disabled\n ? {}\n : ({\n action: 'expand',\n detail: {\n position: position || '0',\n label: { root: 'self' },\n id: item.id || '',\n expanded: `${!expanded}`,\n },\n } as GeneratedAnalyticsMetadataButtonDropdownExpand)\n )}\n >\n {(item.iconName || item.iconUrl || item.iconSvg) && (\n <span className={styles['icon-wrapper']}>\n <InternalIcon name={item.iconName} url={item.iconUrl} svg={item.iconSvg} alt={item.iconAlt} />\n </span>\n )}\n {item.text}\n <span\n className={clsx(styles['expand-icon'], {\n [styles['expand-icon-up']]: expanded,\n })}\n >\n <InternalIcon name=\"caret-down-filled\" />\n </span>\n </span>\n );\n\n let content: React.ReactNode;\n\n if (isDisabledWithReason) {\n content = (\n <>\n {descriptionEl}\n <Tooltip content={item.disabledReason}>{trigger}</Tooltip>\n </>\n );\n } else if (disabled) {\n content = trigger;\n } else {\n content = (\n <MobileExpandableGroup open={expanded} trigger={trigger}>\n {item.items && expanded && (\n <ul role=\"menu\" aria-label={item.text} className={styles['items-list-container']}>\n <ItemsList\n items={item.items}\n onItemActivate={onItemActivate}\n onGroupToggle={onGroupToggle}\n targetItem={targetItem}\n isHighlighted={isHighlighted}\n isKeyboardHighlight={isKeyboardHighlight}\n isExpanded={isExpanded}\n lastInDropdown={lastInDropdown}\n highlightItem={highlightItem}\n hasCategoryHeader={true}\n variant={variant}\n position={position}\n />\n </ul>\n )}\n </MobileExpandableGroup>\n );\n }\n\n return (\n <li\n className={clsx(styles.category, styles[`variant-${variant}`], styles.expandable, {\n [styles.expanded]: expanded,\n [styles.disabled]: disabled,\n [styles.highlighted]: highlighted || expanded,\n [styles.expandable]: true,\n })}\n role=\"presentation\"\n onClick={onClick}\n onMouseEnter={onHover}\n onTouchStart={onHover}\n data-testid={item.id}\n >\n {content}\n </li>\n );\n};\n\nexport default MobileExpandableCategoryElement;\n"]}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"header": "
|
|
5
|
-
"disabled": "
|
|
6
|
-
"expandable-header": "awsui_expandable-
|
|
7
|
-
"rolled-down": "awsui_rolled-
|
|
8
|
-
"highlighted": "
|
|
9
|
-
"is-focused": "awsui_is-
|
|
10
|
-
"visual-refresh": "awsui_visual-
|
|
11
|
-
"category": "
|
|
12
|
-
"expandable": "
|
|
13
|
-
"variant-navigation": "awsui_variant-
|
|
14
|
-
"expand-icon": "awsui_expand-
|
|
15
|
-
"expand-icon-up": "awsui_expand-icon-
|
|
16
|
-
"expand-icon-right": "awsui_expand-icon-
|
|
17
|
-
"items-list-container": "awsui_items-list-
|
|
18
|
-
"in-dropdown": "awsui_in-
|
|
4
|
+
"header": "awsui_header_16mm3_mv8zj_145",
|
|
5
|
+
"disabled": "awsui_disabled_16mm3_mv8zj_161",
|
|
6
|
+
"expandable-header": "awsui_expandable-header_16mm3_mv8zj_165",
|
|
7
|
+
"rolled-down": "awsui_rolled-down_16mm3_mv8zj_176",
|
|
8
|
+
"highlighted": "awsui_highlighted_16mm3_mv8zj_179",
|
|
9
|
+
"is-focused": "awsui_is-focused_16mm3_mv8zj_197",
|
|
10
|
+
"visual-refresh": "awsui_visual-refresh_16mm3_mv8zj_200",
|
|
11
|
+
"category": "awsui_category_16mm3_mv8zj_204",
|
|
12
|
+
"expandable": "awsui_expandable_16mm3_mv8zj_165",
|
|
13
|
+
"variant-navigation": "awsui_variant-navigation_16mm3_mv8zj_219",
|
|
14
|
+
"expand-icon": "awsui_expand-icon_16mm3_mv8zj_226",
|
|
15
|
+
"expand-icon-up": "awsui_expand-icon-up_16mm3_mv8zj_244",
|
|
16
|
+
"expand-icon-right": "awsui_expand-icon-right_16mm3_mv8zj_247",
|
|
17
|
+
"items-list-container": "awsui_items-list-container_16mm3_mv8zj_255",
|
|
18
|
+
"in-dropdown": "awsui_in-dropdown_16mm3_mv8zj_264",
|
|
19
|
+
"icon-wrapper": "awsui_icon-wrapper_16mm3_mv8zj_268",
|
|
20
|
+
"header-content": "awsui_header-content_16mm3_mv8zj_272"
|
|
19
21
|
};
|
|
20
22
|
|
|
@@ -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_header_16mm3_mv8zj_145:not(#\9) {
|
|
146
146
|
position: relative;
|
|
147
147
|
margin-block: 0;
|
|
148
148
|
margin-inline: 0;
|
|
@@ -153,29 +153,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
153
153
|
font-weight: bold;
|
|
154
154
|
display: flex;
|
|
155
155
|
justify-content: space-between;
|
|
156
|
+
align-items: center;
|
|
156
157
|
padding-block: calc(var(--space-xxs-hwfkai, 4px) + var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px));
|
|
157
158
|
padding-inline: calc(var(--space-button-horizontal-k0c786, 20px) + var(--border-item-width-miijiw, 2px));
|
|
158
159
|
z-index: 1;
|
|
159
160
|
}
|
|
160
|
-
.
|
|
161
|
+
.awsui_header_16mm3_mv8zj_145.awsui_disabled_16mm3_mv8zj_161:not(#\9) {
|
|
161
162
|
color: var(--color-text-dropdown-item-disabled-8m65hf, #b4b4bb);
|
|
162
163
|
cursor: default;
|
|
163
164
|
}
|
|
164
|
-
.
|
|
165
|
+
.awsui_header_16mm3_mv8zj_145.awsui_expandable-header_16mm3_mv8zj_165:not(#\9) {
|
|
165
166
|
border-block-start-color: var(--color-border-dropdown-group-ylcnh8, #c6c6cd);
|
|
166
167
|
border-block-end-color: var(--color-border-dropdown-group-ylcnh8, #c6c6cd);
|
|
167
168
|
cursor: pointer;
|
|
168
169
|
}
|
|
169
|
-
.
|
|
170
|
+
.awsui_header_16mm3_mv8zj_145.awsui_expandable-header_16mm3_mv8zj_165.awsui_disabled_16mm3_mv8zj_161:not(#\9) {
|
|
170
171
|
cursor: default;
|
|
171
172
|
}
|
|
172
|
-
.
|
|
173
|
+
.awsui_header_16mm3_mv8zj_145.awsui_expandable-header_16mm3_mv8zj_165:not(#\9):focus {
|
|
173
174
|
outline: none;
|
|
174
175
|
}
|
|
175
|
-
.
|
|
176
|
+
.awsui_header_16mm3_mv8zj_145.awsui_expandable-header_16mm3_mv8zj_165.awsui_rolled-down_16mm3_mv8zj_176:not(#\9) {
|
|
176
177
|
border-block-end-color: transparent;
|
|
177
178
|
}
|
|
178
|
-
.
|
|
179
|
+
.awsui_header_16mm3_mv8zj_145.awsui_expandable-header_16mm3_mv8zj_165.awsui_highlighted_16mm3_mv8zj_179:not(#\9) {
|
|
179
180
|
background-color: var(--color-background-dropdown-item-hover-yunepc, #f3f3f7);
|
|
180
181
|
color: var(--color-text-dropdown-item-highlighted-yr1px8, #0f141a);
|
|
181
182
|
padding-block: var(--space-xxs-hwfkai, 4px);
|
|
@@ -188,69 +189,70 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
188
189
|
border-end-end-radius: var(--border-radius-item-iwaia5, 8px);
|
|
189
190
|
z-index: 2;
|
|
190
191
|
}
|
|
191
|
-
.
|
|
192
|
+
.awsui_header_16mm3_mv8zj_145.awsui_expandable-header_16mm3_mv8zj_165.awsui_highlighted_16mm3_mv8zj_179.awsui_disabled_16mm3_mv8zj_161:not(#\9) {
|
|
192
193
|
background-color: var(--color-background-dropdown-item-dimmed-dhho03, transparent);
|
|
193
194
|
border-color: var(--color-border-dropdown-item-dimmed-hover-ga9sch, #8c8c94);
|
|
194
195
|
color: var(--color-text-dropdown-item-dimmed-tq8vh3, #b4b4bb);
|
|
195
196
|
}
|
|
196
|
-
.
|
|
197
|
+
.awsui_header_16mm3_mv8zj_145.awsui_expandable-header_16mm3_mv8zj_165.awsui_highlighted_16mm3_mv8zj_179.awsui_is-focused_16mm3_mv8zj_197:not(#\9) {
|
|
197
198
|
border-color: var(--color-border-dropdown-item-focused-zacqlp, #424650);
|
|
198
199
|
}
|
|
199
|
-
.
|
|
200
|
+
.awsui_header_16mm3_mv8zj_145.awsui_expandable-header_16mm3_mv8zj_165.awsui_highlighted_16mm3_mv8zj_179.awsui_is-focused_16mm3_mv8zj_197:not(#\9):not(.awsui_visual-refresh_16mm3_mv8zj_200) {
|
|
200
201
|
box-shadow: inset 0 0 0 var(--border-control-focus-ring-shadow-spread-9mjajk, 1px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
201
202
|
}
|
|
202
203
|
|
|
203
|
-
.
|
|
204
|
+
.awsui_category_16mm3_mv8zj_204:not(#\9) {
|
|
204
205
|
list-style: none;
|
|
205
206
|
margin-block-start: calc(-1 * var(--border-divider-list-width-tdfx1x, 1px));
|
|
206
207
|
padding-block: 0;
|
|
207
208
|
padding-inline: 0;
|
|
208
209
|
}
|
|
209
|
-
.
|
|
210
|
+
.awsui_category_16mm3_mv8zj_204:not(#\9):first-child {
|
|
210
211
|
margin-block-start: 0;
|
|
211
212
|
}
|
|
212
|
-
.
|
|
213
|
+
.awsui_category_16mm3_mv8zj_204.awsui_expandable_16mm3_mv8zj_165:not(#\9) {
|
|
213
214
|
border-block-start: 0;
|
|
214
215
|
}
|
|
215
|
-
.
|
|
216
|
+
.awsui_category_16mm3_mv8zj_204:not(#\9):last-child {
|
|
216
217
|
border-block-end: none;
|
|
217
218
|
}
|
|
218
|
-
.
|
|
219
|
+
.awsui_category_16mm3_mv8zj_204.awsui_variant-navigation_16mm3_mv8zj_219:not(#\9) {
|
|
219
220
|
padding-block-start: var(--space-xxs-hwfkai, 4px);
|
|
220
221
|
}
|
|
221
|
-
.
|
|
222
|
+
.awsui_category_16mm3_mv8zj_204.awsui_variant-navigation_16mm3_mv8zj_219.awsui_expandable_16mm3_mv8zj_165:not(#\9) {
|
|
222
223
|
padding-block-start: 0;
|
|
223
224
|
}
|
|
224
225
|
|
|
225
|
-
.awsui_expand-
|
|
226
|
+
.awsui_expand-icon_16mm3_mv8zj_226:not(#\9) {
|
|
226
227
|
position: relative;
|
|
227
|
-
inset-inline-
|
|
228
|
+
inset-inline-end: calc(-1 * var(--space-s-tvghoh, 12px));
|
|
228
229
|
inline-size: var(--space-m-dsumyt, 16px);
|
|
229
230
|
display: inline-block;
|
|
231
|
+
margin-inline-start: auto;
|
|
230
232
|
transition: transform var(--motion-duration-rotate-180-cxi9g7, 135ms) var(--motion-easing-rotate-180-7a58rc, cubic-bezier(0.165, 0.84, 0.44, 1));
|
|
231
233
|
}
|
|
232
234
|
@media (prefers-reduced-motion: reduce) {
|
|
233
|
-
.awsui_expand-
|
|
235
|
+
.awsui_expand-icon_16mm3_mv8zj_226:not(#\9) {
|
|
234
236
|
animation: none;
|
|
235
237
|
transition: none;
|
|
236
238
|
}
|
|
237
239
|
}
|
|
238
|
-
.awsui-motion-disabled .awsui_expand-
|
|
240
|
+
.awsui-motion-disabled .awsui_expand-icon_16mm3_mv8zj_226:not(#\9), .awsui-mode-entering .awsui_expand-icon_16mm3_mv8zj_226:not(#\9) {
|
|
239
241
|
animation: none;
|
|
240
242
|
transition: none;
|
|
241
243
|
}
|
|
242
|
-
.awsui_expand-icon-
|
|
244
|
+
.awsui_expand-icon-up_16mm3_mv8zj_244:not(#\9) {
|
|
243
245
|
transform: rotate(-180deg);
|
|
244
246
|
}
|
|
245
|
-
.awsui_expand-icon-
|
|
247
|
+
.awsui_expand-icon-right_16mm3_mv8zj_247:not(#\9) {
|
|
246
248
|
transform: rotate(-90deg);
|
|
247
249
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
248
250
|
}
|
|
249
|
-
.awsui_expand-icon-
|
|
251
|
+
.awsui_expand-icon-right_16mm3_mv8zj_247:not(#\9):dir(rtl) {
|
|
250
252
|
transform: rotate(90deg);
|
|
251
253
|
}
|
|
252
254
|
|
|
253
|
-
.awsui_items-list-
|
|
255
|
+
.awsui_items-list-container_16mm3_mv8zj_255:not(#\9) {
|
|
254
256
|
padding-block: 0;
|
|
255
257
|
padding-inline: 0;
|
|
256
258
|
margin-block-start: -1px;
|
|
@@ -259,6 +261,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
259
261
|
overflow-y: auto;
|
|
260
262
|
}
|
|
261
263
|
|
|
262
|
-
.awsui_in-
|
|
264
|
+
.awsui_in-dropdown_16mm3_mv8zj_264:not(#\9) {
|
|
263
265
|
margin-block-end: -1px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.awsui_icon-wrapper_16mm3_mv8zj_268:not(#\9) {
|
|
269
|
+
margin-inline-end: var(--space-xxs-hwfkai, 4px);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.awsui_header-content_16mm3_mv8zj_272:not(#\9) {
|
|
273
|
+
display: flex;
|
|
274
|
+
align-items: center;
|
|
264
275
|
}
|
|
@@ -2,20 +2,22 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"header": "
|
|
6
|
-
"disabled": "
|
|
7
|
-
"expandable-header": "awsui_expandable-
|
|
8
|
-
"rolled-down": "awsui_rolled-
|
|
9
|
-
"highlighted": "
|
|
10
|
-
"is-focused": "awsui_is-
|
|
11
|
-
"visual-refresh": "awsui_visual-
|
|
12
|
-
"category": "
|
|
13
|
-
"expandable": "
|
|
14
|
-
"variant-navigation": "awsui_variant-
|
|
15
|
-
"expand-icon": "awsui_expand-
|
|
16
|
-
"expand-icon-up": "awsui_expand-icon-
|
|
17
|
-
"expand-icon-right": "awsui_expand-icon-
|
|
18
|
-
"items-list-container": "awsui_items-list-
|
|
19
|
-
"in-dropdown": "awsui_in-
|
|
5
|
+
"header": "awsui_header_16mm3_mv8zj_145",
|
|
6
|
+
"disabled": "awsui_disabled_16mm3_mv8zj_161",
|
|
7
|
+
"expandable-header": "awsui_expandable-header_16mm3_mv8zj_165",
|
|
8
|
+
"rolled-down": "awsui_rolled-down_16mm3_mv8zj_176",
|
|
9
|
+
"highlighted": "awsui_highlighted_16mm3_mv8zj_179",
|
|
10
|
+
"is-focused": "awsui_is-focused_16mm3_mv8zj_197",
|
|
11
|
+
"visual-refresh": "awsui_visual-refresh_16mm3_mv8zj_200",
|
|
12
|
+
"category": "awsui_category_16mm3_mv8zj_204",
|
|
13
|
+
"expandable": "awsui_expandable_16mm3_mv8zj_165",
|
|
14
|
+
"variant-navigation": "awsui_variant-navigation_16mm3_mv8zj_219",
|
|
15
|
+
"expand-icon": "awsui_expand-icon_16mm3_mv8zj_226",
|
|
16
|
+
"expand-icon-up": "awsui_expand-icon-up_16mm3_mv8zj_244",
|
|
17
|
+
"expand-icon-right": "awsui_expand-icon-right_16mm3_mv8zj_247",
|
|
18
|
+
"items-list-container": "awsui_items-list-container_16mm3_mv8zj_255",
|
|
19
|
+
"in-dropdown": "awsui_in-dropdown_16mm3_mv8zj_264",
|
|
20
|
+
"icon-wrapper": "awsui_icon-wrapper_16mm3_mv8zj_268",
|
|
21
|
+
"header-content": "awsui_header-content_16mm3_mv8zj_272"
|
|
20
22
|
};
|
|
21
23
|
|
|
@@ -1,21 +1,21 @@
|
|
|
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
|
-
"visual-refresh": "awsui_visual-
|
|
10
|
-
"menu-item": "awsui_menu-
|
|
11
|
-
"link-style": "awsui_link-
|
|
12
|
-
"current-breadcrumb": "awsui_current-
|
|
13
|
-
"link-style-highlighted": "awsui_link-style-
|
|
14
|
-
"has-category-header": "awsui_has-category-
|
|
15
|
-
"item-tooltip-wrapper": "awsui_item-tooltip-
|
|
16
|
-
"has-checkmark": "awsui_has-
|
|
17
|
-
"icon": "
|
|
18
|
-
"checkmark": "
|
|
19
|
-
"external-icon": "awsui_external-
|
|
4
|
+
"item-element": "awsui_item-element_93a1u_so9cs_145",
|
|
5
|
+
"disabled": "awsui_disabled_93a1u_so9cs_157",
|
|
6
|
+
"show-divider": "awsui_show-divider_93a1u_so9cs_164",
|
|
7
|
+
"highlighted": "awsui_highlighted_93a1u_so9cs_167",
|
|
8
|
+
"is-focused": "awsui_is-focused_93a1u_so9cs_182",
|
|
9
|
+
"visual-refresh": "awsui_visual-refresh_93a1u_so9cs_185",
|
|
10
|
+
"menu-item": "awsui_menu-item_93a1u_so9cs_189",
|
|
11
|
+
"link-style": "awsui_link-style_93a1u_so9cs_201",
|
|
12
|
+
"current-breadcrumb": "awsui_current-breadcrumb_93a1u_so9cs_237",
|
|
13
|
+
"link-style-highlighted": "awsui_link-style-highlighted_93a1u_so9cs_245",
|
|
14
|
+
"has-category-header": "awsui_has-category-header_93a1u_so9cs_251",
|
|
15
|
+
"item-tooltip-wrapper": "awsui_item-tooltip-wrapper_93a1u_so9cs_251",
|
|
16
|
+
"has-checkmark": "awsui_has-checkmark_93a1u_so9cs_251",
|
|
17
|
+
"icon": "awsui_icon_93a1u_so9cs_255",
|
|
18
|
+
"checkmark": "awsui_checkmark_93a1u_so9cs_259",
|
|
19
|
+
"external-icon": "awsui_external-icon_93a1u_so9cs_266"
|
|
20
20
|
};
|
|
21
21
|
|
|
@@ -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
|
-
.awsui_item-
|
|
145
|
+
.awsui_item-element_93a1u_so9cs_145:not(#\9) {
|
|
146
146
|
position: relative;
|
|
147
147
|
z-index: 1;
|
|
148
148
|
border-block: var(--border-item-width-miijiw, 2px) solid transparent;
|
|
@@ -154,17 +154,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
154
154
|
margin-block-start: calc(-1 * var(--border-width-dropdown-youcay, 2px));
|
|
155
155
|
cursor: pointer;
|
|
156
156
|
}
|
|
157
|
-
.awsui_item-
|
|
157
|
+
.awsui_item-element_93a1u_so9cs_145.awsui_disabled_93a1u_so9cs_157:not(#\9) {
|
|
158
158
|
cursor: default;
|
|
159
159
|
color: var(--color-text-dropdown-item-disabled-8m65hf, #b4b4bb);
|
|
160
160
|
}
|
|
161
|
-
.awsui_item-
|
|
161
|
+
.awsui_item-element_93a1u_so9cs_145:not(#\9):first-child {
|
|
162
162
|
margin-block-start: 0;
|
|
163
163
|
}
|
|
164
|
-
.awsui_item-
|
|
164
|
+
.awsui_item-element_93a1u_so9cs_145.awsui_show-divider_93a1u_so9cs_164:not(#\9) {
|
|
165
165
|
border-block-end: var(--border-item-width-miijiw, 2px) solid var(--color-border-dropdown-group-ylcnh8, #c6c6cd);
|
|
166
166
|
}
|
|
167
|
-
.awsui_item-
|
|
167
|
+
.awsui_item-element_93a1u_so9cs_145.awsui_highlighted_93a1u_so9cs_167:not(#\9) {
|
|
168
168
|
color: var(--color-text-dropdown-item-highlighted-yr1px8, #0f141a);
|
|
169
169
|
z-index: 2;
|
|
170
170
|
background-color: var(--color-background-dropdown-item-hover-yunepc, #f3f3f7);
|
|
@@ -174,19 +174,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
174
174
|
border-end-start-radius: var(--border-radius-item-iwaia5, 8px);
|
|
175
175
|
border-end-end-radius: var(--border-radius-item-iwaia5, 8px);
|
|
176
176
|
}
|
|
177
|
-
.awsui_item-
|
|
177
|
+
.awsui_item-element_93a1u_so9cs_145.awsui_highlighted_93a1u_so9cs_167.awsui_disabled_93a1u_so9cs_157:not(#\9) {
|
|
178
178
|
color: var(--color-text-dropdown-item-dimmed-tq8vh3, #b4b4bb);
|
|
179
179
|
border-color: var(--color-border-dropdown-item-dimmed-hover-ga9sch, #8c8c94);
|
|
180
180
|
background-color: var(--color-background-dropdown-item-dimmed-dhho03, transparent);
|
|
181
181
|
}
|
|
182
|
-
.awsui_item-
|
|
182
|
+
.awsui_item-element_93a1u_so9cs_145.awsui_highlighted_93a1u_so9cs_167.awsui_is-focused_93a1u_so9cs_182:not(#\9) {
|
|
183
183
|
border-color: var(--color-border-dropdown-item-focused-zacqlp, #424650);
|
|
184
184
|
}
|
|
185
|
-
.awsui_item-
|
|
185
|
+
.awsui_item-element_93a1u_so9cs_145.awsui_highlighted_93a1u_so9cs_167.awsui_is-focused_93a1u_so9cs_182:not(#\9):not(.awsui_visual-refresh_93a1u_so9cs_185) {
|
|
186
186
|
box-shadow: inset 0 0 0 var(--border-control-focus-ring-shadow-spread-9mjajk, 1px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
.awsui_menu-
|
|
189
|
+
.awsui_menu-item_93a1u_so9cs_189:not(#\9) {
|
|
190
190
|
min-inline-size: 0;
|
|
191
191
|
word-break: break-word;
|
|
192
192
|
display: flex;
|
|
@@ -198,11 +198,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
198
198
|
/* stylelint-disable selector-max-type */
|
|
199
199
|
/* stylelint-enable selector-max-type */
|
|
200
200
|
}
|
|
201
|
-
.awsui_menu-
|
|
201
|
+
.awsui_menu-item_93a1u_so9cs_189.awsui_link-style_93a1u_so9cs_201:not(#\9) {
|
|
202
202
|
padding-block-end: calc(var(--space-xxs-hwfkai, 4px) + var(--space-xxxs-pajhad, 2px));
|
|
203
203
|
text-underline-offset: 0.25em;
|
|
204
204
|
text-decoration-thickness: 1px;
|
|
205
|
-
color: var(--color-text-link-default-1dmm7z, #006ce0);
|
|
205
|
+
color: var(--awsui-style-color-default-kcc2gu, var(--color-text-link-default-1dmm7z, #006ce0));
|
|
206
206
|
font-weight: inherit;
|
|
207
207
|
letter-spacing: normal;
|
|
208
208
|
text-decoration-line: underline;
|
|
@@ -213,30 +213,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
213
213
|
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
214
214
|
}
|
|
215
215
|
@media (prefers-reduced-motion: reduce) {
|
|
216
|
-
.awsui_menu-
|
|
216
|
+
.awsui_menu-item_93a1u_so9cs_189.awsui_link-style_93a1u_so9cs_201:not(#\9) {
|
|
217
217
|
animation: none;
|
|
218
218
|
transition: none;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
.awsui-motion-disabled .awsui_menu-
|
|
221
|
+
.awsui-motion-disabled .awsui_menu-item_93a1u_so9cs_189.awsui_link-style_93a1u_so9cs_201:not(#\9), .awsui-mode-entering .awsui_menu-item_93a1u_so9cs_189.awsui_link-style_93a1u_so9cs_201:not(#\9) {
|
|
222
222
|
animation: none;
|
|
223
223
|
transition: none;
|
|
224
224
|
}
|
|
225
|
-
.awsui_menu-
|
|
225
|
+
.awsui_menu-item_93a1u_so9cs_189.awsui_link-style_93a1u_so9cs_201:not(#\9):hover {
|
|
226
226
|
cursor: pointer;
|
|
227
|
-
color: var(--color-text-link-hover-sq1gxg, #002b66);
|
|
227
|
+
color: var(--awsui-style-color-hover-kcc2gu, var(--color-text-link-hover-sq1gxg, #002b66));
|
|
228
228
|
}
|
|
229
|
-
.awsui_menu-
|
|
229
|
+
.awsui_menu-item_93a1u_so9cs_189.awsui_link-style_93a1u_so9cs_201:not(#\9):focus {
|
|
230
230
|
outline: none;
|
|
231
231
|
}
|
|
232
|
-
.awsui_menu-
|
|
233
|
-
color: var(--color-text-link-hover-sq1gxg, #002b66);
|
|
232
|
+
.awsui_menu-item_93a1u_so9cs_189.awsui_link-style_93a1u_so9cs_201:not(#\9):active {
|
|
233
|
+
color: var(--awsui-style-color-active-kcc2gu, var(--color-text-link-hover-sq1gxg, #002b66));
|
|
234
234
|
}
|
|
235
|
-
.awsui_menu-
|
|
235
|
+
.awsui_menu-item_93a1u_so9cs_189.awsui_link-style_93a1u_so9cs_201:not(#\9):active, .awsui_menu-item_93a1u_so9cs_189.awsui_link-style_93a1u_so9cs_201:not(#\9):focus, .awsui_menu-item_93a1u_so9cs_189.awsui_link-style_93a1u_so9cs_201:not(#\9):hover {
|
|
236
236
|
text-decoration-line: underline;
|
|
237
237
|
text-decoration-color: currentColor;
|
|
238
238
|
}
|
|
239
|
-
.awsui_menu-
|
|
239
|
+
.awsui_menu-item_93a1u_so9cs_189.awsui_link-style_93a1u_so9cs_201.awsui_current-breadcrumb_93a1u_so9cs_237:not(#\9) {
|
|
240
240
|
font-weight: var(--font-weight-button-0eg20c, 700);
|
|
241
241
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
242
242
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
@@ -244,27 +244,27 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
244
244
|
font-weight: 700;
|
|
245
245
|
text-decoration: none;
|
|
246
246
|
}
|
|
247
|
-
.awsui_menu-
|
|
247
|
+
.awsui_menu-item_93a1u_so9cs_189.awsui_link-style_93a1u_so9cs_201.awsui_link-style-highlighted_93a1u_so9cs_245:not(#\9) {
|
|
248
248
|
color: var(--color-text-link-hover-sq1gxg, #002b66);
|
|
249
249
|
}
|
|
250
|
-
.awsui_menu-
|
|
250
|
+
.awsui_menu-item_93a1u_so9cs_189:not(#\9):focus {
|
|
251
251
|
outline: none;
|
|
252
252
|
}
|
|
253
|
-
.awsui_has-category-
|
|
253
|
+
.awsui_has-category-header_93a1u_so9cs_251 > .awsui_menu-item_93a1u_so9cs_189:not(#\9), .awsui_has-category-header_93a1u_so9cs_251 > .awsui_item-tooltip-wrapper_93a1u_so9cs_251 > .awsui_menu-item_93a1u_so9cs_189:not(#\9), .awsui_has-category-header_93a1u_so9cs_251:not(#\9):not(.awsui_has-checkmark_93a1u_so9cs_251) > span > .awsui_menu-item_93a1u_so9cs_189 {
|
|
254
254
|
padding-inline-start: calc(var(--space-xs-ymlm0b, 8px) + var(--space-l-2ud1p3, 20px));
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
.
|
|
257
|
+
.awsui_icon_93a1u_so9cs_255:not(#\9) {
|
|
258
258
|
padding-inline-end: var(--space-xxs-hwfkai, 4px);
|
|
259
259
|
flex-shrink: 0;
|
|
260
260
|
}
|
|
261
|
-
.
|
|
261
|
+
.awsui_icon_93a1u_so9cs_255.awsui_checkmark_93a1u_so9cs_259:not(#\9) {
|
|
262
262
|
color: var(--color-text-status-info-ue8bd2, #006ce0);
|
|
263
263
|
}
|
|
264
|
-
.
|
|
264
|
+
.awsui_icon_93a1u_so9cs_255.awsui_disabled_93a1u_so9cs_157:not(#\9) {
|
|
265
265
|
color: var(--color-text-interactive-disabled-1bqmrl, #b4b4bb);
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
.awsui_external-
|
|
268
|
+
.awsui_external-icon_93a1u_so9cs_266:not(#\9) {
|
|
269
269
|
margin-inline-start: var(--space-xxs-hwfkai, 4px);
|
|
270
270
|
}
|
|
@@ -2,21 +2,21 @@
|
|
|
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
|
-
"visual-refresh": "awsui_visual-
|
|
11
|
-
"menu-item": "awsui_menu-
|
|
12
|
-
"link-style": "awsui_link-
|
|
13
|
-
"current-breadcrumb": "awsui_current-
|
|
14
|
-
"link-style-highlighted": "awsui_link-style-
|
|
15
|
-
"has-category-header": "awsui_has-category-
|
|
16
|
-
"item-tooltip-wrapper": "awsui_item-tooltip-
|
|
17
|
-
"has-checkmark": "awsui_has-
|
|
18
|
-
"icon": "
|
|
19
|
-
"checkmark": "
|
|
20
|
-
"external-icon": "awsui_external-
|
|
5
|
+
"item-element": "awsui_item-element_93a1u_so9cs_145",
|
|
6
|
+
"disabled": "awsui_disabled_93a1u_so9cs_157",
|
|
7
|
+
"show-divider": "awsui_show-divider_93a1u_so9cs_164",
|
|
8
|
+
"highlighted": "awsui_highlighted_93a1u_so9cs_167",
|
|
9
|
+
"is-focused": "awsui_is-focused_93a1u_so9cs_182",
|
|
10
|
+
"visual-refresh": "awsui_visual-refresh_93a1u_so9cs_185",
|
|
11
|
+
"menu-item": "awsui_menu-item_93a1u_so9cs_189",
|
|
12
|
+
"link-style": "awsui_link-style_93a1u_so9cs_201",
|
|
13
|
+
"current-breadcrumb": "awsui_current-breadcrumb_93a1u_so9cs_237",
|
|
14
|
+
"link-style-highlighted": "awsui_link-style-highlighted_93a1u_so9cs_245",
|
|
15
|
+
"has-category-header": "awsui_has-category-header_93a1u_so9cs_251",
|
|
16
|
+
"item-tooltip-wrapper": "awsui_item-tooltip-wrapper_93a1u_so9cs_251",
|
|
17
|
+
"has-checkmark": "awsui_has-checkmark_93a1u_so9cs_251",
|
|
18
|
+
"icon": "awsui_icon_93a1u_so9cs_255",
|
|
19
|
+
"checkmark": "awsui_checkmark_93a1u_so9cs_259",
|
|
20
|
+
"external-icon": "awsui_external-icon_93a1u_so9cs_266"
|
|
21
21
|
};
|
|
22
22
|
|
package/date-input/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DateInputProps } from './interfaces';
|
|
3
3
|
export { DateInputProps };
|
|
4
|
-
declare const DateInput: React.ForwardRefExoticComponent<DateInputProps & React.RefAttributes<
|
|
4
|
+
declare const DateInput: React.ForwardRefExoticComponent<DateInputProps & React.RefAttributes<import("..").InputProps.Ref>>;
|
|
5
5
|
export default DateInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/date-input/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAc,MAAM,OAAO,CAAC;AAInC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,QAAA,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/date-input/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAc,MAAM,OAAO,CAAC;AAInC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,QAAA,MAAM,SAAS,oGAKb,CAAC;AAIH,eAAe,SAAS,CAAC"}
|
package/date-input/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/date-input/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,YAAY,CAAC;AACb,OAAO,KAAc,MAAM,OAAO,CAAC;AAEnC,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,iBAAiB,MAAM,YAAY,CAAC;AAI3C,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/date-input/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,YAAY,CAAC;AACb,OAAO,KAAc,MAAM,OAAO,CAAC;AAEnC,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,iBAAiB,MAAM,YAAY,CAAC;AAI3C,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAqB,EAAE,GAA4B,EAAE,EAAE;IACzF,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,WAAW,EAAE;QACvD,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE;KAChE,CAAC,CAAC;IACH,OAAO,oBAAC,iBAAiB,oBAAK,KAAK,EAAM,kBAAkB,IAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAC5E,CAAC,CAAC,CAAC;AAEH,gBAAgB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AAEzC,eAAe,SAAS,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n'use client';\nimport React, { Ref } from 'react';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { DateInputProps } from './interfaces';\nimport InternalDateInput from './internal';\n\nexport { DateInputProps };\n\nconst DateInput = React.forwardRef((props: DateInputProps, ref: Ref<DateInputProps.Ref>) => {\n const baseComponentProps = useBaseComponent('DateInput', {\n props: { autoFocus: props.autoFocus, readOnly: props.readOnly },\n });\n return <InternalDateInput {...props} {...baseComponentProps} ref={ref} />;\n});\n\napplyDisplayName(DateInput, 'DateInput');\n\nexport default DateInput;\n"]}
|
|
@@ -1,12 +1,41 @@
|
|
|
1
1
|
import { BaseInputProps, InputProps } from '../input/interfaces';
|
|
2
2
|
import { BaseComponentProps } from '../internal/base-component';
|
|
3
3
|
import { FormFieldValidationControlProps } from '../internal/context/form-field-context';
|
|
4
|
+
import { DateFormat, DateGranularity, EditableDateFormat } from '../internal/utils/date-time/interfaces';
|
|
4
5
|
export interface DateInputProps extends BaseInputProps, FormFieldValidationControlProps, BaseComponentProps {
|
|
5
6
|
/**
|
|
6
7
|
* The current input value, in YYYY-MM-DD format.
|
|
7
8
|
*/
|
|
8
9
|
value: string;
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the locale to use to render month names and determine the starting day of the week.
|
|
12
|
+
* If you don't provide this, the locale is determined by the page and browser locales.
|
|
13
|
+
* Supported values and formats are listed in the [JavaScript Intl API specification](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
|
14
|
+
*/
|
|
15
|
+
locale?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Specifies the granularity at which users will be able to select a date.
|
|
18
|
+
* Defaults to `day`.
|
|
19
|
+
**/
|
|
20
|
+
granularity?: DateInputProps.Granularity;
|
|
21
|
+
/**
|
|
22
|
+
* The format as it is displayed. It can take the following values:
|
|
23
|
+
* * `iso`: ISO 8601 format without time, e.g.: 2024-01-30 (or 2024-01).
|
|
24
|
+
* * `long-localized`: a more human-readable, localized format, e.g.: January 30, 2024 (or January, 2024).
|
|
25
|
+
* * `slashed`: similar to ISO 8601 but with '/' in place of '-'. e.g.: 2024/01/30 (or 2024/01).
|
|
26
|
+
*/
|
|
27
|
+
format?: DateInputProps.Format;
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the date format to use when the format is 'long-localized' and editing the date.
|
|
30
|
+
* The format of the input as it is being interacted with. It can take the following values:
|
|
31
|
+
* * `iso`: ISO 8601 format without time, e.g.: 2024-01-30 (or 2024-01).
|
|
32
|
+
* * `slashed`: similar to ISO 8601 but with '/' in place of '-'. e.g.: 2024/01/30 (or 2024/01).
|
|
33
|
+
*/
|
|
34
|
+
inputFormat?: DateInputProps.InputFormat;
|
|
9
35
|
}
|
|
10
36
|
export declare namespace DateInputProps {
|
|
11
37
|
type Ref = InputProps.Ref;
|
|
38
|
+
type Format = DateFormat;
|
|
39
|
+
type InputFormat = EditableDateFormat;
|
|
40
|
+
type Granularity = DateGranularity;
|
|
12
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/date-input/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/date-input/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAEzG,MAAM,WAAW,cAAe,SAAQ,cAAc,EAAE,+BAA+B,EAAE,kBAAkB;IACzG;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;QAGI;IACJ,WAAW,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC;IAEzC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC;IAE/B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC;CAC1C;AAED,yBAAiB,cAAc,CAAC;IAC9B,KAAY,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;IAEjC,KAAY,MAAM,GAAG,UAAU,CAAC;IAEhC,KAAY,WAAW,GAAG,kBAAkB,CAAC;IAE7C,KAAY,WAAW,GAAG,eAAe,CAAC;CAC3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/date-input/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseInputProps, InputProps } from '../input/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { FormFieldValidationControlProps } from '../internal/context/form-field-context';\n\nexport interface DateInputProps extends BaseInputProps, FormFieldValidationControlProps, BaseComponentProps {\n /**\n * The current input value, in YYYY-MM-DD format.\n */\n value: string;\n}\n\nexport namespace DateInputProps {\n export type Ref = InputProps.Ref;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/date-input/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseInputProps, InputProps } from '../input/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { FormFieldValidationControlProps } from '../internal/context/form-field-context';\nimport { DateFormat, DateGranularity, EditableDateFormat } from '../internal/utils/date-time/interfaces';\n\nexport interface DateInputProps extends BaseInputProps, FormFieldValidationControlProps, BaseComponentProps {\n /**\n * The current input value, in YYYY-MM-DD format.\n */\n value: string;\n\n /**\n * Specifies the locale to use to render month names and determine the starting day of the week.\n * If you don't provide this, the locale is determined by the page and browser locales.\n * Supported values and formats are listed in the [JavaScript Intl API specification](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n */\n locale?: string;\n\n /**\n * Specifies the granularity at which users will be able to select a date.\n * Defaults to `day`.\n **/\n granularity?: DateInputProps.Granularity;\n\n /**\n * The format as it is displayed. It can take the following values:\n * * `iso`: ISO 8601 format without time, e.g.: 2024-01-30 (or 2024-01).\n * * `long-localized`: a more human-readable, localized format, e.g.: January 30, 2024 (or January, 2024).\n * * `slashed`: similar to ISO 8601 but with '/' in place of '-'. e.g.: 2024/01/30 (or 2024/01).\n */\n format?: DateInputProps.Format;\n\n /**\n * Specifies the date format to use when the format is 'long-localized' and editing the date.\n * The format of the input as it is being interacted with. It can take the following values:\n * * `iso`: ISO 8601 format without time, e.g.: 2024-01-30 (or 2024-01).\n * * `slashed`: similar to ISO 8601 but with '/' in place of '-'. e.g.: 2024/01/30 (or 2024/01).\n */\n inputFormat?: DateInputProps.InputFormat;\n}\n\nexport namespace DateInputProps {\n export type Ref = InputProps.Ref;\n\n export type Format = DateFormat;\n\n export type InputFormat = EditableDateFormat;\n\n export type Granularity = DateGranularity;\n}\n"]}
|
package/date-input/internal.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CalendarProps } from '../calendar/interfaces';
|
|
3
2
|
import { InternalBaseComponentProps } from '../internal/hooks/use-base-component';
|
|
4
3
|
import { DateInputProps } from './interfaces';
|
|
5
|
-
declare const InternalDateInput: React.ForwardRefExoticComponent<DateInputProps & InternalBaseComponentProps<any> &
|
|
6
|
-
granularity?: CalendarProps.Granularity | undefined;
|
|
7
|
-
} & React.RefAttributes<HTMLInputElement>>;
|
|
4
|
+
declare const InternalDateInput: React.ForwardRefExoticComponent<DateInputProps & InternalBaseComponentProps<any> & React.RefAttributes<import("..").InputProps.Ref>>;
|
|
8
5
|
export default InternalDateInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/date-input/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/date-input/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAM9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAIlF,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAO9C,QAAA,MAAM,iBAAiB,sIAyEtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|