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

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-ByuCPpD5.js";
2
+ import "./init-VjnkF7H_.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-C6cmVpvb.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-C6cmVpvb.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-C6cmVpvb.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-tUMWitmN.js");
106229
106229
  }
106230
106230
  };
106231
106231
  class ObservablePoint {
@@ -154064,6 +154064,66 @@ 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" ? { borderTop: `2px solid ${highlightColor}`, borderBottom: `2px solid ${highlightColor}` } : { border: `2px solid ${highlightColor}` };
154113
+ return {
154114
+ outer: {
154115
+ borderRadius: config.borderRadius,
154116
+ background: bgGradient,
154117
+ padding: "6px 8px",
154118
+ ...borderStyle
154119
+ },
154120
+ inner: {}
154121
+ // No separate inner element needed
154122
+ };
154123
+ };
154124
+ const styleUsesClipPath = (style2) => {
154125
+ return NAME_PLATE_CONFIGS[style2].usesClipPath;
154126
+ };
154067
154127
  const CardLayout = ({
154068
154128
  color: color2,
154069
154129
  owner,
@@ -154074,6 +154134,7 @@ const CardLayout = ({
154074
154134
  language: language2,
154075
154135
  license,
154076
154136
  packages,
154137
+ namePlateStyle = "beveled",
154077
154138
  children: children2
154078
154139
  }) => {
154079
154140
  const { theme: theme2 } = useTheme();
@@ -154139,7 +154200,8 @@ const CardLayout = ({
154139
154200
  flexShrink: 0,
154140
154201
  marginBottom: "-12px",
154141
154202
  position: "relative",
154142
- zIndex: 1
154203
+ zIndex: 1,
154204
+ backgroundColor: colors.cardBorder
154143
154205
  }
154144
154206
  }
154145
154207
  ),
@@ -154209,8 +154271,8 @@ const CardLayout = ({
154209
154271
  "div",
154210
154272
  {
154211
154273
  style: {
154212
- flex: 1,
154213
- minHeight: 0,
154274
+ width: "100%",
154275
+ aspectRatio: "1 / 1",
154214
154276
  position: "relative",
154215
154277
  background: `linear-gradient(180deg, ${colors.windowGradient[0]} 0%, ${colors.windowGradient[1]} 100%)`,
154216
154278
  border: `2px solid ${colors.cardHighlight}`,
@@ -154218,7 +154280,8 @@ const CardLayout = ({
154218
154280
  overflow: "hidden",
154219
154281
  display: "flex",
154220
154282
  alignItems: "center",
154221
- justifyContent: "center"
154283
+ justifyContent: "center",
154284
+ flexShrink: 0
154222
154285
  },
154223
154286
  children: [
154224
154287
  /* @__PURE__ */ jsx(
@@ -154233,33 +154296,87 @@ const CardLayout = ({
154233
154296
  }
154234
154297
  }
154235
154298
  ),
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
- )
154299
+ children2
154260
154300
  ]
154261
154301
  }
154262
154302
  ),
154303
+ label && (() => {
154304
+ const baseFontSize = 14;
154305
+ const minFontSize = 8;
154306
+ const charsAtBase = 24;
154307
+ const fontSize = Math.max(
154308
+ minFontSize,
154309
+ Math.min(baseFontSize, baseFontSize * charsAtBase / Math.max(label.length, 1))
154310
+ );
154311
+ const bgGradient = `linear-gradient(180deg, ${colors.cardBorder} 0%, ${colors.cardBg} 100%)`;
154312
+ const { outer, inner } = getNamePlateStyles(namePlateStyle, colors.cardHighlight, bgGradient);
154313
+ const usesWrapper = styleUsesClipPath(namePlateStyle);
154314
+ const textContent = /* @__PURE__ */ jsx(
154315
+ "span",
154316
+ {
154317
+ style: {
154318
+ fontSize: `${fontSize}px`,
154319
+ fontWeight: theme2.fontWeights.bold,
154320
+ color: "#ffffff",
154321
+ fontFamily: theme2.fonts.body,
154322
+ whiteSpace: "nowrap",
154323
+ textShadow: `0 1px 2px rgba(0,0,0,0.5), 0 0 8px ${colors.cardHighlight}`,
154324
+ overflow: "hidden",
154325
+ textOverflow: "ellipsis",
154326
+ maxWidth: "100%"
154327
+ },
154328
+ children: label
154329
+ }
154330
+ );
154331
+ if (usesWrapper) {
154332
+ return /* @__PURE__ */ jsx(
154333
+ "div",
154334
+ {
154335
+ style: {
154336
+ position: "relative",
154337
+ marginLeft: "-10px",
154338
+ marginRight: "-10px",
154339
+ marginTop: "-14px",
154340
+ zIndex: 2,
154341
+ ...outer
154342
+ },
154343
+ title: label,
154344
+ children: /* @__PURE__ */ jsx(
154345
+ "div",
154346
+ {
154347
+ style: {
154348
+ display: "flex",
154349
+ justifyContent: "center",
154350
+ alignItems: "center",
154351
+ overflow: "hidden",
154352
+ ...inner
154353
+ },
154354
+ children: textContent
154355
+ }
154356
+ )
154357
+ }
154358
+ );
154359
+ }
154360
+ return /* @__PURE__ */ jsx(
154361
+ "div",
154362
+ {
154363
+ style: {
154364
+ position: "relative",
154365
+ marginLeft: "-10px",
154366
+ marginRight: "-10px",
154367
+ marginTop: "-14px",
154368
+ display: "flex",
154369
+ justifyContent: "center",
154370
+ alignItems: "center",
154371
+ zIndex: 2,
154372
+ overflow: "hidden",
154373
+ ...outer
154374
+ },
154375
+ title: label,
154376
+ children: textContent
154377
+ }
154378
+ );
154379
+ })(),
154263
154380
  /* @__PURE__ */ jsxs(
154264
154381
  "div",
154265
154382
  {
@@ -154704,6 +154821,7 @@ const LocalProjectCard = ({
154704
154821
  width = 220,
154705
154822
  height = 300,
154706
154823
  isSelected = false,
154824
+ namePlateStyle,
154707
154825
  onClick,
154708
154826
  onOpen,
154709
154827
  onRemove: onRemove2
@@ -154809,6 +154927,7 @@ const LocalProjectCard = ({
154809
154927
  files: entry.viewCount || void 0,
154810
154928
  language: (_d = entry.github) == null ? void 0 : _d.primaryLanguage,
154811
154929
  license: (_e2 = entry.github) == null ? void 0 : _e2.license,
154930
+ namePlateStyle,
154812
154931
  children: spriteContent
154813
154932
  }
154814
154933
  ),
@@ -155986,4 +156105,4 @@ export {
155986
156105
  RepoCardStatic as y,
155987
156106
  CardBack as z
155988
156107
  };
155989
- //# sourceMappingURL=index-BB-9j583.js.map
156108
+ //# sourceMappingURL=index-ByuCPpD5.js.map