@abdellatifui/react 3.2.82 → 3.2.83
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 +1 -1
- package/dist/nextgen.js +20 -25
- package/package.json +1 -1
package/dist/nextgen.d.ts
CHANGED
|
@@ -429,7 +429,7 @@ export declare interface FrequencyProps {
|
|
|
429
429
|
*/
|
|
430
430
|
export declare function getRandomColor(): string;
|
|
431
431
|
|
|
432
|
-
export declare const GetRandomStr: (
|
|
432
|
+
export declare const GetRandomStr: () => string;
|
|
433
433
|
|
|
434
434
|
export declare const getWholeSpectrum: () => any[];
|
|
435
435
|
|
package/dist/nextgen.js
CHANGED
|
@@ -6374,15 +6374,10 @@ const ModelContext = createContext({});
|
|
|
6374
6374
|
const useRandomId = (length = 8) => {
|
|
6375
6375
|
return "r" + Math.random().toString(36).substr(2, length);
|
|
6376
6376
|
};
|
|
6377
|
-
const GetRandomStr = (
|
|
6378
|
-
|
|
6379
|
-
length = 512,
|
|
6380
|
-
str = true
|
|
6381
|
-
} = options2;
|
|
6382
|
-
const randomStr = str ? "_" + Math.random().toString(36).substr(2, length) : Math.random().toString(36).substr(2, length);
|
|
6383
|
-
return randomStr;
|
|
6377
|
+
const GetRandomStr = () => {
|
|
6378
|
+
return useRandomId();
|
|
6384
6379
|
};
|
|
6385
|
-
const useGeneratedId = (length = 8, beginstr = true, forcss = false) => {
|
|
6380
|
+
const useGeneratedId$1 = (length = 8, beginstr = true, forcss = false) => {
|
|
6386
6381
|
const [r2, setR] = useState("");
|
|
6387
6382
|
useEffect(() => {
|
|
6388
6383
|
if (length && forcss) {
|
|
@@ -6443,7 +6438,7 @@ const vrs$h = cva("flex items-center justify-center z-1 css-iuur1", {
|
|
|
6443
6438
|
});
|
|
6444
6439
|
const ModelComponent = forwardRef((props, ref) => {
|
|
6445
6440
|
const [open, setOpen] = useState(false);
|
|
6446
|
-
const id = useGeneratedId();
|
|
6441
|
+
const id = useGeneratedId$1();
|
|
6447
6442
|
const ref3 = useRef();
|
|
6448
6443
|
const [_children, setChildren] = useState(null);
|
|
6449
6444
|
const {
|
|
@@ -19243,7 +19238,7 @@ const Toast = (props) => {
|
|
|
19243
19238
|
duration: duration2 = 6e3,
|
|
19244
19239
|
ref
|
|
19245
19240
|
} = props;
|
|
19246
|
-
const id = useGeneratedId();
|
|
19241
|
+
const id = useGeneratedId$1();
|
|
19247
19242
|
useEffect(() => {
|
|
19248
19243
|
if (item.type && id) {
|
|
19249
19244
|
if (!item.header) {
|
|
@@ -19337,7 +19332,7 @@ const AbuiContextProvider = (props) => {
|
|
|
19337
19332
|
const buid = localStorage.getItem("buid");
|
|
19338
19333
|
const onNotifyLoaded = (event) => {
|
|
19339
19334
|
if (!buid) {
|
|
19340
|
-
localStorage.setItem("buid", GetRandomStr(
|
|
19335
|
+
localStorage.setItem("buid", GetRandomStr());
|
|
19341
19336
|
}
|
|
19342
19337
|
setNotifyReady(true);
|
|
19343
19338
|
};
|
|
@@ -19856,7 +19851,7 @@ const vrs$e = cva(
|
|
|
19856
19851
|
const Sidebar = forwardRef((props, ref) => {
|
|
19857
19852
|
const [isOpen, setIsOpen] = useState(false);
|
|
19858
19853
|
const ref2 = useRef(null);
|
|
19859
|
-
const id = useGeneratedId(9, true, true);
|
|
19854
|
+
const id = useGeneratedId$1(9, true, true);
|
|
19860
19855
|
const modelRef = useRef(null);
|
|
19861
19856
|
const [_content, setContent] = useState(null);
|
|
19862
19857
|
const {
|
|
@@ -22952,7 +22947,7 @@ const Switch = (props) => {
|
|
|
22952
22947
|
className,
|
|
22953
22948
|
ref = useRef(),
|
|
22954
22949
|
inputRef = useRef(),
|
|
22955
|
-
id = useGeneratedId(9, false, true),
|
|
22950
|
+
id = useGeneratedId$1(9, false, true),
|
|
22956
22951
|
inputProps = {}
|
|
22957
22952
|
} = props;
|
|
22958
22953
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { ref, className: cn(
|
|
@@ -23325,7 +23320,7 @@ const NetworkMapComponent = (props) => {
|
|
|
23325
23320
|
pathThikness = 5
|
|
23326
23321
|
} = props;
|
|
23327
23322
|
useRef();
|
|
23328
|
-
const mapId = useGeneratedId(4, true, false);
|
|
23323
|
+
const mapId = useGeneratedId$1(4, true, false);
|
|
23329
23324
|
const mapApi = useRef({});
|
|
23330
23325
|
useRef();
|
|
23331
23326
|
const lngLatBoxRef = useRef();
|
|
@@ -24052,7 +24047,7 @@ const vrs$c = cva("px-1", {
|
|
|
24052
24047
|
}
|
|
24053
24048
|
});
|
|
24054
24049
|
const AccordionItem = (props) => {
|
|
24055
|
-
const key = useGeneratedId(5, false, false);
|
|
24050
|
+
const key = useGeneratedId$1(5, false, false);
|
|
24056
24051
|
const ref = useRef();
|
|
24057
24052
|
const refTrigger = useRef();
|
|
24058
24053
|
const {
|
|
@@ -24068,7 +24063,7 @@ const AccordionItem = (props) => {
|
|
|
24068
24063
|
disabled = false
|
|
24069
24064
|
} = props;
|
|
24070
24065
|
const { updateApi, options: options2 } = useContext(AccordionContext);
|
|
24071
|
-
const id = useGeneratedId(5, true, false);
|
|
24066
|
+
const id = useGeneratedId$1(5, true, false);
|
|
24072
24067
|
function handleClick() {
|
|
24073
24068
|
const isOpen = ref.current.dataset.state == "open" ? false : true;
|
|
24074
24069
|
const form = { ...props, open: isOpen, ref, refTrigger };
|
|
@@ -24125,7 +24120,7 @@ const HorizontalDiv = (props) => {
|
|
|
24125
24120
|
item,
|
|
24126
24121
|
skipRowsCount = false
|
|
24127
24122
|
} = props;
|
|
24128
|
-
const id = useGeneratedId();
|
|
24123
|
+
const id = useGeneratedId$1();
|
|
24129
24124
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id, tabIndex: index, className: "z-40 hover:[&_.css-fj1j20]:opacity-100 flex items-center px-1 select-text focus:ring-[1.5px] focus:ring-blue-600", children: [
|
|
24130
24125
|
!skipRowsCount && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "font-Roboto text-[12px] select-text bg-blue-600 text-white rounded-full w-[15px] h-[15px] aspect-square text-center mr-2 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "p-1", children: index + 1 }) }),
|
|
24131
24126
|
/* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "z-0 font-Roboto text-[14px] select-text text-black", children: item }),
|
|
@@ -25341,7 +25336,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
25341
25336
|
const ContextMenuComponent = (props) => {
|
|
25342
25337
|
const modelRef = useRef({});
|
|
25343
25338
|
const mainMenuRef = useRef();
|
|
25344
|
-
const id = useGeneratedId();
|
|
25339
|
+
const id = useGeneratedId$1();
|
|
25345
25340
|
const [documentEvent, setDocumentEvent] = useState(null);
|
|
25346
25341
|
const [location] = useMouseLocation(documentEvent, mainMenuRef);
|
|
25347
25342
|
const {
|
|
@@ -25605,8 +25600,8 @@ const AllInputComponent = (props) => {
|
|
|
25605
25600
|
const [ttype, setTtype] = useState(type);
|
|
25606
25601
|
const [extraInfo, setExtraInfo] = useState(description);
|
|
25607
25602
|
const [timeout, setITimeout] = useState();
|
|
25608
|
-
const id = useGeneratedId();
|
|
25609
|
-
const id2 = useGeneratedId();
|
|
25603
|
+
const id = useGeneratedId$1();
|
|
25604
|
+
const id2 = useGeneratedId$1();
|
|
25610
25605
|
const [inputValue, setValue] = useState("");
|
|
25611
25606
|
const ref2 = useRef();
|
|
25612
25607
|
const descriptionRef = useRef();
|
|
@@ -28938,7 +28933,7 @@ const ToggleGroup = (props) => {
|
|
|
28938
28933
|
},
|
|
28939
28934
|
onContextMenu
|
|
28940
28935
|
} = props;
|
|
28941
|
-
const id = useGeneratedId(8, false, true);
|
|
28936
|
+
const id = useGeneratedId$1(8, false, true);
|
|
28942
28937
|
const ref2 = useRef({ items: [] });
|
|
28943
28938
|
const itemsRef = useRef({ items: [] });
|
|
28944
28939
|
const {
|
|
@@ -28985,7 +28980,7 @@ const vars$1 = cva("css-toggle-item-abdellatifui w-fit h-fit py-1 px-2 rounded-n
|
|
|
28985
28980
|
});
|
|
28986
28981
|
const ToggleItem = (props) => {
|
|
28987
28982
|
const ref2 = useRef({});
|
|
28988
|
-
const id = useGeneratedId(8, false, true);
|
|
28983
|
+
const id = useGeneratedId$1(8, false, true);
|
|
28989
28984
|
const {
|
|
28990
28985
|
rootref,
|
|
28991
28986
|
api_groupChange,
|
|
@@ -29082,7 +29077,7 @@ const CheckboxGroup = (props) => {
|
|
|
29082
29077
|
children,
|
|
29083
29078
|
className
|
|
29084
29079
|
} = props;
|
|
29085
|
-
const id = useGeneratedId(8, false, true);
|
|
29080
|
+
const id = useGeneratedId$1(8, false, true);
|
|
29086
29081
|
const ref2 = useRef({ items: [] });
|
|
29087
29082
|
const itemsRef = useRef({ items: [] });
|
|
29088
29083
|
const api_groupChange = (api) => {
|
|
@@ -29119,7 +29114,7 @@ const vars = cva("css-checkbox-item-abdellatifui flex items-center space-x-3 w-f
|
|
|
29119
29114
|
});
|
|
29120
29115
|
const CheckboxItem = (props) => {
|
|
29121
29116
|
const ref2 = useRef({});
|
|
29122
|
-
const id = useGeneratedId(8, false, true);
|
|
29117
|
+
const id = useGeneratedId$1(8, false, true);
|
|
29123
29118
|
const {
|
|
29124
29119
|
api_groupChange,
|
|
29125
29120
|
itemsRef
|
|
@@ -29297,7 +29292,7 @@ export {
|
|
|
29297
29292
|
useApi,
|
|
29298
29293
|
useBoxSize,
|
|
29299
29294
|
useBoxSizeByDOM,
|
|
29300
|
-
useGeneratedId,
|
|
29295
|
+
useGeneratedId$1 as useGeneratedId,
|
|
29301
29296
|
useRandomId,
|
|
29302
29297
|
useStore,
|
|
29303
29298
|
useVariable
|