"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isTabGroup = exports.isTabField = exports.isFieldset = exports.isExpand = exports.isDateRange = void 0;
// Radio fields are different, they cannot be deselected by a user
//   Thereby they _always_ need a value for submission
//
// You can do that through `defaultValue`, or `isRequired: true`

var isFieldset = exports.isFieldset = function isFieldset(field) {
  return field.type === 'fieldset';
};
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
var isTabGroup = exports.isTabGroup = function isTabGroup(field) {
  return field.type === 'tab-group';
};
// Ignored via go/ees005
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @atlaskit/volt-strict-mode/no-multiple-exports
var isTabField = exports.isTabField = function isTabField(field) {
  return 'type' in field && field.type === 'tab';
};
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
var isExpand = exports.isExpand = function isExpand(field) {
  return field.type === 'expand';
};

// Ignored via go/ees005
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @atlaskit/volt-strict-mode/no-multiple-exports
var isDateRange = exports.isDateRange = function isDateRange(value) {
  return value && value.hasOwnProperty('type') && value.type === 'date-range';
};