@appartmint/mint 2.4.4 → 2.6.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.
Files changed (36) hide show
  1. package/dist/css/mint.css +187 -50
  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/abstract/attaches-events.d.ts +26 -0
  6. package/dist/js/imports/abstract/attaches-events.d.ts.map +1 -0
  7. package/dist/js/imports/abstract/index.d.ts +5 -0
  8. package/dist/js/imports/abstract/index.d.ts.map +1 -0
  9. package/dist/js/imports/components/header.d.ts +10 -111
  10. package/dist/js/imports/components/header.d.ts.map +1 -1
  11. package/dist/js/imports/components/index.d.ts +2 -0
  12. package/dist/js/imports/components/index.d.ts.map +1 -1
  13. package/dist/js/imports/components/menu.d.ts +92 -0
  14. package/dist/js/imports/components/menu.d.ts.map +1 -0
  15. package/dist/js/imports/components/panel.d.ts +66 -0
  16. package/dist/js/imports/components/panel.d.ts.map +1 -0
  17. package/dist/js/imports/index.d.ts +2 -1
  18. package/dist/js/imports/index.d.ts.map +1 -1
  19. package/dist/js/imports/models/event.d.ts +9 -0
  20. package/dist/js/imports/models/event.d.ts.map +1 -0
  21. package/dist/js/imports/models/index.d.ts +1 -0
  22. package/dist/js/imports/models/index.d.ts.map +1 -1
  23. package/dist/js/imports/util/selectors.d.ts +1 -1
  24. package/dist/js/imports/util/selectors.d.ts.map +1 -1
  25. package/dist/js/index.js +455 -227
  26. package/dist/js/index.js.map +1 -1
  27. package/dist/js/index.min.js +1 -1
  28. package/dist/js/index.min.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/scss/imports/components/partial/_chat.scss +131 -0
  31. package/src/scss/imports/components/partial/_header.scss +6 -61
  32. package/src/scss/imports/components/partial/_index.scss +1 -0
  33. package/src/scss/imports/components/widget/_button.scss +2 -0
  34. package/src/scss/imports/components/widget/_index.scss +2 -0
  35. package/src/scss/imports/components/widget/_menu.scss +0 -0
  36. package/src/scss/imports/components/widget/_panel.scss +95 -0
@@ -0,0 +1,131 @@
1
+ /// _chat.scss - Chatbot styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Components
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use '../../util' as *;
9
+
10
+ /// Chatbot styles
11
+ #{class(chatbot)} {
12
+ display: flex;
13
+ flex-direction: column;
14
+ flex-grow: 1;
15
+ justify-content: flex-end;
16
+ position: relative;
17
+ gap: 1rem;
18
+ padding: 1rem;
19
+ background: rgba(0, 0, 0, 0.8);
20
+ min-height: calc(100vh - $header-height);
21
+ min-height: calc(100dvh - $header-height);
22
+
23
+ @include break(xs) {
24
+ min-height: unset;
25
+ }
26
+
27
+ #{class(output)} {
28
+ display: flex;
29
+ position: absolute;
30
+ top: 0;
31
+ left: 0;
32
+ width: 100%;
33
+ height: calc(100% - 75px);
34
+ padding: 1rem;
35
+ overflow-y: auto;
36
+ }
37
+
38
+ #{class(chat)} {
39
+ display: flex;
40
+ flex-direction: column;
41
+ gap: 0;
42
+ width: 100%;
43
+ min-height: 100%;
44
+ padding: 1rem;
45
+ font-size: 1.125rem;
46
+ overflow-x: hidden;
47
+
48
+ &::before {
49
+ content: '';
50
+ flex-grow: 1;
51
+ }
52
+
53
+ $message-user: #e1e5e6;
54
+ $message-assistant: css-var(brand-1);
55
+
56
+ p {
57
+ align-self: flex-start;
58
+ margin: 0;
59
+ color: #000;
60
+
61
+ @include break(xs) {
62
+ max-width: 75%;
63
+ }
64
+
65
+ &:nth-child(even) {
66
+ align-self: flex-end;
67
+
68
+ span {
69
+ background-color: $message-assistant;
70
+
71
+ &::before {
72
+ left: unset;
73
+ right: 0;
74
+ transform: translate(-5%, 90%) skew(50deg, 10deg);
75
+ border-color: $message-assistant transparent transparent transparent;
76
+ }
77
+ }
78
+ }
79
+
80
+ span {
81
+ display: block;
82
+ position: relative;
83
+ padding: 1rem;
84
+ margin-bottom: 2rem;
85
+ background-color: $message-user;
86
+ border-radius: 0.5rem;
87
+
88
+ &::before {
89
+ content: '';
90
+ position: absolute;
91
+ bottom: 0;
92
+ left: 0;
93
+ transform: translate(5%, 90%) skew(-50deg, 10deg);
94
+ width: 0;
95
+ height: 0;
96
+ border: 0.5rem solid;
97
+ border-color: $message-user transparent transparent transparent;
98
+ }
99
+ }
100
+ }
101
+ }
102
+
103
+ #{class(input)} {
104
+ position: relative;
105
+ width: 100%;
106
+ max-width: 550px;
107
+ margin: 0 auto;
108
+
109
+ input {
110
+ font-size: 1.25rem;
111
+ padding-right: 47px;
112
+ }
113
+
114
+ button {
115
+ position: absolute;
116
+ top: 0;
117
+ right: 0;
118
+ height: 100%;
119
+ padding: 0 1rem;
120
+ border-top-right-radius: 1rem;
121
+ border-bottom-right-radius: 1rem;
122
+ border: none;
123
+ transition: all 0.3s ease-in-out;
124
+
125
+ @include states(hover, focus) {
126
+ background: $fore !important;
127
+ color: $back;
128
+ }
129
+ }
130
+ }
131
+ }
@@ -24,41 +24,6 @@
24
24
  z-index: 10000;
25
25
  height: css-var(header-height);
26
26
 
27
- &#{class(right)} {
28
- #{id(wrapper)} {
29
- top: css-var(header-height);
30
- right: -100%;
31
- left: unset;
32
-
33
- &#{class(open)} {
34
- right: 0;
35
- }
36
- }
37
- }
38
-
39
- &#{class(bottom)} {
40
- #{id(wrapper)} {
41
- top: unset;
42
- bottom: -100%;
43
-
44
- &#{class(open)} {
45
- top: unset;
46
- bottom: 0;
47
- }
48
- }
49
- }
50
-
51
- &#{class(left)} {
52
- #{id(wrapper)} {
53
- top: css-var(header-height);
54
- left: -100%;
55
-
56
- &#{class(open)} {
57
- left: 0;
58
- }
59
- }
60
- }
61
-
62
27
  &#{class(expand)} {
63
28
  @include break($header-break) {
64
29
  #{class(buttons)} {
@@ -199,13 +164,6 @@
199
164
 
200
165
  &#{class(tray)} {
201
166
  #{id(wrapper)} {
202
- gap: 1.5rem;
203
- font-size: 0.5em;
204
-
205
- @include break(sm) {
206
- max-width: 512px;
207
- }
208
-
209
167
  a, button {
210
168
  padding: 0.75rem;
211
169
  margin: 0.25rem 0;
@@ -292,7 +250,12 @@
292
250
  white-space: nowrap;
293
251
 
294
252
  span {
253
+ display: none;
295
254
  margin: 0;
255
+
256
+ @include break(xs) {
257
+ display: inline;
258
+ }
296
259
  }
297
260
 
298
261
  img {
@@ -368,24 +331,6 @@
368
331
  }
369
332
 
370
333
  #{id(wrapper)} {
371
- display: flex;
372
- flex-direction: column;
373
- position: fixed;
374
- top: -100%;
375
- left: 0;
376
- width: 100%;
377
- height: calc(100vh - css-var(header-height));
378
- height: calc(100dvh - css-var(header-height));
379
- z-index: -2;
380
- background: css-var(header-back);
381
- transition-duration: css-var(delay-default);
382
- transition-property: top, right, bottom, left;
383
- overflow: auto;
384
-
385
- &#{class(open)} {
386
- top: css-var(header-height);
387
- }
388
-
389
334
  nav {
390
335
  flex-grow: 1;
391
336
  height: auto;
@@ -514,4 +459,4 @@
514
459
  }
515
460
  }
516
461
  }
517
- }
462
+ }
@@ -7,3 +7,4 @@
7
7
  @use './backgrounds';
8
8
  @use './footer';
9
9
  @use './header';
10
+ @use './chat';
@@ -128,6 +128,8 @@
128
128
  }
129
129
 
130
130
  i {
131
+ display: inline-flex;
132
+ align-items: center;
131
133
  margin: 0 !important;
132
134
  color: css-var($btn-border);
133
135
  font-size: 1.5rem;
@@ -7,4 +7,6 @@
7
7
  @use './button';
8
8
  @use './card';
9
9
  @use './image';
10
+ @use './menu';
11
+ @use './panel';
10
12
  @use './table';
File without changes
@@ -0,0 +1,95 @@
1
+ /// _panel.scss - Panel styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Components
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use 'sass:math';
9
+ @use '../../util' as *;
10
+
11
+ /// Panel Styles
12
+ #{class(panel)} {
13
+ &#{class(right)} {
14
+ #{class(panel-wrapper)} {
15
+ top: css-var(header-height);
16
+ right: -100%;
17
+ left: unset;
18
+
19
+ &#{class(open)} {
20
+ right: 0;
21
+ }
22
+ }
23
+ }
24
+
25
+ &#{class(bottom)} {
26
+ #{class(panel-wrapper)} {
27
+ top: unset;
28
+ bottom: -100%;
29
+
30
+ &#{class(open)} {
31
+ top: unset;
32
+ bottom: 0;
33
+ }
34
+ }
35
+ }
36
+
37
+ &#{class(left)} {
38
+ #{class(panel-wrapper)} {
39
+ top: css-var(header-height);
40
+ left: -100%;
41
+
42
+ &#{class(open)} {
43
+ left: 0;
44
+ }
45
+ }
46
+ }
47
+
48
+ &#{class(tray)} {
49
+ #{class(panel-wrapper)} {
50
+ gap: 1.5rem;
51
+ font-size: 0.5em;
52
+
53
+ @include break(sm) {
54
+ max-width: 512px;
55
+ }
56
+ }
57
+ }
58
+
59
+ #{class(panel-wrapper)} {
60
+ display: flex;
61
+ flex-direction: column;
62
+ position: fixed;
63
+ top: -100%;
64
+ left: 0;
65
+ width: 100%;
66
+ height: calc(100vh - css-var(header-height));
67
+ height: calc(100dvh - css-var(header-height));
68
+ z-index: -2;
69
+ background: css-var(header-back);
70
+ transition-duration: css-var(delay-default);
71
+ transition-property: top, right, bottom, left;
72
+ overflow: auto;
73
+
74
+ &#{class(open)} {
75
+ top: css-var(header-height);
76
+ }
77
+
78
+ nav {
79
+ flex-grow: 1;
80
+ height: auto;
81
+ overflow: visible;
82
+ background: css-var(back);
83
+
84
+ @include break(xl) {
85
+ display: flex;
86
+ align-items: center;
87
+ justify-content: center;
88
+ }
89
+
90
+ &> :last-child {
91
+ margin-bottom: 0;
92
+ }
93
+ }
94
+ }
95
+ }