@hexure/ui 1.13.19 → 1.13.21
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/cjs/index.js +68 -68
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +68 -68
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1377,76 +1377,76 @@ const FieldGroup = ({ children, label }) => {
|
|
|
1377
1377
|
React.createElement(Content$1, null, children)));
|
|
1378
1378
|
};
|
|
1379
1379
|
|
|
1380
|
-
const Dropzone = styled.div `
|
|
1381
|
-
border-radius: 8px;
|
|
1382
|
-
border-width: 1px;
|
|
1383
|
-
border-style: dashed;
|
|
1384
|
-
border-color: ${props => (props.$dragging ? props.theme.PRIMARY_COLOR.Hex : '#cccccc')};
|
|
1385
|
-
background: ${props => props.$dragging ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)` : '#ffffff'};
|
|
1386
|
-
cursor: copy;
|
|
1380
|
+
const Dropzone = styled.div `
|
|
1381
|
+
border-radius: 8px;
|
|
1382
|
+
border-width: 1px;
|
|
1383
|
+
border-style: dashed;
|
|
1384
|
+
border-color: ${props => (props.$dragging ? props.theme.PRIMARY_COLOR.Hex : '#cccccc')};
|
|
1385
|
+
background: ${props => props.$dragging ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)` : '#ffffff'};
|
|
1386
|
+
cursor: copy;
|
|
1387
1387
|
`;
|
|
1388
1388
|
Dropzone.defaultProps = { theme: EditableTheme };
|
|
1389
|
-
const IconWrapper$1 = styled.div `
|
|
1390
|
-
width: 80px;
|
|
1391
|
-
height: 80px;
|
|
1392
|
-
border-radius: 40px;
|
|
1393
|
-
background: ${props => (props.$dragging ? '#ffffff' : '#f5f5f5')};
|
|
1394
|
-
display: flex;
|
|
1395
|
-
align-items: center;
|
|
1396
|
-
justify-content: center;
|
|
1397
|
-
`;
|
|
1398
|
-
const StyledIcon$3 = styled(Icon) `
|
|
1399
|
-
width: 40px !important;
|
|
1400
|
-
height: 40px !important;
|
|
1401
|
-
|
|
1402
|
-
> path {
|
|
1403
|
-
fill: ${Colors.GRAY.Hex} !important;
|
|
1404
|
-
}
|
|
1405
|
-
`;
|
|
1406
|
-
const ClickZone = styled.div `
|
|
1407
|
-
margin: 40px 20px;
|
|
1408
|
-
display: flex;
|
|
1409
|
-
flex-direction: column;
|
|
1410
|
-
align-items: center;
|
|
1411
|
-
gap: 16px;
|
|
1412
|
-
`;
|
|
1413
|
-
const Content = styled.div `
|
|
1414
|
-
display: flex;
|
|
1415
|
-
flex-direction: column;
|
|
1416
|
-
align-items: center;
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
`;
|
|
1432
|
-
const File = styled.div `
|
|
1433
|
-
display: flex;
|
|
1434
|
-
padding: 10px;
|
|
1435
|
-
align-items: center;
|
|
1436
|
-
justify-content: space-between;
|
|
1437
|
-
gap: 10px;
|
|
1438
|
-
border-radius: 4px;
|
|
1439
|
-
border: 1px solid #cccccc;
|
|
1440
|
-
background: #ffffff;
|
|
1441
|
-
`;
|
|
1442
|
-
const Remove = styled(Icon) `
|
|
1443
|
-
width: 24px;
|
|
1444
|
-
height: 24px;
|
|
1445
|
-
cursor: pointer;
|
|
1446
|
-
|
|
1447
|
-
> path {
|
|
1448
|
-
fill: ${Colors.RED.Hex} !important;
|
|
1449
|
-
}
|
|
1389
|
+
const IconWrapper$1 = styled.div `
|
|
1390
|
+
width: 80px;
|
|
1391
|
+
height: 80px;
|
|
1392
|
+
border-radius: 40px;
|
|
1393
|
+
background: ${props => (props.$dragging ? '#ffffff' : '#f5f5f5')};
|
|
1394
|
+
display: flex;
|
|
1395
|
+
align-items: center;
|
|
1396
|
+
justify-content: center;
|
|
1397
|
+
`;
|
|
1398
|
+
const StyledIcon$3 = styled(Icon) `
|
|
1399
|
+
width: 40px !important;
|
|
1400
|
+
height: 40px !important;
|
|
1401
|
+
|
|
1402
|
+
> path {
|
|
1403
|
+
fill: ${Colors.GRAY.Hex} !important;
|
|
1404
|
+
}
|
|
1405
|
+
`;
|
|
1406
|
+
const ClickZone = styled.div `
|
|
1407
|
+
margin: 40px 20px;
|
|
1408
|
+
display: flex;
|
|
1409
|
+
flex-direction: column;
|
|
1410
|
+
align-items: center;
|
|
1411
|
+
gap: 16px;
|
|
1412
|
+
`;
|
|
1413
|
+
const Content = styled.div `
|
|
1414
|
+
display: flex;
|
|
1415
|
+
flex-direction: column;
|
|
1416
|
+
align-items: center;
|
|
1417
|
+
z-index: 99999;
|
|
1418
|
+
gap: 2px;
|
|
1419
|
+
`;
|
|
1420
|
+
const Files = styled.div `
|
|
1421
|
+
display: flex;
|
|
1422
|
+
flex-direction: column;
|
|
1423
|
+
align-self: stretch;
|
|
1424
|
+
gap: 10px;
|
|
1425
|
+
margin: 20px;
|
|
1426
|
+
`;
|
|
1427
|
+
const MessageDiv = styled.div `
|
|
1428
|
+
display: flex;
|
|
1429
|
+
align-items: center;
|
|
1430
|
+
justify-content: center;
|
|
1431
|
+
`;
|
|
1432
|
+
const File = styled.div `
|
|
1433
|
+
display: flex;
|
|
1434
|
+
padding: 10px;
|
|
1435
|
+
align-items: center;
|
|
1436
|
+
justify-content: space-between;
|
|
1437
|
+
gap: 10px;
|
|
1438
|
+
border-radius: 4px;
|
|
1439
|
+
border: 1px solid #cccccc;
|
|
1440
|
+
background: #ffffff;
|
|
1441
|
+
`;
|
|
1442
|
+
const Remove = styled(Icon) `
|
|
1443
|
+
width: 24px;
|
|
1444
|
+
height: 24px;
|
|
1445
|
+
cursor: pointer;
|
|
1446
|
+
|
|
1447
|
+
> path {
|
|
1448
|
+
fill: ${Colors.RED.Hex} !important;
|
|
1449
|
+
}
|
|
1450
1450
|
`;
|
|
1451
1451
|
const FileUpload = ({ accept, onChange, onError, maxFiles = 10, maxSize = 2, value = [], message, tooltipInfo = '', validateFile, }) => {
|
|
1452
1452
|
const inputRef = React.useRef(null);
|