@redsift/design-system 8.0.6 → 8.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +6 -7
- package/index.js +7 -797
- package/index.js.map +1 -1
- package/package.json +7 -8
package/index.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { I18nProvider, useLocalizedStringFormatter,
|
|
2
|
-
export { I18nProvider,
|
|
1
|
+
import { I18nProvider, useLocalizedStringFormatter, useNumberFormatter } from '@react-aria/i18n';
|
|
2
|
+
export { I18nProvider, useCollator, useDateFormatter, useFilter, useListFormatter, useLocale, useLocalizedStringFormatter, useNumberFormatter } from '@react-aria/i18n';
|
|
3
|
+
export { SSRProvider, useIsSSR } from '@react-aria/ssr';
|
|
3
4
|
import * as React from 'react';
|
|
4
|
-
import React__default, { useState, useEffect,
|
|
5
|
+
import React__default, { useState, useEffect, forwardRef, useMemo, useContext, useRef, useCallback, useReducer, useLayoutEffect, useId as useId$1 } from 'react';
|
|
5
6
|
import classNames from 'classnames';
|
|
6
7
|
import { mdiClose, mdiAlert, mdiCheckCircle, mdiAlertCircle, mdiInformation, mdiMenu, mdiMenuOpen, mdiChevronDown, mdiChevronRight, mdiChevronUp, mdiCheckboxMarked, mdiMinusBox, mdiCheckboxBlankOutline, mdiPageLast, mdiKeyboardCaps, mdiRadioboxMarked, mdiRadioboxBlank } from '@redsift/icons';
|
|
7
8
|
import styled, { css, keyframes } from 'styled-components';
|
|
9
|
+
import { useFocusRing } from '@react-aria/focus';
|
|
8
10
|
import * as ReactDOM from 'react-dom';
|
|
9
11
|
import { createPortal } from 'react-dom';
|
|
12
|
+
import { useFocusWithin } from '@react-aria/interactions';
|
|
10
13
|
|
|
11
14
|
/**
|
|
12
15
|
* Font.
|
|
@@ -557,799 +560,6 @@ const useBoundingClientRect = (ref, deps) => {
|
|
|
557
560
|
return boundingRect;
|
|
558
561
|
};
|
|
559
562
|
|
|
560
|
-
/*
|
|
561
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
562
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
563
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
564
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
565
|
-
*
|
|
566
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
567
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
568
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
569
|
-
* governing permissions and limitations under the License.
|
|
570
|
-
*/ /*
|
|
571
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
572
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
573
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
574
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
575
|
-
*
|
|
576
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
577
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
578
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
579
|
-
* governing permissions and limitations under the License.
|
|
580
|
-
*/ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is
|
|
581
|
-
// guarded by a check that it only runs on the client side.
|
|
582
|
-
// eslint-disable-next-line rulesdir/useLayoutEffectRule
|
|
583
|
-
|
|
584
|
-
// Default context value to use in case there is no SSRProvider. This is fine for
|
|
585
|
-
// client-only apps. In order to support multiple copies of React Aria potentially
|
|
586
|
-
// being on the page at once, the prefix is set to a random number. SSRProvider
|
|
587
|
-
// will reset this to zero for consistency between server and client, so in the
|
|
588
|
-
// SSR case multiple copies of React Aria is not supported.
|
|
589
|
-
const $704cf1d3b684cc5c$var$defaultContext = {
|
|
590
|
-
prefix: String(Math.round(Math.random() * 10000000000)),
|
|
591
|
-
current: 0,
|
|
592
|
-
isSSR: false
|
|
593
|
-
};
|
|
594
|
-
const $704cf1d3b684cc5c$var$SSRContext = /*#__PURE__*/ (React__default).createContext($704cf1d3b684cc5c$var$defaultContext);
|
|
595
|
-
function $704cf1d3b684cc5c$export$535bd6ca7f90a273() {
|
|
596
|
-
let cur = (useContext)($704cf1d3b684cc5c$var$SSRContext);
|
|
597
|
-
return cur.isSSR;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
/*
|
|
601
|
-
* Copyright 2022 Adobe. All rights reserved.
|
|
602
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
603
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
604
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
605
|
-
*
|
|
606
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
607
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
608
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
609
|
-
* governing permissions and limitations under the License.
|
|
610
|
-
*/ /*
|
|
611
|
-
* Copyright 2022 Adobe. All rights reserved.
|
|
612
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
613
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
614
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
615
|
-
*
|
|
616
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
617
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
618
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
619
|
-
* governing permissions and limitations under the License.
|
|
620
|
-
*/ class $5b160d28a433310d$export$c17fa47878dc55b6 {
|
|
621
|
-
/** Returns a localized string for the given key and locale. */ getStringForLocale(key, locale) {
|
|
622
|
-
let strings = this.strings[locale];
|
|
623
|
-
if (!strings) {
|
|
624
|
-
strings = $5b160d28a433310d$var$getStringsForLocale(locale, this.strings, this.defaultLocale);
|
|
625
|
-
this.strings[locale] = strings;
|
|
626
|
-
}
|
|
627
|
-
let string = strings[key];
|
|
628
|
-
if (!string) throw new Error(`Could not find intl message ${key} in ${locale} locale`);
|
|
629
|
-
return string;
|
|
630
|
-
}
|
|
631
|
-
constructor(messages, defaultLocale = "en-US"){
|
|
632
|
-
// Clone messages so we don't modify the original object.
|
|
633
|
-
this.strings = {
|
|
634
|
-
...messages
|
|
635
|
-
};
|
|
636
|
-
this.defaultLocale = defaultLocale;
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
function $5b160d28a433310d$var$getStringsForLocale(locale, strings, defaultLocale = "en-US") {
|
|
640
|
-
// If there is an exact match, use it.
|
|
641
|
-
if (strings[locale]) return strings[locale];
|
|
642
|
-
// Attempt to find the closest match by language.
|
|
643
|
-
// For example, if the locale is fr-CA (French Canadian), but there is only
|
|
644
|
-
// an fr-FR (France) set of strings, use that.
|
|
645
|
-
// This could be replaced with Intl.LocaleMatcher once it is supported.
|
|
646
|
-
// https://github.com/tc39/proposal-intl-localematcher
|
|
647
|
-
let language = $5b160d28a433310d$var$getLanguage(locale);
|
|
648
|
-
if (strings[language]) return strings[language];
|
|
649
|
-
for(let key in strings){
|
|
650
|
-
if (key.startsWith(language + "-")) return strings[key];
|
|
651
|
-
}
|
|
652
|
-
// Nothing close, use english.
|
|
653
|
-
return strings[defaultLocale];
|
|
654
|
-
}
|
|
655
|
-
function $5b160d28a433310d$var$getLanguage(locale) {
|
|
656
|
-
// @ts-ignore
|
|
657
|
-
if (Intl.Locale) // @ts-ignore
|
|
658
|
-
return new Intl.Locale(locale).language;
|
|
659
|
-
return locale.split("-")[0];
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
/*
|
|
664
|
-
* Copyright 2022 Adobe. All rights reserved.
|
|
665
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
666
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
667
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
668
|
-
*
|
|
669
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
670
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
671
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
672
|
-
* governing permissions and limitations under the License.
|
|
673
|
-
*/ const $6db58dc88e78b024$var$pluralRulesCache = new Map();
|
|
674
|
-
const $6db58dc88e78b024$var$numberFormatCache = new Map();
|
|
675
|
-
class $6db58dc88e78b024$export$2f817fcdc4b89ae0 {
|
|
676
|
-
/** Formats a localized string for the given key with the provided variables. */ format(key, variables) {
|
|
677
|
-
let message = this.strings.getStringForLocale(key, this.locale);
|
|
678
|
-
return typeof message === "function" ? message(variables, this) : message;
|
|
679
|
-
}
|
|
680
|
-
plural(count, options, type = "cardinal") {
|
|
681
|
-
let opt = options["=" + count];
|
|
682
|
-
if (opt) return typeof opt === "function" ? opt() : opt;
|
|
683
|
-
let key = this.locale + ":" + type;
|
|
684
|
-
let pluralRules = $6db58dc88e78b024$var$pluralRulesCache.get(key);
|
|
685
|
-
if (!pluralRules) {
|
|
686
|
-
pluralRules = new Intl.PluralRules(this.locale, {
|
|
687
|
-
type: type
|
|
688
|
-
});
|
|
689
|
-
$6db58dc88e78b024$var$pluralRulesCache.set(key, pluralRules);
|
|
690
|
-
}
|
|
691
|
-
let selected = pluralRules.select(count);
|
|
692
|
-
opt = options[selected] || options.other;
|
|
693
|
-
return typeof opt === "function" ? opt() : opt;
|
|
694
|
-
}
|
|
695
|
-
number(value) {
|
|
696
|
-
let numberFormat = $6db58dc88e78b024$var$numberFormatCache.get(this.locale);
|
|
697
|
-
if (!numberFormat) {
|
|
698
|
-
numberFormat = new Intl.NumberFormat(this.locale);
|
|
699
|
-
$6db58dc88e78b024$var$numberFormatCache.set(this.locale, numberFormat);
|
|
700
|
-
}
|
|
701
|
-
return numberFormat.format(value);
|
|
702
|
-
}
|
|
703
|
-
select(options, value) {
|
|
704
|
-
let opt = options[value] || options.other;
|
|
705
|
-
return typeof opt === "function" ? opt() : opt;
|
|
706
|
-
}
|
|
707
|
-
constructor(locale, strings){
|
|
708
|
-
this.locale = locale;
|
|
709
|
-
this.strings = strings;
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
/*
|
|
714
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
715
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
716
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
717
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
718
|
-
*
|
|
719
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
720
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
721
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
722
|
-
* governing permissions and limitations under the License.
|
|
723
|
-
*/ let $fb18d541ea1ad717$var$formatterCache = new Map();
|
|
724
|
-
class $fb18d541ea1ad717$export$ad991b66133851cf {
|
|
725
|
-
/** Formats a date as a string according to the locale and format options passed to the constructor. */ format(value) {
|
|
726
|
-
return this.formatter.format(value);
|
|
727
|
-
}
|
|
728
|
-
/** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */ formatToParts(value) {
|
|
729
|
-
return this.formatter.formatToParts(value);
|
|
730
|
-
}
|
|
731
|
-
/** Formats a date range as a string. */ formatRange(start, end) {
|
|
732
|
-
// @ts-ignore
|
|
733
|
-
if (typeof this.formatter.formatRange === "function") // @ts-ignore
|
|
734
|
-
return this.formatter.formatRange(start, end);
|
|
735
|
-
if (end < start) throw new RangeError("End date must be >= start date");
|
|
736
|
-
// Very basic fallback for old browsers.
|
|
737
|
-
return `${this.formatter.format(start)} – ${this.formatter.format(end)}`;
|
|
738
|
-
}
|
|
739
|
-
/** Formats a date range as an array of parts. */ formatRangeToParts(start, end) {
|
|
740
|
-
// @ts-ignore
|
|
741
|
-
if (typeof this.formatter.formatRangeToParts === "function") // @ts-ignore
|
|
742
|
-
return this.formatter.formatRangeToParts(start, end);
|
|
743
|
-
if (end < start) throw new RangeError("End date must be >= start date");
|
|
744
|
-
let startParts = this.formatter.formatToParts(start);
|
|
745
|
-
let endParts = this.formatter.formatToParts(end);
|
|
746
|
-
return [
|
|
747
|
-
...startParts.map((p)=>({
|
|
748
|
-
...p,
|
|
749
|
-
source: "startRange"
|
|
750
|
-
})),
|
|
751
|
-
{
|
|
752
|
-
type: "literal",
|
|
753
|
-
value: " – ",
|
|
754
|
-
source: "shared"
|
|
755
|
-
},
|
|
756
|
-
...endParts.map((p)=>({
|
|
757
|
-
...p,
|
|
758
|
-
source: "endRange"
|
|
759
|
-
}))
|
|
760
|
-
];
|
|
761
|
-
}
|
|
762
|
-
/** Returns the resolved formatting options based on the values passed to the constructor. */ resolvedOptions() {
|
|
763
|
-
let resolvedOptions = this.formatter.resolvedOptions();
|
|
764
|
-
if ($fb18d541ea1ad717$var$hasBuggyResolvedHourCycle()) {
|
|
765
|
-
if (!this.resolvedHourCycle) this.resolvedHourCycle = $fb18d541ea1ad717$var$getResolvedHourCycle(resolvedOptions.locale, this.options);
|
|
766
|
-
resolvedOptions.hourCycle = this.resolvedHourCycle;
|
|
767
|
-
resolvedOptions.hour12 = this.resolvedHourCycle === "h11" || this.resolvedHourCycle === "h12";
|
|
768
|
-
}
|
|
769
|
-
// Safari uses a different name for the Ethiopic (Amete Alem) calendar.
|
|
770
|
-
// https://bugs.webkit.org/show_bug.cgi?id=241564
|
|
771
|
-
if (resolvedOptions.calendar === "ethiopic-amete-alem") resolvedOptions.calendar = "ethioaa";
|
|
772
|
-
return resolvedOptions;
|
|
773
|
-
}
|
|
774
|
-
constructor(locale, options = {}){
|
|
775
|
-
this.formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options);
|
|
776
|
-
this.options = options;
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
// There are multiple bugs involving the hour12 and hourCycle options in various browser engines.
|
|
780
|
-
// - Chrome [1] (and the ECMA 402 spec [2]) resolve hour12: false in English and other locales to h24 (24:00 - 23:59)
|
|
781
|
-
// rather than h23 (00:00 - 23:59). Same can happen with hour12: true in French, which Chrome resolves to h11 (00:00 - 11:59)
|
|
782
|
-
// rather than h12 (12:00 - 11:59).
|
|
783
|
-
// - WebKit returns an incorrect hourCycle resolved option in the French locale due to incorrect parsing of 'h' literal
|
|
784
|
-
// in the resolved pattern. It also formats incorrectly when specifying the hourCycle option for the same reason. [3]
|
|
785
|
-
// [1] https://bugs.chromium.org/p/chromium/issues/detail?id=1045791
|
|
786
|
-
// [2] https://github.com/tc39/ecma402/issues/402
|
|
787
|
-
// [3] https://bugs.webkit.org/show_bug.cgi?id=229313
|
|
788
|
-
// https://github.com/unicode-org/cldr/blob/018b55eff7ceb389c7e3fc44e2f657eae3b10b38/common/supplemental/supplementalData.xml#L4774-L4802
|
|
789
|
-
const $fb18d541ea1ad717$var$hour12Preferences = {
|
|
790
|
-
true: {
|
|
791
|
-
// Only Japanese uses the h11 style for 12 hour time. All others use h12.
|
|
792
|
-
ja: "h11"
|
|
793
|
-
},
|
|
794
|
-
false: {
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
|
-
function $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options = {}) {
|
|
798
|
-
// Work around buggy hour12 behavior in Chrome / ECMA 402 spec by using hourCycle instead.
|
|
799
|
-
// Only apply the workaround if the issue is detected, because the hourCycle option is buggy in Safari.
|
|
800
|
-
if (typeof options.hour12 === "boolean" && $fb18d541ea1ad717$var$hasBuggyHour12Behavior()) {
|
|
801
|
-
options = {
|
|
802
|
-
...options
|
|
803
|
-
};
|
|
804
|
-
let pref = $fb18d541ea1ad717$var$hour12Preferences[String(options.hour12)][locale.split("-")[0]];
|
|
805
|
-
let defaultHourCycle = options.hour12 ? "h12" : "h23";
|
|
806
|
-
options.hourCycle = pref !== null && pref !== void 0 ? pref : defaultHourCycle;
|
|
807
|
-
delete options.hour12;
|
|
808
|
-
}
|
|
809
|
-
let cacheKey = locale + (options ? Object.entries(options).sort((a, b)=>a[0] < b[0] ? -1 : 1).join() : "");
|
|
810
|
-
if ($fb18d541ea1ad717$var$formatterCache.has(cacheKey)) return $fb18d541ea1ad717$var$formatterCache.get(cacheKey);
|
|
811
|
-
let numberFormatter = new Intl.DateTimeFormat(locale, options);
|
|
812
|
-
$fb18d541ea1ad717$var$formatterCache.set(cacheKey, numberFormatter);
|
|
813
|
-
return numberFormatter;
|
|
814
|
-
}
|
|
815
|
-
let $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = null;
|
|
816
|
-
function $fb18d541ea1ad717$var$hasBuggyHour12Behavior() {
|
|
817
|
-
if ($fb18d541ea1ad717$var$_hasBuggyHour12Behavior == null) $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = new Intl.DateTimeFormat("en-US", {
|
|
818
|
-
hour: "numeric",
|
|
819
|
-
hour12: false
|
|
820
|
-
}).format(new Date(2020, 2, 3, 0)) === "24";
|
|
821
|
-
return $fb18d541ea1ad717$var$_hasBuggyHour12Behavior;
|
|
822
|
-
}
|
|
823
|
-
let $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = null;
|
|
824
|
-
function $fb18d541ea1ad717$var$hasBuggyResolvedHourCycle() {
|
|
825
|
-
if ($fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle == null) $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = new Intl.DateTimeFormat("fr", {
|
|
826
|
-
hour: "numeric",
|
|
827
|
-
hour12: false
|
|
828
|
-
}).resolvedOptions().hourCycle === "h12";
|
|
829
|
-
return $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle;
|
|
830
|
-
}
|
|
831
|
-
function $fb18d541ea1ad717$var$getResolvedHourCycle(locale, options) {
|
|
832
|
-
if (!options.timeStyle && !options.hour) return undefined;
|
|
833
|
-
// Work around buggy results in resolved hourCycle and hour12 options in WebKit.
|
|
834
|
-
// Format the minimum possible hour and maximum possible hour in a day and parse the results.
|
|
835
|
-
locale = locale.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, "");
|
|
836
|
-
locale += (locale.includes("-u-") ? "" : "-u") + "-nu-latn";
|
|
837
|
-
let formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, {
|
|
838
|
-
...options,
|
|
839
|
-
timeZone: undefined // use local timezone
|
|
840
|
-
});
|
|
841
|
-
let min = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 0)).find((p)=>p.type === "hour").value, 10);
|
|
842
|
-
let max = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 23)).find((p)=>p.type === "hour").value, 10);
|
|
843
|
-
if (min === 0 && max === 23) return "h23";
|
|
844
|
-
if (min === 24 && max === 23) return "h24";
|
|
845
|
-
if (min === 0 && max === 11) return "h11";
|
|
846
|
-
if (min === 12 && max === 11) return "h12";
|
|
847
|
-
throw new Error("Unexpected hour cycle result");
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
/*
|
|
851
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
852
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
853
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
854
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
855
|
-
*
|
|
856
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
857
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
858
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
859
|
-
* governing permissions and limitations under the License.
|
|
860
|
-
*/ /*
|
|
861
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
862
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
863
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
864
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
865
|
-
*
|
|
866
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
867
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
868
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
869
|
-
* governing permissions and limitations under the License.
|
|
870
|
-
*/ let $488c6ddbf4ef74c2$var$formatterCache = new Map();
|
|
871
|
-
let $488c6ddbf4ef74c2$var$supportsSignDisplay = false;
|
|
872
|
-
try {
|
|
873
|
-
// @ts-ignore
|
|
874
|
-
$488c6ddbf4ef74c2$var$supportsSignDisplay = new Intl.NumberFormat("de-DE", {
|
|
875
|
-
signDisplay: "exceptZero"
|
|
876
|
-
}).resolvedOptions().signDisplay === "exceptZero";
|
|
877
|
-
// eslint-disable-next-line no-empty
|
|
878
|
-
} catch (e) {}
|
|
879
|
-
let $488c6ddbf4ef74c2$var$supportsUnit = false;
|
|
880
|
-
try {
|
|
881
|
-
// @ts-ignore
|
|
882
|
-
$488c6ddbf4ef74c2$var$supportsUnit = new Intl.NumberFormat("de-DE", {
|
|
883
|
-
style: "unit",
|
|
884
|
-
unit: "degree"
|
|
885
|
-
}).resolvedOptions().style === "unit";
|
|
886
|
-
// eslint-disable-next-line no-empty
|
|
887
|
-
} catch (e1) {}
|
|
888
|
-
// Polyfill for units since Safari doesn't support them yet. See https://bugs.webkit.org/show_bug.cgi?id=215438.
|
|
889
|
-
// Currently only polyfilling the unit degree in narrow format for ColorSlider in our supported locales.
|
|
890
|
-
// Values were determined by switching to each locale manually in Chrome.
|
|
891
|
-
const $488c6ddbf4ef74c2$var$UNITS = {
|
|
892
|
-
degree: {
|
|
893
|
-
narrow: {
|
|
894
|
-
default: "\xb0",
|
|
895
|
-
"ja-JP": " 度",
|
|
896
|
-
"zh-TW": "度",
|
|
897
|
-
"sl-SI": " \xb0"
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
};
|
|
901
|
-
class $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 {
|
|
902
|
-
/** Formats a number value as a string, according to the locale and options provided to the constructor. */ format(value) {
|
|
903
|
-
let res = "";
|
|
904
|
-
if (!$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null) res = $488c6ddbf4ef74c2$export$711b50b3c525e0f2(this.numberFormatter, this.options.signDisplay, value);
|
|
905
|
-
else res = this.numberFormatter.format(value);
|
|
906
|
-
if (this.options.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
|
|
907
|
-
var _UNITS_unit;
|
|
908
|
-
let { unit: unit , unitDisplay: unitDisplay = "short" , locale: locale } = this.resolvedOptions();
|
|
909
|
-
let values = (_UNITS_unit = $488c6ddbf4ef74c2$var$UNITS[unit]) === null || _UNITS_unit === void 0 ? void 0 : _UNITS_unit[unitDisplay];
|
|
910
|
-
res += values[locale] || values.default;
|
|
911
|
-
}
|
|
912
|
-
return res;
|
|
913
|
-
}
|
|
914
|
-
/** Formats a number to an array of parts such as separators, digits, punctuation, and more. */ formatToParts(value) {
|
|
915
|
-
// TODO: implement signDisplay for formatToParts
|
|
916
|
-
// @ts-ignore
|
|
917
|
-
return this.numberFormatter.formatToParts(value);
|
|
918
|
-
}
|
|
919
|
-
/** Formats a number range as a string. */ formatRange(start, end) {
|
|
920
|
-
// @ts-ignore
|
|
921
|
-
if (typeof this.numberFormatter.formatRange === "function") // @ts-ignore
|
|
922
|
-
return this.numberFormatter.formatRange(start, end);
|
|
923
|
-
if (end < start) throw new RangeError("End date must be >= start date");
|
|
924
|
-
// Very basic fallback for old browsers.
|
|
925
|
-
return `${this.format(start)} – ${this.format(end)}`;
|
|
926
|
-
}
|
|
927
|
-
/** Formats a number range as an array of parts. */ formatRangeToParts(start, end) {
|
|
928
|
-
// @ts-ignore
|
|
929
|
-
if (typeof this.numberFormatter.formatRangeToParts === "function") // @ts-ignore
|
|
930
|
-
return this.numberFormatter.formatRangeToParts(start, end);
|
|
931
|
-
if (end < start) throw new RangeError("End date must be >= start date");
|
|
932
|
-
let startParts = this.numberFormatter.formatToParts(start);
|
|
933
|
-
let endParts = this.numberFormatter.formatToParts(end);
|
|
934
|
-
return [
|
|
935
|
-
...startParts.map((p)=>({
|
|
936
|
-
...p,
|
|
937
|
-
source: "startRange"
|
|
938
|
-
})),
|
|
939
|
-
{
|
|
940
|
-
type: "literal",
|
|
941
|
-
value: " – ",
|
|
942
|
-
source: "shared"
|
|
943
|
-
},
|
|
944
|
-
...endParts.map((p)=>({
|
|
945
|
-
...p,
|
|
946
|
-
source: "endRange"
|
|
947
|
-
}))
|
|
948
|
-
];
|
|
949
|
-
}
|
|
950
|
-
/** Returns the resolved formatting options based on the values passed to the constructor. */ resolvedOptions() {
|
|
951
|
-
let options = this.numberFormatter.resolvedOptions();
|
|
952
|
-
if (!$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null) options = {
|
|
953
|
-
...options,
|
|
954
|
-
signDisplay: this.options.signDisplay
|
|
955
|
-
};
|
|
956
|
-
if (!$488c6ddbf4ef74c2$var$supportsUnit && this.options.style === "unit") options = {
|
|
957
|
-
...options,
|
|
958
|
-
style: "unit",
|
|
959
|
-
unit: this.options.unit,
|
|
960
|
-
unitDisplay: this.options.unitDisplay
|
|
961
|
-
};
|
|
962
|
-
return options;
|
|
963
|
-
}
|
|
964
|
-
constructor(locale, options = {}){
|
|
965
|
-
this.numberFormatter = $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options);
|
|
966
|
-
this.options = options;
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
function $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options = {}) {
|
|
970
|
-
let { numberingSystem: numberingSystem } = options;
|
|
971
|
-
if (numberingSystem && locale.indexOf("-u-nu-") === -1) locale = `${locale}-u-nu-${numberingSystem}`;
|
|
972
|
-
if (options.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
|
|
973
|
-
var _UNITS_unit;
|
|
974
|
-
let { unit: unit , unitDisplay: unitDisplay = "short" } = options;
|
|
975
|
-
if (!unit) throw new Error('unit option must be provided with style: "unit"');
|
|
976
|
-
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}`);
|
|
977
|
-
options = {
|
|
978
|
-
...options,
|
|
979
|
-
style: "decimal"
|
|
980
|
-
};
|
|
981
|
-
}
|
|
982
|
-
let cacheKey = locale + (options ? Object.entries(options).sort((a, b)=>a[0] < b[0] ? -1 : 1).join() : "");
|
|
983
|
-
if ($488c6ddbf4ef74c2$var$formatterCache.has(cacheKey)) return $488c6ddbf4ef74c2$var$formatterCache.get(cacheKey);
|
|
984
|
-
let numberFormatter = new Intl.NumberFormat(locale, options);
|
|
985
|
-
$488c6ddbf4ef74c2$var$formatterCache.set(cacheKey, numberFormatter);
|
|
986
|
-
return numberFormatter;
|
|
987
|
-
}
|
|
988
|
-
function $488c6ddbf4ef74c2$export$711b50b3c525e0f2(numberFormat, signDisplay, num) {
|
|
989
|
-
if (signDisplay === "auto") return numberFormat.format(num);
|
|
990
|
-
else if (signDisplay === "never") return numberFormat.format(Math.abs(num));
|
|
991
|
-
else {
|
|
992
|
-
let needsPositiveSign = false;
|
|
993
|
-
if (signDisplay === "always") needsPositiveSign = num > 0 || Object.is(num, 0);
|
|
994
|
-
else if (signDisplay === "exceptZero") {
|
|
995
|
-
if (Object.is(num, -0) || Object.is(num, 0)) num = Math.abs(num);
|
|
996
|
-
else needsPositiveSign = num > 0;
|
|
997
|
-
}
|
|
998
|
-
if (needsPositiveSign) {
|
|
999
|
-
let negative = numberFormat.format(-num);
|
|
1000
|
-
let noSign = numberFormat.format(num);
|
|
1001
|
-
// ignore RTL/LTR marker character
|
|
1002
|
-
let minus = negative.replace(noSign, "").replace(/\u200e|\u061C/, "");
|
|
1003
|
-
if ([
|
|
1004
|
-
...minus
|
|
1005
|
-
].length !== 1) console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case");
|
|
1006
|
-
let positive = negative.replace(noSign, "!!!").replace(minus, "+").replace("!!!", noSign);
|
|
1007
|
-
return positive;
|
|
1008
|
-
} else return numberFormat.format(num);
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
/*
|
|
1013
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
1014
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1015
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1016
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1017
|
-
*
|
|
1018
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1019
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1020
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1021
|
-
* governing permissions and limitations under the License.
|
|
1022
|
-
*/ /*
|
|
1023
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
1024
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1025
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1026
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1027
|
-
*
|
|
1028
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1029
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1030
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1031
|
-
* governing permissions and limitations under the License.
|
|
1032
|
-
*/ /*
|
|
1033
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
1034
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1035
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1036
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1037
|
-
*
|
|
1038
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1039
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1040
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1041
|
-
* governing permissions and limitations under the License.
|
|
1042
|
-
*/ // https://en.wikipedia.org/wiki/Right-to-left
|
|
1043
|
-
const $148a7a147e38ea7f$var$RTL_SCRIPTS = new Set([
|
|
1044
|
-
"Arab",
|
|
1045
|
-
"Syrc",
|
|
1046
|
-
"Samr",
|
|
1047
|
-
"Mand",
|
|
1048
|
-
"Thaa",
|
|
1049
|
-
"Mend",
|
|
1050
|
-
"Nkoo",
|
|
1051
|
-
"Adlm",
|
|
1052
|
-
"Rohg",
|
|
1053
|
-
"Hebr"
|
|
1054
|
-
]);
|
|
1055
|
-
const $148a7a147e38ea7f$var$RTL_LANGS = new Set([
|
|
1056
|
-
"ae",
|
|
1057
|
-
"ar",
|
|
1058
|
-
"arc",
|
|
1059
|
-
"bcc",
|
|
1060
|
-
"bqi",
|
|
1061
|
-
"ckb",
|
|
1062
|
-
"dv",
|
|
1063
|
-
"fa",
|
|
1064
|
-
"glk",
|
|
1065
|
-
"he",
|
|
1066
|
-
"ku",
|
|
1067
|
-
"mzn",
|
|
1068
|
-
"nqo",
|
|
1069
|
-
"pnb",
|
|
1070
|
-
"ps",
|
|
1071
|
-
"sd",
|
|
1072
|
-
"ug",
|
|
1073
|
-
"ur",
|
|
1074
|
-
"yi"
|
|
1075
|
-
]);
|
|
1076
|
-
function $148a7a147e38ea7f$export$702d680b21cbd764(locale) {
|
|
1077
|
-
// If the Intl.Locale API is available, use it to get the script for the locale.
|
|
1078
|
-
// This is more accurate than guessing by language, since languages can be written in multiple scripts.
|
|
1079
|
-
// @ts-ignore
|
|
1080
|
-
if (Intl.Locale) {
|
|
1081
|
-
// @ts-ignore
|
|
1082
|
-
let script = new Intl.Locale(locale).maximize().script;
|
|
1083
|
-
return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(script);
|
|
1084
|
-
}
|
|
1085
|
-
// If not, just guess by the language (first part of the locale)
|
|
1086
|
-
let lang = locale.split("-")[0];
|
|
1087
|
-
return $148a7a147e38ea7f$var$RTL_LANGS.has(lang);
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
/*
|
|
1092
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
1093
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1094
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1095
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1096
|
-
*
|
|
1097
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1098
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1099
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1100
|
-
* governing permissions and limitations under the License.
|
|
1101
|
-
*/
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
function $1e5a04cdaf7d1af8$export$f09106e7c6677ec5() {
|
|
1105
|
-
// @ts-ignore
|
|
1106
|
-
let locale = typeof navigator !== "undefined" && (navigator.language || navigator.userLanguage) || "en-US";
|
|
1107
|
-
try {
|
|
1108
|
-
// @ts-ignore
|
|
1109
|
-
Intl.DateTimeFormat.supportedLocalesOf([
|
|
1110
|
-
locale
|
|
1111
|
-
]);
|
|
1112
|
-
} catch (_err) {
|
|
1113
|
-
locale = "en-US";
|
|
1114
|
-
}
|
|
1115
|
-
return {
|
|
1116
|
-
locale: locale,
|
|
1117
|
-
direction: ($148a7a147e38ea7f$export$702d680b21cbd764)(locale) ? "rtl" : "ltr"
|
|
1118
|
-
};
|
|
1119
|
-
}
|
|
1120
|
-
let $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();
|
|
1121
|
-
let $1e5a04cdaf7d1af8$var$listeners = new Set();
|
|
1122
|
-
function $1e5a04cdaf7d1af8$var$updateLocale() {
|
|
1123
|
-
$1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();
|
|
1124
|
-
for (let listener of $1e5a04cdaf7d1af8$var$listeners)listener($1e5a04cdaf7d1af8$var$currentLocale);
|
|
1125
|
-
}
|
|
1126
|
-
function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {
|
|
1127
|
-
let isSSR = ($704cf1d3b684cc5c$export$535bd6ca7f90a273)();
|
|
1128
|
-
let [defaultLocale, setDefaultLocale] = (useState)($1e5a04cdaf7d1af8$var$currentLocale);
|
|
1129
|
-
(useEffect)(()=>{
|
|
1130
|
-
if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.addEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
|
|
1131
|
-
$1e5a04cdaf7d1af8$var$listeners.add(setDefaultLocale);
|
|
1132
|
-
return ()=>{
|
|
1133
|
-
$1e5a04cdaf7d1af8$var$listeners.delete(setDefaultLocale);
|
|
1134
|
-
if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.removeEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
|
|
1135
|
-
};
|
|
1136
|
-
}, []);
|
|
1137
|
-
// We cannot determine the browser's language on the server, so default to
|
|
1138
|
-
// en-US. This will be updated after hydration on the client to the correct value.
|
|
1139
|
-
if (isSSR) return {
|
|
1140
|
-
locale: "en-US",
|
|
1141
|
-
direction: "ltr"
|
|
1142
|
-
};
|
|
1143
|
-
return defaultLocale;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
const $18f2051aff69b9bf$var$I18nContext = /*#__PURE__*/ (React__default).createContext(null);
|
|
1149
|
-
function $18f2051aff69b9bf$export$43bb16f9c6d9e3f7() {
|
|
1150
|
-
let defaultLocale = ($1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a)();
|
|
1151
|
-
let context = (useContext)($18f2051aff69b9bf$var$I18nContext);
|
|
1152
|
-
return context || defaultLocale;
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
/*
|
|
1157
|
-
* Copyright 2022 Adobe. All rights reserved.
|
|
1158
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1159
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1160
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1161
|
-
*
|
|
1162
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1163
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1164
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1165
|
-
* governing permissions and limitations under the License.
|
|
1166
|
-
*/
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
const $fca6afa0e843324b$var$cache = new WeakMap();
|
|
1170
|
-
function $fca6afa0e843324b$var$getCachedDictionary(strings) {
|
|
1171
|
-
let dictionary = $fca6afa0e843324b$var$cache.get(strings);
|
|
1172
|
-
if (!dictionary) {
|
|
1173
|
-
dictionary = new ($5b160d28a433310d$export$c17fa47878dc55b6)(strings);
|
|
1174
|
-
$fca6afa0e843324b$var$cache.set(strings, dictionary);
|
|
1175
|
-
}
|
|
1176
|
-
return dictionary;
|
|
1177
|
-
}
|
|
1178
|
-
function $fca6afa0e843324b$export$f12b703ca79dfbb1(strings) {
|
|
1179
|
-
let { locale: locale } = ($18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
|
|
1180
|
-
let dictionary = (useMemo)(()=>$fca6afa0e843324b$var$getCachedDictionary(strings), [
|
|
1181
|
-
strings
|
|
1182
|
-
]);
|
|
1183
|
-
return (useMemo)(()=>new ($6db58dc88e78b024$export$2f817fcdc4b89ae0)(locale, dictionary), [
|
|
1184
|
-
locale,
|
|
1185
|
-
dictionary
|
|
1186
|
-
]);
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
/*
|
|
1191
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
1192
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1193
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1194
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1195
|
-
*
|
|
1196
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1197
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1198
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1199
|
-
* governing permissions and limitations under the License.
|
|
1200
|
-
*/
|
|
1201
|
-
|
|
1202
|
-
function $33bf17300c498528$export$a2f47a3d2973640(options = {}) {
|
|
1203
|
-
let { locale: locale } = ($18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
|
|
1204
|
-
// @ts-ignore
|
|
1205
|
-
return (useMemo)(()=>new Intl.ListFormat(locale, options), [
|
|
1206
|
-
locale,
|
|
1207
|
-
options
|
|
1208
|
-
]);
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
/*
|
|
1213
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
1214
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1215
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1216
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1217
|
-
*
|
|
1218
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1219
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1220
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1221
|
-
* governing permissions and limitations under the License.
|
|
1222
|
-
*/
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
function $896ba0a80a8f4d36$export$85fd5fdf27bacc79(options) {
|
|
1226
|
-
// Reuse last options object if it is shallowly equal, which allows the useMemo result to also be reused.
|
|
1227
|
-
let lastOptions = (useRef)(null);
|
|
1228
|
-
if (options && lastOptions.current && $896ba0a80a8f4d36$var$isEqual(options, lastOptions.current)) options = lastOptions.current;
|
|
1229
|
-
lastOptions.current = options;
|
|
1230
|
-
let { locale: locale } = ($18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
|
|
1231
|
-
return (useMemo)(()=>new ($fb18d541ea1ad717$export$ad991b66133851cf)(locale, options), [
|
|
1232
|
-
locale,
|
|
1233
|
-
options
|
|
1234
|
-
]);
|
|
1235
|
-
}
|
|
1236
|
-
function $896ba0a80a8f4d36$var$isEqual(a, b) {
|
|
1237
|
-
if (a === b) return true;
|
|
1238
|
-
let aKeys = Object.keys(a);
|
|
1239
|
-
let bKeys = Object.keys(b);
|
|
1240
|
-
if (aKeys.length !== bKeys.length) return false;
|
|
1241
|
-
for (let key of aKeys){
|
|
1242
|
-
if (b[key] !== a[key]) return false;
|
|
1243
|
-
}
|
|
1244
|
-
return true;
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
/*
|
|
1249
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
1250
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1251
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1252
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1253
|
-
*
|
|
1254
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1255
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1256
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1257
|
-
* governing permissions and limitations under the License.
|
|
1258
|
-
*/
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
function $a916eb452884faea$export$b7a616150fdb9f44(options = {}) {
|
|
1262
|
-
let { locale: locale } = ($18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
|
|
1263
|
-
return (useMemo)(()=>new ($488c6ddbf4ef74c2$export$cc77c4ff7e8673c5)(locale, options), [
|
|
1264
|
-
locale,
|
|
1265
|
-
options
|
|
1266
|
-
]);
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
/*
|
|
1271
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
1272
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1273
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1274
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1275
|
-
*
|
|
1276
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1277
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1278
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1279
|
-
* governing permissions and limitations under the License.
|
|
1280
|
-
*/
|
|
1281
|
-
let $325a3faab7a68acd$var$cache = new Map();
|
|
1282
|
-
function $325a3faab7a68acd$export$a16aca283550c30d(options) {
|
|
1283
|
-
let { locale: locale } = ($18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
|
|
1284
|
-
let cacheKey = locale + (options ? Object.entries(options).sort((a, b)=>a[0] < b[0] ? -1 : 1).join() : "");
|
|
1285
|
-
if ($325a3faab7a68acd$var$cache.has(cacheKey)) return $325a3faab7a68acd$var$cache.get(cacheKey);
|
|
1286
|
-
let formatter = new Intl.Collator(locale, options);
|
|
1287
|
-
$325a3faab7a68acd$var$cache.set(cacheKey, formatter);
|
|
1288
|
-
return formatter;
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
/*
|
|
1293
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
1294
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1295
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1296
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1297
|
-
*
|
|
1298
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1299
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1300
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1301
|
-
* governing permissions and limitations under the License.
|
|
1302
|
-
*/
|
|
1303
|
-
|
|
1304
|
-
function $bb77f239b46e8c72$export$3274cf84b703fff(options) {
|
|
1305
|
-
let collator = ($325a3faab7a68acd$export$a16aca283550c30d)({
|
|
1306
|
-
usage: "search",
|
|
1307
|
-
...options
|
|
1308
|
-
});
|
|
1309
|
-
// TODO(later): these methods don't currently support the ignorePunctuation option.
|
|
1310
|
-
let startsWith = (useCallback)((string, substring)=>{
|
|
1311
|
-
if (substring.length === 0) return true;
|
|
1312
|
-
// Normalize both strings so we can slice safely
|
|
1313
|
-
// TODO: take into account the ignorePunctuation option as well...
|
|
1314
|
-
string = string.normalize("NFC");
|
|
1315
|
-
substring = substring.normalize("NFC");
|
|
1316
|
-
return collator.compare(string.slice(0, substring.length), substring) === 0;
|
|
1317
|
-
}, [
|
|
1318
|
-
collator
|
|
1319
|
-
]);
|
|
1320
|
-
let endsWith = (useCallback)((string, substring)=>{
|
|
1321
|
-
if (substring.length === 0) return true;
|
|
1322
|
-
string = string.normalize("NFC");
|
|
1323
|
-
substring = substring.normalize("NFC");
|
|
1324
|
-
return collator.compare(string.slice(-substring.length), substring) === 0;
|
|
1325
|
-
}, [
|
|
1326
|
-
collator
|
|
1327
|
-
]);
|
|
1328
|
-
let contains = (useCallback)((string, substring)=>{
|
|
1329
|
-
if (substring.length === 0) return true;
|
|
1330
|
-
string = string.normalize("NFC");
|
|
1331
|
-
substring = substring.normalize("NFC");
|
|
1332
|
-
let scan = 0;
|
|
1333
|
-
let sliceLen = substring.length;
|
|
1334
|
-
for(; scan + sliceLen <= string.length; scan++){
|
|
1335
|
-
let slice = string.slice(scan, scan + sliceLen);
|
|
1336
|
-
if (collator.compare(substring, slice) === 0) return true;
|
|
1337
|
-
}
|
|
1338
|
-
return false;
|
|
1339
|
-
}, [
|
|
1340
|
-
collator
|
|
1341
|
-
]);
|
|
1342
|
-
return (useMemo)(()=>({
|
|
1343
|
-
startsWith: startsWith,
|
|
1344
|
-
endsWith: endsWith,
|
|
1345
|
-
contains: contains
|
|
1346
|
-
}), [
|
|
1347
|
-
startsWith,
|
|
1348
|
-
endsWith,
|
|
1349
|
-
contains
|
|
1350
|
-
]);
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
563
|
/**
|
|
1354
564
|
* Component variant.
|
|
1355
565
|
*/
|
|
@@ -11563,5 +10773,5 @@ TextField.className = CLASSNAME;
|
|
|
11563
10773
|
TextField.defaultProps = DEFAULT_PROPS;
|
|
11564
10774
|
TextField.displayName = COMPONENT_NAME;
|
|
11565
10775
|
|
|
11566
|
-
export { Alert, AlertVariant, AlignContent, AlignItems, AlignSelf, AppBar, AppContainer, AppContainerContext, AppContent, AppSidePanel, Badge, BadgeVariant, BaseBreadcrumbs, BaseGrid, BaseSkeleton, BreadcrumbItem, Breadcrumbs, Button, ButtonLink, ButtonVariant, Card, CardActions, CardBody, CardHeader, Checkbox, CheckboxGroup, CheckboxGroupOrientation, ColorPalette, ConditionalWrapper, DataVizColorPalette, DetailedCard, DetailedCardCollapsibleSectionItems, DetailedCardHeader, DetailedCardSection, DetailedCardSectionItem, FlexDirection, FlexWrap, Flexbox, FontFamily, Grid, GridItem, Heading, HeadingComponent, HeadingVariant, Icon, IconButton, IconButtonVariant, IconSize, JustifyContent, JustifyItems, JustifySelf, Link, LinkButton, NeutralColorPalette, Number$1 as Number, Pill, ProductColorPalette, Radio, RadioGroup, RadioGroupOrientation, RedsiftAppBarColorBackground, RedsiftAppBarColorExpandIconBackgroundHover, RedsiftAppBarColorExpandIconHover, RedsiftAppBarColorExpandIconResting, RedsiftAppBarColorText, RedsiftColorDefaultActive, RedsiftColorDefaultActiveHover, RedsiftColorDefaultHover, RedsiftColorDefaultPrimary, RedsiftColorDefaultPrimaryActive, RedsiftColorDefaultPrimaryActiveHover, RedsiftColorDefaultSecondary, RedsiftColorErrorActive, RedsiftColorErrorActiveHover, RedsiftColorErrorHover, RedsiftColorErrorPrimary, RedsiftColorErrorPrimaryActive, RedsiftColorErrorPrimaryActiveHover, RedsiftColorErrorSecondary, RedsiftColorHardenizeActive, RedsiftColorHardenizeActiveHover, RedsiftColorHardenizeHover, RedsiftColorHardenizePrimary, RedsiftColorHardenizePrimaryActive, RedsiftColorHardenizePrimaryActiveHover, RedsiftColorHardenizeSecondary, RedsiftColorInfoActive, RedsiftColorInfoActiveHover, RedsiftColorInfoHover, RedsiftColorInfoPrimary, RedsiftColorInfoPrimaryActive, RedsiftColorInfoPrimaryActiveHover, RedsiftColorInfoSecondary, RedsiftColorNeutralBlack, RedsiftColorNeutralDarkgrey, RedsiftColorNeutralLightgrey, RedsiftColorNeutralMidgrey, RedsiftColorNeutralWhite, RedsiftColorNeutralXlightgrey, RedsiftColorNoDataActive, RedsiftColorNoDataActiveHover, RedsiftColorNoDataHover, RedsiftColorNoDataPrimary, RedsiftColorNoDataPrimaryActive, RedsiftColorNoDataPrimaryActiveHover, RedsiftColorNoDataSecondary, RedsiftColorOndmarcActive, RedsiftColorOndmarcActiveHover, RedsiftColorOndmarcHover, RedsiftColorOndmarcPrimary, RedsiftColorOndmarcPrimaryActive, RedsiftColorOndmarcPrimaryActiveHover, RedsiftColorOndmarcSecondary, RedsiftColorOndomainActive, RedsiftColorOndomainActiveHover, RedsiftColorOndomainHover, RedsiftColorOndomainPrimary, RedsiftColorOndomainPrimaryActive, RedsiftColorOndomainPrimaryActiveHover, RedsiftColorOndomainSecondary, RedsiftColorOninboxActive, RedsiftColorOninboxActiveHover, RedsiftColorOninboxHover, RedsiftColorOninboxPrimary, RedsiftColorOninboxPrimaryActive, RedsiftColorOninboxPrimaryActiveHover, RedsiftColorOninboxSecondary, RedsiftColorQuestionActive, RedsiftColorQuestionActiveHover, RedsiftColorQuestionHover, RedsiftColorQuestionPrimary, RedsiftColorQuestionPrimaryActive, RedsiftColorQuestionPrimaryActiveHover, RedsiftColorQuestionSecondary, RedsiftColorSuccessActive, RedsiftColorSuccessActiveHover, RedsiftColorSuccessHover, RedsiftColorSuccessPrimary, RedsiftColorSuccessPrimaryActive, RedsiftColorSuccessPrimaryActiveHover, RedsiftColorSuccessSecondary, RedsiftColorToolsActive, RedsiftColorToolsActiveHover, RedsiftColorToolsHover, RedsiftColorToolsPrimary, RedsiftColorToolsPrimaryActive, RedsiftColorToolsPrimaryActiveHover, RedsiftColorToolsSecondary, RedsiftColorWarningActive, RedsiftColorWarningActiveHover, RedsiftColorWarningHover, RedsiftColorWarningPrimary, RedsiftColorWarningPrimaryActive, RedsiftColorWarningPrimaryActiveHover, RedsiftColorWarningSecondary, RedsiftColorWebsiteActive, RedsiftColorWebsiteActiveHover, RedsiftColorWebsiteHover, RedsiftColorWebsitePrimary, RedsiftColorWebsitePrimaryActive, RedsiftColorWebsitePrimaryActiveHover, RedsiftColorWebsiteSecondary, RedsiftDataVizColorAquaDark, RedsiftDataVizColorAquaDarker, RedsiftDataVizColorAquaDarkerer, RedsiftDataVizColorAquaDefault, RedsiftDataVizColorAquaLight, RedsiftDataVizColorAquaLighter, RedsiftDataVizColorAquaLighterer, RedsiftDataVizColorBlueDark, RedsiftDataVizColorBlueDarker, RedsiftDataVizColorBlueDarkerer, RedsiftDataVizColorBlueDefault, RedsiftDataVizColorBlueLight, RedsiftDataVizColorBlueLighter, RedsiftDataVizColorBlueLighterer, RedsiftDataVizColorBrownDark, RedsiftDataVizColorBrownDarker, RedsiftDataVizColorBrownDarkerer, RedsiftDataVizColorBrownDefault, RedsiftDataVizColorBrownLight, RedsiftDataVizColorBrownLighter, RedsiftDataVizColorBrownLighterer, RedsiftDataVizColorGreenDark, RedsiftDataVizColorGreenDarker, RedsiftDataVizColorGreenDarkerer, RedsiftDataVizColorGreenDefault, RedsiftDataVizColorGreenLight, RedsiftDataVizColorGreenLighter, RedsiftDataVizColorGreenLighterer, RedsiftDataVizColorGreyDark, RedsiftDataVizColorGreyDarker, RedsiftDataVizColorGreyDarkerer, RedsiftDataVizColorGreyDefault, RedsiftDataVizColorGreyLight, RedsiftDataVizColorGreyLighter, RedsiftDataVizColorGreyLighterer, RedsiftDataVizColorOrangeDark, RedsiftDataVizColorOrangeDarker, RedsiftDataVizColorOrangeDarkerer, RedsiftDataVizColorOrangeDefault, RedsiftDataVizColorOrangeLight, RedsiftDataVizColorOrangeLighter, RedsiftDataVizColorOrangeLighterer, RedsiftDataVizColorPinkDark, RedsiftDataVizColorPinkDarker, RedsiftDataVizColorPinkDarkerer, RedsiftDataVizColorPinkDefault, RedsiftDataVizColorPinkLight, RedsiftDataVizColorPinkLighter, RedsiftDataVizColorPinkLighterer, RedsiftDataVizColorPurpleDark, RedsiftDataVizColorPurpleDarker, RedsiftDataVizColorPurpleDarkerer, RedsiftDataVizColorPurpleDefault, RedsiftDataVizColorPurpleLight, RedsiftDataVizColorPurpleLighter, RedsiftDataVizColorPurpleLighterer, RedsiftDataVizColorRedDark, RedsiftDataVizColorRedDarker, RedsiftDataVizColorRedDarkerer, RedsiftDataVizColorRedDefault, RedsiftDataVizColorRedLight, RedsiftDataVizColorRedLighter, RedsiftDataVizColorRedLighterer, RedsiftDataVizColorYellowDark, RedsiftDataVizColorYellowDarker, RedsiftDataVizColorYellowDarkerer, RedsiftDataVizColorYellowDefault, RedsiftDataVizColorYellowLight, RedsiftDataVizColorYellowLighter, RedsiftDataVizColorYellowLighterer, RedsiftLayoutZIndexDialog, RedsiftLayoutZIndexDropdown, RedsiftLayoutZIndexFooter, RedsiftLayoutZIndexHeader, RedsiftLayoutZIndexOverlay, RedsiftLayoutZIndexPopover, RedsiftLayoutZIndexSidePanel, RedsiftLayoutZIndexTooltip, RedsiftSideNavigationColorBackground, RedsiftSideNavigationColorMenuItemActive, RedsiftSideNavigationColorMenuItemBackgroundActive, RedsiftSideNavigationColorMenuItemBackgroundHover, RedsiftSideNavigationColorMenuItemBackgroundSecondary, RedsiftSideNavigationColorMenuItemTextDisabled, RedsiftSideNavigationColorMenuItemTextHover, RedsiftSideNavigationColorMenuItemTextResting, RedsiftSideNavigationColorScrollbarHover, RedsiftSideNavigationColorScrollbarResting, RedsiftTypographyBadgeFontFamily, RedsiftTypographyBadgeFontSize, RedsiftTypographyBadgeFontWeight, RedsiftTypographyBadgeLineHeight, RedsiftTypographyBody2FontFamily, RedsiftTypographyBody2FontSize, RedsiftTypographyBody2FontWeight, RedsiftTypographyBody2LineHeight, RedsiftTypographyBodyFontFamily, RedsiftTypographyBodyFontSize, RedsiftTypographyBodyFontWeight, RedsiftTypographyBodyLineHeight, RedsiftTypographyBodyTextTransform, RedsiftTypographyButtonFontFamily, RedsiftTypographyButtonFontSize, RedsiftTypographyButtonFontWeight, RedsiftTypographyButtonLineHeight, RedsiftTypographyButtonTextTransform, RedsiftTypographyCaptionFontFamily, RedsiftTypographyCaptionFontSize, RedsiftTypographyCaptionFontWeight, RedsiftTypographyCaptionLineHeight, RedsiftTypographyCaptionTextTransform, RedsiftTypographyChipFontFamily, RedsiftTypographyChipFontSize, RedsiftTypographyChipFontWeight, RedsiftTypographyChipLineHeight, RedsiftTypographyDatagridCellFontFamily, RedsiftTypographyDatagridCellFontSize, RedsiftTypographyDatagridCellFontWeight, RedsiftTypographyDatagridCellLineHeight, RedsiftTypographyDatagridHeaderFontFamily, RedsiftTypographyDatagridHeaderFontSize, RedsiftTypographyDatagridHeaderFontWeight, RedsiftTypographyDatagridHeaderLineHeight, RedsiftTypographyFontFamilyElectrolize, RedsiftTypographyFontFamilyRaleway, RedsiftTypographyFontFamilySourceCodePro, RedsiftTypographyFontWeightBold, RedsiftTypographyFontWeightMedium, RedsiftTypographyFontWeightRegular, RedsiftTypographyFontWeightSemiBold, RedsiftTypographyH1FontFamily, RedsiftTypographyH1FontSize, RedsiftTypographyH1FontWeight, RedsiftTypographyH1LineHeight, RedsiftTypographyH1TextTransform, RedsiftTypographyH2FontFamily, RedsiftTypographyH2FontSize, RedsiftTypographyH2FontWeight, RedsiftTypographyH2LineHeight, RedsiftTypographyH2TextTransform, RedsiftTypographyH3FontFamily, RedsiftTypographyH3FontSize, RedsiftTypographyH3FontWeight, RedsiftTypographyH3LineHeight, RedsiftTypographyH3TextTransform, RedsiftTypographyH4FontFamily, RedsiftTypographyH4FontSize, RedsiftTypographyH4FontWeight, RedsiftTypographyH4LineHeight, RedsiftTypographyH4TextTransform, RedsiftTypographyH5FontFamily, RedsiftTypographyH5FontSize, RedsiftTypographyH5FontWeight, RedsiftTypographyH5LineHeight, RedsiftTypographyH5TextTransform, RedsiftTypographyHelperFontFamily, RedsiftTypographyHelperFontSize, RedsiftTypographyHelperFontWeight, RedsiftTypographyHelperLineHeight, RedsiftTypographyInputTextFontFamily, RedsiftTypographyInputTextFontSize, RedsiftTypographyInputTextFontWeight, RedsiftTypographyInputTextLineHeight, RedsiftTypographyLinkFontFamily, RedsiftTypographyLinkFontSize, RedsiftTypographyLinkFontWeight, RedsiftTypographyLinkLineHeight, RedsiftTypographyPillFontFamily, RedsiftTypographyPillFontSize, RedsiftTypographyPillFontWeight, RedsiftTypographyPillLineHeight, RedsiftTypographySubtitleFontFamily, RedsiftTypographySubtitleFontSize, RedsiftTypographySubtitleFontWeight, RedsiftTypographySubtitleLineHeight, RedsiftTypographySubtitleTextTransform, RedsiftTypographyTooltipFontFamily, RedsiftTypographyTooltipFontSize, RedsiftTypographyTooltipFontWeight, RedsiftTypographyTooltipLineHeight, Shield, ShieldVariant, SideNavigationMenu, SideNavigationMenuBar, SideNavigationMenuItem, SideNavigationMenuReducerActionType, Skeleton, SkeletonCircle, SkeletonText, SkeletonTextVariant, Spinner, SpinnerSize, StyledButton, StyledLink, Switch, SwitchGroup, SwitchGroupOrientation, Text, TextComponent, TextField, TextFieldVariant, TextVariant, baseContainer, baseFlexbox, baseGrid, baseInternalSpacing, baseLayout, basePositioning, baseSizing, baseSpacing, baseStyling, filterComponents, focusRing, isComponent, partitionComponents, useAppSidePanel, useBoundingClientRect, $325a3faab7a68acd$export$a16aca283550c30d as useCollator, $896ba0a80a8f4d36$export$85fd5fdf27bacc79 as useDateFormatter, $bb77f239b46e8c72$export$3274cf84b703fff as useFilter, $704cf1d3b684cc5c$export$535bd6ca7f90a273 as useIsSSR, $33bf17300c498528$export$a2f47a3d2973640 as useListFormatter, $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 as useLocale, $fca6afa0e843324b$export$f12b703ca79dfbb1 as useLocalizedStringFormatter, $a916eb452884faea$export$b7a616150fdb9f44 as useNumberFormatter, useSideNavigationMenuBar, useWindowSize, warnIfNoAccessibleLabelFound };
|
|
10776
|
+
export { Alert, AlertVariant, AlignContent, AlignItems, AlignSelf, AppBar, AppContainer, AppContainerContext, AppContent, AppSidePanel, Badge, BadgeVariant, BaseBreadcrumbs, BaseGrid, BaseSkeleton, BreadcrumbItem, Breadcrumbs, Button, ButtonLink, ButtonVariant, Card, CardActions, CardBody, CardHeader, Checkbox, CheckboxGroup, CheckboxGroupOrientation, ColorPalette, ConditionalWrapper, DataVizColorPalette, DetailedCard, DetailedCardCollapsibleSectionItems, DetailedCardHeader, DetailedCardSection, DetailedCardSectionItem, FlexDirection, FlexWrap, Flexbox, FontFamily, Grid, GridItem, Heading, HeadingComponent, HeadingVariant, Icon, IconButton, IconButtonVariant, IconSize, JustifyContent, JustifyItems, JustifySelf, Link, LinkButton, NeutralColorPalette, Number$1 as Number, Pill, ProductColorPalette, Radio, RadioGroup, RadioGroupOrientation, RedsiftAppBarColorBackground, RedsiftAppBarColorExpandIconBackgroundHover, RedsiftAppBarColorExpandIconHover, RedsiftAppBarColorExpandIconResting, RedsiftAppBarColorText, RedsiftColorDefaultActive, RedsiftColorDefaultActiveHover, RedsiftColorDefaultHover, RedsiftColorDefaultPrimary, RedsiftColorDefaultPrimaryActive, RedsiftColorDefaultPrimaryActiveHover, RedsiftColorDefaultSecondary, RedsiftColorErrorActive, RedsiftColorErrorActiveHover, RedsiftColorErrorHover, RedsiftColorErrorPrimary, RedsiftColorErrorPrimaryActive, RedsiftColorErrorPrimaryActiveHover, RedsiftColorErrorSecondary, RedsiftColorHardenizeActive, RedsiftColorHardenizeActiveHover, RedsiftColorHardenizeHover, RedsiftColorHardenizePrimary, RedsiftColorHardenizePrimaryActive, RedsiftColorHardenizePrimaryActiveHover, RedsiftColorHardenizeSecondary, RedsiftColorInfoActive, RedsiftColorInfoActiveHover, RedsiftColorInfoHover, RedsiftColorInfoPrimary, RedsiftColorInfoPrimaryActive, RedsiftColorInfoPrimaryActiveHover, RedsiftColorInfoSecondary, RedsiftColorNeutralBlack, RedsiftColorNeutralDarkgrey, RedsiftColorNeutralLightgrey, RedsiftColorNeutralMidgrey, RedsiftColorNeutralWhite, RedsiftColorNeutralXlightgrey, RedsiftColorNoDataActive, RedsiftColorNoDataActiveHover, RedsiftColorNoDataHover, RedsiftColorNoDataPrimary, RedsiftColorNoDataPrimaryActive, RedsiftColorNoDataPrimaryActiveHover, RedsiftColorNoDataSecondary, RedsiftColorOndmarcActive, RedsiftColorOndmarcActiveHover, RedsiftColorOndmarcHover, RedsiftColorOndmarcPrimary, RedsiftColorOndmarcPrimaryActive, RedsiftColorOndmarcPrimaryActiveHover, RedsiftColorOndmarcSecondary, RedsiftColorOndomainActive, RedsiftColorOndomainActiveHover, RedsiftColorOndomainHover, RedsiftColorOndomainPrimary, RedsiftColorOndomainPrimaryActive, RedsiftColorOndomainPrimaryActiveHover, RedsiftColorOndomainSecondary, RedsiftColorOninboxActive, RedsiftColorOninboxActiveHover, RedsiftColorOninboxHover, RedsiftColorOninboxPrimary, RedsiftColorOninboxPrimaryActive, RedsiftColorOninboxPrimaryActiveHover, RedsiftColorOninboxSecondary, RedsiftColorQuestionActive, RedsiftColorQuestionActiveHover, RedsiftColorQuestionHover, RedsiftColorQuestionPrimary, RedsiftColorQuestionPrimaryActive, RedsiftColorQuestionPrimaryActiveHover, RedsiftColorQuestionSecondary, RedsiftColorSuccessActive, RedsiftColorSuccessActiveHover, RedsiftColorSuccessHover, RedsiftColorSuccessPrimary, RedsiftColorSuccessPrimaryActive, RedsiftColorSuccessPrimaryActiveHover, RedsiftColorSuccessSecondary, RedsiftColorToolsActive, RedsiftColorToolsActiveHover, RedsiftColorToolsHover, RedsiftColorToolsPrimary, RedsiftColorToolsPrimaryActive, RedsiftColorToolsPrimaryActiveHover, RedsiftColorToolsSecondary, RedsiftColorWarningActive, RedsiftColorWarningActiveHover, RedsiftColorWarningHover, RedsiftColorWarningPrimary, RedsiftColorWarningPrimaryActive, RedsiftColorWarningPrimaryActiveHover, RedsiftColorWarningSecondary, RedsiftColorWebsiteActive, RedsiftColorWebsiteActiveHover, RedsiftColorWebsiteHover, RedsiftColorWebsitePrimary, RedsiftColorWebsitePrimaryActive, RedsiftColorWebsitePrimaryActiveHover, RedsiftColorWebsiteSecondary, RedsiftDataVizColorAquaDark, RedsiftDataVizColorAquaDarker, RedsiftDataVizColorAquaDarkerer, RedsiftDataVizColorAquaDefault, RedsiftDataVizColorAquaLight, RedsiftDataVizColorAquaLighter, RedsiftDataVizColorAquaLighterer, RedsiftDataVizColorBlueDark, RedsiftDataVizColorBlueDarker, RedsiftDataVizColorBlueDarkerer, RedsiftDataVizColorBlueDefault, RedsiftDataVizColorBlueLight, RedsiftDataVizColorBlueLighter, RedsiftDataVizColorBlueLighterer, RedsiftDataVizColorBrownDark, RedsiftDataVizColorBrownDarker, RedsiftDataVizColorBrownDarkerer, RedsiftDataVizColorBrownDefault, RedsiftDataVizColorBrownLight, RedsiftDataVizColorBrownLighter, RedsiftDataVizColorBrownLighterer, RedsiftDataVizColorGreenDark, RedsiftDataVizColorGreenDarker, RedsiftDataVizColorGreenDarkerer, RedsiftDataVizColorGreenDefault, RedsiftDataVizColorGreenLight, RedsiftDataVizColorGreenLighter, RedsiftDataVizColorGreenLighterer, RedsiftDataVizColorGreyDark, RedsiftDataVizColorGreyDarker, RedsiftDataVizColorGreyDarkerer, RedsiftDataVizColorGreyDefault, RedsiftDataVizColorGreyLight, RedsiftDataVizColorGreyLighter, RedsiftDataVizColorGreyLighterer, RedsiftDataVizColorOrangeDark, RedsiftDataVizColorOrangeDarker, RedsiftDataVizColorOrangeDarkerer, RedsiftDataVizColorOrangeDefault, RedsiftDataVizColorOrangeLight, RedsiftDataVizColorOrangeLighter, RedsiftDataVizColorOrangeLighterer, RedsiftDataVizColorPinkDark, RedsiftDataVizColorPinkDarker, RedsiftDataVizColorPinkDarkerer, RedsiftDataVizColorPinkDefault, RedsiftDataVizColorPinkLight, RedsiftDataVizColorPinkLighter, RedsiftDataVizColorPinkLighterer, RedsiftDataVizColorPurpleDark, RedsiftDataVizColorPurpleDarker, RedsiftDataVizColorPurpleDarkerer, RedsiftDataVizColorPurpleDefault, RedsiftDataVizColorPurpleLight, RedsiftDataVizColorPurpleLighter, RedsiftDataVizColorPurpleLighterer, RedsiftDataVizColorRedDark, RedsiftDataVizColorRedDarker, RedsiftDataVizColorRedDarkerer, RedsiftDataVizColorRedDefault, RedsiftDataVizColorRedLight, RedsiftDataVizColorRedLighter, RedsiftDataVizColorRedLighterer, RedsiftDataVizColorYellowDark, RedsiftDataVizColorYellowDarker, RedsiftDataVizColorYellowDarkerer, RedsiftDataVizColorYellowDefault, RedsiftDataVizColorYellowLight, RedsiftDataVizColorYellowLighter, RedsiftDataVizColorYellowLighterer, RedsiftLayoutZIndexDialog, RedsiftLayoutZIndexDropdown, RedsiftLayoutZIndexFooter, RedsiftLayoutZIndexHeader, RedsiftLayoutZIndexOverlay, RedsiftLayoutZIndexPopover, RedsiftLayoutZIndexSidePanel, RedsiftLayoutZIndexTooltip, RedsiftSideNavigationColorBackground, RedsiftSideNavigationColorMenuItemActive, RedsiftSideNavigationColorMenuItemBackgroundActive, RedsiftSideNavigationColorMenuItemBackgroundHover, RedsiftSideNavigationColorMenuItemBackgroundSecondary, RedsiftSideNavigationColorMenuItemTextDisabled, RedsiftSideNavigationColorMenuItemTextHover, RedsiftSideNavigationColorMenuItemTextResting, RedsiftSideNavigationColorScrollbarHover, RedsiftSideNavigationColorScrollbarResting, RedsiftTypographyBadgeFontFamily, RedsiftTypographyBadgeFontSize, RedsiftTypographyBadgeFontWeight, RedsiftTypographyBadgeLineHeight, RedsiftTypographyBody2FontFamily, RedsiftTypographyBody2FontSize, RedsiftTypographyBody2FontWeight, RedsiftTypographyBody2LineHeight, RedsiftTypographyBodyFontFamily, RedsiftTypographyBodyFontSize, RedsiftTypographyBodyFontWeight, RedsiftTypographyBodyLineHeight, RedsiftTypographyBodyTextTransform, RedsiftTypographyButtonFontFamily, RedsiftTypographyButtonFontSize, RedsiftTypographyButtonFontWeight, RedsiftTypographyButtonLineHeight, RedsiftTypographyButtonTextTransform, RedsiftTypographyCaptionFontFamily, RedsiftTypographyCaptionFontSize, RedsiftTypographyCaptionFontWeight, RedsiftTypographyCaptionLineHeight, RedsiftTypographyCaptionTextTransform, RedsiftTypographyChipFontFamily, RedsiftTypographyChipFontSize, RedsiftTypographyChipFontWeight, RedsiftTypographyChipLineHeight, RedsiftTypographyDatagridCellFontFamily, RedsiftTypographyDatagridCellFontSize, RedsiftTypographyDatagridCellFontWeight, RedsiftTypographyDatagridCellLineHeight, RedsiftTypographyDatagridHeaderFontFamily, RedsiftTypographyDatagridHeaderFontSize, RedsiftTypographyDatagridHeaderFontWeight, RedsiftTypographyDatagridHeaderLineHeight, RedsiftTypographyFontFamilyElectrolize, RedsiftTypographyFontFamilyRaleway, RedsiftTypographyFontFamilySourceCodePro, RedsiftTypographyFontWeightBold, RedsiftTypographyFontWeightMedium, RedsiftTypographyFontWeightRegular, RedsiftTypographyFontWeightSemiBold, RedsiftTypographyH1FontFamily, RedsiftTypographyH1FontSize, RedsiftTypographyH1FontWeight, RedsiftTypographyH1LineHeight, RedsiftTypographyH1TextTransform, RedsiftTypographyH2FontFamily, RedsiftTypographyH2FontSize, RedsiftTypographyH2FontWeight, RedsiftTypographyH2LineHeight, RedsiftTypographyH2TextTransform, RedsiftTypographyH3FontFamily, RedsiftTypographyH3FontSize, RedsiftTypographyH3FontWeight, RedsiftTypographyH3LineHeight, RedsiftTypographyH3TextTransform, RedsiftTypographyH4FontFamily, RedsiftTypographyH4FontSize, RedsiftTypographyH4FontWeight, RedsiftTypographyH4LineHeight, RedsiftTypographyH4TextTransform, RedsiftTypographyH5FontFamily, RedsiftTypographyH5FontSize, RedsiftTypographyH5FontWeight, RedsiftTypographyH5LineHeight, RedsiftTypographyH5TextTransform, RedsiftTypographyHelperFontFamily, RedsiftTypographyHelperFontSize, RedsiftTypographyHelperFontWeight, RedsiftTypographyHelperLineHeight, RedsiftTypographyInputTextFontFamily, RedsiftTypographyInputTextFontSize, RedsiftTypographyInputTextFontWeight, RedsiftTypographyInputTextLineHeight, RedsiftTypographyLinkFontFamily, RedsiftTypographyLinkFontSize, RedsiftTypographyLinkFontWeight, RedsiftTypographyLinkLineHeight, RedsiftTypographyPillFontFamily, RedsiftTypographyPillFontSize, RedsiftTypographyPillFontWeight, RedsiftTypographyPillLineHeight, RedsiftTypographySubtitleFontFamily, RedsiftTypographySubtitleFontSize, RedsiftTypographySubtitleFontWeight, RedsiftTypographySubtitleLineHeight, RedsiftTypographySubtitleTextTransform, RedsiftTypographyTooltipFontFamily, RedsiftTypographyTooltipFontSize, RedsiftTypographyTooltipFontWeight, RedsiftTypographyTooltipLineHeight, Shield, ShieldVariant, SideNavigationMenu, SideNavigationMenuBar, SideNavigationMenuItem, SideNavigationMenuReducerActionType, Skeleton, SkeletonCircle, SkeletonText, SkeletonTextVariant, Spinner, SpinnerSize, StyledButton, StyledLink, Switch, SwitchGroup, SwitchGroupOrientation, Text, TextComponent, TextField, TextFieldVariant, TextVariant, baseContainer, baseFlexbox, baseGrid, baseInternalSpacing, baseLayout, basePositioning, baseSizing, baseSpacing, baseStyling, filterComponents, focusRing, isComponent, partitionComponents, useAppSidePanel, useBoundingClientRect, useSideNavigationMenuBar, useWindowSize, warnIfNoAccessibleLabelFound };
|
|
11567
10777
|
//# sourceMappingURL=index.js.map
|