@redsift/design-system 7.7.0 → 7.8.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/CONTRIBUTING.md +1 -1
- package/index.d.ts +888 -6
- package/index.js +1500 -399
- package/index.js.map +1 -1
- package/package.json +6 -9
- package/style/index.css +677 -0
- package/style/redsift-design-tokens.css +1 -1
- package/style/redsift.css +1 -1
package/index.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { I18nProvider, useLocalizedStringFormatter, useNumberFormatter } from '
|
|
2
|
-
export { I18nProvider,
|
|
3
|
-
export { SSRProvider, useIsSSR } from '@react-aria/ssr';
|
|
1
|
+
import { I18nProvider, useLocalizedStringFormatter, useButton, useFocusRing, useNumberFormatter, useFocusWithin } from 'react-aria';
|
|
2
|
+
export { I18nProvider, SSRProvider } from 'react-aria';
|
|
4
3
|
import * as React from 'react';
|
|
5
|
-
import React__default, { useState, useEffect,
|
|
4
|
+
import React__default, { useState, useEffect, useContext, useLayoutEffect, useMemo, useRef, useCallback, forwardRef, useReducer, useId as useId$1 } from 'react';
|
|
6
5
|
import classNames from 'classnames';
|
|
7
6
|
import { mdiClose, mdiAlert, mdiCheckCircle, mdiAlertCircle, mdiInformation, mdiMenu, mdiMenuOpen, mdiChevronDown, mdiChevronRight, mdiChevronUp, mdiCheckboxMarked, mdiMinusBox, mdiCheckboxBlankOutline, mdiPageLast, mdiKeyboardCaps, mdiRadioboxMarked, mdiRadioboxBlank } from '@redsift/icons';
|
|
8
7
|
import styled, { css, keyframes } from 'styled-components';
|
|
9
|
-
import { useButton } from '@react-aria/button';
|
|
10
|
-
import { useFocusRing } from '@react-aria/focus';
|
|
11
8
|
import * as ReactDOM from 'react-dom';
|
|
12
9
|
import { createPortal } from 'react-dom';
|
|
13
10
|
|
|
@@ -205,7 +202,7 @@ function partitionComponents(components, predicates) {
|
|
|
205
202
|
|
|
206
203
|
/**
|
|
207
204
|
* Do not edit directly
|
|
208
|
-
* Generated on
|
|
205
|
+
* Generated on Fri, 28 Apr 2023 13:20:47 GMT
|
|
209
206
|
*/
|
|
210
207
|
|
|
211
208
|
const RedsiftColorDefaultPrimary = '#0079e1';
|
|
@@ -519,6 +516,821 @@ const useWindowSize = () => {
|
|
|
519
516
|
return windowSize;
|
|
520
517
|
};
|
|
521
518
|
|
|
519
|
+
/**
|
|
520
|
+
* Get the bounding rect of a component.
|
|
521
|
+
*/
|
|
522
|
+
const useBoundingClientRect = (ref, deps) => {
|
|
523
|
+
const [boundingRect, setBoundingRect] = useState({});
|
|
524
|
+
useEffect(() => {
|
|
525
|
+
if (ref.current) {
|
|
526
|
+
setBoundingRect(ref.current.getBoundingClientRect());
|
|
527
|
+
}
|
|
528
|
+
}, deps);
|
|
529
|
+
return boundingRect;
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
/*
|
|
533
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
534
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
535
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
536
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
537
|
+
*
|
|
538
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
539
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
540
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
541
|
+
* governing permissions and limitations under the License.
|
|
542
|
+
*/ /*
|
|
543
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
544
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
545
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
546
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
547
|
+
*
|
|
548
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
549
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
550
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
551
|
+
* governing permissions and limitations under the License.
|
|
552
|
+
*/ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is
|
|
553
|
+
// guarded by a check that it only runs on the client side.
|
|
554
|
+
// eslint-disable-next-line rulesdir/useLayoutEffectRule
|
|
555
|
+
|
|
556
|
+
// Default context value to use in case there is no SSRProvider. This is fine for
|
|
557
|
+
// client-only apps. In order to support multiple copies of React Aria potentially
|
|
558
|
+
// being on the page at once, the prefix is set to a random number. SSRProvider
|
|
559
|
+
// will reset this to zero for consistency between server and client, so in the
|
|
560
|
+
// SSR case multiple copies of React Aria is not supported.
|
|
561
|
+
const $704cf1d3b684cc5c$var$defaultContext = {
|
|
562
|
+
prefix: String(Math.round(Math.random() * 10000000000)),
|
|
563
|
+
current: 0
|
|
564
|
+
};
|
|
565
|
+
const $704cf1d3b684cc5c$var$SSRContext = /*#__PURE__*/ (React__default).createContext($704cf1d3b684cc5c$var$defaultContext);
|
|
566
|
+
function $704cf1d3b684cc5c$export$535bd6ca7f90a273() {
|
|
567
|
+
let cur = (useContext)($704cf1d3b684cc5c$var$SSRContext);
|
|
568
|
+
let isInSSRContext = cur !== $704cf1d3b684cc5c$var$defaultContext;
|
|
569
|
+
let [isSSR, setIsSSR] = (useState)(isInSSRContext);
|
|
570
|
+
// If on the client, and the component was initially server rendered,
|
|
571
|
+
// then schedule a layout effect to update the component after hydration.
|
|
572
|
+
if (typeof window !== "undefined" && isInSSRContext) // This if statement technically breaks the rules of hooks, but is safe
|
|
573
|
+
// because the condition never changes after mounting.
|
|
574
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
575
|
+
(useLayoutEffect)(()=>{
|
|
576
|
+
setIsSSR(false);
|
|
577
|
+
}, []);
|
|
578
|
+
return isSSR;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/*
|
|
582
|
+
* Copyright 2022 Adobe. All rights reserved.
|
|
583
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
584
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
585
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
586
|
+
*
|
|
587
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
588
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
589
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
590
|
+
* governing permissions and limitations under the License.
|
|
591
|
+
*/ /*
|
|
592
|
+
* Copyright 2022 Adobe. All rights reserved.
|
|
593
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
594
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
595
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
596
|
+
*
|
|
597
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
598
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
599
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
600
|
+
* governing permissions and limitations under the License.
|
|
601
|
+
*/ class $5b160d28a433310d$export$c17fa47878dc55b6 {
|
|
602
|
+
/** Returns a localized string for the given key and locale. */ getStringForLocale(key, locale) {
|
|
603
|
+
let strings = this.strings[locale];
|
|
604
|
+
if (!strings) {
|
|
605
|
+
strings = $5b160d28a433310d$var$getStringsForLocale(locale, this.strings, this.defaultLocale);
|
|
606
|
+
this.strings[locale] = strings;
|
|
607
|
+
}
|
|
608
|
+
let string = strings[key];
|
|
609
|
+
if (!string) throw new Error(`Could not find intl message ${key} in ${locale} locale`);
|
|
610
|
+
return string;
|
|
611
|
+
}
|
|
612
|
+
constructor(messages, defaultLocale = "en-US"){
|
|
613
|
+
// Clone messages so we don't modify the original object.
|
|
614
|
+
this.strings = {
|
|
615
|
+
...messages
|
|
616
|
+
};
|
|
617
|
+
this.defaultLocale = defaultLocale;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
function $5b160d28a433310d$var$getStringsForLocale(locale, strings, defaultLocale = "en-US") {
|
|
621
|
+
// If there is an exact match, use it.
|
|
622
|
+
if (strings[locale]) return strings[locale];
|
|
623
|
+
// Attempt to find the closest match by language.
|
|
624
|
+
// For example, if the locale is fr-CA (French Canadian), but there is only
|
|
625
|
+
// an fr-FR (France) set of strings, use that.
|
|
626
|
+
// This could be replaced with Intl.LocaleMatcher once it is supported.
|
|
627
|
+
// https://github.com/tc39/proposal-intl-localematcher
|
|
628
|
+
let language = $5b160d28a433310d$var$getLanguage(locale);
|
|
629
|
+
if (strings[language]) return strings[language];
|
|
630
|
+
for(let key in strings){
|
|
631
|
+
if (key.startsWith(language + "-")) return strings[key];
|
|
632
|
+
}
|
|
633
|
+
// Nothing close, use english.
|
|
634
|
+
return strings[defaultLocale];
|
|
635
|
+
}
|
|
636
|
+
function $5b160d28a433310d$var$getLanguage(locale) {
|
|
637
|
+
// @ts-ignore
|
|
638
|
+
if (Intl.Locale) // @ts-ignore
|
|
639
|
+
return new Intl.Locale(locale).language;
|
|
640
|
+
return locale.split("-")[0];
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
/*
|
|
645
|
+
* Copyright 2022 Adobe. All rights reserved.
|
|
646
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
647
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
648
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
649
|
+
*
|
|
650
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
651
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
652
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
653
|
+
* governing permissions and limitations under the License.
|
|
654
|
+
*/ const $6db58dc88e78b024$var$pluralRulesCache = new Map();
|
|
655
|
+
const $6db58dc88e78b024$var$numberFormatCache = new Map();
|
|
656
|
+
class $6db58dc88e78b024$export$2f817fcdc4b89ae0 {
|
|
657
|
+
/** Formats a localized string for the given key with the provided variables. */ format(key, variables) {
|
|
658
|
+
let message = this.strings.getStringForLocale(key, this.locale);
|
|
659
|
+
return typeof message === "function" ? message(variables, this) : message;
|
|
660
|
+
}
|
|
661
|
+
plural(count, options, type = "cardinal") {
|
|
662
|
+
let opt = options["=" + count];
|
|
663
|
+
if (opt) return typeof opt === "function" ? opt() : opt;
|
|
664
|
+
let key = this.locale + ":" + type;
|
|
665
|
+
let pluralRules = $6db58dc88e78b024$var$pluralRulesCache.get(key);
|
|
666
|
+
if (!pluralRules) {
|
|
667
|
+
pluralRules = new Intl.PluralRules(this.locale, {
|
|
668
|
+
type: type
|
|
669
|
+
});
|
|
670
|
+
$6db58dc88e78b024$var$pluralRulesCache.set(key, pluralRules);
|
|
671
|
+
}
|
|
672
|
+
let selected = pluralRules.select(count);
|
|
673
|
+
opt = options[selected] || options.other;
|
|
674
|
+
return typeof opt === "function" ? opt() : opt;
|
|
675
|
+
}
|
|
676
|
+
number(value) {
|
|
677
|
+
let numberFormat = $6db58dc88e78b024$var$numberFormatCache.get(this.locale);
|
|
678
|
+
if (!numberFormat) {
|
|
679
|
+
numberFormat = new Intl.NumberFormat(this.locale);
|
|
680
|
+
$6db58dc88e78b024$var$numberFormatCache.set(this.locale, numberFormat);
|
|
681
|
+
}
|
|
682
|
+
return numberFormat.format(value);
|
|
683
|
+
}
|
|
684
|
+
select(options, value) {
|
|
685
|
+
let opt = options[value] || options.other;
|
|
686
|
+
return typeof opt === "function" ? opt() : opt;
|
|
687
|
+
}
|
|
688
|
+
constructor(locale, strings){
|
|
689
|
+
this.locale = locale;
|
|
690
|
+
this.strings = strings;
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
/*
|
|
695
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
696
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
697
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
698
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
699
|
+
*
|
|
700
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
701
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
702
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
703
|
+
* governing permissions and limitations under the License.
|
|
704
|
+
*/ let $fb18d541ea1ad717$var$formatterCache = new Map();
|
|
705
|
+
class $fb18d541ea1ad717$export$ad991b66133851cf {
|
|
706
|
+
/** Formats a date as a string according to the locale and format options passed to the constructor. */ format(value) {
|
|
707
|
+
return this.formatter.format(value);
|
|
708
|
+
}
|
|
709
|
+
/** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */ formatToParts(value) {
|
|
710
|
+
return this.formatter.formatToParts(value);
|
|
711
|
+
}
|
|
712
|
+
/** Formats a date range as a string. */ formatRange(start, end) {
|
|
713
|
+
// @ts-ignore
|
|
714
|
+
if (typeof this.formatter.formatRange === "function") // @ts-ignore
|
|
715
|
+
return this.formatter.formatRange(start, end);
|
|
716
|
+
if (end < start) throw new RangeError("End date must be >= start date");
|
|
717
|
+
// Very basic fallback for old browsers.
|
|
718
|
+
return `${this.formatter.format(start)} – ${this.formatter.format(end)}`;
|
|
719
|
+
}
|
|
720
|
+
/** Formats a date range as an array of parts. */ formatRangeToParts(start, end) {
|
|
721
|
+
// @ts-ignore
|
|
722
|
+
if (typeof this.formatter.formatRangeToParts === "function") // @ts-ignore
|
|
723
|
+
return this.formatter.formatRangeToParts(start, end);
|
|
724
|
+
if (end < start) throw new RangeError("End date must be >= start date");
|
|
725
|
+
let startParts = this.formatter.formatToParts(start);
|
|
726
|
+
let endParts = this.formatter.formatToParts(end);
|
|
727
|
+
return [
|
|
728
|
+
...startParts.map((p)=>({
|
|
729
|
+
...p,
|
|
730
|
+
source: "startRange"
|
|
731
|
+
})),
|
|
732
|
+
{
|
|
733
|
+
type: "literal",
|
|
734
|
+
value: " – ",
|
|
735
|
+
source: "shared"
|
|
736
|
+
},
|
|
737
|
+
...endParts.map((p)=>({
|
|
738
|
+
...p,
|
|
739
|
+
source: "endRange"
|
|
740
|
+
}))
|
|
741
|
+
];
|
|
742
|
+
}
|
|
743
|
+
/** Returns the resolved formatting options based on the values passed to the constructor. */ resolvedOptions() {
|
|
744
|
+
let resolvedOptions = this.formatter.resolvedOptions();
|
|
745
|
+
if ($fb18d541ea1ad717$var$hasBuggyResolvedHourCycle()) {
|
|
746
|
+
if (!this.resolvedHourCycle) this.resolvedHourCycle = $fb18d541ea1ad717$var$getResolvedHourCycle(resolvedOptions.locale, this.options);
|
|
747
|
+
resolvedOptions.hourCycle = this.resolvedHourCycle;
|
|
748
|
+
resolvedOptions.hour12 = this.resolvedHourCycle === "h11" || this.resolvedHourCycle === "h12";
|
|
749
|
+
}
|
|
750
|
+
// Safari uses a different name for the Ethiopic (Amete Alem) calendar.
|
|
751
|
+
// https://bugs.webkit.org/show_bug.cgi?id=241564
|
|
752
|
+
if (resolvedOptions.calendar === "ethiopic-amete-alem") resolvedOptions.calendar = "ethioaa";
|
|
753
|
+
return resolvedOptions;
|
|
754
|
+
}
|
|
755
|
+
constructor(locale, options = {}){
|
|
756
|
+
this.formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options);
|
|
757
|
+
this.options = options;
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
// There are multiple bugs involving the hour12 and hourCycle options in various browser engines.
|
|
761
|
+
// - Chrome [1] (and the ECMA 402 spec [2]) resolve hour12: false in English and other locales to h24 (24:00 - 23:59)
|
|
762
|
+
// rather than h23 (00:00 - 23:59). Same can happen with hour12: true in French, which Chrome resolves to h11 (00:00 - 11:59)
|
|
763
|
+
// rather than h12 (12:00 - 11:59).
|
|
764
|
+
// - WebKit returns an incorrect hourCycle resolved option in the French locale due to incorrect parsing of 'h' literal
|
|
765
|
+
// in the resolved pattern. It also formats incorrectly when specifying the hourCycle option for the same reason. [3]
|
|
766
|
+
// [1] https://bugs.chromium.org/p/chromium/issues/detail?id=1045791
|
|
767
|
+
// [2] https://github.com/tc39/ecma402/issues/402
|
|
768
|
+
// [3] https://bugs.webkit.org/show_bug.cgi?id=229313
|
|
769
|
+
// https://github.com/unicode-org/cldr/blob/018b55eff7ceb389c7e3fc44e2f657eae3b10b38/common/supplemental/supplementalData.xml#L4774-L4802
|
|
770
|
+
const $fb18d541ea1ad717$var$hour12Preferences = {
|
|
771
|
+
true: {
|
|
772
|
+
// Only Japanese uses the h11 style for 12 hour time. All others use h12.
|
|
773
|
+
ja: "h11"
|
|
774
|
+
},
|
|
775
|
+
false: {
|
|
776
|
+
}
|
|
777
|
+
};
|
|
778
|
+
function $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options = {}) {
|
|
779
|
+
// Work around buggy hour12 behavior in Chrome / ECMA 402 spec by using hourCycle instead.
|
|
780
|
+
// Only apply the workaround if the issue is detected, because the hourCycle option is buggy in Safari.
|
|
781
|
+
if (typeof options.hour12 === "boolean" && $fb18d541ea1ad717$var$hasBuggyHour12Behavior()) {
|
|
782
|
+
options = {
|
|
783
|
+
...options
|
|
784
|
+
};
|
|
785
|
+
let pref = $fb18d541ea1ad717$var$hour12Preferences[String(options.hour12)][locale.split("-")[0]];
|
|
786
|
+
let defaultHourCycle = options.hour12 ? "h12" : "h23";
|
|
787
|
+
options.hourCycle = pref !== null && pref !== void 0 ? pref : defaultHourCycle;
|
|
788
|
+
delete options.hour12;
|
|
789
|
+
}
|
|
790
|
+
let cacheKey = locale + (options ? Object.entries(options).sort((a, b)=>a[0] < b[0] ? -1 : 1).join() : "");
|
|
791
|
+
if ($fb18d541ea1ad717$var$formatterCache.has(cacheKey)) return $fb18d541ea1ad717$var$formatterCache.get(cacheKey);
|
|
792
|
+
let numberFormatter = new Intl.DateTimeFormat(locale, options);
|
|
793
|
+
$fb18d541ea1ad717$var$formatterCache.set(cacheKey, numberFormatter);
|
|
794
|
+
return numberFormatter;
|
|
795
|
+
}
|
|
796
|
+
let $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = null;
|
|
797
|
+
function $fb18d541ea1ad717$var$hasBuggyHour12Behavior() {
|
|
798
|
+
if ($fb18d541ea1ad717$var$_hasBuggyHour12Behavior == null) $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = new Intl.DateTimeFormat("en-US", {
|
|
799
|
+
hour: "numeric",
|
|
800
|
+
hour12: false
|
|
801
|
+
}).format(new Date(2020, 2, 3, 0)) === "24";
|
|
802
|
+
return $fb18d541ea1ad717$var$_hasBuggyHour12Behavior;
|
|
803
|
+
}
|
|
804
|
+
let $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = null;
|
|
805
|
+
function $fb18d541ea1ad717$var$hasBuggyResolvedHourCycle() {
|
|
806
|
+
if ($fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle == null) $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = new Intl.DateTimeFormat("fr", {
|
|
807
|
+
hour: "numeric",
|
|
808
|
+
hour12: false
|
|
809
|
+
}).resolvedOptions().hourCycle === "h12";
|
|
810
|
+
return $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle;
|
|
811
|
+
}
|
|
812
|
+
function $fb18d541ea1ad717$var$getResolvedHourCycle(locale, options) {
|
|
813
|
+
if (!options.timeStyle && !options.hour) return undefined;
|
|
814
|
+
// Work around buggy results in resolved hourCycle and hour12 options in WebKit.
|
|
815
|
+
// Format the minimum possible hour and maximum possible hour in a day and parse the results.
|
|
816
|
+
locale = locale.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, "");
|
|
817
|
+
locale += (locale.includes("-u-") ? "" : "-u") + "-nu-latn";
|
|
818
|
+
let formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, {
|
|
819
|
+
...options,
|
|
820
|
+
timeZone: undefined // use local timezone
|
|
821
|
+
});
|
|
822
|
+
let min = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 0)).find((p)=>p.type === "hour").value, 10);
|
|
823
|
+
let max = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 23)).find((p)=>p.type === "hour").value, 10);
|
|
824
|
+
if (min === 0 && max === 23) return "h23";
|
|
825
|
+
if (min === 24 && max === 23) return "h24";
|
|
826
|
+
if (min === 0 && max === 11) return "h11";
|
|
827
|
+
if (min === 12 && max === 11) return "h12";
|
|
828
|
+
throw new Error("Unexpected hour cycle result");
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
/*
|
|
832
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
833
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
834
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
835
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
836
|
+
*
|
|
837
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
838
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
839
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
840
|
+
* governing permissions and limitations under the License.
|
|
841
|
+
*/ /*
|
|
842
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
843
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
844
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
845
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
846
|
+
*
|
|
847
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
848
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
849
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
850
|
+
* governing permissions and limitations under the License.
|
|
851
|
+
*/ let $488c6ddbf4ef74c2$var$formatterCache = new Map();
|
|
852
|
+
let $488c6ddbf4ef74c2$var$supportsSignDisplay = false;
|
|
853
|
+
try {
|
|
854
|
+
// @ts-ignore
|
|
855
|
+
$488c6ddbf4ef74c2$var$supportsSignDisplay = new Intl.NumberFormat("de-DE", {
|
|
856
|
+
signDisplay: "exceptZero"
|
|
857
|
+
}).resolvedOptions().signDisplay === "exceptZero";
|
|
858
|
+
// eslint-disable-next-line no-empty
|
|
859
|
+
} catch (e) {}
|
|
860
|
+
let $488c6ddbf4ef74c2$var$supportsUnit = false;
|
|
861
|
+
try {
|
|
862
|
+
// @ts-ignore
|
|
863
|
+
$488c6ddbf4ef74c2$var$supportsUnit = new Intl.NumberFormat("de-DE", {
|
|
864
|
+
style: "unit",
|
|
865
|
+
unit: "degree"
|
|
866
|
+
}).resolvedOptions().style === "unit";
|
|
867
|
+
// eslint-disable-next-line no-empty
|
|
868
|
+
} catch (e1) {}
|
|
869
|
+
// Polyfill for units since Safari doesn't support them yet. See https://bugs.webkit.org/show_bug.cgi?id=215438.
|
|
870
|
+
// Currently only polyfilling the unit degree in narrow format for ColorSlider in our supported locales.
|
|
871
|
+
// Values were determined by switching to each locale manually in Chrome.
|
|
872
|
+
const $488c6ddbf4ef74c2$var$UNITS = {
|
|
873
|
+
degree: {
|
|
874
|
+
narrow: {
|
|
875
|
+
default: "\xb0",
|
|
876
|
+
"ja-JP": " 度",
|
|
877
|
+
"zh-TW": "度",
|
|
878
|
+
"sl-SI": " \xb0"
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
};
|
|
882
|
+
class $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 {
|
|
883
|
+
/** Formats a number value as a string, according to the locale and options provided to the constructor. */ format(value) {
|
|
884
|
+
let res = "";
|
|
885
|
+
if (!$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null) res = $488c6ddbf4ef74c2$export$711b50b3c525e0f2(this.numberFormatter, this.options.signDisplay, value);
|
|
886
|
+
else res = this.numberFormatter.format(value);
|
|
887
|
+
if (this.options.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
|
|
888
|
+
var _UNITS_unit;
|
|
889
|
+
let { unit: unit , unitDisplay: unitDisplay = "short" , locale: locale } = this.resolvedOptions();
|
|
890
|
+
let values = (_UNITS_unit = $488c6ddbf4ef74c2$var$UNITS[unit]) === null || _UNITS_unit === void 0 ? void 0 : _UNITS_unit[unitDisplay];
|
|
891
|
+
res += values[locale] || values.default;
|
|
892
|
+
}
|
|
893
|
+
return res;
|
|
894
|
+
}
|
|
895
|
+
/** Formats a number to an array of parts such as separators, digits, punctuation, and more. */ formatToParts(value) {
|
|
896
|
+
// TODO: implement signDisplay for formatToParts
|
|
897
|
+
// @ts-ignore
|
|
898
|
+
return this.numberFormatter.formatToParts(value);
|
|
899
|
+
}
|
|
900
|
+
/** Formats a number range as a string. */ formatRange(start, end) {
|
|
901
|
+
// @ts-ignore
|
|
902
|
+
if (typeof this.numberFormatter.formatRange === "function") // @ts-ignore
|
|
903
|
+
return this.numberFormatter.formatRange(start, end);
|
|
904
|
+
if (end < start) throw new RangeError("End date must be >= start date");
|
|
905
|
+
// Very basic fallback for old browsers.
|
|
906
|
+
return `${this.format(start)} – ${this.format(end)}`;
|
|
907
|
+
}
|
|
908
|
+
/** Formats a number range as an array of parts. */ formatRangeToParts(start, end) {
|
|
909
|
+
// @ts-ignore
|
|
910
|
+
if (typeof this.numberFormatter.formatRangeToParts === "function") // @ts-ignore
|
|
911
|
+
return this.numberFormatter.formatRangeToParts(start, end);
|
|
912
|
+
if (end < start) throw new RangeError("End date must be >= start date");
|
|
913
|
+
let startParts = this.numberFormatter.formatToParts(start);
|
|
914
|
+
let endParts = this.numberFormatter.formatToParts(end);
|
|
915
|
+
return [
|
|
916
|
+
...startParts.map((p)=>({
|
|
917
|
+
...p,
|
|
918
|
+
source: "startRange"
|
|
919
|
+
})),
|
|
920
|
+
{
|
|
921
|
+
type: "literal",
|
|
922
|
+
value: " – ",
|
|
923
|
+
source: "shared"
|
|
924
|
+
},
|
|
925
|
+
...endParts.map((p)=>({
|
|
926
|
+
...p,
|
|
927
|
+
source: "endRange"
|
|
928
|
+
}))
|
|
929
|
+
];
|
|
930
|
+
}
|
|
931
|
+
/** Returns the resolved formatting options based on the values passed to the constructor. */ resolvedOptions() {
|
|
932
|
+
let options = this.numberFormatter.resolvedOptions();
|
|
933
|
+
if (!$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null) options = {
|
|
934
|
+
...options,
|
|
935
|
+
signDisplay: this.options.signDisplay
|
|
936
|
+
};
|
|
937
|
+
if (!$488c6ddbf4ef74c2$var$supportsUnit && this.options.style === "unit") options = {
|
|
938
|
+
...options,
|
|
939
|
+
style: "unit",
|
|
940
|
+
unit: this.options.unit,
|
|
941
|
+
unitDisplay: this.options.unitDisplay
|
|
942
|
+
};
|
|
943
|
+
return options;
|
|
944
|
+
}
|
|
945
|
+
constructor(locale, options = {}){
|
|
946
|
+
this.numberFormatter = $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options);
|
|
947
|
+
this.options = options;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
function $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options = {}) {
|
|
951
|
+
let { numberingSystem: numberingSystem } = options;
|
|
952
|
+
if (numberingSystem && locale.indexOf("-u-nu-") === -1) locale = `${locale}-u-nu-${numberingSystem}`;
|
|
953
|
+
if (options.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
|
|
954
|
+
var _UNITS_unit;
|
|
955
|
+
let { unit: unit , unitDisplay: unitDisplay = "short" } = options;
|
|
956
|
+
if (!unit) throw new Error('unit option must be provided with style: "unit"');
|
|
957
|
+
if (!((_UNITS_unit = $488c6ddbf4ef74c2$var$UNITS[unit]) === null || _UNITS_unit === void 0 ? void 0 : _UNITS_unit[unitDisplay])) throw new Error(`Unsupported unit ${unit} with unitDisplay = ${unitDisplay}`);
|
|
958
|
+
options = {
|
|
959
|
+
...options,
|
|
960
|
+
style: "decimal"
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
let cacheKey = locale + (options ? Object.entries(options).sort((a, b)=>a[0] < b[0] ? -1 : 1).join() : "");
|
|
964
|
+
if ($488c6ddbf4ef74c2$var$formatterCache.has(cacheKey)) return $488c6ddbf4ef74c2$var$formatterCache.get(cacheKey);
|
|
965
|
+
let numberFormatter = new Intl.NumberFormat(locale, options);
|
|
966
|
+
$488c6ddbf4ef74c2$var$formatterCache.set(cacheKey, numberFormatter);
|
|
967
|
+
return numberFormatter;
|
|
968
|
+
}
|
|
969
|
+
function $488c6ddbf4ef74c2$export$711b50b3c525e0f2(numberFormat, signDisplay, num) {
|
|
970
|
+
if (signDisplay === "auto") return numberFormat.format(num);
|
|
971
|
+
else if (signDisplay === "never") return numberFormat.format(Math.abs(num));
|
|
972
|
+
else {
|
|
973
|
+
let needsPositiveSign = false;
|
|
974
|
+
if (signDisplay === "always") needsPositiveSign = num > 0 || Object.is(num, 0);
|
|
975
|
+
else if (signDisplay === "exceptZero") {
|
|
976
|
+
if (Object.is(num, -0) || Object.is(num, 0)) num = Math.abs(num);
|
|
977
|
+
else needsPositiveSign = num > 0;
|
|
978
|
+
}
|
|
979
|
+
if (needsPositiveSign) {
|
|
980
|
+
let negative = numberFormat.format(-num);
|
|
981
|
+
let noSign = numberFormat.format(num);
|
|
982
|
+
// ignore RTL/LTR marker character
|
|
983
|
+
let minus = negative.replace(noSign, "").replace(/\u200e|\u061C/, "");
|
|
984
|
+
if ([
|
|
985
|
+
...minus
|
|
986
|
+
].length !== 1) console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case");
|
|
987
|
+
let positive = negative.replace(noSign, "!!!").replace(minus, "+").replace("!!!", noSign);
|
|
988
|
+
return positive;
|
|
989
|
+
} else return numberFormat.format(num);
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
/*
|
|
994
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
995
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
996
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
997
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
998
|
+
*
|
|
999
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1000
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1001
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1002
|
+
* governing permissions and limitations under the License.
|
|
1003
|
+
*/ /*
|
|
1004
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
1005
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1006
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1007
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1008
|
+
*
|
|
1009
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1010
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1011
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1012
|
+
* governing permissions and limitations under the License.
|
|
1013
|
+
*/ /*
|
|
1014
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
1015
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1016
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1017
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1018
|
+
*
|
|
1019
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1020
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1021
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1022
|
+
* governing permissions and limitations under the License.
|
|
1023
|
+
*/ // https://en.wikipedia.org/wiki/Right-to-left
|
|
1024
|
+
const $148a7a147e38ea7f$var$RTL_SCRIPTS = new Set([
|
|
1025
|
+
"Arab",
|
|
1026
|
+
"Syrc",
|
|
1027
|
+
"Samr",
|
|
1028
|
+
"Mand",
|
|
1029
|
+
"Thaa",
|
|
1030
|
+
"Mend",
|
|
1031
|
+
"Nkoo",
|
|
1032
|
+
"Adlm",
|
|
1033
|
+
"Rohg",
|
|
1034
|
+
"Hebr"
|
|
1035
|
+
]);
|
|
1036
|
+
const $148a7a147e38ea7f$var$RTL_LANGS = new Set([
|
|
1037
|
+
"ae",
|
|
1038
|
+
"ar",
|
|
1039
|
+
"arc",
|
|
1040
|
+
"bcc",
|
|
1041
|
+
"bqi",
|
|
1042
|
+
"ckb",
|
|
1043
|
+
"dv",
|
|
1044
|
+
"fa",
|
|
1045
|
+
"glk",
|
|
1046
|
+
"he",
|
|
1047
|
+
"ku",
|
|
1048
|
+
"mzn",
|
|
1049
|
+
"nqo",
|
|
1050
|
+
"pnb",
|
|
1051
|
+
"ps",
|
|
1052
|
+
"sd",
|
|
1053
|
+
"ug",
|
|
1054
|
+
"ur",
|
|
1055
|
+
"yi"
|
|
1056
|
+
]);
|
|
1057
|
+
function $148a7a147e38ea7f$export$702d680b21cbd764(locale) {
|
|
1058
|
+
// If the Intl.Locale API is available, use it to get the script for the locale.
|
|
1059
|
+
// This is more accurate than guessing by language, since languages can be written in multiple scripts.
|
|
1060
|
+
// @ts-ignore
|
|
1061
|
+
if (Intl.Locale) {
|
|
1062
|
+
// @ts-ignore
|
|
1063
|
+
let script = new Intl.Locale(locale).maximize().script;
|
|
1064
|
+
return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(script);
|
|
1065
|
+
}
|
|
1066
|
+
// If not, just guess by the language (first part of the locale)
|
|
1067
|
+
let lang = locale.split("-")[0];
|
|
1068
|
+
return $148a7a147e38ea7f$var$RTL_LANGS.has(lang);
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
/*
|
|
1073
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
1074
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1075
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1076
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1077
|
+
*
|
|
1078
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1079
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1080
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1081
|
+
* governing permissions and limitations under the License.
|
|
1082
|
+
*/
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
function $1e5a04cdaf7d1af8$export$f09106e7c6677ec5() {
|
|
1086
|
+
// @ts-ignore
|
|
1087
|
+
let locale = typeof navigator !== "undefined" && (navigator.language || navigator.userLanguage) || "en-US";
|
|
1088
|
+
try {
|
|
1089
|
+
// @ts-ignore
|
|
1090
|
+
Intl.DateTimeFormat.supportedLocalesOf([
|
|
1091
|
+
locale
|
|
1092
|
+
]);
|
|
1093
|
+
} catch (_err) {
|
|
1094
|
+
locale = "en-US";
|
|
1095
|
+
}
|
|
1096
|
+
return {
|
|
1097
|
+
locale: locale,
|
|
1098
|
+
direction: ($148a7a147e38ea7f$export$702d680b21cbd764)(locale) ? "rtl" : "ltr"
|
|
1099
|
+
};
|
|
1100
|
+
}
|
|
1101
|
+
let $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();
|
|
1102
|
+
let $1e5a04cdaf7d1af8$var$listeners = new Set();
|
|
1103
|
+
function $1e5a04cdaf7d1af8$var$updateLocale() {
|
|
1104
|
+
$1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();
|
|
1105
|
+
for (let listener of $1e5a04cdaf7d1af8$var$listeners)listener($1e5a04cdaf7d1af8$var$currentLocale);
|
|
1106
|
+
}
|
|
1107
|
+
function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {
|
|
1108
|
+
let isSSR = ($704cf1d3b684cc5c$export$535bd6ca7f90a273)();
|
|
1109
|
+
let [defaultLocale, setDefaultLocale] = (useState)($1e5a04cdaf7d1af8$var$currentLocale);
|
|
1110
|
+
(useEffect)(()=>{
|
|
1111
|
+
if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.addEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
|
|
1112
|
+
$1e5a04cdaf7d1af8$var$listeners.add(setDefaultLocale);
|
|
1113
|
+
return ()=>{
|
|
1114
|
+
$1e5a04cdaf7d1af8$var$listeners.delete(setDefaultLocale);
|
|
1115
|
+
if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.removeEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
|
|
1116
|
+
};
|
|
1117
|
+
}, []);
|
|
1118
|
+
// We cannot determine the browser's language on the server, so default to
|
|
1119
|
+
// en-US. This will be updated after hydration on the client to the correct value.
|
|
1120
|
+
if (isSSR) return {
|
|
1121
|
+
locale: "en-US",
|
|
1122
|
+
direction: "ltr"
|
|
1123
|
+
};
|
|
1124
|
+
return defaultLocale;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
const $18f2051aff69b9bf$var$I18nContext = /*#__PURE__*/ (React__default).createContext(null);
|
|
1130
|
+
function $18f2051aff69b9bf$export$43bb16f9c6d9e3f7() {
|
|
1131
|
+
let defaultLocale = ($1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a)();
|
|
1132
|
+
let context = (useContext)($18f2051aff69b9bf$var$I18nContext);
|
|
1133
|
+
return context || defaultLocale;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
/*
|
|
1138
|
+
* Copyright 2022 Adobe. All rights reserved.
|
|
1139
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1140
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1141
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1142
|
+
*
|
|
1143
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1144
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1145
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1146
|
+
* governing permissions and limitations under the License.
|
|
1147
|
+
*/
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
const $fca6afa0e843324b$var$cache = new WeakMap();
|
|
1151
|
+
function $fca6afa0e843324b$var$getCachedDictionary(strings) {
|
|
1152
|
+
let dictionary = $fca6afa0e843324b$var$cache.get(strings);
|
|
1153
|
+
if (!dictionary) {
|
|
1154
|
+
dictionary = new ($5b160d28a433310d$export$c17fa47878dc55b6)(strings);
|
|
1155
|
+
$fca6afa0e843324b$var$cache.set(strings, dictionary);
|
|
1156
|
+
}
|
|
1157
|
+
return dictionary;
|
|
1158
|
+
}
|
|
1159
|
+
function $fca6afa0e843324b$export$f12b703ca79dfbb1(strings) {
|
|
1160
|
+
let { locale: locale } = ($18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
|
|
1161
|
+
let dictionary = (useMemo)(()=>$fca6afa0e843324b$var$getCachedDictionary(strings), [
|
|
1162
|
+
strings
|
|
1163
|
+
]);
|
|
1164
|
+
return (useMemo)(()=>new ($6db58dc88e78b024$export$2f817fcdc4b89ae0)(locale, dictionary), [
|
|
1165
|
+
locale,
|
|
1166
|
+
dictionary
|
|
1167
|
+
]);
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
/*
|
|
1172
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
1173
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1174
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1175
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1176
|
+
*
|
|
1177
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1178
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1179
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1180
|
+
* governing permissions and limitations under the License.
|
|
1181
|
+
*/
|
|
1182
|
+
|
|
1183
|
+
function $33bf17300c498528$export$a2f47a3d2973640(options = {}) {
|
|
1184
|
+
let { locale: locale } = ($18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
|
|
1185
|
+
// @ts-ignore
|
|
1186
|
+
return (useMemo)(()=>new Intl.ListFormat(locale, options), [
|
|
1187
|
+
locale,
|
|
1188
|
+
options
|
|
1189
|
+
]);
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
/*
|
|
1194
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
1195
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1196
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1197
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1198
|
+
*
|
|
1199
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1200
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1201
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1202
|
+
* governing permissions and limitations under the License.
|
|
1203
|
+
*/
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
function $896ba0a80a8f4d36$export$85fd5fdf27bacc79(options) {
|
|
1207
|
+
// Reuse last options object if it is shallowly equal, which allows the useMemo result to also be reused.
|
|
1208
|
+
let lastOptions = (useRef)(null);
|
|
1209
|
+
if (options && lastOptions.current && $896ba0a80a8f4d36$var$isEqual(options, lastOptions.current)) options = lastOptions.current;
|
|
1210
|
+
lastOptions.current = options;
|
|
1211
|
+
let { locale: locale } = ($18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
|
|
1212
|
+
return (useMemo)(()=>new ($fb18d541ea1ad717$export$ad991b66133851cf)(locale, options), [
|
|
1213
|
+
locale,
|
|
1214
|
+
options
|
|
1215
|
+
]);
|
|
1216
|
+
}
|
|
1217
|
+
function $896ba0a80a8f4d36$var$isEqual(a, b) {
|
|
1218
|
+
if (a === b) return true;
|
|
1219
|
+
let aKeys = Object.keys(a);
|
|
1220
|
+
let bKeys = Object.keys(b);
|
|
1221
|
+
if (aKeys.length !== bKeys.length) return false;
|
|
1222
|
+
for (let key of aKeys){
|
|
1223
|
+
if (b[key] !== a[key]) return false;
|
|
1224
|
+
}
|
|
1225
|
+
return true;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
/*
|
|
1230
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
1231
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1232
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1233
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1234
|
+
*
|
|
1235
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1236
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1237
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1238
|
+
* governing permissions and limitations under the License.
|
|
1239
|
+
*/
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
function $a916eb452884faea$export$b7a616150fdb9f44(options = {}) {
|
|
1243
|
+
let { locale: locale } = ($18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
|
|
1244
|
+
return (useMemo)(()=>new ($488c6ddbf4ef74c2$export$cc77c4ff7e8673c5)(locale, options), [
|
|
1245
|
+
locale,
|
|
1246
|
+
options
|
|
1247
|
+
]);
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
/*
|
|
1252
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
1253
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1254
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1255
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1256
|
+
*
|
|
1257
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1258
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1259
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1260
|
+
* governing permissions and limitations under the License.
|
|
1261
|
+
*/
|
|
1262
|
+
let $325a3faab7a68acd$var$cache = new Map();
|
|
1263
|
+
function $325a3faab7a68acd$export$a16aca283550c30d(options) {
|
|
1264
|
+
let { locale: locale } = ($18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
|
|
1265
|
+
let cacheKey = locale + (options ? Object.entries(options).sort((a, b)=>a[0] < b[0] ? -1 : 1).join() : "");
|
|
1266
|
+
if ($325a3faab7a68acd$var$cache.has(cacheKey)) return $325a3faab7a68acd$var$cache.get(cacheKey);
|
|
1267
|
+
let formatter = new Intl.Collator(locale, options);
|
|
1268
|
+
$325a3faab7a68acd$var$cache.set(cacheKey, formatter);
|
|
1269
|
+
return formatter;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
/*
|
|
1274
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
1275
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1276
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1277
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1278
|
+
*
|
|
1279
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1280
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1281
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1282
|
+
* governing permissions and limitations under the License.
|
|
1283
|
+
*/
|
|
1284
|
+
|
|
1285
|
+
function $bb77f239b46e8c72$export$3274cf84b703fff(options) {
|
|
1286
|
+
let collator = ($325a3faab7a68acd$export$a16aca283550c30d)({
|
|
1287
|
+
usage: "search",
|
|
1288
|
+
...options
|
|
1289
|
+
});
|
|
1290
|
+
// TODO(later): these methods don't currently support the ignorePunctuation option.
|
|
1291
|
+
let startsWith = (useCallback)((string, substring)=>{
|
|
1292
|
+
if (substring.length === 0) return true;
|
|
1293
|
+
// Normalize both strings so we can slice safely
|
|
1294
|
+
// TODO: take into account the ignorePunctuation option as well...
|
|
1295
|
+
string = string.normalize("NFC");
|
|
1296
|
+
substring = substring.normalize("NFC");
|
|
1297
|
+
return collator.compare(string.slice(0, substring.length), substring) === 0;
|
|
1298
|
+
}, [
|
|
1299
|
+
collator
|
|
1300
|
+
]);
|
|
1301
|
+
let endsWith = (useCallback)((string, substring)=>{
|
|
1302
|
+
if (substring.length === 0) return true;
|
|
1303
|
+
string = string.normalize("NFC");
|
|
1304
|
+
substring = substring.normalize("NFC");
|
|
1305
|
+
return collator.compare(string.slice(-substring.length), substring) === 0;
|
|
1306
|
+
}, [
|
|
1307
|
+
collator
|
|
1308
|
+
]);
|
|
1309
|
+
let contains = (useCallback)((string, substring)=>{
|
|
1310
|
+
if (substring.length === 0) return true;
|
|
1311
|
+
string = string.normalize("NFC");
|
|
1312
|
+
substring = substring.normalize("NFC");
|
|
1313
|
+
let scan = 0;
|
|
1314
|
+
let sliceLen = substring.length;
|
|
1315
|
+
for(; scan + sliceLen <= string.length; scan++){
|
|
1316
|
+
let slice = string.slice(scan, scan + sliceLen);
|
|
1317
|
+
if (collator.compare(substring, slice) === 0) return true;
|
|
1318
|
+
}
|
|
1319
|
+
return false;
|
|
1320
|
+
}, [
|
|
1321
|
+
collator
|
|
1322
|
+
]);
|
|
1323
|
+
return (useMemo)(()=>({
|
|
1324
|
+
startsWith: startsWith,
|
|
1325
|
+
endsWith: endsWith,
|
|
1326
|
+
contains: contains
|
|
1327
|
+
}), [
|
|
1328
|
+
startsWith,
|
|
1329
|
+
endsWith,
|
|
1330
|
+
contains
|
|
1331
|
+
]);
|
|
1332
|
+
}
|
|
1333
|
+
|
|
522
1334
|
/**
|
|
523
1335
|
* Component variant.
|
|
524
1336
|
*/
|
|
@@ -974,10 +1786,10 @@ const StyledIcon = styled.span`
|
|
|
974
1786
|
}}
|
|
975
1787
|
`;
|
|
976
1788
|
|
|
977
|
-
const _excluded$
|
|
978
|
-
const COMPONENT_NAME$
|
|
979
|
-
const CLASSNAME$
|
|
980
|
-
const DEFAULT_PROPS$
|
|
1789
|
+
const _excluded$J = ["aria-hidden", "aria-label", "badge", "className", "color", "icon", "size", "svgProps"];
|
|
1790
|
+
const COMPONENT_NAME$L = 'Icon';
|
|
1791
|
+
const CLASSNAME$L = 'redsift-icon';
|
|
1792
|
+
const DEFAULT_PROPS$L = {
|
|
981
1793
|
size: IconSize.medium
|
|
982
1794
|
};
|
|
983
1795
|
|
|
@@ -995,7 +1807,7 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
995
1807
|
size,
|
|
996
1808
|
svgProps
|
|
997
1809
|
} = props,
|
|
998
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1810
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$J);
|
|
999
1811
|
return /*#__PURE__*/React__default.createElement(StyledIcon, _extends$1({}, forwardedProps, {
|
|
1000
1812
|
$color: color,
|
|
1001
1813
|
$size: size,
|
|
@@ -1017,9 +1829,9 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1017
1829
|
fill: "currentColor"
|
|
1018
1830
|
})), badge ? badge : null);
|
|
1019
1831
|
});
|
|
1020
|
-
Icon.className = CLASSNAME$
|
|
1021
|
-
Icon.defaultProps = DEFAULT_PROPS$
|
|
1022
|
-
Icon.displayName = COMPONENT_NAME$
|
|
1832
|
+
Icon.className = CLASSNAME$L;
|
|
1833
|
+
Icon.defaultProps = DEFAULT_PROPS$L;
|
|
1834
|
+
Icon.displayName = COMPONENT_NAME$L;
|
|
1023
1835
|
|
|
1024
1836
|
/**
|
|
1025
1837
|
* Component variant.
|
|
@@ -1217,10 +2029,10 @@ const StyledAppContainer = styled.div`
|
|
|
1217
2029
|
}}
|
|
1218
2030
|
`;
|
|
1219
2031
|
|
|
1220
|
-
const _excluded$
|
|
1221
|
-
const COMPONENT_NAME$
|
|
1222
|
-
const CLASSNAME$
|
|
1223
|
-
const DEFAULT_PROPS$
|
|
2032
|
+
const _excluded$I = ["children", "className", "locale", "productTheme"];
|
|
2033
|
+
const COMPONENT_NAME$K = 'AppContainer';
|
|
2034
|
+
const CLASSNAME$K = 'redsift-app-container';
|
|
2035
|
+
const DEFAULT_PROPS$K = {};
|
|
1224
2036
|
|
|
1225
2037
|
/**
|
|
1226
2038
|
* The AppContainer component.
|
|
@@ -1232,7 +2044,7 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1232
2044
|
locale,
|
|
1233
2045
|
productTheme
|
|
1234
2046
|
} = props,
|
|
1235
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2047
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$I);
|
|
1236
2048
|
const {
|
|
1237
2049
|
hasAppBar,
|
|
1238
2050
|
hasAppSidePanel,
|
|
@@ -1268,6 +2080,7 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1268
2080
|
title
|
|
1269
2081
|
};
|
|
1270
2082
|
return /*#__PURE__*/React__default.createElement(StyledAppContainer, _extends$1({}, forwardedProps, {
|
|
2083
|
+
id: "redsift-app-container",
|
|
1271
2084
|
$productTheme: productTheme,
|
|
1272
2085
|
className: classNames(AppContainer.className, className),
|
|
1273
2086
|
ref: ref
|
|
@@ -1277,9 +2090,9 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1277
2090
|
locale: locale
|
|
1278
2091
|
}, children)));
|
|
1279
2092
|
});
|
|
1280
|
-
AppContainer.className = CLASSNAME$
|
|
1281
|
-
AppContainer.defaultProps = DEFAULT_PROPS$
|
|
1282
|
-
AppContainer.displayName = COMPONENT_NAME$
|
|
2093
|
+
AppContainer.className = CLASSNAME$K;
|
|
2094
|
+
AppContainer.defaultProps = DEFAULT_PROPS$K;
|
|
2095
|
+
AppContainer.displayName = COMPONENT_NAME$K;
|
|
1283
2096
|
|
|
1284
2097
|
var spinnerDefault = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDAwIDQwMCIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogIDxzdHlsZT4KICAgIC5zcGlubmluZyB7CiAgICAgIGFuaW1hdGlvbjogc3Bpbm5pbmcta2V5ZnJhbWVzIDMwMDBtcyBsaW5lYXIgaW5maW5pdGUgbm9ybWFsIGZvcndhcmRzOwogICAgICB0cmFuc2Zvcm0tb3JpZ2luOiBjZW50ZXI7CiAgICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllcigwLjQyLCAwLCAwLjU4LCAxKTsKICAgIH0KICAgIEBrZXlmcmFtZXMgc3Bpbm5pbmcta2V5ZnJhbWVzIHsKICAgICAgMCUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgwZGVnKTsKICAgICAgfQoKICAgICAgMzMlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMTgwZGVnKTsKICAgICAgfQoKICAgICAgNTAlIHsKICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpOwogICAgICB9CgogICAgICA4MyUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgzNjBkZWcpOwogICAgICB9CgogICAgICAxMDAlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMzYwZGVnKQogICAgICB9CiAgICB9CiAgPC9zdHlsZT4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MpIgogICAgZmlsbD0iIzAwNzllMSIKICAgIGQ9Ik0zMTggMTg2LjlWMTA4LjhMMjAwIDU3IDgyIDEwOC44djc4LjFDODIgMjU5IDEzMi4zIDMyNi40IDIwMCAzNDNjNjcuNy0xNi42IDExOC04NCAxMTgtMTU2LjF6TTQwMCAyMDBjMCAxMTAuNS04OS41IDIwMC0yMDAgMjAwUzAgMzEwLjUgMCAyMDAgODkuNSAwIDIwMCAwczIwMCA4OS41IDIwMCAyMDB6IgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrcyI+CiAgICA8cGF0aAogICAgICBjbGFzcz0ic3Bpbm5pbmciCiAgICAgIGQ9Ik0wLDIwMEMwLDg5LjU0MzA1LDg5LjU0MzA1LDAsMjAwLDB2NDAwQzg5LjU0MzA1LDQwMCwwLDMxMC40NTY5NSwwLDIwMFoiCiAgICAgIGZpbGw9IiNmZmYiCiAgICAvPgogIDwvbWFzaz4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MyKSIKICAgIGZpbGw9IiMwMDc5ZTEiCiAgICBkPSJNODIsMTg2LjkzOXYtNzguMDg5TDIwMCw1N2wxMTgsNTEuODV2NzguMDg5QzMxOCwyNTkuMDAyLDI2Ny42ODYsMzI2LjQwMiwyMDAsMzQzQzEzMi4zMTQsMzI2LjQwMiw4MiwyNTkuMDAyLDgyLDE4Ni45MzlaIgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrczIiPgogICAgPHBhdGgKICAgICAgY2xhc3M9InNwaW5uaW5nIgogICAgICBkPSJNNDAwIDIwMEM0MDAgMzEwLjUgMzEwLjUgNDAwIDIwMCA0MDBWMGMxMTAuNSAwIDIwMCA4OS41IDIwMCAyMDB6IgogICAgICBmaWxsPSIjZmZmIgogICAgLz4KICA8L21hc2s+Cjwvc3ZnPg==';
|
|
1285
2098
|
|
|
@@ -1299,7 +2112,7 @@ var spinnerTools = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My
|
|
|
1299
2112
|
|
|
1300
2113
|
var spinnerWebsite = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDAwIDQwMCIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogIDxzdHlsZT4KICAgIC5zcGlubmluZyB7CiAgICAgIGFuaW1hdGlvbjogc3Bpbm5pbmcta2V5ZnJhbWVzIDMwMDBtcyBsaW5lYXIgaW5maW5pdGUgbm9ybWFsIGZvcndhcmRzOwogICAgICB0cmFuc2Zvcm0tb3JpZ2luOiBjZW50ZXI7CiAgICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllcigwLjQyLCAwLCAwLjU4LCAxKTsKICAgIH0KICAgIEBrZXlmcmFtZXMgc3Bpbm5pbmcta2V5ZnJhbWVzIHsKICAgICAgMCUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgwZGVnKTsKICAgICAgfQoKICAgICAgMzMlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMTgwZGVnKTsKICAgICAgfQoKICAgICAgNTAlIHsKICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpOwogICAgICB9CgogICAgICA4MyUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgzNjBkZWcpOwogICAgICB9CgogICAgICAxMDAlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMzYwZGVnKQogICAgICB9CiAgICB9CiAgPC9zdHlsZT4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MpIgogICAgZmlsbD0iIzAwNzllMSIKICAgIGQ9Ik0zMTggMTg2LjlWMTA4LjhMMjAwIDU3IDgyIDEwOC44djc4LjFDODIgMjU5IDEzMi4zIDMyNi40IDIwMCAzNDNjNjcuNy0xNi42IDExOC04NCAxMTgtMTU2LjF6TTQwMCAyMDBjMCAxMTAuNS04OS41IDIwMC0yMDAgMjAwUzAgMzEwLjUgMCAyMDAgODkuNSAwIDIwMCAwczIwMCA4OS41IDIwMCAyMDB6IgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrcyI+CiAgICA8cGF0aAogICAgICBjbGFzcz0ic3Bpbm5pbmciCiAgICAgIGQ9Ik0wLDIwMEMwLDg5LjU0MzA1LDg5LjU0MzA1LDAsMjAwLDB2NDAwQzg5LjU0MzA1LDQwMCwwLDMxMC40NTY5NSwwLDIwMFoiCiAgICAgIGZpbGw9IiNmZmYiCiAgICAvPgogIDwvbWFzaz4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MyKSIKICAgIGZpbGw9IiMwMDc5ZTEiCiAgICBkPSJNODIsMTg2LjkzOXYtNzguMDg5TDIwMCw1N2wxMTgsNTEuODV2NzguMDg5QzMxOCwyNTkuMDAyLDI2Ny42ODYsMzI2LjQwMiwyMDAsMzQzQzEzMi4zMTQsMzI2LjQwMiw4MiwyNTkuMDAyLDgyLDE4Ni45MzlaIgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrczIiPgogICAgPHBhdGgKICAgICAgY2xhc3M9InNwaW5uaW5nIgogICAgICBkPSJNNDAwIDIwMEM0MDAgMzEwLjUgMzEwLjUgNDAwIDIwMCA0MDBWMGMxMTAuNSAwIDIwMCA4OS41IDIwMCAyMDB6IgogICAgICBmaWxsPSIjZmZmIgogICAgLz4KICA8L21hc2s+Cjwvc3ZnPg==';
|
|
1301
2114
|
|
|
1302
|
-
const _excluded$
|
|
2115
|
+
const _excluded$H = ["aria-hidden", "aria-label", "className", "color", "size"];
|
|
1303
2116
|
const colorToFile = {
|
|
1304
2117
|
default: spinnerDefault,
|
|
1305
2118
|
hardenize: spinnerHardenize,
|
|
@@ -1311,9 +2124,9 @@ const colorToFile = {
|
|
|
1311
2124
|
tools: spinnerTools,
|
|
1312
2125
|
website: spinnerWebsite
|
|
1313
2126
|
};
|
|
1314
|
-
const COMPONENT_NAME$
|
|
1315
|
-
const CLASSNAME$
|
|
1316
|
-
const DEFAULT_PROPS$
|
|
2127
|
+
const COMPONENT_NAME$J = 'Spinner';
|
|
2128
|
+
const CLASSNAME$J = 'redsift-shield';
|
|
2129
|
+
const DEFAULT_PROPS$J = {
|
|
1317
2130
|
color: ColorPalette.default,
|
|
1318
2131
|
size: SpinnerSize.medium
|
|
1319
2132
|
};
|
|
@@ -1354,7 +2167,7 @@ const Spinner = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1354
2167
|
color: propsColor,
|
|
1355
2168
|
size
|
|
1356
2169
|
} = props,
|
|
1357
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2170
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$H);
|
|
1358
2171
|
const {
|
|
1359
2172
|
width,
|
|
1360
2173
|
height
|
|
@@ -1376,14 +2189,14 @@ const Spinner = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1376
2189
|
$size: size
|
|
1377
2190
|
}));
|
|
1378
2191
|
});
|
|
1379
|
-
Spinner.className = CLASSNAME$
|
|
1380
|
-
Spinner.defaultProps = DEFAULT_PROPS$
|
|
1381
|
-
Spinner.displayName = COMPONENT_NAME$
|
|
2192
|
+
Spinner.className = CLASSNAME$J;
|
|
2193
|
+
Spinner.defaultProps = DEFAULT_PROPS$J;
|
|
2194
|
+
Spinner.displayName = COMPONENT_NAME$J;
|
|
1382
2195
|
|
|
1383
|
-
const _excluded$
|
|
1384
|
-
const COMPONENT_NAME$
|
|
1385
|
-
const CLASSNAME$
|
|
1386
|
-
const DEFAULT_PROPS$
|
|
2196
|
+
const _excluded$G = ["children", "className", "color", "disabled", "fullWidth", "isActive", "isDisabled", "isLoading", "leftIcon", "onPress", "rightIcon", "variant"];
|
|
2197
|
+
const COMPONENT_NAME$I = 'Button';
|
|
2198
|
+
const CLASSNAME$I = 'redsift-button';
|
|
2199
|
+
const DEFAULT_PROPS$I = {
|
|
1387
2200
|
color: ColorPalette.default,
|
|
1388
2201
|
height: 'fit-content',
|
|
1389
2202
|
variant: ButtonVariant.primary
|
|
@@ -1420,7 +2233,7 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1420
2233
|
rightIcon,
|
|
1421
2234
|
variant
|
|
1422
2235
|
} = props,
|
|
1423
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2236
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$G);
|
|
1424
2237
|
return /*#__PURE__*/React__default.createElement(StyledButton, _extends$1({}, forwardedProps, buttonProps, {
|
|
1425
2238
|
$color: color,
|
|
1426
2239
|
$fullWidth: fullWidth,
|
|
@@ -1444,9 +2257,9 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1444
2257
|
className: "right"
|
|
1445
2258
|
}) : null);
|
|
1446
2259
|
});
|
|
1447
|
-
Button.className = CLASSNAME$
|
|
1448
|
-
Button.defaultProps = DEFAULT_PROPS$
|
|
1449
|
-
Button.displayName = COMPONENT_NAME$
|
|
2260
|
+
Button.className = CLASSNAME$I;
|
|
2261
|
+
Button.defaultProps = DEFAULT_PROPS$I;
|
|
2262
|
+
Button.displayName = COMPONENT_NAME$I;
|
|
1450
2263
|
|
|
1451
2264
|
/**
|
|
1452
2265
|
* Component style.
|
|
@@ -1457,15 +2270,15 @@ const StyledIconButton = styled(StyledButton)`
|
|
|
1457
2270
|
$variant
|
|
1458
2271
|
} = _ref;
|
|
1459
2272
|
return css`
|
|
1460
|
-
padding: ${$variant === IconButtonVariant.secondary ? '
|
|
2273
|
+
padding: ${$variant === IconButtonVariant.secondary ? '8px' : '9px'};
|
|
1461
2274
|
`;
|
|
1462
2275
|
}};
|
|
1463
2276
|
`;
|
|
1464
2277
|
|
|
1465
|
-
const _excluded$
|
|
1466
|
-
const COMPONENT_NAME$
|
|
1467
|
-
const CLASSNAME$
|
|
1468
|
-
const DEFAULT_PROPS$
|
|
2278
|
+
const _excluded$F = ["className", "color", "disabled", "icon", "isActive", "isDisabled", "onPress", "variant"];
|
|
2279
|
+
const COMPONENT_NAME$H = 'IconButton';
|
|
2280
|
+
const CLASSNAME$H = 'redsift-icon-button';
|
|
2281
|
+
const DEFAULT_PROPS$H = {
|
|
1469
2282
|
color: ColorPalette.default,
|
|
1470
2283
|
height: 'fit-content',
|
|
1471
2284
|
variant: IconButtonVariant.unstyled
|
|
@@ -1497,7 +2310,7 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1497
2310
|
onPress,
|
|
1498
2311
|
variant
|
|
1499
2312
|
} = props,
|
|
1500
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2313
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$F);
|
|
1501
2314
|
warnIfNoAccessibleLabelFound(props);
|
|
1502
2315
|
return /*#__PURE__*/React__default.createElement(StyledIconButton, _extends$1({}, forwardedProps, buttonProps, {
|
|
1503
2316
|
$color: isDisabled || disabled ? undefined : color,
|
|
@@ -1513,9 +2326,9 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1513
2326
|
color: isDisabled || disabled ? undefined : color
|
|
1514
2327
|
}));
|
|
1515
2328
|
});
|
|
1516
|
-
IconButton.className = CLASSNAME$
|
|
1517
|
-
IconButton.defaultProps = DEFAULT_PROPS$
|
|
1518
|
-
IconButton.displayName = COMPONENT_NAME$
|
|
2329
|
+
IconButton.className = CLASSNAME$H;
|
|
2330
|
+
IconButton.defaultProps = DEFAULT_PROPS$H;
|
|
2331
|
+
IconButton.displayName = COMPONENT_NAME$H;
|
|
1519
2332
|
|
|
1520
2333
|
/**
|
|
1521
2334
|
* Component style.
|
|
@@ -1655,10 +2468,10 @@ const StyledHeading = styled.span`
|
|
|
1655
2468
|
}}
|
|
1656
2469
|
`;
|
|
1657
2470
|
|
|
1658
|
-
const _excluded$
|
|
1659
|
-
const COMPONENT_NAME$
|
|
1660
|
-
const CLASSNAME$
|
|
1661
|
-
const DEFAULT_PROPS$
|
|
2471
|
+
const _excluded$E = ["as", "children", "className", "noWrap", "variant"];
|
|
2472
|
+
const COMPONENT_NAME$G = 'Heading';
|
|
2473
|
+
const CLASSNAME$G = 'redsift-heading';
|
|
2474
|
+
const DEFAULT_PROPS$G = {};
|
|
1662
2475
|
|
|
1663
2476
|
/**
|
|
1664
2477
|
* The Heading component.
|
|
@@ -1671,7 +2484,7 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1671
2484
|
noWrap,
|
|
1672
2485
|
variant
|
|
1673
2486
|
} = props,
|
|
1674
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2487
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$E);
|
|
1675
2488
|
return /*#__PURE__*/React__default.createElement(StyledHeading, _extends$1({
|
|
1676
2489
|
as: as
|
|
1677
2490
|
}, forwardedProps, {
|
|
@@ -1681,9 +2494,9 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1681
2494
|
$variant: variant ? variant : as === 'span' ? 'body' : as
|
|
1682
2495
|
}), children);
|
|
1683
2496
|
});
|
|
1684
|
-
Heading.className = CLASSNAME$
|
|
1685
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
1686
|
-
Heading.displayName = COMPONENT_NAME$
|
|
2497
|
+
Heading.className = CLASSNAME$G;
|
|
2498
|
+
Heading.defaultProps = DEFAULT_PROPS$G;
|
|
2499
|
+
Heading.displayName = COMPONENT_NAME$G;
|
|
1687
2500
|
|
|
1688
2501
|
/**
|
|
1689
2502
|
* Component style.
|
|
@@ -1701,10 +2514,10 @@ const StyledFlexbox = styled.div`
|
|
|
1701
2514
|
${baseFlexbox}
|
|
1702
2515
|
`;
|
|
1703
2516
|
|
|
1704
|
-
const _excluded$
|
|
1705
|
-
const COMPONENT_NAME$
|
|
1706
|
-
const CLASSNAME$
|
|
1707
|
-
const DEFAULT_PROPS$
|
|
2517
|
+
const _excluded$D = ["children", "className"];
|
|
2518
|
+
const COMPONENT_NAME$F = 'Flexbox';
|
|
2519
|
+
const CLASSNAME$F = 'redsift-flex-box';
|
|
2520
|
+
const DEFAULT_PROPS$F = {
|
|
1708
2521
|
gap: '16px'
|
|
1709
2522
|
};
|
|
1710
2523
|
|
|
@@ -1716,20 +2529,20 @@ const Flexbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1716
2529
|
children,
|
|
1717
2530
|
className
|
|
1718
2531
|
} = props,
|
|
1719
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2532
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$D);
|
|
1720
2533
|
return /*#__PURE__*/React__default.createElement(StyledFlexbox, _extends$1({}, forwardedProps, {
|
|
1721
2534
|
className: classNames(Flexbox.className, className),
|
|
1722
2535
|
ref: ref
|
|
1723
2536
|
}), children);
|
|
1724
2537
|
});
|
|
1725
|
-
Flexbox.className = CLASSNAME$
|
|
1726
|
-
Flexbox.defaultProps = DEFAULT_PROPS$
|
|
1727
|
-
Flexbox.displayName = COMPONENT_NAME$
|
|
1728
|
-
|
|
1729
|
-
const _excluded$
|
|
1730
|
-
const COMPONENT_NAME$
|
|
1731
|
-
const CLASSNAME$
|
|
1732
|
-
const DEFAULT_PROPS$
|
|
2538
|
+
Flexbox.className = CLASSNAME$F;
|
|
2539
|
+
Flexbox.defaultProps = DEFAULT_PROPS$F;
|
|
2540
|
+
Flexbox.displayName = COMPONENT_NAME$F;
|
|
2541
|
+
|
|
2542
|
+
const _excluded$C = ["children", "className", "isClosable", "isClosed", "onClose", "title", "variant"];
|
|
2543
|
+
const COMPONENT_NAME$E = 'Alert';
|
|
2544
|
+
const CLASSNAME$E = 'redsift-alert';
|
|
2545
|
+
const DEFAULT_PROPS$E = {
|
|
1733
2546
|
variant: 'info'
|
|
1734
2547
|
};
|
|
1735
2548
|
const getVariant$1 = variant => {
|
|
@@ -1771,7 +2584,7 @@ const Alert = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1771
2584
|
title,
|
|
1772
2585
|
variant
|
|
1773
2586
|
} = props,
|
|
1774
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2587
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$C);
|
|
1775
2588
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$5);
|
|
1776
2589
|
const {
|
|
1777
2590
|
color,
|
|
@@ -1817,9 +2630,9 @@ const Alert = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1817
2630
|
className: `${Alert.className}__content`
|
|
1818
2631
|
}, children) : null);
|
|
1819
2632
|
});
|
|
1820
|
-
Alert.className = CLASSNAME$
|
|
1821
|
-
Alert.defaultProps = DEFAULT_PROPS$
|
|
1822
|
-
Alert.displayName = COMPONENT_NAME$
|
|
2633
|
+
Alert.className = CLASSNAME$E;
|
|
2634
|
+
Alert.defaultProps = DEFAULT_PROPS$E;
|
|
2635
|
+
Alert.displayName = COMPONENT_NAME$E;
|
|
1823
2636
|
|
|
1824
2637
|
var expand$5 = "Expand left side panel";
|
|
1825
2638
|
var collapse$5 = "Collapse left side panel";
|
|
@@ -1916,10 +2729,10 @@ const StyledAppBar = styled.header`
|
|
|
1916
2729
|
}
|
|
1917
2730
|
`;
|
|
1918
2731
|
|
|
1919
|
-
const _excluded$
|
|
1920
|
-
const COMPONENT_NAME$
|
|
1921
|
-
const CLASSNAME$
|
|
1922
|
-
const DEFAULT_PROPS$
|
|
2732
|
+
const _excluded$B = ["children", "className", "collapseIconButtonProps", "collapseIconButtonRef", "expandIconButtonProps", "expandIconButtonRef", "fallbackTitle", "title"];
|
|
2733
|
+
const COMPONENT_NAME$D = 'AppBar';
|
|
2734
|
+
const CLASSNAME$D = 'redsift-app-bar';
|
|
2735
|
+
const DEFAULT_PROPS$D = {};
|
|
1923
2736
|
|
|
1924
2737
|
/**
|
|
1925
2738
|
* The AppBar component.
|
|
@@ -1935,7 +2748,7 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1935
2748
|
fallbackTitle,
|
|
1936
2749
|
title: propsTitle
|
|
1937
2750
|
} = props,
|
|
1938
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2751
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$B);
|
|
1939
2752
|
const {
|
|
1940
2753
|
isLoaded
|
|
1941
2754
|
} = useIsLoaded();
|
|
@@ -1974,9 +2787,9 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1974
2787
|
className: `${AppBar.className}__right`
|
|
1975
2788
|
}, children));
|
|
1976
2789
|
});
|
|
1977
|
-
AppBar.className = CLASSNAME$
|
|
1978
|
-
AppBar.defaultProps = DEFAULT_PROPS$
|
|
1979
|
-
AppBar.displayName = COMPONENT_NAME$
|
|
2790
|
+
AppBar.className = CLASSNAME$D;
|
|
2791
|
+
AppBar.defaultProps = DEFAULT_PROPS$D;
|
|
2792
|
+
AppBar.displayName = COMPONENT_NAME$D;
|
|
1980
2793
|
|
|
1981
2794
|
/**
|
|
1982
2795
|
* Component style.
|
|
@@ -2042,10 +2855,10 @@ const StyledAppContent = styled.main`
|
|
|
2042
2855
|
}}
|
|
2043
2856
|
`;
|
|
2044
2857
|
|
|
2045
|
-
const _excluded$
|
|
2046
|
-
const COMPONENT_NAME$
|
|
2047
|
-
const CLASSNAME$
|
|
2048
|
-
const DEFAULT_PROPS$
|
|
2858
|
+
const _excluded$A = ["children", "className", "productTheme"];
|
|
2859
|
+
const COMPONENT_NAME$C = 'AppContent';
|
|
2860
|
+
const CLASSNAME$C = 'redsift-app-content';
|
|
2861
|
+
const DEFAULT_PROPS$C = {};
|
|
2049
2862
|
|
|
2050
2863
|
/**
|
|
2051
2864
|
* The AppContent component.
|
|
@@ -2056,7 +2869,7 @@ const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2056
2869
|
className,
|
|
2057
2870
|
productTheme
|
|
2058
2871
|
} = props,
|
|
2059
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2872
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$A);
|
|
2060
2873
|
const {
|
|
2061
2874
|
isLoaded
|
|
2062
2875
|
} = useIsLoaded();
|
|
@@ -2069,9 +2882,9 @@ const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2069
2882
|
ref: ref
|
|
2070
2883
|
}), children);
|
|
2071
2884
|
});
|
|
2072
|
-
AppContent.className = CLASSNAME$
|
|
2073
|
-
AppContent.defaultProps = DEFAULT_PROPS$
|
|
2074
|
-
AppContent.displayName = COMPONENT_NAME$
|
|
2885
|
+
AppContent.className = CLASSNAME$C;
|
|
2886
|
+
AppContent.defaultProps = DEFAULT_PROPS$C;
|
|
2887
|
+
AppContent.displayName = COMPONENT_NAME$C;
|
|
2075
2888
|
|
|
2076
2889
|
/**
|
|
2077
2890
|
* Component style.
|
|
@@ -2165,10 +2978,10 @@ const StyledAppSidePanel = styled.div`
|
|
|
2165
2978
|
}
|
|
2166
2979
|
`;
|
|
2167
2980
|
|
|
2168
|
-
const _excluded$
|
|
2169
|
-
const COMPONENT_NAME$
|
|
2170
|
-
const CLASSNAME$
|
|
2171
|
-
const DEFAULT_PROPS$
|
|
2981
|
+
const _excluded$z = ["children", "className", "featuredElements", "isCollapsed", "logo"];
|
|
2982
|
+
const COMPONENT_NAME$B = 'AppSidePanel';
|
|
2983
|
+
const CLASSNAME$B = 'redsift-app-side-panel';
|
|
2984
|
+
const DEFAULT_PROPS$B = {};
|
|
2172
2985
|
|
|
2173
2986
|
/**
|
|
2174
2987
|
* The AppSidePanel component.
|
|
@@ -2181,7 +2994,7 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2181
2994
|
isCollapsed = false,
|
|
2182
2995
|
logo
|
|
2183
2996
|
} = props,
|
|
2184
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2997
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$z);
|
|
2185
2998
|
const appContainerState = useContext(AppContainerContext);
|
|
2186
2999
|
return /*#__PURE__*/React__default.createElement(StyledAppSidePanel, _extends$1({}, forwardedProps, {
|
|
2187
3000
|
$isCollapsed: !!(isCollapsed || appContainerState !== null && appContainerState !== void 0 && appContainerState.isSidePanelCollapsed),
|
|
@@ -2196,9 +3009,9 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2196
3009
|
className: `${AppSidePanel.className}__featured`
|
|
2197
3010
|
}, featuredElements) : null, children);
|
|
2198
3011
|
});
|
|
2199
|
-
AppSidePanel.className = CLASSNAME$
|
|
2200
|
-
AppSidePanel.defaultProps = DEFAULT_PROPS$
|
|
2201
|
-
AppSidePanel.displayName = COMPONENT_NAME$
|
|
3012
|
+
AppSidePanel.className = CLASSNAME$B;
|
|
3013
|
+
AppSidePanel.defaultProps = DEFAULT_PROPS$B;
|
|
3014
|
+
AppSidePanel.displayName = COMPONENT_NAME$B;
|
|
2202
3015
|
|
|
2203
3016
|
/**
|
|
2204
3017
|
* Context props.
|
|
@@ -2422,10 +3235,10 @@ const StyledBadge = styled.div`
|
|
|
2422
3235
|
}}
|
|
2423
3236
|
`;
|
|
2424
3237
|
|
|
2425
|
-
const _excluded$
|
|
2426
|
-
const COMPONENT_NAME$
|
|
2427
|
-
const CLASSNAME$
|
|
2428
|
-
const DEFAULT_PROPS$
|
|
3238
|
+
const _excluded$y = ["autoBreak", "children", "className", "color", "isReversed", "variant"];
|
|
3239
|
+
const COMPONENT_NAME$A = 'Badge';
|
|
3240
|
+
const CLASSNAME$A = 'redsift-badge';
|
|
3241
|
+
const DEFAULT_PROPS$A = {
|
|
2429
3242
|
color: ColorPalette.question,
|
|
2430
3243
|
variant: BadgeVariant.dot
|
|
2431
3244
|
};
|
|
@@ -2442,7 +3255,7 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2442
3255
|
isReversed,
|
|
2443
3256
|
variant
|
|
2444
3257
|
} = props,
|
|
2445
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3258
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$y);
|
|
2446
3259
|
return /*#__PURE__*/React__default.createElement(StyledBadge, _extends$1({}, forwardedProps, {
|
|
2447
3260
|
$autoBreak: autoBreak,
|
|
2448
3261
|
$color: color,
|
|
@@ -2452,14 +3265,14 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2452
3265
|
ref: ref
|
|
2453
3266
|
}), variant === BadgeVariant.standard ? children : null);
|
|
2454
3267
|
});
|
|
2455
|
-
Badge.className = CLASSNAME$
|
|
2456
|
-
Badge.defaultProps = DEFAULT_PROPS$
|
|
2457
|
-
Badge.displayName = COMPONENT_NAME$
|
|
3268
|
+
Badge.className = CLASSNAME$A;
|
|
3269
|
+
Badge.defaultProps = DEFAULT_PROPS$A;
|
|
3270
|
+
Badge.displayName = COMPONENT_NAME$A;
|
|
2458
3271
|
|
|
2459
|
-
const _excluded$
|
|
2460
|
-
const COMPONENT_NAME$
|
|
2461
|
-
const CLASSNAME$
|
|
2462
|
-
const DEFAULT_PROPS$
|
|
3272
|
+
const _excluded$x = ["badge", "badgeProps", "children", "className", "href", "icon", "iconProps", "iconRef", "isCurrent", "isDisabled", "isSecondLevel", "onClick", "onKeyDown", "tabIndex", "withoutIcons"];
|
|
3273
|
+
const COMPONENT_NAME$z = 'SideNavigationMenuItem';
|
|
3274
|
+
const CLASSNAME$z = 'redsift-side-navigation-menu-item';
|
|
3275
|
+
const DEFAULT_PROPS$z = {};
|
|
2463
3276
|
|
|
2464
3277
|
/**
|
|
2465
3278
|
* The SideNavigationMenuItem component.
|
|
@@ -2483,7 +3296,7 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2483
3296
|
tabIndex,
|
|
2484
3297
|
withoutIcons
|
|
2485
3298
|
} = props,
|
|
2486
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3299
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$x);
|
|
2487
3300
|
warnIfNoAccessibleLabelFound(props, [children]);
|
|
2488
3301
|
const appContainerState = useContext(AppContainerContext);
|
|
2489
3302
|
useEffect(() => {
|
|
@@ -2545,9 +3358,9 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2545
3358
|
color: "error"
|
|
2546
3359
|
}, badgeProps), badge) : null);
|
|
2547
3360
|
});
|
|
2548
|
-
SideNavigationMenuItem.className = CLASSNAME$
|
|
2549
|
-
SideNavigationMenuItem.defaultProps = DEFAULT_PROPS$
|
|
2550
|
-
SideNavigationMenuItem.displayName = COMPONENT_NAME$
|
|
3361
|
+
SideNavigationMenuItem.className = CLASSNAME$z;
|
|
3362
|
+
SideNavigationMenuItem.defaultProps = DEFAULT_PROPS$z;
|
|
3363
|
+
SideNavigationMenuItem.displayName = COMPONENT_NAME$z;
|
|
2551
3364
|
|
|
2552
3365
|
/**
|
|
2553
3366
|
* Component style.
|
|
@@ -2706,10 +3519,10 @@ const SideNavigationMenuReducer = (state, action) => {
|
|
|
2706
3519
|
}
|
|
2707
3520
|
};
|
|
2708
3521
|
|
|
2709
|
-
const _excluded$
|
|
2710
|
-
const COMPONENT_NAME$
|
|
2711
|
-
const CLASSNAME$
|
|
2712
|
-
const DEFAULT_PROPS$
|
|
3522
|
+
const _excluded$w = ["aria-label", "buttonProps", "buttonRef", "children", "className", "hasBadge", "icon", "iconProps", "iconRef", "isDisabled", "isExpanded", "menuProps", "menuRef", "tabIndex", "withoutIcons"];
|
|
3523
|
+
const COMPONENT_NAME$y = 'SideNavigationMenu';
|
|
3524
|
+
const CLASSNAME$y = 'redsift-side-navigation-menu';
|
|
3525
|
+
const DEFAULT_PROPS$y = {};
|
|
2713
3526
|
|
|
2714
3527
|
/**
|
|
2715
3528
|
* The SideNavigationMenu component.
|
|
@@ -2732,7 +3545,7 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2732
3545
|
tabIndex,
|
|
2733
3546
|
withoutIcons
|
|
2734
3547
|
} = props,
|
|
2735
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3548
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$w);
|
|
2736
3549
|
warnIfNoAccessibleLabelFound(props);
|
|
2737
3550
|
const sideNavigationMenuBarContext = useContext(SideNavigationMenuBarContext);
|
|
2738
3551
|
const [isFirstChild, setIsFirstChild] = useState(false);
|
|
@@ -3001,9 +3814,9 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3001
3814
|
role: "menu"
|
|
3002
3815
|
}, menuItemListEventHandler), renderedMenuItems)));
|
|
3003
3816
|
});
|
|
3004
|
-
SideNavigationMenu.className = CLASSNAME$
|
|
3005
|
-
SideNavigationMenu.defaultProps = DEFAULT_PROPS$
|
|
3006
|
-
SideNavigationMenu.displayName = COMPONENT_NAME$
|
|
3817
|
+
SideNavigationMenu.className = CLASSNAME$y;
|
|
3818
|
+
SideNavigationMenu.defaultProps = DEFAULT_PROPS$y;
|
|
3819
|
+
SideNavigationMenu.displayName = COMPONENT_NAME$y;
|
|
3007
3820
|
|
|
3008
3821
|
/**
|
|
3009
3822
|
* Component style.
|
|
@@ -3061,23 +3874,10 @@ const StyledSideNavigationMenuBar = styled.nav`
|
|
|
3061
3874
|
}
|
|
3062
3875
|
`;
|
|
3063
3876
|
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
const
|
|
3068
|
-
const [boundingRect, setBoundingRect] = useState({});
|
|
3069
|
-
useEffect(() => {
|
|
3070
|
-
if (ref.current) {
|
|
3071
|
-
setBoundingRect(ref.current.getBoundingClientRect());
|
|
3072
|
-
}
|
|
3073
|
-
}, deps);
|
|
3074
|
-
return boundingRect;
|
|
3075
|
-
};
|
|
3076
|
-
|
|
3077
|
-
const _excluded$u = ["aria-label", "aria-labelledby", "children", "className", "isDisabled", "menubarProps", "menubarRef", "withoutIcons"];
|
|
3078
|
-
const COMPONENT_NAME$w = 'SideNavigationMenuBar';
|
|
3079
|
-
const CLASSNAME$w = 'redsift-side-navigation-menu-bar';
|
|
3080
|
-
const DEFAULT_PROPS$w = {};
|
|
3877
|
+
const _excluded$v = ["aria-label", "aria-labelledby", "children", "className", "isDisabled", "menubarProps", "menubarRef", "withoutIcons"];
|
|
3878
|
+
const COMPONENT_NAME$x = 'SideNavigationMenuBar';
|
|
3879
|
+
const CLASSNAME$x = 'redsift-side-navigation-menu-bar';
|
|
3880
|
+
const DEFAULT_PROPS$x = {};
|
|
3081
3881
|
|
|
3082
3882
|
/**
|
|
3083
3883
|
* Hook to store the previous index for further use
|
|
@@ -3105,7 +3905,7 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3105
3905
|
menubarRef = useRef(),
|
|
3106
3906
|
withoutIcons
|
|
3107
3907
|
} = props,
|
|
3108
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3908
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$v);
|
|
3109
3909
|
warnIfNoAccessibleLabelFound(props);
|
|
3110
3910
|
const {
|
|
3111
3911
|
top
|
|
@@ -3247,11 +4047,11 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3247
4047
|
role: "menubar"
|
|
3248
4048
|
}), navItems)));
|
|
3249
4049
|
});
|
|
3250
|
-
SideNavigationMenuBar.className = CLASSNAME$
|
|
3251
|
-
SideNavigationMenuBar.defaultProps = DEFAULT_PROPS$
|
|
3252
|
-
SideNavigationMenuBar.displayName = COMPONENT_NAME$
|
|
4050
|
+
SideNavigationMenuBar.className = CLASSNAME$x;
|
|
4051
|
+
SideNavigationMenuBar.defaultProps = DEFAULT_PROPS$x;
|
|
4052
|
+
SideNavigationMenuBar.displayName = COMPONENT_NAME$x;
|
|
3253
4053
|
|
|
3254
|
-
const _excluded$
|
|
4054
|
+
const _excluded$u = ["title", "href", "ref"],
|
|
3255
4055
|
_excluded2 = ["title", "children", "ref"],
|
|
3256
4056
|
_excluded3 = ["title", "href", "ref"];
|
|
3257
4057
|
const isMenu = item => {
|
|
@@ -3270,7 +4070,7 @@ const useSideNavigationMenuBar = _ref => {
|
|
|
3270
4070
|
href,
|
|
3271
4071
|
ref
|
|
3272
4072
|
} = item,
|
|
3273
|
-
rest = _objectWithoutProperties(item, _excluded$
|
|
4073
|
+
rest = _objectWithoutProperties(item, _excluded$u);
|
|
3274
4074
|
menuBarChildren.push( /*#__PURE__*/React__default.createElement(SideNavigationMenuItem, _extends$1({
|
|
3275
4075
|
key: title,
|
|
3276
4076
|
isCurrent: isActive ? isActive(href) : undefined
|
|
@@ -3373,10 +4173,10 @@ const StyledBreadcrumbItem = styled.a`
|
|
|
3373
4173
|
}
|
|
3374
4174
|
`;
|
|
3375
4175
|
|
|
3376
|
-
const _excluded$
|
|
3377
|
-
const COMPONENT_NAME$
|
|
3378
|
-
const CLASSNAME$
|
|
3379
|
-
const DEFAULT_PROPS$
|
|
4176
|
+
const _excluded$t = ["children", "className", "href", "isCurrent", "isDisabled"];
|
|
4177
|
+
const COMPONENT_NAME$w = 'BreadcrumbItem';
|
|
4178
|
+
const CLASSNAME$w = 'redsift-breadcrumb-item';
|
|
4179
|
+
const DEFAULT_PROPS$w = {};
|
|
3380
4180
|
|
|
3381
4181
|
/**
|
|
3382
4182
|
* The BreadcrumbItem components is a list of links to the parent pages of the current page in hierarchical order.
|
|
@@ -3389,7 +4189,7 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3389
4189
|
isCurrent,
|
|
3390
4190
|
isDisabled
|
|
3391
4191
|
} = props,
|
|
3392
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4192
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$t);
|
|
3393
4193
|
warnIfNoAccessibleLabelFound(props, [children]);
|
|
3394
4194
|
return /*#__PURE__*/React__default.createElement(StyledBreadcrumbItem, _extends$1({
|
|
3395
4195
|
role: "link",
|
|
@@ -3404,9 +4204,9 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3404
4204
|
ref: ref
|
|
3405
4205
|
}), children);
|
|
3406
4206
|
});
|
|
3407
|
-
BreadcrumbItem.className = CLASSNAME$
|
|
3408
|
-
BreadcrumbItem.defaultProps = DEFAULT_PROPS$
|
|
3409
|
-
BreadcrumbItem.displayName = COMPONENT_NAME$
|
|
4207
|
+
BreadcrumbItem.className = CLASSNAME$w;
|
|
4208
|
+
BreadcrumbItem.defaultProps = DEFAULT_PROPS$w;
|
|
4209
|
+
BreadcrumbItem.displayName = COMPONENT_NAME$w;
|
|
3410
4210
|
|
|
3411
4211
|
/**
|
|
3412
4212
|
* Component style.
|
|
@@ -3440,10 +4240,10 @@ const StyledBreadcrumbs = styled.nav`
|
|
|
3440
4240
|
}
|
|
3441
4241
|
`;
|
|
3442
4242
|
|
|
3443
|
-
const _excluded$
|
|
3444
|
-
const COMPONENT_NAME$
|
|
3445
|
-
const CLASSNAME$
|
|
3446
|
-
const DEFAULT_PROPS$
|
|
4243
|
+
const _excluded$s = ["children", "className", "isDisabled"];
|
|
4244
|
+
const COMPONENT_NAME$v = 'Breadcrumbs';
|
|
4245
|
+
const CLASSNAME$v = 'redsift-breadcrumbs';
|
|
4246
|
+
const DEFAULT_PROPS$v = {};
|
|
3447
4247
|
|
|
3448
4248
|
/**
|
|
3449
4249
|
* The Breadcrumbs components is a list of links to the parent pages of the current page in hierarchical order.
|
|
@@ -3454,7 +4254,7 @@ const BaseBreadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3454
4254
|
className,
|
|
3455
4255
|
isDisabled
|
|
3456
4256
|
} = props,
|
|
3457
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4257
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$s);
|
|
3458
4258
|
warnIfNoAccessibleLabelFound(props);
|
|
3459
4259
|
const childArray = filterComponents([Breadcrumbs.Item])(children);
|
|
3460
4260
|
const breadcrumbItems = childArray.map((child, index) => {
|
|
@@ -3477,17 +4277,17 @@ const BaseBreadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3477
4277
|
ref: ref
|
|
3478
4278
|
}), /*#__PURE__*/React__default.createElement("ol", null, breadcrumbItems));
|
|
3479
4279
|
});
|
|
3480
|
-
BaseBreadcrumbs.className = CLASSNAME$
|
|
3481
|
-
BaseBreadcrumbs.defaultProps = DEFAULT_PROPS$
|
|
3482
|
-
BaseBreadcrumbs.displayName = COMPONENT_NAME$
|
|
4280
|
+
BaseBreadcrumbs.className = CLASSNAME$v;
|
|
4281
|
+
BaseBreadcrumbs.defaultProps = DEFAULT_PROPS$v;
|
|
4282
|
+
BaseBreadcrumbs.displayName = COMPONENT_NAME$v;
|
|
3483
4283
|
const Breadcrumbs = Object.assign(BaseBreadcrumbs, {
|
|
3484
4284
|
Item: BreadcrumbItem
|
|
3485
4285
|
});
|
|
3486
4286
|
|
|
3487
|
-
const _excluded$
|
|
3488
|
-
const COMPONENT_NAME$
|
|
3489
|
-
const CLASSNAME$
|
|
3490
|
-
const DEFAULT_PROPS$
|
|
4287
|
+
const _excluded$r = ["as", "children", "className", "color", "href", "isActive", "isDisabled", "leftIcon", "rightIcon", "target", "variant"];
|
|
4288
|
+
const COMPONENT_NAME$u = 'ButtonLink';
|
|
4289
|
+
const CLASSNAME$u = 'redsift-button-link';
|
|
4290
|
+
const DEFAULT_PROPS$u = {
|
|
3491
4291
|
color: ColorPalette.default,
|
|
3492
4292
|
height: 'fit-content',
|
|
3493
4293
|
variant: ButtonVariant.primary
|
|
@@ -3514,7 +4314,7 @@ const ButtonLink = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3514
4314
|
target,
|
|
3515
4315
|
variant
|
|
3516
4316
|
} = props,
|
|
3517
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4317
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$r);
|
|
3518
4318
|
return /*#__PURE__*/React__default.createElement(StyledButton, _extends$1({
|
|
3519
4319
|
as: as || 'a',
|
|
3520
4320
|
role: "link",
|
|
@@ -3538,9 +4338,9 @@ const ButtonLink = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3538
4338
|
className: "right"
|
|
3539
4339
|
}) : null);
|
|
3540
4340
|
});
|
|
3541
|
-
ButtonLink.className = CLASSNAME$
|
|
3542
|
-
ButtonLink.defaultProps = DEFAULT_PROPS$
|
|
3543
|
-
ButtonLink.displayName = COMPONENT_NAME$
|
|
4341
|
+
ButtonLink.className = CLASSNAME$u;
|
|
4342
|
+
ButtonLink.defaultProps = DEFAULT_PROPS$u;
|
|
4343
|
+
ButtonLink.displayName = COMPONENT_NAME$u;
|
|
3544
4344
|
|
|
3545
4345
|
var collapse$3 = "Collapse";
|
|
3546
4346
|
var expand$3 = "Expand";
|
|
@@ -3730,10 +4530,10 @@ const StyledSkeletonCircle = styled(StyledSkeleton)`
|
|
|
3730
4530
|
}}
|
|
3731
4531
|
`;
|
|
3732
4532
|
|
|
3733
|
-
const _excluded$
|
|
3734
|
-
const COMPONENT_NAME$
|
|
3735
|
-
const CLASSNAME$
|
|
3736
|
-
const DEFAULT_PROPS$
|
|
4533
|
+
const _excluded$q = ["children", "className", "isLoaded"];
|
|
4534
|
+
const COMPONENT_NAME$t = 'SkeletonCircle';
|
|
4535
|
+
const CLASSNAME$t = 'redsift-skeleton-circle';
|
|
4536
|
+
const DEFAULT_PROPS$t = {};
|
|
3737
4537
|
|
|
3738
4538
|
/**
|
|
3739
4539
|
* The SkeletonCircle component.
|
|
@@ -3744,7 +4544,7 @@ const SkeletonCircle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3744
4544
|
className,
|
|
3745
4545
|
isLoaded
|
|
3746
4546
|
} = props,
|
|
3747
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4547
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$q);
|
|
3748
4548
|
if (isLoaded) {
|
|
3749
4549
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
3750
4550
|
}
|
|
@@ -3753,9 +4553,9 @@ const SkeletonCircle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3753
4553
|
ref: ref
|
|
3754
4554
|
}), typeof children === 'string' ? /*#__PURE__*/React__default.createElement("span", null, children) : children);
|
|
3755
4555
|
});
|
|
3756
|
-
SkeletonCircle.className = CLASSNAME$
|
|
3757
|
-
SkeletonCircle.defaultProps = DEFAULT_PROPS$
|
|
3758
|
-
SkeletonCircle.displayName = COMPONENT_NAME$
|
|
4556
|
+
SkeletonCircle.className = CLASSNAME$t;
|
|
4557
|
+
SkeletonCircle.defaultProps = DEFAULT_PROPS$t;
|
|
4558
|
+
SkeletonCircle.displayName = COMPONENT_NAME$t;
|
|
3759
4559
|
|
|
3760
4560
|
/**
|
|
3761
4561
|
* Component variant.
|
|
@@ -3807,10 +4607,10 @@ const StyledSkeletonText = styled(StyledSkeleton)`
|
|
|
3807
4607
|
}}}
|
|
3808
4608
|
`;
|
|
3809
4609
|
|
|
3810
|
-
const _excluded$
|
|
3811
|
-
const COMPONENT_NAME$
|
|
3812
|
-
const CLASSNAME$
|
|
3813
|
-
const DEFAULT_PROPS$
|
|
4610
|
+
const _excluded$p = ["children", "className", "fontSize", "isLoaded", "lineHeight", "variant"];
|
|
4611
|
+
const COMPONENT_NAME$s = 'SkeletonText';
|
|
4612
|
+
const CLASSNAME$s = 'redsift-skeleton-text';
|
|
4613
|
+
const DEFAULT_PROPS$s = {
|
|
3814
4614
|
variant: 'body'
|
|
3815
4615
|
};
|
|
3816
4616
|
|
|
@@ -3826,7 +4626,7 @@ const SkeletonText = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3826
4626
|
lineHeight,
|
|
3827
4627
|
variant
|
|
3828
4628
|
} = props,
|
|
3829
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4629
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$p);
|
|
3830
4630
|
if (isLoaded) {
|
|
3831
4631
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
3832
4632
|
}
|
|
@@ -3838,14 +4638,14 @@ const SkeletonText = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3838
4638
|
$variant: variant
|
|
3839
4639
|
}), typeof children === 'string' ? /*#__PURE__*/React__default.createElement("span", null, children) : children);
|
|
3840
4640
|
});
|
|
3841
|
-
SkeletonText.className = CLASSNAME$
|
|
3842
|
-
SkeletonText.defaultProps = DEFAULT_PROPS$
|
|
3843
|
-
SkeletonText.displayName = COMPONENT_NAME$
|
|
4641
|
+
SkeletonText.className = CLASSNAME$s;
|
|
4642
|
+
SkeletonText.defaultProps = DEFAULT_PROPS$s;
|
|
4643
|
+
SkeletonText.displayName = COMPONENT_NAME$s;
|
|
3844
4644
|
|
|
3845
|
-
const _excluded$
|
|
3846
|
-
const COMPONENT_NAME$
|
|
3847
|
-
const CLASSNAME$
|
|
3848
|
-
const DEFAULT_PROPS$
|
|
4645
|
+
const _excluded$o = ["children", "className", "isLoaded"];
|
|
4646
|
+
const COMPONENT_NAME$r = 'Skeleton';
|
|
4647
|
+
const CLASSNAME$r = 'redsift-skeleton';
|
|
4648
|
+
const DEFAULT_PROPS$r = {};
|
|
3849
4649
|
|
|
3850
4650
|
/**
|
|
3851
4651
|
* The Skeleton component.
|
|
@@ -3856,7 +4656,7 @@ const BaseSkeleton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3856
4656
|
className,
|
|
3857
4657
|
isLoaded
|
|
3858
4658
|
} = props,
|
|
3859
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4659
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$o);
|
|
3860
4660
|
if (isLoaded) {
|
|
3861
4661
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
3862
4662
|
}
|
|
@@ -3865,18 +4665,18 @@ const BaseSkeleton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3865
4665
|
ref: ref
|
|
3866
4666
|
}), typeof children === 'string' ? /*#__PURE__*/React__default.createElement("span", null, children) : children);
|
|
3867
4667
|
});
|
|
3868
|
-
BaseSkeleton.className = CLASSNAME$
|
|
3869
|
-
BaseSkeleton.defaultProps = DEFAULT_PROPS$
|
|
3870
|
-
BaseSkeleton.displayName = COMPONENT_NAME$
|
|
4668
|
+
BaseSkeleton.className = CLASSNAME$r;
|
|
4669
|
+
BaseSkeleton.defaultProps = DEFAULT_PROPS$r;
|
|
4670
|
+
BaseSkeleton.displayName = COMPONENT_NAME$r;
|
|
3871
4671
|
const Skeleton = Object.assign(BaseSkeleton, {
|
|
3872
4672
|
Circle: SkeletonCircle,
|
|
3873
4673
|
Text: SkeletonText
|
|
3874
4674
|
});
|
|
3875
4675
|
|
|
3876
|
-
const _excluded$
|
|
3877
|
-
const COMPONENT_NAME$
|
|
3878
|
-
const CLASSNAME$
|
|
3879
|
-
const DEFAULT_PROPS$
|
|
4676
|
+
const _excluded$n = ["children", "className", "header", "headingProps", "icon", "isLoading", "subheader"];
|
|
4677
|
+
const COMPONENT_NAME$q = 'CardHeader';
|
|
4678
|
+
const CLASSNAME$q = 'redsift-card-header';
|
|
4679
|
+
const DEFAULT_PROPS$q = {};
|
|
3880
4680
|
|
|
3881
4681
|
/**
|
|
3882
4682
|
* The CardHeader component.
|
|
@@ -3891,7 +4691,7 @@ const CardHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3891
4691
|
isLoading,
|
|
3892
4692
|
subheader
|
|
3893
4693
|
} = props,
|
|
3894
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4694
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$n);
|
|
3895
4695
|
return /*#__PURE__*/React__default.createElement(StyledCardHeader, _extends$1({}, forwardedProps, {
|
|
3896
4696
|
className: classNames(CardHeader.className, className),
|
|
3897
4697
|
ref: ref
|
|
@@ -3915,9 +4715,9 @@ const CardHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3915
4715
|
"aria-hidden": "true"
|
|
3916
4716
|
}) : null, header)) : null, children);
|
|
3917
4717
|
});
|
|
3918
|
-
CardHeader.className = CLASSNAME$
|
|
3919
|
-
CardHeader.defaultProps = DEFAULT_PROPS$
|
|
3920
|
-
CardHeader.displayName = COMPONENT_NAME$
|
|
4718
|
+
CardHeader.className = CLASSNAME$q;
|
|
4719
|
+
CardHeader.defaultProps = DEFAULT_PROPS$q;
|
|
4720
|
+
CardHeader.displayName = COMPONENT_NAME$q;
|
|
3921
4721
|
|
|
3922
4722
|
/**
|
|
3923
4723
|
* Component style.
|
|
@@ -3933,10 +4733,10 @@ const StyledCardBody = styled.div`
|
|
|
3933
4733
|
padding: 16px 0px;
|
|
3934
4734
|
`;
|
|
3935
4735
|
|
|
3936
|
-
const _excluded$
|
|
3937
|
-
const COMPONENT_NAME$
|
|
3938
|
-
const CLASSNAME$
|
|
3939
|
-
const DEFAULT_PROPS$
|
|
4736
|
+
const _excluded$m = ["children", "className"];
|
|
4737
|
+
const COMPONENT_NAME$p = 'CardBody';
|
|
4738
|
+
const CLASSNAME$p = 'redsift-card-body';
|
|
4739
|
+
const DEFAULT_PROPS$p = {};
|
|
3940
4740
|
|
|
3941
4741
|
/**
|
|
3942
4742
|
* The CardBody component.
|
|
@@ -3946,15 +4746,15 @@ const CardBody = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3946
4746
|
children,
|
|
3947
4747
|
className
|
|
3948
4748
|
} = props,
|
|
3949
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4749
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$m);
|
|
3950
4750
|
return /*#__PURE__*/React__default.createElement(StyledCardBody, _extends$1({}, forwardedProps, {
|
|
3951
4751
|
className: classNames(CardBody.className, className),
|
|
3952
4752
|
ref: ref
|
|
3953
4753
|
}), children);
|
|
3954
4754
|
});
|
|
3955
|
-
CardBody.className = CLASSNAME$
|
|
3956
|
-
CardBody.defaultProps = DEFAULT_PROPS$
|
|
3957
|
-
CardBody.displayName = COMPONENT_NAME$
|
|
4755
|
+
CardBody.className = CLASSNAME$p;
|
|
4756
|
+
CardBody.defaultProps = DEFAULT_PROPS$p;
|
|
4757
|
+
CardBody.displayName = COMPONENT_NAME$p;
|
|
3958
4758
|
|
|
3959
4759
|
/**
|
|
3960
4760
|
* Component style.
|
|
@@ -3966,10 +4766,10 @@ const StyledCardActions = styled.div`
|
|
|
3966
4766
|
margin-bottom: 8px;
|
|
3967
4767
|
`;
|
|
3968
4768
|
|
|
3969
|
-
const _excluded$
|
|
3970
|
-
const COMPONENT_NAME$
|
|
3971
|
-
const CLASSNAME$
|
|
3972
|
-
const DEFAULT_PROPS$
|
|
4769
|
+
const _excluded$l = ["children", "className"];
|
|
4770
|
+
const COMPONENT_NAME$o = 'CardActions';
|
|
4771
|
+
const CLASSNAME$o = 'redsift-card-actions';
|
|
4772
|
+
const DEFAULT_PROPS$o = {
|
|
3973
4773
|
display: 'flex',
|
|
3974
4774
|
flexDirection: 'row'
|
|
3975
4775
|
};
|
|
@@ -3982,20 +4782,20 @@ const CardActions = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3982
4782
|
children,
|
|
3983
4783
|
className
|
|
3984
4784
|
} = props,
|
|
3985
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4785
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$l);
|
|
3986
4786
|
return /*#__PURE__*/React__default.createElement(StyledCardActions, _extends$1({}, forwardedProps, {
|
|
3987
4787
|
className: classNames(CardActions.className, className),
|
|
3988
4788
|
ref: ref
|
|
3989
4789
|
}), children);
|
|
3990
4790
|
});
|
|
3991
|
-
CardActions.className = CLASSNAME$
|
|
3992
|
-
CardActions.defaultProps = DEFAULT_PROPS$
|
|
3993
|
-
CardActions.displayName = COMPONENT_NAME$
|
|
4791
|
+
CardActions.className = CLASSNAME$o;
|
|
4792
|
+
CardActions.defaultProps = DEFAULT_PROPS$o;
|
|
4793
|
+
CardActions.displayName = COMPONENT_NAME$o;
|
|
3994
4794
|
|
|
3995
|
-
const _excluded$
|
|
3996
|
-
const COMPONENT_NAME$
|
|
3997
|
-
const CLASSNAME$
|
|
3998
|
-
const DEFAULT_PROPS$
|
|
4795
|
+
const _excluded$k = ["children", "className", "defaultCollapsed", "isCollapsed", "isCollapsible", "onCollapse"];
|
|
4796
|
+
const COMPONENT_NAME$n = 'Card';
|
|
4797
|
+
const CLASSNAME$n = 'redsift-card';
|
|
4798
|
+
const DEFAULT_PROPS$n = {};
|
|
3999
4799
|
|
|
4000
4800
|
/**
|
|
4001
4801
|
* The Card component.
|
|
@@ -4009,7 +4809,7 @@ const BaseCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4009
4809
|
isCollapsible,
|
|
4010
4810
|
onCollapse
|
|
4011
4811
|
} = props,
|
|
4012
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4812
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$k);
|
|
4013
4813
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$2);
|
|
4014
4814
|
const [isCollapsed, setIsCollapsed] = useState(propsIsCollapsed !== null && propsIsCollapsed !== void 0 ? propsIsCollapsed : defaultCollapsed);
|
|
4015
4815
|
useEffect(() => {
|
|
@@ -4040,9 +4840,9 @@ const BaseCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4040
4840
|
className: `${BaseCard.className}__content`
|
|
4041
4841
|
}, body, actions) : null);
|
|
4042
4842
|
});
|
|
4043
|
-
BaseCard.className = CLASSNAME$
|
|
4044
|
-
BaseCard.defaultProps = DEFAULT_PROPS$
|
|
4045
|
-
BaseCard.displayName = COMPONENT_NAME$
|
|
4843
|
+
BaseCard.className = CLASSNAME$n;
|
|
4844
|
+
BaseCard.defaultProps = DEFAULT_PROPS$n;
|
|
4845
|
+
BaseCard.displayName = COMPONENT_NAME$n;
|
|
4046
4846
|
const Card = Object.assign(BaseCard, {
|
|
4047
4847
|
Header: CardHeader,
|
|
4048
4848
|
Body: CardBody,
|
|
@@ -4141,10 +4941,10 @@ const StyledCheckboxGroup = styled.div`
|
|
|
4141
4941
|
}
|
|
4142
4942
|
`;
|
|
4143
4943
|
|
|
4144
|
-
const _excluded$
|
|
4145
|
-
const COMPONENT_NAME$
|
|
4146
|
-
const CLASSNAME$
|
|
4147
|
-
const DEFAULT_PROPS$
|
|
4944
|
+
const _excluded$j = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
|
|
4945
|
+
const COMPONENT_NAME$m = 'CheckboxGroup';
|
|
4946
|
+
const CLASSNAME$m = 'redsift-checkbox-group';
|
|
4947
|
+
const DEFAULT_PROPS$m = {
|
|
4148
4948
|
color: ColorPalette.default,
|
|
4149
4949
|
orientation: CheckboxGroupOrientation.vertical
|
|
4150
4950
|
};
|
|
@@ -4169,7 +4969,7 @@ const CheckboxGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4169
4969
|
possibleValues,
|
|
4170
4970
|
value
|
|
4171
4971
|
} = props,
|
|
4172
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4972
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$j);
|
|
4173
4973
|
const [selectedValues, setValue] = useState(value || defaultValues || []);
|
|
4174
4974
|
useEffect(() => {
|
|
4175
4975
|
if (value) {
|
|
@@ -4223,9 +5023,9 @@ const CheckboxGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4223
5023
|
className: `${CheckboxGroup.className}-description`
|
|
4224
5024
|
}, description));
|
|
4225
5025
|
});
|
|
4226
|
-
CheckboxGroup.className = CLASSNAME$
|
|
4227
|
-
CheckboxGroup.defaultProps = DEFAULT_PROPS$
|
|
4228
|
-
CheckboxGroup.displayName = COMPONENT_NAME$
|
|
5026
|
+
CheckboxGroup.className = CLASSNAME$m;
|
|
5027
|
+
CheckboxGroup.defaultProps = DEFAULT_PROPS$m;
|
|
5028
|
+
CheckboxGroup.displayName = COMPONENT_NAME$m;
|
|
4229
5029
|
|
|
4230
5030
|
/**
|
|
4231
5031
|
* Component style.
|
|
@@ -4332,10 +5132,10 @@ const StyledCheckbox = styled.label`
|
|
|
4332
5132
|
}
|
|
4333
5133
|
`;
|
|
4334
5134
|
|
|
4335
|
-
const _excluded$
|
|
4336
|
-
const COMPONENT_NAME$
|
|
4337
|
-
const CLASSNAME$
|
|
4338
|
-
const DEFAULT_PROPS$
|
|
5135
|
+
const _excluded$i = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isControlled", "isDisabled", "isIndeterminate", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
|
|
5136
|
+
const COMPONENT_NAME$l = 'Checkbox';
|
|
5137
|
+
const CLASSNAME$l = 'redsift-checkbox';
|
|
5138
|
+
const DEFAULT_PROPS$l = {
|
|
4339
5139
|
isColored: true
|
|
4340
5140
|
};
|
|
4341
5141
|
|
|
@@ -4368,7 +5168,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4368
5168
|
onChange,
|
|
4369
5169
|
value
|
|
4370
5170
|
} = props,
|
|
4371
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
5171
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$i);
|
|
4372
5172
|
const {
|
|
4373
5173
|
isFocusVisible,
|
|
4374
5174
|
focusProps
|
|
@@ -4431,6 +5231,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4431
5231
|
"aria-labelledby": ariaLabelledby,
|
|
4432
5232
|
"aria-readonly": isReadOnly,
|
|
4433
5233
|
"aria-required": isRequired,
|
|
5234
|
+
autoFocus: autoFocus,
|
|
4434
5235
|
checked: isSelected ? true : false,
|
|
4435
5236
|
disabled: isDisabled,
|
|
4436
5237
|
name: name,
|
|
@@ -4448,9 +5249,9 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4448
5249
|
className: "label"
|
|
4449
5250
|
}, children) : null);
|
|
4450
5251
|
});
|
|
4451
|
-
Checkbox.className = CLASSNAME$
|
|
4452
|
-
Checkbox.defaultProps = DEFAULT_PROPS$
|
|
4453
|
-
Checkbox.displayName = COMPONENT_NAME$
|
|
5252
|
+
Checkbox.className = CLASSNAME$l;
|
|
5253
|
+
Checkbox.defaultProps = DEFAULT_PROPS$l;
|
|
5254
|
+
Checkbox.displayName = COMPONENT_NAME$l;
|
|
4454
5255
|
|
|
4455
5256
|
const ConditionalWrapper = _ref => {
|
|
4456
5257
|
let {
|
|
@@ -4560,10 +5361,10 @@ const StyledShield = styled.div`
|
|
|
4560
5361
|
}}
|
|
4561
5362
|
`;
|
|
4562
5363
|
|
|
4563
|
-
const _excluded$
|
|
4564
|
-
const COMPONENT_NAME$
|
|
4565
|
-
const CLASSNAME$
|
|
4566
|
-
const DEFAULT_PROPS$
|
|
5364
|
+
const _excluded$h = ["aria-hidden", "aria-label", "className", "svgProps", "isOutlined", "isReversed", "variant"];
|
|
5365
|
+
const COMPONENT_NAME$k = 'Shield';
|
|
5366
|
+
const CLASSNAME$k = 'redsift-shield';
|
|
5367
|
+
const DEFAULT_PROPS$k = {
|
|
4567
5368
|
variant: ShieldVariant.success
|
|
4568
5369
|
};
|
|
4569
5370
|
const getVariant = variant => {
|
|
@@ -4649,7 +5450,7 @@ const Shield = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4649
5450
|
isReversed,
|
|
4650
5451
|
variant
|
|
4651
5452
|
} = props,
|
|
4652
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
5453
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$h);
|
|
4653
5454
|
const {
|
|
4654
5455
|
color,
|
|
4655
5456
|
icon
|
|
@@ -4683,9 +5484,9 @@ const Shield = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4683
5484
|
className: "icon"
|
|
4684
5485
|
})));
|
|
4685
5486
|
});
|
|
4686
|
-
Shield.className = CLASSNAME$
|
|
4687
|
-
Shield.defaultProps = DEFAULT_PROPS$
|
|
4688
|
-
Shield.displayName = COMPONENT_NAME$
|
|
5487
|
+
Shield.className = CLASSNAME$k;
|
|
5488
|
+
Shield.defaultProps = DEFAULT_PROPS$k;
|
|
5489
|
+
Shield.displayName = COMPONENT_NAME$k;
|
|
4689
5490
|
|
|
4690
5491
|
var collapse$1 = "Collapse details";
|
|
4691
5492
|
var expand$1 = "Expand details";
|
|
@@ -4735,10 +5536,10 @@ const StyledDetailedCardCollapsibleSectionItems = styled.div`
|
|
|
4735
5536
|
}
|
|
4736
5537
|
`;
|
|
4737
5538
|
|
|
4738
|
-
const _excluded$
|
|
4739
|
-
const COMPONENT_NAME$
|
|
4740
|
-
const CLASSNAME$
|
|
4741
|
-
const DEFAULT_PROPS$
|
|
5539
|
+
const _excluded$g = ["caption", "children", "className", "hideBackground"];
|
|
5540
|
+
const COMPONENT_NAME$j = 'DetailedCardCollapsibleSectionItems';
|
|
5541
|
+
const CLASSNAME$j = 'redsift-detailed-card-collapsible-section-items';
|
|
5542
|
+
const DEFAULT_PROPS$j = {};
|
|
4742
5543
|
|
|
4743
5544
|
/**
|
|
4744
5545
|
* The DetailedCardCollapsibleSectionItems Section component.
|
|
@@ -4750,7 +5551,7 @@ const DetailedCardCollapsibleSectionItems = /*#__PURE__*/forwardRef((props, ref)
|
|
|
4750
5551
|
className,
|
|
4751
5552
|
hideBackground
|
|
4752
5553
|
} = props,
|
|
4753
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
5554
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$g);
|
|
4754
5555
|
return /*#__PURE__*/React__default.createElement(StyledDetailedCardCollapsibleSectionItems, _extends$1({}, forwardedProps, {
|
|
4755
5556
|
className: classNames(DetailedCardCollapsibleSectionItems.className, className),
|
|
4756
5557
|
ref: ref,
|
|
@@ -4759,9 +5560,9 @@ const DetailedCardCollapsibleSectionItems = /*#__PURE__*/forwardRef((props, ref)
|
|
|
4759
5560
|
className: `${DetailedCardCollapsibleSectionItems.className}__caption`
|
|
4760
5561
|
}, caption) : null);
|
|
4761
5562
|
});
|
|
4762
|
-
DetailedCardCollapsibleSectionItems.className = CLASSNAME$
|
|
4763
|
-
DetailedCardCollapsibleSectionItems.defaultProps = DEFAULT_PROPS$
|
|
4764
|
-
DetailedCardCollapsibleSectionItems.displayName = COMPONENT_NAME$
|
|
5563
|
+
DetailedCardCollapsibleSectionItems.className = CLASSNAME$j;
|
|
5564
|
+
DetailedCardCollapsibleSectionItems.defaultProps = DEFAULT_PROPS$j;
|
|
5565
|
+
DetailedCardCollapsibleSectionItems.displayName = COMPONENT_NAME$j;
|
|
4765
5566
|
|
|
4766
5567
|
/**
|
|
4767
5568
|
* Component style.
|
|
@@ -4939,10 +5740,10 @@ const StyledText = styled.span`
|
|
|
4939
5740
|
}}
|
|
4940
5741
|
`;
|
|
4941
5742
|
|
|
4942
|
-
const _excluded$
|
|
4943
|
-
const COMPONENT_NAME$
|
|
4944
|
-
const CLASSNAME$
|
|
4945
|
-
const DEFAULT_PROPS$
|
|
5743
|
+
const _excluded$f = ["as", "children", "className", "color", "fontFamily", "fontSize", "lineHeight", "noWrap", "variant"];
|
|
5744
|
+
const COMPONENT_NAME$i = 'Text';
|
|
5745
|
+
const CLASSNAME$i = 'redsift-text';
|
|
5746
|
+
const DEFAULT_PROPS$i = {
|
|
4946
5747
|
fontFamily: FontFamily.raleway
|
|
4947
5748
|
};
|
|
4948
5749
|
|
|
@@ -4961,7 +5762,7 @@ const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4961
5762
|
noWrap,
|
|
4962
5763
|
variant
|
|
4963
5764
|
} = props,
|
|
4964
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
5765
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$f);
|
|
4965
5766
|
return /*#__PURE__*/React__default.createElement(StyledText, _extends$1({
|
|
4966
5767
|
as: as
|
|
4967
5768
|
}, forwardedProps, {
|
|
@@ -4976,14 +5777,14 @@ const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4976
5777
|
$variant: variant
|
|
4977
5778
|
}), children);
|
|
4978
5779
|
});
|
|
4979
|
-
Text.className = CLASSNAME$
|
|
4980
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
4981
|
-
Text.displayName = COMPONENT_NAME$
|
|
4982
|
-
|
|
4983
|
-
const _excluded$
|
|
4984
|
-
const COMPONENT_NAME$
|
|
4985
|
-
const CLASSNAME$
|
|
4986
|
-
const DEFAULT_PROPS$
|
|
5780
|
+
Text.className = CLASSNAME$i;
|
|
5781
|
+
Text.defaultProps = DEFAULT_PROPS$i;
|
|
5782
|
+
Text.displayName = COMPONENT_NAME$i;
|
|
5783
|
+
|
|
5784
|
+
const _excluded$e = ["badge", "color", "children", "className", "header", "isCollapsed", "isCollapsible", "isLoading"];
|
|
5785
|
+
const COMPONENT_NAME$h = 'DetailedCardSection';
|
|
5786
|
+
const CLASSNAME$h = 'redsift-detailed-card-section';
|
|
5787
|
+
const DEFAULT_PROPS$h = {
|
|
4987
5788
|
isCollapsible: true
|
|
4988
5789
|
};
|
|
4989
5790
|
const hasCollapsibleChildren = children => {
|
|
@@ -5010,7 +5811,7 @@ const DetailedCardSection = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5010
5811
|
isCollapsible: propsIsCollapsible,
|
|
5011
5812
|
isLoading
|
|
5012
5813
|
} = props,
|
|
5013
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
5814
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$e);
|
|
5014
5815
|
const stringFormatter = useLocalizedStringFormatter(intlMessages);
|
|
5015
5816
|
const isCollapsible = propsIsCollapsible && hasCollapsibleChildren(children);
|
|
5016
5817
|
const [isCollapsed, setIsCollapsed] = useState(Boolean(propsIsCollapsed));
|
|
@@ -5052,9 +5853,9 @@ const DetailedCardSection = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5052
5853
|
}
|
|
5053
5854
|
}) : null), children);
|
|
5054
5855
|
});
|
|
5055
|
-
DetailedCardSection.className = CLASSNAME$
|
|
5056
|
-
DetailedCardSection.defaultProps = DEFAULT_PROPS$
|
|
5057
|
-
DetailedCardSection.displayName = COMPONENT_NAME$
|
|
5856
|
+
DetailedCardSection.className = CLASSNAME$h;
|
|
5857
|
+
DetailedCardSection.defaultProps = DEFAULT_PROPS$h;
|
|
5858
|
+
DetailedCardSection.displayName = COMPONENT_NAME$h;
|
|
5058
5859
|
|
|
5059
5860
|
/**
|
|
5060
5861
|
* Component style.
|
|
@@ -5095,10 +5896,10 @@ const StyledDetailedCardHeader = styled.div`
|
|
|
5095
5896
|
}
|
|
5096
5897
|
`;
|
|
5097
5898
|
|
|
5098
|
-
const _excluded$
|
|
5099
|
-
const COMPONENT_NAME$
|
|
5100
|
-
const CLASSNAME$
|
|
5101
|
-
const DEFAULT_PROPS$
|
|
5899
|
+
const _excluded$d = ["children", "className", "header", "headingProps", "isLoading"];
|
|
5900
|
+
const COMPONENT_NAME$g = 'DetailedCardHeader';
|
|
5901
|
+
const CLASSNAME$g = 'redsift-detailed-card-header';
|
|
5902
|
+
const DEFAULT_PROPS$g = {};
|
|
5102
5903
|
|
|
5103
5904
|
/**
|
|
5104
5905
|
* The DetailedCardHeader component.
|
|
@@ -5111,7 +5912,7 @@ const DetailedCardHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5111
5912
|
headingProps,
|
|
5112
5913
|
isLoading
|
|
5113
5914
|
} = props,
|
|
5114
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
5915
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$d);
|
|
5115
5916
|
return /*#__PURE__*/React__default.createElement(StyledDetailedCardHeader, _extends$1({}, forwardedProps, {
|
|
5116
5917
|
className: classNames(DetailedCardHeader.className, className),
|
|
5117
5918
|
ref: ref
|
|
@@ -5126,9 +5927,9 @@ const DetailedCardHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5126
5927
|
variant: "h2"
|
|
5127
5928
|
}, headingProps), header)) : null, children);
|
|
5128
5929
|
});
|
|
5129
|
-
DetailedCardHeader.className = CLASSNAME$
|
|
5130
|
-
DetailedCardHeader.defaultProps = DEFAULT_PROPS$
|
|
5131
|
-
DetailedCardHeader.displayName = COMPONENT_NAME$
|
|
5930
|
+
DetailedCardHeader.className = CLASSNAME$g;
|
|
5931
|
+
DetailedCardHeader.defaultProps = DEFAULT_PROPS$g;
|
|
5932
|
+
DetailedCardHeader.displayName = COMPONENT_NAME$g;
|
|
5132
5933
|
|
|
5133
5934
|
/**
|
|
5134
5935
|
* Component style.
|
|
@@ -5151,7 +5952,10 @@ const StyledPill = styled.div`
|
|
|
5151
5952
|
$color
|
|
5152
5953
|
} = _ref2;
|
|
5153
5954
|
return css`
|
|
5154
|
-
${$color === 'black' ? 'background-color: var(--redsift-color-neutral-black);' : $color === 'white' ?
|
|
5955
|
+
${$color === 'black' ? 'background-color: var(--redsift-color-neutral-black);' : $color === 'white' ? css`
|
|
5956
|
+
background-color: var(--redsift-color-neutral-white);
|
|
5957
|
+
border: 1px solid #d6d6d6;
|
|
5958
|
+
` : $color === 'error' ? 'background-color: var(--redsift-data-viz-color-red-default);' : $color === 'warning' ? 'background-color: var(--redsift-data-viz-color-orange-default);' : $color === 'success' ? 'background-color: var(--redsift-data-viz-color-green-default);' : `background-color: var(--redsift-data-viz-color-${$color}-default);`}
|
|
5155
5959
|
|
|
5156
5960
|
&,
|
|
5157
5961
|
.redsift-icon {
|
|
@@ -5171,10 +5975,10 @@ const StyledPill = styled.div`
|
|
|
5171
5975
|
}
|
|
5172
5976
|
`;
|
|
5173
5977
|
|
|
5174
|
-
const _excluded$
|
|
5175
|
-
const COMPONENT_NAME$
|
|
5176
|
-
const CLASSNAME$
|
|
5177
|
-
const DEFAULT_PROPS$
|
|
5978
|
+
const _excluded$c = ["autoBreak", "children", "className", "color"];
|
|
5979
|
+
const COMPONENT_NAME$f = 'Pill';
|
|
5980
|
+
const CLASSNAME$f = 'redsift-pill';
|
|
5981
|
+
const DEFAULT_PROPS$f = {
|
|
5178
5982
|
color: DataVizColorPalette.blue,
|
|
5179
5983
|
height: 'fit-content'
|
|
5180
5984
|
};
|
|
@@ -5189,7 +5993,7 @@ const Pill = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5189
5993
|
className,
|
|
5190
5994
|
color
|
|
5191
5995
|
} = props,
|
|
5192
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
5996
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$c);
|
|
5193
5997
|
return /*#__PURE__*/React__default.createElement(StyledPill, _extends$1({}, forwardedProps, {
|
|
5194
5998
|
$autoBreak: autoBreak,
|
|
5195
5999
|
$color: color,
|
|
@@ -5197,9 +6001,9 @@ const Pill = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5197
6001
|
ref: ref
|
|
5198
6002
|
}), children);
|
|
5199
6003
|
});
|
|
5200
|
-
Pill.className = CLASSNAME$
|
|
5201
|
-
Pill.defaultProps = DEFAULT_PROPS$
|
|
5202
|
-
Pill.displayName = COMPONENT_NAME$
|
|
6004
|
+
Pill.className = CLASSNAME$f;
|
|
6005
|
+
Pill.defaultProps = DEFAULT_PROPS$f;
|
|
6006
|
+
Pill.displayName = COMPONENT_NAME$f;
|
|
5203
6007
|
|
|
5204
6008
|
/**
|
|
5205
6009
|
* Component style.
|
|
@@ -5229,10 +6033,10 @@ const StyledDetailedCardSectionItem = styled.div`
|
|
|
5229
6033
|
}
|
|
5230
6034
|
`;
|
|
5231
6035
|
|
|
5232
|
-
const _excluded$
|
|
5233
|
-
const COMPONENT_NAME$
|
|
5234
|
-
const CLASSNAME$
|
|
5235
|
-
const DEFAULT_PROPS$
|
|
6036
|
+
const _excluded$b = ["children", "className", "description", "icon", "iconProps", "isLoading", "pill", "pillProps", "shield"];
|
|
6037
|
+
const COMPONENT_NAME$e = 'DetailedCardSectionItem';
|
|
6038
|
+
const CLASSNAME$e = 'redsift-detailed-card-section-item';
|
|
6039
|
+
const DEFAULT_PROPS$e = {};
|
|
5236
6040
|
|
|
5237
6041
|
/**
|
|
5238
6042
|
* The DetailedCardSectionItems component.
|
|
@@ -5249,7 +6053,7 @@ const DetailedCardSectionItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5249
6053
|
pillProps,
|
|
5250
6054
|
shield
|
|
5251
6055
|
} = props,
|
|
5252
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
6056
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$b);
|
|
5253
6057
|
return /*#__PURE__*/React__default.createElement(StyledDetailedCardSectionItem, _extends$1({}, forwardedProps, {
|
|
5254
6058
|
className: classNames(DetailedCardSectionItem.className, className),
|
|
5255
6059
|
ref: ref
|
|
@@ -5277,9 +6081,9 @@ const DetailedCardSectionItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5277
6081
|
className: `${DetailedCardSectionItem.className}-header__pill`
|
|
5278
6082
|
}, pillProps), pill), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(Text, null, description) : description)) : null), children);
|
|
5279
6083
|
});
|
|
5280
|
-
DetailedCardSectionItem.className = CLASSNAME$
|
|
5281
|
-
DetailedCardSectionItem.defaultProps = DEFAULT_PROPS$
|
|
5282
|
-
DetailedCardSectionItem.displayName = COMPONENT_NAME$
|
|
6084
|
+
DetailedCardSectionItem.className = CLASSNAME$e;
|
|
6085
|
+
DetailedCardSectionItem.defaultProps = DEFAULT_PROPS$e;
|
|
6086
|
+
DetailedCardSectionItem.displayName = COMPONENT_NAME$e;
|
|
5283
6087
|
|
|
5284
6088
|
/*!
|
|
5285
6089
|
* tabbable 6.1.1
|
|
@@ -8804,9 +9608,9 @@ const StyledTooltipContent = styled.div`
|
|
|
8804
9608
|
}}
|
|
8805
9609
|
`;
|
|
8806
9610
|
|
|
8807
|
-
const COMPONENT_NAME$
|
|
8808
|
-
const CLASSNAME$
|
|
8809
|
-
const DEFAULT_PROPS$
|
|
9611
|
+
const COMPONENT_NAME$d = 'TooltipContent';
|
|
9612
|
+
const CLASSNAME$d = 'redsift-tooltip-content';
|
|
9613
|
+
const DEFAULT_PROPS$d = {};
|
|
8810
9614
|
|
|
8811
9615
|
/**
|
|
8812
9616
|
* The TooltipContent component.
|
|
@@ -8823,7 +9627,6 @@ const TooltipContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8823
9627
|
placement,
|
|
8824
9628
|
refs,
|
|
8825
9629
|
strategy,
|
|
8826
|
-
tooltipId,
|
|
8827
9630
|
x,
|
|
8828
9631
|
y,
|
|
8829
9632
|
middlewareData: {
|
|
@@ -8844,7 +9647,7 @@ const TooltipContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8844
9647
|
left: 'right'
|
|
8845
9648
|
}[placement.split('-')[0]];
|
|
8846
9649
|
return /*#__PURE__*/React__default.createElement(FloatingPortal, {
|
|
8847
|
-
id:
|
|
9650
|
+
id: "redsift-app-container"
|
|
8848
9651
|
}, isOpen && /*#__PURE__*/React__default.createElement(StyledTooltipContent, _extends$1({
|
|
8849
9652
|
className: classNames(TooltipContent.className, className),
|
|
8850
9653
|
ref: popoverRef,
|
|
@@ -8868,13 +9671,13 @@ const TooltipContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8868
9671
|
className: `${TooltipContent.className}__inner`
|
|
8869
9672
|
}, children)));
|
|
8870
9673
|
});
|
|
8871
|
-
TooltipContent.className = CLASSNAME$
|
|
8872
|
-
TooltipContent.defaultProps = DEFAULT_PROPS$
|
|
8873
|
-
TooltipContent.displayName = COMPONENT_NAME$
|
|
9674
|
+
TooltipContent.className = CLASSNAME$d;
|
|
9675
|
+
TooltipContent.defaultProps = DEFAULT_PROPS$d;
|
|
9676
|
+
TooltipContent.displayName = COMPONENT_NAME$d;
|
|
8874
9677
|
|
|
8875
|
-
const COMPONENT_NAME$
|
|
8876
|
-
const CLASSNAME$
|
|
8877
|
-
const DEFAULT_PROPS$
|
|
9678
|
+
const COMPONENT_NAME$c = 'TooltipTrigger';
|
|
9679
|
+
const CLASSNAME$c = 'redsift-tooltip-trigger';
|
|
9680
|
+
const DEFAULT_PROPS$c = {};
|
|
8878
9681
|
|
|
8879
9682
|
/**
|
|
8880
9683
|
* The TooltipTrigger component.
|
|
@@ -8901,9 +9704,9 @@ const TooltipTrigger = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8901
9704
|
ref: triggerRef
|
|
8902
9705
|
}, getReferenceProps(props)), children);
|
|
8903
9706
|
});
|
|
8904
|
-
TooltipTrigger.className = CLASSNAME$
|
|
8905
|
-
TooltipTrigger.defaultProps = DEFAULT_PROPS$
|
|
8906
|
-
TooltipTrigger.displayName = COMPONENT_NAME$
|
|
9707
|
+
TooltipTrigger.className = CLASSNAME$c;
|
|
9708
|
+
TooltipTrigger.defaultProps = DEFAULT_PROPS$c;
|
|
9709
|
+
TooltipTrigger.displayName = COMPONENT_NAME$c;
|
|
8907
9710
|
|
|
8908
9711
|
function useTooltip(_ref) {
|
|
8909
9712
|
let {
|
|
@@ -8964,9 +9767,9 @@ function useTooltip(_ref) {
|
|
|
8964
9767
|
}), [isOpen, handleOpen, interactions, data, arrowRef, tooltipId]);
|
|
8965
9768
|
}
|
|
8966
9769
|
|
|
8967
|
-
const COMPONENT_NAME$
|
|
8968
|
-
const CLASSNAME$
|
|
8969
|
-
const DEFAULT_PROPS$
|
|
9770
|
+
const COMPONENT_NAME$b = 'Tooltip';
|
|
9771
|
+
const CLASSNAME$b = 'redsift-tooltip';
|
|
9772
|
+
const DEFAULT_PROPS$b = {
|
|
8970
9773
|
delay: 500,
|
|
8971
9774
|
placement: TooltipPlacement.top
|
|
8972
9775
|
};
|
|
@@ -8997,9 +9800,9 @@ const BaseTooltip = props => {
|
|
|
8997
9800
|
value: tooltip
|
|
8998
9801
|
}, trigger, content);
|
|
8999
9802
|
};
|
|
9000
|
-
BaseTooltip.className = CLASSNAME$
|
|
9001
|
-
BaseTooltip.defaultProps = DEFAULT_PROPS$
|
|
9002
|
-
BaseTooltip.displayName = COMPONENT_NAME$
|
|
9803
|
+
BaseTooltip.className = CLASSNAME$b;
|
|
9804
|
+
BaseTooltip.defaultProps = DEFAULT_PROPS$b;
|
|
9805
|
+
BaseTooltip.displayName = COMPONENT_NAME$b;
|
|
9003
9806
|
const Tooltip = Object.assign(BaseTooltip, {
|
|
9004
9807
|
Trigger: TooltipTrigger,
|
|
9005
9808
|
Content: TooltipContent
|
|
@@ -9013,10 +9816,10 @@ const useTooltipContext = () => {
|
|
|
9013
9816
|
return context;
|
|
9014
9817
|
};
|
|
9015
9818
|
|
|
9016
|
-
const _excluded$
|
|
9017
|
-
const COMPONENT_NAME$
|
|
9018
|
-
const CLASSNAME$
|
|
9019
|
-
const DEFAULT_PROPS$
|
|
9819
|
+
const _excluded$a = ["areAllCollapsed", "children", "className", "color", "defaultAllCollapsed", "icon", "isCollapsible", "isLoading", "onCollapseAll", "shield"];
|
|
9820
|
+
const COMPONENT_NAME$a = 'DetailedCard';
|
|
9821
|
+
const CLASSNAME$a = 'redsift-detailed-card';
|
|
9822
|
+
const DEFAULT_PROPS$a = {
|
|
9020
9823
|
isCollapsible: true,
|
|
9021
9824
|
width: '400px'
|
|
9022
9825
|
};
|
|
@@ -9055,7 +9858,7 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9055
9858
|
onCollapseAll,
|
|
9056
9859
|
shield
|
|
9057
9860
|
} = props,
|
|
9058
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9861
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$a);
|
|
9059
9862
|
const stringFormatter = useLocalizedStringFormatter(intlMessages$1);
|
|
9060
9863
|
const isCollapsible = propsIsCollapsible && hasMultipleCollapsibleChildren(children);
|
|
9061
9864
|
const [allCollapsed, setAllCollapsed] = useState({
|
|
@@ -9141,9 +9944,9 @@ const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9141
9944
|
return child;
|
|
9142
9945
|
}));
|
|
9143
9946
|
});
|
|
9144
|
-
BaseDetailedCard.className = CLASSNAME$
|
|
9145
|
-
BaseDetailedCard.defaultProps = DEFAULT_PROPS$
|
|
9146
|
-
BaseDetailedCard.displayName = COMPONENT_NAME$
|
|
9947
|
+
BaseDetailedCard.className = CLASSNAME$a;
|
|
9948
|
+
BaseDetailedCard.defaultProps = DEFAULT_PROPS$a;
|
|
9949
|
+
BaseDetailedCard.displayName = COMPONENT_NAME$a;
|
|
9147
9950
|
const DetailedCard = Object.assign(BaseDetailedCard, {
|
|
9148
9951
|
Header: DetailedCardHeader,
|
|
9149
9952
|
Section: DetailedCardSection,
|
|
@@ -9177,10 +9980,10 @@ const StyledGridItem = styled.div`
|
|
|
9177
9980
|
${baseInternalSpacing}
|
|
9178
9981
|
`;
|
|
9179
9982
|
|
|
9180
|
-
const _excluded$
|
|
9181
|
-
const COMPONENT_NAME$
|
|
9182
|
-
const CLASSNAME$
|
|
9183
|
-
const DEFAULT_PROPS$
|
|
9983
|
+
const _excluded$9 = ["children", "className"];
|
|
9984
|
+
const COMPONENT_NAME$9 = 'GridItem';
|
|
9985
|
+
const CLASSNAME$9 = 'redsift-grid-item';
|
|
9986
|
+
const DEFAULT_PROPS$9 = {};
|
|
9184
9987
|
|
|
9185
9988
|
/**
|
|
9186
9989
|
* The GridItem component.
|
|
@@ -9190,20 +9993,20 @@ const GridItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9190
9993
|
children,
|
|
9191
9994
|
className
|
|
9192
9995
|
} = props,
|
|
9193
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9996
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$9);
|
|
9194
9997
|
return /*#__PURE__*/React__default.createElement(StyledGridItem, _extends$1({}, forwardedProps, {
|
|
9195
9998
|
className: classNames(GridItem.className, className),
|
|
9196
9999
|
ref: ref
|
|
9197
10000
|
}), children);
|
|
9198
10001
|
});
|
|
9199
|
-
GridItem.className = CLASSNAME$
|
|
9200
|
-
GridItem.defaultProps = DEFAULT_PROPS$
|
|
9201
|
-
GridItem.displayName = COMPONENT_NAME$
|
|
10002
|
+
GridItem.className = CLASSNAME$9;
|
|
10003
|
+
GridItem.defaultProps = DEFAULT_PROPS$9;
|
|
10004
|
+
GridItem.displayName = COMPONENT_NAME$9;
|
|
9202
10005
|
|
|
9203
|
-
const _excluded$
|
|
9204
|
-
const COMPONENT_NAME$
|
|
9205
|
-
const CLASSNAME$
|
|
9206
|
-
const DEFAULT_PROPS$
|
|
10006
|
+
const _excluded$8 = ["children", "className"];
|
|
10007
|
+
const COMPONENT_NAME$8 = 'Grid';
|
|
10008
|
+
const CLASSNAME$8 = 'redsift-grid';
|
|
10009
|
+
const DEFAULT_PROPS$8 = {};
|
|
9207
10010
|
|
|
9208
10011
|
/**
|
|
9209
10012
|
* The Grid component.
|
|
@@ -9213,15 +10016,15 @@ const BaseGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9213
10016
|
children,
|
|
9214
10017
|
className
|
|
9215
10018
|
} = props,
|
|
9216
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10019
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$8);
|
|
9217
10020
|
return /*#__PURE__*/React__default.createElement(StyledGrid, _extends$1({}, forwardedProps, {
|
|
9218
10021
|
className: classNames(BaseGrid.className, className),
|
|
9219
10022
|
ref: ref
|
|
9220
10023
|
}), children);
|
|
9221
10024
|
});
|
|
9222
|
-
BaseGrid.className = CLASSNAME$
|
|
9223
|
-
BaseGrid.defaultProps = DEFAULT_PROPS$
|
|
9224
|
-
BaseGrid.displayName = COMPONENT_NAME$
|
|
10025
|
+
BaseGrid.className = CLASSNAME$8;
|
|
10026
|
+
BaseGrid.defaultProps = DEFAULT_PROPS$8;
|
|
10027
|
+
BaseGrid.displayName = COMPONENT_NAME$8;
|
|
9225
10028
|
const Grid = Object.assign(BaseGrid, {
|
|
9226
10029
|
Item: GridItem
|
|
9227
10030
|
});
|
|
@@ -9266,10 +10069,10 @@ const StyledLink = styled.a`
|
|
|
9266
10069
|
}
|
|
9267
10070
|
`;
|
|
9268
10071
|
|
|
9269
|
-
const _excluded$
|
|
9270
|
-
const COMPONENT_NAME$
|
|
9271
|
-
const CLASSNAME$
|
|
9272
|
-
const DEFAULT_PROPS$
|
|
10072
|
+
const _excluded$7 = ["children", "className", "href", "isDisabled"];
|
|
10073
|
+
const COMPONENT_NAME$7 = 'Link';
|
|
10074
|
+
const CLASSNAME$7 = 'redsift-link';
|
|
10075
|
+
const DEFAULT_PROPS$7 = {};
|
|
9273
10076
|
|
|
9274
10077
|
/**
|
|
9275
10078
|
* The Link is a semantic link that looks like a link.
|
|
@@ -9286,7 +10089,7 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9286
10089
|
href,
|
|
9287
10090
|
isDisabled
|
|
9288
10091
|
} = props,
|
|
9289
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10092
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$7);
|
|
9290
10093
|
return /*#__PURE__*/React__default.createElement(StyledLink, _extends$1({
|
|
9291
10094
|
"aria-disabled": isDisabled,
|
|
9292
10095
|
role: "link",
|
|
@@ -9298,14 +10101,14 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9298
10101
|
ref: ref
|
|
9299
10102
|
}), children);
|
|
9300
10103
|
});
|
|
9301
|
-
Link.className = CLASSNAME$
|
|
9302
|
-
Link.defaultProps = DEFAULT_PROPS$
|
|
9303
|
-
Link.displayName = COMPONENT_NAME$
|
|
10104
|
+
Link.className = CLASSNAME$7;
|
|
10105
|
+
Link.defaultProps = DEFAULT_PROPS$7;
|
|
10106
|
+
Link.displayName = COMPONENT_NAME$7;
|
|
9304
10107
|
|
|
9305
|
-
const _excluded$
|
|
9306
|
-
const COMPONENT_NAME$
|
|
9307
|
-
const CLASSNAME$
|
|
9308
|
-
const DEFAULT_PROPS$
|
|
10108
|
+
const _excluded$6 = ["children", "className", "disabled", "isDisabled", "onPress"];
|
|
10109
|
+
const COMPONENT_NAME$6 = 'LinkButton';
|
|
10110
|
+
const CLASSNAME$6 = 'redsift-link-button';
|
|
10111
|
+
const DEFAULT_PROPS$6 = {};
|
|
9309
10112
|
|
|
9310
10113
|
/**
|
|
9311
10114
|
* The LinkButton is a semantic button that looks like a link.
|
|
@@ -9330,7 +10133,7 @@ const LinkButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9330
10133
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9331
10134
|
onPress
|
|
9332
10135
|
} = props,
|
|
9333
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10136
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$6);
|
|
9334
10137
|
return /*#__PURE__*/React__default.createElement(StyledLink, _extends$1({
|
|
9335
10138
|
as: "button"
|
|
9336
10139
|
}, forwardedProps, buttonProps, {
|
|
@@ -9343,9 +10146,9 @@ const LinkButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9343
10146
|
ref: buttonRef
|
|
9344
10147
|
}), children);
|
|
9345
10148
|
});
|
|
9346
|
-
LinkButton.className = CLASSNAME$
|
|
9347
|
-
LinkButton.defaultProps = DEFAULT_PROPS$
|
|
9348
|
-
LinkButton.displayName = COMPONENT_NAME$
|
|
10149
|
+
LinkButton.className = CLASSNAME$6;
|
|
10150
|
+
LinkButton.defaultProps = DEFAULT_PROPS$6;
|
|
10151
|
+
LinkButton.displayName = COMPONENT_NAME$6;
|
|
9349
10152
|
|
|
9350
10153
|
/**
|
|
9351
10154
|
* Component style.
|
|
@@ -9354,10 +10157,10 @@ const StyledNumber = styled(StyledText)`
|
|
|
9354
10157
|
font-family: var(--redsift-typography-font-family-source-code-pro);
|
|
9355
10158
|
`;
|
|
9356
10159
|
|
|
9357
|
-
const _excluded$
|
|
9358
|
-
const COMPONENT_NAME$
|
|
9359
|
-
const CLASSNAME$
|
|
9360
|
-
const DEFAULT_PROPS$
|
|
10160
|
+
const _excluded$5 = ["as", "className", "color", "compactDisplay", "currency", "currencyDisplay", "currencySign", "fontSize", "lineHeight", "localeMatcher", "maximumFractionDigits", "maximumSignificantDigits", "minimumFractionDigits", "minimumIntegerDigits", "minimumSignificantDigits", "notation", "noWrap", "numberingSystem", "roundingIncrement", "roundingMode", "roundingPriority", "signDisplay", "trailingZeroDisplay", "type", "unit", "unitDisplay", "useGrouping", "value", "variant"];
|
|
10161
|
+
const COMPONENT_NAME$5 = 'Number';
|
|
10162
|
+
const CLASSNAME$5 = 'redsift-number';
|
|
10163
|
+
const DEFAULT_PROPS$5 = {
|
|
9361
10164
|
compactDisplay: 'short',
|
|
9362
10165
|
currencyDisplay: 'symbol',
|
|
9363
10166
|
currencySign: 'standard',
|
|
@@ -9406,7 +10209,7 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9406
10209
|
value,
|
|
9407
10210
|
variant
|
|
9408
10211
|
} = props,
|
|
9409
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10212
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$5);
|
|
9410
10213
|
const formatter = useNumberFormatter(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
9411
10214
|
compactDisplay,
|
|
9412
10215
|
currency,
|
|
@@ -9453,9 +10256,9 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9453
10256
|
$variant: variant
|
|
9454
10257
|
}), formatter.format(value));
|
|
9455
10258
|
});
|
|
9456
|
-
Number$1.className = CLASSNAME$
|
|
9457
|
-
Number$1.defaultProps = DEFAULT_PROPS$
|
|
9458
|
-
Number$1.displayName = COMPONENT_NAME$
|
|
10259
|
+
Number$1.className = CLASSNAME$5;
|
|
10260
|
+
Number$1.defaultProps = DEFAULT_PROPS$5;
|
|
10261
|
+
Number$1.displayName = COMPONENT_NAME$5;
|
|
9459
10262
|
|
|
9460
10263
|
/**
|
|
9461
10264
|
* Context props.
|
|
@@ -9549,10 +10352,10 @@ const StyledRadioGroup = styled.div`
|
|
|
9549
10352
|
}
|
|
9550
10353
|
`;
|
|
9551
10354
|
|
|
9552
|
-
const _excluded$
|
|
9553
|
-
const COMPONENT_NAME$
|
|
9554
|
-
const CLASSNAME$
|
|
9555
|
-
const DEFAULT_PROPS$
|
|
10355
|
+
const _excluded$4 = ["children", "className", "defaultValue", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
|
|
10356
|
+
const COMPONENT_NAME$4 = 'RadioGroup';
|
|
10357
|
+
const CLASSNAME$4 = 'redsift-radio-group';
|
|
10358
|
+
const DEFAULT_PROPS$4 = {
|
|
9556
10359
|
color: ColorPalette.default,
|
|
9557
10360
|
orientation: RadioGroupOrientation.vertical
|
|
9558
10361
|
};
|
|
@@ -9577,7 +10380,7 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9577
10380
|
possibleValues,
|
|
9578
10381
|
value
|
|
9579
10382
|
} = props,
|
|
9580
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10383
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$4);
|
|
9581
10384
|
const [selectedValue, setValue] = useState(value || defaultValue || '');
|
|
9582
10385
|
useEffect(() => {
|
|
9583
10386
|
if (value) {
|
|
@@ -9619,9 +10422,9 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9619
10422
|
className: `${RadioGroup.className}-description`
|
|
9620
10423
|
}, description));
|
|
9621
10424
|
});
|
|
9622
|
-
RadioGroup.className = CLASSNAME$
|
|
9623
|
-
RadioGroup.defaultProps = DEFAULT_PROPS$
|
|
9624
|
-
RadioGroup.displayName = COMPONENT_NAME$
|
|
10425
|
+
RadioGroup.className = CLASSNAME$4;
|
|
10426
|
+
RadioGroup.defaultProps = DEFAULT_PROPS$4;
|
|
10427
|
+
RadioGroup.displayName = COMPONENT_NAME$4;
|
|
9625
10428
|
|
|
9626
10429
|
/**
|
|
9627
10430
|
* Component style.
|
|
@@ -9730,10 +10533,10 @@ const StyledRadio = styled.label`
|
|
|
9730
10533
|
}
|
|
9731
10534
|
`;
|
|
9732
10535
|
|
|
9733
|
-
const _excluded$
|
|
9734
|
-
const COMPONENT_NAME$
|
|
9735
|
-
const CLASSNAME$
|
|
9736
|
-
const DEFAULT_PROPS$
|
|
10536
|
+
const _excluded$3 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
|
|
10537
|
+
const COMPONENT_NAME$3 = 'Radio';
|
|
10538
|
+
const CLASSNAME$3 = 'redsift-radio';
|
|
10539
|
+
const DEFAULT_PROPS$3 = {
|
|
9737
10540
|
isColored: true
|
|
9738
10541
|
};
|
|
9739
10542
|
|
|
@@ -9764,7 +10567,7 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9764
10567
|
onChange,
|
|
9765
10568
|
value
|
|
9766
10569
|
} = props,
|
|
9767
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10570
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$3);
|
|
9768
10571
|
const {
|
|
9769
10572
|
isFocusVisible,
|
|
9770
10573
|
focusProps
|
|
@@ -9823,6 +10626,7 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9823
10626
|
"aria-labelledby": ariaLabelledby,
|
|
9824
10627
|
"aria-readonly": isReadOnly,
|
|
9825
10628
|
"aria-required": isRequired,
|
|
10629
|
+
autoFocus: autoFocus,
|
|
9826
10630
|
checked: isSelected ? true : false,
|
|
9827
10631
|
disabled: isDisabled,
|
|
9828
10632
|
name: name,
|
|
@@ -9838,9 +10642,9 @@ const Radio = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9838
10642
|
className: "label"
|
|
9839
10643
|
}, children) : null);
|
|
9840
10644
|
});
|
|
9841
|
-
Radio.className = CLASSNAME$
|
|
9842
|
-
Radio.defaultProps = DEFAULT_PROPS$
|
|
9843
|
-
Radio.displayName = COMPONENT_NAME$
|
|
10645
|
+
Radio.className = CLASSNAME$3;
|
|
10646
|
+
Radio.defaultProps = DEFAULT_PROPS$3;
|
|
10647
|
+
Radio.displayName = COMPONENT_NAME$3;
|
|
9844
10648
|
|
|
9845
10649
|
const SwitchGroupContext = /*#__PURE__*/React__default.createContext(null);
|
|
9846
10650
|
|
|
@@ -10003,10 +10807,10 @@ const StyledSwitch = styled.label`
|
|
|
10003
10807
|
}}
|
|
10004
10808
|
`;
|
|
10005
10809
|
|
|
10006
|
-
const _excluded$
|
|
10007
|
-
const COMPONENT_NAME$
|
|
10008
|
-
const CLASSNAME$
|
|
10009
|
-
const DEFAULT_PROPS$
|
|
10810
|
+
const _excluded$2 = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "value"];
|
|
10811
|
+
const COMPONENT_NAME$2 = 'Switch';
|
|
10812
|
+
const CLASSNAME$2 = 'redsift-switch';
|
|
10813
|
+
const DEFAULT_PROPS$2 = {
|
|
10010
10814
|
isColored: true
|
|
10011
10815
|
};
|
|
10012
10816
|
|
|
@@ -10037,7 +10841,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10037
10841
|
onChange,
|
|
10038
10842
|
value
|
|
10039
10843
|
} = props,
|
|
10040
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10844
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$2);
|
|
10041
10845
|
const {
|
|
10042
10846
|
isFocusVisible,
|
|
10043
10847
|
focusProps
|
|
@@ -10100,6 +10904,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10100
10904
|
"aria-labelledby": ariaLabelledby,
|
|
10101
10905
|
"aria-readonly": isReadOnly,
|
|
10102
10906
|
"aria-required": isRequired,
|
|
10907
|
+
autoFocus: autoFocus,
|
|
10103
10908
|
checked: isSelected ? true : false,
|
|
10104
10909
|
disabled: isDisabled,
|
|
10105
10910
|
name: name,
|
|
@@ -10122,9 +10927,9 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10122
10927
|
className: "label"
|
|
10123
10928
|
}, children) : null);
|
|
10124
10929
|
});
|
|
10125
|
-
Switch.className = CLASSNAME$
|
|
10126
|
-
Switch.defaultProps = DEFAULT_PROPS$
|
|
10127
|
-
Switch.displayName = COMPONENT_NAME$
|
|
10930
|
+
Switch.className = CLASSNAME$2;
|
|
10931
|
+
Switch.defaultProps = DEFAULT_PROPS$2;
|
|
10932
|
+
Switch.displayName = COMPONENT_NAME$2;
|
|
10128
10933
|
|
|
10129
10934
|
/**
|
|
10130
10935
|
* Context props.
|
|
@@ -10216,10 +11021,10 @@ const StyledSwitchGroup = styled.div`
|
|
|
10216
11021
|
}
|
|
10217
11022
|
`;
|
|
10218
11023
|
|
|
10219
|
-
const _excluded = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
|
|
10220
|
-
const COMPONENT_NAME = 'SwitchGroup';
|
|
10221
|
-
const CLASSNAME = 'redsift-checkbox-group';
|
|
10222
|
-
const DEFAULT_PROPS = {
|
|
11024
|
+
const _excluded$1 = ["children", "className", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "possibleValues", "value"];
|
|
11025
|
+
const COMPONENT_NAME$1 = 'SwitchGroup';
|
|
11026
|
+
const CLASSNAME$1 = 'redsift-checkbox-group';
|
|
11027
|
+
const DEFAULT_PROPS$1 = {
|
|
10223
11028
|
color: ColorPalette.default,
|
|
10224
11029
|
orientation: SwitchGroupOrientation.vertical
|
|
10225
11030
|
};
|
|
@@ -10244,7 +11049,7 @@ const SwitchGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10244
11049
|
possibleValues,
|
|
10245
11050
|
value
|
|
10246
11051
|
} = props,
|
|
10247
|
-
forwardedProps = _objectWithoutProperties(props, _excluded);
|
|
11052
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1);
|
|
10248
11053
|
const [selectedValues, setValue] = useState(value || defaultValues || []);
|
|
10249
11054
|
useEffect(() => {
|
|
10250
11055
|
if (value) {
|
|
@@ -10298,9 +11103,305 @@ const SwitchGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10298
11103
|
className: `${SwitchGroup.className}-description`
|
|
10299
11104
|
}, description));
|
|
10300
11105
|
});
|
|
10301
|
-
SwitchGroup.className = CLASSNAME;
|
|
10302
|
-
SwitchGroup.defaultProps = DEFAULT_PROPS;
|
|
10303
|
-
SwitchGroup.displayName = COMPONENT_NAME;
|
|
11106
|
+
SwitchGroup.className = CLASSNAME$1;
|
|
11107
|
+
SwitchGroup.defaultProps = DEFAULT_PROPS$1;
|
|
11108
|
+
SwitchGroup.displayName = COMPONENT_NAME$1;
|
|
11109
|
+
|
|
11110
|
+
/**
|
|
11111
|
+
* Component variant.
|
|
11112
|
+
*/
|
|
11113
|
+
const TextFieldVariant = {
|
|
11114
|
+
default: 'default',
|
|
11115
|
+
underline: 'underline'
|
|
11116
|
+
};
|
|
11117
|
+
|
|
11118
|
+
/**
|
|
11119
|
+
* Component style.
|
|
11120
|
+
*/
|
|
11121
|
+
const StyledTextField = styled.div`
|
|
11122
|
+
height: fit-content;
|
|
11123
|
+
position: relative;
|
|
11124
|
+
width: fit-content;
|
|
11125
|
+
${baseStyling}
|
|
11126
|
+
|
|
11127
|
+
border: 0;
|
|
11128
|
+
display: inline-flex;
|
|
11129
|
+
flex-direction: column;
|
|
11130
|
+
margin: 0;
|
|
11131
|
+
min-width: 0;
|
|
11132
|
+
padding: 0;
|
|
11133
|
+
vertical-align: top;
|
|
11134
|
+
|
|
11135
|
+
${_ref => {
|
|
11136
|
+
let {
|
|
11137
|
+
$hasContent,
|
|
11138
|
+
$isFocused,
|
|
11139
|
+
$isDisabled,
|
|
11140
|
+
$isInvalid,
|
|
11141
|
+
$isColored,
|
|
11142
|
+
$variant
|
|
11143
|
+
} = _ref;
|
|
11144
|
+
return css`
|
|
11145
|
+
.redsift-text-field__label {
|
|
11146
|
+
font-family: var(--redsift-typography-input-text-font-family);
|
|
11147
|
+
font-size: var(--redsift-typography-input-text-font-size);
|
|
11148
|
+
font-weight: var(--redsift-typography-input-text-font-weight);
|
|
11149
|
+
line-height: var(--redsift-typography-input-text-line-height);
|
|
11150
|
+
left: 0;
|
|
11151
|
+
overflow: hidden;
|
|
11152
|
+
pointer-events: none;
|
|
11153
|
+
position: absolute;
|
|
11154
|
+
text-overflow: ellipsis;
|
|
11155
|
+
top: -8px;
|
|
11156
|
+
transform-origin: top left;
|
|
11157
|
+
transition: color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms,
|
|
11158
|
+
transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms,
|
|
11159
|
+
max-width 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
|
|
11160
|
+
white-space: nowrap;
|
|
11161
|
+
z-index: 1;
|
|
11162
|
+
|
|
11163
|
+
${!$hasContent ? css`
|
|
11164
|
+
max-width: calc(100% - 24px);
|
|
11165
|
+
transform: translate(
|
|
11166
|
+
${$variant === TextFieldVariant.underline ? '0px' : '14px'},
|
|
11167
|
+
16px
|
|
11168
|
+
)
|
|
11169
|
+
scale(1);
|
|
11170
|
+
` : css`
|
|
11171
|
+
font-family: var(--redsift-typography-body2-font-family);
|
|
11172
|
+
font-size: var(--redsift-typography-body2-font-size);
|
|
11173
|
+
font-weight: var(--redsift-typography-body2-font-weight);
|
|
11174
|
+
max-width: calc(133% - 32px);
|
|
11175
|
+
transform: translate(
|
|
11176
|
+
${$variant === TextFieldVariant.underline ? '0px' : '14px'},
|
|
11177
|
+
-1px
|
|
11178
|
+
)
|
|
11179
|
+
scale(0.75);
|
|
11180
|
+
`}
|
|
11181
|
+
|
|
11182
|
+
${$isDisabled ? css`
|
|
11183
|
+
color: var(--redsift-color-neutral-midgrey);
|
|
11184
|
+
` : $isInvalid ? css`
|
|
11185
|
+
color: var(--redsift-color-error-primary);
|
|
11186
|
+
` : $isFocused ? css`
|
|
11187
|
+
color: var(
|
|
11188
|
+
--redsift-color-${$isColored ? 'default' : 'question'}-primary
|
|
11189
|
+
);
|
|
11190
|
+
` : css`
|
|
11191
|
+
color: var(--redsift-color-neutral-darkgrey);
|
|
11192
|
+
`}
|
|
11193
|
+
}
|
|
11194
|
+
|
|
11195
|
+
.redsift-text-field__input-wrapper {
|
|
11196
|
+
align-items: center;
|
|
11197
|
+
box-sizing: border-box;
|
|
11198
|
+
cursor: text;
|
|
11199
|
+
display: inline-flex;
|
|
11200
|
+
position: relative;
|
|
11201
|
+
position: relative;
|
|
11202
|
+
}
|
|
11203
|
+
|
|
11204
|
+
.redsift-text-field-input-wrapper__input {
|
|
11205
|
+
background: none;
|
|
11206
|
+
border: 0;
|
|
11207
|
+
box-sizing: content-box;
|
|
11208
|
+
display: block;
|
|
11209
|
+
font-family: var(--redsift-typography-input-text-font-family);
|
|
11210
|
+
font-size: var(--redsift-typography-input-text-font-size);
|
|
11211
|
+
font-weight: var(--redsift-typography-input-text-font-weight);
|
|
11212
|
+
line-height: var(--redsift-typography-input-text-line-height);
|
|
11213
|
+
min-width: 0;
|
|
11214
|
+
padding-bottom: 6px;
|
|
11215
|
+
|
|
11216
|
+
${$variant !== TextFieldVariant.underline ? css`
|
|
11217
|
+
padding-left: 16px;
|
|
11218
|
+
` : ''}
|
|
11219
|
+
padding-top: 10px;
|
|
11220
|
+
width: 100%;
|
|
11221
|
+
|
|
11222
|
+
${$isDisabled ? css`
|
|
11223
|
+
color: var(--redsift-color-neutral-midgrey);
|
|
11224
|
+
` : css`
|
|
11225
|
+
color: var(--redsift-color-neutral-black);
|
|
11226
|
+
`}
|
|
11227
|
+
}
|
|
11228
|
+
|
|
11229
|
+
.redsift-text-field-input-wrapper__input::placeholder {
|
|
11230
|
+
color: var(--redsift-color-neutral-midgrey);
|
|
11231
|
+
}
|
|
11232
|
+
|
|
11233
|
+
.redsift-text-field-input-wrapper__input:focus {
|
|
11234
|
+
outline: 0;
|
|
11235
|
+
}
|
|
11236
|
+
|
|
11237
|
+
.redsift-text-field-input-wrapper__fieldset {
|
|
11238
|
+
border-radius: inherit;
|
|
11239
|
+
border-style: solid;
|
|
11240
|
+
bottom: 0;
|
|
11241
|
+
left: 0;
|
|
11242
|
+
margin: 0;
|
|
11243
|
+
min-width: 0%;
|
|
11244
|
+
overflow: hidden;
|
|
11245
|
+
padding: 0 8px;
|
|
11246
|
+
pointer-events: none;
|
|
11247
|
+
position: absolute;
|
|
11248
|
+
right: 0;
|
|
11249
|
+
text-align: left;
|
|
11250
|
+
top: -5px;
|
|
11251
|
+
|
|
11252
|
+
${$variant === TextFieldVariant.underline ? css`
|
|
11253
|
+
border-bottom-width: 2px;
|
|
11254
|
+
` : css`
|
|
11255
|
+
border-width: 2px;
|
|
11256
|
+
`}
|
|
11257
|
+
|
|
11258
|
+
${$isDisabled ? css`
|
|
11259
|
+
border-color: var(--redsift-color-neutral-midgrey);
|
|
11260
|
+
` : $isInvalid ? css`
|
|
11261
|
+
border-color: var(--redsift-color-error-primary);
|
|
11262
|
+
` : $isFocused ? css`
|
|
11263
|
+
border-color: var(
|
|
11264
|
+
--redsift-color-${$isColored ? 'default' : 'question'}-primary
|
|
11265
|
+
);
|
|
11266
|
+
` : css`
|
|
11267
|
+
border-color: var(--redsift-color-neutral-midgrey);
|
|
11268
|
+
`}
|
|
11269
|
+
}
|
|
11270
|
+
|
|
11271
|
+
.redsift-text-field-input-wrapper-fieldset__legend {
|
|
11272
|
+
display: block;
|
|
11273
|
+
float: unset;
|
|
11274
|
+
font-size: 0.7em;
|
|
11275
|
+
height: 11px;
|
|
11276
|
+
overflow: hidden;
|
|
11277
|
+
padding: 0;
|
|
11278
|
+
visibility: hidden;
|
|
11279
|
+
white-space: nowrap;
|
|
11280
|
+
width: auto;
|
|
11281
|
+
|
|
11282
|
+
${!$hasContent ? css`
|
|
11283
|
+
max-width: 0.01px;
|
|
11284
|
+
transition: max-width 50ms cubic-bezier(0, 0, 0.2, 1) 0ms;
|
|
11285
|
+
` : css`
|
|
11286
|
+
max-width: 100%;
|
|
11287
|
+
transition: max-width 100ms cubic-bezier(0, 0, 0.2, 1) 50ms;
|
|
11288
|
+
`}
|
|
11289
|
+
}
|
|
11290
|
+
|
|
11291
|
+
.redsift-text-field-input-wrapper-fieldset__legend > span {
|
|
11292
|
+
display: inline-block;
|
|
11293
|
+
opacity: 0;
|
|
11294
|
+
padding-left: 5px;
|
|
11295
|
+
padding-right: 5px;
|
|
11296
|
+
visibility: visible;
|
|
11297
|
+
}
|
|
11298
|
+
`;
|
|
11299
|
+
}}
|
|
11300
|
+
`;
|
|
11301
|
+
|
|
11302
|
+
const _excluded = ["aria-label", "aria-labelledby", "autoFocus", "className", "defaultValue", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "name", "onChange", "placeholder", "value", "variant"];
|
|
11303
|
+
const COMPONENT_NAME = 'TextField';
|
|
11304
|
+
const CLASSNAME = 'redsift-text-field';
|
|
11305
|
+
const DEFAULT_PROPS = {
|
|
11306
|
+
defaultValue: '',
|
|
11307
|
+
isColored: true,
|
|
11308
|
+
variant: TextFieldVariant.default
|
|
11309
|
+
};
|
|
11310
|
+
|
|
11311
|
+
/**
|
|
11312
|
+
* The TextField component.
|
|
11313
|
+
* Can be used as controlled or uncontrolled.
|
|
11314
|
+
*/
|
|
11315
|
+
const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
11316
|
+
const {
|
|
11317
|
+
'aria-label': ariaLabel,
|
|
11318
|
+
'aria-labelledby': ariaLabelledby,
|
|
11319
|
+
autoFocus,
|
|
11320
|
+
className,
|
|
11321
|
+
defaultValue,
|
|
11322
|
+
inputProps,
|
|
11323
|
+
inputRef,
|
|
11324
|
+
isColored,
|
|
11325
|
+
isDisabled,
|
|
11326
|
+
isInvalid,
|
|
11327
|
+
isReadOnly,
|
|
11328
|
+
isRequired,
|
|
11329
|
+
label,
|
|
11330
|
+
name,
|
|
11331
|
+
onChange,
|
|
11332
|
+
placeholder,
|
|
11333
|
+
value: propsValue,
|
|
11334
|
+
variant
|
|
11335
|
+
} = props,
|
|
11336
|
+
forwardedProps = _objectWithoutProperties(props, _excluded);
|
|
11337
|
+
const {
|
|
11338
|
+
isFocusVisible,
|
|
11339
|
+
isFocused,
|
|
11340
|
+
focusProps
|
|
11341
|
+
} = useFocusRing({
|
|
11342
|
+
autoFocus
|
|
11343
|
+
});
|
|
11344
|
+
const [isFocusWithin, setFocusWithin] = useState(Boolean(autoFocus));
|
|
11345
|
+
const {
|
|
11346
|
+
focusWithinProps
|
|
11347
|
+
} = useFocusWithin({
|
|
11348
|
+
onFocusWithinChange: isFocusWithin => setFocusWithin(isFocusWithin)
|
|
11349
|
+
});
|
|
11350
|
+
const [value, setValue] = useState(propsValue !== null && propsValue !== void 0 ? propsValue : defaultValue);
|
|
11351
|
+
useEffect(() => {
|
|
11352
|
+
setValue(propsValue !== null && propsValue !== void 0 ? propsValue : defaultValue);
|
|
11353
|
+
}, [propsValue, defaultValue]);
|
|
11354
|
+
warnIfNoAccessibleLabelFound(props, [label]);
|
|
11355
|
+
const handleChange = useCallback(event => {
|
|
11356
|
+
if (isDisabled || isReadOnly) {
|
|
11357
|
+
return;
|
|
11358
|
+
}
|
|
11359
|
+
if (onChange) {
|
|
11360
|
+
onChange(event.target.value, name, event);
|
|
11361
|
+
}
|
|
11362
|
+
setValue(event.target.value);
|
|
11363
|
+
}, [onChange]);
|
|
11364
|
+
return /*#__PURE__*/React__default.createElement(StyledTextField, _extends$1({}, focusWithinProps, forwardedProps, {
|
|
11365
|
+
$hasContent: isFocusWithin || Boolean(value) || Boolean(placeholder),
|
|
11366
|
+
$isColored: isColored,
|
|
11367
|
+
$isDisabled: isDisabled,
|
|
11368
|
+
$isFocusVisible: isFocusVisible,
|
|
11369
|
+
$isInvalid: isInvalid || isRequired && !value,
|
|
11370
|
+
$isRequired: isRequired,
|
|
11371
|
+
$isFocused: isFocused,
|
|
11372
|
+
$variant: variant,
|
|
11373
|
+
className: classNames(TextField.className, className),
|
|
11374
|
+
ref: ref
|
|
11375
|
+
}), label ? /*#__PURE__*/React__default.createElement("label", {
|
|
11376
|
+
className: `${TextField.className}__label`
|
|
11377
|
+
}, /*#__PURE__*/React__default.createElement("span", null, label)) : null, /*#__PURE__*/React__default.createElement("div", {
|
|
11378
|
+
className: `${TextField.className}__input-wrapper`
|
|
11379
|
+
}, /*#__PURE__*/React__default.createElement("input", _extends$1({}, inputProps, focusProps, {
|
|
11380
|
+
"aria-disabled": isDisabled,
|
|
11381
|
+
"aria-invalid": isInvalid || isRequired && !value,
|
|
11382
|
+
"aria-label": ariaLabel,
|
|
11383
|
+
"aria-labelledby": ariaLabelledby,
|
|
11384
|
+
"aria-readonly": isReadOnly,
|
|
11385
|
+
"aria-required": isRequired,
|
|
11386
|
+
autoFocus: autoFocus,
|
|
11387
|
+
className: `${TextField.className}-input-wrapper__input`,
|
|
11388
|
+
disabled: isDisabled,
|
|
11389
|
+
name: name,
|
|
11390
|
+
onChange: handleChange,
|
|
11391
|
+
placeholder: placeholder,
|
|
11392
|
+
ref: inputRef,
|
|
11393
|
+
type: "text",
|
|
11394
|
+
value: value
|
|
11395
|
+
})), label ? /*#__PURE__*/React__default.createElement("fieldset", {
|
|
11396
|
+
"aria-hidden": "true",
|
|
11397
|
+
className: `${TextField.className}-input-wrapper__fieldset`
|
|
11398
|
+
}, /*#__PURE__*/React__default.createElement("legend", {
|
|
11399
|
+
className: `${TextField.className}-input-wrapper-fieldset__legend`
|
|
11400
|
+
}, /*#__PURE__*/React__default.createElement("span", null, label))) : null));
|
|
11401
|
+
});
|
|
11402
|
+
TextField.className = CLASSNAME;
|
|
11403
|
+
TextField.defaultProps = DEFAULT_PROPS;
|
|
11404
|
+
TextField.displayName = COMPONENT_NAME;
|
|
10304
11405
|
|
|
10305
|
-
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, RedsiftDataVizColorBlueDark, RedsiftDataVizColorBlueDarker, RedsiftDataVizColorBlueDefault, RedsiftDataVizColorBlueLight, RedsiftDataVizColorBlueLighter, RedsiftDataVizColorBrownDark, RedsiftDataVizColorBrownDarker, RedsiftDataVizColorBrownDefault, RedsiftDataVizColorBrownLight, RedsiftDataVizColorBrownLighter, RedsiftDataVizColorCyanDark, RedsiftDataVizColorCyanDarker, RedsiftDataVizColorCyanDefault, RedsiftDataVizColorCyanLight, RedsiftDataVizColorCyanLighter, RedsiftDataVizColorGreenDark, RedsiftDataVizColorGreenDarker, RedsiftDataVizColorGreenDefault, RedsiftDataVizColorGreenLight, RedsiftDataVizColorGreenLighter, RedsiftDataVizColorGreyDark, RedsiftDataVizColorGreyDarker, RedsiftDataVizColorGreyDefault, RedsiftDataVizColorGreyLight, RedsiftDataVizColorGreyLighter, RedsiftDataVizColorOrangeDark, RedsiftDataVizColorOrangeDarker, RedsiftDataVizColorOrangeDefault, RedsiftDataVizColorOrangeLight, RedsiftDataVizColorOrangeLighter, RedsiftDataVizColorPinkDark, RedsiftDataVizColorPinkDarker, RedsiftDataVizColorPinkDefault, RedsiftDataVizColorPinkLight, RedsiftDataVizColorPinkLighter, RedsiftDataVizColorPurpleDark, RedsiftDataVizColorPurpleDarker, RedsiftDataVizColorPurpleDefault, RedsiftDataVizColorPurpleLight, RedsiftDataVizColorPurpleLighter, RedsiftDataVizColorRedDark, RedsiftDataVizColorRedDarker, RedsiftDataVizColorRedDefault, RedsiftDataVizColorRedLight, RedsiftDataVizColorRedLighter, RedsiftDataVizColorYellowDark, RedsiftDataVizColorYellowDarker, RedsiftDataVizColorYellowDefault, RedsiftDataVizColorYellowLight, RedsiftDataVizColorYellowLighter, 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, 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, TextVariant, filterComponents, isComponent, partitionComponents, useAppSidePanel, useSideNavigationMenuBar, useWindowSize, warnIfNoAccessibleLabelFound };
|
|
11406
|
+
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, RedsiftDataVizColorBlueDark, RedsiftDataVizColorBlueDarker, RedsiftDataVizColorBlueDefault, RedsiftDataVizColorBlueLight, RedsiftDataVizColorBlueLighter, RedsiftDataVizColorBrownDark, RedsiftDataVizColorBrownDarker, RedsiftDataVizColorBrownDefault, RedsiftDataVizColorBrownLight, RedsiftDataVizColorBrownLighter, RedsiftDataVizColorCyanDark, RedsiftDataVizColorCyanDarker, RedsiftDataVizColorCyanDefault, RedsiftDataVizColorCyanLight, RedsiftDataVizColorCyanLighter, RedsiftDataVizColorGreenDark, RedsiftDataVizColorGreenDarker, RedsiftDataVizColorGreenDefault, RedsiftDataVizColorGreenLight, RedsiftDataVizColorGreenLighter, RedsiftDataVizColorGreyDark, RedsiftDataVizColorGreyDarker, RedsiftDataVizColorGreyDefault, RedsiftDataVizColorGreyLight, RedsiftDataVizColorGreyLighter, RedsiftDataVizColorOrangeDark, RedsiftDataVizColorOrangeDarker, RedsiftDataVizColorOrangeDefault, RedsiftDataVizColorOrangeLight, RedsiftDataVizColorOrangeLighter, RedsiftDataVizColorPinkDark, RedsiftDataVizColorPinkDarker, RedsiftDataVizColorPinkDefault, RedsiftDataVizColorPinkLight, RedsiftDataVizColorPinkLighter, RedsiftDataVizColorPurpleDark, RedsiftDataVizColorPurpleDarker, RedsiftDataVizColorPurpleDefault, RedsiftDataVizColorPurpleLight, RedsiftDataVizColorPurpleLighter, RedsiftDataVizColorRedDark, RedsiftDataVizColorRedDarker, RedsiftDataVizColorRedDefault, RedsiftDataVizColorRedLight, RedsiftDataVizColorRedLighter, RedsiftDataVizColorYellowDark, RedsiftDataVizColorYellowDarker, RedsiftDataVizColorYellowDefault, RedsiftDataVizColorYellowLight, RedsiftDataVizColorYellowLighter, 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, 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 };
|
|
10306
11407
|
//# sourceMappingURL=index.js.map
|