@festo-ui/react 3.2.1-pre-20220720.1 → 3.2.1-pre-20220720.2

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/index.esm.css CHANGED
@@ -171,9 +171,17 @@
171
171
  justify-content: center;
172
172
  align-items: center;
173
173
  }
174
+ .fr-waiting-container .fr-waiting-content-container {
175
+ margin-top: 12px;
176
+ color: var(--fwe-hero);
177
+ }
174
178
 
175
- .fr-waiting-indicator {
176
- margin-bottom: 16px;
179
+ .fr-waiting-container-sm {
180
+ flex-direction: row;
181
+ }
182
+ .fr-waiting-container-sm .fr-waiting-content-container {
183
+ margin-top: unset;
184
+ margin-left: 8px;
177
185
  }
178
186
  .fr-modal {
179
187
  opacity: 0;
package/index.esm.js CHANGED
@@ -516,19 +516,25 @@ function LinkButton({
516
516
  }), void 0);
517
517
  }
518
518
 
519
- function LoadingIndicator({
520
- size = 'large',
521
- children,
522
- className
523
- }) {
519
+ const LoadingIndicator = /*#__PURE__*/forwardRef((_a, ref) => {
520
+ var {
521
+ size = 'large',
522
+ children,
523
+ className
524
+ } = _a,
525
+ props = __rest(_a, ["size", "children", "className"]);
526
+
524
527
  const classes = classNames('fwe-waiting-indicator', {
525
528
  'fwe-waiting-indicator-md': size === 'medium'
526
529
  }, {
527
530
  'fwe-waiting-indicator-sm': size === 'small'
528
- }, className);
531
+ });
529
532
  return jsxs("div", Object.assign({
530
- className: "fr-waiting-container"
531
- }, {
533
+ className: classNames('fr-waiting-container', {
534
+ 'fr-waiting-container-sm': size === 'small'
535
+ }, className),
536
+ ref: ref
537
+ }, props, {
532
538
  children: [jsxs("div", Object.assign({
533
539
  className: classes
534
540
  }, {
@@ -538,10 +544,16 @@ function LoadingIndicator({
538
544
  className: "fwe-waiting-circle-2"
539
545
  }, void 0), jsx("div", {
540
546
  className: "fwe-waiting-circle-3"
547
+ }, void 0), jsx("div", {
548
+ className: "fwe-waiting-circle-4"
541
549
  }, void 0)]
542
- }), void 0), children]
550
+ }), void 0), jsx("div", Object.assign({
551
+ className: "fr-waiting-content-container"
552
+ }, {
553
+ children: children
554
+ }), void 0)]
543
555
  }), void 0);
544
- }
556
+ });
545
557
 
546
558
  const Modal = /*#__PURE__*/forwardRef(({
547
559
  head,
package/index.umd.css CHANGED
@@ -171,9 +171,17 @@
171
171
  justify-content: center;
172
172
  align-items: center;
173
173
  }
174
+ .fr-waiting-container .fr-waiting-content-container {
175
+ margin-top: 12px;
176
+ color: var(--fwe-hero);
177
+ }
174
178
 
175
- .fr-waiting-indicator {
176
- margin-bottom: 16px;
179
+ .fr-waiting-container-sm {
180
+ flex-direction: row;
181
+ }
182
+ .fr-waiting-container-sm .fr-waiting-content-container {
183
+ margin-top: unset;
184
+ margin-left: 8px;
177
185
  }
178
186
  .fr-modal {
179
187
  opacity: 0;
package/index.umd.js CHANGED
@@ -558,19 +558,24 @@
558
558
  }), void 0);
559
559
  }
560
560
 
561
- function LoadingIndicator(_a) {
561
+ var LoadingIndicator = /*#__PURE__*/React.forwardRef(function (_a, ref) {
562
562
  var _b = _a.size,
563
563
  size = _b === void 0 ? 'large' : _b,
564
564
  children = _a.children,
565
- className = _a.className;
565
+ className = _a.className,
566
+ props = __rest(_a, ["size", "children", "className"]);
567
+
566
568
  var classes = classNames__default["default"]('fwe-waiting-indicator', {
567
569
  'fwe-waiting-indicator-md': size === 'medium'
568
570
  }, {
569
571
  'fwe-waiting-indicator-sm': size === 'small'
570
- }, className);
572
+ });
571
573
  return jsxRuntime.jsxs("div", __assign({
572
- className: "fr-waiting-container"
573
- }, {
574
+ className: classNames__default["default"]('fr-waiting-container', {
575
+ 'fr-waiting-container-sm': size === 'small'
576
+ }, className),
577
+ ref: ref
578
+ }, props, {
574
579
  children: [jsxRuntime.jsxs("div", __assign({
575
580
  className: classes
576
581
  }, {
@@ -580,10 +585,16 @@
580
585
  className: "fwe-waiting-circle-2"
581
586
  }, void 0), jsxRuntime.jsx("div", {
582
587
  className: "fwe-waiting-circle-3"
588
+ }, void 0), jsxRuntime.jsx("div", {
589
+ className: "fwe-waiting-circle-4"
583
590
  }, void 0)]
584
- }), void 0), children]
591
+ }), void 0), jsxRuntime.jsx("div", __assign({
592
+ className: "fr-waiting-content-container"
593
+ }, {
594
+ children: children
595
+ }), void 0)]
585
596
  }), void 0);
586
- }
597
+ });
587
598
 
588
599
  var Modal = /*#__PURE__*/React.forwardRef(function (_a, ref) {
589
600
  var head = _a.head,
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
- import { ClassNamePropsWithChildren } from '../../helper/types';
1
+ import React, { ComponentPropsWithRef } from 'react';
3
2
  import './LoadingIndicator.scss';
4
- interface LoadingIndicatorProps extends ClassNamePropsWithChildren {
3
+ interface LoadingIndicatorProps extends ComponentPropsWithRef<'div'> {
5
4
  size: 'large' | 'medium' | 'small';
6
5
  }
7
- declare function LoadingIndicator({ size, children, className }: LoadingIndicatorProps): JSX.Element;
6
+ export declare const LoadingIndicator: React.ForwardRefExoticComponent<Pick<LoadingIndicatorProps, "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "size"> & React.RefAttributes<HTMLDivElement>>;
8
7
  export default LoadingIndicator;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/react",
3
- "version": "3.2.1-pre-20220720.1",
3
+ "version": "3.2.1-pre-20220720.2",
4
4
  "author": "Festo UI (styleguide@festo.com)",
5
5
  "license": "apache-2.0",
6
6
  "peerDependencies": {