@speakapbv/dough-component-library 9.33.0 → 10.0.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.
@@ -13,8 +13,9 @@ export interface OverlayProps {
13
13
  position?: CSSProperties["position"];
14
14
  zIndex?: number;
15
15
  variant?: OverlayVariant;
16
+ blocking?: boolean;
16
17
  }
17
- export declare function Overlay({ position, zIndex, opacity, dataAttributes, className, variant, }: OverlayProps): JSX.Element;
18
+ export declare function Overlay({ position, zIndex, opacity, dataAttributes, className, variant, blocking, }: OverlayProps): JSX.Element;
18
19
  export declare namespace Overlay {
19
20
  var displayName: string;
20
21
  }
package/dist/index.es.js CHANGED
@@ -636,7 +636,7 @@ var Button = function (props) {
636
636
  cancelEvent(e);
637
637
  return;
638
638
  }
639
- else if (!props.busy && !props.disabled) {
639
+ else {
640
640
  if (buttonRef.current) {
641
641
  var buttonGlow_1 = buttonRef.current.querySelector(".dough-button-background-glow");
642
642
  if (buttonGlow_1 === null || buttonGlow_1 === void 0 ? void 0 : buttonGlow_1.classList.contains("dough-glow-background")) {
@@ -757,7 +757,7 @@ var Button = function (props) {
757
757
  "dough-button-full-width": props.fullWidth,
758
758
  "dough-link-no-underline": type === ButtonInputType.LINK,
759
759
  }), disabled: props.disabled, onClick: clickHandler, dataAttributes: props.dataAttributes }, linkProps), getButtonContent())),
760
- type !== ButtonInputType.LINK && (React.createElement("button", __assign({ ref: buttonRef, type: type, autoFocus: props.autoFocus, name: props.name, onMouseDown: cancelEvent, onPointerDown: cancelEvent, tabIndex: props.tabIndex === undefined ? 0 : props.tabIndex, className: cn("dough-button-wrapper", props.className, {
760
+ type !== ButtonInputType.LINK && (React.createElement("button", __assign({ ref: buttonRef, type: type, autoFocus: props.autoFocus, name: props.name, tabIndex: props.tabIndex === undefined ? 0 : props.tabIndex, className: cn("dough-button-wrapper", props.className, {
761
761
  "dough-button-full-width": props.fullWidth,
762
762
  "dough-button-not-clickable": !props.onClick &&
763
763
  !props.onDoubleClick &&
@@ -5069,7 +5069,7 @@ var Fader = function (props) { return (React.createElement("span", __assign({ cl
5069
5069
  : Colors.THEME, "dough-fader-side dough-fader-left") }))); };
5070
5070
  Fader.displayName = "Fader";
5071
5071
 
5072
- var css_248z$G = "/* COLORS */\n/* Typography*/\n/*Dennis should provide medium font size*/\n.dough-overlay {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: auto;\n height: auto;\n position: absolute !important;\n pointer-events: none;\n background: rgba(0, 0, 0, 0.4);\n}\n.dough-overlay.dark {\n background: rgba(0, 0, 0, 0.8);\n}";
5072
+ var css_248z$G = "/* COLORS */\n/* Typography*/\n/*Dennis should provide medium font size*/\n.dough-overlay {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: auto;\n height: auto;\n position: absolute !important;\n pointer-events: none;\n background: rgba(0, 0, 0, 0.4);\n}\n.dough-overlay.dark {\n background: rgba(0, 0, 0, 0.8);\n}\n.dough-overlay.blocking {\n pointer-events: unset;\n}";
5073
5073
  styleInject(css_248z$G);
5074
5074
 
5075
5075
  var OverlayVariant;
@@ -5078,9 +5078,10 @@ var OverlayVariant;
5078
5078
  OverlayVariant["STANDARD"] = "standard";
5079
5079
  })(OverlayVariant || (OverlayVariant = {}));
5080
5080
  function Overlay(_a) {
5081
- var position = _a.position, zIndex = _a.zIndex, opacity = _a.opacity, dataAttributes = _a.dataAttributes, className = _a.className, _b = _a.variant, variant = _b === void 0 ? OverlayVariant.STANDARD : _b;
5081
+ var position = _a.position, zIndex = _a.zIndex, opacity = _a.opacity, dataAttributes = _a.dataAttributes, className = _a.className, _b = _a.variant, variant = _b === void 0 ? OverlayVariant.STANDARD : _b, _c = _a.blocking, blocking = _c === void 0 ? true : _c;
5082
5082
  return (React.createElement("span", __assign({ className: cn(className, "dough-overlay", {
5083
5083
  dark: variant === OverlayVariant.DARK,
5084
+ blocking: blocking,
5084
5085
  }) }, dataAttributes, { style: {
5085
5086
  opacity: opacity,
5086
5087
  zIndex: zIndex,
package/dist/index.js CHANGED
@@ -630,7 +630,7 @@ var Button = function (props) {
630
630
  cancelEvent(e);
631
631
  return;
632
632
  }
633
- else if (!props.busy && !props.disabled) {
633
+ else {
634
634
  if (buttonRef.current) {
635
635
  var buttonGlow_1 = buttonRef.current.querySelector(".dough-button-background-glow");
636
636
  if (buttonGlow_1 === null || buttonGlow_1 === void 0 ? void 0 : buttonGlow_1.classList.contains("dough-glow-background")) {
@@ -751,7 +751,7 @@ var Button = function (props) {
751
751
  "dough-button-full-width": props.fullWidth,
752
752
  "dough-link-no-underline": type === exports.ButtonInputType.LINK,
753
753
  }), disabled: props.disabled, onClick: clickHandler, dataAttributes: props.dataAttributes }, linkProps), getButtonContent())),
754
- type !== exports.ButtonInputType.LINK && (React__default.createElement("button", __assign({ ref: buttonRef, type: type, autoFocus: props.autoFocus, name: props.name, onMouseDown: cancelEvent, onPointerDown: cancelEvent, tabIndex: props.tabIndex === undefined ? 0 : props.tabIndex, className: cn("dough-button-wrapper", props.className, {
754
+ type !== exports.ButtonInputType.LINK && (React__default.createElement("button", __assign({ ref: buttonRef, type: type, autoFocus: props.autoFocus, name: props.name, tabIndex: props.tabIndex === undefined ? 0 : props.tabIndex, className: cn("dough-button-wrapper", props.className, {
755
755
  "dough-button-full-width": props.fullWidth,
756
756
  "dough-button-not-clickable": !props.onClick &&
757
757
  !props.onDoubleClick &&
@@ -5052,7 +5052,7 @@ var Fader = function (props) { return (React__default.createElement("span", __as
5052
5052
  : exports.Colors.THEME, "dough-fader-side dough-fader-left") }))); };
5053
5053
  Fader.displayName = "Fader";
5054
5054
 
5055
- var css_248z$G = "/* COLORS */\n/* Typography*/\n/*Dennis should provide medium font size*/\n.dough-overlay {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: auto;\n height: auto;\n position: absolute !important;\n pointer-events: none;\n background: rgba(0, 0, 0, 0.4);\n}\n.dough-overlay.dark {\n background: rgba(0, 0, 0, 0.8);\n}";
5055
+ var css_248z$G = "/* COLORS */\n/* Typography*/\n/*Dennis should provide medium font size*/\n.dough-overlay {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: auto;\n height: auto;\n position: absolute !important;\n pointer-events: none;\n background: rgba(0, 0, 0, 0.4);\n}\n.dough-overlay.dark {\n background: rgba(0, 0, 0, 0.8);\n}\n.dough-overlay.blocking {\n pointer-events: unset;\n}";
5056
5056
  styleInject(css_248z$G);
5057
5057
 
5058
5058
  (function (OverlayVariant) {
@@ -5060,9 +5060,10 @@ styleInject(css_248z$G);
5060
5060
  OverlayVariant["STANDARD"] = "standard";
5061
5061
  })(exports.OverlayVariant || (exports.OverlayVariant = {}));
5062
5062
  function Overlay(_a) {
5063
- var position = _a.position, zIndex = _a.zIndex, opacity = _a.opacity, dataAttributes = _a.dataAttributes, className = _a.className, _b = _a.variant, variant = _b === void 0 ? exports.OverlayVariant.STANDARD : _b;
5063
+ var position = _a.position, zIndex = _a.zIndex, opacity = _a.opacity, dataAttributes = _a.dataAttributes, className = _a.className, _b = _a.variant, variant = _b === void 0 ? exports.OverlayVariant.STANDARD : _b, _c = _a.blocking, blocking = _c === void 0 ? true : _c;
5064
5064
  return (React__default.createElement("span", __assign({ className: cn(className, "dough-overlay", {
5065
5065
  dark: variant === exports.OverlayVariant.DARK,
5066
+ blocking: blocking,
5066
5067
  }) }, dataAttributes, { style: {
5067
5068
  opacity: opacity,
5068
5069
  zIndex: zIndex,
@@ -2,3 +2,4 @@ import React from "react";
2
2
  declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("./drop-menu").DropMenuProps & React.RefAttributes<import("./drop-menu").DoughDropMenuRef>>;
3
3
  export default _default;
4
4
  export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./drop-menu").DropMenuProps & React.RefAttributes<import("./drop-menu").DoughDropMenuRef>>;
5
+ export declare const Multiple: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, import("./drop-menu").DropMenuProps & React.RefAttributes<import("./drop-menu").DoughDropMenuRef>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speakapbv/dough-component-library",
3
- "version": "9.33.0",
3
+ "version": "10.0.0",
4
4
  "description": "DOUGH: Speakap React Component Library",
5
5
  "author": "Speakap",
6
6
  "license": "MIT",