@bluemarble/bm-components 0.0.60 → 0.0.62
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/dist/esm/index.js
CHANGED
|
@@ -57,11 +57,11 @@ var reactIs_production_min = {};
|
|
|
57
57
|
* LICENSE file in the root directory of this source tree.
|
|
58
58
|
*/
|
|
59
59
|
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f$1=b?Symbol.for("react.strict_mode"):60108,g$1=b?Symbol.for("react.profiler"):60114,h$1=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m$1=b?Symbol.for("react.concurrent_mode"):60111,n$1=b?Symbol.for("react.forward_ref"):60112,p$1=b?Symbol.for("react.suspense"):60113,q$1=b?
|
|
60
|
-
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
61
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m$1:case e:case g$1:case f$1:case p$1:return a;default:switch(a=a&&a.$$typeof,a){case k:case n$1:case t:case r:case h$1:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m$1}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m$1;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h$1;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n$1;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
|
|
60
|
+
Symbol.for("react.suspense_list"):60120,r$1=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
61
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m$1:case e:case g$1:case f$1:case p$1:return a;default:switch(a=a&&a.$$typeof,a){case k:case n$1:case t:case r$1:case h$1:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m$1}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m$1;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h$1;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n$1;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r$1;reactIs_production_min.Portal=d;
|
|
62
62
|
reactIs_production_min.Profiler=g$1;reactIs_production_min.StrictMode=f$1;reactIs_production_min.Suspense=p$1;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h$1};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n$1};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
|
|
63
|
-
reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g$1};reactIs_production_min.isStrictMode=function(a){return z(a)===f$1};reactIs_production_min.isSuspense=function(a){return z(a)===p$1};
|
|
64
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m$1||a===g$1||a===f$1||a===p$1||a===q$1||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h$1||a.$$typeof===k||a.$$typeof===n$1||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
|
|
63
|
+
reactIs_production_min.isMemo=function(a){return z(a)===r$1};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g$1};reactIs_production_min.isStrictMode=function(a){return z(a)===f$1};reactIs_production_min.isSuspense=function(a){return z(a)===p$1};
|
|
64
|
+
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m$1||a===g$1||a===f$1||a===p$1||a===q$1||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r$1||a.$$typeof===h$1||a.$$typeof===k||a.$$typeof===n$1||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
|
|
65
65
|
|
|
66
66
|
var reactIs_development = {};
|
|
67
67
|
|
|
@@ -2389,7 +2389,7 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
2389
2389
|
jsxRuntime.exports = reactJsxRuntime_development;
|
|
2390
2390
|
}
|
|
2391
2391
|
|
|
2392
|
-
/** @license MUI v5.
|
|
2392
|
+
/** @license MUI v5.10.8
|
|
2393
2393
|
*
|
|
2394
2394
|
* This source code is licensed under the MIT license found in the
|
|
2395
2395
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -2412,26 +2412,23 @@ function styled(tag, options) {
|
|
|
2412
2412
|
}
|
|
2413
2413
|
|
|
2414
2414
|
return stylesFactory;
|
|
2415
|
-
}
|
|
2415
|
+
} // eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2416
2416
|
|
|
2417
2417
|
const responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};
|
|
2418
2418
|
var responsivePropType$1 = responsivePropType;
|
|
2419
2419
|
|
|
2420
2420
|
function _extends() {
|
|
2421
|
-
_extends = Object.assign
|
|
2421
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
2422
2422
|
for (var i = 1; i < arguments.length; i++) {
|
|
2423
2423
|
var source = arguments[i];
|
|
2424
|
-
|
|
2425
2424
|
for (var key in source) {
|
|
2426
2425
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2427
2426
|
target[key] = source[key];
|
|
2428
2427
|
}
|
|
2429
2428
|
}
|
|
2430
2429
|
}
|
|
2431
|
-
|
|
2432
2430
|
return target;
|
|
2433
2431
|
};
|
|
2434
|
-
|
|
2435
2432
|
return _extends.apply(this, arguments);
|
|
2436
2433
|
}
|
|
2437
2434
|
|
|
@@ -2562,7 +2559,7 @@ function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
|
2562
2559
|
function createEmptyBreakpointObject(breakpointsInput = {}) {
|
|
2563
2560
|
var _breakpointsInput$key;
|
|
2564
2561
|
|
|
2565
|
-
const breakpointsInOrder =
|
|
2562
|
+
const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {
|
|
2566
2563
|
const breakpointStyleKey = breakpointsInput.up(key);
|
|
2567
2564
|
acc[breakpointStyleKey] = {};
|
|
2568
2565
|
return acc;
|
|
@@ -2582,12 +2579,27 @@ function removeUnusedBreakpoints(breakpointKeys, style) {
|
|
|
2582
2579
|
}, style);
|
|
2583
2580
|
}
|
|
2584
2581
|
|
|
2585
|
-
function getPath(obj, path) {
|
|
2582
|
+
function getPath(obj, path, checkVars = true) {
|
|
2586
2583
|
if (!path || typeof path !== 'string') {
|
|
2587
2584
|
return null;
|
|
2585
|
+
} // Check if CSS variables are used
|
|
2586
|
+
|
|
2587
|
+
|
|
2588
|
+
if (obj && obj.vars && checkVars) {
|
|
2589
|
+
const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);
|
|
2590
|
+
|
|
2591
|
+
if (val != null) {
|
|
2592
|
+
return val;
|
|
2593
|
+
}
|
|
2588
2594
|
}
|
|
2589
2595
|
|
|
2590
|
-
return path.split('.').reduce((acc, item) =>
|
|
2596
|
+
return path.split('.').reduce((acc, item) => {
|
|
2597
|
+
if (acc && acc[item] != null) {
|
|
2598
|
+
return acc[item];
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
return null;
|
|
2602
|
+
}, obj);
|
|
2591
2603
|
}
|
|
2592
2604
|
|
|
2593
2605
|
function getValue$1(themeMapping, transform, propValueFinal, userValue = propValueFinal) {
|
|
@@ -2602,7 +2614,7 @@ function getValue$1(themeMapping, transform, propValueFinal, userValue = propVal
|
|
|
2602
2614
|
}
|
|
2603
2615
|
|
|
2604
2616
|
if (transform) {
|
|
2605
|
-
value = transform(value);
|
|
2617
|
+
value = transform(value, userValue);
|
|
2606
2618
|
}
|
|
2607
2619
|
|
|
2608
2620
|
return value;
|
|
@@ -2726,7 +2738,9 @@ const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTo
|
|
|
2726
2738
|
const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
|
|
2727
2739
|
const spacingKeys = [...marginKeys, ...paddingKeys];
|
|
2728
2740
|
function createUnaryUnit(theme, themeKey, defaultValue, propName) {
|
|
2729
|
-
|
|
2741
|
+
var _getPath;
|
|
2742
|
+
|
|
2743
|
+
const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;
|
|
2730
2744
|
|
|
2731
2745
|
if (typeof themeSpacing === 'number') {
|
|
2732
2746
|
return abs => {
|
|
@@ -3058,18 +3072,29 @@ const gridArea = style$1({
|
|
|
3058
3072
|
const grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);
|
|
3059
3073
|
var grid$1 = grid;
|
|
3060
3074
|
|
|
3075
|
+
function transform$1(value, userValue) {
|
|
3076
|
+
if (userValue === 'grey') {
|
|
3077
|
+
return userValue;
|
|
3078
|
+
}
|
|
3079
|
+
|
|
3080
|
+
return value;
|
|
3081
|
+
}
|
|
3082
|
+
|
|
3061
3083
|
const color = style$1({
|
|
3062
3084
|
prop: 'color',
|
|
3063
|
-
themeKey: 'palette'
|
|
3085
|
+
themeKey: 'palette',
|
|
3086
|
+
transform: transform$1
|
|
3064
3087
|
});
|
|
3065
3088
|
const bgcolor = style$1({
|
|
3066
3089
|
prop: 'bgcolor',
|
|
3067
3090
|
cssProperty: 'backgroundColor',
|
|
3068
|
-
themeKey: 'palette'
|
|
3091
|
+
themeKey: 'palette',
|
|
3092
|
+
transform: transform$1
|
|
3069
3093
|
});
|
|
3070
3094
|
const backgroundColor = style$1({
|
|
3071
3095
|
prop: 'backgroundColor',
|
|
3072
|
-
themeKey: 'palette'
|
|
3096
|
+
themeKey: 'palette',
|
|
3097
|
+
transform: transform$1
|
|
3073
3098
|
});
|
|
3074
3099
|
const palette = compose(color, bgcolor, backgroundColor);
|
|
3075
3100
|
var palette$1 = palette;
|
|
@@ -3262,7 +3287,7 @@ function unstable_createStyleFunctionSx(styleFunctionMapping$1 = styleFunctionMa
|
|
|
3262
3287
|
} = props || {};
|
|
3263
3288
|
|
|
3264
3289
|
if (!sx) {
|
|
3265
|
-
return null; //
|
|
3290
|
+
return null; // Emotion & styled-components will neglect null
|
|
3266
3291
|
}
|
|
3267
3292
|
/*
|
|
3268
3293
|
* Receive `sxInput` as object or callback
|
|
@@ -3333,13 +3358,11 @@ function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
|
3333
3358
|
var target = {};
|
|
3334
3359
|
var sourceKeys = Object.keys(source);
|
|
3335
3360
|
var key, i;
|
|
3336
|
-
|
|
3337
3361
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
3338
3362
|
key = sourceKeys[i];
|
|
3339
3363
|
if (excluded.indexOf(key) >= 0) continue;
|
|
3340
3364
|
target[key] = source[key];
|
|
3341
3365
|
}
|
|
3342
|
-
|
|
3343
3366
|
return target;
|
|
3344
3367
|
}
|
|
3345
3368
|
|
|
@@ -3393,46 +3416,7 @@ function extendSxProp(props) {
|
|
|
3393
3416
|
});
|
|
3394
3417
|
}
|
|
3395
3418
|
|
|
3396
|
-
function
|
|
3397
|
-
var k, y, str='';
|
|
3398
|
-
|
|
3399
|
-
if (typeof mix === 'string' || typeof mix === 'number') {
|
|
3400
|
-
str += mix;
|
|
3401
|
-
} else if (typeof mix === 'object') {
|
|
3402
|
-
if (Array.isArray(mix)) {
|
|
3403
|
-
for (k=0; k < mix.length; k++) {
|
|
3404
|
-
if (mix[k]) {
|
|
3405
|
-
if (y = toVal(mix[k])) {
|
|
3406
|
-
str && (str += ' ');
|
|
3407
|
-
str += y;
|
|
3408
|
-
}
|
|
3409
|
-
}
|
|
3410
|
-
}
|
|
3411
|
-
} else {
|
|
3412
|
-
for (k in mix) {
|
|
3413
|
-
if (mix[k]) {
|
|
3414
|
-
str && (str += ' ');
|
|
3415
|
-
str += k;
|
|
3416
|
-
}
|
|
3417
|
-
}
|
|
3418
|
-
}
|
|
3419
|
-
}
|
|
3420
|
-
|
|
3421
|
-
return str;
|
|
3422
|
-
}
|
|
3423
|
-
|
|
3424
|
-
function clsx () {
|
|
3425
|
-
var i=0, tmp, x, str='';
|
|
3426
|
-
while (i < arguments.length) {
|
|
3427
|
-
if (tmp = arguments[i++]) {
|
|
3428
|
-
if (x = toVal(tmp)) {
|
|
3429
|
-
str && (str += ' ');
|
|
3430
|
-
str += x;
|
|
3431
|
-
}
|
|
3432
|
-
}
|
|
3433
|
-
}
|
|
3434
|
-
return str;
|
|
3435
|
-
}
|
|
3419
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
3436
3420
|
|
|
3437
3421
|
const _excluded$8 = ["values", "unit", "step"];
|
|
3438
3422
|
|
|
@@ -3537,7 +3521,7 @@ function createSpacing(spacingInput = 8) {
|
|
|
3537
3521
|
return spacingInput;
|
|
3538
3522
|
} // Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.
|
|
3539
3523
|
// Smaller components, such as icons, can align to a 4dp grid.
|
|
3540
|
-
// https://material.io/design/layout/understanding-layout.html
|
|
3524
|
+
// https://m2.material.io/design/layout/understanding-layout.html
|
|
3541
3525
|
|
|
3542
3526
|
|
|
3543
3527
|
const transform = createUnarySpacing({
|
|
@@ -3632,7 +3616,9 @@ function createBox(options = {}) {
|
|
|
3632
3616
|
generateClassName,
|
|
3633
3617
|
styleFunctionSx = defaultStyleFunctionSx
|
|
3634
3618
|
} = options;
|
|
3635
|
-
const BoxRoot = styled('div'
|
|
3619
|
+
const BoxRoot = styled('div', {
|
|
3620
|
+
shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'
|
|
3621
|
+
})(styleFunctionSx);
|
|
3636
3622
|
const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) {
|
|
3637
3623
|
const theme = useTheme(defaultTheme);
|
|
3638
3624
|
|
|
@@ -3650,34 +3636,34 @@ function createBox(options = {}) {
|
|
|
3650
3636
|
theme: theme
|
|
3651
3637
|
}, other));
|
|
3652
3638
|
});
|
|
3653
|
-
process.env.NODE_ENV !== "production" ? Box.propTypes
|
|
3654
|
-
/* remove-proptypes */
|
|
3655
|
-
= {
|
|
3656
|
-
// ----------------------------- Warning --------------------------------
|
|
3657
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
3658
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
3659
|
-
// ----------------------------------------------------------------------
|
|
3660
|
-
|
|
3661
|
-
/**
|
|
3662
|
-
* @ignore
|
|
3663
|
-
*/
|
|
3664
|
-
children: PropTypes.node,
|
|
3665
|
-
|
|
3666
|
-
/**
|
|
3667
|
-
* The component used for the root node.
|
|
3668
|
-
* Either a string to use a HTML element or a component.
|
|
3669
|
-
*/
|
|
3670
|
-
component: PropTypes.elementType,
|
|
3671
|
-
|
|
3672
|
-
/**
|
|
3673
|
-
* @ignore
|
|
3674
|
-
*/
|
|
3675
|
-
sx: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.func])
|
|
3676
|
-
} : void 0;
|
|
3677
3639
|
return Box;
|
|
3678
3640
|
}
|
|
3679
3641
|
|
|
3680
3642
|
const Box = createBox();
|
|
3643
|
+
process.env.NODE_ENV !== "production" ? Box.propTypes
|
|
3644
|
+
/* remove-proptypes */
|
|
3645
|
+
= {
|
|
3646
|
+
// ----------------------------- Warning --------------------------------
|
|
3647
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
3648
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
3649
|
+
// ----------------------------------------------------------------------
|
|
3650
|
+
|
|
3651
|
+
/**
|
|
3652
|
+
* @ignore
|
|
3653
|
+
*/
|
|
3654
|
+
children: PropTypes.node,
|
|
3655
|
+
|
|
3656
|
+
/**
|
|
3657
|
+
* The component used for the root node.
|
|
3658
|
+
* Either a string to use a HTML element or a component.
|
|
3659
|
+
*/
|
|
3660
|
+
component: PropTypes.elementType,
|
|
3661
|
+
|
|
3662
|
+
/**
|
|
3663
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
3664
|
+
*/
|
|
3665
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
3666
|
+
} : void 0;
|
|
3681
3667
|
var Box$1 = Box;
|
|
3682
3668
|
|
|
3683
3669
|
var DefaultContext = {
|
|
@@ -14813,13 +14799,10 @@ function FormikInputMask(_a) {
|
|
|
14813
14799
|
setValue(String(initialValue.current));
|
|
14814
14800
|
}
|
|
14815
14801
|
}, [defaultValue]);
|
|
14816
|
-
const onChange = (setFieldValue) => {
|
|
14817
|
-
setFieldValue(name, unmaskedValue);
|
|
14818
|
-
};
|
|
14819
14802
|
return (React__default.createElement(Field, { name: name }, (_a) => {
|
|
14820
14803
|
var _b = _a.field, { value } = _b, field = __rest(_b, ["value"]), { form: { setFieldValue } } = _a;
|
|
14821
14804
|
initialValue.current = value;
|
|
14822
|
-
return (React__default.createElement(BaseInput$1, Object.assign({}, rest, field, {
|
|
14805
|
+
return (React__default.createElement(BaseInput$1, Object.assign({}, rest, field, { onKeyDown: () => setFieldValue(name, unmaskedValue), inputRef: ref })));
|
|
14823
14806
|
}));
|
|
14824
14807
|
}
|
|
14825
14808
|
|
|
@@ -15339,7 +15322,10 @@ function DateFormat(date) {
|
|
|
15339
15322
|
now,
|
|
15340
15323
|
utc: (newUTC) => {
|
|
15341
15324
|
data.utc = newUTC;
|
|
15342
|
-
return
|
|
15325
|
+
return (newDate) => {
|
|
15326
|
+
date = newDate;
|
|
15327
|
+
return methods;
|
|
15328
|
+
};
|
|
15343
15329
|
}
|
|
15344
15330
|
};
|
|
15345
15331
|
return methods;
|