keystone-design-bootstrap 1.0.74 → 1.0.75

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.
@@ -7,6 +7,7 @@ declare const THEME_CONFIG: {
7
7
  readonly aman: ".aman";
8
8
  readonly barelux: ".barelux";
9
9
  readonly balance: ".balance";
10
+ readonly custom: "";
10
11
  };
11
12
  type Theme = keyof typeof THEME_CONFIG;
12
13
  declare function getAvailableThemes(): Theme[];
@@ -6,8 +6,10 @@ var THEME_CONFIG = {
6
6
  // Aman Hotels variant files (hero-home.aman.tsx)
7
7
  barelux: ".barelux",
8
8
  // Bare Lux Studio variant files (hero-home.barelux.tsx)
9
- balance: ".balance"
9
+ balance: ".balance",
10
10
  // Balance Aesthetics variant files (hero-home.balance.tsx)
11
+ custom: ""
12
+ // Fully custom sites — no design-system CSS loaded, all styling built in the site itself
11
13
  };
12
14
  function getAvailableThemes() {
13
15
  return Object.keys(THEME_CONFIG);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/themes/index.ts"],"sourcesContent":["/**\n * Theme Configuration\n * Single source of truth for all themes\n */\n\nexport const THEME_CONFIG = {\n classic: '', // Base files with no suffix (hero-home.tsx)\n aman: '.aman', // Aman Hotels variant files (hero-home.aman.tsx)\n barelux: '.barelux', // Bare Lux Studio variant files (hero-home.barelux.tsx)\n balance: '.balance', // Balance Aesthetics variant files (hero-home.balance.tsx)\n} as const;\n\nexport type Theme = keyof typeof THEME_CONFIG;\n\nexport function getAvailableThemes(): Theme[] {\n return Object.keys(THEME_CONFIG) as Theme[];\n}\n\nexport function getThemeSuffix(theme: Theme): string {\n return THEME_CONFIG[theme] || '';\n}\n\nexport function isValidTheme(theme: string): theme is Theme {\n return theme in THEME_CONFIG;\n}\n"],"mappings":";AAKO,IAAM,eAAe;AAAA,EAC1B,SAAS;AAAA;AAAA,EACT,MAAM;AAAA;AAAA,EACN,SAAS;AAAA;AAAA,EACT,SAAS;AAAA;AACX;AAIO,SAAS,qBAA8B;AAC5C,SAAO,OAAO,KAAK,YAAY;AACjC;AAEO,SAAS,eAAe,OAAsB;AACnD,SAAO,aAAa,KAAK,KAAK;AAChC;AAEO,SAAS,aAAa,OAA+B;AAC1D,SAAO,SAAS;AAClB;","names":[]}
1
+ {"version":3,"sources":["../../src/themes/index.ts"],"sourcesContent":["/**\n * Theme Configuration\n * Single source of truth for all themes\n */\n\nexport const THEME_CONFIG = {\n classic: '', // Base files with no suffix (hero-home.tsx)\n aman: '.aman', // Aman Hotels variant files (hero-home.aman.tsx)\n barelux: '.barelux', // Bare Lux Studio variant files (hero-home.barelux.tsx)\n balance: '.balance', // Balance Aesthetics variant files (hero-home.balance.tsx)\n custom: '', // Fully custom sites — no design-system CSS loaded, all styling built in the site itself\n} as const;\n\nexport type Theme = keyof typeof THEME_CONFIG;\n\nexport function getAvailableThemes(): Theme[] {\n return Object.keys(THEME_CONFIG) as Theme[];\n}\n\nexport function getThemeSuffix(theme: Theme): string {\n return THEME_CONFIG[theme] || '';\n}\n\nexport function isValidTheme(theme: string): theme is Theme {\n return theme in THEME_CONFIG;\n}\n"],"mappings":";AAKO,IAAM,eAAe;AAAA,EAC1B,SAAS;AAAA;AAAA,EACT,MAAM;AAAA;AAAA,EACN,SAAS;AAAA;AAAA,EACT,SAAS;AAAA;AAAA,EACT,QAAQ;AAAA;AACV;AAIO,SAAS,qBAA8B;AAC5C,SAAO,OAAO,KAAK,YAAY;AACjC;AAEO,SAAS,eAAe,OAAsB;AACnD,SAAO,aAAa,KAAK,KAAK;AAChC;AAEO,SAAS,aAAa,OAA+B;AAC1D,SAAO,SAAS;AAClB;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keystone-design-bootstrap",
3
- "version": "1.0.74",
3
+ "version": "1.0.75",
4
4
  "description": "Keystone Design Bootstrap - Sections, Elements, and Theme System for customer websites",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -194,19 +194,23 @@ export async function KeystoneRootLayout(props: {
194
194
  jobApplicationFormDefinition={jobApplicationFormDefinition ?? null}
195
195
  marketingListSignupFormDefinition={marketingListSignupFormDefinition ?? null}
196
196
  >
197
- <HeaderNavigation
198
- config={dynamicConfig}
199
- companyInformation={companyInformation}
200
- websitePhotos={websitePhotos}
201
- props={headerProps}
202
- logoText={headerOverrides?.logoText}
203
- />
197
+ {theme !== 'custom' && (
198
+ <HeaderNavigation
199
+ config={dynamicConfig}
200
+ companyInformation={companyInformation}
201
+ websitePhotos={websitePhotos}
202
+ props={headerProps}
203
+ logoText={headerOverrides?.logoText}
204
+ />
205
+ )}
204
206
  {children}
205
- <FooterHome
206
- config={dynamicConfig}
207
- companyInformation={companyInformation}
208
- websitePhotos={websitePhotos}
209
- />
207
+ {theme !== 'custom' && (
208
+ <FooterHome
209
+ config={dynamicConfig}
210
+ companyInformation={companyInformation}
211
+ websitePhotos={websitePhotos}
212
+ />
213
+ )}
210
214
  {chatEnabled ? (
211
215
  <ChatWidget
212
216
  position={options?.chatPosition || 'bottom-right'}
@@ -8,6 +8,7 @@ export const THEME_CONFIG = {
8
8
  aman: '.aman', // Aman Hotels variant files (hero-home.aman.tsx)
9
9
  barelux: '.barelux', // Bare Lux Studio variant files (hero-home.barelux.tsx)
10
10
  balance: '.balance', // Balance Aesthetics variant files (hero-home.balance.tsx)
11
+ custom: '', // Fully custom sites — no design-system CSS loaded, all styling built in the site itself
11
12
  } as const;
12
13
 
13
14
  export type Theme = keyof typeof THEME_CONFIG;