@desynova-digital/components 9.0.26 → 9.1.0
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/_helpers/globals.js +9 -10
- package/_helpers/pagination.js +10 -15
- package/_helpers/story-example.js +16 -39
- package/_helpers/story-helpers.js +15 -14
- package/_helpers/story-stack.js +22 -43
- package/_helpers/uniqueId.js +2 -5
- package/_helpers/utils.js +28 -4
- package/atoms/avatar/avatar.js +19 -42
- package/atoms/avatar/avatar.story.js +25 -58
- package/atoms/avatar/index.js +13 -11
- package/atoms/badge/badge.js +14 -37
- package/atoms/badge/badge.story.js +45 -103
- package/atoms/badge/index.js +12 -10
- package/atoms/button/button.js +85 -161
- package/atoms/button/button.story.js +354 -508
- package/atoms/button/index.js +5 -9
- package/atoms/card/card.js +26 -55
- package/atoms/card/card.story.js +39 -88
- package/atoms/card/index.js +12 -10
- package/atoms/cardStack/cardStack.js +88 -147
- package/atoms/cardStack/cardStack.story.js +106 -210
- package/atoms/cardStack/index.js +12 -10
- package/atoms/cardV2/cardV2.js +57 -106
- package/atoms/cardV2/cardV2.story.js +184 -232
- package/atoms/cardV2/content.js +154 -256
- package/atoms/cardV2/index.js +4 -8
- package/atoms/cardV2/thumbnail.js +138 -208
- package/atoms/cardV2/timeline.js +167 -123
- package/atoms/checkbox/checkbox.js +85 -157
- package/atoms/checkbox/checkbox.story.js +237 -365
- package/atoms/checkbox/index.js +4 -9
- package/atoms/customSelect/customSelect.js +136 -215
- package/atoms/customSelect/customSelect.story.js +745 -851
- package/atoms/customSelect/index.js +4 -8
- package/atoms/datePicker/datePicker.js +299 -431
- package/atoms/datePicker/datePicker.story.js +453 -501
- package/atoms/datePicker/index.js +4 -8
- package/atoms/dateTime/dateTime.js +3 -6
- package/atoms/dateTime/dateTime.story.js +17 -63
- package/atoms/dateTime/index.js +5 -9
- package/atoms/draftInputText/draftInputText.js +121 -189
- package/atoms/draftInputText/draftInputText.story.js +200 -249
- package/atoms/draftInputText/index.js +5 -9
- package/atoms/dropdown/dropdown.js +38 -66
- package/atoms/dropdown/dropdown.story.js +102 -262
- package/atoms/dropdown/index.js +4 -8
- package/atoms/dropdownList/dropdownList.js +78 -108
- package/atoms/dropdownList/dropdownList.story.js +1546 -1621
- package/atoms/dropdownList/index.js +4 -8
- package/atoms/graphs/barGraph/barGraph.js +95 -146
- package/atoms/graphs/barGraph/barGraph.story.js +65 -87
- package/atoms/graphs/barGraph/index.js +4 -8
- package/atoms/graphs/circleDonut/circleDonut.js +177 -229
- package/atoms/graphs/circleDonut/circleDonut.story.js +328 -394
- package/atoms/graphs/circleDonut/index.js +5 -9
- package/atoms/graphs/circleGraph/circleGraph.js +60 -90
- package/atoms/graphs/circleGraph/circleGraph.story.js +36 -54
- package/atoms/graphs/circleGraph/index.js +4 -8
- package/atoms/graphs/circleNested/circleNested.js +216 -262
- package/atoms/graphs/circleNested/circleNested.story.js +91 -116
- package/atoms/graphs/circleNested/index.js +5 -9
- package/atoms/graphs/pieChart/index.js +4 -8
- package/atoms/graphs/pieChart/pieChart.js +162 -191
- package/atoms/graphs/pieChart/pieChart.story.js +147 -176
- package/atoms/graphs/verticalBarGraph/index.js +5 -9
- package/atoms/graphs/verticalBarGraph/verticalBarGraph.js +75 -98
- package/atoms/graphs/verticalBarGraph/verticalBarGraph.story.js +26 -45
- package/atoms/icon/icon.js +41 -72
- package/atoms/icon/icon.story.js +831 -260
- package/atoms/icon/index.js +19 -12
- package/atoms/image/image.js +18 -32
- package/atoms/image/image.story.js +10 -19
- package/atoms/image/index.js +4 -8
- package/atoms/inputText/index.js +4 -8
- package/atoms/inputText/inputText.js +86 -131
- package/atoms/inputText/inputText.story.js +191 -255
- package/atoms/label/index.js +4 -8
- package/atoms/label/label.js +25 -50
- package/atoms/label/label.story.js +42 -83
- package/atoms/loader/CircleLoader.js +29 -63
- package/atoms/loader/ShimmerComponent/CollabShimmerCard.js +39 -50
- package/atoms/loader/ShimmerComponent/CollabShimmerCardTray.js +41 -42
- package/atoms/loader/ShimmerComponent/FiltersShimmer.js +30 -30
- package/atoms/loader/ShimmerComponent/GraphDetailShimmer.js +21 -34
- package/atoms/loader/ShimmerComponent/GraphTitleShimmer.js +30 -34
- package/atoms/loader/ShimmerComponent/GraphsComponentShimmer.js +23 -32
- package/atoms/loader/ShimmerComponent/Shimmer.js +24 -32
- package/atoms/loader/ThreeDotLoader.js +14 -29
- package/atoms/loader/index.js +13 -11
- package/atoms/loader/loader.js +34 -58
- package/atoms/loader/loader.story.js +48 -52
- package/atoms/loader/spinningLoader.js +23 -34
- package/atoms/popup/index.js +5 -9
- package/atoms/popup/popup.js +123 -208
- package/atoms/popup/popup.story.js +97 -131
- package/atoms/radio/index.js +18 -11
- package/atoms/radio/radio.js +58 -112
- package/atoms/radio/radio.story.js +197 -420
- package/atoms/select/index.js +4 -8
- package/atoms/select/select.js +48 -86
- package/atoms/sideBar/index.js +5 -9
- package/atoms/sideBar/sidebar.js +89 -140
- package/atoms/switch/index.js +4 -8
- package/atoms/switch/switch.js +56 -86
- package/atoms/switch/switch.story.js +268 -415
- package/atoms/tag/index.js +12 -10
- package/atoms/tag/tag.js +29 -63
- package/atoms/tag/tag.story.js +135 -209
- package/atoms/textarea/index.js +5 -9
- package/atoms/textarea/textarea.js +55 -99
- package/atoms/textarea/textarea.story.js +48 -41
- package/atoms/thematicBreak/index.js +12 -10
- package/atoms/thematicBreak/thematicBreak.js +20 -38
- package/atoms/thematicBreak/thematicBreak.story.js +25 -37
- package/atoms/timeCodeInput/index.js +4 -8
- package/atoms/timeCodeInput/timCodeInput.story.js +21 -35
- package/atoms/timeCodeInput/timeCodeInput.js +33 -51
- package/atoms/timer/index.js +5 -9
- package/atoms/timer/timer.js +57 -108
- package/atoms/timer/timer.story.js +13 -26
- package/atoms/toast/index.js +5 -9
- package/atoms/toast/toast.js +81 -116
- package/atoms/toast/toast.story.js +50 -76
- package/atoms/videoCard/index.js +12 -10
- package/atoms/videoCard/videoCard.js +265 -447
- package/atoms/videoCard/videoCard.story.js +495 -710
- package/components.js +411 -294
- package/index.js +350 -61
- package/molecules/carousel/carousel.js +121 -207
- package/molecules/carousel/carousel.story.js +240 -223
- package/molecules/carousel/index.js +5 -9
- package/molecules/errorScreen/CollabErrorScreen.js +35 -66
- package/molecules/errorScreen/TableErrorScreen.js +109 -102
- package/molecules/errorScreen/TableErrorScreen.jsx +7 -6
- package/molecules/errorScreen/errorScreen.js +41 -94
- package/molecules/filter/constants.js +1 -0
- package/molecules/filter/filter.js +378 -562
- package/molecules/filter/filter.story.js +79 -104
- package/molecules/filter/index.js +5 -9
- package/molecules/graphCard/graphCard.js +97 -193
- package/molecules/graphCard/graphCard.story.js +159 -191
- package/molecules/graphCard/index.js +4 -8
- package/molecules/graphCard/loader.js +28 -68
- package/molecules/graphDetailCard/graphDetailCard.js +115 -183
- package/molecules/graphDetailCard/graphDetailCard.story.js +218 -254
- package/molecules/graphDetailCard/index.js +5 -9
- package/molecules/pageHeader/index.js +12 -10
- package/molecules/pageHeader/pageHeader.js +38 -79
- package/molecules/pageHeader/pageHeader.story.js +34 -55
- package/molecules/pagination/index.js +4 -8
- package/molecules/pagination/pagination.js +126 -202
- package/molecules/pagination/pagination.story.js +40 -52
- package/molecules/richTextInput/RichTextInput.js +354 -0
- package/molecules/richTextInput/RichTextInput.story.js +50 -0
- package/molecules/richTextInput/index.js +9 -0
- package/molecules/table/index.js +4 -8
- package/molecules/table/table-column.js +10 -16
- package/molecules/table/table-header.js +31 -72
- package/molecules/table/table.js +743 -1075
- package/molecules/table/table.story.js +274 -304
- package/molecules/tabs/index.js +4 -8
- package/molecules/tabs/tabs.js +112 -184
- package/molecules/tabs/tabs.story.js +66 -133
- package/molecules/videoCardList/index.js +4 -8
- package/molecules/videoCardList/videoCardList.js +24 -41
- package/molecules/videoCardList/videoCardList.story.js +449 -664
- package/molecules/videoPlayer/index.js +4 -8
- package/molecules/videoPlayer/videoPlayer.js +1019 -1097
- package/molecules/videoPlayer/videoPlayer.story.js +10 -21
- package/package.json +2 -2
|
@@ -1,194 +1,162 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var _react2 =
|
|
6
|
-
|
|
7
|
-
var
|
|
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
|
-
name: 'Rejected',
|
|
86
|
-
value: 'rejected',
|
|
87
|
-
data: 33,
|
|
88
|
-
index: 2
|
|
89
|
-
}, {
|
|
90
|
-
name: 'Pending',
|
|
91
|
-
value: 'pending',
|
|
92
|
-
data: 70,
|
|
93
|
-
index: 3
|
|
94
|
-
}]
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
forPeriod: 'This Week',
|
|
98
|
-
totalCaption: 'Total Assets'
|
|
99
|
-
}
|
|
100
|
-
})
|
|
101
|
-
)
|
|
102
|
-
)
|
|
103
|
-
)
|
|
104
|
-
);
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _react = _interopRequireDefault(require("react"));
|
|
5
|
+
var _react2 = require("@storybook/react");
|
|
6
|
+
var _storyHelpers = require("../../_helpers/story-helpers");
|
|
7
|
+
var _graphCard = _interopRequireDefault(require("./graphCard"));
|
|
8
|
+
console.log(_graphCard["default"]);
|
|
9
|
+
(0, _react2.storiesOf)('GraphCard').add('default', function () {
|
|
10
|
+
return /*#__PURE__*/_react["default"].createElement(_storyHelpers.Example, {
|
|
11
|
+
title: "default"
|
|
12
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
13
|
+
style: {
|
|
14
|
+
width: '25%',
|
|
15
|
+
display: 'inline-block'
|
|
16
|
+
}
|
|
17
|
+
}, /*#__PURE__*/_react["default"].createElement(_graphCard["default"], {
|
|
18
|
+
theme: 'dark',
|
|
19
|
+
loading: true,
|
|
20
|
+
minHeight: '387',
|
|
21
|
+
data: {
|
|
22
|
+
graphName: 'PieChart',
|
|
23
|
+
graphType: 'pie',
|
|
24
|
+
data: {
|
|
25
|
+
name: 'Ingest',
|
|
26
|
+
total: 223,
|
|
27
|
+
values: [{
|
|
28
|
+
name: 'Completed',
|
|
29
|
+
value: 'completed',
|
|
30
|
+
data: 120,
|
|
31
|
+
index: 1
|
|
32
|
+
}, {
|
|
33
|
+
name: 'Rejected',
|
|
34
|
+
value: 'rejected',
|
|
35
|
+
data: 33,
|
|
36
|
+
index: 2
|
|
37
|
+
}, {
|
|
38
|
+
name: 'Pending',
|
|
39
|
+
value: 'pending',
|
|
40
|
+
data: 70,
|
|
41
|
+
index: 3
|
|
42
|
+
}]
|
|
43
|
+
},
|
|
44
|
+
forPeriod: 'This Week',
|
|
45
|
+
totalCaption: 'Total Assets'
|
|
46
|
+
}
|
|
47
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
48
|
+
style: {
|
|
49
|
+
width: '25%',
|
|
50
|
+
display: 'inline-block'
|
|
51
|
+
}
|
|
52
|
+
}, /*#__PURE__*/_react["default"].createElement(_graphCard["default"], {
|
|
53
|
+
theme: 'dark',
|
|
54
|
+
loading: false,
|
|
55
|
+
onClickHandler: function onClickHandler(e) {
|
|
56
|
+
console.log('onClickHandler', e);
|
|
57
|
+
},
|
|
58
|
+
data: {
|
|
59
|
+
graph_name: 'PieChart',
|
|
60
|
+
graph_type: 'donut',
|
|
61
|
+
data: {
|
|
62
|
+
name: 'Ingest',
|
|
63
|
+
total: 223,
|
|
64
|
+
values: [{
|
|
65
|
+
name: 'Completed',
|
|
66
|
+
value: 'completed',
|
|
67
|
+
data: 120,
|
|
68
|
+
index: 1
|
|
69
|
+
}, {
|
|
70
|
+
name: 'Rejected',
|
|
71
|
+
value: 'rejected',
|
|
72
|
+
data: 33,
|
|
73
|
+
index: 2
|
|
74
|
+
}, {
|
|
75
|
+
name: 'Pending',
|
|
76
|
+
value: 'pending',
|
|
77
|
+
data: 70,
|
|
78
|
+
index: 3
|
|
79
|
+
}]
|
|
80
|
+
},
|
|
81
|
+
forPeriod: 'This Week',
|
|
82
|
+
totalCaption: 'Total Assets'
|
|
83
|
+
}
|
|
84
|
+
})))));
|
|
105
85
|
});
|
|
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
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
index: 3
|
|
183
|
-
}]
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
forPeriod: 'This Week',
|
|
187
|
-
totalCaption: 'Total Assets'
|
|
188
|
-
}
|
|
189
|
-
})
|
|
190
|
-
)
|
|
191
|
-
)
|
|
192
|
-
)
|
|
193
|
-
);
|
|
86
|
+
(0, _react2.storiesOf)('GraphCard').add('nexc', function () {
|
|
87
|
+
return /*#__PURE__*/_react["default"].createElement(_storyHelpers.Example, {
|
|
88
|
+
title: "default"
|
|
89
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
|
+
style: {
|
|
91
|
+
width: '25%',
|
|
92
|
+
display: 'inline-block'
|
|
93
|
+
}
|
|
94
|
+
}, /*#__PURE__*/_react["default"].createElement(_graphCard["default"], {
|
|
95
|
+
theme: 'nexc',
|
|
96
|
+
loading: true,
|
|
97
|
+
minHeight: '387',
|
|
98
|
+
data: {
|
|
99
|
+
graphName: 'PieChart',
|
|
100
|
+
graphType: 'pie',
|
|
101
|
+
data: {
|
|
102
|
+
name: 'Ingest',
|
|
103
|
+
total: 223,
|
|
104
|
+
values: [{
|
|
105
|
+
name: 'Completed',
|
|
106
|
+
value: 'completed',
|
|
107
|
+
data: 120,
|
|
108
|
+
index: 1
|
|
109
|
+
}, {
|
|
110
|
+
name: 'Rejected',
|
|
111
|
+
value: 'rejected',
|
|
112
|
+
data: 33,
|
|
113
|
+
index: 2
|
|
114
|
+
}, {
|
|
115
|
+
name: 'Pending',
|
|
116
|
+
value: 'pending',
|
|
117
|
+
data: 70,
|
|
118
|
+
index: 3
|
|
119
|
+
}]
|
|
120
|
+
},
|
|
121
|
+
forPeriod: 'This Week',
|
|
122
|
+
totalCaption: 'Total Assets'
|
|
123
|
+
}
|
|
124
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
125
|
+
style: {
|
|
126
|
+
width: '25%',
|
|
127
|
+
display: 'inline-block'
|
|
128
|
+
}
|
|
129
|
+
}, /*#__PURE__*/_react["default"].createElement(_graphCard["default"], {
|
|
130
|
+
theme: 'nexc',
|
|
131
|
+
loading: false,
|
|
132
|
+
onClickHandler: function onClickHandler(e) {
|
|
133
|
+
console.log('onClickHandler', e);
|
|
134
|
+
},
|
|
135
|
+
data: {
|
|
136
|
+
graph_name: 'PieChart',
|
|
137
|
+
graph_type: 'donut',
|
|
138
|
+
data: {
|
|
139
|
+
name: 'Ingest',
|
|
140
|
+
total: 223,
|
|
141
|
+
values: [{
|
|
142
|
+
name: 'Completed',
|
|
143
|
+
value: 'completed',
|
|
144
|
+
data: 120,
|
|
145
|
+
index: 1
|
|
146
|
+
}, {
|
|
147
|
+
name: 'Rejected',
|
|
148
|
+
value: 'rejected',
|
|
149
|
+
data: 33,
|
|
150
|
+
index: 2
|
|
151
|
+
}, {
|
|
152
|
+
name: 'Pending',
|
|
153
|
+
value: 'pending',
|
|
154
|
+
data: 70,
|
|
155
|
+
index: 3
|
|
156
|
+
}]
|
|
157
|
+
},
|
|
158
|
+
forPeriod: 'This Week',
|
|
159
|
+
totalCaption: 'Total Assets'
|
|
160
|
+
}
|
|
161
|
+
})))));
|
|
194
162
|
});
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
|
|
7
|
-
var _graphCard = require("./graphCard");
|
|
8
|
-
|
|
9
|
-
var _graphCard2 = _interopRequireDefault(_graphCard);
|
|
10
|
-
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
|
|
13
|
-
exports.default = _graphCard2.default;
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _graphCard = _interopRequireDefault(require("./graphCard"));
|
|
9
|
+
var _default = exports["default"] = _graphCard["default"];
|
|
@@ -1,88 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
-
|
|
21
|
-
function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
22
|
-
|
|
23
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
24
|
-
|
|
25
|
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
26
|
-
|
|
27
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
28
|
-
|
|
29
|
-
var Loader = function (_React$Component) {
|
|
30
|
-
_inherits(Loader, _React$Component);
|
|
31
|
-
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
12
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
13
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
16
|
+
var _templateObject;
|
|
17
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
18
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
19
|
+
var Loader = /*#__PURE__*/function (_React$Component) {
|
|
32
20
|
function Loader(props) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return _possibleConstructorReturn(this, (Loader.__proto__ || Object.getPrototypeOf(Loader)).call(this, props));
|
|
21
|
+
(0, _classCallCheck2["default"])(this, Loader);
|
|
22
|
+
return _callSuper(this, Loader, [props]);
|
|
36
23
|
}
|
|
37
|
-
|
|
38
|
-
|
|
24
|
+
(0, _inherits2["default"])(Loader, _React$Component);
|
|
25
|
+
return (0, _createClass2["default"])(Loader, [{
|
|
39
26
|
key: "render",
|
|
40
27
|
value: function render() {
|
|
41
|
-
return
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"div",
|
|
49
|
-
{ className: "loader" },
|
|
50
|
-
"Loading..."
|
|
51
|
-
),
|
|
52
|
-
this.props.showDefaultText ? _react2.default.createElement(
|
|
53
|
-
"div",
|
|
54
|
-
null,
|
|
55
|
-
this.props.showMainText ? _react2.default.createElement(
|
|
56
|
-
"div",
|
|
57
|
-
{ className: "main-text" },
|
|
58
|
-
this.props.mainText
|
|
59
|
-
) : null,
|
|
60
|
-
this.props.showSubText ? _react2.default.createElement(
|
|
61
|
-
"div",
|
|
62
|
-
{ className: "sub-text" },
|
|
63
|
-
this.props.subText
|
|
64
|
-
) : null
|
|
65
|
-
) : null,
|
|
66
|
-
this.props.children
|
|
67
|
-
)
|
|
68
|
-
);
|
|
28
|
+
return /*#__PURE__*/_react["default"].createElement(LoaderBox, this.props, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
29
|
+
className: "loader"
|
|
30
|
+
}, "Loading..."), this.props.showDefaultText ? /*#__PURE__*/_react["default"].createElement("div", null, this.props.showMainText ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
31
|
+
className: "main-text"
|
|
32
|
+
}, this.props.mainText) : null, this.props.showSubText ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
33
|
+
className: "sub-text"
|
|
34
|
+
}, this.props.subText) : null) : null, this.props.children));
|
|
69
35
|
}
|
|
70
36
|
}]);
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}(_react2.default.Component);
|
|
74
|
-
|
|
75
|
-
var LoaderBox = _styledComponents2.default.div(_templateObject, function (props) {
|
|
37
|
+
}(_react["default"].Component);
|
|
38
|
+
var LoaderBox = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n position: ", ";\n width: 100%;\n height: 100%;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n //background: #fff;\n opacity: ", ";\n top: -6px;\n left: 0px;\n font-family: \"SFUIText-light\";\n\n .main-text {\n font-size: 22px;\n font-family: \"SFUIText-Regular\";\n padding: 5px 20px 13px;\n }\n .loader,\n .loader:after {\n border-radius: 50%;\n width: 10em;\n height: 10em;\n }\n .loader {\n margin: 30px auto;\n font-size: 10px;\n position: relative;\n text-indent: -9999em;\n border-top: 1.1em solid #eaeaea;\n border-right: 1.1em solid #e3e3e3;\n border-bottom: 1.1em solid #e0e0e0;\n border-left: 1.1em solid #43ada7;\n -webkit-transform: translateZ(0);\n -ms-transform: translateZ(0);\n transform: translateZ(0);\n -webkit-animation: load8 1.1s infinite linear;\n animation: load8 1.1s infinite linear;\n }\n @-webkit-keyframes load8 {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n @keyframes load8 {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n"])), function (props) {
|
|
76
39
|
return props.position;
|
|
77
40
|
}, function (props) {
|
|
78
41
|
return props.opacity;
|
|
79
42
|
});
|
|
80
|
-
|
|
81
43
|
LoaderBox.defaultProps = {
|
|
82
44
|
position: "absolute",
|
|
83
45
|
opacity: "1"
|
|
84
46
|
};
|
|
85
|
-
|
|
86
47
|
Loader.defaultProps = {
|
|
87
48
|
mainText: "Loading...",
|
|
88
49
|
subText: "please wait",
|
|
@@ -90,5 +51,4 @@ Loader.defaultProps = {
|
|
|
90
51
|
showSubText: true,
|
|
91
52
|
showDefaultText: true
|
|
92
53
|
};
|
|
93
|
-
|
|
94
|
-
exports.default = Loader;
|
|
54
|
+
var _default = exports["default"] = Loader;
|