@zextras/carbonio-design-system 4.2.1 → 4.2.2-react18.0
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/{zapp-ui.bundle.js → zapp-ui.bundle.cjs} +61 -57
- package/dist/zapp-ui.bundle.d.ts +14 -9
- package/dist/zapp-ui.bundle.mjs +37569 -0
- package/package.json +42 -26
- package/dist/tsdoc-metadata.json +0 -11
- package/sonar-project.properties +0 -10
- package/styleguide.theme.js +0 -10
|
@@ -6038,8 +6038,9 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy, offsetP
|
|
|
6038
6038
|
if (domElement) {
|
|
6039
6039
|
const win = getWindow$1(domElement);
|
|
6040
6040
|
const offsetWin = offsetParent && isElement$1(offsetParent) ? getWindow$1(offsetParent) : offsetParent;
|
|
6041
|
-
let
|
|
6042
|
-
|
|
6041
|
+
let currentWin = win;
|
|
6042
|
+
let currentIFrame = currentWin.frameElement;
|
|
6043
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
6043
6044
|
const iframeScale = getScale(currentIFrame);
|
|
6044
6045
|
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
6045
6046
|
const css = getComputedStyle$1(currentIFrame);
|
|
@@ -6051,7 +6052,8 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy, offsetP
|
|
|
6051
6052
|
height *= iframeScale.y;
|
|
6052
6053
|
x += left;
|
|
6053
6054
|
y += top;
|
|
6054
|
-
|
|
6055
|
+
currentWin = getWindow$1(currentIFrame);
|
|
6056
|
+
currentIFrame = currentWin.frameElement;
|
|
6055
6057
|
}
|
|
6056
6058
|
}
|
|
6057
6059
|
return rectToClientRect$1({
|
|
@@ -7154,7 +7156,7 @@ var check = function (it) {
|
|
|
7154
7156
|
};
|
|
7155
7157
|
|
|
7156
7158
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
7157
|
-
var global$
|
|
7159
|
+
var global$a =
|
|
7158
7160
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
7159
7161
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
7160
7162
|
check(typeof window == 'object' && window) ||
|
|
@@ -7305,7 +7307,7 @@ var isObject$7 = function (it) {
|
|
|
7305
7307
|
return typeof it == 'object' ? it !== null : isCallable$9(it);
|
|
7306
7308
|
};
|
|
7307
7309
|
|
|
7308
|
-
var global$
|
|
7310
|
+
var global$9 = global$a;
|
|
7309
7311
|
var isCallable$8 = isCallable$a;
|
|
7310
7312
|
|
|
7311
7313
|
var aFunction = function (argument) {
|
|
@@ -7313,7 +7315,7 @@ var aFunction = function (argument) {
|
|
|
7313
7315
|
};
|
|
7314
7316
|
|
|
7315
7317
|
var getBuiltIn$2 = function (namespace, method) {
|
|
7316
|
-
return arguments.length < 2 ? aFunction(global$
|
|
7318
|
+
return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
|
|
7317
7319
|
};
|
|
7318
7320
|
|
|
7319
7321
|
var uncurryThis$6 = functionUncurryThis;
|
|
@@ -7322,11 +7324,11 @@ var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
|
|
|
7322
7324
|
|
|
7323
7325
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
7324
7326
|
|
|
7325
|
-
var global$
|
|
7327
|
+
var global$8 = global$a;
|
|
7326
7328
|
var userAgent = engineUserAgent;
|
|
7327
7329
|
|
|
7328
|
-
var process$1 = global$
|
|
7329
|
-
var Deno = global$
|
|
7330
|
+
var process$1 = global$8.process;
|
|
7331
|
+
var Deno = global$8.Deno;
|
|
7330
7332
|
var versions = process$1 && process$1.versions || Deno && Deno.version;
|
|
7331
7333
|
var v8 = versions && versions.v8;
|
|
7332
7334
|
var match$2, version;
|
|
@@ -7353,9 +7355,9 @@ var engineV8Version = version;
|
|
|
7353
7355
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
7354
7356
|
var V8_VERSION = engineV8Version;
|
|
7355
7357
|
var fails$5 = fails$9;
|
|
7356
|
-
var global$
|
|
7358
|
+
var global$7 = global$a;
|
|
7357
7359
|
|
|
7358
|
-
var $String$3 = global$
|
|
7360
|
+
var $String$3 = global$7.String;
|
|
7359
7361
|
|
|
7360
7362
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
7361
7363
|
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
|
|
@@ -7437,42 +7439,42 @@ var ordinaryToPrimitive$1 = function (input, pref) {
|
|
|
7437
7439
|
throw new $TypeError$5("Can't convert object to primitive value");
|
|
7438
7440
|
};
|
|
7439
7441
|
|
|
7440
|
-
var
|
|
7442
|
+
var sharedStore = {exports: {}};
|
|
7441
7443
|
|
|
7442
|
-
var global$
|
|
7444
|
+
var global$6 = global$a;
|
|
7443
7445
|
|
|
7444
7446
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
7445
7447
|
var defineProperty$1 = Object.defineProperty;
|
|
7446
7448
|
|
|
7447
7449
|
var defineGlobalProperty$3 = function (key, value) {
|
|
7448
7450
|
try {
|
|
7449
|
-
defineProperty$1(global$
|
|
7451
|
+
defineProperty$1(global$6, key, { value: value, configurable: true, writable: true });
|
|
7450
7452
|
} catch (error) {
|
|
7451
|
-
global$
|
|
7453
|
+
global$6[key] = value;
|
|
7452
7454
|
} return value;
|
|
7453
7455
|
};
|
|
7454
7456
|
|
|
7455
|
-
var
|
|
7457
|
+
var globalThis$1 = global$a;
|
|
7456
7458
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
7457
7459
|
|
|
7458
7460
|
var SHARED = '__core-js_shared__';
|
|
7459
|
-
var store$3 =
|
|
7461
|
+
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
7460
7462
|
|
|
7461
|
-
|
|
7462
|
-
|
|
7463
|
-
var store$2 = sharedStore;
|
|
7464
|
-
|
|
7465
|
-
(shared$3.exports = function (key, value) {
|
|
7466
|
-
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
7467
|
-
})('versions', []).push({
|
|
7468
|
-
version: '3.35.1',
|
|
7463
|
+
(store$3.versions || (store$3.versions = [])).push({
|
|
7464
|
+
version: '3.36.0',
|
|
7469
7465
|
mode: 'global',
|
|
7470
7466
|
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
7471
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
7467
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE',
|
|
7472
7468
|
source: 'https://github.com/zloirock/core-js'
|
|
7473
7469
|
});
|
|
7474
7470
|
|
|
7475
|
-
var
|
|
7471
|
+
var sharedStoreExports = sharedStore.exports;
|
|
7472
|
+
|
|
7473
|
+
var store$2 = sharedStoreExports;
|
|
7474
|
+
|
|
7475
|
+
var shared$3 = function (key, value) {
|
|
7476
|
+
return store$2[key] || (store$2[key] = value || {});
|
|
7477
|
+
};
|
|
7476
7478
|
|
|
7477
7479
|
var requireObjectCoercible = requireObjectCoercible$2;
|
|
7478
7480
|
|
|
@@ -7506,8 +7508,8 @@ var uid$3 = function (key) {
|
|
|
7506
7508
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$1(++id + postfix, 36);
|
|
7507
7509
|
};
|
|
7508
7510
|
|
|
7509
|
-
var global$5 = global$
|
|
7510
|
-
var shared$2 =
|
|
7511
|
+
var global$5 = global$a;
|
|
7512
|
+
var shared$2 = shared$3;
|
|
7511
7513
|
var hasOwn$6 = hasOwnProperty_1;
|
|
7512
7514
|
var uid$2 = uid$3;
|
|
7513
7515
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
@@ -7561,7 +7563,7 @@ var toPropertyKey$3 = function (argument) {
|
|
|
7561
7563
|
return isSymbol$1(key) ? key : key + '';
|
|
7562
7564
|
};
|
|
7563
7565
|
|
|
7564
|
-
var global$4 = global$
|
|
7566
|
+
var global$4 = global$a;
|
|
7565
7567
|
var isObject$4 = isObject$7;
|
|
7566
7568
|
|
|
7567
7569
|
var document$1 = global$4.document;
|
|
@@ -7710,7 +7712,7 @@ var functionName = {
|
|
|
7710
7712
|
|
|
7711
7713
|
var uncurryThis$3 = functionUncurryThis;
|
|
7712
7714
|
var isCallable$4 = isCallable$a;
|
|
7713
|
-
var store$1 =
|
|
7715
|
+
var store$1 = sharedStoreExports;
|
|
7714
7716
|
|
|
7715
7717
|
var functionToString = uncurryThis$3(Function.toString);
|
|
7716
7718
|
|
|
@@ -7723,14 +7725,14 @@ if (!isCallable$4(store$1.inspectSource)) {
|
|
|
7723
7725
|
|
|
7724
7726
|
var inspectSource$1 = store$1.inspectSource;
|
|
7725
7727
|
|
|
7726
|
-
var global$3 = global$
|
|
7728
|
+
var global$3 = global$a;
|
|
7727
7729
|
var isCallable$3 = isCallable$a;
|
|
7728
7730
|
|
|
7729
7731
|
var WeakMap$1 = global$3.WeakMap;
|
|
7730
7732
|
|
|
7731
7733
|
var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
7732
7734
|
|
|
7733
|
-
var shared$1 =
|
|
7735
|
+
var shared$1 = shared$3;
|
|
7734
7736
|
var uid$1 = uid$3;
|
|
7735
7737
|
|
|
7736
7738
|
var keys$1 = shared$1('keys');
|
|
@@ -7742,11 +7744,11 @@ var sharedKey$1 = function (key) {
|
|
|
7742
7744
|
var hiddenKeys$3 = {};
|
|
7743
7745
|
|
|
7744
7746
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
7745
|
-
var global$2 = global$
|
|
7747
|
+
var global$2 = global$a;
|
|
7746
7748
|
var isObject$2 = isObject$7;
|
|
7747
7749
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
|
|
7748
7750
|
var hasOwn$3 = hasOwnProperty_1;
|
|
7749
|
-
var shared =
|
|
7751
|
+
var shared = sharedStoreExports;
|
|
7750
7752
|
var sharedKey = sharedKey$1;
|
|
7751
7753
|
var hiddenKeys$2 = hiddenKeys$3;
|
|
7752
7754
|
|
|
@@ -7961,6 +7963,7 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
7961
7963
|
return function ($this, el, fromIndex) {
|
|
7962
7964
|
var O = toIndexedObject$1($this);
|
|
7963
7965
|
var length = lengthOfArrayLike$1(O);
|
|
7966
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
7964
7967
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
7965
7968
|
var value;
|
|
7966
7969
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -8089,7 +8092,7 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
8089
8092
|
|
|
8090
8093
|
var isForced_1 = isForced$1;
|
|
8091
8094
|
|
|
8092
|
-
var global$1 = global$
|
|
8095
|
+
var global$1 = global$a;
|
|
8093
8096
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
8094
8097
|
var createNonEnumerableProperty = createNonEnumerableProperty$2;
|
|
8095
8098
|
var defineBuiltIn = defineBuiltIn$1;
|
|
@@ -13487,7 +13490,7 @@ function addLeadingZeros(number, targetLength) {
|
|
|
13487
13490
|
*
|
|
13488
13491
|
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
13489
13492
|
*/
|
|
13490
|
-
var formatters$
|
|
13493
|
+
var formatters$1 = {
|
|
13491
13494
|
// Year
|
|
13492
13495
|
y: function y(date, token) {
|
|
13493
13496
|
// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
|
|
@@ -13553,7 +13556,7 @@ var formatters$2 = {
|
|
|
13553
13556
|
return addLeadingZeros(fractionalSeconds, token.length);
|
|
13554
13557
|
}
|
|
13555
13558
|
};
|
|
13556
|
-
var lightFormatters = formatters$
|
|
13559
|
+
var lightFormatters = formatters$1;
|
|
13557
13560
|
|
|
13558
13561
|
var dayPeriodEnum = {
|
|
13559
13562
|
am: 'am',
|
|
@@ -14319,7 +14322,6 @@ function formatTimezone(offset, dirtyDelimiter) {
|
|
|
14319
14322
|
var minutes = addLeadingZeros(absOffset % 60, 2);
|
|
14320
14323
|
return sign + hours + delimiter + minutes;
|
|
14321
14324
|
}
|
|
14322
|
-
var formatters$1 = formatters;
|
|
14323
14325
|
|
|
14324
14326
|
var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
|
|
14325
14327
|
switch (pattern) {
|
|
@@ -14400,7 +14402,6 @@ var longFormatters = {
|
|
|
14400
14402
|
p: timeLongFormatter,
|
|
14401
14403
|
P: dateTimeLongFormatter
|
|
14402
14404
|
};
|
|
14403
|
-
var longFormatters$1 = longFormatters;
|
|
14404
14405
|
|
|
14405
14406
|
/**
|
|
14406
14407
|
* Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
|
|
@@ -15277,7 +15278,7 @@ function format(dirtyDate, dirtyFormatStr, options) {
|
|
|
15277
15278
|
var result = formatStr.match(longFormattingTokensRegExp$1).map(function (substring) {
|
|
15278
15279
|
var firstCharacter = substring[0];
|
|
15279
15280
|
if (firstCharacter === 'p' || firstCharacter === 'P') {
|
|
15280
|
-
var longFormatter = longFormatters
|
|
15281
|
+
var longFormatter = longFormatters[firstCharacter];
|
|
15281
15282
|
return longFormatter(substring, locale.formatLong);
|
|
15282
15283
|
}
|
|
15283
15284
|
return substring;
|
|
@@ -15290,7 +15291,7 @@ function format(dirtyDate, dirtyFormatStr, options) {
|
|
|
15290
15291
|
if (firstCharacter === "'") {
|
|
15291
15292
|
return cleanEscapedString$1(substring);
|
|
15292
15293
|
}
|
|
15293
|
-
var formatter = formatters
|
|
15294
|
+
var formatter = formatters[firstCharacter];
|
|
15294
15295
|
if (formatter) {
|
|
15295
15296
|
if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
|
|
15296
15297
|
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
@@ -19562,8 +19563,8 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options)
|
|
|
19562
19563
|
var setters = [new DateToSystemTimezoneSetter()];
|
|
19563
19564
|
var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {
|
|
19564
19565
|
var firstCharacter = substring[0];
|
|
19565
|
-
if (firstCharacter in longFormatters
|
|
19566
|
-
var longFormatter = longFormatters
|
|
19566
|
+
if (firstCharacter in longFormatters) {
|
|
19567
|
+
var longFormatter = longFormatters[firstCharacter];
|
|
19567
19568
|
return longFormatter(substring, locale.formatLong);
|
|
19568
19569
|
}
|
|
19569
19570
|
return substring;
|
|
@@ -23889,8 +23890,10 @@ const DefaultTabBarItem = /*#__PURE__*/React__namespace.default.forwardRef(funct
|
|
|
23889
23890
|
if (!item.disabled) onClick(ev);
|
|
23890
23891
|
}, [item.disabled, onClick]);
|
|
23891
23892
|
const combinedRef = useCombinedRefs(ref);
|
|
23892
|
-
|
|
23893
|
-
|
|
23893
|
+
|
|
23894
|
+
// const keyEvents = useMemo(() => getKeyboardPreset('button', activationCb), [activationCb]);
|
|
23895
|
+
// useKeyboard(combinedRef, keyEvents);
|
|
23896
|
+
|
|
23894
23897
|
return /*#__PURE__*/React__namespace.default.createElement(DefaultTabBarItemContainer, _extends({
|
|
23895
23898
|
padding: {
|
|
23896
23899
|
horizontal: 'small'
|
|
@@ -25281,11 +25284,11 @@ const BANNER_GAP = '1rem';
|
|
|
25281
25284
|
const BANNER_WIDTH = '100%';
|
|
25282
25285
|
const InfoContainer = styled__default.default(Container).withConfig({
|
|
25283
25286
|
displayName: "Banner__InfoContainer",
|
|
25284
|
-
componentId: "sc-
|
|
25287
|
+
componentId: "sc-3rwd6k-0"
|
|
25285
25288
|
})(["overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;& > *:not(:is(:first-child)){padding-top:0.25rem;}"]);
|
|
25286
25289
|
const BannerText = styled__default.default(Text).withConfig({
|
|
25287
25290
|
displayName: "Banner__BannerText",
|
|
25288
|
-
componentId: "sc-
|
|
25291
|
+
componentId: "sc-3rwd6k-1"
|
|
25289
25292
|
})(["overflow:visible;"]);
|
|
25290
25293
|
const WrapAndGrowContainer = styled__default.default(Container).attrs(({
|
|
25291
25294
|
theme,
|
|
@@ -25295,26 +25298,27 @@ const WrapAndGrowContainer = styled__default.default(Container).attrs(({
|
|
|
25295
25298
|
flexBasis: styled.css(["calc(", " + ", " + ", ")"], flexBasis, theme.sizes.icon.large, gap)
|
|
25296
25299
|
})).withConfig({
|
|
25297
25300
|
displayName: "Banner__WrapAndGrowContainer",
|
|
25298
|
-
componentId: "sc-
|
|
25301
|
+
componentId: "sc-3rwd6k-2"
|
|
25299
25302
|
})([""]);
|
|
25300
25303
|
const ActionsContainer = styled__default.default(Container).withConfig({
|
|
25301
25304
|
displayName: "Banner__ActionsContainer",
|
|
25302
|
-
componentId: "sc-
|
|
25305
|
+
componentId: "sc-3rwd6k-3"
|
|
25303
25306
|
})(["align-self:stretch;"]);
|
|
25304
25307
|
const CloseContainer = styled__default.default(Container).withConfig({
|
|
25305
25308
|
displayName: "Banner__CloseContainer",
|
|
25306
|
-
componentId: "sc-
|
|
25309
|
+
componentId: "sc-3rwd6k-4"
|
|
25307
25310
|
})(["align-self:", ";"], ({
|
|
25308
25311
|
$alignSelf
|
|
25309
25312
|
}) => $alignSelf);
|
|
25310
25313
|
const BannerContainer = styled__default.default(Container).withConfig({
|
|
25311
25314
|
displayName: "Banner__BannerContainer",
|
|
25312
|
-
componentId: "sc-
|
|
25315
|
+
componentId: "sc-3rwd6k-5"
|
|
25313
25316
|
})(["", "{order:1;}", ";"], WrapAndGrowContainer, ({
|
|
25314
25317
|
$isMultiline
|
|
25315
25318
|
}) => $isMultiline ? styled.css(["", "{order:2;}", "{order:3;}"], CloseContainer, ActionsContainer) : styled.css(["", "{order:3;}", "{order:2;}"], CloseContainer, ActionsContainer));
|
|
25316
25319
|
const Banner = /*#__PURE__*/React__namespace.default.forwardRef(function BannerFn({
|
|
25317
25320
|
status = 'success',
|
|
25321
|
+
severity = status,
|
|
25318
25322
|
type = 'fill',
|
|
25319
25323
|
title,
|
|
25320
25324
|
description,
|
|
@@ -25330,9 +25334,9 @@ const Banner = /*#__PURE__*/React__namespace.default.forwardRef(function BannerF
|
|
|
25330
25334
|
const infoContainerRef = React.useRef(null);
|
|
25331
25335
|
const actionsContainerRef = React.useRef(null);
|
|
25332
25336
|
const closeContainerRef = React.useRef(null);
|
|
25333
|
-
const mainColor = React.useMemo(() => type === 'fill' ? 'gray6' :
|
|
25337
|
+
const mainColor = React.useMemo(() => type === 'fill' ? 'gray6' : severity, [type, severity]);
|
|
25334
25338
|
const textColor = React.useMemo(() => type === 'fill' ? 'gray6' : 'text', [type]);
|
|
25335
|
-
const backgroundColor = React.useMemo(() => type === 'outline' && 'gray6' || type === 'fill' &&
|
|
25339
|
+
const backgroundColor = React.useMemo(() => type === 'outline' && 'gray6' || type === 'fill' && severity || `${severity}Banner`, [type, severity]);
|
|
25336
25340
|
const [isMultiline, setIsMultiline] = React.useState(false);
|
|
25337
25341
|
const [isTextCropped, setIsTextCropped] = React.useState(false);
|
|
25338
25342
|
const createModal = useModal();
|
|
@@ -25404,7 +25408,7 @@ const Banner = /*#__PURE__*/React__namespace.default.forwardRef(function BannerF
|
|
|
25404
25408
|
height: 'fit',
|
|
25405
25409
|
orientation: 'horizontal',
|
|
25406
25410
|
borderColor: {
|
|
25407
|
-
bottom:
|
|
25411
|
+
bottom: severity
|
|
25408
25412
|
},
|
|
25409
25413
|
mainAlignment: 'flex-start',
|
|
25410
25414
|
wrap: 'wrap',
|
|
@@ -25426,7 +25430,7 @@ const Banner = /*#__PURE__*/React__namespace.default.forwardRef(function BannerF
|
|
|
25426
25430
|
height: 'fit',
|
|
25427
25431
|
minHeight: 'fit'
|
|
25428
25432
|
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
25429
|
-
icon: BANNER_ICON[
|
|
25433
|
+
icon: BANNER_ICON[severity],
|
|
25430
25434
|
color: mainColor,
|
|
25431
25435
|
size: 'large'
|
|
25432
25436
|
})), /*#__PURE__*/React__namespace.default.createElement(InfoContainer, {
|
|
@@ -37585,7 +37589,7 @@ function useSnackbar() {
|
|
|
37585
37589
|
return createSnackbar ?? fallback;
|
|
37586
37590
|
}
|
|
37587
37591
|
|
|
37588
|
-
Object.defineProperty(exports,
|
|
37592
|
+
Object.defineProperty(exports, "ThemeContext", {
|
|
37589
37593
|
enumerable: true,
|
|
37590
37594
|
get: function () { return styled.ThemeContext; }
|
|
37591
37595
|
});
|
package/dist/zapp-ui.bundle.d.ts
CHANGED
|
@@ -142,7 +142,11 @@ declare type BadgeSkeletonProps = {
|
|
|
142
142
|
export declare const Banner: React_2.ForwardRefExoticComponent<BannerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
143
143
|
|
|
144
144
|
export declare type BannerProps = HTMLAttributes<HTMLDivElement> & {
|
|
145
|
+
/**
|
|
146
|
+
* @deprecated use severity instead
|
|
147
|
+
*/
|
|
145
148
|
status?: 'success' | 'warning' | 'info' | 'error';
|
|
149
|
+
severity?: 'success' | 'warning' | 'info' | 'error';
|
|
146
150
|
type?: 'standard' | 'fill' | 'outline';
|
|
147
151
|
title?: string;
|
|
148
152
|
description: string;
|
|
@@ -330,6 +334,7 @@ export declare class Catcher extends React_2.Component<CatcherProps, CatcherStat
|
|
|
330
334
|
export declare interface CatcherProps {
|
|
331
335
|
/** error callback, use this to perform operations when an error is caught */
|
|
332
336
|
onError?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
337
|
+
children?: React_2.ReactNode;
|
|
333
338
|
}
|
|
334
339
|
|
|
335
340
|
declare interface CatcherState {
|
|
@@ -768,9 +773,9 @@ export declare interface DateTimePickerProps extends Omit<ReactDatePickerProps,
|
|
|
768
773
|
disabled?: boolean;
|
|
769
774
|
}
|
|
770
775
|
|
|
771
|
-
export declare const DefaultHeaderFactory: React_2.
|
|
776
|
+
export declare const DefaultHeaderFactory: ({ headers, onChange, allSelected, selectionMode, multiSelect, showCheckbox }: THeaderProps) => React_2.JSX.Element;
|
|
772
777
|
|
|
773
|
-
export declare const DefaultRowFactory: React_2.
|
|
778
|
+
export declare const DefaultRowFactory: ({ index, row, onChange, selected, selectionMode, multiSelect, showCheckbox }: TRowProps) => React_2.JSX.Element;
|
|
774
779
|
|
|
775
780
|
export declare const DefaultTabBarItem: React_2.ForwardRefExoticComponent<DefaultTabBarItemProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
776
781
|
|
|
@@ -1069,7 +1074,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
|
|
|
1069
1074
|
onChange: () => void;
|
|
1070
1075
|
}
|
|
1071
1076
|
|
|
1072
|
-
declare type IconComponent = (props: SVGProps<SVGSVGElement>) =>
|
|
1077
|
+
declare type IconComponent = (props: SVGProps<SVGSVGElement>) => React_2.JSX.Element;
|
|
1073
1078
|
|
|
1074
1079
|
export declare interface IconComponentProps extends SVGAttributes<SVGSVGElement> {
|
|
1075
1080
|
/** Icon to show. It can be a string key for the theme icons or a custom icon component */
|
|
@@ -1337,7 +1342,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
|
|
|
1337
1342
|
|
|
1338
1343
|
export declare const ModalFooter: ({ customFooter, ...modalFooterContentProps }: ModalFooterProps) => React_2.JSX.Element;
|
|
1339
1344
|
|
|
1340
|
-
export declare const ModalFooterContent: React_2.
|
|
1345
|
+
export declare const ModalFooterContent: ({ type, centered, onConfirm, confirmLabel, confirmDisabled, confirmColor, onSecondaryAction, secondaryActionLabel, secondaryActionDisabled, onClose, dismissLabel, errorActionLabel, optionalFooter, onErrorAction }: ModalFooterContentProps) => React_2.JSX.Element;
|
|
1341
1346
|
|
|
1342
1347
|
export declare type ModalFooterContentProps = Omit<ModalFooterProps, 'customFooter'>;
|
|
1343
1348
|
|
|
@@ -1459,7 +1464,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
|
|
|
1459
1464
|
maxVisible?: number;
|
|
1460
1465
|
};
|
|
1461
1466
|
|
|
1462
|
-
export declare const Padding: React_2.ForwardRefExoticComponent<(PaddingProps & Omit<React_2.HTMLAttributes<HTMLDivElement>, "id" | "height" | "width" | "color" | "content" | "translate" | "hidden" | "slot" | "style" | "title" | "dir" | "rel" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "role" | "children" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "
|
|
1467
|
+
export declare const Padding: React_2.ForwardRefExoticComponent<(PaddingProps & Omit<React_2.HTMLAttributes<HTMLDivElement>, "id" | "height" | "width" | "color" | "content" | "translate" | "hidden" | "slot" | "style" | "title" | "dir" | "rel" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "role" | "children" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "suppressHydrationWarning" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "autoFocus" | "contextMenu" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is">) & React_2.RefAttributes<HTMLDivElement>>;
|
|
1463
1468
|
|
|
1464
1469
|
export declare type PaddingObj = {
|
|
1465
1470
|
value: string | keyof DefaultTheme['sizes']['padding'] | 0;
|
|
@@ -1696,8 +1701,8 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
|
|
|
1696
1701
|
|
|
1697
1702
|
declare type ShapeType = 'round' | 'square';
|
|
1698
1703
|
|
|
1699
|
-
export declare type Shimmer = React_2.
|
|
1700
|
-
[K in keyof typeof ShimmerObject]: React_2.
|
|
1704
|
+
export declare type Shimmer = React_2.FunctionComponent<SkeletonProps> & {
|
|
1705
|
+
[K in keyof typeof ShimmerObject]: React_2.FunctionComponent<Parameters<(typeof ShimmerObject)[K]>[number]>;
|
|
1701
1706
|
};
|
|
1702
1707
|
|
|
1703
1708
|
export declare const Shimmer: Shimmer;
|
|
@@ -2044,7 +2049,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
|
|
|
2044
2049
|
|
|
2045
2050
|
declare type ThemePaletteObj = DefaultTheme['palette'];
|
|
2046
2051
|
|
|
2047
|
-
export declare const ThemeProvider: React_2.
|
|
2052
|
+
export declare const ThemeProvider: ({ children, extension, loadDefaultFont }: React_2.PropsWithChildren<ThemeProviderProps>) => React_2.JSX.Element;
|
|
2048
2053
|
|
|
2049
2054
|
export declare interface ThemeProviderProps {
|
|
2050
2055
|
extension?: (theme: DefaultTheme) => DefaultTheme;
|
|
@@ -2186,7 +2191,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
|
|
|
2186
2191
|
|
|
2187
2192
|
export declare function useHiddenCount(containerRef: React_2.RefObject<HTMLElement>, listenForWindowResize: boolean): [number, () => void];
|
|
2188
2193
|
|
|
2189
|
-
export declare const useIsVisible: <T extends HTMLElement>(listRef: React_2.RefObject<HTMLDivElement> | undefined, itemRef?: React_2.Ref<T
|
|
2194
|
+
export declare const useIsVisible: <T extends HTMLElement>(listRef: React_2.RefObject<HTMLDivElement> | undefined, itemRef?: React_2.Ref<T>, intersectionObserverInitOptions?: IntersectionObserverInit) => [boolean, React_2.RefObject<T>];
|
|
2190
2195
|
|
|
2191
2196
|
/**
|
|
2192
2197
|
* Attach listeners for the given presets to the given ref.
|