labellife-design-tool 2.1.6 → 2.1.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.
@@ -1731,6 +1731,7 @@ var SingleFieldDialog = function SingleFieldDialog(_ref) {
1731
1731
  var dateFormat = custom.dateFormat || 'MM-DD-YYYY';
1732
1732
  var isRequired = custom.required === true;
1733
1733
  var logoUrl = config.logoUrl || null;
1734
+ var headerText = config.headerText || null;
1734
1735
  var accentColor = config.accentColor || '#0d83cd';
1735
1736
  var progressPct = Math.round((currentIndex + 1) / totalCount * 100);
1736
1737
  react.useEffect(function () {
@@ -1950,22 +1951,29 @@ var SingleFieldDialog = function SingleFieldDialog(_ref) {
1950
1951
  py: 1.75,
1951
1952
  flexShrink: 0
1952
1953
  }, config.titleStyle),
1953
- children: logoUrl ? /*#__PURE__*/jsxRuntime.jsx("img", {
1954
- src: logoUrl,
1955
- alt: "Logo",
1956
- style: {
1957
- maxHeight: 36,
1958
- maxWidth: 200,
1959
- objectFit: 'contain'
1960
- }
1961
- }) : /*#__PURE__*/jsxRuntime.jsx(material.Typography, {
1954
+ children: /*#__PURE__*/jsxRuntime.jsxs(material.Box, {
1962
1955
  sx: {
1963
- fontWeight: 700,
1964
- fontSize: 17,
1965
- color: '#1a1a1a',
1966
- letterSpacing: '-0.2px'
1956
+ display: 'flex',
1957
+ alignItems: 'center',
1958
+ gap: 1.5
1967
1959
  },
1968
- children: "LabelLife"
1960
+ children: [logoUrl && /*#__PURE__*/jsxRuntime.jsx("img", {
1961
+ src: logoUrl,
1962
+ alt: "Logo",
1963
+ style: {
1964
+ maxHeight: 36,
1965
+ maxWidth: 200,
1966
+ objectFit: 'contain'
1967
+ }
1968
+ }), (headerText || !logoUrl) && /*#__PURE__*/jsxRuntime.jsx(material.Typography, {
1969
+ sx: {
1970
+ fontWeight: 700,
1971
+ fontSize: 17,
1972
+ color: '#1a1a1a',
1973
+ letterSpacing: '-0.2px'
1974
+ },
1975
+ children: headerText || 'LabelLife'
1976
+ })]
1969
1977
  })
1970
1978
  }), /*#__PURE__*/jsxRuntime.jsx(material.Box, {
1971
1979
  sx: {