Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joepuzzo committed May 21, 2021
1 parent 6295071 commit c68b388
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 60 deletions.
2 changes: 1 addition & 1 deletion docs/iframe.html
Expand Up @@ -71,4 +71,4 @@
}</script><style>#root[hidden],
#docs-root[hidden] {
display: none !important;
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.1efb4f09578cb3ef609d.bundle.js"></script><script src="vendors~main.1efb4f09578cb3ef609d.bundle.js"></script><script src="main.1efb4f09578cb3ef609d.bundle.js"></script></body></html>
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.19b8aa92ffd97cc97179.bundle.js"></script><script src="vendors~main.19b8aa92ffd97cc97179.bundle.js"></script><script src="main.19b8aa92ffd97cc97179.bundle.js"></script></body></html>
@@ -1,4 +1,4 @@
/*! For license information please see main.1efb4f09578cb3ef609d.bundle.js.LICENSE.txt */
/*! For license information please see main.19b8aa92ffd97cc97179.bundle.js.LICENSE.txt */
(window.webpackJsonp = window.webpackJsonp || []).push([
[0],
{
Expand Down Expand Up @@ -1058,9 +1058,8 @@
}
return {
formatter: function mask(value) {
var _float2 = toNumberString(value);
if (!_float2) return [];
var fraction = ''.concat(_float2).split('.')[1],
var _float2 = toNumberString(value),
fraction = ''.concat(_float2).split('.')[1],
numberParts = numberFormatter.formatToParts(Number(_float2));
'0' === fraction &&
numberParts.push(
Expand Down Expand Up @@ -1208,50 +1207,58 @@
return arr2;
}
var hooks_useCursorPosition = function useCursorPosition(_ref) {
var value = _ref.value,
inputRef = _ref.inputRef,
_ref$maintainCursor = _ref.maintainCursor,
maintainCursor =
void 0 === _ref$maintainCursor || _ref$maintainCursor,
_useStateWithGetter2 = useCursorPosition_slicedToArray(
hooks_useStateWithGetter(0),
3
),
cursor = _useStateWithGetter2[0],
setCursor = _useStateWithGetter2[1],
getCursor = _useStateWithGetter2[2],
_useStateWithGetter4 = useCursorPosition_slicedToArray(
hooks_useStateWithGetter(0),
3
),
cursorOffset = _useStateWithGetter4[0],
setCursorOffset = _useStateWithGetter4[1],
getCursorOffset = _useStateWithGetter4[2];
return (
hooks_useIsomorphicLayoutEffect(
function() {
if (null != inputRef.current && getCursor()) {
var cursorLoc = getCursor() + getCursorOffset();
0 != getCursorOffset() && maintainCursor
? inputRef.current.setSelectionRange(
cursorLoc + 1,
cursorLoc + 1
)
: maintainCursor &&
inputRef.current.setSelectionRange(cursorLoc, cursorLoc);
}
},
[value]
),
{
setCursorOffset: setCursorOffset,
setCursor: setCursor,
cursor: cursor,
getCursor: getCursor,
cursorOffset: cursorOffset
}
);
};
var value = _ref.value,
inputRef = _ref.inputRef,
_ref$maintainCursor = _ref.maintainCursor,
maintainCursor =
void 0 === _ref$maintainCursor || _ref$maintainCursor,
_useStateWithGetter2 = useCursorPosition_slicedToArray(
hooks_useStateWithGetter(0),
3
),
cursor = _useStateWithGetter2[0],
setCursor = _useStateWithGetter2[1],
getCursor = _useStateWithGetter2[2],
_useStateWithGetter4 = useCursorPosition_slicedToArray(
hooks_useStateWithGetter(0),
3
),
cursorOffset = _useStateWithGetter4[0],
setCursorOffset = _useStateWithGetter4[1],
getCursorOffset = _useStateWithGetter4[2];
return (
hooks_useIsomorphicLayoutEffect(
function() {
if (null != inputRef.current && getCursor()) {
var cursorLoc = getCursor() + getCursorOffset();
0 != getCursorOffset() && maintainCursor
? inputRef.current.setSelectionRange(
cursorLoc + 1,
cursorLoc + 1
)
: maintainCursor &&
inputRef.current.setSelectionRange(cursorLoc, cursorLoc);
}
},
[value]
),
{
setCursorOffset: setCursorOffset,
setCursor: setCursor,
cursor: cursor,
getCursor: getCursor,
cursorOffset: cursorOffset
}
);
},
hooks_useUpdateEffect = function useUpdateEffect(effect, deps) {
var firstRef = Object(react.useRef)(!0),
isFirstMount = firstRef.current;
Object(react.useEffect)(function() {
if (!isFirstMount) return effect();
firstRef.current = !1;
}, deps);
};
function useField_ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
Expand Down Expand Up @@ -1681,7 +1688,9 @@
_useState6 = useField_slicedToArray(_useState5, 2),
maskedValue = _useState6[0],
setMaskedValue = _useState6[1],
initialValueRef = Object(react.useRef)(initialValue),
maskedValueRef = Object(react.useRef)();
maskedValueRef.current = maskedValue;
var initialValueRef = Object(react.useRef)(initialValue),
fieldRef = Object(react.useRef)(field),
prevFieldRef = Object(react.useRef)();
(initialValueRef.current = initialValue), (fieldRef.current = field);
Expand Down Expand Up @@ -1820,8 +1829,8 @@
onValueChange && onValueChange(val),
updater.setValue(fieldId, val, !options.preventUpdate);
};
Object(react.useEffect)(function() {
fieldApiRef.current.setValue(fieldApiRef.current.getValue() || '');
hooks_useUpdateEffect(function() {
fieldApiRef.current.setValue(maskedValueRef.current);
}, useField_toConsumableArray(formatterDependencies));
var setTouched = function setTouched(val, reset) {
var _ref6 =
Expand Down Expand Up @@ -9767,7 +9776,7 @@
__webpack_exports__.a = Code;
},
488: function(module) {
module.exports = JSON.parse('{"a":"3.32.3"}');
module.exports = JSON.parse('{"a":"3.33.0"}');
},
489: function(module, __webpack_exports__, __webpack_require__) {
'use strict';
Expand Down Expand Up @@ -19684,4 +19693,4 @@
},
[[542, 1, 2]]
]);
//# sourceMappingURL=main.1efb4f09578cb3ef609d.bundle.js.map
//# sourceMappingURL=main.19b8aa92ffd97cc97179.bundle.js.map
1 change: 1 addition & 0 deletions docs/main.19b8aa92ffd97cc97179.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/main.1efb4f09578cb3ef609d.bundle.js.map

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/runtime~main.19b8aa92ffd97cc97179.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/runtime~main.1efb4f09578cb3ef609d.bundle.js.map

This file was deleted.

@@ -1,4 +1,4 @@
/*! For license information please see vendors~main.1efb4f09578cb3ef609d.bundle.js.LICENSE.txt */
/*! For license information please see vendors~main.19b8aa92ffd97cc97179.bundle.js.LICENSE.txt */
(window.webpackJsonp = window.webpackJsonp || []).push([
[2],
[
Expand Down Expand Up @@ -114432,4 +114432,4 @@
}
]
]);
//# sourceMappingURL=vendors~main.1efb4f09578cb3ef609d.bundle.js.map
//# sourceMappingURL=vendors~main.19b8aa92ffd97cc97179.bundle.js.map
1 change: 1 addition & 0 deletions docs/vendors~main.19b8aa92ffd97cc97179.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/vendors~main.1efb4f09578cb3ef609d.bundle.js.map

This file was deleted.

0 comments on commit c68b388

Please sign in to comment.