@industry-theme/github-panels 0.1.17 → 0.1.19

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 +1 @@
1
- {"version":3,"file":"WelcomePanel.d.ts","sourceRoot":"","sources":["../../src/panels/WelcomePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAWrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;IAC5D,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAC5C;AA0FD;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAoQpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;CAQhC,CAAC"}
1
+ {"version":3,"file":"WelcomePanel.d.ts","sourceRoot":"","sources":["../../src/panels/WelcomePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAWrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;IAC5D,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAC5C;AAsGD;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqQpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;CAQhC,CAAC"}
@@ -2999,66 +2999,76 @@ function parseGitHubInput(input) {
2999
2999
  }
3000
3000
  return null;
3001
3001
  }
3002
- const FeatureCard = ({ icon, title, description, theme }) => /* @__PURE__ */ jsxs(
3003
- "div",
3004
- {
3005
- style: {
3006
- padding: "24px",
3007
- borderRadius: "12px",
3008
- backgroundColor: theme.colors.surface,
3009
- border: `1px solid ${theme.colors.border}`,
3010
- display: "flex",
3011
- flexDirection: "column",
3012
- alignItems: "center",
3013
- gap: "12px",
3014
- flex: 1,
3015
- minWidth: "200px",
3016
- textAlign: "center"
3017
- },
3018
- children: [
3019
- /* @__PURE__ */ jsx(
3020
- "div",
3021
- {
3022
- style: {
3023
- width: 48,
3024
- height: 48,
3025
- borderRadius: "10px",
3026
- backgroundColor: `${theme.colors.primary}15`,
3027
- display: "flex",
3028
- alignItems: "center",
3029
- justifyContent: "center",
3030
- color: theme.colors.primary
3031
- },
3032
- children: icon
3033
- }
3034
- ),
3035
- /* @__PURE__ */ jsx(
3036
- "h3",
3037
- {
3038
- style: {
3039
- margin: 0,
3040
- fontSize: `${theme.fontSizes[3]}px`,
3041
- fontWeight: theme.fontWeights.semibold,
3042
- color: theme.colors.text
3043
- },
3044
- children: title
3045
- }
3046
- ),
3047
- /* @__PURE__ */ jsx(
3048
- "p",
3049
- {
3050
- style: {
3051
- margin: 0,
3052
- fontSize: `${theme.fontSizes[2]}px`,
3053
- color: theme.colors.textSecondary,
3054
- lineHeight: 1.5
3055
- },
3056
- children: description
3057
- }
3058
- )
3059
- ]
3060
- }
3061
- );
3002
+ const FeatureCard = ({ icon, title, description, theme }) => {
3003
+ const words = title.split(" ");
3004
+ const firstWord = words[0];
3005
+ const restWords = words.slice(1).join(" ");
3006
+ return /* @__PURE__ */ jsxs(
3007
+ "div",
3008
+ {
3009
+ style: {
3010
+ padding: "24px",
3011
+ borderRadius: "12px",
3012
+ backgroundColor: theme.colors.surface,
3013
+ border: `1px solid ${theme.colors.border}`,
3014
+ display: "flex",
3015
+ flexDirection: "column",
3016
+ alignItems: "center",
3017
+ gap: "12px",
3018
+ flex: 1,
3019
+ minWidth: "200px",
3020
+ textAlign: "center"
3021
+ },
3022
+ children: [
3023
+ /* @__PURE__ */ jsx(
3024
+ "div",
3025
+ {
3026
+ style: {
3027
+ width: 48,
3028
+ height: 48,
3029
+ borderRadius: "10px",
3030
+ backgroundColor: `${theme.colors.primary}15`,
3031
+ display: "flex",
3032
+ alignItems: "center",
3033
+ justifyContent: "center",
3034
+ color: theme.colors.primary
3035
+ },
3036
+ children: icon
3037
+ }
3038
+ ),
3039
+ /* @__PURE__ */ jsxs(
3040
+ "h3",
3041
+ {
3042
+ style: {
3043
+ margin: 0,
3044
+ fontSize: `${theme.fontSizes[3]}px`,
3045
+ fontWeight: theme.fontWeights.semibold
3046
+ },
3047
+ children: [
3048
+ /* @__PURE__ */ jsx("span", { style: { color: theme.colors.text }, children: firstWord }),
3049
+ restWords && /* @__PURE__ */ jsxs(Fragment, { children: [
3050
+ " ",
3051
+ /* @__PURE__ */ jsx("span", { style: { color: theme.colors.primary }, children: restWords })
3052
+ ] })
3053
+ ]
3054
+ }
3055
+ ),
3056
+ /* @__PURE__ */ jsx(
3057
+ "p",
3058
+ {
3059
+ style: {
3060
+ margin: 0,
3061
+ fontSize: `${theme.fontSizes[2]}px`,
3062
+ color: theme.colors.textSecondary,
3063
+ lineHeight: 1.5
3064
+ },
3065
+ children: description
3066
+ }
3067
+ )
3068
+ ]
3069
+ }
3070
+ );
3071
+ };
3062
3072
  const defaultHighlightedProjects = [
3063
3073
  { owner: "facebook", repo: "react" },
3064
3074
  { owner: "vercel", repo: "next.js" }
@@ -3134,15 +3144,18 @@ const WelcomePanel = ({
3134
3144
  color: theme.colors.primary
3135
3145
  }
3136
3146
  ),
3137
- /* @__PURE__ */ jsx(
3147
+ /* @__PURE__ */ jsxs(
3138
3148
  "span",
3139
3149
  {
3140
3150
  style: {
3141
3151
  fontSize: `${theme.fontSizes[6] || 32}px`,
3142
- fontWeight: theme.fontWeights.bold,
3143
- color: theme.colors.text
3152
+ fontWeight: theme.fontWeights.bold
3144
3153
  },
3145
- children: "Principal AI"
3154
+ children: [
3155
+ /* @__PURE__ */ jsx("span", { style: { color: theme.colors.text }, children: "Principal" }),
3156
+ " ",
3157
+ /* @__PURE__ */ jsx("span", { style: { color: theme.colors.primary }, children: "AI" })
3158
+ ]
3146
3159
  }
3147
3160
  ),
3148
3161
  /* @__PURE__ */ jsx(
@@ -3307,7 +3320,7 @@ const WelcomePanel = ({
3307
3320
  FeatureCard,
3308
3321
  {
3309
3322
  icon: /* @__PURE__ */ jsx(MessageSquare, { size: 24 }),
3310
- title: "Chat with Code",
3323
+ title: "Principal Agent",
3311
3324
  description: "Ask questions about any repository and get instant, context-aware answers powered by AI.",
3312
3325
  theme
3313
3326
  }