@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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +8 -0
- package/dist/index.d.mts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +9 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/components/InputField.tsx +9 -7
- package/src/components/__tests__/InputField.test.tsx +227 -3
- package/src/components/connected-users-menu/ConnectedUsersMenuLayout.tsx +0 -16
package/dist/index.mjs
CHANGED
|
@@ -21688,20 +21688,20 @@ function InputFieldNumberInput(props) {
|
|
|
21688
21688
|
[onNudge]
|
|
21689
21689
|
);
|
|
21690
21690
|
const handleChange = useCallback40(
|
|
21691
|
-
(
|
|
21692
|
-
if (
|
|
21693
|
-
setInternalValue(
|
|
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 (
|
|
21700
|
-
setInternalValue(
|
|
21699
|
+
if (inputValue.endsWith(".")) {
|
|
21700
|
+
setInternalValue(inputValue);
|
|
21701
21701
|
return;
|
|
21702
21702
|
}
|
|
21703
|
-
setInternalValue(
|
|
21704
|
-
const newValue = parseNumber(
|
|
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())
|
|
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
|