@unbxd-ui/unbxd-react-components 0.2.145-beta.4 → 0.2.145-beta.5
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/README.md +1 -1
- package/components/Accordian/Accordian.stories.js +140 -116
- package/components/Button/Button.stories.js +166 -59
- package/components/DataLoader/DataLoader.stories.js +176 -53
- package/components/Form/stories/Checkbox.stories.js +131 -38
- package/components/Form/stories/Dropdown.stories.js +321 -91
- package/components/Form/stories/FileUploader.stories.js +177 -18
- package/components/Form/stories/Input.stories.js +112 -0
- package/components/Form/stories/RangeSlider.stories.js +160 -62
- package/components/Form/stories/SearchableDropdown.stories.js +189 -0
- package/components/Form/stories/ServerPaginatedDropdown.stories.js +370 -0
- package/components/Form/stories/Textarea.stories.js +112 -32
- package/components/Form/stories/Toggle.stories.js +191 -13
- package/components/InlineModal/InlineModal.stories.js +238 -43
- package/components/List/List.stories.js +238 -0
- package/components/Modal/Modal.stories.js +274 -36
- package/components/NotificationComponent/NotificationComponent.stories.js +169 -18
- package/components/ProgressBar/ProgressBar.css +0 -0
- package/components/ProgressBar/ProgressBar.stories.js +202 -9
- package/components/TabsComponent/TabsComponent.stories.js +290 -52
- package/components/Tooltip/Tooltip.stories.js +208 -14
- package/package.json +24 -18
- package/components/Button/DropdownButton.stories.js +0 -48
- package/components/Form/stories/DragDropFileUploader.stories.js +0 -25
- package/components/Form/stories/FormDefault.stories.js +0 -114
- package/components/Form/stories/RadioList.stories.js +0 -52
- package/components/Form/stories/TextInput.stories.js +0 -75
- package/components/Form/stories/form.stories.js +0 -232
- package/components/List/list.stories.js +0 -35
- package/components/Table/Table.stories.js +0 -197
- package/core/dataLoader.stories.js +0 -118
|
@@ -3,25 +3,176 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.
|
|
6
|
+
exports["default"] = exports.WithHTMLContent = exports.WithCloseButton = exports.Warning = exports.Success = exports.MultipleNotifications = exports.LongContent = exports.Info = exports.Error = exports.CustomFadeOut = exports.AutoUpdating = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _NotificationComponent = _interopRequireDefault(require("./NotificationComponent"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
appearance:
|
|
25
|
-
|
|
26
|
-
|
|
10
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
11
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
15
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
16
|
+
var meta = {
|
|
17
|
+
title: 'Components/NotificationComponent',
|
|
18
|
+
component: _NotificationComponent["default"],
|
|
19
|
+
parameters: {
|
|
20
|
+
layout: 'centered'
|
|
21
|
+
},
|
|
22
|
+
tags: ['autodocs'],
|
|
23
|
+
argTypes: {
|
|
24
|
+
appearance: {
|
|
25
|
+
control: 'select',
|
|
26
|
+
options: ['success', 'error', 'warning', 'info'],
|
|
27
|
+
description: 'The appearance/type of the notification'
|
|
28
|
+
},
|
|
29
|
+
className: {
|
|
30
|
+
control: 'text',
|
|
31
|
+
description: 'Additional CSS classes for the notification'
|
|
32
|
+
},
|
|
33
|
+
messageId: {
|
|
34
|
+
control: 'number',
|
|
35
|
+
description: 'Unique ID to represent this particular message'
|
|
36
|
+
},
|
|
37
|
+
fadeOut: {
|
|
38
|
+
control: 'boolean',
|
|
39
|
+
description: 'Whether the message should fade out automatically'
|
|
40
|
+
},
|
|
41
|
+
fadeOutTime: {
|
|
42
|
+
control: 'number',
|
|
43
|
+
description: 'Time in milliseconds before the notification fades out'
|
|
44
|
+
},
|
|
45
|
+
showClose: {
|
|
46
|
+
control: 'boolean',
|
|
47
|
+
description: 'Whether to show a close button on the notification'
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var _default = exports["default"] = meta; // Basic notifications for different appearances
|
|
52
|
+
var Success = exports.Success = {
|
|
53
|
+
args: {
|
|
54
|
+
children: 'Operation completed successfully!',
|
|
55
|
+
appearance: 'success'
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
var Error = exports.Error = {
|
|
59
|
+
args: {
|
|
60
|
+
children: 'An error occurred while processing your request.',
|
|
61
|
+
appearance: 'error',
|
|
62
|
+
fadeOut: false
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
var Warning = exports.Warning = {
|
|
66
|
+
args: {
|
|
67
|
+
children: 'Please review your changes before proceeding.',
|
|
68
|
+
appearance: 'warning',
|
|
69
|
+
fadeOut: false
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
var Info = exports.Info = {
|
|
73
|
+
args: {
|
|
74
|
+
children: 'Your session will expire in 5 minutes.',
|
|
75
|
+
appearance: 'info',
|
|
76
|
+
fadeOut: false
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// Notification with custom fadeout time
|
|
81
|
+
var CustomFadeOut = exports.CustomFadeOut = {
|
|
82
|
+
args: {
|
|
83
|
+
children: 'This message will fade out in 5 seconds',
|
|
84
|
+
appearance: 'success',
|
|
85
|
+
fadeOut: true,
|
|
86
|
+
fadeOutTime: 5000
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// Notification with close button
|
|
91
|
+
var WithCloseButton = exports.WithCloseButton = {
|
|
92
|
+
args: {
|
|
93
|
+
children: 'Click the X button to close this notification',
|
|
94
|
+
appearance: 'info',
|
|
95
|
+
showClose: true,
|
|
96
|
+
fadeOut: false
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
// Long content notification
|
|
101
|
+
var LongContent = exports.LongContent = {
|
|
102
|
+
args: {
|
|
103
|
+
children: 'This is a notification with a longer content that might wrap to multiple lines. It demonstrates how the component handles larger amounts of text while maintaining its appearance and readability.',
|
|
104
|
+
appearance: 'info',
|
|
105
|
+
showClose: true,
|
|
106
|
+
fadeOut: false
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
// Notification with HTML content
|
|
111
|
+
var WithHTMLContent = exports.WithHTMLContent = {
|
|
112
|
+
args: {
|
|
113
|
+
children: /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("strong", null, "Important Update"), /*#__PURE__*/_react["default"].createElement("p", null, "This notification contains ", /*#__PURE__*/_react["default"].createElement("em", null, "formatted"), " text and ", /*#__PURE__*/_react["default"].createElement("a", {
|
|
114
|
+
href: "#",
|
|
115
|
+
style: {
|
|
116
|
+
color: 'inherit',
|
|
117
|
+
textDecoration: 'underline'
|
|
118
|
+
}
|
|
119
|
+
}, "links"), ".")),
|
|
120
|
+
appearance: 'info',
|
|
121
|
+
showClose: true,
|
|
122
|
+
fadeOut: false
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
// Multiple notifications demo
|
|
127
|
+
var MultipleNotifications = exports.MultipleNotifications = {
|
|
128
|
+
render: function render() {
|
|
129
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
|
+
style: {
|
|
131
|
+
display: 'flex',
|
|
132
|
+
flexDirection: 'column',
|
|
133
|
+
gap: '10px'
|
|
134
|
+
}
|
|
135
|
+
}, /*#__PURE__*/_react["default"].createElement(_NotificationComponent["default"], {
|
|
136
|
+
appearance: "success"
|
|
137
|
+
}, "Success Message"), /*#__PURE__*/_react["default"].createElement(_NotificationComponent["default"], {
|
|
138
|
+
appearance: "error"
|
|
139
|
+
}, "Error Message"), /*#__PURE__*/_react["default"].createElement(_NotificationComponent["default"], {
|
|
140
|
+
appearance: "warning"
|
|
141
|
+
}, "Warning Message"), /*#__PURE__*/_react["default"].createElement(_NotificationComponent["default"], {
|
|
142
|
+
appearance: "info"
|
|
143
|
+
}, "Info Message"));
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
// Auto-updating notification demo
|
|
148
|
+
var AutoUpdating = exports.AutoUpdating = {
|
|
149
|
+
render: function render() {
|
|
150
|
+
var _React$useState = _react["default"].useState(0),
|
|
151
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
152
|
+
count = _React$useState2[0],
|
|
153
|
+
setCount = _React$useState2[1];
|
|
154
|
+
var _React$useState3 = _react["default"].useState(1),
|
|
155
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
156
|
+
messageId = _React$useState4[0],
|
|
157
|
+
setMessageId = _React$useState4[1];
|
|
158
|
+
_react["default"].useEffect(function () {
|
|
159
|
+
var timer = setInterval(function () {
|
|
160
|
+
setCount(function (prev) {
|
|
161
|
+
return prev + 1;
|
|
162
|
+
});
|
|
163
|
+
setMessageId(function (prev) {
|
|
164
|
+
return prev + 1;
|
|
165
|
+
});
|
|
166
|
+
}, 3000);
|
|
167
|
+
return function () {
|
|
168
|
+
return clearInterval(timer);
|
|
169
|
+
};
|
|
170
|
+
}, []);
|
|
171
|
+
return /*#__PURE__*/_react["default"].createElement(_NotificationComponent["default"], {
|
|
172
|
+
appearance: "info",
|
|
173
|
+
messageId: messageId,
|
|
174
|
+
fadeOut: true,
|
|
175
|
+
fadeOutTime: 2500
|
|
176
|
+
}, "This message has updated ", count, " times");
|
|
177
|
+
}
|
|
27
178
|
};
|
|
File without changes
|
|
@@ -3,17 +3,210 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.
|
|
6
|
+
exports["default"] = exports.WithLabel = exports.States = exports.Indeterminate = exports.Heights = exports.Default = exports.CustomStyled = exports.Animated = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _ProgressBar = _interopRequireDefault(require("./ProgressBar"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
11
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
15
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
16
|
+
var meta = {
|
|
17
|
+
title: 'Components/ProgressBar',
|
|
18
|
+
component: _ProgressBar["default"],
|
|
19
|
+
parameters: {
|
|
20
|
+
layout: 'centered'
|
|
21
|
+
},
|
|
22
|
+
tags: ['autodocs'],
|
|
23
|
+
argTypes: {
|
|
24
|
+
progress: {
|
|
25
|
+
control: {
|
|
26
|
+
type: 'range',
|
|
27
|
+
min: 0,
|
|
28
|
+
max: 100,
|
|
29
|
+
step: 1
|
|
30
|
+
},
|
|
31
|
+
description: 'Progress value (0-100)'
|
|
32
|
+
},
|
|
33
|
+
height: {
|
|
34
|
+
control: 'text',
|
|
35
|
+
description: 'Height of the progress bar (CSS value)'
|
|
36
|
+
},
|
|
37
|
+
className: {
|
|
38
|
+
control: 'text',
|
|
39
|
+
description: 'Additional CSS classes'
|
|
40
|
+
}
|
|
41
|
+
}
|
|
12
42
|
};
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
43
|
+
var _default = exports["default"] = meta; // Basic progress bar
|
|
44
|
+
var Default = exports.Default = {
|
|
45
|
+
render: function render() {
|
|
46
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
47
|
+
style: {
|
|
48
|
+
width: '300px'
|
|
49
|
+
}
|
|
50
|
+
}, /*#__PURE__*/_react["default"].createElement(_ProgressBar["default"], {
|
|
51
|
+
progress: 60,
|
|
52
|
+
height: "20px"
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
// Different heights
|
|
58
|
+
var Heights = exports.Heights = {
|
|
59
|
+
render: function render() {
|
|
60
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
|
+
style: {
|
|
62
|
+
display: 'flex',
|
|
63
|
+
flexDirection: 'column',
|
|
64
|
+
gap: '20px',
|
|
65
|
+
width: '300px'
|
|
66
|
+
}
|
|
67
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("p", null, "Thin (8px)"), /*#__PURE__*/_react["default"].createElement(_ProgressBar["default"], {
|
|
68
|
+
progress: 75,
|
|
69
|
+
height: "8px"
|
|
70
|
+
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("p", null, "Default (20px)"), /*#__PURE__*/_react["default"].createElement(_ProgressBar["default"], {
|
|
71
|
+
progress: 75,
|
|
72
|
+
height: "20px"
|
|
73
|
+
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("p", null, "Thick (32px)"), /*#__PURE__*/_react["default"].createElement(_ProgressBar["default"], {
|
|
74
|
+
progress: 75,
|
|
75
|
+
height: "32px"
|
|
76
|
+
})));
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// Different progress states
|
|
81
|
+
var States = exports.States = {
|
|
82
|
+
render: function render() {
|
|
83
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
|
+
style: {
|
|
85
|
+
display: 'flex',
|
|
86
|
+
flexDirection: 'column',
|
|
87
|
+
gap: '20px',
|
|
88
|
+
width: '300px'
|
|
89
|
+
}
|
|
90
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("p", null, "Low Progress (25%)"), /*#__PURE__*/_react["default"].createElement(_ProgressBar["default"], {
|
|
91
|
+
progress: 25,
|
|
92
|
+
height: "20px",
|
|
93
|
+
className: "progress-low"
|
|
94
|
+
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("p", null, "Medium Progress (50%)"), /*#__PURE__*/_react["default"].createElement(_ProgressBar["default"], {
|
|
95
|
+
progress: 50,
|
|
96
|
+
height: "20px",
|
|
97
|
+
className: "progress-medium"
|
|
98
|
+
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("p", null, "High Progress (75%)"), /*#__PURE__*/_react["default"].createElement(_ProgressBar["default"], {
|
|
99
|
+
progress: 75,
|
|
100
|
+
height: "20px",
|
|
101
|
+
className: "progress-high"
|
|
102
|
+
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("p", null, "Complete (100%)"), /*#__PURE__*/_react["default"].createElement(_ProgressBar["default"], {
|
|
103
|
+
progress: 100,
|
|
104
|
+
height: "20px",
|
|
105
|
+
className: "progress-complete"
|
|
106
|
+
})));
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
// Animated progress
|
|
111
|
+
var Animated = exports.Animated = {
|
|
112
|
+
render: function render() {
|
|
113
|
+
var _React$useState = _react["default"].useState(0),
|
|
114
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
115
|
+
progress = _React$useState2[0],
|
|
116
|
+
setProgress = _React$useState2[1];
|
|
117
|
+
_react["default"].useEffect(function () {
|
|
118
|
+
var timer = setInterval(function () {
|
|
119
|
+
setProgress(function (oldProgress) {
|
|
120
|
+
var newProgress = oldProgress + 1;
|
|
121
|
+
if (newProgress === 100) {
|
|
122
|
+
clearInterval(timer);
|
|
123
|
+
}
|
|
124
|
+
return Math.min(newProgress, 100);
|
|
125
|
+
});
|
|
126
|
+
}, 100);
|
|
127
|
+
return function () {
|
|
128
|
+
clearInterval(timer);
|
|
129
|
+
};
|
|
130
|
+
}, []);
|
|
131
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
|
+
style: {
|
|
133
|
+
width: '300px'
|
|
134
|
+
}
|
|
135
|
+
}, /*#__PURE__*/_react["default"].createElement(_ProgressBar["default"], {
|
|
136
|
+
progress: progress,
|
|
137
|
+
height: "20px"
|
|
138
|
+
}), /*#__PURE__*/_react["default"].createElement("p", {
|
|
139
|
+
style: {
|
|
140
|
+
textAlign: 'center',
|
|
141
|
+
marginTop: '10px'
|
|
142
|
+
}
|
|
143
|
+
}, progress, "%"));
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
// Custom styled progress bar
|
|
148
|
+
var CustomStyled = exports.CustomStyled = {
|
|
149
|
+
render: function render() {
|
|
150
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
151
|
+
style: {
|
|
152
|
+
display: 'flex',
|
|
153
|
+
flexDirection: 'column',
|
|
154
|
+
gap: '20px',
|
|
155
|
+
width: '300px'
|
|
156
|
+
}
|
|
157
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("p", null, "Success Theme"), /*#__PURE__*/_react["default"].createElement(_ProgressBar["default"], {
|
|
158
|
+
progress: 75,
|
|
159
|
+
height: "20px",
|
|
160
|
+
className: "custom-success"
|
|
161
|
+
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("p", null, "Warning Theme"), /*#__PURE__*/_react["default"].createElement(_ProgressBar["default"], {
|
|
162
|
+
progress: 75,
|
|
163
|
+
height: "20px",
|
|
164
|
+
className: "custom-warning"
|
|
165
|
+
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("p", null, "Error Theme"), /*#__PURE__*/_react["default"].createElement(_ProgressBar["default"], {
|
|
166
|
+
progress: 75,
|
|
167
|
+
height: "20px",
|
|
168
|
+
className: "custom-error"
|
|
169
|
+
})));
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
// Progress bar with label
|
|
174
|
+
var WithLabel = exports.WithLabel = {
|
|
175
|
+
render: function render() {
|
|
176
|
+
var progress = 65;
|
|
177
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
178
|
+
style: {
|
|
179
|
+
width: '300px'
|
|
180
|
+
}
|
|
181
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
182
|
+
style: {
|
|
183
|
+
display: 'flex',
|
|
184
|
+
justifyContent: 'space-between',
|
|
185
|
+
marginBottom: '5px'
|
|
186
|
+
}
|
|
187
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, "Uploading..."), /*#__PURE__*/_react["default"].createElement("span", null, progress, "%")), /*#__PURE__*/_react["default"].createElement(_ProgressBar["default"], {
|
|
188
|
+
progress: progress,
|
|
189
|
+
height: "20px"
|
|
190
|
+
}));
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
// Indeterminate progress
|
|
195
|
+
var Indeterminate = exports.Indeterminate = {
|
|
196
|
+
render: function render() {
|
|
197
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
198
|
+
style: {
|
|
199
|
+
width: '300px'
|
|
200
|
+
}
|
|
201
|
+
}, /*#__PURE__*/_react["default"].createElement(_ProgressBar["default"], {
|
|
202
|
+
progress: 100,
|
|
203
|
+
height: "20px",
|
|
204
|
+
className: "indeterminate"
|
|
205
|
+
}), /*#__PURE__*/_react["default"].createElement("p", {
|
|
206
|
+
style: {
|
|
207
|
+
textAlign: 'center',
|
|
208
|
+
marginTop: '10px'
|
|
209
|
+
}
|
|
210
|
+
}, "Loading..."));
|
|
211
|
+
}
|
|
19
212
|
};
|