@kilivi/payloadcms-theme-management 1.0.2 → 1.0.4

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.
Files changed (46) hide show
  1. package/README.md +4 -0
  2. package/dist/components/ThemePreview.d.ts.map +1 -1
  3. package/dist/components/ThemePreview.js +15 -12
  4. package/dist/components/ThemePreview.js.map +1 -1
  5. package/dist/constants/themeFonts.d.ts +68 -17
  6. package/dist/constants/themeFonts.d.ts.map +1 -1
  7. package/dist/constants/themeFonts.js +68 -17
  8. package/dist/constants/themeFonts.js.map +1 -1
  9. package/dist/fields/FontSelectField.d.ts.map +1 -1
  10. package/dist/fields/FontSelectField.js +44 -7
  11. package/dist/fields/FontSelectField.js.map +1 -1
  12. package/dist/fields/ThemePreviewField.d.ts.map +1 -1
  13. package/dist/fields/ThemePreviewField.js +35 -29
  14. package/dist/fields/ThemePreviewField.js.map +1 -1
  15. package/dist/fields/ThemeTokenSelectField.d.ts.map +1 -1
  16. package/dist/fields/ThemeTokenSelectField.js +0 -1
  17. package/dist/fields/ThemeTokenSelectField.js.map +1 -1
  18. package/dist/globals/ThemeSettings/FontPicker/FontPreview.d.ts.map +1 -1
  19. package/dist/globals/ThemeSettings/FontPicker/FontPreview.js +7 -4
  20. package/dist/globals/ThemeSettings/FontPicker/FontPreview.js.map +1 -1
  21. package/dist/globals/ThemeSettings/config.d.ts.map +1 -1
  22. package/dist/globals/ThemeSettings/config.js +32 -8
  23. package/dist/globals/ThemeSettings/config.js.map +1 -1
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +29 -12
  27. package/dist/index.js.map +1 -1
  28. package/dist/providers/font-loader.d.ts +1 -1
  29. package/dist/providers/font-loader.d.ts.map +1 -1
  30. package/dist/providers/font-loader.js.map +1 -1
  31. package/dist/translations.d.ts +49 -0
  32. package/dist/translations.d.ts.map +1 -0
  33. package/dist/translations.js +121 -0
  34. package/dist/translations.js.map +1 -0
  35. package/dist/types/jest-axe.d.js +2 -0
  36. package/dist/types/jest-axe.d.js.map +1 -0
  37. package/dist/types/payload-ui.d.js +2 -0
  38. package/dist/types/payload-ui.d.js.map +1 -0
  39. package/dist/utilities/getThemeSettings.d.ts.map +1 -1
  40. package/dist/utilities/getThemeSettings.js +8 -2
  41. package/dist/utilities/getThemeSettings.js.map +1 -1
  42. package/dist/utils/getAdminLanguage.d.ts +2 -0
  43. package/dist/utils/getAdminLanguage.d.ts.map +1 -0
  44. package/dist/utils/getAdminLanguage.js +21 -0
  45. package/dist/utils/getAdminLanguage.js.map +1 -0
  46. package/package.json +22 -4
package/README.md CHANGED
@@ -227,6 +227,10 @@ The plugin automatically adds a **Live Preview** page to your admin panel at `/a
227
227
 
228
228
  The preview automatically watches your `themeConfiguration` field and displays real-time updates without any additional setup.
229
229
 
230
+ ## Translations / i18n
231
+
232
+ Extend or override translations at runtime with `registerTranslations`. The plugin merges your translations with English defaults, so missing keys fall back to English. See `docs/TRANSLATIONS.md` for details and examples.
233
+
230
234
  ## API Reference
231
235
 
232
236
  ### Main Entry Point
@@ -1 +1 @@
1
- {"version":3,"file":"ThemePreview.d.ts","sourceRoot":"","sources":["../../src/components/ThemePreview.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAqBtC,MAAM,CAAC,OAAO,UAAU,YAAY,sBA8PnC"}
1
+ {"version":3,"file":"ThemePreview.d.ts","sourceRoot":"","sources":["../../src/components/ThemePreview.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAuBtC,MAAM,CAAC,OAAO,UAAU,YAAY,sBA6PnC"}
@@ -4,6 +4,8 @@ import { useField } from '@payloadcms/ui';
4
4
  import React, { useMemo } from 'react';
5
5
  import { allThemePresets } from '../presets.js';
6
6
  import { themeIsValid } from '../providers/Theme/types.js';
7
+ import { getTranslations } from '../translations.js';
8
+ import { getAdminLanguage } from '../utils/getAdminLanguage.js';
7
9
  const DEFAULT_THEME_KEY = 'cool';
8
10
  const basePresetMap = allThemePresets.reduce((accumulator, preset)=>{
9
11
  accumulator[preset.name] = preset;
@@ -60,6 +62,7 @@ export default function ThemePreview() {
60
62
  textColor,
61
63
  themeColors
62
64
  ]);
65
+ const t = getTranslations(getAdminLanguage());
63
66
  return /*#__PURE__*/ _jsxs("div", {
64
67
  className: "theme-preview",
65
68
  style: {
@@ -73,7 +76,7 @@ export default function ThemePreview() {
73
76
  marginBottom: '16px',
74
77
  color: '#374151'
75
78
  },
76
- children: "🎨 Live Theme Preview"
79
+ children: t.livePreview.largeTitle
77
80
  }),
78
81
  /*#__PURE__*/ _jsxs("div", {
79
82
  className: "preview-container",
@@ -101,7 +104,7 @@ export default function ThemePreview() {
101
104
  fontSize: '20px',
102
105
  fontWeight: '700'
103
106
  },
104
- children: "Your Website"
107
+ children: t.preview.siteTitle
105
108
  }),
106
109
  /*#__PURE__*/ _jsxs("nav", {
107
110
  style: {
@@ -111,16 +114,16 @@ export default function ThemePreview() {
111
114
  },
112
115
  children: [
113
116
  /*#__PURE__*/ _jsx("span", {
114
- children: "Home"
117
+ children: t.preview.nav.home
115
118
  }),
116
119
  /*#__PURE__*/ _jsx("span", {
117
- children: "About"
120
+ children: t.preview.nav.about
118
121
  }),
119
122
  /*#__PURE__*/ _jsx("span", {
120
- children: "Services"
123
+ children: t.preview.nav.services
121
124
  }),
122
125
  /*#__PURE__*/ _jsx("span", {
123
- children: "Contact"
126
+ children: t.preview.nav.contact
124
127
  })
125
128
  ]
126
129
  })
@@ -138,7 +141,7 @@ export default function ThemePreview() {
138
141
  marginBottom: '16px',
139
142
  color: currentColors.text
140
143
  },
141
- children: "Welcome to Your Site"
144
+ children: t.preview.welcomeTitle
142
145
  }),
143
146
  /*#__PURE__*/ _jsx("p", {
144
147
  style: {
@@ -148,13 +151,13 @@ export default function ThemePreview() {
148
151
  color: currentColors.text,
149
152
  opacity: 0.8
150
153
  },
151
- children: "This is how your content will look with the selected theme. The colors and styling will be applied across your entire website."
154
+ children: t.preview.welcomeCopy
152
155
  }),
153
156
  /*#__PURE__*/ _jsxs("div", {
154
157
  style: {
155
158
  display: 'flex',
156
159
  gap: '12px',
157
- marginBottom: '32px'
160
+ marginBottom: '24px'
158
161
  },
159
162
  children: [
160
163
  /*#__PURE__*/ _jsx("button", {
@@ -203,14 +206,14 @@ export default function ThemePreview() {
203
206
  opacity: 0.1
204
207
  },
205
208
  children: [
206
- /*#__PURE__*/ _jsx("h3", {
209
+ /*#__PURE__*/ _jsx("h2", {
207
210
  style: {
208
211
  fontSize: '18px',
209
212
  fontWeight: '600',
210
213
  marginBottom: '12px',
211
214
  color: currentColors.text
212
215
  },
213
- children: "Sample Card"
216
+ children: t.preview.sampleCardTitle
214
217
  }),
215
218
  /*#__PURE__*/ _jsx("p", {
216
219
  style: {
@@ -233,7 +236,7 @@ export default function ThemePreview() {
233
236
  fontSize: '14px',
234
237
  marginTop: 'auto'
235
238
  },
236
- children: "© 2025 Your Website. Powered by PayloadCMS."
239
+ children: t.preview.footer
237
240
  })
238
241
  ]
239
242
  }),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/ThemePreview.tsx"],"sourcesContent":["'use client'\n\nimport { useField } from '@payloadcms/ui'\nimport React, { useMemo } from 'react'\nimport { allThemePresets } from '../presets.js'\nimport { themeIsValid } from '../providers/Theme/types.js'\n\nconst DEFAULT_THEME_KEY = 'cool'\nconst basePresetMap = allThemePresets.reduce<Record<string, (typeof allThemePresets)[number]>>(\n (accumulator, preset) => {\n accumulator[preset.name] = preset\n return accumulator\n },\n {},\n)\n\nconst fallbackPreset = basePresetMap[DEFAULT_THEME_KEY] ?? allThemePresets[0]\nconst fallbackLightMode = fallbackPreset?.lightMode ?? {\n primary: '#3b82f6',\n accent: '#06b6d4',\n background: '#ffffff',\n foreground: '#1f2937',\n}\n\nexport default function ThemePreview() {\n // Get individual field values using useField hooks\n const { value: selectedTheme } = useField<string>({ path: 'themeConfiguration.theme' })\n const { value: primaryColor } = useField<string>({\n path: 'themeConfiguration.customization.primaryColor',\n })\n const { value: accentColor } = useField<string>({\n path: 'themeConfiguration.customization.accentColor',\n })\n const { value: backgroundColor } = useField<string>({\n path: 'themeConfiguration.customization.backgroundColor',\n })\n const { value: textColor } = useField<string>({\n path: 'themeConfiguration.customization.textColor',\n })\n\n // Determine current theme and if overrides are active\n const currentTheme = themeIsValid(selectedTheme)\n ? selectedTheme\n : (fallbackPreset?.name ?? 'cool')\n const hasOverrides = Boolean(primaryColor || accentColor || backgroundColor || textColor)\n\n const themeColors = useMemo(() => {\n const preset = basePresetMap[currentTheme] ?? fallbackPreset\n const lightMode = preset?.lightMode ?? fallbackLightMode\n\n return {\n primary: lightMode?.primary ?? fallbackLightMode.primary,\n accent:\n lightMode?.accent ??\n lightMode?.secondary ??\n fallbackLightMode.accent ??\n fallbackLightMode.primary,\n background: lightMode?.background ?? fallbackLightMode.background,\n text: lightMode?.foreground ?? fallbackLightMode.foreground,\n }\n }, [currentTheme])\n\n const currentColors = useMemo(\n () => ({\n primary: primaryColor || themeColors.primary,\n accent: accentColor || themeColors.accent,\n background: backgroundColor || themeColors.background,\n text: textColor || themeColors.text,\n }),\n [primaryColor, accentColor, backgroundColor, textColor, themeColors],\n )\n\n return (\n <div className=\"theme-preview\" style={{ marginTop: '20px' }}>\n <div\n style={{\n fontSize: '16px',\n fontWeight: '600',\n marginBottom: '16px',\n color: '#374151',\n }}\n >\n 🎨 Live Theme Preview\n </div>\n\n <div\n className=\"preview-container\"\n style={{\n border: '2px solid #e5e7eb',\n borderRadius: '12px',\n overflow: 'hidden',\n backgroundColor: currentColors.background,\n color: currentColors.text,\n minHeight: '300px',\n }}\n >\n {/* Header */}\n <div\n style={{\n backgroundColor: currentColors.primary,\n color: currentColors.background,\n padding: '16px 24px',\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n }}\n >\n <div style={{ fontSize: '20px', fontWeight: '700' }}>Your Website</div>\n <nav style={{ display: 'flex', gap: '24px', fontSize: '14px' }}>\n <span>Home</span>\n <span>About</span>\n <span>Services</span>\n <span>Contact</span>\n </nav>\n </div>\n\n {/* Content */}\n <div style={{ padding: '32px 24px' }}>\n <h1\n style={{\n fontSize: '32px',\n fontWeight: '800',\n marginBottom: '16px',\n color: currentColors.text,\n }}\n >\n Welcome to Your Site\n </h1>\n\n <p\n style={{\n fontSize: '16px',\n lineHeight: '1.6',\n marginBottom: '24px',\n color: currentColors.text,\n opacity: 0.8,\n }}\n >\n This is how your content will look with the selected theme. The colors and styling will\n be applied across your entire website.\n </p>\n\n {/* Buttons */}\n <div style={{ display: 'flex', gap: '12px', marginBottom: '32px' }}>\n <button\n style={{\n backgroundColor: currentColors.primary,\n color: currentColors.background,\n border: 'none',\n padding: '12px 24px',\n borderRadius: '6px',\n fontSize: '14px',\n fontWeight: '600',\n cursor: 'pointer',\n }}\n >\n Primary Button\n </button>\n <button\n style={{\n backgroundColor: 'transparent',\n color: currentColors.primary,\n border: `2px solid ${currentColors.primary}`,\n padding: '10px 24px',\n borderRadius: '6px',\n fontSize: '14px',\n fontWeight: '600',\n cursor: 'pointer',\n }}\n >\n Secondary Button\n </button>\n </div>\n\n {/* Card */}\n <div\n style={{\n backgroundColor: currentColors.text,\n color: currentColors.background,\n padding: '24px',\n borderRadius: '8px',\n opacity: 0.05,\n marginBottom: '16px',\n }}\n />\n <div\n style={{\n border: `1px solid ${currentColors.text}`,\n padding: '20px',\n borderRadius: '8px',\n opacity: 0.1,\n }}\n >\n <h3\n style={{\n fontSize: '18px',\n fontWeight: '600',\n marginBottom: '12px',\n color: currentColors.text,\n }}\n >\n Sample Card\n </h3>\n <p\n style={{\n fontSize: '14px',\n color: currentColors.text,\n opacity: 0.7,\n }}\n >\n This shows how cards and content blocks will appear.\n </p>\n </div>\n </div>\n\n {/* Footer */}\n <div\n style={{\n backgroundColor: currentColors.accent,\n color: currentColors.background,\n padding: '16px 24px',\n textAlign: 'center',\n fontSize: '14px',\n marginTop: 'auto',\n }}\n >\n © 2025 Your Website. Powered by PayloadCMS.\n </div>\n </div>\n\n {/* Theme info */}\n <div\n style={{\n marginTop: '12px',\n fontSize: '12px',\n color: '#6b7280',\n display: 'grid',\n gridTemplateColumns: 'repeat(2, 1fr)',\n gap: '8px',\n }}\n >\n <div>\n <strong>Active Theme:</strong> {currentTheme}\n </div>\n <div>\n <strong>Primary:</strong> {currentColors.primary}\n </div>\n <div>\n <strong>Accent:</strong> {currentColors.accent}\n </div>\n <div>\n <strong>Background:</strong> {currentColors.background}\n </div>\n </div>\n\n {/* Customization indicator */}\n {hasOverrides && (\n <div\n style={{\n marginTop: '8px',\n padding: '8px 12px',\n backgroundColor: '#fef3c7',\n borderRadius: '6px',\n fontSize: '11px',\n color: '#92400e',\n display: 'flex',\n alignItems: 'center',\n gap: '6px',\n }}\n >\n <span>⚡</span>\n <span>\n <strong>Custom colors applied</strong> - overriding theme defaults\n </span>\n </div>\n )}\n </div>\n )\n}\n"],"names":["useField","React","useMemo","allThemePresets","themeIsValid","DEFAULT_THEME_KEY","basePresetMap","reduce","accumulator","preset","name","fallbackPreset","fallbackLightMode","lightMode","primary","accent","background","foreground","ThemePreview","value","selectedTheme","path","primaryColor","accentColor","backgroundColor","textColor","currentTheme","hasOverrides","Boolean","themeColors","secondary","text","currentColors","div","className","style","marginTop","fontSize","fontWeight","marginBottom","color","border","borderRadius","overflow","minHeight","padding","display","justifyContent","alignItems","nav","gap","span","h1","p","lineHeight","opacity","button","cursor","h3","textAlign","gridTemplateColumns","strong"],"mappings":"AAAA;;AAEA,SAASA,QAAQ,QAAQ,iBAAgB;AACzC,OAAOC,SAASC,OAAO,QAAQ,QAAO;AACtC,SAASC,eAAe,QAAQ,gBAAe;AAC/C,SAASC,YAAY,QAAQ,8BAA6B;AAE1D,MAAMC,oBAAoB;AAC1B,MAAMC,gBAAgBH,gBAAgBI,MAAM,CAC1C,CAACC,aAAaC;IACZD,WAAW,CAACC,OAAOC,IAAI,CAAC,GAAGD;IAC3B,OAAOD;A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iB;4BAAE7B,cAAclB,OAAO;;;kCAElD,MAACmB;;0CACC,KAAC4B;0CAAO;;4BAAgB;4BAAE7B,cAAcjB,MAAM;;;kCAEhD,MAACkB;;0CACC,KAAC4B;0CAAO;;4BAAoB;4BAAE7B,cAAchB,UAAU;;;;;YAKzDW,8BACC,MAACM;gBACCE,OAAO;oBACLC,WAAW;oBACXS,SAAS;oBACTrB,iBAAiB;oBACjBkB,cAAc;oBACdL,UAAU;oBACVG,OAAO;oBACPM,SAAS;oBACTE,YAAY;oBACZE,KAAK;gBACP;;kCAEA,KAACC;kCAAK;;kCACN,MAACA;;0CACC,KAACU;0CAAO;;4BAA8B;;;;;;;AAMlD"}
1
+ {"version":3,"sources":["../../src/components/ThemePreview.tsx"],"sourcesContent":["'use client'\n\nimport { useField } from '@payloadcms/ui'\nimport React, { useMemo } from 'react'\nimport { allThemePresets } from '../presets.js'\nimport { themeIsValid } from '../providers/Theme/types.js'\nimport { getTranslations } from '../translations.js'\nimport { getAdminLanguage } from '../utils/getAdminLanguage.js'\n\nconst DEFAULT_THEME_KEY = 'cool'\nconst basePresetMap = allThemePresets.reduce<Record<string, (typeof allThemePresets)[number]>>(\n (accumulator, preset) => {\n accumulator[preset.name] = preset\n return accumulator\n },\n {},\n)\n\nconst fallbackPreset = basePresetMap[DEFAULT_THEME_KEY] ?? allThemePresets[0]\nconst fallbackLightMode = fallbackPreset?.lightMode ?? {\n primary: '#3b82f6',\n accent: '#06b6d4',\n background: '#ffffff',\n foreground: '#1f2937',\n}\n\nexport default function ThemePreview() {\n // Get individual field values using useField hooks\n const { value: selectedTheme } = useField<string>({ path: 'themeConfiguration.theme' })\n const { value: primaryColor } = useField<string>({\n path: 'themeConfiguration.customization.primaryColor',\n })\n const { value: accentColor } = useField<string>({\n path: 'themeConfiguration.customization.accentColor',\n })\n const { value: backgroundColor } = useField<string>({\n path: 'themeConfiguration.customization.backgroundColor',\n })\n const { value: textColor } = useField<string>({\n path: 'themeConfiguration.customization.textColor',\n })\n\n // Determine current theme and if overrides are active\n const currentTheme = themeIsValid(selectedTheme)\n ? selectedTheme\n : (fallbackPreset?.name ?? 'cool')\n const hasOverrides = Boolean(primaryColor || accentColor || backgroundColor || textColor)\n\n const themeColors = useMemo(() => {\n const preset = basePresetMap[currentTheme] ?? fallbackPreset\n const lightMode = preset?.lightMode ?? fallbackLightMode\n\n return {\n primary: lightMode?.primary ?? fallbackLightMode.primary,\n accent:\n lightMode?.accent ??\n lightMode?.secondary ??\n fallbackLightMode.accent ??\n fallbackLightMode.primary,\n background: lightMode?.background ?? fallbackLightMode.background,\n text: lightMode?.foreground ?? fallbackLightMode.foreground,\n }\n }, [currentTheme])\n\n const currentColors = useMemo(\n () => ({\n primary: primaryColor || themeColors.primary,\n accent: accentColor || themeColors.accent,\n background: backgroundColor || themeColors.background,\n text: textColor || themeColors.text,\n }),\n [primaryColor, accentColor, backgroundColor, textColor, themeColors],\n )\n\n const t = getTranslations(getAdminLanguage())\n\n return (\n <div className=\"theme-preview\" style={{ marginTop: '20px' }}>\n <div\n style={{\n fontSize: '16px',\n fontWeight: '600',\n marginBottom: '16px',\n color: '#374151',\n }}\n >\n {t.livePreview.largeTitle}\n </div>\n\n <div\n className=\"preview-container\"\n style={{\n border: '2px solid #e5e7eb',\n borderRadius: '12px',\n overflow: 'hidden',\n backgroundColor: currentColors.background,\n color: currentColors.text,\n minHeight: '300px',\n }}\n >\n {/* Header */}\n <div\n style={{\n backgroundColor: currentColors.primary,\n color: currentColors.background,\n padding: '16px 24px',\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n }}\n >\n <div style={{ fontSize: '20px', fontWeight: '700' }}>{t.preview.siteTitle}</div>\n <nav style={{ display: 'flex', gap: '24px', fontSize: '14px' }}>\n <span>{t.preview.nav.home}</span>\n <span>{t.preview.nav.about}</span>\n <span>{t.preview.nav.services}</span>\n <span>{t.preview.nav.contact}</span>\n </nav>\n </div>\n\n {/* Content */}\n <div style={{ padding: '32px 24px' }}>\n <h1\n style={{\n fontSize: '32px',\n fontWeight: '800',\n marginBottom: '16px',\n color: currentColors.text,\n }}\n >\n {t.preview.welcomeTitle}\n </h1>\n\n <p\n style={{\n fontSize: '16px',\n lineHeight: '1.6',\n marginBottom: '24px',\n color: currentColors.text,\n opacity: 0.8,\n }}\n >\n {t.preview.welcomeCopy}\n </p>\n <div style={{ display: 'flex', gap: '12px', marginBottom: '24px' }}>\n <button\n style={{\n backgroundColor: currentColors.primary,\n color: currentColors.background,\n border: 'none',\n padding: '12px 24px',\n borderRadius: '6px',\n fontSize: '14px',\n fontWeight: '600',\n cursor: 'pointer',\n }}\n >\n Primary Button\n </button>\n <button\n style={{\n backgroundColor: 'transparent',\n color: currentColors.primary,\n border: `2px solid ${currentColors.primary}`,\n padding: '10px 24px',\n borderRadius: '6px',\n fontSize: '14px',\n fontWeight: '600',\n cursor: 'pointer',\n }}\n >\n Secondary Button\n </button>\n </div>\n\n {/* Card */}\n <div\n style={{\n backgroundColor: currentColors.text,\n color: currentColors.background,\n padding: '24px',\n borderRadius: '8px',\n opacity: 0.05,\n marginBottom: '16px',\n }}\n />\n <div\n style={{\n border: `1px solid ${currentColors.text}`,\n padding: '20px',\n borderRadius: '8px',\n opacity: 0.1,\n }}\n >\n <h2\n style={{\n fontSize: '18px',\n fontWeight: '600',\n marginBottom: '12px',\n color: currentColors.text,\n }}\n >\n {t.preview.sampleCardTitle}\n </h2>\n <p\n style={{\n fontSize: '14px',\n color: currentColors.text,\n opacity: 0.7,\n }}\n >\n This shows how cards and content blocks will appear.\n </p>\n </div>\n </div>\n\n {/* Footer */}\n <div\n style={{\n backgroundColor: currentColors.accent,\n color: currentColors.background,\n padding: '16px 24px',\n textAlign: 'center',\n fontSize: '14px',\n marginTop: 'auto',\n }}\n >\n {t.preview.footer}\n </div>\n </div>\n\n {/* Theme info */}\n <div\n style={{\n marginTop: '12px',\n fontSize: '12px',\n color: '#6b7280',\n display: 'grid',\n gridTemplateColumns: 'repeat(2, 1fr)',\n gap: '8px',\n }}\n >\n <div>\n <strong>Active Theme:</strong> {currentTheme}\n </div>\n <div>\n <strong>Primary:</strong> {currentColors.primary}\n </div>\n <div>\n <strong>Accent:</strong> {currentColors.accent}\n </div>\n <div>\n <strong>Background:</strong> {currentColors.background}\n </div>\n </div>\n\n {/* Customization indicator */}\n {hasOverrides && (\n <div\n style={{\n marginTop: '8px',\n padding: '8px 12px',\n backgroundColor: '#fef3c7',\n borderRadius: '6px',\n fontSize: '11px',\n color: '#92400e',\n display: 'flex',\n alignItems: 'center',\n gap: '6px',\n }}\n >\n <span>⚡</span>\n <span>\n <strong>Custom colors applied</strong> - overriding theme defaults\n </span>\n </div>\n )}\n </div>\n )\n}\n"],"names":["useField","React","useMemo","allThemePresets","themeIsValid","getTranslations","getAdminLanguage","DEFAULT_THEME_KEY","basePresetMap","reduce","accumulator","preset","name","fallbackPreset","fallbackLightMode","lightMode","primary","accent","background","foreground","ThemePreview","value","selectedTheme","path","primaryColor","accentColor","backgroundColor","textColor","currentTheme","hasOverrides","Boolean","themeColors","secondary","text","currentColors","t","div","className","style","marginTop","fontSize","fontWeight","marginBottom","color","livePreview","largeTitle","border","borderRadius","overflow","minHeight","padding","display","justifyContent","alignItems","preview","siteTitle","nav","gap","span","home","about","services","contact","h1","welcomeTitle","p","lineHeight","opacity","welcomeCopy","button","cursor","h2","sampleCardTitle","textAlign","footer","gridTemplateColumns","strong"],"mappings":"AAAA;;AAEA,SAASA,QAAQ,QAAQ,iBAAgB;AACzC,OAAOC,SAASC,OAAO,QAAQ,QAAO;AACtC,SAASC,eAAe,QAAQ,gBAAe;AAC/C,SAASC,YAAY,QAAQ,8BAA6B;AAC1D,SAASC,eAAe,QAAQ,qBAAoB;AACpD,SAASC,gBAAgB,QAAQ,+BAA8B;AAE/D,MAAMC,oBAAoB;AAC1B,MAAMC,gBAAgBL,gBAAgBM,MAAM,CAC1C,CAACC,aAAaC;IACZD,WAAW,CAACC,OAAOC,IAAI,CAAC,GAAGD;IAC3B,OAAO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D;;;;;;kCAOL,KAAC/B;wBACCE,OAAO;4BACLZ,iBAAiBQ,cAAcjB,MAAM;4BACrC0B,OAAOT,cAAchB,UAAU;4BAC/BgC,SAAS;4BACTuB,WAAW;4BACXjC,UAAU;4BACVD,WAAW;wBACb;kCAECJ,EAAEmB,OAAO,CAACoB,MAAM;;;;0BAKrB,MAACtC;gBACCE,OAAO;oBACLC,WAAW;oBACXC,UAAU;oBACVG,OAAO;oBACPQ,SAAS;oBACTwB,qBAAqB;oBACrBlB,KAAK;gBACP;;kCAEA,MAACrB;;0CACC,KAACwC;0CAAO;;4BAAsB;4BAAEhD;;;kCAElC,MAACQ;;0CACC,KAACwC;0CAAO;;4BAAiB;4BAAE1C,cAAclB,OAAO;;;kCAElD,MAACoB;;0CACC,KAACwC;0CAAO;;4BAAgB;4BAAE1C,cAAcjB,MAAM;;;kCAEhD,MAACmB;;0CACC,KAACwC;0CAAO;;4BAAoB;4BAAE1C,cAAchB,UAAU;;;;;YAKzDW,8BACC,MAACO;gBACCE,OAAO;oBACLC,WAAW;oBACXW,SAAS;oBACTxB,iBAAiB;oBACjBqB,cAAc;oBACdP,UAAU;oBACVG,OAAO;oBACPQ,SAAS;oBACTE,YAAY;oBACZI,KAAK;gBACP;;kCAEA,KAACC;kCAAK;;kCACN,MAACA;;0CACC,KAACkB;0CAAO;;4BAA8B;;;;;;;AAMlD"}
@@ -1,80 +1,131 @@
1
1
  export declare const BODY_FONT_OPTIONS: readonly [{
2
- readonly label: "Use theme preset";
2
+ readonly label: {
3
+ readonly en: "Use theme preset";
4
+ readonly cs: "Použít výchozí";
5
+ };
3
6
  readonly value: "preset";
4
7
  }, {
5
- readonly label: "System";
8
+ readonly label: {
9
+ readonly en: "System";
10
+ readonly cs: "Systémové";
11
+ };
6
12
  readonly value: "system-ui";
7
13
  readonly fontFamily: "system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif";
8
14
  readonly category: "sans-serif";
9
15
  }, {
10
- readonly label: "Inter";
16
+ readonly label: {
17
+ readonly en: "Inter";
18
+ readonly cs: "Inter";
19
+ };
11
20
  readonly value: "Inter";
12
21
  readonly fontFamily: "\"Inter\", sans-serif";
13
22
  readonly category: "sans-serif";
14
23
  }, {
15
- readonly label: "Roboto";
24
+ readonly label: {
25
+ readonly en: "Roboto";
26
+ readonly cs: "Roboto";
27
+ };
16
28
  readonly value: "Roboto";
17
29
  readonly fontFamily: "\"Roboto\", sans-serif";
18
30
  readonly category: "sans-serif";
19
31
  }, {
20
- readonly label: "Open Sans";
32
+ readonly label: {
33
+ readonly en: "Open Sans";
34
+ readonly cs: "Open Sans";
35
+ };
21
36
  readonly value: "Open Sans";
22
37
  readonly fontFamily: "\"Open Sans\", sans-serif";
23
38
  readonly category: "sans-serif";
24
39
  }, {
25
- readonly label: "Lato";
40
+ readonly label: {
41
+ readonly en: "Lato";
42
+ readonly cs: "Lato";
43
+ };
26
44
  readonly value: "Lato";
27
45
  readonly fontFamily: "\"Lato\", sans-serif";
28
46
  readonly category: "sans-serif";
29
47
  }, {
30
- readonly label: "Montserrat";
48
+ readonly label: {
49
+ readonly en: "Montserrat";
50
+ readonly cs: "Montserrat";
51
+ };
31
52
  readonly value: "Montserrat";
32
53
  readonly fontFamily: "\"Montserrat\", sans-serif";
33
54
  readonly category: "sans-serif";
34
55
  }, {
35
- readonly label: "Poppins";
56
+ readonly label: {
57
+ readonly en: "Poppins";
58
+ readonly cs: "Poppins";
59
+ };
36
60
  readonly value: "Poppins";
37
61
  readonly fontFamily: "\"Poppins\", sans-serif";
38
62
  readonly category: "sans-serif";
39
63
  }, {
40
- readonly label: "Custom font...";
64
+ readonly label: {
65
+ readonly en: "Custom font...";
66
+ readonly cs: "Vlastní písmo...";
67
+ };
41
68
  readonly value: "custom";
42
69
  }];
43
70
  export declare const HEADING_FONT_OPTIONS: readonly [{
44
- readonly label: "Use theme preset";
71
+ readonly label: {
72
+ readonly en: "Use theme preset";
73
+ readonly cs: "Použít výchozí";
74
+ };
45
75
  readonly value: "preset";
46
76
  }, {
47
- readonly label: "System";
77
+ readonly label: {
78
+ readonly en: "System";
79
+ readonly cs: "Systémové";
80
+ };
48
81
  readonly value: "system-ui";
49
82
  readonly fontFamily: "system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif";
50
83
  readonly category: "sans-serif";
51
84
  }, {
52
- readonly label: "Inter";
85
+ readonly label: {
86
+ readonly en: "Inter";
87
+ readonly cs: "Inter";
88
+ };
53
89
  readonly value: "Inter";
54
90
  readonly fontFamily: "\"Inter\", sans-serif";
55
91
  readonly category: "sans-serif";
56
92
  }, {
57
- readonly label: "Playfair Display";
93
+ readonly label: {
94
+ readonly en: "Playfair Display";
95
+ readonly cs: "Playfair Display";
96
+ };
58
97
  readonly value: "Playfair Display";
59
98
  readonly fontFamily: "\"Playfair Display\", serif";
60
99
  readonly category: "serif";
61
100
  }, {
62
- readonly label: "Merriweather";
101
+ readonly label: {
102
+ readonly en: "Merriweather";
103
+ readonly cs: "Merriweather";
104
+ };
63
105
  readonly value: "Merriweather";
64
106
  readonly fontFamily: "\"Merriweather\", serif";
65
107
  readonly category: "serif";
66
108
  }, {
67
- readonly label: "Montserrat";
109
+ readonly label: {
110
+ readonly en: "Montserrat";
111
+ readonly cs: "Montserrat";
112
+ };
68
113
  readonly value: "Montserrat";
69
114
  readonly fontFamily: "\"Montserrat\", sans-serif";
70
115
  readonly category: "sans-serif";
71
116
  }, {
72
- readonly label: "Raleway";
117
+ readonly label: {
118
+ readonly en: "Raleway";
119
+ readonly cs: "Raleway";
120
+ };
73
121
  readonly value: "Raleway";
74
122
  readonly fontFamily: "\"Raleway\", sans-serif";
75
123
  readonly category: "sans-serif";
76
124
  }, {
77
- readonly label: "Custom font...";
125
+ readonly label: {
126
+ readonly en: "Custom font...";
127
+ readonly cs: "Vlastní písmo...";
128
+ };
78
129
  readonly value: "custom";
79
130
  }];
80
131
  export declare const BASE_FONT_SIZE_OPTIONS: readonly [{
@@ -1 +1 @@
1
- {"version":3,"file":"themeFonts.d.ts","sourceRoot":"","sources":["../../src/constants/themeFonts.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CpB,CAAA;AAEV,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCvB,CAAA;AAEV,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAOzB,CAAA;AAEV,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAOtB,CAAA;AAEV,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWpD,CAAA"}
1
+ {"version":3,"file":"themeFonts.d.ts","sourceRoot":"","sources":["../../src/constants/themeFonts.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CpB,CAAA;AAEV,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCvB,CAAA;AAEV,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAOzB,CAAA;AAEV,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAOtB,CAAA;AAEV,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWpD,CAAA"}
@@ -1,99 +1,150 @@
1
1
  // Theme font constants for the plugin
2
2
  export const BODY_FONT_OPTIONS = [
3
3
  {
4
- label: 'Use theme preset',
4
+ label: {
5
+ en: 'Use theme preset',
6
+ cs: 'Použít výchozí'
7
+ },
5
8
  value: 'preset'
6
9
  },
7
10
  {
8
- label: 'System',
11
+ label: {
12
+ en: 'System',
13
+ cs: 'Systémové'
14
+ },
9
15
  value: 'system-ui',
10
16
  fontFamily: 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
11
17
  category: 'sans-serif'
12
18
  },
13
19
  {
14
- label: 'Inter',
20
+ label: {
21
+ en: 'Inter',
22
+ cs: 'Inter'
23
+ },
15
24
  value: 'Inter',
16
25
  fontFamily: '"Inter", sans-serif',
17
26
  category: 'sans-serif'
18
27
  },
19
28
  {
20
- label: 'Roboto',
29
+ label: {
30
+ en: 'Roboto',
31
+ cs: 'Roboto'
32
+ },
21
33
  value: 'Roboto',
22
34
  fontFamily: '"Roboto", sans-serif',
23
35
  category: 'sans-serif'
24
36
  },
25
37
  {
26
- label: 'Open Sans',
38
+ label: {
39
+ en: 'Open Sans',
40
+ cs: 'Open Sans'
41
+ },
27
42
  value: 'Open Sans',
28
43
  fontFamily: '"Open Sans", sans-serif',
29
44
  category: 'sans-serif'
30
45
  },
31
46
  {
32
- label: 'Lato',
47
+ label: {
48
+ en: 'Lato',
49
+ cs: 'Lato'
50
+ },
33
51
  value: 'Lato',
34
52
  fontFamily: '"Lato", sans-serif',
35
53
  category: 'sans-serif'
36
54
  },
37
55
  {
38
- label: 'Montserrat',
56
+ label: {
57
+ en: 'Montserrat',
58
+ cs: 'Montserrat'
59
+ },
39
60
  value: 'Montserrat',
40
61
  fontFamily: '"Montserrat", sans-serif',
41
62
  category: 'sans-serif'
42
63
  },
43
64
  {
44
- label: 'Poppins',
65
+ label: {
66
+ en: 'Poppins',
67
+ cs: 'Poppins'
68
+ },
45
69
  value: 'Poppins',
46
70
  fontFamily: '"Poppins", sans-serif',
47
71
  category: 'sans-serif'
48
72
  },
49
73
  {
50
- label: 'Custom font...',
74
+ label: {
75
+ en: 'Custom font...',
76
+ cs: 'Vlastní písmo...'
77
+ },
51
78
  value: 'custom'
52
79
  }
53
80
  ];
54
81
  export const HEADING_FONT_OPTIONS = [
55
82
  {
56
- label: 'Use theme preset',
83
+ label: {
84
+ en: 'Use theme preset',
85
+ cs: 'Použít výchozí'
86
+ },
57
87
  value: 'preset'
58
88
  },
59
89
  {
60
- label: 'System',
90
+ label: {
91
+ en: 'System',
92
+ cs: 'Systémové'
93
+ },
61
94
  value: 'system-ui',
62
95
  fontFamily: 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
63
96
  category: 'sans-serif'
64
97
  },
65
98
  {
66
- label: 'Inter',
99
+ label: {
100
+ en: 'Inter',
101
+ cs: 'Inter'
102
+ },
67
103
  value: 'Inter',
68
104
  fontFamily: '"Inter", sans-serif',
69
105
  category: 'sans-serif'
70
106
  },
71
107
  {
72
- label: 'Playfair Display',
108
+ label: {
109
+ en: 'Playfair Display',
110
+ cs: 'Playfair Display'
111
+ },
73
112
  value: 'Playfair Display',
74
113
  fontFamily: '"Playfair Display", serif',
75
114
  category: 'serif'
76
115
  },
77
116
  {
78
- label: 'Merriweather',
117
+ label: {
118
+ en: 'Merriweather',
119
+ cs: 'Merriweather'
120
+ },
79
121
  value: 'Merriweather',
80
122
  fontFamily: '"Merriweather", serif',
81
123
  category: 'serif'
82
124
  },
83
125
  {
84
- label: 'Montserrat',
126
+ label: {
127
+ en: 'Montserrat',
128
+ cs: 'Montserrat'
129
+ },
85
130
  value: 'Montserrat',
86
131
  fontFamily: '"Montserrat", sans-serif',
87
132
  category: 'sans-serif'
88
133
  },
89
134
  {
90
- label: 'Raleway',
135
+ label: {
136
+ en: 'Raleway',
137
+ cs: 'Raleway'
138
+ },
91
139
  value: 'Raleway',
92
140
  fontFamily: '"Raleway", sans-serif',
93
141
  category: 'sans-serif'
94
142
  },
95
143
  {
96
- label: 'Custom font...',
144
+ label: {
145
+ en: 'Custom font...',
146
+ cs: 'Vlastní písmo...'
147
+ },
97
148
  value: 'custom'
98
149
  }
99
150
  ];
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/constants/themeFonts.ts"],"sourcesContent":["// Theme font constants for the plugin\nexport const BODY_FONT_OPTIONS = [\n { label: 'Use theme preset', value: 'preset' },\n {\n label: 'System',\n value: 'system-ui',\n fontFamily: 'system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: 'Inter',\n value: 'Inter',\n fontFamily: '\"Inter\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: 'Roboto',\n value: 'Roboto',\n fontFamily: '\"Roboto\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: 'Open Sans',\n value: 'Open Sans',\n fontFamily: '\"Open Sans\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: 'Lato',\n value: 'Lato',\n fontFamily: '\"Lato\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: 'Montserrat',\n value: 'Montserrat',\n fontFamily: '\"Montserrat\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: 'Poppins',\n value: 'Poppins',\n fontFamily: '\"Poppins\", sans-serif',\n category: 'sans-serif' as const,\n },\n { label: 'Custom font...', value: 'custom' },\n] as const\n\nexport const HEADING_FONT_OPTIONS = [\n { label: 'Use theme preset', value: 'preset' },\n {\n label: 'System',\n value: 'system-ui',\n fontFamily: 'system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: 'Inter',\n value: 'Inter',\n fontFamily: '\"Inter\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: 'Playfair Display',\n value: 'Playfair Display',\n fontFamily: '\"Playfair Display\", serif',\n category: 'serif' as const,\n },\n {\n label: 'Merriweather',\n value: 'Merriweather',\n fontFamily: '\"Merriweather\", serif',\n category: 'serif' as const,\n },\n {\n label: 'Montserrat',\n value: 'Montserrat',\n fontFamily: '\"Montserrat\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: 'Raleway',\n value: 'Raleway',\n fontFamily: '\"Raleway\", sans-serif',\n category: 'sans-serif' as const,\n },\n { label: 'Custom font...', value: 'custom' },\n] as const\n\nexport const BASE_FONT_SIZE_OPTIONS = [\n { label: 'preset', value: 'preset' },\n { label: '14px', value: '14' },\n { label: '15px', value: '15' },\n { label: '16px', value: '16' },\n { label: '17px', value: '17' },\n { label: '18px', value: '18' },\n] as const\n\nexport const LINE_HEIGHT_OPTIONS = [\n { label: 'preset', value: 'preset' },\n { label: '1.4', value: '1.4' },\n { label: '1.5', value: '1.5' },\n { label: '1.6', value: '1.6' },\n { label: '1.7', value: '1.7' },\n { label: '1.8', value: '1.8' },\n] as const\n\nexport const FONT_VALUE_TO_CSS: Record<string, string> = {\n 'system-ui': 'system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif',\n Inter: '\"Inter\", sans-serif',\n Roboto: '\"Roboto\", sans-serif',\n 'Open Sans': '\"Open Sans\", sans-serif',\n Lato: '\"Lato\", sans-serif',\n Montserrat: '\"Montserrat\", sans-serif',\n Poppins: '\"Poppins\", sans-serif',\n 'Playfair Display': '\"Playfair Display\", serif',\n Merriweather: '\"Merriweather\", serif',\n Raleway: '\"Raleway\", sans-serif',\n}\n"],"names":["BODY_FONT_OPTIONS","label","value","fontFamily","category","HEADING_FONT_OPTIONS","BASE_FONT_SIZE_OPTIONS","LINE_HEIGHT_OPTIONS","FONT_VALUE_TO_CSS","Inter","Roboto","Lato","Montserrat","Poppins","Merriweather","Raleway"],"mappings":"AAAA,sCAAsC;AACtC,OAAO,MAAMA,oBAAoB;IAC/B;QAAEC,OAAO;QAAoBC,OAAO;IAAS;IAC7C;QACED,OAAO;QACPC,OAAO;QACPC,YAAY;QACZC,UAAU;IACZ;IACA;QACEH,OAAO;QACPC,OAAO;QACPC,YAAY;QACZC,UAAU;IACZ;IACA;QACEH,OAAO;QACPC,OAAO;QACPC,YAAY;QACZC,UAAU;IACZ;IACA;QACEH,OAAO;QACPC,OAAO;QACPC,YAAY;QACZC,UAAU;IACZ;IACA;QACEH,OAAO;QACPC,OAAO;QACPC,YAAY;QACZC,UAAU;IACZ;IACA;QACEH,OAAO;QACPC,OAAO;QACPC,YAAY;QACZC,UAAU;IACZ;IACA;QACEH,OAAO;QACPC,OAAO;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AAc;IACdC,SAAS;AACX,EAAC"}
1
+ {"version":3,"sources":["../../src/constants/themeFonts.ts"],"sourcesContent":["// Theme font constants for the plugin\nexport const BODY_FONT_OPTIONS = [\n { label: { en: 'Use theme preset', cs: 'Použít výchozí' }, value: 'preset' },\n {\n label: { en: 'System', cs: 'Systémové' },\n value: 'system-ui',\n fontFamily: 'system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: { en: 'Inter', cs: 'Inter' },\n value: 'Inter',\n fontFamily: '\"Inter\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: { en: 'Roboto', cs: 'Roboto' },\n value: 'Roboto',\n fontFamily: '\"Roboto\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: { en: 'Open Sans', cs: 'Open Sans' },\n value: 'Open Sans',\n fontFamily: '\"Open Sans\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: { en: 'Lato', cs: 'Lato' },\n value: 'Lato',\n fontFamily: '\"Lato\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: { en: 'Montserrat', cs: 'Montserrat' },\n value: 'Montserrat',\n fontFamily: '\"Montserrat\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: { en: 'Poppins', cs: 'Poppins' },\n value: 'Poppins',\n fontFamily: '\"Poppins\", sans-serif',\n category: 'sans-serif' as const,\n },\n { label: { en: 'Custom font...', cs: 'Vlastní písmo...' }, value: 'custom' },\n] as const\n\nexport const HEADING_FONT_OPTIONS = [\n { label: { en: 'Use theme preset', cs: 'Použít výchozí' }, value: 'preset' },\n {\n label: { en: 'System', cs: 'Systémové' },\n value: 'system-ui',\n fontFamily: 'system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: { en: 'Inter', cs: 'Inter' },\n value: 'Inter',\n fontFamily: '\"Inter\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: { en: 'Playfair Display', cs: 'Playfair Display' },\n value: 'Playfair Display',\n fontFamily: '\"Playfair Display\", serif',\n category: 'serif' as const,\n },\n {\n label: { en: 'Merriweather', cs: 'Merriweather' },\n value: 'Merriweather',\n fontFamily: '\"Merriweather\", serif',\n category: 'serif' as const,\n },\n {\n label: { en: 'Montserrat', cs: 'Montserrat' },\n value: 'Montserrat',\n fontFamily: '\"Montserrat\", sans-serif',\n category: 'sans-serif' as const,\n },\n {\n label: { en: 'Raleway', cs: 'Raleway' },\n value: 'Raleway',\n fontFamily: '\"Raleway\", sans-serif',\n category: 'sans-serif' as const,\n },\n { label: { en: 'Custom font...', cs: 'Vlastní písmo...' }, value: 'custom' },\n] as const\n\nexport const BASE_FONT_SIZE_OPTIONS = [\n { label: 'preset', value: 'preset' },\n { label: '14px', value: '14' },\n { label: '15px', value: '15' },\n { label: '16px', value: '16' },\n { label: '17px', value: '17' },\n { label: '18px', value: '18' },\n] as const\n\nexport const LINE_HEIGHT_OPTIONS = [\n { label: 'preset', value: 'preset' },\n { label: '1.4', value: '1.4' },\n { label: '1.5', value: '1.5' },\n { label: '1.6', value: '1.6' },\n { label: '1.7', value: '1.7' },\n { label: '1.8', value: '1.8' },\n] as const\n\nexport const FONT_VALUE_TO_CSS: Record<string, string> = {\n 'system-ui': 'system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif',\n Inter: '\"Inter\", sans-serif',\n Roboto: '\"Roboto\", sans-serif',\n 'Open Sans': '\"Open Sans\", sans-serif',\n Lato: '\"Lato\", sans-serif',\n Montserrat: '\"Montserrat\", sans-serif',\n Poppins: '\"Poppins\", sans-serif',\n 'Playfair Display': '\"Playfair Display\", serif',\n Merriweather: '\"Merriweather\", serif',\n Raleway: '\"Raleway\", sans-serif',\n}\n"],"names":["BODY_FONT_OPTIONS","label","en","cs","value","fontFamily","category","HEADING_FONT_OPTIONS","BASE_FONT_SIZE_OPTIONS","LINE_HEIGHT_OPTIONS","FONT_VALUE_TO_CSS","Inter","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GA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAUzD,QAAA,MAAM,eAAe,EAAE,0BA+LtB,CAAA;AAED,eAAe,eAAe,CAAA"}
1
+ {"version":3,"file":"FontSelectField.d.ts","sourceRoot":"","sources":["../../src/fields/FontSelectField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAczD,QAAA,MAAM,eAAe,EAAE,0BAyOtB,CAAA;AAED,eAAe,eAAe,CAAA"}