@transferwise/components 0.0.0-experimental-fa6ab41 → 0.0.0-experimental-39aaa59
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.esm.js +7 -6
- package/build/index.esm.js.map +1 -1
- package/build/index.js +7 -6
- package/build/index.js.map +1 -1
- package/build/main.css +1 -1
- package/build/styles/inputs/SelectInput.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/types/inputs/SelectInput.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/inputs/SelectInput.css +1 -1
- package/src/inputs/SelectInput.less +6 -0
- package/src/inputs/SelectInput.story.tsx +6 -0
- package/src/inputs/SelectInput.tsx +8 -4
- package/src/main.css +1 -1
package/build/index.esm.js
CHANGED
|
@@ -6924,18 +6924,19 @@ function SelectInputOption({
|
|
|
6924
6924
|
disabled: disabled,
|
|
6925
6925
|
className: ({
|
|
6926
6926
|
active,
|
|
6927
|
+
selected,
|
|
6927
6928
|
disabled: uiDisabled
|
|
6928
|
-
}) => classNames('np-select-input-option-container np-text-body-large', active && 'np-select-input-option-container--active', uiDisabled && 'np-select-input-option-container--disabled'),
|
|
6929
|
+
}) => classNames('np-select-input-option-container np-text-body-large', active && 'np-select-input-option-container--active', selected && 'np-select-input-option-container--selected', uiDisabled && 'np-select-input-option-container--disabled'),
|
|
6929
6930
|
children: ({
|
|
6930
6931
|
selected
|
|
6931
6932
|
}) => /*#__PURE__*/jsxs(Fragment, {
|
|
6932
|
-
children: [
|
|
6933
|
-
size: 16,
|
|
6934
|
-
className: classNames(!selected && 'np-select-input-option-check--not-selected')
|
|
6935
|
-
}) : null, /*#__PURE__*/jsx("div", {
|
|
6933
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
6936
6934
|
className: "np-select-input-option",
|
|
6937
6935
|
children: children
|
|
6938
|
-
})
|
|
6936
|
+
}), cachedParentHasValue ? /*#__PURE__*/jsx(Check, {
|
|
6937
|
+
size: 24,
|
|
6938
|
+
className: classNames('np-select-input-option-check', !selected && 'np-select-input-option-check--not-selected')
|
|
6939
|
+
}) : null]
|
|
6939
6940
|
})
|
|
6940
6941
|
});
|
|
6941
6942
|
}
|