@jsenv/navi 0.20.10 → 0.20.12
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 +69 -5
- package/dist/jsenv_navi.js.map +8 -6
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -7424,8 +7424,12 @@ const updateStyle = (element, style, preventInitialTransition) => {
|
|
|
7424
7424
|
// Apply all styles normally (excluding transition during anti-flicker)
|
|
7425
7425
|
const keysToDelete = new Set(oldStyleKeySet);
|
|
7426
7426
|
for (const key of styleKeySetToApply) {
|
|
7427
|
-
keysToDelete.delete(key);
|
|
7428
7427
|
const value = style[key];
|
|
7428
|
+
if (value === undefined || value === null) {
|
|
7429
|
+
// Treat undefined/null as "remove" — leave key in keysToDelete
|
|
7430
|
+
continue;
|
|
7431
|
+
}
|
|
7432
|
+
keysToDelete.delete(key);
|
|
7429
7433
|
if (key.startsWith("--")) {
|
|
7430
7434
|
element.style.setProperty(key, value);
|
|
7431
7435
|
} else {
|
|
@@ -30144,6 +30148,64 @@ const Address = ({
|
|
|
30144
30148
|
});
|
|
30145
30149
|
};
|
|
30146
30150
|
|
|
30151
|
+
installImportMetaCss(import.meta);import.meta.css = /* css */`
|
|
30152
|
+
@layer navi {
|
|
30153
|
+
}
|
|
30154
|
+
.navi_badge {
|
|
30155
|
+
--font-size: 0.7em;
|
|
30156
|
+
--x-background: var(--background);
|
|
30157
|
+
--x-background-color: var(--background-color, var(--x-background));
|
|
30158
|
+
--x-color-contrasting: var(--navi-color-black);
|
|
30159
|
+
--x-color: var(--color, var(--x-color-contrasting));
|
|
30160
|
+
--padding-x: 0.8em;
|
|
30161
|
+
--padding-y: 0.4em;
|
|
30162
|
+
position: relative;
|
|
30163
|
+
display: inline-block;
|
|
30164
|
+
padding-top: var(--padding-y);
|
|
30165
|
+
padding-right: var(--padding-x);
|
|
30166
|
+
padding-bottom: var(--padding-y);
|
|
30167
|
+
padding-left: var(--padding-x);
|
|
30168
|
+
color: var(--x-color);
|
|
30169
|
+
font-size: var(--font-size);
|
|
30170
|
+
line-height: normal;
|
|
30171
|
+
background: var(--x-background);
|
|
30172
|
+
background-color: var(--x-background-color);
|
|
30173
|
+
border-radius: 1em;
|
|
30174
|
+
|
|
30175
|
+
&[data-dark-background] {
|
|
30176
|
+
--x-color-contrasting: var(--navi-color-white);
|
|
30177
|
+
}
|
|
30178
|
+
}
|
|
30179
|
+
`;
|
|
30180
|
+
const BadgeStyleCSSVars$1 = {
|
|
30181
|
+
borderWidth: "--border-width",
|
|
30182
|
+
borderRadius: "--border-radius",
|
|
30183
|
+
paddingRight: "--padding-right",
|
|
30184
|
+
paddingLeft: "--padding-left",
|
|
30185
|
+
backgroundColor: "--background-color",
|
|
30186
|
+
background: "--background",
|
|
30187
|
+
borderColor: "--border-color",
|
|
30188
|
+
color: "--color",
|
|
30189
|
+
fontSize: "--font-size"
|
|
30190
|
+
};
|
|
30191
|
+
const Badge = ({
|
|
30192
|
+
children,
|
|
30193
|
+
className,
|
|
30194
|
+
...props
|
|
30195
|
+
}) => {
|
|
30196
|
+
const defaultRef = useRef();
|
|
30197
|
+
const ref = props.ref || defaultRef;
|
|
30198
|
+
useDarkBackgroundAttribute(ref);
|
|
30199
|
+
return jsx(Text, {
|
|
30200
|
+
ref: ref,
|
|
30201
|
+
className: withPropsClassName("navi_badge", className),
|
|
30202
|
+
bold: true,
|
|
30203
|
+
...props,
|
|
30204
|
+
styleCSSVars: BadgeStyleCSSVars$1,
|
|
30205
|
+
children: children
|
|
30206
|
+
});
|
|
30207
|
+
};
|
|
30208
|
+
|
|
30147
30209
|
const LoadingDots = () => {
|
|
30148
30210
|
return jsxs("svg", {
|
|
30149
30211
|
viewBox: "0 0 200 200",
|
|
@@ -30387,14 +30449,15 @@ const applyMaxToValue = (max, value) => {
|
|
|
30387
30449
|
const BadgeCountEllipse = ({
|
|
30388
30450
|
ref,
|
|
30389
30451
|
loading,
|
|
30390
|
-
children,
|
|
30391
30452
|
hasOverflow,
|
|
30392
30453
|
charCount,
|
|
30454
|
+
className,
|
|
30455
|
+
children,
|
|
30393
30456
|
...props
|
|
30394
30457
|
}) => {
|
|
30395
30458
|
return jsx(Text, {
|
|
30396
30459
|
ref: ref,
|
|
30397
|
-
className: "navi_badge_count",
|
|
30460
|
+
className: withPropsClassName("navi_badge_count", className),
|
|
30398
30461
|
bold: true,
|
|
30399
30462
|
"data-ellipse": "",
|
|
30400
30463
|
"data-value-overflow": hasOverflow ? "" : undefined,
|
|
@@ -30421,12 +30484,13 @@ const BadgeCountCircle = ({
|
|
|
30421
30484
|
charCount,
|
|
30422
30485
|
hasOverflow,
|
|
30423
30486
|
loading,
|
|
30487
|
+
className,
|
|
30424
30488
|
children,
|
|
30425
30489
|
...props
|
|
30426
30490
|
}) => {
|
|
30427
30491
|
return jsx(Text, {
|
|
30428
30492
|
ref: ref,
|
|
30429
|
-
className: "navi_badge_count",
|
|
30493
|
+
className: withPropsClassName("navi_badge_count", className),
|
|
30430
30494
|
"data-circle": "",
|
|
30431
30495
|
bold: true,
|
|
30432
30496
|
"data-loading": loading ? "" : undefined,
|
|
@@ -31953,5 +32017,5 @@ const UserSvg = () => jsx("svg", {
|
|
|
31953
32017
|
})
|
|
31954
32018
|
});
|
|
31955
32019
|
|
|
31956
|
-
export { ActionRenderer, ActiveKeyboardShortcuts, Address, BadgeCount, Box, Button, ButtonCopyToClipboard, Caption, CheckSvg, Checkbox, CheckboxList, Code, Col, Colgroup, ConstructionSvg, Details, DialogLayout, Editable, ErrorBoundary, ErrorBoundaryContext, ExclamationSvg, EyeClosedSvg, EyeSvg, Form, Group, Head, HeartSvg, HomeSvg, Icon, Image, Input, Label, Link, LinkAnchorSvg, LinkBlankTargetSvg, LinkCurrentSvg, Loading, MessageBox, Meter, Nav, Paragraph, Quantity, QuantityIntl, Radio, RadioList, Route, RowNumberCol, RowNumberTableCell, SINGLE_SPACE_CONSTRAINT, SVGMaskOverlay, SearchSvg, Select, SelectionContext, Separator, SettingsSvg, SidePanel, StarSvg, SummaryMarker, Svg, Table, TableCell, Tbody, Text, TextPlaceholder, Thead, Title, Tr, UITransition, UserSvg, ViewportLayout, actionIntegratedVia, actionRunEffect, addCustomMessage, arraySignalMembership, compareTwoJsValues, createAction, createAvailableConstraint, createIntl, createRequestCanceller, createSelectionKeyboardShortcuts, enableDebugActions, enableDebugOnDocumentLoading, filterTableSelection, forwardActionRequested, installCustomConstraintValidation, isCellSelected, isColumnSelected, isRowSelected, localStorageSignal, navBack, navForward, navTo, openCallout, rawUrlPart, reload, removeCustomMessage, requestAction, rerunActions, resource, route, routeAction, setBaseUrl, setupRoutes, stateSignal, stopLoad, stringifyTableSelectionValue, syncOwnedResourceToSignals, syncResourceToSignals, updateActions, useActionStatus, useArraySignalMembership, useAsyncData, useCalloutClose, useCancelPrevious, useCellGridFromRows, useConstraintValidityState, useDarkBackgroundAttribute, useDependenciesDiff, useDocumentResource, useDocumentState, useDocumentUrl, useEditionController, useFocusGroup, useKeyboardShortcuts, useNavState$1 as useNavState, useOrderedColumns, useRouteStatus, useRunOnMount, useSelectableElement, useSelectionController, useSidePanelClose, useSignalSync, useStateArray, useTitleLevel, useUrlSearchParam, valueInLocalStorage };
|
|
32020
|
+
export { ActionRenderer, ActiveKeyboardShortcuts, Address, Badge, BadgeCount, Box, Button, ButtonCopyToClipboard, Caption, CheckSvg, Checkbox, CheckboxList, Code, Col, Colgroup, ConstructionSvg, Details, DialogLayout, Editable, ErrorBoundary, ErrorBoundaryContext, ExclamationSvg, EyeClosedSvg, EyeSvg, Form, Group, Head, HeartSvg, HomeSvg, Icon, Image, Input, Label, Link, LinkAnchorSvg, LinkBlankTargetSvg, LinkCurrentSvg, Loading, MessageBox, Meter, Nav, Paragraph, Quantity, QuantityIntl, Radio, RadioList, Route, RowNumberCol, RowNumberTableCell, SINGLE_SPACE_CONSTRAINT, SVGMaskOverlay, SearchSvg, Select, SelectionContext, Separator, SettingsSvg, SidePanel, StarSvg, SummaryMarker, Svg, Table, TableCell, Tbody, Text, TextPlaceholder, Thead, Title, Tr, UITransition, UserSvg, ViewportLayout, actionIntegratedVia, actionRunEffect, addCustomMessage, arraySignalMembership, compareTwoJsValues, createAction, createAvailableConstraint, createIntl, createRequestCanceller, createSelectionKeyboardShortcuts, enableDebugActions, enableDebugOnDocumentLoading, filterTableSelection, forwardActionRequested, installCustomConstraintValidation, isCellSelected, isColumnSelected, isRowSelected, localStorageSignal, navBack, navForward, navTo, openCallout, rawUrlPart, reload, removeCustomMessage, requestAction, rerunActions, resource, route, routeAction, setBaseUrl, setupRoutes, stateSignal, stopLoad, stringifyTableSelectionValue, syncOwnedResourceToSignals, syncResourceToSignals, updateActions, useActionStatus, useArraySignalMembership, useAsyncData, useCalloutClose, useCancelPrevious, useCellGridFromRows, useConstraintValidityState, useDarkBackgroundAttribute, useDependenciesDiff, useDocumentResource, useDocumentState, useDocumentUrl, useEditionController, useFocusGroup, useKeyboardShortcuts, useNavState$1 as useNavState, useOrderedColumns, useRouteStatus, useRunOnMount, useSelectableElement, useSelectionController, useSidePanelClose, useSignalSync, useStateArray, useTitleLevel, useUrlSearchParam, valueInLocalStorage };
|
|
31957
32021
|
//# sourceMappingURL=jsenv_navi.js.map
|