@genexus/mercury 0.11.0 → 0.12.1

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.
@@ -1 +1 @@
1
- .dialog::part(close-button){content:"";display:block;inline-size:var(--mer-icon__box--md);block-size:var(--mer-icon__box--md);background:no-repeat center/var(--mer-icon__size--md) var(--icon-path)}.dialog::part(caption){--heading-base__font-family: var(--mer-font-family--title);--heading__color: var( --mer-heading__gray--light );--heading-h1__font-size: var(--mer-font__size--xl);--heading-h1__font-weight: var(--mer-font__weight--bold);--heading-h1__line-height: var(--mer-line-height--tight);--heading-h2__font-size: var(--mer-font__size--lg);--heading-h2__font-weight: var(--mer-font__weight--bold);--heading-h2__line-height: var(--mer-line-height--tight);--heading-h3__font-size: var(--mer-font__size--sm);--heading-h3__font-weight: var(--mer-font__weight--bold);--heading-h3__line-height: var(--mer-line-height--regular);--heading-h4__font-size: var(--mer-font__size--xs);--heading-h4__font-weight: var(--mer-font__weight--bold);--heading-h4__line-height: var(--mer-line-height--spaced);--heading-h5__font-size: var(--mer-font__size--2xs);--heading-h5__font-weight: var(--mer-font__weight--bold);--heading-h5__line-height: var(--mer-line-height--spaced);--heading-h6__font-size: var(--mer-font__size--3xs);--heading-h6__font-weight: var(--mer-font__weight--semi-bold);--heading-h6__line-height: var(--mer-line-height--spaced);font-family:var(--mer-font-family--title);line-height:var(--mer-line-height--tight);color:var(--heading__color)}.dialog::part(caption){font-size:var(--mer-font__size--2xs);font-weight:var(--mer-font__weight--bold);line-height:var(--heading-h5__line-height)}.dialog::part(caption){--heading__color: var(--mer-heading__gray--light)}.dialog::part(dialog){--spacing-body-block-start: var(--mer-spacing--md);--spacing-body-block-end: var(--mer-spacing--md);--spacing-body-inline-start: var(--mer-spacing--sm);--spacing-body-inline-end: var(--mer-spacing--sm);--ch-dialog-max-inline-size: 800px;background-color:var(--mer-surface__elevation--01);box-shadow:var(--mer-box-shadow--01)}.dialog.ch-dialog--modal{background-color:rgba(32,36,40,.9);backdrop-filter:blur(1.5px);z-index:108}.dialog::part(header){gap:var(--mer-spacing--sm);padding-block:var(--mer-spacing--md);padding-inline:var(--mer-spacing--sm);border-block-end:var(--mer-border__width--sm) solid var(--mer-border-color__on-elevation--01)}.dialog::part(caption){word-break:break-word}.dialog::part(close-button){--icon-path: var(--icon__system_close_primary--enabled)}.dialog::part(close-button):hover{--icon-path: var(--icon__system_close_primary--hover)}.dialog::part(close-button):active{--icon-path: var(--icon__system_close_primary--active)}.dialog::part(content){overflow:auto}.dialog::part(footer){padding-block:var(--mer-spacing--xs);padding-inline:var(--mer-spacing--sm)}.dialog::part(edge){border-color:rgba(0,0,0,0);transition:var(--mer-timing--fast) border-color}.dialog::part(edge):hover{border-color:var(--mer-color__tinted-primary--20)}.dialog::part(edge-block-start){border-block-start-width:var(--mer-border__width--lg);border-block-start-style:solid}.dialog::part(edge-inline-end){border-inline-end-width:var(--mer-border__width--lg);border-inline-end-style:solid}.dialog::part(edge-block-end){border-block-end-width:var(--mer-border__width--lg);border-block-end-style:solid}.dialog::part(edge-inline-start){border-inline-start-width:var(--mer-border__width--lg);border-inline-start-style:solid}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.control-footer,.dialog::part(footer){--control-footer-justify-content: end;padding-block-start:var(--mer-spacing--xs);display:flex;justify-content:var(--control-footer-justify-content);align-items:center}.control-footer-start{--control-footer-justify-content: start}.control-footer-center{--control-footer-justify-content: center}.control-footer-space-between{--control-footer-justify-content: space-between}.dialog::part(footer){border-block-start:var(--mer-border__width--sm) solid var(--mer-border-color__on-elevation--01)}
1
+ .dialog::part(close-button){content:"";display:block;inline-size:var(--mer-icon__box--md);block-size:var(--mer-icon__box--md);background:no-repeat center/var(--mer-icon__size--md) var(--icon-path)}.dialog::part(caption){--heading-base__font-family: var(--mer-font-family--title);--heading__color: var( --mer-heading__gray--light );--heading-h1__font-size: var(--mer-font__size--xl);--heading-h1__font-weight: var(--mer-font__weight--bold);--heading-h1__line-height: var(--mer-line-height--tight);--heading-h2__font-size: var(--mer-font__size--lg);--heading-h2__font-weight: var(--mer-font__weight--bold);--heading-h2__line-height: var(--mer-line-height--tight);--heading-h3__font-size: var(--mer-font__size--sm);--heading-h3__font-weight: var(--mer-font__weight--bold);--heading-h3__line-height: var(--mer-line-height--regular);--heading-h4__font-size: var(--mer-font__size--xs);--heading-h4__font-weight: var(--mer-font__weight--bold);--heading-h4__line-height: var(--mer-line-height--spaced);--heading-h5__font-size: var(--mer-font__size--2xs);--heading-h5__font-weight: var(--mer-font__weight--bold);--heading-h5__line-height: var(--mer-line-height--spaced);--heading-h6__font-size: var(--mer-font__size--3xs);--heading-h6__font-weight: var(--mer-font__weight--semi-bold);--heading-h6__line-height: var(--mer-line-height--spaced);font-family:var(--mer-font-family--title);line-height:var(--mer-line-height--tight);color:var(--heading__color)}.dialog::part(caption){font-size:var(--mer-font__size--2xs);font-weight:var(--mer-font__weight--bold);line-height:var(--heading-h5__line-height)}.dialog::part(caption){--heading__color: var(--mer-heading__gray--light)}.dialog::part(dialog){--spacing-body-block-start: var(--mer-spacing--md);--spacing-body-block-end: var(--mer-spacing--md);--spacing-body-inline-start: var(--mer-spacing--sm);--spacing-body-inline-end: var(--mer-spacing--sm);--ch-dialog-max-inline-size: 800px;background-color:var(--mer-surface__elevation--01);box-shadow:var(--mer-box-shadow--01)}.dialog.ch-dialog--modal{background-color:color-mix(in srgb, var(--mer-color__neutral-gray--900) 71%, transparent 30%);backdrop-filter:blur(15px);z-index:108}.dialog::part(header){gap:var(--mer-spacing--sm);padding-block:var(--mer-spacing--md);padding-inline:var(--mer-spacing--sm);border-block-end:var(--mer-border__width--sm) solid var(--mer-border-color__on-elevation--01)}.dialog::part(caption){word-break:break-word}.dialog::part(close-button){--icon-path: var(--icon__system_close_primary--enabled)}.dialog::part(close-button):hover{--icon-path: var(--icon__system_close_primary--hover)}.dialog::part(close-button):active{--icon-path: var(--icon__system_close_primary--active)}.dialog::part(content){overflow:auto}.dialog::part(footer){padding-block:var(--mer-spacing--xs);padding-inline:var(--mer-spacing--sm)}.dialog::part(edge){border-color:rgba(0,0,0,0);transition:var(--mer-timing--fast) border-color}.dialog::part(edge):hover{border-color:var(--mer-color__tinted-primary--20)}.dialog::part(edge-block-start){border-block-start-width:var(--mer-border__width--lg);border-block-start-style:solid}.dialog::part(edge-inline-end){border-inline-end-width:var(--mer-border__width--lg);border-inline-end-style:solid}.dialog::part(edge-block-end){border-block-end-width:var(--mer-border__width--lg);border-block-end-style:solid}.dialog::part(edge-inline-start){border-inline-start-width:var(--mer-border__width--lg);border-inline-start-style:solid}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.control-footer,.dialog::part(footer){--control-footer-justify-content: end;padding-block-start:var(--mer-spacing--xs);display:flex;justify-content:var(--control-footer-justify-content);align-items:center}.control-footer-start{--control-footer-justify-content: start}.control-footer-center{--control-footer-justify-content: center}.control-footer-space-between{--control-footer-justify-content: space-between}.dialog::part(footer){border-block-start:var(--mer-border__width--sm) solid var(--mer-border-color__on-elevation--01)}
@@ -1 +1 @@
1
- @keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.toggle-large,.toggle-small{--ch-switch-track__unchecked-background-color: var( --mer-color__neutral-gray--650 );--ch-switch-track__checked-background-color: var( --mer-color__tinted-primary--50 );--ch-switch-thumb__unchecked-background-color: var(--mer-icon__neutral);--ch-switch-thumb__checked-background-color: var(--mer-icon__neutral);--ch-switch-thumb__state-transition-duration: 150ms}.toggle-large::part(track),.toggle-small::part(track){border-radius:var(--ch-switch-track-block-size);margin-inline-end:var(--mer-spacing--xs)}.toggle-large::part(track disabled),.toggle-small::part(track disabled){--ch-switch-track__unchecked-background-color: var( --mer-accent__primary--disabled );--ch-switch-track__checked-background-color: var( --mer-accent__primary--disabled );--ch-switch-thumb__unchecked-background-color: var( --mer-icon__on-disabled );--ch-switch-thumb__checked-background-color: var(--mer-icon__on-disabled)}.toggle-large::part(caption checked),.toggle-small::part(caption checked){font-weight:600}.toggle-small{--ch-switch-track-block-size: 16px;--ch-switch-track-inline-size: 31px;--ch-switch-thumb-size: 9px}.toggle-small::part(thumb unchecked){inset-inline-start:4px}.toggle-small::part(thumb checked){inset-inline-start:calc(100% - var(--ch-switch-thumb-size) - 4px)}.toggle-large{--ch-switch-track-block-size: 26px;--ch-switch-track-inline-size: 50px;--ch-switch-thumb-size: 16px}.toggle-large::part(thumb unchecked){inset-inline-start:6px}.toggle-large::part(thumb checked){inset-inline-start:calc(100% - var(--ch-switch-thumb-size) - 6px)}
1
+ @keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.toggle-large,.toggle-small{--ch-switch-track__unchecked-background-color: var( --mer-color__neutral-gray--650 );--ch-switch-track__checked-background-color: var( --mer-color__tinted-primary--50 );--ch-switch-thumb__unchecked-background-color: var(--mer-icon__neutral);--ch-switch-thumb__checked-background-color: var(--mer-icon__neutral);--ch-switch-thumb__state-transition-duration: 150ms;font-weight:400}.toggle-large::part(track),.toggle-small::part(track){border-radius:var(--ch-switch-track-block-size);margin-inline-end:var(--mer-spacing--xs)}.toggle-large::part(track disabled),.toggle-small::part(track disabled){--ch-switch-track__unchecked-background-color: var( --mer-accent__primary--disabled );--ch-switch-track__checked-background-color: var( --mer-accent__primary--disabled );--ch-switch-thumb__unchecked-background-color: var( --mer-icon__on-disabled );--ch-switch-thumb__checked-background-color: var(--mer-icon__on-disabled)}.toggle-large::part(caption checked),.toggle-small::part(caption checked){font-weight:600}.toggle-small{--ch-switch-track-block-size: 16px;--ch-switch-track-inline-size: 31px;--ch-switch-thumb-size: 9px}.toggle-small::part(thumb unchecked){inset-inline-start:4px}.toggle-small::part(thumb checked){inset-inline-start:calc(100% - var(--ch-switch-thumb-size) - 4px)}.toggle-large{--ch-switch-track-block-size: 26px;--ch-switch-track-inline-size: 50px;--ch-switch-thumb-size: 16px}.toggle-large::part(thumb unchecked){inset-inline-start:6px}.toggle-large::part(thumb checked){inset-inline-start:calc(100% - var(--ch-switch-thumb-size) - 6px)}
package/dist/bundles.d.ts CHANGED
@@ -1,13 +1,5 @@
1
- import { ThemeModel } from "@genexus/chameleon-controls-library";
2
- export type MercuryBundles = [MercuryBundleReset, ...MercuryBundleOptimized[]] | [MercuryBundleReset, ...MercuryBundleFull[]];
3
- export type MercuryBundleOptimized = MercuryBundleComponent | MercuryBundleComponentForm | MercuryBundleUtil;
4
- export type MercuryBundleFull = MercuryBundleComponent | MercuryBundleUtil | MercuryBundleUtilFormFull;
5
- export type MercuryBundleBase = "base/base" | "base/icons";
6
- 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";
7
- export type MercuryBundleComponentForm = "components/button" | "components/checkbox" | "components/combo-box" | "components/edit" | "components/icon" | "components/radio-group" | "components/slider" | "components/toggle";
8
- export type MercuryBundleReset = "resets/box-sizing";
9
- export type MercuryBundleUtil = "utils/elevation" | "utils/form" | "utils/layout" | "utils/spacing" | "utils/typography" | "chameleon/scrollbar";
10
- export type MercuryBundleUtilFormFull = "utils/form--full";
1
+ import type { ThemeModel } from "@genexus/chameleon-controls-library";
2
+ import type { MercuryBundleComponent, MercuryBundleComponentForm, MercuryBundleFull, MercuryBundleOptimized, MercuryBundleReset, MercuryBundleUtil, MercuryBundleUtilFormFull } from "./types.ts";
11
3
  type BundleNames = MercuryBundleComponent | MercuryBundleComponentForm | MercuryBundleReset | MercuryBundleUtil | MercuryBundleUtilFormFull;
12
4
  /**
13
5
  * Given the basePath, returns all bundles (except base and icons) in the
package/dist/bundles.js CHANGED
@@ -1,96 +1 @@
1
- const getThemeModelItem = (basePath, bundleName, attachStyleSheet = undefined) => attachStyleSheet === undefined
2
- ? {
3
- name: bundleName,
4
- url: `${basePath}${bundleName}.css`
5
- }
6
- : {
7
- name: bundleName,
8
- url: `${basePath}${bundleName}.css`,
9
- attachStyleSheet
10
- };
11
- /**
12
- * Given the basePath, returns all bundles (except base and icons) in the
13
- * format of type `ThemeModel`.
14
- *
15
- * This is useful for defining the following in an `index.html`:
16
- *
17
- * ```tsx
18
- * const THEME_BUNDLES = getThemeBundles("<base path>");
19
- *
20
- * HTML/render/template:
21
- * <body>
22
- * <ch-theme model={THEME_BUNDLES}></ch-theme>
23
- * ...
24
- * </body>
25
- * ```
26
- */
27
- export const getThemeBundles = (basePath) => [
28
- // Components
29
- getThemeModelItem(basePath, "components/accordion"),
30
- getThemeModelItem(basePath, "components/button"),
31
- getThemeModelItem(basePath, "components/chat"),
32
- getThemeModelItem(basePath, "components/checkbox"),
33
- getThemeModelItem(basePath, "components/code"),
34
- getThemeModelItem(basePath, "components/combo-box"),
35
- getThemeModelItem(basePath, "components/flexible-layout"),
36
- getThemeModelItem(basePath, "components/dialog"),
37
- getThemeModelItem(basePath, "components/icon"),
38
- getThemeModelItem(basePath, "components/edit"),
39
- getThemeModelItem(basePath, "components/layout-splitter"),
40
- getThemeModelItem(basePath, "components/list-box"),
41
- getThemeModelItem(basePath, "components/markdown-viewer", false),
42
- getThemeModelItem(basePath, "components/navigation-list"),
43
- getThemeModelItem(basePath, "components/pills"),
44
- getThemeModelItem(basePath, "components/radio-group"),
45
- getThemeModelItem(basePath, "components/segmented-control"),
46
- getThemeModelItem(basePath, "components/sidebar"),
47
- getThemeModelItem(basePath, "components/slider"),
48
- getThemeModelItem(basePath, "components/tab"),
49
- getThemeModelItem(basePath, "components/tabular-grid"),
50
- getThemeModelItem(basePath, "components/ticket-list"),
51
- getThemeModelItem(basePath, "components/toggle"),
52
- getThemeModelItem(basePath, "components/tooltip"),
53
- getThemeModelItem(basePath, "components/tree-view"),
54
- getThemeModelItem(basePath, "components/widget"),
55
- // Resets
56
- getThemeModelItem(basePath, "resets/box-sizing"),
57
- // Utils
58
- getThemeModelItem(basePath, "utils/form"),
59
- getThemeModelItem(basePath, "utils/elevation"),
60
- getThemeModelItem(basePath, "utils/form--full"),
61
- getThemeModelItem(basePath, "utils/layout"),
62
- getThemeModelItem(basePath, "utils/spacing"),
63
- getThemeModelItem(basePath, "utils/typography"),
64
- getThemeModelItem(basePath, "chameleon/scrollbar")
65
- ];
66
- /**
67
- * Given the bundles array and the basePath (optional), returns the given
68
- * bundles in the format of type `ThemeModel`.
69
- *
70
- * This is useful for defining the following in a dialog:
71
- *
72
- * ```tsx
73
- * const CSS_BUNDLES: ThemeModel = getBundles(
74
- * [
75
- * "components/accordion",
76
- * "components/button",
77
- * "components/checkbox",
78
- * "components/combo-box",
79
- * "components/edit",
80
- * "components/tree-view",
81
- * "utils/form",
82
- * "utils/layout",
83
- * ],
84
- * "./assets/css/"
85
- * );
86
- *
87
- * HTML/render/template:
88
- * <Host>
89
- * <ch-theme model={CSS_BUNDLES}></ch-theme>
90
- * ...
91
- * </Host>
92
- * ```
93
- */
94
- export const getBundles = (bundles, basePath) => basePath
95
- ? bundles.map(bundle => getThemeModelItem(basePath, bundle))
96
- : bundles;
1
+ "use strict";const n=(o,c,p=void 0)=>p===void 0?{name:c,url:`${o}${c}.css`}:{name:c,url:`${o}${c}.css`,attachStyleSheet:p};export const getThemeBundles=o=>[n(o,"components/accordion"),n(o,"components/button"),n(o,"components/chat"),n(o,"components/checkbox"),n(o,"components/code"),n(o,"components/combo-box"),n(o,"components/flexible-layout"),n(o,"components/dialog"),n(o,"components/icon"),n(o,"components/edit"),n(o,"components/layout-splitter"),n(o,"components/list-box"),n(o,"components/markdown-viewer",!1),n(o,"components/navigation-list"),n(o,"components/pills"),n(o,"components/radio-group"),n(o,"components/segmented-control"),n(o,"components/sidebar"),n(o,"components/slider"),n(o,"components/tab"),n(o,"components/tabular-grid"),n(o,"components/ticket-list"),n(o,"components/toggle"),n(o,"components/tooltip"),n(o,"components/tree-view"),n(o,"components/widget"),n(o,"resets/box-sizing"),n(o,"utils/form"),n(o,"utils/elevation"),n(o,"utils/form--full"),n(o,"utils/layout"),n(o,"utils/spacing"),n(o,"utils/typography"),n(o,"chameleon/scrollbar")],getBundles=(o,c)=>c?o.map(p=>n(c,p)):o;
@@ -0,0 +1,4 @@
1
+ export * from "./assets-manager.js";
2
+ export * from "./bundles.js";
3
+ export * from "./register-mercury.js";
4
+ export * from "./types.js";
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";export*from"./assets-manager.js";export*from"./bundles.js";export*from"./register-mercury.js";export*from"./types.js";
package/dist/mercury.scss CHANGED
@@ -5347,8 +5347,12 @@
5347
5347
  box-shadow: var(--mer-box-shadow--01);
5348
5348
 
5349
5349
  &__backdrop {
5350
- background-color: rgba(32, 36, 40, 0.9);
5351
- backdrop-filter: blur(1.5px);
5350
+ background-color: color-mix(
5351
+ in srgb,
5352
+ var(--mer-color__neutral-gray--900) 71%,
5353
+ transparent 30%
5354
+ );
5355
+ backdrop-filter: blur(15px);
5352
5356
  z-index: 108; // TODO: This is a WA to show the backdrop above the button of the dropdown
5353
5357
  }
5354
5358
 
@@ -10405,6 +10409,7 @@
10405
10409
  --ch-switch-thumb__unchecked-background-color: var(--mer-icon__neutral);
10406
10410
  --ch-switch-thumb__checked-background-color: var(--mer-icon__neutral);
10407
10411
  --ch-switch-thumb__state-transition-duration: 150ms;
10412
+ font-weight: 400; // TODO: USE THE RIGHT TOKEN AND LINE-HEIGHT
10408
10413
 
10409
10414
  &__track {
10410
10415
  border-radius: var(--ch-switch-track-block-size);
@@ -0,0 +1 @@
1
+ export declare const registerMercury: () => void;
@@ -0,0 +1 @@
1
+ "use strict";import{MERCURY_ALIAS as r,registerAssets as e}from"./assets-manager.js";import{MERCURY_ASSETS as t}from"./assets/MERCURY_ASSETS.js";export const registerMercury=()=>e("Mercury",r,t);
@@ -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/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";export{};
package/package.json CHANGED
@@ -1,17 +1,45 @@
1
1
  {
2
2
  "name": "@genexus/mercury",
3
- "version": "0.11.0",
3
+ "version": "0.12.1",
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",