dirk-cfx-react 1.1.15 → 1.1.16
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/dist/components/index.cjs +5 -5
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +5 -5
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -168,11 +168,11 @@ var colorNames = {
|
|
|
168
168
|
Yellow: { r: 255, g: 255, b: 0 },
|
|
169
169
|
YellowGreen: { r: 154, g: 205, b: 50 }
|
|
170
170
|
};
|
|
171
|
-
function colorWithAlpha(color,
|
|
171
|
+
function colorWithAlpha(color, alpha5) {
|
|
172
172
|
const lowerCasedColor = color.toLowerCase();
|
|
173
173
|
if (colorNames[lowerCasedColor]) {
|
|
174
174
|
const rgb = colorNames[lowerCasedColor];
|
|
175
|
-
return `rgba(${rgb.r}, ${rgb.g}, ${rgb.b}, ${
|
|
175
|
+
return `rgba(${rgb.r}, ${rgb.g}, ${rgb.b}, ${alpha5})`;
|
|
176
176
|
}
|
|
177
177
|
if (/^#([A-Fa-f0-9]{6})$/.test(color)) {
|
|
178
178
|
const hex = color.slice(1);
|
|
@@ -180,12 +180,12 @@ function colorWithAlpha(color, alpha4) {
|
|
|
180
180
|
const r = bigint >> 16 & 255;
|
|
181
181
|
const g = bigint >> 8 & 255;
|
|
182
182
|
const b = bigint & 255;
|
|
183
|
-
return `rgba(${r}, ${g}, ${b}, ${
|
|
183
|
+
return `rgba(${r}, ${g}, ${b}, ${alpha5})`;
|
|
184
184
|
}
|
|
185
185
|
if (/^rgb\((\d{1,3}), (\d{1,3}), (\d{1,3})\)$/.test(color)) {
|
|
186
186
|
const result = color.match(/^rgb\((\d{1,3}), (\d{1,3}), (\d{1,3})\)$/);
|
|
187
187
|
if (result) {
|
|
188
|
-
return `rgba(${result[1]}, ${result[2]}, ${result[3]}, ${
|
|
188
|
+
return `rgba(${result[1]}, ${result[2]}, ${result[3]}, ${alpha5})`;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
return color;
|
|
@@ -1830,7 +1830,7 @@ function Modal() {
|
|
|
1830
1830
|
boxShadow: theme2.shadows.xl,
|
|
1831
1831
|
zIndex: 2100
|
|
1832
1832
|
},
|
|
1833
|
-
bg:
|
|
1833
|
+
bg: alpha(theme2.colors.dark[9], 0.9),
|
|
1834
1834
|
initial: { scale: 0.8, opacity: 0, transform: "translate(-50%, -50%)" },
|
|
1835
1835
|
animate: { scale: 1, opacity: 1, transform: "translate(-50%, -50%)" },
|
|
1836
1836
|
exit: { scale: 0.8, opacity: 0, transform: "translate(-50%, -50%)" },
|