@jsenv/navi 0.14.23 → 0.14.25

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.
@@ -16314,8 +16314,8 @@ const ButtonBasic = props => {
16314
16314
  loading,
16315
16315
  autoFocus,
16316
16316
  // visual
16317
- discrete,
16318
16317
  icon,
16318
+ discrete = icon,
16319
16319
  children,
16320
16320
  ...rest
16321
16321
  } = props;
@@ -16338,6 +16338,7 @@ const ButtonBasic = props => {
16338
16338
  const renderButtonContentMemoized = useCallback(renderButtonContent, [children]);
16339
16339
  return jsxs(Box, {
16340
16340
  "data-readonly-silent": innerLoading ? "" : undefined,
16341
+ "data-nohover": icon ? "" : undefined,
16341
16342
  ...remainingProps,
16342
16343
  as: "button",
16343
16344
  ref: ref,
@@ -16556,31 +16557,31 @@ installImportMetaCss(import.meta);import.meta.css = /* css */`
16556
16557
  }
16557
16558
 
16558
16559
  .navi_message_box {
16559
- --x-background-color: var(--background-color-info);
16560
- --x-color: var(--color-info);
16560
+ --x-message-background-color: var(--background-color-info);
16561
+ --x-message-color: var(--color-info);
16561
16562
  /* color: var(--x-color); */
16562
- background-color: var(--x-background-color);
16563
+ background-color: var(--x-message-background-color);
16563
16564
  }
16564
16565
 
16565
16566
  .navi_message_box[data-status-info] {
16566
- --x-background-color: var(--background-color-info);
16567
- --x-color: var(--color-info);
16567
+ --x-message-background-color: var(--background-color-info);
16568
+ --x-message-color: var(--color-info);
16568
16569
  }
16569
16570
  .navi_message_box[data-status-success] {
16570
- --x-background-color: var(--background-color-success);
16571
- --x-color: var(--color-success);
16571
+ --x-message-background-color: var(--background-color-success);
16572
+ --x-message-color: var(--color-success);
16572
16573
  }
16573
16574
  .navi_message_box[data-status-warning] {
16574
- --x-background-color: var(--background-color-warning);
16575
- --x-color: var(--color-warning);
16575
+ --x-message-background-color: var(--background-color-warning);
16576
+ --x-message-color: var(--color-warning);
16576
16577
  }
16577
16578
  .navi_message_box[data-status-error] {
16578
- --x-background-color: var(--background-color-error);
16579
- --x-color: var(--color-error);
16579
+ --x-message-background-color: var(--background-color-error);
16580
+ --x-message-color: var(--color-error);
16580
16581
  }
16581
16582
 
16582
16583
  .navi_message_box[data-left-stripe] {
16583
- border-left: 6px solid var(--x-color);
16584
+ border-left: 6px solid var(--x-message-color);
16584
16585
  border-top-left-radius: 6px;
16585
16586
  border-bottom-left-radius: 6px;
16586
16587
  }
@@ -16628,16 +16629,14 @@ const MessageBox = ({
16628
16629
  children: jsxs(MessageBoxReportTitleChildContext.Provider, {
16629
16630
  value: setHasTitleChild,
16630
16631
  children: [icon && jsx(Icon, {
16631
- color: "var(--x-color)",
16632
+ color: "var(--x-message-color)",
16632
16633
  children: icon
16633
16634
  }), jsx(Text, {
16634
16635
  children: children
16635
16636
  }), onClose && jsx(Button, {
16636
16637
  action: onClose,
16637
- discrete: true,
16638
16638
  icon: true,
16639
16639
  border: "none",
16640
- "data-nohover": "",
16641
16640
  alignX: "center",
16642
16641
  alignY: "center",
16643
16642
  pseudoStyle: {
@@ -16654,7 +16653,19 @@ const MessageBox = ({
16654
16653
  });
16655
16654
  };
16656
16655
 
16656
+ installImportMetaCss(import.meta);import.meta.css = /* css */`
16657
+ .navi_message_box {
16658
+ .navi_title {
16659
+ margin-top: 0;
16660
+ margin-bottom: var(--navi-spacing-s);
16661
+ color: var(--x-message-color);
16662
+ }
16663
+ }
16664
+ `;
16657
16665
  const TitleLevelContext = createContext();
16666
+ const useTitleLevel = () => {
16667
+ return useContext(TitleLevelContext);
16668
+ };
16658
16669
  const TitlePseudoClasses = [":hover"];
16659
16670
  const Title = props => {
16660
16671
  const messageBoxStatus = useContext(MessageBoxStatusContext);
@@ -16668,9 +16679,6 @@ const Title = props => {
16668
16679
  bold: true,
16669
16680
  className: withPropsClassName("navi_title"),
16670
16681
  as: messageBoxStatus ? "h4" : "h1",
16671
- marginTop: messageBoxStatus ? "0" : undefined,
16672
- marginBottom: messageBoxStatus ? "sm" : undefined,
16673
- color: messageBoxStatus ? `var(--x-color)` : undefined,
16674
16682
  ...props,
16675
16683
  pseudoClasses: TitlePseudoClasses,
16676
16684
  children: props.children
@@ -24662,5 +24670,5 @@ const UserSvg = () => jsx("svg", {
24662
24670
  })
24663
24671
  });
24664
24672
 
24665
- export { ActionRenderer, ActiveKeyboardShortcuts, BadgeCount, Box, Button, Caption, CheckSvg, Checkbox, CheckboxList, Code, Col, Colgroup, Details, DialogLayout, Editable, ErrorBoundaryContext, ExclamationSvg, EyeClosedSvg, EyeSvg, Form, HeartSvg, HomeSvg, Icon, Image, Input, Label, Link, LinkAnchorSvg, LinkBlankTargetSvg, MessageBox, Paragraph, Radio, RadioList, Route, RouteLink, Routes, RowNumberCol, RowNumberTableCell, SINGLE_SPACE_CONSTRAINT, SVGMaskOverlay, SearchSvg, Select, SelectionContext, SettingsSvg, StarSvg, SummaryMarker, Svg, Tab, TabList, Table, TableCell, Tbody, Text, Thead, Title, Tr, UITransition, UserSvg, ViewportLayout, actionIntegratedVia, addCustomMessage, compareTwoJsValues, createAction, createAvailableConstraint, createRequestCanceller, createSelectionKeyboardShortcuts, enableDebugActions, enableDebugOnDocumentLoading, forwardActionRequested, installCustomConstraintValidation, isCellSelected, isColumnSelected, isRowSelected, localStorageSignal, navBack, navForward, navTo, openCallout, rawUrlPart, reload, removeCustomMessage, requestAction, rerunActions, resource, setBaseUrl, setupRoutes, stateSignal, stopLoad, stringifyTableSelectionValue, updateActions, useActionData, useActionStatus, useActiveRouteInfo, useCalloutClose, useCellsAndColumns, useConstraintValidityState, useDependenciesDiff, useDocumentResource, useDocumentState, useDocumentUrl, useEditionController, useFocusGroup, useKeyboardShortcuts, useNavState$1 as useNavState, useRouteStatus, useRunOnMount, useSelectableElement, useSelectionController, useSignalSync, useStateArray, useUrlSearchParam, valueInLocalStorage };
24673
+ export { ActionRenderer, ActiveKeyboardShortcuts, BadgeCount, Box, Button, Caption, CheckSvg, Checkbox, CheckboxList, Code, Col, Colgroup, Details, DialogLayout, Editable, ErrorBoundaryContext, ExclamationSvg, EyeClosedSvg, EyeSvg, Form, HeartSvg, HomeSvg, Icon, Image, Input, Label, Link, LinkAnchorSvg, LinkBlankTargetSvg, MessageBox, Paragraph, Radio, RadioList, Route, RouteLink, Routes, RowNumberCol, RowNumberTableCell, SINGLE_SPACE_CONSTRAINT, SVGMaskOverlay, SearchSvg, Select, SelectionContext, SettingsSvg, StarSvg, SummaryMarker, Svg, Tab, TabList, Table, TableCell, Tbody, Text, Thead, Title, Tr, UITransition, UserSvg, ViewportLayout, actionIntegratedVia, addCustomMessage, compareTwoJsValues, createAction, createAvailableConstraint, createRequestCanceller, createSelectionKeyboardShortcuts, enableDebugActions, enableDebugOnDocumentLoading, forwardActionRequested, installCustomConstraintValidation, isCellSelected, isColumnSelected, isRowSelected, localStorageSignal, navBack, navForward, navTo, openCallout, rawUrlPart, reload, removeCustomMessage, requestAction, rerunActions, resource, setBaseUrl, setupRoutes, stateSignal, stopLoad, stringifyTableSelectionValue, updateActions, useActionData, useActionStatus, useActiveRouteInfo, useCalloutClose, useCellsAndColumns, useConstraintValidityState, useDependenciesDiff, useDocumentResource, useDocumentState, useDocumentUrl, useEditionController, useFocusGroup, useKeyboardShortcuts, useNavState$1 as useNavState, useRouteStatus, useRunOnMount, useSelectableElement, useSelectionController, useSignalSync, useStateArray, useTitleLevel, useUrlSearchParam, valueInLocalStorage };
24666
24674
  //# sourceMappingURL=jsenv_navi.js.map