Skip to content

Commit

Permalink
chore: adjust iframe placeholder font size
Browse files Browse the repository at this point in the history
Related to #994
  • Loading branch information
Skaiir committed Jan 20, 2024
1 parent 527b0f2 commit be027b7
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/form-js-viewer/assets/form-js-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,10 @@
overflow: hidden;
}

.fjs-container .fjs-iframe-placeholder .fjs-iframe-placeholder-text {
font-size: var(--font-size-label);
}

.fjs-container .fjs-form-field-table {
display: flex;
flex-direction: column;
Expand Down
97 changes: 97 additions & 0 deletions packages/form-js-viewer/rollup.config-1705764078731.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var alias = require('@rollup/plugin-alias');
var babel = require('@rollup/plugin-babel');
var copy = require('rollup-plugin-copy');
var reactSvg = require('@svgr/rollup');
var resolve = require('@rollup/plugin-node-resolve');
var pkg = require('./package.json');

function pgl(plugins = []) {

return [
alias({
entries: [
{ find: 'react', replacement: 'preact/compat' },
{ find: 'react-dom', replacement: 'preact/compat' }
]
}),
resolve({
resolveOnly: [ 'diagram-js' ]
}),
reactSvg(),
babel({
babelHelpers: 'bundled',
plugins: [
[ '@babel/plugin-transform-react-jsx', {
'importSource': 'preact',
'runtime': 'automatic'
} ]
]
}),
...plugins
];

}


var rollup_config = [
{
input: 'src/index.js',
output: [
{
sourcemap: true,
format: 'commonjs',
file: pkg.main
},
{
sourcemap: true,
format: 'esm',
file: pkg.module
}
],
external: [
'min-dash',
'big.js',
'preact',
'preact/jsx-runtime',
'preact/hooks',
'preact/compat',
'preact-markup',
'flatpickr',
'showdown',
'@carbon/grid',
'feelers'
],
plugins: pgl([
copy({
targets: [
{ src: 'assets/form-js-base.css', dest: 'dist/assets' },
{ src: '../../node_modules/flatpickr/dist/themes/light.css', dest: 'dist/assets/flatpickr' }
]
})
]),

onwarn(warning, warn) {

// TODO(@barmac): remove once https://github.com/moment/luxon/issues/193 is resolved
if (warning.code === 'CIRCULAR_DEPENDENCY') {
if (warning.message.includes('luxon')) {
return;
}
}

if (warning.code === 'THIS_IS_UNDEFINED') {
if (warning.id.includes('flatpickr')) {
return;
}
}

warn(warning);
}
}
];

exports.default = rollup_config;

0 comments on commit be027b7

Please sign in to comment.