@ssa-ui-kit/widgets 3.12.0 → 3.12.1
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/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -6475,11 +6475,11 @@ const external_react_namespaceObject = require("react");
|
|
|
6475
6475
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
|
|
6476
6476
|
;// external "@ssa-ui-kit/core"
|
|
6477
6477
|
const core_namespaceObject = require("@ssa-ui-kit/core");
|
|
6478
|
+
;// external "@ssa-ui-kit/utils"
|
|
6479
|
+
const utils_namespaceObject = require("@ssa-ui-kit/utils");
|
|
6478
6480
|
;// ./src/components/Activity/styles.ts
|
|
6479
6481
|
|
|
6480
6482
|
const contentWrapper = theme => /*#__PURE__*/(0,react_namespaceObject.css)("justify-content:center;gap:20px;flex-direction:row;max-width:380px;", theme.mediaQueries.md, "{gap:30px;}" + ( true ? "" : 0), true ? "" : 0);
|
|
6481
|
-
;// external "@ssa-ui-kit/utils"
|
|
6482
|
-
const utils_namespaceObject = require("@ssa-ui-kit/utils");
|
|
6483
6483
|
;// external "@emotion/react/jsx-runtime"
|
|
6484
6484
|
const jsx_runtime_namespaceObject = require("@emotion/react/jsx-runtime");
|
|
6485
6485
|
;// ./src/components/Activity/ActivityItem.tsx
|
|
@@ -6523,6 +6523,7 @@ function Activity_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to s
|
|
|
6523
6523
|
|
|
6524
6524
|
|
|
6525
6525
|
|
|
6526
|
+
|
|
6526
6527
|
var _ref = true ? {
|
|
6527
6528
|
name: "11yrylr",
|
|
6528
6529
|
styles: "width:100%;flex-direction:column"
|
|
@@ -6537,7 +6538,7 @@ const Activity = ({
|
|
|
6537
6538
|
const [selected, setSelected] = (0,external_react_namespaceObject.useState)('');
|
|
6538
6539
|
const [options, setOptions] = (0,external_react_namespaceObject.useState)([]);
|
|
6539
6540
|
(0,external_react_namespaceObject.useEffect)(() => {
|
|
6540
|
-
if (data
|
|
6541
|
+
if ((0,utils_namespaceObject.isNill)(data) || typeof data !== 'object') {
|
|
6541
6542
|
return;
|
|
6542
6543
|
}
|
|
6543
6544
|
setOptions(Object.keys(data).map((item, index) => ({
|
|
@@ -20981,7 +20982,7 @@ const HeartRate = ({
|
|
|
20981
20982
|
defs: gradientDefs,
|
|
20982
20983
|
onMouseMove: onBpmValueChange
|
|
20983
20984
|
})
|
|
20984
|
-
}), bpmValue
|
|
20985
|
+
}), !(0,utils_namespaceObject.isNill)(bpmValue) ? (0,jsx_runtime_namespaceObject.jsx)(BPM, {
|
|
20985
20986
|
value: bpmValue
|
|
20986
20987
|
}) : null]
|
|
20987
20988
|
})]
|
|
@@ -21230,6 +21231,7 @@ function MealNutrients_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried
|
|
|
21230
21231
|
|
|
21231
21232
|
|
|
21232
21233
|
|
|
21234
|
+
|
|
21233
21235
|
var MealNutrients_ref = true ? {
|
|
21234
21236
|
name: "as11ew",
|
|
21235
21237
|
styles: "line-height:normal"
|
|
@@ -21256,7 +21258,7 @@ const MealNutrients = ({
|
|
|
21256
21258
|
const containerRef = (0,external_react_namespaceObject.useRef)(null);
|
|
21257
21259
|
const chartConfig = MealNutrients_useChartConfig(containerRef, data, selectedOption?.precision);
|
|
21258
21260
|
(0,external_react_namespaceObject.useEffect)(() => {
|
|
21259
|
-
if (options?.length > 0 && selectedOption
|
|
21261
|
+
if (options?.length > 0 && (0,utils_namespaceObject.isNill)(selectedOption)) {
|
|
21260
21262
|
handleChange(options[0]);
|
|
21261
21263
|
}
|
|
21262
21264
|
}, [options]);
|
|
@@ -21944,6 +21946,7 @@ function MealPlanner_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried t
|
|
|
21944
21946
|
|
|
21945
21947
|
|
|
21946
21948
|
|
|
21949
|
+
|
|
21947
21950
|
const CustomOption = /*#__PURE__*/base_default()(core_namespaceObject.DropdownOption, true ? {
|
|
21948
21951
|
target: "e1mo13t60"
|
|
21949
21952
|
} : 0)( true ? {
|
|
@@ -21969,7 +21972,7 @@ const MealPlanner = ({
|
|
|
21969
21972
|
setSelectedOption(value);
|
|
21970
21973
|
};
|
|
21971
21974
|
(0,external_react_namespaceObject.useEffect)(() => {
|
|
21972
|
-
if (data
|
|
21975
|
+
if ((0,utils_namespaceObject.isNill)(data) || typeof data !== 'object') {
|
|
21973
21976
|
return;
|
|
21974
21977
|
}
|
|
21975
21978
|
setOptions(Object.keys(data).map((item, index) => ({
|
|
@@ -21980,7 +21983,7 @@ const MealPlanner = ({
|
|
|
21980
21983
|
})));
|
|
21981
21984
|
}, [data]);
|
|
21982
21985
|
(0,external_react_namespaceObject.useEffect)(() => {
|
|
21983
|
-
if (options?.length > 0 && selectedOption
|
|
21986
|
+
if (options?.length > 0 && (0,utils_namespaceObject.isNill)(selectedOption)) {
|
|
21984
21987
|
handleChange(options[0]);
|
|
21985
21988
|
}
|
|
21986
21989
|
}, [options]);
|