@jsenv/navi 0.11.11 → 0.11.13
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/jsenv_navi.js +27 -8
- package/dist/jsenv_navi.js.map +5 -3
- package/package.json +2 -2
package/dist/jsenv_navi.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { installImportMetaCss } from "./jsenv_navi_side_effects.js";
|
|
2
|
-
import { createIterableWeakSet, createPubSub, createValueEffect, createStyleController, getVisuallyVisibleInfo, getFirstVisuallyVisibleAncestor, allowWheelThrough, visibleRectEffect, pickPositionRelativeTo, getBorderSizes, getPaddingSizes, activeElementSignal, canInterceptKeys, initUITransition, getElementSignature, resolveCSSSize, normalizeStyles, appendStyles, findBefore, findAfter, initFocusGroup, elementIsFocusable, pickLightOrDark, dragAfterThreshold, getScrollContainer, stickyAsRelativeCoords, createDragToMoveGestureController, getDropTargetInfo, setStyles, useActiveElement } from "@jsenv/dom";
|
|
2
|
+
import { createIterableWeakSet, createPubSub, createValueEffect, createStyleController, getVisuallyVisibleInfo, getFirstVisuallyVisibleAncestor, allowWheelThrough, visibleRectEffect, pickPositionRelativeTo, getBorderSizes, getPaddingSizes, activeElementSignal, canInterceptKeys, initUITransition, getElementSignature, resolveCSSSize, normalizeStyles, normalizeStyle, appendStyles, findBefore, findAfter, initFocusGroup, elementIsFocusable, pickLightOrDark, dragAfterThreshold, getScrollContainer, stickyAsRelativeCoords, createDragToMoveGestureController, getDropTargetInfo, setStyles, useActiveElement } from "@jsenv/dom";
|
|
3
3
|
import { prefixFirstAndIndentRemainingLines } from "@jsenv/humanize";
|
|
4
4
|
import { effect, signal, computed, batch, useSignal } from "@preact/signals";
|
|
5
5
|
import { useEffect, useRef, useCallback, useContext, useState, useLayoutEffect, useMemo, useImperativeHandle, useErrorBoundary, useId } from "preact/hooks";
|
|
@@ -9921,6 +9921,7 @@ const withPropsStyle = (
|
|
|
9921
9921
|
} else if (marginY !== undefined) {
|
|
9922
9922
|
marginStyles.marginBottom = sizeSpacingScale[marginY] || marginY;
|
|
9923
9923
|
}
|
|
9924
|
+
normalizeStyles(marginStyles, "css", true);
|
|
9924
9925
|
}
|
|
9925
9926
|
{
|
|
9926
9927
|
paddingStyles = {};
|
|
@@ -9950,6 +9951,7 @@ const withPropsStyle = (
|
|
|
9950
9951
|
} else if (paddingY !== undefined) {
|
|
9951
9952
|
paddingStyles.paddingBottom = sizeSpacingScale[paddingY] || paddingY;
|
|
9952
9953
|
}
|
|
9954
|
+
normalizeStyles(paddingStyles, "css", true);
|
|
9953
9955
|
}
|
|
9954
9956
|
}
|
|
9955
9957
|
alignment_styles: {
|
|
@@ -10033,7 +10035,7 @@ const withPropsStyle = (
|
|
|
10033
10035
|
sizeStyles.width = "100%"; // Take full width outside flex
|
|
10034
10036
|
}
|
|
10035
10037
|
} else if (width !== undefined) {
|
|
10036
|
-
sizeStyles.width = width;
|
|
10038
|
+
sizeStyles.width = normalizeStyle(width, "width", "css");
|
|
10037
10039
|
}
|
|
10038
10040
|
if (expandY) {
|
|
10039
10041
|
if (flexDirection === "row") {
|
|
@@ -10044,7 +10046,7 @@ const withPropsStyle = (
|
|
|
10044
10046
|
sizeStyles.height = "100%"; // Take full height outside flex
|
|
10045
10047
|
}
|
|
10046
10048
|
} else if (height !== undefined) {
|
|
10047
|
-
sizeStyles.height = height;
|
|
10049
|
+
sizeStyles.height = normalizeStyle(height, "height", "css");
|
|
10048
10050
|
}
|
|
10049
10051
|
}
|
|
10050
10052
|
typo_styles: {
|
|
@@ -10058,7 +10060,7 @@ const withPropsStyle = (
|
|
|
10058
10060
|
typeof textSize === "string"
|
|
10059
10061
|
? sizeTypoScale[textSize] || textSize
|
|
10060
10062
|
: textSize;
|
|
10061
|
-
typoStyles.fontSize = fontSize;
|
|
10063
|
+
typoStyles.fontSize = normalizeStyle(fontSize, "fontSize", "css");
|
|
10062
10064
|
}
|
|
10063
10065
|
if (textBold) {
|
|
10064
10066
|
typoStyles.fontWeight = "bold";
|
|
@@ -10121,11 +10123,18 @@ const withPropsStyle = (
|
|
|
10121
10123
|
visualStyles.borderBottom = borderBottom;
|
|
10122
10124
|
}
|
|
10123
10125
|
if (borderWidth !== undefined) {
|
|
10124
|
-
visualStyles.borderWidth =
|
|
10126
|
+
visualStyles.borderWidth = normalizeStyle(
|
|
10127
|
+
sizeSpacingScale[borderWidth] || borderWidth,
|
|
10128
|
+
"borderWidth",
|
|
10129
|
+
"css",
|
|
10130
|
+
);
|
|
10125
10131
|
}
|
|
10126
10132
|
if (borderRadius !== undefined) {
|
|
10127
|
-
visualStyles.borderRadius =
|
|
10128
|
-
sizeSpacingScale[borderRadius] || borderRadius
|
|
10133
|
+
visualStyles.borderRadius = normalizeStyle(
|
|
10134
|
+
sizeSpacingScale[borderRadius] || borderRadius,
|
|
10135
|
+
"borderRadius",
|
|
10136
|
+
"css",
|
|
10137
|
+
);
|
|
10129
10138
|
}
|
|
10130
10139
|
if (borderColor !== undefined) {
|
|
10131
10140
|
visualStyles.borderColor = borderColor;
|
|
@@ -19239,6 +19248,16 @@ const SVGMaskOverlay = ({
|
|
|
19239
19248
|
});
|
|
19240
19249
|
};
|
|
19241
19250
|
|
|
19251
|
+
const Image = props => {
|
|
19252
|
+
const [remainingProps, innerStyle] = withPropsStyle(props, {
|
|
19253
|
+
spacing: true
|
|
19254
|
+
});
|
|
19255
|
+
return jsx("img", {
|
|
19256
|
+
style: innerStyle,
|
|
19257
|
+
...remainingProps
|
|
19258
|
+
});
|
|
19259
|
+
};
|
|
19260
|
+
|
|
19242
19261
|
const Overflow = ({
|
|
19243
19262
|
className,
|
|
19244
19263
|
children,
|
|
@@ -19521,5 +19540,5 @@ const useDependenciesDiff = (inputs) => {
|
|
|
19521
19540
|
return diffRef.current;
|
|
19522
19541
|
};
|
|
19523
19542
|
|
|
19524
|
-
export { ActionRenderer, ActiveKeyboardShortcuts, Button, Checkbox, CheckboxList, Col, Colgroup, Details, Editable, ErrorBoundaryContext, FlexColumn, FlexItem, FlexRow, FontSizedSvg, Form, Icon, IconAndText, Input, Label, Link, LinkWithIcon, Overflow, Paragraph, Radio, RadioList, Route, RouteLink, Routes, RowNumberCol, RowNumberTableCell, SINGLE_SPACE_CONSTRAINT, SVGMaskOverlay, Select, SelectionContext, Spacing, SummaryMarker, Tab, TabList, Table, TableCell, Tbody, Text, TextAndCount, Thead, Title, Tr, UITransition, actionIntegratedVia, addCustomMessage, createAction, createSelectionKeyboardShortcuts, createUniqueValueConstraint, enableDebugActions, enableDebugOnDocumentLoading, forwardActionRequested, goBack, goForward, goTo, installCustomConstraintValidation, isCellSelected, isColumnSelected, isRowSelected, openCallout, rawUrlPart, reload, removeCustomMessage, rerunActions, resource, setBaseUrl, setupRoutes, stopLoad, stringifyTableSelectionValue, updateActions, useActionData, useActionStatus, useCellsAndColumns, useDependenciesDiff, useDocumentState, useDocumentUrl, useEditionController, useFocusGroup, useKeyboardShortcuts, useNavState, useRouteStatus, useRunOnMount, useSelectableElement, useSelectionController, useSignalSync, useStateArray, valueInLocalStorage };
|
|
19543
|
+
export { ActionRenderer, ActiveKeyboardShortcuts, Button, Checkbox, CheckboxList, Col, Colgroup, Details, Editable, ErrorBoundaryContext, FlexColumn, FlexItem, FlexRow, FontSizedSvg, Form, Icon, IconAndText, Image, Input, Label, Link, LinkWithIcon, Overflow, Paragraph, Radio, RadioList, Route, RouteLink, Routes, RowNumberCol, RowNumberTableCell, SINGLE_SPACE_CONSTRAINT, SVGMaskOverlay, Select, SelectionContext, Spacing, SummaryMarker, Tab, TabList, Table, TableCell, Tbody, Text, TextAndCount, Thead, Title, Tr, UITransition, actionIntegratedVia, addCustomMessage, createAction, createSelectionKeyboardShortcuts, createUniqueValueConstraint, enableDebugActions, enableDebugOnDocumentLoading, forwardActionRequested, goBack, goForward, goTo, installCustomConstraintValidation, isCellSelected, isColumnSelected, isRowSelected, openCallout, rawUrlPart, reload, removeCustomMessage, rerunActions, resource, setBaseUrl, setupRoutes, stopLoad, stringifyTableSelectionValue, updateActions, useActionData, useActionStatus, useCellsAndColumns, useDependenciesDiff, useDocumentState, useDocumentUrl, useEditionController, useFocusGroup, useKeyboardShortcuts, useNavState, useRouteStatus, useRunOnMount, useSelectableElement, useSelectionController, useSignalSync, useStateArray, valueInLocalStorage };
|
|
19525
19544
|
//# sourceMappingURL=jsenv_navi.js.map
|