@abdellatifui/react 3.2.80 → 3.2.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 +1 -1
- package/dist/nextgen.js +3 -3
- 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: (options
|
|
432
|
+
export declare const GetRandomStr: (options?: {}) => string;
|
|
433
433
|
|
|
434
434
|
export declare const getWholeSpectrum: () => any[];
|
|
435
435
|
|
package/dist/nextgen.js
CHANGED
|
@@ -6372,9 +6372,9 @@ const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => /*
|
|
|
6372
6372
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
6373
6373
|
const ModelContext = createContext({});
|
|
6374
6374
|
const useRandomId = (length = 8) => {
|
|
6375
|
-
return "
|
|
6375
|
+
return "r" + Math.random().toString(36).substr(2, length);
|
|
6376
6376
|
};
|
|
6377
|
-
const GetRandomStr = (options2) => {
|
|
6377
|
+
const GetRandomStr = (options2 = {}) => {
|
|
6378
6378
|
const {
|
|
6379
6379
|
length = 512,
|
|
6380
6380
|
str = true
|
|
@@ -28576,7 +28576,7 @@ const ShadcnTabs = forwardRef((props, ref) => {
|
|
|
28576
28576
|
theme === "modern" ? "border border-gray-200/60 rounded-md bg-white/50 backdrop-blur-sm p-4 mt-3 shadow-sm" : "border-solid border border-gray-200 p-1 my-1 rounded bg-[#fafafa]",
|
|
28577
28577
|
bodyClassName
|
|
28578
28578
|
), children: _tabs.map((tab) => {
|
|
28579
|
-
const id2 =
|
|
28579
|
+
const id2 = useRandomId();
|
|
28580
28580
|
tab.tabs = _tabs;
|
|
28581
28581
|
tab.props = props;
|
|
28582
28582
|
if (!tab.value) tab.value = id2;
|