@m4l/gclick 0.0.2 → 0.1.0

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.
Files changed (99) hide show
  1. package/@types/types.d.ts +15 -7
  2. package/components/GaugeCircular/GaugeCircular.d.ts +8 -0
  3. package/components/GaugeCircular/GaugeCircular.js +30 -0
  4. package/components/GaugeCircular/GaugeCircular.styles.d.ts +2 -0
  5. package/components/GaugeCircular/GaugeCircular.styles.js +52 -0
  6. package/components/GaugeCircular/constants.d.ts +2 -0
  7. package/components/GaugeCircular/constants.js +8 -0
  8. package/components/GaugeCircular/index.d.ts +1 -0
  9. package/components/GaugeCircular/slots/GaugeCircularEnum.d.ts +5 -0
  10. package/components/GaugeCircular/slots/GaugeCircularEnum.js +9 -0
  11. package/components/GaugeCircular/slots/GaugeCircularSlots.d.ts +3 -0
  12. package/components/GaugeCircular/slots/GaugeCircularSlots.js +21 -0
  13. package/components/GaugeCircular/subcomponents/CircularProgress/CircularProgress.d.ts +8 -0
  14. package/components/GaugeCircular/subcomponents/CircularProgress/CircularProgress.js +44 -0
  15. package/components/GaugeCircular/subcomponents/CircularProgress/constants.d.ts +2 -0
  16. package/components/GaugeCircular/subcomponents/CircularProgress/constants.js +6 -0
  17. package/components/GaugeCircular/subcomponents/CircularProgress/index.d.ts +1 -0
  18. package/components/GaugeCircular/test/GaugeCircular.test.d.ts +1 -0
  19. package/components/GaugeCircular/types.d.ts +25 -0
  20. package/components/index.d.ts +1 -1
  21. package/components/indicators/IndicatorBattery/IndicatorBattery.d.ts +7 -0
  22. package/components/indicators/IndicatorBattery/IndicatorBattery.js +102 -0
  23. package/components/indicators/IndicatorBattery/IndicatorBattery.styles.d.ts +2 -0
  24. package/components/indicators/IndicatorBattery/IndicatorBattery.styles.js +110 -0
  25. package/components/indicators/IndicatorBattery/constants.d.ts +2 -0
  26. package/components/indicators/IndicatorBattery/constants.js +8 -0
  27. package/components/indicators/IndicatorBattery/dictionary.d.ts +14 -0
  28. package/components/indicators/IndicatorBattery/dictionary.js +16 -0
  29. package/components/indicators/IndicatorBattery/hooks/useBatteryStatus/constants.d.ts +9 -0
  30. package/components/indicators/IndicatorBattery/hooks/useBatteryStatus/constants.js +35 -0
  31. package/components/indicators/IndicatorBattery/hooks/useBatteryStatus/test/useBattery.test.d.ts +1 -0
  32. package/components/indicators/IndicatorBattery/hooks/useBatteryStatus/types.d.ts +38 -0
  33. package/components/indicators/IndicatorBattery/hooks/useBatteryStatus/useBatteryStatus.d.ts +7 -0
  34. package/components/indicators/IndicatorBattery/hooks/useBatteryStatus/useBatteryStatus.js +68 -0
  35. package/components/indicators/IndicatorBattery/icons.d.ts +4 -0
  36. package/components/indicators/IndicatorBattery/icons.js +7 -0
  37. package/components/indicators/IndicatorBattery/index.d.ts +1 -0
  38. package/components/indicators/IndicatorBattery/index.js +1 -0
  39. package/components/indicators/IndicatorBattery/slots/IndicatorBaterySlots.d.ts +27 -0
  40. package/components/indicators/IndicatorBattery/slots/IndicatorBaterySlots.js +52 -0
  41. package/components/indicators/IndicatorBattery/slots/IndicatorBatteryEnum.d.ts +11 -0
  42. package/components/indicators/IndicatorBattery/slots/IndicatorBatteryEnum.js +15 -0
  43. package/components/indicators/IndicatorBattery/test/IndicatorBattery.test.d.ts +1 -0
  44. package/components/indicators/IndicatorBattery/types.d.ts +69 -0
  45. package/components/indicators/IndicatorCSQ/IndicatorCSQ.js +21 -0
  46. package/components/indicators/IndicatorCSQ/IndicatorCSQ.styles.js +70 -0
  47. package/components/indicators/IndicatorCSQ/constants.js +7 -0
  48. package/components/indicators/IndicatorCSQ/dictionary.js +16 -0
  49. package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/getQualityLabel.js +43 -0
  50. package/components/indicators/IndicatorCSQ/index.js +1 -0
  51. package/components/indicators/IndicatorCSQ/slots/IndicatorCSQEnum.js +11 -0
  52. package/components/indicators/IndicatorCSQ/slots/IndicatorCSQSlots.js +32 -0
  53. package/components/indicators/IndicatorCSQ/subcomponents/SignalIcon/SignalIcon.js +19 -0
  54. package/components/indicators/IndicatorCSQ/subcomponents/SignalIcon/index.js +1 -0
  55. package/components/indicators/IndicatorValueStatus/IndicatorValueStatus.d.ts +7 -0
  56. package/components/indicators/IndicatorValueStatus/IndicatorValueStatus.styles.d.ts +2 -0
  57. package/components/indicators/IndicatorValueStatus/constants.d.ts +2 -0
  58. package/components/indicators/IndicatorValueStatus/index.d.ts +1 -0
  59. package/components/indicators/IndicatorValueStatus/slots/IndicatorValueStatusEnum.d.ts +7 -0
  60. package/components/indicators/IndicatorValueStatus/slots/IndicatorValueStatusSlots.d.ts +15 -0
  61. package/components/indicators/IndicatorValueStatus/test/DemoFormatter.d.ts +11 -0
  62. package/components/indicators/IndicatorValueStatus/test/IndicatorValueStatus.test.d.ts +1 -0
  63. package/components/indicators/IndicatorValueStatus/types.d.ts +40 -0
  64. package/components/indicators/index.d.ts +2 -0
  65. package/components/indicators/index.js +1 -0
  66. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.js +1 -1
  67. package/index.js +18 -14
  68. package/mockServiceWorker.js +1 -1
  69. package/package.json +29 -24
  70. package/.storybook/constants.d.ts +0 -30
  71. package/.storybook/decorators/StorybookWithMapProvider/constants.d.ts +0 -2
  72. package/.storybook/decorators/StorybookWithMapProvider/index.d.ts +0 -1
  73. package/.storybook/decorators/WithContexts/constants.d.ts +0 -10
  74. package/.storybook/decorators/WithContexts/index.d.ts +0 -1
  75. package/.storybook/decorators/WithContexts/types.d.ts +0 -7
  76. package/.storybook/decorators/WithWindowsContainer/index.d.ts +0 -2
  77. package/.storybook/decorators/WithWindowsContainer/subcomponents/WindowsContainer/index.d.ts +0 -1
  78. package/.storybook/decorators/WithWindowsContainer/subcomponents/WindowsContainer/types.d.ts +0 -4
  79. package/.storybook/main.d.ts +0 -3
  80. package/.storybook/mocks/config-msw.d.ts +0 -21
  81. package/.storybook/mocks/index.d.ts +0 -2
  82. package/.storybook/mocks/network-mocks.d.ts +0 -1
  83. package/.storybook/storybook.vite.d.ts +0 -2
  84. package/components/gauges/Gauge/Gauge.d.ts +0 -22
  85. package/components/gauges/Gauge/Gauge.js +0 -25
  86. package/components/gauges/Gauge/Gauge.styles.d.ts +0 -2
  87. package/components/gauges/Gauge/Gauge.styles.js +0 -9
  88. package/components/gauges/Gauge/constants.d.ts +0 -2
  89. package/components/gauges/Gauge/constants.js +0 -8
  90. package/components/gauges/Gauge/index.d.ts +0 -1
  91. package/components/gauges/Gauge/slots/GaugeEnum.d.ts +0 -3
  92. package/components/gauges/Gauge/slots/GaugeEnum.js +0 -7
  93. package/components/gauges/Gauge/slots/GaugeSlots.d.ts +0 -3
  94. package/components/gauges/Gauge/slots/GaugeSlots.js +0 -12
  95. package/components/gauges/Gauge/types.d.ts +0 -16
  96. package/components/gauges/index.d.ts +0 -1
  97. package/not_recognized/index.js +0 -406
  98. /package/components/{gauges/Gauge → GaugeCircular}/index.js +0 -0
  99. /package/components/{gauges → GaugeCircular/subcomponents/CircularProgress}/index.js +0 -0
@@ -0,0 +1,40 @@
1
+ import { Sizes } from '@m4l/styles';
2
+ import { IndicatorValueStatusSlots } from './slots/IndicatorValueStatusEnum';
3
+ import { M4LOverridesStyleRules } from '@m4l/components';
4
+ import { INDICATOR_VALUE_STATUS_COMPONENT_KEY } from './constants';
5
+ import { Theme } from '@mui/material';
6
+ export interface IndicatorValueStatusProps {
7
+ /**
8
+ * The title of the indicator value status
9
+ */
10
+ title: string;
11
+ /**
12
+ * The url of the icon
13
+ */
14
+ iconUrl?: string;
15
+ /**
16
+ * The value of the indicator value status, It is expected to be a formatter type component.
17
+ */
18
+ value?: React.ReactNode;
19
+ /**
20
+ * The status of the indicator value status
21
+ */
22
+ status?: React.ReactNode;
23
+ /**
24
+ * The class name of the indicator value status
25
+ */
26
+ className?: string;
27
+ /**
28
+ * The data test id of the indicator value status
29
+ */
30
+ dataTestId?: string;
31
+ /**
32
+ * The size of the indicator value status
33
+ */
34
+ size?: Extract<Sizes, 'small' | 'medium'>;
35
+ }
36
+ export type IndicatorValueStatusOwnerState = {
37
+ size: IndicatorValueStatusProps['size'];
38
+ };
39
+ export type IndicatorValueStatusSlotsType = keyof typeof IndicatorValueStatusSlots;
40
+ export type IndicatorValueStatusStyles = M4LOverridesStyleRules<IndicatorValueStatusSlotsType, typeof INDICATOR_VALUE_STATUS_COMPONENT_KEY, Theme>;
@@ -0,0 +1,2 @@
1
+ export * from './IndicatorBattery';
2
+ export * from './IndicatorCSQ';
@@ -0,0 +1 @@
1
+
@@ -1,6 +1,6 @@
1
1
  import { S as SourceDataBase } from "../base.js";
2
2
  import * as atmosphere from "atmosphere.js";
3
- import { c as camelcaseKeys } from "../../../../not_recognized/index.js";
3
+ import camelcaseKeys from "camelcase-keys";
4
4
  class SourceDataAtmosphere extends SourceDataBase {
5
5
  subSocket = null;
6
6
  stopped = false;
package/index.js CHANGED
@@ -23,7 +23,9 @@ import { i } from "./components/maps/utils/isFeature.js";
23
23
  import { i as i2 } from "./components/maps/utils/isFeatureCollection.js";
24
24
  import { i as i3 } from "./components/maps/utils/isFeatureCollectionDraft.js";
25
25
  import { i as i4 } from "./components/maps/utils/isGeometry.js";
26
- import { G as G3 } from "./components/gauges/Gauge/Gauge.js";
26
+ import { I } from "./components/indicators/IndicatorBattery/IndicatorBattery.js";
27
+ import { I as I2 } from "./components/indicators/IndicatorCSQ/IndicatorCSQ.js";
28
+ import { g as g6 } from "./components/indicators/IndicatorCSQ/dictionary.js";
27
29
  import { E } from "./contexts/RealTimeProducerContext/constants.js";
28
30
  import { R } from "./contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.js";
29
31
  import { R as R2, a as a3 } from "./contexts/RealTimeProducerContext/RealTimeProducerContext.js";
@@ -33,25 +35,26 @@ import { u as u3 } from "./hooks/useRealTimeProducer/index.js";
33
35
  import { u as u4 } from "./hooks/useRealTimeConsumer/index.js";
34
36
  import { c as c3 } from "./utils/capitalizeFirstLetter.js";
35
37
  import { i as i5 } from "./utils/isValidDate.js";
36
- import { g as g6 } from "./utils/getComponentUtilityClass.js";
37
- import { g as g7 } from "./utils/getPaletteColor.js";
38
- import { g as g8 } from "./utils/getTypographyStyles.js";
39
- import { g as g9 } from "./utils/getSizeStyles/getSizeStyles.js";
38
+ import { g as g7 } from "./utils/getComponentUtilityClass.js";
39
+ import { g as g8 } from "./utils/getPaletteColor.js";
40
+ import { g as g9 } from "./utils/getTypographyStyles.js";
41
+ import { g as g10 } from "./utils/getSizeStyles/getSizeStyles.js";
40
42
  import { O } from "./utils/ObjectQueue.js";
41
- import { a as a5, g as g10 } from "./utils/getComponentSlotRoot.js";
42
- import { G as G4 } from "./@types/constants.js";
43
+ import { a as a5, g as g11 } from "./utils/getComponentSlotRoot.js";
44
+ import { G as G3 } from "./@types/constants.js";
43
45
  export {
46
+ I2 as CSQSignal,
44
47
  C as CommonFeatureRender,
45
48
  D2 as DEVICE_STATUSES_CONFIG,
46
49
  D4 as DeviceFeatureRender,
47
50
  D as DeviceLabel,
48
51
  D3 as DeviceStatus,
49
52
  E as EnumResourceTypesIds,
50
- G4 as GNSSEnumStatus,
51
- G3 as GaugeContainer,
53
+ G3 as GNSSEnumStatus,
52
54
  G2 as GpsMap,
53
55
  G as GpsMapTools,
54
56
  a as GpsMapToolsProvider,
57
+ I as IndicatorBattery,
55
58
  M as MapContext,
56
59
  M3 as MapPopupDevice,
57
60
  a2 as MapProvider,
@@ -67,17 +70,18 @@ export {
67
70
  c3 as capitalizeFirstLetter,
68
71
  c as courseToCartesianAngle,
69
72
  c2 as courseToCssAngle,
73
+ g6 as getCSQSignalComponentsDictionary,
70
74
  a5 as getComponentClasses,
71
- g10 as getComponentSlotRoot,
72
- g6 as getComponentUtilityClass,
75
+ g11 as getComponentSlotRoot,
76
+ g7 as getComponentUtilityClass,
73
77
  g2 as getDeviceStatusByData,
74
78
  g as getDeviceStatusComponentsDictionary,
75
79
  g3 as getGpsMapToolsComponentsDictionary,
76
- g9 as getHeightSizeStyles,
80
+ g10 as getHeightSizeStyles,
77
81
  g4 as getMapComponentsDictionary,
78
82
  g5 as getMapPopupDeviceComponentsDictionary,
79
- g7 as getPaletteColor,
80
- g8 as getTypographyStyles,
83
+ g8 as getPaletteColor,
84
+ g9 as getTypographyStyles,
81
85
  i as isFeature,
82
86
  i2 as isFeatureCollection,
83
87
  i3 as isFeatureCollectionDraft,
@@ -8,7 +8,7 @@
8
8
  * - Please do NOT serve this file on production.
9
9
  */
10
10
 
11
- const PACKAGE_VERSION = '2.7.3'
11
+ const PACKAGE_VERSION = '2.7.0'
12
12
  const INTEGRITY_CHECKSUM = '00729d72e3b82faf54ca8b9621dbb96f'
13
13
  const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
14
14
  const activeClientIds = new Set()
package/package.json CHANGED
@@ -1,67 +1,72 @@
1
1
  {
2
2
  "name": "@m4l/gclick",
3
- "version": "0.0.2",
3
+ "version": "0.1.0",
4
4
  "license": "UNLICENSED",
5
5
  "lint-staged": {
6
- "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
6
+ "*.{js,ts,tsx}": "eslint --fix --max-warnings 0 --no-warn-ignored"
7
7
  },
8
8
  "dependencies": {
9
9
  "@geoman-io/leaflet-geoman-free": "^2.14.2",
10
10
  "@googlemaps/js-api-loader": "^1.16.6",
11
11
  "@hookform/resolvers": "2.9.11",
12
- "@microlink/react-json-view": "^1.23.3",
13
- "@mui/x-charts": "^8.10.0",
14
- "@types/lodash-es": "^4.17.12",
12
+ "@m4l/components": "^9.0.0",
13
+ "@m4l/core": "^2.0.0",
14
+ "@m4l/graphics": "^7.0.0",
15
+ "@m4l/styles": "^7.0.0",
16
+ "@mui/lab": "5.0.0-alpha.173",
17
+ "@mui/material": "5.16.7",
18
+ "@mui/x-charts": "8.10.2",
19
+ "@mui/x-date-pickers": "6.20.2",
15
20
  "atmosphere.js": "^4.0.0",
16
21
  "chart.js": "^4.4.0",
17
22
  "chartjs-chart-error-bars": "^4.3.3",
23
+ "eventemitter3": "^4.0.7",
18
24
  "fast-equals": "^5.0.1",
25
+ "framer-motion": "^6.5.0",
19
26
  "history": "5.3.0",
20
27
  "install": "^0.13.0",
21
28
  "jwt-decode": "^4.0.0",
22
29
  "leaflet": "^1.9.4",
23
30
  "leaflet-polylinedecorator": "^1.6.0",
24
31
  "leaflet.markercluster": "^1.5.3",
25
- "lodash-es": "^4.17.21",
32
+ "nprogress": "^0.2.0",
26
33
  "qrcode.react": "^3.1.0",
27
34
  "react": "18.3.1",
28
35
  "react-chartjs-2": "^5.2.0",
29
36
  "react-color": "^2.19.3",
30
- "react-data-grid": "7.0.0-beta.13",
37
+ "react-data-grid": "7.0.0-beta.47",
38
+ "react-dnd": "^16.0.1",
39
+ "react-dnd-html5-backend": "^16.0.1",
31
40
  "react-dom": "18.3.1",
41
+ "react-draggable": "^4.4.5",
42
+ "react-dropzone": "^14.2.2",
43
+ "react-helmet-async": "^2.0.5",
44
+ "react-hook-form": "^7.33.1",
45
+ "react-intersection-observer": "^9.4.0",
32
46
  "react-leaflet": "^4.2.1",
33
47
  "react-resizable": "^3.0.4",
48
+ "react-resizable-panels": "^2.1.8",
49
+ "react-rnd": "^10.5.2",
34
50
  "react-router-dom": "6.3.0",
35
51
  "react-spinners": "^0.13.8",
36
52
  "react-transition-group": "^4.4.5",
53
+ "react-virtualized-auto-sizer": "^1.0.25",
54
+ "react-window": "^1.8.11",
37
55
  "simplebar-react": "3.2.6",
38
56
  "storybook-multilevel-sort": "^2.0.1",
39
57
  "yup": "0.32.11",
40
58
  "zustand": "4.3.6"
41
59
  },
42
- "peerDependencies": {
43
- "@m4l/components": "^9.0.0",
44
- "@m4l/core": "^2.0.0",
45
- "@m4l/graphics": "^7.0.0",
46
- "@m4l/styles": "^7.1.18"
47
- },
48
60
  "resolutions": {
49
61
  "react": "18.3.1",
50
62
  "@types/react": "18.3.23",
51
63
  "@types/react-dom": "18.3.7",
52
64
  "react-dom": "18.3.1",
53
- "storybook": "^8.3.4",
54
65
  "attr-accept": "2.2.2",
55
- "@vitejs/plugin-react": "^4.0.0"
56
- },
57
- "overrides": {
58
- "glob": "^10.4.5",
59
- "eslint": "9.28.0",
60
- "react": "18.3.1",
61
- "@types/react": "18.3.23",
62
- "@types/react-dom": "18.3.7",
63
- "react-dom": "18.3.1",
64
- "attr-accept": "2.2.2"
66
+ "@vitejs/plugin-react": "4.3.4",
67
+ "storybook": "8.3.4",
68
+ "@storybook/react": "8.3.4",
69
+ "vitest": "3.1.1"
65
70
  },
66
71
  "files": [
67
72
  "*"
@@ -1,30 +0,0 @@
1
- import { ThemeUserColor } from '@m4l/styles';
2
- export declare const MODES: {
3
- light: string;
4
- dark: string;
5
- };
6
- export declare const MODES_BACKGROUNDS: Record<keyof Omit<typeof MODES, 'both'>, string>;
7
- export declare const MODES_ITEMS: {
8
- value: string;
9
- title: string;
10
- }[];
11
- export declare const DEVICE_TYPES: {
12
- automatic: string;
13
- mobile: string;
14
- desktop: string;
15
- };
16
- export declare const DEVICE_TYPES_ITEMS: {
17
- value: string;
18
- title: string;
19
- }[];
20
- export declare const COLORS_THEME: Record<ThemeUserColor, ThemeUserColor>;
21
- export declare const COLORS_THEME_ITEMS: Record<string, string>[];
22
- export declare const USER = "carloszapata@gmail.com";
23
- export declare const PWD = "Mayuscula123.";
24
- export declare const DATABASE = "";
25
- export declare const ENVIRONMENT_ASSETS = "d1";
26
- export declare const HOST_API_LOCAL = "http://localhost:3000/domain";
27
- export declare const HOST_API_REMOTE = "https://lab1.stage.made4labs.com/api/v1/domain";
28
- export declare const HOST_STATIC_ASSETS = "https://s3.amazonaws.com/static.made4labs/environments";
29
- export declare const DOMAIN_TOKEN = "lab1";
30
- export declare const STORYBOOK_MODULE_ID = "login";
@@ -1,2 +0,0 @@
1
- import { LayerStore } from '../../../src/components/maps/components/GpsMap/contexts/MapContext/types';
2
- export declare const LAYER_MARKS_ABCD_my_gps_devices: LayerStore[];
@@ -1 +0,0 @@
1
- export * from './StorybookWithMapProvider';
@@ -1,10 +0,0 @@
1
- export declare const USER: any;
2
- export declare const PWD: any;
3
- export declare const DATABASE = "";
4
- export declare const ENVIRONMENT_ASSETS: any;
5
- export declare const HOST_API_LOCAL: any;
6
- export declare const HOST_API_REMOTE: any;
7
- export declare const HOST_STATIC_ASSETS: any;
8
- export declare const DOMAIN_TOKEN: any;
9
- export declare const STORYBOOK_MODULE_ID: any;
10
- export declare const STORYBOOK_ISOLATION_MODULE_ID: any;
@@ -1 +0,0 @@
1
- export * from './WithContexts';
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ThemeSettingsType } from '@m4l/graphics';
3
- export type AppThemeProps = {
4
- themeMode: ThemeSettingsType['themeMode'];
5
- themeColor: ThemeSettingsType['themeColor'];
6
- children: ReactNode;
7
- };
@@ -1,2 +0,0 @@
1
- export * from './WithWindowsContainer';
2
- export { WindowsContainer } from './subcomponents/WindowsContainer';
@@ -1 +0,0 @@
1
- export * from './WindowsContainer';
@@ -1,4 +0,0 @@
1
- export type WindowsContainerProps = {
2
- children?: React.ReactNode;
3
- style?: React.CSSProperties;
4
- };
@@ -1,3 +0,0 @@
1
- import { StorybookConfig } from '@storybook/react-vite';
2
- declare const config: StorybookConfig;
3
- export default config;
@@ -1,21 +0,0 @@
1
- /**
2
- * Initializes Mock Service Worker (MSW) for Storybook
3
- *
4
- * MSW is used to intercept and mock network requests during development and testing.
5
- * This initialization configures MSW to work with Storybook's environment.
6
- *
7
- * Configuration details:
8
- * - Sets up the service worker with the correct path based on the environment
9
- * - Handles unhandled requests by bypassing them
10
- * - Configures the service worker scope
11
- *
12
- * Environment-specific paths:
13
- * - Development: /mockServiceWorker.js
14
- * - Review (MR): /{library_name}/{branch_name}/mockServiceWorker.js
15
- *
16
- * The path is determined by the VITE_STORYBOOK_BASE_PATH environment variable:
17
- * - If set, prepends the value to the service worker path
18
- * - If not set, uses the root path
19
- * @see https://github.com/mswjs/msw-storybook-addon#configuring-msw
20
- */
21
- export declare const initializeMSW: () => void;
@@ -1,2 +0,0 @@
1
- export * from './network-mocks';
2
- export * from './config-msw';
@@ -1 +0,0 @@
1
- export declare const mswHandlers: import('msw').HttpHandler[];
@@ -1,2 +0,0 @@
1
- declare const _default: import('vite').UserConfig;
2
- export default _default;
@@ -1,22 +0,0 @@
1
- import { GaugeProps } from './types';
2
- /**
3
- *
4
- * A customizable gauge chart component that displays data in a circular or semi-circular format.
5
- * This component is designed to visualize progress, metrics, or any percentage-based data
6
- * with configurable sizes and styling options.
7
- * @example
8
- * ```tsx
9
- * <Gauge size="large" dataTestId="progress-gauge">
10
- * <GaugeValue value={75} />
11
- * <GaugeLabel>Completion Rate</GaugeLabel>
12
- * </Gauge>
13
- * ```
14
- * @param props - The component props
15
- * @param props.size - The size of the gauge ('small' | 'medium' | 'large'). Defaults to 'medium'
16
- * @param props.dataTestId - Custom data-testid for testing purposes
17
- * @param props.className - Additional CSS classes to apply
18
- * @param props.children - Child components to render inside the gauge (e.g., GaugeValue, GaugeLabel)
19
- * @param props.otherProps - Additional props passed to the root element
20
- * @returns A styled gauge container component
21
- */
22
- export declare const Gauge: (props: GaugeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,25 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { G as GAUGE_CLASSES, a as GAUGE_KEY_COMPONENT } from "./constants.js";
3
- import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
4
- import { G as GaugeSlots } from "./slots/GaugeEnum.js";
5
- import { G as GaugeRootStyled } from "./slots/GaugeSlots.js";
6
- import clsx from "clsx";
7
- const Gauge = (props) => {
8
- const { size = "medium", dataTestId, className, children, ...otherProps } = props;
9
- const ownerState = {
10
- size
11
- };
12
- return /* @__PURE__ */ jsx(
13
- GaugeRootStyled,
14
- {
15
- ...getPropDataTestId(GAUGE_KEY_COMPONENT, GaugeSlots.root, dataTestId),
16
- ...otherProps,
17
- ownerState,
18
- className: clsx(GAUGE_CLASSES.root, className),
19
- children
20
- }
21
- );
22
- };
23
- export {
24
- Gauge as G
25
- };
@@ -1,2 +0,0 @@
1
- import { GaugeStyles } from './types';
2
- export declare const gaugeStyles: GaugeStyles;
@@ -1,9 +0,0 @@
1
- const gaugeStyles = {
2
- /**
3
- * Root styles
4
- */
5
- root: {}
6
- };
7
- export {
8
- gaugeStyles as g
9
- };
@@ -1,2 +0,0 @@
1
- export declare const GAUGE_KEY_COMPONENT = "M4LGauge";
2
- export declare const GAUGE_CLASSES: Record<string, string>;
@@ -1,8 +0,0 @@
1
- import { getComponentClasses } from "@m4l/components";
2
- import { G as GaugeSlots } from "./slots/GaugeEnum.js";
3
- const GAUGE_KEY_COMPONENT = "M4LGauge";
4
- const GAUGE_CLASSES = getComponentClasses(GAUGE_KEY_COMPONENT, GaugeSlots);
5
- export {
6
- GAUGE_CLASSES as G,
7
- GAUGE_KEY_COMPONENT as a
8
- };
@@ -1 +0,0 @@
1
- export { Gauge as GaugeContainer } from './Gauge';
@@ -1,3 +0,0 @@
1
- export declare enum GaugeSlots {
2
- root = "root"
3
- }
@@ -1,7 +0,0 @@
1
- var GaugeSlots = /* @__PURE__ */ ((GaugeSlots2) => {
2
- GaugeSlots2["root"] = "root";
3
- return GaugeSlots2;
4
- })(GaugeSlots || {});
5
- export {
6
- GaugeSlots as G
7
- };
@@ -1,3 +0,0 @@
1
- export declare const GaugeRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('@mui/x-charts/Gauge').GaugeProps, "ref"> & import('react').RefAttributes<SVGSVGElement>, "string" | "value" | "filter" | "fill" | "values" | "children" | "text" | "title" | "x" | "y" | "name" | "method" | "id" | "type" | "clipPath" | "color" | "cursor" | "direction" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "transformOrigin" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "margin" | "mask" | "offset" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "end" | "version" | "mode" | "spacing" | "accumulate" | "local" | "style" | "unicode" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "className" | "classes" | "sx" | "desc" | "path" | "suppressHydrationWarning" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "in" | "max" | "href" | "media" | "target" | "elevation" | "min" | "crossOrigin" | "accentHeight" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "skipAnimation" | "valueMin" | "valueMax" | "startAngle" | "endAngle" | "innerRadius" | "outerRadius" | "cornerRadius" | keyof import('react').RefAttributes<SVGSVGElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
2
- ownerState?: any;
3
- }, {}, {}>;
@@ -1,12 +0,0 @@
1
- import { styled } from "@mui/material";
2
- import { G as GaugeSlots } from "./GaugeEnum.js";
3
- import { a as GAUGE_KEY_COMPONENT } from "../constants.js";
4
- import { g as gaugeStyles } from "../Gauge.styles.js";
5
- import { Gauge } from "@mui/x-charts/Gauge";
6
- const GaugeRootStyled = styled(Gauge, {
7
- name: GAUGE_KEY_COMPONENT,
8
- slot: GaugeSlots.root
9
- })(gaugeStyles?.root);
10
- export {
11
- GaugeRootStyled as G
12
- };
@@ -1,16 +0,0 @@
1
- import { Sizes } from '@m4l/styles';
2
- import { GaugeProps as MUIGaugeProps } from '@mui/x-charts';
3
- import { GaugeSlots } from './slots/GaugeEnum';
4
- import { GAUGE_KEY_COMPONENT } from './constants';
5
- import { M4LOverridesStyleRules } from '@m4l/components';
6
- import { Theme } from '@mui/material';
7
- export interface GaugeProps extends MUIGaugeProps {
8
- size?: Extract<Sizes, 'small' | 'medium'>;
9
- dataTestId?: string;
10
- className?: string;
11
- }
12
- export type GaugeOwnerState = {
13
- size: GaugeProps['size'];
14
- };
15
- export type GaugeSlotsType = keyof typeof GaugeSlots;
16
- export type GaugeStyles = M4LOverridesStyleRules<GaugeSlotsType, typeof GAUGE_KEY_COMPONENT, Theme>;
@@ -1 +0,0 @@
1
- export * from './Gauge';