@trackunit/react-compound-components 1.0.64 → 1.0.67
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/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +9 -9
package/index.cjs.js
CHANGED
|
@@ -231,7 +231,7 @@ const ImageCollection = (props) => {
|
|
|
231
231
|
// @ts-ignore
|
|
232
232
|
id, }) => jsxRuntime.jsx("img", { alt: "thumbnail", "data-testid": `thumbnail-${id}`, loading: "lazy", src: thumbnail }), showFullscreenButton: false, showPlayButton: false, showThumbnails: isLg,
|
|
233
233
|
// reduce sliding around during deletion
|
|
234
|
-
slideDuration: isDeleting ? 0 : 200, ...props }), uploadButton, actions?.remove ? (jsxRuntime.jsx(reactComponents.Button, { className: "absolute right-2 top-2", loading: isDeleting, onClick: onRemove, prefix: jsxRuntime.jsx(reactComponents.Icon, { name: "Trash", size: "small" }), variant: "secondary-danger", children: actions.remove.label })) : null] })) : actions?.upload?.onUpload ? (uploading ? (jsxRuntime.jsx(reactComponents.Spinner, {})) : (jsxRuntime.jsx(reactFormComponents.DropZone, { accept: ACCEPT_FOR_IMAGES, className: "h-
|
|
234
|
+
slideDuration: isDeleting ? 0 : 200, ...props }), uploadButton, actions?.remove ? (jsxRuntime.jsx(reactComponents.Button, { className: "absolute right-2 top-2", loading: isDeleting, onClick: onRemove, prefix: jsxRuntime.jsx(reactComponents.Icon, { name: "Trash", size: "small" }), variant: "secondary-danger", children: actions.remove.label })) : null] })) : actions?.upload?.onUpload ? (uploading ? (jsxRuntime.jsx(reactComponents.Spinner, {})) : (jsxRuntime.jsx(reactFormComponents.DropZone, { accept: ACCEPT_FOR_IMAGES, className: "h-[98vh]", dataTestId: "site-images-dropzone", filesSelected: actions.upload.onUpload, label: emptyPlaceholderActionLabel, multiple: true }))) : null, jsxRuntime.jsx("input", {
|
|
235
235
|
// Users can still select other files on mobile devices
|
|
236
236
|
accept: ACCEPT_FOR_IMAGES, "data-testid": "site-images-input-files", hidden: true, multiple: true, onChange: async (e) => {
|
|
237
237
|
if (!(e.target.files && actions?.upload)) {
|
package/index.esm.js
CHANGED
|
@@ -229,7 +229,7 @@ const ImageCollection = (props) => {
|
|
|
229
229
|
// @ts-ignore
|
|
230
230
|
id, }) => jsx("img", { alt: "thumbnail", "data-testid": `thumbnail-${id}`, loading: "lazy", src: thumbnail }), showFullscreenButton: false, showPlayButton: false, showThumbnails: isLg,
|
|
231
231
|
// reduce sliding around during deletion
|
|
232
|
-
slideDuration: isDeleting ? 0 : 200, ...props }), uploadButton, actions?.remove ? (jsx(Button, { className: "absolute right-2 top-2", loading: isDeleting, onClick: onRemove, prefix: jsx(Icon, { name: "Trash", size: "small" }), variant: "secondary-danger", children: actions.remove.label })) : null] })) : actions?.upload?.onUpload ? (uploading ? (jsx(Spinner, {})) : (jsx(DropZone, { accept: ACCEPT_FOR_IMAGES, className: "h-
|
|
232
|
+
slideDuration: isDeleting ? 0 : 200, ...props }), uploadButton, actions?.remove ? (jsx(Button, { className: "absolute right-2 top-2", loading: isDeleting, onClick: onRemove, prefix: jsx(Icon, { name: "Trash", size: "small" }), variant: "secondary-danger", children: actions.remove.label })) : null] })) : actions?.upload?.onUpload ? (uploading ? (jsx(Spinner, {})) : (jsx(DropZone, { accept: ACCEPT_FOR_IMAGES, className: "h-[98vh]", dataTestId: "site-images-dropzone", filesSelected: actions.upload.onUpload, label: emptyPlaceholderActionLabel, multiple: true }))) : null, jsx("input", {
|
|
233
233
|
// Users can still select other files on mobile devices
|
|
234
234
|
accept: ACCEPT_FOR_IMAGES, "data-testid": "site-images-input-files", hidden: true, multiple: true, onChange: async (e) => {
|
|
235
235
|
if (!(e.target.files && actions?.upload)) {
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-compound-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.67",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"react": "18.3.1",
|
|
8
8
|
"tailwind-merge": "^2.0.0",
|
|
9
9
|
"react-image-gallery": "1.3.0",
|
|
10
|
-
"@trackunit/react-core-contexts-api": "1.0.
|
|
11
|
-
"@trackunit/react-core-hooks": "1.0.
|
|
12
|
-
"@trackunit/react-components": "1.1.
|
|
13
|
-
"@trackunit/react-modal": "1.0.
|
|
14
|
-
"@trackunit/css-class-variance-utilities": "1.0.
|
|
15
|
-
"@trackunit/date-and-time-utils": "1.0.
|
|
16
|
-
"@trackunit/react-form-components": "1.0.
|
|
17
|
-
"@trackunit/i18n-library-translation": "1.0.
|
|
10
|
+
"@trackunit/react-core-contexts-api": "1.0.44",
|
|
11
|
+
"@trackunit/react-core-hooks": "1.0.44",
|
|
12
|
+
"@trackunit/react-components": "1.1.46",
|
|
13
|
+
"@trackunit/react-modal": "1.0.64",
|
|
14
|
+
"@trackunit/css-class-variance-utilities": "1.0.39",
|
|
15
|
+
"@trackunit/date-and-time-utils": "1.0.39",
|
|
16
|
+
"@trackunit/react-form-components": "1.0.65",
|
|
17
|
+
"@trackunit/i18n-library-translation": "1.0.49"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=20.x",
|