@colijnit/inphoto 300.1.2 → 300.1.4

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 (58) hide show
  1. package/assets/inphoto-add-products.jpg +0 -0
  2. package/fesm2022/colijnit-inphoto.mjs +987 -804
  3. package/fesm2022/colijnit-inphoto.mjs.map +1 -1
  4. package/icons/arrow_down_solid_full.svg +1 -0
  5. package/icons/minus_solid_full.svg +1 -0
  6. package/icons/plus_solid_full.svg +1 -0
  7. package/index.d.ts +120 -54
  8. package/lib/component/ai-prompt/style/_layout.scss +1 -37
  9. package/lib/component/ai-prompt/style/_material-definition.scss +3 -1
  10. package/lib/component/ai-prompt/style/_theme.scss +60 -1
  11. package/lib/component/canvas-tool-bar/style/_layout.scss +20 -21
  12. package/lib/component/catalog/style/_layout.scss +1 -1
  13. package/lib/component/catalog/style/_theme.scss +8 -0
  14. package/lib/component/edit-canvas/style/_layout.scss +53 -4
  15. package/lib/component/edit-canvas/style/_theme.scss +4 -0
  16. package/lib/component/header/style/_layout.scss +24 -0
  17. package/lib/component/header/style/_material-definition.scss +3 -0
  18. package/lib/component/header/style/_theme.scss +20 -0
  19. package/lib/component/image-enhancer/style/_layout.scss +0 -61
  20. package/lib/component/image-enhancer/style/_theme.scss +14 -7
  21. package/lib/component/image-history/style/_layout.scss +3 -14
  22. package/lib/component/image-history/style/_theme.scss +19 -1
  23. package/lib/component/image-history-tile/style/_layout.scss +0 -11
  24. package/lib/component/image-history-tile/style/_theme.scss +9 -12
  25. package/lib/component/image-process-complete/style/_layout.scss +37 -29
  26. package/lib/component/image-process-complete/style/_material-definition.scss +2 -0
  27. package/lib/component/image-process-complete/style/_theme.scss +25 -46
  28. package/lib/component/image-tile/components/color-palette-option/style/_layout.scss +2 -2
  29. package/lib/component/image-tile/style/_layout.scss +26 -23
  30. package/lib/component/image-tile/style/_theme.scss +45 -0
  31. package/lib/component/photo-editor/style/_layout.scss +16 -2
  32. package/lib/component/prepare-starting-image/style/_layout.scss +29 -74
  33. package/lib/component/prepare-starting-image/style/_material-definition.scss +1 -0
  34. package/lib/component/prepare-starting-image/style/_theme.scss +20 -93
  35. package/lib/component/ready-to-add-articles/style/_layout.scss +6 -1
  36. package/lib/component/ready-to-add-articles/style/_theme.scss +3 -3
  37. package/lib/component/scene-context-menu/style/_layout.scss +0 -22
  38. package/lib/component/scene-context-menu/style/_material-definition.scss +2 -1
  39. package/lib/component/scene-context-menu/style/_theme.scss +36 -0
  40. package/lib/component/segment-inpaint/style/_layout.scss +26 -29
  41. package/lib/component/segment-inpaint/style/_theme.scss +33 -0
  42. package/lib/component/step-tile/style/_layout.scss +57 -0
  43. package/lib/component/step-tile/style/_material-definition.scss +2 -0
  44. package/lib/component/step-tile/style/_theme.scss +89 -0
  45. package/lib/component/threed-to-ai/style/_layout.scss +0 -19
  46. package/lib/component/threed-to-ai/style/_theme.scss +24 -0
  47. package/lib/component/threedscene/style/_layout.scss +17 -3
  48. package/lib/style/_variables.scss +1 -0
  49. package/lib/style/inphoto-globals.scss +1 -0
  50. package/package.json +1 -1
  51. package/lib/component/image-process-complete/components/image-process-complete-next/style/_layout.scss +0 -45
  52. package/lib/component/image-process-complete/components/image-process-complete-next/style/_material-definition.scss +0 -3
  53. package/lib/component/image-process-complete/components/image-process-complete-next/style/_theme.scss +0 -10
  54. package/lib/component/segment-inpaint/components/inpaint-info-card/style/_layout.scss +0 -49
  55. package/lib/component/segment-inpaint/components/inpaint-info-card/style/_material-definition.scss +0 -3
  56. package/lib/component/segment-inpaint/components/inpaint-info-card/style/_theme.scss +0 -10
  57. /package/lib/component/{image-process-complete/components/image-process-complete-next → header}/style/material.scss +0 -0
  58. /package/lib/component/{segment-inpaint/components/inpaint-info-card → step-tile}/style/material.scss +0 -0
@@ -3,7 +3,7 @@
3
3
  @include cfg.export-module('cco-catalog-layout') {
4
4
  .co-catalog {
5
5
  .catalog-dialog {
6
- z-index: 1;
6
+ z-index: 100;
7
7
  top: 0;
8
8
  left: 85px;
9
9
  right: 0;
@@ -14,10 +14,18 @@
14
14
 
15
15
  .back-button {
16
16
  align-items: center;
17
+ background: none;
18
+ box-shadow: none;
19
+ @include cfg.text();
20
+ @include cfg.default-icon(var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-color));
17
21
  }
18
22
 
19
23
  .close-button {
20
24
  margin-left: auto;
25
+ background: none;
26
+ align-items: center;
27
+ box-shadow: none;
28
+ @include cfg.default-icon(var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-color));
21
29
  }
22
30
  }
23
31
 
@@ -4,17 +4,23 @@
4
4
  .co-edit-canvas {
5
5
  .edit-canvas-container {
6
6
  position: relative;
7
- width: 100vw;
7
+ width: 70vw;
8
8
  height: 100vh;
9
9
 
10
10
  .canvas-container {
11
11
  position: relative;
12
- width: 100%;
12
+ width: 70vw;
13
13
  height: 100%;
14
+ display: flex;
15
+ align-items: center;
16
+ align-self: center;
17
+ min-width: 70vw;
18
+ justify-content: space-around;
19
+ min-height: 100vh;
14
20
 
15
21
  canvas {
16
- width: 100%;
17
- height: 100%;
22
+ max-width: 70vw;
23
+ max-height: 100%;
18
24
  display: block;
19
25
  }
20
26
 
@@ -54,6 +60,49 @@
54
60
  max-height: 100%;
55
61
  }
56
62
  }
63
+
64
+ // Zoom
65
+ .canvas-zoom-control {
66
+ position: absolute;
67
+ display: none; // should be flex, but hide it for now
68
+ justify-content: space-around;
69
+ align-items: center;
70
+ box-sizing: border-box;
71
+ padding: 8px;
72
+ border-radius: var(--co-inphoto-border-radius);
73
+ bottom: 25px;
74
+ left: 100px;
75
+ background: var(--co-inphoto-dialog-background-color);
76
+
77
+ .zoom-input-wrapper {
78
+ .co-input-text {
79
+ @include cfg.text();
80
+
81
+ }
82
+ .co-input-text:not(.no-style) {
83
+ input {
84
+ text-align: center;
85
+ align-self: center;
86
+ padding: 0;
87
+ }
88
+ }
89
+ }
90
+
91
+ .co-button {
92
+ @include cfg.action-button(
93
+ var(--co-inphoto-button-background),
94
+ var(--co-inphoto-button-background),
95
+ var(--co-inphoto-button-color),
96
+ var(--co-inphoto-icon-size-small),
97
+ var(--co-inphoto-button-icon-size),
98
+ var(--co-inphoto-button-icon-color),
99
+ var(--co-inphoto-button-border),
100
+ var(--co-inphoto-button-radius),
101
+ 0);
102
+
103
+ height: 40px;
104
+ }
105
+ }
57
106
  }
58
107
  }
59
108
  }
@@ -3,6 +3,10 @@
3
3
  @include cfg.export-module('co-edit-canvas-theme') {
4
4
  .co-edit-canvas {
5
5
 
6
+ .canvas-container {
7
+ background: var(--co-inphoto-background-white);
8
+ }
9
+
6
10
  }
7
11
  }
8
12
 
@@ -0,0 +1,24 @@
1
+ @use '../../../style' as cfg;
2
+
3
+ @include cfg.export-module('co-header-layout') {
4
+ .co-header {
5
+
6
+ .header-container {
7
+ display: flex;
8
+ justify-content: space-between;
9
+ box-sizing: border-box;
10
+
11
+ padding: 45px 0 50px;
12
+
13
+ .header-icon {
14
+ width: 50px;
15
+ height: 50px;
16
+ display: flex;
17
+ justify-content: space-around;
18
+ align-items: center;
19
+ border-radius: 50%;
20
+ margin-right: 15px;
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,20 @@
1
+ @use '../../../style' as cfg;
2
+
3
+ @include cfg.export-module('co-header-theme') {
4
+ .co-header {
5
+ .header-container {
6
+ .header-info {
7
+ .header-text {
8
+ @include cfg.header-text();
9
+ }
10
+
11
+ .explain-text {
12
+ @include cfg.text();
13
+ }
14
+ }
15
+ }
16
+ }
17
+ }
18
+
19
+
20
+
@@ -3,18 +3,6 @@
3
3
  @include cfg.export-module('co-image-enhancer-layout') {
4
4
  .co-image-enhancer {
5
5
  .image-enhancer-container {
6
- min-height: 0;
7
- max-height: 90vh;
8
- overflow-y: scroll;
9
- scroll-behavior: smooth;
10
- scrollbar-width: none;
11
- -ms-overflow-style: none;
12
- transition: max-height 0.5s;
13
-
14
- &::-webkit-scrollbar {
15
- display: none;
16
- }
17
-
18
6
  .tabs {
19
7
  align-items: center;
20
8
  display: grid;
@@ -37,59 +25,10 @@
37
25
  max-height: 55px;
38
26
  }
39
27
 
40
-
41
28
  .image-enhancer-header {
42
29
  display: flex;
43
30
  justify-content: space-between;
44
31
  gap: 20px;
45
-
46
- .drag-indicator-icon {
47
- border-radius: var(--co-inphoto-border-radius);
48
- background: var(--co-inphoto-background-white);
49
- box-sizing: border-box;
50
- padding: 10px;
51
- cursor: grab;
52
-
53
- &:active {
54
- cursor: grabbing;
55
- }
56
-
57
- }
58
-
59
- .collapse-menu {
60
- border-radius: var(--co-inphoto-border-radius);
61
- background: var(--co-inphoto-background-white);
62
- box-sizing: border-box;
63
- padding: 10px;
64
- cursor: pointer;
65
- display: grid;
66
-
67
- .collapse-menu-item {
68
- grid-area: 1 / 1;
69
- opacity: 0;
70
- pointer-events: none;
71
- transition: opacity 0.2s ease;
72
-
73
- .collapse-menu-open, .collapse-close-open {
74
- display: flex;
75
- justify-content: space-between;
76
- align-items: center;
77
-
78
- .collapse-menu-text {
79
- @include cfg.text();
80
- }
81
-
82
- @include cfg.default-icon(var(--co-inphoto-icon-size), var(--co-inphoto-icon-size), var(--co-inphoto-icon-color));
83
- }
84
- }
85
-
86
- .collapse-menu-active {
87
- opacity: 1;
88
- pointer-events: auto;
89
- }
90
- }
91
-
92
32
  }
93
-
94
33
  }
95
34
  }
@@ -3,15 +3,21 @@
3
3
  @include cfg.export-module('co-image-enhancer-theme') {
4
4
  .co-image-enhancer {
5
5
  .enhancer-container {
6
- background: rgba(255, 255, 255, 0.9);
7
- position: fixed;
8
- top: 20px;
9
- right: 20px;
10
- width: 30%;
11
- max-width: 30%;
6
+ background: var(--co-inphoto-dialog-background-color);
7
+ height: 100vh;
12
8
  box-sizing: border-box;
13
9
  padding: 20px;
14
- border-radius: var(--co-inphoto-border-radius);
10
+ min-height: 0;
11
+ max-height: 99vh;
12
+ overflow-y: scroll;
13
+ scroll-behavior: smooth;
14
+ scrollbar-width: none;
15
+ -ms-overflow-style: none;
16
+ transition: max-height 0.5s;
17
+
18
+ &::-webkit-scrollbar {
19
+ display: none;
20
+ }
15
21
  }
16
22
 
17
23
 
@@ -33,6 +39,7 @@
33
39
 
34
40
  .tab-button {
35
41
  background: none;
42
+ border-radius: 0;
36
43
  @include cfg.sub-header-text();
37
44
  border-bottom: 2px solid transparent;
38
45
  font-weight: bold;
@@ -13,7 +13,7 @@
13
13
  position: relative;
14
14
  display: flex;
15
15
  align-items: center;
16
- width: 675px;
16
+ max-width: 675px;
17
17
  }
18
18
 
19
19
  .image-history-tiles {
@@ -70,9 +70,7 @@
70
70
 
71
71
  .close-dialog-button, .dialog-prev-button, .dialog-next-button {
72
72
  position: absolute;
73
-
74
73
  cursor: pointer;
75
- background: var(--co-inphoto-loader-background-dark);
76
74
  width: 30px;
77
75
  height: 30px;
78
76
  border-radius: 50%;
@@ -83,8 +81,6 @@
83
81
  .co-icon {
84
82
  flex: 1
85
83
  }
86
-
87
- @include cfg.default-icon(var(--co-inphoto-icon-size), var(--co-inphoto-icon-size), var(--co-inphoto-icon-color-light));
88
84
  }
89
85
 
90
86
  .close-dialog-button {
@@ -114,24 +110,17 @@
114
110
  cursor: pointer;
115
111
  box-sizing: border-box;
116
112
  padding: 8px 15px;
117
- background: var(--co-inphoto-loader-background-dark);
118
- color: var(--co-inphoto-color-light);
119
- border-radius: var(--co-inphoto-border-radius);
120
- font-size: var(--co-inphoto-font-size-label);
121
113
 
122
114
  .label {
123
115
  margin-left: 10px;
124
116
  }
125
-
126
- @include cfg.default-icon(var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-color-light));
127
117
  }
128
118
  }
129
119
  }
130
120
 
131
-
132
121
  .large-image {
133
- max-width: 100%;
134
- max-height: 100%;
122
+ max-width: 100vw;
123
+ max-height: 90vh;
135
124
  object-fit: contain;
136
125
  border-radius: var(--co-inphoto-border-radius);
137
126
  }
@@ -13,13 +13,31 @@
13
13
  }
14
14
 
15
15
  .scroll-btn {
16
- background: #ffffff;
16
+ background: var(--co-inphoto-background-white);
17
17
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
18
18
  @include cfg.default-icon(var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-color));
19
19
  }
20
20
 
21
21
  .larger-image-dialog {
22
22
  background: var(--co-inphoto-loader-background-dark);
23
+
24
+ .dialog-container {
25
+ .close-dialog-button, .dialog-prev-button, .dialog-next-button {
26
+ background: var(--co-inphoto-loader-background-dark);
27
+ @include cfg.default-icon(var(--co-inphoto-icon-size), var(--co-inphoto-icon-size), var(--co-inphoto-icon-color-light));
28
+ }
29
+
30
+ .dialog-toolbar {
31
+ .co-button {
32
+ background: var(--co-inphoto-loader-background-dark);
33
+ color: var(--co-inphoto-color-light);
34
+ border-radius: var(--co-inphoto-border-radius);
35
+ font-size: var(--co-inphoto-font-size-label);
36
+
37
+ @include cfg.default-icon(var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-color-light));
38
+ }
39
+ }
40
+ }
23
41
  }
24
42
  }
25
43
  }
@@ -28,13 +28,9 @@
28
28
  width: 26px;
29
29
  height: 26px;
30
30
  border-radius: 50%;
31
- color: #ffffff;
32
- background: rgba(0, 0, 0, 0.55);
33
31
  opacity: 0;
34
32
  transition: opacity 0.15s ease;
35
33
  z-index: 1;
36
-
37
- @include cfg.default-icon(20px, 20px, #fff);
38
34
  }
39
35
 
40
36
  &:hover .tile-action {
@@ -55,13 +51,6 @@
55
51
  bottom: 6px;
56
52
  right: 6px;
57
53
  }
58
-
59
- &--selected {
60
- .tile-action-select {
61
- opacity: 1;
62
- background: #f5a623;
63
- }
64
- }
65
54
  }
66
55
  }
67
56
  }
@@ -4,19 +4,16 @@
4
4
 
5
5
  .co-image-history-tile {
6
6
  .image-history-item {
7
- .image-history-hover {
8
- background-color: var(--co-inphoto-loader-background-dark);
9
-
10
- .co-button {
11
- background: none;
12
- }
13
-
14
- .image-history-item-zoom {
15
- @include cfg.default-icon(40px, 40px, #fff)
16
- }
7
+ .tile-action {
8
+ color: var(--co-inphoto-background-white);
9
+ background: var(--co-inphoto-loader-background-light);
10
+ @include cfg.default-icon(var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-color-light));
11
+ }
17
12
 
18
- .tile-toolbar {
19
- @include cfg.default-icon(40px, 40px, #fff);
13
+ &--selected {
14
+ .tile-action-select {
15
+ opacity: 1;
16
+ background: var(--co-inphoto-accent-color);
20
17
  }
21
18
  }
22
19
  }
@@ -2,55 +2,63 @@
2
2
 
3
3
  @include cfg.export-module('co-image-process-complete-layout') {
4
4
  .co-image-process-complete {
5
+
5
6
  .image-process-complete {
6
- background-size: contain;
7
7
  display: flex;
8
- justify-content: space-around;
9
- align-items: center;
10
8
  width: 100%;
11
9
  height: 100%;
12
10
  min-height: 100vh;
13
- background-repeat: no-repeat;
14
- background-position: center;
11
+
12
+ .image-process-preview {
13
+ width: 70vw;
14
+ height: 100vh;
15
+ background-size: contain;
16
+ background-repeat: no-repeat;
17
+ background-position: center;
18
+ }
15
19
  }
16
20
 
17
21
  .image-process-complete-dialog {
18
- position: absolute;
19
22
  width: 100%;
20
- max-width: 980px;
21
- top: 20%;
22
- left: calc(50% - 490px);
23
+ max-width: 30vw;
23
24
  box-sizing: border-box;
24
- z-index: 10;
25
+ position: relative;
26
+ border-radius: var(--co-inphoto-border-radius);
27
+ padding: 35px 25px;
25
28
 
26
29
  .image-process-complete-dialog-header {
27
- display: flex;
28
- align-items: center;
29
-
30
30
  .header-icon {
31
- width: 40px;
32
- height: 40px;
33
- display: flex;
34
- justify-content: space-around;
35
- align-items: center;
36
- border-radius: 50%;
37
- }
38
-
39
- .header-button {
40
- .co-button {
41
- display: flex;
42
- box-sizing: border-box;
43
- cursor: pointer;
44
- }
31
+ width: 95px;
45
32
  }
46
33
  }
47
34
 
48
35
  .image-process-complete-dialog-body {
49
36
  display: flex;
50
- justify-content: space-between;
51
- align-items: center;
37
+ flex-direction: column;
52
38
  gap: 20px;
53
39
  }
54
40
  }
41
+
42
+ .prepare-image-disclaimer {
43
+ display: flex;
44
+ gap: 10px;
45
+ align-items: center;
46
+ justify-content: center;
47
+ box-sizing: border-box;
48
+ margin-top: 20px;
49
+ }
50
+
51
+ .restart-button-container {
52
+ box-sizing: border-box;
53
+ padding: 20px 0 0;
54
+ margin-top: 20px;
55
+
56
+
57
+ .co-button {
58
+ display: flex;
59
+ box-sizing: border-box;
60
+ cursor: pointer;
61
+ }
62
+ }
55
63
  }
56
64
  }
@@ -1,3 +1,5 @@
1
1
  :root {
2
+ --co-inphoto-process-complete-icon-color: #7274FD;
3
+ --co-inphoto-process-complete-icon-background: #EDEDF9;
2
4
 
3
5
  }
@@ -2,64 +2,43 @@
2
2
 
3
3
  @include cfg.export-module('co-image-process-complete-theme') {
4
4
  .co-image-process-complete {
5
-
6
5
  .image-process-complete-dialog {
7
6
  background: var(--co-inphoto-dialog-background-color);
8
- border-radius: var(--co-inphoto-border-radius);
9
- padding: 15px 25px 25px;
10
-
11
7
 
12
8
  .image-process-complete-dialog-header {
13
- margin-bottom: 25px;
14
-
15
9
  .header-icon {
16
- background: var(--co-inphoto-header-icon-background);
17
- color: var(--co-inphoto-success-color);
18
- margin-right: 25px;
19
- height: 50px;
20
- width: 50px;
21
- display: flex;
22
- justify-content: space-around;
23
- align-items: center;
24
- border-radius: 50%;
25
- @include cfg.default-icon(var(--co-inphoto-icon-size-large), var(--co-inphoto-icon-size-large), var(--co-inphoto-success-color));
26
- }
27
-
28
- .header-info {
29
- .header-text {
30
- @include cfg.header-text();
31
- }
32
-
33
- .explain-text {
34
- @include cfg.text();
35
- }
10
+ background: var(--co-inphoto-process-complete-icon-background);
11
+ color: var(--co-inphoto-process-complete-icon-color);
12
+ @include cfg.default-icon(var(--co-inphoto-icon-size-large), var(--co-inphoto-icon-size-large), var(--co-inphoto-process-complete-icon-color));
36
13
  }
14
+ }
15
+ }
37
16
 
38
- .header-button {
39
- margin-left: auto;
40
-
41
- .co-button {
42
- @include cfg.action-button(
43
- var(--co-inphoto-button-background),
44
- var(--co-inphoto-button-background),
45
- var(--co-inphoto-button-color),
46
- var(--co-inphoto-button-font-size),
47
- var(--co-inphoto-button-icon-size),
48
- var(--co-inphoto-button-icon-color),
49
- var(--co-inphoto-button-border),
50
- var(--co-inphoto-button-radius),
51
- var(--co-inphoto-button-padding)
52
- );
53
17
 
54
- .label {
55
- margin-left: 15px;
56
- font-weight: bold;
57
- }
58
- }
18
+ .restart-button-container {
19
+ border-top: 1px solid #eee;
20
+
21
+ .co-button {
22
+ @include cfg.action-button(
23
+ var(--co-inphoto-button-background),
24
+ var(--co-inphoto-button-background),
25
+ var(--co-inphoto-button-color),
26
+ var(--co-inphoto-button-font-size),
27
+ var(--co-inphoto-button-icon-size),
28
+ var(--co-inphoto-button-icon-color),
29
+ var(--co-inphoto-button-border),
30
+ var(--co-inphoto-button-radius),
31
+ var(--co-inphoto-button-padding)
32
+ );
33
+
34
+ .label {
35
+ margin-left: 15px;
36
+ font-weight: bold;
59
37
  }
60
38
  }
61
39
  }
62
40
  }
41
+
63
42
  }
64
43
 
65
44
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  @include cfg.export-module('co-color-palette-option-layout') {
4
4
  .color-palette-option {
5
- width: 18px;
6
- height: 18px;
5
+ width: 25px;
6
+ height: 25px;
7
7
  cursor: pointer;
8
8
  border: 2px solid;
9
9
  border-radius: 50%;