@moda/om 17.13.0 → 17.14.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [17.14.1](https://github.com/ModaOperandi/om/compare/v17.14.0...v17.14.1) (2022-11-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **loading-shapes:** exports the component ([#3056](https://github.com/ModaOperandi/om/issues/3056)) ([d9e9289](https://github.com/ModaOperandi/om/commit/d9e928950e39c18f2cb6a09f8c7d7e82b98b94b3))
12
+
13
+ # [17.14.0](https://github.com/ModaOperandi/om/compare/v17.13.0...v17.14.0) (2022-11-15)
14
+
15
+
16
+ ### Features
17
+
18
+ * **loading-shapes:** adds the component, imported from discovery and its stories ([#3055](https://github.com/ModaOperandi/om/issues/3055)) ([c242985](https://github.com/ModaOperandi/om/commit/c242985806107cc78e550f030cf0975301067c17))
19
+
6
20
  # [17.13.0](https://github.com/ModaOperandi/om/compare/v17.12.0...v17.13.0) (2022-11-14)
7
21
 
8
22
 
package/dist/index.cjs.js CHANGED
@@ -10443,6 +10443,36 @@ var LoadingBalls = function LoadingBalls(_ref) {
10443
10443
  })));
10444
10444
  };
10445
10445
 
10446
+ var INTERVAL = 100;
10447
+ var LoadingShapes = function LoadingShapes() {
10448
+ var items = [Triangle, Diamond, ArcWindow, Circle];
10449
+ var _useCursor = dist.useCursor({
10450
+ max: items.length
10451
+ }),
10452
+ index = _useCursor.index,
10453
+ handleNext = _useCursor.handleNext;
10454
+ React.useEffect(function () {
10455
+ var interval = setInterval(function () {
10456
+ handleNext();
10457
+ }, INTERVAL);
10458
+ return function () {
10459
+ return clearInterval(interval);
10460
+ };
10461
+ }, [handleNext]);
10462
+ return /*#__PURE__*/React.createElement(Stack, {
10463
+ className: "LoadingShapes",
10464
+ direction: "horizontal",
10465
+ space: 2
10466
+ }, items.map(function (Item, itemIndex) {
10467
+ return /*#__PURE__*/React.createElement("div", {
10468
+ className: classNames('LoadingShapes__item', {
10469
+ 'LoadingShapes__item--current': itemIndex !== index
10470
+ }),
10471
+ key: itemIndex
10472
+ }, /*#__PURE__*/React.createElement(Item, null));
10473
+ }));
10474
+ };
10475
+
10446
10476
  var _excluded$c = ["className", "children", "onClose", "shards", "autoFocus"];
10447
10477
  var Modal = function Modal(_ref) {
10448
10478
  var className = _ref.className,
@@ -11218,6 +11248,7 @@ exports.Keyhole = Keyhole;
11218
11248
  exports.Label = Label;
11219
11249
  exports.Loading = Loading;
11220
11250
  exports.LoadingBalls = LoadingBalls;
11251
+ exports.LoadingShapes = LoadingShapes;
11221
11252
  exports.Mirror = Mirror;
11222
11253
  exports.Modal = Modal;
11223
11254
  exports.ModalOverlay = ModalOverlay;