@transferwise/components 0.0.0-experimental-3b84ee4 → 0.0.0-experimental-8a06fb3
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/build/index.js +8 -7
- package/build/index.js.map +1 -1
- package/build/index.mjs +9 -8
- package/build/index.mjs.map +1 -1
- package/build/main.css +66 -13
- package/build/styles/main.css +66 -13
- package/build/styles/selectOption/SelectOption.css +1 -1
- package/build/styles/uploadInput/UploadInput.css +18 -1
- package/build/styles/uploadInput/uploadButton/UploadButton.css +4 -0
- package/build/styles/uploadInput/uploadItem/UploadItem.css +43 -11
- package/build/types/inlineAlert/InlineAlert.d.ts +2 -2
- package/build/types/inlineAlert/InlineAlert.d.ts.map +1 -1
- package/build/types/selectOption/SelectOption.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/inlineAlert/InlineAlert.tsx +1 -1
- package/src/main.css +66 -13
- package/src/selectOption/SelectOption.css +1 -1
- package/src/selectOption/SelectOption.less +1 -1
- package/src/selectOption/SelectOption.spec.tsx +6 -18
- package/src/selectOption/SelectOption.story.tsx +41 -2
- package/src/selectOption/SelectOption.tsx +9 -11
- package/src/uploadInput/UploadInput.css +18 -1
- package/src/uploadInput/UploadInput.less +17 -1
- package/src/uploadInput/UploadInput.tests.story.tsx +13 -2
- package/src/uploadInput/uploadButton/UploadButton.css +4 -0
- package/src/uploadInput/uploadButton/UploadButton.less +5 -0
- package/src/uploadInput/uploadItem/UploadItem.css +43 -11
- package/src/uploadInput/uploadItem/UploadItem.less +61 -17
package/build/index.js
CHANGED
|
@@ -2023,9 +2023,6 @@ function SelectOption({
|
|
|
2023
2023
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2024
2024
|
children: [/*#__PURE__*/jsxRuntime.jsx(Option$2, {
|
|
2025
2025
|
ref: rootRef,
|
|
2026
|
-
"aria-haspopup": "dialog",
|
|
2027
|
-
"aria-expanded": showOptions,
|
|
2028
|
-
"aria-labelledby": ariaLabelledBy,
|
|
2029
2026
|
showMediaAtAllSizes: true,
|
|
2030
2027
|
disabled: disabled,
|
|
2031
2028
|
decision: false,
|
|
@@ -2036,14 +2033,18 @@ function SelectOption({
|
|
|
2036
2033
|
content: (hasSelected ? selected : placeholder).content,
|
|
2037
2034
|
className: classNames__default.default('np-select-option', 'clickable', hasSelected ? 'np-select-option-selected' : 'np-select-option-placeholder', props.className),
|
|
2038
2035
|
button: /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
2036
|
+
...inputAttributes,
|
|
2039
2037
|
type: "button",
|
|
2040
2038
|
disabled: disabled,
|
|
2041
|
-
|
|
2039
|
+
"aria-labelledby": ariaLabelledBy,
|
|
2040
|
+
"aria-haspopup": "dialog",
|
|
2041
|
+
"aria-expanded": showOptions,
|
|
2042
|
+
className: hasSelected ? 'btn-unstyled' : 'np-action-btn',
|
|
2042
2043
|
"aria-label": hasSelected ? undefined : props['aria-label'],
|
|
2043
2044
|
onClick: handleOnClick(true),
|
|
2044
|
-
children: hasSelected ? /*#__PURE__*/jsxRuntime.jsx(
|
|
2045
|
-
|
|
2046
|
-
})
|
|
2045
|
+
children: hasSelected ? /*#__PURE__*/jsxRuntime.jsx(icons.ChevronDown, {
|
|
2046
|
+
title: intl.formatMessage(messages$c.actionLabel)
|
|
2047
|
+
}) : placeholder.actionLabel || intl.formatMessage(messages$c.actionLabel)
|
|
2047
2048
|
})
|
|
2048
2049
|
}), /*#__PURE__*/jsxRuntime.jsx(ResponsivePanel, {
|
|
2049
2050
|
anchorWidth: true,
|