@media-quest/builder 0.0.31 → 0.0.33

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.
@@ -1423,7 +1423,7 @@ var BuilderOptionTheme;
1423
1423
  const FONT_SIZE = 50;
1424
1424
  const BTN_PADDING_LEFT = 40;
1425
1425
  const BTN_PADDING_TOP = 40;
1426
- const buttonBaseCss2 = () => ({
1426
+ const buttonBaseCss = () => ({
1427
1427
  css: {
1428
1428
  fontWeight: FONT_WEIGHT,
1429
1429
  fontSize: { _unit: "px", value: FONT_SIZE },
@@ -1443,7 +1443,7 @@ var BuilderOptionTheme;
1443
1443
  cssEnabled: { opacity: 1, cursor: "pointer" }
1444
1444
  });
1445
1445
  BuilderOptionTheme2.blueButton = () => {
1446
- const base = buttonBaseCss2();
1446
+ const base = buttonBaseCss();
1447
1447
  const { css, cssEnabled, cssDisabled } = base;
1448
1448
  const optionTheme = {
1449
1449
  name: "blue-button-theme",
@@ -1672,9 +1672,9 @@ var Colors = {
1672
1672
  text: "#0D1E45",
1673
1673
  white: "#ffffff",
1674
1674
  backgroundGray: "#F0F0F0",
1675
- backgroundWhite: "white",
1676
- progressBackGround: "#164AC4",
1677
- progressForGround: "#F5F5F5"
1675
+ backgroundWhite: "white"
1676
+ // progressBackGround: "#164AC4",
1677
+ // progressForGround: "#F5F5F5",
1678
1678
  // red: "red",
1679
1679
  // yellow: "yellow",
1680
1680
  };
@@ -1723,7 +1723,8 @@ var btnTextBase = {
1723
1723
  zIndex: LAYER_5,
1724
1724
  width: VIDEO_CONTROLS_WIDTH / 2,
1725
1725
  textAlign: "center",
1726
- visibility: "hidden"
1726
+ visibility: "hidden",
1727
+ margin: { _unit: "px", value: 0 }
1727
1728
  // backgroundColor: Colors.yellow,
1728
1729
  };
1729
1730
  var muteUnmuteText = { ...btnTextBase, right: VIDEO_CONTROLS_RIGHT };
@@ -1771,14 +1772,16 @@ var muteUnMuteStyles = {
1771
1772
  cssDisabled: { opacity: 0.3, cursor: "not-allowed" },
1772
1773
  cssEnabled: { opacity: 0.8, cursor: "pointer" }
1773
1774
  };
1774
- var buttonBaseCss = () => ({
1775
+ var responseButtonBaseCss = () => ({
1775
1776
  css: {
1776
1777
  backgroundColor: Colors.primary,
1777
1778
  borderColor: Colors.primary,
1778
1779
  textColor: Colors.white,
1779
1780
  fontWeight: 600,
1780
- fontSize: { _unit: "px", value: 45 },
1781
- letterSpacing: { _unit: "px", value: 2 },
1781
+ fontSize: { _unit: "px", value: 30 },
1782
+ lineHeight: 1,
1783
+ maxWidth: 30,
1784
+ // flex: "0 0 auto",
1782
1785
  paddingLeft: { _unit: "px", value: 30 },
1783
1786
  paddingTop: { _unit: "px", value: 10 },
1784
1787
  paddingBottom: { _unit: "px", value: 10 },
@@ -1789,12 +1792,13 @@ var buttonBaseCss = () => ({
1789
1792
  position: "relative",
1790
1793
  display: "block",
1791
1794
  cursor: "pointer"
1795
+ // maxWidth: { _unit: "percent", value: 10 },
1792
1796
  },
1793
1797
  cssDisabled: { opacity: 0.3, cursor: "not-allowed" },
1794
1798
  cssEnabled: { opacity: 1, cursor: "pointer" }
1795
1799
  });
1796
1800
  var primaryButton = (overridesCss) => {
1797
- const base = buttonBaseCss();
1801
+ const base = responseButtonBaseCss();
1798
1802
  const optionTheme = {
1799
1803
  name: "primary-button",
1800
1804
  normal: {
@@ -1817,6 +1821,7 @@ var primaryButton = (overridesCss) => {
1817
1821
  btn: {
1818
1822
  css: {
1819
1823
  ...base.css,
1824
+ ...overridesCss,
1820
1825
  backgroundColor: Colors.secondary,
1821
1826
  borderColor: Colors.secondary,
1822
1827
  textColor: Colors.primary
@@ -1939,7 +1944,8 @@ var Theme2 = {
1939
1944
  backgroundColor: Colors.white,
1940
1945
  textAlign: "left",
1941
1946
  textColor: "black",
1942
- fontSize: { _unit: "px", value: 40 }
1947
+ fontSize: { _unit: "px", value: 35 },
1948
+ lineHeight: 1.2
1943
1949
  },
1944
1950
  audio: {
1945
1951
  iconUrl: THEME_2_ICONS.audioPlay.dataUrl,
@@ -1977,18 +1983,19 @@ var Theme2 = {
1977
1983
  container: {
1978
1984
  base: {
1979
1985
  display: "flex",
1980
- justifyContent: "space-evenly",
1986
+ justifyContent: "flex-start",
1981
1987
  width: BUTTON_BAR_WIDTH,
1988
+ height: 8,
1982
1989
  bottom: Q_AREA_BOTTOM + H_M3,
1983
1990
  left: Q_AREA_LEFT + W_M3,
1984
1991
  // backgroundColor: "green",
1985
1992
  gap: { _unit: "px", value: 20 },
1986
- alignItems: "center"
1993
+ alignItems: "stretch"
1987
1994
  },
1988
- whenSingle: { justifyContent: "space-evenly" },
1995
+ whenSingle: { justifyContent: "center" },
1989
1996
  whenMany: { justifyContent: "flex-start" }
1990
1997
  },
1991
- nextButtonTheme: primaryButton({}),
1998
+ nextButtonTheme: primaryButton({ height: 100 }),
1992
1999
  responseButtons: primaryButton({})
1993
2000
  }
1994
2001
  };