@industry-theme/backlogmd-kanban-panel 1.0.19 → 1.0.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.
@@ -7,7 +7,6 @@ import type { PanelComponentProps } from '../types';
7
7
  * - Kanban board with configurable status columns
8
8
  * - Task cards with priority indicators
9
9
  * - Labels and assignee information
10
- * - Mock data for testing (to be replaced with real data)
11
10
  */
12
11
  export declare const KanbanPanel: React.FC<PanelComponentProps>;
13
12
  //# sourceMappingURL=KanbanPanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanPanel.d.ts","sourceRoot":"","sources":["../../src/panels/KanbanPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAc9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AA+hBpD;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMrD,CAAC"}
1
+ {"version":3,"file":"KanbanPanel.d.ts","sourceRoot":"","sources":["../../src/panels/KanbanPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAc9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAYpD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA8gBrD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/KanbanPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAU5D,QAAA,MAAM,IAAI;;;;;;;;;;;;CAgB0B,CAAC;AAErC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAkInC,eAAO,MAAM,UAAU,EAAE,KA0BxB,CAAC;AAKF,eAAO,MAAM,YAAY,EAAE,KAc1B,CAAC"}
1
+ {"version":3,"file":"KanbanPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/KanbanPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAW5D,QAAA,MAAM,IAAI;;;;;;;;;;;;CAkB0B,CAAC;AAErC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAkInC,eAAO,MAAM,UAAU,EAAE,KA0BxB,CAAC;AAKF,eAAO,MAAM,YAAY,EAAE,KAc1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MilestonePanel.d.ts","sourceRoot":"","sources":["../../src/panels/MilestonePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAiTpD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMxD,CAAC"}
1
+ {"version":3,"file":"MilestonePanel.d.ts","sourceRoot":"","sources":["../../src/panels/MilestonePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAMpD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsSxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MilestonePanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/MilestonePanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAS5D,QAAA,MAAM,IAAI;;;;;;;;;;;;CAgB6B,CAAC;AAExC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA0KnC,eAAO,MAAM,UAAU,EAAE,KAyBxB,CAAC;AAKF,eAAO,MAAM,cAAc,EAAE,KAa5B,CAAC"}
1
+ {"version":3,"file":"MilestonePanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/MilestonePanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAU5D,QAAA,MAAM,IAAI;;;;;;;;;;;;CAkB6B,CAAC;AAExC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA0KnC,eAAO,MAAM,UAAU,EAAE,KAyBxB,CAAC;AAKF,eAAO,MAAM,cAAc,EAAE,KAa5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TaskDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/TaskDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,mBAAmB,EAAqB,MAAM,UAAU,CAAC;AAoavE;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMzD,CAAC"}
1
+ {"version":3,"file":"TaskDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/TaskDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,mBAAmB,EAAqB,MAAM,UAAU,CAAC;AA+IvE;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgRzD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TaskDetailPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/TaskDetailPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAU5D,QAAA,MAAM,IAAI;;;;;;;;;;;;CAgB8B,CAAC;AAEzC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAkFnC,eAAO,MAAM,UAAU,EAAE,KAaxB,CAAC;AAQF,eAAO,MAAM,gBAAgB,EAAE,KAoB9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KA6B9B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KA4BzB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KA2B5B,CAAC"}
1
+ {"version":3,"file":"TaskDetailPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/TaskDetailPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAW5D,QAAA,MAAM,IAAI;;;;;;;;;;;;CAkB8B,CAAC;AAEzC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAkFnC,eAAO,MAAM,UAAU,EAAE,KAaxB,CAAC;AAQF,eAAO,MAAM,gBAAgB,EAAE,KAoB9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KA6B9B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KA4BzB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KA2B5B,CAAC"}
@@ -4052,158 +4052,6 @@ const __iconNode = [
4052
4052
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
4053
4053
  ];
4054
4054
  const X = createLucideIcon("x", __iconNode);
4055
- var terminalTheme$1 = {
4056
- space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
4057
- fonts: {
4058
- body: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace',
4059
- heading: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace',
4060
- monospace: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace'
4061
- },
4062
- fontSizes: [12, 14, 16, 18, 20, 24, 32, 48, 64, 96],
4063
- fontScale: 1,
4064
- fontWeights: {
4065
- body: 400,
4066
- heading: 500,
4067
- bold: 600,
4068
- light: 300,
4069
- medium: 500,
4070
- semibold: 600
4071
- },
4072
- lineHeights: {
4073
- body: 1.6,
4074
- heading: 1.3,
4075
- tight: 1.4,
4076
- relaxed: 1.8
4077
- },
4078
- breakpoints: ["640px", "768px", "1024px", "1280px"],
4079
- sizes: [16, 32, 64, 128, 256, 512, 768, 1024, 1536],
4080
- radii: [0, 2, 4, 6, 8, 12, 16, 24],
4081
- shadows: [
4082
- "none",
4083
- "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
4084
- "0 2px 4px 0 rgba(0, 0, 0, 0.06)",
4085
- "0 4px 6px 0 rgba(0, 0, 0, 0.07)",
4086
- "0 8px 12px 0 rgba(0, 0, 0, 0.08)",
4087
- "0 16px 24px 0 rgba(0, 0, 0, 0.10)"
4088
- ],
4089
- zIndices: [0, 1, 10, 20, 30, 40, 50],
4090
- colors: {
4091
- text: "#e4e4e4",
4092
- background: "rgba(10, 10, 10, 0.85)",
4093
- primary: "#66b3ff",
4094
- secondary: "#80c4ff",
4095
- accent: "#66ff99",
4096
- highlight: "rgba(102, 179, 255, 0.15)",
4097
- muted: "rgba(26, 26, 26, 0.8)",
4098
- success: "#66ff99",
4099
- warning: "#ffcc66",
4100
- error: "#ff6666",
4101
- info: "#66b3ff",
4102
- border: "rgba(255, 255, 255, 0.1)",
4103
- backgroundSecondary: "rgba(15, 15, 15, 0.9)",
4104
- backgroundTertiary: "rgba(20, 20, 20, 0.9)",
4105
- backgroundLight: "rgba(255, 255, 255, 0.05)",
4106
- backgroundHover: "rgba(102, 179, 255, 0.08)",
4107
- surface: "rgba(15, 15, 15, 0.95)",
4108
- textSecondary: "rgba(255, 255, 255, 0.7)",
4109
- textTertiary: "rgba(255, 255, 255, 0.5)",
4110
- textMuted: "rgba(255, 255, 255, 0.4)",
4111
- highlightBg: "rgba(255, 235, 59, 0.25)",
4112
- highlightBorder: "rgba(255, 235, 59, 0.5)"
4113
- },
4114
- modes: {
4115
- light: {
4116
- text: "#1a1a1a",
4117
- background: "rgba(255, 255, 255, 0.9)",
4118
- primary: "#0066cc",
4119
- secondary: "#0052a3",
4120
- accent: "#00cc88",
4121
- highlight: "rgba(0, 102, 204, 0.08)",
4122
- muted: "rgba(245, 245, 245, 0.8)",
4123
- success: "#00cc88",
4124
- warning: "#ffaa00",
4125
- error: "#ff3333",
4126
- info: "#0066cc",
4127
- border: "rgba(0, 0, 0, 0.1)",
4128
- backgroundSecondary: "rgba(250, 250, 250, 0.9)",
4129
- backgroundTertiary: "rgba(245, 245, 245, 0.9)",
4130
- backgroundLight: "rgba(0, 0, 0, 0.02)",
4131
- backgroundHover: "rgba(0, 102, 204, 0.04)",
4132
- surface: "rgba(255, 255, 255, 0.95)",
4133
- textSecondary: "rgba(0, 0, 0, 0.6)",
4134
- textTertiary: "rgba(0, 0, 0, 0.4)",
4135
- textMuted: "rgba(0, 0, 0, 0.3)",
4136
- highlightBg: "rgba(255, 235, 59, 0.3)",
4137
- highlightBorder: "rgba(255, 235, 59, 0.6)"
4138
- }
4139
- },
4140
- buttons: {
4141
- primary: {
4142
- color: "white",
4143
- bg: "primary",
4144
- borderWidth: 0,
4145
- "&:hover": {
4146
- bg: "secondary"
4147
- }
4148
- },
4149
- secondary: {
4150
- color: "primary",
4151
- bg: "transparent",
4152
- borderWidth: 1,
4153
- borderStyle: "solid",
4154
- borderColor: "primary",
4155
- "&:hover": {
4156
- bg: "highlight"
4157
- }
4158
- },
4159
- ghost: {
4160
- color: "text",
4161
- bg: "transparent",
4162
- "&:hover": {
4163
- bg: "backgroundHover"
4164
- }
4165
- }
4166
- },
4167
- text: {
4168
- heading: {
4169
- fontFamily: "heading",
4170
- fontWeight: "heading",
4171
- lineHeight: "heading"
4172
- },
4173
- body: {
4174
- fontFamily: "body",
4175
- fontWeight: "body",
4176
- lineHeight: "body"
4177
- },
4178
- caption: {
4179
- fontSize: 1,
4180
- color: "textSecondary"
4181
- }
4182
- },
4183
- cards: {
4184
- primary: {
4185
- bg: "surface",
4186
- border: "1px solid",
4187
- borderColor: "border",
4188
- borderRadius: 1
4189
- },
4190
- secondary: {
4191
- bg: "backgroundSecondary",
4192
- border: "1px solid",
4193
- borderColor: "border",
4194
- borderRadius: 1
4195
- }
4196
- }
4197
- };
4198
- function getMode(theme2, mode) {
4199
- if (!mode || !theme2.modes || !theme2.modes[mode]) {
4200
- return theme2.colors;
4201
- }
4202
- return {
4203
- ...theme2.colors,
4204
- ...theme2.modes[mode]
4205
- };
4206
- }
4207
4055
  var ThemeContext$1;
4208
4056
  var getThemeContext$1 = () => {
4209
4057
  if (typeof window !== "undefined") {
@@ -4227,46 +4075,6 @@ var useTheme = () => {
4227
4075
  }
4228
4076
  return context;
4229
4077
  };
4230
- var ThemeProvider = ({
4231
- children: children2,
4232
- theme: customTheme = theme$1,
4233
- initialMode
4234
- }) => {
4235
- const [mode, setMode] = useState(initialMode);
4236
- const activeTheme = React2__default.useMemo(() => {
4237
- if (!mode || !customTheme.modes || !customTheme.modes[mode]) {
4238
- return customTheme;
4239
- }
4240
- return {
4241
- ...customTheme,
4242
- colors: getMode(customTheme, mode)
4243
- };
4244
- }, [customTheme, mode]);
4245
- useEffect(() => {
4246
- if (!initialMode) {
4247
- const savedMode = localStorage.getItem("principlemd-theme-mode");
4248
- if (savedMode) {
4249
- setMode(savedMode);
4250
- }
4251
- }
4252
- }, [initialMode]);
4253
- useEffect(() => {
4254
- if (mode) {
4255
- localStorage.setItem("principlemd-theme-mode", mode);
4256
- } else {
4257
- localStorage.removeItem("principlemd-theme-mode");
4258
- }
4259
- }, [mode]);
4260
- const value = {
4261
- theme: activeTheme,
4262
- mode,
4263
- setMode
4264
- };
4265
- return /* @__PURE__ */ React2__default.createElement(ThemeContextSingleton.Provider, {
4266
- value
4267
- }, children2);
4268
- };
4269
- var theme$1 = terminalTheme$1;
4270
4078
  function parseTaskMarkdown(content2, filePath) {
4271
4079
  const { frontmatter, title, rawContent, acceptanceCriteria, description } = parseMarkdownContent(content2);
4272
4080
  const id = extractIdFromPath(filePath);
@@ -6866,7 +6674,7 @@ const EmptyState = ({
6866
6674
  gap: "8px",
6867
6675
  padding: "12px 24px",
6868
6676
  backgroundColor: theme2.colors.primary,
6869
- color: "#fff",
6677
+ color: theme2.colors.textOnPrimary,
6870
6678
  borderRadius: theme2.radii[2],
6871
6679
  border: "none",
6872
6680
  fontSize: theme2.fontSizes[2],
@@ -6902,7 +6710,7 @@ const EmptyState = ({
6902
6710
  gap: "8px",
6903
6711
  padding: "12px 24px",
6904
6712
  backgroundColor: canInitialize ? "transparent" : theme2.colors.primary,
6905
- color: canInitialize ? theme2.colors.primary : "#fff",
6713
+ color: canInitialize ? theme2.colors.primary : theme2.colors.textOnPrimary,
6906
6714
  border: canInitialize ? `1px solid ${theme2.colors.primary}` : "none",
6907
6715
  borderRadius: theme2.radii[2],
6908
6716
  textDecoration: "none",
@@ -7500,7 +7308,7 @@ const TaskModal = ({
7500
7308
  border: "none",
7501
7309
  borderRadius: theme2.radii[2],
7502
7310
  backgroundColor: theme2.colors.primary,
7503
- color: "#fff",
7311
+ color: theme2.colors.textOnPrimary,
7504
7312
  cursor: isSaving ? "wait" : "pointer",
7505
7313
  opacity: isSaving ? 0.7 : 1
7506
7314
  },
@@ -7529,7 +7337,7 @@ const TaskModal = ({
7529
7337
  if (typeof document === "undefined") return null;
7530
7338
  return createPortal(modalContent, document.body);
7531
7339
  };
7532
- const KanbanPanelContent = ({
7340
+ const KanbanPanel = ({
7533
7341
  context,
7534
7342
  actions,
7535
7343
  events: events2
@@ -7789,7 +7597,7 @@ const KanbanPanelContent = ({
7789
7597
  alignItems: "center",
7790
7598
  gap: "6px",
7791
7599
  background: theme2.colors.primary,
7792
- color: theme2.colors.background,
7600
+ color: theme2.colors.textOnPrimary,
7793
7601
  border: "none",
7794
7602
  borderRadius: theme2.radii[2],
7795
7603
  padding: "6px 12px",
@@ -7900,7 +7708,7 @@ const KanbanPanelContent = ({
7900
7708
  border: "none",
7901
7709
  borderRadius: theme2.radii[1],
7902
7710
  background: isSelected ? theme2.colors.primary : "transparent",
7903
- color: isSelected ? theme2.colors.background : theme2.colors.textSecondary,
7711
+ color: isSelected ? theme2.colors.textOnPrimary : theme2.colors.textSecondary,
7904
7712
  fontSize: theme2.fontSizes[1],
7905
7713
  fontWeight: theme2.fontWeights.medium,
7906
7714
  cursor: "pointer",
@@ -8014,9 +7822,6 @@ const KanbanPanelContent = ({
8014
7822
  }
8015
7823
  );
8016
7824
  };
8017
- const KanbanPanel = (props) => {
8018
- return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(KanbanPanelContent, { ...props }) });
8019
- };
8020
7825
  const VOID = -1;
8021
7826
  const PRIMITIVE = 0;
8022
7827
  const ARRAY = 1;
@@ -52066,7 +51871,7 @@ const MetadataRow = ({ icon, label, value }) => {
52066
51871
  }
52067
51872
  );
52068
51873
  };
52069
- const TaskDetailPanelContent = ({ context, actions, events: events2 }) => {
51874
+ const TaskDetailPanel = ({ context, actions, events: events2 }) => {
52070
51875
  const { theme: theme2 } = useTheme();
52071
51876
  const [selectedTask, setSelectedTask] = useState(null);
52072
51877
  useEffect(() => {
@@ -52343,9 +52148,6 @@ const TaskDetailPanelContent = ({ context, actions, events: events2 }) => {
52343
52148
  }
52344
52149
  );
52345
52150
  };
52346
- const TaskDetailPanel = (props) => {
52347
- return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(TaskDetailPanelContent, { ...props }) });
52348
- };
52349
52151
  function useMilestoneData(options) {
52350
52152
  const { context, actions } = options || {};
52351
52153
  const [milestones, setMilestones] = useState([]);
@@ -53168,7 +52970,7 @@ const MilestoneModal = ({
53168
52970
  border: "none",
53169
52971
  borderRadius: theme2.radii[2],
53170
52972
  backgroundColor: theme2.colors.primary,
53171
- color: "#fff",
52973
+ color: theme2.colors.textOnPrimary,
53172
52974
  cursor: isSaving ? "wait" : "pointer",
53173
52975
  opacity: isSaving ? 0.7 : 1
53174
52976
  },
@@ -53197,7 +52999,7 @@ const MilestoneModal = ({
53197
52999
  if (typeof document === "undefined") return null;
53198
53000
  return createPortal(modalContent, document.body);
53199
53001
  };
53200
- const MilestonePanelContent = ({
53002
+ const MilestonePanel = ({
53201
53003
  context,
53202
53004
  actions,
53203
53005
  events: events2
@@ -53312,7 +53114,7 @@ const MilestonePanelContent = ({
53312
53114
  alignItems: "center",
53313
53115
  gap: "6px",
53314
53116
  background: theme2.colors.primary,
53315
- color: theme2.colors.background,
53117
+ color: theme2.colors.textOnPrimary,
53316
53118
  border: "none",
53317
53119
  borderRadius: theme2.radii[2],
53318
53120
  padding: "6px 12px",
@@ -53475,9 +53277,6 @@ const MilestonePanelContent = ({
53475
53277
  }
53476
53278
  );
53477
53279
  };
53478
- const MilestonePanel = (props) => {
53479
- return /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(MilestonePanelContent, { ...props }) });
53480
- };
53481
53280
  const moveTaskTool = {
53482
53281
  name: "move_task",
53483
53282
  description: "Moves a task to a different status column on the kanban board",