@jsenv/navi 0.12.0 → 0.12.1

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.
@@ -9381,6 +9381,7 @@ const VISUAL_PROPS = {
9381
9381
  cursor: PASS_THROUGH,
9382
9382
  };
9383
9383
  const CONTENT_PROPS = {
9384
+ contentAlign: applyOnTwoProps("contentAlignX", "contentAlignY"),
9384
9385
  contentAlignX: (value, { layout }) => {
9385
9386
  if (layout === "row" || layout === "inline-row") {
9386
9387
  if (value === "stretch") {
@@ -10717,18 +10718,6 @@ const RectangleLoadingSvg = ({
10717
10718
  };
10718
10719
 
10719
10720
  installImportMetaCss(import.meta);import.meta.css = /* css */`
10720
- .navi_inline_wrapper {
10721
- position: relative;
10722
- display: inline-flex;
10723
- width: fit-content;
10724
- height: fit-content;
10725
- flex-direction: inherit;
10726
- /* min-width: 100%; */
10727
- /* min-height: 100%; */
10728
- border-radius: inherit;
10729
- cursor: inherit;
10730
- }
10731
-
10732
10721
  .navi_loading_rectangle_wrapper {
10733
10722
  position: absolute;
10734
10723
  top: var(--rectangle-top, 0);
@@ -12723,10 +12712,11 @@ const LinkPlain = props => {
12723
12712
  anchorIcon,
12724
12713
  icon,
12725
12714
  contentSpacing = " ",
12726
- ref = useRef(),
12727
12715
  children,
12728
12716
  ...rest
12729
12717
  } = props;
12718
+ const defaultRef = useRef();
12719
+ const ref = props.ref || defaultRef;
12730
12720
  const visited = useIsVisited(href);
12731
12721
  useAutoFocus(ref, autoFocus);
12732
12722
  useConstraints(ref, constraints);
@@ -12917,9 +12907,10 @@ const LinkWithSelection = props => {
12917
12907
  const {
12918
12908
  value = props.href,
12919
12909
  children,
12920
- ref = useRef(),
12921
12910
  ...rest
12922
12911
  } = props;
12912
+ const defaultRef = useRef();
12913
+ const ref = props.ref || defaultRef;
12923
12914
  const {
12924
12915
  selected
12925
12916
  } = useSelectableElement(ref, {
@@ -12981,9 +12972,10 @@ const LinkWithAction = props => {
12981
12972
  onActionEnd,
12982
12973
  children,
12983
12974
  loading,
12984
- ref = useRef(),
12985
12975
  ...rest
12986
12976
  } = props;
12977
+ const defaultRef = useRef();
12978
+ const ref = props.ref || defaultRef;
12987
12979
  const {
12988
12980
  actionPending
12989
12981
  } = useRequestedActionStatus(ref);
@@ -13559,10 +13551,12 @@ const Label = props => {
13559
13551
  const [inputDisabled, setInputDisabled] = useState(false);
13560
13552
  const innerDisabled = disabled || inputDisabled;
13561
13553
  return jsx(Box, {
13562
- as: "label",
13563
13554
  ...rest,
13564
- "data-readonly": innerReadOnly ? "" : undefined,
13565
- "data-disabled": innerDisabled ? "" : undefined,
13555
+ as: "label",
13556
+ basePseudoState: {
13557
+ readOnly: innerReadOnly,
13558
+ disabled: innerDisabled
13559
+ },
13566
13560
  children: jsx(ReportReadOnlyOnLabelContext.Provider, {
13567
13561
  value: setInputReadOnly,
13568
13562
  children: jsx(ReportDisabledOnLabelContext.Provider, {
@@ -20284,20 +20278,18 @@ const Count = ({
20284
20278
  };
20285
20279
 
20286
20280
  const Image = props => {
20287
- const [remainingProps, innerStyle] = withPropsStyle();
20288
- return jsx("img", {
20289
- style: innerStyle,
20290
- ...remainingProps
20281
+ return jsx(Box, {
20282
+ ...props,
20283
+ as: "img"
20291
20284
  });
20292
20285
  };
20293
20286
 
20294
20287
  const LinkWithIcon = () => {};
20295
20288
 
20296
20289
  const Svg = props => {
20297
- const [remainingProps, innerStyle] = withPropsStyle();
20298
- return jsx("svg", {
20299
- style: innerStyle,
20300
- ...remainingProps
20290
+ return jsx(Box, {
20291
+ ...props,
20292
+ as: "svg"
20301
20293
  });
20302
20294
  };
20303
20295