@noya-app/noya-designsystem 0.1.88 → 0.1.89

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.
package/dist/index.mjs CHANGED
@@ -21688,20 +21688,20 @@ function InputFieldNumberInput(props) {
21688
21688
  [onNudge]
21689
21689
  );
21690
21690
  const handleChange = useCallback40(
21691
- (value2) => {
21692
- if (value2 === "" || value2 === "-" || value2 === ".") {
21693
- setInternalValue(value2);
21691
+ (inputValue) => {
21692
+ if (inputValue === "" || inputValue === "-" || inputValue === ".") {
21693
+ setInternalValue(inputValue);
21694
21694
  if (triggersOnEmpty) {
21695
21695
  onChange?.(0, { isEmpty: true });
21696
21696
  }
21697
21697
  return;
21698
21698
  }
21699
- if (value2.endsWith(".")) {
21700
- setInternalValue(value2);
21699
+ if (inputValue.endsWith(".")) {
21700
+ setInternalValue(inputValue);
21701
21701
  return;
21702
21702
  }
21703
- setInternalValue(void 0);
21704
- const newValue = parseNumber(value2);
21703
+ setInternalValue(inputValue);
21704
+ const newValue = parseNumber(inputValue);
21705
21705
  if (!isNaN(newValue)) {
21706
21706
  onChange?.(newValue, { isEmpty: false });
21707
21707
  }
@@ -30680,19 +30680,9 @@ var UserAvatar = ({ userId, name, image }) => /* @__PURE__ */ React228.createEle
30680
30680
  /* @__PURE__ */ React228.createElement(Avatar, { size: INPUT_HEIGHT, userId, name, image })
30681
30681
  );
30682
30682
  var ConnectedUsersMenuLayout = ({
30683
- renderUsers,
30684
- launchAIAssistant,
30685
- isAssistantOpen
30683
+ renderUsers
30686
30684
  }) => {
30687
- return /* @__PURE__ */ React228.createElement("div", { className: "n-flex n-gap-1.5" }, /* @__PURE__ */ React228.createElement(AvatarStack, { size: INPUT_HEIGHT }, renderUsers()), launchAIAssistant && /* @__PURE__ */ React228.createElement(Tooltip, { content: "AI Assistant" }, /* @__PURE__ */ React228.createElement(
30688
- Button,
30689
- {
30690
- active: isAssistantOpen,
30691
- onClick: launchAIAssistant,
30692
- icon: "ChatBubbleWithDotsIcon"
30693
- },
30694
- "AI"
30695
- )));
30685
+ return /* @__PURE__ */ React228.createElement("div", { className: "n-flex n-gap-1.5" }, /* @__PURE__ */ React228.createElement(AvatarStack, { size: INPUT_HEIGHT }, renderUsers()));
30696
30686
  };
30697
30687
 
30698
30688
  // src/components/DialogNavigator.tsx