@jsenv/navi 0.27.65 → 0.27.66

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.
@@ -31500,24 +31500,15 @@ const FieldAsLabel = props => {
31500
31500
  children
31501
31501
  } = props;
31502
31502
  props.paddingWithControl = resolveSpacingSize(props.paddingWithControl, "s");
31503
- const [messageProps, remainingProps] = extractMessageAndRemainingProps(props);
31504
- const messagePropsRef = useRef();
31505
- messagePropsRef.current = messageProps;
31506
31503
  return jsx(Label, {
31507
31504
  "navi-field": "",
31508
31505
  styleCSSVars: FieldCSSVars,
31509
31506
  flex: vertical ? "y" : undefined,
31510
31507
  alignX: vertical ? "start" : undefined,
31511
31508
  "data-vertical": vertical ? "" : undefined,
31512
- ...remainingProps,
31509
+ ...props,
31513
31510
  vertical: undefined,
31514
- children: jsx(MessagePropsRefContext.Provider, {
31515
- value: messagePropsRef,
31516
- children: jsx(ControlIdContext.Provider, {
31517
- value: props.htmlFor,
31518
- children: children
31519
- })
31520
- })
31511
+ children: children
31521
31512
  });
31522
31513
  };
31523
31514
  const FieldCSSVars = {
@@ -31557,8 +31548,7 @@ const FIELD_PSEUDO_CLASSES = [":hover", ":active", ":focus", ":focus-visible", "
31557
31548
  const Label = props => {
31558
31549
  import.meta.css = [css$A, "@jsenv/navi/src/control/field.jsx"];
31559
31550
  const {
31560
- children,
31561
- ...rest
31551
+ children
31562
31552
  } = props;
31563
31553
  const controlId = useContext(ControlIdContext);
31564
31554
  const [disabled, setDisabled] = useState(false);
@@ -31566,6 +31556,9 @@ const Label = props => {
31566
31556
  const [connected, setConnected] = useState(false);
31567
31557
  const defaultId = useId();
31568
31558
  const htmlFor = props.htmlFor || controlId || `label_auto_${defaultId}`;
31559
+ const [messageProps, remainingProps] = extractMessageAndRemainingProps(props);
31560
+ const messagePropsRef = useRef();
31561
+ messagePropsRef.current = messageProps;
31569
31562
  return jsx(Box, {
31570
31563
  as: "label",
31571
31564
  htmlFor: htmlFor,
@@ -31576,7 +31569,7 @@ const Label = props => {
31576
31569
  ":disabled": disabled,
31577
31570
  ":read-only": readOnly
31578
31571
  },
31579
- ...rest,
31572
+ ...remainingProps,
31580
31573
  onnavi_control_state: e => {
31581
31574
  setConnected(true);
31582
31575
  setDisabled(e.detail.disabled);
@@ -31587,9 +31580,12 @@ const Label = props => {
31587
31580
  setDisabled(false);
31588
31581
  setReadOnly(false);
31589
31582
  },
31590
- children: jsx(ControlIdContext.Provider, {
31591
- value: htmlFor,
31592
- children: children
31583
+ children: jsx(MessagePropsRefContext.Provider, {
31584
+ value: messagePropsRef,
31585
+ children: jsx(ControlIdContext.Provider, {
31586
+ value: htmlFor,
31587
+ children: children
31588
+ })
31593
31589
  })
31594
31590
  });
31595
31591
  };
@@ -40947,6 +40943,7 @@ const PickerButton = props => {
40947
40943
  ref,
40948
40944
  variant,
40949
40945
  icon,
40946
+ iconSize = "m",
40950
40947
  placeholder,
40951
40948
  ui,
40952
40949
  maxLines = 1
@@ -40980,6 +40977,7 @@ const PickerButton = props => {
40980
40977
  styleCSSVars: PickerStyleCSSVars,
40981
40978
  variant: undefined,
40982
40979
  icon: undefined,
40980
+ iconSize: undefined,
40983
40981
  ui: undefined,
40984
40982
  maxLines: undefined,
40985
40983
  dayLabel: undefined
@@ -41091,7 +41089,7 @@ const PickerButton = props => {
41091
41089
  }), variant === "headless" || ui === "default" ? null : jsx("span", {
41092
41090
  className: "navi_picker_right_slot",
41093
41091
  children: jsx(Icon, {
41094
- size: "m",
41092
+ size: iconSize,
41095
41093
  children: icon === undefined ? jsx(ChevronDownSvg, {}) : icon
41096
41094
  })
41097
41095
  }), jsx(ControlFacadeChildrenWrapper, {