@ultraviolet/ui 1.31.6 → 1.31.7
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.
|
@@ -85,16 +85,10 @@ const getSelectStyles = ({
|
|
|
85
85
|
...(!state.isDisabled && {
|
|
86
86
|
':focus-within': {
|
|
87
87
|
borderColor: error ? theme.colors.danger.border : theme.colors.primary.border,
|
|
88
|
-
boxShadow: error ? theme.shadows.focusDanger : theme.shadows.focusPrimary
|
|
89
|
-
svg: {
|
|
90
|
-
fill: error ? theme.colors.danger.text : theme.colors.primary.text
|
|
91
|
-
}
|
|
88
|
+
boxShadow: error ? theme.shadows.focusDanger : theme.shadows.focusPrimary
|
|
92
89
|
},
|
|
93
90
|
':hover': {
|
|
94
|
-
borderColor: error ? theme.colors.danger.borderHover : theme.colors.primary.borderHover
|
|
95
|
-
svg: {
|
|
96
|
-
fill: error ? theme.colors.danger.text : theme.colors.primary.text
|
|
97
|
-
}
|
|
91
|
+
borderColor: error ? theme.colors.danger.borderHover : theme.colors.primary.borderHover
|
|
98
92
|
}
|
|
99
93
|
}),
|
|
100
94
|
...(customStyle(state)?.['control'] || {}),
|
|
@@ -17,7 +17,7 @@ const TOAST_ICONS = {
|
|
|
17
17
|
danger: 'alert'
|
|
18
18
|
};
|
|
19
19
|
const styles = {
|
|
20
|
-
toast: theme => /*#__PURE__*/css("border-radius:", theme.radii.default, ";box-shadow:", theme.shadows.dropdown, ";min-height:44px;margin-bottom:", theme.space['2'], ";", PREFIX, "__toast-body{margin:0;padding:0;}&", PREFIX, "__toast--success{background-color:", theme.colors.success.background, ";color:", theme.colors.success.text, ";", PREFIX, "__progress-bar{background-color:", theme.colors.success.backgroundStrong, ";}}&", PREFIX, "__toast--info{background-color:", theme.colors.info.background, ";color:", theme.colors.info.text, ";", PREFIX, "__progress-bar{background-color:", theme.colors.info.backgroundStrong, ";}}&", PREFIX, "__toast--error{background-color:", theme.colors.danger.background, ";color:", theme.colors.danger.text, ";", PREFIX, "__progress-bar{background-color:", theme.colors.danger.backgroundStrong, ";}}")
|
|
20
|
+
toast: theme => /*#__PURE__*/css("border-radius:", theme.radii.default, ";box-shadow:", theme.shadows.dropdown, ";min-height:44px;margin-bottom:", theme.space['2'], ";", PREFIX, "__toast-body{margin:0;padding:0;}&", PREFIX, "__toast--success{background-color:", theme.colors.success.background, ";color:", theme.colors.success.text, ";", PREFIX, "__progress-bar--success{background-color:", theme.colors.success.backgroundStrong, ";height:4px;}}&", PREFIX, "__toast--info{background-color:", theme.colors.info.background, ";color:", theme.colors.info.text, ";", PREFIX, "__progress-bar--info{background-color:", theme.colors.info.backgroundStrong, ";height:4px;}}&", PREFIX, "__toast--error{background-color:", theme.colors.danger.background, ";color:", theme.colors.danger.text, ";", PREFIX, "__progress-bar--danger{background-color:", theme.colors.danger.backgroundStrong, ";height:4px;}}")
|
|
21
21
|
};
|
|
22
22
|
const CloseButtonWrapper = /*#__PURE__*/_styled("button", {
|
|
23
23
|
target: "e1eb63991"
|
|
@@ -80,7 +80,7 @@ const toast = {
|
|
|
80
80
|
const ToastContainer = ({
|
|
81
81
|
newestOnTop,
|
|
82
82
|
limit,
|
|
83
|
-
position,
|
|
83
|
+
position = 'top-right',
|
|
84
84
|
'data-testid': dataTestId
|
|
85
85
|
}) => {
|
|
86
86
|
const theme = useTheme();
|