@sudobility/documents-components 2.0.2 → 2.0.4
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/csv-importer.d.ts +13 -1
- package/dist/csv-importer.d.ts.map +1 -1
- package/dist/diff-viewer.d.ts +13 -1
- package/dist/diff-viewer.d.ts.map +1 -1
- package/dist/excel-uploader.d.ts +13 -1
- package/dist/excel-uploader.d.ts.map +1 -1
- package/dist/icon-button.d.ts +12 -0
- package/dist/icon-button.d.ts.map +1 -1
- package/dist/import-preview.d.ts +13 -1
- package/dist/import-preview.d.ts.map +1 -1
- package/dist/index.esm.js +352 -291
- package/dist/index.umd.js +2 -2
- package/dist/json-importer.d.ts +13 -1
- package/dist/json-importer.d.ts.map +1 -1
- package/dist/json-viewer.d.ts +13 -1
- package/dist/json-viewer.d.ts.map +1 -1
- package/dist/upload-progress.d.ts +13 -1
- package/dist/upload-progress.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/csv-importer.d.ts
CHANGED
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
*
|
|
20
20
|
* @see {@link https://docs.example.com/components/csv-importer}
|
|
21
21
|
*/
|
|
22
|
+
/** Tracking data for CsvImporter actions */
|
|
23
|
+
export interface CsvImporterTrackingData {
|
|
24
|
+
action: 'click';
|
|
25
|
+
trackingLabel?: string;
|
|
26
|
+
componentName?: string;
|
|
27
|
+
}
|
|
22
28
|
export interface UcsvUimporterProps {
|
|
23
29
|
/** Additional CSS classes */
|
|
24
30
|
className?: string;
|
|
@@ -28,6 +34,12 @@ export interface UcsvUimporterProps {
|
|
|
28
34
|
disabled?: boolean;
|
|
29
35
|
/** Callback when component is interacted with */
|
|
30
36
|
onClick?: () => void;
|
|
37
|
+
/** Optional tracking callback */
|
|
38
|
+
onTrack?: (data: CsvImporterTrackingData) => void;
|
|
39
|
+
/** Optional tracking label */
|
|
40
|
+
trackingLabel?: string;
|
|
41
|
+
/** Optional component name for tracking */
|
|
42
|
+
componentName?: string;
|
|
31
43
|
}
|
|
32
|
-
export declare const UcsvUimporter: ({ className, children, disabled, onClick, }: UcsvUimporterProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const UcsvUimporter: ({ className, children, disabled, onClick, onTrack, trackingLabel, componentName, }: UcsvUimporterProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
45
|
//# sourceMappingURL=csv-importer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csv-importer.d.ts","sourceRoot":"","sources":["../src/csv-importer.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,kBAAkB;IACjC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"csv-importer.d.ts","sourceRoot":"","sources":["../src/csv-importer.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,4CAA4C;AAC5C,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,uBAAuB,KAAK,IAAI,CAAC;IAClD,8BAA8B;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,GAAI,oFAQ3B,kBAAkB,4CA0BpB,CAAC"}
|
package/dist/diff-viewer.d.ts
CHANGED
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
*
|
|
20
20
|
* @see {@link https://docs.example.com/components/diff-viewer}
|
|
21
21
|
*/
|
|
22
|
+
/** Tracking data for DiffViewer actions */
|
|
23
|
+
export interface DiffViewerTrackingData {
|
|
24
|
+
action: 'click';
|
|
25
|
+
trackingLabel?: string;
|
|
26
|
+
componentName?: string;
|
|
27
|
+
}
|
|
22
28
|
export interface UdiffUviewerProps {
|
|
23
29
|
/** Additional CSS classes */
|
|
24
30
|
className?: string;
|
|
@@ -28,6 +34,12 @@ export interface UdiffUviewerProps {
|
|
|
28
34
|
disabled?: boolean;
|
|
29
35
|
/** Callback when component is interacted with */
|
|
30
36
|
onClick?: () => void;
|
|
37
|
+
/** Optional tracking callback */
|
|
38
|
+
onTrack?: (data: DiffViewerTrackingData) => void;
|
|
39
|
+
/** Optional tracking label */
|
|
40
|
+
trackingLabel?: string;
|
|
41
|
+
/** Optional component name for tracking */
|
|
42
|
+
componentName?: string;
|
|
31
43
|
}
|
|
32
|
-
export declare const UdiffUviewer: ({ className, children, disabled, onClick, }: UdiffUviewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const UdiffUviewer: ({ className, children, disabled, onClick, onTrack, trackingLabel, componentName, }: UdiffUviewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
45
|
//# sourceMappingURL=diff-viewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-viewer.d.ts","sourceRoot":"","sources":["../src/diff-viewer.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,iBAAiB;IAChC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"diff-viewer.d.ts","sourceRoot":"","sources":["../src/diff-viewer.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,2CAA2C;AAC3C,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACjD,8BAA8B;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,YAAY,GAAI,oFAQ1B,iBAAiB,4CA0BnB,CAAC"}
|
package/dist/excel-uploader.d.ts
CHANGED
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
*
|
|
20
20
|
* @see {@link https://docs.example.com/components/excel-uploader}
|
|
21
21
|
*/
|
|
22
|
+
/** Tracking data for ExcelUploader actions */
|
|
23
|
+
export interface ExcelUploaderTrackingData {
|
|
24
|
+
action: 'click';
|
|
25
|
+
trackingLabel?: string;
|
|
26
|
+
componentName?: string;
|
|
27
|
+
}
|
|
22
28
|
export interface UexcelUuploaderProps {
|
|
23
29
|
/** Additional CSS classes */
|
|
24
30
|
className?: string;
|
|
@@ -28,6 +34,12 @@ export interface UexcelUuploaderProps {
|
|
|
28
34
|
disabled?: boolean;
|
|
29
35
|
/** Callback when component is interacted with */
|
|
30
36
|
onClick?: () => void;
|
|
37
|
+
/** Optional tracking callback */
|
|
38
|
+
onTrack?: (data: ExcelUploaderTrackingData) => void;
|
|
39
|
+
/** Optional tracking label */
|
|
40
|
+
trackingLabel?: string;
|
|
41
|
+
/** Optional component name for tracking */
|
|
42
|
+
componentName?: string;
|
|
31
43
|
}
|
|
32
|
-
export declare const UexcelUuploader: ({ className, children, disabled, onClick, }: UexcelUuploaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const UexcelUuploader: ({ className, children, disabled, onClick, onTrack, trackingLabel, componentName, }: UexcelUuploaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
45
|
//# sourceMappingURL=excel-uploader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"excel-uploader.d.ts","sourceRoot":"","sources":["../src/excel-uploader.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,oBAAoB;IACnC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"excel-uploader.d.ts","sourceRoot":"","sources":["../src/excel-uploader.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,8CAA8C;AAC9C,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACpD,8BAA8B;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,eAAe,GAAI,oFAQ7B,oBAAoB,4CA0BtB,CAAC"}
|
package/dist/icon-button.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
/** Tracking data for IconButton actions */
|
|
3
|
+
export interface IconButtonTrackingData {
|
|
4
|
+
action: 'click';
|
|
5
|
+
trackingLabel?: string;
|
|
6
|
+
componentName?: string;
|
|
7
|
+
}
|
|
2
8
|
export interface IconButtonProps {
|
|
3
9
|
/** Icon component to display */
|
|
4
10
|
icon: React.ComponentType<{
|
|
@@ -22,6 +28,12 @@ export interface IconButtonProps {
|
|
|
22
28
|
className?: string;
|
|
23
29
|
/** Tooltip content (optional) */
|
|
24
30
|
title?: string;
|
|
31
|
+
/** Optional tracking callback */
|
|
32
|
+
onTrack?: (data: IconButtonTrackingData) => void;
|
|
33
|
+
/** Optional tracking label */
|
|
34
|
+
trackingLabel?: string;
|
|
35
|
+
/** Optional component name for tracking */
|
|
36
|
+
componentName?: string;
|
|
25
37
|
}
|
|
26
38
|
/**
|
|
27
39
|
* IconButton Component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../src/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,eAAe;IAC9B,gCAAgC;IAChC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,mEAAmE;IACnE,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC3D,kBAAkB;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACxC,mBAAmB;IACnB,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACxC,oBAAoB;IACpB,OAAO,CAAC,EACJ,SAAS,GACT,SAAS,GACT,WAAW,GACX,QAAQ,GACR,OAAO,GACP,SAAS,CAAC;IACd,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB;IAClB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../src/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,2CAA2C;AAC3C,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,gCAAgC;IAChC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,mEAAmE;IACnE,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC3D,kBAAkB;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACxC,mBAAmB;IACnB,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACxC,oBAAoB;IACpB,OAAO,CAAC,EACJ,SAAS,GACT,SAAS,GACT,WAAW,GACX,QAAQ,GACR,OAAO,GACP,SAAS,CAAC;IACd,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB;IAClB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACjD,8BAA8B;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA2FhD,CAAC"}
|
package/dist/import-preview.d.ts
CHANGED
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
*
|
|
20
20
|
* @see {@link https://docs.example.com/components/import-preview}
|
|
21
21
|
*/
|
|
22
|
+
/** Tracking data for ImportPreview actions */
|
|
23
|
+
export interface ImportPreviewTrackingData {
|
|
24
|
+
action: 'click';
|
|
25
|
+
trackingLabel?: string;
|
|
26
|
+
componentName?: string;
|
|
27
|
+
}
|
|
22
28
|
export interface UimportUpreviewProps {
|
|
23
29
|
/** Additional CSS classes */
|
|
24
30
|
className?: string;
|
|
@@ -28,6 +34,12 @@ export interface UimportUpreviewProps {
|
|
|
28
34
|
disabled?: boolean;
|
|
29
35
|
/** Callback when component is interacted with */
|
|
30
36
|
onClick?: () => void;
|
|
37
|
+
/** Optional tracking callback */
|
|
38
|
+
onTrack?: (data: ImportPreviewTrackingData) => void;
|
|
39
|
+
/** Optional tracking label */
|
|
40
|
+
trackingLabel?: string;
|
|
41
|
+
/** Optional component name for tracking */
|
|
42
|
+
componentName?: string;
|
|
31
43
|
}
|
|
32
|
-
export declare const UimportUpreview: ({ className, children, disabled, onClick, }: UimportUpreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const UimportUpreview: ({ className, children, disabled, onClick, onTrack, trackingLabel, componentName, }: UimportUpreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
45
|
//# sourceMappingURL=import-preview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-preview.d.ts","sourceRoot":"","sources":["../src/import-preview.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,oBAAoB;IACnC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"import-preview.d.ts","sourceRoot":"","sources":["../src/import-preview.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,8CAA8C;AAC9C,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACpD,8BAA8B;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,eAAe,GAAI,oFAQ7B,oBAAoB,4CA0BtB,CAAC"}
|
package/dist/index.esm.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import er from "react";
|
|
2
|
-
import { cn as
|
|
3
|
-
var
|
|
4
|
-
var
|
|
2
|
+
import { cn as b } from "@sudobility/components";
|
|
3
|
+
var U = { exports: {} }, k = {};
|
|
4
|
+
var L;
|
|
5
5
|
function tr() {
|
|
6
|
-
if (
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
function t(
|
|
10
|
-
var
|
|
11
|
-
if (
|
|
12
|
-
|
|
13
|
-
for (var
|
|
14
|
-
|
|
15
|
-
} else
|
|
16
|
-
return
|
|
17
|
-
$$typeof:
|
|
18
|
-
type:
|
|
19
|
-
key:
|
|
20
|
-
ref:
|
|
21
|
-
props:
|
|
6
|
+
if (L) return k;
|
|
7
|
+
L = 1;
|
|
8
|
+
var n = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
|
9
|
+
function t(c, o, a) {
|
|
10
|
+
var l = null;
|
|
11
|
+
if (a !== void 0 && (l = "" + a), o.key !== void 0 && (l = "" + o.key), "key" in o) {
|
|
12
|
+
a = {};
|
|
13
|
+
for (var u in o)
|
|
14
|
+
u !== "key" && (a[u] = o[u]);
|
|
15
|
+
} else a = o;
|
|
16
|
+
return o = a.ref, {
|
|
17
|
+
$$typeof: n,
|
|
18
|
+
type: c,
|
|
19
|
+
key: l,
|
|
20
|
+
ref: o !== void 0 ? o : null,
|
|
21
|
+
props: a
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return k.Fragment = s, k.jsx = t, k.jsxs = t, k;
|
|
25
25
|
}
|
|
26
26
|
var y = {};
|
|
27
|
-
var
|
|
27
|
+
var q;
|
|
28
28
|
function or() {
|
|
29
|
-
return
|
|
30
|
-
function
|
|
29
|
+
return q || (q = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
30
|
+
function n(r) {
|
|
31
31
|
if (r == null) return null;
|
|
32
32
|
if (typeof r == "function")
|
|
33
33
|
return r.$$typeof === Q ? null : r.displayName || r.name || null;
|
|
34
34
|
if (typeof r == "string") return r;
|
|
35
35
|
switch (r) {
|
|
36
|
-
case
|
|
36
|
+
case v:
|
|
37
37
|
return "Fragment";
|
|
38
|
-
case
|
|
38
|
+
case O:
|
|
39
39
|
return "Profiler";
|
|
40
|
-
case
|
|
40
|
+
case x:
|
|
41
41
|
return "StrictMode";
|
|
42
42
|
case X:
|
|
43
43
|
return "Suspense";
|
|
@@ -50,7 +50,7 @@ function or() {
|
|
|
50
50
|
switch (typeof r.tag == "number" && console.error(
|
|
51
51
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
52
52
|
), r.$$typeof) {
|
|
53
|
-
case
|
|
53
|
+
case C:
|
|
54
54
|
return "Portal";
|
|
55
55
|
case V:
|
|
56
56
|
return r.displayName || "Context";
|
|
@@ -60,90 +60,90 @@ function or() {
|
|
|
60
60
|
var e = r.render;
|
|
61
61
|
return r = r.displayName, r || (r = e.displayName || e.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
|
|
62
62
|
case H:
|
|
63
|
-
return e = r.displayName || null, e !== null ? e :
|
|
64
|
-
case
|
|
63
|
+
return e = r.displayName || null, e !== null ? e : n(r.type) || "Memo";
|
|
64
|
+
case A:
|
|
65
65
|
e = r._payload, r = r._init;
|
|
66
66
|
try {
|
|
67
|
-
return
|
|
67
|
+
return n(r(e));
|
|
68
68
|
} catch {
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
return null;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function s(r) {
|
|
74
74
|
return "" + r;
|
|
75
75
|
}
|
|
76
76
|
function t(r) {
|
|
77
77
|
try {
|
|
78
|
-
|
|
78
|
+
s(r);
|
|
79
79
|
var e = !1;
|
|
80
80
|
} catch {
|
|
81
81
|
e = !0;
|
|
82
82
|
}
|
|
83
83
|
if (e) {
|
|
84
84
|
e = console;
|
|
85
|
-
var
|
|
86
|
-
return
|
|
85
|
+
var i = e.error, d = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
86
|
+
return i.call(
|
|
87
87
|
e,
|
|
88
88
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
89
|
-
|
|
90
|
-
),
|
|
89
|
+
d
|
|
90
|
+
), s(r);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
if (r ===
|
|
95
|
-
if (typeof r == "object" && r !== null && r.$$typeof ===
|
|
93
|
+
function c(r) {
|
|
94
|
+
if (r === v) return "<>";
|
|
95
|
+
if (typeof r == "object" && r !== null && r.$$typeof === A)
|
|
96
96
|
return "<...>";
|
|
97
97
|
try {
|
|
98
|
-
var e =
|
|
98
|
+
var e = n(r);
|
|
99
99
|
return e ? "<" + e + ">" : "<...>";
|
|
100
100
|
} catch {
|
|
101
101
|
return "<...>";
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
var r =
|
|
104
|
+
function o() {
|
|
105
|
+
var r = S.A;
|
|
106
106
|
return r === null ? null : r.getOwner();
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function a() {
|
|
109
109
|
return Error("react-stack-top-frame");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
if (
|
|
111
|
+
function l(r) {
|
|
112
|
+
if (I.call(r, "key")) {
|
|
113
113
|
var e = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
114
114
|
if (e && e.isReactWarning) return !1;
|
|
115
115
|
}
|
|
116
116
|
return r.key !== void 0;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
119
|
-
function
|
|
120
|
-
|
|
118
|
+
function u(r, e) {
|
|
119
|
+
function i() {
|
|
120
|
+
$ || ($ = !0, console.error(
|
|
121
121
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
122
122
|
e
|
|
123
123
|
));
|
|
124
124
|
}
|
|
125
|
-
|
|
126
|
-
get:
|
|
125
|
+
i.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
126
|
+
get: i,
|
|
127
127
|
configurable: !0
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
var r =
|
|
132
|
-
return
|
|
130
|
+
function T() {
|
|
131
|
+
var r = n(this.type);
|
|
132
|
+
return F[r] || (F[r] = !0, console.error(
|
|
133
133
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
134
134
|
)), r = this.props.ref, r !== void 0 ? r : null;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
var
|
|
136
|
+
function j(r, e, i, d, R, P) {
|
|
137
|
+
var f = i.ref;
|
|
138
138
|
return r = {
|
|
139
|
-
$$typeof:
|
|
139
|
+
$$typeof: E,
|
|
140
140
|
type: r,
|
|
141
141
|
key: e,
|
|
142
|
-
props:
|
|
143
|
-
_owner:
|
|
144
|
-
}, (
|
|
142
|
+
props: i,
|
|
143
|
+
_owner: d
|
|
144
|
+
}, (f !== void 0 ? f : null) !== null ? Object.defineProperty(r, "ref", {
|
|
145
145
|
enumerable: !1,
|
|
146
|
-
get:
|
|
146
|
+
get: T
|
|
147
147
|
}) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
|
|
148
148
|
configurable: !1,
|
|
149
149
|
enumerable: !1,
|
|
@@ -158,69 +158,69 @@ function or() {
|
|
|
158
158
|
configurable: !1,
|
|
159
159
|
enumerable: !1,
|
|
160
160
|
writable: !0,
|
|
161
|
-
value:
|
|
161
|
+
value: R
|
|
162
162
|
}), Object.defineProperty(r, "_debugTask", {
|
|
163
163
|
configurable: !1,
|
|
164
164
|
enumerable: !1,
|
|
165
165
|
writable: !0,
|
|
166
|
-
value:
|
|
166
|
+
value: P
|
|
167
167
|
}), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
var
|
|
171
|
-
if (
|
|
172
|
-
if (
|
|
173
|
-
if (K(
|
|
174
|
-
for (
|
|
175
|
-
|
|
176
|
-
Object.freeze && Object.freeze(
|
|
169
|
+
function h(r, e, i, d, R, P) {
|
|
170
|
+
var f = e.children;
|
|
171
|
+
if (f !== void 0)
|
|
172
|
+
if (d)
|
|
173
|
+
if (K(f)) {
|
|
174
|
+
for (d = 0; d < f.length; d++)
|
|
175
|
+
w(f[d]);
|
|
176
|
+
Object.freeze && Object.freeze(f);
|
|
177
177
|
} else
|
|
178
178
|
console.error(
|
|
179
179
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
180
180
|
);
|
|
181
|
-
else
|
|
182
|
-
if (
|
|
183
|
-
|
|
184
|
-
var
|
|
181
|
+
else w(f);
|
|
182
|
+
if (I.call(e, "key")) {
|
|
183
|
+
f = n(r);
|
|
184
|
+
var m = Object.keys(e).filter(function(rr) {
|
|
185
185
|
return rr !== "key";
|
|
186
186
|
});
|
|
187
|
-
|
|
187
|
+
d = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", W[f + d] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
188
188
|
`A props object containing a "key" prop is being spread into JSX:
|
|
189
189
|
let props = %s;
|
|
190
190
|
<%s {...props} />
|
|
191
191
|
React keys must be passed directly to JSX without using spread:
|
|
192
192
|
let props = %s;
|
|
193
193
|
<%s key={someKey} {...props} />`,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
),
|
|
194
|
+
d,
|
|
195
|
+
f,
|
|
196
|
+
m,
|
|
197
|
+
f
|
|
198
|
+
), W[f + d] = !0);
|
|
199
199
|
}
|
|
200
|
-
if (
|
|
201
|
-
|
|
202
|
-
for (var
|
|
203
|
-
|
|
204
|
-
} else
|
|
205
|
-
return
|
|
206
|
-
|
|
200
|
+
if (f = null, i !== void 0 && (t(i), f = "" + i), l(e) && (t(e.key), f = "" + e.key), "key" in e) {
|
|
201
|
+
i = {};
|
|
202
|
+
for (var Y in e)
|
|
203
|
+
Y !== "key" && (i[Y] = e[Y]);
|
|
204
|
+
} else i = e;
|
|
205
|
+
return f && u(
|
|
206
|
+
i,
|
|
207
207
|
typeof r == "function" ? r.displayName || r.name || "Unknown" : r
|
|
208
|
-
),
|
|
208
|
+
), j(
|
|
209
209
|
r,
|
|
210
|
+
f,
|
|
210
211
|
i,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
C
|
|
212
|
+
o(),
|
|
213
|
+
R,
|
|
214
|
+
P
|
|
215
215
|
);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
_(r) ? r._store && (r._store.validated = 1) : typeof r == "object" && r !== null && r.$$typeof ===
|
|
217
|
+
function w(r) {
|
|
218
|
+
_(r) ? r._store && (r._store.validated = 1) : typeof r == "object" && r !== null && r.$$typeof === A && (r._payload.status === "fulfilled" ? _(r._payload.value) && r._payload.value._store && (r._payload.value._store.validated = 1) : r._store && (r._store.validated = 1));
|
|
219
219
|
}
|
|
220
220
|
function _(r) {
|
|
221
|
-
return typeof r == "object" && r !== null && r.$$typeof ===
|
|
221
|
+
return typeof r == "object" && r !== null && r.$$typeof === E;
|
|
222
222
|
}
|
|
223
|
-
var p = er,
|
|
223
|
+
var p = er, E = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), V = Symbol.for("react.context"), G = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), Z = Symbol.for("react.activity"), Q = Symbol.for("react.client.reference"), S = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, K = Array.isArray, N = console.createTask ? console.createTask : function() {
|
|
224
224
|
return null;
|
|
225
225
|
};
|
|
226
226
|
p = {
|
|
@@ -228,117 +228,146 @@ React keys must be passed directly to JSX without using spread:
|
|
|
228
228
|
return r();
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
|
-
var
|
|
231
|
+
var $, F = {}, D = p.react_stack_bottom_frame.bind(
|
|
232
232
|
p,
|
|
233
|
-
|
|
234
|
-
)(),
|
|
235
|
-
y.Fragment =
|
|
236
|
-
var
|
|
237
|
-
return
|
|
233
|
+
a
|
|
234
|
+
)(), M = N(c(a)), W = {};
|
|
235
|
+
y.Fragment = v, y.jsx = function(r, e, i) {
|
|
236
|
+
var d = 1e4 > S.recentlyCreatedOwnerStacks++;
|
|
237
|
+
return h(
|
|
238
238
|
r,
|
|
239
239
|
e,
|
|
240
|
-
|
|
240
|
+
i,
|
|
241
241
|
!1,
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
d ? Error("react-stack-top-frame") : D,
|
|
243
|
+
d ? N(c(r)) : M
|
|
244
244
|
);
|
|
245
|
-
}, y.jsxs = function(r, e,
|
|
246
|
-
var
|
|
247
|
-
return
|
|
245
|
+
}, y.jsxs = function(r, e, i) {
|
|
246
|
+
var d = 1e4 > S.recentlyCreatedOwnerStacks++;
|
|
247
|
+
return h(
|
|
248
248
|
r,
|
|
249
249
|
e,
|
|
250
|
-
|
|
250
|
+
i,
|
|
251
251
|
!0,
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
d ? Error("react-stack-top-frame") : D,
|
|
253
|
+
d ? N(c(r)) : M
|
|
254
254
|
);
|
|
255
255
|
};
|
|
256
256
|
})()), y;
|
|
257
257
|
}
|
|
258
|
-
var
|
|
258
|
+
var z;
|
|
259
259
|
function ar() {
|
|
260
|
-
return
|
|
260
|
+
return z || (z = 1, process.env.NODE_ENV === "production" ? U.exports = tr() : U.exports = or()), U.exports;
|
|
261
261
|
}
|
|
262
|
-
var
|
|
263
|
-
const
|
|
264
|
-
className:
|
|
265
|
-
children:
|
|
262
|
+
var g = ar();
|
|
263
|
+
const ir = ({
|
|
264
|
+
className: n,
|
|
265
|
+
children: s,
|
|
266
266
|
disabled: t = !1,
|
|
267
|
-
onClick:
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
267
|
+
onClick: c,
|
|
268
|
+
onTrack: o,
|
|
269
|
+
trackingLabel: a,
|
|
270
|
+
componentName: l = "UcsvUimporter"
|
|
271
|
+
}) => {
|
|
272
|
+
const u = () => {
|
|
273
|
+
t || (o?.({ action: "click", trackingLabel: a, componentName: l }), c?.());
|
|
274
|
+
};
|
|
275
|
+
return /* @__PURE__ */ g.jsx(
|
|
276
|
+
"div",
|
|
277
|
+
{
|
|
278
|
+
className: b(
|
|
279
|
+
"p-4 rounded-lg border transition-colors",
|
|
280
|
+
"bg-white dark:bg-gray-900",
|
|
281
|
+
"border-gray-200 dark:border-gray-700",
|
|
282
|
+
"text-gray-900 dark:text-white",
|
|
283
|
+
t && "opacity-50 cursor-not-allowed",
|
|
284
|
+
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
285
|
+
n
|
|
286
|
+
),
|
|
287
|
+
onClick: u,
|
|
288
|
+
role: "region",
|
|
289
|
+
"aria-label": "UcsvUimporter",
|
|
290
|
+
children: s || "UcsvUimporter Component"
|
|
291
|
+
}
|
|
292
|
+
);
|
|
293
|
+
}, sr = ({
|
|
294
|
+
className: n,
|
|
295
|
+
children: s,
|
|
288
296
|
disabled: t = !1,
|
|
289
|
-
onClick:
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
297
|
+
onClick: c,
|
|
298
|
+
onTrack: o,
|
|
299
|
+
trackingLabel: a,
|
|
300
|
+
componentName: l = "UdiffUviewer"
|
|
301
|
+
}) => {
|
|
302
|
+
const u = () => {
|
|
303
|
+
t || (o?.({ action: "click", trackingLabel: a, componentName: l }), c?.());
|
|
304
|
+
};
|
|
305
|
+
return /* @__PURE__ */ g.jsx(
|
|
306
|
+
"div",
|
|
307
|
+
{
|
|
308
|
+
className: b(
|
|
309
|
+
"p-4 rounded-lg border transition-colors",
|
|
310
|
+
"bg-white dark:bg-gray-900",
|
|
311
|
+
"border-gray-200 dark:border-gray-700",
|
|
312
|
+
"text-gray-900 dark:text-white",
|
|
313
|
+
t && "opacity-50 cursor-not-allowed",
|
|
314
|
+
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
315
|
+
n
|
|
316
|
+
),
|
|
317
|
+
onClick: u,
|
|
318
|
+
role: "region",
|
|
319
|
+
"aria-label": "UdiffUviewer",
|
|
320
|
+
children: s || "UdiffUviewer Component"
|
|
321
|
+
}
|
|
322
|
+
);
|
|
323
|
+
}, cr = ({
|
|
324
|
+
className: n,
|
|
325
|
+
children: s,
|
|
310
326
|
disabled: t = !1,
|
|
311
|
-
onClick:
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
327
|
+
onClick: c,
|
|
328
|
+
onTrack: o,
|
|
329
|
+
trackingLabel: a,
|
|
330
|
+
componentName: l = "UexcelUuploader"
|
|
331
|
+
}) => {
|
|
332
|
+
const u = () => {
|
|
333
|
+
t || (o?.({ action: "click", trackingLabel: a, componentName: l }), c?.());
|
|
334
|
+
};
|
|
335
|
+
return /* @__PURE__ */ g.jsx(
|
|
336
|
+
"div",
|
|
337
|
+
{
|
|
338
|
+
className: b(
|
|
339
|
+
"p-4 rounded-lg border transition-colors",
|
|
340
|
+
"bg-white dark:bg-gray-900",
|
|
341
|
+
"border-gray-200 dark:border-gray-700",
|
|
342
|
+
"text-gray-900 dark:text-white",
|
|
343
|
+
t && "opacity-50 cursor-not-allowed",
|
|
344
|
+
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
345
|
+
n
|
|
346
|
+
),
|
|
347
|
+
onClick: u,
|
|
348
|
+
role: "region",
|
|
349
|
+
"aria-label": "UexcelUuploader",
|
|
350
|
+
children: s || "UexcelUuploader Component"
|
|
351
|
+
}
|
|
352
|
+
);
|
|
353
|
+
}, ur = ({
|
|
354
|
+
icon: n,
|
|
355
|
+
"aria-label": s,
|
|
332
356
|
onClick: t,
|
|
333
|
-
size:
|
|
334
|
-
shape:
|
|
335
|
-
variant:
|
|
336
|
-
disabled:
|
|
337
|
-
type:
|
|
338
|
-
className:
|
|
339
|
-
title:
|
|
357
|
+
size: c = "md",
|
|
358
|
+
shape: o = "rounded",
|
|
359
|
+
variant: a = "default",
|
|
360
|
+
disabled: l = !1,
|
|
361
|
+
type: u = "button",
|
|
362
|
+
className: T,
|
|
363
|
+
title: j,
|
|
364
|
+
onTrack: h,
|
|
365
|
+
trackingLabel: w,
|
|
366
|
+
componentName: _ = "IconButton"
|
|
340
367
|
}) => {
|
|
341
|
-
const
|
|
368
|
+
const p = (O) => {
|
|
369
|
+
l || (h?.({ action: "click", trackingLabel: w, componentName: _ }), t?.(O));
|
|
370
|
+
}, E = {
|
|
342
371
|
xs: {
|
|
343
372
|
button: "p-1",
|
|
344
373
|
icon: "h-3 w-3"
|
|
@@ -359,135 +388,167 @@ const sr = ({
|
|
|
359
388
|
button: "p-4",
|
|
360
389
|
icon: "h-8 w-8"
|
|
361
390
|
}
|
|
362
|
-
},
|
|
391
|
+
}, C = {
|
|
363
392
|
circle: "rounded-full",
|
|
364
393
|
square: "rounded-none",
|
|
365
394
|
rounded: "rounded-lg"
|
|
366
|
-
},
|
|
395
|
+
}, v = {
|
|
367
396
|
default: "bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700",
|
|
368
397
|
primary: "bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600",
|
|
369
398
|
secondary: "bg-purple-600 text-white hover:bg-purple-700 dark:bg-purple-500 dark:hover:bg-purple-600",
|
|
370
399
|
danger: "bg-red-600 text-white hover:bg-red-700 dark:bg-red-500 dark:hover:bg-red-600",
|
|
371
400
|
ghost: "bg-transparent text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800",
|
|
372
401
|
outline: "bg-transparent border-2 border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800"
|
|
373
|
-
},
|
|
374
|
-
return /* @__PURE__ */
|
|
402
|
+
}, x = E[c];
|
|
403
|
+
return /* @__PURE__ */ g.jsx(
|
|
375
404
|
"button",
|
|
376
405
|
{
|
|
377
|
-
type:
|
|
378
|
-
onClick:
|
|
379
|
-
disabled:
|
|
380
|
-
"aria-label":
|
|
381
|
-
title:
|
|
382
|
-
className:
|
|
406
|
+
type: u,
|
|
407
|
+
onClick: p,
|
|
408
|
+
disabled: l,
|
|
409
|
+
"aria-label": s,
|
|
410
|
+
title: j || s,
|
|
411
|
+
className: b(
|
|
383
412
|
"inline-flex items-center justify-center",
|
|
384
413
|
"transition-all duration-200",
|
|
385
414
|
"focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",
|
|
386
415
|
"disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-current",
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
416
|
+
x.button,
|
|
417
|
+
C[o],
|
|
418
|
+
v[a],
|
|
419
|
+
T
|
|
391
420
|
),
|
|
392
|
-
children: /* @__PURE__ */
|
|
421
|
+
children: /* @__PURE__ */ g.jsx(n, { className: x.icon })
|
|
393
422
|
}
|
|
394
423
|
);
|
|
395
424
|
}, dr = ({
|
|
396
|
-
className:
|
|
397
|
-
children:
|
|
425
|
+
className: n,
|
|
426
|
+
children: s,
|
|
398
427
|
disabled: t = !1,
|
|
399
|
-
onClick:
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
428
|
+
onClick: c,
|
|
429
|
+
onTrack: o,
|
|
430
|
+
trackingLabel: a,
|
|
431
|
+
componentName: l = "UimportUpreview"
|
|
432
|
+
}) => {
|
|
433
|
+
const u = () => {
|
|
434
|
+
t || (o?.({ action: "click", trackingLabel: a, componentName: l }), c?.());
|
|
435
|
+
};
|
|
436
|
+
return /* @__PURE__ */ g.jsx(
|
|
437
|
+
"div",
|
|
438
|
+
{
|
|
439
|
+
className: b(
|
|
440
|
+
"p-4 rounded-lg border transition-colors",
|
|
441
|
+
"bg-white dark:bg-gray-900",
|
|
442
|
+
"border-gray-200 dark:border-gray-700",
|
|
443
|
+
"text-gray-900 dark:text-white",
|
|
444
|
+
t && "opacity-50 cursor-not-allowed",
|
|
445
|
+
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
446
|
+
n
|
|
447
|
+
),
|
|
448
|
+
onClick: u,
|
|
449
|
+
role: "region",
|
|
450
|
+
"aria-label": "UimportUpreview",
|
|
451
|
+
children: s || "UimportUpreview Component"
|
|
452
|
+
}
|
|
453
|
+
);
|
|
454
|
+
}, fr = ({
|
|
455
|
+
className: n,
|
|
456
|
+
children: s,
|
|
420
457
|
disabled: t = !1,
|
|
421
|
-
onClick:
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
458
|
+
onClick: c,
|
|
459
|
+
onTrack: o,
|
|
460
|
+
trackingLabel: a,
|
|
461
|
+
componentName: l = "UjsonUimporter"
|
|
462
|
+
}) => {
|
|
463
|
+
const u = () => {
|
|
464
|
+
t || (o?.({ action: "click", trackingLabel: a, componentName: l }), c?.());
|
|
465
|
+
};
|
|
466
|
+
return /* @__PURE__ */ g.jsx(
|
|
467
|
+
"div",
|
|
468
|
+
{
|
|
469
|
+
className: b(
|
|
470
|
+
"p-4 rounded-lg border transition-colors",
|
|
471
|
+
"bg-white dark:bg-gray-900",
|
|
472
|
+
"border-gray-200 dark:border-gray-700",
|
|
473
|
+
"text-gray-900 dark:text-white",
|
|
474
|
+
t && "opacity-50 cursor-not-allowed",
|
|
475
|
+
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
476
|
+
n
|
|
477
|
+
),
|
|
478
|
+
onClick: u,
|
|
479
|
+
role: "region",
|
|
480
|
+
"aria-label": "UjsonUimporter",
|
|
481
|
+
children: s || "UjsonUimporter Component"
|
|
482
|
+
}
|
|
483
|
+
);
|
|
484
|
+
}, gr = ({
|
|
485
|
+
className: n,
|
|
486
|
+
children: s,
|
|
442
487
|
disabled: t = !1,
|
|
443
|
-
onClick:
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
488
|
+
onClick: c,
|
|
489
|
+
onTrack: o,
|
|
490
|
+
trackingLabel: a,
|
|
491
|
+
componentName: l = "UjsonUviewer"
|
|
492
|
+
}) => {
|
|
493
|
+
const u = () => {
|
|
494
|
+
t || (o?.({ action: "click", trackingLabel: a, componentName: l }), c?.());
|
|
495
|
+
};
|
|
496
|
+
return /* @__PURE__ */ g.jsx(
|
|
497
|
+
"div",
|
|
498
|
+
{
|
|
499
|
+
className: b(
|
|
500
|
+
"p-4 rounded-lg border transition-colors",
|
|
501
|
+
"bg-white dark:bg-gray-900",
|
|
502
|
+
"border-gray-200 dark:border-gray-700",
|
|
503
|
+
"text-gray-900 dark:text-white",
|
|
504
|
+
t && "opacity-50 cursor-not-allowed",
|
|
505
|
+
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
506
|
+
n
|
|
507
|
+
),
|
|
508
|
+
onClick: u,
|
|
509
|
+
role: "region",
|
|
510
|
+
"aria-label": "UjsonUviewer",
|
|
511
|
+
children: s || "UjsonUviewer Component"
|
|
512
|
+
}
|
|
513
|
+
);
|
|
514
|
+
}, br = ({
|
|
515
|
+
className: n,
|
|
516
|
+
children: s,
|
|
464
517
|
disabled: t = !1,
|
|
465
|
-
onClick:
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
518
|
+
onClick: c,
|
|
519
|
+
onTrack: o,
|
|
520
|
+
trackingLabel: a,
|
|
521
|
+
componentName: l = "UuploadUprogress"
|
|
522
|
+
}) => {
|
|
523
|
+
const u = () => {
|
|
524
|
+
t || (o?.({ action: "click", trackingLabel: a, componentName: l }), c?.());
|
|
525
|
+
};
|
|
526
|
+
return /* @__PURE__ */ g.jsx(
|
|
527
|
+
"div",
|
|
528
|
+
{
|
|
529
|
+
className: b(
|
|
530
|
+
"p-4 rounded-lg border transition-colors",
|
|
531
|
+
"bg-white dark:bg-gray-900",
|
|
532
|
+
"border-gray-200 dark:border-gray-700",
|
|
533
|
+
"text-gray-900 dark:text-white",
|
|
534
|
+
t && "opacity-50 cursor-not-allowed",
|
|
535
|
+
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
536
|
+
n
|
|
537
|
+
),
|
|
538
|
+
onClick: u,
|
|
539
|
+
role: "region",
|
|
540
|
+
"aria-label": "UuploadUprogress",
|
|
541
|
+
children: s || "UuploadUprogress Component"
|
|
542
|
+
}
|
|
543
|
+
);
|
|
544
|
+
};
|
|
484
545
|
export {
|
|
485
546
|
ur as IconButton,
|
|
486
|
-
|
|
487
|
-
|
|
547
|
+
ir as UcsvUimporter,
|
|
548
|
+
sr as UdiffUviewer,
|
|
488
549
|
cr as UexcelUuploader,
|
|
489
550
|
dr as UimportUpreview,
|
|
490
|
-
|
|
491
|
-
|
|
551
|
+
fr as UjsonUimporter,
|
|
552
|
+
gr as UjsonUviewer,
|
|
492
553
|
br as UuploadUprogress
|
|
493
554
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(g,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react"),require("@sudobility/components")):typeof define=="function"&&define.amd?define(["exports","react","@sudobility/components"],k):(g=typeof globalThis<"u"?globalThis:g||self,k(g.Components={},g.React,g.components))})(this,(function(g,k,p){"use strict";var U={exports:{}},y={};var F;function G(){if(F)return y;F=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function t(c,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var u in o)u!=="key"&&(a[u]=o[u])}else a=o;return o=a.ref,{$$typeof:n,type:c,key:i,ref:o!==void 0?o:null,props:a}}return y.Fragment=s,y.jsx=t,y.jsxs=t,y}var h={};var D;function B(){return D||(D=1,process.env.NODE_ENV!=="production"&&(function(){function n(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case A:return"Profiler";case T:return"StrictMode";case le:return"Suspense";case se:return"SuspenseList";case ue:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case S:return"Portal";case ne:return e.displayName||"Context";case ae:return(e._context.displayName||"Context")+".Consumer";case ie:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ce:return r=e.displayName||null,r!==null?r:n(e.type)||"Memo";case P:r=e._payload,e=e._init;try{return n(e(r))}catch{}}return null}function s(e){return""+e}function t(e){try{s(e);var r=!1}catch{r=!0}if(r){r=console;var l=r.error,d=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return l.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",d),s(e)}}function c(e){if(e===w)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function o(){var e=N.A;return e===null?null:e.getOwner()}function a(){return Error("react-stack-top-frame")}function i(e){if(W.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function u(e,r){function l(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}l.isReactWarning=!0,Object.defineProperty(e,"key",{get:l,configurable:!0})}function C(){var e=n(this.type);return L[e]||(L[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function O(e,r,l,d,j,I){var f=l.ref;return e={$$typeof:R,type:e,key:r,props:l,_owner:d},(f!==void 0?f:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:C}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:I}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function _(e,r,l,d,j,I){var f=r.children;if(f!==void 0)if(d)if(fe(f)){for(d=0;d<f.length;d++)E(f[d]);Object.freeze&&Object.freeze(f)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else E(f);if(W.call(r,"key")){f=n(e);var m=Object.keys(r).filter(function(ge){return ge!=="key"});d=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",V[f+d]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,
|
|
6
|
+
<%s key={someKey} {...props} />`,d,f,m,f),V[f+d]=!0)}if(f=null,l!==void 0&&(t(l),f=""+l),i(r)&&(t(r.key),f=""+r.key),"key"in r){l={};for(var $ in r)$!=="key"&&(l[$]=r[$])}else l=r;return f&&u(l,typeof e=="function"?e.displayName||e.name||"Unknown":e),O(e,f,l,o(),j,I)}function E(e){x(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===P&&(e._payload.status==="fulfilled"?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e=="object"&&e!==null&&e.$$typeof===R}var v=k,R=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),ae=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),de=Symbol.for("react.client.reference"),N=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,fe=Array.isArray,Y=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var q,L={},z=v.react_stack_bottom_frame.bind(v,a)(),J=Y(c(a)),V={};h.Fragment=w,h.jsx=function(e,r,l){var d=1e4>N.recentlyCreatedOwnerStacks++;return _(e,r,l,!1,d?Error("react-stack-top-frame"):z,d?Y(c(e)):J)},h.jsxs=function(e,r,l){var d=1e4>N.recentlyCreatedOwnerStacks++;return _(e,r,l,!0,d?Error("react-stack-top-frame"):z,d?Y(c(e)):J)}})()),h}var M;function X(){return M||(M=1,process.env.NODE_ENV==="production"?U.exports=G():U.exports=B()),U.exports}var b=X();const H=({className:n,children:s,disabled:t=!1,onClick:c,onTrack:o,trackingLabel:a,componentName:i="UcsvUimporter"})=>{const u=()=>{t||(o?.({action:"click",trackingLabel:a,componentName:i}),c?.())};return b.jsx("div",{className:p.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",n),onClick:u,role:"region","aria-label":"UcsvUimporter",children:s||"UcsvUimporter Component"})},Z=({className:n,children:s,disabled:t=!1,onClick:c,onTrack:o,trackingLabel:a,componentName:i="UdiffUviewer"})=>{const u=()=>{t||(o?.({action:"click",trackingLabel:a,componentName:i}),c?.())};return b.jsx("div",{className:p.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",n),onClick:u,role:"region","aria-label":"UdiffUviewer",children:s||"UdiffUviewer Component"})},Q=({className:n,children:s,disabled:t=!1,onClick:c,onTrack:o,trackingLabel:a,componentName:i="UexcelUuploader"})=>{const u=()=>{t||(o?.({action:"click",trackingLabel:a,componentName:i}),c?.())};return b.jsx("div",{className:p.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",n),onClick:u,role:"region","aria-label":"UexcelUuploader",children:s||"UexcelUuploader Component"})},K=({icon:n,"aria-label":s,onClick:t,size:c="md",shape:o="rounded",variant:a="default",disabled:i=!1,type:u="button",className:C,title:O,onTrack:_,trackingLabel:E,componentName:x="IconButton"})=>{const v=A=>{i||(_?.({action:"click",trackingLabel:E,componentName:x}),t?.(A))},R={xs:{button:"p-1",icon:"h-3 w-3"},sm:{button:"p-1.5",icon:"h-4 w-4"},md:{button:"p-2",icon:"h-5 w-5"},lg:{button:"p-3",icon:"h-6 w-6"},xl:{button:"p-4",icon:"h-8 w-8"}},S={circle:"rounded-full",square:"rounded-none",rounded:"rounded-lg"},w={default:"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700",primary:"bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600",secondary:"bg-purple-600 text-white hover:bg-purple-700 dark:bg-purple-500 dark:hover:bg-purple-600",danger:"bg-red-600 text-white hover:bg-red-700 dark:bg-red-500 dark:hover:bg-red-600",ghost:"bg-transparent text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800",outline:"bg-transparent border-2 border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800"},T=R[c];return b.jsx("button",{type:u,onClick:v,disabled:i,"aria-label":s,title:O||s,className:p.cn("inline-flex items-center justify-center","transition-all duration-200","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-current",T.button,S[o],w[a],C),children:b.jsx(n,{className:T.icon})})},ee=({className:n,children:s,disabled:t=!1,onClick:c,onTrack:o,trackingLabel:a,componentName:i="UimportUpreview"})=>{const u=()=>{t||(o?.({action:"click",trackingLabel:a,componentName:i}),c?.())};return b.jsx("div",{className:p.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",n),onClick:u,role:"region","aria-label":"UimportUpreview",children:s||"UimportUpreview Component"})},re=({className:n,children:s,disabled:t=!1,onClick:c,onTrack:o,trackingLabel:a,componentName:i="UjsonUimporter"})=>{const u=()=>{t||(o?.({action:"click",trackingLabel:a,componentName:i}),c?.())};return b.jsx("div",{className:p.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",n),onClick:u,role:"region","aria-label":"UjsonUimporter",children:s||"UjsonUimporter Component"})},te=({className:n,children:s,disabled:t=!1,onClick:c,onTrack:o,trackingLabel:a,componentName:i="UjsonUviewer"})=>{const u=()=>{t||(o?.({action:"click",trackingLabel:a,componentName:i}),c?.())};return b.jsx("div",{className:p.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",n),onClick:u,role:"region","aria-label":"UjsonUviewer",children:s||"UjsonUviewer Component"})},oe=({className:n,children:s,disabled:t=!1,onClick:c,onTrack:o,trackingLabel:a,componentName:i="UuploadUprogress"})=>{const u=()=>{t||(o?.({action:"click",trackingLabel:a,componentName:i}),c?.())};return b.jsx("div",{className:p.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",n),onClick:u,role:"region","aria-label":"UuploadUprogress",children:s||"UuploadUprogress Component"})};g.IconButton=K,g.UcsvUimporter=H,g.UdiffUviewer=Z,g.UexcelUuploader=Q,g.UimportUpreview=ee,g.UjsonUimporter=re,g.UjsonUviewer=te,g.UuploadUprogress=oe,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/json-importer.d.ts
CHANGED
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
*
|
|
20
20
|
* @see {@link https://docs.example.com/components/json-importer}
|
|
21
21
|
*/
|
|
22
|
+
/** Tracking data for JsonImporter actions */
|
|
23
|
+
export interface JsonImporterTrackingData {
|
|
24
|
+
action: 'click';
|
|
25
|
+
trackingLabel?: string;
|
|
26
|
+
componentName?: string;
|
|
27
|
+
}
|
|
22
28
|
export interface UjsonUimporterProps {
|
|
23
29
|
/** Additional CSS classes */
|
|
24
30
|
className?: string;
|
|
@@ -28,6 +34,12 @@ export interface UjsonUimporterProps {
|
|
|
28
34
|
disabled?: boolean;
|
|
29
35
|
/** Callback when component is interacted with */
|
|
30
36
|
onClick?: () => void;
|
|
37
|
+
/** Optional tracking callback */
|
|
38
|
+
onTrack?: (data: JsonImporterTrackingData) => void;
|
|
39
|
+
/** Optional tracking label */
|
|
40
|
+
trackingLabel?: string;
|
|
41
|
+
/** Optional component name for tracking */
|
|
42
|
+
componentName?: string;
|
|
31
43
|
}
|
|
32
|
-
export declare const UjsonUimporter: ({ className, children, disabled, onClick, }: UjsonUimporterProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const UjsonUimporter: ({ className, children, disabled, onClick, onTrack, trackingLabel, componentName, }: UjsonUimporterProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
45
|
//# sourceMappingURL=json-importer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-importer.d.ts","sourceRoot":"","sources":["../src/json-importer.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,mBAAmB;IAClC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"json-importer.d.ts","sourceRoot":"","sources":["../src/json-importer.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,6CAA6C;AAC7C,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,wBAAwB,KAAK,IAAI,CAAC;IACnD,8BAA8B;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,cAAc,GAAI,oFAQ5B,mBAAmB,4CA0BrB,CAAC"}
|
package/dist/json-viewer.d.ts
CHANGED
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
*
|
|
20
20
|
* @see {@link https://docs.example.com/components/json-viewer}
|
|
21
21
|
*/
|
|
22
|
+
/** Tracking data for JsonViewer actions */
|
|
23
|
+
export interface JsonViewerTrackingData {
|
|
24
|
+
action: 'click';
|
|
25
|
+
trackingLabel?: string;
|
|
26
|
+
componentName?: string;
|
|
27
|
+
}
|
|
22
28
|
export interface UjsonUviewerProps {
|
|
23
29
|
/** Additional CSS classes */
|
|
24
30
|
className?: string;
|
|
@@ -28,6 +34,12 @@ export interface UjsonUviewerProps {
|
|
|
28
34
|
disabled?: boolean;
|
|
29
35
|
/** Callback when component is interacted with */
|
|
30
36
|
onClick?: () => void;
|
|
37
|
+
/** Optional tracking callback */
|
|
38
|
+
onTrack?: (data: JsonViewerTrackingData) => void;
|
|
39
|
+
/** Optional tracking label */
|
|
40
|
+
trackingLabel?: string;
|
|
41
|
+
/** Optional component name for tracking */
|
|
42
|
+
componentName?: string;
|
|
31
43
|
}
|
|
32
|
-
export declare const UjsonUviewer: ({ className, children, disabled, onClick, }: UjsonUviewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const UjsonUviewer: ({ className, children, disabled, onClick, onTrack, trackingLabel, componentName, }: UjsonUviewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
45
|
//# sourceMappingURL=json-viewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-viewer.d.ts","sourceRoot":"","sources":["../src/json-viewer.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,iBAAiB;IAChC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"json-viewer.d.ts","sourceRoot":"","sources":["../src/json-viewer.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,2CAA2C;AAC3C,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACjD,8BAA8B;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,YAAY,GAAI,oFAQ1B,iBAAiB,4CA0BnB,CAAC"}
|
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
*
|
|
20
20
|
* @see {@link https://docs.example.com/components/upload-progress}
|
|
21
21
|
*/
|
|
22
|
+
/** Tracking data for UploadProgress actions */
|
|
23
|
+
export interface UploadProgressTrackingData {
|
|
24
|
+
action: 'click';
|
|
25
|
+
trackingLabel?: string;
|
|
26
|
+
componentName?: string;
|
|
27
|
+
}
|
|
22
28
|
export interface UuploadUprogressProps {
|
|
23
29
|
/** Additional CSS classes */
|
|
24
30
|
className?: string;
|
|
@@ -28,6 +34,12 @@ export interface UuploadUprogressProps {
|
|
|
28
34
|
disabled?: boolean;
|
|
29
35
|
/** Callback when component is interacted with */
|
|
30
36
|
onClick?: () => void;
|
|
37
|
+
/** Optional tracking callback */
|
|
38
|
+
onTrack?: (data: UploadProgressTrackingData) => void;
|
|
39
|
+
/** Optional tracking label */
|
|
40
|
+
trackingLabel?: string;
|
|
41
|
+
/** Optional component name for tracking */
|
|
42
|
+
componentName?: string;
|
|
31
43
|
}
|
|
32
|
-
export declare const UuploadUprogress: ({ className, children, disabled, onClick, }: UuploadUprogressProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const UuploadUprogress: ({ className, children, disabled, onClick, onTrack, trackingLabel, componentName, }: UuploadUprogressProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
45
|
//# sourceMappingURL=upload-progress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-progress.d.ts","sourceRoot":"","sources":["../src/upload-progress.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,qBAAqB;IACpC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"upload-progress.d.ts","sourceRoot":"","sources":["../src/upload-progress.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,+CAA+C;AAC/C,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAC;IACrD,8BAA8B;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,GAAI,oFAQ9B,qBAAqB,4CA0BvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sudobility/documents-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "documents UI components for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"test": "echo \"Tests passed\" && exit 0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@sudobility/components": "
|
|
27
|
+
"@sudobility/components": "*",
|
|
28
28
|
"@sudobility/design": "^1.1.14",
|
|
29
29
|
"react": "^18.0.0 || ^19.0.0",
|
|
30
30
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@eslint/js": "^9.38.0",
|
|
34
34
|
"@heroicons/react": "^2.2.0",
|
|
35
|
-
"@sudobility/components": "
|
|
35
|
+
"@sudobility/components": "*",
|
|
36
36
|
"@sudobility/design": "^1.1.14",
|
|
37
37
|
"@types/node": "^24.7.1",
|
|
38
38
|
"@types/react": "^19.2.2",
|