@superblocksteam/library 2.0.0-next.77 → 2.0.0-next.78
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-C48HoOua.js → allPaths-B1oHKI1p.js} +2 -2
- package/dist/{allPaths-C48HoOua.js.map → allPaths-B1oHKI1p.js.map} +1 -1
- package/dist/{allPaths-DWMoXtzg.js → allPaths-BUAUNp6C.js} +2 -2
- package/dist/{allPaths-DWMoXtzg.js.map → allPaths-BUAUNp6C.js.map} +1 -1
- package/dist/{allPathsLoader-05I3IjpX.js → allPathsLoader-IJwIK4Mq.js} +3 -3
- package/dist/{allPathsLoader-05I3IjpX.js.map → allPathsLoader-IJwIK4Mq.js.map} +1 -1
- package/dist/{allPathsLoader-Db8uiyl5.js → allPathsLoader-jMzvQnRN.js} +3 -3
- package/dist/{allPathsLoader-Db8uiyl5.js.map → allPathsLoader-jMzvQnRN.js.map} +1 -1
- package/dist/{index-gWOce47o.js → index-CBdzfmE8.js} +50 -50
- package/dist/{index-gWOce47o.js.map → index-CBdzfmE8.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-DvlXaf-3.js → splitPathsBySizeLoader-CeJ0cPAy.js} +2 -2
- package/dist/{splitPathsBySizeLoader-DvlXaf-3.js.map → splitPathsBySizeLoader-CeJ0cPAy.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-BshQAeTI.js → splitPathsBySizeLoader-Dl3K-Ulg.js} +2 -2
- package/dist/{splitPathsBySizeLoader-BshQAeTI.js.map → splitPathsBySizeLoader-Dl3K-Ulg.js.map} +1 -1
- 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-CBdzfmE8.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-B1oHKI1p.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-B1oHKI1p.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-CBdzfmE8.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-BUAUNp6C.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-BUAUNp6C.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-CBdzfmE8.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-B1oHKI1p.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-IJwIK4Mq.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-IJwIK4Mq.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-CBdzfmE8.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-BUAUNp6C.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-jMzvQnRN.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-jMzvQnRN.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-jMzvQnRN.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-Dl3K-Ulg.js"
|
|
2701
2701
|
)];
|
|
2702
2702
|
case 4:
|
|
2703
2703
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -117840,51 +117840,40 @@ function useTypographyStyling({
|
|
|
117840
117840
|
skipTextStyleColorDefaultOverwrite = false,
|
|
117841
117841
|
applyClassNameStylesToStyle = false
|
|
117842
117842
|
}) {
|
|
117843
|
+
var _a2, _b2;
|
|
117843
117844
|
const defaultFontFamily = theme.fontFamily;
|
|
117844
117845
|
const themeTypographies = theme.typographies;
|
|
117845
|
-
|
|
117846
|
-
|
|
117847
|
-
|
|
117848
|
-
|
|
117849
|
-
|
|
117850
|
-
|
|
117851
|
-
|
|
117852
|
-
|
|
117853
|
-
|
|
117854
|
-
|
|
117855
|
-
|
|
117856
|
-
|
|
117857
|
-
|
|
117858
|
-
|
|
117859
|
-
|
|
117860
|
-
...fetchedTypography,
|
|
117861
|
-
color: fetchedTextColor == null ? void 0 : fetchedTextColor.default
|
|
117862
|
-
};
|
|
117863
|
-
}
|
|
117864
|
-
const style2 = {
|
|
117865
|
-
...baseStyle,
|
|
117866
|
-
...stylesToOverwrite,
|
|
117867
|
-
...appliedStylesFromClassName,
|
|
117868
|
-
...textColor,
|
|
117869
|
-
...priorityStyle
|
|
117870
|
-
};
|
|
117871
|
-
if (style2.fontFamily && style2.fontFamily !== "inherit") {
|
|
117872
|
-
style2.fontFamily += `, ${defaultFontFamily}`;
|
|
117873
|
-
}
|
|
117874
|
-
return {
|
|
117875
|
-
textStyleVariant: String(textStyleVariant),
|
|
117876
|
-
style: style2
|
|
117846
|
+
let textStyleVariant = textStyle2 == null ? void 0 : textStyle2.variant;
|
|
117847
|
+
if (!textStyleVariant || textStyleVariant !== SB_CUSTOM_TEXT_STYLE && lodashExports.get(themeTypographies, textStyleVariant) == null) {
|
|
117848
|
+
textStyleVariant = defaultTextStyleVariant;
|
|
117849
|
+
}
|
|
117850
|
+
const stylesToOverwrite = textStyleVariant === SB_CUSTOM_TEXT_STYLE ? lodashExports.pick(textStyle2, DIRECT_PROPERTIES_TO_OVERWRITE) : {};
|
|
117851
|
+
const textColor = !skipTextStyleColorDefaultOverwrite && ((_a2 = textStyle2 == null ? void 0 : textStyle2.textColor) == null ? void 0 : _a2.default) ? { color: (_b2 = textStyle2 == null ? void 0 : textStyle2.textColor) == null ? void 0 : _b2.default } : {};
|
|
117852
|
+
let appliedStylesFromClassName = {};
|
|
117853
|
+
if (applyClassNameStylesToStyle && textStyleVariant) {
|
|
117854
|
+
const {
|
|
117855
|
+
textColor: fetchedTextColor,
|
|
117856
|
+
...fetchedTypography
|
|
117857
|
+
} = lodashExports.get(themeTypographies, textStyleVariant) ?? {};
|
|
117858
|
+
appliedStylesFromClassName = {
|
|
117859
|
+
...fetchedTypography,
|
|
117860
|
+
color: fetchedTextColor == null ? void 0 : fetchedTextColor.default
|
|
117877
117861
|
};
|
|
117878
|
-
}
|
|
117879
|
-
|
|
117880
|
-
|
|
117881
|
-
|
|
117882
|
-
|
|
117883
|
-
|
|
117884
|
-
|
|
117885
|
-
|
|
117886
|
-
|
|
117887
|
-
|
|
117862
|
+
}
|
|
117863
|
+
const style2 = {
|
|
117864
|
+
...baseStyle,
|
|
117865
|
+
...stylesToOverwrite,
|
|
117866
|
+
...appliedStylesFromClassName,
|
|
117867
|
+
...textColor,
|
|
117868
|
+
...priorityStyle
|
|
117869
|
+
};
|
|
117870
|
+
if (style2.fontFamily && style2.fontFamily !== "inherit") {
|
|
117871
|
+
style2.fontFamily += `, ${defaultFontFamily}`;
|
|
117872
|
+
}
|
|
117873
|
+
return {
|
|
117874
|
+
textStyleVariant: String(textStyleVariant),
|
|
117875
|
+
style: style2
|
|
117876
|
+
};
|
|
117888
117877
|
}
|
|
117889
117878
|
const DEFAULT_ICON_SPACING = 8;
|
|
117890
117879
|
const DEFAULT_ICON_SIZE$1 = 16;
|
|
@@ -144428,14 +144417,14 @@ function getLoaderFn(options) {
|
|
|
144428
144417
|
if (!(loader === "all")) return [3, 3];
|
|
144429
144418
|
return [4, import(
|
|
144430
144419
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
144431
|
-
"./allPathsLoader-
|
|
144420
|
+
"./allPathsLoader-IJwIK4Mq.js"
|
|
144432
144421
|
)];
|
|
144433
144422
|
case 2:
|
|
144434
144423
|
return [2, _b2.sent().allPathsLoader];
|
|
144435
144424
|
case 3:
|
|
144436
144425
|
return [4, import(
|
|
144437
144426
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
144438
|
-
"./splitPathsBySizeLoader-
|
|
144427
|
+
"./splitPathsBySizeLoader-CeJ0cPAy.js"
|
|
144439
144428
|
)];
|
|
144440
144429
|
case 4:
|
|
144441
144430
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -168197,6 +168186,9 @@ const TableHeaderCell = (props) => {
|
|
|
168197
168186
|
defaultTextStyleVariant: TABLE_COLUMN_HEADER_DEFAULT_TYPOGRAPHY,
|
|
168198
168187
|
textStyle: props.columnHeaderProps
|
|
168199
168188
|
});
|
|
168189
|
+
const columnHeaderClassName = getTextCssClassFromVariant(
|
|
168190
|
+
columnHeaderStyleProps.textStyleVariant
|
|
168191
|
+
);
|
|
168200
168192
|
const { setColumnFilter } = props;
|
|
168201
168193
|
const setFilter = useCallback(
|
|
168202
168194
|
(filter2) => {
|
|
@@ -168213,6 +168205,16 @@ const TableHeaderCell = (props) => {
|
|
|
168213
168205
|
const { key: key2, ...headerProps } = column2.getHeaderProps();
|
|
168214
168206
|
const headerIconPosition = props.columnProperties.headerIconPosition ?? "left";
|
|
168215
168207
|
const parentRef = useRef(null);
|
|
168208
|
+
const columnHeaderClassNames = [columnHeaderClassName];
|
|
168209
|
+
if (!props.isHidden) {
|
|
168210
|
+
columnHeaderClassNames.push("draggable-header");
|
|
168211
|
+
}
|
|
168212
|
+
if (!props.isHidden && props.isSortable && props.isAscOrder !== void 0) {
|
|
168213
|
+
columnHeaderClassNames.push("sorted");
|
|
168214
|
+
}
|
|
168215
|
+
if (props.isHidden) {
|
|
168216
|
+
columnHeaderClassNames.push("hidden-header");
|
|
168217
|
+
}
|
|
168216
168218
|
return props.isCheckbox ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
168217
168219
|
"div",
|
|
168218
168220
|
{
|
|
@@ -168259,9 +168261,7 @@ const TableHeaderCell = (props) => {
|
|
|
168259
168261
|
{
|
|
168260
168262
|
columnProperties: props.columnProperties,
|
|
168261
168263
|
style: columnHeaderStyleProps.style,
|
|
168262
|
-
className:
|
|
168263
|
-
columnHeaderStyleProps.textStyleVariant
|
|
168264
|
-
)} ` + !props.isHidden ? `draggable-header ${props.isSortable && props.isAscOrder !== void 0 ? "sorted" : ""}` : "hidden-header",
|
|
168264
|
+
className: columnHeaderClassNames.join(" "),
|
|
168265
168265
|
draggable: !props.isHidden,
|
|
168266
168266
|
onDragStart: (e3) => {
|
|
168267
168267
|
var _a3;
|
|
@@ -190972,4 +190972,4 @@ export {
|
|
|
190972
190972
|
copyToClipboard as y,
|
|
190973
190973
|
navigateTo as z
|
|
190974
190974
|
};
|
|
190975
|
-
//# sourceMappingURL=index-
|
|
190975
|
+
//# sourceMappingURL=index-CBdzfmE8.js.map
|