@moda/om 17.14.0 → 17.14.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/CHANGELOG.md +14 -0
- package/dist/index.cjs.js +31 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +31 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/src/components/LoadingShapes/LoadingShapes.tsx +2 -2
- package/src/components/index.ts +1 -0
package/dist/index.esm.js
CHANGED
|
@@ -10423,6 +10423,36 @@ var LoadingBalls = function LoadingBalls(_ref) {
|
|
|
10423
10423
|
})));
|
|
10424
10424
|
};
|
|
10425
10425
|
|
|
10426
|
+
var INTERVAL_MS = 250;
|
|
10427
|
+
var LoadingShapes = function LoadingShapes() {
|
|
10428
|
+
var items = [Triangle, Diamond, ArcWindow, Circle];
|
|
10429
|
+
var _useCursor = dist.useCursor({
|
|
10430
|
+
max: items.length
|
|
10431
|
+
}),
|
|
10432
|
+
index = _useCursor.index,
|
|
10433
|
+
handleNext = _useCursor.handleNext;
|
|
10434
|
+
useEffect(function () {
|
|
10435
|
+
var interval = setInterval(function () {
|
|
10436
|
+
handleNext();
|
|
10437
|
+
}, INTERVAL_MS);
|
|
10438
|
+
return function () {
|
|
10439
|
+
return clearInterval(interval);
|
|
10440
|
+
};
|
|
10441
|
+
}, [handleNext]);
|
|
10442
|
+
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
10443
|
+
className: "LoadingShapes",
|
|
10444
|
+
direction: "horizontal",
|
|
10445
|
+
space: 2
|
|
10446
|
+
}, items.map(function (Item, itemIndex) {
|
|
10447
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
10448
|
+
className: classNames('LoadingShapes__item', {
|
|
10449
|
+
'LoadingShapes__item--current': itemIndex !== index
|
|
10450
|
+
}),
|
|
10451
|
+
key: itemIndex
|
|
10452
|
+
}, /*#__PURE__*/React__default.createElement(Item, null));
|
|
10453
|
+
}));
|
|
10454
|
+
};
|
|
10455
|
+
|
|
10426
10456
|
var _excluded$c = ["className", "children", "onClose", "shards", "autoFocus"];
|
|
10427
10457
|
var Modal = function Modal(_ref) {
|
|
10428
10458
|
var className = _ref.className,
|
|
@@ -11165,4 +11195,4 @@ var Utilities = {
|
|
|
11165
11195
|
States: States
|
|
11166
11196
|
};
|
|
11167
11197
|
|
|
11168
|
-
export { ArcWindow, AspectRatioBox, Badge, Bradley, Brancusi, Breadcrumb, Breadcrumbs, Breakpoint, BreakpointContext, BreakpointProvider, Button, Checkbox, Circle, Clickable, ColorSwatch, Constrain, ControlLink, CreditCardNumberInput, DEFAULT_PRODUCT_ASPECT_HEIGHT, DEFAULT_PRODUCT_ASPECT_RATIO, DEFAULT_PRODUCT_ASPECT_WIDTH, DefinitionList, Diamond, Divider, ExceedConstrain, Expandable, Field, FocusOn, Field as Input, Keyhole, Label, Loading, LoadingBalls, Mirror, Modal, ModalOverlay, MultiSelect, NoLineDivider, Oval, Overlay, POPOVER_MOUSEOUT_DELAY_MS, Paginator, PasswordInput, Popover, PromoBanner, RadioButton, SKU_COLORS, SearchInput, Select, SelectableButton, SlidingPane, Stack, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, Text, TextInput, Textarea, Toast, Triangle, TwoLineDivider, UNMOUNT_DELAY_MS, Utilities, VerticalDivider, Window, discriminate, tokens, useBreakpoint, useClickOutside, useKeyboardListNavigation, useUpdateEffect };
|
|
11198
|
+
export { ArcWindow, AspectRatioBox, Badge, Bradley, Brancusi, Breadcrumb, Breadcrumbs, Breakpoint, BreakpointContext, BreakpointProvider, Button, Checkbox, Circle, Clickable, ColorSwatch, Constrain, ControlLink, CreditCardNumberInput, DEFAULT_PRODUCT_ASPECT_HEIGHT, DEFAULT_PRODUCT_ASPECT_RATIO, DEFAULT_PRODUCT_ASPECT_WIDTH, DefinitionList, Diamond, Divider, ExceedConstrain, Expandable, Field, FocusOn, Field as Input, Keyhole, Label, Loading, LoadingBalls, LoadingShapes, Mirror, Modal, ModalOverlay, MultiSelect, NoLineDivider, Oval, Overlay, POPOVER_MOUSEOUT_DELAY_MS, Paginator, PasswordInput, Popover, PromoBanner, RadioButton, SKU_COLORS, SearchInput, Select, SelectableButton, SlidingPane, Stack, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, Text, TextInput, Textarea, Toast, Triangle, TwoLineDivider, UNMOUNT_DELAY_MS, Utilities, VerticalDivider, Window, discriminate, tokens, useBreakpoint, useClickOutside, useKeyboardListNavigation, useUpdateEffect };
|