@aiquants/drag-drop-panels 0.7.0 → 0.7.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnInsertPanel.d.ts","sourceRoot":"","sources":["../../src/drag-drop/ColumnInsertPanel.tsx"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAA;IACnB,gGAAgG;IAChG,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,gGAAgG;IAChG,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,mFAAmF;IACnF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mFAAmF;IACnF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,sFAAsF;IACtF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,yGAAyG;IACzG,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAAI,+FAAuH,sBAAsB,
|
|
1
|
+
{"version":3,"file":"ColumnInsertPanel.d.ts","sourceRoot":"","sources":["../../src/drag-drop/ColumnInsertPanel.tsx"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAA;IACnB,gGAAgG;IAChG,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,gGAAgG;IAChG,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,mFAAmF;IACnF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mFAAmF;IACnF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,sFAAsF;IACtF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,yGAAyG;IACzG,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAAI,+FAAuH,sBAAsB,gCA6D9K,CAAA"}
|
package/dist/index.es.js
CHANGED
|
@@ -1086,35 +1086,32 @@ const Ct = ({
|
|
|
1086
1086
|
children: /* @__PURE__ */ e.jsx(Se, { className: "h-4 w-4" })
|
|
1087
1087
|
}
|
|
1088
1088
|
),
|
|
1089
|
-
Array.from({ length: r }, (S, v) => (
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
/* @__PURE__ */ e.
|
|
1093
|
-
/* @__PURE__ */ e.jsx("span", { className: "font-medium font-mono text-slate-700 text-xs", children: v + 1 }),
|
|
1094
|
-
h && !i && /* @__PURE__ */ e.jsx(
|
|
1095
|
-
"button",
|
|
1096
|
-
{
|
|
1097
|
-
type: "button",
|
|
1098
|
-
onClick: () => n(v),
|
|
1099
|
-
className: "absolute -top-1 -right-1 flex h-4 w-4 items-center justify-center rounded-full border border-red-300 bg-red-100 text-red-600 hover:bg-red-200",
|
|
1100
|
-
title: `カラム ${v + 1} を削除`,
|
|
1101
|
-
children: /* @__PURE__ */ e.jsx(He, { className: "h-2.5 w-2.5" })
|
|
1102
|
-
}
|
|
1103
|
-
)
|
|
1104
|
-
] }),
|
|
1105
|
-
/* @__PURE__ */ e.jsx(
|
|
1089
|
+
Array.from({ length: r }, (S, v) => /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
1090
|
+
/* @__PURE__ */ e.jsxs("div", { className: "relative flex h-8 w-12 items-center justify-center rounded border border-slate-300 bg-slate-100", children: [
|
|
1091
|
+
/* @__PURE__ */ e.jsx("span", { className: "font-medium font-mono text-slate-700 text-xs", children: v + 1 }),
|
|
1092
|
+
h && !i && /* @__PURE__ */ e.jsx(
|
|
1106
1093
|
"button",
|
|
1107
1094
|
{
|
|
1108
1095
|
type: "button",
|
|
1109
|
-
onClick: () =>
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
children: /* @__PURE__ */ e.jsx(Se, { className: "h-4 w-4" })
|
|
1096
|
+
onClick: () => n(v),
|
|
1097
|
+
className: "absolute -top-1 -right-1 flex h-4 w-4 items-center justify-center rounded-full border border-red-300 bg-red-100 text-red-600 hover:bg-red-200",
|
|
1098
|
+
title: `カラム ${v + 1} を削除`,
|
|
1099
|
+
children: /* @__PURE__ */ e.jsx(He, { className: "h-2.5 w-2.5" })
|
|
1114
1100
|
}
|
|
1115
1101
|
)
|
|
1116
|
-
] },
|
|
1117
|
-
|
|
1102
|
+
] }),
|
|
1103
|
+
/* @__PURE__ */ e.jsx(
|
|
1104
|
+
"button",
|
|
1105
|
+
{
|
|
1106
|
+
type: "button",
|
|
1107
|
+
onClick: () => c && t(v + 1),
|
|
1108
|
+
disabled: !c || i,
|
|
1109
|
+
className: `flex h-8 w-8 items-center justify-center rounded border-2 border-dashed text-xs transition-colors ${c && !i ? "border-blue-300 text-blue-600 hover:border-blue-500 hover:bg-blue-50" : "cursor-not-allowed border-slate-200 text-slate-300"}`,
|
|
1110
|
+
title: "この位置に新しいカラムを挿入",
|
|
1111
|
+
children: /* @__PURE__ */ e.jsx(Se, { className: "h-4 w-4" })
|
|
1112
|
+
}
|
|
1113
|
+
)
|
|
1114
|
+
] }, `column-${v}`))
|
|
1118
1115
|
] })
|
|
1119
1116
|
] });
|
|
1120
1117
|
}, Tt = ({ config: r, onConfigChange: t, isVisible: n, onToggleVisibility: l }) => n ? /* @__PURE__ */ e.jsxs("div", { className: "fixed right-4 bottom-4 z-50 max-w-sm rounded-lg border border-gray-300 bg-white p-4 shadow-xl", children: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiquants/drag-drop-panels",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Reusable drag-and-drop panel layout components and utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"license-check": "pnpm dlx license-checker --production --onlyAllow \"MIT;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC;Unlicense\"",
|
|
71
71
|
"license-check:json": "pnpm dlx license-checker --production --onlyAllow \"MIT;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC;Unlicense\" --json",
|
|
72
72
|
"clean": "rimraf dist",
|
|
73
|
-
"publish:patch": "
|
|
74
|
-
"publish:minor": "
|
|
75
|
-
"publish:major": "
|
|
73
|
+
"publish:patch": "pnpm run typecheck && pnpm run --if-present test && pnpm version patch --no-git-tag-version --no-git-checks && pnpm publish --no-git-checks",
|
|
74
|
+
"publish:minor": "pnpm run typecheck && pnpm run --if-present test && pnpm version minor --no-git-tag-version --no-git-checks && pnpm publish --no-git-checks",
|
|
75
|
+
"publish:major": "pnpm run typecheck && pnpm run --if-present test && pnpm version major --no-git-tag-version --no-git-checks && pnpm publish --no-git-checks"
|
|
76
76
|
}
|
|
77
77
|
}
|