dce-reactkit 3.7.16 → 3.7.17

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/cjs/index.js CHANGED
@@ -12906,7 +12906,7 @@ const ToggleSwitch = (props) => {
12906
12906
  /*------------------------------------------------------------------------*/
12907
12907
  /* -------------- Props ------------- */
12908
12908
  // Destructure all props
12909
- const { isOn, onToggle, id, description, backgroundVariantWhenOn = Variant$1.Info, } = props;
12909
+ const { isOn, onToggle, id, className, description, backgroundVariantWhenOn = Variant$1.Info, } = props;
12910
12910
  /*------------------------------------------------------------------------*/
12911
12911
  /* ------------------------------- Render ------------------------------- */
12912
12912
  /*------------------------------------------------------------------------*/
@@ -12916,7 +12916,7 @@ const ToggleSwitch = (props) => {
12916
12916
  const backgroundVariant = (isOn
12917
12917
  ? backgroundVariantWhenOn
12918
12918
  : 'secondary');
12919
- return (React__default["default"].createElement("button", { id: id, "aria-label": `If on, ${description}. Currently ${isOn ? 'on' : 'off'}. Click to turn ${isOn ? 'off' : 'on'}.`, className: `alert alert-${backgroundVariant} bg-${backgroundVariant} mb-0 rounded-pill d-inline-block pt-0 pb-0 px-3`, onClick: () => {
12919
+ return (React__default["default"].createElement("button", { id: id, "aria-label": `If on, ${description}. Currently ${isOn ? 'on' : 'off'}. Click to turn ${isOn ? 'off' : 'on'}.`, className: `alert alert-${backgroundVariant} bg-${backgroundVariant} mb-0 rounded-pill d-inline-block pt-0 pb-0 px-3 ${className !== null && className !== void 0 ? className : ''}`, onClick: () => {
12920
12920
  onToggle(!isOn);
12921
12921
  }, type: "button" },
12922
12922
  React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, { icon: freeSolidSvgIcons.faCircle, className: "text-light", style: {