@superblocksteam/library 2.0.3-next.172 → 2.0.3-next.174
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-Bpd3E6xy.js → allPaths-CCZMME3l.js} +2 -2
- package/dist/{allPaths-Bpd3E6xy.js.map → allPaths-CCZMME3l.js.map} +1 -1
- package/dist/{allPaths-BERwnhRf.js → allPaths-CHXNxDVP.js} +2 -2
- package/dist/{allPaths-BERwnhRf.js.map → allPaths-CHXNxDVP.js.map} +1 -1
- package/dist/{allPathsLoader-BSzGdn_4.js → allPathsLoader-DTWFaGcd.js} +3 -3
- package/dist/{allPathsLoader-BSzGdn_4.js.map → allPathsLoader-DTWFaGcd.js.map} +1 -1
- package/dist/{allPathsLoader-C-JCfIgR.js → allPathsLoader-Fr8EhLGp.js} +3 -3
- package/dist/{allPathsLoader-C-JCfIgR.js.map → allPathsLoader-Fr8EhLGp.js.map} +1 -1
- package/dist/{index-CUoqQjDK.js → index-U0oPeutu.js} +33 -275
- package/dist/{index-CUoqQjDK.js.map → index-U0oPeutu.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-bO9xGUBi.js → splitPathsBySizeLoader-DHk6oFvg.js} +2 -2
- package/dist/{splitPathsBySizeLoader-bO9xGUBi.js.map → splitPathsBySizeLoader-DHk6oFvg.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-Bu3ysO2_.js → splitPathsBySizeLoader-PcZVWYaJ.js} +2 -2
- package/dist/{splitPathsBySizeLoader-Bu3ysO2_.js.map → splitPathsBySizeLoader-PcZVWYaJ.js.map} +1 -1
- package/dist-types/lib/user-facing/components/input/index.d.ts +1 -2
- package/dist-types/lib/user-facing/components/input/input-component.d.ts +3 -6
- package/dist-types/lib/user-facing/components/input/props.d.ts +1 -2
- package/dist-types/lib/user-facing/components/input/types.d.ts +1 -1
- package/dist-types/lib/user-facing/components/input/utils.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as clientExports } from "./index-
|
|
2
|
-
import { W, X, Q, K, L, Y, J, Z, $, a0, a1, a2, a3, w, a4, a5, a6, a7, a8, U, a9, P, aa, ab, ac, ad, R, v, S, m, d, e, l, n, k, M, x, q, s, f, i, g, w as w2, c, o, j, h, u, t, A, ae, af, ag, ah, ai, T, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, y, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, H, aT, aU, aV, aW, aX, aY, C, aZ, a_, a$, b0, b1, E, b2, b3, z, b4, b5, b6, r, G, F, b7, b8, b9, O, B, D, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, N, bH } from "./index-
|
|
1
|
+
import { V as clientExports } from "./index-U0oPeutu.js";
|
|
2
|
+
import { W, X, Q, K, L, Y, J, Z, $, a0, a1, a2, a3, w, a4, a5, a6, a7, a8, U, a9, P, aa, ab, ac, ad, R, v, S, m, d, e, l, n, k, M, x, q, s, f, i, g, w as w2, c, o, j, h, u, t, A, ae, af, ag, ah, ai, T, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, y, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, H, aT, aU, aV, aW, aX, aY, C, aZ, a_, a$, b0, b1, E, b2, b3, z, b4, b5, b6, r, G, F, b7, b8, b9, O, B, D, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, N, bH } from "./index-U0oPeutu.js";
|
|
3
3
|
const createRoot = clientExports.createRoot;
|
|
4
4
|
export {
|
|
5
5
|
W as Await,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-U0oPeutu.js";
|
|
2
2
|
var splitPathsBySizeLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var key, pathsRecord;
|
|
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
|
|
|
31
31
|
export {
|
|
32
32
|
splitPathsBySizeLoader
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=splitPathsBySizeLoader-
|
|
34
|
+
//# sourceMappingURL=splitPathsBySizeLoader-DHk6oFvg.js.map
|
package/dist/{splitPathsBySizeLoader-bO9xGUBi.js.map → splitPathsBySizeLoader-DHk6oFvg.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-DHk6oFvg.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.20.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-U0oPeutu.js";
|
|
2
2
|
var splitPathsBySizeLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var key, pathsRecord;
|
|
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
|
|
|
31
31
|
export {
|
|
32
32
|
splitPathsBySizeLoader
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=splitPathsBySizeLoader-
|
|
34
|
+
//# sourceMappingURL=splitPathsBySizeLoader-PcZVWYaJ.js.map
|
package/dist/{splitPathsBySizeLoader-Bu3ysO2_.js.map → splitPathsBySizeLoader-PcZVWYaJ.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-PcZVWYaJ.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.18.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -28,9 +28,8 @@ export declare const SbInput: import("react").FC<import("../../properties-panel/
|
|
|
28
28
|
iconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
29
29
|
} & Omit<{
|
|
30
30
|
inputType: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
31
|
-
}, "inputType"
|
|
31
|
+
}, "inputType"> & {
|
|
32
32
|
inputType: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
33
|
-
multiline: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
34
33
|
} & {
|
|
35
34
|
loadingAnimation: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
36
35
|
}>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { NumericInput
|
|
1
|
+
import { NumericInput } from "@blueprintjs/core";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import type { InputComponentProps, InputType } from "./types.js";
|
|
4
4
|
export declare const hasIconSupport: (inputType: InputType) => boolean;
|
|
5
5
|
declare class InputComponent extends React.Component<InputComponentProps, InputComponentState> {
|
|
6
|
-
textareaRef: React.RefObject<TextArea>;
|
|
7
6
|
numericInputRef: React.RefObject<NumericInput>;
|
|
8
7
|
inputRef: React.RefObject<HTMLInputElement>;
|
|
9
8
|
groupWrapperRef: React.RefObject<HTMLDivElement>;
|
|
@@ -13,17 +12,16 @@ declare class InputComponent extends React.Component<InputComponentProps, InputC
|
|
|
13
12
|
componentWillUnmount(): void;
|
|
14
13
|
shouldComponentUpdate(prevProps: Readonly<InputComponentProps>, prevState: Readonly<InputComponentState>): boolean;
|
|
15
14
|
onDebouncedValueChange: import("lodash").DebouncedFunc<(value: any) => void>;
|
|
16
|
-
getInputDomElement: () => HTMLInputElement |
|
|
15
|
+
getInputDomElement: () => HTMLInputElement | null | undefined;
|
|
17
16
|
ensureFocus: () => void;
|
|
18
17
|
onFocus: () => void;
|
|
19
18
|
onBlur: () => void;
|
|
20
19
|
formatNumber: (value: string) => string;
|
|
21
20
|
valueWithPrecision: (value: string | number) => string;
|
|
22
|
-
onTextChange: (event: React.ChangeEvent<HTMLInputElement>
|
|
21
|
+
onTextChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
23
22
|
onNumberChange: (_: number, valueAsString: string) => void;
|
|
24
23
|
getIcon(inputType: InputType): "search" | "envelope" | "phone" | undefined;
|
|
25
24
|
getType(inputType: InputType): "text" | "search" | "email" | "password";
|
|
26
|
-
onKeyDownTextArea: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
27
25
|
onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
28
26
|
handleIncrementDecrement: (isIncrementing: boolean) => void;
|
|
29
27
|
private getClassNames;
|
|
@@ -44,7 +42,6 @@ declare class InputComponent extends React.Component<InputComponentProps, InputC
|
|
|
44
42
|
private getStyleObject;
|
|
45
43
|
private createCssVariablesForPadding;
|
|
46
44
|
private numericInputComponent;
|
|
47
|
-
private textAreaInputComponent;
|
|
48
45
|
private passwordIconComponent;
|
|
49
46
|
private textInputComponent;
|
|
50
47
|
private renderInputComponent;
|
|
@@ -32,9 +32,8 @@ export declare const propertiesDefinition: {
|
|
|
32
32
|
iconPosition: Prop<IconPosition, true>;
|
|
33
33
|
} & Omit<{
|
|
34
34
|
inputType: Prop<string, false>;
|
|
35
|
-
}, "inputType"
|
|
35
|
+
}, "inputType"> & {
|
|
36
36
|
inputType: Prop<string, true>;
|
|
37
|
-
multiline: Prop<boolean, true>;
|
|
38
37
|
} & {
|
|
39
38
|
loadingAnimation: Prop<boolean, true>;
|
|
40
39
|
}>;
|
|
@@ -14,7 +14,7 @@ export interface InputGroupStylingProps {
|
|
|
14
14
|
defaultBorderWidth: Dim<"px">;
|
|
15
15
|
padding?: Padding;
|
|
16
16
|
}
|
|
17
|
-
export type InputComponentProps = Pick<InputWidgetProps, "inputType" | "numberFormatting" | "isDisabled" | "backgroundColor" | "border" | "labelWidth" | "
|
|
17
|
+
export type InputComponentProps = Pick<InputWidgetProps, "inputType" | "numberFormatting" | "isDisabled" | "backgroundColor" | "border" | "labelWidth" | "label" | "stepper" | "stepSize" | "onSubmit" | "isTouched" | "onFocusOut" | "onFocus" | "isValid" | "minimumFractionDigits" | "maximumFractionDigits" | "preventFormattingWhileTyping" | "defaultValue" | "isInvalid" | "isLoading" | "icon" | "iconPosition" | "currency" | "currencyCodeDisplay" | "minLength" | "maxLength" | "errorMessagePlacement" | "showError" | "isFocused" | "isRequired"> & {
|
|
18
18
|
placeholder: string;
|
|
19
19
|
value: string;
|
|
20
20
|
inputGroupStylingProps: InputGroupStylingProps;
|
|
@@ -7,7 +7,7 @@ export declare const useInputClassNames: ({ isInvalid, isDisabled, isLoading, in
|
|
|
7
7
|
withStyledBorders?: boolean;
|
|
8
8
|
}) => string;
|
|
9
9
|
export declare const sanitizeNumericInputValue: (value: number | string, isPercentInput: boolean) => string;
|
|
10
|
-
export declare const useIconTop: ({ border, padding,
|
|
10
|
+
export declare const useIconTop: ({ border, padding, iconHeight, inputHeight, }: Pick<InputWidgetProps, "border" | "padding" | "iconHeight" | "inputHeight">) => number;
|
|
11
11
|
export declare const useInputIconSize: ({ textStyle, }: {
|
|
12
12
|
textStyle?: TextStyleWithVariant;
|
|
13
13
|
}) => number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library",
|
|
3
|
-
"version": "2.0.3-next.
|
|
3
|
+
"version": "2.0.3-next.174",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@react-hook/resize-observer": "1.2.6",
|
|
33
33
|
"@superblocksteam/fast-deep-equal": "3.1.4",
|
|
34
34
|
"@superblocksteam/iso-currency": "2.0.0",
|
|
35
|
-
"@superblocksteam/library-shared": "2.0.3-next.
|
|
35
|
+
"@superblocksteam/library-shared": "2.0.3-next.174",
|
|
36
36
|
"@superblocksteam/shared": "0.9122.0",
|
|
37
37
|
"antd": "4.24.15",
|
|
38
38
|
"apca-w3": "^0.1.9",
|