@genexus/mercury 0.10.0 → 0.12.0

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.
@@ -0,0 +1,59 @@
1
+ export type MercuryBundles = [MercuryBundleReset, ...MercuryBundleOptimized[]] | [MercuryBundleReset, ...MercuryBundleFull[]];
2
+ export type MercuryBundleOptimized = MercuryBundleComponent | MercuryBundleComponentForm | MercuryBundleUtil;
3
+ export type MercuryBundleFull = MercuryBundleComponent | MercuryBundleUtil | MercuryBundleUtilFormFull;
4
+ export type MercuryBundleBase = "base/base" | "base/icons";
5
+ export type MercuryBundleComponent = "components/accordion" | "components/chat" | "components/code" | "components/dialog" | "components/flexible-layout" | "components/layout-splitter" | "components/list-box" | "components/markdown-viewer" | "components/navigation-list" | "components/pills" | "components/segmented-control" | "components/sidebar" | "components/tab" | "components/tabular-grid" | "components/ticket-list" | "components/tooltip" | "components/tree-view" | "components/widget";
6
+ export type MercuryBundleComponentForm = "components/button" | "components/checkbox" | "components/combo-box" | "components/edit" | "components/icon" | "components/radio-group" | "components/slider" | "components/toggle";
7
+ export type MercuryBundleReset = "resets/box-sizing";
8
+ export type MercuryBundleUtil = "utils/elevation" | "utils/form" | "utils/layout" | "utils/spacing" | "utils/typography" | "chameleon/scrollbar";
9
+ export type MercuryBundleUtilFormFull = "utils/form--full";
10
+ export type AssetsMetadata = {
11
+ category: string;
12
+ name: string;
13
+ colorType?: string;
14
+ };
15
+ /**
16
+ * For example:
17
+ * ```
18
+ * {
19
+ * icons: {
20
+ * objects: { // Category
21
+ * stencil: { // Icon Name
22
+ * enabled: { // State
23
+ * name: "objects_stencil--enabled"
24
+ * }
25
+ * },
26
+ * },
27
+ * windows-tools: { // Category
28
+ * workflow: { // Icon Name
29
+ * "on-surface": { // Color Type
30
+ * enabled: { // State
31
+ * name: "windows-tools_workflow_on-surface--enabled"
32
+ * },
33
+ * hover: {
34
+ * name: "windows-tools_workflow_on-surface--hover"
35
+ * }
36
+ * }
37
+ * }
38
+ * }
39
+ * }
40
+ * }
41
+ * ```
42
+ */
43
+ export type Assets = {
44
+ icons: {
45
+ [key in string]: AssetsCategories;
46
+ };
47
+ };
48
+ export type AssetsCategories = {
49
+ [key: string]: AssetsIconName;
50
+ };
51
+ export type AssetsIconName = {
52
+ [key: string]: AssetsColorType;
53
+ } | AssetsColorType;
54
+ export type AssetsColorType = {
55
+ [key: string]: AssetsIconMetadata;
56
+ };
57
+ export interface AssetsIconMetadata {
58
+ name: string;
59
+ }
package/package.json CHANGED
@@ -1,17 +1,45 @@
1
1
  {
2
2
  "name": "@genexus/mercury",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "Mercury is the design system designed for GeneXus IDE Web and GeneXus Next",
5
- "main": "dist/mercury.scss",
6
- "module": "dist/assets-manager.js",
7
- "types": "dist/assets-manager.d.ts",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
8
  "files": [
9
9
  "dist/"
10
10
  ],
11
11
  "type": "module",
12
+ "exports": {
13
+ ".": {
14
+ "import": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ }
18
+ },
19
+ "./assets-manager.js": {
20
+ "import": {
21
+ "types": "./dist/assets-manager.d.ts",
22
+ "default": "./dist/assets-manager.js"
23
+ }
24
+ },
25
+ "./bundles.js": {
26
+ "import": {
27
+ "types": "./dist/bundles.d.ts",
28
+ "default": "./dist/bundles.js"
29
+ }
30
+ },
31
+ "./register-mercury.js": {
32
+ "import": {
33
+ "types": "./dist/register-mercury.d.ts",
34
+ "default": "./dist/register-mercury.js"
35
+ }
36
+ },
37
+ "./package.json": "./package.json"
38
+ },
12
39
  "scripts": {
13
- "build": "tsc && npm run icons-svg && npm run icons-sass && npm run build.scss && npm run copy-tasks && npm run showcase.scss",
14
- "build-no-svg": "tsc && npm run build.scss && npm run copy-tasks",
40
+ "build": "npm run build.js && npm run icons-svg && npm run icons-sass && npm run build.scss && npm run copy-tasks && npm run showcase.scss",
41
+ "build.js": "tsc && esbuild dist/*.js --allow-overwrite --minify --outdir=dist && esbuild dist/assets/*.js --allow-overwrite --minify --outdir=dist/assets",
42
+ "build-no-svg": "npm run build.js && npm run build.scss && npm run copy-tasks",
15
43
  "build.scss": "scss-bundle -e ./src/mercury.scss -o dist/mercury.scss && npm run build.bundles && npm run copy-all.css",
16
44
  "build.bundles": "fse copy --all --keepExisting --errorOnExist --dereference --preserveTimestamps --quiet src/bundles/scss dist/bundles/scss && sass --load-path=src --no-source-map --style compressed dist/bundles/scss:dist/bundles/css",
17
45
  "start": "vite --port 5200 --open showcase/button.html",
@@ -31,6 +59,7 @@
31
59
  "@genexus/svg-sass-generator": "1.1.24",
32
60
  "chokidar": "^3.6.0",
33
61
  "chokidar-cli": "^3.0.0",
62
+ "esbuild": "0.24.0",
34
63
  "sass": "~1.72.0",
35
64
  "scss-bundle": "~3.1.2",
36
65
  "typescript": "~5.5.3",