suis 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/README.md +7 -0
  2. package/esm2022/index.mjs +2 -0
  3. package/esm2022/lib/components/index.mjs +3 -0
  4. package/esm2022/lib/components/suis-box/index.mjs +2 -0
  5. package/esm2022/lib/components/suis-box/suis-box.component.mjs +20 -0
  6. package/esm2022/lib/components/suis-label/index.mjs +2 -0
  7. package/esm2022/lib/components/suis-label/suis-label.component.mjs +31 -0
  8. package/esm2022/suis.mjs +5 -0
  9. package/fesm2022/suis.mjs +54 -0
  10. package/fesm2022/suis.mjs.map +1 -0
  11. package/lib/components/index.d.ts +2 -0
  12. package/lib/components/suis-box/suis-box.component.d.ts +9 -0
  13. package/lib/components/suis-label/index.d.ts +1 -0
  14. package/lib/components/suis-label/suis-label.component.d.ts +17 -0
  15. package/package.json +34 -21
  16. package/.eslintrc.json +0 -37
  17. package/jest.config.ts +0 -22
  18. package/ng-package.json +0 -7
  19. package/project.json +0 -47
  20. package/src/lib/components/index.ts +0 -1
  21. package/src/lib/components/suis-box/suis-box.component.html +0 -3
  22. package/src/lib/components/suis-box/suis-box.component.scss +0 -10
  23. package/src/lib/components/suis-box/suis-box.component.ts +0 -13
  24. package/src/styles/_mixins.scss +0 -23
  25. package/src/styles/_variables.scss +0 -38
  26. package/src/styles/index.scss +0 -8
  27. package/src/test-setup.ts +0 -1
  28. package/tsconfig.json +0 -29
  29. package/tsconfig.lib.json +0 -17
  30. package/tsconfig.lib.prod.json +0 -9
  31. package/tsconfig.spec.json +0 -16
  32. /package/{src/index.ts → index.d.ts} +0 -0
  33. /package/{src/lib/components/suis-box/index.ts → lib/components/suis-box/index.d.ts} +0 -0
package/README.md CHANGED
@@ -1 +1,8 @@
1
1
  # SUIS (Standalone UI + Signals) Angular 16+ Component Library
2
+
3
+ ## Components
4
+
5
+ | Component | Class | Selector | Version |
6
+ |---|---|---|---|
7
+ | Box | SuisBox | suis-box | 0.1.0 |
8
+ | Label | SuisLabel | suis-label | 0.2.0 |
@@ -0,0 +1,2 @@
1
+ export * from './lib/components';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzJztcbiJdfQ==
@@ -0,0 +1,3 @@
1
+ export * from './suis-box';
2
+ export * from './suis-label';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdWlzLWJveCc7XG5leHBvcnQgKiBmcm9tICcuL3N1aXMtbGFiZWwnO1xuIl19
@@ -0,0 +1,2 @@
1
+ export * from './suis-box.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtYm94L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0JBQXNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3N1aXMtYm94LmNvbXBvbmVudCc7XG4iXX0=
@@ -0,0 +1,20 @@
1
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ class SuisBoxComponent {
4
+ constructor() {
5
+ /**
6
+ * Adds a padding around the content. By default set to false.
7
+ */
8
+ this.spacing = false;
9
+ }
10
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
11
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: SuisBoxComponent, isStandalone: true, selector: "suis-box", inputs: { spacing: "spacing" }, ngImport: i0, template: "<div class=\"suis-box\" [class.suis-box--spacing]=\"spacing\">\n <ng-content></ng-content>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}.suis-box{background-color:#fff;box-shadow:0 2px 5px #0000004d;border-radius:.25rem}.suis-box--spacing{padding:1.25rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
12
+ }
13
+ export { SuisBoxComponent };
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisBoxComponent, decorators: [{
15
+ type: Component,
16
+ args: [{ selector: 'suis-box', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"suis-box\" [class.suis-box--spacing]=\"spacing\">\n <ng-content></ng-content>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}.suis-box{background-color:#fff;box-shadow:0 2px 5px #0000004d;border-radius:.25rem}.suis-box--spacing{padding:1.25rem}\n"] }]
17
+ }], propDecorators: { spacing: [{
18
+ type: Input
19
+ }] } });
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1ib3guY29tcG9uZW50LmpzIiwic291cmN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QdXNoLFxufSlcbmV4cG9ydCBjbGFzcyBTdWlzQm94Q29tcG9uZW50IHtcbiAgLyoqXG4gICAqIEFkZHMgYSBwYWRkaW5nIGFyb3VuZCB0aGUgY29udGVudC4gQnkgZGVmYXVsdCBzZXQgdG8gZmFsc2UuXG4gICAqL1xuICBASW5wdXQoKSBzcGFjaW5nOiBib29sZWFuID0gZmFsc2U7XG59XG4iLCI8ZGl2IGNsYXNzPVwic3Vpcy1ib3hcIiBbY2xhc3Muc3Vpcy1ib3gtLXNwYWNpbmddPVwic3BhY2luZ1wiPlxuICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG48L2Rpdj5cbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export * from './suis-label.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9jb21wb25lbnRzL3N1aXMtbGFiZWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc3Vpcy1sYWJlbC5jb21wb25lbnQnO1xuIl19
@@ -0,0 +1,31 @@
1
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common";
5
+ class SuisLabelComponent {
6
+ constructor() {
7
+ /**
8
+ * Adds a bottom margin below the label. By default set to true.
9
+ */
10
+ this.spacing = true;
11
+ /**
12
+ * Adds a red colored asterisk after the label. By default set to false.
13
+ */
14
+ this.required = false;
15
+ }
16
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
17
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: SuisLabelComponent, isStandalone: true, selector: "suis-label", inputs: { label: "label", spacing: "spacing", required: "required" }, ngImport: i0, template: "<label class=\"suis-label\" [class.suis-label--spacing]=\"spacing\">\n <span>{{ label }}</span>\n <span *ngIf=\"required\" class=\"suis-label__asterisk\">*</span>\n</label>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}.suis-label{font-size:.875rem;display:block}.suis-label--spacing{margin-bottom:.25rem}.suis-label__asterisk{color:#ff4757;margin-left:.0625rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
18
+ }
19
+ export { SuisLabelComponent };
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisLabelComponent, decorators: [{
21
+ type: Component,
22
+ args: [{ selector: 'suis-label', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"suis-label\" [class.suis-label--spacing]=\"spacing\">\n <span>{{ label }}</span>\n <span *ngIf=\"required\" class=\"suis-label__asterisk\">*</span>\n</label>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}.suis-label{font-size:.875rem;display:block}.suis-label--spacing{margin-bottom:.25rem}.suis-label__asterisk{color:#ff4757;margin-left:.0625rem}\n"] }]
23
+ }], propDecorators: { label: [{
24
+ type: Input,
25
+ args: [{ required: true }]
26
+ }], spacing: [{
27
+ type: Input
28
+ }], required: [{
29
+ type: Input
30
+ }] } });
31
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1sYWJlbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIu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GNsYXNzPVwic3Vpcy1sYWJlbF9fYXN0ZXJpc2tcIj4qPC9zcGFuPlxuPC9sYWJlbD5cbiJdfQ==
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvc3Vpcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
@@ -0,0 +1,54 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+
6
+ class SuisBoxComponent {
7
+ constructor() {
8
+ /**
9
+ * Adds a padding around the content. By default set to false.
10
+ */
11
+ this.spacing = false;
12
+ }
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
14
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: SuisBoxComponent, isStandalone: true, selector: "suis-box", inputs: { spacing: "spacing" }, ngImport: i0, template: "<div class=\"suis-box\" [class.suis-box--spacing]=\"spacing\">\n <ng-content></ng-content>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}.suis-box{background-color:#fff;box-shadow:0 2px 5px #0000004d;border-radius:.25rem}.suis-box--spacing{padding:1.25rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15
+ }
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisBoxComponent, decorators: [{
17
+ type: Component,
18
+ args: [{ selector: 'suis-box', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"suis-box\" [class.suis-box--spacing]=\"spacing\">\n <ng-content></ng-content>\n</div>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}.suis-box{background-color:#fff;box-shadow:0 2px 5px #0000004d;border-radius:.25rem}.suis-box--spacing{padding:1.25rem}\n"] }]
19
+ }], propDecorators: { spacing: [{
20
+ type: Input
21
+ }] } });
22
+
23
+ class SuisLabelComponent {
24
+ constructor() {
25
+ /**
26
+ * Adds a bottom margin below the label. By default set to true.
27
+ */
28
+ this.spacing = true;
29
+ /**
30
+ * Adds a red colored asterisk after the label. By default set to false.
31
+ */
32
+ this.required = false;
33
+ }
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
35
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: SuisLabelComponent, isStandalone: true, selector: "suis-label", inputs: { label: "label", spacing: "spacing", required: "required" }, ngImport: i0, template: "<label class=\"suis-label\" [class.suis-label--spacing]=\"spacing\">\n <span>{{ label }}</span>\n <span *ngIf=\"required\" class=\"suis-label__asterisk\">*</span>\n</label>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}.suis-label{font-size:.875rem;display:block}.suis-label--spacing{margin-bottom:.25rem}.suis-label__asterisk{color:#ff4757;margin-left:.0625rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
36
+ }
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: SuisLabelComponent, decorators: [{
38
+ type: Component,
39
+ args: [{ selector: 'suis-label', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"suis-label\" [class.suis-label--spacing]=\"spacing\">\n <span>{{ label }}</span>\n <span *ngIf=\"required\" class=\"suis-label__asterisk\">*</span>\n</label>\n", styles: ["*{margin:0;padding:0;box-sizing:border-box}.suis-label{font-size:.875rem;display:block}.suis-label--spacing{margin-bottom:.25rem}.suis-label__asterisk{color:#ff4757;margin-left:.0625rem}\n"] }]
40
+ }], propDecorators: { label: [{
41
+ type: Input,
42
+ args: [{ required: true }]
43
+ }], spacing: [{
44
+ type: Input
45
+ }], required: [{
46
+ type: Input
47
+ }] } });
48
+
49
+ /**
50
+ * Generated bundle index. Do not edit.
51
+ */
52
+
53
+ export { SuisBoxComponent, SuisLabelComponent };
54
+ //# sourceMappingURL=suis.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suis.mjs","sources":["../../../../libs/suis/src/lib/components/suis-box/suis-box.component.ts","../../../../libs/suis/src/lib/components/suis-box/suis-box.component.html","../../../../libs/suis/src/lib/components/suis-label/suis-label.component.ts","../../../../libs/suis/src/lib/components/suis-label/suis-label.component.html","../../../../libs/suis/src/suis.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\n@Component({\n selector: 'suis-box',\n standalone: true,\n imports: [],\n templateUrl: './suis-box.component.html',\n styleUrls: ['./suis-box.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SuisBoxComponent {\n /**\n * Adds a padding around the content. By default set to false.\n */\n @Input() spacing: boolean = false;\n}\n","<div class=\"suis-box\" [class.suis-box--spacing]=\"spacing\">\n <ng-content></ng-content>\n</div>\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'suis-label',\n standalone: true,\n imports: [CommonModule],\n templateUrl: './suis-label.component.html',\n styleUrls: ['./suis-label.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SuisLabelComponent {\n /**\n * Text displayed between label tags. Required input.\n */\n @Input({ required: true }) label?: string;\n\n /**\n * Adds a bottom margin below the label. By default set to true.\n */\n @Input() spacing: boolean = true;\n\n /**\n * Adds a red colored asterisk after the label. By default set to false.\n */\n @Input() required: boolean = false;\n}\n","<label class=\"suis-label\" [class.suis-label--spacing]=\"spacing\">\n <span>{{ label }}</span>\n <span *ngIf=\"required\" class=\"suis-label__asterisk\">*</span>\n</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAEA,MAQa,gBAAgB,CAAA;AAR7B,IAAA,WAAA,GAAA;AASE;;AAEG;QACM,IAAO,CAAA,OAAA,GAAY,KAAK,CAAC;AACnC,KAAA;8GALY,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,oGCV7B,uGAGA,EAAA,MAAA,EAAA,CAAA,sKAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FDOa,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAR5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,cACR,IAAI,EAAA,OAAA,EACP,EAAE,EAGM,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,uGAAA,EAAA,MAAA,EAAA,CAAA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AE,CAAA;gBAKhB,OAAO,EAAA,CAAA;sBAAf,KAAK;gBAKG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;;;AEzBR;;AAEG;;;;"}
@@ -0,0 +1,2 @@
1
+ export * from './suis-box';
2
+ export * from './suis-label';
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SuisBoxComponent {
3
+ /**
4
+ * Adds a padding around the content. By default set to false.
5
+ */
6
+ spacing: boolean;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisBoxComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisBoxComponent, "suis-box", never, { "spacing": { "alias": "spacing"; "required": false; }; }, {}, never, ["*"], true, never>;
9
+ }
@@ -0,0 +1 @@
1
+ export * from './suis-label.component';
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SuisLabelComponent {
3
+ /**
4
+ * Text displayed between label tags. Required input.
5
+ */
6
+ label?: string;
7
+ /**
8
+ * Adds a bottom margin below the label. By default set to true.
9
+ */
10
+ spacing: boolean;
11
+ /**
12
+ * Adds a red colored asterisk after the label. By default set to false.
13
+ */
14
+ required: boolean;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisLabelComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisLabelComponent, "suis-label", never, { "label": { "alias": "label"; "required": true; }; "spacing": { "alias": "spacing"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, {}, never, never, true, never>;
17
+ }
package/package.json CHANGED
@@ -1,21 +1,34 @@
1
- {
2
- "name": "suis",
3
- "version": "0.1.0",
4
- "main": "src/index.ts",
5
- "author": "Karol Jaskółka",
6
- "description": "SUIS (Standalone UI + Signals) Angular 16+ Component Library",
7
- "keywords": [
8
- "angular",
9
- "standalone",
10
- "signals",
11
- "ui"
12
- ],
13
- "peerDependencies": {
14
- "@angular/common": "^16.0.0",
15
- "@angular/core": "^16.0.0"
16
- },
17
- "dependencies": {
18
- "tslib": "^2.3.0"
19
- },
20
- "sideEffects": false
21
- }
1
+ {
2
+ "name": "suis",
3
+ "version": "0.2.0",
4
+ "main": "src/index.ts",
5
+ "author": "Karol Jaskółka",
6
+ "description": "SUIS (Standalone UI + Signals) Angular 16+ Component Library",
7
+ "keywords": [
8
+ "angular",
9
+ "standalone",
10
+ "signals",
11
+ "ui"
12
+ ],
13
+ "peerDependencies": {
14
+ "@angular/common": "^16.0.0",
15
+ "@angular/core": "^16.0.0"
16
+ },
17
+ "dependencies": {
18
+ "tslib": "^2.3.0"
19
+ },
20
+ "sideEffects": false,
21
+ "module": "fesm2022/suis.mjs",
22
+ "typings": "index.d.ts",
23
+ "exports": {
24
+ "./package.json": {
25
+ "default": "./package.json"
26
+ },
27
+ ".": {
28
+ "types": "./index.d.ts",
29
+ "esm2022": "./esm2022/suis.mjs",
30
+ "esm": "./esm2022/suis.mjs",
31
+ "default": "./fesm2022/suis.mjs"
32
+ }
33
+ }
34
+ }
package/.eslintrc.json DELETED
@@ -1,37 +0,0 @@
1
- {
2
- "extends": ["../../.eslintrc.json"],
3
- "ignorePatterns": ["!**/*"],
4
- "overrides": [
5
- {
6
- "files": ["*.ts"],
7
- "rules": {
8
- "@typescript-eslint/no-inferrable-types": "off",
9
- "@angular-eslint/directive-selector": [
10
- "error",
11
- {
12
- "type": "attribute",
13
- "prefix": "suis",
14
- "style": "camelCase"
15
- }
16
- ],
17
- "@angular-eslint/component-selector": [
18
- "error",
19
- {
20
- "type": "element",
21
- "prefix": "suis",
22
- "style": "kebab-case"
23
- }
24
- ]
25
- },
26
- "extends": [
27
- "plugin:@nx/angular",
28
- "plugin:@angular-eslint/template/process-inline-templates"
29
- ]
30
- },
31
- {
32
- "files": ["*.html"],
33
- "extends": ["plugin:@nx/angular-template"],
34
- "rules": {}
35
- }
36
- ]
37
- }
package/jest.config.ts DELETED
@@ -1,22 +0,0 @@
1
- /* eslint-disable */
2
- export default {
3
- displayName: 'suis',
4
- preset: '../../jest.preset.js',
5
- setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
6
- coverageDirectory: '../../coverage/libs/suis',
7
- transform: {
8
- '^.+\\.(ts|mjs|js|html)$': [
9
- 'jest-preset-angular',
10
- {
11
- tsconfig: '<rootDir>/tsconfig.spec.json',
12
- stringifyContentPathRegex: '\\.(html|svg)$',
13
- },
14
- ],
15
- },
16
- transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
17
- snapshotSerializers: [
18
- 'jest-preset-angular/build/serializers/no-ng-attributes',
19
- 'jest-preset-angular/build/serializers/ng-snapshot',
20
- 'jest-preset-angular/build/serializers/html-comment',
21
- ],
22
- };
package/ng-package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/libs/suis",
4
- "lib": {
5
- "entryFile": "src/index.ts"
6
- }
7
- }
package/project.json DELETED
@@ -1,47 +0,0 @@
1
- {
2
- "name": "suis",
3
- "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
- "sourceRoot": "libs/suis/src",
5
- "prefix": "suis",
6
- "tags": [],
7
- "projectType": "library",
8
- "targets": {
9
- "build": {
10
- "executor": "@nx/angular:package",
11
- "outputs": ["{workspaceRoot}/dist/{projectRoot}"],
12
- "options": {
13
- "project": "libs/suis/ng-package.json"
14
- },
15
- "configurations": {
16
- "production": {
17
- "tsConfig": "libs/suis/tsconfig.lib.prod.json"
18
- },
19
- "development": {
20
- "tsConfig": "libs/suis/tsconfig.lib.json"
21
- }
22
- },
23
- "defaultConfiguration": "production"
24
- },
25
- "test": {
26
- "executor": "@nx/jest:jest",
27
- "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
28
- "options": {
29
- "jestConfig": "libs/suis/jest.config.ts",
30
- "passWithNoTests": true
31
- },
32
- "configurations": {
33
- "ci": {
34
- "ci": true,
35
- "codeCoverage": true
36
- }
37
- }
38
- },
39
- "lint": {
40
- "executor": "@nx/linter:eslint",
41
- "outputs": ["{options.outputFile}"],
42
- "options": {
43
- "lintFilePatterns": ["libs/suis/**/*.ts", "libs/suis/**/*.html"]
44
- }
45
- }
46
- }
47
- }
@@ -1 +0,0 @@
1
- export * from './suis-box';
@@ -1,3 +0,0 @@
1
- <div class="suis-box" [class.suis-box--spacing]="spacing">
2
- <ng-content></ng-content>
3
- </div>
@@ -1,10 +0,0 @@
1
- @import '../../../styles/index.scss';
2
-
3
- .suis-box {
4
- background-color: $suis-white;
5
- box-shadow: $suis-box-shadow-dark;
6
- border-radius: $suis-radius;
7
- &--spacing {
8
- padding: 1.25rem;
9
- }
10
- }
@@ -1,13 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'suis-box',
5
- standalone: true,
6
- imports: [],
7
- templateUrl: './suis-box.component.html',
8
- styleUrls: ['./suis-box.component.scss'],
9
- changeDetection: ChangeDetectionStrategy.OnPush,
10
- })
11
- export class SuisBoxComponent {
12
- @Input() spacing: boolean = false;
13
- }
@@ -1,23 +0,0 @@
1
- @mixin suis-tablet {
2
- @media (min-width: $suis-tablet) {
3
- @content;
4
- }
5
- }
6
-
7
- @mixin suis-desktop {
8
- @media (min-width: $suis-desktop) {
9
- @content;
10
- }
11
- }
12
-
13
- @mixin suis-widescreen {
14
- @media (min-width: $suis-widescreen) {
15
- @content;
16
- }
17
- }
18
-
19
- @mixin suis-fullhd {
20
- @media (min-width: $suis-fullhd) {
21
- @content;
22
- }
23
- }
@@ -1,38 +0,0 @@
1
- // colors pallete
2
- $suis-primary: #192a56;
3
- $suis-secondary: #273c75;
4
- $suis-tertiary: #dcdde1;
5
- $suis-complementary: #f5f6fa;
6
- $suis-link: #40739e;
7
- $suis-text: #2f3640;
8
- $suis-text-alt: #a4a7b0;
9
- $suis-white: #ffffff;
10
- $suis-dark: #000000;
11
- $suis-danger: #ff4757;
12
- $suis-warning: #ffa502;
13
- $suis-success: #2ed573;
14
-
15
- // colors hover effect
16
- $suis-primary-hover: rgba($suis-primary, 0.5);
17
- $suis-secondary-hover: rgba($suis-secondary, 0.5);
18
- $suis-tertiary-hover: rgba($suis-tertiary, 0.5);
19
- $suis-complementary-hover: rgba($suis-complementary, 0.5);
20
- $suis-link-hover: rgba($suis-link, 0.5);
21
-
22
- // colors box shadow
23
- $suis-box-shadow-dark: 0 2px 5px 0 rgba($suis-dark, 0.3);
24
- $suis-box-shadow-primary: 0 2px 5px 0 rgba($suis-primary, 0.3);
25
- $suis-box-shadow-secondary: 0 2px 5px 0 rgba($suis-secondary, 0.3);
26
- $suis-box-shadow-link: 0 2px 5px 0 rgba($suis-link, 0.3);
27
- $suis-box-shadow-danger: 0 2px 5px 0 rgba($suis-danger, 0.3);
28
- $suis-box-shadow-warning: 0 2px 5px 0 rgba($suis-warning, 0.3);
29
- $suis-box-shadow-success: 0 2px 5px 0 rgba($suis-success, 0.3);
30
-
31
- // breakpoint
32
- $suis-tablet: 768px;
33
- $suis-desktop: 992px;
34
- $suis-widescreen: 1200px;
35
- $suis-fullhd: 1440px;
36
-
37
- // other
38
- $suis-radius: 0.25rem;
@@ -1,8 +0,0 @@
1
- * {
2
- margin: 0;
3
- padding: 0;
4
- box-sizing: border-box;
5
- }
6
-
7
- @import 'variables';
8
- @import 'mixins';
package/src/test-setup.ts DELETED
@@ -1 +0,0 @@
1
- import 'jest-preset-angular/setup-jest';
package/tsconfig.json DELETED
@@ -1,29 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2022",
4
- "useDefineForClassFields": false,
5
- "forceConsistentCasingInFileNames": true,
6
- "strict": true,
7
- "noImplicitOverride": true,
8
- "noPropertyAccessFromIndexSignature": true,
9
- "noImplicitReturns": true,
10
- "noFallthroughCasesInSwitch": true
11
- },
12
- "files": [],
13
- "include": [],
14
- "references": [
15
- {
16
- "path": "./tsconfig.lib.json"
17
- },
18
- {
19
- "path": "./tsconfig.spec.json"
20
- }
21
- ],
22
- "extends": "../../tsconfig.base.json",
23
- "angularCompilerOptions": {
24
- "enableI18nLegacyMessageIdFormat": false,
25
- "strictInjectionParameters": true,
26
- "strictInputAccessModifiers": true,
27
- "strictTemplates": true
28
- }
29
- }
package/tsconfig.lib.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../../dist/out-tsc",
5
- "declaration": true,
6
- "declarationMap": true,
7
- "inlineSources": true,
8
- "types": []
9
- },
10
- "exclude": [
11
- "src/**/*.spec.ts",
12
- "src/test-setup.ts",
13
- "jest.config.ts",
14
- "src/**/*.test.ts"
15
- ],
16
- "include": ["src/**/*.ts"]
17
- }
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "./tsconfig.lib.json",
3
- "compilerOptions": {
4
- "declarationMap": false
5
- },
6
- "angularCompilerOptions": {
7
- "compilationMode": "partial"
8
- }
9
- }
@@ -1,16 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../../dist/out-tsc",
5
- "module": "commonjs",
6
- "target": "es2016",
7
- "types": ["jest", "node"]
8
- },
9
- "files": ["src/test-setup.ts"],
10
- "include": [
11
- "jest.config.ts",
12
- "src/**/*.test.ts",
13
- "src/**/*.spec.ts",
14
- "src/**/*.d.ts"
15
- ]
16
- }
File without changes