@industry-theme/backlogmd-kanban-panel 1.2.0 → 1.2.1

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.
@@ -4054,6 +4054,159 @@ const __iconNode = [
4054
4054
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
4055
4055
  ];
4056
4056
  const X = createLucideIcon("x", __iconNode);
4057
+ var terminalTheme$1 = {
4058
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
4059
+ fonts: {
4060
+ body: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace',
4061
+ heading: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace',
4062
+ monospace: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace'
4063
+ },
4064
+ fontSizes: [12, 14, 16, 18, 20, 24, 32, 48, 64, 96],
4065
+ fontScale: 1,
4066
+ fontWeights: {
4067
+ body: 400,
4068
+ heading: 500,
4069
+ bold: 600,
4070
+ light: 300,
4071
+ medium: 500,
4072
+ semibold: 600
4073
+ },
4074
+ lineHeights: {
4075
+ body: 1.6,
4076
+ heading: 1.3,
4077
+ tight: 1.4,
4078
+ relaxed: 1.8
4079
+ },
4080
+ breakpoints: ["640px", "768px", "1024px", "1280px"],
4081
+ sizes: [16, 32, 64, 128, 256, 512, 768, 1024, 1536],
4082
+ radii: [0, 2, 4, 6, 8, 12, 16, 24],
4083
+ shadows: [
4084
+ "none",
4085
+ "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
4086
+ "0 2px 4px 0 rgba(0, 0, 0, 0.06)",
4087
+ "0 4px 6px 0 rgba(0, 0, 0, 0.07)",
4088
+ "0 8px 12px 0 rgba(0, 0, 0, 0.08)",
4089
+ "0 16px 24px 0 rgba(0, 0, 0, 0.10)"
4090
+ ],
4091
+ zIndices: [0, 1, 10, 20, 30, 40, 50],
4092
+ colors: {
4093
+ text: "#e4e4e4",
4094
+ background: "#0a0a0a",
4095
+ primary: "#66b3ff",
4096
+ secondary: "#80c4ff",
4097
+ accent: "#66ff99",
4098
+ highlight: "#18283d",
4099
+ muted: "#1a1a1a",
4100
+ success: "#66ff99",
4101
+ warning: "#ffcc66",
4102
+ error: "#ff6666",
4103
+ info: "#66b3ff",
4104
+ border: "#1a1a1a",
4105
+ backgroundSecondary: "#0f0f0f",
4106
+ backgroundTertiary: "#141414",
4107
+ backgroundLight: "#0d0d0d",
4108
+ backgroundHover: "#0d1520",
4109
+ surface: "#0f0f0f",
4110
+ textSecondary: "#b3b3b3",
4111
+ textTertiary: "#808080",
4112
+ textMuted: "#666666",
4113
+ highlightBg: "#40391e",
4114
+ highlightBorder: "#7f7530",
4115
+ textOnPrimary: "#ffffff"
4116
+ },
4117
+ modes: {
4118
+ light: {
4119
+ text: "#1a1a1a",
4120
+ background: "#ffffff",
4121
+ primary: "#0066cc",
4122
+ secondary: "#0052a3",
4123
+ accent: "#00cc88",
4124
+ highlight: "#e6f2ff",
4125
+ muted: "#f5f5f5",
4126
+ success: "#00cc88",
4127
+ warning: "#ffaa00",
4128
+ error: "#ff3333",
4129
+ info: "#0066cc",
4130
+ border: "#e6e6e6",
4131
+ backgroundSecondary: "#fafafa",
4132
+ backgroundTertiary: "#f5f5f5",
4133
+ backgroundLight: "#fafafa",
4134
+ backgroundHover: "#f5f9fd",
4135
+ surface: "#ffffff",
4136
+ textSecondary: "#666666",
4137
+ textTertiary: "#999999",
4138
+ textMuted: "#b3b3b3",
4139
+ highlightBg: "#fff9c4",
4140
+ highlightBorder: "#fff389"
4141
+ }
4142
+ },
4143
+ buttons: {
4144
+ primary: {
4145
+ color: "white",
4146
+ bg: "primary",
4147
+ borderWidth: 0,
4148
+ "&:hover": {
4149
+ bg: "secondary"
4150
+ }
4151
+ },
4152
+ secondary: {
4153
+ color: "primary",
4154
+ bg: "transparent",
4155
+ borderWidth: 1,
4156
+ borderStyle: "solid",
4157
+ borderColor: "primary",
4158
+ "&:hover": {
4159
+ bg: "highlight"
4160
+ }
4161
+ },
4162
+ ghost: {
4163
+ color: "text",
4164
+ bg: "transparent",
4165
+ "&:hover": {
4166
+ bg: "backgroundHover"
4167
+ }
4168
+ }
4169
+ },
4170
+ text: {
4171
+ heading: {
4172
+ fontFamily: "heading",
4173
+ fontWeight: "heading",
4174
+ lineHeight: "heading"
4175
+ },
4176
+ body: {
4177
+ fontFamily: "body",
4178
+ fontWeight: "body",
4179
+ lineHeight: "body"
4180
+ },
4181
+ caption: {
4182
+ fontSize: 1,
4183
+ color: "textSecondary"
4184
+ }
4185
+ },
4186
+ cards: {
4187
+ primary: {
4188
+ bg: "surface",
4189
+ border: "1px solid",
4190
+ borderColor: "border",
4191
+ borderRadius: 1
4192
+ },
4193
+ secondary: {
4194
+ bg: "backgroundSecondary",
4195
+ border: "1px solid",
4196
+ borderColor: "border",
4197
+ borderRadius: 1
4198
+ }
4199
+ }
4200
+ };
4201
+ function getMode(theme2, mode) {
4202
+ if (!mode || !theme2.modes || !theme2.modes[mode]) {
4203
+ return theme2.colors;
4204
+ }
4205
+ return {
4206
+ ...theme2.colors,
4207
+ ...theme2.modes[mode]
4208
+ };
4209
+ }
4057
4210
  var ThemeContext$1;
4058
4211
  var getThemeContext$1 = () => {
4059
4212
  if (typeof window !== "undefined") {
@@ -4077,6 +4230,46 @@ var useTheme = () => {
4077
4230
  }
4078
4231
  return context2;
4079
4232
  };
4233
+ var ThemeProvider = ({
4234
+ children: children2,
4235
+ theme: customTheme = theme$1,
4236
+ initialMode
4237
+ }) => {
4238
+ const [mode, setMode] = useState(initialMode);
4239
+ const activeTheme = React2__default.useMemo(() => {
4240
+ if (!mode || !customTheme.modes || !customTheme.modes[mode]) {
4241
+ return customTheme;
4242
+ }
4243
+ return {
4244
+ ...customTheme,
4245
+ colors: getMode(customTheme, mode)
4246
+ };
4247
+ }, [customTheme, mode]);
4248
+ useEffect(() => {
4249
+ if (!initialMode) {
4250
+ const savedMode = localStorage.getItem("principlemd-theme-mode");
4251
+ if (savedMode) {
4252
+ setMode(savedMode);
4253
+ }
4254
+ }
4255
+ }, [initialMode]);
4256
+ useEffect(() => {
4257
+ if (mode) {
4258
+ localStorage.setItem("principlemd-theme-mode", mode);
4259
+ } else {
4260
+ localStorage.removeItem("principlemd-theme-mode");
4261
+ }
4262
+ }, [mode]);
4263
+ const value = {
4264
+ theme: activeTheme,
4265
+ mode,
4266
+ setMode
4267
+ };
4268
+ return /* @__PURE__ */ React2__default.createElement(ThemeContextSingleton.Provider, {
4269
+ value
4270
+ }, children2);
4271
+ };
4272
+ var theme$1 = terminalTheme$1;
4080
4273
  const PanelGroupContext$1 = createContext(null);
4081
4274
  PanelGroupContext$1.displayName = "PanelGroupContext";
4082
4275
  const DATA_ATTRIBUTES$1 = {
@@ -8290,7 +8483,7 @@ class Core {
8290
8483
  throw new Error("Core not initialized. Call initialize() or initializeLazy() first.");
8291
8484
  }
8292
8485
  }
8293
- const version = "1.2.0";
8486
+ const version = "1.2.1";
8294
8487
  const packageJson = {
8295
8488
  version
8296
8489
  };
@@ -8721,6 +8914,7 @@ const TaskCard = ({
8721
8914
  minHeight: "44px",
8722
8915
  touchAction: "none",
8723
8916
  userSelect: "none",
8917
+ fontFamily: theme2.fonts.body,
8724
8918
  // When dragging, the original card stays in place but becomes a placeholder
8725
8919
  // The DragOverlay handles the visual movement
8726
8920
  opacity: isDragging ? 0.4 : 1,
@@ -11573,15 +11767,18 @@ const KanbanPanel = ({
11573
11767
  })
11574
11768
  })
11575
11769
  })]
11576
- }), typeof document !== "undefined" && createPortal(/* @__PURE__ */ jsx(DragOverlay, {
11577
- dropAnimation: {
11578
- duration: 200,
11579
- easing: "ease"
11580
- },
11581
- children: activeTask ? /* @__PURE__ */ jsx(TaskCard, {
11582
- task: activeTask,
11583
- isDragOverlay: true
11584
- }) : null
11770
+ }), typeof document !== "undefined" && createPortal(/* @__PURE__ */ jsx(ThemeProvider, {
11771
+ theme: theme2,
11772
+ children: /* @__PURE__ */ jsx(DragOverlay, {
11773
+ dropAnimation: {
11774
+ duration: 200,
11775
+ easing: "ease"
11776
+ },
11777
+ children: activeTask ? /* @__PURE__ */ jsx(TaskCard, {
11778
+ task: activeTask,
11779
+ isDragOverlay: true
11780
+ }) : null
11781
+ })
11585
11782
  }), document.body)]
11586
11783
  }) : (
11587
11784
  /* Milestones View - Two Column Layout */