@industry-theme/repository-composition-panels 0.7.34 → 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-C1lQoGkG.js";
2
- import "./init-BHU8XeD1.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-BB02N7at.js.map
7
+ //# sourceMappingURL=browserAll-C6cmVpvb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"browserAll-BB02N7at.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-BB02N7at.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-CQOqrjDQ.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();
@@ -154090,12 +154151,12 @@ const CardLayout = ({
154090
154151
  flexDirection: "column",
154091
154152
  backgroundColor: colors.cardBg,
154092
154153
  padding: "8px 12px 28px 12px",
154093
- border: `${licenseBorder ? "5px" : "3px"} solid ${licenseBorder || colors.cardBorder}`,
154154
+ border: `4px solid ${colors.cardBorder}`,
154155
+ borderRadius: "12px",
154094
154156
  width: "100%",
154095
154157
  height: "100%",
154096
154158
  boxSizing: "border-box",
154097
- overflow: "hidden",
154098
- boxShadow: licenseBorder ? `inset 0 0 0 2px ${licenseBorder}40, 0 0 8px ${licenseBorder}60` : `inset 0 0 0 2px ${colors.cardHighlight}`
154159
+ overflow: "hidden"
154099
154160
  },
154100
154161
  children: [
154101
154162
  showHeader && /* @__PURE__ */ jsxs(
@@ -154109,7 +154170,7 @@ const CardLayout = ({
154109
154170
  marginLeft: "-12px",
154110
154171
  marginRight: "-4px",
154111
154172
  marginTop: "-8px",
154112
- minHeight: "32px",
154173
+ minHeight: "24px",
154113
154174
  flexShrink: 0
154114
154175
  },
154115
154176
  children: [
@@ -154130,16 +154191,17 @@ const CardLayout = ({
154130
154191
  src: `https://github.com/${owner}.png?size=80`,
154131
154192
  alt: owner,
154132
154193
  style: {
154133
- width: "48px",
154134
- height: "48px",
154135
- borderRadius: "0",
154194
+ width: "40px",
154195
+ height: "40px",
154196
+ borderRadius: "0 0 8px 0",
154136
154197
  border: "none",
154137
154198
  borderRight: "1px solid rgba(255,255,255,0.3)",
154138
154199
  borderBottom: "1px solid rgba(255,255,255,0.3)",
154139
154200
  flexShrink: 0,
154140
- marginBottom: "-16px",
154201
+ marginBottom: "-12px",
154141
154202
  position: "relative",
154142
- zIndex: 1
154203
+ zIndex: 1,
154204
+ backgroundColor: colors.cardBorder
154143
154205
  }
154144
154206
  }
154145
154207
  ),
@@ -154147,7 +154209,7 @@ const CardLayout = ({
154147
154209
  "span",
154148
154210
  {
154149
154211
  style: {
154150
- fontSize: theme2.fontSizes[1],
154212
+ fontSize: theme2.fontSizes[2],
154151
154213
  fontWeight: theme2.fontWeights.medium,
154152
154214
  color: "#e0e0e0",
154153
154215
  textShadow: "0 1px 2px rgba(0,0,0,0.5)",
@@ -154178,7 +154240,7 @@ const CardLayout = ({
154178
154240
  "span",
154179
154241
  {
154180
154242
  style: {
154181
- fontSize: theme2.fontSizes[1],
154243
+ fontSize: theme2.fontSizes[2],
154182
154244
  fontWeight: theme2.fontWeights.medium,
154183
154245
  color: "#ffffff",
154184
154246
  textShadow: "0 1px 2px rgba(0,0,0,0.5)",
@@ -154191,7 +154253,7 @@ const CardLayout = ({
154191
154253
  "span",
154192
154254
  {
154193
154255
  style: {
154194
- fontSize: theme2.fontSizes[1],
154256
+ fontSize: theme2.fontSizes[2],
154195
154257
  fontWeight: theme2.fontWeights.medium,
154196
154258
  color: "#fbbf24",
154197
154259
  textShadow: "0 1px 2px rgba(0,0,0,0.5)"
@@ -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,34 +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: theme2.fontSizes[2],
154248
- fontWeight: theme2.fontWeights.bold,
154249
- color: "#ffffff",
154250
- fontFamily: theme2.fonts.body,
154251
- whiteSpace: "nowrap",
154252
- overflow: "hidden",
154253
- textOverflow: "ellipsis",
154254
- textShadow: "0 1px 2px rgba(0,0,0,0.5)",
154255
- textAlign: "center"
154256
- },
154257
- title: label,
154258
- children: label
154259
- }
154260
- )
154299
+ children2
154261
154300
  ]
154262
154301
  }
154263
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
+ })(),
154264
154380
  /* @__PURE__ */ jsxs(
154265
154381
  "div",
154266
154382
  {
@@ -154387,11 +154503,11 @@ const CardLayout = ({
154387
154503
  {
154388
154504
  style: {
154389
154505
  position: "absolute",
154390
- bottom: "-3px",
154391
- right: "-3px",
154506
+ bottom: "0",
154507
+ right: "0",
154392
154508
  backgroundColor: licenseBorder || colors.cardHighlight,
154393
154509
  padding: "3px 10px",
154394
- borderRadius: 0,
154510
+ borderRadius: "10px 0 10px 0",
154395
154511
  fontFamily: theme2.fonts.body,
154396
154512
  fontSize: theme2.fontSizes[0],
154397
154513
  fontWeight: theme2.fontWeights.bold,
@@ -154705,6 +154821,7 @@ const LocalProjectCard = ({
154705
154821
  width = 220,
154706
154822
  height = 300,
154707
154823
  isSelected = false,
154824
+ namePlateStyle,
154708
154825
  onClick,
154709
154826
  onOpen,
154710
154827
  onRemove: onRemove2
@@ -154810,6 +154927,7 @@ const LocalProjectCard = ({
154810
154927
  files: entry.viewCount || void 0,
154811
154928
  language: (_d = entry.github) == null ? void 0 : _d.primaryLanguage,
154812
154929
  license: (_e2 = entry.github) == null ? void 0 : _e2.license,
154930
+ namePlateStyle,
154813
154931
  children: spriteContent
154814
154932
  }
154815
154933
  ),
@@ -155331,8 +155449,26 @@ const LocalProjectGridPanelPreview = ({ context: context2 }) => {
155331
155449
  fontFamily: theme2.fonts.body
155332
155450
  },
155333
155451
  children: [
155334
- /* @__PURE__ */ jsx("div", { style: { fontSize: theme2.fontSizes[2], fontWeight: theme2.fontWeights.medium }, children: projects.length }),
155335
- /* @__PURE__ */ jsx("div", { style: { fontSize: theme2.fontSizes[0], color: theme2.colors.textSecondary }, children: "Projects" })
155452
+ /* @__PURE__ */ jsx(
155453
+ "div",
155454
+ {
155455
+ style: {
155456
+ fontSize: theme2.fontSizes[2],
155457
+ fontWeight: theme2.fontWeights.medium
155458
+ },
155459
+ children: projects.length
155460
+ }
155461
+ ),
155462
+ /* @__PURE__ */ jsx(
155463
+ "div",
155464
+ {
155465
+ style: {
155466
+ fontSize: theme2.fontSizes[0],
155467
+ color: theme2.colors.textSecondary
155468
+ },
155469
+ children: "Projects"
155470
+ }
155471
+ )
155336
155472
  ]
155337
155473
  }
155338
155474
  );
@@ -155969,4 +156105,4 @@ export {
155969
156105
  RepoCardStatic as y,
155970
156106
  CardBack as z
155971
156107
  };
155972
- //# sourceMappingURL=index-C1lQoGkG.js.map
156108
+ //# sourceMappingURL=index-ByuCPpD5.js.map