@crystaldesign/diva-core 26.2.0-rc.0 → 26.3.0-beta.1
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/build/esm/{ModalsWrapper-d6ba13cc.js → ModalsWrapper-a2ce2992.js} +1 -1
- package/build/esm/{index-1cf2c784.js → index-4b889e56.js} +6 -6
- package/build/esm/{index-4e34167f.js → index-bdf296ad.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/umd/diva-core.umd.min.js +1 -1
- package/build/umd/report.html +1 -1
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as styleInject, u as useDivaCoreContext } from './index-
|
|
1
|
+
import { s as styleInject, u as useDivaCoreContext } from './index-4b889e56.js';
|
|
2
2
|
import { useState, useEffect, useCallback } from 'react';
|
|
3
3
|
import { observer } from 'mobx-react-lite';
|
|
4
4
|
import Button from '@mui/material/Button';
|
|
@@ -45,7 +45,7 @@ import { actions } from '@storybook/addon-actions';
|
|
|
45
45
|
import * as Styles from '@mui/styles';
|
|
46
46
|
|
|
47
47
|
(function() {
|
|
48
|
-
const env = {"STAGE":"production","VERSION":"26.
|
|
48
|
+
const env = {"STAGE":"production","VERSION":"26.3.0-beta.1"};
|
|
49
49
|
try {
|
|
50
50
|
if (process) {
|
|
51
51
|
process.env = Object.assign({}, process.env);
|
|
@@ -9755,7 +9755,7 @@ var useSwipeToDismiss = function useSwipeToDismiss(direction, onDismiss) {
|
|
|
9755
9755
|
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9756
9756
|
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9757
9757
|
var DrawerMenu = function DrawerMenu(_ref) {
|
|
9758
|
-
var _contentStore$drawerM;
|
|
9758
|
+
var _contentStore$drawerM, _drawerStyle$maxWidth;
|
|
9759
9759
|
_objectDestructuringEmpty(_ref);
|
|
9760
9760
|
var _useDivaCoreContext = useDivaCoreContext(),
|
|
9761
9761
|
contentStore = _useDivaCoreContext.contentStore;
|
|
@@ -9809,7 +9809,7 @@ var DrawerMenu = function DrawerMenu(_ref) {
|
|
|
9809
9809
|
};
|
|
9810
9810
|
var anchor = direction === 'left' ? 'left' : direction === 'right' ? 'right' : direction === 'top' ? 'top' : 'bottom';
|
|
9811
9811
|
var isVertical = ['bottom', 'top'].includes(direction);
|
|
9812
|
-
var maxWidth = !isVertical ? 400 : undefined;
|
|
9812
|
+
var maxWidth = !isVertical ? (_drawerStyle$maxWidth = drawerStyle === null || drawerStyle === void 0 ? void 0 : drawerStyle.maxWidth) !== null && _drawerStyle$maxWidth !== void 0 ? _drawerStyle$maxWidth : 400 : undefined;
|
|
9813
9813
|
|
|
9814
9814
|
// Swipe to dismiss functionality
|
|
9815
9815
|
var _useSwipeToDismiss = useSwipeToDismiss(direction, close),
|
|
@@ -9925,7 +9925,7 @@ var DrawerMenu$1 = observer(DrawerMenu);
|
|
|
9925
9925
|
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9926
9926
|
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9927
9927
|
var LazyModals$1 = /*#__PURE__*/React.lazy(function () {
|
|
9928
|
-
return import('./ModalsWrapper-
|
|
9928
|
+
return import('./ModalsWrapper-a2ce2992.js');
|
|
9929
9929
|
});
|
|
9930
9930
|
function Fullscreen(_ref) {
|
|
9931
9931
|
var inAbsoluteFullscreen = _ref.inAbsoluteFullscreen;
|
|
@@ -10385,10 +10385,10 @@ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
10385
10385
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10386
10386
|
var LOG$2 = getLogger('Framework', 'Root');
|
|
10387
10387
|
var LazyAuth = /*#__PURE__*/React.lazy(function () {
|
|
10388
|
-
return import('./index-
|
|
10388
|
+
return import('./index-bdf296ad.js');
|
|
10389
10389
|
});
|
|
10390
10390
|
var LazyModals = /*#__PURE__*/React.lazy(function () {
|
|
10391
|
-
return import('./ModalsWrapper-
|
|
10391
|
+
return import('./ModalsWrapper-a2ce2992.js');
|
|
10392
10392
|
});
|
|
10393
10393
|
function ContentComponent() {
|
|
10394
10394
|
var context = useDivaCoreContext();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-
|
|
1
|
+
import { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-4b889e56.js';
|
|
2
2
|
import { forwardRef, useState, useRef, useEffect, useMemo } from 'react';
|
|
3
3
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
4
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
package/build/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as AnalyticsHandler, A as AuthorizationHandler, e as ClientArticleHandler, C as Content, f as DivaMockProvider, D as DrawerMenuComponent, H as HelpButton, O as ONE_DAY_UNIX, d as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, b as default, g as getLogger, i as i18n, h as storyBookCoreMock, a as useDivaCore } from './index-
|
|
1
|
+
export { c as AnalyticsHandler, A as AuthorizationHandler, e as ClientArticleHandler, C as Content, f as DivaMockProvider, D as DrawerMenuComponent, H as HelpButton, O as ONE_DAY_UNIX, d as OrganizationHandler, P as ProductHandler, R as RequestStatus, S as SupportHandler, b as default, g as getLogger, i as i18n, h as storyBookCoreMock, a as useDivaCore } from './index-4b889e56.js';
|
|
2
2
|
export { DivaError, default as DivaUtils } from '@crystaldesign/diva-utils';
|
|
3
3
|
export { Trans, useTranslation } from 'react-i18next';
|
|
4
4
|
export * from '@crystaldesign/basket-model';
|