@superblocksteam/library 2.0.0-next.11 → 2.0.0-next.110
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-DXE_RTrt.js → allPaths-C9t-oueG.js} +2 -2
- package/dist/{allPaths-DXE_RTrt.js.map → allPaths-C9t-oueG.js.map} +1 -1
- package/dist/{allPaths-h7bsheRo.js → allPaths-v-9aWvcC.js} +2 -2
- package/dist/{allPaths-h7bsheRo.js.map → allPaths-v-9aWvcC.js.map} +1 -1
- package/dist/{allPathsLoader-16QM90xQ.js → allPathsLoader-C12f21WG.js} +3 -3
- package/dist/{allPathsLoader-BWX35Jie.js.map → allPathsLoader-C12f21WG.js.map} +1 -1
- package/dist/{allPathsLoader-BWX35Jie.js → allPathsLoader-ptt7LSRI.js} +3 -3
- package/dist/{allPathsLoader-16QM90xQ.js.map → allPathsLoader-ptt7LSRI.js.map} +1 -1
- package/dist/{index-tdErpvtu.js → index-Dmuv9J5-.js} +27437 -20439
- package/dist/{index-tdErpvtu.js.map → index-Dmuv9J5-.js.map} +1 -1
- package/dist/index.css +2 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-wQWCogRx.js → splitPathsBySizeLoader-C9M7hrZo.js} +2 -2
- package/dist/{splitPathsBySizeLoader-wQWCogRx.js.map → splitPathsBySizeLoader-C9M7hrZo.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-7yhv4gcq.js → splitPathsBySizeLoader-yx8MCpqw.js} +2 -2
- package/dist/{splitPathsBySizeLoader-7yhv4gcq.js.map → splitPathsBySizeLoader-yx8MCpqw.js.map} +1 -1
- package/dist-types/edit-mode/create-component.d.ts +3 -1
- package/dist-types/edit-mode/default-table-data.d.ts +71 -0
- package/dist-types/edit-mode/dnd/grid-store.d.ts +29 -4
- package/dist-types/edit-mode/dnd/utils.d.ts +11 -10
- package/dist-types/edit-mode/features/connection-manager.d.ts +1 -2
- package/dist-types/edit-mode/features/interaction-layer-manager.d.ts +10 -4
- package/dist-types/edit-mode/features/operation-store.d.ts +12 -2
- package/dist-types/edit-mode/features/properties-panel-manager.d.ts +4 -4
- package/dist-types/edit-mode/features/resizing-store.d.ts +1 -0
- package/dist-types/edit-mode/interaction-utils.d.ts +4 -0
- package/dist-types/edit-mode/source-update-api.d.ts +3 -20
- package/dist-types/internal-testing/components/form.d.ts +1 -0
- package/dist-types/lib/internal-details/component-suspense-style-context.d.ts +10 -0
- package/dist-types/lib/internal-details/css-constants.d.ts +4 -0
- 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 +7 -5
- 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 +12 -1
- package/dist-types/lib/internal-details/lib/features/api-store.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/features/api-utils.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/suspense/suspense-fallback.d.ts +10 -0
- package/dist-types/lib/internal-details/lib/types.d.ts +5 -0
- package/dist-types/lib/internal-details/reactive-component.d.ts +4 -3
- package/dist-types/lib/internal-details/remove-bindings.d.ts +1 -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 +3 -4
- package/dist-types/lib/user-facing/component-base/components/video.d.ts +19 -0
- 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/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/button/props.d.ts +5 -11
- package/dist-types/lib/user-facing/components/checkbox/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/checkbox/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/column/index.d.ts +9 -21
- package/dist-types/lib/user-facing/components/column/props.d.ts +9 -20
- package/dist-types/lib/user-facing/components/container/index.d.ts +13 -24
- package/dist-types/lib/user-facing/components/container/props.d.ts +8 -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 +6 -1
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +6 -1
- package/dist-types/lib/user-facing/components/date-picker/types.d.ts +3 -0
- package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +1 -1
- package/dist-types/lib/user-facing/components/dropdown/dropdown-component.d.ts +1 -1
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +3 -3
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +5 -6
- 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/icon/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/icon/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/image/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/image/props.d.ts +2 -2
- package/dist-types/lib/user-facing/components/input/derived-properties.d.ts +1 -1
- package/dist-types/lib/user-facing/components/input/index.d.ts +15 -21
- package/dist-types/lib/user-facing/components/input/props.d.ts +16 -21
- package/dist-types/lib/user-facing/components/key-value/props.d.ts +1 -0
- package/dist-types/lib/user-facing/components/modal/index.d.ts +11 -15
- package/dist-types/lib/user-facing/components/modal/modal-component.d.ts +2 -2
- package/dist-types/lib/user-facing/components/modal/props.d.ts +11 -15
- package/dist-types/lib/user-facing/components/page/index.d.ts +3 -0
- package/dist-types/lib/user-facing/components/page/props.d.ts +3 -0
- 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 +3 -2
- package/dist-types/lib/user-facing/components/section/props.d.ts +3 -2
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +5 -1
- package/dist-types/lib/user-facing/components/stack/index.d.ts +5 -3
- 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 +72 -76
- package/dist-types/lib/user-facing/components/table/components/autotooltip-component.d.ts +2 -2
- 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/edit-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-checkbox-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-date-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-input-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-multi-select-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-single-select-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-utils.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/editable-link-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/popover-video.d.ts +1 -1
- 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-header.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/components/table-loading-state.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/components/table-pagination.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/components/table-tag.d.ts +5 -5
- package/dist-types/lib/user-facing/components/table/constants.d.ts +4 -24
- 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 +92 -96
- package/dist-types/lib/user-facing/components/table/props.d.ts +94 -99
- package/dist-types/lib/user-facing/components/table/table-component.d.ts +4 -4
- package/dist-types/lib/user-facing/components/table/table-styles.d.ts +3 -8
- package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +25 -20
- package/dist-types/lib/user-facing/components/table/table-widget.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/types.d.ts +47 -73
- package/dist-types/lib/user-facing/components/table/utils.d.ts +2 -2
- package/dist-types/lib/user-facing/components/text/index.d.ts +9 -8
- package/dist-types/lib/user-facing/components/text/props.d.ts +18 -15
- package/dist-types/lib/user-facing/components/text/utils.d.ts +6 -6
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +1 -0
- 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 +4 -4
- package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +15 -14
- package/dist-types/lib/user-facing/properties-panel/mixins/loading.d.ts +2 -0
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +6 -4
- package/dist-types/lib/user-facing/properties-panel/validators.d.ts +2 -1
- package/dist-types/lib/user-facing/state/sb-computed.d.ts +1 -1
- package/dist-types/lib/user-facing/themes/constants.d.ts +4 -2
- package/dist-types/lib/user-facing/themes/utils.d.ts +1 -2
- package/package.json +5 -3
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { IconPosition } from "../../icons/constants.js";
|
|
3
3
|
import type { ButtonLikeLinkStyle, ButtonStyle } from "../styles/button-styles.js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { HorizontalAlign } from "@superblocksteam/library-shared/props";
|
|
5
5
|
import type { PerSideBorder, UserAccessibleTheme, Padding, PerCornerBorderRadius } from "@superblocksteam/library-shared/types";
|
|
6
6
|
import type { ReactElement } from "react";
|
|
7
7
|
export interface SharedButtonProps {
|
|
8
8
|
textColor?: string;
|
|
9
9
|
backgroundColor?: string;
|
|
10
|
+
border?: PerSideBorder;
|
|
10
11
|
text?: string;
|
|
11
12
|
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
12
13
|
disabled?: boolean;
|
|
@@ -17,7 +18,7 @@ export interface SharedButtonProps {
|
|
|
17
18
|
icon?: ReactElement | null;
|
|
18
19
|
iconPosition?: IconPosition;
|
|
19
20
|
systemIcon?: ReactElement;
|
|
20
|
-
textAlignment?:
|
|
21
|
+
textAlignment?: HorizontalAlign;
|
|
21
22
|
width?: "100%" | "auto";
|
|
22
23
|
height?: "100%" | "auto";
|
|
23
24
|
maxWidth?: number;
|
|
@@ -26,7 +27,6 @@ export interface SharedButtonProps {
|
|
|
26
27
|
textStyleVariant?: string;
|
|
27
28
|
style?: React.CSSProperties;
|
|
28
29
|
};
|
|
29
|
-
border?: PerSideBorder;
|
|
30
30
|
borderRadius?: PerCornerBorderRadius;
|
|
31
31
|
padding?: Padding;
|
|
32
32
|
theme: UserAccessibleTheme;
|
|
@@ -34,7 +34,6 @@ export interface SharedButtonProps {
|
|
|
34
34
|
}
|
|
35
35
|
export interface ButtonProps extends SharedButtonProps {
|
|
36
36
|
buttonStyle?: ButtonStyle;
|
|
37
|
-
version?: "v1" | "v2";
|
|
38
37
|
}
|
|
39
38
|
export interface ButtonLikeLinkProps extends SharedButtonProps {
|
|
40
39
|
linkStyle?: ButtonLikeLinkStyle;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import ReactPlayer from "react-player";
|
|
2
|
+
import type { Ref } from "react";
|
|
3
|
+
export interface VideoComponentProps {
|
|
4
|
+
url?: string;
|
|
5
|
+
autoplay?: boolean;
|
|
6
|
+
controls?: boolean;
|
|
7
|
+
onStart?: () => void;
|
|
8
|
+
onPlay?: () => void;
|
|
9
|
+
onPause?: () => void;
|
|
10
|
+
onEnded?: () => void;
|
|
11
|
+
onReady?: () => void;
|
|
12
|
+
onProgress?: () => void;
|
|
13
|
+
onSeek?: () => void;
|
|
14
|
+
onError?: () => void;
|
|
15
|
+
player?: Ref<ReactPlayer>;
|
|
16
|
+
width?: string | number;
|
|
17
|
+
height?: string | number;
|
|
18
|
+
}
|
|
19
|
+
export default function VideoComponent(props: VideoComponentProps): import("react").JSX.Element;
|
|
@@ -3,14 +3,6 @@ export type ButtonStyle = "primary" | "secondary" | "tertiary" | "success" | "da
|
|
|
3
3
|
export type ButtonLikeLinkStyle = ButtonStyle | "LINK";
|
|
4
4
|
export declare const getButtonThemeDefaultTextColor: (theme: UserAccessibleTheme, buttonStyle?: ButtonStyle) => string;
|
|
5
5
|
export declare const getButtonThemeDefaultBackgroundColor: (theme: UserAccessibleTheme, buttonStyle?: ButtonStyle) => string;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const getButtonBorderStyleObjectV1: ({ border, isLoadingColor, buttonStyle, isLoading, fallbackBorderColor, backgroundColorIfSet, }: {
|
|
10
|
-
border: PerSideBorder | undefined;
|
|
11
|
-
isLoadingColor: string;
|
|
12
|
-
fallbackBorderColor: string;
|
|
13
|
-
buttonStyle: ButtonStyle | undefined;
|
|
14
|
-
isLoading: boolean;
|
|
15
|
-
backgroundColorIfSet: string | undefined;
|
|
16
|
-
}) => import("react").CSSProperties;
|
|
6
|
+
export declare const PRIMARY_BUTTON_BORDER_OBJECT: (this: any) => PerSideBorder;
|
|
7
|
+
export declare const SECONDARY_BUTTON_BORDER_OBJECT: (this: any) => PerSideBorder;
|
|
8
|
+
export declare const getDefaultBorderObject: (this: any) => PerSideBorder;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
export type ValidationErrors = {
|
|
2
|
+
required?: string;
|
|
3
|
+
minMax?: string;
|
|
4
|
+
customRule?: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
number?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
};
|
|
1
9
|
export declare const getInputValidationErrors: (props: {
|
|
2
10
|
text?: string;
|
|
3
11
|
inputType?: string;
|
|
@@ -7,11 +15,6 @@ export declare const getInputValidationErrors: (props: {
|
|
|
7
15
|
maxLength?: number;
|
|
8
16
|
minLength?: number;
|
|
9
17
|
emailRegex?: RegExp;
|
|
10
|
-
}) =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
customRule?: string;
|
|
14
|
-
email?: string;
|
|
15
|
-
number?: string;
|
|
16
|
-
url?: string;
|
|
17
|
-
};
|
|
18
|
+
}) => ValidationErrors;
|
|
19
|
+
export declare const getErrorMessages: (errors: ValidationErrors) => string[];
|
|
20
|
+
export declare const hasErrors: (errors: ValidationErrors) => boolean;
|
|
@@ -24,8 +24,8 @@ export declare const SbButton: import("react").FC<import("../../properties-panel
|
|
|
24
24
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
25
25
|
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
26
26
|
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").HorizontalAlign, true>;
|
|
28
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
29
29
|
}>;
|
|
30
30
|
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
31
31
|
isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import { Dim } from "@superblocksteam/library-shared";
|
|
2
1
|
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
3
2
|
import type { IconPosition } from "../../icons/constants.js";
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
3
|
+
import type { Dim } from "@superblocksteam/library-shared";
|
|
4
|
+
import type { HorizontalAlign } from "@superblocksteam/library-shared/props";
|
|
6
5
|
export type ButtonVariant = "primary" | "secondary" | "tertiary";
|
|
7
|
-
export declare const PerSideBorderDef: () => import("../../properties-panel/props-builder.js").CompositeProp<{
|
|
8
|
-
color: Prop<string, false>;
|
|
9
|
-
width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
10
|
-
style: Prop<string, false>;
|
|
11
|
-
}>;
|
|
12
6
|
export declare const propertiesDefinition: {
|
|
13
7
|
general: Section<Record<string, Prop<any, any>> & {
|
|
14
8
|
label: Prop<string, false>;
|
|
@@ -33,10 +27,10 @@ export declare const propertiesDefinition: {
|
|
|
33
27
|
iconPosition: Prop<IconPosition, true>;
|
|
34
28
|
textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
35
29
|
backgroundColor: Prop<string, true>;
|
|
36
|
-
border: Prop<PerSideBorder, true>;
|
|
30
|
+
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
37
31
|
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
horizontalAlign: Prop<HorizontalAlign, true>;
|
|
33
|
+
loading: Prop<boolean, true>;
|
|
40
34
|
}>;
|
|
41
35
|
interaction: Section<Record<string, Prop<any, any>> & {
|
|
42
36
|
isDisabled: Prop<boolean, true>;
|
|
@@ -5,7 +5,7 @@ export declare const SbCheckbox: import("react").FC<import("../../properties-pan
|
|
|
5
5
|
}>;
|
|
6
6
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
7
7
|
labelStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
8
|
-
|
|
8
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
9
9
|
}>;
|
|
10
10
|
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
11
11
|
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
@@ -6,7 +6,7 @@ export declare const propertiesDefinition: {
|
|
|
6
6
|
}>;
|
|
7
7
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
8
8
|
labelStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
9
|
-
|
|
9
|
+
loading: Prop<boolean, true>;
|
|
10
10
|
}>;
|
|
11
11
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
12
12
|
maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
-
import type { DimModes } from "@superblocksteam/library-shared";
|
|
3
2
|
/**
|
|
4
3
|
* TODO:
|
|
5
4
|
* - disable setting height related props in prop panel and code
|
|
@@ -8,14 +7,7 @@ import type { DimModes } from "@superblocksteam/library-shared";
|
|
|
8
7
|
*/
|
|
9
8
|
export declare const getDefaultSectionChildren: () => never[];
|
|
10
9
|
export declare const SbColumn: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
11
|
-
layout: import("../../properties-panel/props-builder.js").Section<((
|
|
12
|
-
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
13
|
-
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
14
|
-
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
15
|
-
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
16
|
-
readonly rows: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
17
|
-
readonly rowSize: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
18
|
-
}) | (Omit<{
|
|
10
|
+
layout: import("../../properties-panel/props-builder.js").Section<((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ((Omit<{
|
|
19
11
|
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
20
12
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
21
13
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
@@ -27,24 +19,20 @@ export declare const SbColumn: import("react").FC<import("../../properties-panel
|
|
|
27
19
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
28
20
|
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
29
21
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
22
|
+
}) | (Omit<{
|
|
23
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
24
|
+
}, "layout" | "columns" | "rowHeight"> & {
|
|
25
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
26
|
+
readonly rowHeight: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
27
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
30
28
|
}))) & {
|
|
31
|
-
spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
32
|
-
}) & {
|
|
33
|
-
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
34
|
-
}) & {
|
|
35
|
-
maxHeight?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
36
|
-
minHeight?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
37
|
-
maxWidth?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
38
|
-
minWidth?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
39
|
-
width: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false>;
|
|
40
|
-
height: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false>;
|
|
41
|
-
}) & {
|
|
42
29
|
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
43
30
|
}) & {
|
|
44
31
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
45
32
|
}>;
|
|
46
33
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
47
34
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
48
|
-
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
35
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
36
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
49
37
|
}>;
|
|
50
38
|
}>>;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
2
|
import { Section } from "../../properties-panel/props-builder.js";
|
|
3
3
|
export declare const propertiesDefinition: {
|
|
4
|
-
layout: Section<((
|
|
5
|
-
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
6
|
-
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
7
|
-
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
8
|
-
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
9
|
-
readonly rows: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
10
|
-
readonly rowSize: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
11
|
-
}) | (Omit<{
|
|
4
|
+
layout: Section<((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ((Omit<{
|
|
12
5
|
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
13
6
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
14
7
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
@@ -20,24 +13,20 @@ export declare const propertiesDefinition: {
|
|
|
20
13
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
21
14
|
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
22
15
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
16
|
+
}) | (Omit<{
|
|
17
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
18
|
+
}, "layout" | "columns" | "rowHeight"> & {
|
|
19
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
20
|
+
readonly rowHeight: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
21
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
23
22
|
}))) & {
|
|
24
|
-
spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
25
|
-
}) & {
|
|
26
|
-
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
27
|
-
}) & {
|
|
28
|
-
maxHeight?: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
29
|
-
minHeight?: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
30
|
-
maxWidth?: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
31
|
-
minWidth?: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
32
|
-
width: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
33
|
-
height: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
34
|
-
}) & {
|
|
35
23
|
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
36
24
|
}) & {
|
|
37
25
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
38
26
|
}>;
|
|
39
27
|
appearance: Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
40
28
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
41
|
-
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
29
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
30
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
42
31
|
}>;
|
|
43
32
|
};
|
|
@@ -2,8 +2,10 @@ import { Dim } from "@superblocksteam/library-shared";
|
|
|
2
2
|
import { propertiesDefinition } from "./props.js";
|
|
3
3
|
import type { ContainerLayout } from "../../component-base/constants.js";
|
|
4
4
|
import type { InternalPropsWithOptional } from "../../properties-panel/props-builder.js";
|
|
5
|
-
type OptionalProps = "
|
|
6
|
-
type ContainerProps = InternalPropsWithOptional<typeof propertiesDefinition, OptionalProps
|
|
5
|
+
type OptionalProps = "backgroundColor" | "border" | "borderRadius" | "loading";
|
|
6
|
+
type ContainerProps<T> = Omit<InternalPropsWithOptional<typeof propertiesDefinition, OptionalProps>, "layout"> & {
|
|
7
|
+
layout: T;
|
|
8
|
+
};
|
|
7
9
|
/**
|
|
8
10
|
* TODO:
|
|
9
11
|
* - interaciton rect of children will show outside of container if overflow
|
|
@@ -13,16 +15,9 @@ type ContainerProps = InternalPropsWithOptional<typeof propertiesDefinition, Opt
|
|
|
13
15
|
* - border style are showing some control default value even actually undefined. styles are coming from container classes but ideally we should set them as default props?
|
|
14
16
|
* - move more props to inner layout component
|
|
15
17
|
*/
|
|
16
|
-
export declare const InternalContainer: (props: ContainerProps) => import("react").JSX.Element;
|
|
18
|
+
export declare const InternalContainer: <T extends ContainerLayout>(props: ContainerProps<T>) => import("react").JSX.Element;
|
|
17
19
|
export declare const SbContainer: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
18
|
-
layout: import("../../properties-panel/props-builder.js").Section<((
|
|
19
|
-
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
20
|
-
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
21
|
-
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
22
|
-
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
23
|
-
readonly rows: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
24
|
-
readonly rowSize: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
25
|
-
}) | (Omit<{
|
|
20
|
+
layout: import("../../properties-panel/props-builder.js").Section<((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ((Omit<{
|
|
26
21
|
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
27
22
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
28
23
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
@@ -34,20 +29,13 @@ export declare const SbContainer: import("react").FC<import("../../properties-pa
|
|
|
34
29
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
35
30
|
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
36
31
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
32
|
+
}) | (Omit<{
|
|
33
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
34
|
+
}, "layout" | "columns" | "rowHeight"> & {
|
|
35
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
36
|
+
readonly rowHeight: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
37
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
37
38
|
}))) & {
|
|
38
|
-
spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
39
|
-
}) & {
|
|
40
|
-
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Padding, true>;
|
|
41
|
-
}) & {
|
|
42
|
-
width: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
43
|
-
height: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
44
|
-
minWidth: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
45
|
-
maxWidth: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
46
|
-
minHeight: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
47
|
-
maxHeight: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
48
|
-
}) & {
|
|
49
|
-
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
50
|
-
}) & {
|
|
51
39
|
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
52
40
|
}) & {
|
|
53
41
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
@@ -57,6 +45,7 @@ export declare const SbContainer: import("react").FC<import("../../properties-pa
|
|
|
57
45
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
58
46
|
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
59
47
|
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
48
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
60
49
|
}>;
|
|
61
50
|
}>>;
|
|
62
51
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
2
|
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
3
3
|
import type { ContainerVariant } from "../../component-base/constants.js";
|
|
4
|
-
import type { Padding } from "@superblocksteam/library-shared/types";
|
|
5
4
|
/**
|
|
6
5
|
* TODO:
|
|
7
6
|
* - make default and options dynamic for distribution and alignment
|
|
@@ -11,14 +10,7 @@ import type { Padding } from "@superblocksteam/library-shared/types";
|
|
|
11
10
|
* - use default func once supported for composite props, apply it to padding, border, borderRadius, and backgroundColor. Otherwise, prop panel control will not show the correct value
|
|
12
11
|
*/
|
|
13
12
|
export declare const propertiesDefinition: {
|
|
14
|
-
layout: Section<((
|
|
15
|
-
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
16
|
-
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
17
|
-
readonly layout: Prop<"freeform", true>;
|
|
18
|
-
readonly columns: Prop<number, true>;
|
|
19
|
-
readonly rows: Prop<number, false>;
|
|
20
|
-
readonly rowSize: Prop<number, false>;
|
|
21
|
-
}) | (Omit<{
|
|
13
|
+
layout: Section<((Record<string, Prop<any, any>> & ((Omit<{
|
|
22
14
|
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
23
15
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
24
16
|
readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
@@ -30,20 +22,13 @@ export declare const propertiesDefinition: {
|
|
|
30
22
|
readonly verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
31
23
|
readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
32
24
|
readonly layout: Prop<"horizontal", true>;
|
|
25
|
+
}) | (Omit<{
|
|
26
|
+
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
27
|
+
}, "layout" | "columns" | "rowHeight"> & {
|
|
28
|
+
readonly columns: Prop<number, true>;
|
|
29
|
+
readonly rowHeight: Prop<Dim<"px">, true>;
|
|
30
|
+
readonly layout: Prop<"freeform", true>;
|
|
33
31
|
}))) & {
|
|
34
|
-
spacing: Prop<Dim<"px">, true>;
|
|
35
|
-
}) & {
|
|
36
|
-
padding: Prop<Padding, true>;
|
|
37
|
-
}) & {
|
|
38
|
-
width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
39
|
-
height: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
40
|
-
minWidth: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
41
|
-
maxWidth: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
42
|
-
minHeight: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
43
|
-
maxHeight: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
44
|
-
}) & {
|
|
45
|
-
margin: Prop<unknown, true>;
|
|
46
|
-
}) & {
|
|
47
32
|
shouldScrollContents: Prop<boolean, true>;
|
|
48
33
|
}) & {
|
|
49
34
|
isVisible: Prop<boolean, true>;
|
|
@@ -53,5 +38,6 @@ export declare const propertiesDefinition: {
|
|
|
53
38
|
backgroundColor: Prop<string, true>;
|
|
54
39
|
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
55
40
|
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
41
|
+
loading: Prop<boolean, true>;
|
|
56
42
|
}>;
|
|
57
43
|
};
|
|
@@ -10,14 +10,14 @@ declare class DatePickerComponent extends React.Component<DatePickerComponentPro
|
|
|
10
10
|
componentDidMount(): void;
|
|
11
11
|
componentDidUpdate(prevProps: DatePickerComponentProps): void;
|
|
12
12
|
getValidDate: (date: string, format: string) => Date | undefined;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
get normalizedDateFormat(): string;
|
|
14
|
+
get normalizedDisplayDateFormat(): string | undefined;
|
|
15
15
|
get valueTimezone(): string;
|
|
16
16
|
get displayTimezone(): string;
|
|
17
17
|
shouldWrapTime: () => boolean;
|
|
18
18
|
handleInteraction: (openState: boolean) => void;
|
|
19
19
|
getInitialMonth: (currentValue: string | undefined | null, minDate: Date | undefined, maxDate: Date | undefined) => Date | undefined;
|
|
20
|
-
|
|
20
|
+
get currentValue(): string | null;
|
|
21
21
|
render(): React.JSX.Element;
|
|
22
22
|
getPopoverFooter: () => React.JSX.Element;
|
|
23
23
|
formatDisplayDate: (date: Date) => string;
|
|
@@ -19,11 +19,13 @@ 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
|
+
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
23
|
+
} & {
|
|
24
|
+
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
22
25
|
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
23
26
|
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
24
27
|
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
25
28
|
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
29
|
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
28
30
|
} & {
|
|
29
31
|
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
@@ -34,6 +36,9 @@ export declare const SbDatePicker: React.FC<import("../../properties-panel/props
|
|
|
34
36
|
labelPosition: import("../../properties-panel/props-builder.js").Prop<"left" | "top", true>;
|
|
35
37
|
labelStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
36
38
|
icon: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
39
|
+
placeholder: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
40
|
+
textStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
41
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
37
42
|
}>;
|
|
38
43
|
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
39
44
|
customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
@@ -21,11 +21,13 @@ export declare const propertiesDefinition: {
|
|
|
21
21
|
twentyFourHourTime: Prop<boolean, true>;
|
|
22
22
|
}>;
|
|
23
23
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
24
|
+
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
25
|
+
} & {
|
|
26
|
+
width: Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
24
27
|
maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
25
28
|
minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
26
29
|
maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
27
30
|
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
31
|
height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
30
32
|
} & {
|
|
31
33
|
margin: Prop<unknown, true>;
|
|
@@ -36,6 +38,9 @@ export declare const propertiesDefinition: {
|
|
|
36
38
|
labelPosition: Prop<"left" | "top", true>;
|
|
37
39
|
labelStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
38
40
|
icon: Prop<string, true>;
|
|
41
|
+
placeholder: Prop<string, true>;
|
|
42
|
+
textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
43
|
+
loading: Prop<boolean, true>;
|
|
39
44
|
}>;
|
|
40
45
|
interaction: Section<Record<string, Prop<any, any>> & {
|
|
41
46
|
customValidationRule: Prop<string, true>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DatePickerType } from "./constants.js";
|
|
2
2
|
import type { Dim } from "@superblocksteam/library-shared";
|
|
3
3
|
import type { ErrorMessagePlacement, WidgetLabelPosition } from "@superblocksteam/library-shared/props";
|
|
4
|
+
import type { Spacing } from "@superblocksteam/library-shared/types";
|
|
4
5
|
export interface DatePickerComponentProps {
|
|
5
6
|
dateFormat: string | undefined;
|
|
6
7
|
enableTimePicker?: boolean;
|
|
@@ -22,6 +23,8 @@ export interface DatePickerComponentProps {
|
|
|
22
23
|
forceOpen?: boolean;
|
|
23
24
|
icon?: string;
|
|
24
25
|
iconSize?: number;
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
inputPadding?: Spacing;
|
|
25
28
|
inputClassName?: string;
|
|
26
29
|
inputStyleOverride?: React.CSSProperties;
|
|
27
30
|
inputLineHeightPx?: number;
|
|
@@ -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
|
*/
|
|
@@ -62,7 +62,7 @@ export interface BaseDropDownComponentProps extends ComponentBaseProps {
|
|
|
62
62
|
inputClassName?: string;
|
|
63
63
|
inputStyleOverride?: React.CSSProperties;
|
|
64
64
|
inputLineHeightPx?: number;
|
|
65
|
-
inputPadding
|
|
65
|
+
inputPadding: Padding;
|
|
66
66
|
parentId?: string;
|
|
67
67
|
options: DropdownOption[];
|
|
68
68
|
isLoading: boolean;
|
|
@@ -17,16 +17,16 @@ export declare const SbDropdown: React.FC<import("../../properties-panel/props-b
|
|
|
17
17
|
icon: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
18
18
|
placeholder: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
19
19
|
textStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
20
|
-
|
|
20
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
21
21
|
}>;
|
|
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>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
2
2
|
import type { DropdownOptionsTransformation, ExternalDropdownOption, OptionValue, TransformedDropdownOption, UnknownOption } from "./types.js";
|
|
3
3
|
import type { InternalProps } from "../../properties-panel/props-builder.js";
|
|
4
|
-
import type { TextStyleWithVariant } from "@superblocksteam/library-shared/types";
|
|
5
4
|
export declare const propertiesDefinition: {
|
|
6
5
|
general: Section<Record<string, Prop<any, any>> & {
|
|
7
6
|
label: Prop<string, true>;
|
|
@@ -15,20 +14,20 @@ export declare const propertiesDefinition: {
|
|
|
15
14
|
}>;
|
|
16
15
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
17
16
|
labelPosition: Prop<"left" | "top", true>;
|
|
18
|
-
labelStyle: Prop<TextStyleWithVariant, true>;
|
|
17
|
+
labelStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
19
18
|
icon: Prop<string, false>;
|
|
20
19
|
placeholder: Prop<string, true>;
|
|
21
|
-
textStyle: Prop<TextStyleWithVariant, true>;
|
|
22
|
-
|
|
20
|
+
textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
21
|
+
loading: Prop<boolean, true>;
|
|
23
22
|
}>;
|
|
24
23
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
25
24
|
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
26
25
|
} & {
|
|
26
|
+
width: Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
27
27
|
maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
28
28
|
minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
29
29
|
maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
30
30
|
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
31
|
height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
33
32
|
} & {
|
|
34
33
|
margin: Prop<unknown, true>;
|
|
@@ -38,7 +37,7 @@ export declare const propertiesDefinition: {
|
|
|
38
37
|
interaction: Section<Record<string, Prop<any, any>> & {
|
|
39
38
|
customValidationRule: Prop<string, true>;
|
|
40
39
|
customErrorMessage: Prop<string, true>;
|
|
41
|
-
|
|
40
|
+
multiselect: Prop<boolean, true>;
|
|
42
41
|
allowSelectAll: Prop<boolean, true>;
|
|
43
42
|
allowClearing: Prop<boolean, true>;
|
|
44
43
|
clientSideFiltering: Prop<boolean, true>;
|