@pega/cosmos-react-core 2.1.2 → 3.0.0-dev.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/lib/components/AppShell/Operator.d.ts.map +1 -1
  2. package/lib/components/AppShell/Operator.js +1 -1
  3. package/lib/components/AppShell/Operator.js.map +1 -1
  4. package/lib/components/Avatar/Avatar.d.ts +5 -1
  5. package/lib/components/Avatar/Avatar.d.ts.map +1 -1
  6. package/lib/components/Avatar/Avatar.js +13 -8
  7. package/lib/components/Avatar/Avatar.js.map +1 -1
  8. package/lib/components/Configuration/Configuration.js +1 -1
  9. package/lib/components/Configuration/Configuration.js.map +1 -1
  10. package/lib/components/Currency/CurrencyDisplay.d.ts.map +1 -1
  11. package/lib/components/Currency/CurrencyDisplay.js +14 -13
  12. package/lib/components/Currency/CurrencyDisplay.js.map +1 -1
  13. package/lib/components/Modal/MinimizedModal.js +5 -5
  14. package/lib/components/Modal/MinimizedModal.js.map +1 -1
  15. package/lib/components/MultiStep/MultiStep.d.ts.map +1 -1
  16. package/lib/components/MultiStep/MultiStep.js +1 -1
  17. package/lib/components/MultiStep/MultiStep.js.map +1 -1
  18. package/lib/components/Number/NumberDisplay.d.ts +8 -4
  19. package/lib/components/Number/NumberDisplay.d.ts.map +1 -1
  20. package/lib/components/Number/NumberDisplay.js +9 -5
  21. package/lib/components/Number/NumberDisplay.js.map +1 -1
  22. package/lib/components/Number/NumberInput.types.d.ts +9 -4
  23. package/lib/components/Number/NumberInput.types.d.ts.map +1 -1
  24. package/lib/components/Number/NumberInput.types.js +2 -1
  25. package/lib/components/Number/NumberInput.types.js.map +1 -1
  26. package/lib/components/TextArea/TextArea.styles.d.ts.map +1 -1
  27. package/lib/components/TextArea/TextArea.styles.js +1 -0
  28. package/lib/components/TextArea/TextArea.styles.js.map +1 -1
  29. package/lib/hooks/useArrows.d.ts +2 -2
  30. package/lib/hooks/useArrows.d.ts.map +1 -1
  31. package/lib/hooks/useArrows.js +19 -12
  32. package/lib/hooks/useArrows.js.map +1 -1
  33. package/lib/hooks/useI18n.d.ts +7 -0
  34. package/lib/hooks/useI18n.d.ts.map +1 -1
  35. package/lib/i18n/default.d.ts +7 -0
  36. package/lib/i18n/default.d.ts.map +1 -1
  37. package/lib/i18n/default.js +10 -2
  38. package/lib/i18n/default.js.map +1 -1
  39. package/lib/i18n/i18n.d.ts +14 -0
  40. package/lib/i18n/i18n.d.ts.map +1 -1
  41. package/lib/theme/theme.d.ts +439 -439
  42. package/lib/theme/themeDefinition.json +243 -243
  43. package/lib/utils/utils.d.ts.map +1 -1
  44. package/lib/utils/utils.js +4 -2
  45. package/lib/utils/utils.js.map +1 -1
  46. package/package.json +8 -8
@@ -365,20 +365,6 @@
365
365
  "$value": "base.border-radius"
366
366
  }
367
367
  },
368
- "tabs": {
369
- "base": {
370
- "foreground": {
371
- "$type": "inherited",
372
- "$value": "base.palette.interactive"
373
- }
374
- },
375
- "inverted": {
376
- "foreground": {
377
- "$type": "inherited",
378
- "$value": "base.palette.primary-background"
379
- }
380
- }
381
- },
382
368
  "badges": {
383
369
  "status": {
384
370
  "success": {
@@ -605,6 +591,90 @@
605
591
  "$value": "base.palette.interactive"
606
592
  }
607
593
  },
594
+ "chat": {
595
+ "messageBubble": {
596
+ "sender": {
597
+ "header": {
598
+ "background-color": {
599
+ "$type": "inherited",
600
+ "$value": "base.colors.black"
601
+ },
602
+ "foreground-color": {
603
+ "$type": "inherited",
604
+ "$value": "base.colors.white"
605
+ }
606
+ },
607
+ "content": {
608
+ "background-color": {
609
+ "$type": "inherited",
610
+ "$value": "base.colors.blue.medium"
611
+ },
612
+ "foreground-color": {
613
+ "$type": "inherited",
614
+ "$value": "base.colors.white"
615
+ }
616
+ }
617
+ },
618
+ "receiver": {
619
+ "header": {
620
+ "background-color": {
621
+ "$type": "inherited",
622
+ "$value": "base.colors.orange.medium"
623
+ },
624
+ "foreground-color": {
625
+ "$type": "inherited",
626
+ "$value": "base.colors.white"
627
+ }
628
+ },
629
+ "content": {
630
+ "background-color": {
631
+ "$type": "inherited",
632
+ "$value": "base.colors.slate.extra-light"
633
+ },
634
+ "foreground-color": {
635
+ "$type": "inherited",
636
+ "$value": "base.colors.black"
637
+ }
638
+ }
639
+ },
640
+ "other": {
641
+ "header": {
642
+ "background-color": {
643
+ "$type": "inherited",
644
+ "$value": "base.colors.orange.medium"
645
+ },
646
+ "foreground-color": {
647
+ "$type": "inherited",
648
+ "$value": "base.colors.white"
649
+ }
650
+ },
651
+ "content": {
652
+ "background-color": {
653
+ "$type": "inherited",
654
+ "$value": "base.colors.slate.dark"
655
+ },
656
+ "foreground-color": {
657
+ "$type": "inherited",
658
+ "$value": "base.colors.white"
659
+ }
660
+ }
661
+ }
662
+ },
663
+ "transcript": {
664
+ "message": {
665
+ "icon-foreground-color": {
666
+ "$type": "inherited",
667
+ "$value": "base.colors.blue.extra-dark"
668
+ }
669
+ }
670
+ }
671
+ },
672
+ "checkbox": {
673
+ "border-radius": {
674
+ "$type": "inherited",
675
+ "$value": "components.form-control.border-radius"
676
+ }
677
+ },
608
678
  "form-control": {
609
679
  "foreground-color": {
610
680
  "$type": "inherited",
@@ -719,6 +789,50 @@
719
789
  "$value": "components.form-control.border-radius"
720
790
  }
721
791
  },
792
+ "interaction-timer": {
793
+ "notification-indicator": {
794
+ "$type": "inherited",
795
+ "$value": "base.colors.red.light"
796
+ },
797
+ "sla": {
798
+ "goal": {
799
+ "progress": {
800
+ "primary-color": {
801
+ "$type": "inherited",
802
+ "$value": "base.colors.green.medium"
803
+ },
804
+ "secondary-color": {
805
+ "$type": "inherited",
806
+ "$value": "base.colors.green.extra-dark"
807
+ }
808
+ }
809
+ },
810
+ "deadline": {
811
+ "progress": {
812
+ "primary-color": {
813
+ "$type": "inherited",
814
+ "$value": "base.colors.orange.medium"
815
+ },
816
+ "secondary-color": {
817
+ "$type": "inherited",
818
+ "$value": "base.colors.orange.extra-dark"
819
+ }
820
+ }
821
+ },
822
+ "past-deadline": {
823
+ "progress": {
824
+ "primary-color": {
825
+ "$type": "inherited",
826
+ "$value": "base.colors.red.medium"
827
+ },
828
+ "secondary-color": {
829
+ "$type": "inherited",
830
+ "$value": "base.colors.red.extra-dark"
831
+ }
832
+ }
833
+ }
834
+ }
835
+ },
722
836
  "label": {
723
837
  "color": {
724
838
  "$type": "inherited",
@@ -733,32 +847,16 @@
733
847
  "$value": "base.font-weight.semi-bold"
734
848
  }
735
849
  },
736
- "progress": {
737
- "progress-color": {
850
+ "link": {
851
+ "color": {
738
852
  "$type": "inherited",
739
- "$value": "base.palette.brand-primary"
853
+ "$value": "base.palette.interactive"
740
854
  }
741
855
  },
742
- "select": {
743
- "height": {
744
- "$type": "literal",
745
- "$value": "2rem"
746
- },
747
- "padding": {
748
- "$type": "inherited",
749
- "$value": "components.form-control.padding"
750
- },
751
- "border-color": {
752
- "$type": "inherited",
753
- "$value": "components.form-control.border-color"
754
- },
755
- "border-width": {
756
- "$type": "inherited",
757
- "$value": "components.form-control.border-width"
758
- },
759
- "border-radius": {
856
+ "progress": {
857
+ "progress-color": {
760
858
  "$type": "inherited",
761
- "$value": "components.form-control.border-radius"
859
+ "$value": "base.palette.brand-primary"
762
860
  }
763
861
  },
764
862
  "radio-check": {
@@ -807,12 +905,6 @@
807
905
  }
808
906
  }
809
907
  },
810
- "checkbox": {
811
- "border-radius": {
812
- "$type": "inherited",
813
- "$value": "components.form-control.border-radius"
814
- }
815
- },
816
908
  "radio-button": {
817
909
  "border-radius": {
818
910
  "$type": "literal",
@@ -831,6 +923,28 @@
831
923
  "$value": 9999
832
924
  }
833
925
  },
926
+ "select": {
927
+ "height": {
928
+ "$type": "literal",
929
+ "$value": "2rem"
930
+ },
931
+ "padding": {
932
+ "$type": "inherited",
933
+ "$value": "components.form-control.padding"
934
+ },
935
+ "border-color": {
936
+ "$type": "inherited",
937
+ "$value": "components.form-control.border-color"
938
+ },
939
+ "border-width": {
940
+ "$type": "inherited",
941
+ "$value": "components.form-control.border-width"
942
+ },
943
+ "border-radius": {
944
+ "$type": "inherited",
945
+ "$value": "components.form-control.border-radius"
946
+ }
947
+ },
834
948
  "sentiment": {
835
949
  "positive": {
836
950
  "color": {
@@ -851,6 +965,36 @@
851
965
  }
852
966
  }
853
967
  },
968
+ "switch": {
969
+ "height": {
970
+ "$type": "literal",
971
+ "$value": "1.5rem"
972
+ },
973
+ "width": {
974
+ "$type": "literal",
975
+ "$value": "3rem"
976
+ },
977
+ "touch-height": {
978
+ "$type": "literal",
979
+ "$value": "2rem"
980
+ },
981
+ "touch-width": {
982
+ "$type": "literal",
983
+ "$value": "4rem"
984
+ },
985
+ "off": {
986
+ "color": {
987
+ "$type": "inherited",
988
+ "$value": "base.colors.gray.medium"
989
+ }
990
+ },
991
+ "on": {
992
+ "color": {
993
+ "$type": "inherited",
994
+ "$value": "base.palette.interactive"
995
+ }
996
+ }
997
+ },
854
998
  "table": {
855
999
  "header": {
856
1000
  "font-size": { "$type": "literal", "$value": "s" },
@@ -883,174 +1027,20 @@
883
1027
  "vertical-outer": { "$type": "literal", "$value": true }
884
1028
  }
885
1029
  },
886
- "text": {
887
- "primary": {
888
- "font-size": { "$type": "literal", "$value": "s" },
889
- "font-weight": { "$type": "inherited", "$value": "base.font-weight.normal" }
890
- },
891
- "secondary": {
892
- "font-size": { "$type": "literal", "$value": "xs" },
893
- "font-weight": { "$type": "inherited", "$value": "base.font-weight.normal" }
894
- },
895
- "h1": {
896
- "font-size": { "$type": "literal", "$value": "xl" },
897
- "font-weight": { "$type": "inherited", "$value": "base.font-weight.semi-bold" }
898
- },
899
- "h2": {
900
- "font-size": { "$type": "literal", "$value": "l" },
901
- "font-weight": { "$type": "inherited", "$value": "base.font-weight.semi-bold" }
902
- },
903
- "h3": {
904
- "font-size": { "$type": "literal", "$value": "m" },
905
- "font-weight": { "$type": "inherited", "$value": "base.font-weight.semi-bold" }
906
- },
907
- "h4": {
908
- "font-size": { "$type": "literal", "$value": "s" },
909
- "font-weight": { "$type": "inherited", "$value": "base.font-weight.semi-bold" }
910
- },
911
- "h5": {
912
- "font-size": { "$type": "literal", "$value": "xs" },
913
- "font-weight": { "$type": "inherited", "$value": "base.font-weight.semi-bold" }
914
- },
915
- "h6": {
916
- "font-size": { "$type": "literal", "$value": "xxs" },
917
- "font-weight": { "$type": "inherited", "$value": "base.font-weight.semi-bold" }
918
- }
919
- },
920
- "text-area": {
921
- "min-height": {
922
- "$type": "literal",
923
- "$value": "3.75rem"
924
- },
925
- "padding": {
926
- "$type": "inherited",
927
- "$value": "components.form-control.padding"
928
- }
929
- },
930
- "link": {
931
- "color": {
932
- "$type": "inherited",
933
- "$value": "base.palette.interactive"
934
- }
935
- },
936
- "chat": {
937
- "messageBubble": {
938
- "sender": {
939
- "header": {
940
- "background-color": {
941
- "$type": "inherited",
942
- "$value": "base.colors.black"
943
- },
944
- "foreground-color": {
945
- "$type": "inherited",
946
- "$value": "base.colors.white"
947
- }
948
- },
949
- "content": {
950
- "background-color": {
951
- "$type": "inherited",
952
- "$value": "base.colors.blue.medium"
953
- },
954
- "foreground-color": {
955
- "$type": "inherited",
956
- "$value": "base.colors.white"
957
- }
958
- }
959
- },
960
- "receiver": {
961
- "header": {
962
- "background-color": {
963
- "$type": "inherited",
964
- "$value": "base.colors.orange.medium"
965
- },
966
- "foreground-color": {
967
- "$type": "inherited",
968
- "$value": "base.colors.white"
969
- }
970
- },
971
- "content": {
972
- "background-color": {
973
- "$type": "inherited",
974
- "$value": "base.colors.slate.extra-light"
975
- },
976
- "foreground-color": {
977
- "$type": "inherited",
978
- "$value": "base.colors.black"
979
- }
980
- }
981
- },
982
- "other": {
983
- "header": {
984
- "background-color": {
985
- "$type": "inherited",
986
- "$value": "base.colors.orange.medium"
987
- },
988
- "foreground-color": {
989
- "$type": "inherited",
990
- "$value": "base.colors.white"
991
- }
992
- },
993
- "content": {
994
- "background-color": {
995
- "$type": "inherited",
996
- "$value": "base.colors.slate.dark"
997
- },
998
- "foreground-color": {
999
- "$type": "inherited",
1000
- "$value": "base.colors.white"
1001
- }
1002
- }
1003
- }
1004
- },
1005
- "transcript": {
1006
- "message": {
1007
- "icon-foreground-color": {
1008
- "$type": "inherited",
1009
- "$value": "base.colors.blue.extra-dark"
1010
- }
1011
- }
1012
- }
1013
- },
1014
- "switch": {
1015
- "height": {
1016
- "$type": "literal",
1017
- "$value": "1.5rem"
1018
- },
1019
- "width": {
1020
- "$type": "literal",
1021
- "$value": "3rem"
1022
- },
1023
- "touch-height": {
1024
- "$type": "literal",
1025
- "$value": "2rem"
1026
- },
1027
- "touch-width": {
1028
- "$type": "literal",
1029
- "$value": "4rem"
1030
- },
1031
- "off": {
1032
- "color": {
1030
+ "tabs": {
1031
+ "base": {
1032
+ "foreground": {
1033
1033
  "$type": "inherited",
1034
- "$value": "base.colors.gray.medium"
1034
+ "$value": "base.palette.interactive"
1035
1035
  }
1036
1036
  },
1037
- "on": {
1038
- "color": {
1037
+ "inverted": {
1038
+ "foreground": {
1039
1039
  "$type": "inherited",
1040
- "$value": "base.palette.interactive"
1040
+ "$value": "base.palette.primary-background"
1041
1041
  }
1042
1042
  }
1043
1043
  },
1044
- "tooltip": {
1045
- "foreground-color": {
1046
- "$type": "inherited",
1047
- "$value": "base.colors.gray.extra-light"
1048
- },
1049
- "background-color": {
1050
- "$type": "inherited",
1051
- "$value": "base.colors.gray.extra-dark"
1052
- }
1053
- },
1054
1044
  "task-manager": {
1055
1045
  "task-icon": {
1056
1046
  "banner": {
@@ -1135,48 +1125,58 @@
1135
1125
  }
1136
1126
  }
1137
1127
  },
1138
- "interaction-timer": {
1139
- "notification-indicator": {
1128
+ "text": {
1129
+ "primary": {
1130
+ "font-size": { "$type": "literal", "$value": "s" },
1131
+ "font-weight": { "$type": "inherited", "$value": "base.font-weight.normal" }
1132
+ },
1133
+ "secondary": {
1134
+ "font-size": { "$type": "literal", "$value": "xs" },
1135
+ "font-weight": { "$type": "inherited", "$value": "base.font-weight.normal" }
1136
+ },
1137
+ "h1": {
1138
+ "font-size": { "$type": "literal", "$value": "xl" },
1139
+ "font-weight": { "$type": "inherited", "$value": "base.font-weight.semi-bold" }
1140
+ },
1141
+ "h2": {
1142
+ "font-size": { "$type": "literal", "$value": "l" },
1143
+ "font-weight": { "$type": "inherited", "$value": "base.font-weight.semi-bold" }
1144
+ },
1145
+ "h3": {
1146
+ "font-size": { "$type": "literal", "$value": "m" },
1147
+ "font-weight": { "$type": "inherited", "$value": "base.font-weight.semi-bold" }
1148
+ },
1149
+ "h4": {
1150
+ "font-size": { "$type": "literal", "$value": "s" },
1151
+ "font-weight": { "$type": "inherited", "$value": "base.font-weight.semi-bold" }
1152
+ },
1153
+ "h5": {
1154
+ "font-size": { "$type": "literal", "$value": "xs" },
1155
+ "font-weight": { "$type": "inherited", "$value": "base.font-weight.semi-bold" }
1156
+ },
1157
+ "h6": {
1158
+ "font-size": { "$type": "literal", "$value": "xxs" },
1159
+ "font-weight": { "$type": "inherited", "$value": "base.font-weight.semi-bold" }
1160
+ }
1161
+ },
1162
+ "text-area": {
1163
+ "min-height": {
1164
+ "$type": "literal",
1165
+ "$value": "3.75rem"
1166
+ },
1167
+ "padding": {
1140
1168
  "$type": "inherited",
1141
- "$value": "base.colors.red.light"
1169
+ "$value": "components.form-control.padding"
1170
+ }
1171
+ },
1172
+ "tooltip": {
1173
+ "foreground-color": {
1174
+ "$type": "inherited",
1175
+ "$value": "base.colors.gray.extra-light"
1142
1176
  },
1143
- "sla": {
1144
- "goal": {
1145
- "progress": {
1146
- "primary-color": {
1147
- "$type": "inherited",
1148
- "$value": "base.colors.green.medium"
1149
- },
1150
- "secondary-color": {
1151
- "$type": "inherited",
1152
- "$value": "base.colors.green.extra-dark"
1153
- }
1154
- }
1155
- },
1156
- "deadline": {
1157
- "progress": {
1158
- "primary-color": {
1159
- "$type": "inherited",
1160
- "$value": "base.colors.orange.medium"
1161
- },
1162
- "secondary-color": {
1163
- "$type": "inherited",
1164
- "$value": "base.colors.orange.extra-dark"
1165
- }
1166
- }
1167
- },
1168
- "past-deadline": {
1169
- "progress": {
1170
- "primary-color": {
1171
- "$type": "inherited",
1172
- "$value": "base.colors.red.medium"
1173
- },
1174
- "secondary-color": {
1175
- "$type": "inherited",
1176
- "$value": "base.colors.red.extra-dark"
1177
- }
1178
- }
1179
- }
1177
+ "background-color": {
1178
+ "$type": "inherited",
1179
+ "$value": "base.colors.gray.extra-dark"
1180
1180
  }
1181
1181
  }
1182
1182
  }
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/D,eAAO,MAAM,iBAAiB,SAAgC,CAAC;AAC/D,eAAO,MAAM,oBAAoB,SAAmC,CAAC;AACrE,eAAO,MAAM,mBAAmB,SAAkC,CAAC;AAEnE,gFAAgF;AAChF,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACxD,IAAI,EAAE,GAAG,EACT,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,MAAM,GACf,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAUlC;AAED,qCAAqC;AACrC,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,WAAW,EAC7D,GAAG,EAAE,CAAC,EACN,IAAI,EAAE,CAAC,GACN,GAAG,IAAI,CAAC,GAAG;KAAG,GAAG,IAAI,CAAC,GAAG,OAAO;CAAE,CAEpC;AAGD,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI,CAIrF;AAGD,wBAAgB,GAAG,CAAC,CAAC,E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AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,kBAAmB,UAAU,WAAW,CAAC,kBAWlE,CAAC;AAEF;;;;GAIG;AACH,wBAAiB,MAAM,CAAC,CAAC,EACvB,KAAK,EAAE,CAAC,EAAE,GACT,SAAS,CAAC;IAAE,IAAI,CAAC,EAAE,CAAC,CAAC;IAAC,OAAO,EAAE,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,CAAC,CAAA;CAAE,EAAE,SAAS,EAAE,OAAO,CAAC,CAKnE;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,MAAO,MAAM,KAAG,MAA0D,CAAC;AAEpG;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,MAC3B,MAAM,SACH,UAAU,GAAG,OAAO,GAAG,UAAU,UAChC,MAAM,KACZ,MAWF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,SAC7B,MAAM,EAAE,KACX,oBAAoB,eAAe,CAAC,UAC/B,MAAM;;;YAiBf,CAAC"}
@@ -191,7 +191,9 @@ export const getFocusables = (focusablesRef) => {
191
191
  if (!focusablesRef.current)
192
192
  return [];
193
193
  const selector = 'a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';
194
- return [...focusablesRef.current.querySelectorAll(selector)].filter(el => el instanceof HTMLElement && !el.hasAttribute('disabled'));
194
+ return [...focusablesRef.current.querySelectorAll(selector)].filter(el => el instanceof HTMLElement &&
195
+ !el.hasAttribute('disabled') &&
196
+ el.getAttribute('tabindex') !== '-1');
195
197
  };
196
198
  /**
197
199
  * Generator that returns triple of subsequent values in the given array.
@@ -237,7 +239,7 @@ export const createStringMatcher = (s, type = 'contains', flags = 'i') => {
237
239
  * @returns
238
240
  */
239
241
  export const formatListToLocaleString = (list, t, locale, { count = list.length, separator } = {}) => {
240
- const remainder = count - list.length;
242
+ const remainder = list.length ? count - list.length : 0;
241
243
  const toFormat = remainder > 0 ? [...list, t('more_count', [remainder], { count: remainder })] : list;
242
244
  if (separator || !('ListFormat' in Intl))
243
245
  return toFormat.join(separator ?? ', ');