@appartmint/mint 1.0.6 → 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.
Files changed (33) hide show
  1. package/dist/css/mint.css +97 -0
  2. package/dist/css/mint.css.map +1 -1
  3. package/dist/css/mint.min.css +1 -1
  4. package/dist/css/mint.min.css.map +1 -1
  5. package/dist/js/imports/models/file.d.ts +21 -0
  6. package/dist/js/imports/models/file.d.ts.map +1 -0
  7. package/dist/js/imports/models/index.d.ts +4 -0
  8. package/dist/js/imports/models/index.d.ts.map +1 -1
  9. package/dist/js/imports/models/minify.d.ts +12 -0
  10. package/dist/js/imports/models/minify.d.ts.map +1 -0
  11. package/dist/js/imports/models/page.d.ts +15 -0
  12. package/dist/js/imports/models/page.d.ts.map +1 -0
  13. package/dist/js/imports/models/recaptcha.d.ts +9 -0
  14. package/dist/js/imports/models/recaptcha.d.ts.map +1 -0
  15. package/dist/js/index.js +61 -0
  16. package/dist/js/index.js.map +1 -1
  17. package/dist/js/index.min.js +1 -1
  18. package/dist/js/index.min.js.map +1 -1
  19. package/package.json +1 -1
  20. package/src/scss/imports/_index.scss +4 -2
  21. package/src/scss/imports/components/_index.scss +7 -0
  22. package/src/scss/imports/overrides/_amplify.scss +45 -0
  23. package/src/scss/imports/overrides/_full-calendar.scss +46 -0
  24. package/src/scss/imports/overrides/_index.scss +11 -0
  25. package/src/scss/imports/overrides/_material.scss +19 -0
  26. package/src/scss/imports/overrides/_swiper.scss +55 -0
  27. package/src/scss/imports/util/_index.scss +4 -3
  28. package/src/scss/imports/util/_util.scss +18 -2
  29. package/src/ts/imports/models/file.ts +16 -0
  30. package/src/ts/imports/models/index.ts +4 -0
  31. package/src/ts/imports/models/minify.ts +11 -0
  32. package/src/ts/imports/models/page.ts +14 -0
  33. package/src/ts/imports/models/recaptcha.ts +8 -0
@@ -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
 
@@ -0,0 +1,16 @@
1
+ /**
2
+ * File model for Amplify Storage
3
+ */
4
+ export interface IMintFile {
5
+ path?: string;
6
+ eTag?: string;
7
+ lastModified?: string;
8
+ size?: number;
9
+ progress?: number;
10
+ error?: boolean;
11
+ fetched?: boolean;
12
+ empty?: boolean;
13
+ files?: { [key: string]: IMintFile }
14
+ metadata?: { [key: string]: string }
15
+ }
16
+ export default IMintFile;
@@ -2,4 +2,8 @@
2
2
  * Forward all exports from the models directory
3
3
  */
4
4
  export * from './color';
5
+ export * from './file';
5
6
  export * from './item';
7
+ export * from './minify';
8
+ export * from './page';
9
+ export * from './recaptcha';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Minify Interface
3
+ */
4
+ export interface IMintMinify {
5
+ url: string,
6
+ format?: string[],
7
+ method?: string,
8
+ width?: number,
9
+ height?: number
10
+ }
11
+ export default IMintMinify;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Page Interface
3
+ */
4
+ export interface IMintPage {
5
+ id: string;
6
+ slug: string;
7
+ title?: string;
8
+ description?: string;
9
+ image?: string;
10
+ items?: any[];
11
+ createdAt?: string;
12
+ updatedAt?: string;
13
+ }
14
+ export default IMintPage;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Recaptcha Interface
3
+ */
4
+ export interface IMintRecaptcha {
5
+ token: string;
6
+ action: string;
7
+ };
8
+ export default IMintRecaptcha;