react-restyle-components 0.1.45 → 0.1.46
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/lib/cjs/App.js +12 -36
- package/lib/cjs/App.test.js +8 -10
- package/lib/cjs/core-components/atoms/buttons/button.stories.js +24 -26
- package/lib/cjs/core-components/atoms/buttons/buttons.component.js +9 -27
- package/lib/cjs/core-components/atoms/buttons/buttons.test.js +7 -15
- package/lib/cjs/core-components/atoms/check-box/checkBox.component.js +35 -102
- package/lib/cjs/core-components/atoms/check-box/checkBox.stories.js +17 -17
- package/lib/cjs/core-components/atoms/check-box/checkBox.test.js +7 -15
- package/lib/cjs/core-components/atoms/date-picker/date-picker.component.js +37 -98
- package/lib/cjs/core-components/atoms/date-picker/date-picker.stories.js +15 -17
- package/lib/cjs/core-components/atoms/date-picker/date-picker.test.js +7 -16
- package/lib/cjs/core-components/atoms/form/form.component.js +159 -571
- package/lib/cjs/core-components/atoms/form/form.test.js +59 -87
- package/lib/cjs/core-components/atoms/icons/icons.component.js +58 -41
- package/lib/cjs/core-components/atoms/icons/icons.component.js.map +1 -1
- package/lib/cjs/core-components/atoms/icons/icons.stories.js +23 -0
- package/lib/cjs/core-components/atoms/icons/icons.stories.js.map +1 -0
- package/lib/cjs/core-components/atoms/icons/icons.test.js +16 -0
- package/lib/cjs/core-components/atoms/icons/icons.test.js.map +1 -0
- package/lib/cjs/core-components/atoms/input/input-otp.component.js +76 -118
- package/lib/cjs/core-components/atoms/input/input-pin.component.js +98 -180
- package/lib/cjs/core-components/atoms/input/input-pin.stories.js +14 -14
- package/lib/cjs/core-components/atoms/input/input-pin.test.js +10 -28
- package/lib/cjs/core-components/atoms/input/input.component.js +33 -104
- package/lib/cjs/core-components/atoms/input/input.stories.js +15 -15
- package/lib/cjs/core-components/atoms/input/input.test.js +10 -30
- package/lib/cjs/core-components/atoms/input-dropdown/input-dropdown.component.js +53 -127
- package/lib/cjs/core-components/atoms/input-dropdown/input-dropdown.stories.js +12 -12
- package/lib/cjs/core-components/atoms/input-dropdown/input-dropdown.test.js +7 -16
- package/lib/cjs/core-components/atoms/loader/loader.component.js +21 -83
- package/lib/cjs/core-components/atoms/loader/loader.stories.js +8 -8
- package/lib/cjs/core-components/atoms/loader/loader.test.js +7 -11
- package/lib/cjs/core-components/atoms/radio/radio.component.js +37 -102
- package/lib/cjs/core-components/atoms/radio/radio.stories.js +16 -16
- package/lib/cjs/core-components/atoms/radio/radio.test.js +7 -15
- package/lib/cjs/core-components/atoms/stepper/stepper.component.js +34 -77
- package/lib/cjs/core-components/atoms/stepper/stepper.stories.js +13 -13
- package/lib/cjs/core-components/atoms/stepper/stepper.test.js +7 -16
- package/lib/cjs/core-components/atoms/tabs/tabs.component.js +32 -81
- package/lib/cjs/core-components/atoms/tabs/tabs.stories.js +16 -16
- package/lib/cjs/core-components/atoms/tabs/tabs.stories.js.map +1 -1
- package/lib/cjs/core-components/atoms/tabs/tabs.test.js +13 -20
- package/lib/cjs/core-components/atoms/timer/timer.component.js +92 -119
- package/lib/cjs/core-components/atoms/timer/timer.test.js +10 -20
- package/lib/cjs/core-components/atoms/tooltip/tooltip.component.js +45 -85
- package/lib/cjs/core-components/atoms/tooltip/tooltip.component.test.js +9 -13
- package/lib/cjs/core-components/atoms/tooltip/tooltip.stories.js +8 -8
- package/lib/cjs/core-components/index.js +27 -64
- package/lib/cjs/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.js +106 -210
- package/lib/cjs/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.test.js +9 -23
- package/lib/cjs/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.stories.js +36 -38
- package/lib/cjs/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.js +104 -209
- package/lib/cjs/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.test.js +16 -28
- package/lib/cjs/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.stories.js +22 -24
- package/lib/cjs/core-components/molecules/css-multiline-input/css-multiline-input.component.js +106 -203
- package/lib/cjs/core-components/molecules/css-multiline-input/css-multiline-input.stories.js +8 -8
- package/lib/cjs/core-components/molecules/css-multiline-input/css-multiline-input.test.js +7 -14
- package/lib/cjs/core-components/molecules/css-multiline-input/css-properties.js +159 -159
- package/lib/cjs/core-utils/index.js +15 -31
- package/lib/cjs/core-utils/unit-test.utils.js +6 -8
- package/lib/cjs/index.js +15 -31
- package/lib/cjs/library/assets/svg/DownArrow.svg +14 -0
- package/lib/cjs/library/assets/svg/UpArrow.svg +14 -0
- package/lib/cjs/library/assets/svg/checkedBox.svg +14 -0
- package/lib/cjs/library/assets/svg/checkedRadio.svg +13 -0
- package/lib/cjs/library/assets/svg/datePicker.svg +3 -0
- package/lib/cjs/library/assets/svg/index.js +13 -39
- package/lib/cjs/library/assets/svg/index.ts +38 -0
- package/lib/cjs/library/assets/svg/timer copy.svg +3 -0
- package/lib/cjs/library/assets/svg/timer.svg +3 -0
- package/lib/cjs/library/assets/svg/unCheckbox.svg +3 -0
- package/lib/cjs/library/assets/svg/uncheckRadio.svg +3 -0
- package/lib/cjs/reportWebVitals.js +1 -1
- package/lib/cjs/setupTests.js +1 -1
- package/lib/esm/App.js +12 -34
- package/lib/esm/App.test.js +8 -8
- package/lib/esm/core-components/atoms/buttons/button.stories.js +24 -24
- package/lib/esm/core-components/atoms/buttons/buttons.component.js +7 -23
- package/lib/esm/core-components/atoms/buttons/buttons.test.js +7 -13
- package/lib/esm/core-components/atoms/check-box/checkBox.component.js +19 -65
- package/lib/esm/core-components/atoms/check-box/checkBox.stories.js +18 -18
- package/lib/esm/core-components/atoms/check-box/checkBox.test.js +7 -13
- package/lib/esm/core-components/atoms/date-picker/date-picker.component.js +21 -54
- package/lib/esm/core-components/atoms/date-picker/date-picker.stories.js +14 -14
- package/lib/esm/core-components/atoms/date-picker/date-picker.test.js +8 -15
- package/lib/esm/core-components/atoms/form/form.component.js +138 -513
- package/lib/esm/core-components/atoms/form/form.test.js +60 -78
- package/lib/esm/core-components/atoms/icons/icons.component.js +32 -36
- package/lib/esm/core-components/atoms/icons/icons.component.js.map +1 -1
- package/lib/esm/core-components/atoms/icons/icons.stories.js +20 -0
- package/lib/esm/core-components/atoms/icons/icons.stories.js.map +1 -0
- package/lib/esm/core-components/atoms/icons/icons.test.js +11 -0
- package/lib/esm/core-components/atoms/icons/icons.test.js.map +1 -0
- package/lib/esm/core-components/atoms/input/input-otp.component.js +59 -80
- package/lib/esm/core-components/atoms/input/input-pin.component.js +81 -142
- package/lib/esm/core-components/atoms/input/input-pin.stories.js +15 -15
- package/lib/esm/core-components/atoms/input/input-pin.test.js +10 -26
- package/lib/esm/core-components/atoms/input/input.component.js +16 -66
- package/lib/esm/core-components/atoms/input/input.stories.js +16 -16
- package/lib/esm/core-components/atoms/input/input.test.js +10 -28
- package/lib/esm/core-components/atoms/input-dropdown/input-dropdown.component.js +36 -95
- package/lib/esm/core-components/atoms/input-dropdown/input-dropdown.stories.js +13 -13
- package/lib/esm/core-components/atoms/input-dropdown/input-dropdown.test.js +7 -14
- package/lib/esm/core-components/atoms/loader/loader.component.js +20 -80
- package/lib/esm/core-components/atoms/loader/loader.stories.js +9 -9
- package/lib/esm/core-components/atoms/loader/loader.test.js +7 -7
- package/lib/esm/core-components/atoms/radio/radio.component.js +21 -65
- package/lib/esm/core-components/atoms/radio/radio.stories.js +17 -17
- package/lib/esm/core-components/atoms/radio/radio.test.js +7 -13
- package/lib/esm/core-components/atoms/stepper/stepper.component.js +32 -74
- package/lib/esm/core-components/atoms/stepper/stepper.stories.js +14 -14
- package/lib/esm/core-components/atoms/stepper/stepper.test.js +7 -14
- package/lib/esm/core-components/atoms/tabs/tabs.component.js +15 -43
- package/lib/esm/core-components/atoms/tabs/tabs.stories.js +17 -17
- package/lib/esm/core-components/atoms/tabs/tabs.stories.js.map +1 -1
- package/lib/esm/core-components/atoms/tabs/tabs.test.js +13 -18
- package/lib/esm/core-components/atoms/timer/timer.component.js +75 -81
- package/lib/esm/core-components/atoms/timer/timer.test.js +10 -10
- package/lib/esm/core-components/atoms/tooltip/tooltip.component.js +25 -46
- package/lib/esm/core-components/atoms/tooltip/tooltip.component.test.js +9 -9
- package/lib/esm/core-components/atoms/tooltip/tooltip.stories.js +9 -9
- package/lib/esm/core-components/index.js +19 -19
- package/lib/esm/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.js +88 -170
- package/lib/esm/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.test.js +9 -17
- package/lib/esm/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.stories.js +37 -38
- package/lib/esm/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.js +86 -169
- package/lib/esm/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.test.js +16 -22
- package/lib/esm/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.stories.js +23 -24
- package/lib/esm/core-components/molecules/css-multiline-input/css-multiline-input.component.js +90 -166
- package/lib/esm/core-components/molecules/css-multiline-input/css-multiline-input.stories.js +9 -9
- package/lib/esm/core-components/molecules/css-multiline-input/css-multiline-input.test.js +7 -9
- package/lib/esm/core-components/molecules/css-multiline-input/css-properties.js +159 -159
- package/lib/esm/core-utils/index.js +2 -2
- package/lib/esm/core-utils/unit-test.utils.js +5 -5
- package/lib/esm/index.js +2 -2
- package/lib/esm/library/assets/svg/index.js +10 -19
- package/lib/esm/reportWebVitals.js +1 -1
- package/lib/esm/setupTests.js +2 -2
- package/lib/package.json +125 -0
- package/package.json +3 -2
|
@@ -1,162 +1,162 @@
|
|
|
1
1
|
/* eslint-disable no-sparse-arrays */
|
|
2
2
|
export const properties = [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
3
|
+
{
|
|
4
|
+
alignContent: [
|
|
5
|
+
'flex-start',
|
|
6
|
+
'flex-end',
|
|
7
|
+
'center',
|
|
8
|
+
'stretch',
|
|
9
|
+
'space-between',
|
|
10
|
+
'space-around',
|
|
11
|
+
],
|
|
12
|
+
},
|
|
13
|
+
{ alignItems: ['flex-start', 'flex-end', 'center', 'stretch', 'baseline'] },
|
|
14
|
+
{
|
|
15
|
+
alignSelf: [
|
|
16
|
+
'auto',
|
|
17
|
+
'flex-start',
|
|
18
|
+
'flex-end',
|
|
19
|
+
'center',
|
|
20
|
+
'baseline',
|
|
21
|
+
'stretch',
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
{ flex: ['number', 'string'] },
|
|
25
|
+
{ flexDirection: ['row', 'row-reverse', 'column', 'column-reverse'] },
|
|
26
|
+
{ flexWrap: ['nowrap', 'wrap', 'wrap-reverse'] },
|
|
27
|
+
{ flexFlow: ['number'] },
|
|
28
|
+
{ flexGrow: ['number'] },
|
|
29
|
+
{ flexShrink: ['number'] },
|
|
30
|
+
{ flexBasis: ['number', 'string'] },
|
|
31
|
+
{
|
|
32
|
+
justifyContent: [
|
|
33
|
+
,
|
|
34
|
+
'flex-start',
|
|
35
|
+
'flex-end',
|
|
36
|
+
'center',
|
|
37
|
+
'space-around',
|
|
38
|
+
'space-between',
|
|
39
|
+
'space-evenly',
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
{ gap: ['number', 'string'] },
|
|
43
|
+
{ rowGap: ['number'] },
|
|
44
|
+
{ columnGap: ['number'] },
|
|
45
|
+
// Layout
|
|
46
|
+
{ aspectRatio: ['number', 'string'] },
|
|
47
|
+
{ bottom: ['number', 'string'] },
|
|
48
|
+
{ display: ['flex', 'none'] },
|
|
49
|
+
{ left: ['number', 'string'] },
|
|
50
|
+
{ position: ['absolute', 'relative'] },
|
|
51
|
+
{ right: ['number', 'string'] },
|
|
52
|
+
{ top: ['number', 'string'] },
|
|
53
|
+
{ overflow: ['hidden'] },
|
|
54
|
+
{ zIndex: ['number', 'string'] },
|
|
55
|
+
// Dimension
|
|
56
|
+
{ height: ['number', 'string'] },
|
|
57
|
+
{ maxHeight: ['number', 'string'] },
|
|
58
|
+
{ maxWidth: ['number', 'string'] },
|
|
59
|
+
{ minHeight: ['number', 'string'] },
|
|
60
|
+
{ minWidth: ['number', 'string'] },
|
|
61
|
+
{ width: ['number', 'string'] },
|
|
62
|
+
// Color
|
|
63
|
+
{ backgroundColor: ['string'] },
|
|
64
|
+
{ color: ['string'] },
|
|
65
|
+
{ opacity: ['number'] },
|
|
66
|
+
// Text
|
|
67
|
+
{ fontSize: ['number', 'string'] },
|
|
68
|
+
{ fontFamily: ['string'] },
|
|
69
|
+
{ fontStyle: ['string', 'normal'] },
|
|
70
|
+
{
|
|
71
|
+
fontWeight: [
|
|
72
|
+
,
|
|
73
|
+
'number',
|
|
74
|
+
'thin',
|
|
75
|
+
'hairline',
|
|
76
|
+
'ultralight',
|
|
77
|
+
'extralight',
|
|
78
|
+
'light',
|
|
79
|
+
'normal',
|
|
80
|
+
'medium',
|
|
81
|
+
'semibold',
|
|
82
|
+
'demibold',
|
|
83
|
+
'bold',
|
|
84
|
+
'ultrabold',
|
|
85
|
+
'extrabold',
|
|
86
|
+
'heavy',
|
|
87
|
+
'black',
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
{ letterSpacing: ['number', 'string'] },
|
|
91
|
+
{ lineHeight: ['number', 'string'] },
|
|
92
|
+
{ maxLines: ['number'] },
|
|
93
|
+
{ textAlign: ['left', 'right', 'center', 'justify'] },
|
|
94
|
+
{
|
|
95
|
+
textDecoration: [
|
|
96
|
+
,
|
|
97
|
+
'line-through',
|
|
98
|
+
'underline',
|
|
99
|
+
'none',
|
|
100
|
+
'line-through underline',
|
|
101
|
+
'underline line-through',
|
|
102
|
+
],
|
|
103
|
+
},
|
|
104
|
+
{ textDecorationColor: ['string'] },
|
|
105
|
+
{ textDecorationStyle: ['dashed', 'dotted', 'solid', 'string'] },
|
|
106
|
+
{ textIndent: ['any'] },
|
|
107
|
+
{ textOverflow: ['ellipsis'] },
|
|
108
|
+
{ textTransform: ['capitalize', 'lowercase', 'uppercase'] },
|
|
109
|
+
{ verticalAlign: ['sub', 'super'] },
|
|
110
|
+
// Sizing/positioning
|
|
111
|
+
{ objectFit: ['string'] },
|
|
112
|
+
{ objectPosition: ['number', 'string'] },
|
|
113
|
+
{ objectPositionX: ['number', 'string'] },
|
|
114
|
+
{ objectPositionY: ['number', 'string'] },
|
|
115
|
+
// Margin/padding
|
|
116
|
+
{ margin: ['number', 'string'] },
|
|
117
|
+
{ marginHorizontal: ['number', 'string'] },
|
|
118
|
+
{ marginVertical: ['number', 'string'] },
|
|
119
|
+
{ marginTop: ['number', 'string'] },
|
|
120
|
+
{ marginRight: ['number', 'string'] },
|
|
121
|
+
{ marginBottom: ['number', 'string'] },
|
|
122
|
+
{ marginLeft: ['number', 'string'] },
|
|
123
|
+
{ padding: ['number', 'string'] },
|
|
124
|
+
{ paddingHorizontal: ['number', 'string'] },
|
|
125
|
+
{ paddingVertical: ['number', 'string'] },
|
|
126
|
+
{ paddingTop: ['number', 'string'] },
|
|
127
|
+
{ paddingRight: ['number', 'string'] },
|
|
128
|
+
{ paddingBottom: ['number', 'string'] },
|
|
129
|
+
{ paddingLeft: ['number', 'string'] },
|
|
130
|
+
// Transformations
|
|
131
|
+
{ transform: ['string'] },
|
|
132
|
+
{ transformOrigin: ['number', 'string'] },
|
|
133
|
+
{ transformOriginX: ['number', 'string'] },
|
|
134
|
+
{ transformOriginY: ['number', 'string'] },
|
|
135
|
+
// Borders
|
|
136
|
+
{ border: ['number', 'string'] },
|
|
137
|
+
{ borderWidth: ['number', 'string'] },
|
|
138
|
+
{ borderColor: ['string'] },
|
|
139
|
+
{ borderStyle: ['dashed', 'dotted', 'solid'] },
|
|
140
|
+
{ borderTop: ['number', 'string'] },
|
|
141
|
+
{ borderTopColor: ['string'] },
|
|
142
|
+
{ borderTopStyle: ['dashed', 'dotted', 'solid'] },
|
|
143
|
+
{ borderTopWidth: ['number', 'string'] },
|
|
144
|
+
{ borderRight: ['number', 'string'] },
|
|
145
|
+
{ borderRightColor: ['string'] },
|
|
146
|
+
{ borderRightStyle: ['dashed', 'dotted', 'solid'] },
|
|
147
|
+
{ borderRightWidth: ['number', 'string'] },
|
|
148
|
+
{ borderBottom: ['number', 'string'] },
|
|
149
|
+
{ borderBottomColor: ['string'] },
|
|
150
|
+
{ borderBottomStyle: ['dashed', 'dotted', 'solid'] },
|
|
151
|
+
{ borderBottomWidth: ['number', 'string'] },
|
|
152
|
+
{ borderLeft: ['number', 'string'] },
|
|
153
|
+
{ borderLeftColor: ['string'] },
|
|
154
|
+
{ borderLeftStyle: ['dashed', 'dotted', 'solid'] },
|
|
155
|
+
{ borderLeftWidth: ['number', 'string'] },
|
|
156
|
+
{ borderTopLeftRadius: ['number', 'string'] },
|
|
157
|
+
{ borderTopRightRadius: ['number', 'string'] },
|
|
158
|
+
{ borderBottomRightRadius: ['number', 'string'] },
|
|
159
|
+
{ borderBottomLeftRadius: ['number', 'string'] },
|
|
160
|
+
{ borderRadius: ['number', 'string'] },
|
|
161
161
|
];
|
|
162
|
-
//# sourceMappingURL=css-properties.js.map
|
|
162
|
+
//# sourceMappingURL=css-properties.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from './unit-test.utils';
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { render as renderComponent } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render as renderComponent } from '@testing-library/react';
|
|
3
3
|
const Providers = ({ children }) => {
|
|
4
|
-
|
|
4
|
+
return React.createElement("div", null, children);
|
|
5
5
|
};
|
|
6
6
|
const render = (Component) => {
|
|
7
|
-
|
|
7
|
+
return renderComponent(Component, { wrapper: Providers });
|
|
8
8
|
};
|
|
9
9
|
export { render, Providers };
|
|
10
|
-
//# sourceMappingURL=unit-test.utils.js.map
|
|
10
|
+
//# sourceMappingURL=unit-test.utils.js.map
|
package/lib/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from './core-components';
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
import UnCheckbox from
|
|
2
|
-
import CheckedBox from
|
|
3
|
-
import DatePickerSvg from
|
|
4
|
-
import CheckedRadio from
|
|
5
|
-
import UncheckRadio from
|
|
6
|
-
import TimerSVG from
|
|
7
|
-
import UpArrow from
|
|
8
|
-
import DownArrow from
|
|
9
|
-
export {
|
|
10
|
-
UnCheckbox,
|
|
11
|
-
CheckedBox,
|
|
12
|
-
DatePickerSvg,
|
|
13
|
-
CheckedRadio,
|
|
14
|
-
UncheckRadio,
|
|
15
|
-
TimerSVG,
|
|
16
|
-
UpArrow,
|
|
17
|
-
DownArrow,
|
|
18
|
-
};
|
|
1
|
+
import UnCheckbox from '../../../library/assets/svg/unCheckbox.svg';
|
|
2
|
+
import CheckedBox from '../../../library/assets/svg/checkedBox.svg';
|
|
3
|
+
import DatePickerSvg from '../../../library/assets/svg/datePicker.svg';
|
|
4
|
+
import CheckedRadio from '../../../library/assets/svg/checkedRadio.svg';
|
|
5
|
+
import UncheckRadio from '../../../library/assets/svg/uncheckRadio.svg';
|
|
6
|
+
import TimerSVG from '../../../library/assets/svg/timer.svg';
|
|
7
|
+
import UpArrow from '../../../library/assets/svg/UpArrow.svg';
|
|
8
|
+
import DownArrow from '../../../library/assets/svg/DownArrow.svg';
|
|
9
|
+
export { UnCheckbox, CheckedBox, DatePickerSvg, CheckedRadio, UncheckRadio, TimerSVG, UpArrow, DownArrow, };
|
|
19
10
|
// import {ReactComponent as UnCheckbox} from '../../../library/assets/svg/unCheckbox.svg';
|
|
20
11
|
// import {ReactComponent as CheckedBox} from '../../../library/assets/svg/checkedBox.svg';
|
|
21
12
|
// import {ReactComponent as DatePickerSvg} from '../../../library/assets/svg/datePicker.svg';
|
|
@@ -34,4 +25,4 @@ export {
|
|
|
34
25
|
// UpArrow,
|
|
35
26
|
// DownArrow,
|
|
36
27
|
// };
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
package/lib/esm/setupTests.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
// allows you to do things like:
|
|
3
3
|
// expect(element).toHaveTextContent(/react/i)
|
|
4
4
|
// learn more: https://github.com/testing-library/jest-dom
|
|
5
|
-
import
|
|
6
|
-
//# sourceMappingURL=setupTests.js.map
|
|
5
|
+
import '@testing-library/jest-dom';
|
|
6
|
+
//# sourceMappingURL=setupTests.js.map
|
package/lib/package.json
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-restyle-components",
|
|
3
|
+
"version": "0.1.41",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Easy use restyle components",
|
|
6
|
+
"main": "lib/cjs/index.js",
|
|
7
|
+
"module": "lib/esm/index.js",
|
|
8
|
+
"author": {
|
|
9
|
+
"email": "onlyappasaheb4@gmail.com",
|
|
10
|
+
"name": "Lakade Appasaheb",
|
|
11
|
+
"url": "http://github.com/appasaheb4"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"start": "serve -s ./build",
|
|
16
|
+
"dev": "chmod +x setup.sh && sh ./setup.sh && craco start",
|
|
17
|
+
"serve-webapp": "craco build && craco start",
|
|
18
|
+
"build": "rm -rf lib && chmod +x npm-publish.sh && sh ./npm-publish.sh && tsc -p tsconfig.json & tsc -p tsconfig-cjs.json && copyfiles -u 1 src/library/assets/**/* lib/cjs && cp package.json lib/package.json",
|
|
19
|
+
"test": "react-scripts test",
|
|
20
|
+
"eject": "react-scripts eject",
|
|
21
|
+
"precommit": "lint-staged --allow-empty",
|
|
22
|
+
"storybook": "storybook dev -p 6006",
|
|
23
|
+
"build-storybook": "rm -rf docs-build && storybook build -o docs-build",
|
|
24
|
+
"deploy-storybook": "gh-pages -d docs-build",
|
|
25
|
+
"prettier": "prettier --write '**/*.{js,jsx}'",
|
|
26
|
+
"prepare": "husky install"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@loadable/component": "^5.16.4",
|
|
30
|
+
"@mui/material": "^5.15.19",
|
|
31
|
+
"@testing-library/jest-dom": "^5.16.4",
|
|
32
|
+
"@testing-library/react": "^13.1.1",
|
|
33
|
+
"@testing-library/user-event": "^13.5.0",
|
|
34
|
+
"@types/jest": "^27.4.1",
|
|
35
|
+
"@types/react": "^18.0.5",
|
|
36
|
+
"@types/react-dom": "^18.0.1",
|
|
37
|
+
"dayjs": "^1.11.1",
|
|
38
|
+
"react-datepicker": "^4.7.0",
|
|
39
|
+
"react-icons": "^5.2.1",
|
|
40
|
+
"reactstrap": "^9.0.2",
|
|
41
|
+
"tailwindcss": "^3.0.24",
|
|
42
|
+
"typescript": "^4.6.3"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"@testing-library/jest-dom": "*",
|
|
46
|
+
"@testing-library/react": "*",
|
|
47
|
+
"@testing-library/user-event": "*",
|
|
48
|
+
"@types/jest": "*",
|
|
49
|
+
"@types/react": "*",
|
|
50
|
+
"@types/react-dom": "*",
|
|
51
|
+
"dayjs": "*",
|
|
52
|
+
"react": "*",
|
|
53
|
+
"react-datepicker": "*",
|
|
54
|
+
"react-dom": "*",
|
|
55
|
+
"react-scripts": "*",
|
|
56
|
+
"reactstrap": "*",
|
|
57
|
+
"tailwindcss": "*",
|
|
58
|
+
"typescript": "*",
|
|
59
|
+
"web-vitals": "*"
|
|
60
|
+
},
|
|
61
|
+
"files": ["*.md", "dist", "lib"],
|
|
62
|
+
"sideEffects": ["**/*.css"],
|
|
63
|
+
"eslintConfig": {
|
|
64
|
+
"extends": ["react-app", "react-app/jest", "plugin:storybook/recommended"],
|
|
65
|
+
"overrides": [
|
|
66
|
+
{
|
|
67
|
+
"files": ["**/*.stories.*"],
|
|
68
|
+
"rules": {
|
|
69
|
+
"import/no-anonymous-default-export": "off"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"browserslist": {
|
|
75
|
+
"production": [">0.2%", "not dead", "not op_mini all"],
|
|
76
|
+
"development": [
|
|
77
|
+
"last 1 chrome version",
|
|
78
|
+
"last 1 firefox version",
|
|
79
|
+
"last 1 safari version"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@chromatic-com/storybook": "^1.3.1",
|
|
84
|
+
"@craco/craco": "^6.4.3",
|
|
85
|
+
"@emotion/react": "^11.11.4",
|
|
86
|
+
"@emotion/styled": "^11.11.5",
|
|
87
|
+
"@storybook/addon-essentials": "^8.0.6",
|
|
88
|
+
"@storybook/addon-interactions": "^8.0.6",
|
|
89
|
+
"@storybook/addon-links": "^8.0.6",
|
|
90
|
+
"@storybook/addon-onboarding": "^8.0.6",
|
|
91
|
+
"@storybook/addon-webpack5-compiler-swc": "^1.0.2",
|
|
92
|
+
"@storybook/blocks": "^8.0.6",
|
|
93
|
+
"@storybook/react": "^8.0.6",
|
|
94
|
+
"@storybook/react-webpack5": "^8.0.6",
|
|
95
|
+
"@storybook/test": "^8.0.6",
|
|
96
|
+
"@svgr/webpack": "^8.1.0",
|
|
97
|
+
"autoprefixer": "^10.4.19",
|
|
98
|
+
"craco-alias": "^3.0.1",
|
|
99
|
+
"style-loader": "^4.0.0",
|
|
100
|
+
"css-loader": "^7.1.2",
|
|
101
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
102
|
+
"gh-pages": "^3.2.3",
|
|
103
|
+
"husky": "^7.0.4",
|
|
104
|
+
"copyfiles": "^2.4.1",
|
|
105
|
+
"lint-staged": "^12.4.0",
|
|
106
|
+
"postcss-loader": "^8.1.1",
|
|
107
|
+
"storybook": "^8.0.6",
|
|
108
|
+
"webpack": "^5.72.0"
|
|
109
|
+
},
|
|
110
|
+
"keywords": ["react", "components", "restyle-components", "tech-abl"],
|
|
111
|
+
"repository": {
|
|
112
|
+
"type": "git",
|
|
113
|
+
"url": "git+https://github.com/appasaheb4/react-restyle-components.git"
|
|
114
|
+
},
|
|
115
|
+
"bugs": {
|
|
116
|
+
"url": "https://github.com/appasaheb4/react-restyle-components/issues"
|
|
117
|
+
},
|
|
118
|
+
"homepage": "https://github.com/appasaheb4/react-restyle-components#readme",
|
|
119
|
+
"lint-staged": {
|
|
120
|
+
"*.{js,jsx,json,css,scss,md}": ["prettier --write", "git add"]
|
|
121
|
+
},
|
|
122
|
+
"resolutions": {
|
|
123
|
+
"jackspeak": "2.1.1"
|
|
124
|
+
}
|
|
125
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-restyle-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.46",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easy use restyle components",
|
|
6
6
|
"main": "lib/cjs/index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"start": "serve -s ./build",
|
|
16
16
|
"dev": "chmod +x setup.sh && sh ./setup.sh && craco start",
|
|
17
17
|
"serve-webapp": "craco build && craco start",
|
|
18
|
-
"build": "rm -rf lib && chmod +x npm-publish.sh && sh ./npm-publish.sh && tsc -p tsconfig.json & tsc -p tsconfig-cjs.json",
|
|
18
|
+
"build": "rm -rf lib && chmod +x npm-publish.sh && sh ./npm-publish.sh && tsc -p tsconfig.json & tsc -p tsconfig-cjs.json && copyfiles -u 1 src/library/assets/**/* lib/cjs && cp package.json lib/package.json",
|
|
19
19
|
"test": "react-scripts test",
|
|
20
20
|
"eject": "react-scripts eject",
|
|
21
21
|
"precommit": "lint-staged --allow-empty",
|
|
@@ -117,6 +117,7 @@
|
|
|
117
117
|
"eslint-plugin-storybook": "^0.8.0",
|
|
118
118
|
"gh-pages": "^3.2.3",
|
|
119
119
|
"husky": "^7.0.4",
|
|
120
|
+
"copyfiles": "^2.4.1",
|
|
120
121
|
"lint-staged": "^12.4.0",
|
|
121
122
|
"postcss-loader": "^8.1.1",
|
|
122
123
|
"storybook": "^8.0.6",
|