@appartmint/mint 0.8.13 → 0.9.1

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 (61) hide show
  1. package/dist/css/mint.css +258 -18
  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/css/noscript.css +8 -0
  6. package/dist/css/noscript.css.map +1 -0
  7. package/dist/css/noscript.min.css +3 -0
  8. package/dist/css/noscript.min.css.map +1 -0
  9. package/dist/js/imports/components/header.d.ts +110 -0
  10. package/dist/js/imports/components/header.d.ts.map +1 -0
  11. package/dist/js/imports/enum.d.ts +10 -0
  12. package/dist/js/imports/enum.d.ts.map +1 -0
  13. package/dist/js/imports/models/color.d.ts +32 -0
  14. package/dist/js/imports/models/color.d.ts.map +1 -0
  15. package/dist/js/imports/models/item.d.ts +48 -0
  16. package/dist/js/imports/models/item.d.ts.map +1 -0
  17. package/dist/js/imports/util/display.d.ts +7 -0
  18. package/dist/js/imports/util/display.d.ts.map +1 -0
  19. package/dist/js/imports/util/event.d.ts +7 -0
  20. package/dist/js/imports/util/event.d.ts.map +1 -0
  21. package/dist/js/imports/util/icon.d.ts +29 -0
  22. package/dist/js/imports/util/icon.d.ts.map +1 -0
  23. package/dist/js/imports/util/math.d.ts +14 -0
  24. package/dist/js/imports/util/math.d.ts.map +1 -0
  25. package/dist/js/imports/util/object.d.ts +59 -0
  26. package/dist/js/imports/util/object.d.ts.map +1 -0
  27. package/dist/js/imports/util/selectors.d.ts +146 -0
  28. package/dist/js/imports/util/selectors.d.ts.map +1 -0
  29. package/dist/js/imports/util/settings.d.ts +53 -0
  30. package/dist/js/imports/util/settings.d.ts.map +1 -0
  31. package/dist/js/imports/util/text.d.ts +7 -0
  32. package/dist/js/imports/util/text.d.ts.map +1 -0
  33. package/dist/js/imports/util/window.d.ts +7 -0
  34. package/dist/js/imports/util/window.d.ts.map +1 -0
  35. package/dist/js/index.d.ts +19 -2
  36. package/dist/js/index.d.ts.map +1 -1
  37. package/dist/js/index.js +1515 -80
  38. package/dist/js/index.js.map +1 -1
  39. package/dist/js/index.min.js +1 -1
  40. package/dist/js/index.min.js.map +1 -1
  41. package/dist/js/util.d.ts +78 -0
  42. package/dist/js/util.d.ts.map +1 -0
  43. package/dist/js/util.js +638 -0
  44. package/dist/js/util.js.map +1 -0
  45. package/dist/js/util.min.js +2 -0
  46. package/dist/js/util.min.js.map +1 -0
  47. package/package.json +1 -5
  48. package/src/scss/imports/components/_buttons.scss +44 -1
  49. package/src/scss/imports/components/_cards.scss +32 -15
  50. package/src/scss/imports/components/_header.scss +196 -0
  51. package/src/scss/imports/components/_image.scss +33 -0
  52. package/src/scss/imports/components/_index.scss +3 -1
  53. package/src/scss/imports/global/_animations.scss +37 -2
  54. package/src/scss/imports/global/_global.scss +5 -1
  55. package/src/scss/imports/global/_text.scss +5 -0
  56. package/src/scss/imports/global/_themes.scss +0 -1
  57. package/src/scss/imports/{_mint.scss → util/_index.scss} +1 -1
  58. package/src/scss/imports/util/_util.scss +746 -0
  59. package/src/scss/noscript.scss +14 -0
  60. package/src/scss/imports/_util.scss +0 -7
  61. /package/src/scss/imports/{_vars.scss → util/_vars.scss} +0 -0
package/dist/css/mint.css CHANGED
@@ -1,6 +1,7 @@
1
1
  /*!**********************************************************************************************************************************************************************************************!*\
2
2
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/webpack-shebang-plugin/loader.js?{"shebangRegExp":{},"chmod":493}!./src/scss/mint.scss ***!
3
3
  \**********************************************************************************************************************************************************************************************/
4
+ @charset "UTF-8";
4
5
  .mint-bg {
5
6
  display: block;
6
7
  opacity: 0;
@@ -10,13 +11,24 @@
10
11
  }
11
12
 
12
13
  .mint-pill {
13
- display: inline-flex;
14
+ display: inline-block;
15
+ align-items: center;
16
+ min-width: 5rem;
14
17
  padding: 0 0.75rem;
15
18
  border-radius: 1rem;
16
19
  color: var(--mint-fore);
17
20
  background: var(--mint-brand-5);
21
+ line-height: 2;
22
+ text-align: center;
18
23
  text-decoration: none;
24
+ text-overflow: ellipsis;
19
25
  white-space: nowrap;
26
+ overflow: hidden;
27
+ }
28
+ @media (min-width: 480px) {
29
+ .mint-pill {
30
+ width: auto;
31
+ }
20
32
  }
21
33
  .mint-pill:hover {
22
34
  color: var(--mint-back);
@@ -53,6 +65,46 @@
53
65
  outline-color: var(--mint-accent-2);
54
66
  }
55
67
 
68
+ .mint-buttons {
69
+ display: flex;
70
+ align-items: center;
71
+ justify-content: flex-start;
72
+ flex-wrap: wrap;
73
+ }
74
+ .mint-buttons.mint-center {
75
+ justify-content: center;
76
+ }
77
+ .mint-buttons.mint-end {
78
+ justify-content: flex-end;
79
+ }
80
+ .mint-buttons.mint-between {
81
+ justify-content: space-between;
82
+ }
83
+ .mint-buttons.mint-around {
84
+ justify-content: space-around;
85
+ }
86
+ .mint-buttons.mint-even {
87
+ justify-content: space-evenly;
88
+ }
89
+ .mint-buttons > * {
90
+ width: 100%;
91
+ margin: 0.5rem 0;
92
+ }
93
+ @media (min-width: 480px) {
94
+ .mint-buttons > * {
95
+ width: auto;
96
+ margin: 0.5rem;
97
+ }
98
+ }
99
+ .mint-buttons .mint-buttons .mint-pill {
100
+ width: 100%;
101
+ }
102
+
103
+ p .mint-pill {
104
+ line-height: 1.5rem;
105
+ vertical-align: middle;
106
+ }
107
+
56
108
  .mint-card {
57
109
  display: flex;
58
110
  flex-direction: column;
@@ -79,7 +131,7 @@
79
131
  box-shadow: none;
80
132
  overflow: visible;
81
133
  }
82
- .mint-card.mint-stagger .mint-image {
134
+ .mint-card.mint-stagger > .mint-image, .mint-card.mint-stagger > mint-image .mint-image {
83
135
  position: absolute;
84
136
  top: 0;
85
137
  left: 0;
@@ -88,11 +140,11 @@
88
140
  border-radius: 1rem;
89
141
  box-shadow: 0 0 2rem -0.5rem var(--mint-glow-2);
90
142
  }
91
- .mint-card.mint-stagger .mint-image img {
143
+ .mint-card.mint-stagger > .mint-image img, .mint-card.mint-stagger > mint-image .mint-image img {
92
144
  height: 100%;
93
145
  object-fit: cover;
94
146
  }
95
- .mint-card.mint-stagger .mint-content {
147
+ .mint-card.mint-stagger > .mint-content {
96
148
  width: calc(50% + 3rem);
97
149
  margin-top: 3rem;
98
150
  border-radius: 1rem;
@@ -103,7 +155,7 @@
103
155
  .mint-card.mint-stagger.mint-reverse {
104
156
  flex-direction: row;
105
157
  }
106
- .mint-card.mint-stagger.mint-reverse .mint-image {
158
+ .mint-card.mint-stagger.mint-reverse > .mint-image, .mint-card.mint-stagger.mint-reverse > mint-image .mint-image {
107
159
  left: auto;
108
160
  right: 0;
109
161
  }
@@ -111,17 +163,14 @@
111
163
  .mint-card > .mint-image:only-child, .mint-card > mint-image:only-child .mint-image {
112
164
  width: 100%;
113
165
  }
114
- .mint-card .mint-image {
166
+ .mint-card > .mint-image, .mint-card > mint-image .mint-image {
115
167
  overflow: hidden;
116
168
  }
117
169
  @media (min-width: 768px) {
118
- .mint-card .mint-image {
170
+ .mint-card > .mint-image, .mint-card > mint-image .mint-image {
119
171
  width: 50%;
120
172
  }
121
173
  }
122
- .mint-card .mint-image img {
123
- display: block;
124
- }
125
174
  .mint-card .mint-content {
126
175
  padding: 1.5rem;
127
176
  background: var(--mint-black-2);
@@ -137,15 +186,193 @@
137
186
  .mint-card .mint-content :last-child {
138
187
  margin-bottom: 0;
139
188
  }
140
- .mint-card .mint-content .mint-buttons {
189
+ .mint-card .mint-content .mint-title {
141
190
  display: flex;
142
191
  align-items: center;
192
+ justify-content: flex-start;
143
193
  }
144
- .mint-card .mint-content .mint-buttons > * {
145
- margin-right: 0.5rem;
194
+ .mint-card .mint-content .mint-title > .mint-image, .mint-card .mint-content .mint-title > mint-image {
195
+ width: 100%;
196
+ height: 100%;
197
+ max-width: 4rem;
198
+ max-height: 4rem;
199
+ margin-right: 1rem;
146
200
  }
147
- .mint-card .mint-content .mint-buttons :last-child {
148
- margin-right: 0;
201
+ .mint-card .mint-content .mint-title > .mint-image img, .mint-card .mint-content .mint-title > mint-image img {
202
+ display: block;
203
+ width: 100%;
204
+ height: 100%;
205
+ }
206
+ .mint-card .mint-content .mint-title div {
207
+ width: 100%;
208
+ }
209
+ .mint-card .mint-content .mint-title div > * {
210
+ margin: 0;
211
+ }
212
+
213
+ :root {
214
+ --mint-delay-instant: 0ms;
215
+ --mint-delay-fast: 100ms;
216
+ --mint-delay-med-fast: 200ms;
217
+ --mint-delay-default: 300ms;
218
+ --mint-delay-med-slow: 400ms;
219
+ --mint-delay-slow: 500ms;
220
+ }
221
+
222
+ .mint-sr-only {
223
+ position: absolute !important;
224
+ width: 1px !important;
225
+ height: 1px !important;
226
+ padding: 0 !important;
227
+ margin: -1px !important;
228
+ overflow: hidden !important;
229
+ clip: rect(0, 0, 0, 0) !important;
230
+ border: 0 !important;
231
+ }
232
+
233
+ #mint-header {
234
+ display: flex;
235
+ flex-direction: column;
236
+ position: relative;
237
+ width: 100%;
238
+ color: var(--mint-fg);
239
+ background-color: var(--mint-header-bg);
240
+ z-index: 1000;
241
+ }
242
+ #mint-header.mint-js {
243
+ align-items: center;
244
+ flex-direction: row;
245
+ height: var(--mint-height);
246
+ padding: calc((var(--mint-height) - var(--mint-btn-height)) / 2);
247
+ }
248
+ #mint-header.mint-js [aria-controls=mint-wrapper] {
249
+ display: inline-block;
250
+ }
251
+ #mint-header.mint-js [aria-controls]:not([aria-controls=mint-wrapper]) + ul {
252
+ display: flex;
253
+ flex-direction: column;
254
+ height: 0;
255
+ overflow: hidden;
256
+ transition: height var(--mint-delay-default), margin var(--mint-delay-default);
257
+ }
258
+ #mint-header.mint-js [aria-controls]:not([aria-controls=mint-wrapper])[aria-expanded]:not([aria-expanded=true]) + ul {
259
+ margin: 0;
260
+ }
261
+ #mint-header.mint-js.mint-fixed {
262
+ position: fixed;
263
+ top: 0;
264
+ left: 0;
265
+ }
266
+ #mint-header.mint-js #mint-wrapper {
267
+ background: var(--mint-bg);
268
+ transition-duration: var(--mint-delay-default);
269
+ transition-property: top, right, bottom, left;
270
+ overflow: auto;
271
+ }
272
+ #mint-header.mint-right #mint-wrapper {
273
+ top: var(--mint-height);
274
+ right: -100%;
275
+ left: unset;
276
+ }
277
+ #mint-header.mint-right #mint-wrapper.mint-open {
278
+ right: 0;
279
+ }
280
+ #mint-header.mint-bottom #mint-wrapper {
281
+ top: unset;
282
+ bottom: -100%;
283
+ }
284
+ #mint-header.mint-bottom #mint-wrapper.mint-open {
285
+ bottom: 0;
286
+ }
287
+ #mint-header.mint-left #mint-wrapper {
288
+ top: var(--mint-height);
289
+ left: -100%;
290
+ }
291
+ #mint-header.mint-left #mint-wrapper.mint-open {
292
+ left: 0;
293
+ }
294
+ #mint-header::before {
295
+ content: "";
296
+ position: absolute;
297
+ top: 0;
298
+ left: 0;
299
+ width: 100%;
300
+ height: var(--mint-height);
301
+ background: var(--mint-header-bg);
302
+ z-index: -1;
303
+ }
304
+ #mint-header nav > ul {
305
+ display: flex;
306
+ flex-direction: column;
307
+ }
308
+ #mint-header ul {
309
+ list-style: none;
310
+ margin-top: 0;
311
+ margin-bottom: 1rem;
312
+ padding-left: 0;
313
+ }
314
+ #mint-header a, #mint-header button {
315
+ display: flex;
316
+ align-items: center;
317
+ padding: calc((var(--mint-height) - var(--mint-btn-height)) / 2);
318
+ }
319
+ #mint-header [aria-controls=mint-wrapper] {
320
+ display: none;
321
+ }
322
+ #mint-header #mint-logo {
323
+ margin: calc((var(--mint-height) - var(--mint-btn-height)) / 2);
324
+ padding: 0;
325
+ }
326
+ #mint-header #mint-wrapper {
327
+ display: flex;
328
+ flex-direction: column;
329
+ position: fixed;
330
+ top: -100%;
331
+ left: 0;
332
+ width: 100%;
333
+ height: calc(100vh - var(--mint-height));
334
+ transition: none;
335
+ z-index: -2;
336
+ }
337
+ #mint-header #mint-wrapper.mint-open {
338
+ top: var(--mint-height);
339
+ }
340
+ #mint-header #mint-widgets {
341
+ position: absolute;
342
+ top: 0;
343
+ right: 0;
344
+ height: var(--mint-height);
345
+ }
346
+ #mint-header .mint-dropdown {
347
+ background: var(--mint-header-bg);
348
+ }
349
+ #mint-header .mint-dropdown button {
350
+ display: flex;
351
+ align-items: center;
352
+ justify-content: center;
353
+ min-width: var(--mint-height);
354
+ height: var(--mint-height);
355
+ padding: calc((var(--mint-height) - var(--mint-btn-height)) / 2);
356
+ }
357
+ #mint-header .mint-dropdown li {
358
+ padding: calc((var(--mint-height) - var(--mint-btn-height)) / 2);
359
+ line-height: 1;
360
+ cursor: pointer;
361
+ }
362
+
363
+ .mint-image.mint-error::after {
364
+ content: "❌ Image failed to load. This is a placeholder.";
365
+ position: absolute;
366
+ bottom: 0;
367
+ left: 0;
368
+ width: 100%;
369
+ padding: 0 0.5rem 0.5rem 0.5rem;
370
+ background: rgba(0, 0, 0, 0.4);
371
+ box-shadow: 0 0 0.5rem 0.5rem rgba(0, 0, 0, 0.4);
372
+ text-align: center;
373
+ }
374
+ .mint-image img {
375
+ display: block;
149
376
  }
150
377
 
151
378
  @keyframes instafade {
@@ -183,7 +410,7 @@
183
410
  .mint-fall-in {
184
411
  opacity: 0;
185
412
  transform: translateY(-100px);
186
- transition: all 500ms, box-shadow 500ms 400ms !important;
413
+ transition: all 500ms ease-out, box-shadow 500ms 400ms ease-out !important;
187
414
  pointer-events: none;
188
415
  }
189
416
  .mint-fall-in.mint-show:not(.mint-loading) {
@@ -223,7 +450,7 @@
223
450
  height: 100%;
224
451
  transform: translate(-100%, 100%);
225
452
  background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
226
- transition: transform 200ms ease-in;
453
+ transition: transform 200ms ease-out;
227
454
  }
228
455
 
229
456
  *, *::before, *::after {
@@ -264,9 +491,12 @@ nav ul > li > ul {
264
491
  flex-direction: column;
265
492
  }
266
493
 
267
- a[href^="tel:"], a[href^="mailto:"] {
494
+ a[href^="mailto:"], a[href^="tel:"], a[href^="sms:"] {
268
495
  white-space: nowrap;
269
496
  }
497
+ a i:last-child {
498
+ margin-left: 0.25rem;
499
+ }
270
500
 
271
501
  button, a[routerLink] {
272
502
  cursor: pointer;
@@ -574,28 +804,38 @@ html, body {
574
804
  }
575
805
  }
576
806
 
807
+ p {
808
+ line-height: 1.75;
809
+ }
810
+
577
811
  h1, .mint-h1 {
578
812
  font-family: "JosefinSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
813
+ line-height: 1;
579
814
  }
580
815
 
581
816
  h2, .mint-h2 {
582
817
  font-family: "JosefinSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
818
+ line-height: 1;
583
819
  }
584
820
 
585
821
  h3, .mint-h3 {
586
822
  font-family: "JosefinSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
823
+ line-height: 1;
587
824
  }
588
825
 
589
826
  h4, .mint-h4 {
590
827
  font-family: "JosefinSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
828
+ line-height: 1;
591
829
  }
592
830
 
593
831
  h5, .mint-h5 {
594
832
  font-family: "JosefinSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
833
+ line-height: 1;
595
834
  }
596
835
 
597
836
  h6, .mint-h6 {
598
837
  font-family: "JosefinSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
838
+ line-height: 1;
599
839
  }
600
840
 
601
841
  h1, .mint-h1 {