@cloudscape-design/components 3.0.1082 → 3.0.1084

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 (151) hide show
  1. package/autosuggest/plain-list.js +1 -1
  2. package/autosuggest/plain-list.js.map +1 -1
  3. package/autosuggest/virtual-list.js +1 -1
  4. package/autosuggest/virtual-list.js.map +1 -1
  5. package/badge/index.d.ts.map +1 -1
  6. package/badge/internal-do-not-use-core.js +1 -1
  7. package/badge/internal-do-not-use-core.js.map +1 -1
  8. package/box/index.js +13 -20
  9. package/box/interfaces.d.ts +14 -0
  10. package/box/interfaces.d.ts.map +1 -1
  11. package/box/interfaces.js.map +1 -1
  12. package/box/internal-do-not-use-core.js +25 -0
  13. package/box/internal.d.ts +1 -0
  14. package/box/internal.d.ts.map +1 -1
  15. package/box/internal.js +3 -5
  16. package/box/internal.js.map +1 -1
  17. package/button/internal.d.ts.map +1 -1
  18. package/button/internal.js +3 -3
  19. package/button/internal.js.map +1 -1
  20. package/button-dropdown/internal.d.ts.map +1 -1
  21. package/button-dropdown/internal.js +1 -1
  22. package/button-dropdown/internal.js.map +1 -1
  23. package/button-group/internal.d.ts.map +1 -1
  24. package/button-group/internal.js +5 -87
  25. package/button-group/internal.js.map +1 -1
  26. package/checkbox/internal.d.ts.map +1 -1
  27. package/checkbox/internal.js +1 -1
  28. package/checkbox/internal.js.map +1 -1
  29. package/icon/internal.d.ts.map +1 -1
  30. package/icon/internal.js +3 -3
  31. package/icon/internal.js.map +1 -1
  32. package/index.d.ts +1 -0
  33. package/index.d.ts.map +1 -1
  34. package/index.js +1 -0
  35. package/index.js.map +1 -1
  36. package/internal/base-component/styles.scoped.css +1 -2
  37. package/internal/components/option/index.d.ts +0 -1
  38. package/internal/components/option/index.d.ts.map +1 -1
  39. package/internal/components/option/index.js +3 -12
  40. package/internal/components/option/index.js.map +1 -1
  41. package/internal/components/option/interfaces.d.ts +0 -1
  42. package/internal/components/option/interfaces.d.ts.map +1 -1
  43. package/internal/components/option/interfaces.js.map +1 -1
  44. package/internal/components/option/option-parts.d.ts.map +1 -1
  45. package/internal/components/option/option-parts.js +2 -2
  46. package/internal/components/option/option-parts.js.map +1 -1
  47. package/internal/components/option/styles.css.js +16 -17
  48. package/internal/components/option/styles.scoped.css +28 -32
  49. package/internal/components/option/styles.selectors.js +16 -17
  50. package/internal/components/option/utils/unflatten-options.d.ts +15 -0
  51. package/internal/components/option/utils/unflatten-options.d.ts.map +1 -0
  52. package/internal/components/option/utils/unflatten-options.js +23 -0
  53. package/internal/components/option/utils/unflatten-options.js.map +1 -0
  54. package/internal/components/options-list/index.d.ts +2 -1
  55. package/internal/components/options-list/index.d.ts.map +1 -1
  56. package/internal/components/options-list/index.js +2 -2
  57. package/internal/components/options-list/index.js.map +1 -1
  58. package/internal/components/selectable-item/index.d.ts.map +1 -1
  59. package/internal/components/selectable-item/index.js +23 -20
  60. package/internal/components/selectable-item/index.js.map +1 -1
  61. package/internal/components/selectable-item/interfaces.d.ts +1 -0
  62. package/internal/components/selectable-item/interfaces.d.ts.map +1 -1
  63. package/internal/components/selectable-item/interfaces.js.map +1 -1
  64. package/internal/components/selectable-item/styles.css.js +22 -21
  65. package/internal/components/selectable-item/styles.scoped.css +42 -42
  66. package/internal/components/selectable-item/styles.selectors.js +22 -21
  67. package/internal/environment.js +2 -2
  68. package/internal/environment.json +2 -2
  69. package/internal/manifest.json +1 -1
  70. package/internal/utils/with-native-attributes.d.ts +1 -0
  71. package/internal/utils/with-native-attributes.d.ts.map +1 -1
  72. package/internal/utils/with-native-attributes.js +2 -2
  73. package/internal/utils/with-native-attributes.js.map +1 -1
  74. package/multiselect/use-multiselect.d.ts +2 -1
  75. package/multiselect/use-multiselect.d.ts.map +1 -1
  76. package/navigable-group/index.d.ts +8 -0
  77. package/navigable-group/index.d.ts.map +1 -0
  78. package/navigable-group/index.js +23 -0
  79. package/navigable-group/index.js.map +1 -0
  80. package/navigable-group/interfaces.d.ts +37 -0
  81. package/navigable-group/interfaces.d.ts.map +1 -0
  82. package/navigable-group/interfaces.js +4 -0
  83. package/navigable-group/interfaces.js.map +1 -0
  84. package/navigable-group/internal.d.ts +4 -0
  85. package/navigable-group/internal.d.ts.map +1 -0
  86. package/navigable-group/internal.js +125 -0
  87. package/navigable-group/internal.js.map +1 -0
  88. package/navigable-group/styles.css.js +6 -0
  89. package/navigable-group/styles.scoped.css +7 -0
  90. package/navigable-group/styles.selectors.js +7 -0
  91. package/navigable-group/test-classes/styles.css.js +6 -0
  92. package/navigable-group/test-classes/styles.scoped.css +7 -0
  93. package/navigable-group/test-classes/styles.selectors.js +7 -0
  94. package/package.json +2 -1
  95. package/select/internal.js +1 -1
  96. package/select/internal.js.map +1 -1
  97. package/select/parts/item.d.ts +1 -0
  98. package/select/parts/item.d.ts.map +1 -1
  99. package/select/parts/item.js +2 -2
  100. package/select/parts/item.js.map +1 -1
  101. package/select/parts/multiselect-item.d.ts.map +1 -1
  102. package/select/parts/multiselect-item.js +2 -2
  103. package/select/parts/multiselect-item.js.map +1 -1
  104. package/select/parts/option-group.d.ts +14 -0
  105. package/select/parts/option-group.d.ts.map +1 -0
  106. package/select/parts/option-group.js +9 -0
  107. package/select/parts/option-group.js.map +1 -0
  108. package/select/parts/plain-list.d.ts.map +1 -1
  109. package/select/parts/plain-list.js +4 -2
  110. package/select/parts/plain-list.js.map +1 -1
  111. package/select/parts/styles.css.js +22 -21
  112. package/select/parts/styles.scoped.css +26 -22
  113. package/select/parts/styles.selectors.js +22 -21
  114. package/select/parts/virtual-list.d.ts.map +1 -1
  115. package/select/parts/virtual-list.js +5 -3
  116. package/select/parts/virtual-list.js.map +1 -1
  117. package/select/utils/render-options.d.ts +2 -0
  118. package/select/utils/render-options.d.ts.map +1 -1
  119. package/select/utils/render-options.js +23 -3
  120. package/select/utils/render-options.js.map +1 -1
  121. package/select/utils/use-select.d.ts +1 -1
  122. package/select/utils/use-select.d.ts.map +1 -1
  123. package/select/utils/use-select.js +6 -1
  124. package/select/utils/use-select.js.map +1 -1
  125. package/space-between/index.js +13 -12
  126. package/space-between/interfaces.d.ts +14 -0
  127. package/space-between/interfaces.d.ts.map +1 -1
  128. package/space-between/interfaces.js.map +1 -1
  129. package/space-between/internal-do-not-use-core.js +17 -0
  130. package/space-between/internal.d.ts.map +1 -1
  131. package/space-between/internal.js +3 -2
  132. package/space-between/internal.js.map +1 -1
  133. package/spinner/internal.d.ts.map +1 -1
  134. package/spinner/internal.js +1 -1
  135. package/spinner/internal.js.map +1 -1
  136. package/test-utils/dom/index.d.ts +20 -0
  137. package/test-utils/dom/index.js +12 -1
  138. package/test-utils/dom/index.js.map +1 -1
  139. package/test-utils/dom/navigable-group/index.d.ts +5 -0
  140. package/test-utils/dom/navigable-group/index.js +14 -0
  141. package/test-utils/dom/navigable-group/index.js.map +1 -0
  142. package/test-utils/selectors/index.d.ts +18 -0
  143. package/test-utils/selectors/index.js +12 -1
  144. package/test-utils/selectors/index.js.map +1 -1
  145. package/test-utils/selectors/navigable-group/index.d.ts +5 -0
  146. package/test-utils/selectors/navigable-group/index.js +14 -0
  147. package/test-utils/selectors/navigable-group/index.js.map +1 -0
  148. package/token-group/internal.js +1 -1
  149. package/token-group/internal.js.map +1 -1
  150. /package/box/{index.js.map → internal-do-not-use-core.js.map} +0 -0
  151. /package/space-between/{index.js.map → internal-do-not-use-core.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/selectable-item/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAs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sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useLayoutEffect, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { useVisualRefresh } from '../../../internal/hooks/use-visual-mode';\nimport { getBaseProps } from '../../base-component';\nimport { getAnalyticsSelectActionMetadata } from './analytics-metadata/utils';\nimport { SelectableItemProps } from './interfaces';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\nexport { SelectableItemProps };\n\nconst SelectableItem = (\n {\n children: content,\n ariaSelected,\n ariaChecked,\n selected,\n highlighted,\n disabled,\n hasBackground,\n isParent,\n isChild,\n isSelectAll,\n virtualPosition,\n padBottom,\n isNextSelected,\n useInteractiveGroups,\n screenReaderContent,\n ariaPosinset,\n ariaSetsize,\n highlightType,\n value,\n sticky,\n afterHeader,\n withScrollbar,\n ...restProps\n }: SelectableItemProps,\n ref: React.Ref<HTMLDivElement>\n) => {\n const isVisualRefresh = useVisualRefresh();\n const { className, ...rest } = getBaseProps(restProps);\n const classNames = clsx(className, styles['selectable-item'], {\n [styles.selected]: selected,\n [styles.highlighted]: highlighted,\n [styles['has-background']]: hasBackground,\n [styles.parent]: isParent,\n [analyticsSelectors.parent]: isParent,\n [styles.child]: isChild,\n [styles['select-all']]: isSelectAll,\n [styles['is-keyboard']]: highlightType === 'keyboard',\n [styles.disabled]: disabled,\n [styles.virtual]: virtualPosition !== undefined && !sticky,\n [styles['pad-bottom']]: padBottom,\n [styles['next-item-selected']]: isNextSelected,\n [styles.interactiveGroups]: useInteractiveGroups,\n [styles.sticky]: sticky,\n [styles['after-header']]: !!afterHeader,\n [styles['with-scrollbar']]: withScrollbar,\n [styles['visual-refresh']]: isVisualRefresh,\n });\n\n const contentRef = useRef<HTMLDivElement>(null);\n const screenReaderContentRef = useRef<HTMLDivElement>(null);\n\n useLayoutEffect(() => {\n // the state of aria-hidden and announcement is not set back because NVDA+Firefox would announce\n // the item which lost highlight\n // set aria-hidden true when there is announcement content, so that screen reader still announce\n // meaningful content when navigate with screen reader cursor\n // imperatively update to avoid announcement made multiple times when content updates\n if (highlighted && screenReaderContent) {\n if (contentRef.current) {\n contentRef.current.setAttribute('aria-hidden', 'true');\n }\n if (screenReaderContentRef.current) {\n screenReaderContentRef.current.textContent = screenReaderContent;\n }\n }\n }, [highlighted, screenReaderContent, contentRef, screenReaderContentRef]);\n\n const style =\n virtualPosition !== undefined\n ? {\n transform: `translateY(${virtualPosition}px)`,\n }\n : undefined;\n\n const a11yProperties: Record<string, string | number | boolean | undefined> = {\n 'aria-disabled': disabled,\n };\n\n if (isParent && !useInteractiveGroups) {\n a11yProperties['aria-hidden'] = true;\n }\n\n if (ariaSelected !== undefined) {\n a11yProperties['aria-selected'] = ariaSelected;\n }\n\n // Safari+VO needs aria-checked for multi-selection. Otherwise it only announces selected option even though another option is highlighted.\n if (ariaChecked !== undefined) {\n a11yProperties['aria-checked'] = ariaChecked;\n }\n\n if (ariaPosinset && ariaSetsize) {\n a11yProperties['aria-posinset'] = ariaPosinset;\n a11yProperties['aria-setsize'] = ariaSetsize;\n }\n\n if (restProps.ariaDescribedby) {\n a11yProperties['aria-describedby'] = restProps.ariaDescribedby;\n }\n\n return (\n <li\n role=\"option\"\n className={classNames}\n style={style}\n {...a11yProperties}\n {...rest}\n {...(isParent || disabled\n ? {}\n : getAnalyticsMetadataAttribute(getAnalyticsSelectActionMetadata({ isChild, value, ...restProps })))}\n >\n <div className={clsx(styles['option-content'], analyticsSelectors['option-content'])} ref={contentRef}>\n {content}\n </div>\n <div className={styles['measure-strut']} ref={ref} />\n <div className={styles['screenreader-content']} ref={screenReaderContentRef}></div>\n </li>\n );\n};\n\nexport default React.forwardRef(SelectableItem);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/selectable-item/index.tsx"],"names":[],"mapp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AAG,CAAC,CAAC;QAEtG,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,IAClG,OAAO,CACJ;QACN,6BAAK,SAAS,EAAE,MAAM,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,GAAG,GAAI;QACrD,6BAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC,EAAE,GAAG,EAAE,sBAAsB,GAAQ,CAC/E,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useLayoutEffect, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { useVisualRefresh } from '../../../internal/hooks/use-visual-mode';\nimport { getBaseProps } from '../../base-component';\nimport { getAnalyticsSelectActionMetadata } from './analytics-metadata/utils';\nimport { SelectableItemProps } from './interfaces';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\nexport { SelectableItemProps };\n\nconst SelectableItem = (\n {\n children: content,\n ariaSelected,\n ariaChecked,\n selected,\n highlighted,\n disabled,\n hasBackground,\n isParent,\n isChild,\n isSelectAll,\n virtualPosition,\n padBottom,\n isNextSelected,\n isPreviousSelected,\n useInteractiveGroups,\n screenReaderContent,\n ariaPosinset,\n ariaSetsize,\n highlightType,\n value,\n sticky,\n afterHeader,\n withScrollbar,\n ...restProps\n }: SelectableItemProps,\n ref: React.Ref<HTMLDivElement>\n) => {\n const isVisualRefresh = useVisualRefresh();\n const { className, ...rest } = getBaseProps(restProps);\n const classNames = clsx(className, styles['selectable-item'], {\n [styles.selected]: selected,\n [styles.highlighted]: highlighted,\n [styles['has-background']]: hasBackground,\n [styles.parent]: isParent,\n [analyticsSelectors.parent]: isParent,\n [styles.child]: isChild,\n [styles['select-all']]: isSelectAll,\n [styles['is-keyboard']]: highlightType === 'keyboard',\n [styles.disabled]: disabled,\n [styles.virtual]: virtualPosition !== undefined && !sticky,\n [styles['pad-bottom']]: padBottom,\n [styles['next-item-selected']]: isNextSelected,\n [styles['previous-item-selected']]: isPreviousSelected,\n [styles.interactiveGroups]: useInteractiveGroups,\n [styles.sticky]: sticky,\n [styles['after-header']]: !!afterHeader,\n [styles['with-scrollbar']]: withScrollbar,\n [styles['visual-refresh']]: isVisualRefresh,\n });\n\n const contentRef = useRef<HTMLDivElement>(null);\n const screenReaderContentRef = useRef<HTMLDivElement>(null);\n\n useLayoutEffect(() => {\n // the state of aria-hidden and announcement is not set back because NVDA+Firefox would announce\n // the item which lost highlight\n // set aria-hidden true when there is announcement content, so that screen reader still announce\n // meaningful content when navigate with screen reader cursor\n // imperatively update to avoid announcement made multiple times when content updates\n if (highlighted && screenReaderContent) {\n if (contentRef.current) {\n contentRef.current.setAttribute('aria-hidden', 'true');\n }\n if (screenReaderContentRef.current) {\n screenReaderContentRef.current.textContent = screenReaderContent;\n }\n }\n }, [highlighted, screenReaderContent, contentRef, screenReaderContentRef]);\n\n const style =\n virtualPosition !== undefined\n ? {\n transform: `translateY(${virtualPosition}px)`,\n }\n : undefined;\n\n const a11yProperties: Record<string, string | number | boolean | undefined> = {};\n\n if (isParent && ariaChecked === undefined) {\n a11yProperties.role = 'presentation';\n } else {\n a11yProperties.role = 'option';\n a11yProperties['aria-disabled'] = disabled;\n\n if (ariaSelected !== undefined) {\n a11yProperties['aria-selected'] = ariaSelected;\n }\n\n // Safari+VO needs aria-checked for multi-selection. Otherwise it only announces selected option even though another option is highlighted.\n if (ariaChecked !== undefined) {\n a11yProperties['aria-checked'] = ariaChecked;\n }\n\n if (ariaPosinset && ariaSetsize) {\n a11yProperties['aria-posinset'] = ariaPosinset;\n a11yProperties['aria-setsize'] = ariaSetsize;\n }\n\n if (restProps.ariaDescribedby) {\n a11yProperties['aria-describedby'] = restProps.ariaDescribedby;\n }\n }\n\n return (\n <div\n className={classNames}\n style={style}\n {...a11yProperties}\n {...rest}\n {...(isParent || disabled\n ? {}\n : getAnalyticsMetadataAttribute(getAnalyticsSelectActionMetadata({ isChild, value, ...restProps })))}\n >\n <div className={clsx(styles['option-content'], analyticsSelectors['option-content'])} ref={contentRef}>\n {content}\n </div>\n <div className={styles['measure-strut']} ref={ref} />\n <div className={styles['screenreader-content']} ref={screenReaderContentRef}></div>\n </div>\n );\n};\n\nexport default React.forwardRef(SelectableItem);\n"]}
@@ -12,6 +12,7 @@ export type SelectableItemProps = BaseComponentProps & {
12
12
  isSelectAll?: boolean;
13
13
  virtualPosition?: number;
14
14
  padBottom?: boolean;
15
+ isPreviousSelected?: boolean;
15
16
  isNextSelected?: boolean;
16
17
  useInteractiveGroups?: boolean;
17
18
  screenReaderContent?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/selectable-item/interfaces.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,GAAG;IACrD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,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AE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,CAAC;IAAE,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,YAAY,CAAC,EAAE,KAAK,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;CAAE,CAAC,CAAC;AAElH,MAAM,WAAW,kBAAkB;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/selectable-item/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseComponentProps } from '../../base-component';\nimport { HighlightType } from '../options-list/utils/use-highlight-option';\n\nexport type SelectableItemProps = BaseComponentProps & {\n children: React.ReactNode;\n selected?: boolean;\n highlighted?: boolean;\n disabled?: boolean;\n hasBackground?: boolean;\n isParent?: boolean;\n isChild?: boolean;\n isSelectAll?: boolean;\n virtualPosition?: number;\n padBottom?: boolean;\n isNextSelected?: boolean;\n useInteractiveGroups?: boolean;\n screenReaderContent?: string;\n ariaPosinset?: number;\n ariaSetsize?: number;\n highlightType?: HighlightType['type'];\n ariaDescribedby?: string;\n value?: string;\n sticky?: boolean;\n afterHeader?: boolean;\n withScrollbar?: boolean;\n} & ({ ariaSelected?: boolean; ariaChecked?: never } | { ariaSelected?: never; ariaChecked?: boolean | 'mixed' });\n\nexport interface ItemDataAttributes {\n 'data-group-index'?: string;\n 'data-child-index'?: string;\n 'data-in-group-index'?: string;\n 'data-test-index'?: string;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/selectable-item/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseComponentProps } from '../../base-component';\nimport { HighlightType } from '../options-list/utils/use-highlight-option';\n\nexport type SelectableItemProps = BaseComponentProps & {\n children: React.ReactNode;\n selected?: boolean;\n highlighted?: boolean;\n disabled?: boolean;\n hasBackground?: boolean;\n isParent?: boolean;\n isChild?: boolean;\n isSelectAll?: boolean;\n virtualPosition?: number;\n padBottom?: boolean;\n isPreviousSelected?: boolean;\n isNextSelected?: boolean;\n useInteractiveGroups?: boolean;\n screenReaderContent?: string;\n ariaPosinset?: number;\n ariaSetsize?: number;\n highlightType?: HighlightType['type'];\n ariaDescribedby?: string;\n value?: string;\n sticky?: boolean;\n afterHeader?: boolean;\n withScrollbar?: boolean;\n} & ({ ariaSelected?: boolean; ariaChecked?: never } | { ariaSelected?: never; ariaChecked?: boolean | 'mixed' });\n\nexport interface ItemDataAttributes {\n 'data-group-index'?: string;\n 'data-child-index'?: string;\n 'data-in-group-index'?: string;\n 'data-test-index'?: string;\n}\n"]}
@@ -1,26 +1,27 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "selectable-item": "awsui_selectable-item_15o6u_lx7py_145",
5
- "pad-bottom": "awsui_pad-bottom_15o6u_lx7py_167",
6
- "virtual": "awsui_virtual_15o6u_lx7py_171",
7
- "has-background": "awsui_has-background_15o6u_lx7py_174",
8
- "highlighted": "awsui_highlighted_15o6u_lx7py_177",
9
- "selected": "awsui_selected_15o6u_lx7py_177",
10
- "disabled": "awsui_disabled_15o6u_lx7py_195",
11
- "is-keyboard": "awsui_is-keyboard_15o6u_lx7py_200",
12
- "visual-refresh": "awsui_visual-refresh_15o6u_lx7py_203",
13
- "next-item-selected": "awsui_next-item-selected_15o6u_lx7py_211",
14
- "parent": "awsui_parent_15o6u_lx7py_236",
15
- "interactiveGroups": "awsui_interactiveGroups_15o6u_lx7py_240",
16
- "child": "awsui_child_15o6u_lx7py_256",
17
- "sticky": "awsui_sticky_15o6u_lx7py_262",
18
- "with-scrollbar": "awsui_with-scrollbar_15o6u_lx7py_274",
19
- "after-header": "awsui_after-header_15o6u_lx7py_280",
20
- "measure-strut": "awsui_measure-strut_15o6u_lx7py_315",
21
- "measure-strut-first": "awsui_measure-strut-first_15o6u_lx7py_324",
22
- "screenreader-content": "awsui_screenreader-content_15o6u_lx7py_328",
23
- "option-content": "awsui_option-content_15o6u_lx7py_334",
24
- "select-all": "awsui_select-all_15o6u_lx7py_338"
4
+ "selectable-item": "awsui_selectable-item_15o6u_d2ghy_145",
5
+ "pad-bottom": "awsui_pad-bottom_15o6u_d2ghy_167",
6
+ "virtual": "awsui_virtual_15o6u_d2ghy_171",
7
+ "has-background": "awsui_has-background_15o6u_d2ghy_174",
8
+ "highlighted": "awsui_highlighted_15o6u_d2ghy_177",
9
+ "selected": "awsui_selected_15o6u_d2ghy_177",
10
+ "disabled": "awsui_disabled_15o6u_d2ghy_195",
11
+ "is-keyboard": "awsui_is-keyboard_15o6u_d2ghy_200",
12
+ "visual-refresh": "awsui_visual-refresh_15o6u_d2ghy_203",
13
+ "next-item-selected": "awsui_next-item-selected_15o6u_d2ghy_211",
14
+ "previous-item-selected": "awsui_previous-item-selected_15o6u_d2ghy_232",
15
+ "parent": "awsui_parent_15o6u_d2ghy_236",
16
+ "interactiveGroups": "awsui_interactiveGroups_15o6u_d2ghy_240",
17
+ "child": "awsui_child_15o6u_d2ghy_256",
18
+ "sticky": "awsui_sticky_15o6u_d2ghy_262",
19
+ "with-scrollbar": "awsui_with-scrollbar_15o6u_d2ghy_274",
20
+ "after-header": "awsui_after-header_15o6u_d2ghy_280",
21
+ "measure-strut": "awsui_measure-strut_15o6u_d2ghy_315",
22
+ "measure-strut-first": "awsui_measure-strut-first_15o6u_d2ghy_324",
23
+ "screenreader-content": "awsui_screenreader-content_15o6u_d2ghy_328",
24
+ "option-content": "awsui_option-content_15o6u_d2ghy_334",
25
+ "select-all": "awsui_select-all_15o6u_d2ghy_338"
25
26
  };
26
27
 
@@ -142,7 +142,7 @@
142
142
  */
143
143
  /* Style used for links in slots/components that are text heavy, to help links stand out among
144
144
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
145
- .awsui_selectable-item_15o6u_lx7py_145:not(#\9) {
145
+ .awsui_selectable-item_15o6u_d2ghy_145:not(#\9) {
146
146
  font-size: var(--font-size-body-m-a7nh2n, 14px);
147
147
  line-height: var(--line-height-body-m-2mh3ke, 20px);
148
148
  color: var(--color-text-body-default-vvtq8u, #0f141a);
@@ -164,17 +164,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
164
164
  padding-block: calc(var(--space-xxs-hwfkai, 4px) + var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px));
165
165
  padding-inline: calc(var(--space-field-horizontal-0aq2ch, 12px) + var(--border-item-width-miijiw, 2px));
166
166
  }
167
- .awsui_selectable-item_15o6u_lx7py_145.awsui_pad-bottom_15o6u_lx7py_167:not(#\9) {
167
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_pad-bottom_15o6u_d2ghy_167:not(#\9) {
168
168
  padding-block-end: calc(calc(var(--space-xxs-hwfkai, 4px) + var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px)) + var(--space-xxxs-pajhad, 2px));
169
169
  border-block-end-color: transparent;
170
170
  }
171
- .awsui_selectable-item_15o6u_lx7py_145:not(#\9):not(:first-child), .awsui_selectable-item_15o6u_lx7py_145.awsui_virtual_15o6u_lx7py_171:not(#\9) {
171
+ .awsui_selectable-item_15o6u_d2ghy_145:not(#\9):not(:first-child), .awsui_selectable-item_15o6u_d2ghy_145.awsui_virtual_15o6u_d2ghy_171:not(#\9) {
172
172
  margin-block-start: calc(-1 * var(--border-item-width-miijiw, 2px));
173
173
  }
174
- .awsui_selectable-item_15o6u_lx7py_145.awsui_has-background_15o6u_lx7py_174:not(#\9) {
174
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_has-background_15o6u_d2ghy_174:not(#\9) {
175
175
  background-color: var(--color-background-dropdown-item-hover-yunepc, #f3f3f7);
176
176
  }
177
- .awsui_selectable-item_15o6u_lx7py_145.awsui_highlighted_15o6u_lx7py_177:not(#\9), .awsui_selectable-item_15o6u_lx7py_145.awsui_selected_15o6u_lx7py_177:not(#\9) {
177
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_highlighted_15o6u_d2ghy_177:not(#\9), .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177:not(#\9) {
178
178
  color: var(--color-text-dropdown-item-highlighted-yr1px8, #0f141a);
179
179
  border-width: var(--border-item-width-miijiw, 2px);
180
180
  border-start-start-radius: var(--border-radius-item-iwaia5, 8px);
@@ -184,135 +184,135 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
184
184
  padding-block: var(--space-xxs-hwfkai, 4px);
185
185
  padding-inline: var(--space-field-horizontal-0aq2ch, 12px);
186
186
  }
187
- .awsui_selectable-item_15o6u_lx7py_145.awsui_highlighted_15o6u_lx7py_177.awsui_pad-bottom_15o6u_lx7py_167:not(#\9), .awsui_selectable-item_15o6u_lx7py_145.awsui_selected_15o6u_lx7py_177.awsui_pad-bottom_15o6u_lx7py_167:not(#\9) {
187
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_highlighted_15o6u_d2ghy_177.awsui_pad-bottom_15o6u_d2ghy_167:not(#\9), .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177.awsui_pad-bottom_15o6u_d2ghy_167:not(#\9) {
188
188
  padding-block-end: calc(var(--space-xxs-hwfkai, 4px) + var(--space-xxxs-pajhad, 2px));
189
189
  }
190
- .awsui_selectable-item_15o6u_lx7py_145.awsui_highlighted_15o6u_lx7py_177:not(#\9) {
190
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_highlighted_15o6u_d2ghy_177:not(#\9) {
191
191
  z-index: 3;
192
192
  background-color: var(--color-background-dropdown-item-hover-yunepc, #f3f3f7);
193
193
  border-color: var(--color-border-dropdown-item-hover-aqfuxq, #8c8c94);
194
194
  }
195
- .awsui_selectable-item_15o6u_lx7py_145.awsui_highlighted_15o6u_lx7py_177.awsui_disabled_15o6u_lx7py_195:not(#\9) {
195
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_highlighted_15o6u_d2ghy_177.awsui_disabled_15o6u_d2ghy_195:not(#\9) {
196
196
  color: var(--color-text-dropdown-item-dimmed-tq8vh3, #b4b4bb);
197
197
  border-color: var(--color-border-dropdown-item-dimmed-hover-ga9sch, #8c8c94);
198
198
  background-color: var(--color-background-dropdown-item-dimmed-dhho03, transparent);
199
199
  }
200
- .awsui_selectable-item_15o6u_lx7py_145.awsui_highlighted_15o6u_lx7py_177.awsui_is-keyboard_15o6u_lx7py_200:not(#\9) {
200
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_highlighted_15o6u_d2ghy_177.awsui_is-keyboard_15o6u_d2ghy_200:not(#\9) {
201
201
  border-color: var(--color-border-dropdown-item-focused-zacqlp, #424650);
202
202
  }
203
- .awsui_selectable-item_15o6u_lx7py_145.awsui_highlighted_15o6u_lx7py_177.awsui_is-keyboard_15o6u_lx7py_200:not(#\9):not(.awsui_visual-refresh_15o6u_lx7py_203) {
203
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_highlighted_15o6u_d2ghy_177.awsui_is-keyboard_15o6u_d2ghy_200:not(#\9):not(.awsui_visual-refresh_15o6u_d2ghy_203) {
204
204
  box-shadow: inset 0 0 0 var(--border-control-focus-ring-shadow-spread-9mjajk, 1px) var(--color-border-item-focused-uk47pl, #006ce0);
205
205
  }
206
- .awsui_selectable-item_15o6u_lx7py_145.awsui_selected_15o6u_lx7py_177:not(#\9) {
206
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177:not(#\9) {
207
207
  z-index: 2;
208
208
  background-color: var(--color-background-dropdown-item-selected-f3v6te, #f0fbff);
209
209
  border-color: var(--color-border-dropdown-item-selected-dl2ezh, #006ce0);
210
210
  }
211
- .awsui_selectable-item_15o6u_lx7py_145.awsui_selected_15o6u_lx7py_177.awsui_next-item-selected_15o6u_lx7py_211:not(#\9) {
211
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177.awsui_next-item-selected_15o6u_d2ghy_211:not(#\9) {
212
212
  border-end-start-radius: 0;
213
213
  border-end-end-radius: 0;
214
214
  }
215
- .awsui_selectable-item_15o6u_lx7py_145.awsui_selected_15o6u_lx7py_177.awsui_highlighted_15o6u_lx7py_177:not(#\9) {
215
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177.awsui_highlighted_15o6u_d2ghy_177:not(#\9) {
216
216
  border-color: var(--color-border-dropdown-item-selected-dl2ezh, #006ce0);
217
217
  z-index: 3;
218
218
  outline: var(--border-item-width-miijiw, 2px) solid var(--color-border-dropdown-item-hover-aqfuxq, #8c8c94);
219
219
  outline-offset: calc(-2 * var(--border-item-width-miijiw, 2px));
220
220
  }
221
- .awsui_selectable-item_15o6u_lx7py_145.awsui_selected_15o6u_lx7py_177.awsui_highlighted_15o6u_lx7py_177.awsui_is-keyboard_15o6u_lx7py_200:not(#\9) {
221
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177.awsui_highlighted_15o6u_d2ghy_177.awsui_is-keyboard_15o6u_d2ghy_200:not(#\9) {
222
222
  border-color: var(--color-border-dropdown-item-selected-dl2ezh, #006ce0);
223
223
  outline-color: var(--color-border-dropdown-item-focused-zacqlp, #424650);
224
224
  }
225
- .awsui_selectable-item_15o6u_lx7py_145.awsui_selected_15o6u_lx7py_177.awsui_highlighted_15o6u_lx7py_177:not(#\9):not(.awsui_visual-refresh_15o6u_lx7py_203) {
225
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177.awsui_highlighted_15o6u_d2ghy_177:not(#\9):not(.awsui_visual-refresh_15o6u_d2ghy_203) {
226
226
  border-color: var(--color-border-dropdown-item-hover-aqfuxq, #8c8c94);
227
227
  outline: none;
228
228
  }
229
- .awsui_selectable-item_15o6u_lx7py_145.awsui_selected_15o6u_lx7py_177.awsui_highlighted_15o6u_lx7py_177:not(#\9):not(.awsui_visual-refresh_15o6u_lx7py_203).awsui_is-keyboard_15o6u_lx7py_200 {
229
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177.awsui_highlighted_15o6u_d2ghy_177:not(#\9):not(.awsui_visual-refresh_15o6u_d2ghy_203).awsui_is-keyboard_15o6u_d2ghy_200 {
230
230
  border-color: var(--color-border-dropdown-item-focused-zacqlp, #424650);
231
231
  }
232
- .awsui_selectable-item_15o6u_lx7py_145.awsui_selected_15o6u_lx7py_177 + .awsui_selectable-item_15o6u_lx7py_145.awsui_selected_15o6u_lx7py_177:not(#\9) {
232
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177 + .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177:not(#\9), .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177.awsui_previous-item-selected_15o6u_d2ghy_232:not(#\9) {
233
233
  border-start-start-radius: 0;
234
234
  border-start-end-radius: 0;
235
235
  }
236
- .awsui_selectable-item_15o6u_lx7py_145.awsui_parent_15o6u_lx7py_236:not(#\9) {
236
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_parent_15o6u_d2ghy_236:not(#\9) {
237
237
  font-weight: bold;
238
238
  color: var(--color-text-dropdown-group-label-2tmyik, #424650);
239
239
  }
240
- .awsui_selectable-item_15o6u_lx7py_145.awsui_parent_15o6u_lx7py_236:not(#\9):not(.awsui_interactiveGroups_15o6u_lx7py_240) {
240
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_parent_15o6u_d2ghy_236:not(#\9):not(.awsui_interactiveGroups_15o6u_d2ghy_240) {
241
241
  border-block-start-color: var(--color-border-dropdown-group-ylcnh8, #c6c6cd);
242
242
  padding-block: var(--space-xs-ymlm0b, 8px);
243
243
  padding-inline: var(--space-xs-ymlm0b, 8px);
244
244
  }
245
- .awsui_selectable-item_15o6u_lx7py_145.awsui_parent_15o6u_lx7py_236.awsui_interactiveGroups_15o6u_lx7py_240:not(#\9) {
245
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_parent_15o6u_d2ghy_236.awsui_interactiveGroups_15o6u_d2ghy_240:not(#\9) {
246
246
  padding-block: calc(var(--space-xs-ymlm0b, 8px) + var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px));
247
247
  padding-inline: calc(var(--space-field-horizontal-0aq2ch, 12px) + var(--border-item-width-miijiw, 2px));
248
248
  }
249
- .awsui_selectable-item_15o6u_lx7py_145.awsui_parent_15o6u_lx7py_236.awsui_interactiveGroups_15o6u_lx7py_240.awsui_highlighted_15o6u_lx7py_177:not(#\9) {
249
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_parent_15o6u_d2ghy_236.awsui_interactiveGroups_15o6u_d2ghy_240.awsui_highlighted_15o6u_d2ghy_177:not(#\9) {
250
250
  color: var(--color-text-dropdown-item-highlighted-yr1px8, #0f141a);
251
251
  }
252
- .awsui_selectable-item_15o6u_lx7py_145.awsui_parent_15o6u_lx7py_236.awsui_interactiveGroups_15o6u_lx7py_240.awsui_highlighted_15o6u_lx7py_177:not(#\9), .awsui_selectable-item_15o6u_lx7py_145.awsui_parent_15o6u_lx7py_236.awsui_interactiveGroups_15o6u_lx7py_240.awsui_selected_15o6u_lx7py_177:not(#\9) {
252
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_parent_15o6u_d2ghy_236.awsui_interactiveGroups_15o6u_d2ghy_240.awsui_highlighted_15o6u_d2ghy_177:not(#\9), .awsui_selectable-item_15o6u_d2ghy_145.awsui_parent_15o6u_d2ghy_236.awsui_interactiveGroups_15o6u_d2ghy_240.awsui_selected_15o6u_d2ghy_177:not(#\9) {
253
253
  padding-block: var(--space-xs-ymlm0b, 8px);
254
254
  padding-inline: var(--space-field-horizontal-0aq2ch, 12px);
255
255
  }
256
- .awsui_selectable-item_15o6u_lx7py_145.awsui_child_15o6u_lx7py_256:not(#\9) {
256
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_child_15o6u_d2ghy_256:not(#\9) {
257
257
  padding-inline-start: calc(var(--space-xxl-32srm4, 32px) + var(--border-item-width-miijiw, 2px));
258
258
  }
259
- .awsui_selectable-item_15o6u_lx7py_145.awsui_child_15o6u_lx7py_256.awsui_highlighted_15o6u_lx7py_177:not(#\9), .awsui_selectable-item_15o6u_lx7py_145.awsui_child_15o6u_lx7py_256.awsui_selected_15o6u_lx7py_177:not(#\9) {
259
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_child_15o6u_d2ghy_256.awsui_highlighted_15o6u_d2ghy_177:not(#\9), .awsui_selectable-item_15o6u_d2ghy_145.awsui_child_15o6u_d2ghy_256.awsui_selected_15o6u_d2ghy_177:not(#\9) {
260
260
  padding-inline-start: var(--space-xxl-32srm4, 32px);
261
261
  }
262
- .awsui_selectable-item_15o6u_lx7py_145.awsui_sticky_15o6u_lx7py_262:not(#\9) {
262
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(#\9) {
263
263
  position: sticky;
264
264
  inset-block-start: 0;
265
265
  margin-block-end: calc(var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px));
266
266
  z-index: 4;
267
267
  }
268
- .awsui_selectable-item_15o6u_lx7py_145.awsui_sticky_15o6u_lx7py_262:not(#\9):not(.awsui_highlighted_15o6u_lx7py_177):not(.awsui_selected_15o6u_lx7py_177) {
268
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(#\9):not(.awsui_highlighted_15o6u_d2ghy_177):not(.awsui_selected_15o6u_d2ghy_177) {
269
269
  border-inline-start-width: var(--border-item-width-miijiw, 2px);
270
270
  border-inline-start-color: var(--color-border-dropdown-container-cmthq7, #b4b4bb);
271
271
  border-inline-end-color: var(--color-border-dropdown-container-cmthq7, #b4b4bb);
272
272
  padding-inline: var(--space-field-horizontal-0aq2ch, 12px);
273
273
  }
274
- .awsui_selectable-item_15o6u_lx7py_145.awsui_sticky_15o6u_lx7py_262:not(#\9):not(.awsui_highlighted_15o6u_lx7py_177):not(.awsui_selected_15o6u_lx7py_177):not(.awsui_with-scrollbar_15o6u_lx7py_274) {
274
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(#\9):not(.awsui_highlighted_15o6u_d2ghy_177):not(.awsui_selected_15o6u_d2ghy_177):not(.awsui_with-scrollbar_15o6u_d2ghy_274) {
275
275
  border-inline-end-width: var(--border-item-width-miijiw, 2px);
276
276
  }
277
- .awsui_selectable-item_15o6u_lx7py_145.awsui_sticky_15o6u_lx7py_262:not(#\9):not(.awsui_highlighted_15o6u_lx7py_177):not(.awsui_selected_15o6u_lx7py_177).awsui_with-scrollbar_15o6u_lx7py_274 {
277
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(#\9):not(.awsui_highlighted_15o6u_d2ghy_177):not(.awsui_selected_15o6u_d2ghy_177).awsui_with-scrollbar_15o6u_d2ghy_274 {
278
278
  border-inline-end-width: 0;
279
279
  }
280
- .awsui_selectable-item_15o6u_lx7py_145.awsui_sticky_15o6u_lx7py_262:not(#\9):not(.awsui_highlighted_15o6u_lx7py_177):not(.awsui_selected_15o6u_lx7py_177):not(.awsui_after-header_15o6u_lx7py_280) {
280
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(#\9):not(.awsui_highlighted_15o6u_d2ghy_177):not(.awsui_selected_15o6u_d2ghy_177):not(.awsui_after-header_15o6u_d2ghy_280) {
281
281
  border-start-start-radius: var(--border-radius-item-iwaia5, 8px);
282
282
  }
283
- .awsui_selectable-item_15o6u_lx7py_145.awsui_sticky_15o6u_lx7py_262:not(#\9):not(.awsui_highlighted_15o6u_lx7py_177):not(.awsui_selected_15o6u_lx7py_177):not(.awsui_after-header_15o6u_lx7py_280):not(.awsui_selectable-item_15o6u_lx7py_145.awsui_sticky_15o6u_lx7py_262:not(.awsui_highlighted_15o6u_lx7py_177):not(.awsui_selected_15o6u_lx7py_177):not(.awsui_after-header_15o6u_lx7py_280).awsui_with-scrollbar_15o6u_lx7py_274) {
283
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(#\9):not(.awsui_highlighted_15o6u_d2ghy_177):not(.awsui_selected_15o6u_d2ghy_177):not(.awsui_after-header_15o6u_d2ghy_280):not(.awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(.awsui_highlighted_15o6u_d2ghy_177):not(.awsui_selected_15o6u_d2ghy_177):not(.awsui_after-header_15o6u_d2ghy_280).awsui_with-scrollbar_15o6u_d2ghy_274) {
284
284
  border-start-end-radius: var(--border-radius-item-iwaia5, 8px);
285
285
  }
286
- .awsui_selectable-item_15o6u_lx7py_145.awsui_sticky_15o6u_lx7py_262:not(#\9):not(.awsui_highlighted_15o6u_lx7py_177):not(.awsui_selected_15o6u_lx7py_177).awsui_after-header_15o6u_lx7py_280 {
286
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(#\9):not(.awsui_highlighted_15o6u_d2ghy_177):not(.awsui_selected_15o6u_d2ghy_177).awsui_after-header_15o6u_d2ghy_280 {
287
287
  border-block-start-color: var(--color-background-dropdown-item-default-qmc033, #ffffff);
288
288
  }
289
- .awsui_selectable-item_15o6u_lx7py_145.awsui_sticky_15o6u_lx7py_262.awsui_disabled_15o6u_lx7py_195.awsui_highlighted_15o6u_lx7py_177:not(#\9), .awsui_selectable-item_15o6u_lx7py_145.awsui_sticky_15o6u_lx7py_262.awsui_disabled_15o6u_lx7py_195.awsui_selected_15o6u_lx7py_177:not(#\9) {
289
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262.awsui_disabled_15o6u_d2ghy_195.awsui_highlighted_15o6u_d2ghy_177:not(#\9), .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262.awsui_disabled_15o6u_d2ghy_195.awsui_selected_15o6u_d2ghy_177:not(#\9) {
290
290
  border-block-end-color: transparent;
291
291
  border-block-start-color: transparent;
292
292
  border-inline-start-color: transparent;
293
293
  border-inline-end-color: transparent;
294
294
  }
295
- .awsui_selectable-item_15o6u_lx7py_145.awsui_disabled_15o6u_lx7py_195:not(#\9) {
295
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_disabled_15o6u_d2ghy_195:not(#\9) {
296
296
  color: var(--color-text-dropdown-item-disabled-8m65hf, #b4b4bb);
297
297
  }
298
- .awsui_selectable-item_15o6u_lx7py_145:not(#\9):not(.awsui_disabled_15o6u_lx7py_195):not(.awsui_parent_15o6u_lx7py_236) {
298
+ .awsui_selectable-item_15o6u_d2ghy_145:not(#\9):not(.awsui_disabled_15o6u_d2ghy_195):not(.awsui_parent_15o6u_d2ghy_236) {
299
299
  cursor: pointer;
300
300
  }
301
- .awsui_selectable-item_15o6u_lx7py_145.awsui_interactiveGroups_15o6u_lx7py_240:not(#\9):not(.awsui_disabled_15o6u_lx7py_195) {
301
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_interactiveGroups_15o6u_d2ghy_240:not(#\9):not(.awsui_disabled_15o6u_d2ghy_195) {
302
302
  cursor: pointer;
303
303
  }
304
- .awsui_selectable-item_15o6u_lx7py_145.awsui_virtual_15o6u_lx7py_171:not(#\9) {
304
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_virtual_15o6u_d2ghy_171:not(#\9) {
305
305
  position: absolute;
306
306
  inset-block-start: var(--border-dropdown-virtual-offset-width-3wp954, 2px);
307
307
  inset-inline-start: 0;
308
308
  inline-size: 100%;
309
309
  box-sizing: border-box;
310
310
  }
311
- .awsui_selectable-item_15o6u_lx7py_145.awsui_virtual_15o6u_lx7py_171:not(#\9):first-of-type:not(.awsui_selected_15o6u_lx7py_177, .awsui_highlighted_15o6u_lx7py_177) {
311
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_virtual_15o6u_d2ghy_171:not(#\9):first-of-type:not(.awsui_selected_15o6u_d2ghy_177, .awsui_highlighted_15o6u_d2ghy_177) {
312
312
  border-block-start-color: var(--color-border-dropdown-item-top-gp2d1p, transparent);
313
313
  }
314
314
 
315
- .awsui_measure-strut_15o6u_lx7py_315:not(#\9) {
315
+ .awsui_measure-strut_15o6u_d2ghy_315:not(#\9) {
316
316
  position: absolute;
317
317
  pointer-events: none;
318
318
  block-size: 100%;
@@ -321,20 +321,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
321
321
  inset-inline-start: 0;
322
322
  padding-block-start: var(--border-divider-list-width-tdfx1x, 1px);
323
323
  }
324
- .awsui_measure-strut-first_15o6u_lx7py_324:not(#\9) {
324
+ .awsui_measure-strut-first_15o6u_d2ghy_324:not(#\9) {
325
325
  padding-block-end: var(--border-divider-list-width-tdfx1x, 1px);
326
326
  }
327
327
 
328
- .awsui_screenreader-content_15o6u_lx7py_328:not(#\9) {
328
+ .awsui_screenreader-content_15o6u_d2ghy_328:not(#\9) {
329
329
  position: absolute !important;
330
330
  inset-block-start: -9999px !important;
331
331
  inset-inline-start: -9999px !important;
332
332
  }
333
333
 
334
- .awsui_option-content_15o6u_lx7py_334:not(#\9) {
334
+ .awsui_option-content_15o6u_d2ghy_334:not(#\9) {
335
335
  /* used in test-utils */
336
336
  }
337
337
 
338
- .awsui_select-all_15o6u_lx7py_338:not(#\9) {
338
+ .awsui_select-all_15o6u_d2ghy_338:not(#\9) {
339
339
  /* used in test-utils */
340
340
  }
@@ -2,26 +2,27 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "selectable-item": "awsui_selectable-item_15o6u_lx7py_145",
6
- "pad-bottom": "awsui_pad-bottom_15o6u_lx7py_167",
7
- "virtual": "awsui_virtual_15o6u_lx7py_171",
8
- "has-background": "awsui_has-background_15o6u_lx7py_174",
9
- "highlighted": "awsui_highlighted_15o6u_lx7py_177",
10
- "selected": "awsui_selected_15o6u_lx7py_177",
11
- "disabled": "awsui_disabled_15o6u_lx7py_195",
12
- "is-keyboard": "awsui_is-keyboard_15o6u_lx7py_200",
13
- "visual-refresh": "awsui_visual-refresh_15o6u_lx7py_203",
14
- "next-item-selected": "awsui_next-item-selected_15o6u_lx7py_211",
15
- "parent": "awsui_parent_15o6u_lx7py_236",
16
- "interactiveGroups": "awsui_interactiveGroups_15o6u_lx7py_240",
17
- "child": "awsui_child_15o6u_lx7py_256",
18
- "sticky": "awsui_sticky_15o6u_lx7py_262",
19
- "with-scrollbar": "awsui_with-scrollbar_15o6u_lx7py_274",
20
- "after-header": "awsui_after-header_15o6u_lx7py_280",
21
- "measure-strut": "awsui_measure-strut_15o6u_lx7py_315",
22
- "measure-strut-first": "awsui_measure-strut-first_15o6u_lx7py_324",
23
- "screenreader-content": "awsui_screenreader-content_15o6u_lx7py_328",
24
- "option-content": "awsui_option-content_15o6u_lx7py_334",
25
- "select-all": "awsui_select-all_15o6u_lx7py_338"
5
+ "selectable-item": "awsui_selectable-item_15o6u_d2ghy_145",
6
+ "pad-bottom": "awsui_pad-bottom_15o6u_d2ghy_167",
7
+ "virtual": "awsui_virtual_15o6u_d2ghy_171",
8
+ "has-background": "awsui_has-background_15o6u_d2ghy_174",
9
+ "highlighted": "awsui_highlighted_15o6u_d2ghy_177",
10
+ "selected": "awsui_selected_15o6u_d2ghy_177",
11
+ "disabled": "awsui_disabled_15o6u_d2ghy_195",
12
+ "is-keyboard": "awsui_is-keyboard_15o6u_d2ghy_200",
13
+ "visual-refresh": "awsui_visual-refresh_15o6u_d2ghy_203",
14
+ "next-item-selected": "awsui_next-item-selected_15o6u_d2ghy_211",
15
+ "previous-item-selected": "awsui_previous-item-selected_15o6u_d2ghy_232",
16
+ "parent": "awsui_parent_15o6u_d2ghy_236",
17
+ "interactiveGroups": "awsui_interactiveGroups_15o6u_d2ghy_240",
18
+ "child": "awsui_child_15o6u_d2ghy_256",
19
+ "sticky": "awsui_sticky_15o6u_d2ghy_262",
20
+ "with-scrollbar": "awsui_with-scrollbar_15o6u_d2ghy_274",
21
+ "after-header": "awsui_after-header_15o6u_d2ghy_280",
22
+ "measure-strut": "awsui_measure-strut_15o6u_d2ghy_315",
23
+ "measure-strut-first": "awsui_measure-strut-first_15o6u_d2ghy_324",
24
+ "screenreader-content": "awsui_screenreader-content_15o6u_d2ghy_328",
25
+ "option-content": "awsui_option-content_15o6u_d2ghy_334",
26
+ "select-all": "awsui_select-all_15o6u_d2ghy_338"
26
27
  };
27
28
 
@@ -1,6 +1,6 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (1f4503d4)";
3
- export var GIT_SHA = "1f4503d4";
2
+ export var PACKAGE_VERSION = "3.0.0 (9f816a3e)";
3
+ export var GIT_SHA = "9f816a3e";
4
4
  export var THEME = "open-source-visual-refresh";
5
5
  export var SYSTEM = "console";
6
6
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (1f4503d4)",
4
- "GIT_SHA": "1f4503d4",
3
+ "PACKAGE_VERSION": "3.0.0 (9f816a3e)",
4
+ "GIT_SHA": "9f816a3e",
5
5
  "THEME": "open-source-visual-refresh",
6
6
  "SYSTEM": "console",
7
7
  "ALWAYS_VISUAL_REFRESH": true
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "1f4503d4084c01fdf47f46d1c15e0edc4616eb8e"
2
+ "commit": "9f816a3e258bbbc00bc023c3cb0276552441c427"
3
3
  }
@@ -5,6 +5,7 @@ type NativeAttributesProps<AT extends React.HTMLAttributes<HTMLElement>> = {
5
5
  children?: ReactNode;
6
6
  skipWarnings?: boolean;
7
7
  nativeAttributes: NativeAttributes<AT>;
8
+ componentName: string;
8
9
  } & NativeAttributes<AT>;
9
10
  interface ForwardRefType {
10
11
  <ET extends HTMLElement, AT extends React.HTMLAttributes<ET>>(props: NativeAttributesProps<AT> & {
@@ -1 +1 @@
1
- {"version":3,"file":"with-native-attributes.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/with-native-attributes.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKzC,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,KAAK,CAAC,cAA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AAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC,CAAC;IACvC,aAAa,EAAE,MAAM,CAAC;CACvB,GAAG,gBAAgB,CAAC,EAAE,CAAC,CAAC;AACzB,UAAU,cAAc;IACtB,CAAC,EAAE,SAAS,WAAW,EAAE,EAAE,SAAS,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,EAC1D,KAAK,EAAE,qBAAqB,CAAC,EAAE,CAAC,GAAG;QAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;KAAE,GACzD,GAAG,CAAC,OAAO,CAAC;CAChB;;AAED,wBAyCoB"}
@@ -5,7 +5,7 @@ import React from 'react';
5
5
  import clsx from 'clsx';
6
6
  import { warnOnce } from '@cloudscape-design/component-toolkit/internal';
7
7
  export default React.forwardRef((_a, ref) => {
8
- var { tag, nativeAttributes, children, skipWarnings } = _a, rest = __rest(_a, ["tag", "nativeAttributes", "children", "skipWarnings"]);
8
+ var { tag, nativeAttributes, children, skipWarnings, componentName } = _a, rest = __rest(_a, ["tag", "nativeAttributes", "children", "skipWarnings", "componentName"]);
9
9
  const Tag = tag;
10
10
  const processedAttributes = Object.entries(nativeAttributes || {}).reduce((acc, [key, value]) => {
11
11
  // concatenate className
@@ -28,7 +28,7 @@ export default React.forwardRef((_a, ref) => {
28
28
  }
29
29
  else {
30
30
  if (key in rest && !skipWarnings) {
31
- warnOnce('Button', `Overriding native attribute [${key}] which has a Cloudscape-provided value`);
31
+ warnOnce(componentName, `Overriding native attribute [${key}] which has a Cloudscape-provided value`);
32
32
  }
33
33
  acc[key] = value;
34
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"with-native-attributes.js","sourceRoot":"","sources":["../../../../src/internal/utils/with-native-attributes.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,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C,GAAG,CAAC,GAAG,KAAK,CAAC;SAClB;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAS,CAAC,CAAC;IAEd,OAAO,CACL,oBAAC,GAAG,oBAAK,IAAI,EAAM,mBAAmB,IAAE,GAAG,EAAE,GAAG,KAC7C,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CACgB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ReactNode } from 'react';\nimport clsx from 'clsx';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nexport type NativeAttributes<T extends React.HTMLAttributes<HTMLElement>> =\n | (Omit<T, 'children'> & Record<`data-${string}`, string>)\n | undefined;\n\ntype NativeAttributesProps<AT extends React.HTMLAttributes<HTMLElement>> = {\n tag: string;\n children?: ReactNode;\n skipWarnings?: boolean;\n nativeAttributes: NativeAttributes<AT>;\n} & NativeAttributes<AT>;\ninterface ForwardRefType {\n <ET extends HTMLElement, AT extends React.HTMLAttributes<ET>>(\n props: NativeAttributesProps<AT> & { ref?: React.Ref<ET> }\n ): JSX.Element;\n}\n\nexport default React.forwardRef(\n <ET extends HTMLElement, AT extends React.HTMLAttributes<ET>>(\n { tag, nativeAttributes, children, skipWarnings, ...rest }: NativeAttributesProps<AT>,\n ref: React.Ref<ET>\n ) => {\n const Tag = tag;\n\n const processedAttributes = Object.entries(nativeAttributes || {}).reduce((acc, [key, value]) => {\n // concatenate className\n if (key === 'className') {\n acc[key] = clsx(rest.className, value);\n\n // merge style\n } else if (key === 'style') {\n acc[key] = { ...rest.style, ...value };\n\n // chain event handlers\n } else if (key.match(/^on[A-Z]/) && typeof value === 'function' && key in rest) {\n acc[key] = (event: Event) => {\n value(event);\n if (!event.defaultPrevented) {\n (rest as any)[key](event);\n }\n };\n\n // override other attributes, warning if it already exists\n } else {\n if (key in rest && !skipWarnings) {\n warnOnce('Button', `Overriding native attribute [${key}] which has a Cloudscape-provided value`);\n }\n acc[key] = value;\n }\n return acc;\n }, {} as any);\n\n return (\n <Tag {...rest} {...processedAttributes} ref={ref}>\n {children}\n </Tag>\n );\n }\n) as ForwardRefType;\n"]}
1
+ {"version":3,"file":"with-native-attributes.js","sourceRoot":"","sources":["../../../../src/internal/utils/with-native-attributes.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAmBzE,eAAe,KAAK,CAAC,UAAU,CAC7B,CACE,EAAoG,EACpG,GAAkB,EAClB,EAAE;QAFF,EAAE,GAAG,EAAE,gBAAgB,EAAE,QAAQ,EAAE,YAAY,EAAE,aAAa,OAAsC,EAAjC,IAAI,cAAvE,wEAAyE,CAAF;IAGvE,MAAM,GAAG,GAAG,GAAG,CAAC;IAEhB,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAC9F,wBAAwB;QACxB,IAAI,GAAG,KAAK,WAAW,EAAE;YACvB,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;YAEvC,cAAc;SACf;aAAM,IAAI,GAAG,KAAK,OAAO,EAAE;YAC1B,GAAG,CAAC,GAAG,CAAC,mCAAQ,IAAI,CAAC,KAAK,GAAK,KAAK,CAAE,CAAC;YAEvC,uBAAuB;SACxB;aAAM,IAAI,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,OAAO,KAAK,KAAK,UAAU,IAAI,GAAG,IAAI,IAAI,EAAE;YAC9E,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,KAAY,EAAE,EAAE;gBAC1B,KAAK,CAAC,KAAK,CAAC,CAAC;gBACb,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE;oBAC1B,IAAY,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;iBAC3B;YACH,CAAC,CAAC;YAEF,0DAA0D;SAC3D;aAAM;YACL,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC,YAAY,EAAE;gBAChC,QAAQ,CAAC,aAAa,EAAE,gCAAgC,GAAG,yCAAyC,CAAC,CAAC;aACvG;YACD,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;SAClB;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAS,CAAC,CAAC;IAEd,OAAO,CACL,oBAAC,GAAG,oBAAK,IAAI,EAAM,mBAAmB,IAAE,GAAG,EAAE,GAAG,KAC7C,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CACgB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ReactNode } from 'react';\nimport clsx from 'clsx';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nexport type NativeAttributes<T extends React.HTMLAttributes<HTMLElement>> =\n | (Omit<T, 'children'> & Record<`data-${string}`, string>)\n | undefined;\n\ntype NativeAttributesProps<AT extends React.HTMLAttributes<HTMLElement>> = {\n tag: string;\n children?: ReactNode;\n skipWarnings?: boolean;\n nativeAttributes: NativeAttributes<AT>;\n componentName: string;\n} & NativeAttributes<AT>;\ninterface ForwardRefType {\n <ET extends HTMLElement, AT extends React.HTMLAttributes<ET>>(\n props: NativeAttributesProps<AT> & { ref?: React.Ref<ET> }\n ): JSX.Element;\n}\n\nexport default React.forwardRef(\n <ET extends HTMLElement, AT extends React.HTMLAttributes<ET>>(\n { tag, nativeAttributes, children, skipWarnings, componentName, ...rest }: NativeAttributesProps<AT>,\n ref: React.Ref<ET>\n ) => {\n const Tag = tag;\n\n const processedAttributes = Object.entries(nativeAttributes || {}).reduce((acc, [key, value]) => {\n // concatenate className\n if (key === 'className') {\n acc[key] = clsx(rest.className, value);\n\n // merge style\n } else if (key === 'style') {\n acc[key] = { ...rest.style, ...value };\n\n // chain event handlers\n } else if (key.match(/^on[A-Z]/) && typeof value === 'function' && key in rest) {\n acc[key] = (event: Event) => {\n value(event);\n if (!event.defaultPrevented) {\n (rest as any)[key](event);\n }\n };\n\n // override other attributes, warning if it already exists\n } else {\n if (key in rest && !skipWarnings) {\n warnOnce(componentName, `Overriding native attribute [${key}] which has a Cloudscape-provided value`);\n }\n acc[key] = value;\n }\n return acc;\n }, {} as any);\n\n return (\n <Tag {...rest} {...processedAttributes} ref={ref}>\n {children}\n </Tag>\n );\n }\n) as ForwardRefType;\n"]}
@@ -74,10 +74,11 @@ export declare function useMultiselect({
74
74
  onMouseUp?: ((itemIndex: number) => void) | undefined;
75
75
  nativeAttributes?: Record<string, any> | undefined;
76
76
  ariaLabel?: string | undefined;
77
+ tagOverride?: "div" | "ul" | undefined;
77
78
  statusType: DropdownStatusProps.StatusType;
78
79
  decreaseBlockMargin?: boolean | undefined;
79
80
  stickyItemBlockSize?: number | null | undefined;
80
- ref: React.RefObject<HTMLUListElement>;
81
+ ref: React.RefObject<HTMLDivElement>;
81
82
  };
82
83
  getOptionProps: (option: DropdownOption, index: number) => any;
83
84
  getTokenProps: () => {
@@ -1 +1 @@
1
- {"version":3,"file":"use-multiselect.d.ts","sourceRoot":"","sources":["../../../src/multiselect/use-multiselect.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAKvE,OAAO,EAAE,mBAAmB,EAAqB,MAAM,wCAAwC,CAAC;AAChG,OAAO,EAAE,cAAc,EAAiC,MAAM,0CAA0C,CAAC;AAIzG,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAO7D,OAAO,EAAE,eAAe,EAAE,MAAM,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,SAAS,EACT,OAAO,EACP,yBAAyB,EACzB,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,MAAM,EACN,OAAO,EACP,WAAW,EACX,QAAQ,EACR,SAAS,EACT,WAAW,EACX,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,eAAe,EACf,WAAW,EACX,GAAG,SAAS,EACb,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAuLc,gBAAgB;;;;;;;;;;EA0CrD"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { NavigableGroupProps } from './interfaces';
3
+ export { NavigableGroupProps };
4
+ /**
5
+ * @awsuiSystem core
6
+ */
7
+ declare const NavigableGroup: React.ForwardRefExoticComponent<NavigableGroupProps & React.RefAttributes<NavigableGroupProps.Ref>>;
8
+ export default NavigableGroup;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/navigable-group/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B;;GAEG;AACH,QAAA,MAAM,cAAc,qGAMlB,CAAC;AAGH,eAAe,cAAc,CAAC"}
@@ -0,0 +1,23 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ 'use client';
4
+ import { __rest } from "tslib";
5
+ import React from 'react';
6
+ import { getBaseProps } from '../internal/base-component';
7
+ import useBaseComponent from '../internal/hooks/use-base-component';
8
+ import { applyDisplayName } from '../internal/utils/apply-display-name';
9
+ import { getExternalProps } from '../internal/utils/external-props';
10
+ import InternalNavigableGroup from './internal';
11
+ /**
12
+ * @awsuiSystem core
13
+ */
14
+ const NavigableGroup = React.forwardRef((_a, ref) => {
15
+ var rest = __rest(_a, []);
16
+ const baseProps = getBaseProps(rest);
17
+ const baseComponentProps = useBaseComponent('NavigableGroup');
18
+ const externalProps = getExternalProps(rest);
19
+ return React.createElement(InternalNavigableGroup, Object.assign({}, baseProps, baseComponentProps, externalProps, { ref: ref }));
20
+ });
21
+ applyDisplayName(NavigableGroup, 'NavigableGroup');
22
+ export default NavigableGroup;
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/navigable-group/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,sBAAsB,MAAM,YAAY,CAAC;AAIhD;;GAEG;AACH,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,EAAgC,EAAE,GAAuC,EAAE,EAAE;QAAxE,IAAI,cAAT,EAAW,CAAF;IAChD,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAC9D,MAAM,aAAa,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAE7C,OAAO,oBAAC,sBAAsB,oBAAK,SAAS,EAAM,kBAAkB,EAAM,aAAa,IAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AACxG,CAAC,CAAC,CAAC;AAEH,gBAAgB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AACnD,eAAe,cAAc,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React from 'react';\n\nimport { getBaseProps } from '../internal/base-component';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { getExternalProps } from '../internal/utils/external-props';\nimport { NavigableGroupProps } from './interfaces';\nimport InternalNavigableGroup from './internal';\n\nexport { NavigableGroupProps };\n\n/**\n * @awsuiSystem core\n */\nconst NavigableGroup = React.forwardRef(({ ...rest }: NavigableGroupProps, ref: React.Ref<NavigableGroupProps.Ref>) => {\n const baseProps = getBaseProps(rest);\n const baseComponentProps = useBaseComponent('NavigableGroup');\n const externalProps = getExternalProps(rest);\n\n return <InternalNavigableGroup {...baseProps} {...baseComponentProps} {...externalProps} ref={ref} />;\n});\n\napplyDisplayName(NavigableGroup, 'NavigableGroup');\nexport default NavigableGroup;\n"]}
@@ -0,0 +1,37 @@
1
+ /// <reference types="react" />
2
+ import { BaseComponentProps } from '../internal/base-component';
3
+ import { InternalBaseComponentProps } from '../internal/hooks/use-base-component';
4
+ export interface NavigableGroupProps extends BaseComponentProps {
5
+ /**
6
+ * The children that will be rendered inside the navigation group.
7
+ *
8
+ * The following Cloudscape components are supported, but do not
9
+ * need to be direct children of the group:
10
+ * - Button
11
+ * - Button dropdown
12
+ * - Toggle button
13
+ * - Link
14
+ */
15
+ children: React.ReactNode;
16
+ /**
17
+ * A method that should return a unique identifier for a given element.
18
+ * The element passed will be the first focusable descendent of a child component.
19
+ */
20
+ getItemKey: (element: HTMLElement) => string;
21
+ /**
22
+ * Determines which arrow keys move focus sequentially within the group:
23
+ * - `horizontal` - left and right arrow keys
24
+ * - `vertical` - up and down arrow keys
25
+ * - `both` - all arrow keys
26
+ */
27
+ navigationDirection?: 'horizontal' | 'vertical' | 'both';
28
+ }
29
+ export interface InternalNavigableGroupProps extends NavigableGroupProps, InternalBaseComponentProps {}
30
+ export declare namespace NavigableGroupProps {
31
+ interface Ref {
32
+ /**
33
+ * Focuses the first focusable element (or previously focused element) in the navigation group.
34
+ */
35
+ focus(): void;
36
+ }
37
+ }