@superblocksteam/library 2.0.0-next.7 → 2.0.0-next.71

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.
Files changed (75) hide show
  1. package/dist/{allPaths-B09LcN7N.js → allPaths-C6OJ6mru.js} +2 -2
  2. package/dist/{allPaths-B09LcN7N.js.map → allPaths-C6OJ6mru.js.map} +1 -1
  3. package/dist/{allPaths-CQi6Mi9n.js → allPaths-gAit3yMA.js} +2 -2
  4. package/dist/{allPaths-CQi6Mi9n.js.map → allPaths-gAit3yMA.js.map} +1 -1
  5. package/dist/{allPathsLoader-DTMdKBA7.js → allPathsLoader-BJfnsyfx.js} +3 -3
  6. package/dist/{allPathsLoader-M6yIb9T6.js.map → allPathsLoader-BJfnsyfx.js.map} +1 -1
  7. package/dist/{allPathsLoader-M6yIb9T6.js → allPathsLoader-Bjuqgh93.js} +3 -3
  8. package/dist/{allPathsLoader-DTMdKBA7.js.map → allPathsLoader-Bjuqgh93.js.map} +1 -1
  9. package/dist/{index-B1VgfVEK.js → index-B2rMu95r.js} +15471 -14610
  10. package/dist/{index-B1VgfVEK.js.map → index-B2rMu95r.js.map} +1 -1
  11. package/dist/index.js +2 -2
  12. package/dist/{splitPathsBySizeLoader-Cgf9KLYl.js → splitPathsBySizeLoader-DJBHYgBR.js} +2 -2
  13. package/dist/{splitPathsBySizeLoader-Cgf9KLYl.js.map → splitPathsBySizeLoader-DJBHYgBR.js.map} +1 -1
  14. package/dist/{splitPathsBySizeLoader-zdAfZhWx.js → splitPathsBySizeLoader-bQPBH87C.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-zdAfZhWx.js.map → splitPathsBySizeLoader-bQPBH87C.js.map} +1 -1
  16. package/dist-types/edit-mode/default-table-data.d.ts +64 -0
  17. package/dist-types/edit-mode/dnd/utils.d.ts +8 -1
  18. package/dist-types/edit-mode/features/operation-store.d.ts +4 -0
  19. package/dist-types/edit-mode/source-update-api.d.ts +2 -1
  20. package/dist-types/lib/internal-details/identifier-normalizer.d.ts +0 -1
  21. package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +5 -4
  22. package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +2 -1
  23. package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +8 -0
  24. package/dist-types/lib/internal-details/lib/types.d.ts +3 -0
  25. package/dist-types/lib/internal-details/scope/global.d.ts +1 -0
  26. package/dist-types/lib/user-facing/component-base/components/button.d.ts +1 -2
  27. package/dist-types/lib/user-facing/component-base/styles/button-styles.d.ts +3 -11
  28. package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +11 -8
  29. package/dist-types/lib/user-facing/components/button/props.d.ts +2 -8
  30. package/dist-types/lib/user-facing/components/column/index.d.ts +8 -21
  31. package/dist-types/lib/user-facing/components/column/props.d.ts +8 -20
  32. package/dist-types/lib/user-facing/components/container/index.d.ts +8 -22
  33. package/dist-types/lib/user-facing/components/container/props.d.ts +7 -22
  34. package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +3 -3
  35. package/dist-types/lib/user-facing/components/date-picker/index.d.ts +1 -1
  36. package/dist-types/lib/user-facing/components/date-picker/props.d.ts +1 -1
  37. package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +1 -1
  38. package/dist-types/lib/user-facing/components/dropdown/index.d.ts +2 -2
  39. package/dist-types/lib/user-facing/components/dropdown/props.d.ts +2 -2
  40. package/dist-types/lib/user-facing/components/dropdown/types.d.ts +1 -1
  41. package/dist-types/lib/user-facing/components/grid/index.d.ts +8 -8
  42. package/dist-types/lib/user-facing/components/image/index.d.ts +1 -1
  43. package/dist-types/lib/user-facing/components/image/props.d.ts +1 -1
  44. package/dist-types/lib/user-facing/components/input/index.d.ts +9 -15
  45. package/dist-types/lib/user-facing/components/input/props.d.ts +10 -15
  46. package/dist-types/lib/user-facing/components/modal/index.d.ts +8 -13
  47. package/dist-types/lib/user-facing/components/modal/modal-component.d.ts +1 -1
  48. package/dist-types/lib/user-facing/components/modal/props.d.ts +8 -13
  49. package/dist-types/lib/user-facing/components/pixel-input/index.d.ts +7 -0
  50. package/dist-types/lib/user-facing/components/section/index.d.ts +2 -2
  51. package/dist-types/lib/user-facing/components/section/props.d.ts +2 -2
  52. package/dist-types/lib/user-facing/components/stack/index.d.ts +2 -2
  53. package/dist-types/lib/user-facing/components/switch/index.d.ts +1 -1
  54. package/dist-types/lib/user-facing/components/switch/props.d.ts +1 -1
  55. package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +50 -45
  56. package/dist-types/lib/user-facing/components/table/components/boolean-value-icons.d.ts +5 -5
  57. package/dist-types/lib/user-facing/components/table/components/table-data-download.d.ts +2 -2
  58. package/dist-types/lib/user-facing/components/table/components/table-footer.d.ts +4 -4
  59. package/dist-types/lib/user-facing/components/table/components/table-pagination.d.ts +3 -3
  60. package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +0 -1
  61. package/dist-types/lib/user-facing/components/table/index.d.ts +60 -56
  62. package/dist-types/lib/user-facing/components/table/props.d.ts +61 -58
  63. package/dist-types/lib/user-facing/components/table/table-component.d.ts +3 -3
  64. package/dist-types/lib/user-facing/components/table/table-styles.d.ts +0 -1
  65. package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +7 -8
  66. package/dist-types/lib/user-facing/components/table/table-widget.d.ts +1 -1
  67. package/dist-types/lib/user-facing/components/table/types.d.ts +19 -30
  68. package/dist-types/lib/user-facing/components/text/index.d.ts +4 -4
  69. package/dist-types/lib/user-facing/components/text/props.d.ts +4 -4
  70. package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +4 -8
  71. package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +3 -3
  72. package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +15 -14
  73. package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +2 -1
  74. package/dist-types/lib/user-facing/themes/constants.d.ts +2 -0
  75. package/package.json +4 -3
@@ -40,6 +40,9 @@ export declare const size: ({ defaults, defaultsOnAdd, hasMinWidth, hasMaxWidth,
40
40
  width: Prop<Dim<DimModes>, false>;
41
41
  height: Prop<Dim<DimModes>, false>;
42
42
  };
43
+ export declare const widthWithoutFit: () => {
44
+ width: Prop<Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
45
+ };
43
46
  export declare const shouldScrollContents: (defaultValue?: boolean) => {
44
47
  shouldScrollContents: Prop<boolean, true>;
45
48
  };
@@ -52,7 +55,7 @@ export declare const spacing: (options?: {
52
55
  spacing: Prop<Dim<"px">, true>;
53
56
  };
54
57
  export declare const padding: (options?: {
55
- default?: Padding;
58
+ default?: Padding | ((this: any) => Padding);
56
59
  } & Partial<PropertiesPanelDisplay<Padding, "PADDING_CONTROL">>) => {
57
60
  padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
58
61
  };
@@ -63,14 +66,9 @@ export declare const getAlignmentProps: <LayoutType extends "vertical" | "horizo
63
66
  verticalAlign: Prop<VerticalAlignment<LayoutType>, true>;
64
67
  horizontalAlign: Prop<HorizontalAlignment<LayoutType>, true>;
65
68
  };
66
- export declare const containerLayout: () => import("../props-builder.js").UnionProp<{
69
+ export declare const containerLayout: (sizeProps?: Record<string, Prop<any, any>>) => import("../props-builder.js").UnionProp<{
67
70
  layout: Prop<ContainerLayout, true>;
68
71
  }, [{
69
- readonly layout: Prop<"freeform", true>;
70
- readonly columns: Prop<number, true>;
71
- readonly rows: Prop<number, false>;
72
- readonly rowSize: Prop<number, false>;
73
- }, {
74
72
  readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
75
73
  readonly horizontalAlign: Prop<"center" | "left" | "right", true>;
76
74
  readonly layout: Prop<"vertical", true>;
@@ -78,14 +76,11 @@ export declare const containerLayout: () => import("../props-builder.js").UnionP
78
76
  readonly verticalAlign: Prop<"center" | "bottom" | "top", true>;
79
77
  readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
80
78
  readonly layout: Prop<"horizontal", true>;
81
- }], ({
82
- layout: Prop<ContainerLayout, true>;
83
- } & {
84
- readonly layout: Prop<"freeform", true>;
79
+ }, {
85
80
  readonly columns: Prop<number, true>;
86
- readonly rows: Prop<number, false>;
87
- readonly rowSize: Prop<number, false>;
88
- }) | ({
81
+ readonly rowHeight: Prop<Dim<"px">, true>;
82
+ readonly layout: Prop<"freeform", true>;
83
+ }], ({
89
84
  layout: Prop<ContainerLayout, true>;
90
85
  } & {
91
86
  readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
@@ -97,6 +92,12 @@ export declare const containerLayout: () => import("../props-builder.js").UnionP
97
92
  readonly verticalAlign: Prop<"center" | "bottom" | "top", true>;
98
93
  readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
99
94
  readonly layout: Prop<"horizontal", true>;
95
+ }) | ({
96
+ layout: Prop<ContainerLayout, true>;
97
+ } & {
98
+ readonly columns: Prop<number, true>;
99
+ readonly rowHeight: Prop<Dim<"px">, true>;
100
+ readonly layout: Prop<"freeform", true>;
100
101
  })>;
101
102
  export declare const basicLayout: () => Section<Record<string, Prop<any, any>> & {
102
103
  maxHeight?: Prop<Dim<DimModes>, false> | undefined;
@@ -131,7 +131,7 @@ declare class Section<T extends Record<string, Prop<any, any>> = Record<string,
131
131
  }[number] : never : INP>(props: INP): Section<T & OUT>;
132
132
  add: <INP extends Record<string, Prop<any, any>> | CompositeProp<any> | UnionProp<any, any>, OUT extends INP extends CompositeProp<infer CU> ? CU : INP extends UnionProp<infer SHARED, infer VARIANTS> ? VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: MergeUnionVariant<SHARED, VARIANTS[I]>; }[number] : never : INP>(props: INP) => Section<T & OUT>;
133
133
  propertiesPanel(config: Omit<SectionDefinition<any>, "props">): this;
134
- get name(): "Content" | "Routing" | "Interaction" | "Layout" | "Appearance" | "Permissions" | "Event handlers" | "Uncategorized";
134
+ get name(): "Content" | "Routing" | "Interaction" | "Layout" | "Appearance" | "Permissions" | "Uncategorized" | "Event handlers";
135
135
  }
136
136
  declare class Prop<Type extends DataType, _HasDefault extends boolean = false> {
137
137
  protected prop: ManagedProp<Type>;
@@ -141,6 +141,7 @@ declare class Prop<Type extends DataType, _HasDefault extends boolean = false> {
141
141
  */
142
142
  protected relations: Relation[][];
143
143
  protected constructor(typeString: DataTypeString, defaultValidator?: ValidateFn<Type | undefined>);
144
+ static unset(): Prop<undefined>;
144
145
  static string<T extends string>(): Prop<T>;
145
146
  static number<T extends number>(): Prop<T>;
146
147
  static boolean<T extends boolean>(): Prop<T>;
@@ -5,6 +5,7 @@ export declare const LIGHT_APP_BG: "#F9FAFB";
5
5
  export declare const DARK_APP_BG = "#131516";
6
6
  export declare const noBorder: (theme: UserAccessibleTheme) => Border;
7
7
  export declare const noBorderOject: (theme: UserAccessibleTheme) => PerSideBorder;
8
+ export declare const onePixelTransparentBorderObject: () => PerSideBorder;
8
9
  export declare const EMPTY_RADIUS: PerCornerBorderRadius;
9
10
  export declare const DEFAULT_SYSTEM_RADIUS: PerCornerBorderRadius;
10
11
  export declare const defaultContainerBorderObject: (theme: UserAccessibleTheme) => PerSideBorder;
@@ -77,4 +78,5 @@ export declare const KEY_VALUE_PADDING: {
77
78
  bottom: Dim<"px">;
78
79
  };
79
80
  export declare const KEY_VALUE_SPACING: Dim<"px">;
81
+ export declare const DEFAULT_GRID_ROW_SIZE = 12;
80
82
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/library",
3
- "version": "2.0.0-next.7",
3
+ "version": "2.0.0-next.71",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -26,14 +26,15 @@
26
26
  "@dnd-kit/modifiers": "^9.0.0",
27
27
  "@mobx-devtools/tools": "^0.0.4",
28
28
  "@oddbird/css-anchor-positioning": "^0.4.0",
29
+ "@opentelemetry/api": "^1.9.0",
29
30
  "@popperjs/core": "^2.11.7",
30
31
  "@radix-ui/colors": "^3.0.0",
31
32
  "@radix-ui/react-context-menu": "^2.2.2",
32
33
  "@react-hook/resize-observer": "1.2.6",
33
34
  "@superblocksteam/fast-deep-equal": "3.1.4",
34
35
  "@superblocksteam/iso-currency": "2.0.0",
35
- "@superblocksteam/library-shared": "2.0.0-next.7",
36
- "@superblocksteam/shared": "0.9122.0",
36
+ "@superblocksteam/library-shared": "2.0.0-next.71",
37
+ "@superblocksteam/shared": "0.9146.0",
37
38
  "antd": "4.24.15",
38
39
  "apca-w3": "^0.1.9",
39
40
  "clsx": "^2.1.1",