ods-component-lib 1.13.1 → 1.13.3

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.
@@ -717,9 +717,243 @@ var OdsNotification = function OdsNotification(props) {
717
717
  var _templateObject$b;
718
718
  var StyledRadio = styled(Radio)(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n //\n"])));
719
719
 
720
+ var darkTheme = {
721
+ token: {
722
+ blue1: "#111a2c",
723
+ blue2: "#112545",
724
+ blue3: "#15325b",
725
+ blue4: "#15417e",
726
+ blue5: "#1554ad",
727
+ blue6: "#1668dc",
728
+ blue7: "#3c89e8",
729
+ blue8: "#65a9f3",
730
+ blue9: "#8dc5f8",
731
+ blue10: "#b7dcfa",
732
+ purple1: "#1a1325",
733
+ purple2: "#24163a",
734
+ purple3: "#301c4d",
735
+ purple4: "#3e2069",
736
+ purple5: "#51258f",
737
+ purple6: "#642ab5",
738
+ purple7: "#854eca",
739
+ purple8: "#ab7ae0",
740
+ purple9: "#cda8f0",
741
+ purple10: "#ebd7fa",
742
+ cyan1: "#112123",
743
+ cyan2: "#113536",
744
+ cyan3: "#144848",
745
+ cyan4: "#146262",
746
+ cyan5: "#138585",
747
+ cyan6: "#13a8a8",
748
+ cyan7: "#33bcb7",
749
+ cyan8: "#58d1c9",
750
+ cyan9: "#84e2d8",
751
+ cyan10: "#b2f1e8",
752
+ green1: "#162312",
753
+ green2: "#1d3712",
754
+ green3: "#274916",
755
+ green4: "#306317",
756
+ green5: "#3c8618",
757
+ green6: "#49aa19",
758
+ green7: "#6abe39",
759
+ green8: "#8fd460",
760
+ green9: "#b2e58b",
761
+ green10: "#d5f2bb",
762
+ magenta1: "#291321",
763
+ magenta2: "#40162f",
764
+ magenta3: "#551c3b",
765
+ magenta4: "#75204f",
766
+ magenta5: "#a02669",
767
+ magenta6: "#cb2b83",
768
+ magenta7: "#e0529c",
769
+ magenta8: "#f37fb7",
770
+ magenta9: "#f8a8cc",
771
+ magenta10: "#fad2e3",
772
+ red1: "#2a1215",
773
+ red2: "#431418",
774
+ red3: "#58181c",
775
+ red4: "#791a1f",
776
+ red5: "#a61d24",
777
+ red6: "#d32029",
778
+ red7: "#e84749",
779
+ red8: "#f37370",
780
+ red9: "#f89f9a",
781
+ red10: "#fac8c3",
782
+ orange1: "#2b1d11",
783
+ orange2: "#442a11",
784
+ orange3: "#593815",
785
+ orange4: "#7c4a15",
786
+ orange5: "#aa6215",
787
+ orange6: "#d87a16",
788
+ orange7: "#e89a3c",
789
+ orange8: "#f3b765",
790
+ orange9: "#f8cf8d",
791
+ orange10: "#fae3b7",
792
+ yellow1: "#2b2611",
793
+ yellow2: "#443b11",
794
+ yellow3: "#595014",
795
+ yellow4: "#7c6e14",
796
+ yellow5: "#aa9514",
797
+ yellow6: "#d8bd14",
798
+ yellow7: "#e8d639",
799
+ yellow8: "#f3ea62",
800
+ yellow9: "#f8f48b",
801
+ yellow10: "#fafab5",
802
+ volcano1: "#2b1611",
803
+ volcano2: "#441d12",
804
+ volcano3: "#592716",
805
+ volcano4: "#7c3118",
806
+ volcano5: "#aa3e19",
807
+ volcano6: "#d84a1b",
808
+ volcano7: "#e87040",
809
+ volcano8: "#f3956a",
810
+ volcano9: "#f8b692",
811
+ volcano10: "#fad4bc",
812
+ geekblue1: "#131629",
813
+ geekblue2: "#161d40",
814
+ geekblue3: "#1c2755",
815
+ geekblue4: "#203175",
816
+ geekblue5: "#263ea0",
817
+ geekblue6: "#2b4acb",
818
+ geekblue7: "#5273e0",
819
+ geekblue8: "#7f9ef3",
820
+ geekblue9: "#a8c1f8",
821
+ geekblue10: "#d2e0fa",
822
+ lime1: "#1f2611",
823
+ lime2: "#2e3c10",
824
+ lime3: "#3e4f13",
825
+ lime4: "#536d13",
826
+ lime5: "#6f9412",
827
+ lime6: "#8bbb11",
828
+ lime7: "#a9d134",
829
+ lime8: "#c9e75d",
830
+ lime9: "#e4f88b",
831
+ lime10: "#f0fab5",
832
+ gold1: "#2b2111",
833
+ gold2: "#443111",
834
+ gold3: "#594214",
835
+ gold4: "#7c5914",
836
+ gold5: "#aa7714",
837
+ gold6: "#d89614",
838
+ gold7: "#e8b339",
839
+ gold8: "#f3cc62",
840
+ gold9: "#f8df8b",
841
+ gold10: "#faedb5",
842
+ colorTextBase: "#ffffff",
843
+ colorBgBase: "#000",
844
+ colorTextLightSolid: "#ffffff",
845
+ colorError: "#e84749",
846
+ colorWarning: "#d89614",
847
+ colorSuccess: "#49aa19",
848
+ colorInfo: "#1668dc",
849
+ colorText: "rgba(255, 255, 255, 0.85)",
850
+ colorTextSecondary: "rgba(255, 255, 255, 0.65)",
851
+ colorTextTertiary: "rgba(255, 255, 255, 0.45)",
852
+ colorTextQuaternary: "rgba(255, 255, 255, 0.25)",
853
+ colorFill: "rgba(255, 255, 255, 0.18)",
854
+ colorFillSecondary: "rgba(255, 255, 255, 0.12)",
855
+ colorFillTertiary: "rgba(255, 255, 255, 0.08)",
856
+ colorBgContainer: "#141414",
857
+ colorFillQuaternary: "rgba(255, 255, 255, 0.04)",
858
+ colorBgLayout: "#000",
859
+ colorBgElevated: "#1F1F1F",
860
+ colorBgSpotlight: "#424242",
861
+ colorBorder: "#424242",
862
+ colorBorderSecondary: "#303030",
863
+ colorSplit: "rgba(255, 255, 255, 0.06)",
864
+ colorPrimary: "red",
865
+ colorPrimaryBg: "red",
866
+ colorPrimaryBgHover: "#112545",
867
+ colorPrimaryBorder: "#15325b",
868
+ colorPrimaryBorderHover: "#15417e",
869
+ colorPrimaryHover: "#3c89e8",
870
+ colorPrimaryBase: "#1668dc",
871
+ colorPrimaryActive: "#1554ad",
872
+ colorPrimaryTextHover: "#65a9f3",
873
+ colorPrimaryText: "#8dc5f8",
874
+ colorPrimaryTextActive: "#b7dcfa",
875
+ colorSuccessBg: "#162312",
876
+ colorSuccessBgHover: "#1d3712",
877
+ colorSuccessBorder: "#274916",
878
+ colorSuccessBorderHover: "#306317",
879
+ colorSuccessHover: "#6abe39",
880
+ colorSuccessBase: "#49aa19",
881
+ colorSuccessActive: "#3c8618",
882
+ colorSuccessTextHover: "#8fd460",
883
+ colorSuccessText: "#b2e58b",
884
+ colorSuccessTextActive: "#d5f2bb",
885
+ colorWarningBg: "#2b2111",
886
+ colorWarningBgHover: "#443111",
887
+ colorWarningBorder: "#594214",
888
+ colorWarningBorderHover: "#7c5914",
889
+ colorWarningHover: "#e8b339",
890
+ colorWarningBase: "#d89614",
891
+ colorWarningActive: "#aa7714",
892
+ colorWarningTextHover: "#f3cc62",
893
+ colorWarningText: "#f8df8b",
894
+ colorWarningTextActive: "#faedb5",
895
+ colorErrorBg: "#2a1215",
896
+ colorErrorBgHover: "#431418",
897
+ colorErrorBorder: "#58181c",
898
+ colorErrorBorderHover: "#791a1f",
899
+ colorErrorHover: "#f37370",
900
+ colorErrorBase: "#e84749",
901
+ colorErrorActive: "#791a1f",
902
+ colorErrorTextHover: "#f37370",
903
+ colorErrorText: "#f89f9a",
904
+ colorErrorTextActive: "#fac8c3",
905
+ colorInfoBg: "#111a2c",
906
+ colorInfoBgHover: "#112545",
907
+ colorInfoBorder: "#15325b",
908
+ colorInfoBorderHover: "#15417e",
909
+ colorInfoHover: "#3c89e8",
910
+ colorInfoBase: "#1668dc",
911
+ colorInfoActive: "#1554ad",
912
+ colorInfoTextHover: "#65a9f3",
913
+ colorInfoText: "#8dc5f8",
914
+ colorInfoTextActive: "#b7dcfa",
915
+ colorBgMask: "rgba(0, 0, 0, 0.45)",
916
+ colorFillContent: "rgba(255, 255, 255, 0.12)",
917
+ colorFillContentHover: "rgba(255, 255, 255, 0.18)",
918
+ colorFillAlter: "rgba(255, 255, 255, 0.04)",
919
+ colorBgContainerDisabled: "rgba(255, 255, 255, 0.08)",
920
+ colorBorderBg: "#141414",
921
+ colorTextPlaceholder: "rgba(255, 255, 255, 0.25)",
922
+ colorTextDisabled: "rgba(255, 255, 255, 0.25)",
923
+ colorTextHeading: "rgba(255, 255, 255, 0.85)",
924
+ colorTextLabel: "rgba(255, 255, 255, 0.65)",
925
+ colorTextDescription: "rgba(255, 255, 255, 0.45)",
926
+ colorBgTextHover: "rgba(255, 255, 255, 0.12)",
927
+ colorBgTextActive: "rgba(255, 255, 255, 0.18)",
928
+ colorIcon: "rgba(255, 255, 255, 0.45)",
929
+ colorIconHover: "rgba(255, 255, 255, 0.85)",
930
+ colorLink: "#1668dc",
931
+ colorLinkHover: "#3c89e8",
932
+ colorLinkActive: "#1554ad",
933
+ colorHighlight: "#f37370",
934
+ controlOutline: "#111a2c",
935
+ colorWarningOutline: "#2b2111",
936
+ colorErrorOutline: "#2a1215",
937
+ controlItemBgHover: "rgba(255, 255, 255, 0.08)",
938
+ controlItemBgActive: "#111a2c",
939
+ controlItemBgActiveHover: "#112545",
940
+ controlItemBgActiveDisabled: "rgba(255, 255, 255, 0.18)",
941
+ controlTmpOutline: "rgba(255, 255, 255, 0.04)",
942
+ colorItemText: "rgba(255, 255, 255, 0.65)",
943
+ colorItemTextDisabled: "rgba(255, 255, 255, 0.25)",
944
+ tooltipBg: "#424242",
945
+ segmentedBgColorSelected: "#1f1f1f",
946
+ segmentedGroupBg: "#000000"
947
+ }
948
+ };
949
+
720
950
  function OdsRadio(props) {
951
+ var providerThemeName = lightTheme;
952
+ if (props.theme) {
953
+ providerThemeName = props.theme === "dark" ? darkTheme : lightTheme;
954
+ }
721
955
  return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
722
- theme: lightTheme
956
+ theme: providerThemeName
723
957
  }, React.createElement(StyledRadio, Object.assign({}, props), props.children)));
724
958
  }
725
959
 
@@ -961,10 +1195,14 @@ function grid(props) {
961
1195
  className: "dx-datagrid-headers"
962
1196
  }, colProperties.column.caption);
963
1197
  };
964
- return React.createElement(React.Fragment, null, React.createElement(DataGrid, {
1198
+ return React.createElement(React.Fragment, null, React.createElement("div", {
1199
+ style: {
1200
+ width: '100%'
1201
+ }
1202
+ }, React.createElement(DataGrid, {
965
1203
  dataSource: props.dataSource,
966
1204
  keyExpr: props.keyExpr,
967
- allowColumnResizing: props.allowColumnResizing !== undefined ? props.allowColumnResizing : false,
1205
+ allowColumnResizing: true,
968
1206
  columnResizingMode: "widget",
969
1207
  onRowInserted: props.onRowInserted,
970
1208
  onRowUpdated: props.onRowUpdated,
@@ -973,7 +1211,7 @@ function grid(props) {
973
1211
  allowColumnReordering: true,
974
1212
  showRowLines: true,
975
1213
  showBorders: true,
976
- columnAutoWidth: true,
1214
+ columnAutoWidth: false,
977
1215
  onEditCanceling: props.onEditCanceling
978
1216
  }, React.createElement(Paging, {
979
1217
  enabled: true,
@@ -1088,7 +1326,7 @@ function grid(props) {
1088
1326
  name: "exportButton"
1089
1327
  }), React.createElement(Item$1, {
1090
1328
  menuItemRender: renderMenuItem
1091
- }))));
1329
+ })))));
1092
1330
  }
1093
1331
 
1094
1332
  var exportFormats$1 = ['xlsx', 'pdf'];