@superblocksteam/library 2.0.0-next.10 → 2.0.0-next.100

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 (108) hide show
  1. package/dist/{allPaths-h7bsheRo.js → allPaths-CcZmxiOk.js} +2 -2
  2. package/dist/{allPaths-h7bsheRo.js.map → allPaths-CcZmxiOk.js.map} +1 -1
  3. package/dist/{allPaths-DXE_RTrt.js → allPaths-D2hMUe-Q.js} +2 -2
  4. package/dist/{allPaths-DXE_RTrt.js.map → allPaths-D2hMUe-Q.js.map} +1 -1
  5. package/dist/{allPathsLoader-16QM90xQ.js → allPathsLoader-BGIPBdhf.js} +3 -3
  6. package/dist/{allPathsLoader-BWX35Jie.js.map → allPathsLoader-BGIPBdhf.js.map} +1 -1
  7. package/dist/{allPathsLoader-BWX35Jie.js → allPathsLoader-CPzLM5jS.js} +3 -3
  8. package/dist/{allPathsLoader-16QM90xQ.js.map → allPathsLoader-CPzLM5jS.js.map} +1 -1
  9. package/dist/{index-tdErpvtu.js → index-jWufYPVw.js} +27083 -20354
  10. package/dist/{index-tdErpvtu.js.map → index-jWufYPVw.js.map} +1 -1
  11. package/dist/index.js +2 -2
  12. package/dist/{splitPathsBySizeLoader-7yhv4gcq.js → splitPathsBySizeLoader-B1uNPKcc.js} +2 -2
  13. package/dist/{splitPathsBySizeLoader-7yhv4gcq.js.map → splitPathsBySizeLoader-B1uNPKcc.js.map} +1 -1
  14. package/dist/{splitPathsBySizeLoader-wQWCogRx.js → splitPathsBySizeLoader-BbdcQ6go.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-wQWCogRx.js.map → splitPathsBySizeLoader-BbdcQ6go.js.map} +1 -1
  16. package/dist-types/edit-mode/default-table-data.d.ts +71 -0
  17. package/dist-types/edit-mode/dnd/grid-store.d.ts +29 -4
  18. package/dist-types/edit-mode/dnd/utils.d.ts +7 -10
  19. package/dist-types/edit-mode/features/connection-manager.d.ts +1 -2
  20. package/dist-types/edit-mode/features/properties-panel-manager.d.ts +2 -1
  21. package/dist-types/edit-mode/features/resizing-store.d.ts +1 -0
  22. package/dist-types/edit-mode/right-click-menu/right-click-menu.d.ts +2 -1
  23. package/dist-types/edit-mode/source-update-api.d.ts +3 -20
  24. package/dist-types/internal-testing/components/form.d.ts +1 -0
  25. package/dist-types/lib/internal-details/identifier-normalizer.d.ts +0 -1
  26. package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +8 -5
  27. package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +2 -1
  28. package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +13 -1
  29. package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.d.ts +1 -1
  30. package/dist-types/lib/internal-details/lib/features/api-store.d.ts +1 -0
  31. package/dist-types/lib/internal-details/lib/features/api-utils.d.ts +0 -1
  32. package/dist-types/lib/internal-details/lib/types.d.ts +3 -0
  33. package/dist-types/lib/internal-details/scope/global.d.ts +1 -0
  34. package/dist-types/lib/user-facing/component-base/components/button.d.ts +3 -4
  35. package/dist-types/lib/user-facing/component-base/components/video.d.ts +19 -0
  36. package/dist-types/lib/user-facing/component-base/styles/button-styles.d.ts +3 -11
  37. package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +11 -8
  38. package/dist-types/lib/user-facing/components/button/index.d.ts +1 -1
  39. package/dist-types/lib/user-facing/components/button/props.d.ts +4 -10
  40. package/dist-types/lib/user-facing/components/column/index.d.ts +8 -21
  41. package/dist-types/lib/user-facing/components/column/props.d.ts +8 -20
  42. package/dist-types/lib/user-facing/components/container/index.d.ts +12 -24
  43. package/dist-types/lib/user-facing/components/container/props.d.ts +7 -22
  44. package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +3 -3
  45. package/dist-types/lib/user-facing/components/date-picker/index.d.ts +5 -1
  46. package/dist-types/lib/user-facing/components/date-picker/props.d.ts +5 -1
  47. package/dist-types/lib/user-facing/components/date-picker/types.d.ts +3 -0
  48. package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +1 -1
  49. package/dist-types/lib/user-facing/components/dropdown/dropdown-component.d.ts +1 -1
  50. package/dist-types/lib/user-facing/components/dropdown/index.d.ts +2 -2
  51. package/dist-types/lib/user-facing/components/dropdown/props.d.ts +4 -5
  52. package/dist-types/lib/user-facing/components/dropdown/types.d.ts +1 -1
  53. package/dist-types/lib/user-facing/components/grid/index.d.ts +8 -8
  54. package/dist-types/lib/user-facing/components/image/index.d.ts +1 -1
  55. package/dist-types/lib/user-facing/components/image/props.d.ts +1 -1
  56. package/dist-types/lib/user-facing/components/input/derived-properties.d.ts +1 -1
  57. package/dist-types/lib/user-facing/components/input/index.d.ts +14 -20
  58. package/dist-types/lib/user-facing/components/input/props.d.ts +15 -20
  59. package/dist-types/lib/user-facing/components/modal/index.d.ts +10 -15
  60. package/dist-types/lib/user-facing/components/modal/modal-component.d.ts +2 -2
  61. package/dist-types/lib/user-facing/components/modal/props.d.ts +10 -15
  62. package/dist-types/lib/user-facing/components/pixel-input/index.d.ts +7 -0
  63. package/dist-types/lib/user-facing/components/section/index.d.ts +2 -2
  64. package/dist-types/lib/user-facing/components/section/props.d.ts +2 -2
  65. package/dist-types/lib/user-facing/components/stack/index.d.ts +2 -2
  66. package/dist-types/lib/user-facing/components/switch/index.d.ts +1 -1
  67. package/dist-types/lib/user-facing/components/switch/props.d.ts +1 -1
  68. package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +72 -76
  69. package/dist-types/lib/user-facing/components/table/components/autotooltip-component.d.ts +2 -2
  70. package/dist-types/lib/user-facing/components/table/components/boolean-value-icons.d.ts +5 -5
  71. package/dist-types/lib/user-facing/components/table/components/edit-cell.d.ts +2 -2
  72. package/dist-types/lib/user-facing/components/table/components/edit-checkbox-cell.d.ts +2 -2
  73. package/dist-types/lib/user-facing/components/table/components/edit-date-cell.d.ts +2 -2
  74. package/dist-types/lib/user-facing/components/table/components/edit-input-cell.d.ts +2 -2
  75. package/dist-types/lib/user-facing/components/table/components/edit-multi-select-cell.d.ts +2 -2
  76. package/dist-types/lib/user-facing/components/table/components/edit-single-select-cell.d.ts +2 -2
  77. package/dist-types/lib/user-facing/components/table/components/edit-utils.d.ts +2 -2
  78. package/dist-types/lib/user-facing/components/table/components/editable-link-cell.d.ts +2 -2
  79. package/dist-types/lib/user-facing/components/table/components/popover-video.d.ts +1 -1
  80. package/dist-types/lib/user-facing/components/table/components/table-data-download.d.ts +2 -2
  81. package/dist-types/lib/user-facing/components/table/components/table-footer.d.ts +4 -4
  82. package/dist-types/lib/user-facing/components/table/components/table-header.d.ts +3 -3
  83. package/dist-types/lib/user-facing/components/table/components/table-loading-state.d.ts +3 -3
  84. package/dist-types/lib/user-facing/components/table/components/table-pagination.d.ts +3 -3
  85. package/dist-types/lib/user-facing/components/table/components/table-tag.d.ts +5 -5
  86. package/dist-types/lib/user-facing/components/table/constants.d.ts +4 -24
  87. package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +0 -1
  88. package/dist-types/lib/user-facing/components/table/index.d.ts +91 -95
  89. package/dist-types/lib/user-facing/components/table/props.d.ts +93 -98
  90. package/dist-types/lib/user-facing/components/table/table-component.d.ts +4 -4
  91. package/dist-types/lib/user-facing/components/table/table-styles.d.ts +3 -8
  92. package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +25 -20
  93. package/dist-types/lib/user-facing/components/table/table-widget.d.ts +2 -2
  94. package/dist-types/lib/user-facing/components/table/types.d.ts +47 -73
  95. package/dist-types/lib/user-facing/components/table/utils.d.ts +2 -2
  96. package/dist-types/lib/user-facing/components/text/index.d.ts +8 -7
  97. package/dist-types/lib/user-facing/components/text/props.d.ts +17 -14
  98. package/dist-types/lib/user-facing/components/text/utils.d.ts +6 -6
  99. package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +1 -0
  100. package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +4 -8
  101. package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +4 -4
  102. package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +15 -14
  103. package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +5 -4
  104. package/dist-types/lib/user-facing/properties-panel/validators.d.ts +2 -1
  105. package/dist-types/lib/user-facing/state/sb-computed.d.ts +1 -1
  106. package/dist-types/lib/user-facing/themes/constants.d.ts +4 -2
  107. package/dist-types/lib/user-facing/themes/utils.d.ts +1 -2
  108. package/package.json +5 -3
@@ -1,19 +1,20 @@
1
1
  import { Section, Prop } from "../../properties-panel/props-builder.js";
2
2
  import type { CurrencyCodeDisplayType } from "./types.js";
3
+ import type { ValidationErrors } from "../../component-base/utils/input-validation.js";
3
4
  import type { IconPosition } from "../../icons/constants.js";
4
5
  export declare const propertiesDefinition: {
5
6
  general: Section<(Record<string, Prop<any, any>> & ({
6
7
  label: Prop<string, true>;
7
8
  } & (Omit<{
8
9
  inputType: Prop<string, true>;
9
- }, "inputType" | "currency" | "numberFormatting" | "currencyCodeDisplay"> & ({
10
+ }, "inputType" | "currency" | "numberFormat" | "currencyCodeDisplay"> & ({
10
11
  inputType: Prop<string, true>;
11
- numberFormatting: Prop<"unformatted" | NonNullable<"compact" | "standard" | "scientific" | "engineering" | undefined>, true>;
12
+ numberFormat: Prop<"unformatted" | NonNullable<"compact" | "standard" | "scientific" | "engineering" | undefined>, true>;
12
13
  currency?: undefined;
13
14
  currencyCodeDisplay?: undefined;
14
15
  } | {
15
16
  inputType: Prop<string, true>;
16
- numberFormatting: Prop<"unformatted" | NonNullable<"compact" | "standard" | "scientific" | "engineering" | undefined>, true>;
17
+ numberFormat: Prop<"unformatted" | NonNullable<"compact" | "standard" | "scientific" | "engineering" | undefined>, true>;
17
18
  currency: Prop<string, true>;
18
19
  currencyCodeDisplay: Prop<CurrencyCodeDisplayType, true>;
19
20
  })))) & {
@@ -36,35 +37,29 @@ export declare const propertiesDefinition: {
36
37
  } & {
37
38
  loadingAnimation: Prop<boolean, true>;
38
39
  }>;
39
- layout: Section<(Record<string, Prop<any, any>> & {
40
+ layout: Section<Record<string, Prop<any, any>> & {
40
41
  padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
41
- } & ({
42
+ } & {
43
+ width: Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
42
44
  maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
43
45
  minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
44
46
  maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
45
47
  minWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
46
- width: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
47
48
  height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
48
- } & ({
49
+ } & {
49
50
  margin: Prop<unknown, true>;
50
- } & (Omit<{
51
- labelPosition: Prop<"left" | "top", false>;
52
- }, "labelPosition" | "labelWidth"> & ({
53
- labelPosition: Prop<"left", true>;
51
+ } & {
54
52
  labelWidth: Prop<import("@superblocksteam/library-shared").Dim, true>;
55
- } | {
56
- labelPosition: Prop<"top", true>;
57
- labelWidth?: undefined;
58
- }))))) & {
53
+ } & {
59
54
  isVisible: Prop<boolean, true>;
60
55
  }>;
61
56
  interaction: Section<Record<string, Prop<any, any>> & Omit<{
62
57
  inputType: Prop<string, false>;
63
- }, "inputType" | "minimumFractionDigits" | "maximumFractionDigits" | "stepper" | "stepSize"> & {
58
+ }, "inputType" | "stepper" | "stepSize" | "minDecimals" | "maxDecimals"> & {
64
59
  stepper: Prop<boolean, true>;
65
60
  stepSize: Prop<number, true>;
66
- minimumFractionDigits: Prop<number, true>;
67
- maximumFractionDigits: Prop<number, true>;
61
+ minDecimals: Prop<number, false>;
62
+ maxDecimals: Prop<number, false>;
68
63
  inputType: Prop<string, true>;
69
64
  } & Omit<{
70
65
  inputType: Prop<string, false>;
@@ -74,7 +69,7 @@ export declare const propertiesDefinition: {
74
69
  inputType: Prop<string, true>;
75
70
  } & {
76
71
  errorMessagePlacement: Prop<import("@superblocksteam/library-shared/props").ErrorMessagePlacement, true>;
77
- customValidationRule: Prop<string, true>;
72
+ customValidationRule: Prop<any, false>;
78
73
  customErrorMessage: Prop<string, true>;
79
74
  isDisabled: Prop<boolean, true>;
80
75
  isRequired: Prop<boolean, true>;
@@ -91,7 +86,7 @@ export declare const propertiesDefinition: {
91
86
  }>;
92
87
  derived: Section<Record<string, Prop<any, any>> & {
93
88
  value: Prop<string, true>;
94
- validationErrors: Prop<any, true>;
89
+ validationErrors: Prop<ValidationErrors, true>;
95
90
  isValid: Prop<boolean, true>;
96
91
  showError: Prop<boolean, true>;
97
92
  }>;
@@ -5,14 +5,7 @@ import type { ContainerLayout } from "../../component-base/constants.js";
5
5
  * - close all other modal when current modal is opened
6
6
  */
7
7
  export declare const SbModal: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
8
- layout: import("../../properties-panel/props-builder.js").Section<((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ((Omit<{
9
- layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
10
- }, "layout" | "rows" | "columns" | "rowSize"> & {
11
- readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
12
- readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
13
- readonly rows: import("../../properties-panel/props-builder.js").Prop<number, false>;
14
- readonly rowSize: import("../../properties-panel/props-builder.js").Prop<number, false>;
15
- }) | (Omit<{
8
+ layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ((Omit<{
16
9
  layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
17
10
  }, "layout" | "verticalAlign" | "horizontalAlign"> & {
18
11
  readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
@@ -24,20 +17,22 @@ export declare const SbModal: import("react").FC<import("../../properties-panel/
24
17
  readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
25
18
  readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
26
19
  readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
27
- }))) & {
28
- spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
29
- }) & {
30
- padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
31
- }>;
20
+ }) | (Omit<{
21
+ layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
22
+ }, "layout" | "columns" | "rowHeight"> & {
23
+ readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
24
+ readonly rowHeight: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
25
+ readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
26
+ }))>;
32
27
  appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
33
- backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
28
+ backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true>;
34
29
  border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
35
30
  borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, false>;
36
31
  hasBackdrop: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
37
32
  widthPreset: import("../../properties-panel/props-builder.js").Prop<import("./constants.js").ModalSize, true>;
38
33
  }>;
39
34
  interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
40
- canOutsideClickClose: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
35
+ closeOnClickOutside: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
41
36
  }>;
42
37
  events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
43
38
  onOpen: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
@@ -11,7 +11,7 @@ type ModalComponentProps = {
11
11
  onCancel: (e: any) => void;
12
12
  children: ReactNode;
13
13
  className?: string;
14
- canOutsideClickClose: boolean;
14
+ closeOnClickOutside: boolean;
15
15
  hasBackdrop: boolean;
16
16
  widthPreset?: ModalSize;
17
17
  heightPreset?: ModalSize;
@@ -28,7 +28,7 @@ type ModalComponentProps = {
28
28
  spacing: Dim<"px">;
29
29
  columns?: number;
30
30
  rows?: number;
31
- rowSize?: number;
31
+ rowHeight?: Dim<"px">;
32
32
  dropTargetRef?: React.RefObject<HTMLElement | null>;
33
33
  };
34
34
  /** the modal is open/close by setting isOpen to true/false
@@ -2,14 +2,7 @@ import { Prop, Section } from "../../properties-panel/props-builder.js";
2
2
  import type { ModalSize } from "./constants.js";
3
3
  import type { PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
4
4
  export declare const propertiesDefinition: {
5
- layout: Section<((Record<string, Prop<any, any>> & ((Omit<{
6
- layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
7
- }, "layout" | "rows" | "columns" | "rowSize"> & {
8
- readonly layout: Prop<"freeform", true>;
9
- readonly columns: Prop<number, true>;
10
- readonly rows: Prop<number, false>;
11
- readonly rowSize: Prop<number, false>;
12
- }) | (Omit<{
5
+ layout: Section<Record<string, Prop<any, any>> & ((Omit<{
13
6
  layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
14
7
  }, "layout" | "verticalAlign" | "horizontalAlign"> & {
15
8
  readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
@@ -21,20 +14,22 @@ export declare const propertiesDefinition: {
21
14
  readonly verticalAlign: Prop<"center" | "bottom" | "top", true>;
22
15
  readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
23
16
  readonly layout: Prop<"horizontal", true>;
24
- }))) & {
25
- spacing: Prop<import("@superblocksteam/library-shared").Dim<"px">, true>;
26
- }) & {
27
- padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
28
- }>;
17
+ }) | (Omit<{
18
+ layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
19
+ }, "layout" | "columns" | "rowHeight"> & {
20
+ readonly columns: Prop<number, true>;
21
+ readonly rowHeight: Prop<import("@superblocksteam/library-shared").Dim<"px">, true>;
22
+ readonly layout: Prop<"freeform", true>;
23
+ }))>;
29
24
  appearance: Section<Record<string, Prop<any, any>> & {
30
- backgroundColor: Prop<string, false>;
25
+ backgroundColor: Prop<string, true>;
31
26
  border: Prop<PerSideBorder, false>;
32
27
  borderRadius: Prop<PerCornerBorderRadius, false>;
33
28
  hasBackdrop: Prop<boolean, true>;
34
29
  widthPreset: Prop<ModalSize, true>;
35
30
  }>;
36
31
  interaction: Section<Record<string, Prop<any, any>> & {
37
- canOutsideClickClose: Prop<boolean, true>;
32
+ closeOnClickOutside: Prop<boolean, true>;
38
33
  }>;
39
34
  events: Section<Record<string, Prop<any, any>> & {
40
35
  onOpen: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
@@ -0,0 +1,7 @@
1
+ import type { InputNumberProps } from "antd";
2
+ export interface PixelInputProps extends InputNumberProps<number> {
3
+ showResetToDefault?: boolean;
4
+ dataTest?: string;
5
+ unit?: string;
6
+ }
7
+ export declare const PixelInput: (props: PixelInputProps) => import("react").JSX.Element;
@@ -17,7 +17,7 @@ export declare const SbSection: import("react").FC<import("../../properties-pane
17
17
  isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
18
18
  }>;
19
19
  appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
20
- backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
21
- border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
20
+ backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true>;
21
+ border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
22
22
  }>;
23
23
  }>>;
@@ -20,7 +20,7 @@ export declare const propertiesDefinition: {
20
20
  isVisible: Prop<boolean, true>;
21
21
  }>;
22
22
  appearance: Section<Record<string, Prop<any, any>> & {
23
- backgroundColor: Prop<string, false>;
24
- border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
23
+ backgroundColor: Prop<string, true>;
24
+ border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
25
25
  }>;
26
26
  };
@@ -21,7 +21,7 @@ declare const _propertiesDefinitionVStack: {
21
21
  }>;
22
22
  appearance: Section<Record<string, Prop<any, any>> & {
23
23
  backgroundColor: Prop<string, false>;
24
- border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
24
+ border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
25
25
  borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
26
26
  }>;
27
27
  };
@@ -43,7 +43,7 @@ declare const _propertiesDefinitionHStack: {
43
43
  }>;
44
44
  appearance: Section<Record<string, Prop<any, any>> & {
45
45
  backgroundColor: Prop<string, false>;
46
- border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
46
+ border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
47
47
  borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
48
48
  }>;
49
49
  };
@@ -35,7 +35,7 @@ export declare const SbSwitch: import("react").FC<import("../../properties-panel
35
35
  isChecked: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
36
36
  }>;
37
37
  derived: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
38
- value: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
38
+ isToggledOn: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
39
39
  validationErrors: import("../../properties-panel/props-builder.js").Prop<any, true>;
40
40
  isValid: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
41
41
  showError: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
@@ -36,7 +36,7 @@ export declare const propertiesDefinition: {
36
36
  isChecked: Prop<boolean, true>;
37
37
  }>;
38
38
  derived: Section<Record<string, Prop<any, any>> & {
39
- value: Prop<boolean, true>;
39
+ isToggledOn: Prop<boolean, true>;
40
40
  validationErrors: Prop<any, true>;
41
41
  isValid: Prop<boolean, true>;
42
42
  showError: Prop<boolean, true>;
@@ -1,6 +1,5 @@
1
- import { Dim } from "@superblocksteam/library-shared";
2
1
  import { Section, Prop } from "../../properties-panel/props-builder.js";
3
- import { BooleanStyleFalse, ColumnType, ImageSize } from "./types.js";
2
+ import { type BooleanStyleFalse, ColumnType, ImageSize } from "./types.js";
4
3
  import type { IconPosition } from "../../icons/constants.js";
5
4
  import type { ButtonVariant } from "../button/props.js";
6
5
  export declare const columnPanelConfig: {
@@ -9,57 +8,50 @@ export declare const columnPanelConfig: {
9
8
  } & (Omit<{
10
9
  columnType: Prop<ColumnType, true>;
11
10
  }, "columnType"> & ({
12
- computedValue: Prop<string, false>;
11
+ displayedValue: Prop<string, false>;
12
+ columnType: Prop<undefined, false>;
13
+ } | {
13
14
  displayedValue: Prop<string, false>;
14
15
  columnType: Prop<"text", true>;
15
16
  } | {
16
- computedValue: Prop<string, false>;
17
17
  notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
18
18
  minimumFractionDigits: Prop<number, false>;
19
19
  maximumFractionDigits: Prop<number, false>;
20
20
  columnType: Prop<"number", true>;
21
21
  } | {
22
- computedValue: Prop<string, false>;
23
22
  notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
24
23
  minimumFractionDigits: Prop<number, false>;
25
24
  maximumFractionDigits: Prop<number, false>;
26
- currency: Prop<string, false>;
25
+ currency: Prop<string, true>;
27
26
  columnType: Prop<"currency", true>;
28
27
  } | {
29
- computedValue: Prop<string, false>;
30
28
  minimumFractionDigits: Prop<number, false>;
31
29
  maximumFractionDigits: Prop<number, false>;
32
30
  columnType: Prop<"percentage", true>;
33
31
  } | {
34
- openImageUrl: Prop<boolean, false>;
32
+ openImageUrl: Prop<boolean, true>;
35
33
  columnType: Prop<"image", true>;
36
34
  } | {
37
- computedValue: Prop<string, false>;
38
35
  columnType: Prop<"video", true>;
39
36
  } | {
40
- valueFormat: Prop<string, false>;
41
- displayFormat: Prop<string, false>;
37
+ inputFormat: Prop<string, false>;
38
+ outputFormat: Prop<string, false>;
42
39
  manageTimezone: Prop<boolean, false>;
43
40
  valueTimezone: Prop<string, false>;
44
41
  displayTimezone: Prop<string, false>;
45
42
  columnType: Prop<"date", true>;
46
43
  } | {
47
- buttonLabel: Prop<string, false>;
44
+ buttonLabel: Prop<string, true>;
48
45
  isDisabled: Prop<boolean, false>;
49
46
  columnType: Prop<"button", true>;
50
47
  } | {
51
- linkUrl: Prop<string, false>;
52
48
  linkLabel: Prop<string, false>;
53
- openInNewTab: Prop<boolean, false>;
54
49
  columnType: Prop<"link", true>;
55
50
  } | {
56
- computedValue: Prop<string, false>;
57
51
  columnType: Prop<"boolean", true>;
58
52
  } | {
59
- computedValue: Prop<string, false>;
60
53
  columnType: Prop<"tags", true>;
61
54
  } | {
62
- computedValue: Prop<string, false>;
63
55
  displayedValue: Prop<string, false>;
64
56
  columnType: Prop<"email", true>;
65
57
  })))) & {
@@ -67,107 +59,111 @@ export declare const columnPanelConfig: {
67
59
  }>;
68
60
  presentation: Section<(Record<string, Prop<any, any>> & ({
69
61
  headerIcon: Prop<string, false>;
70
- headerIconPosition: Prop<IconPosition, false>;
62
+ headerIconPosition: Prop<IconPosition, true>;
71
63
  } & (Omit<{
72
64
  columnType: Prop<ColumnType, false>;
73
65
  }, "columnType"> & ({
74
- horizontalAlign: Prop<"center" | "left" | "right", false>;
75
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
76
- "cellProps.textStyle": Prop<any, false>;
77
- cellBackground: Prop<string, false>;
66
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
67
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
68
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
69
+ cellBackground: Prop<string, true>;
70
+ textWrap: Prop<boolean, false>;
71
+ cellIcon: Prop<string, false>;
72
+ cellIconPosition: Prop<IconPosition, true>;
73
+ columnType: Prop<undefined, false>;
74
+ } | {
75
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
76
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
77
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
78
+ cellBackground: Prop<string, true>;
78
79
  textWrap: Prop<boolean, false>;
79
80
  cellIcon: Prop<string, false>;
80
- cellIconPosition: Prop<IconPosition, false>;
81
+ cellIconPosition: Prop<IconPosition, true>;
81
82
  columnType: Prop<"text", true>;
82
83
  } | {
83
- horizontalAlign: Prop<"center" | "left" | "right", false>;
84
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
85
- "cellProps.textStyle": Prop<any, false>;
86
- cellBackground: Prop<string, false>;
84
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
85
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
86
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
87
+ cellBackground: Prop<string, true>;
87
88
  textWrap: Prop<boolean, false>;
88
89
  cellIcon: Prop<string, false>;
89
- cellIconPosition: Prop<IconPosition, false>;
90
+ cellIconPosition: Prop<IconPosition, true>;
90
91
  columnType: Prop<"number", true>;
91
92
  } | {
92
- horizontalAlign: Prop<"center" | "left" | "right", false>;
93
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
94
- "cellProps.textStyle": Prop<any, false>;
95
- cellBackground: Prop<string, false>;
93
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
94
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
95
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
96
+ cellBackground: Prop<string, true>;
96
97
  textWrap: Prop<boolean, false>;
97
98
  cellIcon: Prop<string, false>;
98
- cellIconPosition: Prop<IconPosition, false>;
99
+ cellIconPosition: Prop<IconPosition, true>;
99
100
  columnType: Prop<"currency", true>;
100
101
  } | {
101
- horizontalAlign: Prop<"center" | "left" | "right", false>;
102
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
103
- "cellProps.textStyle": Prop<any, false>;
104
- cellBackground: Prop<string, false>;
102
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
103
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
104
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
105
+ cellBackground: Prop<string, true>;
105
106
  textWrap: Prop<boolean, false>;
106
107
  cellIcon: Prop<string, false>;
107
- cellIconPosition: Prop<IconPosition, false>;
108
+ cellIconPosition: Prop<IconPosition, true>;
108
109
  columnType: Prop<"percentage", true>;
109
110
  } | {
110
- horizontalAlign: Prop<"center" | "left" | "right", false>;
111
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
112
- "cellProps.textStyle": Prop<any, false>;
113
- cellBackground: Prop<string, false>;
114
111
  imageSize: Prop<ImageSize, false>;
115
- imageBorderRadius: Prop<Dim, false>;
112
+ imageBorderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
113
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
114
+ cellBackground: Prop<string, true>;
116
115
  columnType: Prop<"image", true>;
117
116
  } | {
118
- horizontalAlign: Prop<"center" | "left" | "right", false>;
119
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
120
- "cellProps.textStyle": Prop<any, false>;
121
- cellBackground: Prop<string, false>;
117
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
118
+ cellBackground: Prop<string, true>;
122
119
  columnType: Prop<"video", true>;
123
120
  } | {
124
- horizontalAlign: Prop<"center" | "left" | "right", false>;
125
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
126
- "cellProps.textStyle": Prop<any, false>;
127
- cellBackground: Prop<string, false>;
121
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
122
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
123
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
124
+ cellBackground: Prop<string, true>;
128
125
  textWrap: Prop<boolean, false>;
129
126
  cellIcon: Prop<string, false>;
130
- cellIconPosition: Prop<IconPosition, false>;
127
+ cellIconPosition: Prop<IconPosition, true>;
131
128
  columnType: Prop<"date", true>;
132
129
  } | {
133
- buttonVariant: Prop<ButtonVariant, false>;
130
+ buttonIcon: Prop<string, false>;
131
+ buttonIconPosition: Prop<IconPosition, true>;
132
+ buttonVariant: Prop<ButtonVariant, true>;
133
+ buttonTextStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
134
134
  buttonBackgroundColor: Prop<string, false>;
135
- buttonLabelColor: Prop<string, false>;
136
- backgroundColor: Prop<string, false>;
137
- cellIcon: Prop<string, false>;
138
- cellIconPosition: Prop<IconPosition, false>;
135
+ buttonBorder: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
139
136
  columnType: Prop<"button", true>;
140
137
  } | {
141
- horizontalAlign: Prop<"center" | "left" | "right", false>;
142
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
143
- "cellProps.textStyle": Prop<any, false>;
144
- cellBackground: Prop<string, false>;
138
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
139
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
140
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
141
+ cellBackground: Prop<string, true>;
145
142
  columnType: Prop<"link", true>;
146
143
  } | {
147
- booleanStyleFalse: Prop<BooleanStyleFalse, false>;
148
- horizontalAlign: Prop<"center" | "left" | "right", false>;
149
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
150
- "cellProps.textStyle": Prop<any, false>;
151
- cellBackground: Prop<string, false>;
144
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
145
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
146
+ cellBackground: Prop<string, true>;
147
+ booleanStyleFalse: Prop<BooleanStyleFalse, true>;
152
148
  columnType: Prop<"boolean", true>;
153
149
  } | {
150
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
151
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
152
+ cellBackground: Prop<string, true>;
153
+ tagsWrap: Prop<boolean, false>;
154
154
  tagDisplayConfig: Prop<any, false>;
155
- horizontalAlign: Prop<"center" | "left" | "right", false>;
156
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
157
- "cellProps.textStyle": Prop<any, false>;
158
- cellBackground: Prop<string, false>;
159
155
  columnType: Prop<"tags", true>;
160
156
  } | {
161
- horizontalAlign: Prop<"center" | "left" | "right", false>;
162
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
163
- "cellProps.textStyle": Prop<any, false>;
164
- cellBackground: Prop<string, false>;
157
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
158
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
159
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
160
+ cellBackground: Prop<string, true>;
165
161
  textWrap: Prop<boolean, false>;
166
162
  cellIcon: Prop<string, false>;
167
- cellIconPosition: Prop<IconPosition, false>;
163
+ cellIconPosition: Prop<IconPosition, true>;
168
164
  columnType: Prop<"email", true>;
169
165
  })))) & {
170
- frozen: Prop<boolean, false>;
166
+ isFrozen: Prop<boolean, false>;
171
167
  }>;
172
168
  interaction: Section<Record<string, Prop<any, any>> & Omit<{
173
169
  columnType: Prop<ColumnType, false>;
@@ -1,12 +1,12 @@
1
1
  import React from "react";
2
- import type { CompactMode, SingleCellProperties } from "../types.js";
2
+ import type { RowDensity, SingleCellProperties } from "../types.js";
3
3
  import type { TextStyleWithVariant } from "@superblocksteam/library-shared/types";
4
4
  declare const AutoToolTipComponent: (props: {
5
5
  isHidden?: boolean;
6
6
  children: React.ReactNode;
7
7
  title: string;
8
8
  cellProperties: SingleCellProperties;
9
- compactMode: CompactMode;
9
+ rowDensity: RowDensity;
10
10
  handleCellFocus?: () => void;
11
11
  maxLinesPerRow?: number;
12
12
  hasLeftIcon?: boolean;
@@ -6,11 +6,11 @@ type BooleanIconProps = {
6
6
  strokeWidth?: number;
7
7
  };
8
8
  export declare const RadioButtonControlIcons: {
9
- EMPTY: (_props: BooleanIconProps) => null;
10
- CHECK: (props: BooleanIconProps) => React.JSX.Element;
11
- CLOSE: (props: BooleanIconProps) => React.JSX.Element;
12
- MINUS: (props: BooleanIconProps) => React.JSX.Element;
13
- EMPTY_CHECKBOX: (props: BooleanIconProps) => React.JSX.Element;
9
+ empty: (_props: BooleanIconProps) => null;
10
+ check: (props: BooleanIconProps) => React.JSX.Element;
11
+ close: (props: BooleanIconProps) => React.JSX.Element;
12
+ minus: (props: BooleanIconProps) => React.JSX.Element;
13
+ empty_checkbox: (props: BooleanIconProps) => React.JSX.Element;
14
14
  };
15
15
  export type RadioButtonIconNames = keyof typeof RadioButtonControlIcons;
16
16
  export {};
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import type { TableCellProps } from "../table-utilities.jsx";
3
- import type { CompactMode, EditProps } from "../types.js";
3
+ import type { RowDensity, EditProps } from "../types.js";
4
4
  import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
5
5
  import type { RefObject } from "react";
6
6
  declare const EditCell: (props: {
@@ -8,7 +8,7 @@ declare const EditCell: (props: {
8
8
  editProps: EditProps;
9
9
  value: any;
10
10
  tableName: string;
11
- compactMode: CompactMode;
11
+ rowDensity: RowDensity;
12
12
  cellProps: TableCellProps;
13
13
  theme: UserAccessibleTheme;
14
14
  }) => React.JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import React from "react";
2
- import type { SingleCellProperties, CompactMode, EditProps } from "../types.js";
2
+ import { type SingleCellProperties, type RowDensity, type EditProps } from "../types.js";
3
3
  declare const EditCheckboxCell: (props: {
4
4
  editProps: EditProps;
5
5
  value: any;
6
6
  readModeComponent: JSX.Element;
7
- compactMode: CompactMode;
7
+ rowDensity: RowDensity;
8
8
  cellProperties: SingleCellProperties;
9
9
  isFocused: boolean;
10
10
  }) => React.JSX.Element;
@@ -1,12 +1,12 @@
1
1
  import React from "react";
2
2
  import type { TableCellProps } from "../table-utilities.jsx";
3
- import type { CompactMode, EditProps } from "../types.js";
3
+ import type { RowDensity, EditProps } from "../types.js";
4
4
  import type { Position } from "./edit-utils.js";
5
5
  declare const EditDateCell: (props: {
6
6
  editProps: EditProps;
7
7
  value: any;
8
8
  inputPosition: Position;
9
- compactMode: CompactMode;
9
+ rowDensity: RowDensity;
10
10
  cellProps: TableCellProps;
11
11
  }) => React.JSX.Element;
12
12
  export default EditDateCell;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import type { TableCellProps } from "../table-utilities.jsx";
3
- import type { CompactMode, EditProps } from "../types.js";
3
+ import type { RowDensity, EditProps } from "../types.js";
4
4
  import type { Position } from "./edit-utils.js";
5
5
  import type { RefObject } from "react";
6
6
  declare const EditInputCell: (props: {
@@ -8,7 +8,7 @@ declare const EditInputCell: (props: {
8
8
  value: any;
9
9
  targetCellRef: RefObject<HTMLElement>;
10
10
  inputPosition: Position;
11
- compactMode: CompactMode;
11
+ rowDensity: RowDensity;
12
12
  cellProps: TableCellProps;
13
13
  }) => React.JSX.Element | null;
14
14
  export default EditInputCell;