lost-sia 2.0.1-alpha11 → 2.0.1-alpha12
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/Toolbar/Toolbar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as
|
|
1
|
+
import{jsxs as j,jsx as o}from"react/jsx-runtime";import{CRow as C,CCol as e}from"@coreui/react";import g from"./ToolbarItems/AnnoToolSelector.js";import y from"./ToolbarItems/ImageTools.js";import T from"./ToolbarItems/AccessibilityTools.js";const J=({annotationSettings:c,allowedTools:t,additionalButtons:n,isImageJunk:m=!1,imageLabelIds:f=[],isDisabled:r=!1,isFullscreen:a=!1,possibleLabels:l,selectedTool:s,onImageLabelsChanged:p=()=>{},onSetIsFullscreen:x=()=>{},onSetIsImageJunk:i=()=>{},onSetSelectedTool:u=()=>{},onShouldDeleteSelectedAnnotation:h=()=>{}})=>j(C,{className:"d-flex justify-content-center flex-wrap align-items-center gap-0 py-2 px-4",children:[o(e,{xs:"auto",children:o(y,{canJunk:t.junk,isImageJunk:m,imageLabelIds:f,isDisabled:r,isFullscreen:a,possibleLabels:l,onImageLabelsChanged:p,onSetIsImageJunk:i})}),o(e,{xs:"auto",children:o(T,{isDisabled:r,isFullscreen:a,onSetIsFullscreen:x})}),c.canCreate&&o(e,{xs:"auto",children:o(g,{allowedTools:t,isDisabled:r,selectedTool:s,onSetSelectedTool:u,onShouldDeleteSelectedAnnotation:h})}),n&&n]});export{J as default};
|
package/package.json
CHANGED
package/src/Toolbar/Toolbar.tsx
CHANGED
|
@@ -41,8 +41,8 @@ const Toolbar = ({
|
|
|
41
41
|
onShouldDeleteSelectedAnnotation = () => {},
|
|
42
42
|
}: ToolbarProps) => {
|
|
43
43
|
return (
|
|
44
|
-
<CRow
|
|
45
|
-
<CCol xs=
|
|
44
|
+
<CRow className="d-flex justify-content-center flex-wrap align-items-center gap-0 py-2 px-4">
|
|
45
|
+
<CCol xs="auto">
|
|
46
46
|
<ImageTools
|
|
47
47
|
canJunk={allowedTools.junk}
|
|
48
48
|
isImageJunk={isImageJunk}
|
|
@@ -55,7 +55,7 @@ const Toolbar = ({
|
|
|
55
55
|
/>
|
|
56
56
|
</CCol>
|
|
57
57
|
|
|
58
|
-
<CCol xs=
|
|
58
|
+
<CCol xs="auto">
|
|
59
59
|
<AccessibilityTools
|
|
60
60
|
isDisabled={isDisabled}
|
|
61
61
|
isFullscreen={isFullscreen}
|
|
@@ -64,7 +64,7 @@ const Toolbar = ({
|
|
|
64
64
|
</CCol>
|
|
65
65
|
|
|
66
66
|
{annotationSettings.canCreate && (
|
|
67
|
-
<CCol xs=
|
|
67
|
+
<CCol xs="auto">
|
|
68
68
|
<AnnoToolSelector
|
|
69
69
|
allowedTools={allowedTools}
|
|
70
70
|
isDisabled={isDisabled}
|