@colijnit/inphoto 301.1.0 → 301.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 (139) hide show
  1. package/assets/01-bohemian.jpg +0 -0
  2. package/assets/02-mid-century-modern.jpg +0 -0
  3. package/assets/03-rustic-farmhouse.jpg +0 -0
  4. package/assets/04-coastal-nautical.jpg +0 -0
  5. package/assets/05-art-deco.jpg +0 -0
  6. package/assets/06-eclectic.jpg +0 -0
  7. package/assets/07-japanese-zen.jpg +0 -0
  8. package/assets/08-modern.jpg +0 -0
  9. package/assets/09-contemporary.jpg +0 -0
  10. package/assets/10-minimalist.jpg +0 -0
  11. package/assets/11-scandinavian.jpg +0 -0
  12. package/assets/12-industrial.jpg +0 -0
  13. package/assets/13-traditional.jpg +0 -0
  14. package/assets/14-transitional.jpg +0 -0
  15. package/assets/how-do-want-to-edit-the-image-01.jpg +0 -0
  16. package/assets/how-do-want-to-edit-the-image-02.jpg +0 -0
  17. package/assets/how-do-want-to-edit-the-image-03.jpg +0 -0
  18. package/assets/how-do-want-to-edit-the-image-04.jpg +0 -0
  19. package/assets/how-to-redesign-with-catalog-01.jpg +0 -0
  20. package/assets/how-to-redesign-with-catalog-02.jpg +0 -0
  21. package/assets/how-to-redesign-with-catalog-03.jpg +0 -0
  22. package/assets/how-to-redesign-with-catalog-04.jpg +0 -0
  23. package/assets/how-to-redesign-with-catalog-05.jpg +0 -0
  24. package/assets/how-to-redesign-with-catalog-06.jpg +0 -0
  25. package/assets/room-01-living-room.jpg +0 -0
  26. package/assets/room-02-kitchen.jpg +0 -0
  27. package/assets/room-03-dining-room.jpg +0 -0
  28. package/assets/room-04-bathroom.jpg +0 -0
  29. package/assets/room-05-bedroom.jpg +0 -0
  30. package/assets/room-06-kids-room.jpg +0 -0
  31. package/assets/room-07-home-office.jpg +0 -0
  32. package/assets/room-08-home-bar.jpg +0 -0
  33. package/fesm2022/colijnit-inphoto.mjs +7191 -6297
  34. package/fesm2022/colijnit-inphoto.mjs.map +1 -1
  35. package/icons/angle_right_sharp_solid.svg +1 -0
  36. package/icons/camera_solid_regular.svg +1 -0
  37. package/icons/expand_regular_full.svg +1 -0
  38. package/index.d.ts +518 -342
  39. package/lib/component/ai-prompt/style/_layout.scss +12 -1
  40. package/lib/component/ai-prompt/style/_material-definition.scss +1 -3
  41. package/lib/component/ai-prompt/style/_theme.scss +1 -6
  42. package/lib/component/canvas-tool-bar/style/_layout.scss +49 -4
  43. package/lib/component/canvas-tool-bar/style/_material-definition.scss +4 -1
  44. package/lib/component/canvas-tool-bar/style/_theme.scss +3 -22
  45. package/lib/component/catalog/style/_layout.scss +68 -68
  46. package/lib/component/catalog/style/_material-definition.scss +4 -0
  47. package/lib/component/catalog/style/_theme.scss +6 -6
  48. package/lib/component/edit-canvas/style/_layout.scss +2 -1
  49. package/lib/component/edit-canvas/style/_material-definition.scss +0 -2
  50. package/lib/component/edit-canvas/style/_theme.scss +1 -2
  51. package/lib/component/error-dialog/style/_layout.scss +36 -36
  52. package/lib/component/error-dialog/style/_material-definition.scss +12 -12
  53. package/lib/component/error-dialog/style/_theme.scss +17 -17
  54. package/lib/component/header/style/_layout.scss +20 -20
  55. package/lib/component/header/style/_material-definition.scss +3 -1
  56. package/lib/component/header/style/_theme.scss +4 -1
  57. package/lib/component/image-2d-placement/style/_layout.scss +13 -0
  58. package/lib/component/image-2d-placement/style/_material-definition.scss +7 -0
  59. package/lib/component/image-2d-placement/style/_theme.scss +8 -0
  60. package/lib/component/image-enhancer/style/_layout.scss +8 -2
  61. package/lib/component/image-enhancer/style/_material-definition.scss +4 -1
  62. package/lib/component/image-enhancer/style/_theme.scss +2 -5
  63. package/lib/component/image-enhancer-style/style/_layout.scss +113 -30
  64. package/lib/component/image-enhancer-style/style/_material-definition.scss +28 -2
  65. package/lib/component/image-enhancer-style/style/_theme.scss +72 -10
  66. package/lib/component/image-enhancer-upload/style/_layout.scss +8 -3
  67. package/lib/component/image-enhancer-upload/style/_material-definition.scss +4 -4
  68. package/lib/component/image-enhancer-upload/style/_theme.scss +2 -4
  69. package/lib/component/image-history/style/_layout.scss +2 -4
  70. package/lib/component/image-history/style/_material-definition.scss +0 -2
  71. package/lib/component/image-history/style/_theme.scss +0 -5
  72. package/lib/component/image-history-tile/style/_layout.scss +2 -2
  73. package/lib/component/image-history-tile/style/_material-definition.scss +2 -0
  74. package/lib/component/image-history-tile/style/_theme.scss +32 -32
  75. package/lib/component/image-output-settings/style/_layout.scss +38 -0
  76. package/lib/component/image-output-settings/style/_material-definition.scss +8 -0
  77. package/lib/component/image-output-settings/style/_theme.scss +15 -0
  78. package/lib/component/image-overlay/style/_layout.scss +2 -1
  79. package/lib/component/image-overlay/style/_material-definition.scss +3 -0
  80. package/lib/component/image-overlay/style/_theme.scss +1 -1
  81. package/lib/component/image-overlay/style/material.scss +3 -3
  82. package/lib/component/image-tile/components/color-palette-option/style/_layout.scss +19 -15
  83. package/lib/component/image-tile/components/color-palette-option/style/_material-definition.scss +10 -9
  84. package/lib/component/image-tile/components/color-palette-option/style/_theme.scss +19 -15
  85. package/lib/component/image-tile/style/_layout.scss +24 -24
  86. package/lib/component/image-tile/style/_material-definition.scss +18 -17
  87. package/lib/component/image-tile/style/_theme.scss +9 -9
  88. package/lib/component/image-upload/style/_layout.scss +4 -0
  89. package/lib/component/image-upload/style/_material-definition.scss +35 -35
  90. package/lib/component/image-upload/style/_theme.scss +0 -4
  91. package/lib/component/marker/style/_layout.scss +0 -1
  92. package/lib/component/marker/style/_material-definition.scss +12 -12
  93. package/lib/component/marker/style/_theme.scss +1 -0
  94. package/lib/component/marker/style/material.scss +3 -3
  95. package/lib/component/photo-editor/style/_layout.scss +34 -3
  96. package/lib/component/photo-editor/style/_material-definition.scss +6 -0
  97. package/lib/component/photo-editor/style/_theme.scss +15 -0
  98. package/lib/component/prepare-starting-image/style/_layout.scss +59 -0
  99. package/lib/component/prepare-starting-image/style/_material-definition.scss +7 -1
  100. package/lib/component/prepare-starting-image/style/_theme.scss +9 -1
  101. package/lib/component/process-loader/style/_layout.scss +6 -6
  102. package/lib/component/process-loader/style/_material-definition.scss +20 -2
  103. package/lib/component/process-loader/style/_theme.scss +31 -31
  104. package/lib/component/scale-dialog/style/_layout.scss +25 -0
  105. package/lib/component/scale-dialog/style/_material-definition.scss +8 -0
  106. package/lib/component/scale-dialog/style/_theme.scss +26 -0
  107. package/lib/component/scale-dialog/style/material.scss +3 -0
  108. package/lib/component/scene-context-menu/style/_layout.scss +12 -2
  109. package/lib/component/scene-context-menu/style/_material-definition.scss +9 -4
  110. package/lib/component/scene-context-menu/style/_theme.scss +9 -4
  111. package/lib/component/segment-inpaint/style/_layout.scss +23 -1
  112. package/lib/component/segment-inpaint/style/_material-definition.scss +9 -1
  113. package/lib/component/segment-inpaint/style/_theme.scss +44 -1
  114. package/lib/component/side-bar-menu/style/_layout.scss +5 -1
  115. package/lib/component/side-bar-menu/style/_material-definition.scss +1 -0
  116. package/lib/component/side-bar-menu/style/_theme.scss +32 -32
  117. package/lib/component/side-panel/style/_layout.scss +4 -1
  118. package/lib/component/side-panel/style/_material-definition.scss +5 -4
  119. package/lib/component/side-panel/style/_theme.scss +0 -3
  120. package/lib/component/step-tile/style/_layout.scss +21 -5
  121. package/lib/component/step-tile/style/_material-definition.scss +4 -4
  122. package/lib/component/step-tile/style/_theme.scss +1 -11
  123. package/lib/component/threedscene/style/_layout.scss +15 -5
  124. package/lib/component/threedscene/style/_material-definition.scss +5 -1
  125. package/lib/component/threedscene/style/_theme.scss +38 -0
  126. package/lib/component/upload-starting-image/style/_layout.scss +58 -58
  127. package/lib/component/upload-starting-image/style/_material-definition.scss +18 -18
  128. package/lib/component/upload-starting-image/style/_theme.scss +39 -39
  129. package/lib/style/_mixin.scss +2 -7
  130. package/lib/style/_variables.scss +7 -13
  131. package/package.json +13 -4
  132. package/lib/component/configuration-side-bar-menu/style/_layout.scss +0 -33
  133. package/lib/component/configuration-side-bar-menu/style/_material-definition.scss +0 -10
  134. package/lib/component/configuration-side-bar-menu/style/_theme.scss +0 -58
  135. package/lib/component/image-process-complete/style/_layout.scss +0 -42
  136. package/lib/component/image-process-complete/style/_material-definition.scss +0 -13
  137. package/lib/component/image-process-complete/style/_theme.scss +0 -24
  138. /package/lib/component/{configuration-side-bar-menu → image-2d-placement}/style/material.scss +0 -0
  139. /package/lib/component/{image-process-complete → image-output-settings}/style/material.scss +0 -0
@@ -1,20 +1,20 @@
1
- @use '../../../style' as cfg;
2
-
3
- @include cfg.export-module('co-header-layout') {
4
- .co-header {
5
- .header-container {
6
- display: flex;
7
- justify-content: space-between;
8
- padding: var(--co-inphoto-header-padding);
9
-
10
- .header-icon {
11
- width: var(--co-inphoto-header-icon-size);
12
- height: var(--co-inphoto-header-icon-size);
13
- display: flex;
14
- justify-content: space-around;
15
- align-items: center;
16
- margin-right: var(--co-inphoto-header-icon-margin-right);
17
- }
18
- }
19
- }
20
- }
1
+ @use '../../../style' as cfg;
2
+
3
+ @include cfg.export-module('co-header-layout') {
4
+ .co-header {
5
+ .header-container {
6
+ display: flex;
7
+ justify-content: space-between;
8
+ padding: var(--co-inphoto-header-padding);
9
+
10
+ .header-icon {
11
+ width: var(--co-inphoto-header-icon-size);
12
+ height: var(--co-inphoto-header-icon-size);
13
+ display: flex;
14
+ justify-content: space-around;
15
+ align-items: center;
16
+ margin-right: var(--co-inphoto-header-icon-margin-right);
17
+ }
18
+ }
19
+ }
20
+ }
@@ -1,8 +1,10 @@
1
1
  .co-header {
2
2
  --co-inphoto-header-font-size-text: var(--co-inphoto-font-size-text);
3
3
  --co-inphoto-header-font-family: var(--co-inphoto-font-family);
4
- --co-inphoto-header-padding: 25px 0 30px;
4
+ --co-inphoto-header-padding: 0 0 15px 0;
5
5
  --co-inphoto-header-icon-size: 50px;
6
6
  --co-inphoto-header-icon-radius: 50%;
7
7
  --co-inphoto-header-icon-margin-right: 15px;
8
+ --co-inphoto-header-head-font-weight: 600;
9
+ --co-inphoto-header-head-line-height: 175%;
8
10
  }
@@ -12,7 +12,10 @@
12
12
 
13
13
  .header-info {
14
14
  .head {
15
- @include cfg.header-text();
15
+ font-size: var(--co-inphoto-font-size-extra-large);
16
+ color: var(--co-inphoto-color-dark);
17
+ font-weight: var(--co-inphoto-header-head-font-weight);
18
+ line-height: var(--co-inphoto-header-head-line-height);
16
19
  }
17
20
 
18
21
  .text {
@@ -0,0 +1,13 @@
1
+ @use '../../../style' as cfg;
2
+
3
+ @include cfg.export-module('co-image-2d-placement-layout') {
4
+ .co-image-2d-placement {
5
+ position: var(--co-inphoto-image-2d-placement-position);
6
+ z-index: var(--co-inphoto-image-2d-placement-z-index);
7
+
8
+ canvas {
9
+ display: block;
10
+ cursor: var(--co-inphoto-image-2d-placement-canvas-cursor);
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,7 @@
1
+ .co-image-2d-placement {
2
+ --co-inphoto-image-2d-placement-font-family: var(--co-inphoto-font-family);
3
+ --co-inphoto-image-2d-placement-font-size-text: var(--co-inphoto-font-size-text);
4
+ --co-inphoto-image-2d-placement-position: absolute;
5
+ --co-inphoto-image-2d-placement-z-index: 5;
6
+ --co-inphoto-image-2d-placement-canvas-cursor: grab;
7
+ }
@@ -0,0 +1,8 @@
1
+ @use '../../../style' as cfg;
2
+
3
+ @include cfg.export-module('co-image-2d-placement-theme') {
4
+ .co-image-2d-placement {
5
+ font-family: var(--co-inphoto-image-2d-placement-font-family);
6
+ font-size: var(--co-inphoto-image-2d-placement-font-size-text);
7
+ }
8
+ }
@@ -4,6 +4,7 @@
4
4
  .co-image-enhancer {
5
5
  .enhancer-container {
6
6
  height: var(--co-inphoto-image-enhancer-container-height);
7
+ padding: var(--co-inphoto-image-enhancer-container-padding);
7
8
  position: var(--co-inphoto-image-enhancer-position-relative);
8
9
  display: flex;
9
10
  flex-direction: column;
@@ -11,7 +12,7 @@
11
12
 
12
13
  .enhancer-scroll-container {
13
14
  flex: 1 1 auto;
14
- min-height: 0;
15
+ min-height: var(--co-inphoto-image-enhancer-scroll-container-min-height);
15
16
  overflow-y: auto;
16
17
  scroll-behavior: smooth;
17
18
  scrollbar-width: none;
@@ -26,9 +27,14 @@
26
27
  .tabs {
27
28
  align-items: center;
28
29
  display: grid;
29
- grid-template-columns: repeat(2, 1fr);
30
+ grid-template-columns: var(--co-inphoto-image-enhancer-tabs-columns);
30
31
  height: var(--co-inphoto-image-enhancer-tab-height);
31
32
  align-content: end;
33
+
34
+ .tab-button {
35
+ padding: var(--co-inphoto-image-enhancer-tab-button-padding);
36
+ height: var(--co-inphoto-image-enhancer-tab-button-height);
37
+ }
32
38
  }
33
39
  }
34
40
  }
@@ -3,11 +3,14 @@
3
3
  --co-inphoto-image-enhancer-font-family: var(--co-inphoto-font-family);
4
4
  --co-inphoto-image-enhancer-tab-height: 60px;
5
5
  --co-inphoto-image-enhancer-tab-button-padding: 10px;
6
- --co-inphoto-image-enhancer-tab-button-border-width: 2px;
6
+ --co-inphoto-image-enhancer-tab-button-border: 2px solid transparent;
7
7
  --co-inphoto-image-enhancer-container-height: 100vh;
8
8
  --co-inphoto-image-enhancer-position-relative: relative;
9
9
  --co-inphoto-image-enhancer-scroll-padding-bottom: 30px;
10
10
  --co-inphoto-image-enhancer-container-padding: 35px 25px;
11
11
  --co-inphoto-image-enhancer-tab-button-radius: 0;
12
12
  --co-inphoto-image-enhancer-tab-button-height: 100%;
13
+ --co-inphoto-image-enhancer-scroll-container-min-height: 0;
14
+ --co-inphoto-image-enhancer-tabs-columns: repeat(2, 1fr);
15
+ --co-inphoto-image-enhancer-tab-button-background: none;
13
16
  }
@@ -8,7 +8,6 @@
8
8
  .enhancer-container {
9
9
 
10
10
  background: var(--co-inphoto-dialog-background-color);
11
- padding: var(--co-inphoto-image-enhancer-container-padding);
12
11
 
13
12
  .enhancer-scroll-container {
14
13
 
@@ -20,14 +19,12 @@
20
19
  .tabs {
21
20
 
22
21
  .tab-button {
23
- padding: var(--co-inphoto-image-enhancer-tab-button-padding);
24
22
  cursor: pointer;
25
- height: var(--co-inphoto-image-enhancer-tab-button-height);
26
23
  text-align: center;
27
- background: none;
24
+ background: var(--co-inphoto-image-enhancer-tab-button-background);
28
25
  border-radius: var(--co-inphoto-image-enhancer-tab-button-radius);
29
26
  @include cfg.sub-header-text();
30
- border-bottom: var(--co-inphoto-image-enhancer-tab-button-border-width) solid transparent;
27
+ border-bottom: var(--co-inphoto-image-enhancer-tab-button-border);
31
28
 
32
29
  &:hover {
33
30
  border-bottom-color: var(--co-inphoto-accent-color);
@@ -2,54 +2,104 @@
2
2
 
3
3
  @include cfg.export-module('co-image-enhancer-style-layout') {
4
4
  .co-image-enhancer-style {
5
- .form-part-container {
6
- margin: var(--co-inphoto-image-enhancer-style-form-margin);
5
+ .form-container {
6
+ .form-part-container {
7
+ margin: var(--co-inphoto-image-enhancer-style-form-margin);
7
8
 
8
- .co-list-of-values {
9
- height: var(--co-inphoto-image-enhancer-style-field-height);
10
- overflow: hidden;
11
-
12
- .co-input-text {
13
- .input-text-clear-button {
14
- display: none;
15
- }
9
+ .co-custom-list-of-values {
10
+ height: var(--co-inphoto-image-enhancer-style-field-height);
11
+ overflow: hidden;
16
12
 
17
- &:not(.no-style) {
18
- input {
19
- padding-bottom: var(--co-inphoto-image-enhancer-style-field-padding-bottom);
13
+ .co-input-text {
14
+ .input-text-clear-button {
15
+ display: none;
20
16
  }
21
17
 
22
- &:not(.custom-height) {
23
- height: var(--co-inphoto-image-enhancer-style-field-height);
24
- }
18
+ &:not(.no-style) {
19
+ input {
20
+ padding-bottom: var(--co-inphoto-image-enhancer-style-field-padding-bottom);
21
+ }
25
22
 
26
- &.has-own-label {
27
- &.hasvalue {
28
- label {
29
- transform: var(--co-inphoto-image-enhancer-style-label-transform-none);
30
- top: var(--co-inphoto-image-enhancer-style-label-top);
23
+ &:not(.custom-height) {
24
+ height: var(--co-inphoto-image-enhancer-style-field-height);
25
+ }
26
+
27
+ &.has-own-label {
28
+ &.hasvalue {
29
+ label {
30
+ transform: var(--co-inphoto-image-enhancer-style-label-transform-none);
31
+ top: var(--co-inphoto-image-enhancer-style-label-top);
32
+ }
31
33
  }
32
34
  }
33
- }
34
35
 
35
- &.has-right-icon {
36
- .input-text-right-icon {
37
- svg {
38
- width: var(--co-inphoto-image-enhancer-style-right-icon-size);
39
- height: var(--co-inphoto-image-enhancer-style-right-icon-size);
36
+ &.has-right-icon {
37
+ .input-text-right-icon {
38
+ svg {
39
+ width: var(--co-inphoto-image-enhancer-style-right-icon-size);
40
+ height: var(--co-inphoto-image-enhancer-style-right-icon-size);
41
+ }
40
42
  }
41
43
  }
44
+
45
+ .input-text-left-icon,
46
+ .input-text-right-icon {
47
+ max-height: var(--co-inphoto-image-enhancer-style-field-height);
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+
54
+ .co-custom-list-of-values {
55
+ .lov-input-template {
56
+ display: flex;
57
+ align-items: center;
58
+ gap: var(--co-inphoto-image-enhancer-style-lov-input-gap);
59
+ box-sizing: border-box;
60
+ padding: var(--co-inphoto-image-enhancer-style-lov-input-padding);
61
+
62
+
63
+ .lov-input-image {
64
+ img {
65
+ width: var(--co-inphoto-image-enhancer-style-lov-image-size);
66
+ height: var(--co-inphoto-image-enhancer-style-lov-image-size);
67
+ object-fit: cover;
68
+ }
69
+
70
+ .lov-input-placeholder-image {
71
+ width: var(--co-inphoto-image-enhancer-style-lov-image-size);
72
+ height: var(--co-inphoto-image-enhancer-style-lov-image-size);
73
+ }
74
+ }
75
+
76
+ .lov-text-container {
77
+ .lov-input-placeholder {
78
+ margin-bottom: var(--co-inphoto-image-enhancer-style-lov-placeholder-margin-bottom);
42
79
  }
80
+ }
43
81
 
44
- .input-text-left-icon,
45
- .input-text-right-icon {
46
- max-height: var(--co-inphoto-image-enhancer-style-field-height);
82
+ .lov-state-icon {
83
+ margin-left: var(--co-inphoto-image-enhancer-style-lov-state-icon-margin-left);
84
+
85
+ .co-icon {
86
+ height: var(--co-inphoto-image-enhancer-style-lov-state-icon-size);
87
+ width: var(--co-inphoto-image-enhancer-style-lov-state-icon-size);
47
88
  }
48
89
  }
49
90
  }
91
+
92
+
50
93
  }
51
94
  }
52
95
 
96
+ .ai-prompt-container {
97
+ margin-bottom: var(--co-inphoto-image-enhancer-style-ai-prompt-margin-bottom);
98
+ }
99
+
100
+ .tool-explainer, .explainer-text {
101
+ padding: var(--co-inphoto-image-enhancer-style-padding);
102
+ }
53
103
 
54
104
  .tool-explainer {
55
105
  .header-with-icon {
@@ -59,7 +109,40 @@
59
109
  }
60
110
 
61
111
  .button-container {
112
+ display: flex;
113
+ justify-content: space-between;
114
+ gap: var(--co-inphoto-image-enhancer-style-button-container-gap);
62
115
  margin-top: var(--co-inphoto-image-enhancer-style-button-container-margin-top);
116
+
117
+ .co-button {
118
+ flex: 1;
119
+ }
120
+ }
121
+ }
122
+ }
123
+
124
+ // LOV is appended to the dom outside .co-image-enhancer-style, so its variables are scoped
125
+ // to .co-list-of-custom-values-popup in _material-definition.scss instead.
126
+ .co-custom-list-of-values-popup {
127
+ .lov-template-container {
128
+ display: grid;
129
+ grid-template-columns: var(--co-inphoto-image-enhancer-style-lov-popup-columns);
130
+ gap: var(--co-inphoto-image-enhancer-style-lov-popup-gap);
131
+
132
+ .lov-template-tile {
133
+ cursor: pointer;
134
+
135
+ .lov-template-image {
136
+ max-height: var(--co-inphoto-image-enhancer-style-lov-popup-image-max-height);
137
+ overflow: hidden;
138
+ img {
139
+ width: var(--co-inphoto-image-enhancer-style-lov-popup-full-width);
140
+ }
141
+ }
142
+
143
+ .lov-template-text {
144
+ padding: var(--co-inphoto-image-enhancer-style-lov-popup-text-padding);
145
+ }
63
146
  }
64
147
  }
65
148
  }
@@ -3,7 +3,7 @@
3
3
  --co-inphoto-image-enhancer-style-font-family: var(--co-inphoto-font-family);
4
4
  --co-inphoto-image-enhancer-style-padding: 15px;
5
5
  --co-inphoto-image-enhancer-style-form-margin: 20px auto;
6
- --co-inphoto-image-enhancer-style-field-height: 60px;
6
+ --co-inphoto-image-enhancer-style-field-height: 70px;
7
7
  --co-inphoto-image-enhancer-style-field-padding-bottom: 10px;
8
8
  --co-inphoto-image-enhancer-style-label-transform-none: none;
9
9
  --co-inphoto-image-enhancer-style-label-top: 10px;
@@ -12,5 +12,31 @@
12
12
  --co-inphoto-image-enhancer-style-button-container-margin-top: 20px;
13
13
  --co-inphoto-image-enhancer-style-generate-button-margin-bottom: 30px;
14
14
  --co-inphoto-image-enhancer-style-button-label-margin-left: 15px;
15
- --co-inphoto-image-enhancer-style-button-label-font-weight: bold;
15
+ --co-inphoto-image-enhancer-style-button-label-font-weight: normal;
16
+ --co-inphoto-image-enhancer-style-divider-border: 1px solid var(--co-inphoto-border-color);
17
+ --co-inphoto-image-enhancer-style-ai-prompt-margin-bottom: 20px;
18
+ --co-inphoto-image-enhancer-style-lov-radius: 10px;
19
+ --co-inphoto-image-enhancer-style-lov-input-gap: 24px;
20
+ --co-inphoto-image-enhancer-style-lov-input-padding: 4px 0;
21
+ --co-inphoto-image-enhancer-style-lov-image-size: 60px;
22
+ --co-inphoto-image-enhancer-style-lov-placeholder-background: #D2D2D3;
23
+ --co-inphoto-image-enhancer-style-lov-placeholder-margin-bottom: 4px;
24
+ --co-inphoto-image-enhancer-style-lov-value-color: #8083A3;
25
+ --co-inphoto-image-enhancer-style-lov-state-icon-margin-left: auto;
26
+ --co-inphoto-image-enhancer-style-lov-state-icon-size: 20px;
27
+ --co-inphoto-image-enhancer-style-button-container-gap: 16px;
28
+ --co-inphoto-image-enhancer-style-no-border: none;
29
+ --co-inphoto-image-enhancer-style-no-shadow: none;
30
+ }
31
+
32
+ // The LOV popup is appended to the dom outside .co-image-enhancer-style, so its variables live on the popup itself
33
+ .co-custom-list-of-values-popup {
34
+ --co-inphoto-image-enhancer-style-lov-popup-columns: repeat(4, 1fr);
35
+ --co-inphoto-image-enhancer-style-lov-popup-gap: 8px;
36
+ --co-inphoto-image-enhancer-style-lov-popup-image-max-height: 65px;
37
+ --co-inphoto-image-enhancer-style-lov-popup-full-width: 100%;
38
+ --co-inphoto-image-enhancer-style-lov-popup-text-padding: 4px;
39
+ --co-inphoto-image-enhancer-style-lov-popup-tile-radius: 10px;
40
+ --co-inphoto-image-enhancer-style-lov-popup-tile-background: #efefef;
41
+ --co-inphoto-image-enhancer-style-lov-popup-image-radius: 6px;
16
42
  }
@@ -5,39 +5,86 @@
5
5
  font-family: var(--co-inphoto-image-enhancer-style-font-family);
6
6
  font-size: var(--co-inphoto-image-enhancer-style-font-size-text);
7
7
 
8
+ .form-container {
9
+ border-bottom: var(--co-inphoto-image-enhancer-style-divider-border);
10
+ }
11
+
12
+ .co-custom-list-of-values {
13
+ background: var(--co-inphoto-background-white);
14
+ border: var(--co-inphoto-image-enhancer-style-no-border);
15
+ border-radius: var(--co-inphoto-image-enhancer-style-lov-radius);
16
+
17
+ .lov-input-template {
18
+ .lov-input-image {
19
+ img {
20
+ border-radius: var(--co-inphoto-image-enhancer-style-lov-radius);
21
+ }
22
+
23
+ .lov-input-placeholder-image {
24
+ border-radius: var(--co-inphoto-image-enhancer-style-lov-radius);
25
+ background: var(--co-inphoto-image-enhancer-style-lov-placeholder-background);
26
+ }
27
+ }
28
+
29
+ .lov-text-container {
30
+ .lov-input-placeholder {
31
+ font-size: var(--co-inphoto-font-size-head);
32
+ color: var(--co-inphoto-color-dark);
33
+ }
34
+
35
+ .lov-input-value {
36
+ font-size: var(--co-inphoto-font-size-sub-head);
37
+ color: var(--co-inphoto-image-enhancer-style-lov-value-color);
38
+ }
39
+ }
40
+
41
+ .lov-state-icon {
42
+ .co-icon {
43
+ svg, path {
44
+ fill: var(--co-inphoto-icon-color);
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+
51
+ .ai-prompt-container {
52
+ border-bottom: var(--co-inphoto-image-enhancer-style-divider-border);
53
+ }
54
+
8
55
  .form-part-container {
9
- .co-list-of-values {
56
+ .co-list-of-values, .co-custom-list-of-values {
10
57
  border-radius: var(--co-inphoto-border-radius);
11
58
 
12
59
  &:before, &:hover {
13
- box-shadow: none;
14
- border: none;
60
+ box-shadow: var(--co-inphoto-image-enhancer-style-no-shadow);
61
+ border: var(--co-inphoto-image-enhancer-style-no-border);
15
62
  }
16
63
 
17
64
  &:not(.read-only):hover {
18
- border: none;
65
+ border: var(--co-inphoto-image-enhancer-style-no-border);
19
66
 
20
67
  &:before {
21
- box-shadow: none;
68
+ box-shadow: var(--co-inphoto-image-enhancer-style-no-shadow);
22
69
  }
23
70
  }
24
71
 
25
72
  &.cc-input-focused:not(.no-focus-line) {
26
- border: none;
73
+ border: var(--co-inphoto-image-enhancer-style-no-border);
27
74
 
28
75
  &:before {
29
- box-shadow: none;
76
+ box-shadow: var(--co-inphoto-image-enhancer-style-no-shadow);
30
77
  }
31
78
  }
32
79
 
33
80
  .co-input-text {
34
81
  &:before {
35
- box-shadow: none;
82
+ box-shadow: var(--co-inphoto-image-enhancer-style-no-shadow);
36
83
  }
37
84
 
38
85
  &:hover, &:not(.read-only):hover {
39
86
  &:before {
40
- box-shadow: none;
87
+ box-shadow: var(--co-inphoto-image-enhancer-style-no-shadow);
41
88
  }
42
89
  }
43
90
 
@@ -59,7 +106,6 @@
59
106
  .tool-explainer, .explainer-text {
60
107
  background: var(--co-inphoto-background-white);
61
108
  border-radius: var(--co-inphoto-border-radius);
62
- padding: var(--co-inphoto-image-enhancer-style-padding);
63
109
 
64
110
  .header-with-icon {
65
111
  @include cfg.default-icon(var(--co-inphoto-icon-size), var(--co-inphoto-icon-size), var(--co-inphoto-icon-color));
@@ -118,3 +164,19 @@
118
164
  }
119
165
  }
120
166
  }
167
+
168
+ .co-custom-list-of-values-popup {
169
+ .lov-template-container {
170
+ .lov-template-tile {
171
+ border-radius: var(--co-inphoto-image-enhancer-style-lov-popup-tile-radius);
172
+ background: var(--co-inphoto-image-enhancer-style-lov-popup-tile-background);
173
+
174
+ .lov-template-image {
175
+ border-radius: var(--co-inphoto-image-enhancer-style-lov-popup-image-radius);
176
+ img {
177
+ border-radius: var(--co-inphoto-image-enhancer-style-lov-popup-image-radius);
178
+ }
179
+ }
180
+ }
181
+ }
182
+ }
@@ -5,7 +5,6 @@
5
5
  .image-enhancer-upload {
6
6
 
7
7
  .tool-explainer {
8
- padding: var(--co-inphoto-image-enhancer-upload-tool-padding);
9
8
  margin: var(--co-inphoto-image-enhancer-upload-tool-margin);
10
9
 
11
10
  .header-with-icon {
@@ -21,11 +20,17 @@
21
20
  }
22
21
 
23
22
  .button-container {
23
+
24
+ display: flex;
25
+ justify-content: space-between;
26
+ gap: var(--co-inphoto-image-enhancer-upload-button-container-gap);
24
27
  margin-top: var(--co-inphoto-image-enhancer-upload-button-container-margin-top);
25
28
 
26
- .generate-button {
27
- margin-bottom: var(--co-inphoto-image-enhancer-upload-generate-button-margin-bottom);
29
+ .co-button {
30
+ flex: 1;
31
+ }
28
32
 
33
+ .generate-button {
29
34
  .label {
30
35
  margin-left: var(--co-inphoto-image-enhancer-upload-button-label-margin-left);
31
36
  }
@@ -1,14 +1,14 @@
1
1
  .co-image-enhancer-upload {
2
2
  --co-inphoto-image-enhancer-upload-font-size-text: var(--co-inphoto-font-size-text);
3
3
  --co-inphoto-image-enhancer-upload-font-family: var(--co-inphoto-font-family);
4
- --co-inphoto-image-enhancer-upload-tool-padding: 15px;
5
- --co-inphoto-image-enhancer-upload-tool-margin: 20px auto 0;
4
+ --co-inphoto-image-enhancer-upload-tool-margin: 20px auto;
6
5
  --co-inphoto-image-enhancer-upload-header-padding-bottom: 5px;
7
6
  --co-inphoto-image-enhancer-upload-icon-margin: 10px;
8
7
  --co-inphoto-image-enhancer-upload-button-container-margin-top: 20px;
9
- --co-inphoto-image-enhancer-upload-generate-button-margin-bottom: 30px;
10
8
  --co-inphoto-image-enhancer-upload-button-label-margin-left: 15px;
11
9
  --co-inphoto-image-enhancer-upload-font-weight-bold: bold;
10
+ --co-inphoto-image-enhancer-upload-button-label-font-weight: normal;
12
11
  --co-inphoto-image-enhancer-upload-preview-columns: repeat(3, 1fr);
13
- --co-inphoto-image-enhancer-upload-preview-margin: 20px 0;
12
+ --co-inphoto-image-enhancer-upload-preview-margin: 0 0 20px;
13
+ --co-inphoto-image-enhancer-upload-button-container-gap: 16px;
14
14
  }
@@ -8,8 +8,6 @@
8
8
  .image-enhancer-upload {
9
9
 
10
10
  .tool-explainer {
11
- background: var(--co-inphoto-background-white);
12
- border-radius: var(--co-inphoto-border-radius);
13
11
 
14
12
  .header-with-icon {
15
13
  .tool-explainer-header {
@@ -38,7 +36,7 @@
38
36
  );
39
37
 
40
38
  .label {
41
- font-weight: var(--co-inphoto-image-enhancer-upload-font-weight-bold);
39
+ font-weight: var(--co-inphoto-image-enhancer-upload-button-label-font-weight);
42
40
  }
43
41
  }
44
42
 
@@ -56,7 +54,7 @@
56
54
  );
57
55
 
58
56
  .label {
59
- font-weight: var(--co-inphoto-image-enhancer-upload-font-weight-bold);
57
+ font-weight: var(--co-inphoto-image-enhancer-upload-button-label-font-weight);
60
58
  }
61
59
  }
62
60
  }
@@ -3,9 +3,7 @@
3
3
  @include cfg.export-module('co-image-history-layout') {
4
4
  .co-image-history {
5
5
  .image-history-container {
6
- position: var(--co-inphoto-image-history-position-absolute);
7
- bottom: var(--co-inphoto-image-history-container-bottom);
8
- left: var(--co-inphoto-image-history-container-left);
6
+ display: inline-block;
9
7
  padding: var(--co-inphoto-image-history-dialog-offset);
10
8
  }
11
9
 
@@ -18,7 +16,7 @@
18
16
 
19
17
  .image-history-tiles {
20
18
  flex: 1 1 auto;
21
- min-width: 0;
19
+ min-width: var(--co-inphoto-image-history-zero);
22
20
  display: flex;
23
21
  gap: var(--co-inphoto-image-history-gap);
24
22
  overflow-x: auto;
@@ -2,8 +2,6 @@
2
2
  --co-inphoto-image-history-font-size-text: var(--co-inphoto-font-size-text);
3
3
  --co-inphoto-image-history-font-family: var(--co-inphoto-font-family);
4
4
  --co-inphoto-image-history-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
5
- --co-inphoto-image-history-container-bottom: 10px;
6
- --co-inphoto-image-history-container-left: 115px;
7
5
  --co-inphoto-image-history-position-absolute: absolute;
8
6
  --co-inphoto-image-history-position-relative: relative;
9
7
  --co-inphoto-image-history-card-max-width: 675px;
@@ -5,11 +5,6 @@
5
5
  font-family: var(--co-inphoto-image-history-font-family);
6
6
  font-size: var(--co-inphoto-image-history-font-size-text);
7
7
 
8
- .image-history-container {
9
- background: var(--co-inphoto-dialog-background-color);
10
- border-radius: var(--co-inphoto-border-radius);
11
- }
12
-
13
8
  .image-history-card {
14
9
  border-radius: var(--co-inphoto-border-radius);
15
10
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  @include cfg.export-module('co-image-history-tile-layout') {
4
4
  .co-image-history-tile {
5
- flex: 0 0 auto;
5
+ flex: var(--co-inphoto-image-history-tile-flex);
6
6
  width: var(--co-inphoto-image-history-tile-width);
7
7
 
8
8
  .image-history-item {
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  .tile-action {
23
- position: absolute;
23
+ position: var(--co-inphoto-image-history-tile-action-position);
24
24
  display: flex;
25
25
  align-items: center;
26
26
  justify-content: center;
@@ -1,8 +1,10 @@
1
1
  .co-image-history-tile {
2
2
  --co-inphoto-image-history-tile-font-size-text: var(--co-inphoto-font-size-text);
3
3
  --co-inphoto-image-history-tile-font-family: var(--co-inphoto-font-family);
4
+ --co-inphoto-image-history-tile-flex: 0 0 auto;
4
5
  --co-inphoto-image-history-tile-width: 160px;
5
6
  --co-inphoto-image-history-tile-position-relative: relative;
7
+ --co-inphoto-image-history-tile-action-position: absolute;
6
8
  --co-inphoto-image-history-tile-item-full-width: 100%;
7
9
  --co-inphoto-image-history-tile-item-height: 115px;
8
10
  --co-inphoto-image-history-tile-action-size: 26px;