@gallop.software/studio 0.1.79 → 0.1.80

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.
@@ -1582,6 +1582,10 @@ var styles4 = {
1582
1582
  &:hover {
1583
1583
  border-color: #d0d5dd;
1584
1584
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
1585
+
1586
+ button[title="Rename"] {
1587
+ opacity: 1;
1588
+ }
1585
1589
  }
1586
1590
  `,
1587
1591
  itemSelected: css4`
@@ -1719,15 +1723,11 @@ var styles4 = {
1719
1723
  flex: 1;
1720
1724
  min-width: 0;
1721
1725
  `,
1722
- actionBtns: css4`
1726
+ copyBtn: css4`
1723
1727
  position: absolute;
1724
1728
  top: 4px;
1725
1729
  right: 4px;
1726
1730
  z-index: 10;
1727
- display: flex;
1728
- gap: 2px;
1729
- `,
1730
- copyBtn: css4`
1731
1731
  height: 28px;
1732
1732
  width: 28px;
1733
1733
  color: ${colors.textMuted};
@@ -1740,12 +1740,40 @@ var styles4 = {
1740
1740
  display: flex;
1741
1741
  align-items: center;
1742
1742
  justify-content: center;
1743
- position: relative;
1744
1743
 
1745
1744
  &:hover {
1746
1745
  color: ${colors.text};
1747
1746
  }
1748
1747
  `,
1748
+ nameRow: css4`
1749
+ display: flex;
1750
+ align-items: center;
1751
+ gap: 4px;
1752
+ `,
1753
+ renameBtn: css4`
1754
+ flex-shrink: 0;
1755
+ height: 20px;
1756
+ width: 20px;
1757
+ color: ${colors.textMuted};
1758
+ background: transparent;
1759
+ border: none;
1760
+ padding: 0;
1761
+ cursor: pointer;
1762
+ border-radius: 4px;
1763
+ transition: all 0.15s ease;
1764
+ display: flex;
1765
+ align-items: center;
1766
+ justify-content: center;
1767
+ opacity: 0;
1768
+
1769
+ &:hover {
1770
+ color: ${colors.text};
1771
+ }
1772
+ `,
1773
+ renameIcon: css4`
1774
+ width: 14px;
1775
+ height: 14px;
1776
+ `,
1749
1777
  copyIcon: css4`
1750
1778
  width: 18px;
1751
1779
  height: 18px;
@@ -2036,32 +2064,18 @@ function GridItem({ item, isSelected, onClick, onOpen, onGenerateThumbnail, onRe
2036
2064
  ),
2037
2065
  item.cdnSynced && /* @__PURE__ */ jsx4("span", { css: styles4.cdnBadge, children: "CDN" }),
2038
2066
  /* @__PURE__ */ jsxs4("div", { css: styles4.content, children: [
2039
- /* @__PURE__ */ jsxs4("div", { css: styles4.actionBtns, children: [
2040
- /* @__PURE__ */ jsxs4(
2041
- "button",
2042
- {
2043
- css: styles4.copyBtn,
2044
- onClick: handleCopyPath,
2045
- title: "Copy file path",
2046
- children: [
2047
- showCopied && /* @__PURE__ */ jsx4("span", { css: styles4.tooltip, children: "Copied!" }),
2048
- /* @__PURE__ */ jsx4("svg", { css: styles4.copyIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx4("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2" }) })
2049
- ]
2050
- }
2051
- ),
2052
- /* @__PURE__ */ jsx4(
2053
- "button",
2054
- {
2055
- css: styles4.copyBtn,
2056
- onClick: (e) => {
2057
- e.stopPropagation();
2058
- onRename();
2059
- },
2060
- title: "Rename",
2061
- children: /* @__PURE__ */ jsx4("svg", { css: styles4.copyIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx4("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" }) })
2062
- }
2063
- )
2064
- ] }),
2067
+ /* @__PURE__ */ jsxs4(
2068
+ "button",
2069
+ {
2070
+ css: styles4.copyBtn,
2071
+ onClick: handleCopyPath,
2072
+ title: "Copy file path",
2073
+ children: [
2074
+ showCopied && /* @__PURE__ */ jsx4("span", { css: styles4.tooltip, children: "Copied!" }),
2075
+ /* @__PURE__ */ jsx4("svg", { css: styles4.copyIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx4("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2" }) })
2076
+ ]
2077
+ }
2078
+ ),
2065
2079
  /* @__PURE__ */ jsx4(
2066
2080
  "button",
2067
2081
  {
@@ -2101,7 +2115,21 @@ function GridItem({ item, isSelected, onClick, onOpen, onGenerateThumbnail, onRe
2101
2115
  ) : /* @__PURE__ */ jsx4("svg", { css: styles4.fileIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx4("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" }) })
2102
2116
  ] }),
2103
2117
  /* @__PURE__ */ jsx4("div", { css: styles4.label, children: /* @__PURE__ */ jsx4("div", { css: styles4.labelRow, children: /* @__PURE__ */ jsxs4("div", { css: styles4.labelText, children: [
2104
- /* @__PURE__ */ jsx4("p", { css: styles4.name, title: item.name, children: truncateMiddle(item.name) }),
2118
+ /* @__PURE__ */ jsxs4("div", { css: styles4.nameRow, children: [
2119
+ /* @__PURE__ */ jsx4("p", { css: styles4.name, title: item.name, children: truncateMiddle(item.name) }),
2120
+ /* @__PURE__ */ jsx4(
2121
+ "button",
2122
+ {
2123
+ css: styles4.renameBtn,
2124
+ onClick: (e) => {
2125
+ e.stopPropagation();
2126
+ onRename();
2127
+ },
2128
+ title: "Rename",
2129
+ children: /* @__PURE__ */ jsx4("svg", { css: styles4.renameIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx4("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" }) })
2130
+ }
2131
+ )
2132
+ ] }),
2105
2133
  isFolder ? /* @__PURE__ */ jsxs4("p", { css: styles4.size, children: [
2106
2134
  item.fileCount !== void 0 ? `${item.fileCount} files` : "",
2107
2135
  item.fileCount !== void 0 && item.totalSize !== void 0 ? " \xB7 " : "",
@@ -3930,4 +3958,4 @@ export {
3930
3958
  StudioUI,
3931
3959
  StudioUI_default as default
3932
3960
  };
3933
- //# sourceMappingURL=StudioUI-DRDR7N4T.mjs.map
3961
+ //# sourceMappingURL=StudioUI-VPNL5NMI.mjs.map