ods-component-lib 1.13.1 → 1.13.2

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