@abdellatifui/react 3.1.80 → 3.1.82

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/nextgen.d.ts CHANGED
@@ -767,6 +767,7 @@ declare interface RadioItemProps_2 {
767
767
  onContextMenu?: (state: any) => void;
768
768
  labelProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
769
769
  inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
770
+ showRadio?: boolean;
770
771
  }
771
772
 
772
773
  export declare function range(start: any, end: any, step?: number): any[];
package/dist/nextgen.js CHANGED
@@ -14167,7 +14167,7 @@ const SourcesPorts = (props) => {
14167
14167
  } else if (currentZoomLevel > 6) {
14168
14168
  setIsVisible(true);
14169
14169
  }
14170
- }, [currentZoomLevel, mapDragging]);
14170
+ }, [currentZoomLevel]);
14171
14171
  useEffect(() => {
14172
14172
  if (!hoveredConnection) {
14173
14173
  setIsVisible(true);
@@ -14181,7 +14181,7 @@ const SourcesPorts = (props) => {
14181
14181
  setIsVisible(false);
14182
14182
  setIsFocused(false);
14183
14183
  }
14184
- }, [hoveredConnection, data == null ? void 0 : data.u_id, currentZoomLevel]);
14184
+ }, [hoveredConnection == null ? void 0 : hoveredConnection.u_id, data == null ? void 0 : data.u_id, currentZoomLevel]);
14185
14185
  useEffect(() => {
14186
14186
  const map = mapApi == null ? void 0 : mapApi.current;
14187
14187
  if (!map) return;
@@ -14633,7 +14633,7 @@ const NetworkMapComponent = forwardRef((props, ref) => {
14633
14633
  loadOptions,
14634
14634
  FlyToNodeApi,
14635
14635
  ...mapApi.current
14636
- }));
14636
+ }), [mapApi.current]);
14637
14637
  const _menuItems = useMemo(() => {
14638
14638
  return (menuItems == null ? void 0 : menuItems.map((item) => ({
14639
14639
  ...item,
@@ -25469,7 +25469,8 @@ const RadioItem = (props) => {
25469
25469
  labelProps = {},
25470
25470
  className = {},
25471
25471
  inputProps = {},
25472
- defaultChecked = false
25472
+ defaultChecked = false,
25473
+ showRadio = true
25473
25474
  } = props;
25474
25475
  const checkChecked = (ev) => {
25475
25476
  const s = {
@@ -25543,7 +25544,7 @@ const RadioItem = (props) => {
25543
25544
  ...labelProps,
25544
25545
  htmlFor: id,
25545
25546
  ref,
25546
- className: cn("relative p-2 border-[2px] border-gray-300 rounded-sm min-w-[200px] min-h-[100px] bg-white", className),
25547
+ className: cn("relative p-2 rounded-lg min-w-[200px] min-h-[100px] bg-white", className),
25547
25548
  children: [
25548
25549
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-1", children: [
25549
25550
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -25554,7 +25555,7 @@ const RadioItem = (props) => {
25554
25555
  onChange: checkChecked,
25555
25556
  id,
25556
25557
  type: "radio",
25557
- className: "w-[20px] h-[20px]",
25558
+ className: cn("w-[20px] h-[20px]", showRadio && "hidden"),
25558
25559
  name: name2
25559
25560
  }
25560
25561
  ),
package/dist/style.css CHANGED
@@ -1715,10 +1715,6 @@ video {
1715
1715
  .border-gray-200\/60 {
1716
1716
  border-color: rgb(229 231 235 / 0.6);
1717
1717
  }
1718
- .border-gray-300 {
1719
- --tw-border-opacity: 1;
1720
- border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
1721
- }
1722
1718
  .border-input {
1723
1719
  border-color: hsl(var(--input));
1724
1720
  }
@@ -9,6 +9,7 @@ interface RadioItemProps {
9
9
  onContextMenu?: (state: any) => void;
10
10
  labelProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
11
11
  inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
12
+ showRadio?: boolean;
12
13
  }
13
14
  export declare const RadioItem: React.FC<RadioItemProps>;
14
15
  export declare const RadioGroup: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioGroup/main.tsx"],"names":[],"mappings":"AAGA,OAAO,aAAa,CAAA;AAG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EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACzD,UAAU,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACzD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAWH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA8G9C,CAAC;AAIF,eAAO,MAAM,UAAU,mFAoCrB,CAAA"}
@@ -1,48 +1,6 @@
1
- import React from 'react';
2
1
  declare const _default: {
3
2
  title: string;
4
- component: React.MemoExoticComponent<React.ForwardRefExoticComponent<import("../../components/NetworkMap/types").NetworkMapProps & React.RefAttributes<unknown>>>;
5
- argTypes: {
6
- defaultLinkColorHex: {
7
- control: string;
8
- };
9
- linkHighlightedColorHex: {
10
- control: string;
11
- };
12
- staticMapColor: {
13
- control: string;
14
- };
15
- defaultAnimationLinkColor: {
16
- control: string;
17
- };
18
- FlyToNodeApi: {
19
- control: string;
20
- options: any;
21
- };
22
- ChooseMapStyle: {
23
- control: string;
24
- options: string[];
25
- };
26
- nodeSizeScaler: {
27
- control: {
28
- type: string;
29
- min: number;
30
- max: number;
31
- step: number;
32
- defaultValue: number;
33
- };
34
- };
35
- GroupFilter: {
36
- type: string;
37
- options: (string | number)[];
38
- };
39
- };
40
3
  };
41
4
  export default _default;
42
5
  export declare const Primary: any;
43
- export declare const CustomNodeIcon: any;
44
- export declare const NodeCreateRemoveApi: any;
45
- export declare const AnotherMapStyle: any;
46
- export declare const StaticBgMap: any;
47
- export declare const GetDataApi: any;
48
6
  //# sourceMappingURL=map.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"map.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Map/map.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqC,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAY1D,wBAsCC;AA0ID,eAAO,MAAM,OAAO,KAAoB,CAAC;AA4EzC,eAAO,MAAM,cAAc,KAAoB,CAAC;AAYhD,eAAO,MAAM,mBAAmB,KAAoB,CAAC;AAOrD,eAAO,MAAM,eAAe,KAAoB,CAAC;AAIjD,eAAO,MAAM,WAAW,KAAoB,CAAC;AAK7C,eAAO,MAAM,UAAU,KAAoB,CAAC"}
1
+ {"version":3,"file":"map.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Map/map.stories.tsx"],"names":[],"mappings":";;;AAcA,wBAsCC;AA2ID,eAAO,MAAM,OAAO,KAAoB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abdellatifui/react",
3
3
  "private": false,
4
- "version": "3.1.80",
4
+ "version": "3.1.82",
5
5
  "type": "module",
6
6
  "types": "dist/nextgen.d.ts",
7
7
  "files": [