@jsenv/navi 0.21.2 → 0.21.4

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.
@@ -6325,12 +6325,14 @@ const DIMENSION_PROPS = {
6325
6325
  }
6326
6326
  const inVerticalFlexFlow =
6327
6327
  parentBoxFlow === "flex-y" || parentBoxFlow === "inline-flex-y";
6328
+ const inHorizontalFlexFlow =
6329
+ parentBoxFlow === "flex-x" || parentBoxFlow === "inline-flex-x";
6328
6330
  const selfVerticalFlexFlow =
6329
6331
  boxFlow === "flex-y" || boxFlow === "inline-flex-y";
6330
6332
  if (selfVerticalFlexFlow || inVerticalFlexFlow) {
6331
6333
  if (!inVerticalFlexFlow) {
6332
- if (parentBoxFlow === "flex-x" || parentBoxFlow === "inline-flex-x") {
6333
- return { minHeight: "100%", height: "auto" };
6334
+ if (inHorizontalFlexFlow) {
6335
+ return { alignSelf: "stretch" };
6334
6336
  }
6335
6337
  return {
6336
6338
  flexGrow: 1,
@@ -6341,8 +6343,8 @@ const DIMENSION_PROPS = {
6341
6343
  }
6342
6344
  return { flexGrow: 1, flexBasis: "0%" }; // Grow vertically in row
6343
6345
  }
6344
- if (parentBoxFlow === "flex-x") {
6345
- return { minHeight: "100%", height: "auto" }; // Take full height in column
6346
+ if (inHorizontalFlexFlow) {
6347
+ return { alignSelf: "stretch" }; // Stretch to cross-axis height in flex-x
6346
6348
  }
6347
6349
  return { minHeight: "100%", height: "auto" }; // Take full height outside flex
6348
6350
  },
@@ -18882,6 +18884,27 @@ const css$3 = /* css */`
18882
18884
  }
18883
18885
  }
18884
18886
 
18887
+ .navi_text_skeleton {
18888
+ display: inline-block;
18889
+ width: 100%;
18890
+ height: 1em;
18891
+ background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
18892
+ background-size: 200% 100%;
18893
+ border-radius: 4px;
18894
+
18895
+ &[data-loading] {
18896
+ animation: navi_text_skeleton_shimmer 1.2s infinite;
18897
+ }
18898
+ }
18899
+ @keyframes navi_text_skeleton_shimmer {
18900
+ 0% {
18901
+ background-position: 200% 0;
18902
+ }
18903
+ 100% {
18904
+ background-position: -200% 0;
18905
+ }
18906
+ }
18907
+
18885
18908
  .navi_custom_space {
18886
18909
  }
18887
18910
 
@@ -19041,8 +19064,16 @@ const Text = props => {
19041
19064
  import.meta.css = [css$3, "@jsenv/navi/src/text/text.jsx"];
19042
19065
  const {
19043
19066
  overflowEllipsis,
19067
+ loading,
19068
+ skeleton,
19044
19069
  ...rest
19045
19070
  } = props;
19071
+ if (loading || skeleton) {
19072
+ return jsx(TextSkeleton, {
19073
+ loading: loading,
19074
+ ...rest
19075
+ });
19076
+ }
19046
19077
  if (overflowEllipsis) {
19047
19078
  return jsx(TextOverflow, {
19048
19079
  ...rest
@@ -19062,6 +19093,20 @@ const Text = props => {
19062
19093
  ...props
19063
19094
  });
19064
19095
  };
19096
+ const TextSkeleton = ({
19097
+ loading,
19098
+ ...props
19099
+ }) => {
19100
+ return jsx(Box, {
19101
+ ...props,
19102
+ baseClassName: "navi_text_skeleton",
19103
+ "data-loading": loading ? "" : undefined
19104
+ // eslint-disable-next-line react/no-children-prop
19105
+ ,
19106
+
19107
+ children: undefined
19108
+ });
19109
+ };
19065
19110
  const TextOverflow = ({
19066
19111
  noWrap,
19067
19112
  spacing,
@@ -31376,39 +31421,6 @@ const Paragraph = props => {
31376
31421
  });
31377
31422
  };
31378
31423
 
31379
- installImportMetaCssBuild(import.meta);import.meta.css = [/* css */`
31380
- .navi_text_placeholder {
31381
- display: inline-block;
31382
- width: 100%;
31383
- height: 1em;
31384
- background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
31385
- background-size: 200% 100%;
31386
- border-radius: 4px;
31387
-
31388
- &[data-loading] {
31389
- animation: shimmer 1.2s infinite;
31390
- }
31391
- }
31392
- @keyframes shimmer {
31393
- 0% {
31394
- background-position: 200% 0;
31395
- }
31396
- 100% {
31397
- background-position: -200% 0;
31398
- }
31399
- }
31400
- `, "@jsenv/navi/src/text/text_placeholder.jsx"];
31401
- const TextPlaceholder = ({
31402
- loading,
31403
- ...props
31404
- }) => {
31405
- return jsx(Box, {
31406
- ...props,
31407
- baseClassName: "navi_text_placeholder",
31408
- "data-loading": loading ? "" : undefined
31409
- });
31410
- };
31411
-
31412
31424
  const Image = props => {
31413
31425
  return jsx(Box, {
31414
31426
  ...props,
@@ -32052,5 +32064,5 @@ const UserSvg = () => jsx("svg", {
32052
32064
  })
32053
32065
  });
32054
32066
 
32055
- export { ActionRenderer, ActiveKeyboardShortcuts, Address, Badge, BadgeCount, Box, Button, ButtonCopyToClipboard, Caption, CheckSvg, Checkbox, CheckboxList, CloseSvg, 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 };
32067
+ export { ActionRenderer, ActiveKeyboardShortcuts, Address, Badge, BadgeCount, Box, Button, ButtonCopyToClipboard, Caption, CheckSvg, Checkbox, CheckboxList, CloseSvg, 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, 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 };
32056
32068
  //# sourceMappingURL=jsenv_navi.js.map