@superblocksteam/library 2.0.3-next.129 → 2.0.3-next.131
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-BH0DKSxA.js → allPaths-DhMr2F9C.js} +2 -2
- package/dist/{allPaths-BH0DKSxA.js.map → allPaths-DhMr2F9C.js.map} +1 -1
- package/dist/{allPaths-F6GZkvxD.js → allPaths-ippjs5AI.js} +2 -2
- package/dist/{allPaths-F6GZkvxD.js.map → allPaths-ippjs5AI.js.map} +1 -1
- package/dist/{allPathsLoader-B3FzEE6v.js → allPathsLoader-CvJPIJFI.js} +3 -3
- package/dist/{allPathsLoader-B3FzEE6v.js.map → allPathsLoader-CvJPIJFI.js.map} +1 -1
- package/dist/{allPathsLoader-CPfNk8yv.js → allPathsLoader-Da1mp37W.js} +3 -3
- package/dist/{allPathsLoader-CPfNk8yv.js.map → allPathsLoader-Da1mp37W.js.map} +1 -1
- package/dist/{index-ByxiFYSo.js → index-Bt1y8KPX.js} +166 -111
- package/dist/{index-ByxiFYSo.js.map → index-Bt1y8KPX.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-DTQ0e96j.js → splitPathsBySizeLoader-Ci4oycou.js} +2 -2
- package/dist/{splitPathsBySizeLoader-DTQ0e96j.js.map → splitPathsBySizeLoader-Ci4oycou.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-CZXCHUIN.js → splitPathsBySizeLoader-CiNxJcag.js} +2 -2
- package/dist/{splitPathsBySizeLoader-CZXCHUIN.js.map → splitPathsBySizeLoader-CiNxJcag.js.map} +1 -1
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +3 -10
- 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/date-picker/index.d.ts +1 -0
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +1 -0
- 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/switch/switch-component.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +2 -2
- package/dist-types/lib/user-facing/state/create-entity-proxy.d.ts +1 -0
- package/dist-types/lib/user-facing/state/create-scope.d.ts +6 -2
- package/package.json +3 -3
- package/dist-types/lib/user-facing/components/checkbox/constants.d.ts +0 -2
- package/dist-types/lib/user-facing/components/switch/constants.d.ts +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as IconSvgPaths16 } from "./index-DIJYif9G.js";
|
|
2
2
|
import { I as IconSvgPaths20 } from "./index-LHtbj0-V.js";
|
|
3
|
-
import { p as pascalCase, I as IconSize } from "./index-
|
|
3
|
+
import { p as pascalCase, I as IconSize } from "./index-Bt1y8KPX.js";
|
|
4
4
|
function getIconPaths(name, size) {
|
|
5
5
|
var key = pascalCase(name);
|
|
6
6
|
return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
getIconPaths,
|
|
15
15
|
iconNameToPathsRecordKey
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=allPaths-
|
|
17
|
+
//# sourceMappingURL=allPaths-DhMr2F9C.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-DhMr2F9C.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/allPaths.js"],"sourcesContent":["/*\n * Copyright 2021 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 { pascalCase } from \"change-case\";\nimport * as IconSvgPaths16 from \"./generated/16px/paths\";\nimport * as IconSvgPaths20 from \"./generated/20px/paths\";\nimport { IconSize } from \"./iconTypes\";\nexport { IconSvgPaths16, IconSvgPaths20 };\n/**\n * Get the list of vector paths that define a given icon. These path strings are used to render `<path>`\n * elements inside an `<svg>` icon element. For full implementation details and nuances, see the icon component\n * handlebars template and `generate-icon-components` script in the __@blueprintjs/icons__ package.\n *\n * Note: this function loads all icon definitions __statically__, which means every icon is included in your\n * JS bundle. Only use this API if your app is likely to use all Blueprint icons at runtime. If you are looking for a\n * dynamic icon loader which loads icon definitions on-demand, use `{ Icons } from \"@blueprintjs/icons\"` instead.\n */\nexport function getIconPaths(name, size) {\n var key = pascalCase(name);\n return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];\n}\n/**\n * Type safe string literal conversion of snake-case icon names to PascalCase icon names.\n * This is useful for indexing into the SVG paths record to extract a single icon's SVG path definition.\n *\n * @deprecated use `getIconPaths` instead\n */\nexport function iconNameToPathsRecordKey(name) {\n return pascalCase(name);\n}\n//# sourceMappingURL=allPaths.js.map"],"names":[],"mappings":";;;AA6BO,SAAS,aAAa,MAAM,MAAM;AACrC,MAAI,MAAM,WAAW,IAAI;AACzB,SAAO,SAAS,SAAS,WAAW,eAAe,GAAG,IAAI,eAAe,GAAG;AAChF;AAOO,SAAS,yBAAyB,MAAM;AAC3C,SAAO,WAAW,IAAI;AAC1B;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as IconSvgPaths16 } from "./index-BxzKdlqH.js";
|
|
2
2
|
import { I as IconSvgPaths20 } from "./index-DIn-fanT.js";
|
|
3
|
-
import { p as pascalCase, b as IconSize } from "./index-
|
|
3
|
+
import { p as pascalCase, b as IconSize } from "./index-Bt1y8KPX.js";
|
|
4
4
|
function getIconPaths(name, size) {
|
|
5
5
|
var key = pascalCase(name);
|
|
6
6
|
return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
getIconPaths,
|
|
15
15
|
iconNameToPathsRecordKey
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=allPaths-
|
|
17
|
+
//# sourceMappingURL=allPaths-ippjs5AI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-ippjs5AI.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/allPaths.js"],"sourcesContent":["/*\n * Copyright 2021 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 { pascalCase } from \"change-case\";\nimport * as IconSvgPaths16 from \"./generated/16px/paths\";\nimport * as IconSvgPaths20 from \"./generated/20px/paths\";\nimport { IconSize } from \"./iconTypes\";\nexport { IconSvgPaths16, IconSvgPaths20 };\n/**\n * Get the list of vector paths that define a given icon. These path strings are used to render `<path>`\n * elements inside an `<svg>` icon element. For full implementation details and nuances, see the icon component\n * handlebars template and `generate-icon-components` script in the __@blueprintjs/icons__ package.\n *\n * Note: this function loads all icon definitions __statically__, which means every icon is included in your\n * JS bundle. Only use this API if your app is likely to use all Blueprint icons at runtime. If you are looking for a\n * dynamic icon loader which loads icon definitions on-demand, use `{ Icons } from \"@blueprintjs/icons\"` instead.\n */\nexport function getIconPaths(name, size) {\n var key = pascalCase(name);\n return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];\n}\n/**\n * Type safe string literal conversion of snake-case icon names to PascalCase icon names.\n * This is useful for indexing into the SVG paths record to extract a single icon's SVG path definition.\n *\n * @deprecated use `getIconPaths` instead\n */\nexport function iconNameToPathsRecordKey(name) {\n return pascalCase(name);\n}\n//# sourceMappingURL=allPaths.js.map"],"names":[],"mappings":";;;AA6BO,SAAS,aAAa,MAAM,MAAM;AACrC,MAAI,MAAM,WAAW,IAAI;AACzB,SAAO,SAAS,SAAS,WAAW,eAAe,GAAG,IAAI,eAAe,GAAG;AAChF;AAOO,SAAS,yBAAyB,MAAM;AAC3C,SAAO,WAAW,IAAI;AAC1B;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator } from "./index-Bt1y8KPX.js";
|
|
2
2
|
var allPathsLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var getIconPaths;
|
|
@@ -7,7 +7,7 @@ var allPathsLoader = function(name, size) {
|
|
|
7
7
|
case 0:
|
|
8
8
|
return [4, import(
|
|
9
9
|
/* webpackChunkName: "blueprint-icons-all-paths" */
|
|
10
|
-
"./allPaths-
|
|
10
|
+
"./allPaths-ippjs5AI.js"
|
|
11
11
|
)];
|
|
12
12
|
case 1:
|
|
13
13
|
getIconPaths = _a.sent().getIconPaths;
|
|
@@ -19,4 +19,4 @@ var allPathsLoader = function(name, size) {
|
|
|
19
19
|
export {
|
|
20
20
|
allPathsLoader
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=allPathsLoader-
|
|
22
|
+
//# sourceMappingURL=allPathsLoader-CvJPIJFI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-CvJPIJFI.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/allPathsLoader.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\";\n/**\n * A simple module loader which concatenates all icon paths into a single chunk.\n */\nexport var allPathsLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var getIconPaths;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-all-paths\" */\n \"../allPaths\")];\n case 1:\n getIconPaths = (_a.sent()).getIconPaths;\n return [2 /*return*/, getIconPaths(name, size)];\n }\n });\n}); };\n//# sourceMappingURL=allPathsLoader.js.map"],"names":[],"mappings":";AAmBU,IAAC,iBAAiB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AACrG,QAAI;AACJ,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAa,CAAC;AAAA,QAClB,KAAK;AACD,yBAAgB,GAAG,KAAI,EAAI;AAC3B,iBAAO,CAAC,GAAc,aAAa,MAAM,IAAI,CAAC;AAAA,MAC9D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator } from "./index-Bt1y8KPX.js";
|
|
2
2
|
var allPathsLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var getIconPaths;
|
|
@@ -7,7 +7,7 @@ var allPathsLoader = function(name, size) {
|
|
|
7
7
|
case 0:
|
|
8
8
|
return [4, import(
|
|
9
9
|
/* webpackChunkName: "blueprint-icons-all-paths" */
|
|
10
|
-
"./allPaths-
|
|
10
|
+
"./allPaths-DhMr2F9C.js"
|
|
11
11
|
)];
|
|
12
12
|
case 1:
|
|
13
13
|
getIconPaths = _a.sent().getIconPaths;
|
|
@@ -19,4 +19,4 @@ var allPathsLoader = function(name, size) {
|
|
|
19
19
|
export {
|
|
20
20
|
allPathsLoader
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=allPathsLoader-
|
|
22
|
+
//# sourceMappingURL=allPathsLoader-Da1mp37W.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-Da1mp37W.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/allPathsLoader.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\";\n/**\n * A simple module loader which concatenates all icon paths into a single chunk.\n */\nexport var allPathsLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var getIconPaths;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-all-paths\" */\n \"../allPaths\")];\n case 1:\n getIconPaths = (_a.sent()).getIconPaths;\n return [2 /*return*/, getIconPaths(name, size)];\n }\n });\n}); };\n//# sourceMappingURL=allPathsLoader.js.map"],"names":[],"mappings":";AAmBU,IAAC,iBAAiB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AACrG,QAAI;AACJ,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAa,CAAC;AAAA,QAClB,KAAK;AACD,yBAAgB,GAAG,KAAI,EAAI;AAC3B,iBAAO,CAAC,GAAc,aAAa,MAAM,IAAI,CAAC;AAAA,MAC9D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -2703,14 +2703,14 @@ function getLoaderFn$1(options) {
|
|
|
2703
2703
|
if (!(loader === "all")) return [3, 3];
|
|
2704
2704
|
return [4, import(
|
|
2705
2705
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
2706
|
-
"./allPathsLoader-
|
|
2706
|
+
"./allPathsLoader-Da1mp37W.js"
|
|
2707
2707
|
)];
|
|
2708
2708
|
case 2:
|
|
2709
2709
|
return [2, _b2.sent().allPathsLoader];
|
|
2710
2710
|
case 3:
|
|
2711
2711
|
return [4, import(
|
|
2712
2712
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
2713
|
-
"./splitPathsBySizeLoader-
|
|
2713
|
+
"./splitPathsBySizeLoader-CiNxJcag.js"
|
|
2714
2714
|
)];
|
|
2715
2715
|
case 4:
|
|
2716
2716
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -109118,11 +109118,96 @@ const createBindableEntityProxy = (entity, identifier2) => {
|
|
|
109118
109118
|
}
|
|
109119
109119
|
);
|
|
109120
109120
|
};
|
|
109121
|
+
function createEntityProxy$1(entities, entityName) {
|
|
109122
|
+
return new Proxy(
|
|
109123
|
+
{},
|
|
109124
|
+
{
|
|
109125
|
+
get(_target, prop) {
|
|
109126
|
+
const entity = entities[entityName];
|
|
109127
|
+
return entity == null ? void 0 : entity[prop];
|
|
109128
|
+
},
|
|
109129
|
+
set(_target, prop, value) {
|
|
109130
|
+
const entity = entities[entityName];
|
|
109131
|
+
if (!entity) {
|
|
109132
|
+
return false;
|
|
109133
|
+
}
|
|
109134
|
+
entity[prop] = value;
|
|
109135
|
+
return true;
|
|
109136
|
+
},
|
|
109137
|
+
deleteProperty(_target, prop) {
|
|
109138
|
+
const entity = entities[entityName];
|
|
109139
|
+
if (!entity) {
|
|
109140
|
+
return false;
|
|
109141
|
+
}
|
|
109142
|
+
delete entity[prop];
|
|
109143
|
+
return true;
|
|
109144
|
+
},
|
|
109145
|
+
has(_target, prop) {
|
|
109146
|
+
const entity = entities[entityName];
|
|
109147
|
+
if (!entity) {
|
|
109148
|
+
return false;
|
|
109149
|
+
}
|
|
109150
|
+
return prop in entity;
|
|
109151
|
+
},
|
|
109152
|
+
ownKeys(_target) {
|
|
109153
|
+
const entity = entities[entityName];
|
|
109154
|
+
if (!entity) {
|
|
109155
|
+
return [];
|
|
109156
|
+
}
|
|
109157
|
+
return Object.keys(entity);
|
|
109158
|
+
},
|
|
109159
|
+
getOwnPropertyDescriptor(_target, prop) {
|
|
109160
|
+
const entity = entities[entityName];
|
|
109161
|
+
if (!entity) {
|
|
109162
|
+
return void 0;
|
|
109163
|
+
}
|
|
109164
|
+
return Object.getOwnPropertyDescriptor(entity, prop);
|
|
109165
|
+
},
|
|
109166
|
+
defineProperty(_target, prop, descriptor) {
|
|
109167
|
+
const entity = entities[entityName];
|
|
109168
|
+
if (!entity) {
|
|
109169
|
+
return false;
|
|
109170
|
+
}
|
|
109171
|
+
return Object.defineProperty(entity, prop, descriptor);
|
|
109172
|
+
},
|
|
109173
|
+
preventExtensions(_target) {
|
|
109174
|
+
const entity = entities[entityName];
|
|
109175
|
+
if (!entity) {
|
|
109176
|
+
return false;
|
|
109177
|
+
}
|
|
109178
|
+
Object.preventExtensions(entity);
|
|
109179
|
+
return true;
|
|
109180
|
+
},
|
|
109181
|
+
isExtensible(_target) {
|
|
109182
|
+
const entity = entities[entityName];
|
|
109183
|
+
if (!entity) {
|
|
109184
|
+
return false;
|
|
109185
|
+
}
|
|
109186
|
+
return Object.isExtensible(entity);
|
|
109187
|
+
},
|
|
109188
|
+
getPrototypeOf(_target) {
|
|
109189
|
+
const entity = entities[entityName];
|
|
109190
|
+
if (!entity) {
|
|
109191
|
+
return null;
|
|
109192
|
+
}
|
|
109193
|
+
return Object.getPrototypeOf(entity);
|
|
109194
|
+
},
|
|
109195
|
+
setPrototypeOf(_target, proto4) {
|
|
109196
|
+
const entity = entities[entityName];
|
|
109197
|
+
if (!entity) {
|
|
109198
|
+
return false;
|
|
109199
|
+
}
|
|
109200
|
+
Object.setPrototypeOf(entity, proto4);
|
|
109201
|
+
return true;
|
|
109202
|
+
}
|
|
109203
|
+
}
|
|
109204
|
+
);
|
|
109205
|
+
}
|
|
109121
109206
|
const existingScopeIds = /* @__PURE__ */ new Set();
|
|
109122
|
-
function internalCreateScope(
|
|
109123
|
-
return createSbScope(
|
|
109207
|
+
function internalCreateScope(getInitialEntities, options) {
|
|
109208
|
+
return createSbScope(getInitialEntities, options);
|
|
109124
109209
|
}
|
|
109125
|
-
function createSbScope(
|
|
109210
|
+
function createSbScope(getInitialEntities, options) {
|
|
109126
109211
|
const { parentScopeId, name } = options;
|
|
109127
109212
|
if (!name) {
|
|
109128
109213
|
throw new Error("Scope name is required");
|
|
@@ -109163,9 +109248,17 @@ function createSbScope(initialEntities, options) {
|
|
|
109163
109248
|
}
|
|
109164
109249
|
}
|
|
109165
109250
|
);
|
|
109251
|
+
const lazyEntities = new Proxy({}, {
|
|
109252
|
+
get(_target, key2) {
|
|
109253
|
+
if (typeof key2 !== "string") {
|
|
109254
|
+
return void 0;
|
|
109255
|
+
}
|
|
109256
|
+
return createEntityProxy$1(entities, key2);
|
|
109257
|
+
}
|
|
109258
|
+
});
|
|
109166
109259
|
return {
|
|
109167
109260
|
entities,
|
|
109168
|
-
initialEntities,
|
|
109261
|
+
initialEntities: getInitialEntities({ entities: lazyEntities }),
|
|
109169
109262
|
scopeInfo: {
|
|
109170
109263
|
scopeId,
|
|
109171
109264
|
name,
|
|
@@ -109262,13 +109355,10 @@ function registerScope(Component3, scopeDef, options) {
|
|
|
109262
109355
|
};
|
|
109263
109356
|
return ScopedComponent;
|
|
109264
109357
|
}
|
|
109265
|
-
const InternalGlobalScope = internalCreateScope(
|
|
109266
|
-
|
|
109267
|
-
|
|
109268
|
-
|
|
109269
|
-
scopeId: GLOBAL_SCOPE_ID
|
|
109270
|
-
}
|
|
109271
|
-
);
|
|
109358
|
+
const InternalGlobalScope = internalCreateScope(() => ({}), {
|
|
109359
|
+
name: GLOBAL_SCOPE_ID,
|
|
109360
|
+
scopeId: GLOBAL_SCOPE_ID
|
|
109361
|
+
});
|
|
109272
109362
|
const GlobalScope = registerScope(
|
|
109273
109363
|
({ children }) => {
|
|
109274
109364
|
const { theme } = useTheme();
|
|
@@ -121258,6 +121348,33 @@ const getFontFamilyOptions = (themeFontFamilies) => {
|
|
|
121258
121348
|
options.sort((a3, b3) => a3.value.localeCompare(b3.value));
|
|
121259
121349
|
return options;
|
|
121260
121350
|
};
|
|
121351
|
+
const DEFAULT_INPUT_WIDGET_LABEL_STYLE_VARIANT = "inputLabel";
|
|
121352
|
+
const DEFAULT_INPUT_WIDGET_INPUT_STYLE_VARIANT = "inputText";
|
|
121353
|
+
const useLabelProps = ({
|
|
121354
|
+
labelStyle: labelStyle2
|
|
121355
|
+
}) => {
|
|
121356
|
+
const { theme } = useTheme();
|
|
121357
|
+
return useTypographyStyling({
|
|
121358
|
+
textStyle: labelStyle2,
|
|
121359
|
+
defaultTextStyleVariant: DEFAULT_INPUT_WIDGET_LABEL_STYLE_VARIANT,
|
|
121360
|
+
applyClassNameStylesToStyle: true,
|
|
121361
|
+
theme
|
|
121362
|
+
});
|
|
121363
|
+
};
|
|
121364
|
+
const useInputTypographyProps = ({
|
|
121365
|
+
backgroundColor,
|
|
121366
|
+
textStyle: textStyle2
|
|
121367
|
+
}) => {
|
|
121368
|
+
const { theme } = useTheme();
|
|
121369
|
+
const inputBaseStyle = backgroundColor ? { backgroundColor } : {};
|
|
121370
|
+
return useTypographyStyling({
|
|
121371
|
+
textStyle: textStyle2,
|
|
121372
|
+
defaultTextStyleVariant: DEFAULT_INPUT_WIDGET_INPUT_STYLE_VARIANT,
|
|
121373
|
+
applyClassNameStylesToStyle: true,
|
|
121374
|
+
priorityStyle: inputBaseStyle,
|
|
121375
|
+
theme
|
|
121376
|
+
});
|
|
121377
|
+
};
|
|
121261
121378
|
const createTextStyleCompositeBase = () => ({
|
|
121262
121379
|
variant: Prop.string(),
|
|
121263
121380
|
textColor: Prop.composite({
|
|
@@ -121352,6 +121469,19 @@ const textStyleProp = ({
|
|
|
121352
121469
|
...basePropertiesPaneDisplay,
|
|
121353
121470
|
...propertiesPanel
|
|
121354
121471
|
});
|
|
121472
|
+
const labelTextStyle = () => textStyleProp({
|
|
121473
|
+
propertiesPanel: {
|
|
121474
|
+
label: "Label style",
|
|
121475
|
+
isVisible: function() {
|
|
121476
|
+
return !!this.label;
|
|
121477
|
+
}
|
|
121478
|
+
}
|
|
121479
|
+
}).default(() => ({
|
|
121480
|
+
variant: DEFAULT_INPUT_WIDGET_LABEL_STYLE_VARIANT,
|
|
121481
|
+
textColor: {
|
|
121482
|
+
default: Theme.colors.neutral900
|
|
121483
|
+
}
|
|
121484
|
+
}));
|
|
121355
121485
|
const perSideBorderDef = () => Prop.composite({
|
|
121356
121486
|
color: Prop.string().readAndWrite(),
|
|
121357
121487
|
width: Prop.dimension().readAndWrite(),
|
|
@@ -122693,33 +122823,6 @@ const SbColumn = registerSbComponent(
|
|
|
122693
122823
|
);
|
|
122694
122824
|
}
|
|
122695
122825
|
);
|
|
122696
|
-
const DEFAULT_INPUT_WIDGET_LABEL_STYLE_VARIANT = "inputLabel";
|
|
122697
|
-
const DEFAULT_INPUT_WIDGET_INPUT_STYLE_VARIANT = "inputText";
|
|
122698
|
-
const useLabelProps = ({
|
|
122699
|
-
labelStyle: labelStyle2
|
|
122700
|
-
}) => {
|
|
122701
|
-
const { theme } = useTheme();
|
|
122702
|
-
return useTypographyStyling({
|
|
122703
|
-
textStyle: labelStyle2,
|
|
122704
|
-
defaultTextStyleVariant: DEFAULT_INPUT_WIDGET_LABEL_STYLE_VARIANT,
|
|
122705
|
-
applyClassNameStylesToStyle: true,
|
|
122706
|
-
theme
|
|
122707
|
-
});
|
|
122708
|
-
};
|
|
122709
|
-
const useInputTypographyProps = ({
|
|
122710
|
-
backgroundColor,
|
|
122711
|
-
textStyle: textStyle2
|
|
122712
|
-
}) => {
|
|
122713
|
-
const { theme } = useTheme();
|
|
122714
|
-
const inputBaseStyle = backgroundColor ? { backgroundColor } : {};
|
|
122715
|
-
return useTypographyStyling({
|
|
122716
|
-
textStyle: textStyle2,
|
|
122717
|
-
defaultTextStyleVariant: DEFAULT_INPUT_WIDGET_INPUT_STYLE_VARIANT,
|
|
122718
|
-
applyClassNameStylesToStyle: true,
|
|
122719
|
-
priorityStyle: inputBaseStyle,
|
|
122720
|
-
theme
|
|
122721
|
-
});
|
|
122722
|
-
};
|
|
122723
122826
|
/*!
|
|
122724
122827
|
* decimal.js v10.5.0
|
|
122725
122828
|
* An arbitrary-precision Decimal type for JavaScript.
|
|
@@ -128390,7 +128493,7 @@ const labelStyleRaw$1 = {
|
|
|
128390
128493
|
margin: 8px ${WIDGET_PADDING * 2}px 4px 0;
|
|
128391
128494
|
`
|
|
128392
128495
|
};
|
|
128393
|
-
const labelStyle
|
|
128496
|
+
const labelStyle = {
|
|
128394
128497
|
vertical: Ae$1`
|
|
128395
128498
|
${labelStyleRaw$1.vertical}
|
|
128396
128499
|
`,
|
|
@@ -130099,22 +130202,6 @@ const textStyle$2 = textStyleProp({
|
|
|
130099
130202
|
}
|
|
130100
130203
|
})
|
|
130101
130204
|
);
|
|
130102
|
-
const labelStyle$1 = textStyleProp({
|
|
130103
|
-
baseProp: baseTextStyleProp$1,
|
|
130104
|
-
propertiesPanel: {
|
|
130105
|
-
label: "Label style",
|
|
130106
|
-
isVisible: function() {
|
|
130107
|
-
return !!this.label;
|
|
130108
|
-
}
|
|
130109
|
-
}
|
|
130110
|
-
}).default(
|
|
130111
|
-
() => ({
|
|
130112
|
-
variant: DEFAULT_INPUT_WIDGET_LABEL_STYLE_VARIANT,
|
|
130113
|
-
textColor: {
|
|
130114
|
-
default: Theme.colors.neutral900
|
|
130115
|
-
}
|
|
130116
|
-
})
|
|
130117
|
-
);
|
|
130118
130205
|
const propertiesDefinition$f = {
|
|
130119
130206
|
general: Section.category(PropsPanelCategory.Content).children({
|
|
130120
130207
|
label: Prop.string().readAndWrite().default("").propertiesPanel({
|
|
@@ -130185,7 +130272,7 @@ const propertiesDefinition$f = {
|
|
|
130185
130272
|
}),
|
|
130186
130273
|
appearance: Section.category(PropsPanelCategory.Appearance).add({
|
|
130187
130274
|
labelPosition,
|
|
130188
|
-
labelStyle:
|
|
130275
|
+
labelStyle: labelTextStyle(),
|
|
130189
130276
|
placeholderText: Prop.string().readAndWrite().default("Enter text").propertiesPanel({
|
|
130190
130277
|
helpText: "Sets a placeholder text for the input",
|
|
130191
130278
|
label: "Placeholder",
|
|
@@ -147855,14 +147942,14 @@ function getLoaderFn(options) {
|
|
|
147855
147942
|
if (!(loader === "all")) return [3, 3];
|
|
147856
147943
|
return [4, import(
|
|
147857
147944
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
147858
|
-
"./allPathsLoader-
|
|
147945
|
+
"./allPathsLoader-CvJPIJFI.js"
|
|
147859
147946
|
)];
|
|
147860
147947
|
case 2:
|
|
147861
147948
|
return [2, _b2.sent().allPathsLoader];
|
|
147862
147949
|
case 3:
|
|
147863
147950
|
return [4, import(
|
|
147864
147951
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
147865
|
-
"./splitPathsBySizeLoader-
|
|
147952
|
+
"./splitPathsBySizeLoader-Ci4oycou.js"
|
|
147866
147953
|
)];
|
|
147867
147954
|
case 4:
|
|
147868
147955
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -177571,7 +177658,7 @@ const StyledControlGroup = qe$1(ControlGroup)`
|
|
|
177571
177658
|
${(props) => props.vertical ? Ae$1`
|
|
177572
177659
|
margin: 12px 0px 4px 0;
|
|
177573
177660
|
` : Ae$1`
|
|
177574
|
-
${labelStyle
|
|
177661
|
+
${labelStyle.horizontal}
|
|
177575
177662
|
flex-basis: var(--label-width);
|
|
177576
177663
|
`}
|
|
177577
177664
|
|
|
@@ -178287,22 +178374,6 @@ const textStyle = textStyleProp({
|
|
|
178287
178374
|
}
|
|
178288
178375
|
})
|
|
178289
178376
|
);
|
|
178290
|
-
const labelStyle = textStyleProp({
|
|
178291
|
-
baseProp: baseTextStyleProp,
|
|
178292
|
-
propertiesPanel: {
|
|
178293
|
-
label: "Label style",
|
|
178294
|
-
isVisible: function() {
|
|
178295
|
-
return !!this.label;
|
|
178296
|
-
}
|
|
178297
|
-
}
|
|
178298
|
-
}).default(
|
|
178299
|
-
() => ({
|
|
178300
|
-
variant: DEFAULT_INPUT_WIDGET_LABEL_STYLE_VARIANT,
|
|
178301
|
-
textColor: {
|
|
178302
|
-
default: Theme.colors.neutral900
|
|
178303
|
-
}
|
|
178304
|
-
})
|
|
178305
|
-
);
|
|
178306
178377
|
const propertiesDefinition$9 = {
|
|
178307
178378
|
general: Section.category(PropsPanelCategory.Content).children({
|
|
178308
178379
|
label: Prop.string().readAndWrite().default("").propertiesPanel({
|
|
@@ -178359,7 +178430,7 @@ const propertiesDefinition$9 = {
|
|
|
178359
178430
|
}
|
|
178360
178431
|
]
|
|
178361
178432
|
}),
|
|
178362
|
-
labelStyle,
|
|
178433
|
+
labelStyle: labelTextStyle(),
|
|
178363
178434
|
icon: Prop.string().propertiesPanel({
|
|
178364
178435
|
label: "Icon",
|
|
178365
178436
|
helpText: "Select an icon to be displayed in the dropdown input. If the selected option has its own icon, it will override this icon.",
|
|
@@ -178612,7 +178683,7 @@ const DropdownStyleOverrides = qe$1.div`
|
|
|
178612
178683
|
height: 100%;
|
|
178613
178684
|
|
|
178614
178685
|
&&& label {
|
|
178615
|
-
${(props) => props.vertical ? labelStyle
|
|
178686
|
+
${(props) => props.vertical ? labelStyle.vertical : labelStyle.horizontal}
|
|
178616
178687
|
}
|
|
178617
178688
|
`;
|
|
178618
178689
|
const SbDropdown = registerSbComponent(
|
|
@@ -180582,7 +180653,6 @@ class CheckboxComponent extends React__default.PureComponent {
|
|
|
180582
180653
|
);
|
|
180583
180654
|
}
|
|
180584
180655
|
}
|
|
180585
|
-
const DEFAULT_CHECKBOX_WIDGET_TEXT_STYLE_VARIANT = "inputLabel";
|
|
180586
180656
|
const propertiesDefinition$7 = {
|
|
180587
180657
|
general: Section.category(PropsPanelCategory.Content).children({
|
|
180588
180658
|
label: Prop.string().readAndWrite().default("").propertiesPanel({
|
|
@@ -180600,11 +180670,7 @@ const propertiesDefinition$7 = {
|
|
|
180600
180670
|
})
|
|
180601
180671
|
}),
|
|
180602
180672
|
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
180603
|
-
labelStyle:
|
|
180604
|
-
label: "Label style",
|
|
180605
|
-
helpText: "Select a text style from the app theme",
|
|
180606
|
-
controlType: "TEXT_STYLE"
|
|
180607
|
-
}),
|
|
180673
|
+
labelStyle: labelTextStyle(),
|
|
180608
180674
|
loadingAnimation: Prop.boolean().propertiesPanel({
|
|
180609
180675
|
label: "Loading animation",
|
|
180610
180676
|
helpText: "Display a loading animation if dependent data is loading"
|
|
@@ -180669,7 +180735,7 @@ const SbCheckbox = registerSbComponent(
|
|
|
180669
180735
|
propertiesDefinition: propertiesDefinition$7
|
|
180670
180736
|
},
|
|
180671
180737
|
(props) => {
|
|
180672
|
-
var _a2, _b2
|
|
180738
|
+
var _a2, _b2;
|
|
180673
180739
|
const passThroughProps = usePassthroughProps(props);
|
|
180674
180740
|
const { update } = useActions();
|
|
180675
180741
|
const { onCheckChange } = props;
|
|
@@ -180683,12 +180749,7 @@ const SbCheckbox = registerSbComponent(
|
|
|
180683
180749
|
},
|
|
180684
180750
|
[onCheckChange, update]
|
|
180685
180751
|
);
|
|
180686
|
-
const
|
|
180687
|
-
const labelProps = useTypographyStyling({
|
|
180688
|
-
theme,
|
|
180689
|
-
textStyle: (_a2 = props.labelProps) == null ? void 0 : _a2.textStyle,
|
|
180690
|
-
defaultTextStyleVariant: DEFAULT_CHECKBOX_WIDGET_TEXT_STYLE_VARIANT
|
|
180691
|
-
});
|
|
180752
|
+
const labelProps = useLabelProps(props);
|
|
180692
180753
|
const checkedValue = props.isChecked ?? props.defaultChecked;
|
|
180693
180754
|
const errorMessages = useMemo$2(() => {
|
|
180694
180755
|
if (!props.showError) return [];
|
|
@@ -180710,10 +180771,10 @@ const SbCheckbox = registerSbComponent(
|
|
|
180710
180771
|
isDisabled: props.isDisabled,
|
|
180711
180772
|
onCheckChange: handleCheckChange,
|
|
180712
180773
|
isLoading: props.isLoading,
|
|
180713
|
-
isFitContentWidth: ((
|
|
180774
|
+
isFitContentWidth: ((_a2 = props.width) == null ? void 0 : _a2.mode) === "fit",
|
|
180714
180775
|
errorMessagePlacement: props.errorMessagePlacement,
|
|
180715
180776
|
errorMessages,
|
|
180716
|
-
isFitContentHeight: ((
|
|
180777
|
+
isFitContentHeight: ((_b2 = props.height) == null ? void 0 : _b2.mode) === "fit"
|
|
180717
180778
|
}
|
|
180718
180779
|
) });
|
|
180719
180780
|
}
|
|
@@ -180885,6 +180946,7 @@ const propertiesDefinition$6 = {
|
|
|
180885
180946
|
}
|
|
180886
180947
|
]
|
|
180887
180948
|
}),
|
|
180949
|
+
labelStyle: labelTextStyle(),
|
|
180888
180950
|
// TODO(code-mode): Add color pickers, border controls, etc.
|
|
180889
180951
|
showIcon: Prop.boolean().readAndWrite().default(true).propertiesPanel({
|
|
180890
180952
|
label: "Icon",
|
|
@@ -181023,6 +181085,7 @@ const SbDatePicker = registerSbComponent(
|
|
|
181023
181085
|
}
|
|
181024
181086
|
return Object.values(errors2).filter(Boolean);
|
|
181025
181087
|
}, [props.showError, props.validationErrors]);
|
|
181088
|
+
const labelProps = useLabelProps(props);
|
|
181026
181089
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(DatePickerContainer, { ...passThroughProps, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
181027
181090
|
DatePickerComponent,
|
|
181028
181091
|
{
|
|
@@ -181045,6 +181108,8 @@ const SbDatePicker = registerSbComponent(
|
|
|
181045
181108
|
showTimezone: !!props.manageTimezone,
|
|
181046
181109
|
showCalendarIcon: props.showIcon,
|
|
181047
181110
|
onDatePickerClosed: handleDatePickerClosed,
|
|
181111
|
+
labelStyleOverride: labelProps == null ? void 0 : labelProps.style,
|
|
181112
|
+
labelPosition: props.labelPosition,
|
|
181048
181113
|
errorMessagePlacement: props.errorMessagePlacement,
|
|
181049
181114
|
errorMessages,
|
|
181050
181115
|
isFitContentHeight: ((_a2 = props.height) == null ? void 0 : _a2.mode) === "fit",
|
|
@@ -181053,8 +181118,6 @@ const SbDatePicker = registerSbComponent(
|
|
|
181053
181118
|
) });
|
|
181054
181119
|
}
|
|
181055
181120
|
);
|
|
181056
|
-
const DEFAULT_SWITCH_WIDGET_LABEL_TEXT_STYLE_VARIANT = "inputLabel";
|
|
181057
|
-
const SWITCH_LABEL_GAP = 8;
|
|
181058
181121
|
const propertiesDefinition$5 = {
|
|
181059
181122
|
general: Section.category(PropsPanelCategory.Content).children({
|
|
181060
181123
|
label: Prop.string().readAndWrite().default("").propertiesPanel({
|
|
@@ -181088,11 +181151,7 @@ const propertiesDefinition$5 = {
|
|
|
181088
181151
|
}
|
|
181089
181152
|
]
|
|
181090
181153
|
}),
|
|
181091
|
-
labelStyle:
|
|
181092
|
-
label: "Label style",
|
|
181093
|
-
helpText: "Select a text style from the app theme",
|
|
181094
|
-
controlType: "TEXT_STYLE"
|
|
181095
|
-
}),
|
|
181154
|
+
labelStyle: labelTextStyle(),
|
|
181096
181155
|
loadingAnimation: Prop.boolean().propertiesPanel({
|
|
181097
181156
|
label: "Loading animation",
|
|
181098
181157
|
helpText: "Display a loading animation if dependent data is loading"
|
|
@@ -181165,6 +181224,7 @@ const SwitchInput = ({
|
|
|
181165
181224
|
}
|
|
181166
181225
|
);
|
|
181167
181226
|
};
|
|
181227
|
+
const SWITCH_LABEL_GAP = 8;
|
|
181168
181228
|
const SwitchComponentGroup = styleAsClass`
|
|
181169
181229
|
display: flex;
|
|
181170
181230
|
flex-direction: column;
|
|
@@ -181293,7 +181353,7 @@ const SbSwitch = registerSbComponent(
|
|
|
181293
181353
|
propertiesDefinition: propertiesDefinition$5
|
|
181294
181354
|
},
|
|
181295
181355
|
(props) => {
|
|
181296
|
-
var _a2, _b2
|
|
181356
|
+
var _a2, _b2;
|
|
181297
181357
|
const passThroughProps = usePassthroughProps(props);
|
|
181298
181358
|
const { update } = useActions();
|
|
181299
181359
|
const { onSwitchChange } = props;
|
|
@@ -181307,12 +181367,7 @@ const SbSwitch = registerSbComponent(
|
|
|
181307
181367
|
},
|
|
181308
181368
|
[onSwitchChange, update]
|
|
181309
181369
|
);
|
|
181310
|
-
const
|
|
181311
|
-
const labelProps = useTypographyStyling({
|
|
181312
|
-
theme,
|
|
181313
|
-
textStyle: (_a2 = props.labelProps) == null ? void 0 : _a2.textStyle,
|
|
181314
|
-
defaultTextStyleVariant: DEFAULT_SWITCH_WIDGET_LABEL_TEXT_STYLE_VARIANT
|
|
181315
|
-
});
|
|
181370
|
+
const labelProps = useLabelProps(props);
|
|
181316
181371
|
const errorMessages = useMemo$2(() => {
|
|
181317
181372
|
if (!props.showError) return [];
|
|
181318
181373
|
const errors2 = props.validationErrors;
|
|
@@ -181334,10 +181389,10 @@ const SbSwitch = registerSbComponent(
|
|
|
181334
181389
|
labelProps,
|
|
181335
181390
|
validationErrors: props.validationErrors,
|
|
181336
181391
|
errorMessagePlacement: props.errorMessagePlacement,
|
|
181337
|
-
labelWidth: (
|
|
181392
|
+
labelWidth: (_a2 = props.labelProps) == null ? void 0 : _a2.width,
|
|
181338
181393
|
errorMessages,
|
|
181339
181394
|
showError: props.showError,
|
|
181340
|
-
isFitContentHeight: ((
|
|
181395
|
+
isFitContentHeight: ((_b2 = props.height) == null ? void 0 : _b2.mode) === "fit"
|
|
181341
181396
|
},
|
|
181342
181397
|
props.sourceId
|
|
181343
181398
|
) });
|
|
@@ -195988,4 +196043,4 @@ export {
|
|
|
195988
196043
|
SbProvider as y,
|
|
195989
196044
|
SbEventFlow as z
|
|
195990
196045
|
};
|
|
195991
|
-
//# sourceMappingURL=index-
|
|
196046
|
+
//# sourceMappingURL=index-Bt1y8KPX.js.map
|