@noya-app/noya-designsystem 0.1.67 → 0.1.69
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 +10 -10
- package/CHANGELOG.md +17 -0
- package/dist/index.css +1 -1
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +77 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +78 -35
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/components/BaseToolbar.tsx +11 -8
- package/src/components/Collection.tsx +9 -0
- package/src/components/Dialog.tsx +7 -1
- package/src/components/InputField.tsx +2 -2
- package/src/components/List.tsx +14 -3
- package/src/components/Stepper.tsx +35 -12
- package/src/components/TreeView.tsx +27 -1
- package/src/components/connected-users-menu/ConnectedUsersMenuLayout.tsx +1 -3
- package/src/components/workspace/VerticalTabMenu.tsx +1 -1
- package/src/index.css +2 -2
package/dist/index.mjs
CHANGED
|
@@ -4128,7 +4128,7 @@ import React21, {
|
|
|
4128
4128
|
} from "react";
|
|
4129
4129
|
|
|
4130
4130
|
// src/components/Dialog.tsx
|
|
4131
|
-
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
4131
|
+
import { Dialog as DialogPrimitive, VisuallyHidden } from "radix-ui";
|
|
4132
4132
|
import React14, {
|
|
4133
4133
|
forwardRef as forwardRef6,
|
|
4134
4134
|
useImperativeHandle,
|
|
@@ -4204,6 +4204,7 @@ var Dialog = forwardRef6(function Dialog2({
|
|
|
4204
4204
|
onOpenAutoFocus,
|
|
4205
4205
|
style: style2,
|
|
4206
4206
|
className,
|
|
4207
|
+
"aria-describedby": typeof description === "string" ? description : "",
|
|
4207
4208
|
...closeOnInteractOutside === false && {
|
|
4208
4209
|
onPointerDownOutside: (event) => event.preventDefault(),
|
|
4209
4210
|
onInteractOutside: (event) => event.preventDefault()
|
|
@@ -4222,6 +4223,7 @@ var Dialog = forwardRef6(function Dialog2({
|
|
|
4222
4223
|
}
|
|
4223
4224
|
)),
|
|
4224
4225
|
title && /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(StyledTitle, null, title), /* @__PURE__ */ React14.createElement(Spacer.Vertical, { size: description ? 10 : 20 })),
|
|
4226
|
+
!title && /* @__PURE__ */ React14.createElement(VisuallyHidden.Root, null, /* @__PURE__ */ React14.createElement(StyledTitle, null, "Dialog")),
|
|
4225
4227
|
description && /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement(StyledDescription, null, description), /* @__PURE__ */ React14.createElement(Spacer.Vertical, { size: 20 })),
|
|
4226
4228
|
children
|
|
4227
4229
|
));
|
|
@@ -5058,8 +5060,8 @@ function InputFieldRoot({
|
|
|
5058
5060
|
},
|
|
5059
5061
|
[onFocusChange]
|
|
5060
5062
|
);
|
|
5061
|
-
const startWidth = measuredStartSize?.width
|
|
5062
|
-
const endWidth = measuredEndSize?.width
|
|
5063
|
+
const startWidth = startWidthProp ?? measuredStartSize?.width;
|
|
5064
|
+
const endWidth = endWidthProp ?? measuredEndSize?.width;
|
|
5063
5065
|
const contextValue = useMemo8(
|
|
5064
5066
|
() => ({
|
|
5065
5067
|
startWidth,
|
|
@@ -9756,6 +9758,7 @@ var TreeRow = forwardRefGeneric(function TreeRow2({
|
|
|
9756
9758
|
onClickChevron,
|
|
9757
9759
|
chevronClassName,
|
|
9758
9760
|
chevronAs,
|
|
9761
|
+
chevronPosition = "start",
|
|
9759
9762
|
children,
|
|
9760
9763
|
...rest
|
|
9761
9764
|
}, forwardedRef) {
|
|
@@ -9769,7 +9772,7 @@ var TreeRow = forwardRefGeneric(function TreeRow2({
|
|
|
9769
9772
|
},
|
|
9770
9773
|
[stableOnClickChevron]
|
|
9771
9774
|
);
|
|
9772
|
-
return /* @__PURE__ */ React59.createElement(ListView.Row, { ref: forwardedRef, ...rest }, expandable && /* @__PURE__ */ React59.createElement(React59.Fragment, null, expanded === void 0 ? /* @__PURE__ */ React59.createElement(Spacer.Horizontal, { size: 19 }) : /* @__PURE__ */ React59.createElement(
|
|
9775
|
+
return /* @__PURE__ */ React59.createElement(ListView.Row, { ref: forwardedRef, ...rest }, expandable && chevronPosition !== "end" && /* @__PURE__ */ React59.createElement(React59.Fragment, null, expanded === void 0 ? /* @__PURE__ */ React59.createElement(Spacer.Horizontal, { size: 19 }) : /* @__PURE__ */ React59.createElement(
|
|
9773
9776
|
IconButton,
|
|
9774
9777
|
{
|
|
9775
9778
|
as: chevronAs,
|
|
@@ -9778,7 +9781,16 @@ var TreeRow = forwardRefGeneric(function TreeRow2({
|
|
|
9778
9781
|
onClick: handleClickChevron,
|
|
9779
9782
|
selected: rest.selected
|
|
9780
9783
|
}
|
|
9781
|
-
), /* @__PURE__ */ React59.createElement(Spacer.Horizontal, { size: 6 })), icon && /* @__PURE__ */ React59.createElement(React59.Fragment, null, renderIcon(icon), /* @__PURE__ */ React59.createElement(Spacer.Horizontal, { size: 10 })), children)
|
|
9784
|
+
), /* @__PURE__ */ React59.createElement(Spacer.Horizontal, { size: 6 })), icon && /* @__PURE__ */ React59.createElement(React59.Fragment, null, renderIcon(icon), /* @__PURE__ */ React59.createElement(Spacer.Horizontal, { size: 10 })), children, expandable && chevronPosition === "end" && /* @__PURE__ */ React59.createElement(React59.Fragment, null, /* @__PURE__ */ React59.createElement(Spacer.Horizontal, { size: 6 }), expanded === void 0 ? /* @__PURE__ */ React59.createElement(React59.Fragment, null, /* @__PURE__ */ React59.createElement(Spacer.Horizontal, { size: 19 }), /* @__PURE__ */ React59.createElement(Spacer.Horizontal, { size: 8 })) : /* @__PURE__ */ React59.createElement(React59.Fragment, null, /* @__PURE__ */ React59.createElement(
|
|
9785
|
+
IconButton,
|
|
9786
|
+
{
|
|
9787
|
+
as: chevronAs,
|
|
9788
|
+
className: chevronClassName,
|
|
9789
|
+
iconName: expanded ? "ChevronDownIcon2" : "ChevronRightIcon2",
|
|
9790
|
+
onClick: handleClickChevron,
|
|
9791
|
+
selected: rest.selected
|
|
9792
|
+
}
|
|
9793
|
+
), /* @__PURE__ */ React59.createElement(Spacer.Horizontal, { size: 8 }))));
|
|
9782
9794
|
});
|
|
9783
9795
|
var TreeView;
|
|
9784
9796
|
((TreeView2) => {
|
|
@@ -9841,7 +9853,10 @@ var List = memoGeneric(
|
|
|
9841
9853
|
sortableId,
|
|
9842
9854
|
sharedDragProps,
|
|
9843
9855
|
virtualized,
|
|
9844
|
-
renameSelectsBeforeDot
|
|
9856
|
+
renameSelectsBeforeDot,
|
|
9857
|
+
chevronPosition = "start",
|
|
9858
|
+
getItemStyle,
|
|
9859
|
+
getItemClassName
|
|
9845
9860
|
} = props;
|
|
9846
9861
|
const [internalHoveredId, setHoveredId] = useState25();
|
|
9847
9862
|
const [internalRenamingId, setRenamingId] = useState25();
|
|
@@ -9971,6 +9986,8 @@ var List = memoGeneric(
|
|
|
9971
9986
|
below
|
|
9972
9987
|
);
|
|
9973
9988
|
}
|
|
9989
|
+
const perItemStyle = getItemStyle?.(item, isSelected);
|
|
9990
|
+
const perItemClassName = getItemClassName?.(item, isSelected);
|
|
9974
9991
|
return /* @__PURE__ */ React60.createElement(
|
|
9975
9992
|
ViewComponent.Row,
|
|
9976
9993
|
{
|
|
@@ -9983,11 +10000,14 @@ var List = memoGeneric(
|
|
|
9983
10000
|
"aria-roledescription": itemRoleDescription,
|
|
9984
10001
|
"aria-label": getName(item),
|
|
9985
10002
|
"aria-selected": isSelected,
|
|
9986
|
-
className: itemClassName,
|
|
10003
|
+
className: cx(itemClassName, perItemClassName),
|
|
9987
10004
|
testRelativeDropPosition: testShowDropIndicatorId === id ? "inside" : void 0,
|
|
9988
|
-
chevronClassName: cx(
|
|
10005
|
+
chevronClassName: cx(
|
|
10006
|
+
expandable && chevronPosition !== "end" && "n-relative n-left-2"
|
|
10007
|
+
),
|
|
9989
10008
|
chevronAs: href ? "div" : void 0,
|
|
9990
|
-
|
|
10009
|
+
...expandable ? { chevronPosition } : {},
|
|
10010
|
+
style: perItemStyle ? { ...itemStyle, ...perItemStyle } : itemStyle,
|
|
9991
10011
|
hovered: isHovered,
|
|
9992
10012
|
selected: isSelected,
|
|
9993
10013
|
expanded,
|
|
@@ -11512,7 +11532,7 @@ var ConnectedUsersMenuLayout = ({
|
|
|
11512
11532
|
launchAIAssistant,
|
|
11513
11533
|
isAssistantOpen
|
|
11514
11534
|
}) => {
|
|
11515
|
-
return /* @__PURE__ */ React69.createElement("div", { className: "n-flex n-gap-1.5" }, /* @__PURE__ */ React69.createElement(AvatarStack, { size: INPUT_HEIGHT
|
|
11535
|
+
return /* @__PURE__ */ React69.createElement("div", { className: "n-flex n-gap-1.5" }, /* @__PURE__ */ React69.createElement(AvatarStack, { size: INPUT_HEIGHT }, renderUsers()), launchAIAssistant && /* @__PURE__ */ React69.createElement(Tooltip, { content: "AI Assistant" }, /* @__PURE__ */ React69.createElement(
|
|
11516
11536
|
Button,
|
|
11517
11537
|
{
|
|
11518
11538
|
active: isAssistantOpen,
|
|
@@ -15102,7 +15122,7 @@ function BaseToolbar({
|
|
|
15102
15122
|
logo && /* @__PURE__ */ React83.createElement(React83.Fragment, null, logo, /* @__PURE__ */ React83.createElement(DividerVertical, null)),
|
|
15103
15123
|
/* @__PURE__ */ React83.createElement(Spacer.Horizontal, { size: 10 }),
|
|
15104
15124
|
left && /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement("div", { className: "n-flex n-gap-toolbar-separator" }, left), /* @__PURE__ */ React83.createElement(Spacer.Horizontal, { size: 10 })),
|
|
15105
|
-
/* @__PURE__ */ React83.createElement(
|
|
15125
|
+
children && /* @__PURE__ */ React83.createElement(
|
|
15106
15126
|
"div",
|
|
15107
15127
|
{
|
|
15108
15128
|
className: "n-flex n-items-center n-justify-center n-text-text-muted n-pointer-events-none @2xl/toolbar:n-absolute n-inset-0"
|
|
@@ -15111,7 +15131,8 @@ function BaseToolbar({
|
|
|
15111
15131
|
),
|
|
15112
15132
|
/* @__PURE__ */ React83.createElement(Spacer.Horizontal, null),
|
|
15113
15133
|
/* @__PURE__ */ React83.createElement(Spacer.Horizontal, { size: 10 }),
|
|
15114
|
-
/* @__PURE__ */ React83.createElement("div", { className: "n-flex n-gap-toolbar-separator" }, right)
|
|
15134
|
+
/* @__PURE__ */ React83.createElement("div", { className: "n-flex n-gap-toolbar-separator" }, right),
|
|
15135
|
+
/* @__PURE__ */ React83.createElement(Spacer.Horizontal, { size: 10 })
|
|
15115
15136
|
);
|
|
15116
15137
|
}
|
|
15117
15138
|
|
|
@@ -16683,29 +16704,51 @@ var Stepper = memo34(function Stepper2({
|
|
|
16683
16704
|
onBlur
|
|
16684
16705
|
},
|
|
16685
16706
|
/* @__PURE__ */ React99.createElement(
|
|
16686
|
-
|
|
16687
|
-
{
|
|
16688
|
-
icon: "MinusIcon",
|
|
16689
|
-
disabled: readOnly,
|
|
16690
|
-
onClick: () => handleValueChange(value - step)
|
|
16691
|
-
}
|
|
16692
|
-
),
|
|
16693
|
-
/* @__PURE__ */ React99.createElement(InputField2.Root, { className: "n-flex-1" }, /* @__PURE__ */ React99.createElement(
|
|
16694
|
-
InputField2.NumberInput,
|
|
16695
|
-
{
|
|
16696
|
-
value,
|
|
16697
|
-
onChange: handleValueChange,
|
|
16698
|
-
onNudge: (amount) => handleValueChange(value + amount),
|
|
16699
|
-
readOnly
|
|
16700
|
-
}
|
|
16701
|
-
)),
|
|
16702
|
-
/* @__PURE__ */ React99.createElement(
|
|
16703
|
-
Button,
|
|
16707
|
+
InputField2.Root,
|
|
16704
16708
|
{
|
|
16705
|
-
|
|
16706
|
-
|
|
16707
|
-
|
|
16708
|
-
|
|
16709
|
+
className: "n-flex-1",
|
|
16710
|
+
startWidth: 17,
|
|
16711
|
+
startClassName: "-n-ml-[3px]",
|
|
16712
|
+
endWidth: 17,
|
|
16713
|
+
endClassName: "-n-mr-[3px]",
|
|
16714
|
+
start: /* @__PURE__ */ React99.createElement(
|
|
16715
|
+
IconButton,
|
|
16716
|
+
{
|
|
16717
|
+
iconName: "MinusIcon",
|
|
16718
|
+
disabled: readOnly,
|
|
16719
|
+
onClick: () => handleValueChange(value - step),
|
|
16720
|
+
className: "n-w-[21px] n-h-[21px]",
|
|
16721
|
+
style: {
|
|
16722
|
+
outline: `1px solid ${cssVars.colors.dividerStrong}`,
|
|
16723
|
+
outlineOffset: "-1px",
|
|
16724
|
+
background: cssVars.colors.background
|
|
16725
|
+
}
|
|
16726
|
+
}
|
|
16727
|
+
),
|
|
16728
|
+
end: /* @__PURE__ */ React99.createElement(
|
|
16729
|
+
IconButton,
|
|
16730
|
+
{
|
|
16731
|
+
iconName: "PlusIcon",
|
|
16732
|
+
disabled: readOnly,
|
|
16733
|
+
onClick: () => handleValueChange(value + step),
|
|
16734
|
+
className: "n-w-[21px] n-h-[21px]",
|
|
16735
|
+
style: {
|
|
16736
|
+
outline: `1px solid ${cssVars.colors.dividerStrong}`,
|
|
16737
|
+
outlineOffset: "-1px",
|
|
16738
|
+
background: cssVars.colors.background
|
|
16739
|
+
}
|
|
16740
|
+
}
|
|
16741
|
+
)
|
|
16742
|
+
},
|
|
16743
|
+
/* @__PURE__ */ React99.createElement(
|
|
16744
|
+
InputField2.NumberInput,
|
|
16745
|
+
{
|
|
16746
|
+
value,
|
|
16747
|
+
onChange: handleValueChange,
|
|
16748
|
+
onNudge: (amount) => handleValueChange(value + amount),
|
|
16749
|
+
readOnly
|
|
16750
|
+
}
|
|
16751
|
+
)
|
|
16709
16752
|
)
|
|
16710
16753
|
);
|
|
16711
16754
|
});
|
|
@@ -17202,7 +17245,7 @@ var VerticalTabMenu = memoGeneric(function VerticalTabMenu2({
|
|
|
17202
17245
|
return /* @__PURE__ */ React105.createElement(
|
|
17203
17246
|
"div",
|
|
17204
17247
|
{
|
|
17205
|
-
className: "n-w-[
|
|
17248
|
+
className: "n-w-[calc(var(--n-toolbar-height)+1px)] n-h-full n-bg-sidebar-background n-flex n-flex-col n-items-center n-py-3 n-gap-3",
|
|
17206
17249
|
style: style2
|
|
17207
17250
|
},
|
|
17208
17251
|
/* @__PURE__ */ React105.createElement(
|