@micromag/core 0.3.488 → 0.3.497
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/components.js +6 -1
- package/es/contexts.js +1 -1
- package/es/index.js +6 -0
- package/lib/components.js +6 -1
- package/lib/contexts.js +1 -1
- package/lib/index.js +6 -0
- package/package.json +2 -2
package/assets/css/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.micromag-core-buttons-button-container.micromag-core-buttons-button-asLink,.micromag-core-buttons-button-container.micromag-core-buttons-button-withoutStyle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:inherit;cursor:pointer;display:inline-block;font-family:inherit;padding:0;position:relative}.micromag-core-buttons-button-container .micromag-core-buttons-button-icon{display:block;position:relative}.micromag-core-buttons-button-container .micromag-core-buttons-button-icon,.micromag-core-buttons-button-container .micromag-core-buttons-button-label{-webkit-transition:-webkit-transform .3s cubic-bezier(0,.6,.5,1);transition:-webkit-transform .3s cubic-bezier(0,.6,.5,1);transition:transform .3s cubic-bezier(0,.6,.5,1);transition:transform .3s cubic-bezier(0,.6,.5,1),-webkit-transform .3s cubic-bezier(0,.6,.5,1)}.micromag-core-buttons-button-container.micromag-core-buttons-button-asLink{color:#a13dff;font-weight:700}.micromag-core-buttons-button-container.micromag-core-buttons-button-withIcon{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row}.micromag-core-buttons-button-container.micromag-core-buttons-button-withIcon .micromag-core-buttons-button-label{margin-left:.5em;-webkit-transform-origin:0 50%;-ms-transform-origin:0 50%;transform-origin:0 50%}.micromag-core-buttons-button-container.micromag-core-buttons-button-withIcon .micromag-core-buttons-button-right{margin-left:.5em}.micromag-core-buttons-button-container.micromag-core-buttons-button-withIcon.micromag-core-buttons-button-withAnimations.micromag-core-buttons-button-icon-right .micromag-core-buttons-button-label{-webkit-transform-origin:100% 50%;-ms-transform-origin:100% 50%;transform-origin:100% 50%}.micromag-core-buttons-button-container.micromag-core-buttons-button-withIconColumns{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row}.micromag-core-buttons-button-container.micromag-core-buttons-button-linkDisabled{opacity:.4;pointer-events:none;text-decoration:none}
|
|
1
|
+
.micromag-core-buttons-button-container.micromag-core-buttons-button-asLink,.micromag-core-buttons-button-container.micromag-core-buttons-button-withoutStyle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:inherit;cursor:pointer;display:inline-block;font-family:inherit;padding:0;position:relative}.micromag-core-buttons-button-container .micromag-core-buttons-button-icon{display:block;position:relative}.micromag-core-buttons-button-container .micromag-core-buttons-button-icon,.micromag-core-buttons-button-container .micromag-core-buttons-button-label{-webkit-transition:-webkit-transform .3s cubic-bezier(0,.6,.5,1);transition:-webkit-transform .3s cubic-bezier(0,.6,.5,1);transition:transform .3s cubic-bezier(0,.6,.5,1);transition:transform .3s cubic-bezier(0,.6,.5,1),-webkit-transform .3s cubic-bezier(0,.6,.5,1)}.micromag-core-buttons-button-container.micromag-core-buttons-button-asLink{color:#a13dff;font-weight:700}.micromag-core-buttons-button-container.micromag-core-buttons-button-withIcon{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row}.micromag-core-buttons-button-container.micromag-core-buttons-button-withIcon .micromag-core-buttons-button-label{margin-left:.5em;-webkit-transform-origin:0 50%;-ms-transform-origin:0 50%;transform-origin:0 50%}.micromag-core-buttons-button-container.micromag-core-buttons-button-withIcon .micromag-core-buttons-button-right{margin-left:.5em}.micromag-core-buttons-button-container.micromag-core-buttons-button-withIcon.micromag-core-buttons-button-withAnimations.micromag-core-buttons-button-icon-right .micromag-core-buttons-button-label{-webkit-transform-origin:100% 50%;-ms-transform-origin:100% 50%;transform-origin:100% 50%}.micromag-core-buttons-button-container.micromag-core-buttons-button-withIconColumns{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row}.micromag-core-buttons-button-container.micromag-core-buttons-button-linkDisabled{opacity:.4;pointer-events:none;text-decoration:none}.micromag-core-buttons-button-container.micromag-core-buttons-button-focus-visible{-webkit-box-shadow:0 0 2px 0 #fff;box-shadow:0 0 2px 0 #fff;-webkit-box-shadow:0 0 2px 0 var(--micromag-focus-color,#fff);box-shadow:0 0 2px 0 var(--micromag-focus-color,#fff);outline:2px solid #000}.micromag-core-buttons-button-container:focus-visible{-webkit-box-shadow:0 0 2px 0 #fff;box-shadow:0 0 2px 0 #fff;-webkit-box-shadow:0 0 2px 0 var(--micromag-focus-color,#fff);box-shadow:0 0 2px 0 var(--micromag-focus-color,#fff);outline:2px solid #000}
|
|
2
2
|
|
|
3
3
|
.micromag-core-forms-form-actions{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin-top:2rem}.micromag-core-forms-form-actions.micromag-core-forms-form-left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.micromag-core-forms-form-actions.micromag-core-forms-form-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}
|
|
4
4
|
.micromag-core-partials-link-withoutStyle{color:inherit;text-decoration:none}.micromag-core-partials-link-withoutStyle:hover{color:inherit;text-decoration:none}
|
package/es/components.js
CHANGED
|
@@ -66,7 +66,7 @@ Label.propTypes = propTypes$T;
|
|
|
66
66
|
Label.defaultProps = defaultProps$T;
|
|
67
67
|
var Label$1 = Label;
|
|
68
68
|
|
|
69
|
-
var styles$x = {"container":"micromag-core-buttons-button-container","asLink":"micromag-core-buttons-button-asLink","withoutStyle":"micromag-core-buttons-button-withoutStyle","icon":"micromag-core-buttons-button-icon","label":"micromag-core-buttons-button-label","withIcon":"micromag-core-buttons-button-withIcon","right":"micromag-core-buttons-button-right","withAnimations":"micromag-core-buttons-button-withAnimations","icon-right":"micromag-core-buttons-button-icon-right","withIconColumns":"micromag-core-buttons-button-withIconColumns","linkDisabled":"micromag-core-buttons-button-linkDisabled"};
|
|
69
|
+
var styles$x = {"container":"micromag-core-buttons-button-container","asLink":"micromag-core-buttons-button-asLink","withoutStyle":"micromag-core-buttons-button-withoutStyle","icon":"micromag-core-buttons-button-icon","label":"micromag-core-buttons-button-label","withIcon":"micromag-core-buttons-button-withIcon","right":"micromag-core-buttons-button-right","withAnimations":"micromag-core-buttons-button-withAnimations","icon-right":"micromag-core-buttons-button-icon-right","withIconColumns":"micromag-core-buttons-button-withIconColumns","linkDisabled":"micromag-core-buttons-button-linkDisabled","focus-visible":"micromag-core-buttons-button-focus-visible"};
|
|
70
70
|
|
|
71
71
|
var _excluded$b = ["type", "theme", "size", "href", "external", "direct", "target", "label", "children", "focusable", "active", "icon", "iconPosition", "disabled", "loading", "disableOnLoading", "small", "big", "withShadow", "withoutStyle", "withoutBootstrapStyles", "withoutTheme", "asLink", "outline", "onClick", "className", "iconClassName", "labelClassName", "refButton"];
|
|
72
72
|
var propTypes$S = {
|
|
@@ -3176,6 +3176,11 @@ PropTypes$1.shape({
|
|
|
3176
3176
|
callToAction: callToAction
|
|
3177
3177
|
});
|
|
3178
3178
|
PropTypes$1.shape();
|
|
3179
|
+
PropTypes$1.shape({
|
|
3180
|
+
file: closedCaptionsMedia,
|
|
3181
|
+
textStyle: textStyle,
|
|
3182
|
+
boxStyle: boxStyle
|
|
3183
|
+
});
|
|
3179
3184
|
|
|
3180
3185
|
/* eslint-disable react/no-array-index-key */
|
|
3181
3186
|
var propTypes$d = {
|
package/es/contexts.js
CHANGED
|
@@ -943,7 +943,7 @@ var PlaybackProvider = function PlaybackProvider(_ref) {
|
|
|
943
943
|
return setControlsVisible(true);
|
|
944
944
|
}, [setControlsVisible]);
|
|
945
945
|
var hideControls = useCallback(function () {
|
|
946
|
-
|
|
946
|
+
setControlsVisible(false);
|
|
947
947
|
}, [setControlsVisible]);
|
|
948
948
|
var hasAudio = useMemo(function () {
|
|
949
949
|
if (media === null || media.tagName.toLowerCase() !== 'video') {
|
package/es/index.js
CHANGED
|
@@ -617,6 +617,11 @@ var footer = PropTypes$1.shape({
|
|
|
617
617
|
callToAction: callToAction
|
|
618
618
|
});
|
|
619
619
|
var reload = PropTypes$1.shape();
|
|
620
|
+
var closedCaptions = PropTypes$1.shape({
|
|
621
|
+
file: closedCaptionsMedia,
|
|
622
|
+
textStyle: textStyle,
|
|
623
|
+
boxStyle: boxStyle
|
|
624
|
+
});
|
|
620
625
|
|
|
621
626
|
var PropTypes = /*#__PURE__*/Object.freeze({
|
|
622
627
|
__proto__: null,
|
|
@@ -645,6 +650,7 @@ var PropTypes = /*#__PURE__*/Object.freeze({
|
|
|
645
650
|
buttons: buttons,
|
|
646
651
|
callToAction: callToAction,
|
|
647
652
|
callToActionTypes: callToActionTypes,
|
|
653
|
+
closedCaptions: closedCaptions,
|
|
648
654
|
closedCaptionsElement: closedCaptionsElement,
|
|
649
655
|
closedCaptionsMedia: closedCaptionsMedia,
|
|
650
656
|
color: color,
|
package/lib/components.js
CHANGED
|
@@ -336,7 +336,7 @@ Label.propTypes = propTypes$T;
|
|
|
336
336
|
Label.defaultProps = defaultProps$T;
|
|
337
337
|
var Label$1 = Label;
|
|
338
338
|
|
|
339
|
-
var styles$x = {"container":"micromag-core-buttons-button-container","asLink":"micromag-core-buttons-button-asLink","withoutStyle":"micromag-core-buttons-button-withoutStyle","icon":"micromag-core-buttons-button-icon","label":"micromag-core-buttons-button-label","withIcon":"micromag-core-buttons-button-withIcon","right":"micromag-core-buttons-button-right","withAnimations":"micromag-core-buttons-button-withAnimations","icon-right":"micromag-core-buttons-button-icon-right","withIconColumns":"micromag-core-buttons-button-withIconColumns","linkDisabled":"micromag-core-buttons-button-linkDisabled"};
|
|
339
|
+
var styles$x = {"container":"micromag-core-buttons-button-container","asLink":"micromag-core-buttons-button-asLink","withoutStyle":"micromag-core-buttons-button-withoutStyle","icon":"micromag-core-buttons-button-icon","label":"micromag-core-buttons-button-label","withIcon":"micromag-core-buttons-button-withIcon","right":"micromag-core-buttons-button-right","withAnimations":"micromag-core-buttons-button-withAnimations","icon-right":"micromag-core-buttons-button-icon-right","withIconColumns":"micromag-core-buttons-button-withIconColumns","linkDisabled":"micromag-core-buttons-button-linkDisabled","focus-visible":"micromag-core-buttons-button-focus-visible"};
|
|
340
340
|
|
|
341
341
|
var _excluded$b = ["type", "theme", "size", "href", "external", "direct", "target", "label", "children", "focusable", "active", "icon", "iconPosition", "disabled", "loading", "disableOnLoading", "small", "big", "withShadow", "withoutStyle", "withoutBootstrapStyles", "withoutTheme", "asLink", "outline", "onClick", "className", "iconClassName", "labelClassName", "refButton"];
|
|
342
342
|
var propTypes$S = {
|
|
@@ -3446,6 +3446,11 @@ PropTypes.shape({
|
|
|
3446
3446
|
callToAction: callToAction
|
|
3447
3447
|
});
|
|
3448
3448
|
PropTypes.shape();
|
|
3449
|
+
PropTypes.shape({
|
|
3450
|
+
file: closedCaptionsMedia,
|
|
3451
|
+
textStyle: textStyle,
|
|
3452
|
+
boxStyle: boxStyle
|
|
3453
|
+
});
|
|
3449
3454
|
|
|
3450
3455
|
/* eslint-disable react/no-array-index-key */
|
|
3451
3456
|
var propTypes$d = {
|
package/lib/contexts.js
CHANGED
|
@@ -964,7 +964,7 @@ var PlaybackProvider = function PlaybackProvider(_ref) {
|
|
|
964
964
|
return setControlsVisible(true);
|
|
965
965
|
}, [setControlsVisible]);
|
|
966
966
|
var hideControls = React.useCallback(function () {
|
|
967
|
-
|
|
967
|
+
setControlsVisible(false);
|
|
968
968
|
}, [setControlsVisible]);
|
|
969
969
|
var hasAudio = React.useMemo(function () {
|
|
970
970
|
if (media === null || media.tagName.toLowerCase() !== 'video') {
|
package/lib/index.js
CHANGED
|
@@ -703,6 +703,11 @@ var footer = PropTypes$1.shape({
|
|
|
703
703
|
callToAction: callToAction
|
|
704
704
|
});
|
|
705
705
|
var reload = PropTypes$1.shape();
|
|
706
|
+
var closedCaptions = PropTypes$1.shape({
|
|
707
|
+
file: closedCaptionsMedia,
|
|
708
|
+
textStyle: textStyle,
|
|
709
|
+
boxStyle: boxStyle
|
|
710
|
+
});
|
|
706
711
|
|
|
707
712
|
var PropTypes = /*#__PURE__*/Object.freeze({
|
|
708
713
|
__proto__: null,
|
|
@@ -731,6 +736,7 @@ var PropTypes = /*#__PURE__*/Object.freeze({
|
|
|
731
736
|
buttons: buttons,
|
|
732
737
|
callToAction: callToAction,
|
|
733
738
|
callToActionTypes: callToActionTypes,
|
|
739
|
+
closedCaptions: closedCaptions,
|
|
734
740
|
closedCaptionsElement: closedCaptionsElement,
|
|
735
741
|
closedCaptionsMedia: closedCaptionsMedia,
|
|
736
742
|
color: color,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.497",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -155,5 +155,5 @@
|
|
|
155
155
|
"access": "public",
|
|
156
156
|
"registry": "https://registry.npmjs.org/"
|
|
157
157
|
},
|
|
158
|
-
"gitHead": "
|
|
158
|
+
"gitHead": "94e795f19f551f20411fb12fada0906c5cdb0d4b"
|
|
159
159
|
}
|