@telicent-oss/ds 0.14.0 → 0.15.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/dist/ds.js +67 -104
- package/dist/ds.umd.cjs +66 -103
- package/dist/src/v1/components/inputs/Button/Button.stories.d.ts +3 -0
- package/dist/src/v1/theme/ThemeViewer.d.ts +10 -0
- package/dist/src/v1/theme/ThemeViewer.stories.d.ts +7 -0
- package/dist/src/v1/theme/ThemeViewer.test.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +18 -7
- package/dist/src/test-utils.d.ts +0 -59
package/dist/ds.umd.cjs
CHANGED
|
@@ -18,7 +18,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
var _a, _b, _c, _focused, _cleanup, _setup, _d, _online, _cleanup2, _setup2, _e, _gcTimeout, _f, _initialState, _revertState, _cache, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _g, _queries, _h, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _i, _mutations, _scopes, _mutationId, _j, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _k,
|
|
21
|
+
var _a, _b, _c, _focused, _cleanup, _setup, _d, _online, _cleanup2, _setup2, _e, _gcTimeout, _f, _initialState, _revertState, _cache, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _g, _queries, _h, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _i, _mutations, _scopes, _mutationId, _j, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _k, _client2, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _currentThenable, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _QueryObserver_instances, executeFetch_fn, updateStaleTimeout_fn, computeRefetchInterval_fn, updateRefetchInterval_fn, updateTimers_fn, clearStaleTimeout_fn, clearRefetchInterval_fn, updateQuery_fn, notify_fn, _l;
|
|
22
22
|
function _interopNamespaceDefault(e) {
|
|
23
23
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
24
24
|
if (e) {
|
|
@@ -6264,16 +6264,32 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
6264
6264
|
...processCreateParams(params)
|
|
6265
6265
|
});
|
|
6266
6266
|
};
|
|
6267
|
-
function
|
|
6267
|
+
function cleanParams(params, data) {
|
|
6268
|
+
const p2 = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
|
|
6269
|
+
const p22 = typeof p2 === "string" ? { message: p2 } : p2;
|
|
6270
|
+
return p22;
|
|
6271
|
+
}
|
|
6272
|
+
function custom(check, _params = {}, fatal) {
|
|
6268
6273
|
if (check)
|
|
6269
6274
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
6270
6275
|
var _a2, _b2;
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
|
|
6276
|
+
const r2 = check(data);
|
|
6277
|
+
if (r2 instanceof Promise) {
|
|
6278
|
+
return r2.then((r3) => {
|
|
6279
|
+
var _a3, _b3;
|
|
6280
|
+
if (!r3) {
|
|
6281
|
+
const params = cleanParams(_params, data);
|
|
6282
|
+
const _fatal = (_b3 = (_a3 = params.fatal) !== null && _a3 !== void 0 ? _a3 : fatal) !== null && _b3 !== void 0 ? _b3 : true;
|
|
6283
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
6284
|
+
}
|
|
6285
|
+
});
|
|
6286
|
+
}
|
|
6287
|
+
if (!r2) {
|
|
6288
|
+
const params = cleanParams(_params, data);
|
|
6289
|
+
const _fatal = (_b2 = (_a2 = params.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b2 !== void 0 ? _b2 : true;
|
|
6290
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
6276
6291
|
}
|
|
6292
|
+
return;
|
|
6277
6293
|
});
|
|
6278
6294
|
return ZodAny.create();
|
|
6279
6295
|
}
|
|
@@ -6557,7 +6573,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
6557
6573
|
if ("object" != typeof t2 || !t2) return t2;
|
|
6558
6574
|
var e = t2[Symbol.toPrimitive];
|
|
6559
6575
|
if (void 0 !== e) {
|
|
6560
|
-
var i = e.call(t2, r2
|
|
6576
|
+
var i = e.call(t2, r2);
|
|
6561
6577
|
if ("object" != typeof i) return i;
|
|
6562
6578
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6563
6579
|
}
|
|
@@ -6644,7 +6660,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
6644
6660
|
}
|
|
6645
6661
|
}, A = {
|
|
6646
6662
|
GROUP: "duotone-group",
|
|
6647
|
-
SWAP_OPACITY: "swap-opacity",
|
|
6648
6663
|
PRIMARY: "primary",
|
|
6649
6664
|
SECONDARY: "secondary"
|
|
6650
6665
|
}, P = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone"];
|
|
@@ -6778,17 +6793,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
6778
6793
|
var Ct = {
|
|
6779
6794
|
kit: {
|
|
6780
6795
|
"fa-kit": "fak"
|
|
6781
|
-
},
|
|
6782
|
-
"kit-duotone": {
|
|
6783
|
-
"fa-kit-duotone": "fakd"
|
|
6784
6796
|
}
|
|
6785
6797
|
};
|
|
6786
6798
|
var Lt = ["fak", "fakd"], Wt = {
|
|
6787
6799
|
kit: {
|
|
6788
6800
|
fak: "fa-kit"
|
|
6789
|
-
},
|
|
6790
|
-
"kit-duotone": {
|
|
6791
|
-
fakd: "fa-kit-duotone"
|
|
6792
6801
|
}
|
|
6793
6802
|
};
|
|
6794
6803
|
var Et = {
|
|
@@ -8073,7 +8082,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
8073
8082
|
}
|
|
8074
8083
|
return new Promise((resolve, reject) => {
|
|
8075
8084
|
if (givenPrefix === "fa") {
|
|
8076
|
-
const shim = byOldName(iconName);
|
|
8085
|
+
const shim = byOldName(iconName) || {};
|
|
8077
8086
|
iconName = shim.iconName || iconName;
|
|
8078
8087
|
prefix2 = shim.prefix || prefix2;
|
|
8079
8088
|
}
|
|
@@ -10673,100 +10682,48 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
10673
10682
|
white: "#fff"
|
|
10674
10683
|
};
|
|
10675
10684
|
const red = {
|
|
10676
|
-
50: "#ffebee",
|
|
10677
|
-
100: "#ffcdd2",
|
|
10678
|
-
200: "#ef9a9a",
|
|
10679
10685
|
300: "#e57373",
|
|
10680
10686
|
400: "#ef5350",
|
|
10681
10687
|
500: "#f44336",
|
|
10682
|
-
600: "#e53935",
|
|
10683
10688
|
700: "#d32f2f",
|
|
10684
|
-
800: "#c62828"
|
|
10685
|
-
900: "#b71c1c",
|
|
10686
|
-
A100: "#ff8a80",
|
|
10687
|
-
A200: "#ff5252",
|
|
10688
|
-
A400: "#ff1744",
|
|
10689
|
-
A700: "#d50000"
|
|
10689
|
+
800: "#c62828"
|
|
10690
10690
|
};
|
|
10691
10691
|
const purple = {
|
|
10692
10692
|
50: "#f3e5f5",
|
|
10693
|
-
100: "#e1bee7",
|
|
10694
10693
|
200: "#ce93d8",
|
|
10695
10694
|
300: "#ba68c8",
|
|
10696
10695
|
400: "#ab47bc",
|
|
10697
10696
|
500: "#9c27b0",
|
|
10698
|
-
|
|
10699
|
-
700: "#7b1fa2",
|
|
10700
|
-
800: "#6a1b9a",
|
|
10701
|
-
900: "#4a148c",
|
|
10702
|
-
A100: "#ea80fc",
|
|
10703
|
-
A200: "#e040fb",
|
|
10704
|
-
A400: "#d500f9",
|
|
10705
|
-
A700: "#aa00ff"
|
|
10697
|
+
700: "#7b1fa2"
|
|
10706
10698
|
};
|
|
10707
10699
|
const blue = {
|
|
10708
10700
|
50: "#e3f2fd",
|
|
10709
|
-
100: "#bbdefb",
|
|
10710
10701
|
200: "#90caf9",
|
|
10711
|
-
300: "#64b5f6",
|
|
10712
10702
|
400: "#42a5f5",
|
|
10713
|
-
500: "#2196f3",
|
|
10714
|
-
600: "#1e88e5",
|
|
10715
10703
|
700: "#1976d2",
|
|
10716
|
-
800: "#1565c0"
|
|
10717
|
-
900: "#0d47a1",
|
|
10718
|
-
A100: "#82b1ff",
|
|
10719
|
-
A200: "#448aff",
|
|
10720
|
-
A400: "#2979ff",
|
|
10721
|
-
A700: "#2962ff"
|
|
10704
|
+
800: "#1565c0"
|
|
10722
10705
|
};
|
|
10723
10706
|
const lightBlue = {
|
|
10724
|
-
50: "#e1f5fe",
|
|
10725
|
-
100: "#b3e5fc",
|
|
10726
|
-
200: "#81d4fa",
|
|
10727
10707
|
300: "#4fc3f7",
|
|
10728
10708
|
400: "#29b6f6",
|
|
10729
10709
|
500: "#03a9f4",
|
|
10730
|
-
600: "#039be5",
|
|
10731
10710
|
700: "#0288d1",
|
|
10732
|
-
|
|
10733
|
-
900: "#01579b",
|
|
10734
|
-
A100: "#80d8ff",
|
|
10735
|
-
A200: "#40c4ff",
|
|
10736
|
-
A400: "#00b0ff",
|
|
10737
|
-
A700: "#0091ea"
|
|
10711
|
+
900: "#01579b"
|
|
10738
10712
|
};
|
|
10739
10713
|
const green = {
|
|
10740
|
-
50: "#e8f5e9",
|
|
10741
|
-
100: "#c8e6c9",
|
|
10742
|
-
200: "#a5d6a7",
|
|
10743
10714
|
300: "#81c784",
|
|
10744
10715
|
400: "#66bb6a",
|
|
10745
10716
|
500: "#4caf50",
|
|
10746
|
-
600: "#43a047",
|
|
10747
10717
|
700: "#388e3c",
|
|
10748
10718
|
800: "#2e7d32",
|
|
10749
|
-
900: "#1b5e20"
|
|
10750
|
-
A100: "#b9f6ca",
|
|
10751
|
-
A200: "#69f0ae",
|
|
10752
|
-
A400: "#00e676",
|
|
10753
|
-
A700: "#00c853"
|
|
10719
|
+
900: "#1b5e20"
|
|
10754
10720
|
};
|
|
10755
10721
|
const orange = {
|
|
10756
|
-
50: "#fff3e0",
|
|
10757
|
-
100: "#ffe0b2",
|
|
10758
|
-
200: "#ffcc80",
|
|
10759
10722
|
300: "#ffb74d",
|
|
10760
10723
|
400: "#ffa726",
|
|
10761
10724
|
500: "#ff9800",
|
|
10762
|
-
600: "#fb8c00",
|
|
10763
10725
|
700: "#f57c00",
|
|
10764
|
-
|
|
10765
|
-
900: "#e65100",
|
|
10766
|
-
A100: "#ffd180",
|
|
10767
|
-
A200: "#ffab40",
|
|
10768
|
-
A400: "#ff9100",
|
|
10769
|
-
A700: "#ff6d00"
|
|
10726
|
+
900: "#e65100"
|
|
10770
10727
|
};
|
|
10771
10728
|
const grey = {
|
|
10772
10729
|
50: "#fafafa",
|
|
@@ -10800,7 +10757,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
10800
10757
|
if (null == r2) return {};
|
|
10801
10758
|
var t2 = {};
|
|
10802
10759
|
for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
|
|
10803
|
-
if (e.
|
|
10760
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
10804
10761
|
t2[n] = r2[n];
|
|
10805
10762
|
}
|
|
10806
10763
|
return t2;
|
|
@@ -10823,7 +10780,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
10823
10780
|
var JSX;
|
|
10824
10781
|
/* @__PURE__ */ (function(_JSX) {
|
|
10825
10782
|
})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
|
|
10826
|
-
})(jsx);
|
|
10783
|
+
})(jsx || (jsx = {}));
|
|
10827
10784
|
var Global = /* @__PURE__ */ withEmotionCache(function(props, cache2) {
|
|
10828
10785
|
var styles2 = props.styles;
|
|
10829
10786
|
var serialized = serializeStyles([styles2], void 0, React__namespace.useContext(ThemeContext$1));
|
|
@@ -15497,7 +15454,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
15497
15454
|
if (null == r2) return {};
|
|
15498
15455
|
var t2 = {};
|
|
15499
15456
|
for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
|
|
15500
|
-
if (e.
|
|
15457
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
15501
15458
|
t2[n] = r2[n];
|
|
15502
15459
|
}
|
|
15503
15460
|
return t2;
|
|
@@ -20246,7 +20203,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
20246
20203
|
var popperOffsets2 = computeOffsets({
|
|
20247
20204
|
reference: referenceClientRect,
|
|
20248
20205
|
element: popperRect,
|
|
20249
|
-
strategy: "absolute",
|
|
20250
20206
|
placement
|
|
20251
20207
|
});
|
|
20252
20208
|
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets2));
|
|
@@ -20493,7 +20449,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
20493
20449
|
state.modifiersData[name] = computeOffsets({
|
|
20494
20450
|
reference: state.rects.reference,
|
|
20495
20451
|
element: state.rects.popper,
|
|
20496
|
-
strategy: "absolute",
|
|
20497
20452
|
placement: state.placement
|
|
20498
20453
|
});
|
|
20499
20454
|
}
|
|
@@ -30730,7 +30685,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
30730
30685
|
}
|
|
30731
30686
|
}
|
|
30732
30687
|
}
|
|
30733
|
-
if (!variant) {
|
|
30688
|
+
if (muiFormControl && !variant) {
|
|
30734
30689
|
variant = muiFormControl.variant;
|
|
30735
30690
|
}
|
|
30736
30691
|
const ownerState = _extends({}, props, {
|
|
@@ -39291,7 +39246,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
39291
39246
|
});
|
|
39292
39247
|
const _log2 = /* @__PURE__ */ _interop_require_default(log$2);
|
|
39293
39248
|
function _interop_require_default(obj) {
|
|
39294
|
-
return obj.__esModule ? obj : {
|
|
39249
|
+
return obj && obj.__esModule ? obj : {
|
|
39295
39250
|
default: obj
|
|
39296
39251
|
};
|
|
39297
39252
|
}
|
|
@@ -39788,7 +39743,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
39788
39743
|
})(nodeInterop);
|
|
39789
39744
|
}
|
|
39790
39745
|
function _interop_require_wildcard(obj, nodeInterop) {
|
|
39791
|
-
if (obj.__esModule) {
|
|
39746
|
+
if (obj && obj.__esModule) {
|
|
39792
39747
|
return obj;
|
|
39793
39748
|
}
|
|
39794
39749
|
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
@@ -40845,7 +40800,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
40845
40800
|
});
|
|
40846
40801
|
const _colorNames = /* @__PURE__ */ _interop_require_default(colorNames);
|
|
40847
40802
|
function _interop_require_default(obj) {
|
|
40848
|
-
return obj.__esModule ? obj : {
|
|
40803
|
+
return obj && obj.__esModule ? obj : {
|
|
40849
40804
|
default: obj
|
|
40850
40805
|
};
|
|
40851
40806
|
}
|
|
@@ -43187,7 +43142,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
43187
43142
|
const _configfull = /* @__PURE__ */ _interop_require_default(config_full);
|
|
43188
43143
|
const _featureFlags = featureFlags;
|
|
43189
43144
|
function _interop_require_default(obj) {
|
|
43190
|
-
return obj.__esModule ? obj : {
|
|
43145
|
+
return obj && obj.__esModule ? obj : {
|
|
43191
43146
|
default: obj
|
|
43192
43147
|
};
|
|
43193
43148
|
}
|
|
@@ -44166,6 +44121,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
44166
44121
|
__privateAdd(this, _initialState);
|
|
44167
44122
|
__privateAdd(this, _revertState);
|
|
44168
44123
|
__privateAdd(this, _cache);
|
|
44124
|
+
__privateAdd(this, _client);
|
|
44169
44125
|
__privateAdd(this, _retryer);
|
|
44170
44126
|
__privateAdd(this, _defaultOptions);
|
|
44171
44127
|
__privateAdd(this, _abortSignalConsumed);
|
|
@@ -44173,7 +44129,8 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
44173
44129
|
__privateSet(this, _defaultOptions, config2.defaultOptions);
|
|
44174
44130
|
this.setOptions(config2.options);
|
|
44175
44131
|
this.observers = [];
|
|
44176
|
-
__privateSet(this,
|
|
44132
|
+
__privateSet(this, _client, config2.client);
|
|
44133
|
+
__privateSet(this, _cache, __privateGet(this, _client).getQueryCache());
|
|
44177
44134
|
this.queryKey = config2.queryKey;
|
|
44178
44135
|
this.queryHash = config2.queryHash;
|
|
44179
44136
|
__privateSet(this, _initialState, getDefaultState$1(this.options));
|
|
@@ -44330,6 +44287,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
44330
44287
|
const fetchFn = () => {
|
|
44331
44288
|
const queryFn = ensureQueryFn(this.options, fetchOptions2);
|
|
44332
44289
|
const queryFnContext = {
|
|
44290
|
+
client: __privateGet(this, _client),
|
|
44333
44291
|
queryKey: this.queryKey,
|
|
44334
44292
|
meta: this.meta
|
|
44335
44293
|
};
|
|
@@ -44348,6 +44306,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
44348
44306
|
fetchOptions: fetchOptions2,
|
|
44349
44307
|
options: this.options,
|
|
44350
44308
|
queryKey: this.queryKey,
|
|
44309
|
+
client: __privateGet(this, _client),
|
|
44351
44310
|
state: this.state,
|
|
44352
44311
|
fetchFn
|
|
44353
44312
|
};
|
|
@@ -44430,7 +44389,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
44430
44389
|
}));
|
|
44431
44390
|
return __privateGet(this, _retryer).start();
|
|
44432
44391
|
}
|
|
44433
|
-
}, _initialState = new WeakMap(), _revertState = new WeakMap(), _cache = new WeakMap(), _retryer = new WeakMap(), _defaultOptions = new WeakMap(), _abortSignalConsumed = new WeakMap(), _Query_instances = new WeakSet(), dispatch_fn = function(action) {
|
|
44392
|
+
}, _initialState = new WeakMap(), _revertState = new WeakMap(), _cache = new WeakMap(), _client = new WeakMap(), _retryer = new WeakMap(), _defaultOptions = new WeakMap(), _abortSignalConsumed = new WeakMap(), _Query_instances = new WeakSet(), dispatch_fn = function(action) {
|
|
44434
44393
|
const reducer = (state) => {
|
|
44435
44394
|
switch (action.type) {
|
|
44436
44395
|
case "failed":
|
|
@@ -44548,7 +44507,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
44548
44507
|
let query = this.get(queryHash);
|
|
44549
44508
|
if (!query) {
|
|
44550
44509
|
query = new Query({
|
|
44551
|
-
|
|
44510
|
+
client,
|
|
44552
44511
|
queryKey,
|
|
44553
44512
|
queryHash,
|
|
44554
44513
|
options: client.defaultQueryOptions(options),
|
|
@@ -45010,6 +44969,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
45010
44969
|
return Promise.resolve(data);
|
|
45011
44970
|
}
|
|
45012
44971
|
const queryFnContext = {
|
|
44972
|
+
client: context.client,
|
|
45013
44973
|
queryKey: context.queryKey,
|
|
45014
44974
|
pageParam: param,
|
|
45015
44975
|
direction: previous ? "backward" : "forward",
|
|
@@ -45055,6 +45015,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
45055
45015
|
_a3,
|
|
45056
45016
|
fetchFn,
|
|
45057
45017
|
{
|
|
45018
|
+
client: context.client,
|
|
45058
45019
|
queryKey: context.queryKey,
|
|
45059
45020
|
meta: context.options.meta,
|
|
45060
45021
|
signal: context.signal
|
|
@@ -45364,7 +45325,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
45364
45325
|
constructor(client, options) {
|
|
45365
45326
|
super();
|
|
45366
45327
|
__privateAdd(this, _QueryObserver_instances);
|
|
45367
|
-
__privateAdd(this,
|
|
45328
|
+
__privateAdd(this, _client2);
|
|
45368
45329
|
__privateAdd(this, _currentQuery);
|
|
45369
45330
|
__privateAdd(this, _currentQueryInitialState);
|
|
45370
45331
|
__privateAdd(this, _currentResult);
|
|
@@ -45382,7 +45343,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
45382
45343
|
__privateAdd(this, _currentRefetchInterval);
|
|
45383
45344
|
__privateAdd(this, _trackedProps, /* @__PURE__ */ new Set());
|
|
45384
45345
|
this.options = options;
|
|
45385
|
-
__privateSet(this,
|
|
45346
|
+
__privateSet(this, _client2, client);
|
|
45386
45347
|
__privateSet(this, _selectError, null);
|
|
45387
45348
|
__privateSet(this, _currentThenable, pendingThenable());
|
|
45388
45349
|
if (!this.options.experimental_prefetchInRender) {
|
|
@@ -45435,7 +45396,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
45435
45396
|
setOptions(options, notifyOptions) {
|
|
45436
45397
|
const prevOptions = this.options;
|
|
45437
45398
|
const prevQuery = __privateGet(this, _currentQuery);
|
|
45438
|
-
this.options = __privateGet(this,
|
|
45399
|
+
this.options = __privateGet(this, _client2).defaultQueryOptions(options);
|
|
45439
45400
|
if (this.options.enabled !== void 0 && typeof this.options.enabled !== "boolean" && typeof this.options.enabled !== "function" && typeof resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) !== "boolean") {
|
|
45440
45401
|
throw new Error(
|
|
45441
45402
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
@@ -45444,7 +45405,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
45444
45405
|
__privateMethod(this, _QueryObserver_instances, updateQuery_fn).call(this);
|
|
45445
45406
|
__privateGet(this, _currentQuery).setOptions(this.options);
|
|
45446
45407
|
if (prevOptions._defaulted && !shallowEqualObjects(this.options, prevOptions)) {
|
|
45447
|
-
__privateGet(this,
|
|
45408
|
+
__privateGet(this, _client2).getQueryCache().notify({
|
|
45448
45409
|
type: "observerOptionsUpdated",
|
|
45449
45410
|
query: __privateGet(this, _currentQuery),
|
|
45450
45411
|
observer: this
|
|
@@ -45469,7 +45430,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
45469
45430
|
}
|
|
45470
45431
|
}
|
|
45471
45432
|
getOptimisticResult(options) {
|
|
45472
|
-
const query = __privateGet(this,
|
|
45433
|
+
const query = __privateGet(this, _client2).getQueryCache().build(__privateGet(this, _client2), options);
|
|
45473
45434
|
const result = this.createResult(query, options);
|
|
45474
45435
|
if (shouldAssignObserverCurrentProperties(this, result)) {
|
|
45475
45436
|
__privateSet(this, _currentResult, result);
|
|
@@ -45508,8 +45469,8 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
45508
45469
|
});
|
|
45509
45470
|
}
|
|
45510
45471
|
fetchOptimistic(options) {
|
|
45511
|
-
const defaultedOptions = __privateGet(this,
|
|
45512
|
-
const query = __privateGet(this,
|
|
45472
|
+
const defaultedOptions = __privateGet(this, _client2).defaultQueryOptions(options);
|
|
45473
|
+
const query = __privateGet(this, _client2).getQueryCache().build(__privateGet(this, _client2), defaultedOptions);
|
|
45513
45474
|
return query.fetch().then(() => this.createResult(query, defaultedOptions));
|
|
45514
45475
|
}
|
|
45515
45476
|
fetch(fetchOptions2) {
|
|
@@ -45711,7 +45672,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
45711
45672
|
__privateMethod(this, _QueryObserver_instances, updateTimers_fn).call(this);
|
|
45712
45673
|
}
|
|
45713
45674
|
}
|
|
45714
|
-
},
|
|
45675
|
+
}, _client2 = new WeakMap(), _currentQuery = new WeakMap(), _currentQueryInitialState = new WeakMap(), _currentResult = new WeakMap(), _currentResultState = new WeakMap(), _currentResultOptions = new WeakMap(), _currentThenable = new WeakMap(), _selectError = new WeakMap(), _selectFn = new WeakMap(), _selectResult = new WeakMap(), _lastQueryWithDefinedData = new WeakMap(), _staleTimeoutId = new WeakMap(), _refetchIntervalId = new WeakMap(), _currentRefetchInterval = new WeakMap(), _trackedProps = new WeakMap(), _QueryObserver_instances = new WeakSet(), executeFetch_fn = function(fetchOptions2) {
|
|
45715
45676
|
__privateMethod(this, _QueryObserver_instances, updateQuery_fn).call(this);
|
|
45716
45677
|
let promise = __privateGet(this, _currentQuery).fetch(
|
|
45717
45678
|
this.options,
|
|
@@ -45764,7 +45725,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
45764
45725
|
__privateSet(this, _refetchIntervalId, void 0);
|
|
45765
45726
|
}
|
|
45766
45727
|
}, updateQuery_fn = function() {
|
|
45767
|
-
const query = __privateGet(this,
|
|
45728
|
+
const query = __privateGet(this, _client2).getQueryCache().build(__privateGet(this, _client2), this.options);
|
|
45768
45729
|
if (query === __privateGet(this, _currentQuery)) {
|
|
45769
45730
|
return;
|
|
45770
45731
|
}
|
|
@@ -45782,7 +45743,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
45782
45743
|
listener2(__privateGet(this, _currentResult));
|
|
45783
45744
|
});
|
|
45784
45745
|
}
|
|
45785
|
-
__privateGet(this,
|
|
45746
|
+
__privateGet(this, _client2).getQueryCache().notify({
|
|
45786
45747
|
query: __privateGet(this, _currentQuery),
|
|
45787
45748
|
type: "observerResultsUpdated"
|
|
45788
45749
|
});
|
|
@@ -45878,9 +45839,10 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
45878
45839
|
result,
|
|
45879
45840
|
errorResetBoundary,
|
|
45880
45841
|
throwOnError,
|
|
45881
|
-
query
|
|
45842
|
+
query,
|
|
45843
|
+
suspense
|
|
45882
45844
|
}) => {
|
|
45883
|
-
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && shouldThrowError(throwOnError, [result.error, query]);
|
|
45845
|
+
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
|
|
45884
45846
|
};
|
|
45885
45847
|
var ensureSuspenseTimers = (defaultedOptions) => {
|
|
45886
45848
|
const originalStaleTime = defaultedOptions.staleTime;
|
|
@@ -45948,7 +45910,8 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
45948
45910
|
result,
|
|
45949
45911
|
errorResetBoundary,
|
|
45950
45912
|
throwOnError: defaultedOptions.throwOnError,
|
|
45951
|
-
query: client.getQueryCache().get(defaultedOptions.queryHash)
|
|
45913
|
+
query: client.getQueryCache().get(defaultedOptions.queryHash),
|
|
45914
|
+
suspense: defaultedOptions.suspense
|
|
45952
45915
|
})) {
|
|
45953
45916
|
throw result.error;
|
|
45954
45917
|
}
|
|
@@ -58031,7 +57994,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
58031
57994
|
})(nodeInterop);
|
|
58032
57995
|
}
|
|
58033
57996
|
function _interopRequireWildcard$1(obj, nodeInterop) {
|
|
58034
|
-
if (obj.__esModule) {
|
|
57997
|
+
if (obj && obj.__esModule) {
|
|
58035
57998
|
return obj;
|
|
58036
57999
|
}
|
|
58037
58000
|
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
@@ -58417,7 +58380,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
58417
58380
|
if (typeof input !== "object" || input === null) return input;
|
|
58418
58381
|
var prim = input[Symbol.toPrimitive];
|
|
58419
58382
|
if (prim !== void 0) {
|
|
58420
|
-
var res = prim.call(input, hint
|
|
58383
|
+
var res = prim.call(input, hint);
|
|
58421
58384
|
if (typeof res !== "object") return res;
|
|
58422
58385
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
58423
58386
|
}
|
|
@@ -58832,7 +58795,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
58832
58795
|
if (typeof input !== "object" || input === null) return input;
|
|
58833
58796
|
var prim = input[Symbol.toPrimitive];
|
|
58834
58797
|
if (prim !== void 0) {
|
|
58835
|
-
var res = prim.call(input, hint
|
|
58798
|
+
var res = prim.call(input, hint);
|
|
58836
58799
|
if (typeof res !== "object") return res;
|
|
58837
58800
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
58838
58801
|
}
|
|
@@ -318,7 +318,10 @@ export default meta;
|
|
|
318
318
|
type Story = StoryObj<typeof meta>;
|
|
319
319
|
export declare const Primary: Story;
|
|
320
320
|
export declare const Secondary: Story;
|
|
321
|
+
export declare const DisableElevation: Story;
|
|
321
322
|
export declare const Tertiary: Story;
|
|
323
|
+
export declare const Link: Story;
|
|
324
|
+
export declare const Text: Story;
|
|
322
325
|
export declare const Sizing: Story;
|
|
323
326
|
export declare const WithIconsAndLabel: Story;
|
|
324
327
|
export declare const FullWidth: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ThemeViewerProps {
|
|
4
|
+
theme: Record<string, any>;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A bit like JSON.stringify(), but with colour swatches
|
|
8
|
+
*/
|
|
9
|
+
declare const ThemeViewer: React.FC<ThemeViewerProps>;
|
|
10
|
+
export default ThemeViewer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|