@ssa-ui-kit/templates 3.12.0 → 3.13.0

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 CHANGED
@@ -1549,12 +1549,13 @@ const ProgressPoint = ({
1549
1549
 
1550
1550
 
1551
1551
 
1552
+
1552
1553
  const GrowthIndexIcon = ({
1553
1554
  isIncreasing,
1554
1555
  size
1555
1556
  }) => {
1556
1557
  const theme = (0,react_namespaceObject.useTheme)();
1557
- return isIncreasing != null && (0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.Icon, {
1558
+ return !(0,utils_namespaceObject.isNill)(isIncreasing) && (0,jsx_runtime_namespaceObject.jsx)(core_namespaceObject.Icon, {
1558
1559
  size: size,
1559
1560
  name: `arrow-${isIncreasing ? 'up' : 'down'}`,
1560
1561
  color: theme.colors[isIncreasing ? 'green' : 'pink']
@@ -3454,6 +3455,7 @@ function Rebalance_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to
3454
3455
 
3455
3456
 
3456
3457
 
3458
+
3457
3459
  var Rebalance_ref = true ? {
3458
3460
  name: "12xp8a",
3459
3461
  styles: "grid-area:rebalancing"
@@ -3567,7 +3569,7 @@ const Rebalance = ({
3567
3569
  xshift: 35,
3568
3570
  showarrow: false,
3569
3571
  yshift: isFullscreenMode ? 50 : 37,
3570
- text: rebalanceData == null || rebalanceData.length === 0 ? undefined : currency
3572
+ text: (0,utils_namespaceObject.isNill)(rebalanceData) || rebalanceData.length === 0 ? undefined : currency
3571
3573
  }],
3572
3574
  title: {
3573
3575
  ...plotlyDefaultLayoutConfig.layout.title,
@@ -4296,6 +4298,7 @@ const TopMenuWrapper = /*#__PURE__*/base_default()(core_namespaceObject.Wrapper,
4296
4298
 
4297
4299
 
4298
4300
 
4301
+
4299
4302
  const HeaderContext = /*#__PURE__*/(0,external_react_namespaceObject.createContext)({
4300
4303
  headerContentRef: /*#__PURE__*/(0,external_react_namespaceObject.createRef)(),
4301
4304
  breadcrumbContentRef: /*#__PURE__*/(0,external_react_namespaceObject.createRef)(),
@@ -4312,15 +4315,11 @@ const HeaderProvider = ({
4312
4315
  const headerContentRef = useRef(null);
4313
4316
  const breadcrumbContentRef = useRef(null);
4314
4317
  const renderHeaderContent = content => {
4315
- if (headerContentRef.current == null) {
4316
- return null;
4317
- }
4318
+ if (isNill(headerContentRef.current)) return null;
4318
4319
  return /*#__PURE__*/createPortal(content, headerContentRef.current);
4319
4320
  };
4320
4321
  const renderBreadcrumbContent = content => {
4321
- if (breadcrumbContentRef.current == null) {
4322
- return null;
4323
- }
4322
+ if (isNill(breadcrumbContentRef.current)) return null;
4324
4323
  return /*#__PURE__*/createPortal(content, breadcrumbContentRef.current);
4325
4324
  };
4326
4325
  return _jsx(HeaderContext.Provider, {
@@ -8431,6 +8430,7 @@ function NotificationFilters_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have
8431
8430
 
8432
8431
 
8433
8432
 
8433
+
8434
8434
  const buttonStyles = true ? {
8435
8435
  name: "1fd7lho",
8436
8436
  styles: "&:disabled{cursor:default;}"
@@ -8458,7 +8458,7 @@ const NotificationFilters = ({
8458
8458
  isDisabled: allFilter.isDisabled,
8459
8459
  text: allFilter.text
8460
8460
  } : null].filter(isTruthy);
8461
- const selectedItem = selectedItemId != null ? selectedItemId === UNREAD_FILTER_ID ? items[0] : items[1] : undefined;
8461
+ const selectedItem = !(0,utils_namespaceObject.isNill)(selectedItemId) ? selectedItemId === UNREAD_FILTER_ID ? items[0] : items[1] : undefined;
8462
8462
  return (0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
8463
8463
  children: [(0,jsx_runtime_namespaceObject.jsx)(NotificationFilters_ButtonGroupMD, {
8464
8464
  items: items,
@@ -12436,9 +12436,10 @@ const useAuth = () => {
12436
12436
  };
12437
12437
  ;// ./src/projects/fitness/apis/sources/firebase/mealNutrientsApi.ts
12438
12438
 
12439
+
12439
12440
  const mealNutrients = {
12440
12441
  async get(timePeriodId) {
12441
- if (timePeriodId == null) {
12442
+ if ((0,utils_namespaceObject.isNill)(timePeriodId)) {
12442
12443
  throw new Error('No id provided');
12443
12444
  }
12444
12445
  const {