@moda/om 18.3.1 → 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 +8 -6
- package/src/components/Expandable/Expandable.stories.tsx +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -320,6 +320,8 @@ colors.colors = {
|
|
|
320
320
|
"money-good": "rgb(4, 108, 0)",
|
|
321
321
|
"fuchsia": "rgb(196, 76, 176)",
|
|
322
322
|
"dark-fuchsia": "rgb(180, 60, 160)",
|
|
323
|
+
"teal": "rgb(0, 111, 98)",
|
|
324
|
+
"ivory": "rgb(242, 233, 219)",
|
|
323
325
|
"klein-blue": "rgb(38, 48, 120)",
|
|
324
326
|
"brick": "rgb(147, 58, 32)",
|
|
325
327
|
"goldenrod": "rgb(186, 145, 46)",
|
|
@@ -340,7 +342,9 @@ colors.colors = {
|
|
|
340
342
|
"mint": "rgb(227, 251, 226)",
|
|
341
343
|
"money-good": "rgb(4, 108, 0)",
|
|
342
344
|
"fuchsia": "rgb(196, 76, 176)",
|
|
343
|
-
"dark-fuchsia": "rgb(180, 60, 160)"
|
|
345
|
+
"dark-fuchsia": "rgb(180, 60, 160)",
|
|
346
|
+
"teal": "rgb(0, 111, 98)",
|
|
347
|
+
"ivory": "rgb(242, 233, 219)"
|
|
344
348
|
},
|
|
345
349
|
"global": {
|
|
346
350
|
"klein-blue": "rgb(38, 48, 120)",
|
|
@@ -933,7 +937,7 @@ var colorStringExports = colorString.exports;
|
|
|
933
937
|
return [topY, rightX, bottom, left].reduce(function (acc, value) {
|
|
934
938
|
var _a;
|
|
935
939
|
if (value === undefined) return acc;
|
|
936
|
-
return [acc, (_a = space_1.space.scale[value]) !== null && _a !== void 0 ? _a : value].join(' ');
|
|
940
|
+
return [acc, (_a = space_1.space.scale[Number(value)]) !== null && _a !== void 0 ? _a : value].join(' ');
|
|
937
941
|
}, '');
|
|
938
942
|
};
|
|
939
943
|
exports.spacing = spacing;
|
|
@@ -1642,7 +1646,8 @@ var RemoveScroll = /*#__PURE__*/React.forwardRef(function (props, parentRef) {
|
|
|
1642
1646
|
allowPinchZoom = props.allowPinchZoom,
|
|
1643
1647
|
_b = props.as,
|
|
1644
1648
|
Container = _b === void 0 ? 'div' : _b,
|
|
1645
|
-
|
|
1649
|
+
gapMode = props.gapMode,
|
|
1650
|
+
rest = __rest$a(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
|
|
1646
1651
|
var SideCar = sideCar;
|
|
1647
1652
|
var containerRef = useMergeRefs([ref, parentRef]);
|
|
1648
1653
|
var containerProps = _assign(_assign({}, rest), callbacks);
|
|
@@ -1654,7 +1659,8 @@ var RemoveScroll = /*#__PURE__*/React.forwardRef(function (props, parentRef) {
|
|
|
1654
1659
|
inert: inert,
|
|
1655
1660
|
setCallbacks: setCallbacks,
|
|
1656
1661
|
allowPinchZoom: !!allowPinchZoom,
|
|
1657
|
-
lockRef: ref
|
|
1662
|
+
lockRef: ref,
|
|
1663
|
+
gapMode: gapMode
|
|
1658
1664
|
}), forwardProps ? /*#__PURE__*/React.cloneElement(React.Children.only(children), _assign(_assign({}, containerProps), {
|
|
1659
1665
|
ref: containerRef
|
|
1660
1666
|
})) : /*#__PURE__*/React.createElement(Container, _assign({}, containerProps, {
|
|
@@ -4295,6 +4301,7 @@ var elementCouldBeHScrolled = function elementCouldBeHScrolled(node) {
|
|
|
4295
4301
|
return elementCanBeScrolled(node, 'overflowX');
|
|
4296
4302
|
};
|
|
4297
4303
|
var locationCouldBeScrolled = function locationCouldBeScrolled(axis, node) {
|
|
4304
|
+
var ownerDocument = node.ownerDocument;
|
|
4298
4305
|
var current = node;
|
|
4299
4306
|
do {
|
|
4300
4307
|
// Skip over shadow root
|
|
@@ -4311,7 +4318,7 @@ var locationCouldBeScrolled = function locationCouldBeScrolled(axis, node) {
|
|
|
4311
4318
|
}
|
|
4312
4319
|
}
|
|
4313
4320
|
current = current.parentNode;
|
|
4314
|
-
} while (current && current !==
|
|
4321
|
+
} while (current && current !== ownerDocument.body);
|
|
4315
4322
|
return false;
|
|
4316
4323
|
};
|
|
4317
4324
|
var getVScrollVariables = function getVScrollVariables(_a) {
|
|
@@ -4398,9 +4405,7 @@ function RemoveScrollSideCar(props) {
|
|
|
4398
4405
|
var touchStartRef = React.useRef([0, 0]);
|
|
4399
4406
|
var activeAxis = React.useRef();
|
|
4400
4407
|
var id = React.useState(idCounter++)[0];
|
|
4401
|
-
var Style = React.useState(
|
|
4402
|
-
return styleSingleton();
|
|
4403
|
-
})[0];
|
|
4408
|
+
var Style = React.useState(styleSingleton)[0];
|
|
4404
4409
|
var lastProps = React.useRef(props);
|
|
4405
4410
|
React.useEffect(function () {
|
|
4406
4411
|
lastProps.current = props;
|
|
@@ -4538,7 +4543,7 @@ function RemoveScrollSideCar(props) {
|
|
|
4538
4543
|
return /*#__PURE__*/React.createElement(React.Fragment, null, inert ? /*#__PURE__*/React.createElement(Style, {
|
|
4539
4544
|
styles: generateStyle(id)
|
|
4540
4545
|
}) : null, removeScrollBar ? /*#__PURE__*/React.createElement(RemoveScrollBar, {
|
|
4541
|
-
gapMode:
|
|
4546
|
+
gapMode: props.gapMode
|
|
4542
4547
|
}) : null);
|
|
4543
4548
|
}
|
|
4544
4549
|
|