@cloudscape-design/components 3.0.836 → 3.0.838

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 (91) hide show
  1. package/app-layout/utils/use-drawers.d.ts.map +1 -1
  2. package/app-layout/utils/use-drawers.js +40 -51
  3. package/app-layout/utils/use-drawers.js.map +1 -1
  4. package/cards/index.d.ts.map +1 -1
  5. package/cards/index.js +1 -0
  6. package/cards/index.js.map +1 -1
  7. package/collection-preferences/index.d.ts.map +1 -1
  8. package/collection-preferences/index.js +2 -1
  9. package/collection-preferences/index.js.map +1 -1
  10. package/collection-preferences/interfaces.d.ts +15 -8
  11. package/collection-preferences/interfaces.d.ts.map +1 -1
  12. package/collection-preferences/interfaces.js.map +1 -1
  13. package/container/internal.d.ts.map +1 -1
  14. package/container/internal.js +6 -3
  15. package/container/internal.js.map +1 -1
  16. package/container/styles.css.js +31 -30
  17. package/container/styles.scoped.css +59 -56
  18. package/container/styles.selectors.js +31 -30
  19. package/container/test-classes/styles.css.js +6 -0
  20. package/container/test-classes/styles.scoped.css +7 -0
  21. package/container/test-classes/styles.selectors.js +7 -0
  22. package/date-range-picker/index.d.ts.map +1 -1
  23. package/date-range-picker/index.js +23 -17
  24. package/date-range-picker/index.js.map +1 -1
  25. package/internal/environment.js +1 -1
  26. package/internal/environment.json +1 -1
  27. package/internal/manifest.json +1 -1
  28. package/internal/utils/date-time/format-date-time-with-offset.d.ts +9 -0
  29. package/internal/utils/date-time/format-date-time-with-offset.d.ts.map +1 -0
  30. package/internal/utils/date-time/format-date-time-with-offset.js +17 -0
  31. package/internal/utils/date-time/format-date-time-with-offset.js.map +1 -0
  32. package/internal/utils/date-time/index.d.ts +1 -1
  33. package/internal/utils/date-time/index.d.ts.map +1 -1
  34. package/internal/utils/date-time/index.js +1 -1
  35. package/internal/utils/date-time/index.js.map +1 -1
  36. package/package.json +1 -1
  37. package/table/body-cell/disabled-inline-editor.d.ts +1 -1
  38. package/table/body-cell/disabled-inline-editor.d.ts.map +1 -1
  39. package/table/body-cell/disabled-inline-editor.js +2 -2
  40. package/table/body-cell/disabled-inline-editor.js.map +1 -1
  41. package/table/body-cell/index.d.ts +1 -5
  42. package/table/body-cell/index.d.ts.map +1 -1
  43. package/table/body-cell/index.js +11 -13
  44. package/table/body-cell/index.js.map +1 -1
  45. package/table/body-cell/td-element.d.ts +6 -2
  46. package/table/body-cell/td-element.d.ts.map +1 -1
  47. package/table/body-cell/td-element.js +5 -2
  48. package/table/body-cell/td-element.js.map +1 -1
  49. package/table/header-cell/index.d.ts +5 -2
  50. package/table/header-cell/index.d.ts.map +1 -1
  51. package/table/header-cell/index.js +2 -2
  52. package/table/header-cell/index.js.map +1 -1
  53. package/table/header-cell/th-element.d.ts +8 -4
  54. package/table/header-cell/th-element.d.ts.map +1 -1
  55. package/table/header-cell/th-element.js +5 -2
  56. package/table/header-cell/th-element.js.map +1 -1
  57. package/table/index.d.ts.map +1 -1
  58. package/table/index.js +2 -0
  59. package/table/index.js.map +1 -1
  60. package/table/internal.d.ts.map +1 -1
  61. package/table/internal.js +6 -8
  62. package/table/internal.js.map +1 -1
  63. package/table/progressive-loading/items-loader.d.ts +1 -2
  64. package/table/progressive-loading/items-loader.d.ts.map +1 -1
  65. package/table/progressive-loading/items-loader.js.map +1 -1
  66. package/table/progressive-loading/loader-cell.d.ts +7 -0
  67. package/table/progressive-loading/loader-cell.d.ts.map +1 -0
  68. package/table/progressive-loading/loader-cell.js +11 -0
  69. package/table/progressive-loading/loader-cell.js.map +1 -0
  70. package/table/selection/selection-cell.d.ts +18 -0
  71. package/table/selection/selection-cell.d.ts.map +1 -0
  72. package/table/selection/selection-cell.js +23 -0
  73. package/table/selection/selection-cell.js.map +1 -0
  74. package/table/thead.d.ts.map +1 -1
  75. package/table/thead.js +16 -18
  76. package/table/thead.js.map +1 -1
  77. package/test-utils/dom/expandable-section/index.js +11 -10
  78. package/test-utils/dom/expandable-section/index.js.map +1 -1
  79. package/test-utils/dom/index.d.ts +1343 -0
  80. package/test-utils/dom/index.js +237 -0
  81. package/test-utils/dom/index.js.map +1 -1
  82. package/test-utils/selectors/expandable-section/index.js +11 -10
  83. package/test-utils/selectors/expandable-section/index.js.map +1 -1
  84. package/test-utils/selectors/index.d.ts +1185 -0
  85. package/test-utils/selectors/index.js +237 -0
  86. package/test-utils/selectors/index.js.map +1 -1
  87. package/test-utils/tsconfig.tsbuildinfo +1 -1
  88. package/internal/utils/date-time/format-date-range.d.ts +0 -13
  89. package/internal/utils/date-time/format-date-range.d.ts.map +0 -1
  90. package/internal/utils/date-time/format-date-range.js +0 -36
  91. package/internal/utils/date-time/format-date-range.js.map +0 -1
@@ -1,13 +0,0 @@
1
- import { DateRangePickerProps } from '../../../date-range-picker/interfaces';
2
- export declare function formatDateRange({ startDate, endDate, timeOffset, hideTimeOffset, format, locale, }: {
3
- startDate: string;
4
- endDate: string;
5
- hideTimeOffset?: boolean;
6
- timeOffset: {
7
- startDate?: number;
8
- endDate?: number;
9
- };
10
- format: DateRangePickerProps.AbsoluteFormat;
11
- locale?: string;
12
- }): string;
13
- //# sourceMappingURL=format-date-range.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format-date-range.d.ts","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/format-date-range.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAK7E,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,OAAO,EACP,UAAU,EACV,cAAc,EACd,MAAM,EACN,MAAM,GACP,EAAE;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,MAAM,EAAE,oBAAoB,CAAC,cAAc,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,MAAM,CAqBT"}
@@ -1,36 +0,0 @@
1
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
- // SPDX-License-Identifier: Apache-2.0
3
- import formatDateIso from './format-date-iso';
4
- import formatDateLocalized from './format-date-localized';
5
- import { isIsoDateOnly } from './is-iso-date-only';
6
- export function formatDateRange({ startDate, endDate, timeOffset, hideTimeOffset, format, locale, }) {
7
- const isDateOnly = isIsoDateOnly(startDate) && isIsoDateOnly(endDate);
8
- return (formatDate({
9
- date: startDate,
10
- format,
11
- hideTimeOffset,
12
- isDateOnly,
13
- timeOffset: timeOffset.startDate,
14
- locale,
15
- }) +
16
- ' — ' +
17
- formatDate({
18
- date: endDate,
19
- format,
20
- hideTimeOffset,
21
- isDateOnly,
22
- timeOffset: timeOffset.endDate,
23
- locale,
24
- }));
25
- }
26
- function formatDate({ date, format, hideTimeOffset, isDateOnly, timeOffset, locale, }) {
27
- switch (format) {
28
- case 'long-localized': {
29
- return formatDateLocalized({ date, hideTimeOffset, isDateOnly, locale, timeOffset });
30
- }
31
- default: {
32
- return formatDateIso({ date, hideTimeOffset, isDateOnly, timeOffset });
33
- }
34
- }
35
- }
36
- //# sourceMappingURL=format-date-range.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format-date-range.js","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/format-date-range.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAGtC,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,mBAAmB,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,UAAU,eAAe,CAAC,EAC9B,SAAS,EACT,OAAO,EACP,UAAU,EACV,cAAc,EACd,MAAM,EACN,MAAM,GAQP;IACC,MAAM,UAAU,GAAG,aAAa,CAAC,SAAS,CAAC,IAAI,aAAa,CAAC,OAAO,CAAC,CAAC;IACtE,OAAO,CACL,UAAU,CAAC;QACT,IAAI,EAAE,SAAS;QACf,MAAM;QACN,cAAc;QACd,UAAU;QACV,UAAU,EAAE,UAAU,CAAC,SAAS;QAChC,MAAM;KACP,CAAC;QACF,KAAK;QACL,UAAU,CAAC;YACT,IAAI,EAAE,OAAO;YACb,MAAM;YACN,cAAc;YACd,UAAU;YACV,UAAU,EAAE,UAAU,CAAC,OAAO;YAC9B,MAAM;SACP,CAAC,CACH,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,EAClB,IAAI,EACJ,MAAM,EACN,cAAc,EACd,UAAU,EACV,UAAU,EACV,MAAM,GAQP;IACC,QAAQ,MAAM,EAAE;QACd,KAAK,gBAAgB,CAAC,CAAC;YACrB,OAAO,mBAAmB,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;SACtF;QACD,OAAO,CAAC,CAAC;YACP,OAAO,aAAa,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC;SACxE;KACF;AACH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { DateRangePickerProps } from '../../../date-range-picker/interfaces';\nimport formatDateIso from './format-date-iso';\nimport formatDateLocalized from './format-date-localized';\nimport { isIsoDateOnly } from './is-iso-date-only';\n\nexport function formatDateRange({\n startDate,\n endDate,\n timeOffset,\n hideTimeOffset,\n format,\n locale,\n}: {\n startDate: string;\n endDate: string;\n hideTimeOffset?: boolean;\n timeOffset: { startDate?: number; endDate?: number };\n format: DateRangePickerProps.AbsoluteFormat;\n locale?: string;\n}): string {\n const isDateOnly = isIsoDateOnly(startDate) && isIsoDateOnly(endDate);\n return (\n formatDate({\n date: startDate,\n format,\n hideTimeOffset,\n isDateOnly,\n timeOffset: timeOffset.startDate,\n locale,\n }) +\n ' — ' +\n formatDate({\n date: endDate,\n format,\n hideTimeOffset,\n isDateOnly,\n timeOffset: timeOffset.endDate,\n locale,\n })\n );\n}\n\nfunction formatDate({\n date,\n format,\n hideTimeOffset,\n isDateOnly,\n timeOffset,\n locale,\n}: {\n date: string;\n format: DateRangePickerProps.AbsoluteFormat;\n hideTimeOffset?: boolean;\n isDateOnly: boolean;\n timeOffset?: number;\n locale?: string;\n}) {\n switch (format) {\n case 'long-localized': {\n return formatDateLocalized({ date, hideTimeOffset, isDateOnly, locale, timeOffset });\n }\n default: {\n return formatDateIso({ date, hideTimeOffset, isDateOnly, timeOffset });\n }\n }\n}\n"]}