@noya-app/noya-designsystem 0.1.68 → 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 +11 -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 +71 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +71 -31
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/components/Collection.tsx +9 -0
- 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/workspace/VerticalTabMenu.tsx +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5060,8 +5060,8 @@ function InputFieldRoot({
|
|
|
5060
5060
|
},
|
|
5061
5061
|
[onFocusChange]
|
|
5062
5062
|
);
|
|
5063
|
-
const startWidth = measuredStartSize?.width
|
|
5064
|
-
const endWidth = measuredEndSize?.width
|
|
5063
|
+
const startWidth = startWidthProp ?? measuredStartSize?.width;
|
|
5064
|
+
const endWidth = endWidthProp ?? measuredEndSize?.width;
|
|
5065
5065
|
const contextValue = useMemo8(
|
|
5066
5066
|
() => ({
|
|
5067
5067
|
startWidth,
|
|
@@ -9758,6 +9758,7 @@ var TreeRow = forwardRefGeneric(function TreeRow2({
|
|
|
9758
9758
|
onClickChevron,
|
|
9759
9759
|
chevronClassName,
|
|
9760
9760
|
chevronAs,
|
|
9761
|
+
chevronPosition = "start",
|
|
9761
9762
|
children,
|
|
9762
9763
|
...rest
|
|
9763
9764
|
}, forwardedRef) {
|
|
@@ -9771,7 +9772,7 @@ var TreeRow = forwardRefGeneric(function TreeRow2({
|
|
|
9771
9772
|
},
|
|
9772
9773
|
[stableOnClickChevron]
|
|
9773
9774
|
);
|
|
9774
|
-
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(
|
|
9775
9776
|
IconButton,
|
|
9776
9777
|
{
|
|
9777
9778
|
as: chevronAs,
|
|
@@ -9780,7 +9781,16 @@ var TreeRow = forwardRefGeneric(function TreeRow2({
|
|
|
9780
9781
|
onClick: handleClickChevron,
|
|
9781
9782
|
selected: rest.selected
|
|
9782
9783
|
}
|
|
9783
|
-
), /* @__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 }))));
|
|
9784
9794
|
});
|
|
9785
9795
|
var TreeView;
|
|
9786
9796
|
((TreeView2) => {
|
|
@@ -9843,7 +9853,10 @@ var List = memoGeneric(
|
|
|
9843
9853
|
sortableId,
|
|
9844
9854
|
sharedDragProps,
|
|
9845
9855
|
virtualized,
|
|
9846
|
-
renameSelectsBeforeDot
|
|
9856
|
+
renameSelectsBeforeDot,
|
|
9857
|
+
chevronPosition = "start",
|
|
9858
|
+
getItemStyle,
|
|
9859
|
+
getItemClassName
|
|
9847
9860
|
} = props;
|
|
9848
9861
|
const [internalHoveredId, setHoveredId] = useState25();
|
|
9849
9862
|
const [internalRenamingId, setRenamingId] = useState25();
|
|
@@ -9973,6 +9986,8 @@ var List = memoGeneric(
|
|
|
9973
9986
|
below
|
|
9974
9987
|
);
|
|
9975
9988
|
}
|
|
9989
|
+
const perItemStyle = getItemStyle?.(item, isSelected);
|
|
9990
|
+
const perItemClassName = getItemClassName?.(item, isSelected);
|
|
9976
9991
|
return /* @__PURE__ */ React60.createElement(
|
|
9977
9992
|
ViewComponent.Row,
|
|
9978
9993
|
{
|
|
@@ -9985,11 +10000,14 @@ var List = memoGeneric(
|
|
|
9985
10000
|
"aria-roledescription": itemRoleDescription,
|
|
9986
10001
|
"aria-label": getName(item),
|
|
9987
10002
|
"aria-selected": isSelected,
|
|
9988
|
-
className: itemClassName,
|
|
10003
|
+
className: cx(itemClassName, perItemClassName),
|
|
9989
10004
|
testRelativeDropPosition: testShowDropIndicatorId === id ? "inside" : void 0,
|
|
9990
|
-
chevronClassName: cx(
|
|
10005
|
+
chevronClassName: cx(
|
|
10006
|
+
expandable && chevronPosition !== "end" && "n-relative n-left-2"
|
|
10007
|
+
),
|
|
9991
10008
|
chevronAs: href ? "div" : void 0,
|
|
9992
|
-
|
|
10009
|
+
...expandable ? { chevronPosition } : {},
|
|
10010
|
+
style: perItemStyle ? { ...itemStyle, ...perItemStyle } : itemStyle,
|
|
9993
10011
|
hovered: isHovered,
|
|
9994
10012
|
selected: isSelected,
|
|
9995
10013
|
expanded,
|
|
@@ -16686,29 +16704,51 @@ var Stepper = memo34(function Stepper2({
|
|
|
16686
16704
|
onBlur
|
|
16687
16705
|
},
|
|
16688
16706
|
/* @__PURE__ */ React99.createElement(
|
|
16689
|
-
|
|
16690
|
-
{
|
|
16691
|
-
icon: "MinusIcon",
|
|
16692
|
-
disabled: readOnly,
|
|
16693
|
-
onClick: () => handleValueChange(value - step)
|
|
16694
|
-
}
|
|
16695
|
-
),
|
|
16696
|
-
/* @__PURE__ */ React99.createElement(InputField2.Root, { className: "n-flex-1" }, /* @__PURE__ */ React99.createElement(
|
|
16697
|
-
InputField2.NumberInput,
|
|
16698
|
-
{
|
|
16699
|
-
value,
|
|
16700
|
-
onChange: handleValueChange,
|
|
16701
|
-
onNudge: (amount) => handleValueChange(value + amount),
|
|
16702
|
-
readOnly
|
|
16703
|
-
}
|
|
16704
|
-
)),
|
|
16705
|
-
/* @__PURE__ */ React99.createElement(
|
|
16706
|
-
Button,
|
|
16707
|
+
InputField2.Root,
|
|
16707
16708
|
{
|
|
16708
|
-
|
|
16709
|
-
|
|
16710
|
-
|
|
16711
|
-
|
|
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
|
+
)
|
|
16712
16752
|
)
|
|
16713
16753
|
);
|
|
16714
16754
|
});
|
|
@@ -17205,7 +17245,7 @@ var VerticalTabMenu = memoGeneric(function VerticalTabMenu2({
|
|
|
17205
17245
|
return /* @__PURE__ */ React105.createElement(
|
|
17206
17246
|
"div",
|
|
17207
17247
|
{
|
|
17208
|
-
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",
|
|
17209
17249
|
style: style2
|
|
17210
17250
|
},
|
|
17211
17251
|
/* @__PURE__ */ React105.createElement(
|