@cloudscape-design/components-themeable 3.0.1360 → 3.0.1362
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/alert/styles.scss +13 -12
- package/lib/internal/scss/badge/styles.scss +38 -49
- package/lib/internal/scss/button/styles.scss +51 -51
- package/lib/internal/scss/cards/styles.scss +4 -0
- package/lib/internal/scss/container/styles.scss +2 -0
- package/lib/internal/scss/icon/hover-motion.scss +24 -12
- package/lib/internal/scss/input/styles.scss +4 -0
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +175 -174
- package/lib/internal/scss/internal/styles/forms/mixins.scss +11 -2
- package/lib/internal/scss/internal/styles/style-api.scss +60 -10
- package/lib/internal/scss/pagination/styles.scss +3 -1
- package/lib/internal/scss/table/styles.scss +5 -0
- package/lib/internal/template/action-card/internal.d.ts.map +1 -1
- package/lib/internal/template/action-card/internal.js +5 -2
- package/lib/internal/template/action-card/internal.js.map +1 -1
- package/lib/internal/template/alert/styles.css.js +27 -27
- package/lib/internal/template/alert/styles.scoped.css +50 -50
- package/lib/internal/template/alert/styles.selectors.js +27 -27
- package/lib/internal/template/annotation-context/annotation/styles.css.js +13 -13
- package/lib/internal/template/annotation-context/annotation/styles.scoped.css +21 -21
- package/lib/internal/template/annotation-context/annotation/styles.selectors.js +13 -13
- package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
- package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
- package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
- package/lib/internal/template/app-layout/toggles/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/toggles/index.js +1 -1
- package/lib/internal/template/app-layout/toggles/index.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +86 -86
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +258 -258
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +86 -86
- package/lib/internal/template/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/trigger-button.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh/trigger-button.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +89 -89
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -6
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +13 -13
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -30
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +68 -68
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js.map +1 -1
- package/lib/internal/template/attribute-editor/styles.css.js +15 -15
- package/lib/internal/template/attribute-editor/styles.scoped.css +28 -28
- package/lib/internal/template/attribute-editor/styles.selectors.js +15 -15
- package/lib/internal/template/breadcrumb-group/all-items-dropdown.js +2 -2
- package/lib/internal/template/breadcrumb-group/all-items-dropdown.js.map +1 -1
- package/lib/internal/template/breadcrumb-group/item/styles.css.js +7 -7
- package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +28 -28
- package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +7 -7
- package/lib/internal/template/button/internal.d.ts.map +1 -1
- package/lib/internal/template/button/internal.js +2 -0
- package/lib/internal/template/button/internal.js.map +1 -1
- package/lib/internal/template/button/styles.css.js +23 -23
- package/lib/internal/template/button/styles.scoped.css +261 -261
- package/lib/internal/template/button/styles.selectors.js +23 -23
- package/lib/internal/template/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/category-elements/expandable-category-element.js +2 -2
- package/lib/internal/template/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
- package/lib/internal/template/button-dropdown/filter.d.ts +1 -1
- package/lib/internal/template/button-dropdown/filter.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/internal.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/internal.js +9 -3
- package/lib/internal/template/button-dropdown/internal.js.map +1 -1
- package/lib/internal/template/button-dropdown/item-element/index.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/item-element/index.js +2 -2
- package/lib/internal/template/button-dropdown/item-element/index.js.map +1 -1
- package/lib/internal/template/button-dropdown/item-element/styles.css.js +21 -21
- package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +37 -37
- package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +21 -21
- package/lib/internal/template/button-dropdown/utils/use-button-dropdown.d.ts +5 -3
- package/lib/internal/template/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/utils/use-button-dropdown.js +14 -2
- package/lib/internal/template/button-dropdown/utils/use-button-dropdown.js.map +1 -1
- package/lib/internal/template/cards/styles.css.js +39 -38
- package/lib/internal/template/cards/styles.scoped.css +42 -39
- package/lib/internal/template/cards/styles.selectors.js +39 -38
- package/lib/internal/template/checkbox/styles.css.js +3 -3
- package/lib/internal/template/checkbox/styles.scoped.css +11 -11
- package/lib/internal/template/checkbox/styles.selectors.js +3 -3
- package/lib/internal/template/code-editor/tab-button.d.ts.map +1 -1
- package/lib/internal/template/code-editor/tab-button.js +1 -1
- package/lib/internal/template/code-editor/tab-button.js.map +1 -1
- package/lib/internal/template/container/styles.css.js +33 -33
- package/lib/internal/template/container/styles.scoped.css +57 -56
- package/lib/internal/template/container/styles.selectors.js +33 -33
- package/lib/internal/template/content-layout/styles.css.js +14 -14
- package/lib/internal/template/content-layout/styles.scoped.css +27 -27
- package/lib/internal/template/content-layout/styles.selectors.js +14 -14
- package/lib/internal/template/dropdown/styles.css.js +20 -20
- package/lib/internal/template/dropdown/styles.scoped.css +49 -49
- package/lib/internal/template/dropdown/styles.selectors.js +20 -20
- package/lib/internal/template/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/lib/internal/template/expandable-section/expandable-section-header.js +13 -7
- package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
- package/lib/internal/template/file-token-group/styles.css.js +23 -23
- package/lib/internal/template/file-token-group/styles.scoped.css +36 -36
- package/lib/internal/template/file-token-group/styles.selectors.js +23 -23
- package/lib/internal/template/flashbar/collapsible-flashbar.d.ts.map +1 -1
- package/lib/internal/template/flashbar/collapsible-flashbar.js +3 -3
- package/lib/internal/template/flashbar/collapsible-flashbar.js.map +1 -1
- package/lib/internal/template/flashbar/styles.css.js +50 -50
- package/lib/internal/template/flashbar/styles.scoped.css +192 -192
- package/lib/internal/template/flashbar/styles.selectors.js +50 -50
- package/lib/internal/template/help-panel/styles.css.js +6 -6
- package/lib/internal/template/help-panel/styles.scoped.css +72 -72
- package/lib/internal/template/help-panel/styles.selectors.js +6 -6
- package/lib/internal/template/input/index.d.ts.map +1 -1
- package/lib/internal/template/input/index.js +3 -2
- package/lib/internal/template/input/index.js.map +1 -1
- package/lib/internal/template/input/interfaces.d.ts +6 -0
- package/lib/internal/template/input/interfaces.d.ts.map +1 -1
- package/lib/internal/template/input/interfaces.js.map +1 -1
- package/lib/internal/template/input/internal.d.ts +0 -1
- package/lib/internal/template/input/internal.d.ts.map +1 -1
- package/lib/internal/template/input/internal.js +26 -12
- package/lib/internal/template/input/internal.js.map +1 -1
- package/lib/internal/template/input/styles.css.js +29 -28
- package/lib/internal/template/input/styles.scoped.css +134 -131
- package/lib/internal/template/input/styles.selectors.js +29 -28
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/button-trigger/index.js +2 -2
- package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
- package/lib/internal/template/internal/components/drag-handle/button.d.ts.map +1 -1
- package/lib/internal/template/internal/components/drag-handle/button.js +3 -1
- package/lib/internal/template/internal/components/drag-handle/button.js.map +1 -1
- package/lib/internal/template/internal/components/drag-handle-wrapper/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/drag-handle-wrapper/index.js +2 -1
- package/lib/internal/template/internal/components/drag-handle-wrapper/index.js.map +1 -1
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.css.js +30 -30
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.scoped.css +58 -58
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
- package/lib/internal/template/internal/components/expand-toggle-button/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/expand-toggle-button/index.js +1 -1
- package/lib/internal/template/internal/components/expand-toggle-button/index.js.map +1 -1
- package/lib/internal/template/internal/components/menu-dropdown/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/menu-dropdown/index.js +1 -1
- package/lib/internal/template/internal/components/menu-dropdown/index.js.map +1 -1
- package/lib/internal/template/internal/components/option/styles.css.js +17 -17
- package/lib/internal/template/internal/components/option/styles.scoped.css +31 -31
- package/lib/internal/template/internal/components/option/styles.selectors.js +17 -17
- package/lib/internal/template/internal/components/radio-button/styles.css.js +7 -7
- package/lib/internal/template/internal/components/radio-button/styles.scoped.css +18 -18
- package/lib/internal/template/internal/components/radio-button/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/selectable-item/styles.css.js +22 -22
- package/lib/internal/template/internal/components/selectable-item/styles.scoped.css +57 -57
- package/lib/internal/template/internal/components/selectable-item/styles.selectors.js +22 -22
- package/lib/internal/template/internal/components/token-list/styles.css.js +10 -10
- package/lib/internal/template/internal/components/token-list/styles.scoped.css +25 -25
- package/lib/internal/template/internal/components/token-list/styles.selectors.js +10 -10
- package/lib/internal/template/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
- package/lib/internal/template/internal/components/token-list/token-limit-toggle.js +2 -2
- package/lib/internal/template/internal/components/token-list/token-limit-toggle.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/custom-css-properties/index.d.ts +1 -0
- package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/lib/internal/template/internal/generated/custom-css-properties/index.js +174 -173
- package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
- package/lib/internal/template/internal/generated/styles/tokens.js +200 -200
- package/lib/internal/template/internal/generated/theming/index.cjs +200 -200
- package/lib/internal/template/internal/generated/theming/index.js +200 -200
- package/lib/internal/template/internal/utils/focus-visible.d.ts +15 -0
- package/lib/internal/template/internal/utils/focus-visible.d.ts.map +1 -0
- package/lib/internal/template/internal/utils/focus-visible.js +21 -0
- package/lib/internal/template/internal/utils/focus-visible.js.map +1 -0
- package/lib/internal/template/item-card/styles.css.js +14 -14
- package/lib/internal/template/item-card/styles.scoped.css +63 -63
- package/lib/internal/template/item-card/styles.selectors.js +14 -14
- package/lib/internal/template/link/internal.d.ts.map +1 -1
- package/lib/internal/template/link/internal.js +2 -0
- 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 +104 -104
- package/lib/internal/template/link/styles.selectors.js +21 -21
- package/lib/internal/template/modal/styles.css.js +31 -31
- package/lib/internal/template/modal/styles.scoped.css +48 -48
- package/lib/internal/template/modal/styles.selectors.js +31 -31
- package/lib/internal/template/pagination/internal.d.ts.map +1 -1
- package/lib/internal/template/pagination/internal.js +4 -4
- package/lib/internal/template/pagination/internal.js.map +1 -1
- package/lib/internal/template/pagination/styles.css.js +12 -12
- package/lib/internal/template/pagination/styles.scoped.css +31 -31
- package/lib/internal/template/pagination/styles.selectors.js +12 -12
- package/lib/internal/template/progress-bar/styles.css.js +19 -19
- package/lib/internal/template/progress-bar/styles.scoped.css +58 -58
- package/lib/internal/template/progress-bar/styles.selectors.js +19 -19
- package/lib/internal/template/prompt-input/styles.css.js +26 -26
- package/lib/internal/template/prompt-input/styles.scoped.css +105 -105
- package/lib/internal/template/prompt-input/styles.selectors.js +26 -26
- package/lib/internal/template/property-filter/filtering-token/index.js +4 -4
- package/lib/internal/template/property-filter/filtering-token/index.js.map +1 -1
- package/lib/internal/template/segmented-control/segment.d.ts.map +1 -1
- package/lib/internal/template/segmented-control/segment.js +1 -1
- package/lib/internal/template/segmented-control/segment.js.map +1 -1
- package/lib/internal/template/segmented-control/styles.css.js +16 -16
- package/lib/internal/template/segmented-control/styles.scoped.css +46 -46
- package/lib/internal/template/segmented-control/styles.selectors.js +16 -16
- package/lib/internal/template/select/parts/filter.d.ts +1 -1
- package/lib/internal/template/select/parts/filter.d.ts.map +1 -1
- package/lib/internal/template/select/parts/styles.css.js +21 -21
- package/lib/internal/template/select/parts/styles.scoped.css +24 -24
- package/lib/internal/template/select/parts/styles.selectors.js +21 -21
- package/lib/internal/template/side-navigation/parts.js +3 -3
- package/lib/internal/template/side-navigation/parts.js.map +1 -1
- package/lib/internal/template/side-navigation/styles.css.js +64 -64
- package/lib/internal/template/side-navigation/styles.scoped.css +111 -111
- package/lib/internal/template/side-navigation/styles.selectors.js +64 -64
- package/lib/internal/template/slider/styles.css.js +26 -26
- package/lib/internal/template/slider/styles.scoped.css +165 -165
- package/lib/internal/template/slider/styles.selectors.js +26 -26
- package/lib/internal/template/spinner/styles.css.js +14 -14
- package/lib/internal/template/spinner/styles.scoped.css +40 -40
- package/lib/internal/template/spinner/styles.selectors.js +14 -14
- package/lib/internal/template/table/header-cell/index.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/index.js +2 -1
- package/lib/internal/template/table/header-cell/index.js.map +1 -1
- package/lib/internal/template/table/styles.css.js +37 -37
- package/lib/internal/template/table/styles.scoped.css +47 -44
- package/lib/internal/template/table/styles.selectors.js +37 -37
- package/lib/internal/template/tabs/styles.css.js +30 -30
- package/lib/internal/template/tabs/styles.scoped.css +76 -76
- package/lib/internal/template/tabs/styles.selectors.js +30 -30
- package/lib/internal/template/tabs/tab-header-bar.d.ts.map +1 -1
- package/lib/internal/template/tabs/tab-header-bar.js +1 -1
- package/lib/internal/template/tabs/tab-header-bar.js.map +1 -1
- package/lib/internal/template/tag-editor/styles.css.js +3 -3
- package/lib/internal/template/tag-editor/styles.scoped.css +13 -13
- package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
- package/lib/internal/template/test-utils/dom/input/index.d.ts +1 -0
- package/lib/internal/template/test-utils/dom/input/index.js +3 -0
- package/lib/internal/template/test-utils/dom/input/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/input/index.d.ts +1 -0
- package/lib/internal/template/test-utils/selectors/input/index.js +3 -0
- package/lib/internal/template/test-utils/selectors/input/index.js.map +1 -1
- package/lib/internal/template/text-content/styles.css.js +1 -1
- package/lib/internal/template/text-content/styles.scoped.css +66 -66
- package/lib/internal/template/text-content/styles.selectors.js +1 -1
- package/lib/internal/template/textarea/styles.css.js +9 -9
- package/lib/internal/template/textarea/styles.scoped.css +51 -51
- package/lib/internal/template/textarea/styles.selectors.js +9 -9
- package/lib/internal/template/toggle/styles.css.js +10 -10
- package/lib/internal/template/toggle/styles.scoped.css +23 -23
- package/lib/internal/template/toggle/styles.selectors.js +10 -10
- package/lib/internal/template/token/dismiss-button.js +2 -2
- package/lib/internal/template/token/dismiss-button.js.map +1 -1
- package/lib/internal/template/token/styles.css.js +14 -14
- package/lib/internal/template/token/styles.scoped.css +46 -46
- package/lib/internal/template/token/styles.selectors.js +14 -14
- package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
- package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.js +5 -5
- package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,178 +1,179 @@
|
|
|
1
1
|
|
|
2
2
|
// Build environment
|
|
3
|
-
$awsui-commit-hash: "
|
|
3
|
+
$awsui-commit-hash: "0fcf5f74";
|
|
4
4
|
// Manually managed CSS-variables
|
|
5
|
-
$maxContentWidth: --awsui-max-content-width-
|
|
6
|
-
$minContentWidth: --awsui-min-content-width-
|
|
7
|
-
$breadcrumbsGap: --awsui-breadcrumbs-gap-
|
|
8
|
-
$contentGapLeft: --awsui-content-gap-left-
|
|
9
|
-
$contentGapRight: --awsui-content-gap-right-
|
|
10
|
-
$contentHeight: --awsui-content-height-
|
|
11
|
-
$contentLayoutDefaultHorizontalPadding: --awsui-content-layout-default-horizontal-padding-
|
|
12
|
-
$contentLayoutMaxContentWidth: --awsui-content-layout-max-content-width-
|
|
13
|
-
$contentLayoutMainGap: --awsui-content-layout-main-gap-
|
|
14
|
-
$defaultMaxContentWidth: --awsui-default-max-content-width-
|
|
15
|
-
$defaultMinContentWidth: --awsui-default-min-content-width-
|
|
16
|
-
$drawerSize: --awsui-drawer-size-
|
|
17
|
-
$drawerMinSize: --awsui-drawer-min-size-
|
|
18
|
-
$bottomDrawerSize: --awsui-bottom-drawer-size-
|
|
19
|
-
$footerHeight: --awsui-footer-height-
|
|
20
|
-
$headerGap: --awsui-header-gap-
|
|
21
|
-
$headerHeight: --awsui-header-height-
|
|
22
|
-
$layoutWidth: --awsui-layout-width-
|
|
23
|
-
$mainGap: --awsui-main-gap-
|
|
24
|
-
$mainOffsetLeft: --awsui-main-offset-left-
|
|
25
|
-
$mainTemplateRows: --awsui-main-template-rows-
|
|
26
|
-
$mobileBarHeight: --awsui-mobile-bar-height-
|
|
27
|
-
$notificationsHeight: --awsui-notifications-height-
|
|
28
|
-
$offsetTop: --awsui-offset-top-
|
|
29
|
-
$overlapHeight: --awsui-overlap-height-
|
|
30
|
-
$navigationWidth: --awsui-navigation-width-
|
|
31
|
-
$navigationCollapsedWidth: --awsui-navigation-collapsed-width-
|
|
32
|
-
$splitPanelReportedHeaderSize: --awsui-split-panel-reported-header-size-
|
|
33
|
-
$splitPanelReportedSize: --awsui-split-panel-reported-size-
|
|
34
|
-
$splitPanelHeight: --awsui-split-panel-height-
|
|
35
|
-
$splitPanelMinWidth: --awsui-split-panel-min-width-
|
|
36
|
-
$splitPanelMaxWidth: --awsui-split-panel-max-width-
|
|
37
|
-
$toolsMaxWidth: --awsui-tools-max-width-
|
|
38
|
-
$toolsWidth: --awsui-tools-width-
|
|
39
|
-
$toolsAnimationStartingOpacity: --awsui-tools-animation-starting-opacity-
|
|
40
|
-
$contentScrollMargin: --awsui-content-scroll-margin-
|
|
41
|
-
$flashbarStackDepth: --awsui-flashbar-stack-depth-
|
|
42
|
-
$flashbarStackIndex: --awsui-flashbar-stack-index-
|
|
43
|
-
$flashbarStickyBottomMargin: --awsui-flashbar-sticky-bottom-margin-
|
|
44
|
-
$stackedNotificationsBottomMargin: --awsui-stacked-notifications-bottom-margin-
|
|
45
|
-
$stackedNotificationsDefaultBottomMargin: --awsui-stacked-notifications-default-bottom-margin-
|
|
46
|
-
$dropdownDefaultMaxWidth: --awsui-dropdown-default-max-width-
|
|
47
|
-
$dropdownDefaultMinWidth: --awsui-dropdown-default-min-width-
|
|
48
|
-
$dropdownContentBorderColor: --awsui-dropdown-content-border-color-
|
|
49
|
-
$dropdownContentBorderWidth: --awsui-dropdown-content-border-width-
|
|
50
|
-
$dropdownContentBorderRadius: --awsui-dropdown-content-border-radius-
|
|
51
|
-
$modalCustomWidth: --awsui-modal-custom-width-
|
|
52
|
-
$modalCustomHeight: --awsui-modal-custom-height-
|
|
53
|
-
$spinnerRotatorFrom: --awsui-spinner-rotator-from-
|
|
54
|
-
$spinnerRotatorTo: --awsui-spinner-rotator-to-
|
|
55
|
-
$spinnerLineLeftFrom: --awsui-spinner-line-left-from-
|
|
56
|
-
$spinnerLineLeftTo: --awsui-spinner-line-left-to-
|
|
57
|
-
$spinnerLineRightFrom: --awsui-spinner-line-right-from-
|
|
58
|
-
$spinnerLineRightTo: --awsui-spinner-line-right-to-
|
|
59
|
-
$sliderLabelCount: --awsui-slider-label-count-
|
|
60
|
-
$sliderTickCount: --awsui-slider-tick-count-
|
|
61
|
-
$sliderReferenceColumn: --awsui-slider-reference-column-
|
|
62
|
-
$sliderNextReferenceColumn: --awsui-slider-next-reference-column-
|
|
63
|
-
$sliderMaxStart: --awsui-slider-max-start-
|
|
64
|
-
$sliderMinEnd: --awsui-slider-min-end-
|
|
65
|
-
$sliderRangeInlineSize: --awsui-slider-range-inline-size-
|
|
66
|
-
$sliderTooltipPosition: --awsui-slider-tooltip-position-
|
|
67
|
-
$togglesLeftWidth: --awsui-toggles-left-width-
|
|
68
|
-
$togglesRightWidth: --awsui-toggles-right-width-
|
|
69
|
-
$promptInputMaxRows: --awsui-prompt-input-max-rows-
|
|
70
|
-
$promptInputScrollHeight: --awsui-prompt-input-scroll-height-
|
|
71
|
-
$dragHandleAnimationInlineOffset: --awsui-drag-handle-animation-inline-offset-
|
|
72
|
-
$dragHandleAnimationBlockOffset: --awsui-drag-handle-animation-block-offset-
|
|
73
|
-
$styleBackgroundActive: --awsui-style-background-active-
|
|
74
|
-
$styleBackgroundDefault: --awsui-style-background-default-
|
|
75
|
-
$styleBackgroundDisabled: --awsui-style-background-disabled-
|
|
76
|
-
$styleBackgroundHover: --awsui-style-background-hover-
|
|
77
|
-
$styleBorderColorActive: --awsui-style-border-color-active-
|
|
78
|
-
$styleBorderColorDefault: --awsui-style-border-color-default-
|
|
79
|
-
$styleBorderColorDisabled: --awsui-style-border-color-disabled-
|
|
80
|
-
$styleBorderColorHover: --awsui-style-border-color-hover-
|
|
81
|
-
$styleColorActive: --awsui-style-color-active-
|
|
82
|
-
$styleColorDefault: --awsui-style-color-default-
|
|
83
|
-
$styleColorDisabled: --awsui-style-color-disabled-
|
|
84
|
-
$styleColorHover: --awsui-style-color-hover-
|
|
85
|
-
$styleFocusRingBorderColor: --awsui-style-focus-ring-border-color-
|
|
86
|
-
$styleFocusRingBorderRadius: --awsui-style-focus-ring-border-radius-
|
|
87
|
-
$styleFocusRingBorderWidth: --awsui-style-focus-ring-border-width-
|
|
88
|
-
$styleFocusRingBoxShadow: --awsui-style-focus-ring-box-shadow-
|
|
89
|
-
$styleBoxShadowActive: --awsui-style-box-shadow-active-
|
|
90
|
-
$styleBoxShadowDefault: --awsui-style-box-shadow-default-
|
|
91
|
-
$styleBoxShadowDisabled: --awsui-style-box-shadow-disabled-
|
|
92
|
-
$styleBoxShadowHover: --awsui-style-box-shadow-hover-
|
|
93
|
-
$styleBackgroundReadonly: --awsui-style-background-readonly-
|
|
94
|
-
$styleBorderColorReadonly: --awsui-style-border-color-readonly-
|
|
95
|
-
$styleBoxShadowReadonly: --awsui-style-box-shadow-readonly-
|
|
96
|
-
$styleColorReadonly: --awsui-style-color-readonly-
|
|
97
|
-
$styleBackgroundFocus: --awsui-style-background-focus-
|
|
98
|
-
$styleBorderColorFocus: --awsui-style-border-color-focus-
|
|
99
|
-
$styleBoxShadowFocus: --awsui-style-box-shadow-focus-
|
|
100
|
-
$styleColorFocus: --awsui-style-color-focus-
|
|
101
|
-
$stylePlaceholderColor: --awsui-style-placeholder-color-
|
|
102
|
-
$stylePlaceholderFontSize: --awsui-style-placeholder-font-size-
|
|
103
|
-
$stylePlaceholderFontStyle: --awsui-style-placeholder-font-style-
|
|
104
|
-
$stylePlaceholderFontWeight: --awsui-style-placeholder-font-weight-
|
|
105
|
-
$styleTabsActiveIndicatorColor: --awsui-style-tabs-active-indicator-color-
|
|
106
|
-
$styleTabsActiveIndicatorWidth: --awsui-style-tabs-active-indicator-width-
|
|
107
|
-
$styleTabsActiveIndicatorBorderRadius: --awsui-style-tabs-active-indicator-border-radius-
|
|
108
|
-
$styleTabsSeparatorColor: --awsui-style-tabs-separator-color-
|
|
109
|
-
$styleTabsSeparatorWidth: --awsui-style-tabs-separator-width-
|
|
110
|
-
$alertFocusRingBorderColor: --awsui-alert-focus-ring-border-color-
|
|
111
|
-
$alertFocusRingBorderRadius: --awsui-alert-focus-ring-border-radius-
|
|
112
|
-
$alertFocusRingBorderWidth: --awsui-alert-focus-ring-border-width-
|
|
113
|
-
$alertFocusRingBoxShadow: --awsui-alert-focus-ring-box-shadow-
|
|
114
|
-
$alertIconColor: --awsui-alert-icon-color-
|
|
115
|
-
$promptInputStyleBackgroundDefault: --awsui-prompt-input-style-background-default-
|
|
116
|
-
$promptInputStyleBackgroundDisabled: --awsui-prompt-input-style-background-disabled-
|
|
117
|
-
$promptInputStyleBackgroundFocus: --awsui-prompt-input-style-background-focus-
|
|
118
|
-
$promptInputStyleBackgroundHover: --awsui-prompt-input-style-background-hover-
|
|
119
|
-
$promptInputStyleBackgroundReadonly: --awsui-prompt-input-style-background-readonly-
|
|
120
|
-
$promptInputStyleBorderColorDefault: --awsui-prompt-input-style-border-color-default-
|
|
121
|
-
$promptInputStyleBorderColorDisabled: --awsui-prompt-input-style-border-color-disabled-
|
|
122
|
-
$promptInputStyleBorderColorFocus: --awsui-prompt-input-style-border-color-focus-
|
|
123
|
-
$promptInputStyleBorderColorHover: --awsui-prompt-input-style-border-color-hover-
|
|
124
|
-
$promptInputStyleBorderColorReadonly: --awsui-prompt-input-style-border-color-readonly-
|
|
125
|
-
$promptInputStyleBoxShadowDefault: --awsui-prompt-input-style-box-shadow-default-
|
|
126
|
-
$promptInputStyleBoxShadowDisabled: --awsui-prompt-input-style-box-shadow-disabled-
|
|
127
|
-
$promptInputStyleBoxShadowFocus: --awsui-prompt-input-style-box-shadow-focus-
|
|
128
|
-
$promptInputStyleBoxShadowHover: --awsui-prompt-input-style-box-shadow-hover-
|
|
129
|
-
$promptInputStyleBoxShadowReadonly: --awsui-prompt-input-style-box-shadow-readonly-
|
|
130
|
-
$promptInputStyleColorDefault: --awsui-prompt-input-style-color-default-
|
|
131
|
-
$promptInputStyleColorDisabled: --awsui-prompt-input-style-color-disabled-
|
|
132
|
-
$promptInputStyleColorFocus: --awsui-prompt-input-style-color-focus-
|
|
133
|
-
$promptInputStyleColorHover: --awsui-prompt-input-style-color-hover-
|
|
134
|
-
$promptInputStyleColorReadonly: --awsui-prompt-input-style-color-readonly-
|
|
135
|
-
$promptInputStylePlaceholderColor: --awsui-prompt-input-style-placeholder-color-
|
|
136
|
-
$promptInputStylePlaceholderFontSize: --awsui-prompt-input-style-placeholder-font-size-
|
|
137
|
-
$promptInputStylePlaceholderFontStyle: --awsui-prompt-input-style-placeholder-font-style-
|
|
138
|
-
$promptInputStylePlaceholderFontWeight: --awsui-prompt-input-style-placeholder-font-weight-
|
|
139
|
-
$promptInputMenuStyleBackgroundColor: --awsui-prompt-input-menu-style-background-color-
|
|
140
|
-
$promptInputMenuStyleBorderColor: --awsui-prompt-input-menu-style-border-color-
|
|
141
|
-
$promptInputMenuStyleBorderRadius: --awsui-prompt-input-menu-style-border-radius-
|
|
142
|
-
$promptInputMenuStyleBorderWidth: --awsui-prompt-input-menu-style-border-width-
|
|
143
|
-
$optionBackgroundDefault: --awsui-option-background-default-
|
|
144
|
-
$optionBackgroundHighlighted: --awsui-option-background-highlighted-
|
|
145
|
-
$optionBackgroundSelected: --awsui-option-background-selected-
|
|
146
|
-
$optionColorDefault: --awsui-option-color-default-
|
|
147
|
-
$optionColorHighlighted: --awsui-option-color-highlighted-
|
|
148
|
-
$optionColorDisabled: --awsui-option-color-disabled-
|
|
149
|
-
$optionGroupLabelColor: --awsui-option-group-label-color-
|
|
150
|
-
$optionFilterMatchBackground: --awsui-option-filter-match-background-
|
|
151
|
-
$optionFilterMatchColor: --awsui-option-filter-match-color-
|
|
152
|
-
$progressBarBackgroundColor: --awsui-progress-bar-background-color-
|
|
153
|
-
$progressBarBorderRadius: --awsui-progress-bar-border-radius-
|
|
154
|
-
$progressBarHeight: --awsui-progress-bar-height-
|
|
155
|
-
$progressValueBackgroundColor: --awsui-progress-value-background-color-
|
|
156
|
-
$styleSliderTrackBackgroundColor: --awsui-style-slider-track-background-color-
|
|
157
|
-
$styleSliderRangeBackgroundDefault: --awsui-style-slider-range-background-default-
|
|
158
|
-
$styleSliderRangeBackgroundActive: --awsui-style-slider-range-background-active-
|
|
159
|
-
$styleSliderHandleBackgroundDefault: --awsui-style-slider-handle-background-default-
|
|
160
|
-
$styleSliderHandleBackgroundHover: --awsui-style-slider-handle-background-hover-
|
|
161
|
-
$styleSliderHandleBackgroundActive: --awsui-style-slider-handle-background-active-
|
|
162
|
-
$styleSliderHandleBorderRadius: --awsui-style-slider-handle-border-radius-
|
|
163
|
-
$tokenStyleBackgroundDefault: --awsui-token-style-background-default-
|
|
164
|
-
$tokenStyleBackgroundDisabled: --awsui-token-style-background-disabled-
|
|
165
|
-
$tokenStyleBackgroundReadOnly: --awsui-token-style-background-read-only-
|
|
166
|
-
$tokenStyleBorderColorDefault: --awsui-token-style-border-color-default-
|
|
167
|
-
$tokenStyleBorderColorDisabled: --awsui-token-style-border-color-disabled-
|
|
168
|
-
$tokenStyleBorderColorReadOnly: --awsui-token-style-border-color-read-only-
|
|
169
|
-
$tokenStyleDismissColorDefault: --awsui-token-style-dismiss-color-default-
|
|
170
|
-
$tokenStyleDismissColorDisabled: --awsui-token-style-dismiss-color-disabled-
|
|
171
|
-
$tokenStyleDismissColorHover: --awsui-token-style-dismiss-color-hover-
|
|
172
|
-
$tokenStyleDismissColorReadOnly: --awsui-token-style-dismiss-color-read-only-
|
|
173
|
-
$styleItemCardBackgroundDefault: --awsui-style-item-card-background-default-
|
|
174
|
-
$styleItemCardBorderColorDefault: --awsui-style-item-card-border-color-default-
|
|
175
|
-
$styleItemCardBorderRadius: --awsui-style-item-card-border-radius-
|
|
176
|
-
$styleItemCardBorderWidthDefault: --awsui-style-item-card-border-width-default-
|
|
177
|
-
$styleItemCardBoxShadowDefault: --awsui-style-item-card-box-shadow-default-
|
|
5
|
+
$maxContentWidth: --awsui-max-content-width-66120l;
|
|
6
|
+
$minContentWidth: --awsui-min-content-width-66120l;
|
|
7
|
+
$breadcrumbsGap: --awsui-breadcrumbs-gap-66120l;
|
|
8
|
+
$contentGapLeft: --awsui-content-gap-left-66120l;
|
|
9
|
+
$contentGapRight: --awsui-content-gap-right-66120l;
|
|
10
|
+
$contentHeight: --awsui-content-height-66120l;
|
|
11
|
+
$contentLayoutDefaultHorizontalPadding: --awsui-content-layout-default-horizontal-padding-66120l;
|
|
12
|
+
$contentLayoutMaxContentWidth: --awsui-content-layout-max-content-width-66120l;
|
|
13
|
+
$contentLayoutMainGap: --awsui-content-layout-main-gap-66120l;
|
|
14
|
+
$defaultMaxContentWidth: --awsui-default-max-content-width-66120l;
|
|
15
|
+
$defaultMinContentWidth: --awsui-default-min-content-width-66120l;
|
|
16
|
+
$drawerSize: --awsui-drawer-size-66120l;
|
|
17
|
+
$drawerMinSize: --awsui-drawer-min-size-66120l;
|
|
18
|
+
$bottomDrawerSize: --awsui-bottom-drawer-size-66120l;
|
|
19
|
+
$footerHeight: --awsui-footer-height-66120l;
|
|
20
|
+
$headerGap: --awsui-header-gap-66120l;
|
|
21
|
+
$headerHeight: --awsui-header-height-66120l;
|
|
22
|
+
$layoutWidth: --awsui-layout-width-66120l;
|
|
23
|
+
$mainGap: --awsui-main-gap-66120l;
|
|
24
|
+
$mainOffsetLeft: --awsui-main-offset-left-66120l;
|
|
25
|
+
$mainTemplateRows: --awsui-main-template-rows-66120l;
|
|
26
|
+
$mobileBarHeight: --awsui-mobile-bar-height-66120l;
|
|
27
|
+
$notificationsHeight: --awsui-notifications-height-66120l;
|
|
28
|
+
$offsetTop: --awsui-offset-top-66120l;
|
|
29
|
+
$overlapHeight: --awsui-overlap-height-66120l;
|
|
30
|
+
$navigationWidth: --awsui-navigation-width-66120l;
|
|
31
|
+
$navigationCollapsedWidth: --awsui-navigation-collapsed-width-66120l;
|
|
32
|
+
$splitPanelReportedHeaderSize: --awsui-split-panel-reported-header-size-66120l;
|
|
33
|
+
$splitPanelReportedSize: --awsui-split-panel-reported-size-66120l;
|
|
34
|
+
$splitPanelHeight: --awsui-split-panel-height-66120l;
|
|
35
|
+
$splitPanelMinWidth: --awsui-split-panel-min-width-66120l;
|
|
36
|
+
$splitPanelMaxWidth: --awsui-split-panel-max-width-66120l;
|
|
37
|
+
$toolsMaxWidth: --awsui-tools-max-width-66120l;
|
|
38
|
+
$toolsWidth: --awsui-tools-width-66120l;
|
|
39
|
+
$toolsAnimationStartingOpacity: --awsui-tools-animation-starting-opacity-66120l;
|
|
40
|
+
$contentScrollMargin: --awsui-content-scroll-margin-66120l;
|
|
41
|
+
$flashbarStackDepth: --awsui-flashbar-stack-depth-66120l;
|
|
42
|
+
$flashbarStackIndex: --awsui-flashbar-stack-index-66120l;
|
|
43
|
+
$flashbarStickyBottomMargin: --awsui-flashbar-sticky-bottom-margin-66120l;
|
|
44
|
+
$stackedNotificationsBottomMargin: --awsui-stacked-notifications-bottom-margin-66120l;
|
|
45
|
+
$stackedNotificationsDefaultBottomMargin: --awsui-stacked-notifications-default-bottom-margin-66120l;
|
|
46
|
+
$dropdownDefaultMaxWidth: --awsui-dropdown-default-max-width-66120l;
|
|
47
|
+
$dropdownDefaultMinWidth: --awsui-dropdown-default-min-width-66120l;
|
|
48
|
+
$dropdownContentBorderColor: --awsui-dropdown-content-border-color-66120l;
|
|
49
|
+
$dropdownContentBorderWidth: --awsui-dropdown-content-border-width-66120l;
|
|
50
|
+
$dropdownContentBorderRadius: --awsui-dropdown-content-border-radius-66120l;
|
|
51
|
+
$modalCustomWidth: --awsui-modal-custom-width-66120l;
|
|
52
|
+
$modalCustomHeight: --awsui-modal-custom-height-66120l;
|
|
53
|
+
$spinnerRotatorFrom: --awsui-spinner-rotator-from-66120l;
|
|
54
|
+
$spinnerRotatorTo: --awsui-spinner-rotator-to-66120l;
|
|
55
|
+
$spinnerLineLeftFrom: --awsui-spinner-line-left-from-66120l;
|
|
56
|
+
$spinnerLineLeftTo: --awsui-spinner-line-left-to-66120l;
|
|
57
|
+
$spinnerLineRightFrom: --awsui-spinner-line-right-from-66120l;
|
|
58
|
+
$spinnerLineRightTo: --awsui-spinner-line-right-to-66120l;
|
|
59
|
+
$sliderLabelCount: --awsui-slider-label-count-66120l;
|
|
60
|
+
$sliderTickCount: --awsui-slider-tick-count-66120l;
|
|
61
|
+
$sliderReferenceColumn: --awsui-slider-reference-column-66120l;
|
|
62
|
+
$sliderNextReferenceColumn: --awsui-slider-next-reference-column-66120l;
|
|
63
|
+
$sliderMaxStart: --awsui-slider-max-start-66120l;
|
|
64
|
+
$sliderMinEnd: --awsui-slider-min-end-66120l;
|
|
65
|
+
$sliderRangeInlineSize: --awsui-slider-range-inline-size-66120l;
|
|
66
|
+
$sliderTooltipPosition: --awsui-slider-tooltip-position-66120l;
|
|
67
|
+
$togglesLeftWidth: --awsui-toggles-left-width-66120l;
|
|
68
|
+
$togglesRightWidth: --awsui-toggles-right-width-66120l;
|
|
69
|
+
$promptInputMaxRows: --awsui-prompt-input-max-rows-66120l;
|
|
70
|
+
$promptInputScrollHeight: --awsui-prompt-input-scroll-height-66120l;
|
|
71
|
+
$dragHandleAnimationInlineOffset: --awsui-drag-handle-animation-inline-offset-66120l;
|
|
72
|
+
$dragHandleAnimationBlockOffset: --awsui-drag-handle-animation-block-offset-66120l;
|
|
73
|
+
$styleBackgroundActive: --awsui-style-background-active-66120l;
|
|
74
|
+
$styleBackgroundDefault: --awsui-style-background-default-66120l;
|
|
75
|
+
$styleBackgroundDisabled: --awsui-style-background-disabled-66120l;
|
|
76
|
+
$styleBackgroundHover: --awsui-style-background-hover-66120l;
|
|
77
|
+
$styleBorderColorActive: --awsui-style-border-color-active-66120l;
|
|
78
|
+
$styleBorderColorDefault: --awsui-style-border-color-default-66120l;
|
|
79
|
+
$styleBorderColorDisabled: --awsui-style-border-color-disabled-66120l;
|
|
80
|
+
$styleBorderColorHover: --awsui-style-border-color-hover-66120l;
|
|
81
|
+
$styleColorActive: --awsui-style-color-active-66120l;
|
|
82
|
+
$styleColorDefault: --awsui-style-color-default-66120l;
|
|
83
|
+
$styleColorDisabled: --awsui-style-color-disabled-66120l;
|
|
84
|
+
$styleColorHover: --awsui-style-color-hover-66120l;
|
|
85
|
+
$styleFocusRingBorderColor: --awsui-style-focus-ring-border-color-66120l;
|
|
86
|
+
$styleFocusRingBorderRadius: --awsui-style-focus-ring-border-radius-66120l;
|
|
87
|
+
$styleFocusRingBorderWidth: --awsui-style-focus-ring-border-width-66120l;
|
|
88
|
+
$styleFocusRingBoxShadow: --awsui-style-focus-ring-box-shadow-66120l;
|
|
89
|
+
$styleBoxShadowActive: --awsui-style-box-shadow-active-66120l;
|
|
90
|
+
$styleBoxShadowDefault: --awsui-style-box-shadow-default-66120l;
|
|
91
|
+
$styleBoxShadowDisabled: --awsui-style-box-shadow-disabled-66120l;
|
|
92
|
+
$styleBoxShadowHover: --awsui-style-box-shadow-hover-66120l;
|
|
93
|
+
$styleBackgroundReadonly: --awsui-style-background-readonly-66120l;
|
|
94
|
+
$styleBorderColorReadonly: --awsui-style-border-color-readonly-66120l;
|
|
95
|
+
$styleBoxShadowReadonly: --awsui-style-box-shadow-readonly-66120l;
|
|
96
|
+
$styleColorReadonly: --awsui-style-color-readonly-66120l;
|
|
97
|
+
$styleBackgroundFocus: --awsui-style-background-focus-66120l;
|
|
98
|
+
$styleBorderColorFocus: --awsui-style-border-color-focus-66120l;
|
|
99
|
+
$styleBoxShadowFocus: --awsui-style-box-shadow-focus-66120l;
|
|
100
|
+
$styleColorFocus: --awsui-style-color-focus-66120l;
|
|
101
|
+
$stylePlaceholderColor: --awsui-style-placeholder-color-66120l;
|
|
102
|
+
$stylePlaceholderFontSize: --awsui-style-placeholder-font-size-66120l;
|
|
103
|
+
$stylePlaceholderFontStyle: --awsui-style-placeholder-font-style-66120l;
|
|
104
|
+
$stylePlaceholderFontWeight: --awsui-style-placeholder-font-weight-66120l;
|
|
105
|
+
$styleTabsActiveIndicatorColor: --awsui-style-tabs-active-indicator-color-66120l;
|
|
106
|
+
$styleTabsActiveIndicatorWidth: --awsui-style-tabs-active-indicator-width-66120l;
|
|
107
|
+
$styleTabsActiveIndicatorBorderRadius: --awsui-style-tabs-active-indicator-border-radius-66120l;
|
|
108
|
+
$styleTabsSeparatorColor: --awsui-style-tabs-separator-color-66120l;
|
|
109
|
+
$styleTabsSeparatorWidth: --awsui-style-tabs-separator-width-66120l;
|
|
110
|
+
$alertFocusRingBorderColor: --awsui-alert-focus-ring-border-color-66120l;
|
|
111
|
+
$alertFocusRingBorderRadius: --awsui-alert-focus-ring-border-radius-66120l;
|
|
112
|
+
$alertFocusRingBorderWidth: --awsui-alert-focus-ring-border-width-66120l;
|
|
113
|
+
$alertFocusRingBoxShadow: --awsui-alert-focus-ring-box-shadow-66120l;
|
|
114
|
+
$alertIconColor: --awsui-alert-icon-color-66120l;
|
|
115
|
+
$promptInputStyleBackgroundDefault: --awsui-prompt-input-style-background-default-66120l;
|
|
116
|
+
$promptInputStyleBackgroundDisabled: --awsui-prompt-input-style-background-disabled-66120l;
|
|
117
|
+
$promptInputStyleBackgroundFocus: --awsui-prompt-input-style-background-focus-66120l;
|
|
118
|
+
$promptInputStyleBackgroundHover: --awsui-prompt-input-style-background-hover-66120l;
|
|
119
|
+
$promptInputStyleBackgroundReadonly: --awsui-prompt-input-style-background-readonly-66120l;
|
|
120
|
+
$promptInputStyleBorderColorDefault: --awsui-prompt-input-style-border-color-default-66120l;
|
|
121
|
+
$promptInputStyleBorderColorDisabled: --awsui-prompt-input-style-border-color-disabled-66120l;
|
|
122
|
+
$promptInputStyleBorderColorFocus: --awsui-prompt-input-style-border-color-focus-66120l;
|
|
123
|
+
$promptInputStyleBorderColorHover: --awsui-prompt-input-style-border-color-hover-66120l;
|
|
124
|
+
$promptInputStyleBorderColorReadonly: --awsui-prompt-input-style-border-color-readonly-66120l;
|
|
125
|
+
$promptInputStyleBoxShadowDefault: --awsui-prompt-input-style-box-shadow-default-66120l;
|
|
126
|
+
$promptInputStyleBoxShadowDisabled: --awsui-prompt-input-style-box-shadow-disabled-66120l;
|
|
127
|
+
$promptInputStyleBoxShadowFocus: --awsui-prompt-input-style-box-shadow-focus-66120l;
|
|
128
|
+
$promptInputStyleBoxShadowHover: --awsui-prompt-input-style-box-shadow-hover-66120l;
|
|
129
|
+
$promptInputStyleBoxShadowReadonly: --awsui-prompt-input-style-box-shadow-readonly-66120l;
|
|
130
|
+
$promptInputStyleColorDefault: --awsui-prompt-input-style-color-default-66120l;
|
|
131
|
+
$promptInputStyleColorDisabled: --awsui-prompt-input-style-color-disabled-66120l;
|
|
132
|
+
$promptInputStyleColorFocus: --awsui-prompt-input-style-color-focus-66120l;
|
|
133
|
+
$promptInputStyleColorHover: --awsui-prompt-input-style-color-hover-66120l;
|
|
134
|
+
$promptInputStyleColorReadonly: --awsui-prompt-input-style-color-readonly-66120l;
|
|
135
|
+
$promptInputStylePlaceholderColor: --awsui-prompt-input-style-placeholder-color-66120l;
|
|
136
|
+
$promptInputStylePlaceholderFontSize: --awsui-prompt-input-style-placeholder-font-size-66120l;
|
|
137
|
+
$promptInputStylePlaceholderFontStyle: --awsui-prompt-input-style-placeholder-font-style-66120l;
|
|
138
|
+
$promptInputStylePlaceholderFontWeight: --awsui-prompt-input-style-placeholder-font-weight-66120l;
|
|
139
|
+
$promptInputMenuStyleBackgroundColor: --awsui-prompt-input-menu-style-background-color-66120l;
|
|
140
|
+
$promptInputMenuStyleBorderColor: --awsui-prompt-input-menu-style-border-color-66120l;
|
|
141
|
+
$promptInputMenuStyleBorderRadius: --awsui-prompt-input-menu-style-border-radius-66120l;
|
|
142
|
+
$promptInputMenuStyleBorderWidth: --awsui-prompt-input-menu-style-border-width-66120l;
|
|
143
|
+
$optionBackgroundDefault: --awsui-option-background-default-66120l;
|
|
144
|
+
$optionBackgroundHighlighted: --awsui-option-background-highlighted-66120l;
|
|
145
|
+
$optionBackgroundSelected: --awsui-option-background-selected-66120l;
|
|
146
|
+
$optionColorDefault: --awsui-option-color-default-66120l;
|
|
147
|
+
$optionColorHighlighted: --awsui-option-color-highlighted-66120l;
|
|
148
|
+
$optionColorDisabled: --awsui-option-color-disabled-66120l;
|
|
149
|
+
$optionGroupLabelColor: --awsui-option-group-label-color-66120l;
|
|
150
|
+
$optionFilterMatchBackground: --awsui-option-filter-match-background-66120l;
|
|
151
|
+
$optionFilterMatchColor: --awsui-option-filter-match-color-66120l;
|
|
152
|
+
$progressBarBackgroundColor: --awsui-progress-bar-background-color-66120l;
|
|
153
|
+
$progressBarBorderRadius: --awsui-progress-bar-border-radius-66120l;
|
|
154
|
+
$progressBarHeight: --awsui-progress-bar-height-66120l;
|
|
155
|
+
$progressValueBackgroundColor: --awsui-progress-value-background-color-66120l;
|
|
156
|
+
$styleSliderTrackBackgroundColor: --awsui-style-slider-track-background-color-66120l;
|
|
157
|
+
$styleSliderRangeBackgroundDefault: --awsui-style-slider-range-background-default-66120l;
|
|
158
|
+
$styleSliderRangeBackgroundActive: --awsui-style-slider-range-background-active-66120l;
|
|
159
|
+
$styleSliderHandleBackgroundDefault: --awsui-style-slider-handle-background-default-66120l;
|
|
160
|
+
$styleSliderHandleBackgroundHover: --awsui-style-slider-handle-background-hover-66120l;
|
|
161
|
+
$styleSliderHandleBackgroundActive: --awsui-style-slider-handle-background-active-66120l;
|
|
162
|
+
$styleSliderHandleBorderRadius: --awsui-style-slider-handle-border-radius-66120l;
|
|
163
|
+
$tokenStyleBackgroundDefault: --awsui-token-style-background-default-66120l;
|
|
164
|
+
$tokenStyleBackgroundDisabled: --awsui-token-style-background-disabled-66120l;
|
|
165
|
+
$tokenStyleBackgroundReadOnly: --awsui-token-style-background-read-only-66120l;
|
|
166
|
+
$tokenStyleBorderColorDefault: --awsui-token-style-border-color-default-66120l;
|
|
167
|
+
$tokenStyleBorderColorDisabled: --awsui-token-style-border-color-disabled-66120l;
|
|
168
|
+
$tokenStyleBorderColorReadOnly: --awsui-token-style-border-color-read-only-66120l;
|
|
169
|
+
$tokenStyleDismissColorDefault: --awsui-token-style-dismiss-color-default-66120l;
|
|
170
|
+
$tokenStyleDismissColorDisabled: --awsui-token-style-dismiss-color-disabled-66120l;
|
|
171
|
+
$tokenStyleDismissColorHover: --awsui-token-style-dismiss-color-hover-66120l;
|
|
172
|
+
$tokenStyleDismissColorReadOnly: --awsui-token-style-dismiss-color-read-only-66120l;
|
|
173
|
+
$styleItemCardBackgroundDefault: --awsui-style-item-card-background-default-66120l;
|
|
174
|
+
$styleItemCardBorderColorDefault: --awsui-style-item-card-border-color-default-66120l;
|
|
175
|
+
$styleItemCardBorderRadius: --awsui-style-item-card-border-radius-66120l;
|
|
176
|
+
$styleItemCardBorderWidthDefault: --awsui-style-item-card-border-width-default-66120l;
|
|
177
|
+
$styleItemCardBoxShadowDefault: --awsui-style-item-card-box-shadow-default-66120l;
|
|
178
|
+
$inlineLabelBackgroundColor: --awsui-inline-label-background-color-66120l;
|
|
178
179
|
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
@use '../foundation' as foundation;
|
|
9
9
|
@use '../utils' as utils;
|
|
10
10
|
@use './constants' as constants;
|
|
11
|
+
@use '../../generated/custom-css-properties/index.scss' as custom-props;
|
|
11
12
|
|
|
12
13
|
@mixin link-focus(
|
|
13
14
|
$border-color: awsui.$color-border-item-focused,
|
|
@@ -329,7 +330,11 @@ $inline-label-border-radius: 2px;
|
|
|
329
330
|
}
|
|
330
331
|
|
|
331
332
|
@mixin inline-label {
|
|
332
|
-
background: linear-gradient(
|
|
333
|
+
background: linear-gradient(
|
|
334
|
+
to bottom,
|
|
335
|
+
var(#{custom-props.$inlineLabelBackgroundColor}, awsui.$color-background-layout-main),
|
|
336
|
+
awsui.$color-background-input-default
|
|
337
|
+
);
|
|
333
338
|
border-start-start-radius: $inline-label-border-radius;
|
|
334
339
|
border-start-end-radius: $inline-label-border-radius;
|
|
335
340
|
border-end-start-radius: $inline-label-border-radius;
|
|
@@ -351,5 +356,9 @@ $inline-label-border-radius: 2px;
|
|
|
351
356
|
}
|
|
352
357
|
|
|
353
358
|
@mixin inline-label-disabled {
|
|
354
|
-
background: linear-gradient(
|
|
359
|
+
background: linear-gradient(
|
|
360
|
+
to bottom,
|
|
361
|
+
var(#{custom-props.$inlineLabelBackgroundColor}, awsui.$color-background-layout-main),
|
|
362
|
+
awsui.$color-background-input-disabled
|
|
363
|
+
);
|
|
355
364
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
|
-
@forward '@cloudscape-design/component-toolkit/internal/style-api';
|
|
4
|
+
@forward '@cloudscape-design/component-toolkit/internal/style-api' show combine, resolve;
|
|
5
5
|
|
|
6
6
|
@use '@cloudscape-design/component-toolkit/internal/style-api' as toolkit;
|
|
7
|
+
@use 'awsui:environment' as env;
|
|
7
8
|
@use './tokens' as awsui;
|
|
8
9
|
@use './foundation' as foundation;
|
|
9
10
|
@use './forms/mixins' as forms;
|
|
@@ -23,6 +24,44 @@ $focus-ring: (focus-ring-color, focus-ring-width, focus-ring-radius, focus-ring-
|
|
|
23
24
|
// carriers (re-anchored by carriers() on the component root), so the ring below reaches ::before.
|
|
24
25
|
$_focus-ring-carriers: toolkit.resolve($focus-ring, carrier);
|
|
25
26
|
|
|
27
|
+
@function enabled() {
|
|
28
|
+
@return env.$system != 'console';
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Emits `var(<carrier>, <fallback>)` when enabled, or just `<fallback>` when disabled — so a read
|
|
32
|
+
// leaves no trace in the compiled CSS for gated-off systems.
|
|
33
|
+
@function value($tokens, $token, $fallback) {
|
|
34
|
+
@if not enabled() {
|
|
35
|
+
@return $fallback;
|
|
36
|
+
}
|
|
37
|
+
@return var(#{toolkit.read($tokens, $token)}, #{$fallback});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Gated wrappers around the toolkit's CSS-emitting mixins — same signatures, no-op when disabled.
|
|
41
|
+
@mixin register($maps...) {
|
|
42
|
+
@if enabled() {
|
|
43
|
+
@include toolkit.register($maps...);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@mixin carriers($map) {
|
|
48
|
+
@if enabled() {
|
|
49
|
+
@include toolkit.carriers($map);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@mixin docs($name, $map) {
|
|
54
|
+
@if enabled() {
|
|
55
|
+
@include toolkit.docs($name, $map);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@mixin docs-forward($name, $component, $slot) {
|
|
60
|
+
@if enabled() {
|
|
61
|
+
@include toolkit.docs-forward($name, $component, $slot);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
26
65
|
// A wrapper for forms.focus-highlight with style API integration.
|
|
27
66
|
@mixin focus-highlight(
|
|
28
67
|
$gutter-block: awsui.$space-button-focus-outline-gutter,
|
|
@@ -31,13 +70,24 @@ $_focus-ring-carriers: toolkit.resolve($focus-ring, carrier);
|
|
|
31
70
|
$width: foundation.$box-shadow-focused-width,
|
|
32
71
|
$color: awsui.$color-border-item-focused
|
|
33
72
|
) {
|
|
34
|
-
@
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
var(#{toolkit.read($_focus-ring-carriers, focus-ring-
|
|
42
|
-
|
|
73
|
+
@if enabled() {
|
|
74
|
+
@include forms.focus-highlight(
|
|
75
|
+
$gutter: (
|
|
76
|
+
'vertical': var(#{toolkit.read($_focus-ring-carriers, focus-ring-gutter-block)}, #{$gutter-block}),
|
|
77
|
+
'horizontal': var(#{toolkit.read($_focus-ring-carriers, focus-ring-gutter-inline)}, #{$gutter-inline}),
|
|
78
|
+
),
|
|
79
|
+
$border-radius: var(#{toolkit.read($_focus-ring-carriers, focus-ring-radius)}, #{$radius}),
|
|
80
|
+
$box-shadow: 0 0 0 var(#{toolkit.read($_focus-ring-carriers, focus-ring-width)}, #{$width})
|
|
81
|
+
var(#{toolkit.read($_focus-ring-carriers, focus-ring-color)}, #{$color})
|
|
82
|
+
);
|
|
83
|
+
} @else {
|
|
84
|
+
@include forms.focus-highlight(
|
|
85
|
+
$gutter: (
|
|
86
|
+
'vertical': $gutter-block,
|
|
87
|
+
'horizontal': $gutter-inline,
|
|
88
|
+
),
|
|
89
|
+
$border-radius: $radius,
|
|
90
|
+
$box-shadow: 0 0 0 $width $color
|
|
91
|
+
);
|
|
92
|
+
}
|
|
43
93
|
}
|
|
@@ -89,7 +89,9 @@
|
|
|
89
89
|
|
|
90
90
|
&-input {
|
|
91
91
|
inline-size: 87px;
|
|
92
|
-
|
|
92
|
+
// This element contains the inline label and the HTML input element.
|
|
93
|
+
// Push it upwards to let the HTML input element look vertically centered.
|
|
94
|
+
margin-block-start: calc(-2 * #{awsui.$space-scaled-xs});
|
|
93
95
|
overflow: visible;
|
|
94
96
|
}
|
|
95
97
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
@use '../internal/styles/tokens' as awsui;
|
|
8
8
|
@use '@cloudscape-design/component-toolkit/internal/focus-visible' as focus-visible;
|
|
9
9
|
@use '../container/shared' as container;
|
|
10
|
+
@use '../internal/generated/custom-css-properties/index.scss' as custom-props;
|
|
10
11
|
|
|
11
12
|
.root {
|
|
12
13
|
@include styles.default-text-style;
|
|
@@ -194,6 +195,10 @@ filter search icon.
|
|
|
194
195
|
.header-controls {
|
|
195
196
|
padding-block: awsui.$space-container-header-top awsui.$space-container-header-bottom;
|
|
196
197
|
|
|
198
|
+
&:not(.variant-full-page) {
|
|
199
|
+
#{custom-props.$inlineLabelBackgroundColor}: awsui.$color-background-table-header;
|
|
200
|
+
}
|
|
201
|
+
|
|
197
202
|
&.variant-full-page {
|
|
198
203
|
padding-block: 0 calc(#{awsui.$space-container-header-bottom} + #{awsui.$space-table-header-tools-full-page-bottom});
|
|
199
204
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/action-card/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAStC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAK/C,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG,0BAA0B,CAAC;AAEnF,QAAA,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/action-card/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAStC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAK/C,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG,0BAA0B,CAAC;AAEnF,QAAA,MAAM,kBAAkB,0HAqOvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -35,7 +35,7 @@ const InternalActionCard = React.forwardRef(({ header, description, children, on
|
|
|
35
35
|
fireCancelableEvent(onClick, {}, event);
|
|
36
36
|
};
|
|
37
37
|
const headerRowEmpty = !header && !description;
|
|
38
|
-
const iconWrapper = icon && (React.createElement("div", { className: clsx(styles.icon, testStyles.icon), "aria-hidden": "true" }, icon));
|
|
38
|
+
const iconWrapper = icon && (React.createElement("div", { className: clsx(styles.icon, testStyles.icon), "aria-hidden": "true", "data-awsui-motion-target": "" }, icon));
|
|
39
39
|
const iconInHeaderRow = icon && iconVerticalAlignment === 'top' && !!header;
|
|
40
40
|
const mergedRootRef = useMergeRefs(rootRef, __internalRootRef);
|
|
41
41
|
// Link the description element as the button's accessible description
|
|
@@ -49,6 +49,9 @@ const InternalActionCard = React.forwardRef(({ header, description, children, on
|
|
|
49
49
|
onClick: handleButtonClick,
|
|
50
50
|
'aria-describedby': ariaDescribedby,
|
|
51
51
|
'aria-disabled': disabled || undefined,
|
|
52
|
+
// The hover region is the whole card (see the root element); focusing
|
|
53
|
+
// the inner control also plays the motion.
|
|
54
|
+
'data-awsui-motion-trigger': 'focus',
|
|
52
55
|
};
|
|
53
56
|
// <a>-tag specific props
|
|
54
57
|
const anchorProps = {
|
|
@@ -88,7 +91,7 @@ const InternalActionCard = React.forwardRef(({ header, description, children, on
|
|
|
88
91
|
headerSection,
|
|
89
92
|
iconWrapper)) : (headerSection),
|
|
90
93
|
children && (React.createElement("div", { className: clsx(styles.body, testStyles.body, disableContentPaddings && styles['no-padding']), id: bodyId }, children))));
|
|
91
|
-
return (React.createElement("div", { ...baseProps, ref: mergedRootRef, role: "group", "aria-labelledby": header ? headerId : standaloneButtonId, className: clsx(styles.root, styles[`variant-${variant}`], disabled && styles.disabled, disabled && testStyles.disabled, !!icon && styles['has-icon'], !!icon && styles['icon-align-end'], !!icon && styles[`icon-vertical-align-${iconVerticalAlignment}`], baseProps.className), "aria-disabled": disabled || undefined },
|
|
94
|
+
return (React.createElement("div", { ...baseProps, ref: mergedRootRef, role: "group", "aria-labelledby": header ? headerId : standaloneButtonId, className: clsx(styles.root, styles[`variant-${variant}`], disabled && styles.disabled, disabled && testStyles.disabled, !!icon && styles['has-icon'], !!icon && styles['icon-align-end'], !!icon && styles[`icon-vertical-align-${iconVerticalAlignment}`], baseProps.className), "aria-disabled": disabled || undefined, "data-awsui-motion-trigger": "hover" },
|
|
92
95
|
standaloneButton,
|
|
93
96
|
contentElement,
|
|
94
97
|
!iconInHeaderRow && iconWrapper));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/action-card/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,Q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["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useUniqueId, warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { getBaseProps } from '../internal/base-component';\nimport InternalStructuredItem from '../internal/components/structured-item';\nimport { fireCancelableEvent, isPlainLeftClick } from '../internal/events';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { checkSafeUrl } from '../internal/utils/check-safe-url';\nimport WithNativeAttributes from '../internal/utils/with-native-attributes';\nimport { ActionCardProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testStyles from './test-classes/styles.css.js';\n\nexport type InternalActionCardProps = ActionCardProps & InternalBaseComponentProps;\n\nconst InternalActionCard = React.forwardRef(\n (\n {\n header,\n description,\n children,\n onClick,\n onFollow,\n href,\n target,\n rel,\n download,\n ariaLabel,\n ariaDescribedby,\n disabled,\n disableHeaderPaddings,\n disableContentPaddings,\n icon,\n iconVerticalAlignment,\n variant,\n nativeButtonAttributes,\n nativeAnchorAttributes,\n __internalRootRef,\n ...rest\n }: InternalActionCardProps,\n ref: React.Ref<ActionCardProps.Ref>\n ) => {\n const baseProps = getBaseProps(rest);\n const containerRef = useRef<HTMLButtonElement | HTMLAnchorElement>(null);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerId = useUniqueId('action-card-header-');\n const standaloneButtonId = useUniqueId('action-card-button-');\n const descriptionId = useUniqueId('action-card-description-');\n const bodyId = useUniqueId('action-card-body-');\n\n useForwardFocus(ref, containerRef);\n\n checkSafeUrl('ActionCard', href);\n const isAnchor = Boolean(href);\n\n if (!header && !ariaLabel) {\n warnOnce(\n 'ActionCard',\n 'An accessible name is required. Provide either a `header` or an `ariaLabel` prop so the action card has a meaningful label for screen reader users.'\n );\n }\n\n const handleButtonClick = (event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => {\n if (disabled) {\n return event.preventDefault();\n }\n if (isAnchor && isPlainLeftClick(event)) {\n fireCancelableEvent(onFollow, { href, target }, event);\n }\n fireCancelableEvent(onClick, {}, event);\n };\n\n const headerRowEmpty = !header && !description;\n\n const iconWrapper = icon && (\n <div className={clsx(styles.icon, testStyles.icon)} aria-hidden=\"true\">\n {icon}\n </div>\n );\n const iconInHeaderRow = icon && iconVerticalAlignment === 'top' && !!header;\n\n const mergedRootRef = useMergeRefs(rootRef, __internalRootRef);\n\n // Link the description element as the button's accessible description\n // when the button already has a name (via header text or ariaLabel).\n if (!ariaDescribedby && description && (ariaLabel || header)) {\n ariaDescribedby = descriptionId;\n }\n\n // Shared props between <a>-tag and <button>-tag\n const interactiveProps = {\n className: clsx(\n styles['header-button'],\n testStyles.button,\n disabled && styles.disabled,\n variant && styles[`variant-${variant}`]\n ),\n onClick: handleButtonClick,\n 'aria-describedby': ariaDescribedby,\n 'aria-disabled': disabled || undefined,\n };\n\n // <a>-tag specific props\n const anchorProps = {\n href: disabled ? undefined : href,\n role: disabled ? 'link' : undefined,\n tabIndex: disabled ? 0 : undefined,\n target,\n // security recommendation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target\n rel: rel ?? (target === '_blank' ? 'noopener noreferrer' : undefined),\n download,\n };\n\n const renderInteractiveElement = (props: Record<string, unknown>, children?: React.ReactNode) =>\n isAnchor ? (\n <WithNativeAttributes<HTMLAnchorElement, React.AnchorHTMLAttributes<HTMLAnchorElement>>\n {...props}\n {...anchorProps}\n tag=\"a\"\n componentName=\"ActionCard\"\n nativeAttributes={nativeAnchorAttributes}\n ref={containerRef as React.Ref<HTMLAnchorElement>}\n >\n {children}\n </WithNativeAttributes>\n ) : (\n <WithNativeAttributes<HTMLButtonElement, React.ButtonHTMLAttributes<HTMLButtonElement>>\n {...props}\n type=\"button\"\n tag=\"button\"\n componentName=\"ActionCard\"\n nativeAttributes={nativeButtonAttributes}\n ref={containerRef as React.Ref<HTMLButtonElement>}\n >\n {children}\n </WithNativeAttributes>\n );\n\n const headerSection = !headerRowEmpty ? (\n <div className={clsx(styles.header, disableHeaderPaddings && styles['no-padding'])}>\n <InternalStructuredItem\n content={\n header && (\n <div className={clsx(styles['header-inner'], testStyles.header, disabled && styles.disabled)}>\n {renderInteractiveElement({ ...interactiveProps, id: headerId }, header)}\n </div>\n )\n }\n secondaryContent={\n description && (\n <div\n id={descriptionId}\n className={clsx(\n styles.description,\n testStyles.description,\n disabled && styles.disabled,\n header && styles['has-header']\n )}\n >\n {description}\n </div>\n )\n }\n disablePaddings={disableHeaderPaddings}\n />\n </div>\n ) : null;\n\n // When there's no header, a standalone overlay button is rendered.\n // If ariaLabel is provided, it's used directly. Otherwise, derive the button's\n // accessible name from the first available content: description or children.\n let standaloneButtonLabelledBy: string | undefined;\n if (!ariaLabel) {\n if (description) {\n standaloneButtonLabelledBy = descriptionId;\n } else if (children) {\n standaloneButtonLabelledBy = bodyId;\n }\n }\n\n const standaloneOverlayProps = {\n ...interactiveProps,\n id: standaloneButtonId,\n className: clsx(\n styles['overlay-button'],\n testStyles.button,\n disabled && styles.disabled,\n variant && styles[`variant-${variant}`]\n ),\n 'aria-label': ariaLabel || undefined,\n 'aria-labelledby': standaloneButtonLabelledBy,\n };\n\n const standaloneButton = !header ? renderInteractiveElement(standaloneOverlayProps) : null;\n\n const contentElement = (\n <div className={styles['inner-card']}>\n {iconInHeaderRow ? (\n <div className={styles['header-row']}>\n {headerSection}\n {iconWrapper}\n </div>\n ) : (\n headerSection\n )}\n {children && (\n <div\n className={clsx(styles.body, testStyles.body, disableContentPaddings && styles['no-padding'])}\n id={bodyId}\n >\n {children}\n </div>\n )}\n </div>\n );\n\n return (\n <div\n {...baseProps}\n ref={mergedRootRef}\n role=\"group\"\n aria-labelledby={header ? headerId : standaloneButtonId}\n className={clsx(\n styles.root,\n styles[`variant-${variant}`],\n disabled && styles.disabled,\n disabled && testStyles.disabled,\n !!icon && styles['has-icon'],\n !!icon && styles['icon-align-end'],\n !!icon && styles[`icon-vertical-align-${iconVerticalAlignment}`],\n baseProps.className\n )}\n aria-disabled={disabled || undefined}\n >\n {standaloneButton}\n {contentElement}\n {!iconInHeaderRow && iconWrapper}\n </div>\n );\n }\n);\n\nexport default InternalActionCard;\n"]}
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/action-card/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEpG,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,sBAAsB,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,eAAe,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,oBAAoB,MAAM,0CAA0C,CAAC;AAG5E,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,UAAU,MAAM,8BAA8B,CAAC;AAItD,MAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CACzC,CACE,EACE,MAAM,EACN,WAAW,EACX,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,GAAG,EACH,QAAQ,EACR,SAAS,EACT,eAAe,EACf,QAAQ,EACR,qBAAqB,EACrB,sBAAsB,EACtB,IAAI,EACJ,qBAAqB,EACrB,OAAO,EACP,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,GAAG,IAAI,EACiB,EAC1B,GAAmC,EACnC,EAAE;IACF,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAC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,EACX,MAAM,CAAC,WAAW,OAAO,EAAE,CAAC,EAC5B,QAAQ,IAAI,MAAM,CAAC,QAAQ,EAC3B,QAAQ,IAAI,UAAU,CAAC,QAAQ,EAC/B,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,EAC5B,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,gBAAgB,CAAC,EAClC,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,uBAAuB,qBAAqB,EAAE,CAAC,EAChE,SAAS,CAAC,SAAS,CACpB,mBACc,QAAQ,IAAI,SAAS,+BACV,OAAO;QAEhC,gBAAgB;QAChB,cAAc;QACd,CAAC,eAAe,IAAI,WAAW,CAC5B,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,kBAAkB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useUniqueId, warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { getBaseProps } from '../internal/base-component';\nimport InternalStructuredItem from '../internal/components/structured-item';\nimport { fireCancelableEvent, isPlainLeftClick } from '../internal/events';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { checkSafeUrl } from '../internal/utils/check-safe-url';\nimport WithNativeAttributes from '../internal/utils/with-native-attributes';\nimport { ActionCardProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testStyles from './test-classes/styles.css.js';\n\nexport type InternalActionCardProps = ActionCardProps & InternalBaseComponentProps;\n\nconst InternalActionCard = React.forwardRef(\n (\n {\n header,\n description,\n children,\n onClick,\n onFollow,\n href,\n target,\n rel,\n download,\n ariaLabel,\n ariaDescribedby,\n disabled,\n disableHeaderPaddings,\n disableContentPaddings,\n icon,\n iconVerticalAlignment,\n variant,\n nativeButtonAttributes,\n nativeAnchorAttributes,\n __internalRootRef,\n ...rest\n }: InternalActionCardProps,\n ref: React.Ref<ActionCardProps.Ref>\n ) => {\n const baseProps = getBaseProps(rest);\n const containerRef = useRef<HTMLButtonElement | HTMLAnchorElement>(null);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerId = useUniqueId('action-card-header-');\n const standaloneButtonId = useUniqueId('action-card-button-');\n const descriptionId = useUniqueId('action-card-description-');\n const bodyId = useUniqueId('action-card-body-');\n\n useForwardFocus(ref, containerRef);\n\n checkSafeUrl('ActionCard', href);\n const isAnchor = Boolean(href);\n\n if (!header && !ariaLabel) {\n warnOnce(\n 'ActionCard',\n 'An accessible name is required. Provide either a `header` or an `ariaLabel` prop so the action card has a meaningful label for screen reader users.'\n );\n }\n\n const handleButtonClick = (event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => {\n if (disabled) {\n return event.preventDefault();\n }\n if (isAnchor && isPlainLeftClick(event)) {\n fireCancelableEvent(onFollow, { href, target }, event);\n }\n fireCancelableEvent(onClick, {}, event);\n };\n\n const headerRowEmpty = !header && !description;\n\n const iconWrapper = icon && (\n <div className={clsx(styles.icon, testStyles.icon)} aria-hidden=\"true\" data-awsui-motion-target=\"\">\n {icon}\n </div>\n );\n const iconInHeaderRow = icon && iconVerticalAlignment === 'top' && !!header;\n\n const mergedRootRef = useMergeRefs(rootRef, __internalRootRef);\n\n // Link the description element as the button's accessible description\n // when the button already has a name (via header text or ariaLabel).\n if (!ariaDescribedby && description && (ariaLabel || header)) {\n ariaDescribedby = descriptionId;\n }\n\n // Shared props between <a>-tag and <button>-tag\n const interactiveProps = {\n className: clsx(\n styles['header-button'],\n testStyles.button,\n disabled && styles.disabled,\n variant && styles[`variant-${variant}`]\n ),\n onClick: handleButtonClick,\n 'aria-describedby': ariaDescribedby,\n 'aria-disabled': disabled || undefined,\n // The hover region is the whole card (see the root element); focusing\n // the inner control also plays the motion.\n 'data-awsui-motion-trigger': 'focus',\n };\n\n // <a>-tag specific props\n const anchorProps = {\n href: disabled ? undefined : href,\n role: disabled ? 'link' : undefined,\n tabIndex: disabled ? 0 : undefined,\n target,\n // security recommendation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target\n rel: rel ?? (target === '_blank' ? 'noopener noreferrer' : undefined),\n download,\n };\n\n const renderInteractiveElement = (props: Record<string, unknown>, children?: React.ReactNode) =>\n isAnchor ? (\n <WithNativeAttributes<HTMLAnchorElement, React.AnchorHTMLAttributes<HTMLAnchorElement>>\n {...props}\n {...anchorProps}\n tag=\"a\"\n componentName=\"ActionCard\"\n nativeAttributes={nativeAnchorAttributes}\n ref={containerRef as React.Ref<HTMLAnchorElement>}\n >\n {children}\n </WithNativeAttributes>\n ) : (\n <WithNativeAttributes<HTMLButtonElement, React.ButtonHTMLAttributes<HTMLButtonElement>>\n {...props}\n type=\"button\"\n tag=\"button\"\n componentName=\"ActionCard\"\n nativeAttributes={nativeButtonAttributes}\n ref={containerRef as React.Ref<HTMLButtonElement>}\n >\n {children}\n </WithNativeAttributes>\n );\n\n const headerSection = !headerRowEmpty ? (\n <div className={clsx(styles.header, disableHeaderPaddings && styles['no-padding'])}>\n <InternalStructuredItem\n content={\n header && (\n <div className={clsx(styles['header-inner'], testStyles.header, disabled && styles.disabled)}>\n {renderInteractiveElement({ ...interactiveProps, id: headerId }, header)}\n </div>\n )\n }\n secondaryContent={\n description && (\n <div\n id={descriptionId}\n className={clsx(\n styles.description,\n testStyles.description,\n disabled && styles.disabled,\n header && styles['has-header']\n )}\n >\n {description}\n </div>\n )\n }\n disablePaddings={disableHeaderPaddings}\n />\n </div>\n ) : null;\n\n // When there's no header, a standalone overlay button is rendered.\n // If ariaLabel is provided, it's used directly. Otherwise, derive the button's\n // accessible name from the first available content: description or children.\n let standaloneButtonLabelledBy: string | undefined;\n if (!ariaLabel) {\n if (description) {\n standaloneButtonLabelledBy = descriptionId;\n } else if (children) {\n standaloneButtonLabelledBy = bodyId;\n }\n }\n\n const standaloneOverlayProps = {\n ...interactiveProps,\n id: standaloneButtonId,\n className: clsx(\n styles['overlay-button'],\n testStyles.button,\n disabled && styles.disabled,\n variant && styles[`variant-${variant}`]\n ),\n 'aria-label': ariaLabel || undefined,\n 'aria-labelledby': standaloneButtonLabelledBy,\n };\n\n const standaloneButton = !header ? renderInteractiveElement(standaloneOverlayProps) : null;\n\n const contentElement = (\n <div className={styles['inner-card']}>\n {iconInHeaderRow ? (\n <div className={styles['header-row']}>\n {headerSection}\n {iconWrapper}\n </div>\n ) : (\n headerSection\n )}\n {children && (\n <div\n className={clsx(styles.body, testStyles.body, disableContentPaddings && styles['no-padding'])}\n id={bodyId}\n >\n {children}\n </div>\n )}\n </div>\n );\n\n return (\n <div\n {...baseProps}\n ref={mergedRootRef}\n role=\"group\"\n aria-labelledby={header ? headerId : standaloneButtonId}\n className={clsx(\n styles.root,\n styles[`variant-${variant}`],\n disabled && styles.disabled,\n disabled && testStyles.disabled,\n !!icon && styles['has-icon'],\n !!icon && styles['icon-align-end'],\n !!icon && styles[`icon-vertical-align-${iconVerticalAlignment}`],\n baseProps.className\n )}\n aria-disabled={disabled || undefined}\n data-awsui-motion-trigger=\"hover\"\n >\n {standaloneButton}\n {contentElement}\n {!iconInHeaderRow && iconWrapper}\n </div>\n );\n }\n);\n\nexport default InternalActionCard;\n"]}
|