dirk-cfx-react 1.1.15 → 1.1.17

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/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, alpha4) {
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}, ${alpha4})`;
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}, ${alpha4})`;
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]}, ${alpha4})`;
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: "rgba(48, 48, 48, 0.84)",
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%)" },
@@ -2067,7 +2067,7 @@ function createFormStore(initialValues, validationRules, onSubmit) {
2067
2067
  changedFields: Array.from(changed),
2068
2068
  changedCount: changed.size
2069
2069
  });
2070
- if (options?.validate === false) return;
2070
+ if (!options?.validate) return;
2071
2071
  const rule = flatRules[path];
2072
2072
  if (!rule) return;
2073
2073
  Promise.resolve(runRule(rule, value, newValues)).then((error2) => {