ods-component-lib 1.13.0 → 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.
package/dist/index.modern.js
CHANGED
|
@@ -37,13 +37,6 @@ function _taggedTemplateLiteralLoose(strings, raw) {
|
|
|
37
37
|
var _templateObject;
|
|
38
38
|
var StyledAutoComplete = styled(AutoComplete)(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
39
39
|
|
|
40
|
-
function OdsAutoComplete(props) {
|
|
41
|
-
return React.createElement(React.Fragment, null, React.createElement(StyledAutoComplete, Object.assign({}, props), props.children));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
var _templateObject$1;
|
|
45
|
-
var StyledButton = styled(Button)(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n box-shadow: none;\n"])));
|
|
46
|
-
|
|
47
40
|
var lightTheme = {
|
|
48
41
|
token: {
|
|
49
42
|
blue1: "#e6f4ff",
|
|
@@ -326,31 +319,31 @@ var lightTheme = {
|
|
|
326
319
|
marginXl: "48px",
|
|
327
320
|
controlPaddingHorizontal: "12px",
|
|
328
321
|
controlPaddingHorizontalSm: "8px",
|
|
329
|
-
baseBaseNormal: "400 14px/22px '
|
|
330
|
-
baseBaseStrong: "600 14px/22px '
|
|
331
|
-
baseBaseUnderline: "400 14px/22px '
|
|
332
|
-
baseBaseDelete: "400 14px/22px '
|
|
333
|
-
baseBaseItalic: "Regular Italic 14px/22px '
|
|
334
|
-
smSmNormal: "400 12px/20px '
|
|
335
|
-
smSmStrong: "600 12px/20px '
|
|
336
|
-
smSmUnderline: "400 12px/20px '
|
|
337
|
-
smSmDelete: "400 12px/20px '
|
|
338
|
-
smSmItalic: "Regular Italic 12px/20px '
|
|
339
|
-
lgLgNormal: "400 16px/24px '
|
|
340
|
-
lgLgStrong: "600 16px/24px '
|
|
341
|
-
lgLgUnderline: "400 16px/24px '
|
|
342
|
-
lgLgDelete: "400 16px/24px '
|
|
343
|
-
lgLgItalic: "Regular Italic 16px/24px '
|
|
344
|
-
xlXlNormal: "400 20px/28px '
|
|
345
|
-
xlXlStrong: "600 20px/28px '
|
|
346
|
-
xlXlUnderline: "400 20px/28px '
|
|
347
|
-
xlXlDelete: "400 20px/28px '
|
|
348
|
-
xlXlItalic: "Regular Italic 20px/28px '
|
|
349
|
-
headingHeading1: "600 38px/46px '
|
|
350
|
-
headingHeading2: "600 30px/38px '
|
|
351
|
-
headingHeading3: "600 24px/32px '
|
|
352
|
-
headingHeading4: "600 20px/28px '
|
|
353
|
-
headingHeading5: "600 16px/24px '
|
|
322
|
+
baseBaseNormal: "400 14px/22px 'Manrope'",
|
|
323
|
+
baseBaseStrong: "600 14px/22px 'Manrope'",
|
|
324
|
+
baseBaseUnderline: "400 14px/22px 'Manrope'",
|
|
325
|
+
baseBaseDelete: "400 14px/22px 'Manrope'",
|
|
326
|
+
baseBaseItalic: "Regular Italic 14px/22px 'Manrope'",
|
|
327
|
+
smSmNormal: "400 12px/20px 'Manrope'",
|
|
328
|
+
smSmStrong: "600 12px/20px 'Manrope'",
|
|
329
|
+
smSmUnderline: "400 12px/20px 'Manrope'",
|
|
330
|
+
smSmDelete: "400 12px/20px 'Manrope'",
|
|
331
|
+
smSmItalic: "Regular Italic 12px/20px 'Manrope'",
|
|
332
|
+
lgLgNormal: "400 16px/24px 'Manrope'",
|
|
333
|
+
lgLgStrong: "600 16px/24px 'Manrope'",
|
|
334
|
+
lgLgUnderline: "400 16px/24px 'Manrope'",
|
|
335
|
+
lgLgDelete: "400 16px/24px 'Manrope'",
|
|
336
|
+
lgLgItalic: "Regular Italic 16px/24px 'Manrope'",
|
|
337
|
+
xlXlNormal: "400 20px/28px 'Manrope'",
|
|
338
|
+
xlXlStrong: "600 20px/28px 'Manrope'",
|
|
339
|
+
xlXlUnderline: "400 20px/28px 'Manrope'",
|
|
340
|
+
xlXlDelete: "400 20px/28px 'Manrope'",
|
|
341
|
+
xlXlItalic: "Regular Italic 20px/28px 'Manrope'",
|
|
342
|
+
headingHeading1: "600 38px/46px 'Manrope'",
|
|
343
|
+
headingHeading2: "600 30px/38px 'Manrope'",
|
|
344
|
+
headingHeading3: "600 24px/32px 'Manrope'",
|
|
345
|
+
headingHeading4: "600 20px/28px 'Manrope'",
|
|
346
|
+
headingHeading5: "600 16px/24px 'Manrope'",
|
|
354
347
|
fontWeightItalic: "Regular Italic",
|
|
355
348
|
paddingContentHorizontalLg: "24px",
|
|
356
349
|
paddingContentVerticalLg: "16px",
|
|
@@ -376,6 +369,15 @@ var lightTheme = {
|
|
|
376
369
|
}
|
|
377
370
|
};
|
|
378
371
|
|
|
372
|
+
function OdsAutoComplete(props) {
|
|
373
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
374
|
+
theme: lightTheme
|
|
375
|
+
}, React.createElement(StyledAutoComplete, Object.assign({}, props), props.children)));
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
var _templateObject$1;
|
|
379
|
+
var StyledButton = styled(Button)(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n box-shadow: none;\n"])));
|
|
380
|
+
|
|
379
381
|
function OdsButton(props) {
|
|
380
382
|
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
381
383
|
theme: lightTheme
|
|
@@ -396,19 +398,23 @@ var items = [{
|
|
|
396
398
|
label: '3rd item'
|
|
397
399
|
}];
|
|
398
400
|
function OdsDropdownButton(props) {
|
|
399
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
401
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
402
|
+
theme: lightTheme
|
|
403
|
+
}, React.createElement(Dropdown.Button, {
|
|
400
404
|
menu: {
|
|
401
405
|
items: items,
|
|
402
406
|
onClick: onMenuClick
|
|
403
407
|
}
|
|
404
|
-
}, props.children));
|
|
408
|
+
}, props.children)));
|
|
405
409
|
}
|
|
406
410
|
|
|
407
411
|
var _templateObject$2;
|
|
408
412
|
var StyledCalendar = styled(Calendar)(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n width:100%;\n"])));
|
|
409
413
|
|
|
410
414
|
function OdsCalendar(props) {
|
|
411
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
415
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
416
|
+
theme: lightTheme
|
|
417
|
+
}, React.createElement(StyledCalendar, Object.assign({}, props))));
|
|
412
418
|
}
|
|
413
419
|
|
|
414
420
|
var _templateObject$3;
|
|
@@ -416,34 +422,42 @@ var StyledCard = styled(Card)(_templateObject$3 || (_templateObject$3 = _taggedT
|
|
|
416
422
|
|
|
417
423
|
var Meta = Card$1.Meta;
|
|
418
424
|
function OdsCard(props) {
|
|
419
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
425
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
426
|
+
theme: lightTheme
|
|
427
|
+
}, React.createElement(StyledCard, Object.assign({}, props)), props.isEnableMeta && React.createElement(Meta, {
|
|
420
428
|
title: props.metaTitle,
|
|
421
429
|
description: props.metaDescription
|
|
422
|
-
}));
|
|
430
|
+
})));
|
|
423
431
|
}
|
|
424
432
|
|
|
425
433
|
var _templateObject$4;
|
|
426
434
|
var StyledCheckbox = styled(Checkbox)(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n box-shadow: none;\n"])));
|
|
427
435
|
|
|
428
436
|
function OdsCheckbox(props) {
|
|
429
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
437
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
438
|
+
theme: lightTheme
|
|
439
|
+
}, React.createElement(StyledCheckbox, Object.assign({}, props))));
|
|
430
440
|
}
|
|
431
441
|
|
|
432
442
|
function OdsCheckboxGroup(props) {
|
|
433
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
443
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
444
|
+
theme: lightTheme
|
|
445
|
+
}, React.createElement(Checkbox.Group, {
|
|
434
446
|
options: props.options
|
|
435
|
-
}, props.children));
|
|
447
|
+
}, props.children)));
|
|
436
448
|
}
|
|
437
449
|
|
|
438
450
|
var _templateObject$5;
|
|
439
451
|
var StyledDatepicker = styled(DatePicker)(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n width:100%;\n"])));
|
|
440
452
|
|
|
441
453
|
function OdsDateRangePicker(props) {
|
|
442
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
454
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
455
|
+
theme: lightTheme
|
|
456
|
+
}, React.createElement(StyledDatepicker.RangePicker, Object.assign({}, props, {
|
|
443
457
|
style: {
|
|
444
458
|
width: '100%'
|
|
445
459
|
}
|
|
446
|
-
})));
|
|
460
|
+
}))));
|
|
447
461
|
}
|
|
448
462
|
|
|
449
463
|
var _templateObject$6;
|
|
@@ -464,16 +478,20 @@ function OdsCollapse(props) {
|
|
|
464
478
|
items: props.menuItems,
|
|
465
479
|
onClick: handleMenuClick
|
|
466
480
|
};
|
|
467
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
481
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
482
|
+
theme: lightTheme
|
|
483
|
+
}, React.createElement(StyledDropdown, {
|
|
468
484
|
menu: menuProps
|
|
469
|
-
}, props.children));
|
|
485
|
+
}, props.children)));
|
|
470
486
|
}
|
|
471
487
|
|
|
472
488
|
var _templateObject$8;
|
|
473
489
|
var StyledInput = styled(Input)(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
474
490
|
|
|
475
491
|
function OdsInput(props) {
|
|
476
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
492
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
493
|
+
theme: lightTheme
|
|
494
|
+
}, React.createElement(StyledInput, Object.assign({}, props), props === null || props === void 0 ? void 0 : props.children)));
|
|
477
495
|
}
|
|
478
496
|
|
|
479
497
|
var layout = {
|
|
@@ -555,11 +573,13 @@ function OdsImage(props) {
|
|
|
555
573
|
}
|
|
556
574
|
|
|
557
575
|
function OdsPassword(props) {
|
|
558
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
576
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
577
|
+
theme: lightTheme
|
|
578
|
+
}, React.createElement(StyledInput.Password, Object.assign({}, props, {
|
|
559
579
|
iconRender: function iconRender(visible) {
|
|
560
580
|
return visible ? React.createElement(EyeTwoTone, null) : React.createElement(EyeInvisibleOutlined, null);
|
|
561
581
|
}
|
|
562
|
-
})));
|
|
582
|
+
}))));
|
|
563
583
|
}
|
|
564
584
|
|
|
565
585
|
function OdsPhoneInput(props) {
|
|
@@ -575,18 +595,24 @@ function OdsPhoneInput(props) {
|
|
|
575
595
|
}
|
|
576
596
|
|
|
577
597
|
function OdsSearch(props) {
|
|
578
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
598
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
599
|
+
theme: lightTheme
|
|
600
|
+
}, React.createElement(StyledInput.Search, Object.assign({}, props), props === null || props === void 0 ? void 0 : props.children)));
|
|
579
601
|
}
|
|
580
602
|
|
|
581
603
|
function OdsTextArea(props) {
|
|
582
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
604
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
605
|
+
theme: lightTheme
|
|
606
|
+
}, React.createElement(StyledInput.TextArea, Object.assign({}, props), props === null || props === void 0 ? void 0 : props.children)));
|
|
583
607
|
}
|
|
584
608
|
|
|
585
609
|
var _templateObject$9;
|
|
586
610
|
var StyledInputNumber = styled(InputNumber)(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
587
611
|
|
|
588
612
|
function OdsInputNumber(props) {
|
|
589
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
613
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
614
|
+
theme: lightTheme
|
|
615
|
+
}, React.createElement(StyledInputNumber, Object.assign({}, props))));
|
|
590
616
|
}
|
|
591
617
|
|
|
592
618
|
var _templateObject$a;
|
|
@@ -691,8 +717,244 @@ var OdsNotification = function OdsNotification(props) {
|
|
|
691
717
|
var _templateObject$b;
|
|
692
718
|
var StyledRadio = styled(Radio)(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
693
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
|
+
|
|
694
950
|
function OdsRadio(props) {
|
|
695
|
-
|
|
951
|
+
var providerThemeName = lightTheme;
|
|
952
|
+
if (props.theme) {
|
|
953
|
+
providerThemeName = props.theme === "dark" ? darkTheme : lightTheme;
|
|
954
|
+
}
|
|
955
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
956
|
+
theme: providerThemeName
|
|
957
|
+
}, React.createElement(StyledRadio, Object.assign({}, props), props.children)));
|
|
696
958
|
}
|
|
697
959
|
|
|
698
960
|
function OdsRadioGroup(props) {
|
|
@@ -851,15 +1113,21 @@ function OdsLink(props) {
|
|
|
851
1113
|
}
|
|
852
1114
|
|
|
853
1115
|
function OdsParagraph(props) {
|
|
854
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
1116
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
1117
|
+
theme: lightTheme
|
|
1118
|
+
}, React.createElement(StyledtTypography.Paragraph, Object.assign({}, props), props)));
|
|
855
1119
|
}
|
|
856
1120
|
|
|
857
1121
|
function OdsText(props) {
|
|
858
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
1122
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
1123
|
+
theme: lightTheme
|
|
1124
|
+
}, React.createElement(StyledtTypography.Text, Object.assign({}, props), props === null || props === void 0 ? void 0 : props.children)));
|
|
859
1125
|
}
|
|
860
1126
|
|
|
861
1127
|
function OdsTitle(props) {
|
|
862
|
-
return React.createElement(React.Fragment, null, React.createElement(
|
|
1128
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
1129
|
+
theme: lightTheme
|
|
1130
|
+
}, React.createElement(StyledtTypography.Title, Object.assign({}, props), props === null || props === void 0 ? void 0 : props.children)));
|
|
863
1131
|
}
|
|
864
1132
|
|
|
865
1133
|
function OdsLogin(props) {
|
|
@@ -930,7 +1198,7 @@ function grid(props) {
|
|
|
930
1198
|
return React.createElement(React.Fragment, null, React.createElement(DataGrid, {
|
|
931
1199
|
dataSource: props.dataSource,
|
|
932
1200
|
keyExpr: props.keyExpr,
|
|
933
|
-
allowColumnResizing:
|
|
1201
|
+
allowColumnResizing: true,
|
|
934
1202
|
columnResizingMode: "widget",
|
|
935
1203
|
onRowInserted: props.onRowInserted,
|
|
936
1204
|
onRowUpdated: props.onRowUpdated,
|
|
@@ -940,6 +1208,7 @@ function grid(props) {
|
|
|
940
1208
|
showRowLines: true,
|
|
941
1209
|
showBorders: true,
|
|
942
1210
|
columnAutoWidth: true,
|
|
1211
|
+
width: "100%",
|
|
943
1212
|
onEditCanceling: props.onEditCanceling
|
|
944
1213
|
}, React.createElement(Paging, {
|
|
945
1214
|
enabled: true,
|