@moda/om 18.3.2 → 18.4.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.
- package/dist/index.cjs.js +14 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +14 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/src/__mocks__/Icon.d.ts +2 -2
- package/dist/src/components/AspectRatioBox/AspectRatioBox.stories.d.ts +2 -2
- package/dist/src/components/Badge/Badge.stories.d.ts +3 -3
- package/dist/src/components/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -3
- package/dist/src/components/Breakpoint/Breakpoint.stories.d.ts +4 -4
- package/dist/src/components/Button/Button.stories.d.ts +13 -13
- package/dist/src/components/Checkbox/Checkbox.stories.d.ts +7 -7
- package/dist/src/components/Clickable/Clickable.stories.d.ts +4 -4
- package/dist/src/components/ColorSwatch/ColorSwatch.stories.d.ts +6 -6
- package/dist/src/components/Constrain/Constrain.stories.d.ts +5 -5
- package/dist/src/components/Constrain/ExceedConstrain.stories.d.ts +4 -4
- package/dist/src/components/ControlLink/ControlLink.stories.d.ts +3 -3
- package/dist/src/components/CreditCardNumberInput/CreditCardNumberInput.stories.d.ts +2 -2
- package/dist/src/components/DefinitionList/DefinitionList.stories.d.ts +2 -2
- package/dist/src/components/Divider/Divider.stories.d.ts +5 -5
- package/dist/src/components/Expandable/Expandable.stories.d.ts +6 -6
- package/dist/src/components/Field/Field.stories.d.ts +4 -4
- package/dist/src/components/Label/Label.stories.d.ts +2 -2
- package/dist/src/components/Loading/Loading.stories.d.ts +2 -2
- package/dist/src/components/LoadingBalls/LoadingBalls.stories.d.ts +2 -2
- package/dist/src/components/LoadingShapes/LoadingShapes.d.ts +2 -2
- package/dist/src/components/LoadingShapes/LoadingShapes.stories.d.ts +2 -2
- package/dist/src/components/Modal/Modal.stories.d.ts +3 -3
- package/dist/src/components/ModalOverlay/ModalOverlay.stories.d.ts +2 -2
- package/dist/src/components/Overlay/Overlay.stories.d.ts +2 -2
- package/dist/src/components/Paginator/Paginator.stories.d.ts +2 -2
- package/dist/src/components/PasswordInput/PasswordInput.stories.d.ts +2 -2
- package/dist/src/components/Popover/Popover.stories.d.ts +2 -2
- package/dist/src/components/PromoBanner/PromoBanner.stories.d.ts +3 -3
- package/dist/src/components/RadioButton/RadioButton.stories.d.ts +3 -3
- package/dist/src/components/SearchInput/SearchInput.stories.d.ts +3 -3
- package/dist/src/components/Select/Select.stories.d.ts +10 -10
- package/dist/src/components/SelectableButton/SelectableButton.stories.d.ts +4 -4
- package/dist/src/components/Shape/Shape.stories.d.ts +2 -2
- package/dist/src/components/SlidingPane/SlidingPane.stories.d.ts +2 -2
- package/dist/src/components/Stack/Stack.stories.d.ts +5 -5
- package/dist/src/components/Tabs/Tabs.stories.d.ts +3 -3
- package/dist/src/components/Tag/Tag.stories.d.ts +2 -2
- package/dist/src/components/Text/Text.stories.d.ts +5 -5
- package/dist/src/components/TextInput/TextInput.stories.d.ts +2 -2
- package/dist/src/components/Textarea/Textarea.stories.d.ts +2 -2
- package/dist/src/components/Toast/Toast.stories.d.ts +2 -2
- package/dist/src/components/VerticalDivider/VerticalDivider.stories.d.ts +3 -3
- package/dist/src/index.d.ts +4 -0
- package/dist/src/mixins/font-smoothing/font-smoothing.stories.d.ts +2 -2
- package/dist/src/mixins/overflow-scroll/overflow-scroll.stories.d.ts +3 -3
- package/dist/src/mixins/stack/stack.stories.d.ts +3 -3
- package/dist/src/mixins/thin-underline/thin-underline.stories.d.ts +2 -2
- package/dist/src/mixins/visually-hidden/visually-hidden.stories.d.ts +2 -2
- package/package.json +2 -2
- package/src/components/Expandable/Expandable.stories.tsx +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -340,6 +340,8 @@ colors.colors = {
|
|
|
340
340
|
"money-good": "rgb(4, 108, 0)",
|
|
341
341
|
"fuchsia": "rgb(196, 76, 176)",
|
|
342
342
|
"dark-fuchsia": "rgb(180, 60, 160)",
|
|
343
|
+
"teal": "rgb(0, 111, 98)",
|
|
344
|
+
"ivory": "rgb(242, 233, 219)",
|
|
343
345
|
"klein-blue": "rgb(38, 48, 120)",
|
|
344
346
|
"brick": "rgb(147, 58, 32)",
|
|
345
347
|
"goldenrod": "rgb(186, 145, 46)",
|
|
@@ -360,7 +362,9 @@ colors.colors = {
|
|
|
360
362
|
"mint": "rgb(227, 251, 226)",
|
|
361
363
|
"money-good": "rgb(4, 108, 0)",
|
|
362
364
|
"fuchsia": "rgb(196, 76, 176)",
|
|
363
|
-
"dark-fuchsia": "rgb(180, 60, 160)"
|
|
365
|
+
"dark-fuchsia": "rgb(180, 60, 160)",
|
|
366
|
+
"teal": "rgb(0, 111, 98)",
|
|
367
|
+
"ivory": "rgb(242, 233, 219)"
|
|
364
368
|
},
|
|
365
369
|
"global": {
|
|
366
370
|
"klein-blue": "rgb(38, 48, 120)",
|
|
@@ -953,7 +957,7 @@ var colorStringExports = colorString.exports;
|
|
|
953
957
|
return [topY, rightX, bottom, left].reduce(function (acc, value) {
|
|
954
958
|
var _a;
|
|
955
959
|
if (value === undefined) return acc;
|
|
956
|
-
return [acc, (_a = space_1.space.scale[value]) !== null && _a !== void 0 ? _a : value].join(' ');
|
|
960
|
+
return [acc, (_a = space_1.space.scale[Number(value)]) !== null && _a !== void 0 ? _a : value].join(' ');
|
|
957
961
|
}, '');
|
|
958
962
|
};
|
|
959
963
|
exports.spacing = spacing;
|
|
@@ -1662,7 +1666,8 @@ var RemoveScroll = /*#__PURE__*/React__namespace.forwardRef(function (props, par
|
|
|
1662
1666
|
allowPinchZoom = props.allowPinchZoom,
|
|
1663
1667
|
_b = props.as,
|
|
1664
1668
|
Container = _b === void 0 ? 'div' : _b,
|
|
1665
|
-
|
|
1669
|
+
gapMode = props.gapMode,
|
|
1670
|
+
rest = __rest$a(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
|
|
1666
1671
|
var SideCar = sideCar;
|
|
1667
1672
|
var containerRef = useMergeRefs([ref, parentRef]);
|
|
1668
1673
|
var containerProps = _assign(_assign({}, rest), callbacks);
|
|
@@ -1674,7 +1679,8 @@ var RemoveScroll = /*#__PURE__*/React__namespace.forwardRef(function (props, par
|
|
|
1674
1679
|
inert: inert,
|
|
1675
1680
|
setCallbacks: setCallbacks,
|
|
1676
1681
|
allowPinchZoom: !!allowPinchZoom,
|
|
1677
|
-
lockRef: ref
|
|
1682
|
+
lockRef: ref,
|
|
1683
|
+
gapMode: gapMode
|
|
1678
1684
|
}), forwardProps ? /*#__PURE__*/React__namespace.cloneElement(React__namespace.Children.only(children), _assign(_assign({}, containerProps), {
|
|
1679
1685
|
ref: containerRef
|
|
1680
1686
|
})) : /*#__PURE__*/React__namespace.createElement(Container, _assign({}, containerProps, {
|
|
@@ -4315,6 +4321,7 @@ var elementCouldBeHScrolled = function elementCouldBeHScrolled(node) {
|
|
|
4315
4321
|
return elementCanBeScrolled(node, 'overflowX');
|
|
4316
4322
|
};
|
|
4317
4323
|
var locationCouldBeScrolled = function locationCouldBeScrolled(axis, node) {
|
|
4324
|
+
var ownerDocument = node.ownerDocument;
|
|
4318
4325
|
var current = node;
|
|
4319
4326
|
do {
|
|
4320
4327
|
// Skip over shadow root
|
|
@@ -4331,7 +4338,7 @@ var locationCouldBeScrolled = function locationCouldBeScrolled(axis, node) {
|
|
|
4331
4338
|
}
|
|
4332
4339
|
}
|
|
4333
4340
|
current = current.parentNode;
|
|
4334
|
-
} while (current && current !==
|
|
4341
|
+
} while (current && current !== ownerDocument.body);
|
|
4335
4342
|
return false;
|
|
4336
4343
|
};
|
|
4337
4344
|
var getVScrollVariables = function getVScrollVariables(_a) {
|
|
@@ -4418,9 +4425,7 @@ function RemoveScrollSideCar(props) {
|
|
|
4418
4425
|
var touchStartRef = React__namespace.useRef([0, 0]);
|
|
4419
4426
|
var activeAxis = React__namespace.useRef();
|
|
4420
4427
|
var id = React__namespace.useState(idCounter++)[0];
|
|
4421
|
-
var Style = React__namespace.useState(
|
|
4422
|
-
return styleSingleton();
|
|
4423
|
-
})[0];
|
|
4428
|
+
var Style = React__namespace.useState(styleSingleton)[0];
|
|
4424
4429
|
var lastProps = React__namespace.useRef(props);
|
|
4425
4430
|
React__namespace.useEffect(function () {
|
|
4426
4431
|
lastProps.current = props;
|
|
@@ -4558,7 +4563,7 @@ function RemoveScrollSideCar(props) {
|
|
|
4558
4563
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, inert ? /*#__PURE__*/React__namespace.createElement(Style, {
|
|
4559
4564
|
styles: generateStyle(id)
|
|
4560
4565
|
}) : null, removeScrollBar ? /*#__PURE__*/React__namespace.createElement(RemoveScrollBar, {
|
|
4561
|
-
gapMode:
|
|
4566
|
+
gapMode: props.gapMode
|
|
4562
4567
|
}) : null);
|
|
4563
4568
|
}
|
|
4564
4569
|
|