@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.
@@ -5,13 +5,13 @@
5
5
  CLI Target: esnext
6
6
  CJS Build start
7
7
  ESM Build start
8
- CJS dist/index.js 231.53 KB
9
- CJS dist/index.js.map 466.05 KB
10
- CJS ⚡️ Build success in 229ms
11
- ESM dist/index.mjs 213.24 KB
12
- ESM dist/index.mjs.map 466.16 KB
13
- ESM ⚡️ Build success in 237ms
8
+ CJS dist/index.js 231.87 KB
9
+ CJS dist/index.js.map 466.94 KB
10
+ CJS ⚡️ Build success in 168ms
11
+ ESM dist/index.mjs 213.59 KB
12
+ ESM dist/index.mjs.map 467.05 KB
13
+ ESM ⚡️ Build success in 170ms
14
14
  DTS Build start
15
- DTS ⚡️ Build success in 10433ms
16
- DTS dist/index.d.ts 61.38 KB
17
- DTS dist/index.d.mts 61.38 KB
15
+ DTS ⚡️ Build success in 10431ms
16
+ DTS dist/index.d.ts 61.61 KB
17
+ DTS dist/index.d.mts 61.61 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @noya-app/noya-designsystem
2
2
 
3
+ ## 0.1.23
4
+
5
+ ### Patch Changes
6
+
7
+ - 61cb70a: Add tree editor
8
+
3
9
  ## 0.1.22
4
10
 
5
11
  ### Patch Changes
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" : "8px",
389
+ paddingRight: $variant === "none" ? "0px" : $variant === "thin" ? "1px" : "6px",
390
390
  paddingBottom: $variant === "none" ? "0px" : "4px",
391
- paddingLeft: $variant === "none" ? "0px" : $variant === "thin" ? "1px" : "8px",
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(RootContainer, { id, $width: width, $flex: flex }, children);
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: "8px",
6004
+ paddingLeft: "6px",
5987
6005
  paddingRight: "23px",
5988
6006
  background: [
5989
6007
  `calc(100% - 6px) / 15px url("data:image/svg+xml;utf8,${createChevronSVGString(