dirk-cfx-react 1.1.8 → 1.1.10

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
@@ -2,7 +2,7 @@ import React3, { createContext, useEffect, useRef, useState, useContext, useMemo
2
2
  import { create, useStore, createStore } from 'zustand';
3
3
  import axios from 'axios';
4
4
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
5
- import { Flex, Text, Image as Image$1, createTheme, Box, Code, useMantineTheme, Progress, RingProgress, Button, MantineProvider, BackgroundImage } from '@mantine/core';
5
+ import { Flex, Text, Image as Image$1, createTheme, Box, Code, useMantineTheme, alpha, Progress, RingProgress, Button, MantineProvider, BackgroundImage } from '@mantine/core';
6
6
  import { jsxs, jsx } from 'react/jsx-runtime';
7
7
  import { motion, AnimatePresence, useMotionValue } from 'framer-motion';
8
8
  import clickSoundUrl from './click_sound-PNCRRTM4.mp3';
@@ -1144,7 +1144,7 @@ function InputContainer(props) {
1144
1144
  direction: "column",
1145
1145
  h: props.h,
1146
1146
  gap: props.title ? "xs" : 0,
1147
- bg: props.bg || colorWithAlpha("var(--mantine-color-dark-9)", 0.65),
1147
+ bg: props.bg || alpha(theme2.colors.dark[9], 0.65),
1148
1148
  p: props.p || "sm",
1149
1149
  style: {
1150
1150
  borderRadius: theme2.radius.xs,
@@ -2238,6 +2238,20 @@ var error = {
2238
2238
  fontSize: "var(--mantine-font-size-xs)",
2239
2239
  fontFamily: "Akrobat Regular"
2240
2240
  };
2241
+ var description = {
2242
+ fontSize: "var(--mantine-font-size-xs)"
2243
+ };
2244
+ var genericInputStyles = {
2245
+ styles: {
2246
+ label,
2247
+ error,
2248
+ description,
2249
+ input: {
2250
+ backgroundColor: "rgba(76, 76, 76, 0.3)",
2251
+ minHeight: "4vh"
2252
+ }
2253
+ }
2254
+ };
2241
2255
  var theme = createTheme({
2242
2256
  primaryColor: "dirk",
2243
2257
  primaryShade: 9,
@@ -2291,27 +2305,14 @@ var theme = createTheme({
2291
2305
  }
2292
2306
  }
2293
2307
  },
2294
- Textarea: {
2295
- styles: {
2296
- label,
2297
- error
2298
- }
2299
- },
2300
- Button: {
2301
- styles: {
2302
- root: {
2303
- fontSize: "var(--mantine-font-size-xs)"
2304
- }
2305
- }
2306
- },
2307
- Select: {
2308
- styles: {
2309
- label,
2310
- input: {
2311
- padding: "var(--mantine-spacing-sm)"
2312
- }
2313
- }
2314
- },
2308
+ Input: genericInputStyles,
2309
+ TextInput: genericInputStyles,
2310
+ NumberInput: genericInputStyles,
2311
+ Select: genericInputStyles,
2312
+ MultiSelect: genericInputStyles,
2313
+ Textarea: genericInputStyles,
2314
+ ColorInput: genericInputStyles,
2315
+ DateInput: genericInputStyles,
2315
2316
  Pill: {
2316
2317
  styles: (theme2) => ({
2317
2318
  root: {
@@ -2323,52 +2324,12 @@ var theme = createTheme({
2323
2324
  textTransform: "uppercase",
2324
2325
  letterSpacing: "0.05em",
2325
2326
  fontFamily: "Akrobat Bold",
2326
- fontSize: theme2.fontSizes.xs,
2327
+ fontSize: "1.25vh",
2327
2328
  borderRadius: theme2.defaultRadius,
2328
- padding: `${theme2.spacing.xs} ${theme2.spacing.sm}`
2329
+ paddingBottom: "0.5vh",
2330
+ paddingTop: "0.5vh"
2329
2331
  }
2330
2332
  })
2331
- },
2332
- Input: {
2333
- styles: {
2334
- label,
2335
- error,
2336
- input: {
2337
- padding: "var(--mantine-spacing-sm)",
2338
- backgroundColor: "rgba(76, 76, 76, 0.3)"
2339
- }
2340
- }
2341
- },
2342
- ColorInput: {
2343
- styles: {
2344
- label,
2345
- input: {
2346
- padding: "var(--mantine-spacing-sm)"
2347
- }
2348
- }
2349
- },
2350
- TextInput: {
2351
- styles: {
2352
- label,
2353
- wrapper: {},
2354
- section: {
2355
- marginRight: "0.2vh"
2356
- },
2357
- input: {
2358
- padding: "var(--mantine-spacing-sm)"
2359
- }
2360
- }
2361
- },
2362
- NumberInput: {
2363
- styles: {
2364
- label,
2365
- input: {
2366
- padding: "var(--mantine-spacing-sm)"
2367
- },
2368
- section: {
2369
- pointerEvents: "all"
2370
- }
2371
- }
2372
2333
  }
2373
2334
  },
2374
2335
  colors: {