@tecsinapse/cortex-react 1.15.1 → 1.15.3-beta.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.
@@ -20,7 +20,7 @@ const SelectOption = ({
20
20
  grouped
21
21
  }),
22
22
  role: "option",
23
- children: labelExtractor(option)
23
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate flex-1", children: labelExtractor(option) })
24
24
  }
25
25
  );
26
26
  };
@@ -11,7 +11,7 @@ const SelectPopover = ({ children }) => {
11
11
  return /* @__PURE__ */ jsxRuntime.jsx(react.FloatingPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(
12
12
  index.Popover.Content,
13
13
  {
14
- className: "bg-white max-h-[30vh] overflow-y-scroll gap-y-mili flex flex-col p-0",
14
+ className: "bg-white max-h-[30vh] overflow-y-auto gap-y-mili flex flex-col p-0",
15
15
  style: {
16
16
  width: triggerWidth ? `${triggerWidth}px` : "auto",
17
17
  zIndex: 9999
@@ -29,7 +29,8 @@ const useFileUpload = ({
29
29
  isFolder = false,
30
30
  noClick = false,
31
31
  ignoreRejections = false,
32
- uploadProgressText
32
+ uploadProgressText,
33
+ uploadSuccessText
33
34
  }) => {
34
35
  const {
35
36
  showManager,
@@ -98,7 +99,8 @@ const useFileUpload = ({
98
99
  showManager?.({
99
100
  onClose: closeManager,
100
101
  onDelete: handleRemoveFile,
101
- uploadProgressText
102
+ uploadProgressText,
103
+ uploadSuccessText
102
104
  });
103
105
  }
104
106
  }, [handleRemoveFile, closeManager]);
@@ -18,7 +18,7 @@ const SelectOption = ({
18
18
  grouped
19
19
  }),
20
20
  role: "option",
21
- children: labelExtractor(option$1)
21
+ children: /* @__PURE__ */ jsx("span", { className: "truncate flex-1", children: labelExtractor(option$1) })
22
22
  }
23
23
  );
24
24
  };
@@ -9,7 +9,7 @@ const SelectPopover = ({ children }) => {
9
9
  return /* @__PURE__ */ jsx(FloatingPortal, { children: /* @__PURE__ */ jsx(
10
10
  Popover.Content,
11
11
  {
12
- className: "bg-white max-h-[30vh] overflow-y-scroll gap-y-mili flex flex-col p-0",
12
+ className: "bg-white max-h-[30vh] overflow-y-auto gap-y-mili flex flex-col p-0",
13
13
  style: {
14
14
  width: triggerWidth ? `${triggerWidth}px` : "auto",
15
15
  zIndex: 9999
@@ -27,7 +27,8 @@ const useFileUpload = ({
27
27
  isFolder = false,
28
28
  noClick = false,
29
29
  ignoreRejections = false,
30
- uploadProgressText
30
+ uploadProgressText,
31
+ uploadSuccessText
31
32
  }) => {
32
33
  const {
33
34
  showManager,
@@ -96,7 +97,8 @@ const useFileUpload = ({
96
97
  showManager?.({
97
98
  onClose: closeManager,
98
99
  onDelete: handleRemoveFile,
99
- uploadProgressText
100
+ uploadProgressText,
101
+ uploadSuccessText
100
102
  });
101
103
  }
102
104
  }, [handleRemoveFile, closeManager]);
@@ -18,10 +18,11 @@ interface UseFileUploadOptions {
18
18
  hasManager?: boolean;
19
19
  isFolder?: boolean;
20
20
  uploadProgressText?: string;
21
+ uploadSuccessText?: string;
21
22
  noClick?: boolean;
22
23
  ignoreRejections?: boolean;
23
24
  }
24
- export declare const useFileUpload: <T>({ accept, onAccept, onOpenManager, onFileRejected, maxSize, allowMultiple, preventDuplicates, onDuplicate, hasManager, isFolder, noClick, ignoreRejections, uploadProgressText, }: UseFileUploadOptions) => {
25
+ export declare const useFileUpload: <T>({ accept, onAccept, onOpenManager, onFileRejected, maxSize, allowMultiple, preventDuplicates, onDuplicate, hasManager, isFolder, noClick, ignoreRejections, uploadProgressText, uploadSuccessText, }: UseFileUploadOptions) => {
25
26
  onOpen: () => void;
26
27
  onClose: () => void;
27
28
  onDelete: (index: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-react",
3
- "version": "1.15.1",
3
+ "version": "1.15.3-beta.0",
4
4
  "description": "React components based in @tecsinapse/cortex-core",
5
5
  "license": "MIT",
6
6
  "main": "dist/esm/index.js",
@@ -48,5 +48,5 @@
48
48
  "react-icons": ">=5.2.0",
49
49
  "tailwind": ">=3.3.0"
50
50
  },
51
- "gitHead": "d3f90898df0e766db23787a5bc5403294cffd5a4"
51
+ "gitHead": "0252dd38008a15383d05be15d73736f15cdb33ce"
52
52
  }