dirk-cfx-react 1.0.64 → 1.1.1

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
@@ -164,11 +164,11 @@ var colorNames = {
164
164
  Yellow: { r: 255, g: 255, b: 0 },
165
165
  YellowGreen: { r: 154, g: 205, b: 50 }
166
166
  };
167
- function colorWithAlpha(color, alpha3) {
167
+ function colorWithAlpha(color, alpha4) {
168
168
  const lowerCasedColor = color.toLowerCase();
169
169
  if (colorNames[lowerCasedColor]) {
170
170
  const rgb = colorNames[lowerCasedColor];
171
- return `rgba(${rgb.r}, ${rgb.g}, ${rgb.b}, ${alpha3})`;
171
+ return `rgba(${rgb.r}, ${rgb.g}, ${rgb.b}, ${alpha4})`;
172
172
  }
173
173
  if (/^#([A-Fa-f0-9]{6})$/.test(color)) {
174
174
  const hex = color.slice(1);
@@ -176,12 +176,12 @@ function colorWithAlpha(color, alpha3) {
176
176
  const r = bigint >> 16 & 255;
177
177
  const g = bigint >> 8 & 255;
178
178
  const b = bigint & 255;
179
- return `rgba(${r}, ${g}, ${b}, ${alpha3})`;
179
+ return `rgba(${r}, ${g}, ${b}, ${alpha4})`;
180
180
  }
181
181
  if (/^rgb\((\d{1,3}), (\d{1,3}), (\d{1,3})\)$/.test(color)) {
182
182
  const result = color.match(/^rgb\((\d{1,3}), (\d{1,3}), (\d{1,3})\)$/);
183
183
  if (result) {
184
- return `rgba(${result[1]}, ${result[2]}, ${result[3]}, ${alpha3})`;
184
+ return `rgba(${result[1]}, ${result[2]}, ${result[3]}, ${alpha4})`;
185
185
  }
186
186
  }
187
187
  return color;
@@ -1115,13 +1115,13 @@ function InputContainer(props) {
1115
1115
  direction: "column",
1116
1116
  h: props.h,
1117
1117
  gap: props.title ? "xs" : 0,
1118
- bg: props.bg || "linear-gradient(180deg, rgba(30, 30, 30, 0.82) 0%, rgba(30, 30, 30, 0.3) 50%, rgba(30, 30, 30, 0.6) 100%)",
1118
+ bg: props.bg || alpha("var(--mantine-color-dark-9)", 0.65),
1119
1119
  p: props.p || "sm",
1120
1120
  style: {
1121
1121
  borderRadius: theme2.radius.xs,
1122
1122
  boxShadow: theme2.shadows.sm,
1123
1123
  overflow: "hidden",
1124
- outline: props.error ? `1px solid rgba(255, 100, 100, 0.8)` : "0.2vh solid rgba(255,255,255,0.1)",
1124
+ border: props.error ? `1px solid rgba(255, 100, 100, 0.8)` : "1px solid var(--mantine-color-dark-7)",
1125
1125
  ...props.style
1126
1126
  },
1127
1127
  variants: props.variants,
@@ -2151,8 +2151,8 @@ var theme = createTheme({
2151
2151
  defaultRadius: "xs",
2152
2152
  fontFamily: "Akrobat Regular, sans-serif",
2153
2153
  radius: {
2154
- xxs: "0.2vh",
2155
- xs: "0.4vh",
2154
+ xxs: "0.3vh",
2155
+ xs: "0.5vh",
2156
2156
  sm: "0.75vh",
2157
2157
  md: "1vh",
2158
2158
  lg: "1.5vh",
@@ -2213,6 +2213,7 @@ var theme = createTheme({
2213
2213
  },
2214
2214
  Select: {
2215
2215
  styles: {
2216
+ label,
2216
2217
  input: {
2217
2218
  padding: "var(--mantine-spacing-sm)"
2218
2219
  }
@@ -2331,6 +2332,7 @@ function DirkProvider(props) {
2331
2332
  ...props.themeOverride
2332
2333
  // Props theme will override/extend the entire theme
2333
2334
  }), [primaryColor, primaryShade, customTheme, props.themeOverride]);
2335
+ console.log("created merged theme:");
2334
2336
  console.log(mergedTheme);
2335
2337
  useEffect(() => {
2336
2338
  document.fonts.ready.then(() => {