beem-component 2.1.7 → 2.1.28
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/Dockerfile +1 -3
- package/Jenkinsfile +5 -20
- package/dist/components/BmSelector/BmSelector.js +4 -31
- package/dist/components/BmSelector/BmSelector.stories.js +1 -14
- package/dist/components/Card_v2/Card.js +3 -17
- package/dist/components/InfoPanel/InfoPanel.js +20 -71
- package/dist/components/InfoPanel/InfoPanel.stories.js +4 -56
- package/dist/components/ProgressIndicator/ProgressIndicator.js +3 -17
- package/dist/components/SelectionNotice/SelectionNotice.js +3 -17
- package/dist/components/index.js +0 -14
- package/nginx.conf +12 -26
- package/package.json +1 -1
- package/src/App.js +59 -116
- package/src/lib/components/BmSelector/BmSelector.js +2 -34
- package/src/lib/components/BmSelector/BmSelector.stories.jsx +0 -10
- package/src/lib/components/Card_v2/Card.js +1 -39
- package/src/lib/components/InfoPanel/InfoPanel.js +11 -54
- package/src/lib/components/InfoPanel/InfoPanel.stories.jsx +2 -42
- package/src/lib/components/ProgressIndicator/ProgressIndicator.js +1 -19
- package/src/lib/components/SelectionNotice/SelectionNotice.js +1 -19
- package/src/lib/components/index.js +0 -4
- package/dist/components/Alert/Alert.js +0 -83
- package/dist/components/Alert/Alert.stories.js +0 -66
- package/dist/components/BmCustomCardTitle/CustomCardTitle.js +0 -174
- package/dist/components/BmCustomCardTitle/CustomCardTitle.stories.js +0 -85
- package/src/lib/components/Alert/Alert.js +0 -111
- package/src/lib/components/Alert/Alert.stories.jsx +0 -66
- package/src/lib/components/BmCustomCardTitle/CustomCardTitle.js +0 -142
- package/src/lib/components/BmCustomCardTitle/CustomCardTitle.stories.jsx +0 -83
package/Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
FROM node:
|
|
1
|
+
FROM node:lts as build
|
|
2
2
|
|
|
3
3
|
WORKDIR /app
|
|
4
4
|
|
|
@@ -23,10 +23,8 @@ COPY --from=build /app/storybook-static /usr/share/nginx/html
|
|
|
23
23
|
|
|
24
24
|
RUN rm /etc/nginx/conf.d/default.conf
|
|
25
25
|
|
|
26
|
-
# Replace the default NGINX config with your custom one
|
|
27
26
|
COPY nginx.conf /etc/nginx/conf.d/
|
|
28
27
|
|
|
29
|
-
|
|
30
28
|
EXPOSE 3000
|
|
31
29
|
|
|
32
30
|
CMD ["nginx", "-g", "daemon off;"]
|
package/Jenkinsfile
CHANGED
|
@@ -1,43 +1,33 @@
|
|
|
1
1
|
pipeline{
|
|
2
2
|
agent any
|
|
3
|
-
parameters {
|
|
4
|
-
string(name: 'TAG', description: 'Tag Number Ex: v2.0.0')
|
|
5
|
-
}
|
|
6
3
|
tools {nodejs "nodejs"}
|
|
7
4
|
environment
|
|
8
5
|
{
|
|
9
|
-
|
|
6
|
+
VERSION = "v1.0.${BUILD_NUMBER}"
|
|
10
7
|
PROJECT = "bm-components"
|
|
11
8
|
IMAGE = "$PROJECT:$VERSION"
|
|
12
9
|
ECRURL = "https://347944191864.dkr.ecr.eu-west-1.amazonaws.com"
|
|
13
10
|
ECRCRED = "ecr:eu-west-1:awscred"
|
|
14
|
-
GIT_CREDS = "master-user-dev"
|
|
15
|
-
GIT_URL = "git@bitbucket.org:bongolive/${PROJECT}.git"
|
|
16
|
-
|
|
17
11
|
}
|
|
12
|
+
|
|
18
13
|
stages{
|
|
19
14
|
stage('Deploy for development') {
|
|
20
15
|
when {
|
|
21
16
|
branch 'develop'
|
|
22
17
|
}
|
|
23
18
|
steps {
|
|
24
|
-
git branch: 'develop',credentialsId:
|
|
19
|
+
git branch: 'develop',credentialsId: 'bitbucket',url: "https://bitbucket.org/bongolive/${PROJECT}.git"
|
|
25
20
|
}
|
|
26
21
|
}
|
|
27
22
|
stage('Deploy for production') {
|
|
28
23
|
when {
|
|
29
24
|
branch 'master'
|
|
30
25
|
}
|
|
31
|
-
|
|
32
|
-
git branch: 'master',credentialsId:
|
|
26
|
+
steps {
|
|
27
|
+
git branch: 'master',credentialsId: 'bitbucket',url: "https://bitbucket.org/bongolive/${PROJECT}.git"
|
|
33
28
|
}
|
|
34
29
|
}
|
|
35
30
|
stage('Image build') {
|
|
36
|
-
when {
|
|
37
|
-
expression {
|
|
38
|
-
return params.TAG == ''
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
31
|
steps{
|
|
42
32
|
script
|
|
43
33
|
{
|
|
@@ -46,11 +36,6 @@ pipeline{
|
|
|
46
36
|
}
|
|
47
37
|
}
|
|
48
38
|
stage('Image push') {
|
|
49
|
-
when {
|
|
50
|
-
expression {
|
|
51
|
-
return params.TAG == ''
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
39
|
steps {
|
|
55
40
|
script
|
|
56
41
|
{
|
|
@@ -6,22 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _convertToRGBA = _interopRequireDefault(require("../../../util/convertToRGBA"));
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
const hexToRgba = function (hex) {
|
|
11
|
-
let opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.6;
|
|
12
|
-
try {
|
|
13
|
-
const normalizedHex = hex === null || hex === void 0 ? void 0 : hex.replace('#', '');
|
|
14
|
-
if (!normalizedHex || normalizedHex.length !== 6 || !/^[0-9a-fA-F]{6}$/.test(normalizedHex)) {
|
|
15
|
-
throw new Error('Invalid hex');
|
|
16
|
-
}
|
|
17
|
-
const r = parseInt(normalizedHex.slice(0, 2), 16);
|
|
18
|
-
const g = parseInt(normalizedHex.slice(2, 4), 16);
|
|
19
|
-
const b = parseInt(normalizedHex.slice(4, 6), 16);
|
|
20
|
-
return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(opacity, ")");
|
|
21
|
-
} catch (e) {
|
|
22
|
-
return "rgba(0, 0, 0, ".concat(opacity, ")");
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
11
|
const CustomRadio = _styledComponents.default.span.withConfig({
|
|
26
12
|
displayName: "BmSelector__CustomRadio"
|
|
27
13
|
})(["display:inline-block;width:0.2143rem;height:0.2143rem;border-radius:714.2143rem;transition:all 0.1s ease-in-out;flex-shrink:0;", " @media (max-width:42.8571rem){width:0.0714rem;height:0.0714rem;}"], _ref => {
|
|
@@ -47,7 +33,7 @@ const TimeSlotCard = _styledComponents.default.div.withConfig({
|
|
|
47
33
|
selected,
|
|
48
34
|
themeColor
|
|
49
35
|
} = _ref3;
|
|
50
|
-
return selected ?
|
|
36
|
+
return selected ? (0, _convertToRGBA.default)(themeColor, 0.08) : 'transparent';
|
|
51
37
|
}, _ref4 => {
|
|
52
38
|
let {
|
|
53
39
|
themeColor
|
|
@@ -89,23 +75,10 @@ const BmSelector = _ref8 => {
|
|
|
89
75
|
themeColor,
|
|
90
76
|
textColor,
|
|
91
77
|
fontWeight,
|
|
92
|
-
name = 'selection'
|
|
93
|
-
useFormik = false
|
|
78
|
+
name = 'selection'
|
|
94
79
|
} = _ref8;
|
|
95
80
|
return /*#__PURE__*/_react.default.createElement(RadioGroupWrapper, null, data.map(item => {
|
|
96
81
|
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
|
-
};
|
|
109
82
|
return /*#__PURE__*/_react.default.createElement("label", {
|
|
110
83
|
key: item.id,
|
|
111
84
|
htmlFor: item.id
|
|
@@ -114,7 +87,7 @@ const BmSelector = _ref8 => {
|
|
|
114
87
|
name: name,
|
|
115
88
|
value: item.id,
|
|
116
89
|
checked: isSelected,
|
|
117
|
-
onChange:
|
|
90
|
+
onChange: () => onChange(item.id)
|
|
118
91
|
}), /*#__PURE__*/_react.default.createElement(TimeSlotCard, {
|
|
119
92
|
selected: isSelected,
|
|
120
93
|
themeColor: themeColor
|
|
@@ -56,12 +56,6 @@ 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
|
|
65
59
|
}
|
|
66
60
|
}
|
|
67
61
|
};
|
|
@@ -108,7 +102,6 @@ Default.args = {
|
|
|
108
102
|
endDate: '09:30 AM'
|
|
109
103
|
}
|
|
110
104
|
}],
|
|
111
|
-
useFormik: false,
|
|
112
105
|
themeColor: '#33B1BA',
|
|
113
106
|
textColor: '#33B1BA',
|
|
114
107
|
fontWeight: '',
|
|
@@ -131,21 +124,15 @@ const Example = () => {
|
|
|
131
124
|
endDate: '11:10 AM'
|
|
132
125
|
}
|
|
133
126
|
}];
|
|
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
|
-
|
|
138
127
|
const [selectedDataId, setSelectedDataId] = (0, _react.useState)(null);
|
|
139
128
|
return /*#__PURE__*/_react.default.createElement(_BmSelector.default, {
|
|
140
|
-
name: "time",
|
|
141
129
|
data: slots,
|
|
142
130
|
selectedDataId: selectedDataId,
|
|
143
131
|
onChange: setSelectedDataId,
|
|
144
132
|
icon: _AccessTime.default,
|
|
145
133
|
themeColor: "#33B1BA",
|
|
146
134
|
textColor: "#33B1BA",
|
|
147
|
-
fontWeight: "600"
|
|
148
|
-
useFormik: "false"
|
|
135
|
+
fontWeight: "600"
|
|
149
136
|
});
|
|
150
137
|
};
|
|
151
138
|
exports.Example = Example;
|
|
@@ -6,34 +6,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.BmCardv2 = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _convertToRGBA = _interopRequireDefault(require("../../../util/convertToRGBA"));
|
|
9
10
|
const _excluded = ["className", "children", "borderColor", "borderWidth"];
|
|
10
11
|
/* eslint-disable func-style */
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
13
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
13
14
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
14
15
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
15
|
-
const hexToRgba = function (hex) {
|
|
16
|
-
let opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.6;
|
|
17
|
-
try {
|
|
18
|
-
const normalizedHex = hex === null || hex === void 0 ? void 0 : hex.replace('#', '');
|
|
19
|
-
if (!normalizedHex || normalizedHex.length !== 6 || !/^[0-9a-fA-F]{6}$/.test(normalizedHex)) {
|
|
20
|
-
throw new Error('Invalid hex');
|
|
21
|
-
}
|
|
22
|
-
const r = parseInt(normalizedHex.slice(0, 2), 16);
|
|
23
|
-
const g = parseInt(normalizedHex.slice(2, 4), 16);
|
|
24
|
-
const b = parseInt(normalizedHex.slice(4, 6), 16);
|
|
25
|
-
return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(opacity, ")");
|
|
26
|
-
} catch (e) {
|
|
27
|
-
return "rgba(0, 0, 0, ".concat(opacity, ")");
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
16
|
const StyledCard = _styledComponents.default.div.withConfig({
|
|
31
17
|
displayName: "Card__StyledCard"
|
|
32
18
|
})(["background-color:var(--card,#fff);color:var(--card-foreground,#000);display:flex;flex-direction:column;gap:1.5rem;border-radius:0.75rem;border-style:solid;border-color:", ";border-width:", ";width:100%;"], _ref => {
|
|
33
19
|
let {
|
|
34
20
|
borderColor
|
|
35
21
|
} = _ref;
|
|
36
|
-
return
|
|
22
|
+
return (0, _convertToRGBA.default)(borderColor || '#ccc', 0.1);
|
|
37
23
|
}, _ref2 => {
|
|
38
24
|
let {
|
|
39
25
|
borderWidth
|
|
@@ -51,7 +37,7 @@ const Description = _styledComponents.default.p.withConfig({
|
|
|
51
37
|
})(["color:var(--muted-foreground,#666);margin:0;"]);
|
|
52
38
|
const Content = _styledComponents.default.div.withConfig({
|
|
53
39
|
displayName: "Card__Content"
|
|
54
|
-
})(["
|
|
40
|
+
})(["padding:0 1.5rem;&:last-child{padding-bottom:1.5rem;}"]);
|
|
55
41
|
const Footer = _styledComponents.default.div.withConfig({
|
|
56
42
|
displayName: "Card__Footer"
|
|
57
43
|
})(["display:flex;justify-content:space-between;align-items:center;padding:0 1.5rem 1.5rem 1.5rem;gap:1rem;@media (max-width:42.8571rem){flex-direction:column;align-items:stretch;& > *{width:100%;}}"]);
|
|
@@ -6,22 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _convertToRGBA = _interopRequireDefault(require("../../../util/convertToRGBA"));
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
const hexToRgba = function (hex) {
|
|
11
|
-
let opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.6;
|
|
12
|
-
try {
|
|
13
|
-
const normalizedHex = hex === null || hex === void 0 ? void 0 : hex.replace('#', '');
|
|
14
|
-
if (!normalizedHex || normalizedHex.length !== 6 || !/^[0-9a-fA-F]{6}$/.test(normalizedHex)) {
|
|
15
|
-
throw new Error('Invalid hex');
|
|
16
|
-
}
|
|
17
|
-
const r = parseInt(normalizedHex.slice(0, 2), 16);
|
|
18
|
-
const g = parseInt(normalizedHex.slice(2, 4), 16);
|
|
19
|
-
const b = parseInt(normalizedHex.slice(4, 6), 16);
|
|
20
|
-
return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(opacity, ")");
|
|
21
|
-
} catch (e) {
|
|
22
|
-
return "rgba(0, 0, 0, ".concat(opacity, ")");
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
11
|
const Panel = _styledComponents.default.div.withConfig({
|
|
26
12
|
displayName: "InfoPanel__Panel"
|
|
27
13
|
})(["border:0.0714rem solid rgba(51,177,186,0.1);border-radius:0.5rem;overflow:hidden;"]);
|
|
@@ -30,12 +16,12 @@ const SectionSummaryContainer = _styledComponents.default.div.withConfig({
|
|
|
30
16
|
})(["display:flex;align-items:center;margin-bottom:1rem;@media (min-width:45.7143rem){margin-bottom:1.25rem;}"]);
|
|
31
17
|
const IconBox = _styledComponents.default.div.withConfig({
|
|
32
18
|
displayName: "InfoPanel__IconBox"
|
|
33
|
-
})(["display:flex;align-items:center;justify-content:center;text-align:center;margin-right:0.5rem;padding:0.5rem;border-radius:714.2143rem;background-color:", ";svg{height:1.2rem;width:1.2rem;color:", ";@media (min-width:45.7143rem){height:1.
|
|
19
|
+
})(["display:flex;align-items:center;justify-content:center;text-align:center;margin-right:0.5rem;padding:0.5rem;border-radius:714.2143rem;background-color:", ";svg{height:1.2rem;width:1.2rem;color:", ";@media (min-width:45.7143rem){height:1.5rem;width:1.5rem;}}"], _ref => {
|
|
34
20
|
let {
|
|
35
21
|
iconBackgroundColor,
|
|
36
22
|
iconColor
|
|
37
23
|
} = _ref;
|
|
38
|
-
return iconBackgroundColor &&
|
|
24
|
+
return iconBackgroundColor && (0, _convertToRGBA.default)(iconColor, 0.1);
|
|
39
25
|
}, _ref2 => {
|
|
40
26
|
let {
|
|
41
27
|
iconColor
|
|
@@ -59,7 +45,7 @@ const SummarySubtitle = _styledComponents.default.p.withConfig({
|
|
|
59
45
|
let {
|
|
60
46
|
textColor
|
|
61
47
|
} = _ref4;
|
|
62
|
-
return
|
|
48
|
+
return (0, _convertToRGBA.default)(textColor || '#000000', 0.6);
|
|
63
49
|
});
|
|
64
50
|
const SectionContainer = _styledComponents.default.div.withConfig({
|
|
65
51
|
displayName: "InfoPanel__SectionContainer"
|
|
@@ -67,7 +53,7 @@ const SectionContainer = _styledComponents.default.div.withConfig({
|
|
|
67
53
|
let {
|
|
68
54
|
backgroundColor
|
|
69
55
|
} = _ref5;
|
|
70
|
-
return backgroundColor && "\n background-color: ".concat(
|
|
56
|
+
return backgroundColor && "\n background-color: ".concat((0, _convertToRGBA.default)(backgroundColor, 0.05), ";\n ");
|
|
71
57
|
});
|
|
72
58
|
const SectionTitle = _styledComponents.default.h3.withConfig({
|
|
73
59
|
displayName: "InfoPanel__SectionTitle"
|
|
@@ -80,35 +66,14 @@ const RowContainer = _styledComponents.default.div.withConfig({
|
|
|
80
66
|
})(["display:flex;justify-content:space-between;font-size:0.875rem;align-items:center;@media (max-width:42.8571rem){font-size:0.8rem;}"]);
|
|
81
67
|
const Label = _styledComponents.default.span.withConfig({
|
|
82
68
|
displayName: "InfoPanel__Label"
|
|
83
|
-
})(["color:
|
|
84
|
-
let {
|
|
85
|
-
labelTextColor
|
|
86
|
-
} = _ref6;
|
|
87
|
-
return hexToRgba(labelTextColor || '#000000', 0.6);
|
|
88
|
-
});
|
|
69
|
+
})(["color:rgba(0,0,0,0.6);@media (max-width:42.8571rem){font-size:0.75rem;}"]);
|
|
89
70
|
const Value = _styledComponents.default.span.withConfig({
|
|
90
71
|
displayName: "InfoPanel__Value"
|
|
91
|
-
})(["font-weight:500
|
|
92
|
-
let {
|
|
93
|
-
valueTextColor
|
|
94
|
-
} = _ref7;
|
|
95
|
-
return hexToRgba(valueTextColor || '#000000', 1);
|
|
96
|
-
});
|
|
72
|
+
})(["font-weight:500;@media (max-width:42.8571rem){font-size:0.75rem;}"]);
|
|
97
73
|
const Divider = _styledComponents.default.hr.withConfig({
|
|
98
74
|
displayName: "InfoPanel__Divider"
|
|
99
|
-
})(["border:none;border-top:
|
|
100
|
-
|
|
101
|
-
showDivider,
|
|
102
|
-
dividerColor = '#33b1ba',
|
|
103
|
-
dividerType = 'dashed',
|
|
104
|
-
dividerWitdh = '1px',
|
|
105
|
-
dividerOpacity = '0.2'
|
|
106
|
-
} = _ref8;
|
|
107
|
-
if (showDivider) {
|
|
108
|
-
return "".concat(dividerWitdh, " ").concat(dividerType, " ").concat(hexToRgba(dividerColor, dividerOpacity));
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
const SectionSummary = _ref9 => {
|
|
75
|
+
})(["border:none;border-top:0.0714rem dashed rgba(51,177,186,0.2);margin:1rem auto;max-width:97%;@media (max-width:42.8571rem){margin:0.75rem auto;max-width:97%;}"]);
|
|
76
|
+
const SectionSummary = _ref6 => {
|
|
112
77
|
let {
|
|
113
78
|
icon: Icon,
|
|
114
79
|
title,
|
|
@@ -116,7 +81,7 @@ const SectionSummary = _ref9 => {
|
|
|
116
81
|
textColor,
|
|
117
82
|
subtitle,
|
|
118
83
|
iconBackgroundColor
|
|
119
|
-
} =
|
|
84
|
+
} = _ref6;
|
|
120
85
|
return /*#__PURE__*/_react.default.createElement(SectionSummaryContainer, null, Icon && /*#__PURE__*/_react.default.createElement(IconBox, {
|
|
121
86
|
iconColor: iconColor,
|
|
122
87
|
iconBackgroundColor: iconBackgroundColor
|
|
@@ -126,13 +91,13 @@ const SectionSummary = _ref9 => {
|
|
|
126
91
|
textColor: textColor
|
|
127
92
|
}, subtitle)));
|
|
128
93
|
};
|
|
129
|
-
const BmInfoPanel =
|
|
94
|
+
const BmInfoPanel = _ref7 => {
|
|
130
95
|
let {
|
|
131
96
|
children
|
|
132
|
-
} =
|
|
97
|
+
} = _ref7;
|
|
133
98
|
return /*#__PURE__*/_react.default.createElement(Panel, null, children);
|
|
134
99
|
};
|
|
135
|
-
const Section =
|
|
100
|
+
const Section = _ref8 => {
|
|
136
101
|
let {
|
|
137
102
|
title,
|
|
138
103
|
icon: Icon,
|
|
@@ -140,37 +105,21 @@ const Section = _ref1 => {
|
|
|
140
105
|
showDivider,
|
|
141
106
|
backgroundColor,
|
|
142
107
|
iconColor,
|
|
143
|
-
iconBackgroundColor
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
dividerType,
|
|
147
|
-
dividerOpacity
|
|
148
|
-
} = _ref1;
|
|
149
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showDivider && /*#__PURE__*/_react.default.createElement(Divider, {
|
|
150
|
-
dividerColor: dividerColor,
|
|
151
|
-
showDivider: showDivider,
|
|
152
|
-
dividerWitdh: dividerWitdh,
|
|
153
|
-
dividerType: dividerType,
|
|
154
|
-
dividerOpacity: dividerOpacity
|
|
155
|
-
}), /*#__PURE__*/_react.default.createElement(SectionContainer, {
|
|
108
|
+
iconBackgroundColor
|
|
109
|
+
} = _ref8;
|
|
110
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showDivider && /*#__PURE__*/_react.default.createElement(Divider, null), /*#__PURE__*/_react.default.createElement(SectionContainer, {
|
|
156
111
|
backgroundColor: backgroundColor
|
|
157
112
|
}, Icon && /*#__PURE__*/_react.default.createElement(IconBox, {
|
|
158
113
|
iconColor: iconColor,
|
|
159
114
|
iconBackgroundColor: iconBackgroundColor
|
|
160
115
|
}, /*#__PURE__*/_react.default.createElement(Icon, null)), /*#__PURE__*/_react.default.createElement(SectionTitle, null, title)), /*#__PURE__*/_react.default.createElement(SectionBody, null, children));
|
|
161
116
|
};
|
|
162
|
-
const Row =
|
|
117
|
+
const Row = _ref9 => {
|
|
163
118
|
let {
|
|
164
119
|
label,
|
|
165
|
-
value
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
} = _ref10;
|
|
169
|
-
return /*#__PURE__*/_react.default.createElement(RowContainer, null, /*#__PURE__*/_react.default.createElement(Label, {
|
|
170
|
-
labelTextColor: labelTextColor
|
|
171
|
-
}, label, ":"), /*#__PURE__*/_react.default.createElement(Value, {
|
|
172
|
-
valueTextColor: valueTextColor
|
|
173
|
-
}, value));
|
|
120
|
+
value
|
|
121
|
+
} = _ref9;
|
|
122
|
+
return /*#__PURE__*/_react.default.createElement(RowContainer, null, /*#__PURE__*/_react.default.createElement(Label, null, label, ":"), /*#__PURE__*/_react.default.createElement(Value, null, value));
|
|
174
123
|
};
|
|
175
124
|
BmInfoPanel.Section = Section;
|
|
176
125
|
BmInfoPanel.Row = Row;
|
|
@@ -48,34 +48,6 @@ 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'
|
|
73
|
-
},
|
|
74
|
-
labelTextColor: {
|
|
75
|
-
control: 'color'
|
|
76
|
-
},
|
|
77
|
-
valueTextColor: {
|
|
78
|
-
control: 'color'
|
|
79
51
|
}
|
|
80
52
|
}
|
|
81
53
|
};
|
|
@@ -86,13 +58,7 @@ const Template = _ref => {
|
|
|
86
58
|
backgroundColor,
|
|
87
59
|
iconColor,
|
|
88
60
|
textColor,
|
|
89
|
-
iconBackgroundColor
|
|
90
|
-
dividerColor,
|
|
91
|
-
dividerOpacity,
|
|
92
|
-
dividerType,
|
|
93
|
-
dividerWidth,
|
|
94
|
-
labelTextColor,
|
|
95
|
-
valueTextColor
|
|
61
|
+
iconBackgroundColor
|
|
96
62
|
} = _ref;
|
|
97
63
|
if (variant === 'summary') {
|
|
98
64
|
return /*#__PURE__*/_react.default.createElement(_InfoPanel.default, {
|
|
@@ -134,19 +100,13 @@ const Template = _ref => {
|
|
|
134
100
|
label: "Date",
|
|
135
101
|
value: "Monday, June 24, 2025"
|
|
136
102
|
}), /*#__PURE__*/_react.default.createElement(_InfoPanel.default.Row, {
|
|
137
|
-
labelTextColor: labelTextColor,
|
|
138
|
-
valueTextColor: valueTextColor,
|
|
139
103
|
label: "Time",
|
|
140
104
|
value: "09:00 AM"
|
|
141
105
|
})), /*#__PURE__*/_react.default.createElement(_InfoPanel.default.Section, {
|
|
142
106
|
title: "Personal Information",
|
|
143
107
|
icon: _Person.default,
|
|
144
108
|
showDivider: showDivider,
|
|
145
|
-
iconColor: iconColor
|
|
146
|
-
dividerColor: dividerColor,
|
|
147
|
-
dividerType: dividerType,
|
|
148
|
-
dividerOpacity: dividerOpacity,
|
|
149
|
-
dividerWitdh: dividerWidth
|
|
109
|
+
iconColor: iconColor
|
|
150
110
|
}, /*#__PURE__*/_react.default.createElement(_InfoPanel.default.Row, {
|
|
151
111
|
label: "Name",
|
|
152
112
|
value: "John Doe"
|
|
@@ -165,13 +125,7 @@ Default.args = {
|
|
|
165
125
|
backgroundColor: '#33B1BA',
|
|
166
126
|
iconColor: '#33B1BA',
|
|
167
127
|
textColor: '#000000',
|
|
168
|
-
iconBackgroundColor: false
|
|
169
|
-
dividerColor: '#33b1ba',
|
|
170
|
-
dividerType: 'dashed',
|
|
171
|
-
dividerWidth: '1px',
|
|
172
|
-
dividerOpacity: '0.2',
|
|
173
|
-
labelTextColor: '#e46a8e',
|
|
174
|
-
valueTextColor: '#235e92'
|
|
128
|
+
iconBackgroundColor: false
|
|
175
129
|
};
|
|
176
130
|
const ExampleSummary = () => {
|
|
177
131
|
return /*#__PURE__*/_react.default.createElement(_InfoPanel.default, null, /*#__PURE__*/_react.default.createElement(_InfoPanel.default.Section, {
|
|
@@ -208,8 +162,6 @@ const ExampleDetails = () => {
|
|
|
208
162
|
label: "Resource",
|
|
209
163
|
value: formData.resourceName
|
|
210
164
|
}), /*#__PURE__*/_react.default.createElement(_InfoPanel.default.Row, {
|
|
211
|
-
labelTextColor: "#e46a8e",
|
|
212
|
-
valueTextColor: "#235e92",
|
|
213
165
|
label: "Duration",
|
|
214
166
|
value: appointmentDetails.duration
|
|
215
167
|
}), /*#__PURE__*/_react.default.createElement(_InfoPanel.default.Row, {
|
|
@@ -221,11 +173,7 @@ const ExampleDetails = () => {
|
|
|
221
173
|
})), /*#__PURE__*/_react.default.createElement(_InfoPanel.default.Section, {
|
|
222
174
|
title: "Personal Information",
|
|
223
175
|
icon: _Person.default,
|
|
224
|
-
showDivider: true
|
|
225
|
-
dividerColor: "#33b1ba",
|
|
226
|
-
dividerType: "dashed",
|
|
227
|
-
dividerWitdh: "1px",
|
|
228
|
-
dividerOpacity: "0.2"
|
|
176
|
+
showDivider: true
|
|
229
177
|
}, /*#__PURE__*/_react.default.createElement(_InfoPanel.default.Row, {
|
|
230
178
|
label: "Name",
|
|
231
179
|
value: formData.name
|
|
@@ -6,22 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _convertToRGBA = _interopRequireDefault(require("../../../util/convertToRGBA"));
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
const hexToRgba = function (hex) {
|
|
11
|
-
let opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.6;
|
|
12
|
-
try {
|
|
13
|
-
const normalizedHex = hex === null || hex === void 0 ? void 0 : hex.replace('#', '');
|
|
14
|
-
if (!normalizedHex || normalizedHex.length !== 6 || !/^[0-9a-fA-F]{6}$/.test(normalizedHex)) {
|
|
15
|
-
throw new Error('Invalid hex');
|
|
16
|
-
}
|
|
17
|
-
const r = parseInt(normalizedHex.slice(0, 2), 16);
|
|
18
|
-
const g = parseInt(normalizedHex.slice(2, 4), 16);
|
|
19
|
-
const b = parseInt(normalizedHex.slice(4, 6), 16);
|
|
20
|
-
return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(opacity, ")");
|
|
21
|
-
} catch (e) {
|
|
22
|
-
return "rgba(0, 0, 0, ".concat(opacity, ")");
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
11
|
const Container = _styledComponents.default.div.withConfig({
|
|
26
12
|
displayName: "ProgressIndicator__Container"
|
|
27
13
|
})(["margin-bottom:1rem;--primary-color:", ";--primary-light:", ";--primary-lighter:", ";--muted-color:", ";--muted-foreground-color:", ";@media (min-width:45.7143rem){margin-bottom:1.5rem;}"], _ref => {
|
|
@@ -33,12 +19,12 @@ const Container = _styledComponents.default.div.withConfig({
|
|
|
33
19
|
let {
|
|
34
20
|
primaryColor
|
|
35
21
|
} = _ref2;
|
|
36
|
-
return
|
|
22
|
+
return (0, _convertToRGBA.default)(primaryColor, 0.2);
|
|
37
23
|
}, _ref3 => {
|
|
38
24
|
let {
|
|
39
25
|
primaryColor
|
|
40
26
|
} = _ref3;
|
|
41
|
-
return
|
|
27
|
+
return (0, _convertToRGBA.default)(primaryColor, 0.4);
|
|
42
28
|
}, _ref4 => {
|
|
43
29
|
let {
|
|
44
30
|
mutedColor
|
|
@@ -6,34 +6,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
var _convertToRGBA = _interopRequireDefault(require("../../../util/convertToRGBA"));
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
const hexToRgba = function (hex) {
|
|
11
|
-
let opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.6;
|
|
12
|
-
try {
|
|
13
|
-
const normalizedHex = hex === null || hex === void 0 ? void 0 : hex.replace('#', '');
|
|
14
|
-
if (!normalizedHex || normalizedHex.length !== 6 || !/^[0-9a-fA-F]{6}$/.test(normalizedHex)) {
|
|
15
|
-
throw new Error('Invalid hex');
|
|
16
|
-
}
|
|
17
|
-
const r = parseInt(normalizedHex.slice(0, 2), 16);
|
|
18
|
-
const g = parseInt(normalizedHex.slice(2, 4), 16);
|
|
19
|
-
const b = parseInt(normalizedHex.slice(4, 6), 16);
|
|
20
|
-
return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(opacity, ")");
|
|
21
|
-
} catch (e) {
|
|
22
|
-
return "rgba(0, 0, 0, ".concat(opacity, ")");
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
11
|
const Container = _styledComponents.default.div.withConfig({
|
|
26
12
|
displayName: "SelectionNotice__Container"
|
|
27
13
|
})(["background-color:", ";border:0.0714rem solid ", ";padding:0.5rem;border-radius:0.5rem;text-align:center;animation:fadeIn 0.3s ease-in;@media (min-width:45.7143rem){padding:0.75rem;}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}"], _ref => {
|
|
28
14
|
let {
|
|
29
15
|
color
|
|
30
16
|
} = _ref;
|
|
31
|
-
return
|
|
17
|
+
return (0, _convertToRGBA.default)(color || '#33B1BA', 0.05);
|
|
32
18
|
}, _ref2 => {
|
|
33
19
|
let {
|
|
34
20
|
color
|
|
35
21
|
} = _ref2;
|
|
36
|
-
return
|
|
22
|
+
return (0, _convertToRGBA.default)(color || '#33B1BA', 0.2);
|
|
37
23
|
});
|
|
38
24
|
const Text = _styledComponents.default.p.withConfig({
|
|
39
25
|
displayName: "SelectionNotice__Text"
|
package/dist/components/index.js
CHANGED
|
@@ -9,12 +9,6 @@ Object.defineProperty(exports, "BmAccordion", {
|
|
|
9
9
|
return _Accordion.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "BmAlertBox", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _Alert.default;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
12
|
Object.defineProperty(exports, "BmAlertIcon", {
|
|
19
13
|
enumerable: true,
|
|
20
14
|
get: function () {
|
|
@@ -172,12 +166,6 @@ Object.defineProperty(exports, "BmCounter", {
|
|
|
172
166
|
return _messageCounter.default;
|
|
173
167
|
}
|
|
174
168
|
});
|
|
175
|
-
Object.defineProperty(exports, "BmCustomCardTitle", {
|
|
176
|
-
enumerable: true,
|
|
177
|
-
get: function () {
|
|
178
|
-
return _CustomCardTitle.default;
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
169
|
Object.defineProperty(exports, "BmEmojiIcon", {
|
|
182
170
|
enumerable: true,
|
|
183
171
|
get: function () {
|
|
@@ -477,7 +465,5 @@ var _LabelWithIcon = _interopRequireDefault(require("./LabelWithIcon/LabelWithIc
|
|
|
477
465
|
var _Card = require("./Card_v2/Card");
|
|
478
466
|
var _InfoPanel = _interopRequireDefault(require("./InfoPanel/InfoPanel"));
|
|
479
467
|
var _BmSelector = _interopRequireDefault(require("./BmSelector/BmSelector"));
|
|
480
|
-
var _CustomCardTitle = _interopRequireDefault(require("./BmCustomCardTitle/CustomCardTitle"));
|
|
481
|
-
var _Alert = _interopRequireDefault(require("./Alert/Alert"));
|
|
482
468
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
483
469
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
package/nginx.conf
CHANGED
|
@@ -1,31 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
server {
|
|
2
|
+
listen 8085;
|
|
3
|
+
root /usr/share/nginx/html;
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
index index.html index.htm;
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
include /etc/nginx/mime.types;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
gzip on;
|
|
10
|
+
gzip_min_length 1000;
|
|
11
|
+
gzip_proxied expired no-cache no-store private auth;
|
|
12
|
+
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
# }
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# nginx.conf
|
|
21
|
-
server {
|
|
22
|
-
listen 3000;
|
|
23
|
-
server_name localhost;
|
|
24
|
-
|
|
25
|
-
root /usr/share/nginx/html;
|
|
26
|
-
index index.html;
|
|
27
|
-
|
|
28
|
-
location / {
|
|
29
|
-
try_files $uri $uri/ /index.html;
|
|
30
|
-
}
|
|
14
|
+
location / {
|
|
15
|
+
try_files $uri $uri/ /index.html;
|
|
16
|
+
}
|
|
31
17
|
}
|