@jsenv/navi 0.21.3 → 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.
@@ -18884,6 +18884,27 @@ const css$3 = /* css */`
18884
18884
  }
18885
18885
  }
18886
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
+
18887
18908
  .navi_custom_space {
18888
18909
  }
18889
18910
 
@@ -19043,8 +19064,16 @@ const Text = props => {
19043
19064
  import.meta.css = [css$3, "@jsenv/navi/src/text/text.jsx"];
19044
19065
  const {
19045
19066
  overflowEllipsis,
19067
+ loading,
19068
+ skeleton,
19046
19069
  ...rest
19047
19070
  } = props;
19071
+ if (loading || skeleton) {
19072
+ return jsx(TextSkeleton, {
19073
+ loading: loading,
19074
+ ...rest
19075
+ });
19076
+ }
19048
19077
  if (overflowEllipsis) {
19049
19078
  return jsx(TextOverflow, {
19050
19079
  ...rest
@@ -19064,6 +19093,20 @@ const Text = props => {
19064
19093
  ...props
19065
19094
  });
19066
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
+ };
19067
19110
  const TextOverflow = ({
19068
19111
  noWrap,
19069
19112
  spacing,
@@ -31378,39 +31421,6 @@ const Paragraph = props => {
31378
31421
  });
31379
31422
  };
31380
31423
 
31381
- installImportMetaCssBuild(import.meta);import.meta.css = [/* css */`
31382
- .navi_text_placeholder {
31383
- display: inline-block;
31384
- width: 100%;
31385
- height: 1em;
31386
- background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
31387
- background-size: 200% 100%;
31388
- border-radius: 4px;
31389
-
31390
- &[data-loading] {
31391
- animation: shimmer 1.2s infinite;
31392
- }
31393
- }
31394
- @keyframes shimmer {
31395
- 0% {
31396
- background-position: 200% 0;
31397
- }
31398
- 100% {
31399
- background-position: -200% 0;
31400
- }
31401
- }
31402
- `, "@jsenv/navi/src/text/text_placeholder.jsx"];
31403
- const TextPlaceholder = ({
31404
- loading,
31405
- ...props
31406
- }) => {
31407
- return jsx(Box, {
31408
- ...props,
31409
- baseClassName: "navi_text_placeholder",
31410
- "data-loading": loading ? "" : undefined
31411
- });
31412
- };
31413
-
31414
31424
  const Image = props => {
31415
31425
  return jsx(Box, {
31416
31426
  ...props,
@@ -32054,5 +32064,5 @@ const UserSvg = () => jsx("svg", {
32054
32064
  })
32055
32065
  });
32056
32066
 
32057
- 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 };
32058
32068
  //# sourceMappingURL=jsenv_navi.js.map