freemium-ui 2.0.0-beta.1 → 2.0.0-beta.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Freshworks
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,13 +1,18 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.3",
4
4
  "description": "React Ui Components for Freemium Apps",
5
- "main": "lib/index.js",
6
- "module": "lib/index.esm.js",
7
- "types": "lib/index.d.ts",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.js",
7
+ "typings": "dist/index.d.ts",
8
8
  "dependencies": {
9
9
  "@blueprintjs/datetime2": "^2.3.1",
10
+ "@dnd-kit/core": "^6.1.0",
11
+ "@dnd-kit/modifiers": "^7.0.0",
12
+ "@dnd-kit/sortable": "^8.0.0",
13
+ "@dnd-kit/utilities": "^3.2.2",
10
14
  "@radix-ui/react-alert-dialog": "^1.0.5",
15
+ "@radix-ui/react-avatar": "^1.0.4",
11
16
  "@radix-ui/react-checkbox": "^1.0.4",
12
17
  "@radix-ui/react-dropdown-menu": "^2.0.6",
13
18
  "@radix-ui/react-icons": "^1.3.0",
@@ -19,12 +24,12 @@
19
24
  "@radix-ui/react-tabs": "^1.0.4",
20
25
  "@radix-ui/react-toast": "^1.1.5",
21
26
  "@radix-ui/react-tooltip": "^1.0.7",
27
+ "@tanstack/react-table": "^8.11.8",
22
28
  "downshift": "^8.2.3",
23
29
  "moment": "^2.30.1",
24
30
  "react": "^18.2.0",
25
31
  "react-dom": "^18.2.0",
26
32
  "react-scripts": "5.0.1",
27
- "react-spring": "^9.7.3",
28
33
  "react-transition-group": "^4.4.5",
29
34
  "styled-components": "^6.1.1",
30
35
  "typescript": "^4.9.5",
@@ -36,15 +41,15 @@
36
41
  "@rollup/plugin-node-resolve": "^15.2.3",
37
42
  "@rollup/plugin-terser": "^0.4.4",
38
43
  "@rollup/plugin-typescript": "^11.1.6",
39
- "@storybook/addon-essentials": "^7.6.10",
40
- "@storybook/addon-interactions": "^7.6.10",
41
- "@storybook/addon-links": "^7.6.10",
44
+ "@storybook/addon-essentials": "^7.6.15",
45
+ "@storybook/addon-interactions": "^7.6.15",
46
+ "@storybook/addon-links": "^7.6.15",
42
47
  "@storybook/addon-onboarding": "^1.0.11",
43
- "@storybook/blocks": "^7.6.10",
44
- "@storybook/preset-create-react-app": "^7.6.10",
45
- "@storybook/preview-api": "^7.6.10",
46
- "@storybook/react": "^7.6.10",
47
- "@storybook/react-webpack5": "^7.6.10",
48
+ "@storybook/blocks": "^7.6.15",
49
+ "@storybook/preset-create-react-app": "^7.6.15",
50
+ "@storybook/preview-api": "^7.6.15",
51
+ "@storybook/react": "^7.6.15",
52
+ "@storybook/react-webpack5": "^7.6.15",
48
53
  "@storybook/testing-library": "^0.2.2",
49
54
  "@testing-library/jest-dom": "^5.17.0",
50
55
  "@testing-library/react": "^13.4.0",
@@ -54,6 +59,8 @@
54
59
  "@types/react": "^18.2.38",
55
60
  "@types/react-dom": "^18.2.17",
56
61
  "@types/react-transition-group": "^4.4.10",
62
+ "@types/rollup-plugin-generate-package-json": "^3.2.8",
63
+ "@types/rollup-plugin-peer-deps-external": "^2.2.4",
57
64
  "@types/styled-components": "^5.1.34",
58
65
  "babel-plugin-named-exports-order": "^0.0.2",
59
66
  "eslint-plugin-storybook": "^0.6.15",
@@ -63,15 +70,21 @@
63
70
  "prop-types": "^15.8.1",
64
71
  "rollup": "^4.9.6",
65
72
  "rollup-plugin-dts": "^6.1.0",
73
+ "rollup-plugin-generate-package-json": "^3.2.0",
66
74
  "rollup-plugin-peer-deps-external": "^2.2.4",
67
75
  "rollup-plugin-postcss": "^4.0.2",
68
- "storybook": "^7.6.10",
76
+ "storybook": "^7.6.15",
69
77
  "webpack": "^5.89.0"
70
78
  },
71
79
  "scripts": {
80
+ "version:beta": "npm version prerelease --preid=beta",
81
+ "publish:beta": "npm publish --tag beta",
82
+ "prepublish": "npm run build",
72
83
  "start": "react-scripts start",
73
84
  "build:react-app": "react-scripts build",
74
- "build": "rollup -c",
85
+ "build": "npm run rollup && npm run post:build",
86
+ "post:build": "node ./scripts/frankBuild.js",
87
+ "rollup": "rm -rf dist && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
75
88
  "test": "react-scripts test",
76
89
  "eject": "react-scripts eject",
77
90
  "check": "prettier --check .",
@@ -0,0 +1,33 @@
1
+ const fs = require('fs');
2
+ export const getFolders = (entry) => {
3
+ const dirs = fs.readdirSync(entry);
4
+ const dirsWithoutIndex = dirs
5
+ .filter((name) => name !== 'index.ts')
6
+ .filter((name) => name !== 'utils');
7
+ return dirsWithoutIndex;
8
+ };
9
+
10
+ export const getFiles = (entry, extensions = [], excludeExtensions = []) => {
11
+ let fileNames = [];
12
+ const dirs = fs.readdirSync(entry);
13
+ dirs.forEach((dir) => {
14
+ const path = `${entry}/${dir}`;
15
+
16
+ if (fs.lstatSync(path).isDirectory()) {
17
+ fileNames = [
18
+ ...fileNames,
19
+ ...getFiles(path, extensions, excludeExtensions),
20
+ ];
21
+
22
+ return;
23
+ }
24
+
25
+ if (
26
+ !excludeExtensions.some((exclude) => dir.endsWith(exclude)) &&
27
+ extensions.some((ext) => dir.endsWith(ext))
28
+ ) {
29
+ fileNames.push(path);
30
+ }
31
+ });
32
+ return fileNames;
33
+ };
@@ -0,0 +1,100 @@
1
+ /* eslint-disable no-console */
2
+ const { resolve, join, basename } = require('path');
3
+ const { readFile, writeFile, copy, remove } = require('fs-extra');
4
+ const packagePath = process.cwd();
5
+ const distPath = join(packagePath, './dist');
6
+
7
+ // const components = [
8
+ // 'Alert',
9
+ // 'Button',
10
+ // 'Checkbox',
11
+ // 'Confirmation',
12
+ // 'Drawer',
13
+ // 'Dropdown',
14
+ // 'Icons',
15
+ // 'Input',
16
+ // 'Loader',
17
+ // 'Menu',
18
+ // 'Modal',
19
+ // 'MultiSelectDropdown',
20
+ // 'Pickers',
21
+ // 'Popover',
22
+ // 'Radio',
23
+ // 'Reorder',
24
+ // 'Table',
25
+ // 'Tabs',
26
+ // 'Tag',
27
+ // 'ThemeProvider',
28
+ // 'Toast',
29
+ // 'Toggle',
30
+ // 'Tooltip',
31
+ // 'Transition',
32
+ // 'Typography',
33
+ // ];
34
+
35
+ const writeJson = (targetPath, obj) =>
36
+ writeFile(targetPath, JSON.stringify(obj, null, 2), 'utf8');
37
+
38
+ async function createPackageFile() {
39
+ const packageData = await readFile(
40
+ resolve(packagePath, './package.json'),
41
+ 'utf8',
42
+ );
43
+ const { scripts, devDependencies, ...packageOthers } =
44
+ JSON.parse(packageData);
45
+ const newPackageData = {
46
+ ...packageOthers,
47
+ private: false,
48
+ typings: './index.d.ts',
49
+ main: './index.js',
50
+ module: './index.js',
51
+ };
52
+
53
+ const targetPath = resolve(distPath, './package.json');
54
+
55
+ await writeJson(targetPath, newPackageData);
56
+ console.log(`Created package.json in ${targetPath}`);
57
+ }
58
+
59
+ async function cleanUp() {
60
+ // const targetPath = resolve(distPath, './types');
61
+ // await remove(targetPath);
62
+ // const copySourcePath = resolve(distPath, './types/src/components');
63
+ // const copyTargetPath = resolve(distPath, './');
64
+ // await copy(copySourcePath, copyTargetPath);
65
+ // console.log('Types copied');
66
+ // await Promise.all(
67
+ // components.map(async (component) => {
68
+ // const sourcePath = resolve(
69
+ // distPath,
70
+ // `./types/src/components/${component}`,
71
+ // );
72
+ // const targetPath = resolve(distPath, `./${component}`);
73
+ // await copy(sourcePath, targetPath);
74
+ // console.log(`Copied ${sourcePath} to ${targetPath}`);
75
+ // }),
76
+ // );
77
+ await remove(resolve(distPath, `./types`));
78
+ console.log('Types cleared');
79
+ }
80
+
81
+ async function includeFileInBuild(file) {
82
+ const sourcePath = resolve(packagePath, file);
83
+ const targetPath = resolve(distPath, basename(file));
84
+ await copy(sourcePath, targetPath);
85
+ console.log(`Copied ${sourcePath} to ${targetPath}`);
86
+ }
87
+
88
+ async function run() {
89
+ try {
90
+ await createPackageFile();
91
+ await includeFileInBuild('./README.md');
92
+ // await includeFileInBuild('../../LICENSE');
93
+ await cleanUp();
94
+ } catch (err) {
95
+ console.error(err);
96
+ process.exit(1);
97
+ }
98
+ }
99
+
100
+ run();
@@ -1,49 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-8rV84AoG.js');
4
- var index$1 = require('./index-iz2gaJPW.js');
5
- var index$2 = require('./index-r54UMUG5.js');
6
-
7
- /*
8
- * Copyright 2021 Palantir Technologies, Inc. All rights reserved.
9
- *
10
- * Licensed under the Apache License, Version 2.0 (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * http://www.apache.org/licenses/LICENSE-2.0
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
- /**
23
- * Get the list of vector paths that define a given icon. These path strings are used to render `<path>`
24
- * elements inside an `<svg>` icon element. For full implementation details and nuances, see the icon component
25
- * handlebars template and `generate-icon-components` script in the __@blueprintjs/icons__ package.
26
- *
27
- * Note: this function loads all icon definitions __statically__, which means every icon is included in your
28
- * JS bundle. Only use this API if your app is likely to use all Blueprint icons at runtime. If you are looking for a
29
- * dynamic icon loader which loads icon definitions on-demand, use `{ Icons } from "@blueprintjs/icons"` instead.
30
- */
31
- function getIconPaths(name, size) {
32
- var key = index$2.pascalCase(name);
33
- return size === index$2.IconSize.STANDARD ? index.IconSvgPaths16[key] : index$1.IconSvgPaths20[key];
34
- }
35
- /**
36
- * Type safe string literal conversion of snake-case icon names to PascalCase icon names.
37
- * This is useful for indexing into the SVG paths record to extract a single icon's SVG path definition.
38
- *
39
- * @deprecated use `getIconPaths` instead
40
- */
41
- function iconNameToPathsRecordKey(name) {
42
- return index$2.pascalCase(name);
43
- }
44
-
45
- exports.IconSvgPaths16 = index.IconSvgPaths16;
46
- exports.IconSvgPaths20 = index$1.IconSvgPaths20;
47
- exports.getIconPaths = getIconPaths;
48
- exports.iconNameToPathsRecordKey = iconNameToPathsRecordKey;
49
- //# sourceMappingURL=allPaths-4jds4b8u.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"allPaths-4jds4b8u.js","sources":["../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":["pascalCase","IconSize","IconSvgPaths16","IconSvgPaths20"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE;AACzC,IAAI,IAAI,GAAG,GAAGA,kBAAU,CAAC,IAAI,CAAC,CAAC;AAC/B,IAAI,OAAO,IAAI,KAAKC,gBAAQ,CAAC,QAAQ,GAAGC,oBAAc,CAAC,GAAG,CAAC,GAAGC,sBAAc,CAAC,GAAG,CAAC,CAAC;AAClF,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,wBAAwB,CAAC,IAAI,EAAE;AAC/C,IAAI,OAAOH,kBAAU,CAAC,IAAI,CAAC,CAAC;AAC5B;;;;;;;","x_google_ignoreList":[0]}
@@ -1,43 +0,0 @@
1
- import { I as IconSvgPaths16 } from './index-sWSmgRnL.js';
2
- import { I as IconSvgPaths20 } from './index-vyy0c5Au.js';
3
- import { p as pascalCase, I as IconSize } from './index-L5DmzNWk.js';
4
-
5
- /*
6
- * Copyright 2021 Palantir Technologies, Inc. All rights reserved.
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- */
20
- /**
21
- * Get the list of vector paths that define a given icon. These path strings are used to render `<path>`
22
- * elements inside an `<svg>` icon element. For full implementation details and nuances, see the icon component
23
- * handlebars template and `generate-icon-components` script in the __@blueprintjs/icons__ package.
24
- *
25
- * Note: this function loads all icon definitions __statically__, which means every icon is included in your
26
- * JS bundle. Only use this API if your app is likely to use all Blueprint icons at runtime. If you are looking for a
27
- * dynamic icon loader which loads icon definitions on-demand, use `{ Icons } from "@blueprintjs/icons"` instead.
28
- */
29
- function getIconPaths(name, size) {
30
- var key = pascalCase(name);
31
- return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];
32
- }
33
- /**
34
- * Type safe string literal conversion of snake-case icon names to PascalCase icon names.
35
- * This is useful for indexing into the SVG paths record to extract a single icon's SVG path definition.
36
- *
37
- * @deprecated use `getIconPaths` instead
38
- */
39
- function iconNameToPathsRecordKey(name) {
40
- return pascalCase(name);
41
- }
42
-
43
- export { IconSvgPaths16, IconSvgPaths20, getIconPaths, iconNameToPathsRecordKey };
@@ -1 +0,0 @@
1
- {"version":3,"file":"allPaths-e8VA3yQO.js","sources":["../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":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE;AACzC,IAAI,IAAI,GAAG,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;AAC/B,IAAI,OAAO,IAAI,KAAK,QAAQ,CAAC,QAAQ,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;AAClF,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,wBAAwB,CAAC,IAAI,EAAE;AAC/C,IAAI,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AAC5B;;;;","x_google_ignoreList":[0]}
@@ -1,35 +0,0 @@
1
- import { _ as __awaiter, a as __generator } from './index-L5DmzNWk.js';
2
-
3
- /*
4
- * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- /**
19
- * A simple module loader which concatenates all icon paths into a single chunk.
20
- */
21
- var allPathsLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {
22
- var getIconPaths;
23
- return __generator(this, function (_a) {
24
- switch (_a.label) {
25
- case 0: return [4 /*yield*/, import(
26
- /* webpackChunkName: "blueprint-icons-all-paths" */
27
- './allPaths-e8VA3yQO.js')];
28
- case 1:
29
- getIconPaths = (_a.sent()).getIconPaths;
30
- return [2 /*return*/, getIconPaths(name, size)];
31
- }
32
- });
33
- }); };
34
-
35
- export { allPathsLoader };
@@ -1 +0,0 @@
1
- {"version":3,"file":"allPathsLoader-CuUB6u5u.js","sources":["../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":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACU,IAAC,cAAc,GAAG,UAAU,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,SAAS,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,YAAY;AACzG,IAAI,IAAI,YAAY,CAAC;AACrB,IAAI,OAAO,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE;AAC3C,QAAQ,QAAQ,EAAE,CAAC,KAAK;AACxB,YAAY,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC,YAAY;AACzC;AACA,gBAAgB,wBAAa,CAAC,CAAC,CAAC;AAChC,YAAY,KAAK,CAAC;AAClB,gBAAgB,YAAY,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,YAAY,CAAC;AACxD,gBAAgB,OAAO,CAAC,CAAC,aAAa,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAChE,SAAS;AACT,KAAK,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
@@ -1,38 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-r54UMUG5.js');
4
-
5
- /*
6
- * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- */
20
- /**
21
- * A simple module loader which concatenates all icon paths into a single chunk.
22
- */
23
- var allPathsLoader = function (name, size) { return index.__awaiter(void 0, void 0, void 0, function () {
24
- var getIconPaths;
25
- return index.__generator(this, function (_a) {
26
- switch (_a.label) {
27
- case 0: return [4 /*yield*/, Promise.resolve().then(function () { return require(
28
- /* webpackChunkName: "blueprint-icons-all-paths" */
29
- './allPaths-4jds4b8u.js'); })];
30
- case 1:
31
- getIconPaths = (_a.sent()).getIconPaths;
32
- return [2 /*return*/, getIconPaths(name, size)];
33
- }
34
- });
35
- }); };
36
-
37
- exports.allPathsLoader = allPathsLoader;
38
- //# sourceMappingURL=allPathsLoader-yJz6TViP.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"allPathsLoader-yJz6TViP.js","sources":["../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":["__awaiter","__generator"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACU,IAAC,cAAc,GAAG,UAAU,IAAI,EAAE,IAAI,EAAE,EAAE,OAAOA,eAAS,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,YAAY;AACzG,IAAI,IAAI,YAAY,CAAC;AACrB,IAAI,OAAOC,iBAAW,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE;AAC3C,QAAQ,QAAQ,EAAE,CAAC,KAAK;AACxB,YAAY,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC,YAAY,oDAAO;AAChD;AACA,gBAAgB,wBAAa,KAAC,CAAC,CAAC;AAChC,YAAY,KAAK,CAAC;AAClB,gBAAgB,YAAY,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,YAAY,CAAC;AACxD,gBAAgB,OAAO,CAAC,CAAC,aAAa,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAChE,SAAS;AACT,KAAK,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;;;;","x_google_ignoreList":[0]}