beem-component 2.1.1 → 2.1.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/dist/components/BmSelector/BmSelector.js +15 -2
- package/dist/components/BmSelector/BmSelector.stories.js +14 -1
- package/dist/components/InfoPanel/InfoPanel.js +32 -11
- package/dist/components/InfoPanel/InfoPanel.stories.js +42 -4
- package/package.json +1 -1
- package/src/App.js +24 -11
- package/src/lib/components/BmSelector/BmSelector.js +14 -1
- package/src/lib/components/BmSelector/BmSelector.stories.jsx +10 -0
- package/src/lib/components/InfoPanel/InfoPanel.js +27 -2
- package/src/lib/components/InfoPanel/InfoPanel.stories.jsx +24 -0
|
@@ -89,10 +89,23 @@ const BmSelector = _ref8 => {
|
|
|
89
89
|
themeColor,
|
|
90
90
|
textColor,
|
|
91
91
|
fontWeight,
|
|
92
|
-
name = 'selection'
|
|
92
|
+
name = 'selection',
|
|
93
|
+
useFormik = false
|
|
93
94
|
} = _ref8;
|
|
94
95
|
return /*#__PURE__*/_react.default.createElement(RadioGroupWrapper, null, data.map(item => {
|
|
95
96
|
const isSelected = selectedDataId === item.id;
|
|
97
|
+
const handleChange = () => {
|
|
98
|
+
if (useFormik) {
|
|
99
|
+
onChange({
|
|
100
|
+
target: {
|
|
101
|
+
name,
|
|
102
|
+
value: item.id
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
} else {
|
|
106
|
+
onChange(item.id);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
96
109
|
return /*#__PURE__*/_react.default.createElement("label", {
|
|
97
110
|
key: item.id,
|
|
98
111
|
htmlFor: item.id
|
|
@@ -101,7 +114,7 @@ const BmSelector = _ref8 => {
|
|
|
101
114
|
name: name,
|
|
102
115
|
value: item.id,
|
|
103
116
|
checked: isSelected,
|
|
104
|
-
onChange:
|
|
117
|
+
onChange: handleChange
|
|
105
118
|
}), /*#__PURE__*/_react.default.createElement(TimeSlotCard, {
|
|
106
119
|
selected: isSelected,
|
|
107
120
|
themeColor: themeColor
|
|
@@ -56,6 +56,12 @@ var _default = exports.default = {
|
|
|
56
56
|
endDate: '09:30 AM'
|
|
57
57
|
}
|
|
58
58
|
}]
|
|
59
|
+
},
|
|
60
|
+
useFormik: {
|
|
61
|
+
control: {
|
|
62
|
+
type: 'boolean'
|
|
63
|
+
},
|
|
64
|
+
defaultValue: false
|
|
59
65
|
}
|
|
60
66
|
}
|
|
61
67
|
};
|
|
@@ -102,6 +108,7 @@ Default.args = {
|
|
|
102
108
|
endDate: '09:30 AM'
|
|
103
109
|
}
|
|
104
110
|
}],
|
|
111
|
+
useFormik: false,
|
|
105
112
|
themeColor: '#33B1BA',
|
|
106
113
|
textColor: '#33B1BA',
|
|
107
114
|
fontWeight: '',
|
|
@@ -124,15 +131,21 @@ const Example = () => {
|
|
|
124
131
|
endDate: '11:10 AM'
|
|
125
132
|
}
|
|
126
133
|
}];
|
|
134
|
+
|
|
135
|
+
// When you use useFormik as true then you need to pass handleChange func and the name [name="time"].
|
|
136
|
+
// so that is works accordingly
|
|
137
|
+
|
|
127
138
|
const [selectedDataId, setSelectedDataId] = (0, _react.useState)(null);
|
|
128
139
|
return /*#__PURE__*/_react.default.createElement(_BmSelector.default, {
|
|
140
|
+
name: "time",
|
|
129
141
|
data: slots,
|
|
130
142
|
selectedDataId: selectedDataId,
|
|
131
143
|
onChange: setSelectedDataId,
|
|
132
144
|
icon: _AccessTime.default,
|
|
133
145
|
themeColor: "#33B1BA",
|
|
134
146
|
textColor: "#33B1BA",
|
|
135
|
-
fontWeight: "600"
|
|
147
|
+
fontWeight: "600",
|
|
148
|
+
useFormik: "false"
|
|
136
149
|
});
|
|
137
150
|
};
|
|
138
151
|
exports.Example = Example;
|
|
@@ -86,8 +86,19 @@ const Value = _styledComponents.default.span.withConfig({
|
|
|
86
86
|
})(["font-weight:500;@media (max-width:42.8571rem){font-size:0.75rem;}"]);
|
|
87
87
|
const Divider = _styledComponents.default.hr.withConfig({
|
|
88
88
|
displayName: "InfoPanel__Divider"
|
|
89
|
-
})(["border:none;border-top:
|
|
90
|
-
|
|
89
|
+
})(["border:none;border-top:", ";margin:1rem auto;max-width:97%;@media (max-width:42.8571rem){margin:0.75rem auto;max-width:97%;}"], _ref6 => {
|
|
90
|
+
let {
|
|
91
|
+
showDivider,
|
|
92
|
+
dividerColor = '#33b1ba',
|
|
93
|
+
dividerType = 'dashed',
|
|
94
|
+
dividerWitdh = '1px',
|
|
95
|
+
dividerOpacity = '0.2'
|
|
96
|
+
} = _ref6;
|
|
97
|
+
if (showDivider) {
|
|
98
|
+
return "".concat(dividerWitdh, " ").concat(dividerType, " ").concat(hexToRgba(dividerColor, dividerOpacity));
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
const SectionSummary = _ref7 => {
|
|
91
102
|
let {
|
|
92
103
|
icon: Icon,
|
|
93
104
|
title,
|
|
@@ -95,7 +106,7 @@ const SectionSummary = _ref6 => {
|
|
|
95
106
|
textColor,
|
|
96
107
|
subtitle,
|
|
97
108
|
iconBackgroundColor
|
|
98
|
-
} =
|
|
109
|
+
} = _ref7;
|
|
99
110
|
return /*#__PURE__*/_react.default.createElement(SectionSummaryContainer, null, Icon && /*#__PURE__*/_react.default.createElement(IconBox, {
|
|
100
111
|
iconColor: iconColor,
|
|
101
112
|
iconBackgroundColor: iconBackgroundColor
|
|
@@ -105,13 +116,13 @@ const SectionSummary = _ref6 => {
|
|
|
105
116
|
textColor: textColor
|
|
106
117
|
}, subtitle)));
|
|
107
118
|
};
|
|
108
|
-
const BmInfoPanel =
|
|
119
|
+
const BmInfoPanel = _ref8 => {
|
|
109
120
|
let {
|
|
110
121
|
children
|
|
111
|
-
} =
|
|
122
|
+
} = _ref8;
|
|
112
123
|
return /*#__PURE__*/_react.default.createElement(Panel, null, children);
|
|
113
124
|
};
|
|
114
|
-
const Section =
|
|
125
|
+
const Section = _ref9 => {
|
|
115
126
|
let {
|
|
116
127
|
title,
|
|
117
128
|
icon: Icon,
|
|
@@ -119,20 +130,30 @@ const Section = _ref8 => {
|
|
|
119
130
|
showDivider,
|
|
120
131
|
backgroundColor,
|
|
121
132
|
iconColor,
|
|
122
|
-
iconBackgroundColor
|
|
123
|
-
|
|
124
|
-
|
|
133
|
+
iconBackgroundColor,
|
|
134
|
+
dividerColor,
|
|
135
|
+
dividerWitdh,
|
|
136
|
+
dividerType,
|
|
137
|
+
dividerOpacity
|
|
138
|
+
} = _ref9;
|
|
139
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showDivider && /*#__PURE__*/_react.default.createElement(Divider, {
|
|
140
|
+
dividerColor: dividerColor,
|
|
141
|
+
showDivider: showDivider,
|
|
142
|
+
dividerWitdh: dividerWitdh,
|
|
143
|
+
dividerType: dividerType,
|
|
144
|
+
dividerOpacity: dividerOpacity
|
|
145
|
+
}), /*#__PURE__*/_react.default.createElement(SectionContainer, {
|
|
125
146
|
backgroundColor: backgroundColor
|
|
126
147
|
}, Icon && /*#__PURE__*/_react.default.createElement(IconBox, {
|
|
127
148
|
iconColor: iconColor,
|
|
128
149
|
iconBackgroundColor: iconBackgroundColor
|
|
129
150
|
}, /*#__PURE__*/_react.default.createElement(Icon, null)), /*#__PURE__*/_react.default.createElement(SectionTitle, null, title)), /*#__PURE__*/_react.default.createElement(SectionBody, null, children));
|
|
130
151
|
};
|
|
131
|
-
const Row =
|
|
152
|
+
const Row = _ref0 => {
|
|
132
153
|
let {
|
|
133
154
|
label,
|
|
134
155
|
value
|
|
135
|
-
} =
|
|
156
|
+
} = _ref0;
|
|
136
157
|
return /*#__PURE__*/_react.default.createElement(RowContainer, null, /*#__PURE__*/_react.default.createElement(Label, null, label, ":"), /*#__PURE__*/_react.default.createElement(Value, null, value));
|
|
137
158
|
};
|
|
138
159
|
BmInfoPanel.Section = Section;
|
|
@@ -48,6 +48,28 @@ var _default = exports.default = {
|
|
|
48
48
|
},
|
|
49
49
|
iconBackgroundColor: {
|
|
50
50
|
control: 'boolean'
|
|
51
|
+
},
|
|
52
|
+
dividerColor: {
|
|
53
|
+
control: 'color'
|
|
54
|
+
},
|
|
55
|
+
dividerWidth: {
|
|
56
|
+
control: {
|
|
57
|
+
type: 'text'
|
|
58
|
+
},
|
|
59
|
+
defaultValue: '3px'
|
|
60
|
+
},
|
|
61
|
+
dividerOpacity: {
|
|
62
|
+
control: {
|
|
63
|
+
type: 'text'
|
|
64
|
+
},
|
|
65
|
+
defaultValue: '0.2'
|
|
66
|
+
},
|
|
67
|
+
dividerType: {
|
|
68
|
+
control: {
|
|
69
|
+
type: 'select'
|
|
70
|
+
},
|
|
71
|
+
options: ['dashed', 'solid'],
|
|
72
|
+
defaultValue: 'dashed'
|
|
51
73
|
}
|
|
52
74
|
}
|
|
53
75
|
};
|
|
@@ -58,7 +80,11 @@ const Template = _ref => {
|
|
|
58
80
|
backgroundColor,
|
|
59
81
|
iconColor,
|
|
60
82
|
textColor,
|
|
61
|
-
iconBackgroundColor
|
|
83
|
+
iconBackgroundColor,
|
|
84
|
+
dividerColor,
|
|
85
|
+
dividerOpacity,
|
|
86
|
+
dividerType,
|
|
87
|
+
dividerWidth
|
|
62
88
|
} = _ref;
|
|
63
89
|
if (variant === 'summary') {
|
|
64
90
|
return /*#__PURE__*/_react.default.createElement(_InfoPanel.default, {
|
|
@@ -106,7 +132,11 @@ const Template = _ref => {
|
|
|
106
132
|
title: "Personal Information",
|
|
107
133
|
icon: _Person.default,
|
|
108
134
|
showDivider: showDivider,
|
|
109
|
-
iconColor: iconColor
|
|
135
|
+
iconColor: iconColor,
|
|
136
|
+
dividerColor: dividerColor,
|
|
137
|
+
dividerType: dividerType,
|
|
138
|
+
dividerOpacity: dividerOpacity,
|
|
139
|
+
dividerWitdh: dividerWidth
|
|
110
140
|
}, /*#__PURE__*/_react.default.createElement(_InfoPanel.default.Row, {
|
|
111
141
|
label: "Name",
|
|
112
142
|
value: "John Doe"
|
|
@@ -125,7 +155,11 @@ Default.args = {
|
|
|
125
155
|
backgroundColor: '#33B1BA',
|
|
126
156
|
iconColor: '#33B1BA',
|
|
127
157
|
textColor: '#000000',
|
|
128
|
-
iconBackgroundColor: false
|
|
158
|
+
iconBackgroundColor: false,
|
|
159
|
+
dividerColor: '#33b1ba',
|
|
160
|
+
dividerType: 'dashed',
|
|
161
|
+
dividerWidth: '1px',
|
|
162
|
+
dividerOpacity: '0.2'
|
|
129
163
|
};
|
|
130
164
|
const ExampleSummary = () => {
|
|
131
165
|
return /*#__PURE__*/_react.default.createElement(_InfoPanel.default, null, /*#__PURE__*/_react.default.createElement(_InfoPanel.default.Section, {
|
|
@@ -173,7 +207,11 @@ const ExampleDetails = () => {
|
|
|
173
207
|
})), /*#__PURE__*/_react.default.createElement(_InfoPanel.default.Section, {
|
|
174
208
|
title: "Personal Information",
|
|
175
209
|
icon: _Person.default,
|
|
176
|
-
showDivider: true
|
|
210
|
+
showDivider: true,
|
|
211
|
+
dividerColor: "#33b1ba",
|
|
212
|
+
dividerType: "dashed",
|
|
213
|
+
dividerWitdh: "1px",
|
|
214
|
+
dividerOpacity: "0.2"
|
|
177
215
|
}, /*#__PURE__*/_react.default.createElement(_InfoPanel.default.Row, {
|
|
178
216
|
label: "Name",
|
|
179
217
|
value: formData.name
|
package/package.json
CHANGED
package/src/App.js
CHANGED
|
@@ -6,7 +6,7 @@ import React, { useState } from 'react';
|
|
|
6
6
|
// import LocalOfferOutlinedIcon from '@mui/icons-material/LocalOfferOutlined';
|
|
7
7
|
// import CalendarTodayIcon from '@mui/icons-material/CalendarToday';
|
|
8
8
|
import AccessTimeIcon from '@mui/icons-material/AccessTime';
|
|
9
|
-
|
|
9
|
+
import PersonIcon from '@mui/icons-material/Person';
|
|
10
10
|
// import { Tooltip } from '@mui/material';
|
|
11
11
|
import PeopleIcon from '@mui/icons-material/People';
|
|
12
12
|
// import BusinessIcon from '@mui/icons-material/Business';
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
BmProgressIndicator,
|
|
30
30
|
BmLabelWithIcon,
|
|
31
31
|
BmCardv2,
|
|
32
|
-
|
|
32
|
+
BmInfoPanel,
|
|
33
33
|
BmButton,
|
|
34
34
|
BmSelectionNotice,
|
|
35
35
|
BmSelector,
|
|
@@ -929,15 +929,15 @@ const Chat = () => {
|
|
|
929
929
|
// ];
|
|
930
930
|
// console.log({ selected });
|
|
931
931
|
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
932
|
+
const formData = {
|
|
933
|
+
departmentName: 'Marketing',
|
|
934
|
+
resourceName: 'John Doe',
|
|
935
|
+
date: new Date(),
|
|
936
|
+
timeSlot: '09:00 - 09:30',
|
|
937
|
+
name: 'Jane Smith',
|
|
938
|
+
phone: '+1234567890',
|
|
939
|
+
email: 'jane.smith@example.com',
|
|
940
|
+
};
|
|
941
941
|
const slots = [
|
|
942
942
|
{
|
|
943
943
|
id: 'slot-1', // ⚠️ id is required
|
|
@@ -1072,6 +1072,19 @@ const Chat = () => {
|
|
|
1072
1072
|
/>
|
|
1073
1073
|
</BmInfoPanel.Section>
|
|
1074
1074
|
</BmInfoPanel> */}
|
|
1075
|
+
<BmInfoPanel.Section
|
|
1076
|
+
title="Personal Information"
|
|
1077
|
+
icon={PersonIcon}
|
|
1078
|
+
showDivider
|
|
1079
|
+
dividerColor="#33b1ba"
|
|
1080
|
+
dividerWitdh="2px"
|
|
1081
|
+
dividerType="solid"
|
|
1082
|
+
dividerOpacity="0.5"
|
|
1083
|
+
>
|
|
1084
|
+
<BmInfoPanel.Row label="Name" value={formData.name} />
|
|
1085
|
+
<BmInfoPanel.Row label="Phone" value={formData.phone} />
|
|
1086
|
+
<BmInfoPanel.Row label="Email" value={formData.email} />
|
|
1087
|
+
</BmInfoPanel.Section>
|
|
1075
1088
|
</BmCardv2.Content>
|
|
1076
1089
|
<BmCardv2.Footer>
|
|
1077
1090
|
<BmButton
|
|
@@ -120,11 +120,24 @@ const BmSelector = ({
|
|
|
120
120
|
textColor,
|
|
121
121
|
fontWeight,
|
|
122
122
|
name = 'selection',
|
|
123
|
+
useFormik = false,
|
|
123
124
|
}) => {
|
|
124
125
|
return (
|
|
125
126
|
<RadioGroupWrapper>
|
|
126
127
|
{data.map((item) => {
|
|
127
128
|
const isSelected = selectedDataId === item.id;
|
|
129
|
+
const handleChange = () => {
|
|
130
|
+
if (useFormik) {
|
|
131
|
+
onChange({
|
|
132
|
+
target: {
|
|
133
|
+
name,
|
|
134
|
+
value: item.id,
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
} else {
|
|
138
|
+
onChange(item.id);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
128
141
|
|
|
129
142
|
return (
|
|
130
143
|
<label key={item.id} htmlFor={item.id}>
|
|
@@ -133,7 +146,7 @@ const BmSelector = ({
|
|
|
133
146
|
name={name}
|
|
134
147
|
value={item.id}
|
|
135
148
|
checked={isSelected}
|
|
136
|
-
onChange={
|
|
149
|
+
onChange={handleChange}
|
|
137
150
|
/>
|
|
138
151
|
<TimeSlotCard selected={isSelected} themeColor={themeColor}>
|
|
139
152
|
<CustomRadio selected={isSelected} themeColor={themeColor} />
|
|
@@ -44,6 +44,10 @@ export default {
|
|
|
44
44
|
},
|
|
45
45
|
],
|
|
46
46
|
},
|
|
47
|
+
useFormik: {
|
|
48
|
+
control: { type: 'boolean' },
|
|
49
|
+
defaultValue: false,
|
|
50
|
+
},
|
|
47
51
|
},
|
|
48
52
|
};
|
|
49
53
|
|
|
@@ -89,6 +93,7 @@ Default.args = {
|
|
|
89
93
|
value: { startDate: '09:00 AM', endDate: '09:30 AM' },
|
|
90
94
|
},
|
|
91
95
|
],
|
|
96
|
+
useFormik: false,
|
|
92
97
|
|
|
93
98
|
themeColor: '#33B1BA',
|
|
94
99
|
textColor: '#33B1BA',
|
|
@@ -110,9 +115,13 @@ export const Example = () => {
|
|
|
110
115
|
},
|
|
111
116
|
];
|
|
112
117
|
|
|
118
|
+
// When you use useFormik as true then you need to pass handleChange func and the name [name="time"].
|
|
119
|
+
// so that is works accordingly
|
|
120
|
+
|
|
113
121
|
const [selectedDataId, setSelectedDataId] = useState(null);
|
|
114
122
|
return (
|
|
115
123
|
<BmSelector
|
|
124
|
+
name="time"
|
|
116
125
|
data={slots}
|
|
117
126
|
selectedDataId={selectedDataId}
|
|
118
127
|
onChange={setSelectedDataId}
|
|
@@ -120,6 +129,7 @@ export const Example = () => {
|
|
|
120
129
|
themeColor="#33B1BA"
|
|
121
130
|
textColor="#33B1BA"
|
|
122
131
|
fontWeight="600"
|
|
132
|
+
useFormik="false"
|
|
123
133
|
/>
|
|
124
134
|
);
|
|
125
135
|
};
|
|
@@ -151,7 +151,20 @@ const Value = styled.span`
|
|
|
151
151
|
|
|
152
152
|
const Divider = styled.hr`
|
|
153
153
|
border: none;
|
|
154
|
-
border-top:
|
|
154
|
+
border-top: ${({
|
|
155
|
+
showDivider,
|
|
156
|
+
dividerColor = '#33b1ba',
|
|
157
|
+
dividerType = 'dashed',
|
|
158
|
+
dividerWitdh = '1px',
|
|
159
|
+
dividerOpacity = '0.2',
|
|
160
|
+
}) => {
|
|
161
|
+
if (showDivider) {
|
|
162
|
+
return `${dividerWitdh} ${dividerType} ${hexToRgba(
|
|
163
|
+
dividerColor,
|
|
164
|
+
dividerOpacity
|
|
165
|
+
)}`;
|
|
166
|
+
}
|
|
167
|
+
}};
|
|
155
168
|
margin: 1rem auto;
|
|
156
169
|
max-width: 97%;
|
|
157
170
|
@media (max-width: 42.8571rem) {
|
|
@@ -189,9 +202,21 @@ const Section = ({
|
|
|
189
202
|
backgroundColor,
|
|
190
203
|
iconColor,
|
|
191
204
|
iconBackgroundColor,
|
|
205
|
+
dividerColor,
|
|
206
|
+
dividerWitdh,
|
|
207
|
+
dividerType,
|
|
208
|
+
dividerOpacity,
|
|
192
209
|
}) => (
|
|
193
210
|
<>
|
|
194
|
-
{showDivider &&
|
|
211
|
+
{showDivider && (
|
|
212
|
+
<Divider
|
|
213
|
+
dividerColor={dividerColor}
|
|
214
|
+
showDivider={showDivider}
|
|
215
|
+
dividerWitdh={dividerWitdh}
|
|
216
|
+
dividerType={dividerType}
|
|
217
|
+
dividerOpacity={dividerOpacity}
|
|
218
|
+
/>
|
|
219
|
+
)}
|
|
195
220
|
<SectionContainer backgroundColor={backgroundColor}>
|
|
196
221
|
{Icon && (
|
|
197
222
|
<IconBox
|
|
@@ -31,6 +31,14 @@ export default {
|
|
|
31
31
|
iconColor: { control: 'color' },
|
|
32
32
|
textColor: { control: 'color' },
|
|
33
33
|
iconBackgroundColor: { control: 'boolean' },
|
|
34
|
+
dividerColor: { control: 'color' },
|
|
35
|
+
dividerWidth: { control: { type: 'text' }, defaultValue: '3px' },
|
|
36
|
+
dividerOpacity: { control: { type: 'text' }, defaultValue: '0.2' },
|
|
37
|
+
dividerType: {
|
|
38
|
+
control: { type: 'select' },
|
|
39
|
+
options: ['dashed', 'solid'],
|
|
40
|
+
defaultValue: 'dashed',
|
|
41
|
+
},
|
|
34
42
|
},
|
|
35
43
|
};
|
|
36
44
|
|
|
@@ -41,6 +49,10 @@ const Template = ({
|
|
|
41
49
|
iconColor,
|
|
42
50
|
textColor,
|
|
43
51
|
iconBackgroundColor,
|
|
52
|
+
dividerColor,
|
|
53
|
+
dividerOpacity,
|
|
54
|
+
dividerType,
|
|
55
|
+
dividerWidth,
|
|
44
56
|
}) => {
|
|
45
57
|
if (variant === 'summary') {
|
|
46
58
|
return (
|
|
@@ -86,6 +98,10 @@ const Template = ({
|
|
|
86
98
|
icon={PersonIcon}
|
|
87
99
|
showDivider={showDivider}
|
|
88
100
|
iconColor={iconColor}
|
|
101
|
+
dividerColor={dividerColor}
|
|
102
|
+
dividerType={dividerType}
|
|
103
|
+
dividerOpacity={dividerOpacity}
|
|
104
|
+
dividerWitdh={dividerWidth}
|
|
89
105
|
>
|
|
90
106
|
<BmInfoPanel.Row label="Name" value="John Doe" />
|
|
91
107
|
<BmInfoPanel.Row label="Email" value="john@example.com" />
|
|
@@ -103,6 +119,10 @@ Default.args = {
|
|
|
103
119
|
iconColor: '#33B1BA',
|
|
104
120
|
textColor: '#000000',
|
|
105
121
|
iconBackgroundColor: false,
|
|
122
|
+
dividerColor: '#33b1ba',
|
|
123
|
+
dividerType: 'dashed',
|
|
124
|
+
dividerWidth: '1px',
|
|
125
|
+
dividerOpacity: '0.2',
|
|
106
126
|
};
|
|
107
127
|
|
|
108
128
|
export const ExampleSummary = () => {
|
|
@@ -154,6 +174,10 @@ export const ExampleDetails = () => {
|
|
|
154
174
|
title="Personal Information"
|
|
155
175
|
icon={PersonIcon}
|
|
156
176
|
showDivider
|
|
177
|
+
dividerColor="#33b1ba"
|
|
178
|
+
dividerType="dashed"
|
|
179
|
+
dividerWitdh="1px"
|
|
180
|
+
dividerOpacity="0.2"
|
|
157
181
|
>
|
|
158
182
|
<BmInfoPanel.Row label="Name" value={formData.name} />
|
|
159
183
|
<BmInfoPanel.Row label="Phone" value={formData.phone} />
|