@micromag/screen-keypad 0.3.349 → 0.3.354
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/assets/css/styles.css +1 -1
- package/es/index.js +57 -5
- package/lib/index.js +58 -4
- package/package.json +18 -16
package/assets/css/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.micromag-screen-keypad-popupButton{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:inherit;cursor:pointer;display:inline-block;font-family:inherit;padding:0}.micromag-screen-keypad-background,.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-buttonLabel,.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-emptyButtonLabel,.micromag-screen-keypad-popupBackdrop,.micromag-screen-keypad-withSquareItems .micromag-screen-keypad-button,.micromag-screen-keypad-withSquareItems .micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-thumbnail,.micromag-screen-keypad-withSquareItems .micromag-screen-keypad-layoutNoLabel .micromag-screen-keypad-thumbnail{height:100%;left:0;position:absolute;top:0;width:100%}.micromag-screen-keypad-container{height:100%;overflow:hidden;position:relative;width:100%}.micromag-screen-keypad-disabled.micromag-screen-keypad-container{overflow:hidden;pointer-events:none}.micromag-screen-keypad-hidden.micromag-screen-keypad-container{display:none;visibility:hidden}.micromag-screen-keypad-placeholder.micromag-screen-keypad-container .micromag-screen-keypad-content{padding:6px;position:relative}.micromag-screen-keypad-emptyText,.micromag-screen-keypad-emptyTitle{border:2px dashed #343434;color:#343434;margin:5px auto}.micromag-screen-keypad-container{-ms-touch-action:none;touch-action:none}.micromag-screen-keypad-container p{font-weight:inherit;margin-bottom:inherit;margin-top:inherit}.micromag-screen-keypad-container.micromag-screen-keypad-isPlaceholder .micromag-screen-keypad-layout{padding:10px}.micromag-screen-keypad-background{z-index:1}.micromag-screen-keypad-inner{height:100%;position:relative;z-index:2}.micromag-screen-keypad-layout{-ms-flex-align:center;-ms-flex-pack:start;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;justify-content:flex-start;text-align:center}.micromag-screen-keypad-emptyText,.micromag-screen-keypad-emptyTitle{margin:10px auto;width:100%}.micromag-screen-keypad-emptyTitle{height:100px}.micromag-screen-keypad-emptyText{height:50px}.micromag-screen-keypad-grid{width:100%}.micromag-screen-keypad-item{height:100%;position:relative}.micromag-screen-keypad-withSquareItems .micromag-screen-keypad-item{height:0;padding-bottom:100%}.micromag-screen-keypad-placeholderItem{height:0;padding-bottom:60%}.micromag-screen-keypad-withSquareItems .micromag-screen-keypad-placeholderItem{padding-bottom:100%}.micromag-screen-keypad-button{-ms-flex-align:center;-ms-flex-pack:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-weight:inherit;height:100%;justify-content:center;overflow:hidden;padding:0;position:relative;-webkit-transition:-webkit-transform .3s cubic-bezier(.41,1.69,.04,.67);transition:-webkit-transform .3s cubic-bezier(.41,1.69,.04,.67);-o-transition:transform .3s cubic-bezier(.41,1.69,.04,.67);transition:transform .3s cubic-bezier(.41,1.69,.04,.67);transition:transform .3s cubic-bezier(.41,1.69,.04,.67),-webkit-transform .3s cubic-bezier(.41,1.69,.04,.67);width:100%}.micromag-screen-keypad-button:hover{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}.micromag-screen-keypad-button:active{-webkit-transform:scale(.95);-ms-transform:scale(.95);transform:scale(.95)}.micromag-screen-keypad-button.micromag-screen-keypad-isEmpty{padding:2px;pointer-events:none}.micromag-screen-keypad-button.micromag-screen-keypad-disableHover,.micromag-screen-keypad-button.micromag-screen-keypad-isEmpty{cursor:default}.micromag-screen-keypad-button.micromag-screen-keypad-disableHover:active,.micromag-screen-keypad-button.micromag-screen-keypad-disableHover:hover,.micromag-screen-keypad-button.micromag-screen-keypad-isEmpty:active,.micromag-screen-keypad-button.micromag-screen-keypad-isEmpty:hover{-webkit-transform:none;-ms-transform:none;transform:none}.micromag-screen-keypad-button.micromag-screen-keypad-isLink{text-decoration:none}.micromag-screen-keypad-button.micromag-screen-keypad-isLink:hover{color:inherit}.micromag-screen-keypad-button .micromag-screen-keypad-buttonPlaceholder,.micromag-screen-keypad-button .micromag-screen-keypad-imagePlaceholder{margin:0;width:100%}.micromag-screen-keypad-buttonVisualPlaceholder{width:100%}.micromag-screen-keypad-thumbnail{max-height:50px;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.micromag-screen-keypad-buttonLabel{padding:5px;width:100%}.micromag-screen-keypad-empty{margin-bottom:10px;padding:10px;width:100%}.micromag-screen-keypad-emptyButtonVisual{margin-bottom:5px;padding:10px 5px}.micromag-screen-keypad-emptyButtonLabel{margin-bottom:5px;padding:2px 5px}.micromag-screen-keypad-popup{height:100%;left:0;position:fixed;right:0;top:0;-ms-touch-action:none;touch-action:none;width:100%;z-index:6}.micromag-screen-keypad-popupBackdrop{pointer-events:none;z-index:2}.micromag-screen-keypad-popupButton{height:100%;padding:52px 15px 30px;position:relative;text-align:left;-webkit-transition:-webkit-transform .3s cubic-bezier(.41,1.69,.04,.67);transition:-webkit-transform .3s cubic-bezier(.41,1.69,.04,.67);-o-transition:transform .3s cubic-bezier(.41,1.69,.04,.67);transition:transform .3s cubic-bezier(.41,1.69,.04,.67);transition:transform .3s cubic-bezier(.41,1.69,.04,.67),-webkit-transform .3s cubic-bezier(.41,1.69,.04,.67);width:100%;z-index:3}.micromag-screen-keypad-popupButton:active{-webkit-transform:scale(.95);-ms-transform:scale(.95);transform:scale(.95)}.micromag-screen-keypad-popupInner{background-color:#1c1c1c;overflow:hidden}.micromag-screen-keypad-popupInner .micromag-screen-keypad-popupContent{font-family:inherit;font-style:inherit;font-weight:inherit;line-height:inherit}.micromag-screen-keypad-popupInner .micromag-screen-keypad-popupContent p{font-weight:inherit;margin-bottom:0;margin-top:0}.micromag-screen-keypad-popupWrapper{-ms-flex-align:start;-ms-flex-pack:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;justify-content:flex-start;margin-bottom:-.5em}.micromag-screen-keypad-placeholder{mix-blend-mode:normal}.micromag-screen-keypad-popupContent,.micromag-screen-keypad-popupHeading,.micromag-screen-keypad-popupVisual{-ms-flex-positive:1;-ms-flex-negative:0;flex-grow:1;flex-shrink:0;margin-bottom:.5em;width:100%}.micromag-screen-keypad-popupWrapper .micromag-screen-keypad-popupHeading{font-weight:inherit;margin-bottom:.25em}.micromag-screen-keypad-contentSplit .micromag-screen-keypad-emptyHeading,.micromag-screen-keypad-contentSplit .micromag-screen-keypad-popupHeading{-ms-flex-order:1;order:1}.micromag-screen-keypad-contentSplit .micromag-screen-keypad-emptyVisual,.micromag-screen-keypad-contentSplit .micromag-screen-keypad-popupVisual{-ms-flex-order:2;order:2}.micromag-screen-keypad-contentSplit .micromag-screen-keypad-emptyContent,.micromag-screen-keypad-contentSplit .micromag-screen-keypad-popupContent{-ms-flex-order:3;order:3}.micromag-screen-keypad-contentBottom .micromag-screen-keypad-emptyVisual,.micromag-screen-keypad-contentBottom .micromag-screen-keypad-popupVisual{-ms-flex-order:1;order:1}.micromag-screen-keypad-contentBottom .micromag-screen-keypad-emptyHeading,.micromag-screen-keypad-contentBottom .micromag-screen-keypad-popupHeading{-ms-flex-order:2;order:2}.micromag-screen-keypad-contentBottom .micromag-screen-keypad-emptyContent,.micromag-screen-keypad-contentBottom .micromag-screen-keypad-popupContent{-ms-flex-order:3;order:3}.micromag-screen-keypad-popupCTA{margin:0 auto}.micromag-screen-keypad-layoutLabelTop .micromag-screen-keypad-buttonLabel,.micromag-screen-keypad-layoutLabelTop .micromag-screen-keypad-emptyButtonLabel{-ms-flex-order:1;order:1}.micromag-screen-keypad-layoutLabelTop .micromag-screen-keypad-buttonVisual,.micromag-screen-keypad-layoutLabelTop .micromag-screen-keypad-emptyButtonVisual{-ms-flex-order:2;order:2}.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-buttonLabel,.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-emptyButtonLabel,.micromag-screen-keypad-layoutNoLabel .micromag-screen-keypad-buttonLabel,.micromag-screen-keypad-layoutNoLabel .micromag-screen-keypad-emptyButtonLabel{display:none}.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-buttonVisual,.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-emptyButtonVisual,.micromag-screen-keypad-layoutNoLabel .micromag-screen-keypad-buttonVisual,.micromag-screen-keypad-layoutNoLabel .micromag-screen-keypad-emptyButtonVisual{height:100%;width:100%!important}.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-thumbnail,.micromag-screen-keypad-layoutNoLabel .micromag-screen-keypad-thumbnail{max-height:none;-o-object-fit:cover;object-fit:cover;width:100%!important}.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-buttonVisual,.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-emptyButtonVisual{z-index:1}.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-buttonLabel,.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-emptyButtonLabel{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(28,28,28,0)),to(rgba(28,28,28,.75)));background-image:-o-linear-gradient(top,rgba(28,28,28,0),rgba(28,28,28,.75));background-image:linear-gradient(180deg,rgba(28,28,28,0),rgba(28,28,28,.75));bottom:0;display:block;height:auto;top:auto;z-index:2}
|
|
1
|
+
.micromag-screen-keypad-popupButton{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:inherit;cursor:pointer;display:inline-block;font-family:inherit;padding:0}.micromag-screen-keypad-background,.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-buttonLabel,.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-emptyButtonLabel,.micromag-screen-keypad-popupBackdrop,.micromag-screen-keypad-withSquareItems .micromag-screen-keypad-button,.micromag-screen-keypad-withSquareItems .micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-thumbnail,.micromag-screen-keypad-withSquareItems .micromag-screen-keypad-layoutNoLabel .micromag-screen-keypad-thumbnail{height:100%;left:0;position:absolute;top:0;width:100%}.micromag-screen-keypad-container{height:100%;overflow:hidden;position:relative;width:100%}.micromag-screen-keypad-disabled.micromag-screen-keypad-container{overflow:hidden;pointer-events:none}.micromag-screen-keypad-hidden.micromag-screen-keypad-container{display:none;visibility:hidden}.micromag-screen-keypad-placeholder.micromag-screen-keypad-container .micromag-screen-keypad-content{padding:6px;position:relative}.micromag-screen-keypad-emptyText,.micromag-screen-keypad-emptyTitle{border:2px dashed #343434;color:#343434;margin:5px auto}.micromag-screen-keypad-container{-ms-touch-action:none;touch-action:none}.micromag-screen-keypad-container p{font-weight:inherit;margin-bottom:inherit;margin-top:inherit}.micromag-screen-keypad-container.micromag-screen-keypad-isPlaceholder .micromag-screen-keypad-layout{padding:10px}.micromag-screen-keypad-background{z-index:1}.micromag-screen-keypad-header{left:0;position:absolute;top:0;width:100%}.micromag-screen-keypad-footer{bottom:0;left:0;position:absolute;width:100%}.micromag-screen-keypad-inner{height:100%;position:relative;z-index:2}.micromag-screen-keypad-layout{-ms-flex-align:center;-ms-flex-pack:start;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;justify-content:flex-start;text-align:center}.micromag-screen-keypad-emptyText,.micromag-screen-keypad-emptyTitle{margin:10px auto;width:100%}.micromag-screen-keypad-emptyTitle{height:100px}.micromag-screen-keypad-emptyText{height:50px}.micromag-screen-keypad-grid{width:100%}.micromag-screen-keypad-item{height:100%;position:relative}.micromag-screen-keypad-withSquareItems .micromag-screen-keypad-item{height:0;padding-bottom:100%}.micromag-screen-keypad-placeholderItem{height:0;padding-bottom:60%}.micromag-screen-keypad-withSquareItems .micromag-screen-keypad-placeholderItem{padding-bottom:100%}.micromag-screen-keypad-button{-ms-flex-align:center;-ms-flex-pack:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-weight:inherit;height:100%;justify-content:center;overflow:hidden;padding:0;position:relative;-webkit-transition:-webkit-transform .3s cubic-bezier(.41,1.69,.04,.67);transition:-webkit-transform .3s cubic-bezier(.41,1.69,.04,.67);-o-transition:transform .3s cubic-bezier(.41,1.69,.04,.67);transition:transform .3s cubic-bezier(.41,1.69,.04,.67);transition:transform .3s cubic-bezier(.41,1.69,.04,.67),-webkit-transform .3s cubic-bezier(.41,1.69,.04,.67);width:100%}.micromag-screen-keypad-button:hover{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}.micromag-screen-keypad-button:active{-webkit-transform:scale(.95);-ms-transform:scale(.95);transform:scale(.95)}.micromag-screen-keypad-button.micromag-screen-keypad-isEmpty{padding:2px;pointer-events:none}.micromag-screen-keypad-button.micromag-screen-keypad-disableHover,.micromag-screen-keypad-button.micromag-screen-keypad-isEmpty{cursor:default}.micromag-screen-keypad-button.micromag-screen-keypad-disableHover:active,.micromag-screen-keypad-button.micromag-screen-keypad-disableHover:hover,.micromag-screen-keypad-button.micromag-screen-keypad-isEmpty:active,.micromag-screen-keypad-button.micromag-screen-keypad-isEmpty:hover{-webkit-transform:none;-ms-transform:none;transform:none}.micromag-screen-keypad-button.micromag-screen-keypad-isLink{text-decoration:none}.micromag-screen-keypad-button.micromag-screen-keypad-isLink:hover{color:inherit}.micromag-screen-keypad-button .micromag-screen-keypad-buttonPlaceholder,.micromag-screen-keypad-button .micromag-screen-keypad-imagePlaceholder{margin:0;width:100%}.micromag-screen-keypad-buttonVisualPlaceholder{width:100%}.micromag-screen-keypad-thumbnail{max-height:50px;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.micromag-screen-keypad-buttonLabel{padding:5px;width:100%}.micromag-screen-keypad-empty{margin-bottom:10px;padding:10px;width:100%}.micromag-screen-keypad-emptyButtonVisual{margin-bottom:5px;padding:10px 5px}.micromag-screen-keypad-emptyButtonLabel{margin-bottom:5px;padding:2px 5px}.micromag-screen-keypad-popup{height:100%;left:0;position:fixed;right:0;top:0;-ms-touch-action:none;touch-action:none;width:100%;z-index:6}.micromag-screen-keypad-popupBackdrop{pointer-events:none;z-index:2}.micromag-screen-keypad-popupButton{height:100%;padding:52px 15px 30px;position:relative;text-align:left;-webkit-transition:-webkit-transform .3s cubic-bezier(.41,1.69,.04,.67);transition:-webkit-transform .3s cubic-bezier(.41,1.69,.04,.67);-o-transition:transform .3s cubic-bezier(.41,1.69,.04,.67);transition:transform .3s cubic-bezier(.41,1.69,.04,.67);transition:transform .3s cubic-bezier(.41,1.69,.04,.67),-webkit-transform .3s cubic-bezier(.41,1.69,.04,.67);width:100%;z-index:3}.micromag-screen-keypad-popupButton:active{-webkit-transform:scale(.95);-ms-transform:scale(.95);transform:scale(.95)}.micromag-screen-keypad-popupInner{background-color:#1c1c1c;overflow:hidden}.micromag-screen-keypad-popupInner .micromag-screen-keypad-popupContent{font-family:inherit;font-style:inherit;font-weight:inherit;line-height:inherit}.micromag-screen-keypad-popupInner .micromag-screen-keypad-popupContent p{font-weight:inherit;margin-bottom:0;margin-top:0}.micromag-screen-keypad-popupWrapper{-ms-flex-align:start;-ms-flex-pack:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;justify-content:flex-start;margin-bottom:-.5em}.micromag-screen-keypad-placeholder{mix-blend-mode:normal}.micromag-screen-keypad-popupContent,.micromag-screen-keypad-popupHeading,.micromag-screen-keypad-popupVisual{-ms-flex-positive:1;-ms-flex-negative:0;flex-grow:1;flex-shrink:0;margin-bottom:.5em;width:100%}.micromag-screen-keypad-popupWrapper .micromag-screen-keypad-popupHeading{font-weight:inherit;margin-bottom:.25em}.micromag-screen-keypad-contentSplit .micromag-screen-keypad-emptyHeading,.micromag-screen-keypad-contentSplit .micromag-screen-keypad-popupHeading{-ms-flex-order:1;order:1}.micromag-screen-keypad-contentSplit .micromag-screen-keypad-emptyVisual,.micromag-screen-keypad-contentSplit .micromag-screen-keypad-popupVisual{-ms-flex-order:2;order:2}.micromag-screen-keypad-contentSplit .micromag-screen-keypad-emptyContent,.micromag-screen-keypad-contentSplit .micromag-screen-keypad-popupContent{-ms-flex-order:3;order:3}.micromag-screen-keypad-contentBottom .micromag-screen-keypad-emptyVisual,.micromag-screen-keypad-contentBottom .micromag-screen-keypad-popupVisual{-ms-flex-order:1;order:1}.micromag-screen-keypad-contentBottom .micromag-screen-keypad-emptyHeading,.micromag-screen-keypad-contentBottom .micromag-screen-keypad-popupHeading{-ms-flex-order:2;order:2}.micromag-screen-keypad-contentBottom .micromag-screen-keypad-emptyContent,.micromag-screen-keypad-contentBottom .micromag-screen-keypad-popupContent{-ms-flex-order:3;order:3}.micromag-screen-keypad-popupCTA{margin:0 auto}.micromag-screen-keypad-layoutLabelTop .micromag-screen-keypad-buttonLabel,.micromag-screen-keypad-layoutLabelTop .micromag-screen-keypad-emptyButtonLabel{-ms-flex-order:1;order:1}.micromag-screen-keypad-layoutLabelTop .micromag-screen-keypad-buttonVisual,.micromag-screen-keypad-layoutLabelTop .micromag-screen-keypad-emptyButtonVisual{-ms-flex-order:2;order:2}.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-buttonLabel,.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-emptyButtonLabel,.micromag-screen-keypad-layoutNoLabel .micromag-screen-keypad-buttonLabel,.micromag-screen-keypad-layoutNoLabel .micromag-screen-keypad-emptyButtonLabel{display:none}.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-buttonVisual,.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-emptyButtonVisual,.micromag-screen-keypad-layoutNoLabel .micromag-screen-keypad-buttonVisual,.micromag-screen-keypad-layoutNoLabel .micromag-screen-keypad-emptyButtonVisual{height:100%;width:100%!important}.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-thumbnail,.micromag-screen-keypad-layoutNoLabel .micromag-screen-keypad-thumbnail{max-height:none;-o-object-fit:cover;object-fit:cover;width:100%!important}.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-buttonVisual,.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-emptyButtonVisual{z-index:1}.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-buttonLabel,.micromag-screen-keypad-layoutLabelOver .micromag-screen-keypad-emptyButtonLabel{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(28,28,28,0)),to(rgba(28,28,28,.75)));background-image:-o-linear-gradient(top,rgba(28,28,28,0),rgba(28,28,28,.75));background-image:linear-gradient(180deg,rgba(28,28,28,0),rgba(28,28,28,.75));bottom:0;display:block;height:auto;top:auto;z-index:2}
|
package/es/index.js
CHANGED
|
@@ -11,11 +11,13 @@ import { PropTypes as PropTypes$1 } from '@micromag/core';
|
|
|
11
11
|
import { PlaceholderImage, PlaceholderText, ScreenElement, PlaceholderButton } from '@micromag/core/components';
|
|
12
12
|
import { usePlaybackContext, usePlaybackMediaRef, useScreenState, useScreenSize, useViewerContext, useViewerWebView, useScreenRenderContext } from '@micromag/core/contexts';
|
|
13
13
|
import { useTrackScreenEvent, useDragProgress } from '@micromag/core/hooks';
|
|
14
|
-
import { isTextFilled, getStyleFromBox, getStyleFromText } from '@micromag/core/utils';
|
|
14
|
+
import { isHeaderFilled, isFooterFilled, getFooterProps, isTextFilled, getStyleFromBox, getStyleFromText } from '@micromag/core/utils';
|
|
15
15
|
import Background, { Background as Background$1 } from '@micromag/element-background';
|
|
16
16
|
import Button from '@micromag/element-button';
|
|
17
17
|
import CallToAction from '@micromag/element-call-to-action';
|
|
18
18
|
import Container from '@micromag/element-container';
|
|
19
|
+
import Footer from '@micromag/element-footer';
|
|
20
|
+
import Header from '@micromag/element-header';
|
|
19
21
|
import Heading from '@micromag/element-heading';
|
|
20
22
|
import Keypad$1 from '@micromag/element-keypad';
|
|
21
23
|
import Layout from '@micromag/element-layout';
|
|
@@ -23,7 +25,7 @@ import Scroll from '@micromag/element-scroll';
|
|
|
23
25
|
import Text from '@micromag/element-text';
|
|
24
26
|
import Visual from '@micromag/element-visual';
|
|
25
27
|
|
|
26
|
-
var styles = {"popupButton":"micromag-screen-keypad-popupButton","layoutLabelOver":"micromag-screen-keypad-layoutLabelOver","emptyButtonLabel":"micromag-screen-keypad-emptyButtonLabel","buttonLabel":"micromag-screen-keypad-buttonLabel","withSquareItems":"micromag-screen-keypad-withSquareItems","layoutNoLabel":"micromag-screen-keypad-layoutNoLabel","thumbnail":"micromag-screen-keypad-thumbnail","popupBackdrop":"micromag-screen-keypad-popupBackdrop","button":"micromag-screen-keypad-button","background":"micromag-screen-keypad-background","container":"micromag-screen-keypad-container","disabled":"micromag-screen-keypad-disabled","hidden":"micromag-screen-keypad-hidden","placeholder":"micromag-screen-keypad-placeholder","content":"micromag-screen-keypad-content","emptyTitle":"micromag-screen-keypad-emptyTitle","emptyText":"micromag-screen-keypad-emptyText","isPlaceholder":"micromag-screen-keypad-isPlaceholder","layout":"micromag-screen-keypad-layout","inner":"micromag-screen-keypad-inner","grid":"micromag-screen-keypad-grid","item":"micromag-screen-keypad-item","placeholderItem":"micromag-screen-keypad-placeholderItem","isEmpty":"micromag-screen-keypad-isEmpty","disableHover":"micromag-screen-keypad-disableHover","isLink":"micromag-screen-keypad-isLink","imagePlaceholder":"micromag-screen-keypad-imagePlaceholder","buttonPlaceholder":"micromag-screen-keypad-buttonPlaceholder","buttonVisualPlaceholder":"micromag-screen-keypad-buttonVisualPlaceholder","empty":"micromag-screen-keypad-empty","emptyButtonVisual":"micromag-screen-keypad-emptyButtonVisual","popup":"micromag-screen-keypad-popup","popupInner":"micromag-screen-keypad-popupInner","popupContent":"micromag-screen-keypad-popupContent","popupWrapper":"micromag-screen-keypad-popupWrapper","popupHeading":"micromag-screen-keypad-popupHeading","popupVisual":"micromag-screen-keypad-popupVisual","contentSplit":"micromag-screen-keypad-contentSplit","emptyHeading":"micromag-screen-keypad-emptyHeading","emptyVisual":"micromag-screen-keypad-emptyVisual","emptyContent":"micromag-screen-keypad-emptyContent","contentBottom":"micromag-screen-keypad-contentBottom","popupCTA":"micromag-screen-keypad-popupCTA","layoutLabelTop":"micromag-screen-keypad-layoutLabelTop","buttonVisual":"micromag-screen-keypad-buttonVisual"};
|
|
28
|
+
var styles = {"popupButton":"micromag-screen-keypad-popupButton","layoutLabelOver":"micromag-screen-keypad-layoutLabelOver","emptyButtonLabel":"micromag-screen-keypad-emptyButtonLabel","buttonLabel":"micromag-screen-keypad-buttonLabel","withSquareItems":"micromag-screen-keypad-withSquareItems","layoutNoLabel":"micromag-screen-keypad-layoutNoLabel","thumbnail":"micromag-screen-keypad-thumbnail","popupBackdrop":"micromag-screen-keypad-popupBackdrop","button":"micromag-screen-keypad-button","background":"micromag-screen-keypad-background","container":"micromag-screen-keypad-container","disabled":"micromag-screen-keypad-disabled","hidden":"micromag-screen-keypad-hidden","placeholder":"micromag-screen-keypad-placeholder","content":"micromag-screen-keypad-content","emptyTitle":"micromag-screen-keypad-emptyTitle","emptyText":"micromag-screen-keypad-emptyText","isPlaceholder":"micromag-screen-keypad-isPlaceholder","layout":"micromag-screen-keypad-layout","header":"micromag-screen-keypad-header","footer":"micromag-screen-keypad-footer","inner":"micromag-screen-keypad-inner","grid":"micromag-screen-keypad-grid","item":"micromag-screen-keypad-item","placeholderItem":"micromag-screen-keypad-placeholderItem","isEmpty":"micromag-screen-keypad-isEmpty","disableHover":"micromag-screen-keypad-disableHover","isLink":"micromag-screen-keypad-isLink","imagePlaceholder":"micromag-screen-keypad-imagePlaceholder","buttonPlaceholder":"micromag-screen-keypad-buttonPlaceholder","buttonVisualPlaceholder":"micromag-screen-keypad-buttonVisualPlaceholder","empty":"micromag-screen-keypad-empty","emptyButtonVisual":"micromag-screen-keypad-emptyButtonVisual","popup":"micromag-screen-keypad-popup","popupInner":"micromag-screen-keypad-popupInner","popupContent":"micromag-screen-keypad-popupContent","popupWrapper":"micromag-screen-keypad-popupWrapper","popupHeading":"micromag-screen-keypad-popupHeading","popupVisual":"micromag-screen-keypad-popupVisual","contentSplit":"micromag-screen-keypad-contentSplit","emptyHeading":"micromag-screen-keypad-emptyHeading","emptyVisual":"micromag-screen-keypad-emptyVisual","emptyContent":"micromag-screen-keypad-emptyContent","contentBottom":"micromag-screen-keypad-contentBottom","popupCTA":"micromag-screen-keypad-popupCTA","layoutLabelTop":"micromag-screen-keypad-layoutLabelTop","buttonVisual":"micromag-screen-keypad-buttonVisual"};
|
|
27
29
|
|
|
28
30
|
var placeholders = [{
|
|
29
31
|
id: '1'
|
|
@@ -115,6 +117,8 @@ var propTypes = {
|
|
|
115
117
|
contentTextStyle: PropTypes$1.textStyle,
|
|
116
118
|
boxStyle: PropTypes$1.boxStyle
|
|
117
119
|
}),
|
|
120
|
+
header: PropTypes$1.header,
|
|
121
|
+
footer: PropTypes$1.footer,
|
|
118
122
|
background: PropTypes$1.backgroundElement,
|
|
119
123
|
current: PropTypes.bool,
|
|
120
124
|
active: PropTypes.bool,
|
|
@@ -127,6 +131,8 @@ var defaultProps = {
|
|
|
127
131
|
keypadSettings: null,
|
|
128
132
|
buttonStyles: null,
|
|
129
133
|
popupStyles: null,
|
|
134
|
+
header: null,
|
|
135
|
+
footer: null,
|
|
130
136
|
background: null,
|
|
131
137
|
current: true,
|
|
132
138
|
active: true,
|
|
@@ -140,6 +146,8 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
140
146
|
keypadSettings = _ref.keypadSettings,
|
|
141
147
|
buttonStyles = _ref.buttonStyles,
|
|
142
148
|
popupStyles = _ref.popupStyles,
|
|
149
|
+
header = _ref.header,
|
|
150
|
+
footer = _ref.footer,
|
|
143
151
|
background = _ref.background,
|
|
144
152
|
current = _ref.current,
|
|
145
153
|
active = _ref.active,
|
|
@@ -155,7 +163,8 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
155
163
|
resolution = _useScreenSize.resolution;
|
|
156
164
|
var _useViewerContext = useViewerContext(),
|
|
157
165
|
viewerTopHeight = _useViewerContext.topHeight,
|
|
158
|
-
viewerBottomHeight = _useViewerContext.bottomHeight
|
|
166
|
+
viewerBottomHeight = _useViewerContext.bottomHeight,
|
|
167
|
+
viewerBottomSidesWidth = _useViewerContext.bottomSidesWidth;
|
|
159
168
|
var _useViewerWebView = useViewerWebView(),
|
|
160
169
|
openWebView = _useViewerWebView.open;
|
|
161
170
|
var _useScreenRenderConte = useScreenRenderContext(),
|
|
@@ -163,6 +172,14 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
163
172
|
isPreview = _useScreenRenderConte.isPreview,
|
|
164
173
|
isPlaceholder = _useScreenRenderConte.isPlaceholder,
|
|
165
174
|
isEdit = _useScreenRenderConte.isEdit;
|
|
175
|
+
var hasHeader = isHeaderFilled(header);
|
|
176
|
+
var hasFooter = isFooterFilled(footer);
|
|
177
|
+
var footerProps = getFooterProps(footer, {
|
|
178
|
+
isView: isView,
|
|
179
|
+
current: current,
|
|
180
|
+
openWebView: openWebView,
|
|
181
|
+
isPreview: isPreview
|
|
182
|
+
});
|
|
166
183
|
var backgroundPlaying = current && (isView || isEdit);
|
|
167
184
|
var mediaShouldLoad = !isPlaceholder && (current || active);
|
|
168
185
|
var isInteractivePreview = isEdit && screenState === null;
|
|
@@ -436,13 +453,28 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
436
453
|
paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
|
|
437
454
|
paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + spacing
|
|
438
455
|
} : null
|
|
439
|
-
}, /*#__PURE__*/React.createElement(
|
|
456
|
+
}, !isPlaceholder && hasHeader ? /*#__PURE__*/React.createElement("div", {
|
|
457
|
+
key: "header",
|
|
458
|
+
style: {
|
|
459
|
+
paddingBottom: spacing
|
|
460
|
+
}
|
|
461
|
+
}, /*#__PURE__*/React.createElement(Header, header)) : null, /*#__PURE__*/React.createElement(Keypad$1, {
|
|
440
462
|
className: classNames([styles.grid, _defineProperty({}, styles.gridPlaceholder, isPlaceholder)]),
|
|
441
463
|
align: columnAlign,
|
|
442
464
|
columns: isPlaceholder ? 3 : columns,
|
|
443
465
|
spacing: isPlaceholder ? 2 : columnSpacing,
|
|
444
466
|
items: gridItems
|
|
445
|
-
})
|
|
467
|
+
}), !isPlaceholder && hasFooter ? /*#__PURE__*/React.createElement("div", {
|
|
468
|
+
key: "footer",
|
|
469
|
+
className: styles.footer,
|
|
470
|
+
style: {
|
|
471
|
+
transform: current && !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
|
|
472
|
+
paddingLeft: Math.max(spacing / 2, viewerBottomSidesWidth),
|
|
473
|
+
paddingRight: Math.max(spacing / 2, viewerBottomSidesWidth),
|
|
474
|
+
paddingBottom: spacing / 2,
|
|
475
|
+
paddingTop: 0
|
|
476
|
+
}
|
|
477
|
+
}, /*#__PURE__*/React.createElement(Footer, footerProps)) : null), /*#__PURE__*/React.createElement(animated.div, {
|
|
446
478
|
className: classNames([styles.popupBackdrop]),
|
|
447
479
|
style: {
|
|
448
480
|
opacity: popupSpring.to(function (p) {
|
|
@@ -818,6 +850,26 @@ var definition = [{
|
|
|
818
850
|
"value": "Background"
|
|
819
851
|
}]
|
|
820
852
|
})
|
|
853
|
+
}, {
|
|
854
|
+
name: 'header',
|
|
855
|
+
type: 'header',
|
|
856
|
+
label: defineMessage({
|
|
857
|
+
id: "rhuDxI",
|
|
858
|
+
defaultMessage: [{
|
|
859
|
+
"type": 0,
|
|
860
|
+
"value": "Header"
|
|
861
|
+
}]
|
|
862
|
+
})
|
|
863
|
+
}, {
|
|
864
|
+
name: 'footer',
|
|
865
|
+
type: 'footer',
|
|
866
|
+
label: defineMessage({
|
|
867
|
+
id: "g4nybp",
|
|
868
|
+
defaultMessage: [{
|
|
869
|
+
"type": 0,
|
|
870
|
+
"value": "Footer"
|
|
871
|
+
}]
|
|
872
|
+
})
|
|
821
873
|
}]
|
|
822
874
|
}];
|
|
823
875
|
|
package/lib/index.js
CHANGED
|
@@ -20,6 +20,8 @@ var Background = require('@micromag/element-background');
|
|
|
20
20
|
var Button = require('@micromag/element-button');
|
|
21
21
|
var CallToAction = require('@micromag/element-call-to-action');
|
|
22
22
|
var Container = require('@micromag/element-container');
|
|
23
|
+
var Footer = require('@micromag/element-footer');
|
|
24
|
+
var Header = require('@micromag/element-header');
|
|
23
25
|
var Heading = require('@micromag/element-heading');
|
|
24
26
|
var Keypad$1 = require('@micromag/element-keypad');
|
|
25
27
|
var Layout = require('@micromag/element-layout');
|
|
@@ -40,6 +42,8 @@ var Background__default = /*#__PURE__*/_interopDefaultLegacy(Background);
|
|
|
40
42
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
41
43
|
var CallToAction__default = /*#__PURE__*/_interopDefaultLegacy(CallToAction);
|
|
42
44
|
var Container__default = /*#__PURE__*/_interopDefaultLegacy(Container);
|
|
45
|
+
var Footer__default = /*#__PURE__*/_interopDefaultLegacy(Footer);
|
|
46
|
+
var Header__default = /*#__PURE__*/_interopDefaultLegacy(Header);
|
|
43
47
|
var Heading__default = /*#__PURE__*/_interopDefaultLegacy(Heading);
|
|
44
48
|
var Keypad__default = /*#__PURE__*/_interopDefaultLegacy(Keypad$1);
|
|
45
49
|
var Layout__default = /*#__PURE__*/_interopDefaultLegacy(Layout);
|
|
@@ -47,7 +51,7 @@ var Scroll__default = /*#__PURE__*/_interopDefaultLegacy(Scroll);
|
|
|
47
51
|
var Text__default = /*#__PURE__*/_interopDefaultLegacy(Text);
|
|
48
52
|
var Visual__default = /*#__PURE__*/_interopDefaultLegacy(Visual);
|
|
49
53
|
|
|
50
|
-
var styles = {"popupButton":"micromag-screen-keypad-popupButton","layoutLabelOver":"micromag-screen-keypad-layoutLabelOver","emptyButtonLabel":"micromag-screen-keypad-emptyButtonLabel","buttonLabel":"micromag-screen-keypad-buttonLabel","withSquareItems":"micromag-screen-keypad-withSquareItems","layoutNoLabel":"micromag-screen-keypad-layoutNoLabel","thumbnail":"micromag-screen-keypad-thumbnail","popupBackdrop":"micromag-screen-keypad-popupBackdrop","button":"micromag-screen-keypad-button","background":"micromag-screen-keypad-background","container":"micromag-screen-keypad-container","disabled":"micromag-screen-keypad-disabled","hidden":"micromag-screen-keypad-hidden","placeholder":"micromag-screen-keypad-placeholder","content":"micromag-screen-keypad-content","emptyTitle":"micromag-screen-keypad-emptyTitle","emptyText":"micromag-screen-keypad-emptyText","isPlaceholder":"micromag-screen-keypad-isPlaceholder","layout":"micromag-screen-keypad-layout","inner":"micromag-screen-keypad-inner","grid":"micromag-screen-keypad-grid","item":"micromag-screen-keypad-item","placeholderItem":"micromag-screen-keypad-placeholderItem","isEmpty":"micromag-screen-keypad-isEmpty","disableHover":"micromag-screen-keypad-disableHover","isLink":"micromag-screen-keypad-isLink","imagePlaceholder":"micromag-screen-keypad-imagePlaceholder","buttonPlaceholder":"micromag-screen-keypad-buttonPlaceholder","buttonVisualPlaceholder":"micromag-screen-keypad-buttonVisualPlaceholder","empty":"micromag-screen-keypad-empty","emptyButtonVisual":"micromag-screen-keypad-emptyButtonVisual","popup":"micromag-screen-keypad-popup","popupInner":"micromag-screen-keypad-popupInner","popupContent":"micromag-screen-keypad-popupContent","popupWrapper":"micromag-screen-keypad-popupWrapper","popupHeading":"micromag-screen-keypad-popupHeading","popupVisual":"micromag-screen-keypad-popupVisual","contentSplit":"micromag-screen-keypad-contentSplit","emptyHeading":"micromag-screen-keypad-emptyHeading","emptyVisual":"micromag-screen-keypad-emptyVisual","emptyContent":"micromag-screen-keypad-emptyContent","contentBottom":"micromag-screen-keypad-contentBottom","popupCTA":"micromag-screen-keypad-popupCTA","layoutLabelTop":"micromag-screen-keypad-layoutLabelTop","buttonVisual":"micromag-screen-keypad-buttonVisual"};
|
|
54
|
+
var styles = {"popupButton":"micromag-screen-keypad-popupButton","layoutLabelOver":"micromag-screen-keypad-layoutLabelOver","emptyButtonLabel":"micromag-screen-keypad-emptyButtonLabel","buttonLabel":"micromag-screen-keypad-buttonLabel","withSquareItems":"micromag-screen-keypad-withSquareItems","layoutNoLabel":"micromag-screen-keypad-layoutNoLabel","thumbnail":"micromag-screen-keypad-thumbnail","popupBackdrop":"micromag-screen-keypad-popupBackdrop","button":"micromag-screen-keypad-button","background":"micromag-screen-keypad-background","container":"micromag-screen-keypad-container","disabled":"micromag-screen-keypad-disabled","hidden":"micromag-screen-keypad-hidden","placeholder":"micromag-screen-keypad-placeholder","content":"micromag-screen-keypad-content","emptyTitle":"micromag-screen-keypad-emptyTitle","emptyText":"micromag-screen-keypad-emptyText","isPlaceholder":"micromag-screen-keypad-isPlaceholder","layout":"micromag-screen-keypad-layout","header":"micromag-screen-keypad-header","footer":"micromag-screen-keypad-footer","inner":"micromag-screen-keypad-inner","grid":"micromag-screen-keypad-grid","item":"micromag-screen-keypad-item","placeholderItem":"micromag-screen-keypad-placeholderItem","isEmpty":"micromag-screen-keypad-isEmpty","disableHover":"micromag-screen-keypad-disableHover","isLink":"micromag-screen-keypad-isLink","imagePlaceholder":"micromag-screen-keypad-imagePlaceholder","buttonPlaceholder":"micromag-screen-keypad-buttonPlaceholder","buttonVisualPlaceholder":"micromag-screen-keypad-buttonVisualPlaceholder","empty":"micromag-screen-keypad-empty","emptyButtonVisual":"micromag-screen-keypad-emptyButtonVisual","popup":"micromag-screen-keypad-popup","popupInner":"micromag-screen-keypad-popupInner","popupContent":"micromag-screen-keypad-popupContent","popupWrapper":"micromag-screen-keypad-popupWrapper","popupHeading":"micromag-screen-keypad-popupHeading","popupVisual":"micromag-screen-keypad-popupVisual","contentSplit":"micromag-screen-keypad-contentSplit","emptyHeading":"micromag-screen-keypad-emptyHeading","emptyVisual":"micromag-screen-keypad-emptyVisual","emptyContent":"micromag-screen-keypad-emptyContent","contentBottom":"micromag-screen-keypad-contentBottom","popupCTA":"micromag-screen-keypad-popupCTA","layoutLabelTop":"micromag-screen-keypad-layoutLabelTop","buttonVisual":"micromag-screen-keypad-buttonVisual"};
|
|
51
55
|
|
|
52
56
|
var placeholders = [{
|
|
53
57
|
id: '1'
|
|
@@ -139,6 +143,8 @@ var propTypes = {
|
|
|
139
143
|
contentTextStyle: core.PropTypes.textStyle,
|
|
140
144
|
boxStyle: core.PropTypes.boxStyle
|
|
141
145
|
}),
|
|
146
|
+
header: core.PropTypes.header,
|
|
147
|
+
footer: core.PropTypes.footer,
|
|
142
148
|
background: core.PropTypes.backgroundElement,
|
|
143
149
|
current: PropTypes__default["default"].bool,
|
|
144
150
|
active: PropTypes__default["default"].bool,
|
|
@@ -151,6 +157,8 @@ var defaultProps = {
|
|
|
151
157
|
keypadSettings: null,
|
|
152
158
|
buttonStyles: null,
|
|
153
159
|
popupStyles: null,
|
|
160
|
+
header: null,
|
|
161
|
+
footer: null,
|
|
154
162
|
background: null,
|
|
155
163
|
current: true,
|
|
156
164
|
active: true,
|
|
@@ -164,6 +172,8 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
164
172
|
keypadSettings = _ref.keypadSettings,
|
|
165
173
|
buttonStyles = _ref.buttonStyles,
|
|
166
174
|
popupStyles = _ref.popupStyles,
|
|
175
|
+
header = _ref.header,
|
|
176
|
+
footer = _ref.footer,
|
|
167
177
|
background = _ref.background,
|
|
168
178
|
current = _ref.current,
|
|
169
179
|
active = _ref.active,
|
|
@@ -179,7 +189,8 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
179
189
|
resolution = _useScreenSize.resolution;
|
|
180
190
|
var _useViewerContext = contexts.useViewerContext(),
|
|
181
191
|
viewerTopHeight = _useViewerContext.topHeight,
|
|
182
|
-
viewerBottomHeight = _useViewerContext.bottomHeight
|
|
192
|
+
viewerBottomHeight = _useViewerContext.bottomHeight,
|
|
193
|
+
viewerBottomSidesWidth = _useViewerContext.bottomSidesWidth;
|
|
183
194
|
var _useViewerWebView = contexts.useViewerWebView(),
|
|
184
195
|
openWebView = _useViewerWebView.open;
|
|
185
196
|
var _useScreenRenderConte = contexts.useScreenRenderContext(),
|
|
@@ -187,6 +198,14 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
187
198
|
isPreview = _useScreenRenderConte.isPreview,
|
|
188
199
|
isPlaceholder = _useScreenRenderConte.isPlaceholder,
|
|
189
200
|
isEdit = _useScreenRenderConte.isEdit;
|
|
201
|
+
var hasHeader = utils.isHeaderFilled(header);
|
|
202
|
+
var hasFooter = utils.isFooterFilled(footer);
|
|
203
|
+
var footerProps = utils.getFooterProps(footer, {
|
|
204
|
+
isView: isView,
|
|
205
|
+
current: current,
|
|
206
|
+
openWebView: openWebView,
|
|
207
|
+
isPreview: isPreview
|
|
208
|
+
});
|
|
190
209
|
var backgroundPlaying = current && (isView || isEdit);
|
|
191
210
|
var mediaShouldLoad = !isPlaceholder && (current || active);
|
|
192
211
|
var isInteractivePreview = isEdit && screenState === null;
|
|
@@ -460,13 +479,28 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
460
479
|
paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
|
|
461
480
|
paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + spacing
|
|
462
481
|
} : null
|
|
463
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
482
|
+
}, !isPlaceholder && hasHeader ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
483
|
+
key: "header",
|
|
484
|
+
style: {
|
|
485
|
+
paddingBottom: spacing
|
|
486
|
+
}
|
|
487
|
+
}, /*#__PURE__*/React__default["default"].createElement(Header__default["default"], header)) : null, /*#__PURE__*/React__default["default"].createElement(Keypad__default["default"], {
|
|
464
488
|
className: classNames__default["default"]([styles.grid, _defineProperty__default["default"]({}, styles.gridPlaceholder, isPlaceholder)]),
|
|
465
489
|
align: columnAlign,
|
|
466
490
|
columns: isPlaceholder ? 3 : columns,
|
|
467
491
|
spacing: isPlaceholder ? 2 : columnSpacing,
|
|
468
492
|
items: gridItems
|
|
469
|
-
})
|
|
493
|
+
}), !isPlaceholder && hasFooter ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
494
|
+
key: "footer",
|
|
495
|
+
className: styles.footer,
|
|
496
|
+
style: {
|
|
497
|
+
transform: current && !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
|
|
498
|
+
paddingLeft: Math.max(spacing / 2, viewerBottomSidesWidth),
|
|
499
|
+
paddingRight: Math.max(spacing / 2, viewerBottomSidesWidth),
|
|
500
|
+
paddingBottom: spacing / 2,
|
|
501
|
+
paddingTop: 0
|
|
502
|
+
}
|
|
503
|
+
}, /*#__PURE__*/React__default["default"].createElement(Footer__default["default"], footerProps)) : null), /*#__PURE__*/React__default["default"].createElement(web.animated.div, {
|
|
470
504
|
className: classNames__default["default"]([styles.popupBackdrop]),
|
|
471
505
|
style: {
|
|
472
506
|
opacity: popupSpring.to(function (p) {
|
|
@@ -842,6 +876,26 @@ var definition = [{
|
|
|
842
876
|
"value": "Background"
|
|
843
877
|
}]
|
|
844
878
|
})
|
|
879
|
+
}, {
|
|
880
|
+
name: 'header',
|
|
881
|
+
type: 'header',
|
|
882
|
+
label: reactIntl.defineMessage({
|
|
883
|
+
id: "rhuDxI",
|
|
884
|
+
defaultMessage: [{
|
|
885
|
+
"type": 0,
|
|
886
|
+
"value": "Header"
|
|
887
|
+
}]
|
|
888
|
+
})
|
|
889
|
+
}, {
|
|
890
|
+
name: 'footer',
|
|
891
|
+
type: 'footer',
|
|
892
|
+
label: reactIntl.defineMessage({
|
|
893
|
+
id: "g4nybp",
|
|
894
|
+
defaultMessage: [{
|
|
895
|
+
"type": 0,
|
|
896
|
+
"value": "Footer"
|
|
897
|
+
}]
|
|
898
|
+
})
|
|
845
899
|
}]
|
|
846
900
|
}];
|
|
847
901
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-keypad",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.354",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -54,20 +54,22 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@babel/runtime": "^7.13.10",
|
|
57
|
-
"@micromag/core": "^0.3.
|
|
58
|
-
"@micromag/element-background": "^0.3.
|
|
59
|
-
"@micromag/element-button": "^0.3.
|
|
60
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
61
|
-
"@micromag/element-container": "^0.3.
|
|
62
|
-
"@micromag/element-
|
|
63
|
-
"@micromag/element-
|
|
64
|
-
"@micromag/element-
|
|
65
|
-
"@micromag/element-
|
|
66
|
-
"@micromag/element-
|
|
67
|
-
"@micromag/element-
|
|
68
|
-
"@micromag/element-
|
|
69
|
-
"@micromag/element-
|
|
70
|
-
"@micromag/
|
|
57
|
+
"@micromag/core": "^0.3.354",
|
|
58
|
+
"@micromag/element-background": "^0.3.354",
|
|
59
|
+
"@micromag/element-button": "^0.3.354",
|
|
60
|
+
"@micromag/element-call-to-action": "^0.3.354",
|
|
61
|
+
"@micromag/element-container": "^0.3.354",
|
|
62
|
+
"@micromag/element-footer": "^0.3.354",
|
|
63
|
+
"@micromag/element-grid": "^0.3.354",
|
|
64
|
+
"@micromag/element-header": "^0.3.354",
|
|
65
|
+
"@micromag/element-heading": "^0.3.354",
|
|
66
|
+
"@micromag/element-keypad": "^0.3.354",
|
|
67
|
+
"@micromag/element-layout": "^0.3.354",
|
|
68
|
+
"@micromag/element-scroll": "^0.3.354",
|
|
69
|
+
"@micromag/element-text": "^0.3.354",
|
|
70
|
+
"@micromag/element-urbania-author": "^0.3.354",
|
|
71
|
+
"@micromag/element-visual": "^0.3.354",
|
|
72
|
+
"@micromag/transforms": "^0.3.354",
|
|
71
73
|
"@react-spring/core": "^9.6.1",
|
|
72
74
|
"@react-spring/web": "^9.6.1",
|
|
73
75
|
"@use-gesture/react": "^10.2.4",
|
|
@@ -82,5 +84,5 @@
|
|
|
82
84
|
"publishConfig": {
|
|
83
85
|
"access": "public"
|
|
84
86
|
},
|
|
85
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "ccf852d0a7df8f222365088e7de3843492e720e7"
|
|
86
88
|
}
|