@jsenv/navi 0.18.23 → 0.18.24

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.
@@ -6485,7 +6485,6 @@ const PSEUDO_CLASSES_DEFAULT = [];
6485
6485
  const PSEUDO_ELEMENTS_DEFAULT = [];
6486
6486
  const STYLE_CSS_VARS_DEFAULT = {};
6487
6487
  const PROPS_CSS_VARS_DEFAULT = {};
6488
- const CHILD_PROP_SET_DEFAULT = new Set();
6489
6488
  const Box = props => {
6490
6489
  const {
6491
6490
  as = "div",
@@ -6512,7 +6511,8 @@ const Box = props => {
6512
6511
  // -> introduced for <Input /> with a wrapped for loading, checkboxes, etc
6513
6512
  pseudoStateSelector,
6514
6513
  hasChildFunction,
6515
- childPropSet = CHILD_PROP_SET_DEFAULT,
6514
+ baseChildPropSet,
6515
+ childPropSet,
6516
6516
  // preventInitialTransition can be used to prevent transition on mount
6517
6517
  // (when transition is set via props, this is done automatically)
6518
6518
  // so this prop is useful only when transition is enabled from "outside" (via CSS)
@@ -6767,7 +6767,7 @@ const Box = props => {
6767
6767
  }
6768
6768
  for (const propName of remainingPropKeySet) {
6769
6769
  const propValue = rest[propName];
6770
- if (childPropSet.has(propName)) {
6770
+ if (baseChildPropSet?.has(propName) || childPropSet?.has(propName)) {
6771
6771
  childForwardedProps[propName] = propValue;
6772
6772
  continue;
6773
6773
  }
@@ -22279,6 +22279,11 @@ const normalizeColorString = (color, el) => {
22279
22279
  return String(colorRgba);
22280
22280
  };
22281
22281
 
22282
+ const fieldPropSet = new Set([
22283
+ ...CONSTRAINT_ATTRIBUTE_SET,
22284
+ "data-testid",
22285
+ ]);
22286
+
22282
22287
  installImportMetaCss(import.meta);import.meta.css = /* css */`
22283
22288
  @layer navi {
22284
22289
  label {
@@ -22736,6 +22741,7 @@ const CheckboxButtonStyleCSSVars = {
22736
22741
  };
22737
22742
  const CheckboxPseudoClasses = [":hover", ":active", ":focus", ":focus-visible", ":read-only", ":disabled", ":checked", ":-navi-loading"];
22738
22743
  const CheckboxPseudoElements = ["::-navi-loader", "::-navi-checkmark"];
22744
+ const CheckboxChildPropSet = new Set([...fieldPropSet]);
22739
22745
  const InputCheckboxBasic = props => {
22740
22746
  const contextFieldName = useContext(FieldNameContext);
22741
22747
  const contextReadOnly = useContext(ReadOnlyContext);
@@ -22838,6 +22844,7 @@ const InputCheckboxBasic = props => {
22838
22844
  },
22839
22845
  accentColor: accentColor,
22840
22846
  hasChildFunction: true,
22847
+ baseChildPropSet: CheckboxChildPropSet,
22841
22848
  preventInitialTransition: true,
22842
22849
  children: [jsx(LoaderBackground, {
22843
22850
  loading: innerLoading,
@@ -23457,6 +23464,7 @@ const RadioButtonStyleCSSVars = {
23457
23464
  };
23458
23465
  const RadioPseudoClasses = [":hover", ":active", ":focus", ":focus-visible", ":read-only", ":disabled", ":checked", ":-navi-loading"];
23459
23466
  const RadioPseudoElements = ["::-navi-loader", "::-navi-radiomark"];
23467
+ const RadioChildPropSet = new Set([...fieldPropSet]);
23460
23468
  const InputRadioBasic = props => {
23461
23469
  const contextName = useContext(FieldNameContext);
23462
23470
  const contextReadOnly = useContext(ReadOnlyContext);
@@ -23585,6 +23593,7 @@ const InputRadioBasic = props => {
23585
23593
  },
23586
23594
  color: color,
23587
23595
  hasChildFunction: true,
23596
+ baseChildPropSet: RadioChildPropSet,
23588
23597
  children: [jsx(LoaderBackground, {
23589
23598
  loading: innerLoading,
23590
23599
  inset: -1,
@@ -23847,7 +23856,7 @@ const InputRange = props => {
23847
23856
  })
23848
23857
  });
23849
23858
  };
23850
- const InputStyleCSSVars$1 = {
23859
+ const RangeStyleCSSVars = {
23851
23860
  "outlineWidth": "--outline-width",
23852
23861
  "borderRadius": "--border-radius",
23853
23862
  "borderColor": "--border-color",
@@ -23878,8 +23887,9 @@ const InputStyleCSSVars$1 = {
23878
23887
  thumbColor: "--thumb-color-disabled"
23879
23888
  }
23880
23889
  };
23881
- const InputPseudoClasses$1 = [":hover", ":active", ":focus", ":focus-visible", ":read-only", ":disabled", ":-navi-loading"];
23882
- const InputPseudoElements$1 = ["::-navi-loader"];
23890
+ const RangePseudoClasses = [":hover", ":active", ":focus", ":focus-visible", ":read-only", ":disabled", ":-navi-loading"];
23891
+ const RangePseudoElements = ["::-navi-loader"];
23892
+ const RangeChildPropSet = new Set([...fieldPropSet]);
23883
23893
  const InputRangeBasic = props => {
23884
23894
  const contextReadOnly = useContext(ReadOnlyContext);
23885
23895
  const contextDisabled = useContext(DisabledContext);
@@ -23990,7 +24000,7 @@ const InputRangeBasic = props => {
23990
24000
  as: "span",
23991
24001
  box: true,
23992
24002
  baseClassName: "navi_input_range",
23993
- styleCSSVars: InputStyleCSSVars$1,
24003
+ styleCSSVars: RangeStyleCSSVars,
23994
24004
  pseudoStateSelector: ".navi_native_input",
23995
24005
  visualSelector: ".navi_native_input",
23996
24006
  basePseudoState: {
@@ -23998,9 +24008,10 @@ const InputRangeBasic = props => {
23998
24008
  ":disabled": innerDisabled,
23999
24009
  ":-navi-loading": innerLoading
24000
24010
  },
24001
- pseudoClasses: InputPseudoClasses$1,
24002
- pseudoElements: InputPseudoElements$1,
24011
+ pseudoClasses: RangePseudoClasses,
24012
+ pseudoElements: RangePseudoElements,
24003
24013
  hasChildFunction: true,
24014
+ baseChildPropSet: RangeChildPropSet,
24004
24015
  ...remainingProps,
24005
24016
  ref: undefined,
24006
24017
  children: [jsx(LoaderBackground, {
@@ -24380,7 +24391,7 @@ Object.assign(PSEUDO_CLASSES, {
24380
24391
  }
24381
24392
  });
24382
24393
  const InputPseudoElements = ["::-navi-loader"];
24383
- const InputPropSet = new Set([...CONSTRAINT_ATTRIBUTE_SET]);
24394
+ const InputChildPropSet = new Set([...fieldPropSet]);
24384
24395
  const InputTextualBasic = props => {
24385
24396
  const contextReadOnly = useContext(ReadOnlyContext);
24386
24397
  const contextDisabled = useContext(DisabledContext);
@@ -24483,7 +24494,7 @@ const InputTextualBasic = props => {
24483
24494
  pseudoClasses: InputPseudoClasses,
24484
24495
  pseudoElements: InputPseudoElements,
24485
24496
  hasChildFunction: true,
24486
- childPropSet: InputPropSet,
24497
+ baseChildPropSet: InputChildPropSet,
24487
24498
  "data-start-icon": innerIcon ? "" : undefined,
24488
24499
  "data-end-icon": cancelButton ? "" : undefined,
24489
24500
  ...remainingProps,