@xaypay/tui 0.2.13 → 0.2.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaypay/tui",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
package/tui.config.js CHANGED
@@ -1,4 +1,10 @@
1
1
  import React from 'react'
2
+ // import info from './src/assetsTMP/info.png';
3
+ // import error from './src/assetsTMP/error.png';
4
+ // import close from './src/assetsTMP/close.svg';
5
+ // import warn from './src/assetsTMP/warning.png';
6
+ // import success from './src/assetsTMP/success.png';
7
+ import closeCall from './src/assetsTMP/closeCall.svg';
2
8
 
3
9
  const boxSizing = 'border-box';
4
10
  const fontStyle = 'normal';
@@ -30,17 +36,18 @@ const fontObject = {
30
36
  export default {
31
37
  // default properties for <Button /> component
32
38
  BUTTON: {
33
- type: 'button',
39
+ opacity: 1,
34
40
  width: '100%',
41
+ radius: '6px',
42
+ className: '',
43
+ type: 'button',
35
44
  height: '46px',
36
45
  color: 'white',
37
- contentWidth: false,
38
46
  border: 'none',
39
- radius: '6px',
47
+ disabled: false,
40
48
  cursor: 'pointer',
49
+ contentWidth: false,
41
50
  padding: '12px 20px',
42
- disabled: false,
43
- className: '',
44
51
  transition: 'background-color 240ms, color 240ms',
45
52
 
46
53
  box: {
@@ -53,6 +60,10 @@ export default {
53
60
  disabled: 'rgba(60, 57, 62, 1)',
54
61
  disabledLine: 'rgba(60, 57, 62, 1)',
55
62
  disabledBackground: 'rgba(238, 238, 238, 1)',
63
+ withoutStyling: {
64
+ color: '#000000',
65
+ hoverColor: '#121212'
66
+ }
56
67
  },
57
68
 
58
69
  font: {...fontObject},
@@ -65,8 +76,11 @@ export default {
65
76
  },
66
77
 
67
78
  icon: {
79
+ marginLeft: '10px',
68
80
  marginRight: '10px'
69
- }
81
+ },
82
+
83
+ withoutStyling: false
70
84
  },
71
85
  // default properties for <Input /> component
72
86
  INPUT: {
@@ -97,9 +111,11 @@ export default {
97
111
  font: {...fontObject},
98
112
 
99
113
  label: {
114
+ dots: false,
100
115
  color: presetColors.dark,
101
116
  display: 'block',
102
117
  lineHeight: '22px',
118
+ iconMargin: '10px',
103
119
  marginBottom: '6px',
104
120
 
105
121
  font: {...fontObject}
@@ -111,6 +127,7 @@ export default {
111
127
  zIndex: '1',
112
128
  className: '',
113
129
  marginTop: '10px',
130
+ iconMargin: '10px',
114
131
  lineHeight: '19px',
115
132
 
116
133
  font: {...fontObject}
@@ -697,6 +714,34 @@ export default {
697
714
  },
698
715
  closeAreaBackgroundColor: 'linear-gradient(to bottom, rgb(60, 57, 62), rgba(60, 57, 62, 0))' // for close div background color
699
716
  },
717
+ // default properties for <SwipeModal /> component
718
+ SWIPEMODAL: {
719
+ width: '300px',
720
+ height: '100vh',
721
+ titleStyle: {
722
+ color: '#1C212D',
723
+ textAlign: 'left',
724
+ maxHeight: '66px',
725
+ padding: '0px 20px',
726
+ font: {...fontObject},
727
+ },
728
+ parent: {
729
+ width: '100%',
730
+ height: '100vh',
731
+ colors: {
732
+ background: 'rgba(60, 61, 70, 0.2)'
733
+ }
734
+ },
735
+ colors: {
736
+ background: 'white',
737
+ },
738
+ border: {
739
+ radius: '10px'
740
+ },
741
+ withParent: true,
742
+ outSideClose: false,
743
+ closeIcon: closeCall,
744
+ },
700
745
  // default properties for <Checkbox /> component
701
746
  CHECKBOX: {
702
747
  className: '',
@@ -772,6 +817,13 @@ export default {
772
817
  order: {
773
818
  color: '#000',
774
819
  font: {...fontObject}
820
+ },
821
+
822
+ draggable: {
823
+ boxShadow: '1px 1px 9px black',
824
+ color: {
825
+ background: 'white'
826
+ }
775
827
  }
776
828
  },
777
829
  // default properties for <Pagination /> component
@@ -780,13 +832,48 @@ export default {
780
832
  },
781
833
  // default properties for <Toaster /> component
782
834
  TOASTER: {
835
+ width: '440px',
836
+ height: '83px',
783
837
  className: '',
784
- icon: {
785
- // info: React.createElement(SvgChecked, { just: 'must' }),
786
- // warn: React.createElement(SvgUnchecked, { just: 'must' }),
787
- // close: React.createElement(SvgChecked, { fill: 'green' }),
788
- // error: React.createElement(SvgChecked, { fill: 'green' }),
789
- // success: React.createElement(SvgChecked, { fill: 'green' }),
838
+ marginBottom: '20px',
839
+ backgroundColor: '#FFFFFF',
840
+ padding: '14px 29px 14px 12px',
841
+ border: {
842
+ width: '2px',
843
+ style: 'solid',
844
+ radius: '40px',
845
+ color: '#EEEEEE'
846
+ },
847
+ title: {
848
+ color: '#3C393E',
849
+ lineHeight: '22px',
850
+ font: {
851
+ size: '16px',
852
+ style: 'normal',
853
+ weight: 600,
854
+ family: '',
855
+ },
856
+ props: {}
857
+ },
858
+ description: {
859
+ color: '#3C393E',
860
+ lineHeight: '16px',
861
+ font: {
862
+ size: '12px',
863
+ style: 'normal',
864
+ weight: 500,
865
+ family: '',
866
+ },
867
+ props: {
868
+ opacity: 0.8
869
+ }
870
+ },
871
+ icons: {
872
+ info: '',
873
+ warn: '',
874
+ error: '',
875
+ close: '',
876
+ success: ''
790
877
  }
791
878
  },
792
879
  // default properties for <Stepper /> component