@industry-theme/repository-composition-panels 0.7.35 → 0.7.37

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,7 +1,7 @@
1
- import { e as extensions, A as AccessibilitySystem, C as Container, b as accessibilityTarget, E as EventSystem, c as FederatedContainer } from "./index-BB-9j583.js";
2
- import "./init-DW6JtG6v.js";
1
+ import { e as extensions, A as AccessibilitySystem, C as Container, b as accessibilityTarget, E as EventSystem, c as FederatedContainer } from "./index-CZAoI_5z.js";
2
+ import "./init-BajOuol5.js";
3
3
  extensions.add(AccessibilitySystem);
4
4
  extensions.mixin(Container, accessibilityTarget);
5
5
  extensions.add(EventSystem);
6
6
  extensions.mixin(Container, FederatedContainer);
7
- //# sourceMappingURL=browserAll-D9W2oN91.js.map
7
+ //# sourceMappingURL=browserAll-DENAMTng.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"browserAll-D9W2oN91.js","sources":["../node_modules/pixi.js/lib/accessibility/init.mjs","../node_modules/pixi.js/lib/events/init.mjs"],"sourcesContent":["import { extensions } from '../extensions/Extensions.mjs';\nimport { Container } from '../scene/container/Container.mjs';\nimport { AccessibilitySystem } from './AccessibilitySystem.mjs';\nimport { accessibilityTarget } from './accessibilityTarget.mjs';\n\n\"use strict\";\nextensions.add(AccessibilitySystem);\nextensions.mixin(Container, accessibilityTarget);\n//# sourceMappingURL=init.mjs.map\n","import { extensions } from '../extensions/Extensions.mjs';\nimport { Container } from '../scene/container/Container.mjs';\nimport { EventSystem } from './EventSystem.mjs';\nimport { FederatedContainer } from './FederatedEventTarget.mjs';\n\n\"use strict\";\nextensions.add(EventSystem);\nextensions.mixin(Container, FederatedContainer);\n//# sourceMappingURL=init.mjs.map\n"],"names":[],"mappings":";;AAMA,WAAW,IAAI,mBAAmB;AAClC,WAAW,MAAM,WAAW,mBAAmB;ACD/C,WAAW,IAAI,WAAW;AAC1B,WAAW,MAAM,WAAW,kBAAkB;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"browserAll-DENAMTng.js","sources":["../node_modules/pixi.js/lib/accessibility/init.mjs","../node_modules/pixi.js/lib/events/init.mjs"],"sourcesContent":["import { extensions } from '../extensions/Extensions.mjs';\nimport { Container } from '../scene/container/Container.mjs';\nimport { AccessibilitySystem } from './AccessibilitySystem.mjs';\nimport { accessibilityTarget } from './accessibilityTarget.mjs';\n\n\"use strict\";\nextensions.add(AccessibilitySystem);\nextensions.mixin(Container, accessibilityTarget);\n//# sourceMappingURL=init.mjs.map\n","import { extensions } from '../extensions/Extensions.mjs';\nimport { Container } from '../scene/container/Container.mjs';\nimport { EventSystem } from './EventSystem.mjs';\nimport { FederatedContainer } from './FederatedEventTarget.mjs';\n\n\"use strict\";\nextensions.add(EventSystem);\nextensions.mixin(Container, FederatedContainer);\n//# sourceMappingURL=init.mjs.map\n"],"names":[],"mappings":";;AAMA,WAAW,IAAI,mBAAmB;AAClC,WAAW,MAAM,WAAW,mBAAmB;ACD/C,WAAW,IAAI,WAAW;AAC1B,WAAW,MAAM,WAAW,kBAAkB;","x_google_ignoreList":[0,1]}
@@ -106214,7 +106214,7 @@ const browserExt = {
106214
106214
  },
106215
106215
  test: () => true,
106216
106216
  load: async () => {
106217
- await import("./browserAll-D9W2oN91.js");
106217
+ await import("./browserAll-DENAMTng.js");
106218
106218
  }
106219
106219
  };
106220
106220
  const webworkerExt = {
@@ -106225,7 +106225,7 @@ const webworkerExt = {
106225
106225
  },
106226
106226
  test: () => typeof self !== "undefined" && self.WorkerGlobalScope !== void 0,
106227
106227
  load: async () => {
106228
- await import("./webworkerAll-DYTiYeCA.js");
106228
+ await import("./webworkerAll-D817B3aZ.js");
106229
106229
  }
106230
106230
  };
106231
106231
  class ObservablePoint {
@@ -154064,6 +154064,69 @@ const STARFIELD_BACKGROUND = `
154064
154064
  radial-gradient(2px 2px at 70% 55%, rgba(200,220,255,0.55) 50%, transparent 50%),
154065
154065
  radial-gradient(2px 2px at 90% 15%, rgba(255,255,255,0.6) 50%, transparent 50%)
154066
154066
  `;
154067
+ const NAME_PLATE_CONFIGS = {
154068
+ flat: {
154069
+ usesClipPath: false,
154070
+ borderRadius: 0
154071
+ },
154072
+ ribbon: {
154073
+ usesClipPath: true,
154074
+ clipPath: "polygon(12px 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0% 50%)",
154075
+ extraPadding: { left: 12, right: 12 }
154076
+ },
154077
+ rounded: {
154078
+ usesClipPath: false,
154079
+ borderRadius: "14px"
154080
+ },
154081
+ notched: {
154082
+ usesClipPath: true,
154083
+ clipPath: "polygon(0% 6px, 6px 6px, 6px 0%, calc(100% - 6px) 0%, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0% calc(100% - 6px))"
154084
+ },
154085
+ beveled: {
154086
+ usesClipPath: true,
154087
+ clipPath: "polygon(10px 0%, calc(100% - 10px) 0%, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0% calc(100% - 10px), 0% 10px)"
154088
+ }
154089
+ };
154090
+ const getNamePlateStyles = (style2, highlightColor, bgGradient) => {
154091
+ var _a, _b, _c, _d;
154092
+ const config = NAME_PLATE_CONFIGS[style2];
154093
+ if (config.usesClipPath) {
154094
+ return {
154095
+ outer: {
154096
+ clipPath: config.clipPath,
154097
+ background: highlightColor,
154098
+ padding: "2px",
154099
+ // This creates the "border" width
154100
+ paddingLeft: ((_a = config.extraPadding) == null ? void 0 : _a.left) ? `${config.extraPadding.left + 2}px` : "2px",
154101
+ paddingRight: ((_b = config.extraPadding) == null ? void 0 : _b.right) ? `${config.extraPadding.right + 2}px` : "2px"
154102
+ },
154103
+ inner: {
154104
+ clipPath: config.clipPath,
154105
+ background: bgGradient,
154106
+ padding: "6px 8px",
154107
+ paddingLeft: ((_c = config.extraPadding) == null ? void 0 : _c.left) ? `${config.extraPadding.left + 8}px` : "8px",
154108
+ paddingRight: ((_d = config.extraPadding) == null ? void 0 : _d.right) ? `${config.extraPadding.right + 8}px` : "8px"
154109
+ }
154110
+ };
154111
+ }
154112
+ const borderStyle = style2 === "flat" ? {
154113
+ borderTop: `2px solid ${highlightColor}`,
154114
+ borderBottom: `2px solid ${highlightColor}`
154115
+ } : { border: `2px solid ${highlightColor}` };
154116
+ return {
154117
+ outer: {
154118
+ borderRadius: config.borderRadius,
154119
+ background: bgGradient,
154120
+ padding: "6px 8px",
154121
+ ...borderStyle
154122
+ },
154123
+ inner: {}
154124
+ // No separate inner element needed
154125
+ };
154126
+ };
154127
+ const styleUsesClipPath = (style2) => {
154128
+ return NAME_PLATE_CONFIGS[style2].usesClipPath;
154129
+ };
154067
154130
  const CardLayout = ({
154068
154131
  color: color2,
154069
154132
  owner,
@@ -154074,6 +154137,7 @@ const CardLayout = ({
154074
154137
  language: language2,
154075
154138
  license,
154076
154139
  packages,
154140
+ namePlateStyle = "beveled",
154077
154141
  children: children2
154078
154142
  }) => {
154079
154143
  const { theme: theme2 } = useTheme();
@@ -154139,7 +154203,8 @@ const CardLayout = ({
154139
154203
  flexShrink: 0,
154140
154204
  marginBottom: "-12px",
154141
154205
  position: "relative",
154142
- zIndex: 1
154206
+ zIndex: 1,
154207
+ backgroundColor: colors.cardBorder
154143
154208
  }
154144
154209
  }
154145
154210
  ),
@@ -154209,8 +154274,8 @@ const CardLayout = ({
154209
154274
  "div",
154210
154275
  {
154211
154276
  style: {
154212
- flex: 1,
154213
- minHeight: 0,
154277
+ width: "100%",
154278
+ height: "50%",
154214
154279
  position: "relative",
154215
154280
  background: `linear-gradient(180deg, ${colors.windowGradient[0]} 0%, ${colors.windowGradient[1]} 100%)`,
154216
154281
  border: `2px solid ${colors.cardHighlight}`,
@@ -154218,7 +154283,8 @@ const CardLayout = ({
154218
154283
  overflow: "hidden",
154219
154284
  display: "flex",
154220
154285
  alignItems: "center",
154221
- justifyContent: "center"
154286
+ justifyContent: "center",
154287
+ flexShrink: 0
154222
154288
  },
154223
154289
  children: [
154224
154290
  /* @__PURE__ */ jsx(
@@ -154233,33 +154299,94 @@ const CardLayout = ({
154233
154299
  }
154234
154300
  }
154235
154301
  ),
154236
- children2,
154237
- label && /* @__PURE__ */ jsx(
154238
- "div",
154239
- {
154240
- style: {
154241
- position: "absolute",
154242
- bottom: 0,
154243
- left: 0,
154244
- right: 0,
154245
- padding: "6px 8px",
154246
- background: "linear-gradient(transparent, rgba(0,0,0,0.7))",
154247
- fontSize: `clamp(10px, ${18 - label.length * 0.3}px, ${theme2.fontSizes[2]})`,
154248
- fontWeight: theme2.fontWeights.bold,
154249
- color: "#ffffff",
154250
- fontFamily: theme2.fonts.body,
154251
- whiteSpace: "nowrap",
154252
- overflow: "hidden",
154253
- textShadow: "0 1px 2px rgba(0,0,0,0.5)",
154254
- textAlign: "center"
154255
- },
154256
- title: label,
154257
- children: label
154258
- }
154259
- )
154302
+ children2
154260
154303
  ]
154261
154304
  }
154262
154305
  ),
154306
+ label && (() => {
154307
+ const baseFontSize = 14;
154308
+ const minFontSize = 8;
154309
+ const charsAtBase = 24;
154310
+ const fontSize = Math.max(
154311
+ minFontSize,
154312
+ Math.min(
154313
+ baseFontSize,
154314
+ baseFontSize * charsAtBase / Math.max(label.length, 1)
154315
+ )
154316
+ );
154317
+ const bgGradient = `linear-gradient(180deg, ${colors.cardBorder} 0%, ${colors.cardBg} 100%)`;
154318
+ const { outer, inner } = getNamePlateStyles(
154319
+ namePlateStyle,
154320
+ colors.cardHighlight,
154321
+ bgGradient
154322
+ );
154323
+ const usesWrapper = styleUsesClipPath(namePlateStyle);
154324
+ const textContent = /* @__PURE__ */ jsx(
154325
+ "span",
154326
+ {
154327
+ style: {
154328
+ fontSize: `${fontSize}px`,
154329
+ fontWeight: theme2.fontWeights.bold,
154330
+ color: "#ffffff",
154331
+ fontFamily: theme2.fonts.body,
154332
+ whiteSpace: "nowrap",
154333
+ textShadow: `0 1px 2px rgba(0,0,0,0.5), 0 0 8px ${colors.cardHighlight}`,
154334
+ overflow: "hidden",
154335
+ textOverflow: "ellipsis",
154336
+ maxWidth: "100%"
154337
+ },
154338
+ children: label
154339
+ }
154340
+ );
154341
+ if (usesWrapper) {
154342
+ return /* @__PURE__ */ jsx(
154343
+ "div",
154344
+ {
154345
+ style: {
154346
+ position: "relative",
154347
+ marginLeft: "-10px",
154348
+ marginRight: "-10px",
154349
+ marginTop: "-14px",
154350
+ zIndex: 2,
154351
+ ...outer
154352
+ },
154353
+ title: label,
154354
+ children: /* @__PURE__ */ jsx(
154355
+ "div",
154356
+ {
154357
+ style: {
154358
+ display: "flex",
154359
+ justifyContent: "center",
154360
+ alignItems: "center",
154361
+ overflow: "hidden",
154362
+ ...inner
154363
+ },
154364
+ children: textContent
154365
+ }
154366
+ )
154367
+ }
154368
+ );
154369
+ }
154370
+ return /* @__PURE__ */ jsx(
154371
+ "div",
154372
+ {
154373
+ style: {
154374
+ position: "relative",
154375
+ marginLeft: "-10px",
154376
+ marginRight: "-10px",
154377
+ marginTop: "-14px",
154378
+ display: "flex",
154379
+ justifyContent: "center",
154380
+ alignItems: "center",
154381
+ zIndex: 2,
154382
+ overflow: "hidden",
154383
+ ...outer
154384
+ },
154385
+ title: label,
154386
+ children: textContent
154387
+ }
154388
+ );
154389
+ })(),
154263
154390
  /* @__PURE__ */ jsxs(
154264
154391
  "div",
154265
154392
  {
@@ -154704,6 +154831,7 @@ const LocalProjectCard = ({
154704
154831
  width = 220,
154705
154832
  height = 300,
154706
154833
  isSelected = false,
154834
+ namePlateStyle,
154707
154835
  onClick,
154708
154836
  onOpen,
154709
154837
  onRemove: onRemove2
@@ -154809,6 +154937,7 @@ const LocalProjectCard = ({
154809
154937
  files: entry.viewCount || void 0,
154810
154938
  language: (_d = entry.github) == null ? void 0 : _d.primaryLanguage,
154811
154939
  license: (_e2 = entry.github) == null ? void 0 : _e2.license,
154940
+ namePlateStyle,
154812
154941
  children: spriteContent
154813
154942
  }
154814
154943
  ),
@@ -155986,4 +156115,4 @@ export {
155986
156115
  RepoCardStatic as y,
155987
156116
  CardBack as z
155988
156117
  };
155989
- //# sourceMappingURL=index-BB-9j583.js.map
156118
+ //# sourceMappingURL=index-CZAoI_5z.js.map