@cloudscape-design/components 3.0.278 → 3.0.280

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 (95) hide show
  1. package/autosuggest/internal.d.ts.map +1 -1
  2. package/autosuggest/internal.js +1 -1
  3. package/autosuggest/internal.js.map +1 -1
  4. package/autosuggest/options-list.d.ts +2 -1
  5. package/autosuggest/options-list.d.ts.map +1 -1
  6. package/autosuggest/options-list.js +2 -1
  7. package/autosuggest/options-list.js.map +1 -1
  8. package/button-dropdown/internal.d.ts.map +1 -1
  9. package/button-dropdown/internal.js +1 -1
  10. package/button-dropdown/internal.js.map +1 -1
  11. package/collection-preferences/content-display/styles.css.js +11 -11
  12. package/collection-preferences/content-display/styles.scoped.css +17 -18
  13. package/collection-preferences/content-display/styles.selectors.js +11 -11
  14. package/collection-preferences/index.d.ts +1 -1
  15. package/collection-preferences/index.d.ts.map +1 -1
  16. package/collection-preferences/index.js +6 -4
  17. package/collection-preferences/index.js.map +1 -1
  18. package/collection-preferences/interfaces.d.ts +42 -12
  19. package/collection-preferences/interfaces.d.ts.map +1 -1
  20. package/collection-preferences/interfaces.js.map +1 -1
  21. package/collection-preferences/styles.css.js +37 -32
  22. package/collection-preferences/styles.scoped.css +44 -40
  23. package/collection-preferences/styles.selectors.js +37 -32
  24. package/collection-preferences/utils.d.ts +12 -1
  25. package/collection-preferences/utils.d.ts.map +1 -1
  26. package/collection-preferences/utils.js +15 -1
  27. package/collection-preferences/utils.js.map +1 -1
  28. package/date-range-picker/styles.css.js +38 -38
  29. package/date-range-picker/styles.scoped.css +48 -45
  30. package/date-range-picker/styles.selectors.js +38 -38
  31. package/internal/base-component/styles.scoped.css +8 -0
  32. package/internal/components/options-list/index.d.ts +2 -0
  33. package/internal/components/options-list/index.d.ts.map +1 -1
  34. package/internal/components/options-list/index.js +4 -5
  35. package/internal/components/options-list/index.js.map +1 -1
  36. package/internal/environment.js +1 -1
  37. package/internal/manifest.json +1 -1
  38. package/multiselect/internal.d.ts.map +1 -1
  39. package/multiselect/internal.js +1 -0
  40. package/multiselect/internal.js.map +1 -1
  41. package/package.json +1 -1
  42. package/property-filter/property-filter-autosuggest.d.ts.map +1 -1
  43. package/property-filter/property-filter-autosuggest.js +1 -1
  44. package/property-filter/property-filter-autosuggest.js.map +1 -1
  45. package/select/internal.d.ts.map +1 -1
  46. package/select/internal.js +1 -0
  47. package/select/internal.js.map +1 -1
  48. package/select/utils/use-select.d.ts +3 -1
  49. package/select/utils/use-select.d.ts.map +1 -1
  50. package/select/utils/use-select.js +2 -1
  51. package/select/utils/use-select.js.map +1 -1
  52. package/table/body-cell/styles.css.js +28 -23
  53. package/table/body-cell/styles.scoped.css +111 -55
  54. package/table/body-cell/styles.selectors.js +28 -23
  55. package/table/body-cell/td-element.d.ts +3 -0
  56. package/table/body-cell/td-element.d.ts.map +1 -1
  57. package/table/body-cell/td-element.js +16 -2
  58. package/table/body-cell/td-element.js.map +1 -1
  59. package/table/header-cell/index.d.ts +4 -1
  60. package/table/header-cell/index.d.ts.map +1 -1
  61. package/table/header-cell/index.js +9 -2
  62. package/table/header-cell/index.js.map +1 -1
  63. package/table/header-cell/styles.css.js +24 -19
  64. package/table/header-cell/styles.scoped.css +67 -32
  65. package/table/header-cell/styles.selectors.js +24 -19
  66. package/table/interfaces.d.ts +14 -0
  67. package/table/interfaces.d.ts.map +1 -1
  68. package/table/interfaces.js.map +1 -1
  69. package/table/internal.d.ts.map +1 -1
  70. package/table/internal.js +19 -6
  71. package/table/internal.js.map +1 -1
  72. package/table/thead.d.ts +2 -0
  73. package/table/thead.d.ts.map +1 -1
  74. package/table/thead.js +12 -4
  75. package/table/thead.js.map +1 -1
  76. package/table/use-sticky-columns.d.ts.map +1 -1
  77. package/table/use-sticky-columns.js +5 -1
  78. package/table/use-sticky-columns.js.map +1 -1
  79. package/table/utils.d.ts +4 -0
  80. package/table/utils.d.ts.map +1 -1
  81. package/table/utils.js +8 -0
  82. package/table/utils.js.map +1 -1
  83. package/test-utils/dom/collection-preferences/index.d.ts +2 -0
  84. package/test-utils/dom/collection-preferences/index.js +6 -1
  85. package/test-utils/dom/collection-preferences/index.js.map +1 -1
  86. package/test-utils/dom/collection-preferences/sticky-columns-preference.d.ts +9 -0
  87. package/test-utils/dom/collection-preferences/sticky-columns-preference.js +23 -0
  88. package/test-utils/dom/collection-preferences/sticky-columns-preference.js.map +1 -0
  89. package/test-utils/selectors/collection-preferences/index.d.ts +2 -0
  90. package/test-utils/selectors/collection-preferences/index.js +6 -1
  91. package/test-utils/selectors/collection-preferences/index.js.map +1 -1
  92. package/test-utils/selectors/collection-preferences/sticky-columns-preference.d.ts +9 -0
  93. package/test-utils/selectors/collection-preferences/sticky-columns-preference.js +23 -0
  94. package/test-utils/selectors/collection-preferences/sticky-columns-preference.js.map +1 -0
  95. package/test-utils/tsconfig.tsbuildinfo +1 -1
@@ -6,15 +6,17 @@ import InternalCheckbox from '../checkbox/internal';
6
6
  import InternalColumnLayout from '../column-layout/internal';
7
7
  import InternalFormField from '../form-field/internal';
8
8
  import InternalRadioGroup from '../radio-group/internal';
9
+ import InternalSpaceBetween from '../space-between/internal';
9
10
  import { useContainerBreakpoints } from '../internal/hooks/container-queries';
10
11
  import styles from './styles.css.js';
11
- export const copyPreferences = ({ pageSize, wrapLines, stripedRows, contentDensity, visibleContent, contentDisplay, custom, }) => ({
12
+ export const copyPreferences = ({ pageSize, wrapLines, stripedRows, contentDensity, visibleContent, contentDisplay, stickyColumns, custom, }) => ({
12
13
  pageSize,
13
14
  wrapLines,
14
15
  stripedRows,
15
16
  contentDensity,
16
17
  visibleContent,
17
18
  contentDisplay,
19
+ stickyColumns,
18
20
  custom,
19
21
  });
20
22
  export const mergePreferences = (newPref, oldPref) => {
@@ -27,6 +29,7 @@ export const mergePreferences = (newPref, oldPref) => {
27
29
  'visibleContent',
28
30
  'custom',
29
31
  'contentDisplay',
32
+ 'stickyColumns',
30
33
  ];
31
34
  for (const prefName of prefNames) {
32
35
  if (newPref[prefName] !== undefined) {
@@ -55,6 +58,17 @@ export const PageSizePreference = ({ title, options, value, onChange }) => (Reac
55
58
  export const WrapLinesPreference = ({ label, description, value, onChange }) => (React.createElement(InternalCheckbox, { checked: !!value, description: description, onChange: ({ detail }) => onChange(detail.checked), className: styles['wrap-lines'] }, label));
56
59
  export const StripedRowsPreference = ({ label, description, value, onChange }) => (React.createElement(InternalCheckbox, { checked: !!value, description: description, onChange: ({ detail }) => onChange(detail.checked), className: styles['striped-rows'] }, label));
57
60
  export const ContentDensityPreference = ({ label, description, value, onChange }) => (React.createElement(InternalCheckbox, { checked: value === 'compact', description: description, onChange: ({ detail }) => onChange(detail.checked ? 'compact' : 'comfortable'), className: styles['content-density'] }, label));
61
+ const StickyPreference = ({ firstOrLast, preference, value, onChange }) => {
62
+ const { title, description, options } = preference;
63
+ return (React.createElement("div", { className: styles[`sticky-columns-${firstOrLast}`] },
64
+ React.createElement(InternalFormField, { className: styles['sticky-columns-form-field'], label: title, description: description },
65
+ React.createElement(InternalRadioGroup, { className: styles['sticky-columns-radio-group'], value: typeof value !== 'undefined' ? `${value}` : null, items: options.map(({ label, value }) => ({ label, value: `${value}` })), onChange: ({ detail }) => onChange(Number(detail.value)) }))));
66
+ };
67
+ export const StickyColumnsPreference = ({ firstColumns, lastColumns, onChange, value, }) => {
68
+ return (React.createElement(InternalSpaceBetween, { className: styles['sticky-columns'], size: "l" },
69
+ firstColumns && (React.createElement(StickyPreference, { firstOrLast: "first", preference: firstColumns, value: value === null || value === void 0 ? void 0 : value.first, onChange: newValue => onChange(Object.assign(Object.assign({}, value), { first: newValue })) })),
70
+ lastColumns && (React.createElement(StickyPreference, { firstOrLast: "last", preference: lastColumns, value: value === null || value === void 0 ? void 0 : value.last, onChange: newValue => onChange(Object.assign(Object.assign({}, value), { last: newValue })) }))));
71
+ };
58
72
  export const CustomPreference = ({ value, customPreference, onChange }) => {
59
73
  const [customState, setCustomState] = useState(value);
60
74
  if (customPreference) {
@@ -1 +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AAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,EAC9E,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,IAEnC,KAAK,CACW,CACpB,CAAC;AAMF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAyB,EAAE,EAAE;IAC/F,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,IAAI,gBAAgB,EAAE;QACpB,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,MAAM,IAC1B,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE;YACrC,uDAAuD;YACvD,cAAc,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;YAC5B,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC,CAAC,CACE,CACP,CAAC;KACH;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\nimport clsx from 'clsx';\nimport InternalCheckbox from '../checkbox/internal';\nimport InternalColumnLayout from '../column-layout/internal';\nimport InternalFormField from '../form-field/internal';\nimport InternalRadioGroup from '../radio-group/internal';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { CollectionPreferencesProps } from './interfaces';\nimport styles from './styles.css.js';\n\nexport const copyPreferences = ({\n pageSize,\n wrapLines,\n stripedRows,\n contentDensity,\n visibleContent,\n contentDisplay,\n custom,\n}: CollectionPreferencesProps.Preferences): CollectionPreferencesProps.Preferences => ({\n pageSize,\n wrapLines,\n stripedRows,\n contentDensity,\n visibleContent,\n contentDisplay,\n custom,\n});\n\ntype CopyPreferenceName = keyof CollectionPreferencesProps.Preferences;\n\nexport const mergePreferences = (\n newPref: CollectionPreferencesProps.Preferences,\n oldPref: CollectionPreferencesProps.Preferences\n): CollectionPreferencesProps.Preferences => {\n const newObj = { ...oldPref };\n const prefNames: CopyPreferenceName[] = [\n 'pageSize',\n 'wrapLines',\n 'stripedRows',\n 'contentDensity',\n 'visibleContent',\n 'custom',\n 'contentDisplay',\n ];\n for (const prefName of prefNames) {\n if (newPref[prefName] !== undefined) {\n newObj[prefName] = newPref[prefName];\n }\n }\n return newObj;\n};\n\ninterface ModalContentLayoutProps {\n left: React.ReactNode;\n right: React.ReactNode;\n}\n\nexport const ModalContentLayout = ({ left, right }: ModalContentLayoutProps) => {\n const [breakpoint, ref] = useContainerBreakpoints(['xs']);\n const smallContainer = breakpoint === 'default';\n\n if (smallContainer) {\n return (\n <div ref={ref}>\n {left && <div>{left}</div>}\n {right && <div className={clsx(left && styles['second-column-small'])}>{right}</div>}\n </div>\n );\n }\n\n const columns = left && right ? 2 : 1;\n return (\n <div ref={ref}>\n <InternalColumnLayout columns={columns} variant=\"text-grid\">\n {left && <div>{left}</div>}\n {right && <div>{right}</div>}\n </InternalColumnLayout>\n </div>\n );\n};\n\ninterface PageSizePreferenceProps extends CollectionPreferencesProps.PageSizePreference {\n onChange: (value: number) => void;\n value?: number;\n}\n\nexport const PageSizePreference = ({ title, options, value, onChange }: PageSizePreferenceProps) => (\n <div className={styles['page-size']}>\n <InternalFormField label={title} stretch={true} className={styles['page-size-form-field']}>\n <InternalRadioGroup\n className={styles['page-size-radio-group']}\n value={`${value}`}\n items={options.map(({ label, value }) => ({ label, value: `${value}` }))}\n onChange={({ detail }) => onChange(parseInt(detail.value, 10))}\n />\n </InternalFormField>\n </div>\n);\n\ninterface WrapLinesPreferenceProps extends CollectionPreferencesProps.WrapLinesPreference {\n onChange: (value: boolean) => void;\n value?: boolean;\n}\n\nexport const WrapLinesPreference = ({ label, description, value, onChange }: WrapLinesPreferenceProps) => (\n <InternalCheckbox\n checked={!!value}\n description={description}\n onChange={({ detail }) => onChange(detail.checked)}\n className={styles['wrap-lines']}\n >\n {label}\n </InternalCheckbox>\n);\n\ninterface StripedRowsPreferenceProps extends CollectionPreferencesProps.StripedRowsPreference {\n onChange: (value: boolean) => void;\n value?: boolean;\n}\n\nexport const StripedRowsPreference = ({ label, description, value, onChange }: StripedRowsPreferenceProps) => (\n <InternalCheckbox\n checked={!!value}\n description={description}\n onChange={({ detail }) => onChange(detail.checked)}\n className={styles['striped-rows']}\n >\n {label}\n </InternalCheckbox>\n);\n\ninterface ContentDensityPreferenceProps extends CollectionPreferencesProps.ContentDensityPreference {\n onChange: (value: 'comfortable' | 'compact') => void;\n value?: 'comfortable' | 'compact';\n}\n\nexport const ContentDensityPreference = ({ label, description, value, onChange }: ContentDensityPreferenceProps) => (\n <InternalCheckbox\n checked={value === 'compact'}\n description={description}\n onChange={({ detail }) => onChange(detail.checked ? 'compact' : 'comfortable')}\n className={styles['content-density']}\n >\n {label}\n </InternalCheckbox>\n);\n\ninterface CustomPreferenceProps<T = any> extends Pick<CollectionPreferencesProps<T>, 'customPreference'> {\n onChange: (value: T) => void;\n value: T;\n}\nexport const CustomPreference = ({ value, customPreference, onChange }: CustomPreferenceProps) => {\n const [customState, setCustomState] = useState(value);\n if (customPreference) {\n return (\n <div className={styles.custom}>\n {customPreference(customState, value => {\n // prevent value to be treated as a functional callback\n setCustomState(() => value);\n onChange(value);\n })}\n </div>\n );\n }\n return null;\n};\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"lib/default/","sources":["collection-preferences/utils.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AACpD,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AACvD,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;A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AW,EAAC,MAAM,EAClB,UAAU,EAAE,WAAW,EACvB,KAAK,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAClB,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,iCAAM,KAAK,KAAE,IAAI,EAAE,QAAQ,IAAG,GAC5D,CACH,CACoB,CACxB,CAAC;AACJ,CAAC,CAAC;AAMF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAyB,EAAE,EAAE;IAC/F,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,IAAI,gBAAgB,EAAE;QACpB,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,MAAM,IAC1B,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE;YACrC,uDAAuD;YACvD,cAAc,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;YAC5B,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC,CAAC,CACE,CACP,CAAC;KACH;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\nimport clsx from 'clsx';\nimport InternalCheckbox from '../checkbox/internal';\nimport InternalColumnLayout from '../column-layout/internal';\nimport InternalFormField from '../form-field/internal';\nimport InternalRadioGroup from '../radio-group/internal';\nimport InternalSpaceBetween from '../space-between/internal';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { CollectionPreferencesProps } from './interfaces';\nimport styles from './styles.css.js';\n\nexport const copyPreferences = ({\n pageSize,\n wrapLines,\n stripedRows,\n contentDensity,\n visibleContent,\n contentDisplay,\n stickyColumns,\n custom,\n}: CollectionPreferencesProps.Preferences): CollectionPreferencesProps.Preferences => ({\n pageSize,\n wrapLines,\n stripedRows,\n contentDensity,\n visibleContent,\n contentDisplay,\n stickyColumns,\n custom,\n});\n\ntype CopyPreferenceName = keyof CollectionPreferencesProps.Preferences;\n\nexport const mergePreferences = (\n newPref: CollectionPreferencesProps.Preferences,\n oldPref: CollectionPreferencesProps.Preferences\n): CollectionPreferencesProps.Preferences => {\n const newObj = { ...oldPref };\n const prefNames: CopyPreferenceName[] = [\n 'pageSize',\n 'wrapLines',\n 'stripedRows',\n 'contentDensity',\n 'visibleContent',\n 'custom',\n 'contentDisplay',\n 'stickyColumns',\n ];\n for (const prefName of prefNames) {\n if (newPref[prefName] !== undefined) {\n newObj[prefName] = newPref[prefName];\n }\n }\n return newObj;\n};\n\ninterface ModalContentLayoutProps {\n left: React.ReactNode;\n right: React.ReactNode;\n}\n\nexport const ModalContentLayout = ({ left, right }: ModalContentLayoutProps) => {\n const [breakpoint, ref] = useContainerBreakpoints(['xs']);\n const smallContainer = breakpoint === 'default';\n\n if (smallContainer) {\n return (\n <div ref={ref}>\n {left && <div>{left}</div>}\n {right && <div className={clsx(left && styles['second-column-small'])}>{right}</div>}\n </div>\n );\n }\n\n const columns = left && right ? 2 : 1;\n return (\n <div ref={ref}>\n <InternalColumnLayout columns={columns} variant=\"text-grid\">\n {left && <div>{left}</div>}\n {right && <div>{right}</div>}\n </InternalColumnLayout>\n </div>\n );\n};\n\ninterface PageSizePreferenceProps extends CollectionPreferencesProps.PageSizePreference {\n onChange: (value: number) => void;\n value?: number;\n}\n\nexport const PageSizePreference = ({ title, options, value, onChange }: PageSizePreferenceProps) => (\n <div className={styles['page-size']}>\n <InternalFormField label={title} stretch={true} className={styles['page-size-form-field']}>\n <InternalRadioGroup\n className={styles['page-size-radio-group']}\n value={`${value}`}\n items={options.map(({ label, value }) => ({ label, value: `${value}` }))}\n onChange={({ detail }) => onChange(parseInt(detail.value, 10))}\n />\n </InternalFormField>\n </div>\n);\n\ninterface WrapLinesPreferenceProps extends CollectionPreferencesProps.WrapLinesPreference {\n onChange: (value: boolean) => void;\n value?: boolean;\n}\n\nexport const WrapLinesPreference = ({ label, description, value, onChange }: WrapLinesPreferenceProps) => (\n <InternalCheckbox\n checked={!!value}\n description={description}\n onChange={({ detail }) => onChange(detail.checked)}\n className={styles['wrap-lines']}\n >\n {label}\n </InternalCheckbox>\n);\n\ninterface StripedRowsPreferenceProps extends CollectionPreferencesProps.StripedRowsPreference {\n onChange: (value: boolean) => void;\n value?: boolean;\n}\n\nexport const StripedRowsPreference = ({ label, description, value, onChange }: StripedRowsPreferenceProps) => (\n <InternalCheckbox\n checked={!!value}\n description={description}\n onChange={({ detail }) => onChange(detail.checked)}\n className={styles['striped-rows']}\n >\n {label}\n </InternalCheckbox>\n);\n\ninterface ContentDensityPreferenceProps extends CollectionPreferencesProps.ContentDensityPreference {\n onChange: (value: 'comfortable' | 'compact') => void;\n value?: 'comfortable' | 'compact';\n}\n\nexport const ContentDensityPreference = ({ label, description, value, onChange }: ContentDensityPreferenceProps) => (\n <InternalCheckbox\n checked={value === 'compact'}\n description={description}\n onChange={({ detail }) => onChange(detail.checked ? 'compact' : 'comfortable')}\n className={styles['content-density']}\n >\n {label}\n </InternalCheckbox>\n);\n\ninterface StickyColumnsPreferenceProps extends CollectionPreferencesProps.StickyColumnsPreference {\n onChange: (value?: { first?: number; last?: number }) => void;\n value?: { first?: number; last?: number };\n}\ninterface StickyPreference extends CollectionPreferencesProps.StickyColumnsPreference {\n onChange: (value: number) => void;\n preference: {\n title: string;\n description: string;\n options: ReadonlyArray<{\n label: string;\n value: number;\n }>;\n };\n value?: number;\n firstOrLast: 'first' | 'last';\n}\n\nconst StickyPreference = ({ firstOrLast, preference, value, onChange }: StickyPreference) => {\n const { title, description, options } = preference;\n return (\n <div className={styles[`sticky-columns-${firstOrLast}`]}>\n <InternalFormField className={styles['sticky-columns-form-field']} label={title} description={description}>\n <InternalRadioGroup\n className={styles['sticky-columns-radio-group']}\n value={typeof value !== 'undefined' ? `${value}` : null}\n items={options.map(({ label, value }) => ({ label, value: `${value}` }))}\n onChange={({ detail }) => onChange(Number(detail.value))}\n />\n </InternalFormField>\n </div>\n );\n};\n\nexport const StickyColumnsPreference = ({\n firstColumns,\n lastColumns,\n onChange,\n value,\n}: StickyColumnsPreferenceProps) => {\n return (\n <InternalSpaceBetween className={styles['sticky-columns']} size=\"l\">\n {firstColumns && (\n <StickyPreference\n firstOrLast=\"first\"\n preference={firstColumns}\n value={value?.first}\n onChange={newValue => onChange({ ...value, first: newValue })}\n />\n )}\n {lastColumns && (\n <StickyPreference\n firstOrLast=\"last\"\n preference={lastColumns}\n value={value?.last}\n onChange={newValue => onChange({ ...value, last: newValue })}\n />\n )}\n </InternalSpaceBetween>\n );\n};\n\ninterface CustomPreferenceProps<T = any> extends Pick<CollectionPreferencesProps<T>, 'customPreference'> {\n onChange: (value: T) => void;\n value: T;\n}\nexport const CustomPreference = ({ value, customPreference, onChange }: CustomPreferenceProps) => {\n const [customState, setCustomState] = useState(value);\n if (customPreference) {\n return (\n <div className={styles.custom}>\n {customPreference(customState, value => {\n // prevent value to be treated as a functional callback\n setCustomState(() => value);\n onChange(value);\n })}\n </div>\n );\n }\n return null;\n};\n"]}
@@ -1,43 +1,43 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "calendar": "awsui_calendar_mgja0_1qy5a_93",
5
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_mgja0_1qy5a_1",
6
- "root": "awsui_root_mgja0_1qy5a_120",
7
- "focus-lock": "awsui_focus-lock_mgja0_1qy5a_134",
8
- "trigger-wrapper": "awsui_trigger-wrapper_mgja0_1qy5a_138",
9
- "trigger-flexbox": "awsui_trigger-flexbox_mgja0_1qy5a_142",
10
- "calendar-container": "awsui_calendar-container_mgja0_1qy5a_146",
11
- "one-grid": "awsui_one-grid_mgja0_1qy5a_149",
12
- "calendar-header": "awsui_calendar-header_mgja0_1qy5a_153",
13
- "calendar-header-months-wrapper": "awsui_calendar-header-months-wrapper_mgja0_1qy5a_159",
14
- "calendar-header-month": "awsui_calendar-header-month_mgja0_1qy5a_159",
15
- "calendar-next-month-btn": "awsui_calendar-next-month-btn_mgja0_1qy5a_180",
16
- "calendar-prev-month-btn": "awsui_calendar-prev-month-btn_mgja0_1qy5a_183",
17
- "first-grid": "awsui_first-grid_mgja0_1qy5a_187",
18
- "second-grid": "awsui_second-grid_mgja0_1qy5a_188",
19
- "date-and-time-container": "awsui_date-and-time-container_mgja0_1qy5a_192",
20
- "date-and-time-wrapper": "awsui_date-and-time-wrapper_mgja0_1qy5a_198",
21
- "footer": "awsui_footer_mgja0_1qy5a_205",
22
- "has-clear-button": "awsui_has-clear-button_mgja0_1qy5a_212",
23
- "footer-button-wrapper": "awsui_footer-button-wrapper_mgja0_1qy5a_219",
24
- "icon-wrapper": "awsui_icon-wrapper_mgja0_1qy5a_223",
25
- "label": "awsui_label_mgja0_1qy5a_228",
26
- "label-enabled": "awsui_label-enabled_mgja0_1qy5a_233",
27
- "label-text": "awsui_label-text_mgja0_1qy5a_237",
28
- "label-token-nowrap": "awsui_label-token-nowrap_mgja0_1qy5a_242",
29
- "mode-switch": "awsui_mode-switch_mgja0_1qy5a_246",
30
- "dropdown": "awsui_dropdown_mgja0_1qy5a_250",
31
- "dropdown-content": "awsui_dropdown-content_mgja0_1qy5a_266",
32
- "start-date-input": "awsui_start-date-input_mgja0_1qy5a_275",
33
- "start-time-input": "awsui_start-time-input_mgja0_1qy5a_276",
34
- "end-date-input": "awsui_end-date-input_mgja0_1qy5a_277",
35
- "end-time-input": "awsui_end-time-input_mgja0_1qy5a_278",
36
- "validation-section": "awsui_validation-section_mgja0_1qy5a_282",
37
- "validation-error": "awsui_validation-error_mgja0_1qy5a_286",
38
- "clear-button": "awsui_clear-button_mgja0_1qy5a_290",
39
- "apply-button": "awsui_apply-button_mgja0_1qy5a_294",
40
- "cancel-button": "awsui_cancel-button_mgja0_1qy5a_298",
41
- "calendar-aria-live": "awsui_calendar-aria-live_mgja0_1qy5a_302"
4
+ "calendar": "awsui_calendar_mgja0_13nyf_93",
5
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_mgja0_13nyf_1",
6
+ "root": "awsui_root_mgja0_13nyf_120",
7
+ "focus-lock": "awsui_focus-lock_mgja0_13nyf_134",
8
+ "trigger-wrapper": "awsui_trigger-wrapper_mgja0_13nyf_138",
9
+ "trigger-flexbox": "awsui_trigger-flexbox_mgja0_13nyf_142",
10
+ "calendar-container": "awsui_calendar-container_mgja0_13nyf_146",
11
+ "one-grid": "awsui_one-grid_mgja0_13nyf_149",
12
+ "calendar-header": "awsui_calendar-header_mgja0_13nyf_153",
13
+ "calendar-header-months-wrapper": "awsui_calendar-header-months-wrapper_mgja0_13nyf_159",
14
+ "calendar-header-month": "awsui_calendar-header-month_mgja0_13nyf_159",
15
+ "calendar-next-month-btn": "awsui_calendar-next-month-btn_mgja0_13nyf_180",
16
+ "calendar-prev-month-btn": "awsui_calendar-prev-month-btn_mgja0_13nyf_183",
17
+ "first-grid": "awsui_first-grid_mgja0_13nyf_187",
18
+ "second-grid": "awsui_second-grid_mgja0_13nyf_188",
19
+ "date-and-time-container": "awsui_date-and-time-container_mgja0_13nyf_192",
20
+ "date-and-time-wrapper": "awsui_date-and-time-wrapper_mgja0_13nyf_198",
21
+ "footer": "awsui_footer_mgja0_13nyf_205",
22
+ "has-clear-button": "awsui_has-clear-button_mgja0_13nyf_212",
23
+ "footer-button-wrapper": "awsui_footer-button-wrapper_mgja0_13nyf_219",
24
+ "icon-wrapper": "awsui_icon-wrapper_mgja0_13nyf_226",
25
+ "label": "awsui_label_mgja0_13nyf_231",
26
+ "label-enabled": "awsui_label-enabled_mgja0_13nyf_236",
27
+ "label-text": "awsui_label-text_mgja0_13nyf_240",
28
+ "label-token-nowrap": "awsui_label-token-nowrap_mgja0_13nyf_245",
29
+ "mode-switch": "awsui_mode-switch_mgja0_13nyf_249",
30
+ "dropdown": "awsui_dropdown_mgja0_13nyf_253",
31
+ "dropdown-content": "awsui_dropdown-content_mgja0_13nyf_269",
32
+ "start-date-input": "awsui_start-date-input_mgja0_13nyf_278",
33
+ "start-time-input": "awsui_start-time-input_mgja0_13nyf_279",
34
+ "end-date-input": "awsui_end-date-input_mgja0_13nyf_280",
35
+ "end-time-input": "awsui_end-time-input_mgja0_13nyf_281",
36
+ "validation-section": "awsui_validation-section_mgja0_13nyf_285",
37
+ "validation-error": "awsui_validation-error_mgja0_13nyf_289",
38
+ "clear-button": "awsui_clear-button_mgja0_13nyf_293",
39
+ "apply-button": "awsui_apply-button_mgja0_13nyf_297",
40
+ "cancel-button": "awsui_cancel-button_mgja0_13nyf_301",
41
+ "calendar-aria-live": "awsui_calendar-aria-live_mgja0_13nyf_305"
42
42
  };
43
43
 
@@ -90,11 +90,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_calendar_mgja0_1qy5a_93:not(#\9) {
94
- animation: awsui_awsui-motion-fade-in-0_mgja0_1qy5a_1 var(--motion-duration-show-quick-tyaalm, 135ms) var(--motion-easing-show-quick-1fcgbv, ease-out);
93
+ .awsui_calendar_mgja0_13nyf_93:not(#\9) {
94
+ animation: awsui_awsui-motion-fade-in-0_mgja0_13nyf_1 var(--motion-duration-show-quick-tyaalm, 135ms) var(--motion-easing-show-quick-1fcgbv, ease-out);
95
95
  animation-fill-mode: both;
96
96
  }
97
- @keyframes awsui_awsui-motion-fade-in-0_mgja0_1qy5a_1 {
97
+ @keyframes awsui_awsui-motion-fade-in-0_mgja0_13nyf_1 {
98
98
  from {
99
99
  opacity: 0;
100
100
  }
@@ -103,12 +103,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
103
103
  }
104
104
  }
105
105
  @media (prefers-reduced-motion: reduce) {
106
- .awsui_calendar_mgja0_1qy5a_93:not(#\9) {
106
+ .awsui_calendar_mgja0_13nyf_93:not(#\9) {
107
107
  animation: none;
108
108
  transition: none;
109
109
  }
110
110
  }
111
- .awsui-motion-disabled .awsui_calendar_mgja0_1qy5a_93:not(#\9), .awsui-mode-entering .awsui_calendar_mgja0_1qy5a_93:not(#\9) {
111
+ .awsui-motion-disabled .awsui_calendar_mgja0_13nyf_93:not(#\9), .awsui-mode-entering .awsui_calendar_mgja0_13nyf_93:not(#\9) {
112
112
  animation: none;
113
113
  transition: none;
114
114
  }
@@ -117,7 +117,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
117
117
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
118
118
  SPDX-License-Identifier: Apache-2.0
119
119
  */
120
- .awsui_root_mgja0_1qy5a_120:not(#\9) {
120
+ .awsui_root_mgja0_13nyf_120:not(#\9) {
121
121
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
122
122
  border-collapse: separate;
123
123
  border-spacing: 0;
@@ -157,32 +157,32 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
157
157
  max-width: 32em;
158
158
  }
159
159
 
160
- .awsui_focus-lock_mgja0_1qy5a_134:not(#\9) {
160
+ .awsui_focus-lock_mgja0_13nyf_134:not(#\9) {
161
161
  display: contents;
162
162
  }
163
163
 
164
- .awsui_trigger-wrapper_mgja0_1qy5a_138:not(#\9) {
164
+ .awsui_trigger-wrapper_mgja0_13nyf_138:not(#\9) {
165
165
  min-width: calc(var(--size-calendar-grid-width-lxsx0p, 238px) + 2 * var(--space-l-4vl6xu, 20px));
166
166
  }
167
167
 
168
- .awsui_trigger-flexbox_mgja0_1qy5a_142:not(#\9) {
168
+ .awsui_trigger-flexbox_mgja0_13nyf_142:not(#\9) {
169
169
  display: flex;
170
170
  }
171
171
 
172
- .awsui_calendar-container_mgja0_1qy5a_146:not(#\9) {
172
+ .awsui_calendar-container_mgja0_13nyf_146:not(#\9) {
173
173
  width: calc(2 * var(--size-calendar-grid-width-lxsx0p, 238px) + var(--space-xs-rsr2qu, 8px));
174
174
  }
175
- .awsui_calendar-container_mgja0_1qy5a_146.awsui_one-grid_mgja0_1qy5a_149:not(#\9) {
175
+ .awsui_calendar-container_mgja0_13nyf_146.awsui_one-grid_mgja0_13nyf_149:not(#\9) {
176
176
  width: var(--size-calendar-grid-width-lxsx0p, 238px);
177
177
  }
178
178
 
179
- .awsui_calendar-header_mgja0_1qy5a_153:not(#\9) {
179
+ .awsui_calendar-header_mgja0_13nyf_153:not(#\9) {
180
180
  display: flex;
181
181
  justify-content: space-between;
182
182
  align-items: center;
183
183
  position: relative;
184
184
  }
185
- .awsui_calendar-header-months-wrapper_mgja0_1qy5a_159:not(#\9) {
185
+ .awsui_calendar-header-months-wrapper_mgja0_13nyf_159:not(#\9) {
186
186
  position: absolute;
187
187
  right: 0;
188
188
  left: 0;
@@ -195,7 +195,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
195
195
  flex: 1;
196
196
  pointer-events: none;
197
197
  }
198
- .awsui_calendar-header-month_mgja0_1qy5a_159:not(#\9) {
198
+ .awsui_calendar-header-month_mgja0_13nyf_159:not(#\9) {
199
199
  font-size: var(--font-body-m-size-sregvd, 14px);
200
200
  line-height: var(--font-body-m-line-height-i7xxvv, 22px);
201
201
  font-weight: 700;
@@ -203,130 +203,133 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
203
203
  display: flex;
204
204
  pointer-events: auto;
205
205
  }
206
- .awsui_calendar-next-month-btn_mgja0_1qy5a_180:not(#\9) {
206
+ .awsui_calendar-next-month-btn_mgja0_13nyf_180:not(#\9) {
207
207
  /* used for identifying element */
208
208
  }
209
- .awsui_calendar-prev-month-btn_mgja0_1qy5a_183:not(#\9) {
209
+ .awsui_calendar-prev-month-btn_mgja0_13nyf_183:not(#\9) {
210
210
  /* used for identifying element */
211
211
  }
212
212
 
213
- .awsui_first-grid_mgja0_1qy5a_187:not(#\9),
214
- .awsui_second-grid_mgja0_1qy5a_188:not(#\9) {
213
+ .awsui_first-grid_mgja0_13nyf_187:not(#\9),
214
+ .awsui_second-grid_mgja0_13nyf_188:not(#\9) {
215
215
  /* used in test-utils */
216
216
  }
217
217
 
218
- .awsui_date-and-time-container_mgja0_1qy5a_192:not(#\9) {
218
+ .awsui_date-and-time-container_mgja0_13nyf_192:not(#\9) {
219
219
  display: grid;
220
220
  grid-template-columns: repeat(auto-fit, minmax(var(--size-calendar-grid-width-lxsx0p, 238px), 1fr));
221
221
  gap: var(--space-xs-rsr2qu, 8px);
222
222
  }
223
223
 
224
- .awsui_date-and-time-wrapper_mgja0_1qy5a_198:not(#\9) {
224
+ .awsui_date-and-time-wrapper_mgja0_13nyf_198:not(#\9) {
225
225
  width: var(--size-calendar-grid-width-lxsx0p, 238px);
226
226
  display: grid;
227
227
  gap: var(--space-xs-rsr2qu, 8px);
228
228
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
229
229
  }
230
230
 
231
- .awsui_footer_mgja0_1qy5a_205:not(#\9) {
231
+ .awsui_footer_mgja0_13nyf_205:not(#\9) {
232
232
  display: flex;
233
233
  flex-wrap: wrap;
234
234
  justify-content: flex-end;
235
235
  border-top: 1px solid var(--color-border-dropdown-item-default-faosd8, #e9ebed);
236
236
  padding: 0 var(--space-l-4vl6xu, 20px) var(--space-s-hv8c1d, 12px);
237
237
  }
238
- .awsui_footer_mgja0_1qy5a_205.awsui_has-clear-button_mgja0_1qy5a_212:not(#\9) {
238
+ .awsui_footer_mgja0_13nyf_205.awsui_has-clear-button_mgja0_13nyf_212:not(#\9) {
239
239
  justify-content: space-between;
240
240
  }
241
- .awsui_footer_mgja0_1qy5a_205.awsui_one-grid_mgja0_1qy5a_149:not(#\9) {
241
+ .awsui_footer_mgja0_13nyf_205.awsui_one-grid_mgja0_13nyf_149:not(#\9) {
242
242
  padding: 0 var(--space-xs-rsr2qu, 8px) var(--space-s-hv8c1d, 12px);
243
243
  }
244
244
 
245
- .awsui_footer-button-wrapper_mgja0_1qy5a_219:not(#\9) {
245
+ .awsui_footer-button-wrapper_mgja0_13nyf_219:not(#\9) {
246
246
  padding-top: var(--space-s-hv8c1d, 12px);
247
247
  }
248
+ .awsui_footer-button-wrapper_mgja0_13nyf_219:not(#\9):last-child {
249
+ margin-left: auto;
250
+ }
248
251
 
249
- .awsui_icon-wrapper_mgja0_1qy5a_223:not(#\9) {
252
+ .awsui_icon-wrapper_mgja0_13nyf_226:not(#\9) {
250
253
  color: var(--color-text-interactive-default-eg5fsa, #414d5c);
251
254
  margin-right: var(--space-xs-rsr2qu, 8px);
252
255
  }
253
256
 
254
- .awsui_label_mgja0_1qy5a_228:not(#\9) {
257
+ .awsui_label_mgja0_13nyf_231:not(#\9) {
255
258
  -webkit-user-select: text;
256
259
  user-select: text;
257
260
  cursor: default;
258
261
  }
259
262
 
260
- .awsui_label_mgja0_1qy5a_228.awsui_label-enabled_mgja0_1qy5a_233:not(#\9):hover > .awsui_trigger-flexbox_mgja0_1qy5a_142 > .awsui_icon-wrapper_mgja0_1qy5a_223 {
263
+ .awsui_label_mgja0_13nyf_231.awsui_label-enabled_mgja0_13nyf_236:not(#\9):hover > .awsui_trigger-flexbox_mgja0_13nyf_142 > .awsui_icon-wrapper_mgja0_13nyf_226 {
261
264
  color: var(--color-text-interactive-hover-v3lasm, #000716);
262
265
  }
263
266
 
264
- .awsui_label-text_mgja0_1qy5a_237:not(#\9) {
267
+ .awsui_label-text_mgja0_13nyf_240:not(#\9) {
265
268
  color: var(--color-text-input-placeholder-j53j3c, #5f6b7a);
266
269
  font-style: italic;
267
270
  }
268
271
 
269
- .awsui_label-token-nowrap_mgja0_1qy5a_242:not(#\9) {
272
+ .awsui_label-token-nowrap_mgja0_13nyf_245:not(#\9) {
270
273
  white-space: nowrap;
271
274
  }
272
275
 
273
- .awsui_mode-switch_mgja0_1qy5a_246:not(#\9) {
276
+ .awsui_mode-switch_mgja0_13nyf_249:not(#\9) {
274
277
  /* used in test-utils */
275
278
  }
276
279
 
277
- .awsui_dropdown_mgja0_1qy5a_250:not(#\9) {
280
+ .awsui_dropdown_mgja0_13nyf_253:not(#\9) {
278
281
  overflow: auto;
279
282
  border-top: 1px solid var(--color-border-container-top-srcvx4, transparent);
280
283
  border-bottom: 1px solid var(--color-border-container-top-srcvx4, transparent);
281
284
  border-radius: var(--border-radius-dropdown-ujknaf, 8px);
282
285
  }
283
- .awsui_dropdown_mgja0_1qy5a_250:not(#\9):focus {
286
+ .awsui_dropdown_mgja0_13nyf_253:not(#\9):focus {
284
287
  outline: none;
285
288
  }
286
- body[data-awsui-focus-visible=true] .awsui_dropdown_mgja0_1qy5a_250:not(#\9):focus {
289
+ body[data-awsui-focus-visible=true] .awsui_dropdown_mgja0_13nyf_253:not(#\9):focus {
287
290
  outline: 2px dotted transparent;
288
291
  outline-offset: 2px;
289
292
  border-radius: var(--border-radius-dropdown-ujknaf, 8px);
290
293
  box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
291
294
  }
292
295
 
293
- .awsui_dropdown-content_mgja0_1qy5a_266:not(#\9) {
296
+ .awsui_dropdown-content_mgja0_13nyf_269:not(#\9) {
294
297
  -webkit-user-select: text;
295
298
  user-select: text;
296
299
  background-color: var(--color-background-container-content-i8i4a0, #ffffff);
297
300
  width: calc(2 * var(--size-calendar-grid-width-lxsx0p, 238px) + var(--space-xs-rsr2qu, 8px) + 2 * var(--space-l-4vl6xu, 20px));
298
301
  }
299
- .awsui_dropdown-content_mgja0_1qy5a_266.awsui_one-grid_mgja0_1qy5a_149:not(#\9) {
302
+ .awsui_dropdown-content_mgja0_13nyf_269.awsui_one-grid_mgja0_13nyf_149:not(#\9) {
300
303
  width: calc(var(--size-calendar-grid-width-lxsx0p, 238px) + 2 * var(--space-l-4vl6xu, 20px));
301
304
  }
302
305
 
303
- .awsui_start-date-input_mgja0_1qy5a_275:not(#\9),
304
- .awsui_start-time-input_mgja0_1qy5a_276:not(#\9),
305
- .awsui_end-date-input_mgja0_1qy5a_277:not(#\9),
306
- .awsui_end-time-input_mgja0_1qy5a_278:not(#\9) {
306
+ .awsui_start-date-input_mgja0_13nyf_278:not(#\9),
307
+ .awsui_start-time-input_mgja0_13nyf_279:not(#\9),
308
+ .awsui_end-date-input_mgja0_13nyf_280:not(#\9),
309
+ .awsui_end-time-input_mgja0_13nyf_281:not(#\9) {
307
310
  /* used in test-utils */
308
311
  }
309
312
 
310
- .awsui_validation-section_mgja0_1qy5a_282:not(#\9) {
313
+ .awsui_validation-section_mgja0_13nyf_285:not(#\9) {
311
314
  /* used in test-utils */
312
315
  }
313
316
 
314
- .awsui_validation-error_mgja0_1qy5a_286:not(#\9) {
317
+ .awsui_validation-error_mgja0_13nyf_289:not(#\9) {
315
318
  /* used in test-utils */
316
319
  }
317
320
 
318
- .awsui_clear-button_mgja0_1qy5a_290:not(#\9) {
321
+ .awsui_clear-button_mgja0_13nyf_293:not(#\9) {
319
322
  /* used in test-utils */
320
323
  }
321
324
 
322
- .awsui_apply-button_mgja0_1qy5a_294:not(#\9) {
325
+ .awsui_apply-button_mgja0_13nyf_297:not(#\9) {
323
326
  /* used in test-utils */
324
327
  }
325
328
 
326
- .awsui_cancel-button_mgja0_1qy5a_298:not(#\9) {
329
+ .awsui_cancel-button_mgja0_13nyf_301:not(#\9) {
327
330
  /* used in test-utils */
328
331
  }
329
332
 
330
- .awsui_calendar-aria-live_mgja0_1qy5a_302:not(#\9) {
333
+ .awsui_calendar-aria-live_mgja0_13nyf_305:not(#\9) {
331
334
  /* used in test-utils */
332
335
  }
@@ -2,43 +2,43 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "calendar": "awsui_calendar_mgja0_1qy5a_93",
6
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_mgja0_1qy5a_1",
7
- "root": "awsui_root_mgja0_1qy5a_120",
8
- "focus-lock": "awsui_focus-lock_mgja0_1qy5a_134",
9
- "trigger-wrapper": "awsui_trigger-wrapper_mgja0_1qy5a_138",
10
- "trigger-flexbox": "awsui_trigger-flexbox_mgja0_1qy5a_142",
11
- "calendar-container": "awsui_calendar-container_mgja0_1qy5a_146",
12
- "one-grid": "awsui_one-grid_mgja0_1qy5a_149",
13
- "calendar-header": "awsui_calendar-header_mgja0_1qy5a_153",
14
- "calendar-header-months-wrapper": "awsui_calendar-header-months-wrapper_mgja0_1qy5a_159",
15
- "calendar-header-month": "awsui_calendar-header-month_mgja0_1qy5a_159",
16
- "calendar-next-month-btn": "awsui_calendar-next-month-btn_mgja0_1qy5a_180",
17
- "calendar-prev-month-btn": "awsui_calendar-prev-month-btn_mgja0_1qy5a_183",
18
- "first-grid": "awsui_first-grid_mgja0_1qy5a_187",
19
- "second-grid": "awsui_second-grid_mgja0_1qy5a_188",
20
- "date-and-time-container": "awsui_date-and-time-container_mgja0_1qy5a_192",
21
- "date-and-time-wrapper": "awsui_date-and-time-wrapper_mgja0_1qy5a_198",
22
- "footer": "awsui_footer_mgja0_1qy5a_205",
23
- "has-clear-button": "awsui_has-clear-button_mgja0_1qy5a_212",
24
- "footer-button-wrapper": "awsui_footer-button-wrapper_mgja0_1qy5a_219",
25
- "icon-wrapper": "awsui_icon-wrapper_mgja0_1qy5a_223",
26
- "label": "awsui_label_mgja0_1qy5a_228",
27
- "label-enabled": "awsui_label-enabled_mgja0_1qy5a_233",
28
- "label-text": "awsui_label-text_mgja0_1qy5a_237",
29
- "label-token-nowrap": "awsui_label-token-nowrap_mgja0_1qy5a_242",
30
- "mode-switch": "awsui_mode-switch_mgja0_1qy5a_246",
31
- "dropdown": "awsui_dropdown_mgja0_1qy5a_250",
32
- "dropdown-content": "awsui_dropdown-content_mgja0_1qy5a_266",
33
- "start-date-input": "awsui_start-date-input_mgja0_1qy5a_275",
34
- "start-time-input": "awsui_start-time-input_mgja0_1qy5a_276",
35
- "end-date-input": "awsui_end-date-input_mgja0_1qy5a_277",
36
- "end-time-input": "awsui_end-time-input_mgja0_1qy5a_278",
37
- "validation-section": "awsui_validation-section_mgja0_1qy5a_282",
38
- "validation-error": "awsui_validation-error_mgja0_1qy5a_286",
39
- "clear-button": "awsui_clear-button_mgja0_1qy5a_290",
40
- "apply-button": "awsui_apply-button_mgja0_1qy5a_294",
41
- "cancel-button": "awsui_cancel-button_mgja0_1qy5a_298",
42
- "calendar-aria-live": "awsui_calendar-aria-live_mgja0_1qy5a_302"
5
+ "calendar": "awsui_calendar_mgja0_13nyf_93",
6
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_mgja0_13nyf_1",
7
+ "root": "awsui_root_mgja0_13nyf_120",
8
+ "focus-lock": "awsui_focus-lock_mgja0_13nyf_134",
9
+ "trigger-wrapper": "awsui_trigger-wrapper_mgja0_13nyf_138",
10
+ "trigger-flexbox": "awsui_trigger-flexbox_mgja0_13nyf_142",
11
+ "calendar-container": "awsui_calendar-container_mgja0_13nyf_146",
12
+ "one-grid": "awsui_one-grid_mgja0_13nyf_149",
13
+ "calendar-header": "awsui_calendar-header_mgja0_13nyf_153",
14
+ "calendar-header-months-wrapper": "awsui_calendar-header-months-wrapper_mgja0_13nyf_159",
15
+ "calendar-header-month": "awsui_calendar-header-month_mgja0_13nyf_159",
16
+ "calendar-next-month-btn": "awsui_calendar-next-month-btn_mgja0_13nyf_180",
17
+ "calendar-prev-month-btn": "awsui_calendar-prev-month-btn_mgja0_13nyf_183",
18
+ "first-grid": "awsui_first-grid_mgja0_13nyf_187",
19
+ "second-grid": "awsui_second-grid_mgja0_13nyf_188",
20
+ "date-and-time-container": "awsui_date-and-time-container_mgja0_13nyf_192",
21
+ "date-and-time-wrapper": "awsui_date-and-time-wrapper_mgja0_13nyf_198",
22
+ "footer": "awsui_footer_mgja0_13nyf_205",
23
+ "has-clear-button": "awsui_has-clear-button_mgja0_13nyf_212",
24
+ "footer-button-wrapper": "awsui_footer-button-wrapper_mgja0_13nyf_219",
25
+ "icon-wrapper": "awsui_icon-wrapper_mgja0_13nyf_226",
26
+ "label": "awsui_label_mgja0_13nyf_231",
27
+ "label-enabled": "awsui_label-enabled_mgja0_13nyf_236",
28
+ "label-text": "awsui_label-text_mgja0_13nyf_240",
29
+ "label-token-nowrap": "awsui_label-token-nowrap_mgja0_13nyf_245",
30
+ "mode-switch": "awsui_mode-switch_mgja0_13nyf_249",
31
+ "dropdown": "awsui_dropdown_mgja0_13nyf_253",
32
+ "dropdown-content": "awsui_dropdown-content_mgja0_13nyf_269",
33
+ "start-date-input": "awsui_start-date-input_mgja0_13nyf_278",
34
+ "start-time-input": "awsui_start-time-input_mgja0_13nyf_279",
35
+ "end-date-input": "awsui_end-date-input_mgja0_13nyf_280",
36
+ "end-time-input": "awsui_end-time-input_mgja0_13nyf_281",
37
+ "validation-section": "awsui_validation-section_mgja0_13nyf_285",
38
+ "validation-error": "awsui_validation-error_mgja0_13nyf_289",
39
+ "clear-button": "awsui_clear-button_mgja0_13nyf_293",
40
+ "apply-button": "awsui_apply-button_mgja0_13nyf_297",
41
+ "cancel-button": "awsui_cancel-button_mgja0_13nyf_301",
42
+ "calendar-aria-live": "awsui_calendar-aria-live_mgja0_13nyf_305"
43
43
  };
44
44
 
@@ -465,6 +465,7 @@
465
465
  --motion-duration-slow-0273ow:180ms;
466
466
  --motion-duration-transition-quick-x85tae:90ms;
467
467
  --motion-duration-transition-show-paced-ai4wlf:180ms;
468
+ --motion-duration-transition-show-quick-w3nd9c:90ms;
468
469
  --motion-easing-ease-out-quart-z687ml:cubic-bezier(0.165, 0.84, 0.44, 1);
469
470
  --motion-easing-refresh-only-a-sy0g8m:cubic-bezier(0, 0, 0, 1);
470
471
  --motion-easing-refresh-only-b-nspng9:cubic-bezier(1, 0, 0.83, 1);
@@ -591,6 +592,8 @@
591
592
  --shadow-split-side-qv353u:-1px 0px 1px 0px #e9ebed, -36px 6px 36px -36px rgba(0, 7, 22, 0.10);
592
593
  --shadow-sticky-aijlo6:0px 4px 20px 1px rgba(0, 7, 22, 0.10);
593
594
  --shadow-sticky-embedded-qit8ba:0px 2px 0px 0px #e9ebed, 0px 16px 16px -12px rgba(0, 7, 22, 0.10);
595
+ --shadow-sticky-column-first-h2plme:4px 0px 20px 1px rgba(0, 7, 22, 0.1);
596
+ --shadow-sticky-column-last-s13kkz:-4px 0 20px 1px rgba(0, 28, 36, 0.1);
594
597
  }
595
598
 
596
599
  .awsui-dark-mode:not(#\9) {
@@ -942,6 +945,8 @@
942
945
  --shadow-split-side-qv353u:-1px 0px 1px 0px #192534, -36px 6px 36px -36px rgba(0, 7, 22, 1);
943
946
  --shadow-sticky-aijlo6:0px 4px 20px 1px rgba(0, 7, 22, 1);
944
947
  --shadow-sticky-embedded-qit8ba:0px 2px 0px 0px #414d5c, 0px 16px 16px -12px rgba(0, 7, 22, 1);
948
+ --shadow-sticky-column-first-h2plme:0px 4px 20px 1px rgba(0, 7, 22, 1);
949
+ --shadow-sticky-column-last-s13kkz:0px 4px 20px 1px rgba(0, 7, 22, 1);
945
950
  }
946
951
 
947
952
  .awsui-compact-mode:not(#\9) {
@@ -992,6 +997,7 @@
992
997
  --motion-duration-slow-0273ow:0ms;
993
998
  --motion-duration-transition-quick-x85tae:0ms;
994
999
  --motion-duration-transition-show-paced-ai4wlf:0ms;
1000
+ --motion-duration-transition-show-quick-w3nd9c:0ms;
995
1001
  --motion-duration-responsive-dvittz:0ms;
996
1002
  --motion-duration-expressive-96gzp7:0ms;
997
1003
  --motion-duration-complex-8zbvzy:0ms;
@@ -1394,6 +1400,8 @@
1394
1400
  --shadow-split-side-qv353u:-1px 0px 1px 0px #192534, -36px 6px 36px -36px rgba(0, 7, 22, 1);
1395
1401
  --shadow-sticky-aijlo6:0px 4px 20px 1px rgba(0, 7, 22, 1);
1396
1402
  --shadow-sticky-embedded-qit8ba:0px 2px 0px 0px #414d5c, 0px 16px 16px -12px rgba(0, 7, 22, 1);
1403
+ --shadow-sticky-column-first-h2plme:0px 4px 20px 1px rgba(0, 7, 22, 1);
1404
+ --shadow-sticky-column-last-s13kkz:0px 4px 20px 1px rgba(0, 7, 22, 1);
1397
1405
  }
1398
1406
 
1399
1407
  .awsui-context-flashbar:not(#\9) {
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
2
  import { BaseComponentProps } from '../../base-component';
3
3
  import { NonCancelableEventHandler, CancelableEventHandler, BaseKeyDetail } from '../../events';
4
+ import { DropdownStatusProps } from '../dropdown-status';
4
5
  export interface OptionsListProps extends BaseComponentProps {
5
6
  open?: boolean;
7
+ statusType: DropdownStatusProps.StatusType;
6
8
  /**
7
9
  * Options list
8
10
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/components/options-list/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAgB,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAEL,yBAAyB,EACzB,sBAAsB,EACtB,aAAa,EAEd,MAAM,cAAc,CAAC;AAKtB,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC;;OAEG;IACH,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC,SAAS,CAAC,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;IAClD,MAAM,CAAC,EAAE,yBAAyB,CAAC;QAAE,aAAa,EAAE,IAAI,GAAG,IAAI,CAAA;KAAE,CAAC,CAAC;IACnE,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,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AAC,CAAC;IAC3C,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;;AAmFD,wBAA6C"}
@@ -16,7 +16,7 @@ const getItemIndex = (containerRef, event) => {
16
16
  return mouseTarget ? parseInt(mouseTarget) : -1;
17
17
  };
18
18
  const OptionsList = (_a, ref) => {
19
- var { open, children, nativeAttributes = {}, onKeyDown, onBlur, onFocus, onLoadMore, onMouseUp, onMouseMove, position = 'relative', role = 'listbox', decreaseTopMargin = false, ariaLabelledby, ariaDescribedby } = _a, restProps = __rest(_a, ["open", "children", "nativeAttributes", "onKeyDown", "onBlur", "onFocus", "onLoadMore", "onMouseUp", "onMouseMove", "position", "role", "decreaseTopMargin", "ariaLabelledby", "ariaDescribedby"]);
19
+ var { open, statusType, children, nativeAttributes = {}, onKeyDown, onBlur, onFocus, onLoadMore, onMouseUp, onMouseMove, position = 'relative', role = 'listbox', decreaseTopMargin = false, ariaLabelledby, ariaDescribedby } = _a, restProps = __rest(_a, ["open", "statusType", "children", "nativeAttributes", "onKeyDown", "onBlur", "onFocus", "onLoadMore", "onMouseUp", "onMouseMove", "position", "role", "decreaseTopMargin", "ariaLabelledby", "ariaDescribedby"]);
20
20
  const baseProps = getBaseProps(restProps);
21
21
  const menuRef = useRef(null);
22
22
  const handleScroll = useStableEventHandler(() => {
@@ -30,11 +30,10 @@ const OptionsList = (_a, ref) => {
30
30
  }
31
31
  });
32
32
  useEffect(() => {
33
- if (!open) {
34
- return;
33
+ if (open && statusType === 'pending') {
34
+ handleScroll();
35
35
  }
36
- handleScroll();
37
- }, [open, handleScroll]);
36
+ }, [open, statusType, handleScroll]);
38
37
  const className = clsx(styles['options-list'], {
39
38
  [styles['decrease-top-margin']]: decreaseTopMargin,
40
39
  });