@onesy/ui-react 1.0.186 → 1.0.187
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/Interaction/Interaction.js +10 -10
- package/esm/Interaction/Interaction.js +10 -10
- package/esm/index.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
|
@@ -71,15 +71,15 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
71
71
|
}),
|
|
72
72
|
borderRadius: theme.methods.shape.radius.value(4e4, 'px'),
|
|
73
73
|
'&.entering': {
|
|
74
|
-
opacity: theme.palette.visual_contrast.
|
|
74
|
+
opacity: theme.palette.visual_contrast.low.opacity.press,
|
|
75
75
|
transform: 'scale(1)'
|
|
76
76
|
},
|
|
77
77
|
'&.entered': {
|
|
78
|
-
opacity: theme.palette.visual_contrast.
|
|
78
|
+
opacity: theme.palette.visual_contrast.low.opacity.press,
|
|
79
79
|
transform: 'scale(1)'
|
|
80
80
|
},
|
|
81
81
|
'&.exit': {
|
|
82
|
-
opacity: theme.palette.visual_contrast.
|
|
82
|
+
opacity: theme.palette.visual_contrast.low.opacity.press,
|
|
83
83
|
transform: 'scale(1)'
|
|
84
84
|
},
|
|
85
85
|
'&.exiting': {
|
|
@@ -93,16 +93,16 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
93
93
|
}),
|
|
94
94
|
pulse: {
|
|
95
95
|
'&.entering': {
|
|
96
|
-
opacity: theme.palette.visual_contrast.
|
|
96
|
+
opacity: theme.palette.visual_contrast.low.opacity.press,
|
|
97
97
|
transform: 'scale(0.77)'
|
|
98
98
|
},
|
|
99
99
|
'&.entered': {
|
|
100
|
-
opacity: theme.palette.visual_contrast.
|
|
100
|
+
opacity: theme.palette.visual_contrast.low.opacity.press,
|
|
101
101
|
transform: 'scale(0.77)',
|
|
102
102
|
animation: `$pulse 2400ms ${theme.transitions.timing_function.emphasized} 240ms infinite`
|
|
103
103
|
},
|
|
104
104
|
'&.exit': {
|
|
105
|
-
opacity: theme.palette.visual_contrast.
|
|
105
|
+
opacity: theme.palette.visual_contrast.low.opacity.press,
|
|
106
106
|
transform: 'scale(0.7)'
|
|
107
107
|
},
|
|
108
108
|
'&.exiting': {
|
|
@@ -122,13 +122,13 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
122
122
|
timing_function: 'standard'
|
|
123
123
|
}),
|
|
124
124
|
'&.entering': {
|
|
125
|
-
opacity: theme.palette.visual_contrast.
|
|
125
|
+
opacity: theme.palette.visual_contrast.low.opacity.press
|
|
126
126
|
},
|
|
127
127
|
'&.entered': {
|
|
128
|
-
opacity: theme.palette.visual_contrast.
|
|
128
|
+
opacity: theme.palette.visual_contrast.low.opacity.press
|
|
129
129
|
},
|
|
130
130
|
'&.exit': {
|
|
131
|
-
opacity: theme.palette.visual_contrast.
|
|
131
|
+
opacity: theme.palette.visual_contrast.low.opacity.press
|
|
132
132
|
},
|
|
133
133
|
'&.exiting': {
|
|
134
134
|
opacity: '0'
|
|
@@ -424,7 +424,7 @@ const Interaction = props_ => {
|
|
|
424
424
|
children: status => /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
425
425
|
className: (0, _styleReact.classNames)([(0, _.staticClassName)('Interaction', theme) && ['onesy-Interaction-border'], classes.border]),
|
|
426
426
|
style: {
|
|
427
|
-
opacity: (status === null || status === void 0 ? void 0 : status.indexOf('enter')) > -1 ? theme.palette.visual_contrast.
|
|
427
|
+
opacity: (status === null || status === void 0 ? void 0 : status.indexOf('enter')) > -1 ? theme.palette.visual_contrast.low.opacity.press : 0,
|
|
428
428
|
transition: (status === null || status === void 0 ? void 0 : status.indexOf('exit')) > -1 ? theme.methods.transitions.make('opacity', {
|
|
429
429
|
duration: 'complex',
|
|
430
430
|
timing_function: 'standard'
|
|
@@ -64,15 +64,15 @@ const useStyle = styleMethod(theme => ({
|
|
|
64
64
|
}),
|
|
65
65
|
borderRadius: theme.methods.shape.radius.value(4e4, 'px'),
|
|
66
66
|
'&.entering': {
|
|
67
|
-
opacity: theme.palette.visual_contrast.
|
|
67
|
+
opacity: theme.palette.visual_contrast.low.opacity.press,
|
|
68
68
|
transform: 'scale(1)'
|
|
69
69
|
},
|
|
70
70
|
'&.entered': {
|
|
71
|
-
opacity: theme.palette.visual_contrast.
|
|
71
|
+
opacity: theme.palette.visual_contrast.low.opacity.press,
|
|
72
72
|
transform: 'scale(1)'
|
|
73
73
|
},
|
|
74
74
|
'&.exit': {
|
|
75
|
-
opacity: theme.palette.visual_contrast.
|
|
75
|
+
opacity: theme.palette.visual_contrast.low.opacity.press,
|
|
76
76
|
transform: 'scale(1)'
|
|
77
77
|
},
|
|
78
78
|
'&.exiting': {
|
|
@@ -86,16 +86,16 @@ const useStyle = styleMethod(theme => ({
|
|
|
86
86
|
}),
|
|
87
87
|
pulse: {
|
|
88
88
|
'&.entering': {
|
|
89
|
-
opacity: theme.palette.visual_contrast.
|
|
89
|
+
opacity: theme.palette.visual_contrast.low.opacity.press,
|
|
90
90
|
transform: 'scale(0.77)'
|
|
91
91
|
},
|
|
92
92
|
'&.entered': {
|
|
93
|
-
opacity: theme.palette.visual_contrast.
|
|
93
|
+
opacity: theme.palette.visual_contrast.low.opacity.press,
|
|
94
94
|
transform: 'scale(0.77)',
|
|
95
95
|
animation: `$pulse 2400ms ${theme.transitions.timing_function.emphasized} 240ms infinite`
|
|
96
96
|
},
|
|
97
97
|
'&.exit': {
|
|
98
|
-
opacity: theme.palette.visual_contrast.
|
|
98
|
+
opacity: theme.palette.visual_contrast.low.opacity.press,
|
|
99
99
|
transform: 'scale(0.7)'
|
|
100
100
|
},
|
|
101
101
|
'&.exiting': {
|
|
@@ -115,13 +115,13 @@ const useStyle = styleMethod(theme => ({
|
|
|
115
115
|
timing_function: 'standard'
|
|
116
116
|
}),
|
|
117
117
|
'&.entering': {
|
|
118
|
-
opacity: theme.palette.visual_contrast.
|
|
118
|
+
opacity: theme.palette.visual_contrast.low.opacity.press
|
|
119
119
|
},
|
|
120
120
|
'&.entered': {
|
|
121
|
-
opacity: theme.palette.visual_contrast.
|
|
121
|
+
opacity: theme.palette.visual_contrast.low.opacity.press
|
|
122
122
|
},
|
|
123
123
|
'&.exit': {
|
|
124
|
-
opacity: theme.palette.visual_contrast.
|
|
124
|
+
opacity: theme.palette.visual_contrast.low.opacity.press
|
|
125
125
|
},
|
|
126
126
|
'&.exiting': {
|
|
127
127
|
opacity: '0'
|
|
@@ -413,7 +413,7 @@ const Interaction = props_ => {
|
|
|
413
413
|
children: status => /*#__PURE__*/_jsx("span", {
|
|
414
414
|
className: classNames([staticClassName('Interaction', theme) && ['onesy-Interaction-border'], classes.border]),
|
|
415
415
|
style: {
|
|
416
|
-
opacity: status?.indexOf('enter') > -1 ? theme.palette.visual_contrast.
|
|
416
|
+
opacity: status?.indexOf('enter') > -1 ? theme.palette.visual_contrast.low.opacity.press : 0,
|
|
417
417
|
transition: status?.indexOf('exit') > -1 ? theme.methods.transitions.make('opacity', {
|
|
418
418
|
duration: 'complex',
|
|
419
419
|
timing_function: 'standard'
|
package/esm/index.js
CHANGED
package/index.js
CHANGED