@codebit-programando-solucoes/codebit-web-antd 1.1.47 → 1.1.49

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/index.cjs CHANGED
@@ -1395,6 +1395,7 @@ var __webpack_exports__ = {};
1395
1395
  const ListCard_module = {
1396
1396
  listCard: "listCard-ISftFd",
1397
1397
  headerRow: "headerRow-UsZAzP",
1398
+ titleCol: "titleCol-o2L2nw",
1398
1399
  actions: "actions-ig53s2",
1399
1400
  filtersRow: "filtersRow-f3Xk5a",
1400
1401
  expandArea: "expandArea-czOoFS"
@@ -1408,7 +1409,10 @@ var __webpack_exports__ = {};
1408
1409
  className: ListCard_module.listCard,
1409
1410
  children: [
1410
1411
  /*#__PURE__*/ (0, jsx_runtime.jsxs)(external_antd_namespaceObject.Row, {
1411
- gutter: margin,
1412
+ gutter: [
1413
+ margin,
1414
+ margin
1415
+ ],
1412
1416
  align: 'middle',
1413
1417
  className: ListCard_module.headerRow,
1414
1418
  children: [
@@ -1416,8 +1420,12 @@ var __webpack_exports__ = {};
1416
1420
  xs: 24,
1417
1421
  sm: 24,
1418
1422
  md: 12,
1423
+ className: ListCard_module.titleCol,
1419
1424
  children: /*#__PURE__*/ (0, jsx_runtime.jsx)(Title, {
1420
1425
  level: 4,
1426
+ ellipsis: {
1427
+ tooltip: title
1428
+ },
1421
1429
  children: title
1422
1430
  })
1423
1431
  }),
@@ -1683,10 +1691,13 @@ var __webpack_exports__ = {};
1683
1691
  };
1684
1692
  const togglePlay = async ()=>{
1685
1693
  if (!audioRef.current || !hasSource) return;
1686
- if (audioRef.current.paused) {
1694
+ if (audioRef.current.paused) try {
1687
1695
  await audioRef.current.play();
1688
1696
  setIsPlaying(true);
1689
- } else {
1697
+ } catch {
1698
+ setIsPlaying(false);
1699
+ }
1700
+ else {
1690
1701
  audioRef.current.pause();
1691
1702
  setIsPlaying(false);
1692
1703
  }
@@ -1706,7 +1717,6 @@ var __webpack_exports__ = {};
1706
1717
  if (audioRef.current && audioUrl) {
1707
1718
  audioRef.current.pause();
1708
1719
  audioRef.current.currentTime = 0;
1709
- audioRef.current.src = audioUrl;
1710
1720
  audioRef.current.load();
1711
1721
  }
1712
1722
  setIsPlaying(false);
@@ -1780,6 +1790,7 @@ var __webpack_exports__ = {};
1780
1790
  }),
1781
1791
  /*#__PURE__*/ (0, jsx_runtime.jsx)("audio", {
1782
1792
  ref: audioRef,
1793
+ src: audioUrl,
1783
1794
  onTimeUpdate: (e)=>{
1784
1795
  if (!isPlaying) return;
1785
1796
  const audioElement = e.target;
package/dist/index.css CHANGED
@@ -205,9 +205,14 @@ html.dark-theme {
205
205
  margin-bottom: var(--antd-padding-lg);
206
206
  }
207
207
 
208
+ .listCard-ISftFd .headerRow-UsZAzP .titleCol-o2L2nw {
209
+ min-width: 0;
210
+ }
211
+
208
212
  .listCard-ISftFd .headerRow-UsZAzP .actions-ig53s2 {
209
213
  justify-content: flex-end;
210
214
  gap: var(--antd-margin-xs);
215
+ flex-wrap: wrap;
211
216
  display: flex;
212
217
  }
213
218
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebit-programando-solucoes/codebit-web-antd",
3
- "version": "1.1.47",
3
+ "version": "1.1.49",
4
4
  "main": "./dist/index.cjs",
5
5
  "type": "module",
6
6
  "types": "./src/index.d.ts",