@cloudscape-design/components 3.0.620 → 3.0.622
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/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +31 -31
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/classic.js.map +1 -1
- package/app-layout/notifications/styles.css.js +3 -3
- package/app-layout/notifications/styles.scoped.css +7 -7
- package/app-layout/notifications/styles.selectors.js +3 -3
- package/app-layout/visual-refresh/styles.css.js +81 -81
- package/app-layout/visual-refresh/styles.scoped.css +258 -258
- package/app-layout/visual-refresh/styles.selectors.js +81 -81
- package/area-chart/elements/use-highlight-details.js.map +1 -1
- package/code-editor/interfaces.d.ts +2 -2
- package/code-editor/interfaces.d.ts.map +1 -1
- package/code-editor/interfaces.js.map +1 -1
- package/code-editor/util.js.map +1 -1
- package/column-layout/internal.d.ts +1 -1
- package/column-layout/internal.d.ts.map +1 -1
- package/column-layout/internal.js.map +1 -1
- package/flashbar/styles.css.js +47 -47
- package/flashbar/styles.scoped.css +171 -171
- package/flashbar/styles.selectors.js +47 -47
- package/i18n/dynamic.js +30 -30
- package/i18n/messages/all.all.d.ts +1 -1
- package/i18n/messages/all.all.js +1 -14558
- package/i18n/messages/all.all.json +1 -14615
- package/i18n/messages/all.de.d.ts +1 -1
- package/i18n/messages/all.de.js +1 -1086
- package/i18n/messages/all.de.json +1 -1096
- package/i18n/messages/all.en-GB.d.ts +1 -1
- package/i18n/messages/all.en-GB.js +1 -1064
- package/i18n/messages/all.en-GB.json +1 -1067
- package/i18n/messages/all.en.d.ts +1 -1
- package/i18n/messages/all.en.js +1 -1064
- package/i18n/messages/all.en.json +1 -1063
- package/i18n/messages/all.es.d.ts +1 -1
- package/i18n/messages/all.es.js +1 -1080
- package/i18n/messages/all.es.json +1 -1083
- package/i18n/messages/all.fr.d.ts +1 -1
- package/i18n/messages/all.fr.js +1 -1104
- package/i18n/messages/all.fr.json +1 -1110
- package/i18n/messages/all.id.d.ts +1 -1
- package/i18n/messages/all.id.js +1 -1049
- package/i18n/messages/all.id.json +1 -1054
- package/i18n/messages/all.it.d.ts +1 -1
- package/i18n/messages/all.it.js +1 -1042
- package/i18n/messages/all.it.json +1 -1046
- package/i18n/messages/all.ja.d.ts +1 -1
- package/i18n/messages/all.ja.js +1 -1081
- package/i18n/messages/all.ja.json +1 -1083
- package/i18n/messages/all.ko.d.ts +1 -1
- package/i18n/messages/all.ko.js +1 -1054
- package/i18n/messages/all.ko.json +1 -1065
- package/i18n/messages/all.pt-BR.d.ts +1 -1
- package/i18n/messages/all.pt-BR.js +1 -1074
- package/i18n/messages/all.pt-BR.json +1 -1082
- package/i18n/messages/all.th.d.ts +1 -1
- package/i18n/messages/all.th.js +1 -733
- package/i18n/messages/all.th.json +1 -734
- package/i18n/messages/all.tr.d.ts +1 -1
- package/i18n/messages/all.tr.js +1 -1072
- package/i18n/messages/all.tr.json +1 -1079
- package/i18n/messages/all.zh-CN.d.ts +1 -1
- package/i18n/messages/all.zh-CN.js +1 -1054
- package/i18n/messages/all.zh-CN.json +1 -1053
- package/i18n/messages/all.zh-TW.d.ts +1 -1
- package/i18n/messages/all.zh-TW.js +1 -1053
- package/i18n/messages/all.zh-TW.json +1 -1052
- package/i18n/messages-types.d.ts +7 -0
- package/i18n/messages-types.d.ts.map +1 -1
- package/i18n/messages-types.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/internal/animate.js.map +1 -1
- package/internal/base-component/styles.scoped.css +25 -0
- package/internal/components/dropdown/dropdown-fit-handler.js.map +1 -1
- package/internal/components/dropdown/styles.css.js +20 -20
- package/internal/components/dropdown/styles.scoped.css +41 -41
- package/internal/components/dropdown/styles.selectors.js +20 -20
- package/internal/components/options-list/utils/use-highlight-option.d.ts.map +1 -1
- package/internal/components/options-list/utils/use-highlight-option.js.map +1 -1
- package/internal/environment.d.ts +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +2 -2
- package/internal/events/index.d.ts.map +1 -1
- package/internal/events/index.js.map +1 -1
- package/internal/focus-tracker.d.ts.map +1 -1
- package/internal/focus-tracker.js.map +1 -1
- package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/internal/generated/custom-css-properties/index.js +51 -43
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/generated/styles/tokens.d.ts +5 -0
- package/internal/generated/styles/tokens.js +5 -0
- package/internal/generated/theming/index.cjs +155 -0
- package/internal/generated/theming/index.js +155 -0
- package/internal/hooks/container-queries/use-container-breakpoints.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/mixed-line-bar-chart/chart-container.js.map +1 -1
- package/package.json +2 -1
- package/pie-chart/utils.d.ts.map +1 -1
- package/pie-chart/utils.js.map +1 -1
- package/slider/index.d.ts +5 -0
- package/slider/index.d.ts.map +1 -0
- package/slider/index.js +14 -0
- package/slider/index.js.map +1 -0
- package/slider/interfaces.d.ts +75 -0
- package/slider/interfaces.d.ts.map +1 -0
- package/slider/interfaces.js +2 -0
- package/slider/interfaces.js.map +1 -0
- package/slider/internal.d.ts +7 -0
- package/slider/internal.d.ts.map +1 -0
- package/slider/internal.js +119 -0
- package/slider/internal.js.map +1 -0
- package/slider/slider-labels.d.ts +11 -0
- package/slider/slider-labels.d.ts.map +1 -0
- package/slider/slider-labels.js +76 -0
- package/slider/slider-labels.js.map +1 -0
- package/slider/styles.css.js +28 -0
- package/slider/styles.scoped.css +411 -0
- package/slider/styles.selectors.js +29 -0
- package/slider/tick-marks.d.ts +16 -0
- package/slider/tick-marks.d.ts.map +1 -0
- package/slider/tick-marks.js +37 -0
- package/slider/tick-marks.js.map +1 -0
- package/slider/utils.d.ts +9 -0
- package/slider/utils.d.ts.map +1 -0
- package/slider/utils.js +26 -0
- package/slider/utils.js.map +1 -0
- package/spinner/styles.css.js +13 -13
- package/spinner/styles.scoped.css +39 -39
- package/spinner/styles.selectors.js +13 -13
- package/table/internal.js.map +1 -1
- package/test-utils/dom/index.d.ts +3 -0
- package/test-utils/dom/index.js +12 -7
- package/test-utils/dom/index.js.map +1 -1
- package/test-utils/dom/slider/index.d.ts +6 -0
- package/test-utils/dom/slider/index.js +12 -0
- package/test-utils/dom/slider/index.js.map +1 -0
- package/test-utils/selectors/index.d.ts +3 -0
- package/test-utils/selectors/index.js +10 -4
- package/test-utils/selectors/index.js.map +1 -1
- package/test-utils/selectors/slider/index.d.ts +6 -0
- package/test-utils/selectors/slider/index.js +12 -0
- package/test-utils/selectors/slider/index.js.map +1 -0
- package/test-utils/tsconfig.tsbuildinfo +1 -1
|
@@ -2,86 +2,86 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"background": "
|
|
6
|
-
"scrolling-background": "awsui_scrolling-
|
|
7
|
-
"sticky-background": "awsui_sticky-
|
|
8
|
-
"has-sticky-notifications": "awsui_has-sticky-
|
|
9
|
-
"breadcrumbs": "
|
|
10
|
-
"has-sticky-background": "awsui_has-sticky-
|
|
11
|
-
"drawers-container": "awsui_drawers-
|
|
12
|
-
"has-open-drawer": "awsui_has-open-
|
|
13
|
-
"disable-body-scroll": "awsui_disable-body-
|
|
14
|
-
"drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-
|
|
15
|
-
"has-multiple-triggers": "awsui_has-multiple-
|
|
16
|
-
"drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-
|
|
17
|
-
"drawers-trigger-content": "awsui_drawers-trigger-
|
|
18
|
-
"drawers-trigger-overflow": "awsui_drawers-trigger-
|
|
19
|
-
"drawers-trigger": "awsui_drawers-
|
|
20
|
-
"drawer": "
|
|
21
|
-
"drawer-content-container": "awsui_drawer-content-
|
|
22
|
-
"drawer-close-button": "awsui_drawer-close-
|
|
23
|
-
"drawer-content": "awsui_drawer-
|
|
24
|
-
"drawer-content-hidden": "awsui_drawer-content-
|
|
25
|
-
"drawer-slider": "awsui_drawer-
|
|
26
|
-
"is-drawer-open": "awsui_is-drawer-
|
|
27
|
-
"content": "
|
|
28
|
-
"layout": "
|
|
29
|
-
"has-max-content-width": "awsui_has-max-content-
|
|
30
|
-
"content-type-dashboard": "awsui_content-type-
|
|
31
|
-
"content-type-table": "awsui_content-type-
|
|
32
|
-
"content-type-cards": "awsui_content-type-
|
|
33
|
-
"is-overlap-disabled": "awsui_is-overlap-
|
|
34
|
-
"is-hide-mobile-toolbar": "awsui_is-hide-mobile-
|
|
35
|
-
"has-content-gap-left": "awsui_has-content-gap-
|
|
36
|
-
"has-content-gap-right": "awsui_has-content-gap-
|
|
37
|
-
"content-first-child-notifications": "awsui_content-first-child-
|
|
38
|
-
"has-breadcrumbs": "awsui_has-
|
|
39
|
-
"content-first-child-header": "awsui_content-first-child-
|
|
40
|
-
"has-header": "awsui_has-
|
|
41
|
-
"content-first-child-main": "awsui_content-first-child-
|
|
42
|
-
"disable-content-paddings": "awsui_disable-content-
|
|
43
|
-
"has-split-panel": "awsui_has-split-
|
|
44
|
-
"split-panel-position-bottom": "awsui_split-panel-position-
|
|
45
|
-
"block-body-scroll": "awsui_block-body-
|
|
46
|
-
"unfocusable": "
|
|
47
|
-
"container": "
|
|
48
|
-
"is-navigation-open": "awsui_is-navigation-
|
|
49
|
-
"is-tools-open": "awsui_is-tools-
|
|
50
|
-
"is-split-panel-open": "awsui_is-split-panel-
|
|
51
|
-
"split-panel-position-side": "awsui_split-panel-position-
|
|
52
|
-
"has-active-drawer": "awsui_has-active-
|
|
53
|
-
"mobile-toolbar": "awsui_mobile-
|
|
54
|
-
"remove-high-contrast-header": "awsui_remove-high-contrast-
|
|
55
|
-
"mobile-toolbar-nav": "awsui_mobile-toolbar-
|
|
56
|
-
"mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-
|
|
57
|
-
"mobile-toolbar-tools": "awsui_mobile-toolbar-
|
|
58
|
-
"navigation-container": "awsui_navigation-
|
|
59
|
-
"show-navigation": "awsui_show-
|
|
60
|
-
"animating": "
|
|
61
|
-
"showButtons": "
|
|
62
|
-
"navigation": "
|
|
63
|
-
"openNavigation": "
|
|
64
|
-
"animated-content": "awsui_animated-
|
|
65
|
-
"hide-navigation": "awsui_hide-
|
|
66
|
-
"notifications": "
|
|
67
|
-
"sticky-notifications": "awsui_sticky-
|
|
68
|
-
"split-panel-bottom": "awsui_split-panel-
|
|
69
|
-
"position-bottom": "awsui_position-
|
|
70
|
-
"openSplitPanelBottom": "
|
|
71
|
-
"split-panel-side": "awsui_split-panel-
|
|
72
|
-
"position-side": "awsui_position-
|
|
73
|
-
"tools-container": "awsui_tools-
|
|
74
|
-
"tools": "
|
|
75
|
-
"openTools": "
|
|
76
|
-
"has-tools-form-persistence": "awsui_has-tools-form-
|
|
77
|
-
"hide-tools": "awsui_hide-
|
|
78
|
-
"show-tools": "awsui_show-
|
|
79
|
-
"has-tools-form": "awsui_has-tools-
|
|
80
|
-
"trigger-badge-wrapper": "awsui_trigger-badge-
|
|
81
|
-
"trigger": "
|
|
82
|
-
"selected": "
|
|
83
|
-
"badge": "
|
|
84
|
-
"trigger-wrapper": "awsui_trigger-
|
|
85
|
-
"dot": "
|
|
5
|
+
"background": "awsui_background_hyvsj_1ribg_99",
|
|
6
|
+
"scrolling-background": "awsui_scrolling-background_hyvsj_1ribg_102",
|
|
7
|
+
"sticky-background": "awsui_sticky-background_hyvsj_1ribg_108",
|
|
8
|
+
"has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_1ribg_116",
|
|
9
|
+
"breadcrumbs": "awsui_breadcrumbs_hyvsj_1ribg_129",
|
|
10
|
+
"has-sticky-background": "awsui_has-sticky-background_hyvsj_1ribg_139",
|
|
11
|
+
"drawers-container": "awsui_drawers-container_hyvsj_1ribg_151",
|
|
12
|
+
"has-open-drawer": "awsui_has-open-drawer_hyvsj_1ribg_162",
|
|
13
|
+
"disable-body-scroll": "awsui_disable-body-scroll_hyvsj_1ribg_185",
|
|
14
|
+
"drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_1ribg_190",
|
|
15
|
+
"has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_1ribg_231",
|
|
16
|
+
"drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_1ribg_241",
|
|
17
|
+
"drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_1ribg_245",
|
|
18
|
+
"drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_1ribg_259",
|
|
19
|
+
"drawers-trigger": "awsui_drawers-trigger_hyvsj_1ribg_245",
|
|
20
|
+
"drawer": "awsui_drawer_hyvsj_1ribg_151",
|
|
21
|
+
"drawer-content-container": "awsui_drawer-content-container_hyvsj_1ribg_290",
|
|
22
|
+
"drawer-close-button": "awsui_drawer-close-button_hyvsj_1ribg_299",
|
|
23
|
+
"drawer-content": "awsui_drawer-content_hyvsj_1ribg_290",
|
|
24
|
+
"drawer-content-hidden": "awsui_drawer-content-hidden_hyvsj_1ribg_307",
|
|
25
|
+
"drawer-slider": "awsui_drawer-slider_hyvsj_1ribg_310",
|
|
26
|
+
"is-drawer-open": "awsui_is-drawer-open_hyvsj_1ribg_317",
|
|
27
|
+
"content": "awsui_content_hyvsj_1ribg_343",
|
|
28
|
+
"layout": "awsui_layout_hyvsj_1ribg_364",
|
|
29
|
+
"has-max-content-width": "awsui_has-max-content-width_hyvsj_1ribg_435",
|
|
30
|
+
"content-type-dashboard": "awsui_content-type-dashboard_hyvsj_1ribg_450",
|
|
31
|
+
"content-type-table": "awsui_content-type-table_hyvsj_1ribg_464",
|
|
32
|
+
"content-type-cards": "awsui_content-type-cards_hyvsj_1ribg_464",
|
|
33
|
+
"is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_1ribg_470",
|
|
34
|
+
"is-hide-mobile-toolbar": "awsui_is-hide-mobile-toolbar_hyvsj_1ribg_473",
|
|
35
|
+
"has-content-gap-left": "awsui_has-content-gap-left_hyvsj_1ribg_487",
|
|
36
|
+
"has-content-gap-right": "awsui_has-content-gap-right_hyvsj_1ribg_490",
|
|
37
|
+
"content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_1ribg_500",
|
|
38
|
+
"has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_1ribg_503",
|
|
39
|
+
"content-first-child-header": "awsui_content-first-child-header_hyvsj_1ribg_506",
|
|
40
|
+
"has-header": "awsui_has-header_hyvsj_1ribg_506",
|
|
41
|
+
"content-first-child-main": "awsui_content-first-child-main_hyvsj_1ribg_524",
|
|
42
|
+
"disable-content-paddings": "awsui_disable-content-paddings_hyvsj_1ribg_524",
|
|
43
|
+
"has-split-panel": "awsui_has-split-panel_hyvsj_1ribg_561",
|
|
44
|
+
"split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_1ribg_561",
|
|
45
|
+
"block-body-scroll": "awsui_block-body-scroll_hyvsj_1ribg_569",
|
|
46
|
+
"unfocusable": "awsui_unfocusable_hyvsj_1ribg_574",
|
|
47
|
+
"container": "awsui_container_hyvsj_1ribg_584",
|
|
48
|
+
"is-navigation-open": "awsui_is-navigation-open_hyvsj_1ribg_610",
|
|
49
|
+
"is-tools-open": "awsui_is-tools-open_hyvsj_1ribg_613",
|
|
50
|
+
"is-split-panel-open": "awsui_is-split-panel-open_hyvsj_1ribg_613",
|
|
51
|
+
"split-panel-position-side": "awsui_split-panel-position-side_hyvsj_1ribg_613",
|
|
52
|
+
"has-active-drawer": "awsui_has-active-drawer_hyvsj_1ribg_613",
|
|
53
|
+
"mobile-toolbar": "awsui_mobile-toolbar_hyvsj_1ribg_622",
|
|
54
|
+
"remove-high-contrast-header": "awsui_remove-high-contrast-header_hyvsj_1ribg_639",
|
|
55
|
+
"mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_1ribg_643",
|
|
56
|
+
"mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_1ribg_647",
|
|
57
|
+
"mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_1ribg_651",
|
|
58
|
+
"navigation-container": "awsui_navigation-container_hyvsj_1ribg_660",
|
|
59
|
+
"show-navigation": "awsui_show-navigation_hyvsj_1ribg_698",
|
|
60
|
+
"animating": "awsui_animating_hyvsj_1ribg_721",
|
|
61
|
+
"showButtons": "awsui_showButtons_hyvsj_1ribg_1",
|
|
62
|
+
"navigation": "awsui_navigation_hyvsj_1ribg_660",
|
|
63
|
+
"openNavigation": "awsui_openNavigation_hyvsj_1ribg_1",
|
|
64
|
+
"animated-content": "awsui_animated-content_hyvsj_1ribg_783",
|
|
65
|
+
"hide-navigation": "awsui_hide-navigation_hyvsj_1ribg_792",
|
|
66
|
+
"notifications": "awsui_notifications_hyvsj_1ribg_802",
|
|
67
|
+
"sticky-notifications": "awsui_sticky-notifications_hyvsj_1ribg_808",
|
|
68
|
+
"split-panel-bottom": "awsui_split-panel-bottom_hyvsj_1ribg_825",
|
|
69
|
+
"position-bottom": "awsui_position-bottom_hyvsj_1ribg_872",
|
|
70
|
+
"openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_1ribg_1",
|
|
71
|
+
"split-panel-side": "awsui_split-panel-side_hyvsj_1ribg_901",
|
|
72
|
+
"position-side": "awsui_position-side_hyvsj_1ribg_914",
|
|
73
|
+
"tools-container": "awsui_tools-container_hyvsj_1ribg_936",
|
|
74
|
+
"tools": "awsui_tools_hyvsj_1ribg_936",
|
|
75
|
+
"openTools": "awsui_openTools_hyvsj_1ribg_1",
|
|
76
|
+
"has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_1ribg_1027",
|
|
77
|
+
"hide-tools": "awsui_hide-tools_hyvsj_1ribg_1037",
|
|
78
|
+
"show-tools": "awsui_show-tools_hyvsj_1ribg_1049",
|
|
79
|
+
"has-tools-form": "awsui_has-tools-form_hyvsj_1ribg_1027",
|
|
80
|
+
"trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_1ribg_1132",
|
|
81
|
+
"trigger": "awsui_trigger_hyvsj_1ribg_1132",
|
|
82
|
+
"selected": "awsui_selected_hyvsj_1ribg_1209",
|
|
83
|
+
"badge": "awsui_badge_hyvsj_1ribg_1229",
|
|
84
|
+
"trigger-wrapper": "awsui_trigger-wrapper_hyvsj_1ribg_1233",
|
|
85
|
+
"dot": "awsui_dot_hyvsj_1ribg_1244"
|
|
86
86
|
};
|
|
87
87
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-highlight-details.js","sourceRoot":"","sources":["../../../../src/area-chart/elements/use-highlight-details.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAgBrD,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAqC,EAC9E,KAAK,EACL,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,gBAAgB,GAOjB;IACC,MAAM,IAAI,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;IAC3C,MAAM,EAAE,GAAG,WAAW,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACxE,MAAM,MAAM,GAAG,WAAW,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAChF,MAAM,eAAe,GAAG,WAAW,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAExF,IAAI,CAAC,EAAE,EAAE;QACP,OAAO,IAAI,CAAC;KACb;IAED,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;IACxB,MAAM,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1C,MAAM,YAAY,GAAG,CA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ACzB,CAAC,CAAC,oBAAoB,CAAC,YAAY,CAAC;gBACpC,CAAC,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"use-highlight-details.js","sourceRoot":"","sources":["../../../../src/area-chart/elements/use-highlight-details.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAgBrD,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAqC,EAC9E,KAAK,EACL,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,gBAAgB,GAOjB;IACC,MAAM,IAAI,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;IAC3C,MAAM,EAAE,GAAG,WAAW,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACxE,MAAM,MAAM,GAAG,WAAW,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAChF,MAAM,eAAe,GAAG,WAAW,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAExF,IAAI,CAAC,EAAE,EAAE;QACP,OAAO,IAAI,CAAC;KACb;IAED,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;IACxB,MAAM,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1C,MAAM,YAAY,GAAG,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IACjE,MAAM,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAA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KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACnE,MAAM,WAAW,GAAG,GAAG,WAAW,IAAI,UAAU,IAAI,UAAU,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;IAElH,OAAO;QACL,eAAe;QACf,cAAc;QACd,UAAU;QACV,WAAW;QACX,UAAU;QACV,WAAW;QACX,aAAa;QACb,YAAY;QACZ,YAAY;KACb,CAAC;IAEF,SAAS,iBAAiB,CAAC,KAA8B;QACvD,OAAO,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9D,CAAC;AACH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useSelector } from '../async-store';\nimport { CartesianChartProps } from '../../internal/components/cartesian-chart/interfaces';\nimport { ChartSeriesDetailItem } from '../../internal/components/chart-series-details';\nimport { useInternalI18n } from '../../i18n/context';\nimport { AreaChartProps } from '../interfaces';\nimport { ChartModel } from '../model';\n\nexport interface HighlightDetails {\n isPopoverPinned: boolean;\n highlightIndex: number;\n formattedX: string;\n seriesTitle: string;\n formattedY: number | string;\n seriesDetails: readonly ChartSeriesDetailItem[];\n totalDetails: readonly ChartSeriesDetailItem[];\n pointDetails: null | ChartSeriesDetailItem;\n activeLabel: string;\n}\n\nexport default function useHighlightDetails<T extends AreaChartProps.DataTypes>({\n model,\n xTickFormatter,\n yTickFormatter,\n detailTotalFormatter,\n detailTotalLabel,\n}: {\n model: ChartModel<T>;\n xTickFormatter?: CartesianChartProps.TickFormatter<T>;\n yTickFormatter?: CartesianChartProps.TickFormatter<number>;\n detailTotalFormatter?: CartesianChartProps.TickFormatter<number>;\n detailTotalLabel?: string;\n}): null | HighlightDetails {\n const i18n = useInternalI18n('area-chart');\n const hX = useSelector(model.interactions, state => state.highlightedX);\n const hPoint = useSelector(model.interactions, state => state.highlightedPoint);\n const isPopoverPinned = useSelector(model.interactions, state => state.isPopoverPinned);\n\n if (!hX) {\n return null;\n }\n\n const [firstPoint] = hX;\n const highlightIndex = firstPoint.index.x;\n const seriesPoints = [...model.computed.plot.xs[highlightIndex]];\n const detailsTotal = seriesPoints.reduce((total, point) => total + point.value, 0);\n const formattedX = xTickFormatter ? xTickFormatter(firstPoint.x) : firstPoint.x.toString();\n const seriesTitle = hPoint ? getInternalSeries(hPoint).title : '';\n const formattedY = hPoint ? getInternalSeries(hPoint).formatValue(hPoint.value, hPoint.x) : '';\n const seriesDetails = seriesPoints.map(point => {\n const { title, formatValue, color, markerType } = getInternalSeries(point);\n const isDimmed = Boolean(hPoint) && point !== hPoint;\n return { key: title, value: formatValue(point.value, point.x), color, markerType, isDimmed };\n });\n const totalDetails = [\n {\n key: i18n('i18nStrings.detailTotalLabel', detailTotalLabel) || '',\n value: detailTotalFormatter\n ? detailTotalFormatter(detailsTotal)\n : yTickFormatter\n ? yTickFormatter(detailsTotal)\n : detailsTotal,\n },\n ];\n const pointDetails = hPoint ? seriesDetails[hPoint.index.s] : null;\n const activeLabel = `${seriesTitle} ${formattedX} ${formattedY}, ${totalDetails[0].key} ${totalDetails[0].value}`;\n\n return {\n isPopoverPinned,\n highlightIndex,\n formattedX,\n seriesTitle,\n formattedY,\n activeLabel,\n seriesDetails,\n totalDetails,\n pointDetails,\n };\n\n function getInternalSeries(point: ChartModel.PlotPoint<T>) {\n return model.getInternalSeries(model.series[point.index.s]);\n }\n}\n"]}
|
|
@@ -104,10 +104,10 @@ export interface CodeEditorProps extends BaseComponentProps, FormFieldControlPro
|
|
|
104
104
|
type LiteralUnion<LiteralType, BaseType extends string> = LiteralType | (BaseType & {
|
|
105
105
|
_?: never;
|
|
106
106
|
});
|
|
107
|
-
type BuiltInLanguage = typeof AceModes[number]['value'];
|
|
107
|
+
type BuiltInLanguage = (typeof AceModes)[number]['value'];
|
|
108
108
|
export declare namespace CodeEditorProps {
|
|
109
109
|
type Language = LiteralUnion<BuiltInLanguage, string>;
|
|
110
|
-
type Theme = typeof LightThemes[number]['value'] | typeof DarkThemes[number]['value'];
|
|
110
|
+
type Theme = (typeof LightThemes)[number]['value'] | (typeof DarkThemes)[number]['value'];
|
|
111
111
|
interface AvailableThemes {
|
|
112
112
|
light: ReadonlyArray<string>;
|
|
113
113
|
dark: ReadonlyArray<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/code-editor/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,WAAW,eAAgB,SAAQ,kBAAkB,EAAE,qBAAqB,EAAE,cAAc;IAChG;;OAEG;IACH,GAAG,EAAE,GAAG,CAAC;IAET;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,QAAQ,EAAE,eAAe,CAAC,QAAQ,CAAC;IAEnC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;IAEnE;;;;OAIG;IACH,eAAe,CAAC,EAAE,yBAAyB,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;IAE1E;;OAEG;IACH,UAAU,C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EAAE,MAAM,CAAC;QAChC,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,yBAAyB,CAAC,EAAE,MAAM,CAAC;QACnC,qBAAqB,CAAC,EAAE,MAAM,CAAC;QAC/B,2BAA2B,CAAC,EAAE,MAAM,CAAC;QACrC,0BAA0B,CAAC,EAAE,MAAM,CAAC;QAEpC,yCAAyC,CAAC,EAAE,MAAM,CAAC;QACnD,uCAAuC,CAAC,EAAE,MAAM,CAAC;QACjD,4CAA4C,CAAC,EAAE,MAAM,CAAC;KACvD;IACD,UAAiB,YAAY;QAC3B,MAAM,EAAE,MAAM,CAAC;KAChB;IACD,UAAiB,YAAY;QAC3B,KAAK,EAAE,MAAM,CAAC;KACf;IAED,UAAiB,cAAc;QAC7B,WAAW,EAAE,GAAG,CAAC,UAAU,EAAE,CAAC;KAC/B;IAED,UAAiB,GAAG;QAClB;;WAEG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/code-editor/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Ace } from 'ace-builds';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { AceModes } from './ace-modes';\nimport { DarkThemes, LightThemes } from './ace-themes';\nimport { FormFieldControlProps } from '../internal/context/form-field-context';\nimport { BaseModalProps } from '../modal/interfaces';\n\nexport interface CodeEditorProps extends BaseComponentProps, FormFieldControlProps, BaseModalProps {\n /**\n * The ace object.\n */\n ace: any;\n\n /**\n * Specifies the content that's displayed in the code editor.\n */\n value: string;\n\n /**\n * Specifies the programming language. You can use any of the programming languages supported by the `ace` object that you provide.\n * Alternatively, this can be used to set a language that is not supported by the default `language` list. Make sure you've added the highlighting support for this language to the Ace instance.\n * For more info on custom languages, see the [Code editor API](/components/code-editor?tabId=api) page.\n */\n language: CodeEditorProps.Language;\n\n /**\n * Specifies a custom label language. If set, it overrides the default language label.\n */\n languageLabel?: string;\n\n /**\n * An event handler called when the value changes.\n * The event `detail` contains the current value of the code editor content.\n * **Deprecated** Replaced by `onDelayedChange`.\n */\n onChange?: NonCancelableEventHandler<CodeEditorProps.ChangeDetail>;\n\n /**\n * An event handler called when the value changes.\n * The event `detail` contains the current value of the code editor content.\n * A user interaction can cause multiple change events to be emitted by the Ace editor. They are batched together into a single `onDelayedChange` event to avoid bugs when controlling the `value` field.\n */\n onDelayedChange?: NonCancelableEventHandler<CodeEditorProps.ChangeDetail>;\n\n /**\n * Annotations returned from Ace syntax checker after code validation.\n */\n onValidate?: NonCancelableEventHandler<CodeEditorProps.ValidateDetail>;\n\n /**\n * Specifies the component preferences.\n *\n * If set to `undefined`, the component uses the following default value:\n *\n * ```\n * {\n * wrapLines: true,\n * theme: 'dawn'\n * }\n * ```\n *\n * You can use any theme provided by Ace.\n */\n preferences?: Partial<CodeEditorProps.Preferences>;\n\n /**\n * List of Ace themes available for selection in preferences dialog. Make sure you include at least one light and at\n * least one dark theme. If not set explicitly, it will render all Ace themes available for selection, except\n * \"cloud_editor\" and \"cloud_editor_dark\".\n */\n themes?: CodeEditorProps.AvailableThemes;\n\n /**\n * Called when any of the preferences change.\n * The event `detail` contains the value of all the preferences as submitted by the user.\n *\n */\n onPreferencesChange: NonCancelableEventHandler<CodeEditorProps.Preferences>;\n\n /**\n * Renders the code editor in a loading state.\n */\n loading?: boolean;\n\n /**\n * Called when the user clicks the recovery button in the error state.\n * Use this to retry loading the code editor or to provide another option for the user to recover from the error.\n */\n onRecoveryClick?: NonCancelableEventHandler<void>;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * The object should contain, among others:\n *\n * * `loadingState` - Specifies the text to display while the component is loading.\n * * `errorState` - Specifies the text to display if there is an error loading Ace.\n * * `errorStateRecovery`: Specifies the text for the recovery button that's displayed next to the error text.\n * Use the `recoveryClick` event to do a recovery action (for example, retrying the request).\n * @i18n\n */\n i18nStrings?: CodeEditorProps.I18nStrings;\n\n /**\n * Specifies the height of the code editor document.\n */\n editorContentHeight?: number;\n\n /**\n * Called when the user resizes the editor by dragging the resize icon.\n * The event `detail` contains the new height of the editor in pixels.\n */\n onEditorContentResize?: NonCancelableEventHandler<CodeEditorProps.ResizeDetail>;\n\n /**\n * Adds `aria-label` to the code editor's textarea element.\n */\n ariaLabel?: string;\n}\n\n// Prevents typescript from collapsing a string union type into a string type while still allowing any string.\n// This leads to more helpful editor suggestions for known values.\n// See: https://github.com/microsoft/TypeScript/issues/29729\ntype LiteralUnion<LiteralType, BaseType extends string> = LiteralType | (BaseType & { _?: never });\n\ntype BuiltInLanguage = typeof AceModes[number]['value'];\n\nexport namespace CodeEditorProps {\n export type Language = LiteralUnion<BuiltInLanguage, string>;\n export type Theme = typeof LightThemes[number]['value'] | typeof DarkThemes[number]['value'];\n\n export interface AvailableThemes {\n light: ReadonlyArray<string>;\n dark: ReadonlyArray<string>;\n }\n\n export interface Preferences {\n wrapLines: boolean;\n theme: Theme;\n }\n\n export interface I18nStrings {\n loadingState?: string;\n errorState?: string;\n errorStateRecovery?: string;\n\n editorGroupAriaLabel?: string;\n statusBarGroupAriaLabel?: string;\n\n cursorPosition?: (row: number, column: number) => string;\n errorsTab?: string;\n warningsTab?: string;\n preferencesButtonAriaLabel?: string;\n paneCloseButtonAriaLabel?: string;\n\n preferencesModalHeader?: string;\n preferencesModalCancel?: string;\n preferencesModalConfirm?: string;\n preferencesModalWrapLines?: string;\n preferencesModalTheme?: string;\n preferencesModalLightThemes?: string;\n preferencesModalDarkThemes?: string;\n\n preferencesModalThemeFilteringPlaceholder?: string;\n preferencesModalThemeFilteringAriaLabel?: string;\n preferencesModalThemeFilteringClearAriaLabel?: string;\n }\n export interface ResizeDetail {\n height: number;\n }\n export interface ChangeDetail {\n value: string;\n }\n\n export interface ValidateDetail {\n annotations: Ace.Annotation[];\n }\n\n export interface Ref {\n /**\n * Sets input focus onto the code editor control.\n */\n focus(): void;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/code-editor/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Ace } from 'ace-builds';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { AceModes } from './ace-modes';\nimport { DarkThemes, LightThemes } from './ace-themes';\nimport { FormFieldControlProps } from '../internal/context/form-field-context';\nimport { BaseModalProps } from '../modal/interfaces';\n\nexport interface CodeEditorProps extends BaseComponentProps, FormFieldControlProps, BaseModalProps {\n /**\n * The ace object.\n */\n ace: any;\n\n /**\n * Specifies the content that's displayed in the code editor.\n */\n value: string;\n\n /**\n * Specifies the programming language. You can use any of the programming languages supported by the `ace` object that you provide.\n * Alternatively, this can be used to set a language that is not supported by the default `language` list. Make sure you've added the highlighting support for this language to the Ace instance.\n * For more info on custom languages, see the [Code editor API](/components/code-editor?tabId=api) page.\n */\n language: CodeEditorProps.Language;\n\n /**\n * Specifies a custom label language. If set, it overrides the default language label.\n */\n languageLabel?: string;\n\n /**\n * An event handler called when the value changes.\n * The event `detail` contains the current value of the code editor content.\n * **Deprecated** Replaced by `onDelayedChange`.\n */\n onChange?: NonCancelableEventHandler<CodeEditorProps.ChangeDetail>;\n\n /**\n * An event handler called when the value changes.\n * The event `detail` contains the current value of the code editor content.\n * A user interaction can cause multiple change events to be emitted by the Ace editor. They are batched together into a single `onDelayedChange` event to avoid bugs when controlling the `value` field.\n */\n onDelayedChange?: NonCancelableEventHandler<CodeEditorProps.ChangeDetail>;\n\n /**\n * Annotations returned from Ace syntax checker after code validation.\n */\n onValidate?: NonCancelableEventHandler<CodeEditorProps.ValidateDetail>;\n\n /**\n * Specifies the component preferences.\n *\n * If set to `undefined`, the component uses the following default value:\n *\n * ```\n * {\n * wrapLines: true,\n * theme: 'dawn'\n * }\n * ```\n *\n * You can use any theme provided by Ace.\n */\n preferences?: Partial<CodeEditorProps.Preferences>;\n\n /**\n * List of Ace themes available for selection in preferences dialog. Make sure you include at least one light and at\n * least one dark theme. If not set explicitly, it will render all Ace themes available for selection, except\n * \"cloud_editor\" and \"cloud_editor_dark\".\n */\n themes?: CodeEditorProps.AvailableThemes;\n\n /**\n * Called when any of the preferences change.\n * The event `detail` contains the value of all the preferences as submitted by the user.\n *\n */\n onPreferencesChange: NonCancelableEventHandler<CodeEditorProps.Preferences>;\n\n /**\n * Renders the code editor in a loading state.\n */\n loading?: boolean;\n\n /**\n * Called when the user clicks the recovery button in the error state.\n * Use this to retry loading the code editor or to provide another option for the user to recover from the error.\n */\n onRecoveryClick?: NonCancelableEventHandler<void>;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * The object should contain, among others:\n *\n * * `loadingState` - Specifies the text to display while the component is loading.\n * * `errorState` - Specifies the text to display if there is an error loading Ace.\n * * `errorStateRecovery`: Specifies the text for the recovery button that's displayed next to the error text.\n * Use the `recoveryClick` event to do a recovery action (for example, retrying the request).\n * @i18n\n */\n i18nStrings?: CodeEditorProps.I18nStrings;\n\n /**\n * Specifies the height of the code editor document.\n */\n editorContentHeight?: number;\n\n /**\n * Called when the user resizes the editor by dragging the resize icon.\n * The event `detail` contains the new height of the editor in pixels.\n */\n onEditorContentResize?: NonCancelableEventHandler<CodeEditorProps.ResizeDetail>;\n\n /**\n * Adds `aria-label` to the code editor's textarea element.\n */\n ariaLabel?: string;\n}\n\n// Prevents typescript from collapsing a string union type into a string type while still allowing any string.\n// This leads to more helpful editor suggestions for known values.\n// See: https://github.com/microsoft/TypeScript/issues/29729\ntype LiteralUnion<LiteralType, BaseType extends string> = LiteralType | (BaseType & { _?: never });\n\ntype BuiltInLanguage = (typeof AceModes)[number]['value'];\n\nexport namespace CodeEditorProps {\n export type Language = LiteralUnion<BuiltInLanguage, string>;\n export type Theme = (typeof LightThemes)[number]['value'] | (typeof DarkThemes)[number]['value'];\n\n export interface AvailableThemes {\n light: ReadonlyArray<string>;\n dark: ReadonlyArray<string>;\n }\n\n export interface Preferences {\n wrapLines: boolean;\n theme: Theme;\n }\n\n export interface I18nStrings {\n loadingState?: string;\n errorState?: string;\n errorStateRecovery?: string;\n\n editorGroupAriaLabel?: string;\n statusBarGroupAriaLabel?: string;\n\n cursorPosition?: (row: number, column: number) => string;\n errorsTab?: string;\n warningsTab?: string;\n preferencesButtonAriaLabel?: string;\n paneCloseButtonAriaLabel?: string;\n\n preferencesModalHeader?: string;\n preferencesModalCancel?: string;\n preferencesModalConfirm?: string;\n preferencesModalWrapLines?: string;\n preferencesModalTheme?: string;\n preferencesModalLightThemes?: string;\n preferencesModalDarkThemes?: string;\n\n preferencesModalThemeFilteringPlaceholder?: string;\n preferencesModalThemeFilteringAriaLabel?: string;\n preferencesModalThemeFilteringClearAriaLabel?: string;\n }\n export interface ResizeDetail {\n height: number;\n }\n export interface ChangeDetail {\n value: string;\n }\n\n export interface ValidateDetail {\n annotations: Ace.Annotation[];\n }\n\n export interface Ref {\n /**\n * Sets input focus onto the code editor control.\n */\n focus(): void;\n }\n}\n"]}
|
package/code-editor/util.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/code-editor/util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAKvD,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/code-editor/util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAKvD,MAAM,wBAAwB,GAA0C,cAAc,CAAC;AACvF,MA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E,UAAU,EAA+C;IACnG,OAAO,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,WAAW,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC/D,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Ace } from 'ace-builds';\n\nimport { AceModes } from './ace-modes';\nimport { LightThemes, DarkThemes } from './ace-themes';\nimport { CodeEditorProps } from './interfaces';\n\nexport type PaneStatus = 'error' | 'warning' | 'hidden';\n\nconst CLOUD_EDITOR_LIGHT_THEME: (typeof LightThemes)[number]['value'] = 'cloud_editor';\nconst CLOUD_EDITOR_DARK_THEME: (typeof DarkThemes)[number]['value'] = 'cloud_editor_dark';\nconst FALLBACK_LIGHT_THEME: (typeof LightThemes)[number]['value'] = 'dawn';\nconst FALLBACK_DARK_THEME: (typeof DarkThemes)[number]['value'] = 'tomorrow_night_bright';\n\nexport const DEFAULT_AVAILABLE_THEMES = {\n light: LightThemes.map(theme => theme.value).filter(value => value !== CLOUD_EDITOR_LIGHT_THEME),\n dark: DarkThemes.map(theme => theme.value).filter(value => value !== CLOUD_EDITOR_DARK_THEME),\n};\n\nfunction isAceVersionAtLeast(ace: any, minVersion: [number, number, number]): boolean {\n // Split semantic version numbers. We don't need a full semver parser for this.\n const semanticVersion = ace?.version?.split('.').map((part: string) => {\n const parsed = parseInt(part);\n return Number.isNaN(parsed) ? part : parsed;\n });\n\n return (\n !!semanticVersion &&\n typeof semanticVersion[0] === 'number' &&\n semanticVersion[0] >= minVersion[0] &&\n typeof semanticVersion[1] === 'number' &&\n semanticVersion[1] >= minVersion[1] &&\n typeof semanticVersion[2] === 'number' &&\n semanticVersion[2] >= minVersion[2]\n );\n}\n\nexport function supportsKeyboardAccessibility(ace: any): boolean {\n return isAceVersionAtLeast(ace, [1, 23, 0]);\n}\n\nexport function getDefaultConfig(ace: any): Partial<Ace.EditorOptions> {\n return {\n behavioursEnabled: true,\n ...(supportsKeyboardAccessibility(ace) ? { enableKeyboardAccessibility: true } : {}),\n };\n}\n\nexport function getDefaultTheme(\n mode: 'light' | 'dark',\n themes?: CodeEditorProps.AvailableThemes\n): CodeEditorProps.Theme {\n if (mode === 'light') {\n return themes?.light.some(value => value === CLOUD_EDITOR_LIGHT_THEME)\n ? CLOUD_EDITOR_LIGHT_THEME\n : FALLBACK_LIGHT_THEME;\n } else {\n return themes?.dark.some(value => value === CLOUD_EDITOR_DARK_THEME)\n ? CLOUD_EDITOR_DARK_THEME\n : FALLBACK_DARK_THEME;\n }\n}\n\nexport function getAceTheme(theme: CodeEditorProps.Theme) {\n return `ace/theme/${theme}`;\n}\n\nexport function getLanguageLabel(language: CodeEditorProps.Language): string {\n return AceModes.filter((mode: { value: string }) => mode.value === language)[0]?.label || language;\n}\n\nexport function getStatusButtonId({ paneId, paneStatus }: { paneId?: string; paneStatus: PaneStatus }) {\n return paneId ? `${paneId}-button-${paneStatus}` : undefined;\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InternalColumnLayoutProps } from './interfaces';
|
|
3
3
|
export declare const COLUMN_TRIGGERS: readonly ["default", "xxs", "xs"];
|
|
4
|
-
export type ColumnLayoutBreakpoint = typeof COLUMN_TRIGGERS[number] | null;
|
|
4
|
+
export type ColumnLayoutBreakpoint = (typeof COLUMN_TRIGGERS)[number] | null;
|
|
5
5
|
/**
|
|
6
6
|
* A responsive grid layout.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/column-layout/internal.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAKzD,eAAO,MAAM,eAAe,mCAAoC,CAAC;AACjE,MAAM,MAAM,sBAAsB,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/column-layout/internal.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAKzD,eAAO,MAAM,eAAe,mCAAoC,CAAC;AACjE,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;AAE7E;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,OAAW,EACX,OAAmB,EACnB,OAAgB,EAChB,cAAsB,EACtB,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,GAAG,SAAS,EACb,EAAE,yBAAyB,eA4B3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/column-layout/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;AAC5D,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AACpD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAU,CAAC;AAGjE;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAUT;QAVS,EACnC,OAAO,GAAG,CAAC,EACX,OAAO,GAAG,SAAS,EACnB,OAAO,GAAG,MAAM,EAChB,cAAc,GAAG,KAAK,EACtB,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,iBAAiB,OAES,EADvB,SAAS,cATuB,sHAUpC,CADa;IAEZ,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;IAE1C,OAAO,CACL,6CAAS,SAAS,IAAE,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,iBAAiB,KACtG,cAAc,CAAC,CAAC,CAAC,CAChB,oBAAC,oBAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,IAE7B,QAAQ,CACY,CACxB,CAAC,CAAC,CAAC,CACF,oBAAC,gBAAgB,IACf,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,EAC9B,YAAY,EAAE,YAAY,IAEzB,QAAQ,CACQ,CACpB,CACG,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalColumnLayoutProps } from './interfaces';\nimport FlexibleColumnLayout from './flexible-column-layout';\nimport GridColumnLayout from './grid-column-layout';\nimport styles from './styles.css.js';\n\nexport const COLUMN_TRIGGERS = ['default', 'xxs', 'xs'] as const;\nexport type ColumnLayoutBreakpoint = typeof COLUMN_TRIGGERS[number] | null;\n\n/**\n * A responsive grid layout.\n */\nexport default function ColumnLayout({\n columns = 1,\n variant = 'default',\n borders = 'none',\n disableGutters = false,\n minColumnWidth,\n children,\n __breakpoint,\n __internalRootRef,\n ...restProps\n}: InternalColumnLayoutProps) {\n const baseProps = getBaseProps(restProps);\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles['column-layout'])} ref={__internalRootRef}>\n {minColumnWidth ? (\n <FlexibleColumnLayout\n columns={columns}\n borders={borders}\n variant={variant}\n minColumnWidth={minColumnWidth}\n disableGutters={disableGutters}\n >\n {children}\n </FlexibleColumnLayout>\n ) : (\n <GridColumnLayout\n columns={columns}\n variant={variant}\n borders={borders}\n disableGutters={disableGutters}\n __breakpoint={__breakpoint}\n >\n {children}\n </GridColumnLayout>\n )}\n </div>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/column-layout/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;AAC5D,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AACpD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAU,CAAC;AAGjE;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAUT;QAVS,EACnC,OAAO,GAAG,CAAC,EACX,OAAO,GAAG,SAAS,EACnB,OAAO,GAAG,MAAM,EAChB,cAAc,GAAG,KAAK,EACtB,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,iBAAiB,OAES,EADvB,SAAS,cATuB,sHAUpC,CADa;IAEZ,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;IAE1C,OAAO,CACL,6CAAS,SAAS,IAAE,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,iBAAiB,KACtG,cAAc,CAAC,CAAC,CAAC,CAChB,oBAAC,oBAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,IAE7B,QAAQ,CACY,CACxB,CAAC,CAAC,CAAC,CACF,oBAAC,gBAAgB,IACf,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,EAC9B,YAAY,EAAE,YAAY,IAEzB,QAAQ,CACQ,CACpB,CACG,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalColumnLayoutProps } from './interfaces';\nimport FlexibleColumnLayout from './flexible-column-layout';\nimport GridColumnLayout from './grid-column-layout';\nimport styles from './styles.css.js';\n\nexport const COLUMN_TRIGGERS = ['default', 'xxs', 'xs'] as const;\nexport type ColumnLayoutBreakpoint = (typeof COLUMN_TRIGGERS)[number] | null;\n\n/**\n * A responsive grid layout.\n */\nexport default function ColumnLayout({\n columns = 1,\n variant = 'default',\n borders = 'none',\n disableGutters = false,\n minColumnWidth,\n children,\n __breakpoint,\n __internalRootRef,\n ...restProps\n}: InternalColumnLayoutProps) {\n const baseProps = getBaseProps(restProps);\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles['column-layout'])} ref={__internalRootRef}>\n {minColumnWidth ? (\n <FlexibleColumnLayout\n columns={columns}\n borders={borders}\n variant={variant}\n minColumnWidth={minColumnWidth}\n disableGutters={disableGutters}\n >\n {children}\n </FlexibleColumnLayout>\n ) : (\n <GridColumnLayout\n columns={columns}\n variant={variant}\n borders={borders}\n disableGutters={disableGutters}\n __breakpoint={__breakpoint}\n >\n {children}\n </GridColumnLayout>\n )}\n </div>\n );\n}\n"]}
|
package/flashbar/styles.css.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"flash-with-motion": "awsui_flash-with-
|
|
5
|
-
"enter": "
|
|
6
|
-
"flash-body": "awsui_flash-
|
|
7
|
-
"flash-message": "awsui_flash-
|
|
8
|
-
"flash-header": "awsui_flash-
|
|
9
|
-
"flash-content": "awsui_flash-
|
|
10
|
-
"action-button-wrapper": "awsui_action-button-
|
|
11
|
-
"dismiss-button-wrapper": "awsui_dismiss-button-
|
|
12
|
-
"flash-icon": "awsui_flash-
|
|
13
|
-
"entering": "
|
|
14
|
-
"entered": "
|
|
15
|
-
"exiting": "
|
|
16
|
-
"stack": "
|
|
17
|
-
"animation-running": "awsui_animation-
|
|
18
|
-
"item": "
|
|
19
|
-
"flash-list-item": "awsui_flash-list-
|
|
20
|
-
"notification-bar": "awsui_notification-
|
|
21
|
-
"collapsed": "
|
|
22
|
-
"animation-ready": "awsui_animation-
|
|
23
|
-
"expanded-only": "awsui_expanded-
|
|
24
|
-
"expanded": "
|
|
25
|
-
"flash": "
|
|
26
|
-
"collapsible": "
|
|
27
|
-
"short-list": "awsui_short-
|
|
28
|
-
"visual-refresh": "awsui_visual-
|
|
29
|
-
"status": "
|
|
30
|
-
"header": "
|
|
31
|
-
"item-count": "awsui_item-
|
|
32
|
-
"button": "
|
|
33
|
-
"type-count": "awsui_type-
|
|
34
|
-
"count-number": "awsui_count-
|
|
35
|
-
"icon": "
|
|
36
|
-
"floating": "
|
|
37
|
-
"flashbar": "
|
|
38
|
-
"flash-refresh": "awsui_flash-
|
|
39
|
-
"flash-list": "awsui_flash-
|
|
40
|
-
"flash-focus-container": "awsui_flash-focus-
|
|
41
|
-
"flash-text": "awsui_flash-
|
|
42
|
-
"dismiss-button": "awsui_dismiss-
|
|
43
|
-
"breakpoint-default": "awsui_breakpoint-
|
|
44
|
-
"action-button": "awsui_action-
|
|
45
|
-
"action-slot": "awsui_action-
|
|
46
|
-
"flash-type-success": "awsui_flash-type-
|
|
47
|
-
"flash-type-error": "awsui_flash-type-
|
|
48
|
-
"flash-type-info": "awsui_flash-type-
|
|
49
|
-
"flash-type-in-progress": "awsui_flash-type-in-
|
|
50
|
-
"flash-type-warning": "awsui_flash-type-
|
|
4
|
+
"flash-with-motion": "awsui_flash-with-motion_1q84n_qt4pn_99",
|
|
5
|
+
"enter": "awsui_enter_1q84n_qt4pn_99",
|
|
6
|
+
"flash-body": "awsui_flash-body_1q84n_qt4pn_113",
|
|
7
|
+
"flash-message": "awsui_flash-message_1q84n_qt4pn_113",
|
|
8
|
+
"flash-header": "awsui_flash-header_1q84n_qt4pn_113",
|
|
9
|
+
"flash-content": "awsui_flash-content_1q84n_qt4pn_114",
|
|
10
|
+
"action-button-wrapper": "awsui_action-button-wrapper_1q84n_qt4pn_115",
|
|
11
|
+
"dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_qt4pn_116",
|
|
12
|
+
"flash-icon": "awsui_flash-icon_1q84n_qt4pn_139",
|
|
13
|
+
"entering": "awsui_entering_1q84n_qt4pn_152",
|
|
14
|
+
"entered": "awsui_entered_1q84n_qt4pn_173",
|
|
15
|
+
"exiting": "awsui_exiting_1q84n_qt4pn_278",
|
|
16
|
+
"stack": "awsui_stack_1q84n_qt4pn_300",
|
|
17
|
+
"animation-running": "awsui_animation-running_1q84n_qt4pn_300",
|
|
18
|
+
"item": "awsui_item_1q84n_qt4pn_300",
|
|
19
|
+
"flash-list-item": "awsui_flash-list-item_1q84n_qt4pn_301",
|
|
20
|
+
"notification-bar": "awsui_notification-bar_1q84n_qt4pn_302",
|
|
21
|
+
"collapsed": "awsui_collapsed_1q84n_qt4pn_322",
|
|
22
|
+
"animation-ready": "awsui_animation-ready_1q84n_qt4pn_322",
|
|
23
|
+
"expanded-only": "awsui_expanded-only_1q84n_qt4pn_322",
|
|
24
|
+
"expanded": "awsui_expanded_1q84n_qt4pn_322",
|
|
25
|
+
"flash": "awsui_flash_1q84n_qt4pn_99",
|
|
26
|
+
"collapsible": "awsui_collapsible_1q84n_qt4pn_386",
|
|
27
|
+
"short-list": "awsui_short-list_1q84n_qt4pn_392",
|
|
28
|
+
"visual-refresh": "awsui_visual-refresh_1q84n_qt4pn_392",
|
|
29
|
+
"status": "awsui_status_1q84n_qt4pn_605",
|
|
30
|
+
"header": "awsui_header_1q84n_qt4pn_605",
|
|
31
|
+
"item-count": "awsui_item-count_1q84n_qt4pn_606",
|
|
32
|
+
"button": "awsui_button_1q84n_qt4pn_607",
|
|
33
|
+
"type-count": "awsui_type-count_1q84n_qt4pn_640",
|
|
34
|
+
"count-number": "awsui_count-number_1q84n_qt4pn_640",
|
|
35
|
+
"icon": "awsui_icon_1q84n_qt4pn_674",
|
|
36
|
+
"floating": "awsui_floating_1q84n_qt4pn_715",
|
|
37
|
+
"flashbar": "awsui_flashbar_1q84n_qt4pn_723",
|
|
38
|
+
"flash-refresh": "awsui_flash-refresh_1q84n_qt4pn_798",
|
|
39
|
+
"flash-list": "awsui_flash-list_1q84n_qt4pn_301",
|
|
40
|
+
"flash-focus-container": "awsui_flash-focus-container_1q84n_qt4pn_819",
|
|
41
|
+
"flash-text": "awsui_flash-text_1q84n_qt4pn_849",
|
|
42
|
+
"dismiss-button": "awsui_dismiss-button_1q84n_qt4pn_116",
|
|
43
|
+
"breakpoint-default": "awsui_breakpoint-default_1q84n_qt4pn_891",
|
|
44
|
+
"action-button": "awsui_action-button_1q84n_qt4pn_115",
|
|
45
|
+
"action-slot": "awsui_action-slot_1q84n_qt4pn_901",
|
|
46
|
+
"flash-type-success": "awsui_flash-type-success_1q84n_qt4pn_905",
|
|
47
|
+
"flash-type-error": "awsui_flash-type-error_1q84n_qt4pn_909",
|
|
48
|
+
"flash-type-info": "awsui_flash-type-info_1q84n_qt4pn_913",
|
|
49
|
+
"flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_qt4pn_914",
|
|
50
|
+
"flash-type-warning": "awsui_flash-type-warning_1q84n_qt4pn_918"
|
|
51
51
|
};
|
|
52
52
|
|