@luscii-healthtech/web-ui 2.54.0 → 2.55.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.
@@ -8,6 +8,7 @@ export declare type DropzonePresentationProps = {
8
8
  children?: ReactNode;
9
9
  className?: string;
10
10
  dataTestId?: string;
11
+ horizontal?: boolean;
11
12
  };
12
13
  export declare type DropzoneProps = Omit<DropzonePresentationProps, "isHighlighted"> & {
13
14
  draggableIdentifier: string | number;
@@ -2542,18 +2542,25 @@ var _excluded$4 = ["draggableIdentifier", "disabled", "data", "dataTestId"];
2542
2542
 
2543
2543
  var DefaultState = function DefaultState(_ref) {
2544
2544
  var icon = _ref.icon,
2545
- message = _ref.message;
2545
+ message = _ref.message,
2546
+ _ref$horizontal = _ref.horizontal,
2547
+ horizontal = _ref$horizontal === void 0 ? false : _ref$horizontal;
2546
2548
 
2547
2549
  if (!icon && !message) {
2548
2550
  return null;
2549
2551
  }
2550
2552
 
2553
+ var className = classNames("p-4 flex items-center", {
2554
+ "flex-col justify-center": !horizontal,
2555
+ "flex-row w-full ": horizontal
2556
+ });
2551
2557
  return /*#__PURE__*/React__default.createElement("div", {
2552
- className: "p-4 flex flex-col items-center justify-center"
2558
+ className: className
2553
2559
  }, icon && /*#__PURE__*/React__default.createElement(Icon, {
2554
2560
  name: icon,
2555
2561
  className: classNames("text-blue-800", {
2556
- "mb-2": message
2562
+ "mb-2": message && !horizontal,
2563
+ "mr-2": horizontal
2557
2564
  })
2558
2565
  }), message && /*#__PURE__*/React__default.createElement(Text, {
2559
2566
  type: "base",
@@ -2569,7 +2576,8 @@ var DropzonePresentation = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
2569
2576
  isHighlighted = _ref2.isHighlighted,
2570
2577
  className = _ref2.className,
2571
2578
  dataTestId = _ref2.dataTestId,
2572
- children = _ref2.children;
2579
+ children = _ref2.children,
2580
+ horizontal = _ref2.horizontal;
2573
2581
  var classes = classNames("bg-blue-50 border-2 border-blue-800 rounded flex items-center justify-center", {
2574
2582
  "border-dashed": !isHighlighted,
2575
2583
  "border-solid": isHighlighted
@@ -2578,9 +2586,10 @@ var DropzonePresentation = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
2578
2586
  className: classes,
2579
2587
  ref: ref,
2580
2588
  "data-test-id": dataTestId
2581
- }, children ? children : /*#__PURE__*/React__default.createElement(DefaultState, {
2589
+ }, children || /*#__PURE__*/React__default.createElement(DefaultState, {
2582
2590
  icon: icon,
2583
- message: message
2591
+ message: message,
2592
+ horizontal: horizontal
2584
2593
  }));
2585
2594
  });
2586
2595
  var Dropzone = function Dropzone(_ref3) {