@appartmint/mint 1.0.7 → 1.0.8

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appartmint/mint",
3
3
  "author": "App Art Mint LLC",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "license": "MIT",
6
6
  "description": "The front-end TS/SCSS framework of App Art Mint",
7
7
  "keywords": [
@@ -1,8 +1,10 @@
1
- /// _index.scss - Loads every scss style file in the Mint library
1
+ /// _index.scss - Forward all overrides
2
2
  /// @author App Art Mint LLC
3
3
  ///
4
- /// @group Mint
4
+ /// @group Index
5
+ @charset 'utf-8';
5
6
 
6
7
  /// Imports
7
8
  @use './components';
8
9
  @use './global';
10
+ @use './overrides';
@@ -1,3 +1,10 @@
1
+ /// _index.scss - Forward all overrides
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Index
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
1
8
  @use './backgrounds';
2
9
  @use './buttons';
3
10
  @use './cards';
@@ -0,0 +1,45 @@
1
+ /// _amplify.scss - Amplify styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Overrides
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use '../util' as *;
9
+
10
+ /// Amplify Styles
11
+ :root:root:root {
12
+ --amplify-colors-background-error: #{css-var(glow-0)};
13
+ --amplify-colors-border-primary: #{css-var(brand-1)};
14
+ --amplify-colors-border-focus: #{css-var(brand-3)};
15
+ --amplify-colors-font-hover: #{css-var(brand-0)};
16
+ --amplify-colors-font-interactive: #{css-var(brand-1)};
17
+ --amplify-colors-font-primary: #{css-var('white')};
18
+ --amplify-colors-font-secondary: #{css-var(brand-0)};
19
+ --amplify-colors-font-error: #{css-var(danger)};
20
+ --amplify-colors-font-warning: #{css-var(warning)};
21
+ --amplify-colors-font-success: #{css-var(success)};
22
+ --amplify-colors-font-info: #{css-var(info)};
23
+
24
+ --amplify-border-widths-small: $border-width;
25
+ }
26
+
27
+ [data-amplify-authenticator] {
28
+ [data-amplify-container] {
29
+ @extend .mint-card !optional;
30
+
31
+ [data-amplify-router] {
32
+ @extend .mint-content !optional;
33
+ border: none;
34
+ }
35
+ }
36
+ }
37
+
38
+ [amplify-button] {
39
+ @extend .mint-btn !optional;
40
+ margin: auto;
41
+ }
42
+
43
+ .amplify-icon {
44
+ display: block;
45
+ }
@@ -0,0 +1,46 @@
1
+ /// _amplify.scss - Amplify styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Overrides
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use '../util' as *;
9
+
10
+ /// FullCalendar Styles
11
+ .fc {
12
+ --fc-page-bg-color: #{css-var(brand-6)};
13
+ .fc-toolbar {
14
+ flex-wrap: wrap;
15
+ justify-content: space-around;
16
+ gap: 1rem;
17
+
18
+ &-title {
19
+ @include break-max(sm) {
20
+ font-size: 1.25rem;
21
+ }
22
+ }
23
+ }
24
+ .fc-timegrid {
25
+ &-divider {
26
+ padding: 0;
27
+ }
28
+ &-slot-minor {
29
+ border-top-style: groove;
30
+ }
31
+ }
32
+ .fc-list-table {
33
+ --fc-list-event-hover-bg-color: #{css-var(brand-4)};
34
+
35
+ @include break-max(sm) {
36
+ word-break: normal;
37
+ }
38
+
39
+ .fc-list-event-time {
40
+ @include break-max(xs) {
41
+ white-space: normal;
42
+
43
+ }
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,11 @@
1
+ /// _index.scss - Forward all overrides
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Index
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use './amplify';
9
+ @use './full-calendar';
10
+ @use './material';
11
+ @use './swiper';
@@ -0,0 +1,19 @@
1
+ /// _material.scss - Material styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Overrides
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use '../util' as *;
9
+
10
+ /// Material Styles
11
+ :root:root {
12
+ @include css-var(--mat-table-background-color, transparent);
13
+ }
14
+
15
+ .cdk-overlay-container {
16
+ .mat-mdc-select-panel {
17
+ background: css-var(brand-4)
18
+ }
19
+ }
@@ -0,0 +1,55 @@
1
+ /// _swiper.scss - Swiper styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Overrides
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use '../util' as *;
9
+
10
+ /// Variables
11
+ $arrows-offset: 1rem;
12
+ $arrows-size: 2rem;
13
+
14
+ /// Swiper Styles
15
+ :root {
16
+ @include css-var-ref(--swiper-navigation-color, fore);
17
+ @include css-var-ref(--swiper-pagination-color, brand);
18
+ @include css-var(--swiper-navigation-size, $arrows-size);
19
+
20
+ .swiper {
21
+ max-width: 100%;
22
+
23
+ @include break(xs) {
24
+ @include css-var(--swiper-navigation-sides-offset, $arrows-offset);
25
+ }
26
+
27
+ &-slide {
28
+ @include break(xs) {
29
+ padding: $arrows-offset + $arrows-size;
30
+ }
31
+ }
32
+
33
+ &-button {
34
+ &-prev,
35
+ &-next {
36
+ &::after {
37
+ font-family: "Font Awesome 6 Pro";
38
+ font-weight: 900;
39
+ }
40
+ }
41
+
42
+ &-prev {
43
+ &::after {
44
+ content: '\f053';
45
+ }
46
+ }
47
+
48
+ &-next {
49
+ &::after {
50
+ content: '\f054';
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
@@ -1,8 +1,9 @@
1
- /// _index.scss - SCSS Utilities
1
+ /// _index.scss - Forward all overrides
2
2
  /// @author App Art Mint LLC
3
3
  ///
4
- /// @group Mint
4
+ /// @group Index
5
+ @charset 'utf-8';
5
6
 
6
- /// Forwards
7
+ /// Imports
7
8
  @forward './util';
8
9
  @forward './vars';
@@ -200,7 +200,11 @@ $bootstrap5: false !default;
200
200
  @error 'The css-var function requires a string value.';
201
201
  }
202
202
 
203
- @return var(css-prefix($base));
203
+ @if (string.index($base, '--') != 1) {
204
+ $base: css-prefix($base);
205
+ }
206
+
207
+ @return var(#{$base});
204
208
  }
205
209
 
206
210
  /// Negates a provided CSS-selector
@@ -454,7 +458,15 @@ $bootstrap5: false !default;
454
458
  /// @param {Any} $val - the value of the CSS var
455
459
  /// @output a prefixed CSS var definition
456
460
  @mixin css-var ($key, $val) {
457
- #{css-prefix($key)}: #{$val};
461
+ @if (type-of($key) != 'string') {
462
+ @error 'The css-var mixin requires a string for the $key argument.';
463
+ }
464
+
465
+ @if (string.index($key, '--') != 1) {
466
+ $key: css-prefix($key);
467
+ }
468
+
469
+ #{$key}: #{$val};
458
470
  }
459
471
 
460
472
  /// Creates a prefixed CSS var reference
@@ -467,6 +479,10 @@ $bootstrap5: false !default;
467
479
  /// @param {String} $key2 - the key of the referenced CSS var
468
480
  /// @output a prefixed CSS var reference
469
481
  @mixin css-var-ref ($key1, $key2) {
482
+ @if (type-of($key1) != 'string' or type-of($key2) != 'string') {
483
+ @error 'The css-var-ref mixin requires string values for both parameters.';
484
+ }
485
+
470
486
  @include css-var($key1, css-var($key2));
471
487
  }
472
488