@cloudscape-design/components-themeable 3.0.1020 → 3.0.1022
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/template/button/interfaces.d.ts +16 -16
- package/lib/internal/template/button/interfaces.d.ts.map +1 -1
- package/lib/internal/template/button/interfaces.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +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 +76 -77
- package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +12 -13
- package/lib/internal/template/internal/generated/theming/index.d.ts +12 -13
- package/package.json +1 -1
|
@@ -89,22 +89,6 @@ export interface BaseButtonProps {
|
|
|
89
89
|
* @i18n
|
|
90
90
|
*/
|
|
91
91
|
i18nStrings?: ButtonProps.I18nStrings;
|
|
92
|
-
/**
|
|
93
|
-
* Specifies an object of selectors and properties that are used to apply custom styles.
|
|
94
|
-
*
|
|
95
|
-
* - `root.background` {active, default, disabled, hover} - (Optional) Background for component states.
|
|
96
|
-
* - `root.borderColor` {active, default, disabled, hover} - (Optional) Border color for component states.
|
|
97
|
-
* - `root.borderRadius` (string) - (Optional) Border radius style.
|
|
98
|
-
* - `root.borderWidth` (string) - (Optional) Border width style.
|
|
99
|
-
* - `root.color` {active, default, disabled, hover} - (Optional) Color for component states.
|
|
100
|
-
* - `root.focusRing.borderColor` (string) - (Optional) Focus ring border color.
|
|
101
|
-
* - `root.focusRing.borderRadius` (string) - (Optional) Focus ring border radius.
|
|
102
|
-
* - `root.focusRing.borderWidth` (string) - (Optional) Focus ring border width.
|
|
103
|
-
* - `root.paddingBlock` (string) - (Optional) Block dimension padding.
|
|
104
|
-
* - `root.paddingInline` (string) - (Optional) Inline dimension padding.
|
|
105
|
-
* @awsuiSystem core
|
|
106
|
-
*/
|
|
107
|
-
style?: ButtonProps.Style;
|
|
108
92
|
}
|
|
109
93
|
export interface ButtonProps extends BaseComponentProps, BaseButtonProps {
|
|
110
94
|
/**
|
|
@@ -171,6 +155,22 @@ export interface ButtonProps extends BaseComponentProps, BaseButtonProps {
|
|
|
171
155
|
* This property is ignored if you use a predefined icon or if you set your custom icon using the `iconSvg` slot.
|
|
172
156
|
*/
|
|
173
157
|
iconAlt?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Specifies an object of selectors and properties that are used to apply custom styles.
|
|
160
|
+
*
|
|
161
|
+
* - `root.background` {active, default, disabled, hover} - (Optional) Background for component states.
|
|
162
|
+
* - `root.borderColor` {active, default, disabled, hover} - (Optional) Border color for component states.
|
|
163
|
+
* - `root.borderRadius` (string) - (Optional) Border radius style.
|
|
164
|
+
* - `root.borderWidth` (string) - (Optional) Border width style.
|
|
165
|
+
* - `root.color` {active, default, disabled, hover} - (Optional) Color for component states.
|
|
166
|
+
* - `root.focusRing.borderColor` (string) - (Optional) Focus ring border color.
|
|
167
|
+
* - `root.focusRing.borderRadius` (string) - (Optional) Focus ring border radius.
|
|
168
|
+
* - `root.focusRing.borderWidth` (string) - (Optional) Focus ring border width.
|
|
169
|
+
* - `root.paddingBlock` (string) - (Optional) Block dimension padding.
|
|
170
|
+
* - `root.paddingInline` (string) - (Optional) Inline dimension padding.
|
|
171
|
+
* @awsuiSystem core
|
|
172
|
+
*/
|
|
173
|
+
style?: ButtonProps.Style;
|
|
174
174
|
}
|
|
175
175
|
export declare namespace ButtonProps {
|
|
176
176
|
type Variant = 'normal' | 'primary' | 'link' | 'icon' | 'inline-icon' | 'inline-link';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/button/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CA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E;gBACZ,MAAM,CAAC,EAAE,MAAM,CAAC;gBAChB,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,KAAK,CAAC,EAAE,MAAM,CAAC;aAChB,CAAC;YACF,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,KAAK,CAAC,EAAE;gBACN,MAAM,CAAC,EAAE,MAAM,CAAC;gBAChB,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,KAAK,CAAC,EAAE,MAAM,CAAC;aAChB,CAAC;YACF,SAAS,CAAC,EAAE;gBACV,WAAW,CAAC,EAAE,MAAM,CAAC;gBACrB,YAAY,CAAC,EAAE,MAAM,CAAC;gBACtB,WAAW,CAAC,EAAE,MAAM,CAAC;aACtB,CAAC;YACF,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB,CAAC;KACH;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/button/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { IconProps } from '../icon/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { BaseNavigationDetail, CancelableEventHandler, ClickDetail as _ClickDetail } from '../internal/events';\n\nexport interface BaseButtonProps {\n /**\n * Renders the button as disabled and prevents clicks.\n */\n disabled?: boolean;\n /**\n * Provides a reason why the button is disabled (only when `disabled` is `true`).\n * If provided, the button becomes focusable.\n * Applicable for all button variants, except link.\n */\n disabledReason?: string;\n /**\n * Renders the button as being in a loading state. It takes precedence over the `disabled` if both are set to `true`.\n * It prevents users from clicking the button, but it can still be focused.\n */\n loading?: boolean;\n /**\n * Specifies the text that screen reader announces when the button is in a loading state.\n */\n loadingText?: string;\n /**\n * Displays an icon next to the text. You can use the `iconAlign` property to position the icon.\n */\n iconName?: IconProps.Name;\n /**\n * Specifies the URL of a custom icon. Use this property if the icon you want isn't available.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n */\n iconUrl?: string;\n /**\n * Specifies the SVG of a custom icon.\n *\n * Use this property if you want your custom icon to inherit colors dictated by variant or hover states.\n * When this property is set, the component will be decorated with `aria-hidden=\"true\"`. Ensure that the `svg` element:\n * - has attribute `focusable=\"false\"`.\n * - has `viewBox=\"0 0 16 16\"`.\n *\n * If you set the `svg` element as the root node of the slot, the component will automatically\n * - set `stroke=\"currentColor\"`, `fill=\"none\"`, and `vertical-align=\"top\"`.\n * - set the stroke width based on the size of the icon.\n * - set the width and height of the SVG element based on the size of the icon.\n *\n * If you don't want these styles to be automatically set, wrap the `svg` element into a `span`.\n * You can still set the stroke to `currentColor` to inherit the color of the surrounding elements.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n *\n * *Note:* Remember to remove any additional elements (for example: `defs`) and related CSS classes from SVG files exported from design software.\n * In most cases, they aren't needed, as the `svg` element inherits styles from the icon component.\n */\n iconSvg?: React.ReactNode;\n\n /**\n * Adds `aria-label` to the button element. Use this to provide an accessible name for buttons\n * that don't have visible text, and to distinguish between multiple buttons with identical visible text.\n * The text will also be added to the `title` attribute of the button.\n */\n ariaLabel?: string;\n\n /**\n * Adds `aria-describedby` to the button.\n */\n ariaDescribedby?: string;\n\n /**\n * Specifies if the `text` content wraps. If you set it to `false`, it prevents the text from wrapping.\n */\n wrapText?: boolean;\n\n /**\n * Text displayed in the button element.\n * @displayname text\n */\n children?: React.ReactNode;\n\n /**\n * Adds `aria-controls` to the button. Use when the button controls the contents or presence of an element.\n */\n ariaControls?: string;\n\n /**\n * Adds an external icon after the button label text.\n * If an href is provided, it opens the link in a new tab.\n */\n external?: boolean;\n\n /**\n * An object containing all the necessary localized strings required by the component. The object should contain:\n *\n * * `externalIconAriaLabel` - (optional) Specifies the aria-label for the external icon when `external` is set to `true`.\n * @i18n\n */\n i18nStrings?: ButtonProps.I18nStrings;\n
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/button/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { IconProps } from '../icon/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { BaseNavigationDetail, CancelableEventHandler, ClickDetail as _ClickDetail } from '../internal/events';\n\nexport interface BaseButtonProps {\n /**\n * Renders the button as disabled and prevents clicks.\n */\n disabled?: boolean;\n /**\n * Provides a reason why the button is disabled (only when `disabled` is `true`).\n * If provided, the button becomes focusable.\n * Applicable for all button variants, except link.\n */\n disabledReason?: string;\n /**\n * Renders the button as being in a loading state. It takes precedence over the `disabled` if both are set to `true`.\n * It prevents users from clicking the button, but it can still be focused.\n */\n loading?: boolean;\n /**\n * Specifies the text that screen reader announces when the button is in a loading state.\n */\n loadingText?: string;\n /**\n * Displays an icon next to the text. You can use the `iconAlign` property to position the icon.\n */\n iconName?: IconProps.Name;\n /**\n * Specifies the URL of a custom icon. Use this property if the icon you want isn't available.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n */\n iconUrl?: string;\n /**\n * Specifies the SVG of a custom icon.\n *\n * Use this property if you want your custom icon to inherit colors dictated by variant or hover states.\n * When this property is set, the component will be decorated with `aria-hidden=\"true\"`. Ensure that the `svg` element:\n * - has attribute `focusable=\"false\"`.\n * - has `viewBox=\"0 0 16 16\"`.\n *\n * If you set the `svg` element as the root node of the slot, the component will automatically\n * - set `stroke=\"currentColor\"`, `fill=\"none\"`, and `vertical-align=\"top\"`.\n * - set the stroke width based on the size of the icon.\n * - set the width and height of the SVG element based on the size of the icon.\n *\n * If you don't want these styles to be automatically set, wrap the `svg` element into a `span`.\n * You can still set the stroke to `currentColor` to inherit the color of the surrounding elements.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n *\n * *Note:* Remember to remove any additional elements (for example: `defs`) and related CSS classes from SVG files exported from design software.\n * In most cases, they aren't needed, as the `svg` element inherits styles from the icon component.\n */\n iconSvg?: React.ReactNode;\n\n /**\n * Adds `aria-label` to the button element. Use this to provide an accessible name for buttons\n * that don't have visible text, and to distinguish between multiple buttons with identical visible text.\n * The text will also be added to the `title` attribute of the button.\n */\n ariaLabel?: string;\n\n /**\n * Adds `aria-describedby` to the button.\n */\n ariaDescribedby?: string;\n\n /**\n * Specifies if the `text` content wraps. If you set it to `false`, it prevents the text from wrapping.\n */\n wrapText?: boolean;\n\n /**\n * Text displayed in the button element.\n * @displayname text\n */\n children?: React.ReactNode;\n\n /**\n * Adds `aria-controls` to the button. Use when the button controls the contents or presence of an element.\n */\n ariaControls?: string;\n\n /**\n * Adds an external icon after the button label text.\n * If an href is provided, it opens the link in a new tab.\n */\n external?: boolean;\n\n /**\n * An object containing all the necessary localized strings required by the component. The object should contain:\n *\n * * `externalIconAriaLabel` - (optional) Specifies the aria-label for the external icon when `external` is set to `true`.\n * @i18n\n */\n i18nStrings?: ButtonProps.I18nStrings;\n}\n\nexport interface ButtonProps extends BaseComponentProps, BaseButtonProps {\n /**\n * Specifies the alignment of the icon.\n */\n iconAlign?: ButtonProps.IconAlign;\n\n /**\n * The form action that is performed by a button click.\n */\n formAction?: ButtonProps.FormAction;\n\n /**\n * Applies button styling to a link. Use this property if you need a link styled as a button (`variant=link`).\n * For example, if you have a 'help' button that links to a documentation page.\n */\n href?: string;\n\n /**\n * Specifies where to open the linked URL (for example, to open in a new browser window or tab use `_blank`).\n * This property only applies when an `href` is provided.\n */\n target?: string;\n\n /**\n * Adds a `rel` attribute to the link. By default, the component sets the `rel` attribute to \"noopener noreferrer\" when `target` is `\"_blank\"`.\n * If the `rel` property is provided, it overrides the default behavior.\n */\n rel?: string;\n\n /**\n * Specifies whether the linked URL, when selected, will prompt the user to download instead of navigate.\n * You can specify a string value that will be suggested as the name of the downloaded file.\n * This property only applies when an `href` is provided.\n **/\n download?: boolean | string;\n\n /** The id of the <form> element to associate with the button. The value of this attribute must be the id of a <form> in the same document.\n * Use when a button is not the descendant of a form element, such as when used in a modal.\n */\n form?: string;\n\n /**\n * Adds aria-expanded to the button element. Use when the button controls an expandable element.\n */\n ariaExpanded?: boolean;\n\n /**\n * Called when the user clicks on the button and the button is not disabled or in loading state.\n */\n onClick?: CancelableEventHandler<ButtonProps.ClickDetail>;\n\n /**\n * Called when the user clicks on the button with the left mouse button without pressing\n * modifier keys (that is, CTRL, ALT, SHIFT, META), and the button has an `href` set.\n */\n onFollow?: CancelableEventHandler<ButtonProps.FollowDetail>;\n\n /**\n * Sets the button width to be 100% of the parent container width. Button content is centered.\n */\n fullWidth?: boolean;\n\n /** Determines the general styling of the button as follows:\n * * `primary` for primary buttons.\n * * `normal` for secondary buttons.\n * * `link` for tertiary buttons.\n * * `icon` to display an icon only (no text).\n * * `inline-icon` to display an icon-only (no text) button within a text context.\n * * `inline-link` to display a tertiary button with no outer padding.\n */\n variant?: ButtonProps.Variant;\n\n /**\n * Specifies alternate text for a custom icon. We recommend that you provide this for accessibility.\n * This property is ignored if you use a predefined icon or if you set your custom icon using the `iconSvg` slot.\n */\n iconAlt?: string;\n\n /**\n * Specifies an object of selectors and properties that are used to apply custom styles.\n *\n * - `root.background` {active, default, disabled, hover} - (Optional) Background for component states.\n * - `root.borderColor` {active, default, disabled, hover} - (Optional) Border color for component states.\n * - `root.borderRadius` (string) - (Optional) Border radius style.\n * - `root.borderWidth` (string) - (Optional) Border width style.\n * - `root.color` {active, default, disabled, hover} - (Optional) Color for component states.\n * - `root.focusRing.borderColor` (string) - (Optional) Focus ring border color.\n * - `root.focusRing.borderRadius` (string) - (Optional) Focus ring border radius.\n * - `root.focusRing.borderWidth` (string) - (Optional) Focus ring border width.\n * - `root.paddingBlock` (string) - (Optional) Block dimension padding.\n * - `root.paddingInline` (string) - (Optional) Inline dimension padding.\n * @awsuiSystem core\n */\n style?: ButtonProps.Style;\n}\n\nexport namespace ButtonProps {\n export type Variant = 'normal' | 'primary' | 'link' | 'icon' | 'inline-icon' | 'inline-link';\n export type ClickDetail = _ClickDetail;\n export type FollowDetail = BaseNavigationDetail;\n\n export type FormAction = 'submit' | 'none';\n\n export type IconAlign = 'left' | 'right';\n\n export interface I18nStrings {\n /**\n * Specifies the aria-label for the external icon when `external` is set to `true`.\n */\n externalIconAriaLabel?: string;\n }\n\n export interface Ref {\n /**\n * Focuses the underlying native button.\n */\n focus(options?: FocusOptions): void;\n }\n\n export interface Style {\n root?: {\n background?: {\n active?: string;\n default?: string;\n disabled?: string;\n hover?: string;\n };\n borderColor?: {\n active?: string;\n default?: string;\n disabled?: string;\n hover?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n color?: {\n active?: string;\n default?: string;\n disabled?: string;\n hover?: string;\n };\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n paddingBlock?: string;\n paddingInline?: string;\n };\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export var PACKAGE_SOURCE = "components";
|
|
2
|
-
export var PACKAGE_VERSION = "3.0.0 (
|
|
3
|
-
export var GIT_SHA = "
|
|
2
|
+
export var PACKAGE_VERSION = "3.0.0 (36bdac5a)";
|
|
3
|
+
export var GIT_SHA = "36bdac5a";
|
|
4
4
|
export var THEME = "open-source-visual-refresh";
|
|
5
5
|
export var ALWAYS_VISUAL_REFRESH = true;
|
|
@@ -1,79 +1,78 @@
|
|
|
1
1
|
declare const customCSSPropertiesMap: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
2
|
+
maxContentWidth: string;
|
|
3
|
+
minContentWidth: string;
|
|
4
|
+
breadcrumbsGap: string;
|
|
5
|
+
contentGapLeft: string;
|
|
6
|
+
contentGapRight: string;
|
|
7
|
+
contentHeight: string;
|
|
8
|
+
contentLayoutDefaultHorizontalPadding: string;
|
|
9
|
+
contentLayoutMaxContentWidth: string;
|
|
10
|
+
contentLayoutMainGap: string;
|
|
11
|
+
defaultMaxContentWidth: string;
|
|
12
|
+
defaultMinContentWidth: string;
|
|
13
|
+
drawerSize: string;
|
|
14
|
+
footerHeight: string;
|
|
15
|
+
headerGap: string;
|
|
16
|
+
headerHeight: string;
|
|
17
|
+
layoutWidth: string;
|
|
18
|
+
mainGap: string;
|
|
19
|
+
mainOffsetLeft: string;
|
|
20
|
+
mainTemplateRows: string;
|
|
21
|
+
mobileBarHeight: string;
|
|
22
|
+
notificationsHeight: string;
|
|
23
|
+
offsetTop: string;
|
|
24
|
+
overlapHeight: string;
|
|
25
|
+
navigationWidth: string;
|
|
26
|
+
splitPanelReportedHeaderSize: string;
|
|
27
|
+
splitPanelReportedSize: string;
|
|
28
|
+
splitPanelHeight: string;
|
|
29
|
+
splitPanelMinWidth: string;
|
|
30
|
+
splitPanelMaxWidth: string;
|
|
31
|
+
toolsMaxWidth: string;
|
|
32
|
+
toolsWidth: string;
|
|
33
|
+
toolsAnimationStartingOpacity: string;
|
|
34
|
+
contentScrollMargin: string;
|
|
35
|
+
flashbarStackDepth: string;
|
|
36
|
+
flashbarStackIndex: string;
|
|
37
|
+
flashbarStickyBottomMargin: string;
|
|
38
|
+
stackedNotificationsBottomMargin: string;
|
|
39
|
+
stackedNotificationsDefaultBottomMargin: string;
|
|
40
|
+
dropdownDefaultMaxWidth: string;
|
|
41
|
+
spinnerRotatorFrom: string;
|
|
42
|
+
spinnerRotatorTo: string;
|
|
43
|
+
spinnerLineLeftFrom: string;
|
|
44
|
+
spinnerLineLeftTo: string;
|
|
45
|
+
spinnerLineRightFrom: string;
|
|
46
|
+
spinnerLineRightTo: string;
|
|
47
|
+
sliderLabelCount: string;
|
|
48
|
+
sliderTickCount: string;
|
|
49
|
+
sliderReferenceColumn: string;
|
|
50
|
+
sliderNextReferenceColumn: string;
|
|
51
|
+
sliderMaxStart: string;
|
|
52
|
+
sliderMinEnd: string;
|
|
53
|
+
sliderRangeInlineSize: string;
|
|
54
|
+
sliderTooltipPosition: string;
|
|
55
|
+
togglesLeftWidth: string;
|
|
56
|
+
togglesRightWidth: string;
|
|
57
|
+
promptInputMaxRows: string;
|
|
58
|
+
promptInputScrollHeight: string;
|
|
59
|
+
dragHandleAnimationInlineOffset: string;
|
|
60
|
+
dragHandleAnimationBlockOffset: string;
|
|
61
|
+
styleBackgroundActive: string;
|
|
62
|
+
styleBackgroundDefault: string;
|
|
63
|
+
styleBackgroundDisabled: string;
|
|
64
|
+
styleBackgroundHover: string;
|
|
65
|
+
styleBorderColorActive: string;
|
|
66
|
+
styleBorderColorDefault: string;
|
|
67
|
+
styleBorderColorDisabled: string;
|
|
68
|
+
styleBorderColorHover: string;
|
|
69
|
+
styleColorActive: string;
|
|
70
|
+
styleColorDefault: string;
|
|
71
|
+
styleColorDisabled: string;
|
|
72
|
+
styleColorHover: string;
|
|
73
|
+
styleFocusRingBorderColor: string;
|
|
74
|
+
styleFocusRingBorderRadius: string;
|
|
75
|
+
styleFocusRingBorderWidth: string;
|
|
76
|
+
styleFocusRingBoxShadow: string;
|
|
77
77
|
};
|
|
78
|
-
export default customCSSPropertiesMap;
|
|
79
|
-
//# sourceMappingURL=index.d.ts.map
|
|
78
|
+
export default customCSSPropertiesMap;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ThemePreset, GlobalValue, TypedModeValueOverride } from '@cloudscape-design/theming-build';
|
|
2
|
-
|
|
3
2
|
export declare interface TypedOverride {
|
|
4
3
|
tokens: {
|
|
5
4
|
colorChartsStatusCritical?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -256,7 +255,7 @@ export declare interface TypedOverride {
|
|
|
256
255
|
borderWidthField?: GlobalValue;
|
|
257
256
|
borderWidthPopover?: GlobalValue;
|
|
258
257
|
borderWidthToken?: GlobalValue;
|
|
259
|
-
}
|
|
258
|
+
};
|
|
260
259
|
contexts?: {
|
|
261
260
|
'compact-table'?: {
|
|
262
261
|
tokens: {
|
|
@@ -514,7 +513,7 @@ export declare interface TypedOverride {
|
|
|
514
513
|
borderWidthField?: GlobalValue;
|
|
515
514
|
borderWidthPopover?: GlobalValue;
|
|
516
515
|
borderWidthToken?: GlobalValue;
|
|
517
|
-
}
|
|
516
|
+
};
|
|
518
517
|
};
|
|
519
518
|
'top-navigation'?: {
|
|
520
519
|
tokens: {
|
|
@@ -772,7 +771,7 @@ export declare interface TypedOverride {
|
|
|
772
771
|
borderWidthField?: GlobalValue;
|
|
773
772
|
borderWidthPopover?: GlobalValue;
|
|
774
773
|
borderWidthToken?: GlobalValue;
|
|
775
|
-
}
|
|
774
|
+
};
|
|
776
775
|
};
|
|
777
776
|
'header'?: {
|
|
778
777
|
tokens: {
|
|
@@ -1030,7 +1029,7 @@ export declare interface TypedOverride {
|
|
|
1030
1029
|
borderWidthField?: GlobalValue;
|
|
1031
1030
|
borderWidthPopover?: GlobalValue;
|
|
1032
1031
|
borderWidthToken?: GlobalValue;
|
|
1033
|
-
}
|
|
1032
|
+
};
|
|
1034
1033
|
};
|
|
1035
1034
|
'flashbar'?: {
|
|
1036
1035
|
tokens: {
|
|
@@ -1288,7 +1287,7 @@ export declare interface TypedOverride {
|
|
|
1288
1287
|
borderWidthField?: GlobalValue;
|
|
1289
1288
|
borderWidthPopover?: GlobalValue;
|
|
1290
1289
|
borderWidthToken?: GlobalValue;
|
|
1291
|
-
}
|
|
1290
|
+
};
|
|
1292
1291
|
};
|
|
1293
1292
|
'flashbar-warning'?: {
|
|
1294
1293
|
tokens: {
|
|
@@ -1546,7 +1545,7 @@ export declare interface TypedOverride {
|
|
|
1546
1545
|
borderWidthField?: GlobalValue;
|
|
1547
1546
|
borderWidthPopover?: GlobalValue;
|
|
1548
1547
|
borderWidthToken?: GlobalValue;
|
|
1549
|
-
}
|
|
1548
|
+
};
|
|
1550
1549
|
};
|
|
1551
1550
|
'alert'?: {
|
|
1552
1551
|
tokens: {
|
|
@@ -1804,7 +1803,7 @@ export declare interface TypedOverride {
|
|
|
1804
1803
|
borderWidthField?: GlobalValue;
|
|
1805
1804
|
borderWidthPopover?: GlobalValue;
|
|
1806
1805
|
borderWidthToken?: GlobalValue;
|
|
1807
|
-
}
|
|
1806
|
+
};
|
|
1808
1807
|
};
|
|
1809
1808
|
'alert-header'?: {
|
|
1810
1809
|
tokens: {
|
|
@@ -2062,7 +2061,7 @@ export declare interface TypedOverride {
|
|
|
2062
2061
|
borderWidthField?: GlobalValue;
|
|
2063
2062
|
borderWidthPopover?: GlobalValue;
|
|
2064
2063
|
borderWidthToken?: GlobalValue;
|
|
2065
|
-
}
|
|
2064
|
+
};
|
|
2066
2065
|
};
|
|
2067
2066
|
'app-layout-toolbar'?: {
|
|
2068
2067
|
tokens: {
|
|
@@ -2320,8 +2319,8 @@ export declare interface TypedOverride {
|
|
|
2320
2319
|
borderWidthField?: GlobalValue;
|
|
2321
2320
|
borderWidthPopover?: GlobalValue;
|
|
2322
2321
|
borderWidthToken?: GlobalValue;
|
|
2323
|
-
}
|
|
2324
|
-
}
|
|
2325
|
-
}
|
|
2322
|
+
};
|
|
2323
|
+
};
|
|
2324
|
+
};
|
|
2326
2325
|
}
|
|
2327
|
-
export declare const preset: ThemePreset;
|
|
2326
|
+
export declare const preset: ThemePreset;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ThemePreset, GlobalValue, TypedModeValueOverride } from '@cloudscape-design/theming-runtime';
|
|
2
|
-
|
|
3
2
|
export declare interface TypedOverride {
|
|
4
3
|
tokens: {
|
|
5
4
|
colorChartsStatusCritical?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
@@ -256,7 +255,7 @@ export declare interface TypedOverride {
|
|
|
256
255
|
borderWidthField?: GlobalValue;
|
|
257
256
|
borderWidthPopover?: GlobalValue;
|
|
258
257
|
borderWidthToken?: GlobalValue;
|
|
259
|
-
}
|
|
258
|
+
};
|
|
260
259
|
contexts?: {
|
|
261
260
|
'compact-table'?: {
|
|
262
261
|
tokens: {
|
|
@@ -514,7 +513,7 @@ export declare interface TypedOverride {
|
|
|
514
513
|
borderWidthField?: GlobalValue;
|
|
515
514
|
borderWidthPopover?: GlobalValue;
|
|
516
515
|
borderWidthToken?: GlobalValue;
|
|
517
|
-
}
|
|
516
|
+
};
|
|
518
517
|
};
|
|
519
518
|
'top-navigation'?: {
|
|
520
519
|
tokens: {
|
|
@@ -772,7 +771,7 @@ export declare interface TypedOverride {
|
|
|
772
771
|
borderWidthField?: GlobalValue;
|
|
773
772
|
borderWidthPopover?: GlobalValue;
|
|
774
773
|
borderWidthToken?: GlobalValue;
|
|
775
|
-
}
|
|
774
|
+
};
|
|
776
775
|
};
|
|
777
776
|
'header'?: {
|
|
778
777
|
tokens: {
|
|
@@ -1030,7 +1029,7 @@ export declare interface TypedOverride {
|
|
|
1030
1029
|
borderWidthField?: GlobalValue;
|
|
1031
1030
|
borderWidthPopover?: GlobalValue;
|
|
1032
1031
|
borderWidthToken?: GlobalValue;
|
|
1033
|
-
}
|
|
1032
|
+
};
|
|
1034
1033
|
};
|
|
1035
1034
|
'flashbar'?: {
|
|
1036
1035
|
tokens: {
|
|
@@ -1288,7 +1287,7 @@ export declare interface TypedOverride {
|
|
|
1288
1287
|
borderWidthField?: GlobalValue;
|
|
1289
1288
|
borderWidthPopover?: GlobalValue;
|
|
1290
1289
|
borderWidthToken?: GlobalValue;
|
|
1291
|
-
}
|
|
1290
|
+
};
|
|
1292
1291
|
};
|
|
1293
1292
|
'flashbar-warning'?: {
|
|
1294
1293
|
tokens: {
|
|
@@ -1546,7 +1545,7 @@ export declare interface TypedOverride {
|
|
|
1546
1545
|
borderWidthField?: GlobalValue;
|
|
1547
1546
|
borderWidthPopover?: GlobalValue;
|
|
1548
1547
|
borderWidthToken?: GlobalValue;
|
|
1549
|
-
}
|
|
1548
|
+
};
|
|
1550
1549
|
};
|
|
1551
1550
|
'alert'?: {
|
|
1552
1551
|
tokens: {
|
|
@@ -1804,7 +1803,7 @@ export declare interface TypedOverride {
|
|
|
1804
1803
|
borderWidthField?: GlobalValue;
|
|
1805
1804
|
borderWidthPopover?: GlobalValue;
|
|
1806
1805
|
borderWidthToken?: GlobalValue;
|
|
1807
|
-
}
|
|
1806
|
+
};
|
|
1808
1807
|
};
|
|
1809
1808
|
'alert-header'?: {
|
|
1810
1809
|
tokens: {
|
|
@@ -2062,7 +2061,7 @@ export declare interface TypedOverride {
|
|
|
2062
2061
|
borderWidthField?: GlobalValue;
|
|
2063
2062
|
borderWidthPopover?: GlobalValue;
|
|
2064
2063
|
borderWidthToken?: GlobalValue;
|
|
2065
|
-
}
|
|
2064
|
+
};
|
|
2066
2065
|
};
|
|
2067
2066
|
'app-layout-toolbar'?: {
|
|
2068
2067
|
tokens: {
|
|
@@ -2320,8 +2319,8 @@ export declare interface TypedOverride {
|
|
|
2320
2319
|
borderWidthField?: GlobalValue;
|
|
2321
2320
|
borderWidthPopover?: GlobalValue;
|
|
2322
2321
|
borderWidthToken?: GlobalValue;
|
|
2323
|
-
}
|
|
2324
|
-
}
|
|
2325
|
-
}
|
|
2322
|
+
};
|
|
2323
|
+
};
|
|
2324
|
+
};
|
|
2326
2325
|
}
|
|
2327
|
-
export declare const preset: ThemePreset;
|
|
2326
|
+
export declare const preset: ThemePreset;
|