@industry-theme/backlogmd-kanban-panel 1.0.39 → 1.0.40

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":"KanbanPanel.d.ts","sourceRoot":"","sources":["../../src/panels/KanbanPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6E,MAAM,OAAO,CAAC;AAelG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAiBpD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsrCrD,CAAC"}
1
+ {"version":3,"file":"KanbanPanel.d.ts","sourceRoot":"","sources":["../../src/panels/KanbanPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6E,MAAM,OAAO,CAAC;AAelG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAiBpD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAurCrD,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface BoardEmptyStateProps {
3
3
  onAddTask: () => void;
4
+ onAddMilestone: () => void;
4
5
  canWrite: boolean;
5
6
  }
6
7
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"BoardEmptyState.d.ts","sourceRoot":"","sources":["../../../../src/panels/kanban/components/BoardEmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,oBAAoB;IAC5B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAwF1D,CAAC"}
1
+ {"version":3,"file":"BoardEmptyState.d.ts","sourceRoot":"","sources":["../../../../src/panels/kanban/components/BoardEmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,oBAAoB;IAC5B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA2H1D,CAAC"}
@@ -9051,6 +9051,7 @@ const EmptyState = ({
9051
9051
  };
9052
9052
  const BoardEmptyState = ({
9053
9053
  onAddTask,
9054
+ onAddMilestone,
9054
9055
  canWrite
9055
9056
  }) => {
9056
9057
  const { theme: theme2 } = useTheme();
@@ -9102,32 +9103,74 @@ const BoardEmptyState = ({
9102
9103
  }
9103
9104
  ),
9104
9105
  canWrite ? /* @__PURE__ */ jsxs(
9105
- "button",
9106
+ "div",
9106
9107
  {
9107
- onClick: onAddTask,
9108
9108
  style: {
9109
- display: "inline-flex",
9109
+ display: "flex",
9110
9110
  alignItems: "center",
9111
- gap: "8px",
9112
- padding: "12px 24px",
9113
- backgroundColor: theme2.colors.primary,
9114
- color: theme2.colors.textOnPrimary,
9115
- borderRadius: theme2.radii[2],
9116
- border: "none",
9117
- fontSize: theme2.fontSizes[2],
9118
- fontWeight: 500,
9119
- cursor: "pointer",
9120
- transition: "opacity 0.2s"
9121
- },
9122
- onMouseEnter: (e) => {
9123
- e.currentTarget.style.opacity = "0.9";
9124
- },
9125
- onMouseLeave: (e) => {
9126
- e.currentTarget.style.opacity = "1";
9111
+ gap: "12px"
9127
9112
  },
9128
9113
  children: [
9129
- /* @__PURE__ */ jsx(Plus, { size: 16 }),
9130
- /* @__PURE__ */ jsx("span", { children: "Add Task" })
9114
+ /* @__PURE__ */ jsxs(
9115
+ "button",
9116
+ {
9117
+ onClick: onAddTask,
9118
+ style: {
9119
+ display: "inline-flex",
9120
+ alignItems: "center",
9121
+ gap: "8px",
9122
+ padding: "12px 24px",
9123
+ backgroundColor: theme2.colors.primary,
9124
+ color: theme2.colors.textOnPrimary,
9125
+ borderRadius: theme2.radii[2],
9126
+ border: "none",
9127
+ fontSize: theme2.fontSizes[2],
9128
+ fontWeight: 500,
9129
+ cursor: "pointer",
9130
+ transition: "opacity 0.2s"
9131
+ },
9132
+ onMouseEnter: (e) => {
9133
+ e.currentTarget.style.opacity = "0.9";
9134
+ },
9135
+ onMouseLeave: (e) => {
9136
+ e.currentTarget.style.opacity = "1";
9137
+ },
9138
+ children: [
9139
+ /* @__PURE__ */ jsx(Plus, { size: 16 }),
9140
+ /* @__PURE__ */ jsx("span", { children: "Add Task" })
9141
+ ]
9142
+ }
9143
+ ),
9144
+ /* @__PURE__ */ jsxs(
9145
+ "button",
9146
+ {
9147
+ onClick: onAddMilestone,
9148
+ style: {
9149
+ display: "inline-flex",
9150
+ alignItems: "center",
9151
+ gap: "8px",
9152
+ padding: "12px 24px",
9153
+ backgroundColor: theme2.colors.backgroundSecondary,
9154
+ color: theme2.colors.text,
9155
+ borderRadius: theme2.radii[2],
9156
+ border: `1px solid ${theme2.colors.border}`,
9157
+ fontSize: theme2.fontSizes[2],
9158
+ fontWeight: 500,
9159
+ cursor: "pointer",
9160
+ transition: "opacity 0.2s"
9161
+ },
9162
+ onMouseEnter: (e) => {
9163
+ e.currentTarget.style.opacity = "0.9";
9164
+ },
9165
+ onMouseLeave: (e) => {
9166
+ e.currentTarget.style.opacity = "1";
9167
+ },
9168
+ children: [
9169
+ /* @__PURE__ */ jsx(Milestone, { size: 16 }),
9170
+ /* @__PURE__ */ jsx("span", { children: "Add Milestone" })
9171
+ ]
9172
+ }
9173
+ )
9131
9174
  ]
9132
9175
  }
9133
9176
  ) : /* @__PURE__ */ jsx(
@@ -10523,7 +10566,7 @@ const KanbanPanel = ({
10523
10566
  )
10524
10567
  }
10525
10568
  ),
10526
- isBacklogProject && /* @__PURE__ */ jsxs(
10569
+ isBacklogProject && totalTasksState.total > 0 && /* @__PURE__ */ jsxs(
10527
10570
  "div",
10528
10571
  {
10529
10572
  style: {
@@ -10580,7 +10623,7 @@ const KanbanPanel = ({
10580
10623
  }
10581
10624
  )
10582
10625
  ] }),
10583
- isBacklogProject && viewMode === "board" && /* @__PURE__ */ jsxs(
10626
+ isBacklogProject && viewMode === "board" && totalTasksState.total > 0 && /* @__PURE__ */ jsxs(
10584
10627
  "div",
10585
10628
  {
10586
10629
  style: {
@@ -10650,7 +10693,7 @@ const KanbanPanel = ({
10650
10693
  ]
10651
10694
  }
10652
10695
  ),
10653
- isBacklogProject && /* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center", gap: "12px", flexWrap: "wrap" }, children: viewMode === "board" ? /* @__PURE__ */ jsxs(Fragment, { children: [
10696
+ isBacklogProject && totalTasksState.total > 0 && /* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center", gap: "12px", flexWrap: "wrap" }, children: viewMode === "board" ? /* @__PURE__ */ jsxs(Fragment, { children: [
10654
10697
  canWrite && /* @__PURE__ */ jsxs(
10655
10698
  "button",
10656
10699
  {
@@ -10812,6 +10855,7 @@ const KanbanPanel = ({
10812
10855
  BoardEmptyState,
10813
10856
  {
10814
10857
  onAddTask: handleOpenNewTask,
10858
+ onAddMilestone: handleOpenNewMilestone,
10815
10859
  canWrite
10816
10860
  }
10817
10861
  ) : /* @__PURE__ */ jsxs(