bejamas 0.3.0 → 0.3.2

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.
@@ -1706,6 +1706,7 @@ const LEGACY_PRESET_STYLES = [
1706
1706
  "mira",
1707
1707
  "juno"
1708
1708
  ];
1709
+ const PRESET_VERSION_C_STYLES = [...LEGACY_PRESET_STYLES, "luma"];
1709
1710
  const PRESET_BASE_COLORS = [
1710
1711
  "neutral",
1711
1712
  "stone",
@@ -1909,11 +1910,53 @@ const PRESET_FIELDS_B_LEGACY = [
1909
1910
  bits: 6
1910
1911
  }
1911
1912
  ];
1912
- const PRESET_FIELDS_C = [...PRESET_FIELDS_B_LEGACY, {
1913
- key: "fontHeading",
1914
- values: PRESET_FONT_HEADINGS,
1915
- bits: 5
1916
- }];
1913
+ const PRESET_FIELDS_C = [
1914
+ {
1915
+ key: "menuColor",
1916
+ values: PRESET_MENU_COLORS,
1917
+ bits: 3
1918
+ },
1919
+ {
1920
+ key: "menuAccent",
1921
+ values: PRESET_MENU_ACCENTS,
1922
+ bits: 3
1923
+ },
1924
+ {
1925
+ key: "radius",
1926
+ values: PRESET_RADII,
1927
+ bits: 4
1928
+ },
1929
+ {
1930
+ key: "font",
1931
+ values: PRESET_FONTS,
1932
+ bits: 6
1933
+ },
1934
+ {
1935
+ key: "iconLibrary",
1936
+ values: PRESET_ICON_LIBRARIES,
1937
+ bits: 6
1938
+ },
1939
+ {
1940
+ key: "theme",
1941
+ values: PRESET_THEMES,
1942
+ bits: 6
1943
+ },
1944
+ {
1945
+ key: "baseColor",
1946
+ values: PRESET_BASE_COLORS,
1947
+ bits: 6
1948
+ },
1949
+ {
1950
+ key: "style",
1951
+ values: PRESET_VERSION_C_STYLES,
1952
+ bits: 6
1953
+ },
1954
+ {
1955
+ key: "fontHeading",
1956
+ values: PRESET_FONT_HEADINGS,
1957
+ bits: 5
1958
+ }
1959
+ ];
1917
1960
  const PRESET_VERSION_A = {
1918
1961
  version: "a",
1919
1962
  fields: PRESET_FIELDS_A,
@@ -2048,7 +2091,7 @@ function shouldDecodeLegacyBejamasB(code) {
2048
2091
  function encodePreset(config) {
2049
2092
  const merged = normalizePresetConfig(config);
2050
2093
  for (const version of PRESET_ENCODERS) if (canEncodeWithVersion(merged, version)) return encodePresetWithVersion(merged, version);
2051
- return encodePresetWithVersion(merged, PRESET_VERSION_C);
2094
+ throw new Error(`Unsupported preset config: ${JSON.stringify(merged)}`);
2052
2095
  }
2053
2096
  function decodePreset(code) {
2054
2097
  if (!code || code.length < 2) return null;
@@ -9273,5 +9316,5 @@ function createSourceFileFromFrontmatter(frontmatterCode) {
9273
9316
  }
9274
9317
 
9275
9318
  //#endregion
9276
- export { renderSemanticIconSvgWithAttributeString as A, normalizeDesignSystemConfig as B, buildUiUrl as C, SEMANTIC_ICON_NAMES as D, ICON_LIBRARY_COLLECTIONS as E, getDocumentLanguage as F, __require as G, encodePreset as H, getFontPackageName as I, getFontValue as L, RTL_LANGUAGE_VALUES as M, designSystemConfigSchema as N, getSemanticIconNameFromLucideExport as O, getDocumentDirection as P, getHeadingFontValue as R, BASE_COLORS as S, buildRegistryTheme as T, isPresetCode as U, decodePreset as V, fonts as W, getConfig as _, extractComponentTagsFromMDX as a, highlighter as b, extractPropsFromDeclaredProps as c, parseJsDocMetadata as d, resolveOutDir as f, spinner as g, toIdentifier as h, discoverExamples as i, DEFAULT_DESIGN_SYSTEM_CONFIG as j, getSemanticIconNameFromLucidePath as k, normalizeBlockMDX as l, slugify as m, createSourceFileFromFrontmatter as n, extractFrontmatter as o, resolveUiRoot as p, detectHasImportTopLevel as r, extractPropsFromAstroProps as s, RESERVED_COMPONENTS as t, normalizeUsageMDX as u, getWorkspaceConfig as v, resolveRegistryUrl as w, BEJAMAS_COMPONENTS_SCHEMA_URL as x, logger as y, getStyleId as z };
9277
- //# sourceMappingURL=utils-BCEkpKMO.js.map
9319
+ export { getSemanticIconNameFromLucidePath as A, getStyleId as B, buildUiUrl as C, ICON_LIBRARY_COLLECTIONS as D, buildRegistryTheme as E, getDocumentDirection as F, fonts as G, decodePreset as H, getDocumentLanguage as I, __require as K, getFontPackageName as L, DEFAULT_DESIGN_SYSTEM_CONFIG as M, RTL_LANGUAGE_VALUES as N, SEMANTIC_ICON_NAMES as O, designSystemConfigSchema as P, getFontValue as R, BASE_COLORS as S, ICON_LIBRARIES as T, encodePreset as U, normalizeDesignSystemConfig as V, isPresetCode as W, getConfig as _, extractComponentTagsFromMDX as a, highlighter as b, extractPropsFromDeclaredProps as c, parseJsDocMetadata as d, resolveOutDir as f, spinner as g, toIdentifier as h, discoverExamples as i, renderSemanticIconSvgWithAttributeString as j, getSemanticIconNameFromLucideExport as k, normalizeBlockMDX as l, slugify as m, createSourceFileFromFrontmatter as n, extractFrontmatter as o, resolveUiRoot as p, detectHasImportTopLevel as r, extractPropsFromAstroProps as s, RESERVED_COMPONENTS as t, normalizeUsageMDX as u, getWorkspaceConfig as v, resolveRegistryUrl as w, BEJAMAS_COMPONENTS_SCHEMA_URL as x, logger as y, getHeadingFontValue as z };
9320
+ //# sourceMappingURL=utils-B0HWwl6F.js.map