@cloudscape-design/components-themeable 3.0.1382 → 3.0.1384
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/container/styles.scss +5 -4
- package/lib/internal/scss/input/styles.scss +4 -0
- package/lib/internal/scss/internal/components/button-trigger/styles.scss +4 -0
- package/lib/internal/scss/internal/components/control-group/styles.scss +53 -0
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +176 -175
- package/lib/internal/scss/internal/styles/forms/mixins.scss +58 -17
- package/lib/internal/scss/modal/styles.scss +6 -0
- package/lib/internal/scss/prompt-input/styles.scss +4 -0
- package/lib/internal/scss/segmented-control/segment.scss +5 -0
- package/lib/internal/scss/segmented-control/styles.scss +29 -4
- package/lib/internal/scss/side-navigation/styles.scss +13 -6
- package/lib/internal/scss/steps/styles.scss +1 -1
- package/lib/internal/template/alert/styles.css.js +27 -27
- package/lib/internal/template/alert/styles.scoped.css +50 -50
- package/lib/internal/template/alert/styles.selectors.js +27 -27
- package/lib/internal/template/annotation-context/annotation/styles.css.js +13 -13
- package/lib/internal/template/annotation-context/annotation/styles.scoped.css +21 -21
- package/lib/internal/template/annotation-context/annotation/styles.selectors.js +13 -13
- package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
- package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
- package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +86 -86
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +258 -258
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +86 -86
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +89 -89
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -6
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +13 -13
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -30
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +68 -68
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
- package/lib/internal/template/attribute-editor/styles.css.js +15 -15
- package/lib/internal/template/attribute-editor/styles.scoped.css +28 -28
- package/lib/internal/template/attribute-editor/styles.selectors.js +15 -15
- package/lib/internal/template/breadcrumb-group/item/styles.css.js +7 -7
- package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +28 -28
- package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +7 -7
- package/lib/internal/template/button/styles.css.js +23 -23
- package/lib/internal/template/button/styles.scoped.css +261 -261
- package/lib/internal/template/button/styles.selectors.js +23 -23
- package/lib/internal/template/button-dropdown/item-element/styles.css.js +21 -21
- package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +37 -37
- package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +21 -21
- package/lib/internal/template/cards/styles.css.js +39 -39
- package/lib/internal/template/cards/styles.scoped.css +41 -41
- package/lib/internal/template/cards/styles.selectors.js +39 -39
- package/lib/internal/template/checkbox/styles.css.js +3 -3
- package/lib/internal/template/checkbox/styles.scoped.css +10 -10
- package/lib/internal/template/checkbox/styles.selectors.js +3 -3
- package/lib/internal/template/container/style.d.ts +1 -15
- package/lib/internal/template/container/style.d.ts.map +1 -1
- package/lib/internal/template/container/style.js +6 -2
- package/lib/internal/template/container/style.js.map +1 -1
- package/lib/internal/template/container/styles.css.js +34 -34
- package/lib/internal/template/container/styles.scoped.css +87 -87
- package/lib/internal/template/container/styles.selectors.js +34 -34
- package/lib/internal/template/content-layout/styles.css.js +14 -14
- package/lib/internal/template/content-layout/styles.scoped.css +27 -27
- package/lib/internal/template/content-layout/styles.selectors.js +14 -14
- package/lib/internal/template/dropdown/styles.css.js +20 -20
- package/lib/internal/template/dropdown/styles.scoped.css +49 -49
- package/lib/internal/template/dropdown/styles.selectors.js +20 -20
- package/lib/internal/template/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/lib/internal/template/expandable-section/expandable-section-header.js +1 -1
- package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
- package/lib/internal/template/expandable-section/interfaces.d.ts +4 -4
- package/lib/internal/template/expandable-section/interfaces.js.map +1 -1
- package/lib/internal/template/file-token-group/styles.css.js +23 -23
- package/lib/internal/template/file-token-group/styles.scoped.css +36 -36
- package/lib/internal/template/file-token-group/styles.selectors.js +23 -23
- package/lib/internal/template/flashbar/styles.css.js +50 -50
- package/lib/internal/template/flashbar/styles.scoped.css +184 -184
- package/lib/internal/template/flashbar/styles.selectors.js +50 -50
- package/lib/internal/template/help-panel/styles.css.js +6 -6
- package/lib/internal/template/help-panel/styles.scoped.css +72 -72
- package/lib/internal/template/help-panel/styles.selectors.js +6 -6
- package/lib/internal/template/input/internal.d.ts.map +1 -1
- package/lib/internal/template/input/internal.js +10 -4
- package/lib/internal/template/input/internal.js.map +1 -1
- package/lib/internal/template/input/styles.css.js +36 -29
- package/lib/internal/template/input/styles.scoped.css +168 -137
- package/lib/internal/template/input/styles.selectors.js +36 -29
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/index.js +4 -1
- package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
- package/lib/internal/template/internal/components/button-trigger/index.d.ts +2 -0
- package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/button-trigger/index.js +3 -2
- package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
- package/lib/internal/template/internal/components/button-trigger/styles.css.js +21 -14
- package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +63 -33
- package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +21 -14
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.d.ts +10 -0
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.d.ts.map +1 -0
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.js +14 -0
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.js.map +1 -0
- package/lib/internal/template/internal/components/control-group/index.d.ts +9 -0
- package/lib/internal/template/internal/components/control-group/index.d.ts.map +1 -0
- package/lib/internal/template/internal/components/control-group/index.js +20 -0
- package/lib/internal/template/internal/components/control-group/index.js.map +1 -0
- package/lib/internal/template/internal/components/control-group/styles.css.js +13 -0
- package/lib/internal/template/internal/components/control-group/styles.scoped.css +63 -0
- package/lib/internal/template/internal/components/control-group/styles.selectors.js +14 -0
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.css.js +30 -30
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.scoped.css +58 -58
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
- package/lib/internal/template/internal/components/focus-lock/index.d.ts +6 -0
- package/lib/internal/template/internal/components/focus-lock/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/focus-lock/index.js +8 -3
- package/lib/internal/template/internal/components/focus-lock/index.js.map +1 -1
- package/lib/internal/template/internal/components/option/styles.css.js +17 -17
- package/lib/internal/template/internal/components/option/styles.scoped.css +31 -31
- package/lib/internal/template/internal/components/option/styles.selectors.js +17 -17
- package/lib/internal/template/internal/components/radio-button/styles.css.js +7 -7
- package/lib/internal/template/internal/components/radio-button/styles.scoped.css +17 -17
- package/lib/internal/template/internal/components/radio-button/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/selectable-item/styles.css.js +22 -22
- package/lib/internal/template/internal/components/selectable-item/styles.scoped.css +57 -57
- package/lib/internal/template/internal/components/selectable-item/styles.selectors.js +22 -22
- package/lib/internal/template/internal/components/token-list/styles.css.js +10 -10
- package/lib/internal/template/internal/components/token-list/styles.scoped.css +25 -25
- package/lib/internal/template/internal/components/token-list/styles.selectors.js +10 -10
- package/lib/internal/template/internal/context/control-group-context.d.ts +30 -0
- package/lib/internal/template/internal/context/control-group-context.d.ts.map +1 -0
- package/lib/internal/template/internal/context/control-group-context.js +24 -0
- package/lib/internal/template/internal/context/control-group-context.js.map +1 -0
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts +1 -0
- package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/lib/internal/template/internal/generated/custom-css-properties/index.js +175 -174
- package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
- package/lib/internal/template/item-card/styles.css.js +14 -14
- package/lib/internal/template/item-card/styles.scoped.css +63 -63
- package/lib/internal/template/item-card/styles.selectors.js +14 -14
- package/lib/internal/template/link/styles.css.js +21 -21
- package/lib/internal/template/link/styles.scoped.css +104 -104
- package/lib/internal/template/link/styles.selectors.js +21 -21
- package/lib/internal/template/modal/index.d.ts +1 -1
- package/lib/internal/template/modal/index.d.ts.map +1 -1
- package/lib/internal/template/modal/index.js +6 -5
- package/lib/internal/template/modal/index.js.map +1 -1
- package/lib/internal/template/modal/interfaces.d.ts +7 -0
- package/lib/internal/template/modal/interfaces.d.ts.map +1 -1
- package/lib/internal/template/modal/interfaces.js.map +1 -1
- package/lib/internal/template/modal/internal.js +23 -6
- package/lib/internal/template/modal/internal.js.map +1 -1
- package/lib/internal/template/modal/styles.css.js +32 -31
- package/lib/internal/template/modal/styles.scoped.css +51 -48
- package/lib/internal/template/modal/styles.selectors.js +32 -31
- package/lib/internal/template/multiselect/internal.d.ts.map +1 -1
- package/lib/internal/template/multiselect/internal.js +17 -10
- package/lib/internal/template/multiselect/internal.js.map +1 -1
- package/lib/internal/template/progress-bar/styles.css.js +19 -19
- package/lib/internal/template/progress-bar/styles.scoped.css +58 -58
- package/lib/internal/template/progress-bar/styles.selectors.js +19 -19
- package/lib/internal/template/prompt-input/styles.css.js +26 -26
- package/lib/internal/template/prompt-input/styles.scoped.css +109 -109
- package/lib/internal/template/prompt-input/styles.selectors.js +26 -26
- package/lib/internal/template/segmented-control/internal-segmented-control.d.ts +6 -1
- package/lib/internal/template/segmented-control/internal-segmented-control.d.ts.map +1 -1
- package/lib/internal/template/segmented-control/internal-segmented-control.js +8 -3
- package/lib/internal/template/segmented-control/internal-segmented-control.js.map +1 -1
- package/lib/internal/template/segmented-control/internal.d.ts.map +1 -1
- package/lib/internal/template/segmented-control/internal.js +5 -2
- package/lib/internal/template/segmented-control/internal.js.map +1 -1
- package/lib/internal/template/segmented-control/segment.d.ts +1 -0
- package/lib/internal/template/segmented-control/segment.d.ts.map +1 -1
- package/lib/internal/template/segmented-control/segment.js +2 -2
- package/lib/internal/template/segmented-control/segment.js.map +1 -1
- package/lib/internal/template/segmented-control/styles.css.js +26 -16
- package/lib/internal/template/segmented-control/styles.scoped.css +106 -46
- package/lib/internal/template/segmented-control/styles.selectors.js +26 -16
- package/lib/internal/template/select/internal.d.ts.map +1 -1
- package/lib/internal/template/select/internal.js +11 -8
- package/lib/internal/template/select/internal.js.map +1 -1
- package/lib/internal/template/select/parts/styles.css.js +21 -21
- package/lib/internal/template/select/parts/styles.scoped.css +24 -24
- package/lib/internal/template/select/parts/styles.selectors.js +21 -21
- package/lib/internal/template/select/parts/trigger.d.ts +2 -0
- package/lib/internal/template/select/parts/trigger.d.ts.map +1 -1
- package/lib/internal/template/select/parts/trigger.js +2 -2
- package/lib/internal/template/select/parts/trigger.js.map +1 -1
- package/lib/internal/template/side-navigation/styles.css.js +64 -64
- package/lib/internal/template/side-navigation/styles.scoped.css +119 -114
- package/lib/internal/template/side-navigation/styles.selectors.js +64 -64
- package/lib/internal/template/slider/styles.css.js +26 -26
- package/lib/internal/template/slider/styles.scoped.css +165 -165
- package/lib/internal/template/slider/styles.selectors.js +26 -26
- package/lib/internal/template/spinner/styles.css.js +14 -14
- package/lib/internal/template/spinner/styles.scoped.css +40 -40
- package/lib/internal/template/spinner/styles.selectors.js +14 -14
- package/lib/internal/template/steps/styles.css.js +17 -17
- package/lib/internal/template/steps/styles.scoped.css +35 -35
- package/lib/internal/template/steps/styles.selectors.js +17 -17
- package/lib/internal/template/table/styles.css.js +37 -37
- package/lib/internal/template/table/styles.scoped.css +46 -46
- package/lib/internal/template/table/styles.selectors.js +37 -37
- package/lib/internal/template/tabs/styles.css.js +30 -30
- package/lib/internal/template/tabs/styles.scoped.css +76 -76
- package/lib/internal/template/tabs/styles.selectors.js +30 -30
- package/lib/internal/template/tag-editor/styles.css.js +3 -3
- package/lib/internal/template/tag-editor/styles.scoped.css +13 -13
- package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
- package/lib/internal/template/text-content/styles.css.js +1 -1
- package/lib/internal/template/text-content/styles.scoped.css +66 -66
- package/lib/internal/template/text-content/styles.selectors.js +1 -1
- package/lib/internal/template/textarea/styles.css.js +9 -9
- package/lib/internal/template/textarea/styles.scoped.css +51 -55
- package/lib/internal/template/textarea/styles.selectors.js +9 -9
- package/lib/internal/template/toggle/styles.css.js +10 -10
- package/lib/internal/template/toggle/styles.scoped.css +22 -22
- package/lib/internal/template/toggle/styles.selectors.js +10 -10
- package/lib/internal/template/token/styles.css.js +14 -14
- package/lib/internal/template/token/styles.scoped.css +46 -46
- package/lib/internal/template/token/styles.selectors.js +14 -14
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/select/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,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EACL,oBAAC,aAAa,IACZ,UAAU,EACR,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CACzB,oBAAC,cAAc,IAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,GAAI,CAClF,CAAC,CAAC,CAAC,IAAI,EAEV,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,cAAc,EAC9B,GAAG,EAAE,aAAa,EAClB,iBAAiB,EAAE,cAAc,CAAC,OAAO,KAAK,IAAI,EAClD,mBAAmB,EAAE,YAAY,EACjC,aAAa,EAAE,aAAa,GAC5B,GAEJ;QACF,6BAAK,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,iBAAiB,IACrC,SAAS,IAAI,eAAe,CACzB,CACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useResizeObserver, useUniqueId, warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport Dropdown from '../dropdown/internal';\nimport { useInternalI18n } from '../i18n/context.js';\nimport { getBaseProps } from '../internal/base-component';\nimport { getBreakpointValue } from '../internal/breakpoints';\nimport DropdownFooter from '../internal/components/dropdown-footer';\nimport { useDropdownStatus } from '../internal/components/dropdown-status';\nimport { prepareOptions } from '../internal/components/option/utils/prepare-options.js';\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { SomeRequired } from '../internal/types';\nimport { getDropdownMinWidth } from '../internal/utils/get-dropdown-min-width';\nimport { joinStrings } from '../internal/utils/strings/join-strings.js';\nimport { OptionGroup } from '../types/option';\nimport { SelectProps } from './interfaces';\nimport Filter from './parts/filter';\nimport PlainList, { SelectListProps } from './parts/plain-list';\nimport Trigger from './parts/trigger';\nimport VirtualList from './parts/virtual-list';\nimport { checkOptionValueField } from './utils/check-option-value-field';\nimport { composeDropdownContent } from './utils/dropdown-customization';\nimport { useAnnouncement } from './utils/use-announcement';\nimport { useLoadItems } from './utils/use-load-items';\nimport { useNativeSearch } from './utils/use-native-search';\nimport { useSelect } from './utils/use-select';\n\nimport styles from './styles.css.js';\n\nexport interface InternalSelectProps extends SomeRequired<SelectProps, 'options'>, InternalBaseComponentProps {\n __inFilteringToken?: 'root' | 'nested';\n}\n\nconst InternalSelect = React.forwardRef(\n (\n {\n options,\n filteringType = 'none',\n filteringPlaceholder,\n filteringAriaLabel,\n filteringClearAriaLabel,\n filteringResultsText,\n inlineLabelText,\n ariaRequired,\n placeholder,\n disabled,\n readOnly,\n ariaLabel,\n statusType = 'finished',\n empty,\n loadingText,\n finishedText,\n errorText,\n noMatch,\n triggerVariant = 'label',\n renderHighlightedAriaLive,\n selectedOption,\n onBlur,\n onFocus,\n onLoadItems,\n onChange,\n virtualScroll,\n expandToViewport,\n autoFocus,\n __inFilteringToken,\n __internalRootRef,\n renderOption,\n renderDropdownHeader,\n renderDropdownFooter,\n dropdownRole,\n dropdownAriaDescribedby,\n ...restProps\n }: InternalSelectProps,\n externalRef: React.Ref<SelectProps.Ref>\n ) => {\n const baseProps = getBaseProps(restProps);\n const formFieldContext = useFormFieldContext(restProps);\n\n const i18n = useInternalI18n('select');\n const errorIconAriaLabel = i18n('errorIconAriaLabel', restProps.errorIconAriaLabel);\n const selectedAriaLabel = i18n('selectedAriaLabel', restProps.selectedAriaLabel);\n const recoveryText = i18n('recoveryText', restProps.recoveryText);\n\n if (restProps.recoveryText && !onLoadItems) {\n warnOnce('Select', '`onLoadItems` must be provided for `recoveryText` to be displayed.');\n }\n\n const { handleLoadMore, handleRecoveryClick, fireLoadItems } = useLoadItems({\n onLoadItems,\n options,\n statusType,\n });\n\n checkControlled('Select', 'selectedOption', selectedOption, 'onChange', onChange);\n\n checkOptionValueField('Select', 'options', options);\n\n const [filteringValue, setFilteringValue] = useState('');\n\n const { filteredOptions, parentMap, totalCount, matchesCount } = prepareOptions(\n options,\n filteringType,\n filteringValue\n );\n\n const rootRef = useRef<HTMLDivElement>(null);\n const triggerRef = useRef<HTMLButtonElement>(null);\n const [triggerWidth, setTriggerWidth] = useState<number | null>(null);\n useResizeObserver(\n () => triggerRef.current,\n entry => entry.borderBoxWidth > 0 && setTriggerWidth(entry.borderBoxWidth)\n );\n\n const selfControlId = useUniqueId('trigger');\n const controlId = formFieldContext.controlId ?? selfControlId;\n\n const scrollToIndex = useRef<SelectListProps.SelectListRef>(null);\n const {\n isOpen,\n highlightType,\n highlightedOption,\n highlightedIndex,\n getTriggerProps,\n getDropdownProps,\n getFilterProps,\n getMenuProps,\n getOptionProps,\n highlightOption,\n selectOption,\n announceSelected,\n focusActiveRef,\n closeDropdown,\n } = useSelect({\n selectedOptions: selectedOption ? [selectedOption] : [],\n updateSelectedOption: option => fireNonCancelableEvent(onChange, { selectedOption: option }),\n options: filteredOptions,\n filteringType,\n onBlur,\n onFocus,\n externalRef,\n fireLoadItems,\n setFilteringValue,\n statusType,\n dropdownRole,\n });\n\n const handleNativeSearch = useNativeSearch({\n isEnabled: filteringType === 'none' && !readOnly,\n options: filteredOptions,\n highlightOption: !isOpen ? selectOption : highlightOption,\n highlightedOption: !isOpen ? selectedOption : highlightedOption?.option,\n });\n\n const selectAriaLabelId = useUniqueId('select-arialabel-');\n const footerId = useUniqueId('footer');\n\n useEffect(() => {\n scrollToIndex.current?.(highlightedIndex);\n }, [highlightedIndex]);\n\n const dropdownContentProps: SelectProps.DropdownContentProps = { filterText: filteringValue, closeDropdown };\n const customDropdownHeader = renderDropdownHeader?.(dropdownContentProps);\n const customDropdownFooter = renderDropdownFooter?.(dropdownContentProps);\n\n const filter = (\n <Filter\n clearAriaLabel={filteringClearAriaLabel}\n filteringType={filteringType}\n placeholder={filteringPlaceholder}\n ariaLabel={filteringAriaLabel}\n ariaRequired={ariaRequired}\n value={filteringValue}\n {...getFilterProps()}\n />\n );\n\n const trigger = (\n <Trigger\n renderOption={renderOption}\n ref={triggerRef}\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readOnly}\n triggerVariant={triggerVariant}\n triggerProps={getTriggerProps(disabled, autoFocus)}\n selectedOption={selectedOption}\n isOpen={isOpen}\n inFilteringToken={__inFilteringToken}\n inlineLabelText={inlineLabelText}\n {...formFieldContext}\n controlId={controlId}\n ariaLabelledby={joinStrings(formFieldContext.ariaLabelledby, selectAriaLabelId)}\n />\n );\n\n const isEmpty = !options || options.length === 0;\n const isNoMatch = filteredOptions && filteredOptions.length === 0;\n const isFiltered =\n filteringType !== 'none' && filteringValue.length > 0 && filteredOptions && filteredOptions.length > 0;\n const filteredText = isFiltered ? filteringResultsText?.(matchesCount, totalCount) : undefined;\n\n const dropdownStatus = useDropdownStatus({\n statusType,\n empty,\n loadingText,\n finishedText,\n errorText,\n recoveryText,\n isEmpty,\n isNoMatch,\n noMatch,\n filteringResultsText: filteredText,\n errorIconAriaLabel,\n onRecoveryClick: () => {\n handleRecoveryClick();\n focusActiveRef();\n },\n hasRecoveryCallback: !!onLoadItems,\n });\n\n const statusFooter = dropdownStatus.isSticky ? (\n <DropdownFooter content={isOpen ? dropdownStatus.content : null} id={footerId} />\n ) : null;\n const { header: dropdownHeader, footer: dropdownFooter } = composeDropdownContent({\n filter,\n customDropdownHeader,\n customDropdownFooter,\n statusFooter,\n dropdownHeaderClass: styles['dropdown-header'],\n dropdownFooterClass: styles['dropdown-footer'],\n });\n\n const menuProps = {\n ...getMenuProps(),\n onLoadMore: handleLoadMore,\n ariaLabelledby: joinStrings(selectAriaLabelId, controlId),\n ariaDescribedby: joinStrings(dropdownStatus.content ? footerId : undefined, dropdownAriaDescribedby),\n ariaRequired,\n };\n\n const announcement = useAnnouncement({\n announceSelected,\n highlightedOption,\n getParent: option => parentMap.get(option)?.option as undefined | OptionGroup,\n selectedAriaLabel,\n renderHighlightedAriaLive,\n });\n\n const ListComponent = virtualScroll ? VirtualList : PlainList;\n\n const handleMouseDown = (event: React.MouseEvent) => {\n const target = event.target as HTMLElement;\n\n if (target !== document.activeElement) {\n // prevent currently focused element from losing it\n event.preventDefault();\n }\n };\n\n const mergedRef = useMergeRefs(rootRef, __internalRootRef);\n\n const dropdownProps = getDropdownProps();\n\n const hasOptions = useRef(options.length > 0);\n hasOptions.current = hasOptions.current || options.length > 0;\n\n return (\n <div\n {...baseProps}\n ref={mergedRef}\n className={clsx(styles.root, baseProps.className)}\n onKeyDown={handleNativeSearch}\n >\n <Dropdown\n {...dropdownProps}\n ariaLabelledby={dropdownProps.ariaRole ? joinStrings(selectAriaLabelId, controlId) : undefined}\n ariaDescribedby={\n dropdownProps.ariaRole\n ? joinStrings(dropdownStatus.content ? footerId : undefined, dropdownAriaDescribedby)\n : undefined\n }\n open={isOpen}\n stretchTriggerHeight={!!__inFilteringToken}\n minWidth={getDropdownMinWidth({ expandToViewport, triggerWidth })}\n maxWidth={getBreakpointValue('xxs')} // AWSUI-19898\n trigger={trigger}\n header={dropdownHeader}\n onMouseDown={handleMouseDown}\n footer={dropdownFooter}\n expandToViewport={expandToViewport}\n // Forces dropdown position recalculation when new options are loaded\n contentKey={hasOptions.current.toString()}\n content={\n <ListComponent\n listBottom={\n !dropdownStatus.isSticky ? (\n <DropdownFooter content={isOpen ? dropdownStatus.content : null} id={footerId} />\n ) : null\n }\n renderOption={renderOption}\n menuProps={menuProps}\n getOptionProps={getOptionProps}\n filteredOptions={filteredOptions}\n filteringValue={filteringValue}\n ref={scrollToIndex}\n hasDropdownStatus={dropdownStatus.content !== null}\n screenReaderContent={announcement}\n highlightType={highlightType}\n />\n }\n />\n <div hidden={true} id={selectAriaLabelId}>\n {ariaLabel || inlineLabelText}\n </div>\n </div>\n );\n }\n);\n\nexport default InternalSelect;\n"]}
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/select/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEvH,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,cAAc,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,wDAAwD,CAAC;AACxF,OAAO,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACjH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,eAAe,MAAM,oCAAoC,CAAC;AAGjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAGxE,OAAO,MAAM,MAAM,gBAAgB,CAAC;AACpC,OAAO,SAA8B,MAAM,oBAAoB,CAAC;AAChE,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,q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SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useResizeObserver, useUniqueId, warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport Dropdown from '../dropdown/internal';\nimport { useInternalI18n } from '../i18n/context.js';\nimport { getBaseProps } from '../internal/base-component';\nimport { getBreakpointValue } from '../internal/breakpoints';\nimport DropdownFooter from '../internal/components/dropdown-footer';\nimport { useDropdownStatus } from '../internal/components/dropdown-status';\nimport { prepareOptions } from '../internal/components/option/utils/prepare-options.js';\nimport { ResetGroupedControlContext, useGroupedControlContext } from '../internal/context/control-group-context';\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { SomeRequired } from '../internal/types';\nimport { getDropdownMinWidth } from '../internal/utils/get-dropdown-min-width';\nimport { joinStrings } from '../internal/utils/strings/join-strings.js';\nimport { OptionGroup } from '../types/option';\nimport { SelectProps } from './interfaces';\nimport Filter from './parts/filter';\nimport PlainList, { SelectListProps } from './parts/plain-list';\nimport Trigger from './parts/trigger';\nimport VirtualList from './parts/virtual-list';\nimport { checkOptionValueField } from './utils/check-option-value-field';\nimport { composeDropdownContent } from './utils/dropdown-customization';\nimport { useAnnouncement } from './utils/use-announcement';\nimport { useLoadItems } from './utils/use-load-items';\nimport { useNativeSearch } from './utils/use-native-search';\nimport { useSelect } from './utils/use-select';\n\nimport styles from './styles.css.js';\n\nexport interface InternalSelectProps extends SomeRequired<SelectProps, 'options'>, InternalBaseComponentProps {\n __inFilteringToken?: 'root' | 'nested';\n}\n\nconst InternalSelect = React.forwardRef(\n (\n {\n options,\n filteringType = 'none',\n filteringPlaceholder,\n filteringAriaLabel,\n filteringClearAriaLabel,\n filteringResultsText,\n inlineLabelText,\n ariaRequired,\n placeholder,\n disabled,\n readOnly,\n ariaLabel,\n statusType = 'finished',\n empty,\n loadingText,\n finishedText,\n errorText,\n noMatch,\n triggerVariant = 'label',\n renderHighlightedAriaLive,\n selectedOption,\n onBlur,\n onFocus,\n onLoadItems,\n onChange,\n virtualScroll,\n expandToViewport,\n autoFocus,\n __inFilteringToken,\n __internalRootRef,\n renderOption,\n renderDropdownHeader,\n renderDropdownFooter,\n dropdownRole,\n dropdownAriaDescribedby,\n ...restProps\n }: InternalSelectProps,\n externalRef: React.Ref<SelectProps.Ref>\n ) => {\n const baseProps = getBaseProps(restProps);\n const formFieldContext = useFormFieldContext(restProps);\n const groupedControlProps = useGroupedControlContext();\n\n const i18n = useInternalI18n('select');\n const errorIconAriaLabel = i18n('errorIconAriaLabel', restProps.errorIconAriaLabel);\n const selectedAriaLabel = i18n('selectedAriaLabel', restProps.selectedAriaLabel);\n const recoveryText = i18n('recoveryText', restProps.recoveryText);\n\n if (restProps.recoveryText && !onLoadItems) {\n warnOnce('Select', '`onLoadItems` must be provided for `recoveryText` to be displayed.');\n }\n\n const { handleLoadMore, handleRecoveryClick, fireLoadItems } = useLoadItems({\n onLoadItems,\n options,\n statusType,\n });\n\n checkControlled('Select', 'selectedOption', selectedOption, 'onChange', onChange);\n\n checkOptionValueField('Select', 'options', options);\n\n const [filteringValue, setFilteringValue] = useState('');\n\n const { filteredOptions, parentMap, totalCount, matchesCount } = prepareOptions(\n options,\n filteringType,\n filteringValue\n );\n\n const rootRef = useRef<HTMLDivElement>(null);\n const triggerRef = useRef<HTMLButtonElement>(null);\n const [triggerWidth, setTriggerWidth] = useState<number | null>(null);\n useResizeObserver(\n () => triggerRef.current,\n entry => entry.borderBoxWidth > 0 && setTriggerWidth(entry.borderBoxWidth)\n );\n\n const selfControlId = useUniqueId('trigger');\n const controlId = formFieldContext.controlId ?? selfControlId;\n\n const scrollToIndex = useRef<SelectListProps.SelectListRef>(null);\n const {\n isOpen,\n highlightType,\n highlightedOption,\n highlightedIndex,\n getTriggerProps,\n getDropdownProps,\n getFilterProps,\n getMenuProps,\n getOptionProps,\n highlightOption,\n selectOption,\n announceSelected,\n focusActiveRef,\n closeDropdown,\n } = useSelect({\n selectedOptions: selectedOption ? [selectedOption] : [],\n updateSelectedOption: option => fireNonCancelableEvent(onChange, { selectedOption: option }),\n options: filteredOptions,\n filteringType,\n onBlur,\n onFocus,\n externalRef,\n fireLoadItems,\n setFilteringValue,\n statusType,\n dropdownRole,\n });\n\n const handleNativeSearch = useNativeSearch({\n isEnabled: filteringType === 'none' && !readOnly,\n options: filteredOptions,\n highlightOption: !isOpen ? selectOption : highlightOption,\n highlightedOption: !isOpen ? selectedOption : highlightedOption?.option,\n });\n\n const selectAriaLabelId = useUniqueId('select-arialabel-');\n const footerId = useUniqueId('footer');\n\n useEffect(() => {\n scrollToIndex.current?.(highlightedIndex);\n }, [highlightedIndex]);\n\n const dropdownContentProps: SelectProps.DropdownContentProps = { filterText: filteringValue, closeDropdown };\n const customDropdownHeader = renderDropdownHeader?.(dropdownContentProps);\n const customDropdownFooter = renderDropdownFooter?.(dropdownContentProps);\n\n const filter = (\n <Filter\n clearAriaLabel={filteringClearAriaLabel}\n filteringType={filteringType}\n placeholder={filteringPlaceholder}\n ariaLabel={filteringAriaLabel}\n ariaRequired={ariaRequired}\n value={filteringValue}\n {...getFilterProps()}\n />\n );\n\n const trigger = (\n <Trigger\n renderOption={renderOption}\n ref={triggerRef}\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readOnly}\n triggerVariant={triggerVariant}\n triggerProps={getTriggerProps(disabled, autoFocus)}\n selectedOption={selectedOption}\n isOpen={isOpen}\n inFilteringToken={__inFilteringToken}\n groupedControlProps={groupedControlProps}\n inlineLabelText={inlineLabelText}\n {...formFieldContext}\n controlId={controlId}\n ariaLabelledby={joinStrings(formFieldContext.ariaLabelledby, selectAriaLabelId)}\n />\n );\n\n const isEmpty = !options || options.length === 0;\n const isNoMatch = filteredOptions && filteredOptions.length === 0;\n const isFiltered =\n filteringType !== 'none' && filteringValue.length > 0 && filteredOptions && filteredOptions.length > 0;\n const filteredText = isFiltered ? filteringResultsText?.(matchesCount, totalCount) : undefined;\n\n const dropdownStatus = useDropdownStatus({\n statusType,\n empty,\n loadingText,\n finishedText,\n errorText,\n recoveryText,\n isEmpty,\n isNoMatch,\n noMatch,\n filteringResultsText: filteredText,\n errorIconAriaLabel,\n onRecoveryClick: () => {\n handleRecoveryClick();\n focusActiveRef();\n },\n hasRecoveryCallback: !!onLoadItems,\n });\n\n const statusFooter = dropdownStatus.isSticky ? (\n <DropdownFooter content={isOpen ? dropdownStatus.content : null} id={footerId} />\n ) : null;\n const { header: dropdownHeader, footer: dropdownFooter } = composeDropdownContent({\n filter,\n customDropdownHeader,\n customDropdownFooter,\n statusFooter,\n dropdownHeaderClass: styles['dropdown-header'],\n dropdownFooterClass: styles['dropdown-footer'],\n });\n\n const menuProps = {\n ...getMenuProps(),\n onLoadMore: handleLoadMore,\n ariaLabelledby: joinStrings(selectAriaLabelId, controlId),\n ariaDescribedby: joinStrings(dropdownStatus.content ? footerId : undefined, dropdownAriaDescribedby),\n ariaRequired,\n };\n\n const announcement = useAnnouncement({\n announceSelected,\n highlightedOption,\n getParent: option => parentMap.get(option)?.option as undefined | OptionGroup,\n selectedAriaLabel,\n renderHighlightedAriaLive,\n });\n\n const ListComponent = virtualScroll ? VirtualList : PlainList;\n\n const handleMouseDown = (event: React.MouseEvent) => {\n const target = event.target as HTMLElement;\n\n if (target !== document.activeElement) {\n // prevent currently focused element from losing it\n event.preventDefault();\n }\n };\n\n const mergedRef = useMergeRefs(rootRef, __internalRootRef);\n\n const dropdownProps = getDropdownProps();\n\n const hasOptions = useRef(options.length > 0);\n hasOptions.current = hasOptions.current || options.length > 0;\n\n return (\n <ResetGroupedControlContext>\n <div\n {...baseProps}\n ref={mergedRef}\n className={clsx(styles.root, baseProps.className)}\n onKeyDown={handleNativeSearch}\n >\n <Dropdown\n {...dropdownProps}\n ariaLabelledby={dropdownProps.ariaRole ? joinStrings(selectAriaLabelId, controlId) : undefined}\n ariaDescribedby={\n dropdownProps.ariaRole\n ? joinStrings(dropdownStatus.content ? footerId : undefined, dropdownAriaDescribedby)\n : undefined\n }\n open={isOpen}\n stretchTriggerHeight={!!__inFilteringToken}\n minWidth={getDropdownMinWidth({ expandToViewport, triggerWidth })}\n maxWidth={getBreakpointValue('xxs')} // AWSUI-19898\n trigger={trigger}\n header={dropdownHeader}\n onMouseDown={handleMouseDown}\n footer={dropdownFooter}\n expandToViewport={expandToViewport}\n // Forces dropdown position recalculation when new options are loaded\n contentKey={hasOptions.current.toString()}\n content={\n <ListComponent\n listBottom={\n !dropdownStatus.isSticky ? (\n <DropdownFooter content={isOpen ? dropdownStatus.content : null} id={footerId} />\n ) : null\n }\n renderOption={renderOption}\n menuProps={menuProps}\n getOptionProps={getOptionProps}\n filteredOptions={filteredOptions}\n filteringValue={filteringValue}\n ref={scrollToIndex}\n hasDropdownStatus={dropdownStatus.content !== null}\n screenReaderContent={announcement}\n highlightType={highlightType}\n />\n }\n />\n <div hidden={true} id={selectAriaLabelId}>\n {ariaLabel || inlineLabelText}\n </div>\n </div>\n </ResetGroupedControlContext>\n );\n }\n);\n\nexport default InternalSelect;\n"]}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"placeholder": "
|
|
5
|
-
"disabled": "
|
|
6
|
-
"item": "
|
|
7
|
-
"checkbox": "
|
|
8
|
-
"option-group": "awsui_option-
|
|
9
|
-
"filter": "
|
|
10
|
-
"trigger": "
|
|
11
|
-
"layout-strut": "awsui_layout-
|
|
12
|
-
"list-bottom": "awsui_list-
|
|
13
|
-
"selected-icon": "awsui_selected-
|
|
14
|
-
"show-label-tag": "awsui_show-label-
|
|
15
|
-
"inline-token-trigger": "awsui_inline-token-
|
|
16
|
-
"inline-token-list": "awsui_inline-token-
|
|
17
|
-
"inline-token-hidden-placeholder": "awsui_inline-token-hidden-
|
|
18
|
-
"inline-token-counter": "awsui_inline-token-
|
|
19
|
-
"inline-label-trigger-wrapper": "awsui_inline-label-trigger-
|
|
20
|
-
"inline-label-wrapper": "awsui_inline-label-
|
|
21
|
-
"inline-label": "awsui_inline-
|
|
22
|
-
"inline-label-disabled": "awsui_inline-label-
|
|
23
|
-
"inline-label-inline-tokens": "awsui_inline-label-inline-
|
|
24
|
-
"disabled-reason-tooltip": "awsui_disabled-reason-
|
|
4
|
+
"placeholder": "awsui_placeholder_dwuol_wsgh3_9",
|
|
5
|
+
"disabled": "awsui_disabled_dwuol_wsgh3_14",
|
|
6
|
+
"item": "awsui_item_dwuol_wsgh3_18",
|
|
7
|
+
"checkbox": "awsui_checkbox_dwuol_wsgh3_22",
|
|
8
|
+
"option-group": "awsui_option-group_dwuol_wsgh3_31",
|
|
9
|
+
"filter": "awsui_filter_dwuol_wsgh3_35",
|
|
10
|
+
"trigger": "awsui_trigger_dwuol_wsgh3_40",
|
|
11
|
+
"layout-strut": "awsui_layout-strut_dwuol_wsgh3_46",
|
|
12
|
+
"list-bottom": "awsui_list-bottom_dwuol_wsgh3_52",
|
|
13
|
+
"selected-icon": "awsui_selected-icon_dwuol_wsgh3_56",
|
|
14
|
+
"show-label-tag": "awsui_show-label-tag_dwuol_wsgh3_61",
|
|
15
|
+
"inline-token-trigger": "awsui_inline-token-trigger_dwuol_wsgh3_65",
|
|
16
|
+
"inline-token-list": "awsui_inline-token-list_dwuol_wsgh3_72",
|
|
17
|
+
"inline-token-hidden-placeholder": "awsui_inline-token-hidden-placeholder_dwuol_wsgh3_86",
|
|
18
|
+
"inline-token-counter": "awsui_inline-token-counter_dwuol_wsgh3_92",
|
|
19
|
+
"inline-label-trigger-wrapper": "awsui_inline-label-trigger-wrapper_dwuol_wsgh3_96",
|
|
20
|
+
"inline-label-wrapper": "awsui_inline-label-wrapper_dwuol_wsgh3_100",
|
|
21
|
+
"inline-label": "awsui_inline-label_dwuol_wsgh3_96",
|
|
22
|
+
"inline-label-disabled": "awsui_inline-label-disabled_dwuol_wsgh3_125",
|
|
23
|
+
"inline-label-inline-tokens": "awsui_inline-label-inline-tokens_dwuol_wsgh3_129",
|
|
24
|
+
"disabled-reason-tooltip": "awsui_disabled-reason-tooltip_dwuol_wsgh3_134"
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -6,21 +6,21 @@
|
|
|
6
6
|
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
7
7
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
8
8
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
9
|
-
.
|
|
9
|
+
.awsui_placeholder_dwuol_wsgh3_9:not(#\9) {
|
|
10
10
|
color: var(--color-text-input-placeholder-l6klmg, #687078);
|
|
11
11
|
font-style: italic;
|
|
12
12
|
-webkit-user-select: none;
|
|
13
13
|
user-select: none;
|
|
14
14
|
}
|
|
15
|
-
.
|
|
15
|
+
.awsui_placeholder_dwuol_wsgh3_9.awsui_disabled_dwuol_wsgh3_14:not(#\9) {
|
|
16
16
|
color: var(--color-text-input-placeholder-disabled-8cf69l, #687078);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.
|
|
19
|
+
.awsui_item_dwuol_wsgh3_18:not(#\9) {
|
|
20
20
|
display: flex;
|
|
21
21
|
align-items: center;
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
.awsui_item_dwuol_wsgh3_18 > .awsui_checkbox_dwuol_wsgh3_22:not(#\9) {
|
|
24
24
|
position: relative;
|
|
25
25
|
min-block-size: var(--size-control-jpgj8e, 14px);
|
|
26
26
|
min-inline-size: var(--size-control-jpgj8e, 14px);
|
|
@@ -29,48 +29,48 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
29
29
|
margin-inline-end: var(--space-field-horizontal-anki5k, 8px);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.awsui_option-
|
|
32
|
+
.awsui_option-group_dwuol_wsgh3_31:not(#\9):not(:first-child) {
|
|
33
33
|
margin-block-start: calc(-1 * var(--border-item-width-pyfg4s, 1px));
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.
|
|
36
|
+
.awsui_filter_dwuol_wsgh3_35:not(#\9) {
|
|
37
37
|
z-index: 4;
|
|
38
38
|
flex-shrink: 0;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.
|
|
41
|
+
.awsui_trigger_dwuol_wsgh3_40:not(#\9) {
|
|
42
42
|
white-space: nowrap;
|
|
43
43
|
overflow: hidden;
|
|
44
44
|
text-overflow: ellipsis;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
.awsui_layout-
|
|
47
|
+
.awsui_layout-strut_dwuol_wsgh3_46:not(#\9) {
|
|
48
48
|
inline-size: 100%;
|
|
49
49
|
position: relative;
|
|
50
50
|
transform: translate3d(0, 0, 0);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.awsui_list-
|
|
53
|
+
.awsui_list-bottom_dwuol_wsgh3_52:not(#\9) {
|
|
54
54
|
/* used in unit-tests */
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.awsui_selected-
|
|
57
|
+
.awsui_selected-icon_dwuol_wsgh3_56:not(#\9) {
|
|
58
58
|
color: var(--color-item-selected-2irl78, #0073bb);
|
|
59
59
|
padding-inline-start: var(--space-xs-m9b7jf, 8px);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.awsui_show-label-
|
|
62
|
+
.awsui_show-label-tag_dwuol_wsgh3_61 > .awsui_selected-icon_dwuol_wsgh3_56:not(#\9) {
|
|
63
63
|
padding-inline-start: var(--space-scaled-s-2crg2b, 12px);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.awsui_inline-token-
|
|
66
|
+
.awsui_inline-token-trigger_dwuol_wsgh3_65:not(#\9) {
|
|
67
67
|
display: flex;
|
|
68
68
|
flex-wrap: nowrap;
|
|
69
69
|
column-gap: var(--space-xxs-3o1yoq, 4px);
|
|
70
70
|
inline-size: 100%;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
.awsui_inline-token-
|
|
73
|
+
.awsui_inline-token-list_dwuol_wsgh3_72:not(#\9) {
|
|
74
74
|
display: flex;
|
|
75
75
|
flex-wrap: nowrap;
|
|
76
76
|
align-items: center;
|
|
@@ -80,30 +80,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
80
80
|
mask-image: linear-gradient(270deg, transparent, white 20px, white);
|
|
81
81
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
82
82
|
}
|
|
83
|
-
.awsui_inline-token-
|
|
83
|
+
.awsui_inline-token-list_dwuol_wsgh3_72:not(#\9):dir(rtl) {
|
|
84
84
|
mask-image: linear-gradient(-270deg, transparent, white 20px, white);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
.awsui_inline-token-hidden-
|
|
87
|
+
.awsui_inline-token-hidden-placeholder_dwuol_wsgh3_86:not(#\9) {
|
|
88
88
|
position: absolute !important;
|
|
89
89
|
inset-block-start: -9999px !important;
|
|
90
90
|
inset-inline-start: -9999px !important;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
.awsui_inline-token-
|
|
93
|
+
.awsui_inline-token-counter_dwuol_wsgh3_92:not(#\9) {
|
|
94
94
|
white-space: nowrap;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
.awsui_inline-label-trigger-
|
|
97
|
+
.awsui_inline-label-trigger-wrapper_dwuol_wsgh3_96:not(#\9) {
|
|
98
98
|
margin-block-start: -7px;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
.awsui_inline-label-
|
|
101
|
+
.awsui_inline-label-wrapper_dwuol_wsgh3_100:not(#\9) {
|
|
102
102
|
margin-block-start: calc(var(--space-scaled-xs-pajbd1, 8px) * -1);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
.awsui_inline-
|
|
106
|
-
background: linear-gradient(to bottom, var(--awsui-inline-label-background-color-
|
|
105
|
+
.awsui_inline-label_dwuol_wsgh3_96:not(#\9) {
|
|
106
|
+
background: linear-gradient(to bottom, var(--awsui-inline-label-background-color-ka4djm, var(--color-background-layout-main-y4565g, #f2f3f3)), var(--color-background-input-default-1u0v1p, #ffffff));
|
|
107
107
|
border-start-start-radius: 2px;
|
|
108
108
|
border-start-end-radius: 2px;
|
|
109
109
|
border-end-start-radius: 2px;
|
|
@@ -123,15 +123,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
123
123
|
max-inline-size: calc(100% - 2 * var(--space-field-horizontal-anki5k, 8px));
|
|
124
124
|
z-index: 1;
|
|
125
125
|
}
|
|
126
|
-
.awsui_inline-label-
|
|
127
|
-
background: linear-gradient(to bottom, var(--awsui-inline-label-background-color-
|
|
126
|
+
.awsui_inline-label-disabled_dwuol_wsgh3_125:not(#\9) {
|
|
127
|
+
background: linear-gradient(to bottom, var(--awsui-inline-label-background-color-ka4djm, var(--color-background-layout-main-y4565g, #f2f3f3)), var(--color-background-input-disabled-pyvhb1, #eaeded));
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
.awsui_inline-label-inline-
|
|
130
|
+
.awsui_inline-label-inline-tokens_dwuol_wsgh3_129:not(#\9) {
|
|
131
131
|
padding-block-end: 0;
|
|
132
132
|
transform: translateY(-1.5px);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.awsui_disabled-reason-
|
|
135
|
+
.awsui_disabled-reason-tooltip_dwuol_wsgh3_134:not(#\9) {
|
|
136
136
|
/* used in test-utils or tests */
|
|
137
137
|
}
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"placeholder": "
|
|
6
|
-
"disabled": "
|
|
7
|
-
"item": "
|
|
8
|
-
"checkbox": "
|
|
9
|
-
"option-group": "awsui_option-
|
|
10
|
-
"filter": "
|
|
11
|
-
"trigger": "
|
|
12
|
-
"layout-strut": "awsui_layout-
|
|
13
|
-
"list-bottom": "awsui_list-
|
|
14
|
-
"selected-icon": "awsui_selected-
|
|
15
|
-
"show-label-tag": "awsui_show-label-
|
|
16
|
-
"inline-token-trigger": "awsui_inline-token-
|
|
17
|
-
"inline-token-list": "awsui_inline-token-
|
|
18
|
-
"inline-token-hidden-placeholder": "awsui_inline-token-hidden-
|
|
19
|
-
"inline-token-counter": "awsui_inline-token-
|
|
20
|
-
"inline-label-trigger-wrapper": "awsui_inline-label-trigger-
|
|
21
|
-
"inline-label-wrapper": "awsui_inline-label-
|
|
22
|
-
"inline-label": "awsui_inline-
|
|
23
|
-
"inline-label-disabled": "awsui_inline-label-
|
|
24
|
-
"inline-label-inline-tokens": "awsui_inline-label-inline-
|
|
25
|
-
"disabled-reason-tooltip": "awsui_disabled-reason-
|
|
5
|
+
"placeholder": "awsui_placeholder_dwuol_wsgh3_9",
|
|
6
|
+
"disabled": "awsui_disabled_dwuol_wsgh3_14",
|
|
7
|
+
"item": "awsui_item_dwuol_wsgh3_18",
|
|
8
|
+
"checkbox": "awsui_checkbox_dwuol_wsgh3_22",
|
|
9
|
+
"option-group": "awsui_option-group_dwuol_wsgh3_31",
|
|
10
|
+
"filter": "awsui_filter_dwuol_wsgh3_35",
|
|
11
|
+
"trigger": "awsui_trigger_dwuol_wsgh3_40",
|
|
12
|
+
"layout-strut": "awsui_layout-strut_dwuol_wsgh3_46",
|
|
13
|
+
"list-bottom": "awsui_list-bottom_dwuol_wsgh3_52",
|
|
14
|
+
"selected-icon": "awsui_selected-icon_dwuol_wsgh3_56",
|
|
15
|
+
"show-label-tag": "awsui_show-label-tag_dwuol_wsgh3_61",
|
|
16
|
+
"inline-token-trigger": "awsui_inline-token-trigger_dwuol_wsgh3_65",
|
|
17
|
+
"inline-token-list": "awsui_inline-token-list_dwuol_wsgh3_72",
|
|
18
|
+
"inline-token-hidden-placeholder": "awsui_inline-token-hidden-placeholder_dwuol_wsgh3_86",
|
|
19
|
+
"inline-token-counter": "awsui_inline-token-counter_dwuol_wsgh3_92",
|
|
20
|
+
"inline-label-trigger-wrapper": "awsui_inline-label-trigger-wrapper_dwuol_wsgh3_96",
|
|
21
|
+
"inline-label-wrapper": "awsui_inline-label-wrapper_dwuol_wsgh3_100",
|
|
22
|
+
"inline-label": "awsui_inline-label_dwuol_wsgh3_96",
|
|
23
|
+
"inline-label-disabled": "awsui_inline-label-disabled_dwuol_wsgh3_125",
|
|
24
|
+
"inline-label-inline-tokens": "awsui_inline-label-inline-tokens_dwuol_wsgh3_129",
|
|
25
|
+
"disabled-reason-tooltip": "awsui_disabled-reason-tooltip_dwuol_wsgh3_134"
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { GroupedControlContextProps } from '../../internal/context/control-group-context';
|
|
2
3
|
import { MultiselectProps } from '../../multiselect/interfaces';
|
|
3
4
|
import { FormFieldValidationControlProps } from '../../types/form-field';
|
|
4
5
|
import { OptionDefinition } from '../../types/option';
|
|
@@ -16,6 +17,7 @@ export interface TriggerProps extends FormFieldValidationControlProps {
|
|
|
16
17
|
inFilteringToken?: 'root' | 'nested';
|
|
17
18
|
selectedOptions?: ReadonlyArray<OptionDefinition>;
|
|
18
19
|
renderOption?: SelectProps.SelectOptionItemRenderer;
|
|
20
|
+
groupedControlProps?: GroupedControlContextProps;
|
|
19
21
|
}
|
|
20
22
|
declare const Trigger: React.ForwardRefExoticComponent<TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
21
23
|
export default Trigger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../../../src/select/parts/trigger.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../../../src/select/parts/trigger.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAG1F,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAIzD,MAAM,WAAW,YAAa,SAAQ,+BAA+B;IACnE,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,kBAAkB,CAAC;IACjC,cAAc,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACxC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,WAAW,CAAC,cAAc,GAAG,gBAAgB,CAAC,cAAc,CAAC;IAC9E,gBAAgB,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACrC,eAAe,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAClD,YAAY,CAAC,EAAE,WAAW,CAAC,wBAAwB,CAAC;IACpD,mBAAmB,CAAC,EAAE,0BAA0B,CAAC;CAClD;AAED,QAAA,MAAM,OAAO,wFA6IZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -9,7 +9,7 @@ import { useVisualRefresh } from '../../internal/hooks/use-visual-mode';
|
|
|
9
9
|
import { joinStrings } from '../../internal/utils/strings';
|
|
10
10
|
import InternalToken from '../../token/internal';
|
|
11
11
|
import styles from './styles.css.js';
|
|
12
|
-
const Trigger = React.forwardRef(({ ariaLabelledby, ariaDescribedby, controlId, invalid, inlineLabelText, warning, triggerProps, selectedOption, selectedOptions, triggerVariant, inFilteringToken, isOpen, placeholder, disabled, readOnly, renderOption, }, ref) => {
|
|
12
|
+
const Trigger = React.forwardRef(({ ariaLabelledby, ariaDescribedby, controlId, invalid, inlineLabelText, warning, triggerProps, selectedOption, selectedOptions, triggerVariant, inFilteringToken, isOpen, placeholder, disabled, readOnly, renderOption, groupedControlProps, }, ref) => {
|
|
13
13
|
const isVisualRefresh = useVisualRefresh();
|
|
14
14
|
const generatedId = useUniqueId();
|
|
15
15
|
const id = controlId !== null && controlId !== void 0 ? controlId : generatedId;
|
|
@@ -56,7 +56,7 @@ const Trigger = React.forwardRef(({ ariaLabelledby, ariaDescribedby, controlId,
|
|
|
56
56
|
triggerContent = (React.createElement("span", { id: triggerContentId, className: styles.trigger }, selectedOption.label || selectedOption.value));
|
|
57
57
|
}
|
|
58
58
|
const mergedRef = useMergeRefs(triggerProps.ref, ref);
|
|
59
|
-
const triggerButton = (React.createElement(ButtonTrigger, { ...triggerProps, id: id, ref: mergedRef, pressed: !!isOpen, disabled: disabled, readOnly: readOnly, invalid: invalid, warning: warning && !invalid, inFilteringToken: inFilteringToken, inlineTokens: triggerVariant === 'tokens', hasCustomContent: hasCustomContent, ariaDescribedby: ariaDescribedby, ariaLabelledby: ariaLabelledbyIds }, triggerContent));
|
|
59
|
+
const triggerButton = (React.createElement(ButtonTrigger, { ...triggerProps, id: id, ref: mergedRef, pressed: !!isOpen, disabled: disabled, readOnly: readOnly, invalid: invalid, warning: warning && !invalid, inFilteringToken: inFilteringToken, inlineTokens: triggerVariant === 'tokens', hasCustomContent: hasCustomContent, ariaDescribedby: ariaDescribedby, ariaLabelledby: ariaLabelledbyIds, groupedControlProps: groupedControlProps }, triggerContent));
|
|
60
60
|
return (React.createElement(React.Fragment, null, inlineLabelText ? (React.createElement("div", { className: styles['inline-label-wrapper'] },
|
|
61
61
|
React.createElement("label", { htmlFor: controlId, className: clsx(styles['inline-label'], disabled && styles['inline-label-disabled'], triggerVariant === 'tokens' && styles['inline-label-inline-tokens']) }, inlineLabelText),
|
|
62
62
|
React.createElement("div", { className: styles['inline-label-trigger-wrapper'] }, triggerButton))) : (React.createElement(React.Fragment, null, triggerButton))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../../src/select/parts/trigger.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAE1F,OAAO,aAAa,MAAM,0CAA0C,CAAC;AACrE,OAAO,MAAM,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../../src/select/parts/trigger.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAE1F,OAAO,aAAa,MAAM,0CAA0C,CAAC;AACrE,OAAO,MAAM,MAAM,kCAAkC,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,aAAa,MAAM,sBAAsB,CAAC;AAMjD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAiBrC,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAC9B,CACE,EACE,cAAc,EACd,eAAe,EACf,SAAS,EACT,OAAO,EACP,eAAe,EACf,OAAO,EACP,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Ae,OAAO,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nimport ButtonTrigger from '../../internal/components/button-trigger';\nimport Option from '../../internal/components/option';\nimport { GroupedControlContextProps } from '../../internal/context/control-group-context';\nimport { useVisualRefresh } from '../../internal/hooks/use-visual-mode';\nimport { joinStrings } from '../../internal/utils/strings';\nimport { MultiselectProps } from '../../multiselect/interfaces';\nimport InternalToken from '../../token/internal';\nimport { FormFieldValidationControlProps } from '../../types/form-field';\nimport { OptionDefinition } from '../../types/option';\nimport { SelectProps } from '../interfaces';\nimport { SelectTriggerProps } from '../utils/use-select';\n\nimport styles from './styles.css.js';\n\nexport interface TriggerProps extends FormFieldValidationControlProps {\n placeholder: string | undefined;\n disabled: boolean | undefined;\n readOnly?: boolean;\n triggerProps: SelectTriggerProps;\n selectedOption: OptionDefinition | null;\n inlineLabelText?: string;\n isOpen?: boolean;\n triggerVariant?: SelectProps.TriggerVariant | MultiselectProps.TriggerVariant;\n inFilteringToken?: 'root' | 'nested';\n selectedOptions?: ReadonlyArray<OptionDefinition>;\n renderOption?: SelectProps.SelectOptionItemRenderer;\n groupedControlProps?: GroupedControlContextProps;\n}\n\nconst Trigger = React.forwardRef(\n (\n {\n ariaLabelledby,\n ariaDescribedby,\n controlId,\n invalid,\n inlineLabelText,\n warning,\n triggerProps,\n selectedOption,\n selectedOptions,\n triggerVariant,\n inFilteringToken,\n isOpen,\n placeholder,\n disabled,\n readOnly,\n renderOption,\n groupedControlProps,\n }: TriggerProps,\n ref: React.Ref<HTMLButtonElement>\n ) => {\n const isVisualRefresh = useVisualRefresh();\n const generatedId = useUniqueId();\n const id = controlId ?? generatedId;\n const triggerContentId = useUniqueId('trigger-content-');\n\n let ariaLabelledbyIds = joinStrings(ariaLabelledby, triggerContentId);\n\n let triggerContent = null;\n let hasCustomContent = false;\n if (triggerVariant === 'tokens') {\n if (selectedOptions?.length) {\n triggerContent = (\n <span\n className={clsx(\n styles['inline-token-trigger'],\n disabled && styles['inline-token-trigger--disabled'],\n isVisualRefresh && styles['visual-refresh']\n )}\n >\n <span className={styles['inline-token-list']}>\n {selectedOptions.map(({ label }, i) => (\n <InternalToken key={i} label={label} variant=\"inline\" disabled={disabled} />\n ))}\n </span>\n <span className={styles['inline-token-counter']} id={triggerContentId}>\n <span className={styles['inline-token-hidden-placeholder']}>{placeholder}</span>\n <span>({selectedOptions.length})</span>\n </span>\n </span>\n );\n ariaLabelledbyIds = ariaLabelledby;\n } else {\n triggerContent = (\n <span className={clsx(styles.placeholder, styles.trigger, disabled && styles.disabled)} id={triggerContentId}>\n {placeholder}\n </span>\n );\n }\n } else if (!selectedOption) {\n triggerContent = (\n <span className={clsx(styles.placeholder, styles.trigger, disabled && styles.disabled)} id={triggerContentId}>\n {placeholder}\n </span>\n );\n } else if (triggerVariant === 'option') {\n const triggerCustomContent = renderOption?.({\n filterText: undefined,\n item: {\n type: 'trigger',\n option: selectedOption,\n },\n });\n if (triggerCustomContent) {\n hasCustomContent = true;\n triggerContent = (\n <Option\n customContent={triggerCustomContent}\n id={triggerContentId}\n option={{ ...selectedOption, disabled }}\n triggerVariant={true}\n />\n );\n } else {\n triggerContent = (\n <Option id={triggerContentId} option={{ ...selectedOption, disabled }} triggerVariant={true} />\n );\n }\n } else {\n triggerContent = (\n <span id={triggerContentId} className={styles.trigger}>\n {selectedOption.label || selectedOption.value}\n </span>\n );\n }\n\n const mergedRef = useMergeRefs(triggerProps.ref, ref);\n const triggerButton = (\n <ButtonTrigger\n {...triggerProps}\n id={id}\n ref={mergedRef}\n pressed={!!isOpen}\n disabled={disabled}\n readOnly={readOnly}\n invalid={invalid}\n warning={warning && !invalid}\n inFilteringToken={inFilteringToken}\n inlineTokens={triggerVariant === 'tokens'}\n hasCustomContent={hasCustomContent}\n ariaDescribedby={ariaDescribedby}\n ariaLabelledby={ariaLabelledbyIds}\n groupedControlProps={groupedControlProps}\n >\n {triggerContent}\n </ButtonTrigger>\n );\n return (\n <>\n {inlineLabelText ? (\n <div className={styles['inline-label-wrapper']}>\n <label\n htmlFor={controlId}\n className={clsx(\n styles['inline-label'],\n disabled && styles['inline-label-disabled'],\n triggerVariant === 'tokens' && styles['inline-label-inline-tokens']\n )}\n >\n {inlineLabelText}\n </label>\n <div className={styles['inline-label-trigger-wrapper']}>{triggerButton}</div>\n </div>\n ) : (\n <>{triggerButton}</>\n )}\n </>\n );\n }\n);\n\nexport default Trigger;\n"]}
|
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"with-toolbar": "awsui_with-
|
|
6
|
-
"header": "
|
|
7
|
-
"list--with-icons": "awsui_list--with-
|
|
8
|
-
"header-link": "awsui_header-
|
|
9
|
-
"header-link--has-logo": "awsui_header-link--has-
|
|
10
|
-
"header-link-text": "awsui_header-link-
|
|
11
|
-
"header-logo": "awsui_header-
|
|
12
|
-
"header-logo--stretched": "awsui_header-logo--
|
|
13
|
-
"items-control": "awsui_items-
|
|
14
|
-
"list-container": "awsui_list-
|
|
15
|
-
"divider-header": "awsui_divider-
|
|
16
|
-
"root--collapsed": "awsui_root--
|
|
17
|
-
"list": "
|
|
18
|
-
"list-variant-root": "awsui_list-variant-
|
|
19
|
-
"list-variant-root--first": "awsui_list-variant-root--
|
|
20
|
-
"list-variant-root--collapsed": "awsui_list-variant-root--
|
|
21
|
-
"list-variant-expandable-link-group": "awsui_list-variant-expandable-link-
|
|
22
|
-
"list-variant-expandable-link-group--collapsed": "awsui_list-variant-expandable-link-group--
|
|
23
|
-
"list-variant-section": "awsui_list-variant-
|
|
24
|
-
"list-variant-section--collapsed": "awsui_list-variant-section--
|
|
25
|
-
"list-variant-link-group": "awsui_list-variant-link-
|
|
26
|
-
"list-variant-link-group--collapsed": "awsui_list-variant-link-group--
|
|
27
|
-
"link-group-children": "awsui_link-group-
|
|
28
|
-
"link-group-children--collapsed": "awsui_link-group-children--
|
|
29
|
-
"link-group-children-inner": "awsui_link-group-children-
|
|
30
|
-
"link-group-children-inner--expanded": "awsui_link-group-children-inner--
|
|
31
|
-
"link-group-children-inner--settled": "awsui_link-group-children-inner--
|
|
32
|
-
"list-variant-section-group": "awsui_list-variant-section-
|
|
33
|
-
"list-variant-section-group--collapsed": "awsui_list-variant-section-group--
|
|
34
|
-
"list-item": "awsui_list-
|
|
35
|
-
"list-item--collapsed": "awsui_list-item--
|
|
36
|
-
"list-item--link-with-info": "awsui_list-item--link-with-
|
|
37
|
-
"list-item--group": "awsui_list-item--
|
|
38
|
-
"section": "
|
|
39
|
-
"section-group": "awsui_section-
|
|
40
|
-
"expandable-link-group": "awsui_expandable-link-
|
|
41
|
-
"section--no-ident": "awsui_section--no-
|
|
42
|
-
"section--expand-icon-end": "awsui_section--expand-icon-
|
|
43
|
-
"expandable-link-group--no-ident": "awsui_expandable-link-group--no-
|
|
44
|
-
"expandable-link-group--expand-icon-end": "awsui_expandable-link-group--expand-icon-
|
|
45
|
-
"section--collapsed": "awsui_section--
|
|
46
|
-
"expandable-link-group--collapsed": "awsui_expandable-link-group--
|
|
47
|
-
"expandable-link-group--active": "awsui_expandable-link-group--
|
|
48
|
-
"item-icon": "awsui_item-
|
|
49
|
-
"refresh": "
|
|
50
|
-
"section-header": "awsui_section-
|
|
51
|
-
"section-group-title": "awsui_section-group-
|
|
52
|
-
"section-group-title--collapsed": "awsui_section-group-title--
|
|
53
|
-
"link": "
|
|
54
|
-
"link-active": "awsui_link-
|
|
55
|
-
"link--collapsed": "awsui_link--
|
|
56
|
-
"header-link-active": "awsui_header-link-
|
|
57
|
-
"link-text-wrapper-content": "awsui_link-text-wrapper-
|
|
58
|
-
"link-text-wrapper": "awsui_link-text-
|
|
59
|
-
"link-text-wrapper--collapsed": "awsui_link-text-wrapper--
|
|
60
|
-
"label-text": "awsui_label-
|
|
61
|
-
"label-text--collapsed": "awsui_label-text--
|
|
62
|
-
"info": "
|
|
63
|
-
"item-icon--collapsed": "awsui_item-icon--
|
|
64
|
-
"external-icon": "awsui_external-
|
|
65
|
-
"divider": "
|
|
66
|
-
"divider-default": "awsui_divider-
|
|
67
|
-
"divider--collapsed": "awsui_divider--
|
|
4
|
+
"root": "awsui_root_l0dv0_8nwvw_10",
|
|
5
|
+
"with-toolbar": "awsui_with-toolbar_l0dv0_8nwvw_44",
|
|
6
|
+
"header": "awsui_header_l0dv0_8nwvw_48",
|
|
7
|
+
"list--with-icons": "awsui_list--with-icons_l0dv0_8nwvw_61",
|
|
8
|
+
"header-link": "awsui_header-link_l0dv0_8nwvw_65",
|
|
9
|
+
"header-link--has-logo": "awsui_header-link--has-logo_l0dv0_8nwvw_76",
|
|
10
|
+
"header-link-text": "awsui_header-link-text_l0dv0_8nwvw_76",
|
|
11
|
+
"header-logo": "awsui_header-logo_l0dv0_8nwvw_81",
|
|
12
|
+
"header-logo--stretched": "awsui_header-logo--stretched_l0dv0_8nwvw_87",
|
|
13
|
+
"items-control": "awsui_items-control_l0dv0_8nwvw_92",
|
|
14
|
+
"list-container": "awsui_list-container_l0dv0_8nwvw_97",
|
|
15
|
+
"divider-header": "awsui_divider-header_l0dv0_8nwvw_105",
|
|
16
|
+
"root--collapsed": "awsui_root--collapsed_l0dv0_8nwvw_109",
|
|
17
|
+
"list": "awsui_list_l0dv0_8nwvw_61",
|
|
18
|
+
"list-variant-root": "awsui_list-variant-root_l0dv0_8nwvw_122",
|
|
19
|
+
"list-variant-root--first": "awsui_list-variant-root--first_l0dv0_8nwvw_129",
|
|
20
|
+
"list-variant-root--collapsed": "awsui_list-variant-root--collapsed_l0dv0_8nwvw_132",
|
|
21
|
+
"list-variant-expandable-link-group": "awsui_list-variant-expandable-link-group_l0dv0_8nwvw_139",
|
|
22
|
+
"list-variant-expandable-link-group--collapsed": "awsui_list-variant-expandable-link-group--collapsed_l0dv0_8nwvw_145",
|
|
23
|
+
"list-variant-section": "awsui_list-variant-section_l0dv0_8nwvw_149",
|
|
24
|
+
"list-variant-section--collapsed": "awsui_list-variant-section--collapsed_l0dv0_8nwvw_152",
|
|
25
|
+
"list-variant-link-group": "awsui_list-variant-link-group_l0dv0_8nwvw_161",
|
|
26
|
+
"list-variant-link-group--collapsed": "awsui_list-variant-link-group--collapsed_l0dv0_8nwvw_164",
|
|
27
|
+
"link-group-children": "awsui_link-group-children_l0dv0_8nwvw_168",
|
|
28
|
+
"link-group-children--collapsed": "awsui_link-group-children--collapsed_l0dv0_8nwvw_172",
|
|
29
|
+
"link-group-children-inner": "awsui_link-group-children-inner_l0dv0_8nwvw_176",
|
|
30
|
+
"link-group-children-inner--expanded": "awsui_link-group-children-inner--expanded_l0dv0_8nwvw_182",
|
|
31
|
+
"link-group-children-inner--settled": "awsui_link-group-children-inner--settled_l0dv0_8nwvw_185",
|
|
32
|
+
"list-variant-section-group": "awsui_list-variant-section-group_l0dv0_8nwvw_189",
|
|
33
|
+
"list-variant-section-group--collapsed": "awsui_list-variant-section-group--collapsed_l0dv0_8nwvw_195",
|
|
34
|
+
"list-item": "awsui_list-item_l0dv0_8nwvw_199",
|
|
35
|
+
"list-item--collapsed": "awsui_list-item--collapsed_l0dv0_8nwvw_212",
|
|
36
|
+
"list-item--link-with-info": "awsui_list-item--link-with-info_l0dv0_8nwvw_218",
|
|
37
|
+
"list-item--group": "awsui_list-item--group_l0dv0_8nwvw_223",
|
|
38
|
+
"section": "awsui_section_l0dv0_8nwvw_223",
|
|
39
|
+
"section-group": "awsui_section-group_l0dv0_8nwvw_224",
|
|
40
|
+
"expandable-link-group": "awsui_expandable-link-group_l0dv0_8nwvw_229",
|
|
41
|
+
"section--no-ident": "awsui_section--no-ident_l0dv0_8nwvw_232",
|
|
42
|
+
"section--expand-icon-end": "awsui_section--expand-icon-end_l0dv0_8nwvw_232",
|
|
43
|
+
"expandable-link-group--no-ident": "awsui_expandable-link-group--no-ident_l0dv0_8nwvw_233",
|
|
44
|
+
"expandable-link-group--expand-icon-end": "awsui_expandable-link-group--expand-icon-end_l0dv0_8nwvw_234",
|
|
45
|
+
"section--collapsed": "awsui_section--collapsed_l0dv0_8nwvw_237",
|
|
46
|
+
"expandable-link-group--collapsed": "awsui_expandable-link-group--collapsed_l0dv0_8nwvw_238",
|
|
47
|
+
"expandable-link-group--active": "awsui_expandable-link-group--active_l0dv0_8nwvw_262",
|
|
48
|
+
"item-icon": "awsui_item-icon_l0dv0_8nwvw_266",
|
|
49
|
+
"refresh": "awsui_refresh_l0dv0_8nwvw_283",
|
|
50
|
+
"section-header": "awsui_section-header_l0dv0_8nwvw_304",
|
|
51
|
+
"section-group-title": "awsui_section-group-title_l0dv0_8nwvw_319",
|
|
52
|
+
"section-group-title--collapsed": "awsui_section-group-title--collapsed_l0dv0_8nwvw_327",
|
|
53
|
+
"link": "awsui_link_l0dv0_8nwvw_168",
|
|
54
|
+
"link-active": "awsui_link-active_l0dv0_8nwvw_359",
|
|
55
|
+
"link--collapsed": "awsui_link--collapsed_l0dv0_8nwvw_366",
|
|
56
|
+
"header-link-active": "awsui_header-link-active_l0dv0_8nwvw_434",
|
|
57
|
+
"link-text-wrapper-content": "awsui_link-text-wrapper-content_l0dv0_8nwvw_463",
|
|
58
|
+
"link-text-wrapper": "awsui_link-text-wrapper_l0dv0_8nwvw_463",
|
|
59
|
+
"link-text-wrapper--collapsed": "awsui_link-text-wrapper--collapsed_l0dv0_8nwvw_477",
|
|
60
|
+
"label-text": "awsui_label-text_l0dv0_8nwvw_482",
|
|
61
|
+
"label-text--collapsed": "awsui_label-text--collapsed_l0dv0_8nwvw_489",
|
|
62
|
+
"info": "awsui_info_l0dv0_8nwvw_495",
|
|
63
|
+
"item-icon--collapsed": "awsui_item-icon--collapsed_l0dv0_8nwvw_504",
|
|
64
|
+
"external-icon": "awsui_external-icon_l0dv0_8nwvw_508",
|
|
65
|
+
"divider": "awsui_divider_l0dv0_8nwvw_105",
|
|
66
|
+
"divider-default": "awsui_divider-default_l0dv0_8nwvw_516",
|
|
67
|
+
"divider--collapsed": "awsui_divider--collapsed_l0dv0_8nwvw_520"
|
|
68
68
|
};
|
|
69
69
|
|