@cloudscape-design/components 3.0.1387 → 3.0.1389
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/checkbox/internal.d.ts.map +1 -1
- package/checkbox/internal.js +1 -1
- package/checkbox/internal.js.map +1 -1
- package/checkbox/styles.css.js +3 -7
- package/checkbox/styles.scoped.css +5 -19
- package/checkbox/styles.selectors.js +3 -7
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -1
- package/index.js +6 -0
- package/index.js.map +1 -1
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/components/abstract-switch/styles.css.js +13 -13
- package/internal/components/abstract-switch/styles.scoped.css +23 -23
- package/internal/components/abstract-switch/styles.selectors.js +13 -13
- package/internal/components/radio-button/index.d.ts.map +1 -1
- package/internal/components/radio-button/index.js +2 -2
- package/internal/components/radio-button/index.js.map +1 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/manifest.json +1 -1
- package/manifest.json +2 -2
- package/package.json +19 -1
- package/radio-button/interfaces.d.ts +14 -0
- package/radio-button/interfaces.d.ts.map +1 -1
- package/radio-button/interfaces.js.map +1 -1
- package/table/body-cell/styles.css.js +47 -46
- package/table/body-cell/styles.scoped.css +376 -376
- package/table/body-cell/styles.selectors.js +47 -46
- package/table/body-cell/td-element.d.ts.map +1 -1
- package/table/body-cell/td-element.js +12 -12
- package/table/body-cell/td-element.js.map +1 -1
- package/table/header-cell/styles.css.js +39 -38
- package/table/header-cell/styles.scoped.css +80 -80
- package/table/header-cell/styles.selectors.js +39 -38
- package/table/header-cell/th-element.d.ts.map +1 -1
- package/table/header-cell/th-element.js +18 -8
- package/table/header-cell/th-element.js.map +1 -1
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +9 -3
- package/table/internal.js.map +1 -1
- package/table/sticky-columns/use-sticky-columns.d.ts.map +1 -1
- package/table/sticky-columns/use-sticky-columns.js +13 -3
- package/table/sticky-columns/use-sticky-columns.js.map +1 -1
- package/table-body/index.d.ts +4 -0
- package/table-body/index.d.ts.map +1 -0
- package/table-body/index.js +14 -0
- package/table-body/index.js.map +1 -0
- package/table-body/interfaces.d.ts +17 -0
- package/table-body/interfaces.d.ts.map +1 -0
- package/table-body/interfaces.js +2 -0
- package/table-body/interfaces.js.map +1 -0
- package/table-body/internal.d.ts +10 -0
- package/table-body/internal.d.ts.map +1 -0
- package/table-body/internal.js +13 -0
- package/table-body/internal.js.map +1 -0
- package/table-body/styles.css.js +7 -0
- package/table-body/styles.scoped.css +11 -0
- package/table-body/styles.selectors.js +8 -0
- package/table-body-cell/index.d.ts +4 -0
- package/table-body-cell/index.d.ts.map +1 -0
- package/table-body-cell/index.js +17 -0
- package/table-body-cell/index.js.map +1 -0
- package/table-body-cell/interfaces.d.ts +20 -0
- package/table-body-cell/interfaces.d.ts.map +1 -0
- package/table-body-cell/interfaces.js +2 -0
- package/table-body-cell/interfaces.js.map +1 -0
- package/table-body-cell/internal.d.ts +25 -0
- package/table-body-cell/internal.d.ts.map +1 -0
- package/table-body-cell/internal.js +36 -0
- package/table-body-cell/internal.js.map +1 -0
- package/table-body-cell/styles.css.js +7 -0
- package/table-body-cell/styles.scoped.css +38 -0
- package/table-body-cell/styles.selectors.js +8 -0
- package/table-head/index.d.ts +4 -0
- package/table-head/index.d.ts.map +1 -0
- package/table-head/index.js +14 -0
- package/table-head/index.js.map +1 -0
- package/table-head/interfaces.d.ts +7 -0
- package/table-head/interfaces.d.ts.map +1 -0
- package/table-head/interfaces.js +2 -0
- package/table-head/interfaces.js.map +1 -0
- package/table-head/internal.d.ts +8 -0
- package/table-head/internal.d.ts.map +1 -0
- package/table-head/internal.js +13 -0
- package/table-head/internal.js.map +1 -0
- package/table-head/styles.css.js +7 -0
- package/table-head/styles.scoped.css +11 -0
- package/table-head/styles.selectors.js +8 -0
- package/table-header-cell/index.d.ts +4 -0
- package/table-header-cell/index.d.ts.map +1 -0
- package/table-header-cell/index.js +16 -0
- package/table-header-cell/index.js.map +1 -0
- package/table-header-cell/interfaces.d.ts +21 -0
- package/table-header-cell/interfaces.d.ts.map +1 -0
- package/table-header-cell/interfaces.js +2 -0
- package/table-header-cell/interfaces.js.map +1 -0
- package/table-header-cell/internal.d.ts +17 -0
- package/table-header-cell/internal.d.ts.map +1 -0
- package/table-header-cell/internal.js +33 -0
- package/table-header-cell/internal.js.map +1 -0
- package/table-header-cell/styles.css.js +11 -0
- package/table-header-cell/styles.scoped.css +49 -0
- package/table-header-cell/styles.selectors.js +12 -0
- package/table-root/context.d.ts +9 -0
- package/table-root/context.d.ts.map +1 -0
- package/table-root/context.js +16 -0
- package/table-root/context.js.map +1 -0
- package/table-root/grid-template-columns.d.ts +2 -0
- package/table-root/grid-template-columns.d.ts.map +1 -0
- package/table-root/grid-template-columns.js +34 -0
- package/table-root/grid-template-columns.js.map +1 -0
- package/table-root/index.d.ts +7 -0
- package/table-root/index.d.ts.map +1 -0
- package/table-root/index.js +17 -0
- package/table-root/index.js.map +1 -0
- package/table-root/interfaces.d.ts +63 -0
- package/table-root/interfaces.d.ts.map +1 -0
- package/table-root/interfaces.js +2 -0
- package/table-root/interfaces.js.map +1 -0
- package/table-root/internal.d.ts +13 -0
- package/table-root/internal.d.ts.map +1 -0
- package/table-root/internal.js +58 -0
- package/table-root/internal.js.map +1 -0
- package/table-root/styles.css.js +10 -0
- package/table-root/styles.scoped.css +71 -0
- package/table-root/styles.selectors.js +11 -0
- package/table-row/index.d.ts +4 -0
- package/table-row/index.d.ts.map +1 -0
- package/table-row/index.js +16 -0
- package/table-row/index.js.map +1 -0
- package/table-row/interfaces.d.ts +38 -0
- package/table-row/interfaces.d.ts.map +1 -0
- package/table-row/interfaces.js +2 -0
- package/table-row/interfaces.js.map +1 -0
- package/table-row/internal.d.ts +15 -0
- package/table-row/internal.d.ts.map +1 -0
- package/table-row/internal.js +13 -0
- package/table-row/internal.js.map +1 -0
- package/table-row/styles.css.js +7 -0
- package/table-row/styles.scoped.css +42 -0
- package/table-row/styles.selectors.js +8 -0
- package/test-utils/dom/index.d.ts +168 -0
- package/test-utils/dom/index.js +116 -1
- package/test-utils/dom/index.js.map +1 -1
- package/test-utils/dom/table-body/index.d.ts +4 -0
- package/test-utils/dom/table-body/index.js +11 -0
- package/test-utils/dom/table-body/index.js.map +1 -0
- package/test-utils/dom/table-body-cell/index.d.ts +4 -0
- package/test-utils/dom/table-body-cell/index.js +11 -0
- package/test-utils/dom/table-body-cell/index.js.map +1 -0
- package/test-utils/dom/table-head/index.d.ts +4 -0
- package/test-utils/dom/table-head/index.js +11 -0
- package/test-utils/dom/table-head/index.js.map +1 -0
- package/test-utils/dom/table-header-cell/index.d.ts +4 -0
- package/test-utils/dom/table-header-cell/index.js +11 -0
- package/test-utils/dom/table-header-cell/index.js.map +1 -0
- package/test-utils/dom/table-root/index.d.ts +4 -0
- package/test-utils/dom/table-root/index.js +11 -0
- package/test-utils/dom/table-root/index.js.map +1 -0
- package/test-utils/dom/table-row/index.d.ts +4 -0
- package/test-utils/dom/table-row/index.js +11 -0
- package/test-utils/dom/table-row/index.js.map +1 -0
- package/test-utils/selectors/index.d.ts +108 -0
- package/test-utils/selectors/index.js +86 -1
- package/test-utils/selectors/index.js.map +1 -1
- package/test-utils/selectors/table-body/index.d.ts +4 -0
- package/test-utils/selectors/table-body/index.js +11 -0
- package/test-utils/selectors/table-body/index.js.map +1 -0
- package/test-utils/selectors/table-body-cell/index.d.ts +4 -0
- package/test-utils/selectors/table-body-cell/index.js +11 -0
- package/test-utils/selectors/table-body-cell/index.js.map +1 -0
- package/test-utils/selectors/table-head/index.d.ts +4 -0
- package/test-utils/selectors/table-head/index.js +11 -0
- package/test-utils/selectors/table-head/index.js.map +1 -0
- package/test-utils/selectors/table-header-cell/index.d.ts +4 -0
- package/test-utils/selectors/table-header-cell/index.js +11 -0
- package/test-utils/selectors/table-header-cell/index.js.map +1 -0
- package/test-utils/selectors/table-root/index.d.ts +4 -0
- package/test-utils/selectors/table-root/index.js +11 -0
- package/test-utils/selectors/table-root/index.js.map +1 -0
- package/test-utils/selectors/table-row/index.d.ts +4 -0
- package/test-utils/selectors/table-row/index.js +11 -0
- package/test-utils/selectors/table-row/index.js.map +1 -0
package/package.json
CHANGED
|
@@ -112,6 +112,12 @@
|
|
|
112
112
|
"./status-indicator": "./status-indicator/index.js",
|
|
113
113
|
"./steps": "./steps/index.js",
|
|
114
114
|
"./table": "./table/index.js",
|
|
115
|
+
"./table-body": "./table-body/index.js",
|
|
116
|
+
"./table-body-cell": "./table-body-cell/index.js",
|
|
117
|
+
"./table-head": "./table-head/index.js",
|
|
118
|
+
"./table-header-cell": "./table-header-cell/index.js",
|
|
119
|
+
"./table-root": "./table-root/index.js",
|
|
120
|
+
"./table-row": "./table-row/index.js",
|
|
115
121
|
"./tabs": "./tabs/index.js",
|
|
116
122
|
"./tag-editor": "./tag-editor/index.js",
|
|
117
123
|
"./text-content": "./text-content/index.js",
|
|
@@ -285,6 +291,18 @@
|
|
|
285
291
|
"./test-utils/selectors/steps": "./test-utils/selectors/steps/index.js",
|
|
286
292
|
"./test-utils/dom/table": "./test-utils/dom/table/index.js",
|
|
287
293
|
"./test-utils/selectors/table": "./test-utils/selectors/table/index.js",
|
|
294
|
+
"./test-utils/dom/table-body": "./test-utils/dom/table-body/index.js",
|
|
295
|
+
"./test-utils/selectors/table-body": "./test-utils/selectors/table-body/index.js",
|
|
296
|
+
"./test-utils/dom/table-body-cell": "./test-utils/dom/table-body-cell/index.js",
|
|
297
|
+
"./test-utils/selectors/table-body-cell": "./test-utils/selectors/table-body-cell/index.js",
|
|
298
|
+
"./test-utils/dom/table-head": "./test-utils/dom/table-head/index.js",
|
|
299
|
+
"./test-utils/selectors/table-head": "./test-utils/selectors/table-head/index.js",
|
|
300
|
+
"./test-utils/dom/table-header-cell": "./test-utils/dom/table-header-cell/index.js",
|
|
301
|
+
"./test-utils/selectors/table-header-cell": "./test-utils/selectors/table-header-cell/index.js",
|
|
302
|
+
"./test-utils/dom/table-root": "./test-utils/dom/table-root/index.js",
|
|
303
|
+
"./test-utils/selectors/table-root": "./test-utils/selectors/table-root/index.js",
|
|
304
|
+
"./test-utils/dom/table-row": "./test-utils/dom/table-row/index.js",
|
|
305
|
+
"./test-utils/selectors/table-row": "./test-utils/selectors/table-row/index.js",
|
|
288
306
|
"./test-utils/dom/tabs": "./test-utils/dom/tabs/index.js",
|
|
289
307
|
"./test-utils/selectors/tabs": "./test-utils/selectors/tabs/index.js",
|
|
290
308
|
"./test-utils/dom/tag-editor": "./test-utils/dom/tag-editor/index.js",
|
|
@@ -359,7 +377,7 @@
|
|
|
359
377
|
"./internal/base-theme/styles.css.js",
|
|
360
378
|
"./internal/base-component/styles.css.js"
|
|
361
379
|
],
|
|
362
|
-
"version": "3.0.
|
|
380
|
+
"version": "3.0.1389",
|
|
363
381
|
"repository": {
|
|
364
382
|
"type": "git",
|
|
365
383
|
"url": "https://github.com/cloudscape-design/components.git"
|
|
@@ -10,6 +10,20 @@ export interface RadioButtonProps extends BaseComponentProps {
|
|
|
10
10
|
* Specifies if the component is selected.
|
|
11
11
|
*/
|
|
12
12
|
checked: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Adds an `aria-label` to the native control.
|
|
15
|
+
*
|
|
16
|
+
* Use this if you don't have a visible label for this control.
|
|
17
|
+
*/
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Adds `aria-labelledby` to the native control.
|
|
21
|
+
*/
|
|
22
|
+
ariaLabelledby?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Adds `aria-describedby` to the native control.
|
|
25
|
+
*/
|
|
26
|
+
ariaDescribedby?: string;
|
|
13
27
|
/**
|
|
14
28
|
* Specifies the ID of the native form element. You can use it to relate
|
|
15
29
|
* a label element's `for` attribute to this control.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/radio-button/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,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AQ,CAAC,EAAE,MAAM,CAAC;aACnB,CAAC;YACF,MAAM,CAAC,EAAE;gBACP,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;aACnB,CAAC;YACF,MAAM,CAAC,EAAE;gBACP,IAAI,CAAC,EAAE;oBACL,OAAO,CAAC,EAAE,MAAM,CAAC;oBACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;oBAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;iBACnB,CAAC;aACH,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;SACH,CAAC;QACF,KAAK,CAAC,EAAE;YACN,KAAK,CAAC,EAAE;gBACN,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;aACnB,CAAC;SACH,CAAC;QACF,WAAW,CAAC,EAAE;YACZ,KAAK,CAAC,EAAE;gBACN,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;aACnB,CAAC;SACH,CAAC;KACH;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/radio-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 { BaseComponentProps } from '../types/base-component';\nimport { NonCancelableEventHandler } from '../types/events';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../types/native-attributes';\n\nexport interface RadioButtonProps extends BaseComponentProps {\n /**\n * Specifies if the component is selected.\n */\n checked: boolean;\n\n /**\n * Specifies the ID of the native form element. You can use it to relate\n * a label element's `for` attribute to this control.\n */\n controlId?: string;\n\n /**\n * Name of the group that the radio button belongs to.\n */\n name: string;\n\n /**\n * Description that appears below the label.\n */\n description?: React.ReactNode;\n\n /**\n * Specifies if the control is disabled, which prevents the\n * user from modifying the value and prevents the value from\n * being included in a form submission. A disabled control can't\n * receive focus.\n */\n disabled?: boolean;\n\n /**\n * The control's label that's displayed next to the radio button. A state change occurs when a user clicks on it.\n * @displayname label\n */\n children?: React.ReactNode;\n\n /**\n * Attributes to add to the native `input` element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeInputAttributes?: NativeAttributes<React.InputHTMLAttributes<HTMLInputElement>>;\n\n /**\n * Called when the user clicks on the radio button and it is not disabled or read-only.\n */\n onSelect?: NonCancelableEventHandler;\n\n /**\n * Specifies if the radio button is read-only, which prevents the\n * user from modifying the value, but does not prevent the value from\n * being included in a form submission. A read-only control is still focusable.\n *\n * This property should be set for either all or none of the radio buttons in a group.\n */\n readOnly?: boolean;\n\n /**\n * An object containing CSS properties to customize the radio button's visual appearance.\n * Refer to the [style](/components/radio-button/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: RadioButtonProps.Style;\n\n /**\n * Sets the value attribute to the native control.\n * If using native form submission, this value is sent to the server if the radio button is checked.\n * It is never shown to the user by their user agent.\n * For more details, see the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/radio#value).\n */\n value?: string;\n}\n\nexport namespace RadioButtonProps {\n export interface ChangeDetail {\n checked: boolean;\n }\n\n export interface Ref {\n /**\n * Sets input focus onto the UI control.\n */\n focus(): void;\n }\n\n export interface Style {\n input?: {\n fill?: {\n checked?: string;\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n stroke?: {\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n circle?: {\n fill?: {\n checked?: string;\n disabled?: string;\n readOnly?: string;\n };\n };\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n label?: {\n color?: {\n checked?: string;\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n };\n description?: {\n color?: {\n checked?: string;\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n };\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/radio-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 { BaseComponentProps } from '../types/base-component';\nimport { NonCancelableEventHandler } from '../types/events';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../types/native-attributes';\n\nexport interface RadioButtonProps extends BaseComponentProps {\n /**\n * Specifies if the component is selected.\n */\n checked: boolean;\n\n /**\n * Adds an `aria-label` to the native control.\n *\n * Use this if you don't have a visible label for this control.\n */\n ariaLabel?: string;\n\n /**\n * Adds `aria-labelledby` to the native control.\n */\n ariaLabelledby?: string;\n\n /**\n * Adds `aria-describedby` to the native control.\n */\n ariaDescribedby?: string;\n\n /**\n * Specifies the ID of the native form element. You can use it to relate\n * a label element's `for` attribute to this control.\n */\n controlId?: string;\n\n /**\n * Name of the group that the radio button belongs to.\n */\n name: string;\n\n /**\n * Description that appears below the label.\n */\n description?: React.ReactNode;\n\n /**\n * Specifies if the control is disabled, which prevents the\n * user from modifying the value and prevents the value from\n * being included in a form submission. A disabled control can't\n * receive focus.\n */\n disabled?: boolean;\n\n /**\n * The control's label that's displayed next to the radio button. A state change occurs when a user clicks on it.\n * @displayname label\n */\n children?: React.ReactNode;\n\n /**\n * Attributes to add to the native `input` element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeInputAttributes?: NativeAttributes<React.InputHTMLAttributes<HTMLInputElement>>;\n\n /**\n * Called when the user clicks on the radio button and it is not disabled or read-only.\n */\n onSelect?: NonCancelableEventHandler;\n\n /**\n * Specifies if the radio button is read-only, which prevents the\n * user from modifying the value, but does not prevent the value from\n * being included in a form submission. A read-only control is still focusable.\n *\n * This property should be set for either all or none of the radio buttons in a group.\n */\n readOnly?: boolean;\n\n /**\n * An object containing CSS properties to customize the radio button's visual appearance.\n * Refer to the [style](/components/radio-button/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: RadioButtonProps.Style;\n\n /**\n * Sets the value attribute to the native control.\n * If using native form submission, this value is sent to the server if the radio button is checked.\n * It is never shown to the user by their user agent.\n * For more details, see the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/radio#value).\n */\n value?: string;\n}\n\nexport namespace RadioButtonProps {\n export interface ChangeDetail {\n checked: boolean;\n }\n\n export interface Ref {\n /**\n * Sets input focus onto the UI control.\n */\n focus(): void;\n }\n\n export interface Style {\n input?: {\n fill?: {\n checked?: string;\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n stroke?: {\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n circle?: {\n fill?: {\n checked?: string;\n disabled?: string;\n readOnly?: string;\n };\n };\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n label?: {\n color?: {\n checked?: string;\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n };\n description?: {\n color?: {\n checked?: string;\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n };\n }\n}\n"]}
|
|
@@ -1,51 +1,52 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"expandable-toggle-wrapper": "awsui_expandable-toggle-
|
|
5
|
-
"body-cell": "awsui_body-
|
|
6
|
-
"body-cell-content": "awsui_body-cell-
|
|
7
|
-
"
|
|
8
|
-
"expandable-level-
|
|
9
|
-
"expandable-level-
|
|
10
|
-
"expandable-level-
|
|
11
|
-
"expandable-level-
|
|
12
|
-
"expandable-level-
|
|
13
|
-
"expandable-level-
|
|
14
|
-
"expandable-level-
|
|
15
|
-
"expandable-level-
|
|
16
|
-
"expandable-level-
|
|
17
|
-
"expandable-level-
|
|
18
|
-
"
|
|
19
|
-
"body-cell-
|
|
20
|
-
"body-cell-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"body-cell-
|
|
24
|
-
"body-cell-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"sticky-cell-last-inline-
|
|
35
|
-
"
|
|
36
|
-
"body-cell-
|
|
37
|
-
"body-cell-
|
|
38
|
-
"body-cell-
|
|
39
|
-
"body-cell-
|
|
40
|
-
"body-cell-editor
|
|
41
|
-
"body-cell-editor-
|
|
42
|
-
"body-cell-editor-
|
|
43
|
-
"body-cell-editor-
|
|
44
|
-
"body-cell-editor-
|
|
45
|
-
"body-cell-editor-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"body-cell-
|
|
4
|
+
"expandable-toggle-wrapper": "awsui_expandable-toggle-wrapper_c6tup_1pyll_9",
|
|
5
|
+
"body-cell": "awsui_body-cell_c6tup_1pyll_16",
|
|
6
|
+
"body-cell-content": "awsui_body-cell-content_c6tup_1pyll_24",
|
|
7
|
+
"with-paddings": "awsui_with-paddings_c6tup_1pyll_24",
|
|
8
|
+
"expandable-level-0": "awsui_expandable-level-0_c6tup_1pyll_30",
|
|
9
|
+
"expandable-level-1": "awsui_expandable-level-1_c6tup_1pyll_37",
|
|
10
|
+
"expandable-level-2": "awsui_expandable-level-2_c6tup_1pyll_44",
|
|
11
|
+
"expandable-level-3": "awsui_expandable-level-3_c6tup_1pyll_51",
|
|
12
|
+
"expandable-level-4": "awsui_expandable-level-4_c6tup_1pyll_58",
|
|
13
|
+
"expandable-level-5": "awsui_expandable-level-5_c6tup_1pyll_65",
|
|
14
|
+
"expandable-level-6": "awsui_expandable-level-6_c6tup_1pyll_72",
|
|
15
|
+
"expandable-level-7": "awsui_expandable-level-7_c6tup_1pyll_79",
|
|
16
|
+
"expandable-level-8": "awsui_expandable-level-8_c6tup_1pyll_86",
|
|
17
|
+
"expandable-level-9": "awsui_expandable-level-9_c6tup_1pyll_93",
|
|
18
|
+
"expandable-level-next": "awsui_expandable-level-next_c6tup_1pyll_100",
|
|
19
|
+
"body-cell-align-top": "awsui_body-cell-align-top_c6tup_1pyll_118",
|
|
20
|
+
"body-cell-wrap": "awsui_body-cell-wrap_c6tup_1pyll_124",
|
|
21
|
+
"body-cell-counter": "awsui_body-cell-counter_c6tup_1pyll_129",
|
|
22
|
+
"is-visual-refresh": "awsui_is-visual-refresh_c6tup_1pyll_227",
|
|
23
|
+
"body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_1pyll_317",
|
|
24
|
+
"body-cell-expandable": "awsui_body-cell-expandable_c6tup_1pyll_317",
|
|
25
|
+
"body-cell-editable": "awsui_body-cell-editable_c6tup_1pyll_317",
|
|
26
|
+
"has-striped-rows": "awsui_has-striped-rows_c6tup_1pyll_400",
|
|
27
|
+
"sticky-cell-pad-inline-start": "awsui_sticky-cell-pad-inline-start_c6tup_1pyll_566",
|
|
28
|
+
"has-selection": "awsui_has-selection_c6tup_1pyll_732",
|
|
29
|
+
"body-cell-selected": "awsui_body-cell-selected_c6tup_1pyll_901",
|
|
30
|
+
"has-footer": "awsui_has-footer_c6tup_1pyll_904",
|
|
31
|
+
"body-cell-shaded": "awsui_body-cell-shaded_c6tup_1pyll_914",
|
|
32
|
+
"sticky-cell": "awsui_sticky-cell_c6tup_1pyll_566",
|
|
33
|
+
"table-variant-full-page": "awsui_table-variant-full-page_c6tup_1pyll_965",
|
|
34
|
+
"sticky-cell-last-inline-end": "awsui_sticky-cell-last-inline-end_c6tup_1pyll_982",
|
|
35
|
+
"sticky-cell-last-inline-start": "awsui_sticky-cell-last-inline-start_c6tup_1pyll_991",
|
|
36
|
+
"body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_1pyll_1013",
|
|
37
|
+
"body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_1pyll_1020",
|
|
38
|
+
"body-cell-editor-wrapper": "awsui_body-cell-editor-wrapper_c6tup_1pyll_1046",
|
|
39
|
+
"body-cell-success": "awsui_body-cell-success_c6tup_1pyll_1051",
|
|
40
|
+
"body-cell-editor": "awsui_body-cell-editor_c6tup_1pyll_1046",
|
|
41
|
+
"body-cell-editor-disabled": "awsui_body-cell-editor-disabled_c6tup_1pyll_1076",
|
|
42
|
+
"body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_1pyll_1085",
|
|
43
|
+
"body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_1pyll_1095",
|
|
44
|
+
"body-cell-editor-row-editor": "awsui_body-cell-editor-row-editor_c6tup_1pyll_1098",
|
|
45
|
+
"body-cell-editor-focusable": "awsui_body-cell-editor-focusable_c6tup_1pyll_1101",
|
|
46
|
+
"body-cell-editor-icon": "awsui_body-cell-editor-icon_c6tup_1pyll_1125",
|
|
47
|
+
"resizable-columns": "awsui_resizable-columns_c6tup_1pyll_1237",
|
|
48
|
+
"expandable-cell-content": "awsui_expandable-cell-content_c6tup_1pyll_1240",
|
|
49
|
+
"body-cell-edit-disabled-popover": "awsui_body-cell-edit-disabled-popover_c6tup_1pyll_1291",
|
|
50
|
+
"body-cell-has-success": "awsui_body-cell-has-success_c6tup_1pyll_1294"
|
|
50
51
|
};
|
|
51
52
|
|