@colijnit/inphoto 300.1.1 → 300.1.2

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 (26) hide show
  1. package/assets/inphoto-make-selection.jpg +0 -0
  2. package/assets/inphoto-redesign-ai.jpg +0 -0
  3. package/assets/inphoto-remove-all.jpg +0 -0
  4. package/fesm2022/colijnit-inphoto.mjs +593 -297
  5. package/fesm2022/colijnit-inphoto.mjs.map +1 -1
  6. package/icons/lock_solid_full.svg +1 -0
  7. package/index.d.ts +32 -17
  8. package/lib/component/ai-prompt/style/_layout.scss +1 -1
  9. package/lib/component/back-next-buttons/style/_theme.scss +1 -0
  10. package/lib/component/canvas-tool-bar/style/_layout.scss +6 -0
  11. package/lib/component/image-enhancer/style/_layout.scss +47 -26
  12. package/lib/component/image-enhancer/style/_theme.scss +14 -2
  13. package/lib/component/image-enhancer-style/style/_theme.scss +3 -3
  14. package/lib/component/image-history/style/_layout.scss +64 -9
  15. package/lib/component/image-process-complete/components/image-process-complete-next/style/_layout.scss +1 -0
  16. package/lib/component/image-process-complete/style/_layout.scss +9 -3
  17. package/lib/component/image-process-complete/style/_theme.scss +21 -16
  18. package/lib/component/photo-editor/style/_layout.scss +1 -11
  19. package/lib/component/prepare-starting-image/style/_layout.scss +43 -66
  20. package/lib/component/prepare-starting-image/style/_material-definition.scss +1 -3
  21. package/lib/component/prepare-starting-image/style/_theme.scss +118 -0
  22. package/lib/component/process-loader/style/_layout.scss +29 -8
  23. package/lib/component/process-loader/style/_material-definition.scss +3 -0
  24. package/lib/component/process-loader/style/_theme.scss +87 -1
  25. package/lib/style/_variables.scss +9 -8
  26. package/package.json +1 -1
@@ -3,122 +3,99 @@
3
3
  @include cfg.export-module('co-prepare-starting-image-layout') {
4
4
  .co-prepare-starting-image {
5
5
  .prepare-starting-image-container {
6
- background-size: cover;
6
+ background-size: contain;
7
7
  display: flex;
8
8
  justify-content: space-around;
9
9
  align-items: center;
10
10
  width: 100%;
11
11
  height: 100%;
12
12
  min-height: 100vh;
13
+ background-repeat: no-repeat;
14
+ background-position: center;
13
15
 
14
16
  .prepare-starting-image-dialog {
15
17
  width: 100%;
16
- max-width: 815px;
17
- background: var(--co-inphoto-dialog-background-color);
18
+ max-width: 960px;
18
19
  box-sizing: border-box;
19
- padding: 25px 50px;
20
- border-radius: var(--co-inphoto-border-radius);
20
+ padding: 25px;
21
21
  position: relative;
22
22
 
23
- .close-click {
24
- position: absolute;
25
- right: 10px;
26
- top: 10px;
27
- }
28
-
29
23
  .prepare-starting-dialog-header {
30
24
  display: flex;
31
- justify-self: center;
32
- flex-direction: column;
25
+ justify-content: space-between;
33
26
  align-items: center;
34
- margin-bottom: 30px;
35
- text-align: center;
36
- max-width: 500px;
27
+ margin-bottom: 25px;
37
28
 
38
29
  .header-icon {
39
- margin: 0 0 15px;
40
- @include cfg.default-icon(var(--co-inphoto-icon-header), var(--co-inphoto-icon-header), var(--co-inphoto-accent-color));
30
+ width: 50px;
31
+ height: 50px;
32
+ display: flex;
33
+ justify-content: space-around;
34
+ align-items: center;
35
+ border-radius: 50%;
41
36
  }
42
37
 
43
- .header-text {
44
- @include cfg.header-text;
38
+ .header-info {
39
+ max-width: 500px;
45
40
  }
46
41
 
47
- .explain-text {
48
- @include cfg.sub-header-light();
42
+ .header-button {
43
+ .co-button {
44
+ display: flex;
45
+ box-sizing: border-box;
46
+ cursor: pointer;
47
+ }
49
48
  }
50
49
  }
51
50
 
52
51
  .dialog-container {
53
52
  display: grid;
54
53
  grid-gap: 15px;
55
- grid-template-columns: repeat(2, minmax(100px, .5fr));
54
+ grid-template-columns: repeat(3, minmax(100px, .5fr));
56
55
 
57
56
  .button-container {
58
- border-radius: var(--co-inphoto-border-radius);
59
- background: #fff;
60
- border: 1px solid var(--co-inphoto-border-color);
61
- box-sizing: border-box;
62
- padding: 15px 15px 25px;
63
- text-align: center;
64
57
  cursor: pointer;
58
+ position: relative;
65
59
 
66
60
  .image-container {
67
61
  min-width: 100%;
68
62
  min-height: 200px;
63
+ max-height: 250px;
69
64
  display: flex;
70
65
  align-items: center;
71
66
  align-content: center;
72
- text-align: center;
73
- background: #eee;
74
- border-right: 5px;
75
-
76
- img {
77
- width: 100%;
78
- height: 100%;
79
- object-fit: contain;
80
- border-radius: 5px;
81
- }
82
67
  }
83
68
 
84
69
  .button-container-text-container {
85
70
  box-sizing: border-box;
86
- padding: 0 10px;
87
71
 
88
- .tile-head {
89
- @include cfg.sub-header-text();
72
+ .tile-head-new-container {
90
73
  margin-bottom: 10px;
91
74
  }
92
75
 
93
- .tile-text {
94
- @include cfg.text();
76
+ .tile-next-icon {
77
+ width: 45px;
78
+ height: 45px;
79
+ display: flex;
80
+ align-items: center;
81
+ position: absolute;
82
+ bottom: 8px;
83
+ right: 8px;
84
+
85
+ .co-icon {
86
+ flex: 1;
87
+ }
95
88
  }
96
89
  }
97
-
98
-
99
- &:hover {
100
- border-color: var(--co-inphoto-accent-color);
101
- }
102
90
  }
103
91
  }
104
92
 
105
- .prepare-starting-image-button-container {
106
- margin-top: 25px;
107
-
108
- .inphoto-cancel-button {
109
- display: block;
110
- box-sizing: border-box;
111
- max-width: 230px;
112
- text-align: center;
113
- margin: 10px auto;
114
- cursor: pointer;
115
- background-color: var(--co-inphoto-button-background);
116
- color: var(--co-inphoto-button-color);
117
- font-size: var(--co-inphoto-button-font-size);
118
- border: var(--co-inphoto-button-border);
119
- border-radius: var(--co-inphoto-action-button-radius);
120
- padding: 10px 15px;
121
- }
93
+ .prepare-image-disclaimer {
94
+ display: flex;
95
+ gap: 10px;
96
+ align-items: center;
97
+ justify-content: center;
98
+ box-sizing: border-box;
122
99
  }
123
100
  }
124
101
  }
@@ -1,5 +1,3 @@
1
1
  :root {
2
- --co-inphoto-make-selection-button-background: #17953a;
3
- --co-inphoto-make-selection-button-border-color: #17953a;
4
- --co-inphoto-make-selection-button-hover-background: #158a36;
2
+ --co-inphoto-tile-next-background: #EFEEEE;
5
3
  }
@@ -2,7 +2,125 @@
2
2
 
3
3
  @include cfg.export-module('co-prepare-starting-image-theme') {
4
4
  .co-prepare-starting-image {
5
+ .prepare-starting-image-container {
5
6
 
7
+ .prepare-starting-image-dialog {
8
+ background: var(--co-inphoto-dialog-background-color);
9
+ border-radius: var(--co-inphoto-border-radius);
10
+
11
+ .prepare-starting-dialog-header {
12
+ text-align: center;
13
+
14
+ .header-icon {
15
+ background: #FFF7ED;
16
+ color: #D29428;
17
+ @include cfg.default-icon(var(--co-inphoto-icon-size-large), var(--co-inphoto-icon-size-large), #D29428);
18
+ }
19
+
20
+ .header-info {
21
+
22
+ .header-text {
23
+ @include cfg.header-text();
24
+ }
25
+
26
+ .explain-text {
27
+ @include cfg.text();
28
+ }
29
+ }
30
+
31
+ .header-button {
32
+ .co-button {
33
+ @include cfg.action-button(
34
+ var(--co-inphoto-button-background),
35
+ var(--co-inphoto-button-background),
36
+ var(--co-inphoto-button-color),
37
+ var(--co-inphoto-button-font-size),
38
+ var(--co-inphoto-button-icon-size),
39
+ var(--co-inphoto-button-icon-color),
40
+ var(--co-inphoto-button-border),
41
+ var(--co-inphoto-button-radius),
42
+ var(--co-inphoto-button-padding)
43
+ );
44
+
45
+ .label {
46
+ margin-left: 15px;
47
+ font-weight: bold;
48
+ }
49
+ }
50
+ }
51
+ }
52
+
53
+ .dialog-container {
54
+ display: grid;
55
+ grid-gap: 15px;
56
+ grid-template-columns: repeat(3, minmax(100px, .5fr));
57
+
58
+ .button-container {
59
+ border-radius: var(--co-inphoto-border-radius);
60
+ background: var(--co-inphoto-background-white);
61
+ border: 1px solid var(--co-inphoto-border-color);
62
+ box-shadow: var(--co-inphoto-dialog-box-shadow);
63
+ box-sizing: border-box;
64
+ padding: 8px 8px 25px;
65
+
66
+ .image-container {
67
+ border-radius: var(--co-inphoto-border-radius);
68
+
69
+ img {
70
+ width: 100%;
71
+ height: 100%;
72
+ object-fit: contain;
73
+ border-radius: var(--co-inphoto-border-radius);
74
+ }
75
+ }
76
+
77
+ .button-container-text-container {
78
+ padding: 16px 8px 40px;
79
+
80
+ .tile-head {
81
+ @include cfg.sub-header-text();
82
+ margin-bottom: 10px;
83
+ }
84
+
85
+ .tile-text {
86
+ @include cfg.text();
87
+ }
88
+
89
+ .tile-head-new-container {
90
+
91
+ .text-head-new {
92
+ margin-left: 10px;
93
+ box-sizing: border-box;
94
+ padding: 4px 12px;
95
+ border-radius: var(--co-inphoto-border-radius);
96
+ background: var(--co-inphoto-header-icon-background);
97
+ color: var(--co-inphoto-success-color);
98
+ font-size: var(--co-inphoto-font-size-label);
99
+ font-weight: bold;
100
+ }
101
+ }
102
+
103
+ .tile-next-icon {
104
+ border-radius: 50%;
105
+ background: var(--co-inphoto-dialog-background-color);
106
+ @include cfg.default-icon(var(--co-inphoto-icon-size), var(--co-inphoto-icon-size), var(--co-inphoto-accent-text));
107
+ }
108
+ }
109
+
110
+ &:hover {
111
+ border-color: var(--co-inphoto-accent-color);
112
+ }
113
+ }
114
+ }
115
+
116
+ .prepare-image-disclaimer {
117
+ margin-top: 20px;
118
+ @include cfg.text();
119
+ color: var(--co-inphoto-accent-text);
120
+ @include cfg.default-icon(var(--co-inphoto-icon-size), var(--co-inphoto-icon-size), var(--co-inphoto-accent-text));
121
+ }
122
+ }
123
+ }
6
124
  }
7
125
  }
8
126
 
@@ -16,10 +16,8 @@
16
16
  display: flex;
17
17
  flex-direction: column;
18
18
  align-items: center;
19
- width: 550px;
20
- padding: 45px;
21
- border-radius: var(--co-inphoto-border-radius);
22
- background: var(--co-inphoto-dialog-background-color);
19
+ width: 375px;
20
+ padding: 25px;
23
21
 
24
22
  .loading-icon {
25
23
  width: 100px;
@@ -28,8 +26,8 @@
28
26
  justify-content: space-around;
29
27
  align-items: center;
30
28
  border-radius: 50%;
31
- background: var(--co-inphoto-header-icon-background);
32
- @include cfg.default-icon(60px, 60px, var(--co-inphoto-success-color));
29
+ box-sizing: border-box;
30
+ padding: 15px;
33
31
  }
34
32
 
35
33
  .loading-text-carousel {
@@ -58,8 +56,31 @@
58
56
  justify-content: center;
59
57
  text-align: center;
60
58
  white-space: normal;
61
- font-size: var(--co-inphoto-font-size-head);
62
- font-weight: bold;
59
+ @include cfg.sub-header-text();
60
+
61
+ &::before {
62
+ content: '';
63
+ flex: none;
64
+ width: 1.5em;
65
+ }
66
+ }
67
+
68
+ .lt-dots {
69
+ display: inline-flex;
70
+ flex: none;
71
+ width: 1.5em;
72
+
73
+ span {
74
+ animation: drop 1.4s ease-in-out infinite;
75
+
76
+ &:nth-child(2) {
77
+ animation-delay: 0.15s;
78
+ }
79
+
80
+ &:nth-child(3) {
81
+ animation-delay: 0.30s;
82
+ }
83
+ }
63
84
  }
64
85
  }
65
86
 
@@ -1,3 +1,6 @@
1
1
  :root {
2
2
 
3
+ --co-inphoto-loader-icon-size: 220px;
4
+ --co-inphoto-loader-pulse-duration: 2.4s;
5
+ --co-inphoto-loader-twinkle-duration: 1.6s;
3
6
  }
@@ -8,7 +8,93 @@
8
8
  }
9
9
 
10
10
  .loader-container {
11
- background: #fff;
11
+ border-radius: var(--co-inphoto-border-radius);
12
+ background: var(--co-inphoto-dialog-background-color);
13
+ }
14
+
15
+ .loading-icon {
16
+ background: var(--co-inphoto-header-icon-background);
17
+ animation: wrap-pulse 2.4s ease-in-out infinite;
18
+
19
+ svg {
20
+ width: 100%;
21
+ height: 100%;
22
+ overflow: visible;
23
+ }
24
+
25
+ .spark {
26
+ fill: var(--co-inphoto-success-color);
27
+ transform-box: fill-box;
28
+ transform-origin: center;
29
+ transform-style: preserve-3d;
30
+
31
+ &--big {
32
+ animation: pulse var(--co-inphoto-loader-pulse-duration) ease-in-out infinite;
33
+ }
34
+
35
+ &--small-a {
36
+ animation: twinkle var(--co-inphoto-loader-twinkle-duration) ease-in-out infinite;
37
+ animation-delay: 0.3s;
38
+ }
39
+
40
+ &--small-b {
41
+ animation: twinkle var(--co-inphoto-loader-twinkle-duration) ease-in-out infinite;
42
+ animation-delay: 0.9s;
43
+ }
44
+ }
45
+ }
46
+
47
+ @keyframes wrap-pulse {
48
+ 0% {
49
+ box-shadow: 0 0 0 0 rgba(222, 241, 221, 0.7);
50
+ }
51
+ 70% {
52
+ box-shadow: 0 0 0 20px rgba(222, 241, 221, 0);
53
+ }
54
+ 100% {
55
+ box-shadow: 0 0 0 0 rgba(222, 241, 221, 0);
56
+ }
57
+ }
58
+
59
+ @keyframes pulse {
60
+ 0%, 100% {
61
+ transform: scale(1) rotate(0deg);
62
+ opacity: 1;
63
+ }
64
+ 50% {
65
+ transform: scale(1.12) rotate(8deg);
66
+ opacity: 0.85;
67
+ }
68
+ }
69
+
70
+ @keyframes twinkle {
71
+ 0%, 100% {
72
+ transform: scale(0.5);
73
+ opacity: 0.25;
74
+ }
75
+ 50% {
76
+ transform: scale(1.15);
77
+ opacity: 1;
78
+ }
79
+ }
80
+
81
+ @keyframes drop {
82
+ 0% {
83
+ transform: translateY(-0.6em);
84
+ opacity: 0;
85
+ }
86
+ 20% {
87
+ transform: translateY(0);
88
+ opacity: 1;
89
+ }
90
+ 80% {
91
+ transform: translateY(0);
92
+ opacity: 1;
93
+ }
94
+ 100% {
95
+ transform: translateY(-0.6em);
96
+ opacity: 0;
97
+ }
12
98
  }
13
99
  }
14
100
  }
@@ -13,6 +13,7 @@
13
13
  --co-inphoto-background-white: #ffffff;
14
14
  --co-inphoto-border-color: #D9D9DF;
15
15
  --co-inphoto-header-icon-background: #DEF1DD;
16
+ --co-inphoto-dialog-box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
16
17
 
17
18
  /* Icon */
18
19
  --co-inphoto-icon-color: #000;
@@ -25,10 +26,10 @@
25
26
  /* Text related stuff */
26
27
 
27
28
  /** Main head **/
28
- --co-inphoto-font-size-label: 12px;
29
- --co-inphoto-font-size-text: 15px;
30
- --co-inphoto-font-size-sub-head: 18px;
31
- --co-inphoto-font-size-head: 24px;
29
+ --co-inphoto-font-size-label: 10px;
30
+ --co-inphoto-font-size-text: 12px;
31
+ --co-inphoto-font-size-sub-head: 14px;
32
+ --co-inphoto-font-size-head: 16px;
32
33
  --co-inphoto-color-dark: #000000;
33
34
  --co-inphoto-accent-text: #64748B;
34
35
  --co-inphoto-color-light: #ffffff;
@@ -36,8 +37,8 @@
36
37
  /* Buttons related stuff */
37
38
 
38
39
  --co-inphoto-button-background: #fff;
39
- --co-inphoto-button-color: #6B7280;
40
- --co-inphoto-button-font-size: 16px;
40
+ --co-inphoto-button-color: #172121;
41
+ --co-inphoto-button-font-size: 12px;
41
42
  --co-inphoto-button-icon-size: 24px;
42
43
  --co-inphoto-button-icon-color: #333;
43
44
  --co-inphoto-button-border: 1px solid #ECEDEE;
@@ -51,7 +52,7 @@
51
52
 
52
53
  --co-inphoto-action-button-background: #D29428;
53
54
  --co-inphoto-action-button-color: #fff;
54
- --co-inphoto-action-button-font-size: 15px;
55
+ --co-inphoto-action-button-font-size: 12px;
55
56
  --co-inphoto-action-button-icon-size: 24px;
56
57
  --co-inphoto-action-button-icon-color: #fff;
57
58
  --co-inphoto-action-button-border: 2px solid #D29428;
@@ -60,7 +61,7 @@
60
61
 
61
62
  --co-inphoto-cancel-button-border-color: #ccc;
62
63
 
63
- --co-inphoto-loader-background-dark: rgba(0, 0, 0, 0.5);
64
+ --co-inphoto-loader-background-dark: rgba(0, 0, 0, 0.8);
64
65
  --co-inphoto-loader-background-light: rgba(255, 255, 255, 0.5);
65
66
 
66
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/inphoto",
3
- "version": "300.1.1",
3
+ "version": "300.1.2",
4
4
  "description": "Colijn IT inphoto module for Angular 20",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",