@redsift/design-system 8.0.0-alpha.8 → 8.0.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/index.d.ts +20 -12
- package/index.js +735 -350
- package/index.js.map +1 -1
- package/package.json +12 -10
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I18nProvider, useLocalizedStringFormatter,
|
|
1
|
+
import { I18nProvider, useLocalizedStringFormatter, useFocusRing, useNumberFormatter, useFocusWithin } from 'react-aria';
|
|
2
2
|
export { I18nProvider, SSRProvider } from 'react-aria';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import React__default, { useState, useEffect, useContext,
|
|
4
|
+
import React__default, { useState, useEffect, useContext, useRef, useMemo, useCallback, forwardRef, useReducer, useLayoutEffect, useId as useId$1 } from 'react';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { mdiClose, mdiAlert, mdiCheckCircle, mdiAlertCircle, mdiInformation, mdiMenu, mdiMenuOpen, mdiChevronDown, mdiChevronRight, mdiChevronUp, mdiCheckboxMarked, mdiMinusBox, mdiCheckboxBlankOutline, mdiPageLast, mdiKeyboardCaps, mdiRadioboxMarked, mdiRadioboxBlank } from '@redsift/icons';
|
|
7
7
|
import styled, { css, keyframes } from 'styled-components';
|
|
@@ -588,22 +588,83 @@ const useBoundingClientRect = (ref, deps) => {
|
|
|
588
588
|
// SSR case multiple copies of React Aria is not supported.
|
|
589
589
|
const $704cf1d3b684cc5c$var$defaultContext = {
|
|
590
590
|
prefix: String(Math.round(Math.random() * 10000000000)),
|
|
591
|
-
current: 0
|
|
591
|
+
current: 0,
|
|
592
|
+
isSSR: false
|
|
592
593
|
};
|
|
593
594
|
const $704cf1d3b684cc5c$var$SSRContext = /*#__PURE__*/ (React__default).createContext($704cf1d3b684cc5c$var$defaultContext);
|
|
595
|
+
let $704cf1d3b684cc5c$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
596
|
+
let $704cf1d3b684cc5c$var$componentIds = new WeakMap();
|
|
597
|
+
function $704cf1d3b684cc5c$var$useCounter(isDisabled = false) {
|
|
598
|
+
let ctx = (useContext)($704cf1d3b684cc5c$var$SSRContext);
|
|
599
|
+
let ref = (useRef)(null);
|
|
600
|
+
// eslint-disable-next-line rulesdir/pure-render
|
|
601
|
+
if (ref.current === null && !isDisabled) {
|
|
602
|
+
var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner;
|
|
603
|
+
// In strict mode, React renders components twice, and the ref will be reset to null on the second render.
|
|
604
|
+
// This means our id counter will be incremented twice instead of once. This is a problem because on the
|
|
605
|
+
// server, components are only rendered once and so ids generated on the server won't match the client.
|
|
606
|
+
// In React 18, useId was introduced to solve this, but it is not available in older versions. So to solve this
|
|
607
|
+
// we need to use some React internals to access the underlying Fiber instance, which is stable between renders.
|
|
608
|
+
// This is exposed as ReactCurrentOwner in development, which is all we need since StrictMode only runs in development.
|
|
609
|
+
// To ensure that we only increment the global counter once, we store the starting id for this component in
|
|
610
|
+
// a weak map associated with the Fiber. On the second render, we reset the global counter to this value.
|
|
611
|
+
// Since React runs the second render immediately after the first, this is safe.
|
|
612
|
+
// @ts-ignore
|
|
613
|
+
let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = (React__default).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
|
|
614
|
+
if (currentOwner) {
|
|
615
|
+
let prevComponentValue = $704cf1d3b684cc5c$var$componentIds.get(currentOwner);
|
|
616
|
+
if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.
|
|
617
|
+
$704cf1d3b684cc5c$var$componentIds.set(currentOwner, {
|
|
618
|
+
id: ctx.current,
|
|
619
|
+
state: currentOwner.memoizedState
|
|
620
|
+
});
|
|
621
|
+
else if (currentOwner.memoizedState !== prevComponentValue.state) {
|
|
622
|
+
// On the second render, the memoizedState gets reset by React.
|
|
623
|
+
// Reset the counter, and remove from the weak map so we don't
|
|
624
|
+
// do this for subsequent useId calls.
|
|
625
|
+
ctx.current = prevComponentValue.id;
|
|
626
|
+
$704cf1d3b684cc5c$var$componentIds.delete(currentOwner);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
// eslint-disable-next-line rulesdir/pure-render
|
|
630
|
+
ref.current = ++ctx.current;
|
|
631
|
+
}
|
|
632
|
+
// eslint-disable-next-line rulesdir/pure-render
|
|
633
|
+
return ref.current;
|
|
634
|
+
}
|
|
635
|
+
function $704cf1d3b684cc5c$var$useLegacySSRSafeId(defaultId) {
|
|
636
|
+
let ctx = (useContext)($704cf1d3b684cc5c$var$SSRContext);
|
|
637
|
+
// If we are rendering in a non-DOM environment, and there's no SSRProvider,
|
|
638
|
+
// provide a warning to hint to the developer to add one.
|
|
639
|
+
if (ctx === $704cf1d3b684cc5c$var$defaultContext && !$704cf1d3b684cc5c$var$canUseDOM) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
640
|
+
let counter = $704cf1d3b684cc5c$var$useCounter(!!defaultId);
|
|
641
|
+
return defaultId || `react-aria${ctx.prefix}-${counter}`;
|
|
642
|
+
}
|
|
643
|
+
function $704cf1d3b684cc5c$var$useModernSSRSafeId(defaultId) {
|
|
644
|
+
// @ts-ignore
|
|
645
|
+
let id = (React__default).useId();
|
|
646
|
+
let [didSSR] = (useState)($704cf1d3b684cc5c$export$535bd6ca7f90a273());
|
|
647
|
+
let prefix = didSSR ? "react-aria" : `react-aria${$704cf1d3b684cc5c$var$defaultContext.prefix}`;
|
|
648
|
+
return defaultId || `${prefix}-${id}`;
|
|
649
|
+
}
|
|
650
|
+
typeof (React__default)["useId"] === "function" ? $704cf1d3b684cc5c$var$useModernSSRSafeId : $704cf1d3b684cc5c$var$useLegacySSRSafeId;
|
|
651
|
+
function $704cf1d3b684cc5c$var$getSnapshot() {
|
|
652
|
+
return false;
|
|
653
|
+
}
|
|
654
|
+
function $704cf1d3b684cc5c$var$getServerSnapshot() {
|
|
655
|
+
return true;
|
|
656
|
+
}
|
|
657
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
658
|
+
function $704cf1d3b684cc5c$var$subscribe(onStoreChange) {
|
|
659
|
+
// noop
|
|
660
|
+
return ()=>{};
|
|
661
|
+
}
|
|
594
662
|
function $704cf1d3b684cc5c$export$535bd6ca7f90a273() {
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
let [isSSR, setIsSSR] = (useState)(isInSSRContext);
|
|
598
|
-
// If on the client, and the component was initially server rendered,
|
|
599
|
-
// then schedule a layout effect to update the component after hydration.
|
|
600
|
-
if (typeof window !== "undefined" && isInSSRContext) // This if statement technically breaks the rules of hooks, but is safe
|
|
601
|
-
// because the condition never changes after mounting.
|
|
663
|
+
// In React 18, we can use useSyncExternalStore to detect if we're server rendering or hydrating.
|
|
664
|
+
if (typeof (React__default)["useSyncExternalStore"] === "function") return (React__default)["useSyncExternalStore"]($704cf1d3b684cc5c$var$subscribe, $704cf1d3b684cc5c$var$getSnapshot, $704cf1d3b684cc5c$var$getServerSnapshot);
|
|
602
665
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
603
|
-
(
|
|
604
|
-
|
|
605
|
-
}, []);
|
|
606
|
-
return isSSR;
|
|
666
|
+
let cur = (useContext)($704cf1d3b684cc5c$var$SSRContext);
|
|
667
|
+
return cur.isSSR;
|
|
607
668
|
}
|
|
608
669
|
|
|
609
670
|
/*
|
|
@@ -856,6 +917,121 @@ function $fb18d541ea1ad717$var$getResolvedHourCycle(locale, options) {
|
|
|
856
917
|
throw new Error("Unexpected hour cycle result");
|
|
857
918
|
}
|
|
858
919
|
|
|
920
|
+
/*
|
|
921
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
922
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
923
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
924
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
925
|
+
*
|
|
926
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
927
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
928
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
929
|
+
* governing permissions and limitations under the License.
|
|
930
|
+
*/ /*
|
|
931
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
932
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
933
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
934
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
935
|
+
*
|
|
936
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
937
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
938
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
939
|
+
* governing permissions and limitations under the License.
|
|
940
|
+
*/
|
|
941
|
+
/*
|
|
942
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
943
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
944
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
945
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
946
|
+
*
|
|
947
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
948
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
949
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
950
|
+
* governing permissions and limitations under the License.
|
|
951
|
+
*/
|
|
952
|
+
typeof window !== "undefined" ? (React__default).useLayoutEffect : ()=>{};
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
/*
|
|
956
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
957
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
958
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
959
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
960
|
+
*
|
|
961
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
962
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
963
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
964
|
+
* governing permissions and limitations under the License.
|
|
965
|
+
*/ // We store a global list of elements that are currently transitioning,
|
|
966
|
+
// mapped to a set of CSS properties that are transitioning for that element.
|
|
967
|
+
// This is necessary rather than a simple count of transitions because of browser
|
|
968
|
+
// bugs, e.g. Chrome sometimes fires both transitionend and transitioncancel rather
|
|
969
|
+
// than one or the other. So we need to track what's actually transitioning so that
|
|
970
|
+
// we can ignore these duplicate events.
|
|
971
|
+
let $bbed8b41f857bcc0$var$transitionsByElement = new Map();
|
|
972
|
+
// A list of callbacks to call once there are no transitioning elements.
|
|
973
|
+
let $bbed8b41f857bcc0$var$transitionCallbacks = new Set();
|
|
974
|
+
function $bbed8b41f857bcc0$var$setupGlobalEvents() {
|
|
975
|
+
if (typeof window === "undefined") return;
|
|
976
|
+
let onTransitionStart = (e)=>{
|
|
977
|
+
// Add the transitioning property to the list for this element.
|
|
978
|
+
let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
|
|
979
|
+
if (!transitions) {
|
|
980
|
+
transitions = new Set();
|
|
981
|
+
$bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions);
|
|
982
|
+
// The transitioncancel event must be registered on the element itself, rather than as a global
|
|
983
|
+
// event. This enables us to handle when the node is deleted from the document while it is transitioning.
|
|
984
|
+
// In that case, the cancel event would have nowhere to bubble to so we need to handle it directly.
|
|
985
|
+
e.target.addEventListener("transitioncancel", onTransitionEnd);
|
|
986
|
+
}
|
|
987
|
+
transitions.add(e.propertyName);
|
|
988
|
+
};
|
|
989
|
+
let onTransitionEnd = (e)=>{
|
|
990
|
+
// Remove property from list of transitioning properties.
|
|
991
|
+
let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
|
|
992
|
+
if (!properties) return;
|
|
993
|
+
properties.delete(e.propertyName);
|
|
994
|
+
// If empty, remove transitioncancel event, and remove the element from the list of transitioning elements.
|
|
995
|
+
if (properties.size === 0) {
|
|
996
|
+
e.target.removeEventListener("transitioncancel", onTransitionEnd);
|
|
997
|
+
$bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);
|
|
998
|
+
}
|
|
999
|
+
// If no transitioning elements, call all of the queued callbacks.
|
|
1000
|
+
if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {
|
|
1001
|
+
for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks)cb();
|
|
1002
|
+
$bbed8b41f857bcc0$var$transitionCallbacks.clear();
|
|
1003
|
+
}
|
|
1004
|
+
};
|
|
1005
|
+
document.body.addEventListener("transitionrun", onTransitionStart);
|
|
1006
|
+
document.body.addEventListener("transitionend", onTransitionEnd);
|
|
1007
|
+
}
|
|
1008
|
+
if (typeof document !== "undefined") {
|
|
1009
|
+
if (document.readyState !== "loading") $bbed8b41f857bcc0$var$setupGlobalEvents();
|
|
1010
|
+
else document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents);
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
/*
|
|
1016
|
+
* Copyright 2023 Adobe. All rights reserved.
|
|
1017
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1018
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1019
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1020
|
+
*
|
|
1021
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1022
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1023
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1024
|
+
* governing permissions and limitations under the License.
|
|
1025
|
+
*/ /* eslint-disable rulesdir/pure-render */
|
|
1026
|
+
function $5a387cc49350e6db$export$722debc0e56fea39(value, isEqual) {
|
|
1027
|
+
// Using a ref during render is ok here because it's only an optimization – both values are equivalent.
|
|
1028
|
+
// If a render is thrown away, it'll still work the same no matter if the next render is the same or not.
|
|
1029
|
+
let lastValue = (useRef)(null);
|
|
1030
|
+
if (value && lastValue.current && isEqual(value, lastValue.current)) value = lastValue.current;
|
|
1031
|
+
lastValue.current = value;
|
|
1032
|
+
return value;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
859
1035
|
/*
|
|
860
1036
|
* Copyright 2020 Adobe. All rights reserved.
|
|
861
1037
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -893,7 +1069,7 @@ try {
|
|
|
893
1069
|
unit: "degree"
|
|
894
1070
|
}).resolvedOptions().style === "unit";
|
|
895
1071
|
// eslint-disable-next-line no-empty
|
|
896
|
-
} catch (
|
|
1072
|
+
} catch (e) {}
|
|
897
1073
|
// Polyfill for units since Safari doesn't support them yet. See https://bugs.webkit.org/show_bug.cgi?id=215438.
|
|
898
1074
|
// Currently only polyfilling the unit degree in narrow format for ColorSlider in our supported locales.
|
|
899
1075
|
// Values were determined by switching to each locale manually in Chrome.
|
|
@@ -1231,11 +1407,10 @@ function $33bf17300c498528$export$a2f47a3d2973640(options = {}) {
|
|
|
1231
1407
|
*/
|
|
1232
1408
|
|
|
1233
1409
|
|
|
1410
|
+
|
|
1234
1411
|
function $896ba0a80a8f4d36$export$85fd5fdf27bacc79(options) {
|
|
1235
1412
|
// Reuse last options object if it is shallowly equal, which allows the useMemo result to also be reused.
|
|
1236
|
-
|
|
1237
|
-
if (options && lastOptions.current && $896ba0a80a8f4d36$var$isEqual(options, lastOptions.current)) options = lastOptions.current;
|
|
1238
|
-
lastOptions.current = options;
|
|
1413
|
+
options = ($5a387cc49350e6db$export$722debc0e56fea39)(options, $896ba0a80a8f4d36$var$isEqual);
|
|
1239
1414
|
let { locale: locale } = ($18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
|
|
1240
1415
|
return (useMemo)(()=>new ($fb18d541ea1ad717$export$ad991b66133851cf)(locale, options), [
|
|
1241
1416
|
locale,
|
|
@@ -1369,6 +1544,10 @@ const AlertVariant = {
|
|
|
1369
1544
|
info: 'info'
|
|
1370
1545
|
};
|
|
1371
1546
|
|
|
1547
|
+
/**
|
|
1548
|
+
* Component props.
|
|
1549
|
+
*/
|
|
1550
|
+
|
|
1372
1551
|
function ownKeys(object, enumerableOnly) {
|
|
1373
1552
|
var keys = Object.keys(object);
|
|
1374
1553
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1484,6 +1663,14 @@ const IconButtonVariant = {
|
|
|
1484
1663
|
unstyled: 'unstyled'
|
|
1485
1664
|
};
|
|
1486
1665
|
|
|
1666
|
+
/**
|
|
1667
|
+
* Component color.
|
|
1668
|
+
*/
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* Component props.
|
|
1672
|
+
*/
|
|
1673
|
+
|
|
1487
1674
|
/**
|
|
1488
1675
|
* Component size.
|
|
1489
1676
|
*/
|
|
@@ -1495,6 +1682,10 @@ const IconSize = {
|
|
|
1495
1682
|
xlarge: 'xlarge'
|
|
1496
1683
|
};
|
|
1497
1684
|
|
|
1685
|
+
/**
|
|
1686
|
+
* Component props.
|
|
1687
|
+
*/
|
|
1688
|
+
|
|
1498
1689
|
const baseLayout = css`
|
|
1499
1690
|
${_ref => {
|
|
1500
1691
|
let {
|
|
@@ -1684,6 +1875,22 @@ const baseContainer = css`
|
|
|
1684
1875
|
${baseFlexbox}
|
|
1685
1876
|
${baseGrid}
|
|
1686
1877
|
`;
|
|
1878
|
+
const focusRing = css`
|
|
1879
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
1880
|
+
:focus-visible {
|
|
1881
|
+
outline: 2px solid var(--redsift-color-default-primary);
|
|
1882
|
+
transition: outline-offset 75ms ease-out;
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
:not(:active):focus-visible {
|
|
1886
|
+
transition-duration: 0.25s;
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
:not(:active):focus-visible {
|
|
1891
|
+
outline-offset: 0.2rem;
|
|
1892
|
+
}
|
|
1893
|
+
`;
|
|
1687
1894
|
|
|
1688
1895
|
/**
|
|
1689
1896
|
* Component style.
|
|
@@ -1870,6 +2077,14 @@ const ButtonVariant = {
|
|
|
1870
2077
|
unstyled: 'unstyled'
|
|
1871
2078
|
};
|
|
1872
2079
|
|
|
2080
|
+
/**
|
|
2081
|
+
* Component color.
|
|
2082
|
+
*/
|
|
2083
|
+
|
|
2084
|
+
/**
|
|
2085
|
+
* Component props.
|
|
2086
|
+
*/
|
|
2087
|
+
|
|
1873
2088
|
/**
|
|
1874
2089
|
* Component style.
|
|
1875
2090
|
*/
|
|
@@ -1890,29 +2105,45 @@ const StyledButton = styled.button`
|
|
|
1890
2105
|
text-transform: var(--redsift-typography-button-text-transform);
|
|
1891
2106
|
|
|
1892
2107
|
${_ref => {
|
|
2108
|
+
let {
|
|
2109
|
+
$isLoading
|
|
2110
|
+
} = _ref;
|
|
2111
|
+
return $isLoading ? css`
|
|
2112
|
+
& > span {
|
|
2113
|
+
visibility: hidden;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
& > .redsift-shield {
|
|
2117
|
+
position: absolute;
|
|
2118
|
+
}
|
|
2119
|
+
` : '';
|
|
2120
|
+
}}
|
|
2121
|
+
|
|
2122
|
+
${_ref2 => {
|
|
1893
2123
|
let {
|
|
1894
2124
|
$variant,
|
|
1895
2125
|
$color,
|
|
1896
2126
|
$isActive,
|
|
1897
|
-
$isDisabled
|
|
1898
|
-
|
|
2127
|
+
$isDisabled,
|
|
2128
|
+
$isHovered
|
|
2129
|
+
} = _ref2;
|
|
1899
2130
|
return css`
|
|
1900
2131
|
padding: ${$variant === ButtonVariant.secondary ? '7px 15px' : '8px 16px'};
|
|
1901
2132
|
|
|
1902
2133
|
${$variant === ButtonVariant.secondary ? css`
|
|
1903
|
-
background-color: ${$isActive ? `var(--redsift-color-${$color}-active)` : $isDisabled ? 'var(--redsift-color-neutral-white)' : 'var(--redsift-color-neutral-white)'};
|
|
2134
|
+
background-color: ${$isActive && $isHovered ? `var(--redsift-color-${$color}-active-hover)` : $isActive ? `var(--redsift-color-${$color}-active)` : $isHovered ? `var(--redsift-color-${$color}-hover)` : $isDisabled ? 'var(--redsift-color-neutral-white)' : 'var(--redsift-color-neutral-white)'};
|
|
1904
2135
|
&,
|
|
1905
2136
|
.redsift-icon {
|
|
1906
|
-
color: ${$isDisabled ? 'var(--redsift-color-neutral-midgrey)' : `var(--redsift-color-${$color}-primary)`};
|
|
2137
|
+
color: ${$isHovered ? `var(--redsift-color-${$color}-secondary)` : $isDisabled ? 'var(--redsift-color-neutral-midgrey)' : `var(--redsift-color-${$color}-primary)`};
|
|
1907
2138
|
}
|
|
1908
2139
|
` : $variant === ButtonVariant.unstyled ? css`
|
|
1909
|
-
background-color: ${$isActive ? `var(--redsift-color-${$color}-active)` : $isDisabled ? 'none' : 'none'};
|
|
2140
|
+
background-color: ${$isActive && $isHovered ? `var(--redsift-color-${$color}-active-hover)` : $isActive ? `var(--redsift-color-${$color}-active)` : $isHovered ? `var(--redsift-color-${$color}-hover)` : $isDisabled ? 'none' : 'none'};
|
|
1910
2141
|
&,
|
|
1911
2142
|
.redsift-icon {
|
|
1912
|
-
color: ${$isDisabled ? 'var(--redsift-color-neutral-midgrey)' : `var(--redsift-color-${$color}-primary)`};
|
|
2143
|
+
color: ${$isHovered ? `var(--redsift-color-${$color}-secondary)` : $isDisabled ? 'var(--redsift-color-neutral-midgrey)' : `var(--redsift-color-${$color}-primary)`};
|
|
1913
2144
|
}
|
|
1914
2145
|
` : css`
|
|
1915
|
-
background-color: ${$isActive ? `var(--redsift-color-${$color}-primary-active)` : $isDisabled ? 'var(--redsift-color-neutral-lightgrey)' : `var(--redsift-color-${$color}-primary)`};
|
|
2146
|
+
background-color: ${$isActive && $isHovered ? `var(--redsift-color-${$color}-primary-active-hover)` : $isActive ? `var(--redsift-color-${$color}-primary-active)` : $isHovered ? `var(--redsift-color-${$color}-secondary)` : $isDisabled ? 'var(--redsift-color-neutral-lightgrey)' : `var(--redsift-color-${$color}-primary)`};
|
|
1916
2147
|
&,
|
|
1917
2148
|
.redsift-icon {
|
|
1918
2149
|
color: ${$isDisabled ? 'var(--redsift-color-neutral-midgrey)' : 'var(--redsift-color-neutral-white)'};
|
|
@@ -1930,13 +2161,13 @@ const StyledButton = styled.button`
|
|
|
1930
2161
|
&:focus-visible {
|
|
1931
2162
|
outline: none;
|
|
1932
2163
|
|
|
1933
|
-
${
|
|
2164
|
+
${_ref3 => {
|
|
1934
2165
|
let {
|
|
1935
2166
|
$variant,
|
|
1936
2167
|
$color,
|
|
1937
2168
|
$isActive,
|
|
1938
2169
|
$isDisabled
|
|
1939
|
-
} =
|
|
2170
|
+
} = _ref3;
|
|
1940
2171
|
return css`
|
|
1941
2172
|
cursor: ${$isDisabled ? 'default' : 'pointer'};
|
|
1942
2173
|
|
|
@@ -1970,10 +2201,51 @@ const StyledButton = styled.button`
|
|
|
1970
2201
|
}};
|
|
1971
2202
|
}
|
|
1972
2203
|
|
|
1973
|
-
|
|
2204
|
+
&:active {
|
|
2205
|
+
outline: none;
|
|
2206
|
+
|
|
2207
|
+
${_ref4 => {
|
|
2208
|
+
let {
|
|
2209
|
+
$variant,
|
|
2210
|
+
$color,
|
|
2211
|
+
$isHovered,
|
|
2212
|
+
$isDisabled
|
|
2213
|
+
} = _ref4;
|
|
2214
|
+
return css`
|
|
2215
|
+
${$variant === ButtonVariant.secondary ? css`
|
|
2216
|
+
background-color: ${$isHovered ? `var(--redsift-color-${$color}-active-hover)` : $isDisabled ? 'var(--redsift-color-neutral-white)' : `var(--redsift-color-${$color}-active)`};
|
|
2217
|
+
&,
|
|
2218
|
+
.redsift-icon {
|
|
2219
|
+
color: ${$isDisabled ? 'var(--redsift-color-neutral-midgrey)' : `var(--redsift-color-${$color}-secondary)`};
|
|
2220
|
+
}
|
|
2221
|
+
` : $variant === ButtonVariant.unstyled ? css`
|
|
2222
|
+
background-color: ${$isHovered ? `var(--redsift-color-${$color}-active-hover)` : $isDisabled ? 'none' : `var(--redsift-color-${$color}-active)`};
|
|
2223
|
+
&,
|
|
2224
|
+
.redsift-icon {
|
|
2225
|
+
color: ${$isDisabled ? 'var(--redsift-color-neutral-midgrey)' : `var(--redsift-color-${$color}-secondary)`};
|
|
2226
|
+
}
|
|
2227
|
+
` : css`
|
|
2228
|
+
background-color: ${$isHovered ? `var(--redsift-color-${$color}-primary-active-hover)` : $isDisabled ? 'var(--redsift-color-neutral-lightgrey)' : `var(--redsift-color-${$color}-primary-active)`};
|
|
2229
|
+
&,
|
|
2230
|
+
.redsift-icon {
|
|
2231
|
+
color: ${$isDisabled ? 'var(--redsift-color-neutral-midgrey)' : 'var(--redsift-color-neutral-white)'};
|
|
2232
|
+
}
|
|
2233
|
+
`}
|
|
2234
|
+
|
|
2235
|
+
${$variant === ButtonVariant.secondary ? css`
|
|
2236
|
+
border: 1px solid
|
|
2237
|
+
${$isDisabled ? 'var(--redsift-color-neutral-midgrey)' : `var(--redsift-color-${$color}-primary)`};
|
|
2238
|
+
` : `
|
|
2239
|
+
border: none;
|
|
2240
|
+
`}
|
|
2241
|
+
`;
|
|
2242
|
+
}};
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
${_ref5 => {
|
|
1974
2246
|
let {
|
|
1975
2247
|
$fullWidth
|
|
1976
|
-
} =
|
|
2248
|
+
} = _ref5;
|
|
1977
2249
|
return $fullWidth ? `
|
|
1978
2250
|
width: 100%;
|
|
1979
2251
|
flex-grow: 1;
|
|
@@ -1987,6 +2259,8 @@ const StyledButton = styled.button`
|
|
|
1987
2259
|
}
|
|
1988
2260
|
` : '';
|
|
1989
2261
|
}}
|
|
2262
|
+
|
|
2263
|
+
${focusRing}
|
|
1990
2264
|
`;
|
|
1991
2265
|
|
|
1992
2266
|
var loading$1 = "Loading...";
|
|
@@ -2014,6 +2288,14 @@ const SpinnerSize = {
|
|
|
2014
2288
|
large: 'large'
|
|
2015
2289
|
};
|
|
2016
2290
|
|
|
2291
|
+
/**
|
|
2292
|
+
* Component color.
|
|
2293
|
+
*/
|
|
2294
|
+
|
|
2295
|
+
/**
|
|
2296
|
+
* Component props.
|
|
2297
|
+
*/
|
|
2298
|
+
|
|
2017
2299
|
const StyledSpinner = styled.img`
|
|
2018
2300
|
${baseStyling}
|
|
2019
2301
|
|
|
@@ -2221,7 +2503,7 @@ Spinner.className = CLASSNAME$J;
|
|
|
2221
2503
|
Spinner.defaultProps = DEFAULT_PROPS$J;
|
|
2222
2504
|
Spinner.displayName = COMPONENT_NAME$J;
|
|
2223
2505
|
|
|
2224
|
-
const _excluded$G = ["children", "className", "color", "disabled", "fullWidth", "isActive", "isDisabled", "
|
|
2506
|
+
const _excluded$G = ["children", "className", "color", "disabled", "fullWidth", "isActive", "isDisabled", "isHovered", "isLoading", "leftIcon", "rightIcon", "variant"];
|
|
2225
2507
|
const COMPONENT_NAME$I = 'Button';
|
|
2226
2508
|
const CLASSNAME$I = 'redsift-button';
|
|
2227
2509
|
const DEFAULT_PROPS$I = {
|
|
@@ -2239,13 +2521,6 @@ const DEFAULT_PROPS$I = {
|
|
|
2239
2521
|
*/
|
|
2240
2522
|
const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
2241
2523
|
const buttonRef = ref || useRef();
|
|
2242
|
-
const {
|
|
2243
|
-
buttonProps,
|
|
2244
|
-
isPressed
|
|
2245
|
-
} = useButton(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
2246
|
-
isDisabled: props.isLoading || props.isDisabled || props.disabled,
|
|
2247
|
-
preventFocusOnPress: true
|
|
2248
|
-
}), buttonRef);
|
|
2249
2524
|
const {
|
|
2250
2525
|
children,
|
|
2251
2526
|
className,
|
|
@@ -2253,37 +2528,39 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2253
2528
|
disabled,
|
|
2254
2529
|
fullWidth,
|
|
2255
2530
|
isActive,
|
|
2256
|
-
isDisabled,
|
|
2531
|
+
isDisabled: propsIsDisabled,
|
|
2532
|
+
isHovered,
|
|
2257
2533
|
isLoading,
|
|
2258
2534
|
leftIcon,
|
|
2259
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2260
|
-
onPress,
|
|
2261
2535
|
rightIcon,
|
|
2262
2536
|
variant
|
|
2263
2537
|
} = props,
|
|
2264
2538
|
forwardedProps = _objectWithoutProperties(props, _excluded$G);
|
|
2265
|
-
|
|
2539
|
+
const isDisabled = isLoading || propsIsDisabled || disabled;
|
|
2540
|
+
return /*#__PURE__*/React__default.createElement(StyledButton, _extends$1({}, forwardedProps, {
|
|
2266
2541
|
$color: color,
|
|
2267
2542
|
$fullWidth: fullWidth,
|
|
2268
|
-
$isActive: isActive
|
|
2269
|
-
$isDisabled:
|
|
2543
|
+
$isActive: isActive,
|
|
2544
|
+
$isDisabled: isDisabled,
|
|
2545
|
+
$isHovered: isHovered,
|
|
2546
|
+
$isLoading: isLoading,
|
|
2270
2547
|
$variant: variant,
|
|
2271
|
-
"aria-disabled":
|
|
2548
|
+
"aria-disabled": isDisabled,
|
|
2272
2549
|
className: classNames(Button.className, className),
|
|
2273
|
-
disabled:
|
|
2550
|
+
disabled: isDisabled,
|
|
2274
2551
|
ref: buttonRef
|
|
2275
|
-
}), leftIcon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
2552
|
+
}), leftIcon ? typeof leftIcon === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
2276
2553
|
icon: leftIcon,
|
|
2277
2554
|
"aria-hidden": "true",
|
|
2278
2555
|
className: "left"
|
|
2279
|
-
}) : null, isLoading ? /*#__PURE__*/React__default.createElement(Spinner, {
|
|
2556
|
+
}) : leftIcon : null, isLoading ? /*#__PURE__*/React__default.createElement(Spinner, {
|
|
2280
2557
|
size: "small",
|
|
2281
2558
|
color: "no-data"
|
|
2282
|
-
}) : null, children, rightIcon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
2559
|
+
}) : null, /*#__PURE__*/React__default.createElement("span", null, children), rightIcon ? typeof rightIcon === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
2283
2560
|
icon: rightIcon,
|
|
2284
2561
|
"aria-hidden": "true",
|
|
2285
2562
|
className: "right"
|
|
2286
|
-
}) : null);
|
|
2563
|
+
}) : rightIcon : null);
|
|
2287
2564
|
});
|
|
2288
2565
|
Button.className = CLASSNAME$I;
|
|
2289
2566
|
Button.defaultProps = DEFAULT_PROPS$I;
|
|
@@ -2301,9 +2578,20 @@ const StyledIconButton = styled(StyledButton)`
|
|
|
2301
2578
|
padding: ${$variant === IconButtonVariant.secondary ? '8px' : '9px'};
|
|
2302
2579
|
`;
|
|
2303
2580
|
}};
|
|
2581
|
+
|
|
2582
|
+
${_ref2 => {
|
|
2583
|
+
let {
|
|
2584
|
+
$isLoading
|
|
2585
|
+
} = _ref2;
|
|
2586
|
+
return $isLoading ? css`
|
|
2587
|
+
& > .redsift-shield {
|
|
2588
|
+
position: relative;
|
|
2589
|
+
}
|
|
2590
|
+
` : '';
|
|
2591
|
+
}}
|
|
2304
2592
|
`;
|
|
2305
2593
|
|
|
2306
|
-
const _excluded$F = ["className", "color", "disabled", "icon", "isActive", "isDisabled", "
|
|
2594
|
+
const _excluded$F = ["className", "color", "disabled", "icon", "isActive", "isDisabled", "isHovered", "isLoading", "variant"];
|
|
2307
2595
|
const COMPONENT_NAME$H = 'IconButton';
|
|
2308
2596
|
const CLASSNAME$H = 'redsift-icon-button';
|
|
2309
2597
|
const DEFAULT_PROPS$H = {
|
|
@@ -2320,38 +2608,37 @@ const DEFAULT_PROPS$H = {
|
|
|
2320
2608
|
*/
|
|
2321
2609
|
const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
2322
2610
|
const buttonRef = ref || useRef();
|
|
2323
|
-
const {
|
|
2324
|
-
buttonProps,
|
|
2325
|
-
isPressed
|
|
2326
|
-
} = useButton(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
2327
|
-
isDisabled: props.isDisabled || props.disabled,
|
|
2328
|
-
preventFocusOnPress: true
|
|
2329
|
-
}), buttonRef);
|
|
2330
2611
|
const {
|
|
2331
2612
|
className,
|
|
2332
2613
|
color,
|
|
2333
2614
|
disabled,
|
|
2334
2615
|
icon,
|
|
2335
2616
|
isActive,
|
|
2336
|
-
isDisabled,
|
|
2337
|
-
|
|
2338
|
-
|
|
2617
|
+
isDisabled: propsIsDisabled,
|
|
2618
|
+
isHovered,
|
|
2619
|
+
isLoading,
|
|
2339
2620
|
variant
|
|
2340
2621
|
} = props,
|
|
2341
2622
|
forwardedProps = _objectWithoutProperties(props, _excluded$F);
|
|
2623
|
+
const isDisabled = props.isLoading || propsIsDisabled || disabled;
|
|
2342
2624
|
warnIfNoAccessibleLabelFound(props);
|
|
2343
|
-
return /*#__PURE__*/React__default.createElement(StyledIconButton, _extends$1({}, forwardedProps,
|
|
2344
|
-
$color: isDisabled
|
|
2345
|
-
$isActive: isActive
|
|
2346
|
-
$isDisabled: isDisabled
|
|
2625
|
+
return /*#__PURE__*/React__default.createElement(StyledIconButton, _extends$1({}, forwardedProps, {
|
|
2626
|
+
$color: isDisabled ? undefined : color,
|
|
2627
|
+
$isActive: isActive,
|
|
2628
|
+
$isDisabled: isDisabled,
|
|
2629
|
+
$isHovered: isHovered,
|
|
2630
|
+
$isLoading: isLoading,
|
|
2347
2631
|
$variant: variant,
|
|
2348
|
-
"aria-disabled": isDisabled
|
|
2632
|
+
"aria-disabled": isDisabled,
|
|
2349
2633
|
className: classNames(IconButton.className, className),
|
|
2350
|
-
disabled: isDisabled
|
|
2634
|
+
disabled: isDisabled,
|
|
2351
2635
|
ref: buttonRef
|
|
2352
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
2636
|
+
}), isLoading ? /*#__PURE__*/React__default.createElement(Spinner, {
|
|
2637
|
+
size: "small",
|
|
2638
|
+
color: "no-data"
|
|
2639
|
+
}) : /*#__PURE__*/React__default.createElement(Icon, {
|
|
2353
2640
|
icon: icon,
|
|
2354
|
-
color: isDisabled
|
|
2641
|
+
color: isDisabled ? undefined : color
|
|
2355
2642
|
}));
|
|
2356
2643
|
});
|
|
2357
2644
|
IconButton.className = CLASSNAME$H;
|
|
@@ -2425,6 +2712,10 @@ const HeadingComponent = {
|
|
|
2425
2712
|
span: 'span'
|
|
2426
2713
|
};
|
|
2427
2714
|
|
|
2715
|
+
/**
|
|
2716
|
+
* Component props.
|
|
2717
|
+
*/
|
|
2718
|
+
|
|
2428
2719
|
/**
|
|
2429
2720
|
* Component style.
|
|
2430
2721
|
*/
|
|
@@ -2643,17 +2934,18 @@ const Alert = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2643
2934
|
}, /*#__PURE__*/React__default.createElement(Flexbox, {
|
|
2644
2935
|
className: `${Alert.className}-header__title`,
|
|
2645
2936
|
gap: "14px",
|
|
2646
|
-
alignItems: "
|
|
2937
|
+
alignItems: "center"
|
|
2647
2938
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
2648
2939
|
icon: icon,
|
|
2649
2940
|
color: color
|
|
2650
2941
|
}), title ? /*#__PURE__*/React__default.createElement(Heading, {
|
|
2651
|
-
as: "
|
|
2942
|
+
as: "span",
|
|
2943
|
+
variant: "h5"
|
|
2652
2944
|
}, title) : null), isClosable ? /*#__PURE__*/React__default.createElement(IconButton, {
|
|
2653
2945
|
"aria-label": stringFormatter.format('close'),
|
|
2654
2946
|
className: `${Alert.className}-header__icon-button`,
|
|
2655
2947
|
icon: mdiClose,
|
|
2656
|
-
|
|
2948
|
+
onClick: handleClose
|
|
2657
2949
|
}) : null), children ? /*#__PURE__*/React__default.createElement("div", {
|
|
2658
2950
|
className: `${Alert.className}__content`
|
|
2659
2951
|
}, children) : null);
|
|
@@ -2794,7 +3086,7 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2794
3086
|
}, expandIconButtonProps, {
|
|
2795
3087
|
"aria-label": stringFormatter.format('expand'),
|
|
2796
3088
|
icon: mdiMenu,
|
|
2797
|
-
|
|
3089
|
+
onClick: appContainerState.expandSidePanel,
|
|
2798
3090
|
ref: collapseIconButtonRef,
|
|
2799
3091
|
variant: IconButtonVariant.primary
|
|
2800
3092
|
})) : /*#__PURE__*/React__default.createElement(IconButton, _extends$1({
|
|
@@ -2802,7 +3094,7 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2802
3094
|
}, collapseIconButtonProps, {
|
|
2803
3095
|
"aria-label": stringFormatter.format('collapse'),
|
|
2804
3096
|
icon: mdiMenuOpen,
|
|
2805
|
-
|
|
3097
|
+
onClick: appContainerState.collapseSidePanel,
|
|
2806
3098
|
ref: expandIconButtonRef,
|
|
2807
3099
|
variant: IconButtonVariant.primary
|
|
2808
3100
|
}))) : null, propsTitle && typeof propsTitle !== 'string' ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, propsTitle) : typeof propsTitle === 'string' ? /*#__PURE__*/React__default.createElement(Heading, {
|
|
@@ -3049,12 +3341,16 @@ AppSidePanel.displayName = COMPONENT_NAME$B;
|
|
|
3049
3341
|
* Reducer props.
|
|
3050
3342
|
*/
|
|
3051
3343
|
|
|
3052
|
-
let SideNavigationMenuReducerActionType
|
|
3053
|
-
(function (SideNavigationMenuReducerActionType) {
|
|
3344
|
+
let SideNavigationMenuReducerActionType = /*#__PURE__*/function (SideNavigationMenuReducerActionType) {
|
|
3054
3345
|
SideNavigationMenuReducerActionType["Expand"] = "expand";
|
|
3055
3346
|
SideNavigationMenuReducerActionType["Collapse"] = "collapse";
|
|
3056
3347
|
SideNavigationMenuReducerActionType["Move"] = "move";
|
|
3057
|
-
|
|
3348
|
+
return SideNavigationMenuReducerActionType;
|
|
3349
|
+
}({});
|
|
3350
|
+
|
|
3351
|
+
/**
|
|
3352
|
+
* Component props.
|
|
3353
|
+
*/
|
|
3058
3354
|
|
|
3059
3355
|
const SideNavigationMenuBarContext = /*#__PURE__*/React__default.createContext(null);
|
|
3060
3356
|
|
|
@@ -3195,6 +3491,10 @@ const BadgeVariant = {
|
|
|
3195
3491
|
standard: 'standard'
|
|
3196
3492
|
};
|
|
3197
3493
|
|
|
3494
|
+
/**
|
|
3495
|
+
* Component props.
|
|
3496
|
+
*/
|
|
3497
|
+
|
|
3198
3498
|
/**
|
|
3199
3499
|
* Component style.
|
|
3200
3500
|
*/
|
|
@@ -3299,7 +3599,7 @@ Badge.className = CLASSNAME$A;
|
|
|
3299
3599
|
Badge.defaultProps = DEFAULT_PROPS$A;
|
|
3300
3600
|
Badge.displayName = COMPONENT_NAME$A;
|
|
3301
3601
|
|
|
3302
|
-
const _excluded$x = ["badge", "badgeProps", "children", "className", "href", "icon", "iconProps", "iconRef", "isCurrent", "isDisabled", "isSecondLevel", "onClick", "onKeyDown", "tabIndex", "withoutIcons"];
|
|
3602
|
+
const _excluded$x = ["as", "badge", "badgeProps", "children", "className", "href", "icon", "iconProps", "iconRef", "isCurrent", "isDisabled", "isSecondLevel", "onClick", "onKeyDown", "tabIndex", "withoutIcons"];
|
|
3303
3603
|
const COMPONENT_NAME$z = 'SideNavigationMenuItem';
|
|
3304
3604
|
const CLASSNAME$z = 'redsift-side-navigation-menu-item';
|
|
3305
3605
|
const DEFAULT_PROPS$z = {};
|
|
@@ -3310,6 +3610,7 @@ const DEFAULT_PROPS$z = {};
|
|
|
3310
3610
|
const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
3311
3611
|
const menuItemRef = ref || useRef();
|
|
3312
3612
|
const {
|
|
3613
|
+
as,
|
|
3313
3614
|
badge,
|
|
3314
3615
|
badgeProps,
|
|
3315
3616
|
children,
|
|
@@ -3362,6 +3663,7 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3362
3663
|
};
|
|
3363
3664
|
}, [menuItems]);
|
|
3364
3665
|
return /*#__PURE__*/React__default.createElement(StyledSideNavigationMenuItem, _extends$1({
|
|
3666
|
+
as: as,
|
|
3365
3667
|
role: "menuitem"
|
|
3366
3668
|
}, forwardedProps, {
|
|
3367
3669
|
$isCurrent: isCurrent,
|
|
@@ -4203,7 +4505,7 @@ const StyledBreadcrumbItem = styled.a`
|
|
|
4203
4505
|
}
|
|
4204
4506
|
`;
|
|
4205
4507
|
|
|
4206
|
-
const _excluded$t = ["children", "className", "href", "isCurrent", "isDisabled"];
|
|
4508
|
+
const _excluded$t = ["as", "children", "className", "href", "isCurrent", "isDisabled"];
|
|
4207
4509
|
const COMPONENT_NAME$w = 'BreadcrumbItem';
|
|
4208
4510
|
const CLASSNAME$w = 'redsift-breadcrumb-item';
|
|
4209
4511
|
const DEFAULT_PROPS$w = {};
|
|
@@ -4213,6 +4515,7 @@ const DEFAULT_PROPS$w = {};
|
|
|
4213
4515
|
*/
|
|
4214
4516
|
const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
4215
4517
|
const {
|
|
4518
|
+
as,
|
|
4216
4519
|
children,
|
|
4217
4520
|
className,
|
|
4218
4521
|
href,
|
|
@@ -4222,6 +4525,7 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4222
4525
|
forwardedProps = _objectWithoutProperties(props, _excluded$t);
|
|
4223
4526
|
warnIfNoAccessibleLabelFound(props, [children]);
|
|
4224
4527
|
return /*#__PURE__*/React__default.createElement(StyledBreadcrumbItem, _extends$1({
|
|
4528
|
+
as: as || 'a',
|
|
4225
4529
|
role: "link",
|
|
4226
4530
|
tabIndex: !isDisabled && !isCurrent ? 0 : undefined
|
|
4227
4531
|
}, forwardedProps, {
|
|
@@ -4358,15 +4662,15 @@ const ButtonLink = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4358
4662
|
href: !isDisabled ? href : undefined,
|
|
4359
4663
|
ref: ref,
|
|
4360
4664
|
target: target
|
|
4361
|
-
}), leftIcon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
4665
|
+
}), leftIcon ? typeof leftIcon === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
4362
4666
|
icon: leftIcon,
|
|
4363
4667
|
"aria-hidden": "true",
|
|
4364
4668
|
className: "left"
|
|
4365
|
-
}) : null, children, rightIcon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
4669
|
+
}) : leftIcon : null, children, rightIcon ? typeof rightIcon === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
4366
4670
|
icon: rightIcon,
|
|
4367
4671
|
"aria-hidden": "true",
|
|
4368
4672
|
className: "right"
|
|
4369
|
-
}) : null);
|
|
4673
|
+
}) : rightIcon : null);
|
|
4370
4674
|
});
|
|
4371
4675
|
ButtonLink.className = CLASSNAME$u;
|
|
4372
4676
|
ButtonLink.defaultProps = DEFAULT_PROPS$u;
|
|
@@ -4603,6 +4907,10 @@ const SkeletonTextVariant = {
|
|
|
4603
4907
|
caption: 'caption'
|
|
4604
4908
|
};
|
|
4605
4909
|
|
|
4910
|
+
/**
|
|
4911
|
+
* Component props.
|
|
4912
|
+
*/
|
|
4913
|
+
|
|
4606
4914
|
/**
|
|
4607
4915
|
* Component style.
|
|
4608
4916
|
*/
|
|
@@ -4865,7 +5173,7 @@ const BaseCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4865
5173
|
className: `${BaseCard.className}-header__icon-button`,
|
|
4866
5174
|
color: "question",
|
|
4867
5175
|
icon: isCollapsed ? mdiChevronDown : mdiChevronUp,
|
|
4868
|
-
|
|
5176
|
+
onClick: () => handleCollapse(!isCollapsed)
|
|
4869
5177
|
}) : null) : null, body || actions ? /*#__PURE__*/React__default.createElement("div", {
|
|
4870
5178
|
className: `${BaseCard.className}__content`
|
|
4871
5179
|
}, body, actions) : null);
|
|
@@ -4887,10 +5195,14 @@ const Card = Object.assign(BaseCard, {
|
|
|
4887
5195
|
* Component orientation.
|
|
4888
5196
|
*/
|
|
4889
5197
|
const CheckboxGroupOrientation = {
|
|
4890
|
-
|
|
4891
|
-
|
|
5198
|
+
vertical: 'vertical',
|
|
5199
|
+
horizontal: 'horizontal'
|
|
4892
5200
|
};
|
|
4893
5201
|
|
|
5202
|
+
/**
|
|
5203
|
+
* Component props.
|
|
5204
|
+
*/
|
|
5205
|
+
|
|
4894
5206
|
const CheckboxGroupContext = /*#__PURE__*/React__default.createContext(null);
|
|
4895
5207
|
|
|
4896
5208
|
/**
|
|
@@ -5254,7 +5566,15 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5254
5566
|
$isSelected: isSelected,
|
|
5255
5567
|
className: classNames(Checkbox.className, className),
|
|
5256
5568
|
ref: ref
|
|
5257
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
5569
|
+
}), isSelected || isControlled && propsIsSelected ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
5570
|
+
icon: mdiCheckboxMarked
|
|
5571
|
+
}) : isIndeterminate ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
5572
|
+
icon: mdiMinusBox
|
|
5573
|
+
}) : /*#__PURE__*/React__default.createElement(Icon, {
|
|
5574
|
+
icon: mdiCheckboxBlankOutline
|
|
5575
|
+
}), children ? /*#__PURE__*/React__default.createElement("span", {
|
|
5576
|
+
className: "label"
|
|
5577
|
+
}, children) : null, /*#__PURE__*/React__default.createElement("input", _extends$1({}, inputProps, focusProps, {
|
|
5258
5578
|
"aria-checked": isSelected || isControlled && propsIsSelected ? 'true' : isIndeterminate ? 'mixed' : 'false',
|
|
5259
5579
|
"aria-disabled": isDisabled,
|
|
5260
5580
|
"aria-invalid": isInvalid || isRequired && !isSelected,
|
|
@@ -5270,15 +5590,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5270
5590
|
ref: inputRef,
|
|
5271
5591
|
type: "checkbox",
|
|
5272
5592
|
value: value
|
|
5273
|
-
}))
|
|
5274
|
-
icon: mdiCheckboxMarked
|
|
5275
|
-
}) : isIndeterminate ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
5276
|
-
icon: mdiMinusBox
|
|
5277
|
-
}) : /*#__PURE__*/React__default.createElement(Icon, {
|
|
5278
|
-
icon: mdiCheckboxBlankOutline
|
|
5279
|
-
}), children ? /*#__PURE__*/React__default.createElement("span", {
|
|
5280
|
-
className: "label"
|
|
5281
|
-
}, children) : null);
|
|
5593
|
+
})));
|
|
5282
5594
|
});
|
|
5283
5595
|
Checkbox.className = CLASSNAME$l;
|
|
5284
5596
|
Checkbox.defaultProps = DEFAULT_PROPS$l;
|
|
@@ -5327,6 +5639,10 @@ const ShieldVariant = {
|
|
|
5327
5639
|
email: 'email'
|
|
5328
5640
|
};
|
|
5329
5641
|
|
|
5642
|
+
/**
|
|
5643
|
+
* Component props.
|
|
5644
|
+
*/
|
|
5645
|
+
|
|
5330
5646
|
const StyledShield = styled.div`
|
|
5331
5647
|
height: 24px;
|
|
5332
5648
|
width: 20px;
|
|
@@ -5683,6 +5999,10 @@ const TextComponent = {
|
|
|
5683
5999
|
sup: 'sup'
|
|
5684
6000
|
};
|
|
5685
6001
|
|
|
6002
|
+
/**
|
|
6003
|
+
* Component props.
|
|
6004
|
+
*/
|
|
6005
|
+
|
|
5686
6006
|
/**
|
|
5687
6007
|
* Component style.
|
|
5688
6008
|
*/
|
|
@@ -5879,7 +6199,7 @@ const DetailedCardSection = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5879
6199
|
className: `${DetailedCardSection.className}-header__collapse-button`,
|
|
5880
6200
|
color: "question",
|
|
5881
6201
|
icon: isCollapsed ? mdiChevronDown : mdiChevronUp,
|
|
5882
|
-
|
|
6202
|
+
onClick: () => {
|
|
5883
6203
|
setIsCollapsed(isCollapsed => !isCollapsed);
|
|
5884
6204
|
}
|
|
5885
6205
|
}) : null), children);
|
|
@@ -6117,7 +6437,7 @@ DetailedCardSectionItem.defaultProps = DEFAULT_PROPS$e;
|
|
|
6117
6437
|
DetailedCardSectionItem.displayName = COMPONENT_NAME$e;
|
|
6118
6438
|
|
|
6119
6439
|
/*!
|
|
6120
|
-
* tabbable 6.
|
|
6440
|
+
* tabbable 6.2.0
|
|
6121
6441
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
6122
6442
|
*/
|
|
6123
6443
|
// NOTE: separate `:not()` selectors has broader browser support than the newer
|
|
@@ -6297,7 +6617,27 @@ var getCandidatesIteratively = function getCandidatesIteratively(elements, inclu
|
|
|
6297
6617
|
}
|
|
6298
6618
|
return candidates;
|
|
6299
6619
|
};
|
|
6300
|
-
|
|
6620
|
+
|
|
6621
|
+
/**
|
|
6622
|
+
* @private
|
|
6623
|
+
* Determines if the node has an explicitly specified `tabindex` attribute.
|
|
6624
|
+
* @param {HTMLElement} node
|
|
6625
|
+
* @returns {boolean} True if so; false if not.
|
|
6626
|
+
*/
|
|
6627
|
+
var hasTabIndex = function hasTabIndex(node) {
|
|
6628
|
+
return !isNaN(parseInt(node.getAttribute('tabindex'), 10));
|
|
6629
|
+
};
|
|
6630
|
+
|
|
6631
|
+
/**
|
|
6632
|
+
* Determine the tab index of a given node.
|
|
6633
|
+
* @param {HTMLElement} node
|
|
6634
|
+
* @returns {number} Tab order (negative, 0, or positive number).
|
|
6635
|
+
* @throws {Error} If `node` is falsy.
|
|
6636
|
+
*/
|
|
6637
|
+
var getTabIndex = function getTabIndex(node) {
|
|
6638
|
+
if (!node) {
|
|
6639
|
+
throw new Error('No node provided');
|
|
6640
|
+
}
|
|
6301
6641
|
if (node.tabIndex < 0) {
|
|
6302
6642
|
// in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
|
|
6303
6643
|
// `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
|
|
@@ -6306,16 +6646,28 @@ var getTabindex = function getTabindex(node, isScope) {
|
|
|
6306
6646
|
// order, consider their tab index to be 0.
|
|
6307
6647
|
// Also browsers do not return `tabIndex` correctly for contentEditable nodes;
|
|
6308
6648
|
// so if they don't have a tabindex attribute specifically set, assume it's 0.
|
|
6309
|
-
|
|
6310
|
-
// isScope is positive for custom element with shadow root or slot that by default
|
|
6311
|
-
// have tabIndex -1, but need to be sorted by document order in order for their
|
|
6312
|
-
// content to be inserted in the correct position
|
|
6313
|
-
if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {
|
|
6649
|
+
if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
|
|
6314
6650
|
return 0;
|
|
6315
6651
|
}
|
|
6316
6652
|
}
|
|
6317
6653
|
return node.tabIndex;
|
|
6318
6654
|
};
|
|
6655
|
+
|
|
6656
|
+
/**
|
|
6657
|
+
* Determine the tab index of a given node __for sort order purposes__.
|
|
6658
|
+
* @param {HTMLElement} node
|
|
6659
|
+
* @param {boolean} [isScope] True for a custom element with shadow root or slot that, by default,
|
|
6660
|
+
* has tabIndex -1, but needs to be sorted by document order in order for its content to be
|
|
6661
|
+
* inserted into the correct sort position.
|
|
6662
|
+
* @returns {number} Tab order (negative, 0, or positive number).
|
|
6663
|
+
*/
|
|
6664
|
+
var getSortOrderTabIndex = function getSortOrderTabIndex(node, isScope) {
|
|
6665
|
+
var tabIndex = getTabIndex(node);
|
|
6666
|
+
if (tabIndex < 0 && isScope && !hasTabIndex(node)) {
|
|
6667
|
+
return 0;
|
|
6668
|
+
}
|
|
6669
|
+
return tabIndex;
|
|
6670
|
+
};
|
|
6319
6671
|
var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
|
|
6320
6672
|
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
6321
6673
|
};
|
|
@@ -6558,7 +6910,7 @@ var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(o
|
|
|
6558
6910
|
return true;
|
|
6559
6911
|
};
|
|
6560
6912
|
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
|
|
6561
|
-
if (isNonTabbableRadio(node) ||
|
|
6913
|
+
if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
|
|
6562
6914
|
return false;
|
|
6563
6915
|
}
|
|
6564
6916
|
return true;
|
|
@@ -6583,7 +6935,7 @@ var sortByOrder = function sortByOrder(candidates) {
|
|
|
6583
6935
|
candidates.forEach(function (item, i) {
|
|
6584
6936
|
var isScope = !!item.scopeParent;
|
|
6585
6937
|
var element = isScope ? item.scopeParent : item;
|
|
6586
|
-
var candidateTabindex =
|
|
6938
|
+
var candidateTabindex = getSortOrderTabIndex(element, isScope);
|
|
6587
6939
|
var elements = isScope ? sortByOrder(item.candidates) : element;
|
|
6588
6940
|
if (candidateTabindex === 0) {
|
|
6589
6941
|
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
@@ -6602,18 +6954,18 @@ var sortByOrder = function sortByOrder(candidates) {
|
|
|
6602
6954
|
return acc;
|
|
6603
6955
|
}, []).concat(regularTabbables);
|
|
6604
6956
|
};
|
|
6605
|
-
var tabbable = function tabbable(
|
|
6957
|
+
var tabbable = function tabbable(container, options) {
|
|
6606
6958
|
options = options || {};
|
|
6607
6959
|
var candidates;
|
|
6608
6960
|
if (options.getShadowRoot) {
|
|
6609
|
-
candidates = getCandidatesIteratively([
|
|
6961
|
+
candidates = getCandidatesIteratively([container], options.includeContainer, {
|
|
6610
6962
|
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
6611
6963
|
flatten: false,
|
|
6612
6964
|
getShadowRoot: options.getShadowRoot,
|
|
6613
6965
|
shadowRootFilter: isValidShadowRootTabbable
|
|
6614
6966
|
});
|
|
6615
6967
|
} else {
|
|
6616
|
-
candidates = getCandidates(
|
|
6968
|
+
candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
6617
6969
|
}
|
|
6618
6970
|
return sortByOrder(candidates);
|
|
6619
6971
|
};
|
|
@@ -6705,22 +7057,6 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
6705
7057
|
} = config;
|
|
6706
7058
|
const validMiddleware = middleware.filter(Boolean);
|
|
6707
7059
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
6708
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6709
|
-
if (platform == null) {
|
|
6710
|
-
console.error(['Floating UI: `platform` property was not passed to config. If you', 'want to use Floating UI on the web, install @floating-ui/dom', 'instead of the /core package. Otherwise, you can create your own', '`platform`: https://floating-ui.com/docs/platform'].join(' '));
|
|
6711
|
-
}
|
|
6712
|
-
if (validMiddleware.filter(_ref => {
|
|
6713
|
-
let {
|
|
6714
|
-
name
|
|
6715
|
-
} = _ref;
|
|
6716
|
-
return name === 'autoPlacement' || name === 'flip';
|
|
6717
|
-
}).length > 1) {
|
|
6718
|
-
throw new Error(['Floating UI: duplicate `flip` and/or `autoPlacement` middleware', 'detected. This will lead to an infinite loop. Ensure only one of', 'either has been passed to the `middleware` array.'].join(' '));
|
|
6719
|
-
}
|
|
6720
|
-
if (!reference || !floating) {
|
|
6721
|
-
console.error(['Floating UI: The reference and/or floating element was not defined', 'when `computePosition()` was called. Ensure that both elements have', 'been created and can be measured.'].join(' '));
|
|
6722
|
-
}
|
|
6723
|
-
}
|
|
6724
7060
|
let rects = await platform.getElementRects({
|
|
6725
7061
|
reference,
|
|
6726
7062
|
floating,
|
|
@@ -6766,11 +7102,6 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
6766
7102
|
...data
|
|
6767
7103
|
}
|
|
6768
7104
|
};
|
|
6769
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6770
|
-
if (resetCount > 50) {
|
|
6771
|
-
console.warn(['Floating UI: The middleware lifecycle appears to be running in an', 'infinite loop. This is usually caused by a `reset` continually', 'being returned without a break condition.'].join(' '));
|
|
6772
|
-
}
|
|
6773
|
-
}
|
|
6774
7105
|
if (reset && resetCount <= 50) {
|
|
6775
7106
|
resetCount++;
|
|
6776
7107
|
if (typeof reset === 'object') {
|
|
@@ -6802,6 +7133,10 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
6802
7133
|
};
|
|
6803
7134
|
};
|
|
6804
7135
|
|
|
7136
|
+
function evaluate(value, param) {
|
|
7137
|
+
return typeof value === 'function' ? value(param) : value;
|
|
7138
|
+
}
|
|
7139
|
+
|
|
6805
7140
|
function expandPaddingObject(padding) {
|
|
6806
7141
|
return {
|
|
6807
7142
|
top: 0,
|
|
@@ -6858,7 +7193,7 @@ async function detectOverflow(state, options) {
|
|
|
6858
7193
|
elementContext = 'floating',
|
|
6859
7194
|
altBoundary = false,
|
|
6860
7195
|
padding = 0
|
|
6861
|
-
} = options;
|
|
7196
|
+
} = evaluate(options, state);
|
|
6862
7197
|
const paddingObject = getSideObjectFromPadding(padding);
|
|
6863
7198
|
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
6864
7199
|
const element = elements[altBoundary ? altContext : elementContext];
|
|
@@ -6886,7 +7221,6 @@ async function detectOverflow(state, options) {
|
|
|
6886
7221
|
offsetParent,
|
|
6887
7222
|
strategy
|
|
6888
7223
|
}) : rect);
|
|
6889
|
-
if (process.env.NODE_ENV !== "production") ;
|
|
6890
7224
|
return {
|
|
6891
7225
|
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
6892
7226
|
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
@@ -6911,22 +7245,20 @@ const arrow$1 = options => ({
|
|
|
6911
7245
|
name: 'arrow',
|
|
6912
7246
|
options,
|
|
6913
7247
|
async fn(state) {
|
|
6914
|
-
// Since `element` is required, we don't Partial<> the type.
|
|
6915
|
-
const {
|
|
6916
|
-
element,
|
|
6917
|
-
padding = 0
|
|
6918
|
-
} = options || {};
|
|
6919
7248
|
const {
|
|
6920
7249
|
x,
|
|
6921
7250
|
y,
|
|
6922
7251
|
placement,
|
|
6923
7252
|
rects,
|
|
6924
|
-
platform
|
|
7253
|
+
platform,
|
|
7254
|
+
elements
|
|
6925
7255
|
} = state;
|
|
7256
|
+
// Since `element` is required, we don't Partial<> the type.
|
|
7257
|
+
const {
|
|
7258
|
+
element,
|
|
7259
|
+
padding = 0
|
|
7260
|
+
} = evaluate(options, state) || {};
|
|
6926
7261
|
if (element == null) {
|
|
6927
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6928
|
-
console.warn('Floating UI: No `element` was passed to the `arrow` middleware.');
|
|
6929
|
-
}
|
|
6930
7262
|
return {};
|
|
6931
7263
|
}
|
|
6932
7264
|
const paddingObject = getSideObjectFromPadding(padding);
|
|
@@ -6937,35 +7269,45 @@ const arrow$1 = options => ({
|
|
|
6937
7269
|
const axis = getMainAxisFromPlacement(placement);
|
|
6938
7270
|
const length = getLengthFromAxis(axis);
|
|
6939
7271
|
const arrowDimensions = await platform.getDimensions(element);
|
|
6940
|
-
const
|
|
6941
|
-
const
|
|
7272
|
+
const isYAxis = axis === 'y';
|
|
7273
|
+
const minProp = isYAxis ? 'top' : 'left';
|
|
7274
|
+
const maxProp = isYAxis ? 'bottom' : 'right';
|
|
7275
|
+
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
|
6942
7276
|
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
6943
7277
|
const startDiff = coords[axis] - rects.reference[axis];
|
|
6944
7278
|
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
6945
|
-
let clientSize = arrowOffsetParent ?
|
|
6946
|
-
|
|
6947
|
-
|
|
7279
|
+
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
7280
|
+
|
|
7281
|
+
// DOM platform can return `window` as the `offsetParent`.
|
|
7282
|
+
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
|
7283
|
+
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
6948
7284
|
}
|
|
6949
7285
|
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
6950
7286
|
|
|
7287
|
+
// If the padding is large enough that it causes the arrow to no longer be
|
|
7288
|
+
// centered, modify the padding so that it is centered.
|
|
7289
|
+
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
7290
|
+
const minPadding = min$1(paddingObject[minProp], largestPossiblePadding);
|
|
7291
|
+
const maxPadding = min$1(paddingObject[maxProp], largestPossiblePadding);
|
|
7292
|
+
|
|
6951
7293
|
// Make sure the arrow doesn't overflow the floating element if the center
|
|
6952
7294
|
// point is outside the floating element's bounds.
|
|
6953
|
-
const min =
|
|
6954
|
-
const max = clientSize - arrowDimensions[length] -
|
|
7295
|
+
const min$1$1 = minPadding;
|
|
7296
|
+
const max = clientSize - arrowDimensions[length] - maxPadding;
|
|
6955
7297
|
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
6956
|
-
const offset = within(min, center, max);
|
|
7298
|
+
const offset = within(min$1$1, center, max);
|
|
6957
7299
|
|
|
6958
7300
|
// If the reference is small enough that the arrow's padding causes it to
|
|
6959
7301
|
// to point to nothing for an aligned placement, adjust the offset of the
|
|
6960
7302
|
// floating element itself. This stops `shift()` from taking action, but can
|
|
6961
7303
|
// be worked around by calling it again after the `arrow()` if desired.
|
|
6962
|
-
const shouldAddOffset = getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min ?
|
|
6963
|
-
const alignmentOffset = shouldAddOffset ? center < min ? min - center : max - center : 0;
|
|
7304
|
+
const shouldAddOffset = getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min$1$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
7305
|
+
const alignmentOffset = shouldAddOffset ? center < min$1$1 ? min$1$1 - center : max - center : 0;
|
|
6964
7306
|
return {
|
|
6965
7307
|
[axis]: coords[axis] - alignmentOffset,
|
|
6966
7308
|
data: {
|
|
6967
7309
|
[axis]: offset,
|
|
6968
|
-
centerOffset: center - offset
|
|
7310
|
+
centerOffset: center - offset + alignmentOffset
|
|
6969
7311
|
}
|
|
6970
7312
|
};
|
|
6971
7313
|
}
|
|
@@ -7071,7 +7413,7 @@ const flip = function (options) {
|
|
|
7071
7413
|
fallbackAxisSideDirection = 'none',
|
|
7072
7414
|
flipAlignment = true,
|
|
7073
7415
|
...detectOverflowOptions
|
|
7074
|
-
} = options;
|
|
7416
|
+
} = evaluate(options, state);
|
|
7075
7417
|
const side = getSide(placement);
|
|
7076
7418
|
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
7077
7419
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
@@ -7150,7 +7492,7 @@ const flip = function (options) {
|
|
|
7150
7492
|
};
|
|
7151
7493
|
};
|
|
7152
7494
|
|
|
7153
|
-
async function convertValueToCoords(state,
|
|
7495
|
+
async function convertValueToCoords(state, options) {
|
|
7154
7496
|
const {
|
|
7155
7497
|
placement,
|
|
7156
7498
|
platform,
|
|
@@ -7162,7 +7504,7 @@ async function convertValueToCoords(state, value) {
|
|
|
7162
7504
|
const isVertical = getMainAxisFromPlacement(placement) === 'x';
|
|
7163
7505
|
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
7164
7506
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
7165
|
-
const rawValue =
|
|
7507
|
+
const rawValue = evaluate(options, state);
|
|
7166
7508
|
|
|
7167
7509
|
// eslint-disable-next-line prefer-const
|
|
7168
7510
|
let {
|
|
@@ -7198,19 +7540,19 @@ async function convertValueToCoords(state, value) {
|
|
|
7198
7540
|
* object may be passed.
|
|
7199
7541
|
* @see https://floating-ui.com/docs/offset
|
|
7200
7542
|
*/
|
|
7201
|
-
const offset = function (
|
|
7202
|
-
if (
|
|
7203
|
-
|
|
7543
|
+
const offset = function (options) {
|
|
7544
|
+
if (options === void 0) {
|
|
7545
|
+
options = 0;
|
|
7204
7546
|
}
|
|
7205
7547
|
return {
|
|
7206
7548
|
name: 'offset',
|
|
7207
|
-
options
|
|
7549
|
+
options,
|
|
7208
7550
|
async fn(state) {
|
|
7209
7551
|
const {
|
|
7210
7552
|
x,
|
|
7211
7553
|
y
|
|
7212
7554
|
} = state;
|
|
7213
|
-
const diffCoords = await convertValueToCoords(state,
|
|
7555
|
+
const diffCoords = await convertValueToCoords(state, options);
|
|
7214
7556
|
return {
|
|
7215
7557
|
x: x + diffCoords.x,
|
|
7216
7558
|
y: y + diffCoords.y,
|
|
@@ -7258,7 +7600,7 @@ const shift = function (options) {
|
|
|
7258
7600
|
}
|
|
7259
7601
|
},
|
|
7260
7602
|
...detectOverflowOptions
|
|
7261
|
-
} = options;
|
|
7603
|
+
} = evaluate(options, state);
|
|
7262
7604
|
const coords = {
|
|
7263
7605
|
x,
|
|
7264
7606
|
y
|
|
@@ -7307,43 +7649,17 @@ function getComputedStyle$1(element) {
|
|
|
7307
7649
|
return getWindow$1(element).getComputedStyle(element);
|
|
7308
7650
|
}
|
|
7309
7651
|
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
const round = Math.round;
|
|
7313
|
-
|
|
7314
|
-
function getCssDimensions(element) {
|
|
7315
|
-
const css = getComputedStyle$1(element);
|
|
7316
|
-
let width = parseFloat(css.width);
|
|
7317
|
-
let height = parseFloat(css.height);
|
|
7318
|
-
const offsetWidth = element.offsetWidth;
|
|
7319
|
-
const offsetHeight = element.offsetHeight;
|
|
7320
|
-
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
7321
|
-
if (shouldFallback) {
|
|
7322
|
-
width = offsetWidth;
|
|
7323
|
-
height = offsetHeight;
|
|
7324
|
-
}
|
|
7325
|
-
return {
|
|
7326
|
-
width,
|
|
7327
|
-
height,
|
|
7328
|
-
fallback: shouldFallback
|
|
7329
|
-
};
|
|
7652
|
+
function isNode(value) {
|
|
7653
|
+
return value instanceof getWindow$1(value).Node;
|
|
7330
7654
|
}
|
|
7331
|
-
|
|
7332
7655
|
function getNodeName(node) {
|
|
7333
|
-
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
let uaString;
|
|
7337
|
-
function getUAString() {
|
|
7338
|
-
if (uaString) {
|
|
7339
|
-
return uaString;
|
|
7656
|
+
if (isNode(node)) {
|
|
7657
|
+
return (node.nodeName || '').toLowerCase();
|
|
7340
7658
|
}
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
}
|
|
7346
|
-
return navigator.userAgent;
|
|
7659
|
+
// Mocked nodes in testing environments may not be instances of Node. By
|
|
7660
|
+
// returning `#document` an infinite loop won't occur.
|
|
7661
|
+
// https://github.com/floating-ui/floating-ui/issues/2317
|
|
7662
|
+
return '#document';
|
|
7347
7663
|
}
|
|
7348
7664
|
|
|
7349
7665
|
function isHTMLElement$1(value) {
|
|
@@ -7352,16 +7668,12 @@ function isHTMLElement$1(value) {
|
|
|
7352
7668
|
function isElement$1(value) {
|
|
7353
7669
|
return value instanceof getWindow$1(value).Element;
|
|
7354
7670
|
}
|
|
7355
|
-
function isNode(value) {
|
|
7356
|
-
return value instanceof getWindow$1(value).Node;
|
|
7357
|
-
}
|
|
7358
7671
|
function isShadowRoot$1(node) {
|
|
7359
7672
|
// Browsers without `ShadowRoot` support.
|
|
7360
7673
|
if (typeof ShadowRoot === 'undefined') {
|
|
7361
7674
|
return false;
|
|
7362
7675
|
}
|
|
7363
|
-
|
|
7364
|
-
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
7676
|
+
return node instanceof getWindow$1(node).ShadowRoot || node instanceof ShadowRoot;
|
|
7365
7677
|
}
|
|
7366
7678
|
function isOverflowElement(element) {
|
|
7367
7679
|
const {
|
|
@@ -7376,62 +7688,67 @@ function isTableElement(element) {
|
|
|
7376
7688
|
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
7377
7689
|
}
|
|
7378
7690
|
function isContainingBlock(element) {
|
|
7379
|
-
|
|
7380
|
-
const isFirefox = /firefox/i.test(getUAString());
|
|
7691
|
+
const safari = isSafari$1();
|
|
7381
7692
|
const css = getComputedStyle$1(element);
|
|
7382
|
-
const backdropFilter = css.backdropFilter || css.WebkitBackdropFilter;
|
|
7383
7693
|
|
|
7384
|
-
// This is non-exhaustive but covers the most common CSS properties that
|
|
7385
|
-
// create a containing block.
|
|
7386
7694
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
7387
|
-
return css.transform !== 'none' || css.perspective !== 'none' || (backdropFilter ? backdropFilter !== 'none' : false) ||
|
|
7388
|
-
// Add type check for old browsers.
|
|
7389
|
-
const contain = css.contain;
|
|
7390
|
-
return contain != null ? contain.includes(value) : false;
|
|
7391
|
-
});
|
|
7695
|
+
return css.transform !== 'none' || css.perspective !== 'none' || !safari && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !safari && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
7392
7696
|
}
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
* viewport offsets. In Safari, the `x`/`y` offsets are values relative to the
|
|
7397
|
-
* visual viewport, while in other engines, they are values relative to the
|
|
7398
|
-
* layout viewport.
|
|
7399
|
-
*/
|
|
7400
|
-
function isClientRectVisualViewportBased() {
|
|
7401
|
-
// TODO: Try to use feature detection here instead. Feature detection for
|
|
7402
|
-
// this can fail in various ways, making the userAgent check the most
|
|
7403
|
-
// reliable:
|
|
7404
|
-
// • Always-visible scrollbar or not
|
|
7405
|
-
// • Width of <html>
|
|
7406
|
-
|
|
7407
|
-
// Is Safari.
|
|
7408
|
-
return /^((?!chrome|android).)*safari/i.test(getUAString());
|
|
7697
|
+
function isSafari$1() {
|
|
7698
|
+
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
7699
|
+
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
7409
7700
|
}
|
|
7410
7701
|
function isLastTraversableNode(node) {
|
|
7411
7702
|
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
7412
7703
|
}
|
|
7413
7704
|
|
|
7705
|
+
const min = Math.min;
|
|
7706
|
+
const max = Math.max;
|
|
7707
|
+
const round = Math.round;
|
|
7708
|
+
const floor = Math.floor;
|
|
7709
|
+
const createEmptyCoords = v => ({
|
|
7710
|
+
x: v,
|
|
7711
|
+
y: v
|
|
7712
|
+
});
|
|
7713
|
+
|
|
7714
|
+
function getCssDimensions(element) {
|
|
7715
|
+
const css = getComputedStyle$1(element);
|
|
7716
|
+
// In testing environments, the `width` and `height` properties are empty
|
|
7717
|
+
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
|
7718
|
+
let width = parseFloat(css.width) || 0;
|
|
7719
|
+
let height = parseFloat(css.height) || 0;
|
|
7720
|
+
const hasOffset = isHTMLElement$1(element);
|
|
7721
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
7722
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
7723
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
7724
|
+
if (shouldFallback) {
|
|
7725
|
+
width = offsetWidth;
|
|
7726
|
+
height = offsetHeight;
|
|
7727
|
+
}
|
|
7728
|
+
return {
|
|
7729
|
+
width,
|
|
7730
|
+
height,
|
|
7731
|
+
$: shouldFallback
|
|
7732
|
+
};
|
|
7733
|
+
}
|
|
7734
|
+
|
|
7414
7735
|
function unwrapElement(element) {
|
|
7415
7736
|
return !isElement$1(element) ? element.contextElement : element;
|
|
7416
7737
|
}
|
|
7417
7738
|
|
|
7418
|
-
const FALLBACK_SCALE = {
|
|
7419
|
-
x: 1,
|
|
7420
|
-
y: 1
|
|
7421
|
-
};
|
|
7422
7739
|
function getScale(element) {
|
|
7423
7740
|
const domElement = unwrapElement(element);
|
|
7424
7741
|
if (!isHTMLElement$1(domElement)) {
|
|
7425
|
-
return
|
|
7742
|
+
return createEmptyCoords(1);
|
|
7426
7743
|
}
|
|
7427
7744
|
const rect = domElement.getBoundingClientRect();
|
|
7428
7745
|
const {
|
|
7429
7746
|
width,
|
|
7430
7747
|
height,
|
|
7431
|
-
|
|
7748
|
+
$
|
|
7432
7749
|
} = getCssDimensions(domElement);
|
|
7433
|
-
let x = (
|
|
7434
|
-
let y = (
|
|
7750
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
7751
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
7435
7752
|
|
|
7436
7753
|
// 0, NaN, or Infinity should always fallback to 1.
|
|
7437
7754
|
|
|
@@ -7447,8 +7764,26 @@ function getScale(element) {
|
|
|
7447
7764
|
};
|
|
7448
7765
|
}
|
|
7449
7766
|
|
|
7450
|
-
|
|
7767
|
+
const noOffsets = /*#__PURE__*/createEmptyCoords(0);
|
|
7768
|
+
function getVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
7451
7769
|
var _win$visualViewport, _win$visualViewport2;
|
|
7770
|
+
if (isFixed === void 0) {
|
|
7771
|
+
isFixed = true;
|
|
7772
|
+
}
|
|
7773
|
+
if (!isSafari$1()) {
|
|
7774
|
+
return noOffsets;
|
|
7775
|
+
}
|
|
7776
|
+
const win = element ? getWindow$1(element) : window;
|
|
7777
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== win) {
|
|
7778
|
+
return noOffsets;
|
|
7779
|
+
}
|
|
7780
|
+
return {
|
|
7781
|
+
x: ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0,
|
|
7782
|
+
y: ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0
|
|
7783
|
+
};
|
|
7784
|
+
}
|
|
7785
|
+
|
|
7786
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
7452
7787
|
if (includeScale === void 0) {
|
|
7453
7788
|
includeScale = false;
|
|
7454
7789
|
}
|
|
@@ -7457,7 +7792,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
7457
7792
|
}
|
|
7458
7793
|
const clientRect = element.getBoundingClientRect();
|
|
7459
7794
|
const domElement = unwrapElement(element);
|
|
7460
|
-
let scale =
|
|
7795
|
+
let scale = createEmptyCoords(1);
|
|
7461
7796
|
if (includeScale) {
|
|
7462
7797
|
if (offsetParent) {
|
|
7463
7798
|
if (isElement$1(offsetParent)) {
|
|
@@ -7467,10 +7802,9 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
7467
7802
|
scale = getScale(element);
|
|
7468
7803
|
}
|
|
7469
7804
|
}
|
|
7470
|
-
const
|
|
7471
|
-
|
|
7472
|
-
let
|
|
7473
|
-
let y = (clientRect.top + (addVisualOffsets ? ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0 : 0)) / scale.y;
|
|
7805
|
+
const visualOffsets = getVisualOffsets(domElement, isFixedStrategy, offsetParent);
|
|
7806
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
7807
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
7474
7808
|
let width = clientRect.width / scale.x;
|
|
7475
7809
|
let height = clientRect.height / scale.y;
|
|
7476
7810
|
if (domElement) {
|
|
@@ -7481,27 +7815,23 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
7481
7815
|
const iframeScale = getScale(currentIFrame);
|
|
7482
7816
|
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
7483
7817
|
const css = getComputedStyle(currentIFrame);
|
|
7484
|
-
iframeRect.
|
|
7485
|
-
iframeRect.
|
|
7818
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
7819
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
7486
7820
|
x *= iframeScale.x;
|
|
7487
7821
|
y *= iframeScale.y;
|
|
7488
7822
|
width *= iframeScale.x;
|
|
7489
7823
|
height *= iframeScale.y;
|
|
7490
|
-
x +=
|
|
7491
|
-
y +=
|
|
7824
|
+
x += left;
|
|
7825
|
+
y += top;
|
|
7492
7826
|
currentIFrame = getWindow$1(currentIFrame).frameElement;
|
|
7493
7827
|
}
|
|
7494
7828
|
}
|
|
7495
|
-
return {
|
|
7829
|
+
return rectToClientRect({
|
|
7496
7830
|
width,
|
|
7497
7831
|
height,
|
|
7498
|
-
top: y,
|
|
7499
|
-
right: x + width,
|
|
7500
|
-
bottom: y + height,
|
|
7501
|
-
left: x,
|
|
7502
7832
|
x,
|
|
7503
7833
|
y
|
|
7504
|
-
};
|
|
7834
|
+
});
|
|
7505
7835
|
}
|
|
7506
7836
|
|
|
7507
7837
|
function getDocumentElement(node) {
|
|
@@ -7536,14 +7866,8 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
7536
7866
|
scrollLeft: 0,
|
|
7537
7867
|
scrollTop: 0
|
|
7538
7868
|
};
|
|
7539
|
-
let scale =
|
|
7540
|
-
|
|
7541
|
-
y: 1
|
|
7542
|
-
};
|
|
7543
|
-
const offsets = {
|
|
7544
|
-
x: 0,
|
|
7545
|
-
y: 0
|
|
7546
|
-
};
|
|
7869
|
+
let scale = createEmptyCoords(1);
|
|
7870
|
+
const offsets = createEmptyCoords(0);
|
|
7547
7871
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
7548
7872
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
7549
7873
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -7609,9 +7933,7 @@ function getParentNode(node) {
|
|
|
7609
7933
|
function getNearestOverflowAncestor(node) {
|
|
7610
7934
|
const parentNode = getParentNode(node);
|
|
7611
7935
|
if (isLastTraversableNode(parentNode)) {
|
|
7612
|
-
|
|
7613
|
-
// check, so it's either the <html> or <body> element.
|
|
7614
|
-
return parentNode.ownerDocument.body;
|
|
7936
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
7615
7937
|
}
|
|
7616
7938
|
if (isHTMLElement$1(parentNode) && isOverflowElement(parentNode)) {
|
|
7617
7939
|
return parentNode;
|
|
@@ -7644,7 +7966,7 @@ function getViewportRect(element, strategy) {
|
|
|
7644
7966
|
if (visualViewport) {
|
|
7645
7967
|
width = visualViewport.width;
|
|
7646
7968
|
height = visualViewport.height;
|
|
7647
|
-
const visualViewportBased =
|
|
7969
|
+
const visualViewportBased = isSafari$1();
|
|
7648
7970
|
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
|
7649
7971
|
x = visualViewport.offsetLeft;
|
|
7650
7972
|
y = visualViewport.offsetTop;
|
|
@@ -7663,10 +7985,7 @@ function getInnerBoundingClientRect(element, strategy) {
|
|
|
7663
7985
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
7664
7986
|
const top = clientRect.top + element.clientTop;
|
|
7665
7987
|
const left = clientRect.left + element.clientLeft;
|
|
7666
|
-
const scale = isHTMLElement$1(element) ? getScale(element) :
|
|
7667
|
-
x: 1,
|
|
7668
|
-
y: 1
|
|
7669
|
-
};
|
|
7988
|
+
const scale = isHTMLElement$1(element) ? getScale(element) : createEmptyCoords(1);
|
|
7670
7989
|
const width = element.clientWidth * scale.x;
|
|
7671
7990
|
const height = element.clientHeight * scale.y;
|
|
7672
7991
|
const x = left * scale.x;
|
|
@@ -7687,19 +8006,22 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
|
|
|
7687
8006
|
} else if (isElement$1(clippingAncestor)) {
|
|
7688
8007
|
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
7689
8008
|
} else {
|
|
7690
|
-
const
|
|
7691
|
-
|
|
8009
|
+
const visualOffsets = getVisualOffsets(element);
|
|
8010
|
+
rect = {
|
|
8011
|
+
...clippingAncestor,
|
|
8012
|
+
x: clippingAncestor.x - visualOffsets.x,
|
|
8013
|
+
y: clippingAncestor.y - visualOffsets.y
|
|
7692
8014
|
};
|
|
7693
|
-
if (isClientRectVisualViewportBased()) {
|
|
7694
|
-
var _win$visualViewport, _win$visualViewport2;
|
|
7695
|
-
const win = getWindow$1(element);
|
|
7696
|
-
mutableRect.x -= ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0;
|
|
7697
|
-
mutableRect.y -= ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0;
|
|
7698
|
-
}
|
|
7699
|
-
rect = mutableRect;
|
|
7700
8015
|
}
|
|
7701
8016
|
return rectToClientRect(rect);
|
|
7702
8017
|
}
|
|
8018
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
|
8019
|
+
const parentNode = getParentNode(element);
|
|
8020
|
+
if (parentNode === stopNode || !isElement$1(parentNode) || isLastTraversableNode(parentNode)) {
|
|
8021
|
+
return false;
|
|
8022
|
+
}
|
|
8023
|
+
return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
8024
|
+
}
|
|
7703
8025
|
|
|
7704
8026
|
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
7705
8027
|
// clipping (or hiding) child elements. This returns all clipping ancestors
|
|
@@ -7717,19 +8039,17 @@ function getClippingElementAncestors(element, cache) {
|
|
|
7717
8039
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
7718
8040
|
while (isElement$1(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
7719
8041
|
const computedStyle = getComputedStyle$1(currentNode);
|
|
7720
|
-
const
|
|
7721
|
-
|
|
7722
|
-
if (shouldIgnoreCurrentNode) {
|
|
8042
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
8043
|
+
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
7723
8044
|
currentContainingBlockComputedStyle = null;
|
|
8045
|
+
}
|
|
8046
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
8047
|
+
if (shouldDropCurrentNode) {
|
|
8048
|
+
// Drop non-containing blocks.
|
|
8049
|
+
result = result.filter(ancestor => ancestor !== currentNode);
|
|
7724
8050
|
} else {
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
// Drop non-containing blocks.
|
|
7728
|
-
result = result.filter(ancestor => ancestor !== currentNode);
|
|
7729
|
-
} else {
|
|
7730
|
-
// Record last containing block for next iteration.
|
|
7731
|
-
currentContainingBlockComputedStyle = computedStyle;
|
|
7732
|
-
}
|
|
8051
|
+
// Record last containing block for next iteration.
|
|
8052
|
+
currentContainingBlockComputedStyle = computedStyle;
|
|
7733
8053
|
}
|
|
7734
8054
|
currentNode = getParentNode(currentNode);
|
|
7735
8055
|
}
|
|
@@ -7766,10 +8086,7 @@ function getClippingRect(_ref) {
|
|
|
7766
8086
|
}
|
|
7767
8087
|
|
|
7768
8088
|
function getDimensions(element) {
|
|
7769
|
-
|
|
7770
|
-
return getCssDimensions(element);
|
|
7771
|
-
}
|
|
7772
|
-
return element.getBoundingClientRect();
|
|
8089
|
+
return getCssDimensions(element);
|
|
7773
8090
|
}
|
|
7774
8091
|
|
|
7775
8092
|
function getTrueOffsetParent(element, polyfill) {
|
|
@@ -7797,6 +8114,9 @@ function getContainingBlock(element) {
|
|
|
7797
8114
|
// such as table ancestors and cross browser bugs.
|
|
7798
8115
|
function getOffsetParent(element, polyfill) {
|
|
7799
8116
|
const window = getWindow$1(element);
|
|
8117
|
+
if (!isHTMLElement$1(element)) {
|
|
8118
|
+
return window;
|
|
8119
|
+
}
|
|
7800
8120
|
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
7801
8121
|
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
7802
8122
|
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
@@ -7810,21 +8130,19 @@ function getOffsetParent(element, polyfill) {
|
|
|
7810
8130
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
7811
8131
|
const isOffsetParentAnElement = isHTMLElement$1(offsetParent);
|
|
7812
8132
|
const documentElement = getDocumentElement(offsetParent);
|
|
7813
|
-
const
|
|
8133
|
+
const isFixed = strategy === 'fixed';
|
|
8134
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
7814
8135
|
let scroll = {
|
|
7815
8136
|
scrollLeft: 0,
|
|
7816
8137
|
scrollTop: 0
|
|
7817
8138
|
};
|
|
7818
|
-
const offsets =
|
|
7819
|
-
|
|
7820
|
-
y: 0
|
|
7821
|
-
};
|
|
7822
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
8139
|
+
const offsets = createEmptyCoords(0);
|
|
8140
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
7823
8141
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
7824
8142
|
scroll = getNodeScroll(offsetParent);
|
|
7825
8143
|
}
|
|
7826
8144
|
if (isHTMLElement$1(offsetParent)) {
|
|
7827
|
-
const offsetRect = getBoundingClientRect(offsetParent, true);
|
|
8145
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
7828
8146
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
7829
8147
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
7830
8148
|
} else if (documentElement) {
|
|
@@ -7868,6 +8186,67 @@ const platform = {
|
|
|
7868
8186
|
isRTL: element => getComputedStyle$1(element).direction === 'rtl'
|
|
7869
8187
|
};
|
|
7870
8188
|
|
|
8189
|
+
// https://samthor.au/2021/observing-dom/
|
|
8190
|
+
function observeMove(element, onMove) {
|
|
8191
|
+
let io = null;
|
|
8192
|
+
let timeoutId;
|
|
8193
|
+
const root = getDocumentElement(element);
|
|
8194
|
+
function cleanup() {
|
|
8195
|
+
clearTimeout(timeoutId);
|
|
8196
|
+
io && io.disconnect();
|
|
8197
|
+
io = null;
|
|
8198
|
+
}
|
|
8199
|
+
function refresh(skip, threshold) {
|
|
8200
|
+
if (skip === void 0) {
|
|
8201
|
+
skip = false;
|
|
8202
|
+
}
|
|
8203
|
+
if (threshold === void 0) {
|
|
8204
|
+
threshold = 1;
|
|
8205
|
+
}
|
|
8206
|
+
cleanup();
|
|
8207
|
+
const {
|
|
8208
|
+
left,
|
|
8209
|
+
top,
|
|
8210
|
+
width,
|
|
8211
|
+
height
|
|
8212
|
+
} = element.getBoundingClientRect();
|
|
8213
|
+
if (!skip) {
|
|
8214
|
+
onMove();
|
|
8215
|
+
}
|
|
8216
|
+
if (!width || !height) {
|
|
8217
|
+
return;
|
|
8218
|
+
}
|
|
8219
|
+
const insetTop = floor(top);
|
|
8220
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
|
8221
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
|
8222
|
+
const insetLeft = floor(left);
|
|
8223
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
8224
|
+
let isFirstUpdate = true;
|
|
8225
|
+
io = new IntersectionObserver(entries => {
|
|
8226
|
+
const ratio = entries[0].intersectionRatio;
|
|
8227
|
+
if (ratio !== threshold) {
|
|
8228
|
+
if (!isFirstUpdate) {
|
|
8229
|
+
return refresh();
|
|
8230
|
+
}
|
|
8231
|
+
if (!ratio) {
|
|
8232
|
+
timeoutId = setTimeout(() => {
|
|
8233
|
+
refresh(false, 1e-7);
|
|
8234
|
+
}, 100);
|
|
8235
|
+
} else {
|
|
8236
|
+
refresh(false, ratio);
|
|
8237
|
+
}
|
|
8238
|
+
}
|
|
8239
|
+
isFirstUpdate = false;
|
|
8240
|
+
}, {
|
|
8241
|
+
rootMargin,
|
|
8242
|
+
threshold: max(0, min(1, threshold)) || 1
|
|
8243
|
+
});
|
|
8244
|
+
io.observe(element);
|
|
8245
|
+
}
|
|
8246
|
+
refresh(true);
|
|
8247
|
+
return cleanup;
|
|
8248
|
+
}
|
|
8249
|
+
|
|
7871
8250
|
/**
|
|
7872
8251
|
* Automatically updates the position of the floating element when necessary.
|
|
7873
8252
|
* Should only be called when the floating element is mounted on the DOM or
|
|
@@ -7881,33 +8260,28 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
7881
8260
|
options = {};
|
|
7882
8261
|
}
|
|
7883
8262
|
const {
|
|
7884
|
-
ancestorScroll
|
|
8263
|
+
ancestorScroll = true,
|
|
7885
8264
|
ancestorResize = true,
|
|
7886
8265
|
elementResize = true,
|
|
8266
|
+
layoutShift = typeof IntersectionObserver === 'function',
|
|
7887
8267
|
animationFrame = false
|
|
7888
8268
|
} = options;
|
|
7889
|
-
const
|
|
7890
|
-
const ancestors = ancestorScroll || ancestorResize ? [...(
|
|
8269
|
+
const referenceEl = unwrapElement(reference);
|
|
8270
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
|
7891
8271
|
ancestors.forEach(ancestor => {
|
|
7892
8272
|
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
7893
8273
|
passive: true
|
|
7894
8274
|
});
|
|
7895
8275
|
ancestorResize && ancestor.addEventListener('resize', update);
|
|
7896
8276
|
});
|
|
7897
|
-
|
|
8277
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
8278
|
+
let resizeObserver = null;
|
|
7898
8279
|
if (elementResize) {
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
update();
|
|
7903
|
-
}
|
|
7904
|
-
initialUpdate = false;
|
|
7905
|
-
});
|
|
7906
|
-
isElement$1(reference) && !animationFrame && observer.observe(reference);
|
|
7907
|
-
if (!isElement$1(reference) && reference.contextElement && !animationFrame) {
|
|
7908
|
-
observer.observe(reference.contextElement);
|
|
8280
|
+
resizeObserver = new ResizeObserver(update);
|
|
8281
|
+
if (referenceEl && !animationFrame) {
|
|
8282
|
+
resizeObserver.observe(referenceEl);
|
|
7909
8283
|
}
|
|
7910
|
-
|
|
8284
|
+
resizeObserver.observe(floating);
|
|
7911
8285
|
}
|
|
7912
8286
|
let frameId;
|
|
7913
8287
|
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
@@ -7924,13 +8298,13 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
7924
8298
|
}
|
|
7925
8299
|
update();
|
|
7926
8300
|
return () => {
|
|
7927
|
-
var _observer;
|
|
7928
8301
|
ancestors.forEach(ancestor => {
|
|
7929
8302
|
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
7930
8303
|
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
7931
8304
|
});
|
|
7932
|
-
|
|
7933
|
-
|
|
8305
|
+
cleanupIo && cleanupIo();
|
|
8306
|
+
resizeObserver && resizeObserver.disconnect();
|
|
8307
|
+
resizeObserver = null;
|
|
7934
8308
|
if (animationFrame) {
|
|
7935
8309
|
cancelAnimationFrame(frameId);
|
|
7936
8310
|
}
|
|
@@ -9556,6 +9930,10 @@ const TooltipPlacement = {
|
|
|
9556
9930
|
'left-end': 'left-end'
|
|
9557
9931
|
};
|
|
9558
9932
|
|
|
9933
|
+
/**
|
|
9934
|
+
* Component props.
|
|
9935
|
+
*/
|
|
9936
|
+
|
|
9559
9937
|
/**
|
|
9560
9938
|
* Component style.
|
|
9561
9939
|
*/
|
|
@@ -9951,7 +10329,7 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9951
10329
|
"aria-label": stringFormatter.format('collapse-all'),
|
|
9952
10330
|
"aria-describedby": undefined,
|
|
9953
10331
|
icon: mdiPageLast,
|
|
9954
|
-
|
|
10332
|
+
onClick: () => handleCollapse(true),
|
|
9955
10333
|
style: {
|
|
9956
10334
|
transform: 'rotate(-90deg)'
|
|
9957
10335
|
},
|
|
@@ -9960,7 +10338,7 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9960
10338
|
"aria-label": stringFormatter.format('expand-all'),
|
|
9961
10339
|
"aria-describedby": undefined,
|
|
9962
10340
|
icon: mdiKeyboardCaps,
|
|
9963
|
-
|
|
10341
|
+
onClick: () => handleCollapse(false),
|
|
9964
10342
|
style: {
|
|
9965
10343
|
transform: 'rotate(180deg)'
|
|
9966
10344
|
},
|
|
@@ -10100,7 +10478,7 @@ const StyledLink = styled.a`
|
|
|
10100
10478
|
}
|
|
10101
10479
|
`;
|
|
10102
10480
|
|
|
10103
|
-
const _excluded$7 = ["children", "className", "href", "isDisabled"];
|
|
10481
|
+
const _excluded$7 = ["as", "children", "className", "href", "isDisabled"];
|
|
10104
10482
|
const COMPONENT_NAME$7 = 'Link';
|
|
10105
10483
|
const CLASSNAME$7 = 'redsift-link';
|
|
10106
10484
|
const DEFAULT_PROPS$7 = {};
|
|
@@ -10115,6 +10493,7 @@ const DEFAULT_PROPS$7 = {};
|
|
|
10115
10493
|
*/
|
|
10116
10494
|
const Link = /*#__PURE__*/forwardRef((props, ref) => {
|
|
10117
10495
|
const {
|
|
10496
|
+
as,
|
|
10118
10497
|
children,
|
|
10119
10498
|
className,
|
|
10120
10499
|
href,
|
|
@@ -10122,6 +10501,7 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10122
10501
|
} = props,
|
|
10123
10502
|
forwardedProps = _objectWithoutProperties(props, _excluded$7);
|
|
10124
10503
|
return /*#__PURE__*/React__default.createElement(StyledLink, _extends$1({
|
|
10504
|
+
as: as,
|
|
10125
10505
|
"aria-disabled": isDisabled,
|
|
10126
10506
|
role: "link",
|
|
10127
10507
|
tabIndex: !isDisabled ? 0 : undefined
|
|
@@ -10136,7 +10516,7 @@ Link.className = CLASSNAME$7;
|
|
|
10136
10516
|
Link.defaultProps = DEFAULT_PROPS$7;
|
|
10137
10517
|
Link.displayName = COMPONENT_NAME$7;
|
|
10138
10518
|
|
|
10139
|
-
const _excluded$6 = ["children", "className", "disabled", "isDisabled"
|
|
10519
|
+
const _excluded$6 = ["children", "className", "disabled", "isDisabled"];
|
|
10140
10520
|
const COMPONENT_NAME$6 = 'LinkButton';
|
|
10141
10521
|
const CLASSNAME$6 = 'redsift-link-button';
|
|
10142
10522
|
const DEFAULT_PROPS$6 = {};
|
|
@@ -10150,24 +10530,17 @@ const DEFAULT_PROPS$6 = {};
|
|
|
10150
10530
|
*/
|
|
10151
10531
|
const LinkButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
10152
10532
|
const buttonRef = ref || useRef();
|
|
10153
|
-
const {
|
|
10154
|
-
buttonProps
|
|
10155
|
-
} = useButton(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
10156
|
-
isDisabled: props.isDisabled || props.disabled,
|
|
10157
|
-
preventFocusOnPress: true
|
|
10158
|
-
}), buttonRef);
|
|
10159
10533
|
const {
|
|
10160
10534
|
children,
|
|
10161
10535
|
className,
|
|
10162
10536
|
disabled,
|
|
10163
|
-
isDisabled
|
|
10164
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10165
|
-
onPress
|
|
10537
|
+
isDisabled: propsIsDisabled
|
|
10166
10538
|
} = props,
|
|
10167
10539
|
forwardedProps = _objectWithoutProperties(props, _excluded$6);
|
|
10540
|
+
const isDisabled = propsIsDisabled || disabled;
|
|
10168
10541
|
return /*#__PURE__*/React__default.createElement(StyledLink, _extends$1({
|
|
10169
10542
|
as: "button"
|
|
10170
|
-
}, forwardedProps,
|
|
10543
|
+
}, forwardedProps, {
|
|
10171
10544
|
$isDisabled: isDisabled || disabled,
|
|
10172
10545
|
"aria-disabled": isDisabled || disabled,
|
|
10173
10546
|
className: classNames(LinkButton.className, className),
|
|
@@ -10303,6 +10676,10 @@ const RadioGroupOrientation = {
|
|
|
10303
10676
|
vertical: 'vertical'
|
|
10304
10677
|
};
|
|
10305
10678
|
|
|
10679
|
+
/**
|
|
10680
|
+
* Component props.
|
|
10681
|
+
*/
|
|
10682
|
+
|
|
10306
10683
|
const RadioGroupContext = /*#__PURE__*/React__default.createContext(null);
|
|
10307
10684
|
|
|
10308
10685
|
/**
|
|
@@ -10650,7 +11027,13 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10650
11027
|
$isSelected: isSelected,
|
|
10651
11028
|
className: classNames(Radio.className, className),
|
|
10652
11029
|
ref: ref
|
|
10653
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
11030
|
+
}), isSelected ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
11031
|
+
icon: mdiRadioboxMarked
|
|
11032
|
+
}) : /*#__PURE__*/React__default.createElement(Icon, {
|
|
11033
|
+
icon: mdiRadioboxBlank
|
|
11034
|
+
}), children ? /*#__PURE__*/React__default.createElement("span", {
|
|
11035
|
+
className: "label"
|
|
11036
|
+
}, children) : null, /*#__PURE__*/React__default.createElement("input", _extends$1({}, inputProps, focusProps, {
|
|
10654
11037
|
"aria-checked": isSelected ? 'true' : 'false',
|
|
10655
11038
|
"aria-disabled": isDisabled,
|
|
10656
11039
|
"aria-invalid": isInvalid || isRequired && !isSelected,
|
|
@@ -10666,13 +11049,7 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10666
11049
|
ref: inputRef,
|
|
10667
11050
|
type: "radio",
|
|
10668
11051
|
value: value
|
|
10669
|
-
}))
|
|
10670
|
-
icon: mdiRadioboxMarked
|
|
10671
|
-
}) : /*#__PURE__*/React__default.createElement(Icon, {
|
|
10672
|
-
icon: mdiRadioboxBlank
|
|
10673
|
-
}), children ? /*#__PURE__*/React__default.createElement("span", {
|
|
10674
|
-
className: "label"
|
|
10675
|
-
}, children) : null);
|
|
11052
|
+
})));
|
|
10676
11053
|
});
|
|
10677
11054
|
Radio.className = CLASSNAME$3;
|
|
10678
11055
|
Radio.defaultProps = DEFAULT_PROPS$3;
|
|
@@ -10928,7 +11305,19 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10928
11305
|
$isSelected: isSelected,
|
|
10929
11306
|
className: classNames(Switch.className, className),
|
|
10930
11307
|
ref: ref
|
|
10931
|
-
}), /*#__PURE__*/React__default.createElement("
|
|
11308
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
11309
|
+
className: `${Switch.className}__slide`
|
|
11310
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
11311
|
+
className: `${Switch.className}-slide__inner`
|
|
11312
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
11313
|
+
className: `${Switch.className}-slide__knob-wrapper`
|
|
11314
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
11315
|
+
className: `${Switch.className}-slide-knob-wrapper__elevation`
|
|
11316
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
11317
|
+
className: `${Switch.className}-slide-knob-wrapper__knob`
|
|
11318
|
+
}))), children ? /*#__PURE__*/React__default.createElement("span", {
|
|
11319
|
+
className: "label"
|
|
11320
|
+
}, children) : null, /*#__PURE__*/React__default.createElement("input", _extends$1({}, inputProps, focusProps, {
|
|
10932
11321
|
"aria-checked": isSelected ? 'true' : 'false',
|
|
10933
11322
|
"aria-disabled": isDisabled,
|
|
10934
11323
|
"aria-invalid": isInvalid || isRequired && !isSelected,
|
|
@@ -10945,19 +11334,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10945
11334
|
role: "switch",
|
|
10946
11335
|
type: "checkbox",
|
|
10947
11336
|
value: value
|
|
10948
|
-
}))
|
|
10949
|
-
className: `${Switch.className}__slide`
|
|
10950
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10951
|
-
className: `${Switch.className}-slide__inner`
|
|
10952
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
10953
|
-
className: `${Switch.className}-slide__knob-wrapper`
|
|
10954
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10955
|
-
className: `${Switch.className}-slide-knob-wrapper__elevation`
|
|
10956
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
10957
|
-
className: `${Switch.className}-slide-knob-wrapper__knob`
|
|
10958
|
-
}))), children ? /*#__PURE__*/React__default.createElement("span", {
|
|
10959
|
-
className: "label"
|
|
10960
|
-
}, children) : null);
|
|
11337
|
+
})));
|
|
10961
11338
|
});
|
|
10962
11339
|
Switch.className = CLASSNAME$2;
|
|
10963
11340
|
Switch.defaultProps = DEFAULT_PROPS$2;
|
|
@@ -10975,6 +11352,10 @@ const SwitchGroupOrientation = {
|
|
|
10975
11352
|
vertical: 'vertical'
|
|
10976
11353
|
};
|
|
10977
11354
|
|
|
11355
|
+
/**
|
|
11356
|
+
* Component props.
|
|
11357
|
+
*/
|
|
11358
|
+
|
|
10978
11359
|
/**
|
|
10979
11360
|
* Component style.
|
|
10980
11361
|
*/
|
|
@@ -11147,6 +11528,10 @@ const TextFieldVariant = {
|
|
|
11147
11528
|
underline: 'underline'
|
|
11148
11529
|
};
|
|
11149
11530
|
|
|
11531
|
+
/**
|
|
11532
|
+
* Component props.
|
|
11533
|
+
*/
|
|
11534
|
+
|
|
11150
11535
|
/**
|
|
11151
11536
|
* Component style.
|
|
11152
11537
|
*/
|
|
@@ -11435,5 +11820,5 @@ TextField.className = CLASSNAME;
|
|
|
11435
11820
|
TextField.defaultProps = DEFAULT_PROPS;
|
|
11436
11821
|
TextField.displayName = COMPONENT_NAME;
|
|
11437
11822
|
|
|
11438
|
-
export { Alert, AlertVariant, AlignContent, AlignItems, AlignSelf, AppBar, AppContainer, AppContainerContext, AppContent, AppSidePanel, Badge, BadgeVariant, BaseBreadcrumbs, BaseGrid, BaseSkeleton, BreadcrumbItem, Breadcrumbs, Button, ButtonLink, ButtonVariant, Card, CardActions, CardBody, CardHeader, Checkbox, CheckboxGroup, CheckboxGroupOrientation, ColorPalette, ConditionalWrapper, DataVizColorPalette, DetailedCard, DetailedCardCollapsibleSectionItems, DetailedCardHeader, DetailedCardSection, DetailedCardSectionItem, FlexDirection, FlexWrap, Flexbox, FontFamily, Grid, GridItem, Heading, HeadingComponent, HeadingVariant, Icon, IconButton, IconButtonVariant, IconSize, JustifyContent, JustifyItems, JustifySelf, Link, LinkButton, NeutralColorPalette, Number$1 as Number, Pill, ProductColorPalette, Radio, RadioGroup, RadioGroupOrientation, RedsiftAppBarColorBackground, RedsiftAppBarColorExpandIconBackgroundHover, RedsiftAppBarColorExpandIconHover, RedsiftAppBarColorExpandIconResting, RedsiftAppBarColorText, RedsiftColorDefaultActive, RedsiftColorDefaultActiveHover, RedsiftColorDefaultHover, RedsiftColorDefaultPrimary, RedsiftColorDefaultPrimaryActive, RedsiftColorDefaultPrimaryActiveHover, RedsiftColorDefaultSecondary, RedsiftColorErrorActive, RedsiftColorErrorActiveHover, RedsiftColorErrorHover, RedsiftColorErrorPrimary, RedsiftColorErrorPrimaryActive, RedsiftColorErrorPrimaryActiveHover, RedsiftColorErrorSecondary, RedsiftColorHardenizeActive, RedsiftColorHardenizeActiveHover, RedsiftColorHardenizeHover, RedsiftColorHardenizePrimary, RedsiftColorHardenizePrimaryActive, RedsiftColorHardenizePrimaryActiveHover, RedsiftColorHardenizeSecondary, RedsiftColorInfoActive, RedsiftColorInfoActiveHover, RedsiftColorInfoHover, RedsiftColorInfoPrimary, RedsiftColorInfoPrimaryActive, RedsiftColorInfoPrimaryActiveHover, RedsiftColorInfoSecondary, RedsiftColorNeutralBlack, RedsiftColorNeutralDarkgrey, RedsiftColorNeutralLightgrey, RedsiftColorNeutralMidgrey, RedsiftColorNeutralWhite, RedsiftColorNeutralXlightgrey, RedsiftColorNoDataActive, RedsiftColorNoDataActiveHover, RedsiftColorNoDataHover, RedsiftColorNoDataPrimary, RedsiftColorNoDataPrimaryActive, RedsiftColorNoDataPrimaryActiveHover, RedsiftColorNoDataSecondary, RedsiftColorOndmarcActive, RedsiftColorOndmarcActiveHover, RedsiftColorOndmarcHover, RedsiftColorOndmarcPrimary, RedsiftColorOndmarcPrimaryActive, RedsiftColorOndmarcPrimaryActiveHover, RedsiftColorOndmarcSecondary, RedsiftColorOndomainActive, RedsiftColorOndomainActiveHover, RedsiftColorOndomainHover, RedsiftColorOndomainPrimary, RedsiftColorOndomainPrimaryActive, RedsiftColorOndomainPrimaryActiveHover, RedsiftColorOndomainSecondary, RedsiftColorOninboxActive, RedsiftColorOninboxActiveHover, RedsiftColorOninboxHover, RedsiftColorOninboxPrimary, RedsiftColorOninboxPrimaryActive, RedsiftColorOninboxPrimaryActiveHover, RedsiftColorOninboxSecondary, RedsiftColorQuestionActive, RedsiftColorQuestionActiveHover, RedsiftColorQuestionHover, RedsiftColorQuestionPrimary, RedsiftColorQuestionPrimaryActive, RedsiftColorQuestionPrimaryActiveHover, RedsiftColorQuestionSecondary, RedsiftColorSuccessActive, RedsiftColorSuccessActiveHover, RedsiftColorSuccessHover, RedsiftColorSuccessPrimary, RedsiftColorSuccessPrimaryActive, RedsiftColorSuccessPrimaryActiveHover, RedsiftColorSuccessSecondary, RedsiftColorToolsActive, RedsiftColorToolsActiveHover, RedsiftColorToolsHover, RedsiftColorToolsPrimary, RedsiftColorToolsPrimaryActive, RedsiftColorToolsPrimaryActiveHover, RedsiftColorToolsSecondary, RedsiftColorWarningActive, RedsiftColorWarningActiveHover, RedsiftColorWarningHover, RedsiftColorWarningPrimary, RedsiftColorWarningPrimaryActive, RedsiftColorWarningPrimaryActiveHover, RedsiftColorWarningSecondary, RedsiftColorWebsiteActive, RedsiftColorWebsiteActiveHover, RedsiftColorWebsiteHover, RedsiftColorWebsitePrimary, RedsiftColorWebsitePrimaryActive, RedsiftColorWebsitePrimaryActiveHover, RedsiftColorWebsiteSecondary, RedsiftDataVizColorAquaDark, RedsiftDataVizColorAquaDarker, RedsiftDataVizColorAquaDarkerer, RedsiftDataVizColorAquaDefault, RedsiftDataVizColorAquaLight, RedsiftDataVizColorAquaLighter, RedsiftDataVizColorAquaLighterer, RedsiftDataVizColorBlueDark, RedsiftDataVizColorBlueDarker, RedsiftDataVizColorBlueDarkerer, RedsiftDataVizColorBlueDefault, RedsiftDataVizColorBlueLight, RedsiftDataVizColorBlueLighter, RedsiftDataVizColorBlueLighterer, RedsiftDataVizColorBrownDark, RedsiftDataVizColorBrownDarker, RedsiftDataVizColorBrownDarkerer, RedsiftDataVizColorBrownDefault, RedsiftDataVizColorBrownLight, RedsiftDataVizColorBrownLighter, RedsiftDataVizColorBrownLighterer, RedsiftDataVizColorGreenDark, RedsiftDataVizColorGreenDarker, RedsiftDataVizColorGreenDarkerer, RedsiftDataVizColorGreenDefault, RedsiftDataVizColorGreenLight, RedsiftDataVizColorGreenLighter, RedsiftDataVizColorGreenLighterer, RedsiftDataVizColorGreyDark, RedsiftDataVizColorGreyDarker, RedsiftDataVizColorGreyDarkerer, RedsiftDataVizColorGreyDefault, RedsiftDataVizColorGreyLight, RedsiftDataVizColorGreyLighter, RedsiftDataVizColorGreyLighterer, RedsiftDataVizColorOrangeDark, RedsiftDataVizColorOrangeDarker, RedsiftDataVizColorOrangeDarkerer, RedsiftDataVizColorOrangeDefault, RedsiftDataVizColorOrangeLight, RedsiftDataVizColorOrangeLighter, RedsiftDataVizColorOrangeLighterer, RedsiftDataVizColorPinkDark, RedsiftDataVizColorPinkDarker, RedsiftDataVizColorPinkDarkerer, RedsiftDataVizColorPinkDefault, RedsiftDataVizColorPinkLight, RedsiftDataVizColorPinkLighter, RedsiftDataVizColorPinkLighterer, RedsiftDataVizColorPurpleDark, RedsiftDataVizColorPurpleDarker, RedsiftDataVizColorPurpleDarkerer, RedsiftDataVizColorPurpleDefault, RedsiftDataVizColorPurpleLight, RedsiftDataVizColorPurpleLighter, RedsiftDataVizColorPurpleLighterer, RedsiftDataVizColorRedDark, RedsiftDataVizColorRedDarker, RedsiftDataVizColorRedDarkerer, RedsiftDataVizColorRedDefault, RedsiftDataVizColorRedLight, RedsiftDataVizColorRedLighter, RedsiftDataVizColorRedLighterer, RedsiftDataVizColorYellowDark, RedsiftDataVizColorYellowDarker, RedsiftDataVizColorYellowDarkerer, RedsiftDataVizColorYellowDefault, RedsiftDataVizColorYellowLight, RedsiftDataVizColorYellowLighter, RedsiftDataVizColorYellowLighterer, RedsiftLayoutZIndexDialog, RedsiftLayoutZIndexDropdown, RedsiftLayoutZIndexFooter, RedsiftLayoutZIndexHeader, RedsiftLayoutZIndexOverlay, RedsiftLayoutZIndexPopover, RedsiftLayoutZIndexSidePanel, RedsiftLayoutZIndexTooltip, RedsiftSideNavigationColorBackground, RedsiftSideNavigationColorMenuItemActive, RedsiftSideNavigationColorMenuItemBackgroundActive, RedsiftSideNavigationColorMenuItemBackgroundHover, RedsiftSideNavigationColorMenuItemBackgroundSecondary, RedsiftSideNavigationColorMenuItemTextDisabled, RedsiftSideNavigationColorMenuItemTextHover, RedsiftSideNavigationColorMenuItemTextResting, RedsiftSideNavigationColorScrollbarHover, RedsiftSideNavigationColorScrollbarResting, RedsiftTypographyBadgeFontFamily, RedsiftTypographyBadgeFontSize, RedsiftTypographyBadgeFontWeight, RedsiftTypographyBadgeLineHeight, RedsiftTypographyBody2FontFamily, RedsiftTypographyBody2FontSize, RedsiftTypographyBody2FontWeight, RedsiftTypographyBody2LineHeight, RedsiftTypographyBodyFontFamily, RedsiftTypographyBodyFontSize, RedsiftTypographyBodyFontWeight, RedsiftTypographyBodyLineHeight, RedsiftTypographyBodyTextTransform, RedsiftTypographyButtonFontFamily, RedsiftTypographyButtonFontSize, RedsiftTypographyButtonFontWeight, RedsiftTypographyButtonLineHeight, RedsiftTypographyButtonTextTransform, RedsiftTypographyCaptionFontFamily, RedsiftTypographyCaptionFontSize, RedsiftTypographyCaptionFontWeight, RedsiftTypographyCaptionLineHeight, RedsiftTypographyCaptionTextTransform, RedsiftTypographyChipFontFamily, RedsiftTypographyChipFontSize, RedsiftTypographyChipFontWeight, RedsiftTypographyChipLineHeight, RedsiftTypographyDatagridCellFontFamily, RedsiftTypographyDatagridCellFontSize, RedsiftTypographyDatagridCellFontWeight, RedsiftTypographyDatagridCellLineHeight, RedsiftTypographyDatagridHeaderFontFamily, RedsiftTypographyDatagridHeaderFontSize, RedsiftTypographyDatagridHeaderFontWeight, RedsiftTypographyDatagridHeaderLineHeight, RedsiftTypographyFontFamilyElectrolize, RedsiftTypographyFontFamilyRaleway, RedsiftTypographyFontFamilySourceCodePro, RedsiftTypographyFontWeightBold, RedsiftTypographyFontWeightMedium, RedsiftTypographyFontWeightRegular, RedsiftTypographyFontWeightSemiBold, RedsiftTypographyH1FontFamily, RedsiftTypographyH1FontSize, RedsiftTypographyH1FontWeight, RedsiftTypographyH1LineHeight, RedsiftTypographyH1TextTransform, RedsiftTypographyH2FontFamily, RedsiftTypographyH2FontSize, RedsiftTypographyH2FontWeight, RedsiftTypographyH2LineHeight, RedsiftTypographyH2TextTransform, RedsiftTypographyH3FontFamily, RedsiftTypographyH3FontSize, RedsiftTypographyH3FontWeight, RedsiftTypographyH3LineHeight, RedsiftTypographyH3TextTransform, RedsiftTypographyH4FontFamily, RedsiftTypographyH4FontSize, RedsiftTypographyH4FontWeight, RedsiftTypographyH4LineHeight, RedsiftTypographyH4TextTransform, RedsiftTypographyH5FontFamily, RedsiftTypographyH5FontSize, RedsiftTypographyH5FontWeight, RedsiftTypographyH5LineHeight, RedsiftTypographyH5TextTransform, RedsiftTypographyHelperFontFamily, RedsiftTypographyHelperFontSize, RedsiftTypographyHelperFontWeight, RedsiftTypographyHelperLineHeight, RedsiftTypographyInputTextFontFamily, RedsiftTypographyInputTextFontSize, RedsiftTypographyInputTextFontWeight, RedsiftTypographyInputTextLineHeight, RedsiftTypographyLinkFontFamily, RedsiftTypographyLinkFontSize, RedsiftTypographyLinkFontWeight, RedsiftTypographyLinkLineHeight, RedsiftTypographyPillFontFamily, RedsiftTypographyPillFontSize, RedsiftTypographyPillFontWeight, RedsiftTypographyPillLineHeight, RedsiftTypographySubtitleFontFamily, RedsiftTypographySubtitleFontSize, RedsiftTypographySubtitleFontWeight, RedsiftTypographySubtitleLineHeight, RedsiftTypographySubtitleTextTransform, RedsiftTypographyTooltipFontFamily, RedsiftTypographyTooltipFontSize, RedsiftTypographyTooltipFontWeight, RedsiftTypographyTooltipLineHeight, Shield, ShieldVariant, SideNavigationMenu, SideNavigationMenuBar, SideNavigationMenuItem, SideNavigationMenuReducerActionType, Skeleton, SkeletonCircle, SkeletonText, SkeletonTextVariant, Spinner, SpinnerSize, StyledButton, StyledLink, Switch, SwitchGroup, SwitchGroupOrientation, Text, TextComponent, TextField, TextFieldVariant, TextVariant, baseContainer, baseFlexbox, baseGrid, baseInternalSpacing, baseLayout, basePositioning, baseSizing, baseSpacing, baseStyling, filterComponents, isComponent, partitionComponents, useAppSidePanel, useBoundingClientRect, $325a3faab7a68acd$export$a16aca283550c30d as useCollator, $896ba0a80a8f4d36$export$85fd5fdf27bacc79 as useDateFormatter, $bb77f239b46e8c72$export$3274cf84b703fff as useFilter, $704cf1d3b684cc5c$export$535bd6ca7f90a273 as useIsSSR, $33bf17300c498528$export$a2f47a3d2973640 as useListFormatter, $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 as useLocale, $fca6afa0e843324b$export$f12b703ca79dfbb1 as useLocalizedStringFormatter, $a916eb452884faea$export$b7a616150fdb9f44 as useNumberFormatter, useSideNavigationMenuBar, useWindowSize, warnIfNoAccessibleLabelFound };
|
|
11823
|
+
export { Alert, AlertVariant, AlignContent, AlignItems, AlignSelf, AppBar, AppContainer, AppContainerContext, AppContent, AppSidePanel, Badge, BadgeVariant, BaseBreadcrumbs, BaseGrid, BaseSkeleton, BreadcrumbItem, Breadcrumbs, Button, ButtonLink, ButtonVariant, Card, CardActions, CardBody, CardHeader, Checkbox, CheckboxGroup, CheckboxGroupOrientation, ColorPalette, ConditionalWrapper, DataVizColorPalette, DetailedCard, DetailedCardCollapsibleSectionItems, DetailedCardHeader, DetailedCardSection, DetailedCardSectionItem, FlexDirection, FlexWrap, Flexbox, FontFamily, Grid, GridItem, Heading, HeadingComponent, HeadingVariant, Icon, IconButton, IconButtonVariant, IconSize, JustifyContent, JustifyItems, JustifySelf, Link, LinkButton, NeutralColorPalette, Number$1 as Number, Pill, ProductColorPalette, Radio, RadioGroup, RadioGroupOrientation, RedsiftAppBarColorBackground, RedsiftAppBarColorExpandIconBackgroundHover, RedsiftAppBarColorExpandIconHover, RedsiftAppBarColorExpandIconResting, RedsiftAppBarColorText, RedsiftColorDefaultActive, RedsiftColorDefaultActiveHover, RedsiftColorDefaultHover, RedsiftColorDefaultPrimary, RedsiftColorDefaultPrimaryActive, RedsiftColorDefaultPrimaryActiveHover, RedsiftColorDefaultSecondary, RedsiftColorErrorActive, RedsiftColorErrorActiveHover, RedsiftColorErrorHover, RedsiftColorErrorPrimary, RedsiftColorErrorPrimaryActive, RedsiftColorErrorPrimaryActiveHover, RedsiftColorErrorSecondary, RedsiftColorHardenizeActive, RedsiftColorHardenizeActiveHover, RedsiftColorHardenizeHover, RedsiftColorHardenizePrimary, RedsiftColorHardenizePrimaryActive, RedsiftColorHardenizePrimaryActiveHover, RedsiftColorHardenizeSecondary, RedsiftColorInfoActive, RedsiftColorInfoActiveHover, RedsiftColorInfoHover, RedsiftColorInfoPrimary, RedsiftColorInfoPrimaryActive, RedsiftColorInfoPrimaryActiveHover, RedsiftColorInfoSecondary, RedsiftColorNeutralBlack, RedsiftColorNeutralDarkgrey, RedsiftColorNeutralLightgrey, RedsiftColorNeutralMidgrey, RedsiftColorNeutralWhite, RedsiftColorNeutralXlightgrey, RedsiftColorNoDataActive, RedsiftColorNoDataActiveHover, RedsiftColorNoDataHover, RedsiftColorNoDataPrimary, RedsiftColorNoDataPrimaryActive, RedsiftColorNoDataPrimaryActiveHover, RedsiftColorNoDataSecondary, RedsiftColorOndmarcActive, RedsiftColorOndmarcActiveHover, RedsiftColorOndmarcHover, RedsiftColorOndmarcPrimary, RedsiftColorOndmarcPrimaryActive, RedsiftColorOndmarcPrimaryActiveHover, RedsiftColorOndmarcSecondary, RedsiftColorOndomainActive, RedsiftColorOndomainActiveHover, RedsiftColorOndomainHover, RedsiftColorOndomainPrimary, RedsiftColorOndomainPrimaryActive, RedsiftColorOndomainPrimaryActiveHover, RedsiftColorOndomainSecondary, RedsiftColorOninboxActive, RedsiftColorOninboxActiveHover, RedsiftColorOninboxHover, RedsiftColorOninboxPrimary, RedsiftColorOninboxPrimaryActive, RedsiftColorOninboxPrimaryActiveHover, RedsiftColorOninboxSecondary, RedsiftColorQuestionActive, RedsiftColorQuestionActiveHover, RedsiftColorQuestionHover, RedsiftColorQuestionPrimary, RedsiftColorQuestionPrimaryActive, RedsiftColorQuestionPrimaryActiveHover, RedsiftColorQuestionSecondary, RedsiftColorSuccessActive, RedsiftColorSuccessActiveHover, RedsiftColorSuccessHover, RedsiftColorSuccessPrimary, RedsiftColorSuccessPrimaryActive, RedsiftColorSuccessPrimaryActiveHover, RedsiftColorSuccessSecondary, RedsiftColorToolsActive, RedsiftColorToolsActiveHover, RedsiftColorToolsHover, RedsiftColorToolsPrimary, RedsiftColorToolsPrimaryActive, RedsiftColorToolsPrimaryActiveHover, RedsiftColorToolsSecondary, RedsiftColorWarningActive, RedsiftColorWarningActiveHover, RedsiftColorWarningHover, RedsiftColorWarningPrimary, RedsiftColorWarningPrimaryActive, RedsiftColorWarningPrimaryActiveHover, RedsiftColorWarningSecondary, RedsiftColorWebsiteActive, RedsiftColorWebsiteActiveHover, RedsiftColorWebsiteHover, RedsiftColorWebsitePrimary, RedsiftColorWebsitePrimaryActive, RedsiftColorWebsitePrimaryActiveHover, RedsiftColorWebsiteSecondary, RedsiftDataVizColorAquaDark, RedsiftDataVizColorAquaDarker, RedsiftDataVizColorAquaDarkerer, RedsiftDataVizColorAquaDefault, RedsiftDataVizColorAquaLight, RedsiftDataVizColorAquaLighter, RedsiftDataVizColorAquaLighterer, RedsiftDataVizColorBlueDark, RedsiftDataVizColorBlueDarker, RedsiftDataVizColorBlueDarkerer, RedsiftDataVizColorBlueDefault, RedsiftDataVizColorBlueLight, RedsiftDataVizColorBlueLighter, RedsiftDataVizColorBlueLighterer, RedsiftDataVizColorBrownDark, RedsiftDataVizColorBrownDarker, RedsiftDataVizColorBrownDarkerer, RedsiftDataVizColorBrownDefault, RedsiftDataVizColorBrownLight, RedsiftDataVizColorBrownLighter, RedsiftDataVizColorBrownLighterer, RedsiftDataVizColorGreenDark, RedsiftDataVizColorGreenDarker, RedsiftDataVizColorGreenDarkerer, RedsiftDataVizColorGreenDefault, RedsiftDataVizColorGreenLight, RedsiftDataVizColorGreenLighter, RedsiftDataVizColorGreenLighterer, RedsiftDataVizColorGreyDark, RedsiftDataVizColorGreyDarker, RedsiftDataVizColorGreyDarkerer, RedsiftDataVizColorGreyDefault, RedsiftDataVizColorGreyLight, RedsiftDataVizColorGreyLighter, RedsiftDataVizColorGreyLighterer, RedsiftDataVizColorOrangeDark, RedsiftDataVizColorOrangeDarker, RedsiftDataVizColorOrangeDarkerer, RedsiftDataVizColorOrangeDefault, RedsiftDataVizColorOrangeLight, RedsiftDataVizColorOrangeLighter, RedsiftDataVizColorOrangeLighterer, RedsiftDataVizColorPinkDark, RedsiftDataVizColorPinkDarker, RedsiftDataVizColorPinkDarkerer, RedsiftDataVizColorPinkDefault, RedsiftDataVizColorPinkLight, RedsiftDataVizColorPinkLighter, RedsiftDataVizColorPinkLighterer, RedsiftDataVizColorPurpleDark, RedsiftDataVizColorPurpleDarker, RedsiftDataVizColorPurpleDarkerer, RedsiftDataVizColorPurpleDefault, RedsiftDataVizColorPurpleLight, RedsiftDataVizColorPurpleLighter, RedsiftDataVizColorPurpleLighterer, RedsiftDataVizColorRedDark, RedsiftDataVizColorRedDarker, RedsiftDataVizColorRedDarkerer, RedsiftDataVizColorRedDefault, RedsiftDataVizColorRedLight, RedsiftDataVizColorRedLighter, RedsiftDataVizColorRedLighterer, RedsiftDataVizColorYellowDark, RedsiftDataVizColorYellowDarker, RedsiftDataVizColorYellowDarkerer, RedsiftDataVizColorYellowDefault, RedsiftDataVizColorYellowLight, RedsiftDataVizColorYellowLighter, RedsiftDataVizColorYellowLighterer, RedsiftLayoutZIndexDialog, RedsiftLayoutZIndexDropdown, RedsiftLayoutZIndexFooter, RedsiftLayoutZIndexHeader, RedsiftLayoutZIndexOverlay, RedsiftLayoutZIndexPopover, RedsiftLayoutZIndexSidePanel, RedsiftLayoutZIndexTooltip, RedsiftSideNavigationColorBackground, RedsiftSideNavigationColorMenuItemActive, RedsiftSideNavigationColorMenuItemBackgroundActive, RedsiftSideNavigationColorMenuItemBackgroundHover, RedsiftSideNavigationColorMenuItemBackgroundSecondary, RedsiftSideNavigationColorMenuItemTextDisabled, RedsiftSideNavigationColorMenuItemTextHover, RedsiftSideNavigationColorMenuItemTextResting, RedsiftSideNavigationColorScrollbarHover, RedsiftSideNavigationColorScrollbarResting, RedsiftTypographyBadgeFontFamily, RedsiftTypographyBadgeFontSize, RedsiftTypographyBadgeFontWeight, RedsiftTypographyBadgeLineHeight, RedsiftTypographyBody2FontFamily, RedsiftTypographyBody2FontSize, RedsiftTypographyBody2FontWeight, RedsiftTypographyBody2LineHeight, RedsiftTypographyBodyFontFamily, RedsiftTypographyBodyFontSize, RedsiftTypographyBodyFontWeight, RedsiftTypographyBodyLineHeight, RedsiftTypographyBodyTextTransform, RedsiftTypographyButtonFontFamily, RedsiftTypographyButtonFontSize, RedsiftTypographyButtonFontWeight, RedsiftTypographyButtonLineHeight, RedsiftTypographyButtonTextTransform, RedsiftTypographyCaptionFontFamily, RedsiftTypographyCaptionFontSize, RedsiftTypographyCaptionFontWeight, RedsiftTypographyCaptionLineHeight, RedsiftTypographyCaptionTextTransform, RedsiftTypographyChipFontFamily, RedsiftTypographyChipFontSize, RedsiftTypographyChipFontWeight, RedsiftTypographyChipLineHeight, RedsiftTypographyDatagridCellFontFamily, RedsiftTypographyDatagridCellFontSize, RedsiftTypographyDatagridCellFontWeight, RedsiftTypographyDatagridCellLineHeight, RedsiftTypographyDatagridHeaderFontFamily, RedsiftTypographyDatagridHeaderFontSize, RedsiftTypographyDatagridHeaderFontWeight, RedsiftTypographyDatagridHeaderLineHeight, RedsiftTypographyFontFamilyElectrolize, RedsiftTypographyFontFamilyRaleway, RedsiftTypographyFontFamilySourceCodePro, RedsiftTypographyFontWeightBold, RedsiftTypographyFontWeightMedium, RedsiftTypographyFontWeightRegular, RedsiftTypographyFontWeightSemiBold, RedsiftTypographyH1FontFamily, RedsiftTypographyH1FontSize, RedsiftTypographyH1FontWeight, RedsiftTypographyH1LineHeight, RedsiftTypographyH1TextTransform, RedsiftTypographyH2FontFamily, RedsiftTypographyH2FontSize, RedsiftTypographyH2FontWeight, RedsiftTypographyH2LineHeight, RedsiftTypographyH2TextTransform, RedsiftTypographyH3FontFamily, RedsiftTypographyH3FontSize, RedsiftTypographyH3FontWeight, RedsiftTypographyH3LineHeight, RedsiftTypographyH3TextTransform, RedsiftTypographyH4FontFamily, RedsiftTypographyH4FontSize, RedsiftTypographyH4FontWeight, RedsiftTypographyH4LineHeight, RedsiftTypographyH4TextTransform, RedsiftTypographyH5FontFamily, RedsiftTypographyH5FontSize, RedsiftTypographyH5FontWeight, RedsiftTypographyH5LineHeight, RedsiftTypographyH5TextTransform, RedsiftTypographyHelperFontFamily, RedsiftTypographyHelperFontSize, RedsiftTypographyHelperFontWeight, RedsiftTypographyHelperLineHeight, RedsiftTypographyInputTextFontFamily, RedsiftTypographyInputTextFontSize, RedsiftTypographyInputTextFontWeight, RedsiftTypographyInputTextLineHeight, RedsiftTypographyLinkFontFamily, RedsiftTypographyLinkFontSize, RedsiftTypographyLinkFontWeight, RedsiftTypographyLinkLineHeight, RedsiftTypographyPillFontFamily, RedsiftTypographyPillFontSize, RedsiftTypographyPillFontWeight, RedsiftTypographyPillLineHeight, RedsiftTypographySubtitleFontFamily, RedsiftTypographySubtitleFontSize, RedsiftTypographySubtitleFontWeight, RedsiftTypographySubtitleLineHeight, RedsiftTypographySubtitleTextTransform, RedsiftTypographyTooltipFontFamily, RedsiftTypographyTooltipFontSize, RedsiftTypographyTooltipFontWeight, RedsiftTypographyTooltipLineHeight, Shield, ShieldVariant, SideNavigationMenu, SideNavigationMenuBar, SideNavigationMenuItem, SideNavigationMenuReducerActionType, Skeleton, SkeletonCircle, SkeletonText, SkeletonTextVariant, Spinner, SpinnerSize, StyledButton, StyledLink, Switch, SwitchGroup, SwitchGroupOrientation, Text, TextComponent, TextField, TextFieldVariant, TextVariant, baseContainer, baseFlexbox, baseGrid, baseInternalSpacing, baseLayout, basePositioning, baseSizing, baseSpacing, baseStyling, filterComponents, focusRing, isComponent, partitionComponents, useAppSidePanel, useBoundingClientRect, $325a3faab7a68acd$export$a16aca283550c30d as useCollator, $896ba0a80a8f4d36$export$85fd5fdf27bacc79 as useDateFormatter, $bb77f239b46e8c72$export$3274cf84b703fff as useFilter, $704cf1d3b684cc5c$export$535bd6ca7f90a273 as useIsSSR, $33bf17300c498528$export$a2f47a3d2973640 as useListFormatter, $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 as useLocale, $fca6afa0e843324b$export$f12b703ca79dfbb1 as useLocalizedStringFormatter, $a916eb452884faea$export$b7a616150fdb9f44 as useNumberFormatter, useSideNavigationMenuBar, useWindowSize, warnIfNoAccessibleLabelFound };
|
|
11439
11824
|
//# sourceMappingURL=index.js.map
|