beem-component 1.8.2 → 1.8.3
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/.babelrc +17 -0
- package/.eslintrc +16 -27
- package/.prettierrc +3 -2
- package/dist/components/Accordion/Accordion.js +14 -8
- package/dist/components/Avatars/avatars.js +3 -3
- package/dist/components/BannerCard/bannerCards.js +8 -6
- package/dist/components/ButtonGroup/buttonGroup.js +37 -0
- package/dist/components/Buttons/buttonAlertIcons.js +3 -3
- package/dist/components/Buttons/buttonDropdown copy.js +51 -50
- package/dist/components/Buttons/buttonDropdown.js +2 -2
- package/dist/components/Buttons/buttonIconsOnly.js +6 -4
- package/dist/components/Buttons/buttons.js +12 -6
- package/dist/components/Cards/cards.js +12 -6
- package/dist/components/ChatComponents/ChatBody/FeedPostComments.js +15 -7
- package/dist/components/ChatComponents/ChatBody/chatBody.js +33 -13
- package/dist/components/ChatComponents/ChatBody/sessionDetails.js +3 -3
- package/dist/components/ChatComponents/ChatBody/sessionTimeline.js +6 -4
- package/dist/components/ChatComponents/ChatHeader/chatHeader.js +3 -3
- package/dist/components/ChatComponents/ColorPicker/colorPicker.js +3 -3
- package/dist/components/ChatComponents/ContactCards/contactCards.js +14 -8
- package/dist/components/ChatComponents/FormAccordion/FormAccordion.js +12 -6
- package/dist/components/ChatComponents/InfoTab/infoTab.js +9 -5
- package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.js +3 -3
- package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.js +9 -5
- package/dist/components/Chats/chat.js +47 -29
- package/dist/components/Chats/chatInput.js +16 -8
- package/dist/components/Chats/chatwrapper.js +18 -8
- package/dist/components/Checkbox/checkboxToggler.js +12 -6
- package/dist/components/Checkbox/checkboxToggler.stories.js +2 -2
- package/dist/components/InputDatePicker.js +53 -0
- package/dist/components/Jumbotron/Jumbotron.js +18 -7
- package/dist/components/Lists/listBox.js +3 -3
- package/dist/components/Lists/listBox.stories.js +2 -2
- package/dist/components/Lists/listheader.js +3 -3
- package/dist/components/Lists/rowLabels.js +12 -6
- package/dist/components/Lists/rowLabels.stories.js +4 -1
- package/dist/components/Loader/loader.js +3 -3
- package/dist/components/MainWrapper/index.js +3 -3
- package/dist/components/MessageCounter/messageCounter.js +3 -3
- package/dist/components/Modals/modal.js +33 -21
- package/dist/components/Modals/modals.stories.js +2 -2
- package/dist/components/NoteBar/noteBar.js +5 -5
- package/dist/components/PaymentBox/paymentBox.js +12 -6
- package/dist/components/PerformanceIndicator/performanceIndicator.js +3 -3
- package/dist/components/Pills/pills.js +5 -5
- package/dist/components/ProfileIcon/ProfileIcon.js +12 -6
- package/dist/components/ProgressBar/progressbar.js +12 -6
- package/dist/components/ProgressRing/progressRing.js +14 -8
- package/dist/components/RouteLink/link.js +3 -3
- package/dist/components/ScrollBar/scrollBar.js +9 -5
- package/dist/components/SuperFluid/Content/index.js +3 -3
- package/dist/components/SuperFluid/ContentTitle.js/index.js +12 -6
- package/dist/components/SuperFluid/SegmentCard/index.js +20 -8
- package/dist/components/Tabs/tabs.js +3 -3
- package/dist/components/Tags/tags.js +5 -5
- package/dist/components/chatHeader.js +15 -7
- package/dist/components/checkbox.js +15 -7
- package/dist/components/contacts.js +33 -13
- package/dist/components/dropdown.js +25 -13
- package/dist/components/dropdownButton.js +9 -5
- package/dist/components/dropdownItems.js +22 -10
- package/dist/components/examples/App.js +8 -8
- package/dist/components/examples/chatBodyExample.js +1 -1
- package/dist/components/examples/selectExample.js +5 -5
- package/dist/components/globalStyles.js +1 -3
- package/dist/components/index.js +7 -0
- package/dist/components/input.js +9 -5
- package/dist/components/logo.js +3 -3
- package/dist/components/navbar.js +23 -9
- package/dist/components/search.js +17 -12
- package/dist/components/shadow.js +1 -1
- package/dist/components/wrapper.js +6 -4
- package/package.json +31 -16
- package/src/App.js +35 -265
- package/src/examples/AlertIcons.js +10 -5
- package/src/examples/Avatars.js +3 -2
- package/src/examples/Buttons.js +7 -10
- package/src/examples/Chat.js +9 -9
- package/src/examples/Input.js +79 -70
- package/src/examples/Logo.js +2 -2
- package/src/examples/Navbar.js +12 -12
- package/src/examples/Search.js +3 -2
- package/src/examples/SideBar.js +11 -11
- package/src/examples/Tags.js +3 -3
- package/src/lib/components/ButtonGroup/buttonGroup.js +38 -0
- package/src/lib/components/Buttons/buttonDropdown copy.js +51 -54
- package/src/lib/components/Buttons/buttonDropdown.js +6 -6
- package/src/lib/components/Chats/chat.js +23 -23
- package/src/lib/components/Chats/chatInput.js +8 -8
- package/src/lib/components/Chats/chatwrapper.js +2 -2
- package/src/lib/components/Checkbox/checkboxToggler.stories.js +0 -1
- package/src/lib/components/InputDatePicker.js +45 -0
- package/src/lib/components/chatHeader.js +8 -3
- package/src/lib/components/contacts.js +3 -3
- package/src/lib/components/dropdown.js +7 -7
- package/src/lib/components/dropdownItems.js +6 -6
- package/src/lib/components/examples/App.js +53 -43
- package/src/lib/components/examples/InfoAccordion.js +6 -5
- package/src/lib/components/examples/chatBodyExample.js +5 -5
- package/src/lib/components/examples/selectExample.js +7 -7
- package/src/lib/components/index-copy.js +49 -49
- package/src/lib/components/index.js +2 -0
- package/src/lib/components/logo.js +2 -2
- package/src/lib/components/navbar.js +5 -5
- package/src/lib/components/search.js +10 -11
- package/src/lib/components/shadow.js +1 -1
- package/src/lib/components/wrapper.js +1 -2
- package/babel.config.js +0 -11
package/src/App.js
CHANGED
|
@@ -1,273 +1,43 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import DatePicker from 'react-datepicker';
|
|
3
|
+
import CounterInput from 'react-bootstrap-counter';
|
|
4
|
+
import TimePicker from 'react-time-picker';
|
|
5
|
+
import { GlobalStyle } from './lib/components';
|
|
6
|
+
import BmButtonGroup from './lib/components/ButtonGroup/buttonGroup';
|
|
7
|
+
import InputDatePicker from './lib/components/InputDatePicker';
|
|
8
|
+
|
|
9
|
+
import 'react-datepicker/dist/react-datepicker.css';
|
|
10
|
+
|
|
11
|
+
const App = () => {
|
|
12
|
+
const [item, setItem] = useState();
|
|
13
|
+
const Occurance = ['Now', 'Later', 'Recurring'];
|
|
14
|
+
const [value, onChange] = useState('10:00');
|
|
15
|
+
const [counter, setCounter] = useState('1');
|
|
6
16
|
|
|
7
|
-
// BmCheckboxToggle,
|
|
8
|
-
} from './lib/components';
|
|
9
|
-
import BmJumbotron from './lib/components/Jumbotron/Jumbotron';
|
|
10
|
-
|
|
11
|
-
// const Chat = () => {
|
|
12
|
-
// // const [test, setTest] = useState(false);
|
|
13
|
-
// // const [test1, setTest1] = useState(false);
|
|
14
|
-
|
|
15
|
-
// const image =
|
|
16
|
-
// 'https://scontent.fnbo1-1.fna.fbcdn.net/v/t39.30808-6/298879098_10161724947807542_5252175668064009159_n.jpg?stp=dst-jpg_p720x720&_nc_cat=100&ccb=1-7&_nc_sid=9e2e56&_nc_ohc=9uDHII_ETpUAX_KNS3Y&_nc_ht=scontent.fnbo1-1.fna&edm=APCh5TUEAAAA&oh=00_AT8sOJmRGYwgXF48_GPOCWx1soil0yK8V3AiEPkce9WJIw&oe=6304120B';
|
|
17
|
-
// return (
|
|
18
|
-
// <>
|
|
19
|
-
// <GlobalStyle />
|
|
20
|
-
// <BmProfileIcon channel="google_business_messaging" />
|
|
21
|
-
// <BmChat>
|
|
22
|
-
// <BmChat.Body>
|
|
23
|
-
// <BmChat.Details
|
|
24
|
-
// state="inbound"
|
|
25
|
-
// session="sms"
|
|
26
|
-
// displayTime={<p>12:00pm</p>}
|
|
27
|
-
// status="sent"
|
|
28
|
-
// sessionTimeline={{ message: <p>12:00pm</p> }}
|
|
29
|
-
// // sessionDetails={{
|
|
30
|
-
// // message: <h3>Session Message</h3>,
|
|
31
|
-
// // time: <p>12:00pm</p>,
|
|
32
|
-
// // }}
|
|
33
|
-
// feedPostComments={{
|
|
34
|
-
// header: <p>Comment Reply</p>,
|
|
35
|
-
// body: {
|
|
36
|
-
// link: <p>This is an outbound link</p>,
|
|
37
|
-
// image,
|
|
38
|
-
// },
|
|
39
|
-
// footer: <p>This is a Footer</p>,
|
|
40
|
-
// state: 'inbound',
|
|
41
|
-
// status: 'comment',
|
|
42
|
-
// }}
|
|
43
|
-
// />
|
|
44
|
-
// <BmChat.Details
|
|
45
|
-
// state="inbound"
|
|
46
|
-
// session="live"
|
|
47
|
-
// displayTime={<p>10:00am</p>}
|
|
48
|
-
// sessionTimeline={{ message: <p>12:00pm</p> }}
|
|
49
|
-
// status="failed"
|
|
50
|
-
// fileName={<p>file.csv</p>}
|
|
51
|
-
// file={image}
|
|
52
|
-
// />
|
|
53
|
-
// {/* <BmChat.Details
|
|
54
|
-
// state="inbound"
|
|
55
|
-
// session="sms"
|
|
56
|
-
// displayTime={<p>12:00pm</p>}
|
|
57
|
-
// status="sent"
|
|
58
|
-
// sessionTimeline={{ message: <p>12:00pm</p> }}
|
|
59
|
-
// sessionDetails={{
|
|
60
|
-
// message: <h3>Session Message</h3>,
|
|
61
|
-
// time: <p>12:00pm</p>,
|
|
62
|
-
// }}
|
|
63
|
-
// feedPostComments={{
|
|
64
|
-
// header: <p>Comment Reply</p>,
|
|
65
|
-
// body: {
|
|
66
|
-
// link: <p>This is an inbound link</p>,
|
|
67
|
-
// image,
|
|
68
|
-
// },
|
|
69
|
-
// footer: <p>This is a Footer</p>,
|
|
70
|
-
// state: 'inbound',
|
|
71
|
-
// status: 'comment',
|
|
72
|
-
// }}
|
|
73
|
-
// />
|
|
74
|
-
// <BmChat.Details
|
|
75
|
-
// state="outbound"
|
|
76
|
-
// session="sms"
|
|
77
|
-
// displayTime={<p>12:00pm</p>}
|
|
78
|
-
// status="sent"
|
|
79
|
-
// sessionTimeline={{ message: <p>12:00pm</p> }}
|
|
80
|
-
// sessionDetails={{
|
|
81
|
-
// message: <h3>Session Message</h3>,
|
|
82
|
-
// time: <p>12:00pm</p>,
|
|
83
|
-
// }}
|
|
84
|
-
// feedPostComments={{
|
|
85
|
-
// header: <p>Story Reply</p>,
|
|
86
|
-
// body: {
|
|
87
|
-
// link: <p>This is an outbound link</p>,
|
|
88
|
-
// image,
|
|
89
|
-
// },
|
|
90
|
-
// footer: <p>This is a Footer</p>,
|
|
91
|
-
// state: 'outbound',
|
|
92
|
-
// status: 'story',
|
|
93
|
-
// }}
|
|
94
|
-
// />
|
|
95
|
-
// <BmChat.Details
|
|
96
|
-
// agentName="Agent Name"
|
|
97
|
-
// state="outbound"
|
|
98
|
-
// session="live"
|
|
99
|
-
// displayTime={<p>12:00pm</p>}
|
|
100
|
-
// status="sent"
|
|
101
|
-
// sessionDetails={{
|
|
102
|
-
// message: <h3>Session Message</h3>,
|
|
103
|
-
// time: <p>12:00pm</p>,
|
|
104
|
-
// }}
|
|
105
|
-
// >
|
|
106
|
-
// <p>Outbound Text Message2</p>
|
|
107
|
-
// </BmChat.Details>
|
|
108
|
-
|
|
109
|
-
// <BmChat.Details
|
|
110
|
-
// agentName="Test Agent"
|
|
111
|
-
// state="outbound"
|
|
112
|
-
// session="live"
|
|
113
|
-
// displayTime={<p>12:00pm</p>}
|
|
114
|
-
// status="sent"
|
|
115
|
-
// sessionDetails={{
|
|
116
|
-
// message: <h3>Session Message</h3>,
|
|
117
|
-
// time: <p>12:00pm</p>,
|
|
118
|
-
// }}
|
|
119
|
-
// >
|
|
120
|
-
// <p>Outbound Text Message2</p>
|
|
121
|
-
// </BmChat.Details>
|
|
122
|
-
|
|
123
|
-
// <BmChat.Details
|
|
124
|
-
// state="inbound"
|
|
125
|
-
// session="sms"
|
|
126
|
-
// displayTime={<p>12:00pm</p>}
|
|
127
|
-
// status="sent"
|
|
128
|
-
// sessionTimeline={{ message: <p>12:00pm</p> }}
|
|
129
|
-
// sessionDetails={{
|
|
130
|
-
// message: <h3>Session Message</h3>,
|
|
131
|
-
// time: <p>12:00pm</p>,
|
|
132
|
-
// }}
|
|
133
|
-
// feedPostComments={{
|
|
134
|
-
// header: <p>Story Reply</p>,
|
|
135
|
-
// body: {
|
|
136
|
-
// link: <p>This is an inbound link</p>,
|
|
137
|
-
// image,
|
|
138
|
-
// },
|
|
139
|
-
// footer: <p>This is a Footer</p>,
|
|
140
|
-
// state: 'inbound',
|
|
141
|
-
// status: 'story',
|
|
142
|
-
// }}
|
|
143
|
-
// />
|
|
144
|
-
// <BmChat.Details
|
|
145
|
-
// state="inbound"
|
|
146
|
-
// session="live"
|
|
147
|
-
// displayTime={<p>12:00pm</p>}
|
|
148
|
-
// status="sent"
|
|
149
|
-
// sessionTimeline={{ message: <p>12:00pm</p> }}
|
|
150
|
-
// fileName={<p>chat.png</p>}
|
|
151
|
-
// src={image}
|
|
152
|
-
// sessionDetails={{
|
|
153
|
-
// message: <h3>Session Message</h3>,
|
|
154
|
-
// time: <p>12:00pm</p>,
|
|
155
|
-
// }}
|
|
156
|
-
// />
|
|
157
|
-
// <BmChat.Details
|
|
158
|
-
// state="inbound"
|
|
159
|
-
// session="live"
|
|
160
|
-
// displayTime={<p>10:00am</p>}
|
|
161
|
-
// sessionTimeline={{ message: <p>12:00pm</p> }}
|
|
162
|
-
// status="failed"
|
|
163
|
-
// fileName={<p>file.csv</p>}
|
|
164
|
-
// file={image}
|
|
165
|
-
// />
|
|
166
|
-
// <BmChat.Details
|
|
167
|
-
// state="outbound"
|
|
168
|
-
// session="bot"
|
|
169
|
-
// sessionTimeline={{ message: <p>12:00pm</p> }}
|
|
170
|
-
// displayTime={<p>12:00pm</p>}
|
|
171
|
-
// status="sent"
|
|
172
|
-
// >
|
|
173
|
-
// <p>Outbound Text Message</p>
|
|
174
|
-
// </BmChat.Details>
|
|
175
|
-
// <BmChat.Details
|
|
176
|
-
// state="outbound"
|
|
177
|
-
// session="live"
|
|
178
|
-
// sessionTimeline={{ message: <p>12:00pm</p> }}
|
|
179
|
-
// displayTime={<p>12:00pm</p>}
|
|
180
|
-
// status="sent"
|
|
181
|
-
// fileName={<p>chat.png</p>}
|
|
182
|
-
// src={image}
|
|
183
|
-
// />
|
|
184
|
-
// <BmChat.Details
|
|
185
|
-
// state="outbound"
|
|
186
|
-
// session="live"
|
|
187
|
-
// displayTime={<p>10:00am</p>}
|
|
188
|
-
// status="failed"
|
|
189
|
-
// fileName={<p>file.csv</p>}
|
|
190
|
-
// sessionTimeline={{ message: <p>12:00pm</p> }}
|
|
191
|
-
// file={image}
|
|
192
|
-
// link={image}
|
|
193
|
-
// onDownload={() => {
|
|
194
|
-
// alert('hello');
|
|
195
|
-
// }}
|
|
196
|
-
// /> */}
|
|
197
|
-
// </BmChat.Body>
|
|
198
|
-
// <BmChat.Footer>
|
|
199
|
-
// <div className="chat-footer">
|
|
200
|
-
// <BmIcons icon={<EmojiEmotionsIcon />} size="xlarge" />
|
|
201
|
-
// <BmIcons icon={<AttachFileIcon />} size="xlarge" />
|
|
202
|
-
// <BmIcons icon={<QuickreplyIcon />} size="xlarge" />
|
|
203
|
-
// <BmInput placeholder="Enter Message" style={{ flex: '1' }} />
|
|
204
|
-
// <BmIcons icon={<SendIcon />} size="xlarge" />
|
|
205
|
-
// </div>
|
|
206
|
-
// </BmChat.Footer>
|
|
207
|
-
// </BmChat>
|
|
208
|
-
|
|
209
|
-
// {/* <BmCheckboxToggle
|
|
210
|
-
// key="test"
|
|
211
|
-
// checked={test}
|
|
212
|
-
// onChange={(check) => {
|
|
213
|
-
// console.log(check);
|
|
214
|
-
// setTest(check);
|
|
215
|
-
// }}
|
|
216
|
-
// />
|
|
217
|
-
|
|
218
|
-
// <BmCheckboxToggle
|
|
219
|
-
// key="test1"
|
|
220
|
-
// checked={test1}
|
|
221
|
-
// onChange={(check) => {
|
|
222
|
-
// console.log(check);
|
|
223
|
-
// setTest(check);
|
|
224
|
-
// }}
|
|
225
|
-
|
|
226
|
-
// /> */}
|
|
227
|
-
|
|
228
|
-
// <BmContactCard>
|
|
229
|
-
// <BmContactCard.Profile>
|
|
230
|
-
// <BmAvatar user="chatbot" size="medium" />
|
|
231
|
-
// </BmContactCard.Profile>
|
|
232
|
-
// <BmContactCard.Details>
|
|
233
|
-
// <BmContactCard.SubDetails>
|
|
234
|
-
// <h3>Contact Names</h3>
|
|
235
|
-
// </BmContactCard.SubDetails>
|
|
236
|
-
// <BmContactCard.SubDetails>
|
|
237
|
-
// <p>
|
|
238
|
-
// Message ijofdsg fogijfdogi odfigj ofdigj fdoigj odfigj ofdigj
|
|
239
|
-
// odfigj ofdigj ofdijg dofigj dfoig jodfigj text
|
|
240
|
-
// </p>
|
|
241
|
-
// <BmCounter>10</BmCounter>
|
|
242
|
-
// </BmContactCard.SubDetails>
|
|
243
|
-
// <BmContactCard.SubDetails>
|
|
244
|
-
// <BmTag variant="success">label</BmTag>
|
|
245
|
-
// <p>10:00 am</p>
|
|
246
|
-
// </BmContactCard.SubDetails>
|
|
247
|
-
// </BmContactCard.Details>
|
|
248
|
-
// </BmContactCard>
|
|
249
|
-
// </>
|
|
250
|
-
// );
|
|
251
|
-
// };
|
|
252
|
-
|
|
253
|
-
const Chat = () => {
|
|
254
17
|
return (
|
|
255
18
|
<>
|
|
256
19
|
<GlobalStyle />
|
|
257
|
-
<
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
20
|
+
<BmButtonGroup>
|
|
21
|
+
{Occurance &&
|
|
22
|
+
Occurance.map((e) => (
|
|
23
|
+
<BmButtonGroup.Item onClick={() => setItem(e)} active={e === item}>
|
|
24
|
+
<p>{e}</p>
|
|
25
|
+
</BmButtonGroup.Item>
|
|
26
|
+
))}
|
|
27
|
+
</BmButtonGroup>
|
|
28
|
+
<DatePicker
|
|
29
|
+
isClearable
|
|
30
|
+
// dateFormat={DATE_FORMAT}
|
|
31
|
+
// selected={values.end_date}
|
|
32
|
+
// onChange={(date) => setFieldValue('end_date', date)}
|
|
33
|
+
// minDate={values.start_date}
|
|
34
|
+
placeholderText="Pick a date"
|
|
35
|
+
customInput={<InputDatePicker />}
|
|
36
|
+
/>
|
|
37
|
+
<TimePicker onChange={onChange} value={value} />
|
|
38
|
+
<CounterInput onChange={setCounter} value={counter} />
|
|
269
39
|
</>
|
|
270
40
|
);
|
|
271
41
|
};
|
|
272
42
|
|
|
273
|
-
export default
|
|
43
|
+
export default App;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React, { Component } from
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { AssignmentLateOutlined } from '@material-ui/icons';
|
|
3
|
+
import NotificationsNoneIcon from '@material-ui/icons/NotificationsNone';
|
|
4
|
+
import { BmAlertIcon } from '../lib/components/buttonAlertIcons';
|
|
5
|
+
|
|
5
6
|
export class AlertIcons extends Component {
|
|
6
7
|
render() {
|
|
7
8
|
return (
|
|
@@ -11,7 +12,11 @@ export class AlertIcons extends Component {
|
|
|
11
12
|
<div className="column">
|
|
12
13
|
<div className="row">
|
|
13
14
|
<p>Assignment</p>
|
|
14
|
-
<BmAlertIcon
|
|
15
|
+
<BmAlertIcon
|
|
16
|
+
icon={<AssignmentLateOutlined />}
|
|
17
|
+
badgeContent={4}
|
|
18
|
+
badgeColor="blue"
|
|
19
|
+
/>
|
|
15
20
|
</div>
|
|
16
21
|
</div>
|
|
17
22
|
<div className="column">
|
package/src/examples/Avatars.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React, { Component } from
|
|
2
|
-
import { BmAvatar } from
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { BmAvatar } from '../lib/components/avatars';
|
|
3
|
+
|
|
3
4
|
export class Avatars extends Component {
|
|
4
5
|
render() {
|
|
5
6
|
return (
|
package/src/examples/Buttons.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React, { Component } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { Favorite } from '@material-ui/icons';
|
|
3
|
+
import { BmButton } from '../lib/components/buttons';
|
|
4
|
+
|
|
4
5
|
export class Buttons extends Component {
|
|
5
6
|
render() {
|
|
6
7
|
return (
|
|
@@ -16,14 +17,14 @@ export class Buttons extends Component {
|
|
|
16
17
|
<BmButton
|
|
17
18
|
variant="primary"
|
|
18
19
|
size="large"
|
|
19
|
-
onClick={() => alert(
|
|
20
|
+
onClick={() => alert('aaa')}
|
|
20
21
|
>
|
|
21
22
|
Large
|
|
22
23
|
</BmButton>
|
|
23
24
|
</div>
|
|
24
25
|
<div className="column">
|
|
25
26
|
<BmButton
|
|
26
|
-
onClick={() => alert(
|
|
27
|
+
onClick={() => alert('hello')}
|
|
27
28
|
variant="primary"
|
|
28
29
|
size="medium"
|
|
29
30
|
>
|
|
@@ -99,11 +100,7 @@ export class Buttons extends Component {
|
|
|
99
100
|
<div className="row">
|
|
100
101
|
<p>Disabled</p>
|
|
101
102
|
<div className="column">
|
|
102
|
-
<BmButton
|
|
103
|
-
variant="primary"
|
|
104
|
-
size="large"
|
|
105
|
-
disabled
|
|
106
|
-
>
|
|
103
|
+
<BmButton variant="primary" size="large" disabled>
|
|
107
104
|
Large
|
|
108
105
|
</BmButton>
|
|
109
106
|
</div>
|
package/src/examples/Chat.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
+
import { AttachFile } from '@material-ui/icons';
|
|
2
|
+
import EmojiEmotionsIcon from '@material-ui/icons/EmojiEmotions';
|
|
1
3
|
import {
|
|
2
4
|
BmChat,
|
|
3
5
|
BmChatMenu,
|
|
4
6
|
MessageIn,
|
|
5
7
|
MessageOut,
|
|
6
|
-
} from
|
|
8
|
+
} from '../lib/components/Chats/chatwrapper';
|
|
7
9
|
import {
|
|
8
10
|
BmFileChat,
|
|
9
11
|
BmImage,
|
|
10
12
|
BmImageChat,
|
|
11
13
|
BmUserChat,
|
|
12
14
|
BmImageFileName,
|
|
13
|
-
} from
|
|
15
|
+
} from '../lib/components/Chats/chat';
|
|
14
16
|
import {
|
|
15
17
|
BmMessageTab,
|
|
16
18
|
BmAttachment,
|
|
17
19
|
BmMessageTabInput,
|
|
18
20
|
BmMessage,
|
|
19
21
|
BmSend,
|
|
20
|
-
} from
|
|
21
|
-
import { BmEmojiIcon } from
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
24
|
-
import { BmLoader, Loader } from "../lib/components/loaders";
|
|
25
|
-
import Image from "../lib/assets/chart-img.png";
|
|
22
|
+
} from '../lib/components/Chats/chatInput';
|
|
23
|
+
import { BmEmojiIcon } from '../lib/components/iconStyles';
|
|
24
|
+
import { BmLoader, Loader } from '../lib/components/loaders';
|
|
25
|
+
import Image from '../lib/assets/chart-img.png';
|
|
26
26
|
|
|
27
27
|
export const Chat = () => {
|
|
28
28
|
return (
|
|
@@ -48,7 +48,7 @@ export const Chat = () => {
|
|
|
48
48
|
<MessageOut>
|
|
49
49
|
{/* Text Messages */}
|
|
50
50
|
<BmImageChat displayTime="3:54pm" type="outbound">
|
|
51
|
-
<BmImage src={Image} alt="src"/>
|
|
51
|
+
<BmImage src={Image} alt="src" />
|
|
52
52
|
<BmImageFileName type="outbound">attactment.jpg</BmImageFileName>
|
|
53
53
|
</BmImageChat>
|
|
54
54
|
<BmFileChat displayTime="3:54pm" type="inbound">
|
package/src/examples/Input.js
CHANGED
|
@@ -1,79 +1,88 @@
|
|
|
1
|
-
import React, { Component } from
|
|
2
|
-
import { BmInput } from
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { BmInput } from '../lib/components/input';
|
|
3
|
+
|
|
3
4
|
export class Input extends Component {
|
|
4
5
|
render() {
|
|
5
6
|
return (
|
|
6
7
|
<div>
|
|
7
8
|
<h3>Inputs</h3>
|
|
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
|
-
|
|
9
|
+
<div className="row">
|
|
10
|
+
<div className="column">
|
|
11
|
+
<BmInput
|
|
12
|
+
type="text"
|
|
13
|
+
placeholder="Placeholder"
|
|
14
|
+
id="name"
|
|
15
|
+
label="Enabled State"
|
|
16
|
+
state="enabled"
|
|
17
|
+
/>
|
|
18
|
+
<br />
|
|
19
|
+
<BmInput
|
|
20
|
+
type="text"
|
|
21
|
+
placeholder="Placeholder"
|
|
22
|
+
value="Text"
|
|
23
|
+
id="name"
|
|
24
|
+
label="Disabled state"
|
|
25
|
+
state="disabled"
|
|
26
|
+
/>
|
|
27
|
+
<br />
|
|
28
|
+
</div>
|
|
29
|
+
<div className="column">
|
|
30
|
+
<BmInput
|
|
31
|
+
type="text"
|
|
32
|
+
placeholder="Placeholder"
|
|
33
|
+
value="Text"
|
|
34
|
+
id="name"
|
|
35
|
+
label="Completed state"
|
|
36
|
+
state="complete"
|
|
37
|
+
/>
|
|
38
|
+
<br />
|
|
39
|
+
<BmInput
|
|
40
|
+
type="text"
|
|
41
|
+
placeholder="Placeholder"
|
|
42
|
+
value="Text"
|
|
43
|
+
id="name"
|
|
44
|
+
label="Incomplete State"
|
|
45
|
+
state="incomplete"
|
|
46
|
+
/>
|
|
47
|
+
<br />
|
|
48
|
+
</div>
|
|
49
|
+
<div className="column">
|
|
50
|
+
<BmInput
|
|
51
|
+
type="text"
|
|
52
|
+
value="Text"
|
|
53
|
+
id="name"
|
|
54
|
+
label="Positive state"
|
|
55
|
+
state="positive"
|
|
56
|
+
/>
|
|
57
|
+
<br />
|
|
58
|
+
<BmInput
|
|
59
|
+
type="text"
|
|
60
|
+
value="Text"
|
|
61
|
+
id="name"
|
|
62
|
+
label="Negative state"
|
|
63
|
+
state="negative"
|
|
64
|
+
/>
|
|
65
|
+
<br />
|
|
66
|
+
</div>
|
|
67
|
+
<div className="column">
|
|
68
|
+
<BmInput
|
|
69
|
+
type="text"
|
|
70
|
+
placeholder="Placeholder"
|
|
71
|
+
id="name"
|
|
72
|
+
label="Pressed state"
|
|
73
|
+
state="pressed"
|
|
74
|
+
/>
|
|
75
|
+
<br />
|
|
76
|
+
<BmInput
|
|
77
|
+
type="text"
|
|
78
|
+
value="Text"
|
|
79
|
+
id="name"
|
|
80
|
+
label="Focused state"
|
|
81
|
+
state="focus"
|
|
82
|
+
/>
|
|
83
|
+
<br />
|
|
76
84
|
</div>
|
|
85
|
+
</div>
|
|
77
86
|
</div>
|
|
78
87
|
);
|
|
79
88
|
}
|
package/src/examples/Logo.js
CHANGED
package/src/examples/Navbar.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* eslint-disable no-unused-vars */
|
|
2
|
-
import React, { Component } from
|
|
2
|
+
import React, { Component } from 'react';
|
|
3
|
+
import { AssignmentLateOutlined } from '@material-ui/icons';
|
|
4
|
+
import NotificationsNoneIcon from '@material-ui/icons/NotificationsNone';
|
|
5
|
+
import MenuIcon from '@material-ui/icons/Menu';
|
|
6
|
+
import styled from 'styled-components';
|
|
3
7
|
import {
|
|
4
8
|
BmNavbar,
|
|
5
9
|
BmNavBarProfile,
|
|
6
10
|
BmNavbarSearch,
|
|
7
11
|
BmNavbarItems,
|
|
8
|
-
} from
|
|
9
|
-
import { BmLogo } from
|
|
10
|
-
import Azam from
|
|
11
|
-
import { BmAlertIcon } from
|
|
12
|
-
import { BmCheckboxToggler } from
|
|
13
|
-
import { AssignmentLateOutlined } from "@material-ui/icons";
|
|
14
|
-
import NotificationsNoneIcon from "@material-ui/icons/NotificationsNone";
|
|
15
|
-
import MenuIcon from "@material-ui/icons/Menu";
|
|
12
|
+
} from '../lib/components/navbar';
|
|
13
|
+
import { BmLogo } from '../lib/components/logo';
|
|
14
|
+
import Azam from '../lib/images/azam.png';
|
|
15
|
+
import { BmAlertIcon } from '../lib/components/Buttons/buttonAlertIcons';
|
|
16
|
+
import { BmCheckboxToggler } from '../lib/components/checkboxToggler';
|
|
16
17
|
|
|
17
|
-
import styled from "styled-components";
|
|
18
18
|
// import { BmSearch } from "./lib/components/search";
|
|
19
19
|
|
|
20
20
|
const Menu = styled.div`
|
|
@@ -60,8 +60,8 @@ export class Navbars extends Component {
|
|
|
60
60
|
<BmCheckboxToggler />
|
|
61
61
|
</BmNavBarProfile>
|
|
62
62
|
<Hamburger>
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
<MenuIcon />
|
|
64
|
+
</Hamburger>
|
|
65
65
|
{/* <Menu>
|
|
66
66
|
</Menu> */}
|
|
67
67
|
</BmNavbarItems>
|
package/src/examples/Search.js
CHANGED