@superblocksteam/library 2.0.0-next.5 → 2.0.0-next.7
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-CQicmj05.js → allPaths-B09LcN7N.js} +2 -2
- package/dist/{allPaths-CQicmj05.js.map → allPaths-B09LcN7N.js.map} +1 -1
- package/dist/{allPaths-JTh0AvL-.js → allPaths-CQi6Mi9n.js} +2 -2
- package/dist/{allPaths-JTh0AvL-.js.map → allPaths-CQi6Mi9n.js.map} +1 -1
- package/dist/{allPathsLoader-BzKYsLDE.js → allPathsLoader-DTMdKBA7.js} +3 -3
- package/dist/{allPathsLoader-BzKYsLDE.js.map → allPathsLoader-DTMdKBA7.js.map} +1 -1
- package/dist/{allPathsLoader-DUkr4f2u.js → allPathsLoader-M6yIb9T6.js} +3 -3
- package/dist/{allPathsLoader-DUkr4f2u.js.map → allPathsLoader-M6yIb9T6.js.map} +1 -1
- package/dist/{index-U8MX-8Hu.js → index-B1VgfVEK.js} +63 -69
- package/dist/{index-U8MX-8Hu.js.map → index-B1VgfVEK.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-4uQi8FeZ.js → splitPathsBySizeLoader-Cgf9KLYl.js} +2 -2
- package/dist/{splitPathsBySizeLoader-4uQi8FeZ.js.map → splitPathsBySizeLoader-Cgf9KLYl.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-D1iVVUla.js → splitPathsBySizeLoader-zdAfZhWx.js} +2 -2
- package/dist/{splitPathsBySizeLoader-D1iVVUla.js.map → splitPathsBySizeLoader-zdAfZhWx.js.map} +1 -1
- package/dist-types/lib/internal-details/lib/evaluator/lazy-function.d.ts +1 -1
- package/dist-types/lib/user-facing/components/column/props.d.ts +27 -28
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +1 -0
- package/package.json +2 -2
|
@@ -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-B1VgfVEK.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-B09LcN7N.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-B09LcN7N.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,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-B1VgfVEK.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-CQi6Mi9n.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-CQi6Mi9n.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,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator } from "./index-B1VgfVEK.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-B09LcN7N.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-DTMdKBA7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-DTMdKBA7.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-B1VgfVEK.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-CQi6Mi9n.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-M6yIb9T6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-M6yIb9T6.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]}
|
|
@@ -2690,14 +2690,14 @@ function getLoaderFn$1(options) {
|
|
|
2690
2690
|
if (!(loader === "all")) return [3, 3];
|
|
2691
2691
|
return [4, import(
|
|
2692
2692
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
2693
|
-
"./allPathsLoader-
|
|
2693
|
+
"./allPathsLoader-M6yIb9T6.js"
|
|
2694
2694
|
)];
|
|
2695
2695
|
case 2:
|
|
2696
2696
|
return [2, _b2.sent().allPathsLoader];
|
|
2697
2697
|
case 3:
|
|
2698
2698
|
return [4, import(
|
|
2699
2699
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
2700
|
-
"./splitPathsBySizeLoader-
|
|
2700
|
+
"./splitPathsBySizeLoader-Cgf9KLYl.js"
|
|
2701
2701
|
)];
|
|
2702
2702
|
case 4:
|
|
2703
2703
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -10229,11 +10229,12 @@ const cyrb53$1 = (str, seed2 = 0) => {
|
|
|
10229
10229
|
h22 ^= Math.imul(h1 ^ h1 >>> 13, 3266489909);
|
|
10230
10230
|
return 4294967296 * (2097151 & h22) + (h1 >>> 0);
|
|
10231
10231
|
};
|
|
10232
|
-
function PropertyInfo(value, type5 = "STATIC") {
|
|
10232
|
+
function PropertyInfo(value, type5 = "STATIC", extra) {
|
|
10233
10233
|
return {
|
|
10234
10234
|
__info: true,
|
|
10235
10235
|
value,
|
|
10236
|
-
type: type5
|
|
10236
|
+
type: type5,
|
|
10237
|
+
...extra
|
|
10237
10238
|
};
|
|
10238
10239
|
}
|
|
10239
10240
|
const Property = {
|
|
@@ -10243,7 +10244,7 @@ const Property = {
|
|
|
10243
10244
|
Expression: (value) => PropertyInfo(value, "EXPRESSION"),
|
|
10244
10245
|
Event: (value) => PropertyInfo(value, "EVENT"),
|
|
10245
10246
|
Dimension: (value) => PropertyInfo(value, "DIMENSION"),
|
|
10246
|
-
Computed: (value) => PropertyInfo(value, "COMPUTED"),
|
|
10247
|
+
Computed: (value, args) => PropertyInfo(value, "COMPUTED", args ? { args } : {}),
|
|
10247
10248
|
Any: (value, type5 = "STATIC") => PropertyInfo(value, type5)
|
|
10248
10249
|
};
|
|
10249
10250
|
function isPropertyInfo(value) {
|
|
@@ -95416,8 +95417,9 @@ const lazyFunctionSymbol = Symbol("lazy-function");
|
|
|
95416
95417
|
const isLazyFunction = (value) => {
|
|
95417
95418
|
return typeof value === "function" && value[lazyFunctionSymbol];
|
|
95418
95419
|
};
|
|
95419
|
-
const LazyFunction = (source2) => {
|
|
95420
|
-
const
|
|
95420
|
+
const LazyFunction = (source2, args = []) => {
|
|
95421
|
+
const argsObj = `{ ${args.join(", ")} }`;
|
|
95422
|
+
const func = new Function(argsObj, source2);
|
|
95421
95423
|
func[lazyFunctionSymbol] = true;
|
|
95422
95424
|
return func;
|
|
95423
95425
|
};
|
|
@@ -117253,8 +117255,16 @@ const textStyleProp = ({
|
|
|
117253
117255
|
propertiesPanel
|
|
117254
117256
|
} = {}) => Prop.composite(baseProp).readAndWrite().propertiesPanel({
|
|
117255
117257
|
...basePropertiesPaneDisplay,
|
|
117256
|
-
...propertiesPanel
|
|
117258
|
+
...propertiesPanel,
|
|
117259
|
+
isJSConvertible: false
|
|
117257
117260
|
});
|
|
117261
|
+
const colorProp = (schema) => {
|
|
117262
|
+
return Prop.string().readAndWrite().propertiesPanel({
|
|
117263
|
+
...schema,
|
|
117264
|
+
controlType: "COLOR_PICKER",
|
|
117265
|
+
isJSConvertible: true
|
|
117266
|
+
});
|
|
117267
|
+
};
|
|
117258
117268
|
const labelTextStyle = () => textStyleProp({
|
|
117259
117269
|
propertiesPanel: {
|
|
117260
117270
|
label: "Label style",
|
|
@@ -117283,6 +117293,7 @@ const border = (propertiesPanelConfig = {}) => {
|
|
|
117283
117293
|
label: "Border",
|
|
117284
117294
|
controlType: "BORDER_CONTROL",
|
|
117285
117295
|
helpText: "Controls the border of the component",
|
|
117296
|
+
isJSConvertible: false,
|
|
117286
117297
|
...propertiesPanelConfig
|
|
117287
117298
|
}).readAndWrite();
|
|
117288
117299
|
};
|
|
@@ -117307,6 +117318,7 @@ const borderRadius = (propertiesPanelConfig = {}) => {
|
|
|
117307
117318
|
label: "Border radius",
|
|
117308
117319
|
controlType: "BORDER_RADIUS_CONTROL",
|
|
117309
117320
|
helpText: "Controls the border radius of the component",
|
|
117321
|
+
isJSConvertible: false,
|
|
117310
117322
|
...propertiesPanelConfig
|
|
117311
117323
|
});
|
|
117312
117324
|
};
|
|
@@ -117402,20 +117414,19 @@ const propertiesDefinition$h = {
|
|
|
117402
117414
|
}
|
|
117403
117415
|
}),
|
|
117404
117416
|
textStyle: textStyle$3,
|
|
117405
|
-
backgroundColor:
|
|
117406
|
-
const defaultThemeBackground = getButtonThemeDefaultBackgroundColor(
|
|
117407
|
-
Theme,
|
|
117408
|
-
this.variant
|
|
117409
|
-
);
|
|
117410
|
-
return defaultThemeBackground === "transparent" ? void 0 : defaultThemeBackground;
|
|
117411
|
-
}).propertiesPanel({
|
|
117417
|
+
backgroundColor: colorProp({
|
|
117412
117418
|
label: "Background color",
|
|
117413
|
-
controlType: "COLOR_PICKER",
|
|
117414
117419
|
visibility: "SHOW_NAME",
|
|
117415
117420
|
isRemovable: true,
|
|
117416
117421
|
defaultOnAdd: function() {
|
|
117417
117422
|
return getButtonThemeDefaultBackgroundColor(Theme, this.variant);
|
|
117418
117423
|
}
|
|
117424
|
+
}).default(function() {
|
|
117425
|
+
const defaultThemeBackground = getButtonThemeDefaultBackgroundColor(
|
|
117426
|
+
Theme,
|
|
117427
|
+
this.variant
|
|
117428
|
+
);
|
|
117429
|
+
return defaultThemeBackground === "transparent" ? void 0 : defaultThemeBackground;
|
|
117419
117430
|
}),
|
|
117420
117431
|
border: Prop.composite(buildPerSideBorder(() => PerSideBorderDef())).default(getDefaultBorderObject).propertiesPanel({
|
|
117421
117432
|
label: "Border",
|
|
@@ -117423,7 +117434,8 @@ const propertiesDefinition$h = {
|
|
|
117423
117434
|
helpText: "Controls the border of the component",
|
|
117424
117435
|
isRemovable: true,
|
|
117425
117436
|
defaultOnAdd: SECONDARY_BUTTON_BORDER_OBJECT,
|
|
117426
|
-
visibility: "SHOW_NAME"
|
|
117437
|
+
visibility: "SHOW_NAME",
|
|
117438
|
+
isJSConvertible: false
|
|
117427
117439
|
}).readAndWrite(),
|
|
117428
117440
|
borderRadius: borderRadius().default(function() {
|
|
117429
117441
|
let borderRadius2;
|
|
@@ -117639,9 +117651,8 @@ const commonLayoutProps = {
|
|
|
117639
117651
|
...visible()
|
|
117640
117652
|
};
|
|
117641
117653
|
Section.category(PropsPanelCategory.Appearance).children({
|
|
117642
|
-
backgroundColor:
|
|
117654
|
+
backgroundColor: colorProp({
|
|
117643
117655
|
label: "Background",
|
|
117644
|
-
controlType: "COLOR_PICKER",
|
|
117645
117656
|
helpText: "Changes the color of the background"
|
|
117646
117657
|
}),
|
|
117647
117658
|
border: border(),
|
|
@@ -117785,11 +117796,11 @@ const getStackChildStyle = ({
|
|
|
117785
117796
|
parentWidth
|
|
117786
117797
|
}) => {
|
|
117787
117798
|
const height = (childProps == null ? void 0 : childProps.height) ?? Dim.fit();
|
|
117788
|
-
const heightCss =
|
|
117799
|
+
const heightCss = (
|
|
117789
117800
|
// using 100% height when there is only one child and user's intention to set the child height as exact 100%, e.g. an image with large original height
|
|
117790
117801
|
// if parent height is fit-content, child height 100% will cause unexpected height if child is empty container
|
|
117791
|
-
{ height: "100%" }
|
|
117792
|
-
)
|
|
117802
|
+
childCount === 1 && (height == null ? void 0 : height.mode) === "fill" && (parentHeight == null ? void 0 : parentHeight.mode) !== "fit" ? { height: "100%" } : dimToCSS(height, "height", primary === "height")
|
|
117803
|
+
);
|
|
117793
117804
|
const width = (childProps == null ? void 0 : childProps.width) ?? Dim.fit();
|
|
117794
117805
|
const widthCss = childCount === 1 && (width == null ? void 0 : width.mode) === "fill" && (parentWidth == null ? void 0 : parentWidth.mode) !== "fit" ? { width: "100%" } : dimToCSS(width, "width", primary === "width");
|
|
117795
117806
|
const minWidthCss = getMinMaxCss(
|
|
@@ -117983,9 +117994,8 @@ const propertiesDefinition$g = {
|
|
|
117983
117994
|
}).default(false)
|
|
117984
117995
|
}).add(visible()),
|
|
117985
117996
|
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
117986
|
-
backgroundColor:
|
|
117997
|
+
backgroundColor: colorProp({
|
|
117987
117998
|
label: "Background",
|
|
117988
|
-
controlType: "COLOR_PICKER",
|
|
117989
117999
|
helpText: "Changes the color of the background"
|
|
117990
118000
|
}),
|
|
117991
118001
|
border: border()
|
|
@@ -118563,9 +118573,8 @@ const propertiesDefinition$e = {
|
|
|
118563
118573
|
})
|
|
118564
118574
|
).add(shouldScrollContents(true)).add(visible()),
|
|
118565
118575
|
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
118566
|
-
backgroundColor:
|
|
118576
|
+
backgroundColor: colorProp({
|
|
118567
118577
|
label: "Background",
|
|
118568
|
-
controlType: "COLOR_PICKER",
|
|
118569
118578
|
helpText: "Changes the color of the background"
|
|
118570
118579
|
}),
|
|
118571
118580
|
border: border()
|
|
@@ -125972,11 +125981,10 @@ const propertiesDefinition$d = {
|
|
|
125972
125981
|
placeholder: "Input text"
|
|
125973
125982
|
}),
|
|
125974
125983
|
textStyle: textStyle$2,
|
|
125975
|
-
backgroundColor:
|
|
125984
|
+
backgroundColor: colorProp({
|
|
125976
125985
|
label: "Background",
|
|
125977
|
-
controlType: "COLOR_PICKER",
|
|
125978
125986
|
helpText: "Changes the color of the background"
|
|
125979
|
-
}),
|
|
125987
|
+
}).default(() => Theme.colors.neutral),
|
|
125980
125988
|
border: border().default(void 0),
|
|
125981
125989
|
borderRadius: borderRadius(),
|
|
125982
125990
|
icon: Prop.string().readAndWrite().propertiesPanel({
|
|
@@ -133509,10 +133517,9 @@ const ModalComponent = (props) => {
|
|
|
133509
133517
|
const propertiesDefinition$a = {
|
|
133510
133518
|
layout: Section.category(PropsPanelCategory.Layout).add(containerLayout()).add(spacing()).add(padding()),
|
|
133511
133519
|
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
133512
|
-
backgroundColor:
|
|
133520
|
+
backgroundColor: colorProp({
|
|
133513
133521
|
label: "Background color",
|
|
133514
|
-
helpText: "The background color of the component"
|
|
133515
|
-
controlType: "COLOR_PICKER"
|
|
133522
|
+
helpText: "The background color of the component"
|
|
133516
133523
|
}),
|
|
133517
133524
|
border: Prop.any().readAndWrite().propertiesPanel({
|
|
133518
133525
|
label: "Border",
|
|
@@ -133881,10 +133888,9 @@ const textStyleProps = {
|
|
|
133881
133888
|
label: "Cell style",
|
|
133882
133889
|
controlType: "TEXT_STYLE"
|
|
133883
133890
|
}),
|
|
133884
|
-
cellBackground:
|
|
133885
|
-
label: "Background color"
|
|
133886
|
-
|
|
133887
|
-
})
|
|
133891
|
+
cellBackground: colorProp({
|
|
133892
|
+
label: "Background color"
|
|
133893
|
+
}).readAndWrite()
|
|
133888
133894
|
};
|
|
133889
133895
|
const textColumnProperties = {
|
|
133890
133896
|
general: {
|
|
@@ -133938,18 +133944,15 @@ const buttonColumnProperties = {
|
|
|
133938
133944
|
}
|
|
133939
133945
|
]
|
|
133940
133946
|
}),
|
|
133941
|
-
buttonBackgroundColor:
|
|
133942
|
-
label: "Background color"
|
|
133943
|
-
|
|
133944
|
-
|
|
133945
|
-
|
|
133946
|
-
|
|
133947
|
-
|
|
133948
|
-
|
|
133949
|
-
|
|
133950
|
-
label: "Background color",
|
|
133951
|
-
controlType: "COLOR_PICKER"
|
|
133952
|
-
})
|
|
133947
|
+
buttonBackgroundColor: colorProp({
|
|
133948
|
+
label: "Background color"
|
|
133949
|
+
}).readAndWrite(),
|
|
133950
|
+
buttonLabelColor: colorProp({
|
|
133951
|
+
label: "Label color"
|
|
133952
|
+
}).readAndWrite(),
|
|
133953
|
+
backgroundColor: colorProp({
|
|
133954
|
+
label: "Background color"
|
|
133955
|
+
}).readAndWrite()
|
|
133953
133956
|
}
|
|
133954
133957
|
};
|
|
133955
133958
|
const numberColumnProperties = {
|
|
@@ -143581,14 +143584,14 @@ function getLoaderFn(options) {
|
|
|
143581
143584
|
if (!(loader === "all")) return [3, 3];
|
|
143582
143585
|
return [4, import(
|
|
143583
143586
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
143584
|
-
"./allPathsLoader-
|
|
143587
|
+
"./allPathsLoader-DTMdKBA7.js"
|
|
143585
143588
|
)];
|
|
143586
143589
|
case 2:
|
|
143587
143590
|
return [2, _b2.sent().allPathsLoader];
|
|
143588
143591
|
case 3:
|
|
143589
143592
|
return [4, import(
|
|
143590
143593
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
143591
|
-
"./splitPathsBySizeLoader-
|
|
143594
|
+
"./splitPathsBySizeLoader-zdAfZhWx.js"
|
|
143592
143595
|
)];
|
|
143593
143596
|
case 4:
|
|
143594
143597
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -155017,17 +155020,13 @@ const propertiesDefinition$9 = {
|
|
|
155017
155020
|
label: "Cell style",
|
|
155018
155021
|
controlType: "TEXT_STYLE"
|
|
155019
155022
|
}),
|
|
155020
|
-
backgroundColor:
|
|
155023
|
+
backgroundColor: colorProp({
|
|
155021
155024
|
label: "Background color",
|
|
155022
|
-
helpText: "Sets the background color of the table"
|
|
155023
|
-
controlType: "COLOR_PICKER"
|
|
155024
|
-
// themeValue: "{{ theme.colors.neutral }}",
|
|
155025
|
+
helpText: "Sets the background color of the table"
|
|
155025
155026
|
}),
|
|
155026
|
-
selectedRowBackgroundColor:
|
|
155027
|
+
selectedRowBackgroundColor: colorProp({
|
|
155027
155028
|
label: "Selected row background color",
|
|
155028
|
-
helpText: "Sets the background color of the selected row"
|
|
155029
|
-
controlType: "COLOR_PICKER"
|
|
155030
|
-
// themeValue: "{{ theme.colors.neutral50 }}",
|
|
155029
|
+
helpText: "Sets the background color of the selected row"
|
|
155031
155030
|
}),
|
|
155032
155031
|
border: border({ helpText: "Sets the border of the table" }),
|
|
155033
155032
|
borderRadius: borderRadius({
|
|
@@ -155079,11 +155078,9 @@ const propertiesDefinition$9 = {
|
|
|
155079
155078
|
label: "Search",
|
|
155080
155079
|
controlType: "TEXT_STYLE"
|
|
155081
155080
|
}),
|
|
155082
|
-
"searchProps.backgroundColor":
|
|
155081
|
+
"searchProps.backgroundColor": colorProp({
|
|
155083
155082
|
label: "Search background color",
|
|
155084
|
-
helpText: "Sets the background color of the search"
|
|
155085
|
-
controlType: "COLOR_PICKER"
|
|
155086
|
-
// themeValue:"{{ theme.colors.neutral }}",
|
|
155083
|
+
helpText: "Sets the background color of the search"
|
|
155087
155084
|
}),
|
|
155088
155085
|
"searchProps.border": border({
|
|
155089
155086
|
label: "Search border",
|
|
@@ -168023,7 +168020,7 @@ const Table = (props) => {
|
|
|
168023
168020
|
const hasFooter = props.pageType !== PaginationTypes.NONE || props.isDownloadable || props.numEdits != null && props.numEdits > 0 || props.isInsertionEnabled || canDelete;
|
|
168024
168021
|
const hasHeader = props.isSearchable || !lodashExports.isEmpty(props.tableHeader) || props.hiddenColumns && ((_a2 = props.hiddenColumns) == null ? void 0 : _a2.length) > 0;
|
|
168025
168022
|
const pageSize = props.pageType === PaginationTypes.NONE ? props.tableData.length : props.pageSize;
|
|
168026
|
-
const pageCount = Math.ceil(props.tableData.length / pageSize);
|
|
168023
|
+
const pageCount = Math.ceil(props.tableData.length / pageSize) || 1;
|
|
168027
168024
|
const currentPageIndex = props.pageNo < pageCount ? props.pageNo : 0;
|
|
168028
168025
|
const {
|
|
168029
168026
|
getTableProps,
|
|
@@ -175371,11 +175368,9 @@ const propertiesDefinition$4 = {
|
|
|
175371
175368
|
})
|
|
175372
175369
|
}).add(margin()).add(visible()),
|
|
175373
175370
|
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
175374
|
-
color:
|
|
175371
|
+
color: colorProp({
|
|
175375
175372
|
label: "Color",
|
|
175376
|
-
controlType: "COLOR_PICKER",
|
|
175377
175373
|
helpText: "Changes the color of the icon"
|
|
175378
|
-
// themeValue:"{{ theme.colors.neutral700 }}",
|
|
175379
175374
|
}),
|
|
175380
175375
|
animateLoading: Prop.boolean().readAndWrite().default(true).propertiesPanel({
|
|
175381
175376
|
label: "Loading animation",
|
|
@@ -175592,9 +175587,8 @@ const propertiesDefinition$3 = {
|
|
|
175592
175587
|
})
|
|
175593
175588
|
}),
|
|
175594
175589
|
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
175595
|
-
backgroundColor:
|
|
175590
|
+
backgroundColor: colorProp({
|
|
175596
175591
|
label: "Background",
|
|
175597
|
-
controlType: "COLOR_PICKER",
|
|
175598
175592
|
helpText: "Changes the color of the background"
|
|
175599
175593
|
}),
|
|
175600
175594
|
border: border(),
|
|
@@ -190031,4 +190025,4 @@ export {
|
|
|
190031
190025
|
copyToClipboard as y,
|
|
190032
190026
|
navigateTo as z
|
|
190033
190027
|
};
|
|
190034
|
-
//# sourceMappingURL=index-
|
|
190028
|
+
//# sourceMappingURL=index-B1VgfVEK.js.map
|