ywana-core8 0.0.602 → 0.0.603

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.
@@ -5214,6 +5214,12 @@ var FieldViewer = function FieldViewer(props) {
5214
5214
  if (hidden) return null;
5215
5215
 
5216
5216
  switch (type) {
5217
+ case TYPES.BOOLEAN:
5218
+ return /*#__PURE__*/React.createElement(BooleanViewer, {
5219
+ field: field,
5220
+ value: value
5221
+ });
5222
+
5217
5223
  case TYPES.STRING:
5218
5224
  return /*#__PURE__*/React.createElement(StringViewer, {
5219
5225
  field: field,
@@ -5261,6 +5267,26 @@ var EntityViewer = function EntityViewer(props) {
5261
5267
  });
5262
5268
  })));
5263
5269
  };
5270
+ /**
5271
+ * Boolean Viewer
5272
+ */
5273
+
5274
+
5275
+ var BooleanViewer = function BooleanViewer(props) {
5276
+ var field = props.field,
5277
+ value = props.value;
5278
+ var label = field.label,
5279
+ options = field.options;
5280
+ var iconName = value === true ? "check_box" : "check_box_outline_blank";
5281
+ var icon = /*#__PURE__*/React.createElement(Icon, {
5282
+ icon: iconName
5283
+ });
5284
+ return /*#__PURE__*/React.createElement(Property, {
5285
+ label: label,
5286
+ value: icon,
5287
+ options: options
5288
+ });
5289
+ };
5264
5290
  /**
5265
5291
  * StringViewer
5266
5292
  */