@cloudscape-design/components 3.0.403 → 3.0.405

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.
Files changed (35) hide show
  1. package/app-layout/drawer/index.d.ts.map +1 -1
  2. package/app-layout/drawer/index.js +2 -1
  3. package/app-layout/drawer/index.js.map +1 -1
  4. package/app-layout/drawer/interfaces.d.ts +2 -0
  5. package/app-layout/drawer/interfaces.d.ts.map +1 -1
  6. package/app-layout/drawer/interfaces.js.map +1 -1
  7. package/app-layout/drawer/resizable-drawer.d.ts +1 -1
  8. package/app-layout/drawer/resizable-drawer.d.ts.map +1 -1
  9. package/app-layout/drawer/resizable-drawer.js +7 -3
  10. package/app-layout/drawer/resizable-drawer.js.map +1 -1
  11. package/app-layout/index.d.ts.map +1 -1
  12. package/app-layout/index.js +21 -23
  13. package/app-layout/index.js.map +1 -1
  14. package/app-layout/utils/use-drawers.d.ts +1 -1
  15. package/app-layout/utils/use-drawers.d.ts.map +1 -1
  16. package/app-layout/utils/use-drawers.js +1 -1
  17. package/app-layout/utils/use-drawers.js.map +1 -1
  18. package/app-layout/visual-refresh/context.js +1 -1
  19. package/app-layout/visual-refresh/context.js.map +1 -1
  20. package/app-layout/visual-refresh/drawers.d.ts.map +1 -1
  21. package/app-layout/visual-refresh/drawers.js +4 -2
  22. package/app-layout/visual-refresh/drawers.js.map +1 -1
  23. package/app-layout/visual-refresh/styles.css.js +77 -76
  24. package/app-layout/visual-refresh/styles.scoped.css +175 -172
  25. package/app-layout/visual-refresh/styles.selectors.js +77 -76
  26. package/date-range-picker/interfaces.d.ts +5 -0
  27. package/date-range-picker/interfaces.d.ts.map +1 -1
  28. package/date-range-picker/interfaces.js.map +1 -1
  29. package/date-range-picker/mode-switcher.d.ts.map +1 -1
  30. package/date-range-picker/mode-switcher.js +1 -1
  31. package/date-range-picker/mode-switcher.js.map +1 -1
  32. package/internal/environment.js +1 -1
  33. package/internal/environment.json +1 -1
  34. package/internal/manifest.json +1 -1
  35. package/package.json +1 -1
@@ -2,81 +2,82 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "background": "awsui_background_hyvsj_1q0bp_93",
6
- "scrolling-background": "awsui_scrolling-background_hyvsj_1q0bp_96",
7
- "sticky-background": "awsui_sticky-background_hyvsj_1q0bp_102",
8
- "has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_1q0bp_110",
9
- "breadcrumbs": "awsui_breadcrumbs_hyvsj_1q0bp_123",
10
- "has-sticky-background": "awsui_has-sticky-background_hyvsj_1q0bp_133",
11
- "drawers-container": "awsui_drawers-container_hyvsj_1q0bp_145",
12
- "has-open-drawer": "awsui_has-open-drawer_hyvsj_1q0bp_156",
13
- "disable-body-scroll": "awsui_disable-body-scroll_hyvsj_1q0bp_191",
14
- "drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_1q0bp_196",
15
- "has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_1q0bp_215",
16
- "drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_1q0bp_247",
17
- "drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_1q0bp_251",
18
- "drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_1q0bp_277",
19
- "drawers-trigger": "awsui_drawers-trigger_hyvsj_1q0bp_251",
20
- "drawer": "awsui_drawer_hyvsj_1q0bp_145",
21
- "drawer-content-container": "awsui_drawer-content-container_hyvsj_1q0bp_307",
22
- "drawer-close-button": "awsui_drawer-close-button_hyvsj_1q0bp_316",
23
- "drawer-content": "awsui_drawer-content_hyvsj_1q0bp_307",
24
- "drawer-slider": "awsui_drawer-slider_hyvsj_1q0bp_324",
25
- "is-drawer-open": "awsui_is-drawer-open_hyvsj_1q0bp_331",
26
- "content": "awsui_content_hyvsj_1q0bp_356",
27
- "layout": "awsui_layout_hyvsj_1q0bp_377",
28
- "has-max-content-width": "awsui_has-max-content-width_hyvsj_1q0bp_460",
29
- "content-type-dashboard": "awsui_content-type-dashboard_hyvsj_1q0bp_475",
30
- "is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_1q0bp_492",
31
- "has-content-gap-left": "awsui_has-content-gap-left_hyvsj_1q0bp_524",
32
- "has-content-gap-right": "awsui_has-content-gap-right_hyvsj_1q0bp_527",
33
- "content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_1q0bp_537",
34
- "has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_1q0bp_540",
35
- "content-first-child-header": "awsui_content-first-child-header_hyvsj_1q0bp_543",
36
- "has-header": "awsui_has-header_hyvsj_1q0bp_543",
37
- "content-first-child-main": "awsui_content-first-child-main_hyvsj_1q0bp_564",
38
- "disable-content-paddings": "awsui_disable-content-paddings_hyvsj_1q0bp_564",
39
- "has-split-panel": "awsui_has-split-panel_hyvsj_1q0bp_607",
40
- "split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_1q0bp_607",
41
- "block-body-scroll": "awsui_block-body-scroll_hyvsj_1q0bp_623",
42
- "unfocusable": "awsui_unfocusable_hyvsj_1q0bp_628",
43
- "container": "awsui_container_hyvsj_1q0bp_638",
44
- "is-navigation-open": "awsui_is-navigation-open_hyvsj_1q0bp_663",
45
- "is-tools-open": "awsui_is-tools-open_hyvsj_1q0bp_666",
46
- "is-split-panel-open": "awsui_is-split-panel-open_hyvsj_1q0bp_666",
47
- "split-panel-position-side": "awsui_split-panel-position-side_hyvsj_1q0bp_666",
48
- "has-active-drawer": "awsui_has-active-drawer_hyvsj_1q0bp_666",
49
- "mobile-toolbar": "awsui_mobile-toolbar_hyvsj_1q0bp_675",
50
- "mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_1q0bp_691",
51
- "mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_1q0bp_695",
52
- "mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_1q0bp_699",
53
- "navigation-container": "awsui_navigation-container_hyvsj_1q0bp_708",
54
- "show-navigation": "awsui_show-navigation_hyvsj_1q0bp_752",
55
- "animating": "awsui_animating_hyvsj_1q0bp_774",
56
- "showButtons": "awsui_showButtons_hyvsj_1q0bp_1",
57
- "navigation": "awsui_navigation_hyvsj_1q0bp_708",
58
- "openNavigation": "awsui_openNavigation_hyvsj_1q0bp_1",
59
- "animated-content": "awsui_animated-content_hyvsj_1q0bp_836",
60
- "hide-navigation": "awsui_hide-navigation_hyvsj_1q0bp_845",
61
- "notifications": "awsui_notifications_hyvsj_1q0bp_855",
62
- "sticky-notifications": "awsui_sticky-notifications_hyvsj_1q0bp_861",
63
- "split-panel-bottom": "awsui_split-panel-bottom_hyvsj_1q0bp_878",
64
- "position-bottom": "awsui_position-bottom_hyvsj_1q0bp_925",
65
- "openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_1q0bp_1",
66
- "split-panel-side": "awsui_split-panel-side_hyvsj_1q0bp_954",
67
- "position-side": "awsui_position-side_hyvsj_1q0bp_967",
68
- "tools-container": "awsui_tools-container_hyvsj_1q0bp_986",
69
- "tools": "awsui_tools_hyvsj_1q0bp_986",
70
- "openTools": "awsui_openTools_hyvsj_1q0bp_1",
71
- "has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_1q0bp_1081",
72
- "hide-tools": "awsui_hide-tools_hyvsj_1q0bp_1091",
73
- "show-tools": "awsui_show-tools_hyvsj_1q0bp_1103",
74
- "has-tools-form": "awsui_has-tools-form_hyvsj_1q0bp_1081",
75
- "trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_1q0bp_1163",
76
- "trigger": "awsui_trigger_hyvsj_1q0bp_1163",
77
- "selected": "awsui_selected_hyvsj_1q0bp_1227",
78
- "badge": "awsui_badge_hyvsj_1q0bp_1247",
79
- "trigger-wrapper": "awsui_trigger-wrapper_hyvsj_1q0bp_1251",
80
- "dot": "awsui_dot_hyvsj_1q0bp_1257"
5
+ "background": "awsui_background_hyvsj_p48sj_93",
6
+ "scrolling-background": "awsui_scrolling-background_hyvsj_p48sj_96",
7
+ "sticky-background": "awsui_sticky-background_hyvsj_p48sj_102",
8
+ "has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_p48sj_110",
9
+ "breadcrumbs": "awsui_breadcrumbs_hyvsj_p48sj_123",
10
+ "has-sticky-background": "awsui_has-sticky-background_hyvsj_p48sj_133",
11
+ "drawers-container": "awsui_drawers-container_hyvsj_p48sj_145",
12
+ "has-open-drawer": "awsui_has-open-drawer_hyvsj_p48sj_156",
13
+ "disable-body-scroll": "awsui_disable-body-scroll_hyvsj_p48sj_191",
14
+ "drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_p48sj_196",
15
+ "has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_p48sj_215",
16
+ "drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_p48sj_247",
17
+ "drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_p48sj_251",
18
+ "drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_p48sj_277",
19
+ "drawers-trigger": "awsui_drawers-trigger_hyvsj_p48sj_251",
20
+ "drawer": "awsui_drawer_hyvsj_p48sj_145",
21
+ "drawer-content-container": "awsui_drawer-content-container_hyvsj_p48sj_307",
22
+ "drawer-close-button": "awsui_drawer-close-button_hyvsj_p48sj_316",
23
+ "drawer-content": "awsui_drawer-content_hyvsj_p48sj_307",
24
+ "drawer-content-hidden": "awsui_drawer-content-hidden_hyvsj_p48sj_324",
25
+ "drawer-slider": "awsui_drawer-slider_hyvsj_p48sj_327",
26
+ "is-drawer-open": "awsui_is-drawer-open_hyvsj_p48sj_334",
27
+ "content": "awsui_content_hyvsj_p48sj_359",
28
+ "layout": "awsui_layout_hyvsj_p48sj_380",
29
+ "has-max-content-width": "awsui_has-max-content-width_hyvsj_p48sj_463",
30
+ "content-type-dashboard": "awsui_content-type-dashboard_hyvsj_p48sj_478",
31
+ "is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_p48sj_495",
32
+ "has-content-gap-left": "awsui_has-content-gap-left_hyvsj_p48sj_527",
33
+ "has-content-gap-right": "awsui_has-content-gap-right_hyvsj_p48sj_530",
34
+ "content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_p48sj_540",
35
+ "has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_p48sj_543",
36
+ "content-first-child-header": "awsui_content-first-child-header_hyvsj_p48sj_546",
37
+ "has-header": "awsui_has-header_hyvsj_p48sj_546",
38
+ "content-first-child-main": "awsui_content-first-child-main_hyvsj_p48sj_567",
39
+ "disable-content-paddings": "awsui_disable-content-paddings_hyvsj_p48sj_567",
40
+ "has-split-panel": "awsui_has-split-panel_hyvsj_p48sj_610",
41
+ "split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_p48sj_610",
42
+ "block-body-scroll": "awsui_block-body-scroll_hyvsj_p48sj_626",
43
+ "unfocusable": "awsui_unfocusable_hyvsj_p48sj_631",
44
+ "container": "awsui_container_hyvsj_p48sj_641",
45
+ "is-navigation-open": "awsui_is-navigation-open_hyvsj_p48sj_666",
46
+ "is-tools-open": "awsui_is-tools-open_hyvsj_p48sj_669",
47
+ "is-split-panel-open": "awsui_is-split-panel-open_hyvsj_p48sj_669",
48
+ "split-panel-position-side": "awsui_split-panel-position-side_hyvsj_p48sj_669",
49
+ "has-active-drawer": "awsui_has-active-drawer_hyvsj_p48sj_669",
50
+ "mobile-toolbar": "awsui_mobile-toolbar_hyvsj_p48sj_678",
51
+ "mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_p48sj_694",
52
+ "mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_p48sj_698",
53
+ "mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_p48sj_702",
54
+ "navigation-container": "awsui_navigation-container_hyvsj_p48sj_711",
55
+ "show-navigation": "awsui_show-navigation_hyvsj_p48sj_755",
56
+ "animating": "awsui_animating_hyvsj_p48sj_777",
57
+ "showButtons": "awsui_showButtons_hyvsj_p48sj_1",
58
+ "navigation": "awsui_navigation_hyvsj_p48sj_711",
59
+ "openNavigation": "awsui_openNavigation_hyvsj_p48sj_1",
60
+ "animated-content": "awsui_animated-content_hyvsj_p48sj_839",
61
+ "hide-navigation": "awsui_hide-navigation_hyvsj_p48sj_848",
62
+ "notifications": "awsui_notifications_hyvsj_p48sj_858",
63
+ "sticky-notifications": "awsui_sticky-notifications_hyvsj_p48sj_864",
64
+ "split-panel-bottom": "awsui_split-panel-bottom_hyvsj_p48sj_881",
65
+ "position-bottom": "awsui_position-bottom_hyvsj_p48sj_928",
66
+ "openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_p48sj_1",
67
+ "split-panel-side": "awsui_split-panel-side_hyvsj_p48sj_957",
68
+ "position-side": "awsui_position-side_hyvsj_p48sj_970",
69
+ "tools-container": "awsui_tools-container_hyvsj_p48sj_989",
70
+ "tools": "awsui_tools_hyvsj_p48sj_989",
71
+ "openTools": "awsui_openTools_hyvsj_p48sj_1",
72
+ "has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_p48sj_1084",
73
+ "hide-tools": "awsui_hide-tools_hyvsj_p48sj_1094",
74
+ "show-tools": "awsui_show-tools_hyvsj_p48sj_1106",
75
+ "has-tools-form": "awsui_has-tools-form_hyvsj_p48sj_1084",
76
+ "trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_p48sj_1166",
77
+ "trigger": "awsui_trigger_hyvsj_p48sj_1166",
78
+ "selected": "awsui_selected_hyvsj_p48sj_1230",
79
+ "badge": "awsui_badge_hyvsj_p48sj_1250",
80
+ "trigger-wrapper": "awsui_trigger-wrapper_hyvsj_p48sj_1254",
81
+ "dot": "awsui_dot_hyvsj_p48sj_1260"
81
82
  };
82
83
 
@@ -217,6 +217,11 @@ export declare namespace DateRangePickerProps {
217
217
  * Adds `aria-describedby` to the trigger and dropdown.
218
218
  */
219
219
  ariaDescribedby?: string;
220
+ /**
221
+ * Label of the mode selection group. In the standard view, it adds 'aria-label' to the group of segments.
222
+ * In a narrow container the label is visible and attached to the select component.
223
+ */
224
+ modeSelectionLabel?: string;
220
225
  /**
221
226
  * Segment title of the relative range selection mode
222
227
  */
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["date-range-picker/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AACzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,KAAK,EAAE,IAAI,GAAG,oBAAoB,CAAC,KAAK,CAAC;IAEzC;;OAEG;IACH,eAAe,EAAE,aAAa,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAC;IAEpE;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAC,qBAAqB,CAAC;IAE3D;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC,WAAW,CAAC;IAE/C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC;IAE3D;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC;IAExC;;;OAGG;IACH,QAAQ,CAAC,EAAE,yBA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AE,MAAM,CAAC;QAEtC;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAE5B;;WAEG;QACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;QAEhC;;;WAGG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB;;;WAGG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB;;;WAGG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB;;;WAGG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;;WAGG;QACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;QAEhC;;WAEG;QACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAE5B;;WAEG;QACH,mCAAmC,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;KACtF;CACF;AAED,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEjD,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,oBAAoB,CAAC,WAAW,EAC9B,gBAAgB,GAChB,oBAAoB,GACpB,wBAAwB,GACxB,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,cAAc,GACd,wBAAwB,GACxB,qCAAqC,CACxC,CAAC;AAEF,MAAM,WAAW,SAAS;IACxB,KAAK,IAAI,IAAI,CAAC;CACf"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["date-range-picker/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { FormFieldValidationControlProps } from '../internal/context/form-field-context';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { TimeInputProps } from '../time-input/interfaces';\nimport { ExpandToViewport } from '../internal/components/dropdown/interfaces';\nimport React from 'react';\n\nexport interface DateRangePickerBaseProps {\n /**\n * The current date range value. Can be either an absolute time range\n * or a relative time range.\n */\n value: null | DateRangePickerProps.Value;\n\n /**\n * A list of relative time ranges that are shown as suggestions.\n */\n relativeOptions: ReadonlyArray<DateRangePickerProps.RelativeOption>;\n\n /**\n * A function that defines whether a particular date should be enabled\n * in the calendar or not. Note that disabling a date in the calendar\n * still allows users to enter this date via keyboard. We therefore\n * recommend that you also validate these constraints client- and\n * server-side, in the same way as for other form elements.\n */\n isDateEnabled?: DateRangePickerProps.IsDateEnabledFunction;\n\n /**\n * The locale to be used for rendering month names and defining the\n * starting date of the week. If not provided, it will be determined\n * from the page and browser locales. Supported values and formats\n * are as-per the [JavaScript Intl API specification](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n */\n locale?: string;\n\n /**\n * Starting day of the week. [0-6] maps to [Sunday-Saturday].\n * By default the starting day of the week is defined by the locale,\n * but you can override it using this property.\n */\n startOfWeek?: number;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: DateRangePickerProps.I18nStrings;\n\n /**\n * Hides time inputs and changes the input format to date-only, e.g. 2021-04-06.\n *\n * Do not use `dateOnly` flag conditionally. The component does not trigger the value update\n * when the flag changes which means the value format can become inconsistent.\n *\n * Default: `false`.\n */\n dateOnly?: boolean;\n\n /**\n * Determines the range selector mode as follows:\n * * `default` for combined absolute/relative range selector.\n * * `absolute-only` for absolute-only range selector.\n * * `relative-only` for relative-only range selector.\n *\n * By default, the range selector mode is `default`.\n */\n rangeSelectorMode?: DateRangePickerProps.RangeSelectorMode;\n\n /**\n * Specifies the format of the time input for absolute ranges.\n *\n * Use to restrict the granularity of time that the user can enter.\n *\n * Has no effect when `dateOnly` is true.\n */\n timeInputFormat?: TimeInputProps.Format;\n\n /**\n * Fired whenever a user changes the component's value.\n * The event `detail` contains the current value of the field.\n */\n onChange?: NonCancelableEventHandler<DateRangePickerProps.ChangeDetail>;\n\n /**\n * The time offset from UTC in minutes that should be used to\n * display and produce values.\n *\n * Has no effect when `dateOnly` is true.\n *\n * Default: the user's current time offset as provided by the browser.\n *\n * @deprecated Use `getTimeOffset` instead.\n */\n timeOffset?: number;\n\n /**\n * A function that defines timezone offset from UTC in minutes for selected dates.\n * Use it to define time relative to the desired timezone.\n *\n * The function is called for the start date and the end date and takes a UTC date\n * corresponding the selected value as an argument.\n *\n * Has no effect when `dateOnly` is true.\n *\n * Default: the user's current time offset as provided by the browser.\n */\n getTimeOffset?: DateRangePickerProps.GetTimeOffsetFunction;\n}\nexport interface DateRangePickerProps\n extends BaseComponentProps,\n FormFieldValidationControlProps,\n ExpandToViewport,\n DateRangePickerBaseProps {\n /**\n * Specifies the placeholder text that is rendered when the value is empty.\n */\n placeholder?: string;\n\n /**\n * Specifies that the component is disabled, preventing the user from\n * modifying the value. A disabled component cannot receive focus.\n */\n disabled?: boolean;\n\n /**\n * Specifies that the component is read-only, preventing the user from\n * modifying the value. A read-only component can receive focus.\n */\n readOnly?: boolean;\n\n /**\n * Fired when keyboard focus is set onto the UI control.\n */\n onFocus?: NonCancelableEventHandler<null>;\n\n /**\n * Fired when keyboard focus is removed from the UI control.\n */\n onBlur?: NonCancelableEventHandler<null>;\n\n /**\n * A function that defines whether a particular range is valid or not.\n *\n * Ensure that your function checks for missing fields in the value.\n */\n isValidRange: DateRangePickerProps.ValidationFunction;\n\n /**\n * Specifies whether the component should show a button that\n * allows the user to clear the selected value.\n */\n showClearButton?: boolean;\n\n /**\n * Specifies an additional control displayed in the dropdown, located below the range calendar.\n */\n customAbsoluteRangeControl?: DateRangePickerProps.AbsoluteRangeControl;\n}\n\nexport namespace DateRangePickerProps {\n export type Value = AbsoluteValue | RelativeValue;\n export interface AbsoluteValue {\n /**\n * In ISO8601 format, e.g.: 2021-04-06T17:23:50+02:00 (or 2021-04-06 when `dateOnly` is true)\n */\n startDate: string;\n /**\n * In ISO8601 format, e.g.: 2021-04-06T17:23:50+02:00 (or 2021-04-06 when `dateOnly` is true)\n */\n endDate: string;\n type: 'absolute';\n }\n\n export interface RelativeValue {\n /**\n * If provided, used to match this value\n * to a provided relative option.\n */\n key?: string;\n amount: number;\n unit: TimeUnit;\n type: 'relative';\n }\n export interface RelativeOption {\n /**\n * Used to uniquely identify this relative option.\n */\n key: string;\n amount: number;\n unit: TimeUnit;\n type: 'relative';\n }\n\n export type TimeUnit = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year';\n\n export type ValidationFunction = (value: Value | null) => ValidationResult;\n\n export type ValidationResult = ValidRangeResult | InvalidRangeResult;\n\n export interface ValidRangeResult {\n valid: true;\n }\n\n export interface InvalidRangeResult {\n valid: false;\n errorMessage: string;\n }\n\n export interface ChangeDetail {\n /**\n * The newly selected range of this date range picker.\n */\n value: null | Value;\n }\n\n export interface IsDateEnabledFunction {\n (date: Date): boolean;\n }\n\n export interface GetTimeOffsetFunction {\n (date: Date): number;\n }\n\n export interface DateTimeStrings {\n date: string;\n time: string;\n }\n\n export interface PendingAbsoluteValue {\n start: DateTimeStrings;\n end: DateTimeStrings;\n }\n\n export type AbsoluteRangeControl = (\n selectedRange: PendingAbsoluteValue,\n setSelectedRange: React.Dispatch<React.SetStateAction<PendingAbsoluteValue>>\n ) => React.ReactNode;\n\n export type RangeSelectorMode = 'default' | 'absolute-only' | 'relative-only';\n\n export interface Ref {\n /**\n * Sets the browser focus on the UI control\n */\n focus(): void;\n }\n\n export interface I18nStrings {\n /**\n * Adds `aria-label` to the trigger and dropdown.\n */\n ariaLabel?: string;\n\n /**\n * Adds `aria-labelledby` to the trigger and dropdown.\n */\n ariaLabelledby?: string;\n\n /**\n * Adds `aria-describedby` to the trigger and dropdown.\n */\n ariaDescribedby?: string;\n\n /**\n * Segment title of the relative range selection mode\n */\n relativeModeTitle?: string;\n\n /**\n * Segment title of the absolute range selection mode\n */\n absoluteModeTitle?: string;\n\n /**\n * Heading for the relative range selection area\n */\n relativeRangeSelectionHeading?: string;\n\n /**\n * Visible label of the Cancel button\n */\n cancelButtonLabel?: string;\n /**\n * Visible label of the Clear and dismiss button\n */\n clearButtonLabel?: string;\n /**\n * Visible label of the Apply button\n */\n applyButtonLabel?: string;\n\n /**\n * Formatting function for relative ranges.\n * This function must convert a relative range to a human-readable string.\n */\n formatRelativeRange?: (value: RelativeValue) => string;\n\n /**\n * Formatting function for time units.\n *\n * This function must return a localized form of the unit that fits the provided time value.\n */\n formatUnit?: (unit: TimeUnit, value: number) => string;\n\n /**\n * Visible label for the option for selecting\n * a custom relative range.\n */\n customRelativeRangeOptionLabel?: string;\n\n /**\n * Visible description for the option for selecting\n * a custom relative range.\n */\n customRelativeRangeOptionDescription?: string;\n\n /**\n * Visible label for the duration selector for\n * the custom relative range.\n */\n customRelativeRangeDurationLabel?: string;\n /**\n * Placeholder for the duration selector for\n * the custom relative range.\n */\n customRelativeRangeDurationPlaceholder?: string;\n /**\n * Visible label for the unit selector for the\n * custom relative range.\n */\n customRelativeRangeUnitLabel?: string;\n\n /**\n * Used as part of the aria label for today's date in the calendar.\n */\n todayAriaLabel?: string;\n\n /**\n * An aria label for the 'next month' button.\n */\n nextMonthAriaLabel?: string;\n\n /**\n * An aria label for the 'previous month' button.\n */\n previousMonthAriaLabel?: string;\n\n /**\n * Visible label for the Start Date input for the\n * absolute range.\n */\n startDateLabel?: string;\n /**\n * Visible label for the Start Time input for the\n * absolute range.\n */\n startTimeLabel?: string;\n /**\n * Visible label for the End Date input for the\n * absolute range.\n */\n endDateLabel?: string;\n /**\n * Visible label for the End Time input for the\n * absolute range.\n */\n endTimeLabel?: string;\n\n /**\n * Constraint text for the input fields for the\n * absolute range.\n */\n dateTimeConstraintText?: string;\n\n /**\n * Provides a text alternative for the error icon in the error alert.\n */\n errorIconAriaLabel?: string;\n\n /**\n * When the property is set, screen readers announce the selected range when the absolute range gets selected.\n */\n renderSelectedAbsoluteRangeAriaLive?: (startDate: string, endDate: string) => string;\n }\n}\n\nexport type DayIndex = 0 | 1 | 2 | 3 | 4 | 5 | 6;\n\nexport type RangeCalendarI18nStrings = Pick<\n DateRangePickerProps.I18nStrings,\n | 'todayAriaLabel'\n | 'nextMonthAriaLabel'\n | 'previousMonthAriaLabel'\n | 'startDateLabel'\n | 'startTimeLabel'\n | 'endDateLabel'\n | 'endTimeLabel'\n | 'dateTimeConstraintText'\n | 'renderSelectedAbsoluteRangeAriaLive'\n>;\n\nexport interface Focusable {\n focus(): void;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["date-range-picker/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { FormFieldValidationControlProps } from '../internal/context/form-field-context';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { TimeInputProps } from '../time-input/interfaces';\nimport { ExpandToViewport } from '../internal/components/dropdown/interfaces';\nimport React from 'react';\n\nexport interface DateRangePickerBaseProps {\n /**\n * The current date range value. Can be either an absolute time range\n * or a relative time range.\n */\n value: null | DateRangePickerProps.Value;\n\n /**\n * A list of relative time ranges that are shown as suggestions.\n */\n relativeOptions: ReadonlyArray<DateRangePickerProps.RelativeOption>;\n\n /**\n * A function that defines whether a particular date should be enabled\n * in the calendar or not. Note that disabling a date in the calendar\n * still allows users to enter this date via keyboard. We therefore\n * recommend that you also validate these constraints client- and\n * server-side, in the same way as for other form elements.\n */\n isDateEnabled?: DateRangePickerProps.IsDateEnabledFunction;\n\n /**\n * The locale to be used for rendering month names and defining the\n * starting date of the week. If not provided, it will be determined\n * from the page and browser locales. Supported values and formats\n * are as-per the [JavaScript Intl API specification](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n */\n locale?: string;\n\n /**\n * Starting day of the week. [0-6] maps to [Sunday-Saturday].\n * By default the starting day of the week is defined by the locale,\n * but you can override it using this property.\n */\n startOfWeek?: number;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: DateRangePickerProps.I18nStrings;\n\n /**\n * Hides time inputs and changes the input format to date-only, e.g. 2021-04-06.\n *\n * Do not use `dateOnly` flag conditionally. The component does not trigger the value update\n * when the flag changes which means the value format can become inconsistent.\n *\n * Default: `false`.\n */\n dateOnly?: boolean;\n\n /**\n * Determines the range selector mode as follows:\n * * `default` for combined absolute/relative range selector.\n * * `absolute-only` for absolute-only range selector.\n * * `relative-only` for relative-only range selector.\n *\n * By default, the range selector mode is `default`.\n */\n rangeSelectorMode?: DateRangePickerProps.RangeSelectorMode;\n\n /**\n * Specifies the format of the time input for absolute ranges.\n *\n * Use to restrict the granularity of time that the user can enter.\n *\n * Has no effect when `dateOnly` is true.\n */\n timeInputFormat?: TimeInputProps.Format;\n\n /**\n * Fired whenever a user changes the component's value.\n * The event `detail` contains the current value of the field.\n */\n onChange?: NonCancelableEventHandler<DateRangePickerProps.ChangeDetail>;\n\n /**\n * The time offset from UTC in minutes that should be used to\n * display and produce values.\n *\n * Has no effect when `dateOnly` is true.\n *\n * Default: the user's current time offset as provided by the browser.\n *\n * @deprecated Use `getTimeOffset` instead.\n */\n timeOffset?: number;\n\n /**\n * A function that defines timezone offset from UTC in minutes for selected dates.\n * Use it to define time relative to the desired timezone.\n *\n * The function is called for the start date and the end date and takes a UTC date\n * corresponding the selected value as an argument.\n *\n * Has no effect when `dateOnly` is true.\n *\n * Default: the user's current time offset as provided by the browser.\n */\n getTimeOffset?: DateRangePickerProps.GetTimeOffsetFunction;\n}\nexport interface DateRangePickerProps\n extends BaseComponentProps,\n FormFieldValidationControlProps,\n ExpandToViewport,\n DateRangePickerBaseProps {\n /**\n * Specifies the placeholder text that is rendered when the value is empty.\n */\n placeholder?: string;\n\n /**\n * Specifies that the component is disabled, preventing the user from\n * modifying the value. A disabled component cannot receive focus.\n */\n disabled?: boolean;\n\n /**\n * Specifies that the component is read-only, preventing the user from\n * modifying the value. A read-only component can receive focus.\n */\n readOnly?: boolean;\n\n /**\n * Fired when keyboard focus is set onto the UI control.\n */\n onFocus?: NonCancelableEventHandler<null>;\n\n /**\n * Fired when keyboard focus is removed from the UI control.\n */\n onBlur?: NonCancelableEventHandler<null>;\n\n /**\n * A function that defines whether a particular range is valid or not.\n *\n * Ensure that your function checks for missing fields in the value.\n */\n isValidRange: DateRangePickerProps.ValidationFunction;\n\n /**\n * Specifies whether the component should show a button that\n * allows the user to clear the selected value.\n */\n showClearButton?: boolean;\n\n /**\n * Specifies an additional control displayed in the dropdown, located below the range calendar.\n */\n customAbsoluteRangeControl?: DateRangePickerProps.AbsoluteRangeControl;\n}\n\nexport namespace DateRangePickerProps {\n export type Value = AbsoluteValue | RelativeValue;\n export interface AbsoluteValue {\n /**\n * In ISO8601 format, e.g.: 2021-04-06T17:23:50+02:00 (or 2021-04-06 when `dateOnly` is true)\n */\n startDate: string;\n /**\n * In ISO8601 format, e.g.: 2021-04-06T17:23:50+02:00 (or 2021-04-06 when `dateOnly` is true)\n */\n endDate: string;\n type: 'absolute';\n }\n\n export interface RelativeValue {\n /**\n * If provided, used to match this value\n * to a provided relative option.\n */\n key?: string;\n amount: number;\n unit: TimeUnit;\n type: 'relative';\n }\n export interface RelativeOption {\n /**\n * Used to uniquely identify this relative option.\n */\n key: string;\n amount: number;\n unit: TimeUnit;\n type: 'relative';\n }\n\n export type TimeUnit = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year';\n\n export type ValidationFunction = (value: Value | null) => ValidationResult;\n\n export type ValidationResult = ValidRangeResult | InvalidRangeResult;\n\n export interface ValidRangeResult {\n valid: true;\n }\n\n export interface InvalidRangeResult {\n valid: false;\n errorMessage: string;\n }\n\n export interface ChangeDetail {\n /**\n * The newly selected range of this date range picker.\n */\n value: null | Value;\n }\n\n export interface IsDateEnabledFunction {\n (date: Date): boolean;\n }\n\n export interface GetTimeOffsetFunction {\n (date: Date): number;\n }\n\n export interface DateTimeStrings {\n date: string;\n time: string;\n }\n\n export interface PendingAbsoluteValue {\n start: DateTimeStrings;\n end: DateTimeStrings;\n }\n\n export type AbsoluteRangeControl = (\n selectedRange: PendingAbsoluteValue,\n setSelectedRange: React.Dispatch<React.SetStateAction<PendingAbsoluteValue>>\n ) => React.ReactNode;\n\n export type RangeSelectorMode = 'default' | 'absolute-only' | 'relative-only';\n\n export interface Ref {\n /**\n * Sets the browser focus on the UI control\n */\n focus(): void;\n }\n\n export interface I18nStrings {\n /**\n * Adds `aria-label` to the trigger and dropdown.\n */\n ariaLabel?: string;\n\n /**\n * Adds `aria-labelledby` to the trigger and dropdown.\n */\n ariaLabelledby?: string;\n\n /**\n * Adds `aria-describedby` to the trigger and dropdown.\n */\n ariaDescribedby?: string;\n\n /**\n * Label of the mode selection group. In the standard view, it adds 'aria-label' to the group of segments.\n * In a narrow container the label is visible and attached to the select component.\n */\n modeSelectionLabel?: string;\n\n /**\n * Segment title of the relative range selection mode\n */\n relativeModeTitle?: string;\n\n /**\n * Segment title of the absolute range selection mode\n */\n absoluteModeTitle?: string;\n\n /**\n * Heading for the relative range selection area\n */\n relativeRangeSelectionHeading?: string;\n\n /**\n * Visible label of the Cancel button\n */\n cancelButtonLabel?: string;\n /**\n * Visible label of the Clear and dismiss button\n */\n clearButtonLabel?: string;\n /**\n * Visible label of the Apply button\n */\n applyButtonLabel?: string;\n\n /**\n * Formatting function for relative ranges.\n * This function must convert a relative range to a human-readable string.\n */\n formatRelativeRange?: (value: RelativeValue) => string;\n\n /**\n * Formatting function for time units.\n *\n * This function must return a localized form of the unit that fits the provided time value.\n */\n formatUnit?: (unit: TimeUnit, value: number) => string;\n\n /**\n * Visible label for the option for selecting\n * a custom relative range.\n */\n customRelativeRangeOptionLabel?: string;\n\n /**\n * Visible description for the option for selecting\n * a custom relative range.\n */\n customRelativeRangeOptionDescription?: string;\n\n /**\n * Visible label for the duration selector for\n * the custom relative range.\n */\n customRelativeRangeDurationLabel?: string;\n /**\n * Placeholder for the duration selector for\n * the custom relative range.\n */\n customRelativeRangeDurationPlaceholder?: string;\n /**\n * Visible label for the unit selector for the\n * custom relative range.\n */\n customRelativeRangeUnitLabel?: string;\n\n /**\n * Used as part of the aria label for today's date in the calendar.\n */\n todayAriaLabel?: string;\n\n /**\n * An aria label for the 'next month' button.\n */\n nextMonthAriaLabel?: string;\n\n /**\n * An aria label for the 'previous month' button.\n */\n previousMonthAriaLabel?: string;\n\n /**\n * Visible label for the Start Date input for the\n * absolute range.\n */\n startDateLabel?: string;\n /**\n * Visible label for the Start Time input for the\n * absolute range.\n */\n startTimeLabel?: string;\n /**\n * Visible label for the End Date input for the\n * absolute range.\n */\n endDateLabel?: string;\n /**\n * Visible label for the End Time input for the\n * absolute range.\n */\n endTimeLabel?: string;\n\n /**\n * Constraint text for the input fields for the\n * absolute range.\n */\n dateTimeConstraintText?: string;\n\n /**\n * Provides a text alternative for the error icon in the error alert.\n */\n errorIconAriaLabel?: string;\n\n /**\n * When the property is set, screen readers announce the selected range when the absolute range gets selected.\n */\n renderSelectedAbsoluteRangeAriaLive?: (startDate: string, endDate: string) => string;\n }\n}\n\nexport type DayIndex = 0 | 1 | 2 | 3 | 4 | 5 | 6;\n\nexport type RangeCalendarI18nStrings = Pick<\n DateRangePickerProps.I18nStrings,\n | 'todayAriaLabel'\n | 'nextMonthAriaLabel'\n | 'previousMonthAriaLabel'\n | 'startDateLabel'\n | 'startTimeLabel'\n | 'endDateLabel'\n | 'endTimeLabel'\n | 'dateTimeConstraintText'\n | 'renderSelectedAbsoluteRangeAriaLive'\n>;\n\nexport interface Focusable {\n focus(): void;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"mode-switcher.d.ts","sourceRoot":"lib/default/","sources":["date-range-picker/mode-switcher.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAMpD,UAAU,iBAAkB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,aAAa,CAAC;IAC3E,IAAI,EAAE,UAAU,GAAG,UAAU,CAAC;IAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,KAAK,IAAI,CAAC;CACnD;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,iBAAiB,eActF"}
1
+ {"version":3,"file":"mode-switcher.d.ts","sourceRoot":"lib/default/","sources":["date-range-picker/mode-switcher.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAMpD,UAAU,iBAAkB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,aAAa,CAAC;IAC3E,IAAI,EAAE,UAAU,GAAG,UAAU,CAAC;IAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,KAAK,IAAI,CAAC;CACnD;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,iBAAiB,eAetF"}
@@ -6,7 +6,7 @@ import styles from './styles.css.js';
6
6
  import { useInternalI18n } from '../i18n/context';
7
7
  export default function ModeSwitcher({ i18nStrings, mode, onChange }) {
8
8
  const i18n = useInternalI18n('date-range-picker');
9
- return (React.createElement(InternalSegmentedControl, { className: styles['mode-switch'], selectedId: mode, options: [
9
+ return (React.createElement(InternalSegmentedControl, { className: styles['mode-switch'], selectedId: mode, label: i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.modeSelectionLabel, options: [
10
10
  { id: 'relative', text: i18n('i18nStrings.relativeModeTitle', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.relativeModeTitle) },
11
11
  { id: 'absolute', text: i18n('i18nStrings.absoluteModeTitle', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.absoluteModeTitle) },
12
12
  ], onChange: e => onChange(e.detail.selectedId) }));
@@ -1 +1 @@
1
- {"version":3,"file":"mode-switcher.js","sourceRoot":"lib/default/","sources":["date-range-picker/mode-switcher.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,wBAAwB,MAAM,+BAA+B,CAAC;AAErE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAOlD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAqB;IACrF,MAAM,IAAI,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;IAElD,OAAO,CACL,oBAAC,wBAAwB,IACvB,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,EAChC,UAAU,EAAE,IAAI,EAChB,OAAO,EAAE;YACP,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,+BAA+B,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,iBAAiB,CAAC,EAAE;YAC/F,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,+BAA+B,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,iBAAiB,CAAC,EAAE;SAChG,EACD,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,UAAqC,CAAC,GACvE,CACH,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 { DateRangePickerProps } from './interfaces';\nimport InternalSegmentedControl from '../segmented-control/internal';\n\nimport styles from './styles.css.js';\nimport { useInternalI18n } from '../i18n/context';\n\ninterface ModeSwitcherProps extends Pick<DateRangePickerProps, 'i18nStrings'> {\n mode: 'absolute' | 'relative';\n onChange: (mode: 'absolute' | 'relative') => void;\n}\n\nexport default function ModeSwitcher({ i18nStrings, mode, onChange }: ModeSwitcherProps) {\n const i18n = useInternalI18n('date-range-picker');\n\n return (\n <InternalSegmentedControl\n className={styles['mode-switch']}\n selectedId={mode}\n options={[\n { id: 'relative', text: i18n('i18nStrings.relativeModeTitle', i18nStrings?.relativeModeTitle) },\n { id: 'absolute', text: i18n('i18nStrings.absoluteModeTitle', i18nStrings?.absoluteModeTitle) },\n ]}\n onChange={e => onChange(e.detail.selectedId as 'absolute' | 'relative')}\n />\n );\n}\n"]}
1
+ {"version":3,"file":"mode-switcher.js","sourceRoot":"lib/default/","sources":["date-range-picker/mode-switcher.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,wBAAwB,MAAM,+BAA+B,CAAC;AAErE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAOlD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAqB;IACrF,MAAM,IAAI,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;IAElD,OAAO,CACL,oBAAC,wBAAwB,IACvB,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,EAChC,UAAU,EAAE,IAAI,EAChB,KAAK,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,kBAAkB,EACtC,OAAO,EAAE;YACP,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,+BAA+B,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,iBAAiB,CAAC,EAAE;YAC/F,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,+BAA+B,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,iBAAiB,CAAC,EAAE;SAChG,EACD,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,UAAqC,CAAC,GACvE,CACH,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 { DateRangePickerProps } from './interfaces';\nimport InternalSegmentedControl from '../segmented-control/internal';\n\nimport styles from './styles.css.js';\nimport { useInternalI18n } from '../i18n/context';\n\ninterface ModeSwitcherProps extends Pick<DateRangePickerProps, 'i18nStrings'> {\n mode: 'absolute' | 'relative';\n onChange: (mode: 'absolute' | 'relative') => void;\n}\n\nexport default function ModeSwitcher({ i18nStrings, mode, onChange }: ModeSwitcherProps) {\n const i18n = useInternalI18n('date-range-picker');\n\n return (\n <InternalSegmentedControl\n className={styles['mode-switch']}\n selectedId={mode}\n label={i18nStrings?.modeSelectionLabel}\n options={[\n { id: 'relative', text: i18n('i18nStrings.relativeModeTitle', i18nStrings?.relativeModeTitle) },\n { id: 'absolute', text: i18n('i18nStrings.absoluteModeTitle', i18nStrings?.absoluteModeTitle) },\n ]}\n onChange={e => onChange(e.detail.selectedId as 'absolute' | 'relative')}\n />\n );\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (38e86492)";
2
+ export var PACKAGE_VERSION = "3.0.0 (224472c9)";
3
3
  export var THEME = "open-source-visual-refresh";
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (38e86492)",
3
+ "PACKAGE_VERSION": "3.0.0 (224472c9)",
4
4
  "THEME": "default",
5
5
  "ALWAYS_VISUAL_REFRESH": false
6
6
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "38e86492d9e619bf855e144da8f768bf47d21bb9"
2
+ "commit": "224472c9ffd5d63aab9a8319a53d23b964ddcda7"
3
3
  }
package/package.json CHANGED
@@ -112,7 +112,7 @@
112
112
  "./internal/base-component/index.js",
113
113
  "./internal/base-component/styles.css.js"
114
114
  ],
115
- "version": "3.0.403",
115
+ "version": "3.0.405",
116
116
  "repository": {
117
117
  "type": "git",
118
118
  "url": "https://github.com/cloudscape-design/components.git"