@firestitch/style 12.3.3 → 13.0.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.
@@ -2,11 +2,11 @@ import { NgModule } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export class FsStyleModule {
4
4
  }
5
- FsStyleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsStyleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6
- FsStyleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsStyleModule });
7
- FsStyleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsStyleModule });
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsStyleModule, decorators: [{
5
+ FsStyleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsStyleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6
+ FsStyleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsStyleModule });
7
+ FsStyleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsStyleModule });
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsStyleModule, decorators: [{
9
9
  type: NgModule,
10
10
  args: [{}]
11
11
  }] });
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtc3R5bGUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2FwcC9mcy1zdHlsZS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBdUIsTUFBTSxlQUFlLENBQUM7O0FBTTlELE1BQU0sT0FBTyxhQUFhOzsyR0FBYixhQUFhOzRHQUFiLGFBQWE7NEdBQWIsYUFBYTs0RkFBYixhQUFhO2tCQUh6QixRQUFRO21CQUFDLEVBRVQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSwgTW9kdWxlV2l0aFByb3ZpZGVycyB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5cbkBOZ01vZHVsZSh7XG5cbn0pXG5leHBvcnQgY2xhc3MgRnNTdHlsZU1vZHVsZSB7fVxuIl19
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtc3R5bGUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2FwcC9mcy1zdHlsZS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBdUIsTUFBTSxlQUFlLENBQUM7O0FBTTlELE1BQU0sT0FBTyxhQUFhOzswR0FBYixhQUFhOzJHQUFiLGFBQWE7MkdBQWIsYUFBYTsyRkFBYixhQUFhO2tCQUh6QixRQUFRO21CQUFDLEVBRVQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSwgTW9kdWxlV2l0aFByb3ZpZGVycyB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5cbkBOZ01vZHVsZSh7XG5cbn0pXG5leHBvcnQgY2xhc3MgRnNTdHlsZU1vZHVsZSB7fVxuIl19
@@ -3,10 +3,10 @@ import { NgModule } from '@angular/core';
3
3
 
4
4
  class FsStyleModule {
5
5
  }
6
- FsStyleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsStyleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
- FsStyleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsStyleModule });
8
- FsStyleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsStyleModule });
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsStyleModule, decorators: [{
6
+ FsStyleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsStyleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
+ FsStyleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsStyleModule });
8
+ FsStyleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsStyleModule });
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsStyleModule, decorators: [{
10
10
  type: NgModule,
11
11
  args: [{}]
12
12
  }] });
@@ -16,4 +16,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
16
16
  */
17
17
 
18
18
  export { FsStyleModule };
19
- //# sourceMappingURL=firestitch-style.js.map
19
+ //# sourceMappingURL=firestitch-style.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firestitch-style.mjs","sources":["../../src/app/fs-style.module.ts","../../src/firestitch-style.ts"],"sourcesContent":["import { NgModule, ModuleWithProviders } from '@angular/core';\n\n\n@NgModule({\n\n})\nexport class FsStyleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;MAMa,aAAa,CAAA;;0GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;2GAAb,aAAa,EAAA,CAAA,CAAA;2GAAb,aAAa,EAAA,CAAA,CAAA;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,QAAQ;mBAAC,EAET,CAAA;;;ACLD;;AAEG;;;;"}
@@ -0,0 +1,19 @@
1
+ import * as i0 from '@angular/core';
2
+ import { NgModule } from '@angular/core';
3
+
4
+ class FsStyleModule {
5
+ }
6
+ FsStyleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsStyleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
+ FsStyleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsStyleModule });
8
+ FsStyleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsStyleModule });
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsStyleModule, decorators: [{
10
+ type: NgModule,
11
+ args: [{}]
12
+ }] });
13
+
14
+ /**
15
+ * Generated bundle index. Do not edit.
16
+ */
17
+
18
+ export { FsStyleModule };
19
+ //# sourceMappingURL=firestitch-style.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firestitch-style.mjs","sources":["../../src/app/fs-style.module.ts","../../src/firestitch-style.ts"],"sourcesContent":["import { NgModule, ModuleWithProviders } from '@angular/core';\n\n\n@NgModule({\n\n})\nexport class FsStyleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;MAMa,aAAa,CAAA;;0GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;2GAAb,aAAa,EAAA,CAAA,CAAA;2GAAb,aAAa,EAAA,CAAA,CAAA;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,QAAQ;mBAAC,EAET,CAAA;;;ACLD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestitch/style",
3
- "version": "12.3.3",
3
+ "version": "13.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-style"
@@ -17,10 +17,23 @@
17
17
  "tslib": "^2.0.0"
18
18
  },
19
19
  "sideEffects": false,
20
- "main": "bundles/firestitch-style.umd.js",
21
- "module": "fesm2015/firestitch-style.js",
22
- "es2015": "fesm2015/firestitch-style.js",
23
- "esm2015": "esm2015/firestitch-style.js",
24
- "fesm2015": "fesm2015/firestitch-style.js",
25
- "typings": "firestitch-style.d.ts"
20
+ "module": "fesm2015/firestitch-style.mjs",
21
+ "es2020": "fesm2020/firestitch-style.mjs",
22
+ "esm2020": "esm2020/firestitch-style.mjs",
23
+ "fesm2020": "fesm2020/firestitch-style.mjs",
24
+ "fesm2015": "fesm2015/firestitch-style.mjs",
25
+ "typings": "firestitch-style.d.ts",
26
+ "exports": {
27
+ "./package.json": {
28
+ "default": "./package.json"
29
+ },
30
+ ".": {
31
+ "types": "./firestitch-style.d.ts",
32
+ "esm2020": "./esm2020/firestitch-style.mjs",
33
+ "es2020": "./fesm2020/firestitch-style.mjs",
34
+ "es2015": "./fesm2015/firestitch-style.mjs",
35
+ "node": "./fesm2015/firestitch-style.mjs",
36
+ "default": "./fesm2020/firestitch-style.mjs"
37
+ }
38
+ }
26
39
  }
package/styles/_core.scss CHANGED
@@ -1,14 +1,15 @@
1
1
  @use 'headings';
2
2
  @use 'helpers';
3
+ @use 'layout';
3
4
  @use 'overflow';
4
5
  @use 'typography';
5
-
6
6
  @use 'form-field';
7
7
 
8
8
  @mixin core() {
9
9
  @include headings.headings();
10
10
  @include form-field.form-field();
11
11
  @include helpers.helpers();
12
+ @include layout.layout();
12
13
  @include overflow.overflow();
13
14
  @include typography.typography();
14
15
  }
@@ -3,7 +3,7 @@
3
3
  @mixin headings {
4
4
  h1 {
5
5
  font-style: normal;
6
- font-weight: bold;
6
+ font-weight: normal;
7
7
  font-size: variables.$h1-font-size;
8
8
  color: variables.$heading-color;
9
9
  margin-bottom: variables.$h1-margin-bottom;
@@ -1,5 +1,3 @@
1
- @use '../variables';
2
-
3
1
  @mixin helpers() {
4
2
  .full-width {
5
3
  width: 100% !important;
@@ -10,72 +8,6 @@
10
8
  }
11
9
  }
12
10
  }
13
-
14
- .fs-row,
15
- [class*='fs-row'] {
16
- display: flex;
17
- flex-direction: row;
18
- align-items: center;
19
-
20
- &[class*='.gap-large'],
21
- &.fs-row-gap-large {
22
- column-gap: 40px;
23
- }
24
-
25
- &[class*='.gap-small'],
26
- &.fs-row-gap-small {
27
- column-gap: 10px;
28
- }
29
-
30
- &[class*='.gap-tiny'],
31
- &.fs-row-gap-tiny {
32
- column-gap: 5px;
33
- }
34
-
35
- &[class*='.align-start'],
36
- &.fs-row-align-start {
37
- align-items: flex-start;
38
- }
39
-
40
- &[class*='.align-end'],
41
- &.fs-row-align-end {
42
- align-items: flex-end;
43
- }
44
-
45
- &[class*='.align-baseline'],
46
- &.fs-row-align-baseline {
47
- align-items: baseline;
48
- }
49
-
50
- &[class*='.wrap'],
51
- .fs-row-wrap {
52
- flex-wrap: wrap;
53
- }
54
-
55
- &[class*='.form-field'],
56
- .fs-row-form-field {
57
- column-gap: 10px;
58
-
59
- .mat-form-field-infix {
60
- width: auto;
61
- }
62
-
63
- >* {
64
- width: 100%;
65
- }
66
- }
67
- }
68
-
69
- .fs-column {
70
- display: flex;
71
- flex-direction: column;
72
- }
73
-
74
- @media (max-width: variables.$break-xsmall) {
75
- .fs-row[class*='.form-field'] {
76
- flex-direction: column;
77
- }
78
- }
79
11
  }
80
12
 
81
13
  .fs-delimit {
@@ -0,0 +1,132 @@
1
+ @use '../variables';
2
+
3
+ @mixin layout() {
4
+ .fs-row,
5
+ [class*='fs-row'] {
6
+ display: flex;
7
+ flex-direction: row;
8
+ align-items: center;
9
+
10
+ &[class*='.gap-lg'],
11
+ &[class*='.gap-large'],
12
+ &.fs-row-gap-large {
13
+ column-gap: 40px;
14
+ }
15
+
16
+ &[class*='.gap-md'] {
17
+ column-gap: 20px;
18
+ }
19
+
20
+ &[class*='.gap-sm'],
21
+ &[class*='.gap-small'],
22
+ &.fs-row-gap-small {
23
+ column-gap: 10px;
24
+ }
25
+
26
+ &[class*='.gap-xs'],
27
+ &[class*='.gap-tiny'],
28
+ &.fs-row-gap-tiny {
29
+ column-gap: 5px;
30
+ }
31
+
32
+ &[class*='.align-start'],
33
+ &.fs-row-align-start {
34
+ align-items: flex-start;
35
+ }
36
+
37
+ &[class*='.align-end'],
38
+ &.fs-row-align-end {
39
+ align-items: flex-end;
40
+ }
41
+
42
+ &[class*='.align-baseline'],
43
+ &.fs-row-align-baseline {
44
+ align-items: baseline;
45
+ }
46
+
47
+ &[class*='.wrap'],
48
+ .fs-row-wrap {
49
+ flex-wrap: wrap;
50
+ }
51
+
52
+ &[class*='.form-field'],
53
+ .fs-row-form-field {
54
+ column-gap: 10px;
55
+
56
+ .mat-form-field-infix {
57
+ width: auto;
58
+ }
59
+
60
+ >* {
61
+ width: 100%;
62
+ }
63
+ }
64
+ }
65
+
66
+ .fs-column {
67
+ display: flex;
68
+ flex-direction: column;
69
+
70
+ @include rowGaps;
71
+ }
72
+
73
+ .fs-flex {
74
+ flex: 1;
75
+ }
76
+
77
+ @media (max-width: variables.$break-xsmall) {
78
+ [fs\.lt-xs*='fs-column'] {
79
+ display: flex;
80
+ flex-direction: column;
81
+
82
+ @include rowGaps;
83
+ @include rowGapNone;
84
+ }
85
+ }
86
+
87
+ @media (max-width: variables.$break-small) {
88
+ [fs\.lt-sm*='fs-column'] {
89
+ display: flex;
90
+ flex-direction: column;
91
+
92
+ @include rowGaps;
93
+ @include rowGapNone;
94
+ }
95
+ }
96
+
97
+ @media (max-width: variables.$break-medium) {
98
+ [fs\.lt-md*='fs-column'] {
99
+ display: flex;
100
+ flex-direction: column;
101
+
102
+ @include rowGaps;
103
+ @include rowGapNone;
104
+ }
105
+ }
106
+ }
107
+
108
+ @mixin rowGaps {
109
+ &[class*='.gap-lg'] {
110
+ row-gap: 40px;
111
+ }
112
+
113
+ &[class*='.gap-md'] {
114
+ row-gap: 20px;
115
+ }
116
+
117
+ &[class*='.gap-sm'] {
118
+ row-gap: 10px;
119
+ }
120
+
121
+ &[class*='.gap-xs'] {
122
+ row-gap: 5px;
123
+ }
124
+ }
125
+
126
+ @mixin rowGapNone {
127
+ &[fs\.lt-xs*='.gap-none'],
128
+ &[fs\.lt-sm*='.gap-none'],
129
+ &[fs\.lt-md*='.gap-none'] {
130
+ row-gap: 0px;
131
+ }
132
+ }
@@ -1,49 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :
3
- typeof define === 'function' && define.amd ? define('@firestitch/style', ['exports', '@angular/core'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch.style = {}), global.ng.core));
5
- })(this, (function (exports, i0) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
-
27
- var FsStyleModule = /** @class */ (function () {
28
- function FsStyleModule() {
29
- }
30
- return FsStyleModule;
31
- }());
32
- FsStyleModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsStyleModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
33
- FsStyleModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsStyleModule });
34
- FsStyleModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsStyleModule });
35
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsStyleModule, decorators: [{
36
- type: i0.NgModule,
37
- args: [{}]
38
- }] });
39
-
40
- /**
41
- * Generated bundle index. Do not edit.
42
- */
43
-
44
- exports.FsStyleModule = FsStyleModule;
45
-
46
- Object.defineProperty(exports, '__esModule', { value: true });
47
-
48
- }));
49
- //# sourceMappingURL=firestitch-style.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"firestitch-style.umd.js","sources":["../../src/app/fs-style.module.ts","../../src/firestitch-style.ts"],"sourcesContent":["import { NgModule, ModuleWithProviders } from '@angular/core';\n\n\n@NgModule({\n\n})\nexport class FsStyleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i0","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,YAAA,aAAA,kBAAA,YAAA;QAAA,IAAA,SAAA,aAAA,GAAA;;;;yIAAa,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAA,aAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;0IAAb,aAAa,EAAA,CAAA,CAAA;0IAAb,aAAa,EAAA,CAAA,CAAA;0HAAb,aAAa,EAAA,UAAA,EAAA,CAAA;0BAHzBC,WAAQ;2BAAC,EAET,CAAA;;;QCLD;;QAEG;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"firestitch-style.js","sources":["../../src/app/fs-style.module.ts","../../src/firestitch-style.ts"],"sourcesContent":["import { NgModule, ModuleWithProviders } from '@angular/core';\n\n\n@NgModule({\n\n})\nexport class FsStyleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;MAMa,aAAa,CAAA;;2GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;4GAAb,aAAa,EAAA,CAAA,CAAA;4GAAb,aAAa,EAAA,CAAA,CAAA;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,QAAQ;mBAAC,EAET,CAAA;;;ACLD;;AAEG;;;;"}