@jsenv/navi 0.20.10 → 0.20.11

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.
@@ -30144,6 +30144,70 @@ const Address = ({
30144
30144
  });
30145
30145
  };
30146
30146
 
30147
+ installImportMetaCss(import.meta);import.meta.css = /* css */`
30148
+ @layer navi {
30149
+ }
30150
+ .navi_badge {
30151
+ --font-size: 0.7em;
30152
+ --x-background: var(--background);
30153
+ --x-background-color: var(--background-color, var(--x-background));
30154
+ --x-color-contrasting: var(--navi-color-black);
30155
+ --x-color: var(--color, var(--x-color-contrasting));
30156
+ --padding-x: 0.8em;
30157
+ --padding-y: 0.4em;
30158
+ position: relative;
30159
+ display: inline-block;
30160
+ padding-top: var(--padding-y);
30161
+ padding-right: var(--padding-x);
30162
+ padding-bottom: var(--padding-y);
30163
+ padding-left: var(--padding-x);
30164
+ color: var(--x-color);
30165
+ font-size: var(--font-size);
30166
+ line-height: normal;
30167
+ background: var(--x-background);
30168
+ background-color: var(--x-background-color);
30169
+ border-radius: 1em;
30170
+
30171
+ &[data-dark-background] {
30172
+ --x-color-contrasting: var(--navi-color-white);
30173
+ }
30174
+ }
30175
+ `;
30176
+ const BadgeStyleCSSVars$1 = {
30177
+ borderWidth: "--border-width",
30178
+ borderRadius: "--border-radius",
30179
+ paddingRight: "--padding-right",
30180
+ paddingLeft: "--padding-left",
30181
+ backgroundColor: "--background-color",
30182
+ background: "--background",
30183
+ borderColor: "--border-color",
30184
+ color: "--color",
30185
+ fontSize: "--font-size"
30186
+ };
30187
+ const Badge = ({
30188
+ children,
30189
+ ...props
30190
+ }) => {
30191
+ const defaultRef = useRef();
30192
+ const ref = props.ref || defaultRef;
30193
+ useDarkBackgroundAttribute(ref);
30194
+ return jsxs(Text, {
30195
+ ref: ref,
30196
+ className: "navi_badge",
30197
+ bold: true,
30198
+ ...props,
30199
+ styleCSSVars: BadgeStyleCSSVars$1,
30200
+ spacing: "pre",
30201
+ children: [jsx("span", {
30202
+ style: "user-select: none",
30203
+ children: "\u200B"
30204
+ }), children, jsx("span", {
30205
+ style: "user-select: none",
30206
+ children: "\u200B"
30207
+ })]
30208
+ });
30209
+ };
30210
+
30147
30211
  const LoadingDots = () => {
30148
30212
  return jsxs("svg", {
30149
30213
  viewBox: "0 0 200 200",
@@ -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