@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.
- package/dist/{allPaths-B09LcN7N.js → allPaths-C6OJ6mru.js} +2 -2
- package/dist/{allPaths-B09LcN7N.js.map → allPaths-C6OJ6mru.js.map} +1 -1
- package/dist/{allPaths-CQi6Mi9n.js → allPaths-gAit3yMA.js} +2 -2
- package/dist/{allPaths-CQi6Mi9n.js.map → allPaths-gAit3yMA.js.map} +1 -1
- package/dist/{allPathsLoader-DTMdKBA7.js → allPathsLoader-BJfnsyfx.js} +3 -3
- package/dist/{allPathsLoader-M6yIb9T6.js.map → allPathsLoader-BJfnsyfx.js.map} +1 -1
- package/dist/{allPathsLoader-M6yIb9T6.js → allPathsLoader-Bjuqgh93.js} +3 -3
- package/dist/{allPathsLoader-DTMdKBA7.js.map → allPathsLoader-Bjuqgh93.js.map} +1 -1
- package/dist/{index-B1VgfVEK.js → index-B2rMu95r.js} +15471 -14610
- package/dist/{index-B1VgfVEK.js.map → index-B2rMu95r.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-Cgf9KLYl.js → splitPathsBySizeLoader-DJBHYgBR.js} +2 -2
- package/dist/{splitPathsBySizeLoader-Cgf9KLYl.js.map → splitPathsBySizeLoader-DJBHYgBR.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-zdAfZhWx.js → splitPathsBySizeLoader-bQPBH87C.js} +2 -2
- package/dist/{splitPathsBySizeLoader-zdAfZhWx.js.map → splitPathsBySizeLoader-bQPBH87C.js.map} +1 -1
- package/dist-types/edit-mode/default-table-data.d.ts +64 -0
- package/dist-types/edit-mode/dnd/utils.d.ts +8 -1
- package/dist-types/edit-mode/features/operation-store.d.ts +4 -0
- package/dist-types/edit-mode/source-update-api.d.ts +2 -1
- package/dist-types/lib/internal-details/identifier-normalizer.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +5 -4
- package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +2 -1
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +8 -0
- package/dist-types/lib/internal-details/lib/types.d.ts +3 -0
- package/dist-types/lib/internal-details/scope/global.d.ts +1 -0
- package/dist-types/lib/user-facing/component-base/components/button.d.ts +1 -2
- package/dist-types/lib/user-facing/component-base/styles/button-styles.d.ts +3 -11
- package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +11 -8
- package/dist-types/lib/user-facing/components/button/props.d.ts +2 -8
- package/dist-types/lib/user-facing/components/column/index.d.ts +8 -21
- package/dist-types/lib/user-facing/components/column/props.d.ts +8 -20
- package/dist-types/lib/user-facing/components/container/index.d.ts +8 -22
- package/dist-types/lib/user-facing/components/container/props.d.ts +7 -22
- package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +3 -3
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +1 -1
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +2 -2
- package/dist-types/lib/user-facing/components/dropdown/types.d.ts +1 -1
- package/dist-types/lib/user-facing/components/grid/index.d.ts +8 -8
- package/dist-types/lib/user-facing/components/image/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/image/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/input/index.d.ts +9 -15
- package/dist-types/lib/user-facing/components/input/props.d.ts +10 -15
- package/dist-types/lib/user-facing/components/modal/index.d.ts +8 -13
- package/dist-types/lib/user-facing/components/modal/modal-component.d.ts +1 -1
- package/dist-types/lib/user-facing/components/modal/props.d.ts +8 -13
- package/dist-types/lib/user-facing/components/pixel-input/index.d.ts +7 -0
- package/dist-types/lib/user-facing/components/section/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/section/props.d.ts +2 -2
- package/dist-types/lib/user-facing/components/stack/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/switch/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/switch/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +50 -45
- package/dist-types/lib/user-facing/components/table/components/boolean-value-icons.d.ts +5 -5
- package/dist-types/lib/user-facing/components/table/components/table-data-download.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/table-footer.d.ts +4 -4
- package/dist-types/lib/user-facing/components/table/components/table-pagination.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/index.d.ts +60 -56
- package/dist-types/lib/user-facing/components/table/props.d.ts +61 -58
- package/dist-types/lib/user-facing/components/table/table-component.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/table-styles.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +7 -8
- package/dist-types/lib/user-facing/components/table/table-widget.d.ts +1 -1
- package/dist-types/lib/user-facing/components/table/types.d.ts +19 -30
- package/dist-types/lib/user-facing/components/text/index.d.ts +4 -4
- package/dist-types/lib/user-facing/components/text/props.d.ts +4 -4
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +4 -8
- package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +3 -3
- package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +15 -14
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +2 -1
- package/dist-types/lib/user-facing/themes/constants.d.ts +2 -0
- package/package.json +4 -3
|
@@ -19,11 +19,11 @@ export declare const SbDatePicker: React.FC<import("../../properties-panel/props
|
|
|
19
19
|
twentyFourHourTime: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
20
20
|
}>;
|
|
21
21
|
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
22
|
+
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
22
23
|
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
23
24
|
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
24
25
|
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
25
26
|
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
26
|
-
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
27
27
|
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
28
28
|
} & {
|
|
29
29
|
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
@@ -21,11 +21,11 @@ export declare const propertiesDefinition: {
|
|
|
21
21
|
twentyFourHourTime: Prop<boolean, true>;
|
|
22
22
|
}>;
|
|
23
23
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
24
|
+
width: Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
24
25
|
maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
25
26
|
minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
26
27
|
maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
27
28
|
minWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
28
|
-
width: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
29
29
|
height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
30
30
|
} & {
|
|
31
31
|
margin: Prop<unknown, true>;
|
|
@@ -11,7 +11,7 @@ export declare function normalizeDateFormat(dateFormat: string): string;
|
|
|
11
11
|
* Parses a date string according to the given format, removes timezone information,
|
|
12
12
|
* and returns the date in NO_TZ format.
|
|
13
13
|
*
|
|
14
|
-
* @param {string}
|
|
14
|
+
* @param {string} dateString - The date string to parse.
|
|
15
15
|
* @param {string} format - The format of the input date string.
|
|
16
16
|
* @returns {string} - The formatted date string in "MM/DD/YYYY HH:mm:ss" format.
|
|
17
17
|
*/
|
|
@@ -22,11 +22,11 @@ export declare const SbDropdown: React.FC<import("../../properties-panel/props-b
|
|
|
22
22
|
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
23
23
|
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
24
24
|
} & {
|
|
25
|
+
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
25
26
|
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
26
27
|
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
27
28
|
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
28
29
|
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
29
|
-
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
30
30
|
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
31
31
|
} & {
|
|
32
32
|
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
@@ -36,7 +36,7 @@ export declare const SbDropdown: React.FC<import("../../properties-panel/props-b
|
|
|
36
36
|
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
37
37
|
customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
38
38
|
customErrorMessage: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
39
|
-
|
|
39
|
+
multiselect: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
40
40
|
allowSelectAll: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
41
41
|
allowClearing: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
42
42
|
clientSideFiltering: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
@@ -24,11 +24,11 @@ export declare const propertiesDefinition: {
|
|
|
24
24
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
25
25
|
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
26
26
|
} & {
|
|
27
|
+
width: Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
27
28
|
maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
28
29
|
minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
29
30
|
maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
30
31
|
minWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
31
|
-
width: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
32
32
|
height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
33
33
|
} & {
|
|
34
34
|
margin: Prop<unknown, true>;
|
|
@@ -38,7 +38,7 @@ export declare const propertiesDefinition: {
|
|
|
38
38
|
interaction: Section<Record<string, Prop<any, any>> & {
|
|
39
39
|
customValidationRule: Prop<string, true>;
|
|
40
40
|
customErrorMessage: Prop<string, true>;
|
|
41
|
-
|
|
41
|
+
multiselect: Prop<boolean, true>;
|
|
42
42
|
allowSelectAll: Prop<boolean, true>;
|
|
43
43
|
allowClearing: Prop<boolean, true>;
|
|
44
44
|
clientSideFiltering: Prop<boolean, true>;
|
|
@@ -2,6 +2,7 @@ import { Dim } from "@superblocksteam/library-shared";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Prop, Section } from "../../properties-panel/props-builder.js";
|
|
4
4
|
import type { InternalProps } from "../../properties-panel/props-builder.js";
|
|
5
|
+
import type { DimModes } from "@superblocksteam/library-shared";
|
|
5
6
|
export type GridChild = React.ReactElement<{
|
|
6
7
|
name: string;
|
|
7
8
|
marginTop?: Dim<"rows">;
|
|
@@ -14,16 +15,15 @@ declare const _propertiesDefinition: {
|
|
|
14
15
|
general: Section<Record<string, Prop<any, any>> & {
|
|
15
16
|
spacing: Prop<Dim<"px">, true>;
|
|
16
17
|
columns: Prop<number, false>;
|
|
17
|
-
|
|
18
|
-
rowSize: Prop<number, false>;
|
|
18
|
+
rowHeight: Prop<Dim<"px">, false>;
|
|
19
19
|
}>;
|
|
20
20
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
21
|
-
maxHeight?: Prop<Dim<
|
|
22
|
-
minHeight?: Prop<Dim<
|
|
23
|
-
maxWidth?: Prop<Dim<
|
|
24
|
-
minWidth?: Prop<Dim<
|
|
25
|
-
width: Prop<Dim<
|
|
26
|
-
height: Prop<Dim<
|
|
21
|
+
maxHeight?: Prop<Dim<DimModes>, false> | undefined;
|
|
22
|
+
minHeight?: Prop<Dim<DimModes>, false> | undefined;
|
|
23
|
+
maxWidth?: Prop<Dim<DimModes>, false> | undefined;
|
|
24
|
+
minWidth?: Prop<Dim<DimModes>, false> | undefined;
|
|
25
|
+
width: Prop<Dim<DimModes>, false>;
|
|
26
|
+
height: Prop<Dim<DimModes>, false>;
|
|
27
27
|
} & {
|
|
28
28
|
margin: Prop<unknown, true>;
|
|
29
29
|
} & {
|
|
@@ -4,7 +4,7 @@ export declare const SbImage: import("react").FC<import("../../properties-panel/
|
|
|
4
4
|
}>;
|
|
5
5
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
6
6
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
7
|
-
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
7
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
8
8
|
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
9
9
|
fillContainer: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
10
10
|
align: import("../../properties-panel/props-builder.js").Prop<import("./props.js").ImageAlign, true>;
|
|
@@ -14,7 +14,7 @@ export declare const propertiesDefinition: {
|
|
|
14
14
|
}>;
|
|
15
15
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
16
16
|
backgroundColor: Prop<string, false>;
|
|
17
|
-
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
17
|
+
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
18
18
|
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
19
19
|
fillContainer: Prop<boolean, true>;
|
|
20
20
|
align: Prop<ImageAlign, true>;
|
|
@@ -33,26 +33,20 @@ export declare const SbInput: import("react").FC<import("../../properties-panel/
|
|
|
33
33
|
} & {
|
|
34
34
|
loadingAnimation: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
35
35
|
}>;
|
|
36
|
-
layout: import("../../properties-panel/props-builder.js").Section<
|
|
36
|
+
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
37
37
|
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
38
|
-
} &
|
|
38
|
+
} & {
|
|
39
|
+
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
39
40
|
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
40
41
|
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
41
42
|
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
42
43
|
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
43
|
-
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
44
44
|
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
45
|
-
} &
|
|
45
|
+
} & {
|
|
46
46
|
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
47
|
-
} &
|
|
48
|
-
labelPosition: import("../../properties-panel/props-builder.js").Prop<"left" | "top", false>;
|
|
49
|
-
}, "labelPosition" | "labelWidth"> & ({
|
|
50
|
-
labelPosition: import("../../properties-panel/props-builder.js").Prop<"left", true>;
|
|
47
|
+
} & {
|
|
51
48
|
labelWidth: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim, true>;
|
|
52
|
-
}
|
|
53
|
-
labelPosition: import("../../properties-panel/props-builder.js").Prop<"top", true>;
|
|
54
|
-
labelWidth?: undefined;
|
|
55
|
-
}))))) & {
|
|
49
|
+
} & {
|
|
56
50
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
57
51
|
}>;
|
|
58
52
|
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & Omit<{
|
|
@@ -60,8 +54,8 @@ export declare const SbInput: import("react").FC<import("../../properties-panel/
|
|
|
60
54
|
}, "inputType" | "minimumFractionDigits" | "maximumFractionDigits" | "stepper" | "stepSize"> & {
|
|
61
55
|
stepper: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
62
56
|
stepSize: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
63
|
-
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number,
|
|
64
|
-
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number,
|
|
57
|
+
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
58
|
+
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
65
59
|
inputType: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
66
60
|
} & Omit<{
|
|
67
61
|
inputType: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
@@ -88,7 +82,7 @@ export declare const SbInput: import("react").FC<import("../../properties-panel/
|
|
|
88
82
|
}>;
|
|
89
83
|
derived: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
90
84
|
value: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
91
|
-
validationErrors: import("../../properties-panel/props-builder.js").Prop<
|
|
85
|
+
validationErrors: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/utils/input-validation.js").ValidationErrors, true>;
|
|
92
86
|
isValid: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
93
87
|
showError: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
94
88
|
}>;
|
|
@@ -1,5 +1,6 @@
|
|
|
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>> & ({
|
|
@@ -36,26 +37,20 @@ export declare const propertiesDefinition: {
|
|
|
36
37
|
} & {
|
|
37
38
|
loadingAnimation: Prop<boolean, true>;
|
|
38
39
|
}>;
|
|
39
|
-
layout: Section<
|
|
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
|
-
} &
|
|
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<{
|
|
@@ -63,8 +58,8 @@ export declare const propertiesDefinition: {
|
|
|
63
58
|
}, "inputType" | "minimumFractionDigits" | "maximumFractionDigits" | "stepper" | "stepSize"> & {
|
|
64
59
|
stepper: Prop<boolean, true>;
|
|
65
60
|
stepSize: Prop<number, true>;
|
|
66
|
-
minimumFractionDigits: Prop<number,
|
|
67
|
-
maximumFractionDigits: Prop<number,
|
|
61
|
+
minimumFractionDigits: Prop<number, false>;
|
|
62
|
+
maximumFractionDigits: Prop<number, false>;
|
|
68
63
|
inputType: Prop<string, true>;
|
|
69
64
|
} & Omit<{
|
|
70
65
|
inputType: Prop<string, false>;
|
|
@@ -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<
|
|
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<
|
|
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,11 +17,13 @@ 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
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
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
28
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
34
29
|
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
@@ -28,7 +28,7 @@ type ModalComponentProps = {
|
|
|
28
28
|
spacing: Dim<"px">;
|
|
29
29
|
columns?: number;
|
|
30
30
|
rows?: number;
|
|
31
|
-
|
|
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<
|
|
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,11 +14,13 @@ 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
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
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
25
|
backgroundColor: Prop<string, false>;
|
|
31
26
|
border: Prop<PerSideBorder, 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,
|
|
21
|
-
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
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,
|
|
24
|
-
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
39
|
+
isToggledOn: Prop<boolean, true>;
|
|
40
40
|
validationErrors: Prop<any, true>;
|
|
41
41
|
isValid: Prop<boolean, true>;
|
|
42
42
|
showError: Prop<boolean, true>;
|