@officexapp/catalogs-cli 0.4.6 → 0.4.7
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.
- package/dist/index.js +25 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3085,6 +3085,19 @@ function buildPreviewHtml(schema, port, validation, devConfig) {
|
|
|
3085
3085
|
},
|
|
3086
3086
|
// Top bar
|
|
3087
3087
|
topBarEnabled ? h('div', { className: 'cf-topbar fixed top-[28px] left-0 right-0 z-50 border-b border-gray-200/60' },
|
|
3088
|
+
// Announcement strip
|
|
3089
|
+
topBar?.announcement && (topBar.announcement.text || topBar.announcement.html)
|
|
3090
|
+
? h('div', {
|
|
3091
|
+
className: 'cf-topbar-announcement text-center text-sm py-2 px-4 ' + (topBar.announcement.className || ''),
|
|
3092
|
+
style: {
|
|
3093
|
+
backgroundColor: topBar.announcement.bg_color || themeColor,
|
|
3094
|
+
color: topBar.announcement.text_color || '#ffffff',
|
|
3095
|
+
...(topBar.announcement.style || {}),
|
|
3096
|
+
},
|
|
3097
|
+
...(topBar.announcement.html ? { dangerouslySetInnerHTML: { __html: topBar.announcement.html } } : {}),
|
|
3098
|
+
}, topBar.announcement.html ? undefined : topBar.announcement.text)
|
|
3099
|
+
: null,
|
|
3100
|
+
// Nav row
|
|
3088
3101
|
h('div', { className: 'relative flex items-center justify-center px-4 py-3 min-h-[48px]' },
|
|
3089
3102
|
history.length > 0 ? h('button', {
|
|
3090
3103
|
className: 'absolute left-3 top-1/2 -translate-y-1/2 w-9 h-9 flex items-center justify-center rounded-xl text-gray-400 hover:text-gray-700 hover:bg-gray-100/80 transition-all',
|
|
@@ -3094,8 +3107,18 @@ function buildPreviewHtml(schema, port, validation, devConfig) {
|
|
|
3094
3107
|
h('path', { strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M15.75 19.5L8.25 12l7.5-7.5' })
|
|
3095
3108
|
)
|
|
3096
3109
|
) : null,
|
|
3097
|
-
topBar?.
|
|
3098
|
-
|
|
3110
|
+
topBar?.custom_html
|
|
3111
|
+
? h('div', { dangerouslySetInnerHTML: { __html: topBar.custom_html } })
|
|
3112
|
+
: h(React.Fragment, null,
|
|
3113
|
+
topBar?.title ? h('span', { className: 'text-sm text-gray-700 ' + (
|
|
3114
|
+
topBar.title_weight === 'light' ? 'font-light' :
|
|
3115
|
+
topBar.title_weight === 'normal' ? 'font-normal' :
|
|
3116
|
+
topBar.title_weight === 'semibold' ? 'font-semibold' :
|
|
3117
|
+
topBar.title_weight === 'bold' ? 'font-bold' :
|
|
3118
|
+
'font-medium'
|
|
3119
|
+
) }, topBar.title) : null,
|
|
3120
|
+
progressSteps ? h(Stepper, { steps: progressSteps, currentPageId, themeColor }) : null,
|
|
3121
|
+
),
|
|
3099
3122
|
)
|
|
3100
3123
|
) : null,
|
|
3101
3124
|
|