@noya-app/noya-designsystem 0.1.22 → 0.1.23
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 +9 -9
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +25 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Button.tsx +2 -2
- package/src/components/InputField.tsx +11 -1
- package/src/components/ListView.tsx +18 -1
- package/src/components/Select.tsx +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
[34mCLI[39m Target: esnext
|
|
6
6
|
[34mCJS[39m Build start
|
|
7
7
|
[34mESM[39m Build start
|
|
8
|
-
[32mCJS[39m [1mdist/index.js [22m[32m231.
|
|
9
|
-
[32mCJS[39m [1mdist/index.js.map [22m[32m466.
|
|
10
|
-
[32mCJS[39m ⚡️ Build success in
|
|
11
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m213.
|
|
12
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[
|
|
13
|
-
[32mESM[39m ⚡️ Build success in
|
|
8
|
+
[32mCJS[39m [1mdist/index.js [22m[32m231.87 KB[39m
|
|
9
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m466.94 KB[39m
|
|
10
|
+
[32mCJS[39m ⚡️ Build success in 168ms
|
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m213.59 KB[39m
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m467.05 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 170ms
|
|
14
14
|
[34mDTS[39m Build start
|
|
15
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m61.
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m61.
|
|
15
|
+
[32mDTS[39m ⚡️ Build success in 10431ms
|
|
16
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m61.61 KB[39m
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m61.61 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -518,6 +518,8 @@ interface InputFieldRootProps {
|
|
|
518
518
|
width: number;
|
|
519
519
|
}) => ReactNode;
|
|
520
520
|
onFocusChange?: (isFocused: boolean) => void;
|
|
521
|
+
style?: React__default.CSSProperties;
|
|
522
|
+
className?: string;
|
|
521
523
|
}
|
|
522
524
|
declare namespace InputField {
|
|
523
525
|
const Root: (props: InputFieldRootProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
@@ -656,6 +658,11 @@ interface ListViewRowProps<MenuItemType extends string = string> {
|
|
|
656
658
|
onMenuOpenChange?: (isOpen: boolean) => void;
|
|
657
659
|
onKeyDown?: (event: React__default.KeyboardEvent) => void;
|
|
658
660
|
style?: CSSProperties;
|
|
661
|
+
dragIndicatorStyle?: CSSProperties | ((props: {
|
|
662
|
+
depth: number;
|
|
663
|
+
indentation: number;
|
|
664
|
+
position: RelativeDropPosition;
|
|
665
|
+
}) => CSSProperties);
|
|
659
666
|
}
|
|
660
667
|
interface IVirtualizedList {
|
|
661
668
|
scrollToIndex(index: number): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -518,6 +518,8 @@ interface InputFieldRootProps {
|
|
|
518
518
|
width: number;
|
|
519
519
|
}) => ReactNode;
|
|
520
520
|
onFocusChange?: (isFocused: boolean) => void;
|
|
521
|
+
style?: React__default.CSSProperties;
|
|
522
|
+
className?: string;
|
|
521
523
|
}
|
|
522
524
|
declare namespace InputField {
|
|
523
525
|
const Root: (props: InputFieldRootProps) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
@@ -656,6 +658,11 @@ interface ListViewRowProps<MenuItemType extends string = string> {
|
|
|
656
658
|
onMenuOpenChange?: (isOpen: boolean) => void;
|
|
657
659
|
onKeyDown?: (event: React__default.KeyboardEvent) => void;
|
|
658
660
|
style?: CSSProperties;
|
|
661
|
+
dragIndicatorStyle?: CSSProperties | ((props: {
|
|
662
|
+
depth: number;
|
|
663
|
+
indentation: number;
|
|
664
|
+
position: RelativeDropPosition;
|
|
665
|
+
}) => CSSProperties);
|
|
659
666
|
}
|
|
660
667
|
interface IVirtualizedList {
|
|
661
668
|
scrollToIndex(index: number): void;
|
package/dist/index.js
CHANGED
|
@@ -386,9 +386,9 @@ var ButtonElement = import_styled_components5.default.button(
|
|
|
386
386
|
textAlign: "left",
|
|
387
387
|
borderRadius: "4px",
|
|
388
388
|
paddingTop: $variant === "none" ? "0px" : "4px",
|
|
389
|
-
paddingRight: $variant === "none" ? "0px" : $variant === "thin" ? "1px" : "
|
|
389
|
+
paddingRight: $variant === "none" ? "0px" : $variant === "thin" ? "1px" : "6px",
|
|
390
390
|
paddingBottom: $variant === "none" ? "0px" : "4px",
|
|
391
|
-
paddingLeft: $variant === "none" ? "0px" : $variant === "thin" ? "1px" : "
|
|
391
|
+
paddingLeft: $variant === "none" ? "0px" : $variant === "thin" ? "1px" : "6px",
|
|
392
392
|
...$size === "large" && {
|
|
393
393
|
paddingTop: "12px",
|
|
394
394
|
paddingRight: "16px",
|
|
@@ -2210,7 +2210,9 @@ function InputFieldRoot({
|
|
|
2210
2210
|
labelSize,
|
|
2211
2211
|
size: size2 = "medium",
|
|
2212
2212
|
renderPopoverContent,
|
|
2213
|
-
onFocusChange
|
|
2213
|
+
onFocusChange,
|
|
2214
|
+
style: style3,
|
|
2215
|
+
className
|
|
2214
2216
|
}) {
|
|
2215
2217
|
const childrenArray = import_react32.Children.toArray(children);
|
|
2216
2218
|
const hasDropdown = childrenArray.some(
|
|
@@ -2262,7 +2264,17 @@ function InputFieldRoot({
|
|
|
2262
2264
|
inputRef
|
|
2263
2265
|
]
|
|
2264
2266
|
);
|
|
2265
|
-
const rootElement = /* @__PURE__ */ import_react32.default.createElement(
|
|
2267
|
+
const rootElement = /* @__PURE__ */ import_react32.default.createElement(
|
|
2268
|
+
RootContainer,
|
|
2269
|
+
{
|
|
2270
|
+
id,
|
|
2271
|
+
$width: width,
|
|
2272
|
+
$flex: flex,
|
|
2273
|
+
style: style3,
|
|
2274
|
+
className
|
|
2275
|
+
},
|
|
2276
|
+
children
|
|
2277
|
+
);
|
|
2266
2278
|
return /* @__PURE__ */ import_react32.default.createElement(InputFieldContext.Provider, { value: contextValue }, renderPopoverContent ? /* @__PURE__ */ import_react32.default.createElement(
|
|
2267
2279
|
Popover,
|
|
2268
2280
|
{
|
|
@@ -4741,7 +4753,8 @@ var ListViewRow = (0, import_react49.forwardRef)(function ListViewRow2({
|
|
|
4741
4753
|
onSelectMenuItem,
|
|
4742
4754
|
onMenuOpenChange,
|
|
4743
4755
|
onKeyDown,
|
|
4744
|
-
style: style3
|
|
4756
|
+
style: style3,
|
|
4757
|
+
dragIndicatorStyle
|
|
4745
4758
|
}, forwardedRef) {
|
|
4746
4759
|
depth = Math.max(0, depth);
|
|
4747
4760
|
const {
|
|
@@ -4825,7 +4838,12 @@ var ListViewRow = (0, import_react49.forwardRef)(function ListViewRow2({
|
|
|
4825
4838
|
$colorScheme: colorScheme,
|
|
4826
4839
|
$relativeDropPosition: relativeDropPosition,
|
|
4827
4840
|
$offsetLeft: 33 + depth * indentation,
|
|
4828
|
-
$gap: listGap
|
|
4841
|
+
$gap: listGap + (divider ? 1 : 0),
|
|
4842
|
+
style: typeof dragIndicatorStyle === "function" ? dragIndicatorStyle({
|
|
4843
|
+
depth,
|
|
4844
|
+
indentation,
|
|
4845
|
+
position: relativeDropPosition
|
|
4846
|
+
}) : dragIndicatorStyle
|
|
4829
4847
|
}
|
|
4830
4848
|
),
|
|
4831
4849
|
depth > 0 && /* @__PURE__ */ import_react49.default.createElement(Spacer.Horizontal, { size: depth * indentation }),
|
|
@@ -5983,7 +6001,7 @@ var SelectElement = import_styled_components32.default.select(
|
|
|
5983
6001
|
borderRadius: "4px",
|
|
5984
6002
|
paddingTop: "4px",
|
|
5985
6003
|
paddingBottom: "4px",
|
|
5986
|
-
paddingLeft: "
|
|
6004
|
+
paddingLeft: "6px",
|
|
5987
6005
|
paddingRight: "23px",
|
|
5988
6006
|
background: [
|
|
5989
6007
|
`calc(100% - 6px) / 15px url("data:image/svg+xml;utf8,${createChevronSVGString(
|