@mgremy/ng-primitives 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.
- package/fesm2022/mgremy-ng-primitives-dialog.mjs +39 -33
- package/fesm2022/mgremy-ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-switch.mjs +58 -0
- package/fesm2022/mgremy-ng-primitives-switch.mjs.map +1 -0
- package/package.json +5 -1
- package/switch/README.md +4 -0
- package/theme/animation.css +63 -0
- package/theme/components/accordion.css +16 -17
- package/theme/components/button.css +2 -2
- package/theme/components/checkbox.css +6 -6
- package/theme/components/combobox.css +14 -38
- package/theme/components/dialog.css +51 -51
- package/theme/components/input.css +4 -4
- package/theme/components/menu.css +8 -32
- package/theme/components/pagination.css +9 -9
- package/theme/components/switch.css +44 -0
- package/theme/components/toast.css +5 -18
- package/theme/components/tooltip.css +5 -29
- package/theme/mgnp.css +16 -1
- package/types/mgremy-ng-primitives-dialog.d.ts +14 -7
- package/types/mgremy-ng-primitives-switch.d.ts +17 -0
- package/theme/ngp_tw.css +0 -50
|
@@ -1,75 +1,81 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Directive } from '@angular/core';
|
|
3
|
-
import { NgpDialog, NgpDialogDescription,
|
|
2
|
+
import { inject, input, Directive } from '@angular/core';
|
|
3
|
+
import { NgpDialogOverlay, NgpDialog, NgpDialogDescription, NgpDialogTitle } from 'ng-primitives/dialog';
|
|
4
4
|
|
|
5
|
-
const options$3 = ['
|
|
6
|
-
const error$3 = new Error(`
|
|
7
|
-
class
|
|
8
|
-
|
|
5
|
+
const options$3 = ['ngpDialogOverlay'];
|
|
6
|
+
const error$3 = new Error(`MgnpDialogOverlay must be used with ${options$3.join(' / ')}`);
|
|
7
|
+
class MgnpDialogOverlay {
|
|
8
|
+
_ngpDialogOverlay = inject(NgpDialogOverlay, { optional: true });
|
|
9
|
+
mode = input('modal', ...(ngDevMode ? [{ debugName: "mode" }] : []));
|
|
10
|
+
drawerPosition = input('end', ...(ngDevMode ? [{ debugName: "drawerPosition" }] : []));
|
|
9
11
|
constructor() {
|
|
10
|
-
if (!this.
|
|
12
|
+
if (!this._ngpDialogOverlay) {
|
|
11
13
|
console.error(this);
|
|
12
14
|
throw error$3;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type:
|
|
16
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogOverlay, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
18
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.1", type: MgnpDialogOverlay, isStandalone: true, selector: "[ngpDialogOverlay][mgnpDialogOverlay]", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, drawerPosition: { classPropertyName: "drawerPosition", publicName: "drawerPosition", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-mgnp-component": "mgnp-dialog-overlay" }, properties: { "attr.data-mgnp-mode": "mode()", "attr.data-mgnp-drawer-position": "drawerPosition()" } }, ngImport: i0 });
|
|
17
19
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type:
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogOverlay, decorators: [{
|
|
19
21
|
type: Directive,
|
|
20
22
|
args: [{
|
|
21
|
-
selector: '[
|
|
23
|
+
selector: '[ngpDialogOverlay][mgnpDialogOverlay]',
|
|
22
24
|
standalone: true,
|
|
23
25
|
host: {
|
|
24
|
-
'data-mgnp-component': 'mgnp-dialog',
|
|
26
|
+
'data-mgnp-component': 'mgnp-dialog-overlay',
|
|
27
|
+
'[attr.data-mgnp-mode]': 'mode()',
|
|
28
|
+
'[attr.data-mgnp-drawer-position]': 'drawerPosition()',
|
|
25
29
|
},
|
|
26
30
|
}]
|
|
27
|
-
}], ctorParameters: () => [] });
|
|
31
|
+
}], ctorParameters: () => [], propDecorators: { mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], drawerPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "drawerPosition", required: false }] }] } });
|
|
28
32
|
|
|
29
|
-
const options$2 = ['
|
|
30
|
-
const error$2 = new Error(`
|
|
31
|
-
class
|
|
32
|
-
|
|
33
|
+
const options$2 = ['ngpDialog'];
|
|
34
|
+
const error$2 = new Error(`MgnpDialog must be used with ${options$2.join(' / ')}`);
|
|
35
|
+
class MgnpDialog {
|
|
36
|
+
_overlay = inject(MgnpDialogOverlay);
|
|
37
|
+
_ngpDialog = inject(NgpDialog, { optional: true });
|
|
33
38
|
constructor() {
|
|
34
|
-
if (!this.
|
|
39
|
+
if (!this._ngpDialog) {
|
|
35
40
|
console.error(this);
|
|
36
41
|
throw error$2;
|
|
37
42
|
}
|
|
38
43
|
}
|
|
39
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type:
|
|
40
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type:
|
|
44
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialog, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
45
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpDialog, isStandalone: true, selector: "[ngpDialog][mgnpDialog]", host: { attributes: { "data-mgnp-component": "mgnp-dialog" }, properties: { "attr.data-mgnp-mode": "_overlay.mode()" } }, ngImport: i0 });
|
|
41
46
|
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type:
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialog, decorators: [{
|
|
43
48
|
type: Directive,
|
|
44
49
|
args: [{
|
|
45
|
-
selector: '[
|
|
50
|
+
selector: '[ngpDialog][mgnpDialog]',
|
|
46
51
|
standalone: true,
|
|
47
52
|
host: {
|
|
48
|
-
'data-mgnp-component': 'mgnp-dialog
|
|
53
|
+
'data-mgnp-component': 'mgnp-dialog',
|
|
54
|
+
'[attr.data-mgnp-mode]': '_overlay.mode()',
|
|
49
55
|
},
|
|
50
56
|
}]
|
|
51
57
|
}], ctorParameters: () => [] });
|
|
52
58
|
|
|
53
|
-
const options$1 = ['
|
|
54
|
-
const error$1 = new Error(`
|
|
55
|
-
class
|
|
56
|
-
|
|
59
|
+
const options$1 = ['ngpDialogDescription'];
|
|
60
|
+
const error$1 = new Error(`MgnpDialogDescription must be used with ${options$1.join(' / ')}`);
|
|
61
|
+
class MgnpDialogDescription {
|
|
62
|
+
_ngpDialogDescription = inject(NgpDialogDescription, { optional: true });
|
|
57
63
|
constructor() {
|
|
58
|
-
if (!this.
|
|
64
|
+
if (!this._ngpDialogDescription) {
|
|
59
65
|
console.error(this);
|
|
60
66
|
throw error$1;
|
|
61
67
|
}
|
|
62
68
|
}
|
|
63
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type:
|
|
64
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type:
|
|
69
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
70
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpDialogDescription, isStandalone: true, selector: "[ngpDialogDescription][mgnpDialogDescription]", host: { attributes: { "data-mgnp-component": "mgnp-dialog-description" } }, ngImport: i0 });
|
|
65
71
|
}
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type:
|
|
72
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogDescription, decorators: [{
|
|
67
73
|
type: Directive,
|
|
68
74
|
args: [{
|
|
69
|
-
selector: '[
|
|
75
|
+
selector: '[ngpDialogDescription][mgnpDialogDescription]',
|
|
70
76
|
standalone: true,
|
|
71
77
|
host: {
|
|
72
|
-
'data-mgnp-component': 'mgnp-dialog-
|
|
78
|
+
'data-mgnp-component': 'mgnp-dialog-description',
|
|
73
79
|
},
|
|
74
80
|
}]
|
|
75
81
|
}], ctorParameters: () => [] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mgremy-ng-primitives-dialog.mjs","sources":["../../../../libs/ng-primitives/dialog/src/lib/mgnp-dialog/mgnp-dialog.directive.ts","../../../../libs/ng-primitives/dialog/src/lib/mgnp-dialog
|
|
1
|
+
{"version":3,"file":"mgremy-ng-primitives-dialog.mjs","sources":["../../../../libs/ng-primitives/dialog/src/lib/mgnp-dialog-overlay/mgnp-dialog-overlay.directive.ts","../../../../libs/ng-primitives/dialog/src/lib/mgnp-dialog/mgnp-dialog.directive.ts","../../../../libs/ng-primitives/dialog/src/lib/mgnp-dialog-description/mgnp-dialog-description.directive.ts","../../../../libs/ng-primitives/dialog/src/lib/mgnp-dialog-title/mgnp-dialog-title.directive.ts","../../../../libs/ng-primitives/dialog/src/mgremy-ng-primitives-dialog.ts"],"sourcesContent":["import { PropertyType } from '@mgremy/ng-primitives';\n\nimport { Directive, inject, input } from '@angular/core';\nimport { NgpDialogOverlay } from 'ng-primitives/dialog';\n\nconst options = ['ngpDialogOverlay'];\n\nconst error = new Error(`MgnpDialogOverlay must be used with ${options.join(' / ')}`);\n\nexport type MgnpDialogOverlayMode = PropertyType<'modal' | 'drawer'>;\n\nexport type MgnpDialogDrawerPosition = PropertyType<'start' | 'end'>;\n\n@Directive({\n selector: '[ngpDialogOverlay][mgnpDialogOverlay]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-dialog-overlay',\n '[attr.data-mgnp-mode]': 'mode()',\n '[attr.data-mgnp-drawer-position]': 'drawerPosition()',\n },\n})\nexport class MgnpDialogOverlay {\n private readonly _ngpDialogOverlay = inject(NgpDialogOverlay, { optional: true });\n\n readonly mode = input<MgnpDialogOverlayMode>('modal');\n readonly drawerPosition = input<MgnpDialogDrawerPosition>('end');\n\n constructor() {\n if (!this._ngpDialogOverlay) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { MgnpDialogOverlay } from '../mgnp-dialog-overlay/mgnp-dialog-overlay.directive';\n\nimport { Directive, inject } from '@angular/core';\nimport { NgpDialog } from 'ng-primitives/dialog';\n\nconst options = ['ngpDialog'];\n\nconst error = new Error(`MgnpDialog must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpDialog][mgnpDialog]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-dialog',\n '[attr.data-mgnp-mode]': '_overlay.mode()',\n },\n})\nexport class MgnpDialog {\n protected readonly _overlay = inject(MgnpDialogOverlay);\n private readonly _ngpDialog = inject(NgpDialog, { optional: true });\n\n constructor() {\n if (!this._ngpDialog) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { NgpDialogDescription } from 'ng-primitives/dialog';\n\nconst options = ['ngpDialogDescription'];\n\nconst error = new Error(`MgnpDialogDescription must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpDialogDescription][mgnpDialogDescription]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-dialog-description',\n },\n})\nexport class MgnpDialogDescription {\n private readonly _ngpDialogDescription = inject(NgpDialogDescription, { optional: true });\n\n constructor() {\n if (!this._ngpDialogDescription) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { NgpDialogTitle } from 'ng-primitives/dialog';\n\nconst options = ['ngpDialogTitle'];\n\nconst error = new Error(`MgnpDialogTitle must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpDialogTitle][mgnpDialogTitle]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-dialog-title',\n },\n})\nexport class MgnpDialogTitle {\n private readonly _ngpDialogTitle = inject(NgpDialogTitle, { optional: true });\n\n constructor() {\n if (!this._ngpDialogTitle) {\n console.error(this);\n throw error;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["options","error"],"mappings":";;;;AAKA,MAAMA,SAAO,GAAG,CAAC,kBAAkB,CAAC;AAEpC,MAAMC,OAAK,GAAG,IAAI,KAAK,CAAC,CAAA,oCAAA,EAAuCD,SAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAE,CAAC;MAexE,iBAAiB,CAAA;IACX,iBAAiB,GAAG,MAAM,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAExE,IAAA,IAAI,GAAG,KAAK,CAAwB,OAAO,gDAAC;AAC5C,IAAA,cAAc,GAAG,KAAK,CAA2B,KAAK,0DAAC;AAEhE,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;AAC3B,YAAA,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;AACnB,YAAA,MAAMC,OAAK;QACb;IACF;uGAXW,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uCAAA,EAAA,MAAA,EAAA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C3C,qBAAA;AACF,iBAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, Directive } from '@angular/core';
|
|
3
|
+
import { NgpSwitch, NgpSwitchThumb } from 'ng-primitives/switch';
|
|
4
|
+
|
|
5
|
+
const options$1 = ['ngpSwitch'];
|
|
6
|
+
const error$1 = new Error(`MgnpSwitch must be used with ${options$1.join(' / ')}`);
|
|
7
|
+
class MgnpSwitch {
|
|
8
|
+
_ngpSwitch = inject(NgpSwitch, { optional: true });
|
|
9
|
+
constructor() {
|
|
10
|
+
if (!this._ngpSwitch) {
|
|
11
|
+
console.error(this);
|
|
12
|
+
throw error$1;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpSwitch, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpSwitch, isStandalone: true, selector: "[ngpSwitch][mgnpSwitch]", host: { attributes: { "data-mgnp-component": "mgnp-switch" } }, ngImport: i0 });
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpSwitch, decorators: [{
|
|
19
|
+
type: Directive,
|
|
20
|
+
args: [{
|
|
21
|
+
selector: '[ngpSwitch][mgnpSwitch]',
|
|
22
|
+
standalone: true,
|
|
23
|
+
host: {
|
|
24
|
+
'data-mgnp-component': 'mgnp-switch',
|
|
25
|
+
},
|
|
26
|
+
}]
|
|
27
|
+
}], ctorParameters: () => [] });
|
|
28
|
+
|
|
29
|
+
const options = ['ngpSwitchThumb'];
|
|
30
|
+
const error = new Error(`MgnpSwitchThumb must be used with ${options.join(' / ')}`);
|
|
31
|
+
class MgnpSwitchThumb {
|
|
32
|
+
_ngpSwitchThumb = inject(NgpSwitchThumb, { optional: true });
|
|
33
|
+
constructor() {
|
|
34
|
+
if (!this._ngpSwitchThumb) {
|
|
35
|
+
console.error(this);
|
|
36
|
+
throw error;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpSwitchThumb, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
40
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpSwitchThumb, isStandalone: true, selector: "[ngpSwitchThumb][mgnpSwitchThumb]", host: { attributes: { "data-mgnp-component": "mgnp-switch-thumb" } }, ngImport: i0 });
|
|
41
|
+
}
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpSwitchThumb, decorators: [{
|
|
43
|
+
type: Directive,
|
|
44
|
+
args: [{
|
|
45
|
+
selector: '[ngpSwitchThumb][mgnpSwitchThumb]',
|
|
46
|
+
standalone: true,
|
|
47
|
+
host: {
|
|
48
|
+
'data-mgnp-component': 'mgnp-switch-thumb',
|
|
49
|
+
},
|
|
50
|
+
}]
|
|
51
|
+
}], ctorParameters: () => [] });
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Generated bundle index. Do not edit.
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
export { MgnpSwitch, MgnpSwitchThumb };
|
|
58
|
+
//# sourceMappingURL=mgremy-ng-primitives-switch.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mgremy-ng-primitives-switch.mjs","sources":["../../../../libs/ng-primitives/switch/src/lib/mgnp-switch/mgnp-switch.directive.ts","../../../../libs/ng-primitives/switch/src/lib/mgnp-switch-thumb/mgnp-switch-thumb.directive.ts","../../../../libs/ng-primitives/switch/src/mgremy-ng-primitives-switch.ts"],"sourcesContent":["import { Directive, inject } from '@angular/core';\nimport { NgpSwitch } from 'ng-primitives/switch';\n\nconst options = ['ngpSwitch'];\n\nconst error = new Error(`MgnpSwitch must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpSwitch][mgnpSwitch]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-switch',\n },\n})\nexport class MgnpSwitch {\n private readonly _ngpSwitch = inject(NgpSwitch, { optional: true });\n\n constructor() {\n if (!this._ngpSwitch) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { NgpSwitchThumb } from 'ng-primitives/switch';\n\nconst options = ['ngpSwitchThumb'];\n\nconst error = new Error(`MgnpSwitchThumb must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpSwitchThumb][mgnpSwitchThumb]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-switch-thumb',\n },\n})\nexport class MgnpSwitchThumb {\n private readonly _ngpSwitchThumb = inject(NgpSwitchThumb, { optional: true });\n\n constructor() {\n if (!this._ngpSwitchThumb) {\n console.error(this);\n throw error;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["options","error"],"mappings":";;;;AAGA,MAAMA,SAAO,GAAG,CAAC,WAAW,CAAC;AAE7B,MAAMC,OAAK,GAAG,IAAI,KAAK,CAAC,CAAA,6BAAA,EAAgCD,SAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAE,CAAC;MASjE,UAAU,CAAA;IACJ,UAAU,GAAG,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAEnE,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;AACpB,YAAA,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;AACnB,YAAA,MAAMC,OAAK;QACb;IACF;uGARW,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAA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,QAAQ,EAAE,mCAAmC;AAC7C,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,mBAAmB;AAC3C,qBAAA;AACF,iBAAA;;;ACbD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mgremy/ng-primitives",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://doc.mgremy.xyz/ng-primitives",
|
|
6
6
|
"publishConfig": {
|
|
@@ -57,6 +57,10 @@
|
|
|
57
57
|
"types": "./types/mgremy-ng-primitives-pagination.d.ts",
|
|
58
58
|
"default": "./fesm2022/mgremy-ng-primitives-pagination.mjs"
|
|
59
59
|
},
|
|
60
|
+
"./switch": {
|
|
61
|
+
"types": "./types/mgremy-ng-primitives-switch.d.ts",
|
|
62
|
+
"default": "./fesm2022/mgremy-ng-primitives-switch.mjs"
|
|
63
|
+
},
|
|
60
64
|
"./toast": {
|
|
61
65
|
"types": "./types/mgremy-ng-primitives-toast.d.ts",
|
|
62
66
|
"default": "./fesm2022/mgremy-ng-primitives-toast.mjs"
|
package/switch/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
@keyframes mg-show {
|
|
3
|
+
from {
|
|
4
|
+
opacity: 0;
|
|
5
|
+
transform: translateY(var(--mg-default-animation-translateY-origin)) scale(0.9);
|
|
6
|
+
}
|
|
7
|
+
to {
|
|
8
|
+
opacity: 1;
|
|
9
|
+
transform: translateY(var(--mg-default-animation-translateY-base)) scale(1);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@keyframes mg-hide {
|
|
14
|
+
from {
|
|
15
|
+
opacity: 1;
|
|
16
|
+
transform: translateY(var(--mg-default-animation-translateY-base)) scale(1);
|
|
17
|
+
}
|
|
18
|
+
to {
|
|
19
|
+
opacity: 0;
|
|
20
|
+
transform: translateY(var(--mg-default-animation-translateY-origin)) scale(0.9);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@keyframes mg-slide-in {
|
|
25
|
+
from {
|
|
26
|
+
opacity: 0;
|
|
27
|
+
transform: translateY(var(--mg-default-animation-translateY-origin));
|
|
28
|
+
}
|
|
29
|
+
to {
|
|
30
|
+
opacity: 1;
|
|
31
|
+
transform: translateY(var(--mg-default-animation-translateY-base));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@keyframes mg-slide-out {
|
|
36
|
+
from {
|
|
37
|
+
opacity: 1;
|
|
38
|
+
transform: translateY(var(--mg-default-animation-translateY-base));
|
|
39
|
+
}
|
|
40
|
+
to {
|
|
41
|
+
opacity: 0;
|
|
42
|
+
transform: translateY(var(--mg-default-animation-translateY-origin));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@keyframes mg-fade-in {
|
|
47
|
+
0% {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
}
|
|
50
|
+
100% {
|
|
51
|
+
opacity: 1;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@keyframes mg-fade-out {
|
|
56
|
+
0% {
|
|
57
|
+
opacity: 1;
|
|
58
|
+
}
|
|
59
|
+
100% {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@utility mgnp-accordion {
|
|
2
2
|
border-radius: --spacing(3);
|
|
3
|
-
border: 1px solid var(--
|
|
4
|
-
background-color: var(--
|
|
5
|
-
box-shadow: var(--
|
|
3
|
+
border: 1px solid var(--mg-border-ui);
|
|
4
|
+
background-color: var(--mg-background-ui);
|
|
5
|
+
box-shadow: var(--mg-shadow-ui);
|
|
6
6
|
|
|
7
7
|
@variant data-[orientation=vertical] {
|
|
8
8
|
display: block;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
@utility mgnp-accordion-content {
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
font-size: --spacing(3.5);
|
|
24
|
-
color: var(--
|
|
24
|
+
color: var(--mg-text-ui-secondary);
|
|
25
25
|
|
|
26
26
|
@variant data-open:data-[orientation=vertical] {
|
|
27
27
|
animation: accordion-show-vertical var(--default-transition-duration)
|
|
@@ -47,17 +47,8 @@
|
|
|
47
47
|
@utility mgnp-accordion-item {
|
|
48
48
|
display: flex;
|
|
49
49
|
|
|
50
|
-
h1,
|
|
51
|
-
h2,
|
|
52
|
-
h3,
|
|
53
|
-
h4,
|
|
54
|
-
h5,
|
|
55
|
-
h6 {
|
|
56
|
-
margin: --spacing(0);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
50
|
@variant not-last {
|
|
60
|
-
border-bottom: 1px solid var(--
|
|
51
|
+
border-bottom: 1px solid var(--mg-border-ui);
|
|
61
52
|
}
|
|
62
53
|
|
|
63
54
|
@variant data-[orientation=horizontal] {
|
|
@@ -67,6 +58,15 @@
|
|
|
67
58
|
@variant data-[orientation=vertical] {
|
|
68
59
|
flex-direction: column;
|
|
69
60
|
}
|
|
61
|
+
|
|
62
|
+
h1,
|
|
63
|
+
h2,
|
|
64
|
+
h3,
|
|
65
|
+
h4,
|
|
66
|
+
h5,
|
|
67
|
+
h6 {
|
|
68
|
+
margin: --spacing(0);
|
|
69
|
+
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
@utility mgnp-accordion-trigger {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
font-size: --spacing(3.5);
|
|
84
84
|
line-height: --spacing(5);
|
|
85
85
|
border-radius: --spacing(3);
|
|
86
|
-
color: var(--
|
|
86
|
+
color: var(--mg-text-ui);
|
|
87
87
|
|
|
88
88
|
@variant data-[orientation=vertical] {
|
|
89
89
|
width: 100%;
|
|
@@ -99,8 +99,7 @@
|
|
|
99
99
|
|
|
100
100
|
@variant data-focus-visible {
|
|
101
101
|
overflow: hidden;
|
|
102
|
-
|
|
103
|
-
color: var(--ngp-text-secondary);
|
|
102
|
+
color: var(--mg-text-ui-secondary);
|
|
104
103
|
}
|
|
105
104
|
|
|
106
105
|
ng-icon {
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
width: max-content;
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
border-radius: var(--radius-lg);
|
|
8
|
-
box-shadow: var(--
|
|
8
|
+
box-shadow: var(--mg-shadow-button);
|
|
9
9
|
|
|
10
10
|
@variant data-focus-visible {
|
|
11
|
-
outline: 2px solid var(--
|
|
11
|
+
outline: 2px solid var(--mg-ring-ui);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
@variant data-disabled {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
justify-content: center;
|
|
7
7
|
background-color: transparent;
|
|
8
8
|
outline: none;
|
|
9
|
-
border: 1px solid var(--
|
|
10
|
-
color: var(--
|
|
9
|
+
border: 1px solid var(--mg-border-ui);
|
|
10
|
+
color: var(--mg-text-inverse);
|
|
11
11
|
border-radius: var(--radius-sm);
|
|
12
12
|
font-size: var(--text-base);
|
|
13
13
|
line-height: var(--text-base--line-height);
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
height: --spacing(5);
|
|
17
17
|
|
|
18
18
|
@variant data-hover {
|
|
19
|
-
background-color: var(--
|
|
19
|
+
background-color: var(--mg-background-ui-hover);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
@variant data-checked, data-indeterminate {
|
|
23
|
-
border-color: var(--
|
|
24
|
-
background-color: var(--
|
|
23
|
+
border-color: var(--mg-background-ui-inverse);
|
|
24
|
+
background-color: var(--mg-background-ui-inverse);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
@variant data-focus-visible {
|
|
28
|
-
outline: --spacing(0.5) solid var(--
|
|
28
|
+
outline: --spacing(0.5) solid var(--mg-ring-ui);
|
|
29
29
|
outline-offset: --spacing(0.5);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
border: none;
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
border-radius: var(--radius-lg);
|
|
10
|
-
background-color: var(--
|
|
11
|
-
box-shadow: var(--
|
|
10
|
+
background-color: var(--mg-background-ui);
|
|
11
|
+
box-shadow: var(--mg-shadow-input);
|
|
12
12
|
|
|
13
13
|
@variant data-focus {
|
|
14
14
|
outline-offset: 2px;
|
|
15
|
-
outline: 2px solid var(--
|
|
15
|
+
outline: 2px solid var(--mg-ring-ui);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
padding-inline: --spacing(4);
|
|
29
29
|
font-size: var(--text-sm);
|
|
30
30
|
line-height: var(--text-sm--line-height);
|
|
31
|
-
color: var(--
|
|
31
|
+
color: var(--mg-text-ui);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
@utility mgnp-combobox-button {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
box-sizing: border-box;
|
|
43
43
|
box-shadow: none;
|
|
44
|
-
color: var(--
|
|
44
|
+
color: var(--mg-text-ui);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
@utility mgnp-combobox-dropdown {
|
|
@@ -56,16 +56,16 @@
|
|
|
56
56
|
margin-top: --spacing(1);
|
|
57
57
|
max-height: --spacing(60);
|
|
58
58
|
width: var(--ngp-combobox-width);
|
|
59
|
-
box-shadow: var(--
|
|
60
|
-
background-color: var(--
|
|
61
|
-
border: 1px solid var(--
|
|
59
|
+
box-shadow: var(--mg-shadow-lg);
|
|
60
|
+
background-color: var(--mg-background-ui);
|
|
61
|
+
border: 1px solid var(--mg-border-ui);
|
|
62
62
|
|
|
63
63
|
@variant data-enter {
|
|
64
|
-
animation:
|
|
64
|
+
animation: mg-show var(--default-transition-duration) var(--default-transition-timing-function);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
@variant data-exit {
|
|
68
|
-
animation:
|
|
68
|
+
animation: mg-hide var(--default-transition-duration) var(--default-transition-timing-function);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -82,18 +82,18 @@
|
|
|
82
82
|
border-radius: var(--radius-lg);
|
|
83
83
|
font-size: var(--text-sm);
|
|
84
84
|
line-height: var(--text-sm--line-height);
|
|
85
|
-
color: var(--
|
|
85
|
+
color: var(--mg-text-ui);
|
|
86
86
|
|
|
87
87
|
@variant data-hover {
|
|
88
|
-
background-color: var(--
|
|
88
|
+
background-color: var(--mg-background-ui-hover);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
@variant data-press {
|
|
92
|
-
background-color: var(--
|
|
92
|
+
background-color: var(--mg-background-ui-active);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
@variant data-active {
|
|
96
|
-
background-color: var(--
|
|
96
|
+
background-color: var(--mg-background-ui-active);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
@variant data-disabled {
|
|
@@ -122,27 +122,3 @@
|
|
|
122
122
|
@apply mgnp-combobox-option transition;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
|
|
126
|
-
@theme {
|
|
127
|
-
@keyframes combobox-show {
|
|
128
|
-
0% {
|
|
129
|
-
opacity: 0;
|
|
130
|
-
transform: translateY(-10px) scale(0.9);
|
|
131
|
-
}
|
|
132
|
-
100% {
|
|
133
|
-
opacity: 1;
|
|
134
|
-
transform: translateY(0) scale(1);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@keyframes combobox-hide {
|
|
139
|
-
0% {
|
|
140
|
-
opacity: 1;
|
|
141
|
-
transform: translateY(0) scale(1);
|
|
142
|
-
}
|
|
143
|
-
100% {
|
|
144
|
-
opacity: 0;
|
|
145
|
-
transform: translateY(-10px) scale(0.9);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
@utility mgnp-dialog {
|
|
2
2
|
background-color: var(--mg-background-ui);
|
|
3
|
-
box-shadow: var(--
|
|
3
|
+
box-shadow: var(--mg-shadow-button);
|
|
4
4
|
padding: --spacing(6);
|
|
5
|
-
border-radius: --spacing(2);
|
|
6
|
-
animation: fade-in var(--default-transition-duration) var(--default-transition-timing-function);
|
|
7
5
|
|
|
8
|
-
@variant data-
|
|
9
|
-
|
|
6
|
+
@variant data-[mgnp-mode='modal'] {
|
|
7
|
+
border-radius: --spacing(2);
|
|
8
|
+
animation: mg-fade-in var(--default-transition-duration)
|
|
9
|
+
var(--default-transition-timing-function);
|
|
10
|
+
|
|
11
|
+
@variant data-exit {
|
|
12
|
+
animation: mg-fade-out var(--default-transition-duration)
|
|
13
|
+
var(--default-transition-timing-function);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@variant data-[mgnp-mode='drawer'] {
|
|
18
|
+
width: --spacing(80);
|
|
19
|
+
max-width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
animation: mg-slide-in var(--default-transition-duration)
|
|
22
|
+
var(--default-transition-timing-function);
|
|
23
|
+
|
|
24
|
+
@variant data-exit {
|
|
25
|
+
animation: mg-slide-out var(--default-transition-duration)
|
|
26
|
+
var(--default-transition-timing-function);
|
|
27
|
+
}
|
|
10
28
|
}
|
|
11
29
|
}
|
|
12
30
|
|
|
@@ -26,18 +44,41 @@
|
|
|
26
44
|
|
|
27
45
|
@utility mgnp-dialog-overlay {
|
|
28
46
|
display: flex;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
align-items: center;
|
|
31
47
|
position: fixed;
|
|
32
48
|
z-index: 9999;
|
|
33
49
|
background-color: --alpha(var(--mg-background-ui) / 50%);
|
|
34
50
|
backdrop-filter: blur(--spacing(0.5));
|
|
35
51
|
inset: --spacing(0);
|
|
36
|
-
animation: slide-in var(--default-transition-duration) var(--default-transition-timing-function);
|
|
37
52
|
|
|
38
|
-
@variant data-
|
|
39
|
-
|
|
53
|
+
@variant data-[mgnp-mode='modal'] {
|
|
54
|
+
justify-content: center;
|
|
55
|
+
align-items: center;
|
|
56
|
+
animation: mg-fade-in var(--default-transition-duration)
|
|
40
57
|
var(--default-transition-timing-function);
|
|
58
|
+
|
|
59
|
+
@variant data-exit {
|
|
60
|
+
animation: mg-fade-out var(--default-transition-duration)
|
|
61
|
+
var(--default-transition-timing-function);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@variant data-[mgnp-mode='drawer'] {
|
|
66
|
+
align-items: stretch;
|
|
67
|
+
animation: mg-slide-in var(--default-transition-duration)
|
|
68
|
+
var(--default-transition-timing-function);
|
|
69
|
+
|
|
70
|
+
@variant data-[mgnp-drawer-position='start'] {
|
|
71
|
+
justify-content: flex-start;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@variant data-[mgnp-drawer-position='end'] {
|
|
75
|
+
justify-content: flex-end;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@variant data-exit {
|
|
79
|
+
animation: mg-slide-out var(--default-transition-duration)
|
|
80
|
+
var(--default-transition-timing-function);
|
|
81
|
+
}
|
|
41
82
|
}
|
|
42
83
|
}
|
|
43
84
|
|
|
@@ -58,44 +99,3 @@
|
|
|
58
99
|
@apply transition mgnp-dialog-overlay;
|
|
59
100
|
}
|
|
60
101
|
}
|
|
61
|
-
|
|
62
|
-
@keyframes fade-in {
|
|
63
|
-
0% {
|
|
64
|
-
opacity: 0;
|
|
65
|
-
}
|
|
66
|
-
100% {
|
|
67
|
-
opacity: 1;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@keyframes fade-out {
|
|
72
|
-
0% {
|
|
73
|
-
opacity: 1;
|
|
74
|
-
}
|
|
75
|
-
100% {
|
|
76
|
-
opacity: 0;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
@keyframes slide-in {
|
|
81
|
-
0% {
|
|
82
|
-
transform: translateY(-20px);
|
|
83
|
-
opacity: 0;
|
|
84
|
-
}
|
|
85
|
-
100% {
|
|
86
|
-
transform: translateY(0);
|
|
87
|
-
opacity: 1;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
@keyframes slide-out {
|
|
92
|
-
0% {
|
|
93
|
-
transform: translateY(0);
|
|
94
|
-
opacity: 1;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
100% {
|
|
98
|
-
transform: translateY(-20px);
|
|
99
|
-
opacity: 0;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
padding-block: --spacing(0);
|
|
7
7
|
padding-inline: --spacing(4);
|
|
8
8
|
border-radius: var(--radius-lg);
|
|
9
|
-
box-shadow: var(--
|
|
10
|
-
background-color: var(--
|
|
9
|
+
box-shadow: var(--mg-shadow-input);
|
|
10
|
+
background-color: var(--mg-background-ui);
|
|
11
11
|
|
|
12
12
|
@variant data-focus {
|
|
13
13
|
outline-offset: 2px;
|
|
14
|
-
outline: 2px solid var(--
|
|
14
|
+
outline: 2px solid var(--mg-ring-ui);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
::placeholder {
|
|
18
|
-
color: var(--
|
|
18
|
+
color: var(--mg-text-placeholder);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
width: max-content;
|
|
6
6
|
padding: --spacing(1);
|
|
7
7
|
border-radius: var(--radius-lg);
|
|
8
|
-
background: var(--
|
|
9
|
-
border: 1px solid var(--
|
|
10
|
-
box-shadow: var(--
|
|
8
|
+
background: var(--mg-background-ui);
|
|
9
|
+
border: 1px solid var(--mg-border-ui);
|
|
10
|
+
box-shadow: var(--mg-shadow-lg);
|
|
11
11
|
transform-origin: var(--ngp-menu-transform-origin);
|
|
12
12
|
|
|
13
13
|
@variant data-enter {
|
|
14
|
-
animation:
|
|
14
|
+
animation: mg-show var(--default-transition-duration) var(--default-transition-timing-function);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
@variant data-exit {
|
|
18
|
-
animation:
|
|
18
|
+
animation: mg-hide var(--default-transition-duration) var(--default-transition-timing-function);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
line-height: var(--text-sm--line-height);
|
|
34
34
|
|
|
35
35
|
@variant data-hover {
|
|
36
|
-
background-color: var(--
|
|
36
|
+
background-color: var(--mg-background-ui-hover);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
@variant data-press {
|
|
40
|
-
background-color: var(--
|
|
40
|
+
background-color: var(--mg-background-ui-active);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
@variant data-focus-visible {
|
|
44
44
|
z-index: 1;
|
|
45
|
-
outline: 2px solid var(--
|
|
45
|
+
outline: 2px solid var(--mg-ring-ui);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
@variant data-disabled {
|
|
@@ -59,27 +59,3 @@
|
|
|
59
59
|
@apply mgnp-menu-item transition;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
@theme {
|
|
64
|
-
@keyframes menu-show {
|
|
65
|
-
0% {
|
|
66
|
-
opacity: 0;
|
|
67
|
-
transform: scale(0.9);
|
|
68
|
-
}
|
|
69
|
-
100% {
|
|
70
|
-
opacity: 1;
|
|
71
|
-
transform: scale(1);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@keyframes menu-hide {
|
|
76
|
-
0% {
|
|
77
|
-
opacity: 1;
|
|
78
|
-
transform: scale(1);
|
|
79
|
-
}
|
|
80
|
-
100% {
|
|
81
|
-
opacity: 0;
|
|
82
|
-
transform: scale(0.9);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
@@ -18,28 +18,28 @@
|
|
|
18
18
|
border-radius: var(--radius-lg);
|
|
19
19
|
font-size: var(--text-sm);
|
|
20
20
|
font-weight: var(--font-weight-medium);
|
|
21
|
-
background-color: var(--
|
|
22
|
-
color: var(--
|
|
23
|
-
box-shadow: var(--
|
|
21
|
+
background-color: var(--mg-background-ui);
|
|
22
|
+
color: var(--mg-text-ui);
|
|
23
|
+
box-shadow: var(--mg-shadow-button);
|
|
24
24
|
|
|
25
25
|
@variant data-hover {
|
|
26
26
|
@variant not-data-disabled {
|
|
27
27
|
@variant not-data-selected {
|
|
28
|
-
background-color: var(--
|
|
28
|
+
background-color: var(--mg-background-ui-hover);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
@variant data-focus-visible {
|
|
34
34
|
@variant not-data-disabled {
|
|
35
|
-
outline: 2px solid var(--
|
|
35
|
+
outline: 2px solid var(--mg-ring-ui);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
@variant data-press {
|
|
40
40
|
@variant not-data-disabled {
|
|
41
41
|
@variant not-data-selected {
|
|
42
|
-
background-color: var(--
|
|
42
|
+
background-color: var(--mg-background-ui-active);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
cursor: not-allowed;
|
|
49
49
|
color: #d2d2d2;
|
|
50
50
|
box-shadow: none;
|
|
51
|
-
background-color: var(--
|
|
51
|
+
background-color: var(--mg-background-ui-disabled);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
@variant data-selected {
|
|
55
|
-
background-color: var(--
|
|
56
|
-
color: var(--
|
|
55
|
+
background-color: var(--mg-background-ui-inverse);
|
|
56
|
+
color: var(--mg-text-inverse);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@utility mgnp-switch {
|
|
2
|
+
position: relative;
|
|
3
|
+
outline: none;
|
|
4
|
+
border-radius: calc(infinity* 1px);
|
|
5
|
+
background-color: var(--mg-background-ui-secondary);
|
|
6
|
+
border: 1px solid var(--mg-border-ui);
|
|
7
|
+
width: --spacing(10);
|
|
8
|
+
height: --spacing(6);
|
|
9
|
+
padding: --spacing(0);
|
|
10
|
+
|
|
11
|
+
@variant data-focus-visible {
|
|
12
|
+
outline: 2px solid var(--mg-ring-ui);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@variant data-checked {
|
|
16
|
+
background-color: var(--mg-background-ui-active);
|
|
17
|
+
border-color: var(--mg-border-ui-secondary);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@utility mgnp-switch-thumb {
|
|
22
|
+
display: block;
|
|
23
|
+
outline: none;
|
|
24
|
+
border-radius: calc(infinity* 1px);
|
|
25
|
+
background-color: var(--mg-background-ui);
|
|
26
|
+
box-shadow: var(--mg-shadow-button);
|
|
27
|
+
width: --spacing(4);
|
|
28
|
+
height: --spacing(4);
|
|
29
|
+
margin-left: --spacing(1);
|
|
30
|
+
|
|
31
|
+
@variant data-checked {
|
|
32
|
+
transform: translateX(--spacing(4));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@layer base {
|
|
37
|
+
[mgnpSwitch][data-mgnp-component='mgnp-switch'] {
|
|
38
|
+
@apply mgnp-switch transition;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
[mgnpSwitchThumb][data-mgnp-component='mgnp-switch-thumb'] {
|
|
42
|
+
@apply mgnp-switch-thumb transition;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
padding: --spacing(3) --spacing(4);
|
|
10
10
|
border-radius: --spacing(2);
|
|
11
11
|
width: --spacing(87.5);
|
|
12
|
-
border: 1px solid var(--
|
|
13
|
-
background: var(--
|
|
14
|
-
box-shadow: var(--
|
|
12
|
+
border: 1px solid var(--mg-border-ui);
|
|
13
|
+
background: var(--mg-background-ui);
|
|
14
|
+
box-shadow: var(--mg-shadow-ui);
|
|
15
15
|
z-index: var(--ngp-toast-z-index);
|
|
16
16
|
transform: var(--y);
|
|
17
17
|
|
|
18
18
|
@variant data-enter {
|
|
19
|
-
opacity: 1;
|
|
20
19
|
--y: translateY(0);
|
|
21
|
-
|
|
20
|
+
opacity: 1;
|
|
21
|
+
animation: mg-slide-in var(--default-transition-duration) var(--default-transition-timing-function);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@variant data-exit {
|
|
@@ -109,16 +109,3 @@
|
|
|
109
109
|
@apply mgnp-toast transition;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
@theme {
|
|
114
|
-
@keyframes toast-slide-in {
|
|
115
|
-
from {
|
|
116
|
-
opacity: 0;
|
|
117
|
-
transform: translateY(100%);
|
|
118
|
-
}
|
|
119
|
-
to {
|
|
120
|
-
opacity: 1;
|
|
121
|
-
transform: translateY(0);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
@utility mgnp-tooltip {
|
|
2
2
|
position: absolute;
|
|
3
3
|
border: none;
|
|
4
|
-
animation:
|
|
4
|
+
animation: mg-show var(--default-transition-duration) var(--default-transition-timing-function);
|
|
5
5
|
max-width: --spacing(64);
|
|
6
6
|
padding-block: --spacing(2);
|
|
7
7
|
padding-inline: --spacing(3);
|
|
8
8
|
font-size: var(--text-xs);
|
|
9
9
|
line-height: var(--text-xs--line-height);
|
|
10
10
|
border-radius: var(--radius-lg);
|
|
11
|
-
background-color: var(--
|
|
12
|
-
color: var(--
|
|
11
|
+
background-color: var(--mg-background-ui-inverse);
|
|
12
|
+
color: var(--mg-text-inverse);
|
|
13
13
|
transform-origin: var(--ngp-tooltip-transform-origin);
|
|
14
14
|
|
|
15
15
|
@variant data-exit {
|
|
16
|
-
animation:
|
|
16
|
+
animation: mg-hide var(--default-transition-duration) var(--default-transition-timing-function);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
width: --spacing(2);
|
|
25
25
|
height: --spacing(2);
|
|
26
26
|
border-radius: var(--radius-xs);
|
|
27
|
-
background-color: var(--
|
|
27
|
+
background-color: var(--mg-background-ui-inverse);
|
|
28
28
|
|
|
29
29
|
@variant data-[placement="top"] {
|
|
30
30
|
top: calc(100% - 5px);
|
|
@@ -44,27 +44,3 @@
|
|
|
44
44
|
@apply mgnp-tooltip-arrow transition;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
@theme {
|
|
49
|
-
@keyframes tooltip-show {
|
|
50
|
-
0% {
|
|
51
|
-
opacity: 0;
|
|
52
|
-
transform: scale(0.9);
|
|
53
|
-
}
|
|
54
|
-
100% {
|
|
55
|
-
opacity: 1;
|
|
56
|
-
transform: scale(1);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@keyframes tooltip-hide {
|
|
61
|
-
0% {
|
|
62
|
-
opacity: 1;
|
|
63
|
-
transform: scale(1);
|
|
64
|
-
}
|
|
65
|
-
100% {
|
|
66
|
-
opacity: 0;
|
|
67
|
-
transform: scale(0.9);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
package/theme/mgnp.css
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
@import './
|
|
1
|
+
@import './animation.css';
|
|
2
|
+
|
|
3
|
+
@import './components/accordion.css';
|
|
4
|
+
@import './components/button.css';
|
|
5
|
+
@import './components/checkbox.css';
|
|
6
|
+
@import './components/combobox.css';
|
|
7
|
+
@import './components/dialog.css';
|
|
8
|
+
@import './components/input.css';
|
|
9
|
+
@import './components/menu.css';
|
|
10
|
+
@import './components/pagination.css';
|
|
11
|
+
@import './components/switch.css';
|
|
12
|
+
@import './components/toast.css';
|
|
13
|
+
@import './components/tooltip.css';
|
|
2
14
|
|
|
3
15
|
@custom-variant dark (&:where(.dark, .dark *));
|
|
4
16
|
|
|
@@ -133,6 +145,9 @@
|
|
|
133
145
|
--mg-ring-ui: rgb(59, 130, 246);
|
|
134
146
|
--mg-default-transition-duration: 250ms;
|
|
135
147
|
--mg-default-transition-timing-function: var(--ease-in-out);
|
|
148
|
+
|
|
149
|
+
--mg-default-animation-translateY-origin: --spacing(-2);
|
|
150
|
+
--mg-default-animation-translateY-base: --spacing(0);
|
|
136
151
|
}
|
|
137
152
|
|
|
138
153
|
@theme {
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
+
import { PropertyType } from '@mgremy/ng-primitives';
|
|
3
|
+
|
|
4
|
+
type MgnpDialogOverlayMode = PropertyType<'modal' | 'drawer'>;
|
|
5
|
+
type MgnpDialogDrawerPosition = PropertyType<'start' | 'end'>;
|
|
6
|
+
declare class MgnpDialogOverlay {
|
|
7
|
+
private readonly _ngpDialogOverlay;
|
|
8
|
+
readonly mode: i0.InputSignal<MgnpDialogOverlayMode>;
|
|
9
|
+
readonly drawerPosition: i0.InputSignal<MgnpDialogDrawerPosition>;
|
|
10
|
+
constructor();
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MgnpDialogOverlay, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpDialogOverlay, "[ngpDialogOverlay][mgnpDialogOverlay]", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "drawerPosition": { "alias": "drawerPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
2
14
|
|
|
3
15
|
declare class MgnpDialog {
|
|
16
|
+
protected readonly _overlay: MgnpDialogOverlay;
|
|
4
17
|
private readonly _ngpDialog;
|
|
5
18
|
constructor();
|
|
6
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<MgnpDialog, never>;
|
|
@@ -14,13 +27,6 @@ declare class MgnpDialogDescription {
|
|
|
14
27
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpDialogDescription, "[ngpDialogDescription][mgnpDialogDescription]", never, {}, {}, never, never, true, never>;
|
|
15
28
|
}
|
|
16
29
|
|
|
17
|
-
declare class MgnpDialogOverlay {
|
|
18
|
-
private readonly _ngpDialogOverlay;
|
|
19
|
-
constructor();
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MgnpDialogOverlay, never>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpDialogOverlay, "[ngpDialogOverlay][mgnpDialogOverlay]", never, {}, {}, never, never, true, never>;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
30
|
declare class MgnpDialogTitle {
|
|
25
31
|
private readonly _ngpDialogTitle;
|
|
26
32
|
constructor();
|
|
@@ -29,3 +35,4 @@ declare class MgnpDialogTitle {
|
|
|
29
35
|
}
|
|
30
36
|
|
|
31
37
|
export { MgnpDialog, MgnpDialogDescription, MgnpDialogOverlay, MgnpDialogTitle };
|
|
38
|
+
export type { MgnpDialogDrawerPosition, MgnpDialogOverlayMode };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class MgnpSwitch {
|
|
4
|
+
private readonly _ngpSwitch;
|
|
5
|
+
constructor();
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MgnpSwitch, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpSwitch, "[ngpSwitch][mgnpSwitch]", never, {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class MgnpSwitchThumb {
|
|
11
|
+
private readonly _ngpSwitchThumb;
|
|
12
|
+
constructor();
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MgnpSwitchThumb, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpSwitchThumb, "[ngpSwitchThumb][mgnpSwitchThumb]", never, {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { MgnpSwitch, MgnpSwitchThumb };
|
package/theme/ngp_tw.css
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
@import './components/accordion.css';
|
|
2
|
-
@import './components/button.css';
|
|
3
|
-
@import './components/checkbox.css';
|
|
4
|
-
@import './components/combobox.css';
|
|
5
|
-
@import './components/dialog.css';
|
|
6
|
-
@import './components/input.css';
|
|
7
|
-
@import './components/menu.css';
|
|
8
|
-
@import './components/pagination.css';
|
|
9
|
-
@import './components/toast.css';
|
|
10
|
-
@import './components/tooltip.css';
|
|
11
|
-
|
|
12
|
-
@theme {
|
|
13
|
-
--ngp-background: var(--mg-background-ui);
|
|
14
|
-
--ngp-background-secondary: var(--mg-background-ui-secondary);
|
|
15
|
-
--ngp-background-hover: var(--mg-background-ui-hover);
|
|
16
|
-
--ngp-background-active: var(--mg-background-ui-active);
|
|
17
|
-
--ngp-background-inverse: var(--mg-background-ui-inverse);
|
|
18
|
-
--ngp-background-disabled: var(--mg-background-ui-disabled);
|
|
19
|
-
--ngp-background-blue: var(--mg-background-primary);
|
|
20
|
-
--ngp-background-success: var(--mg-background-success);
|
|
21
|
-
|
|
22
|
-
--ngp-border: var(--mg-border-ui);
|
|
23
|
-
--ngp-border-secondary: var(--mg-border-ui-secondary);
|
|
24
|
-
--ngp-border-blue: var(--mg-border-info);
|
|
25
|
-
--ngp-border-inverse: var(--mg-border-inverse);
|
|
26
|
-
|
|
27
|
-
--ngp-text-active: var(--mg-text-active);
|
|
28
|
-
--ngp-text-emphasis: var(--mg-text-emphasis);
|
|
29
|
-
--ngp-text-primary: var(--mg-text-ui);
|
|
30
|
-
--ngp-text-secondary: var(--mg-text-ui-secondary);
|
|
31
|
-
--ngp-text-tertiary: var(--mg-text-ui-tertiary);
|
|
32
|
-
--ngp-text-disabled: var(--mg-text-ui-disabled);
|
|
33
|
-
--ngp-text-placeholder: var(--mg-text-placeholder);
|
|
34
|
-
--ngp-text-inverse: var(--mg-text-inverse);
|
|
35
|
-
--ngp-text-blue: var(--mg-text-primary);
|
|
36
|
-
--ngp-text-red: var(--mg-text-danger);
|
|
37
|
-
|
|
38
|
-
--ngp-shadow: var(--mg-shadow-ui);
|
|
39
|
-
--ngp-shadow-lg: var(--mg-shadow-lg);
|
|
40
|
-
--ngp-shadow-border: var(--mg-shadow-border);
|
|
41
|
-
|
|
42
|
-
--ngp-focus-ring: var(--mg-ring-ui);
|
|
43
|
-
|
|
44
|
-
--ngp-avatar-background: var(--mg-background-avatar);
|
|
45
|
-
--ngp-avatar-border: var(--mg-border-avatar);
|
|
46
|
-
|
|
47
|
-
--ngp-button-shadow: var(--mg-shadow-button);
|
|
48
|
-
|
|
49
|
-
--ngp-input-shadow: var(--mg-shadow-input);
|
|
50
|
-
}
|