@colijnit/inphoto 300.1.0 → 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 (153) 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/assets/inphoto-select-all.png +0 -0
  5. package/assets/inphoto-single-select.png +0 -0
  6. package/fesm2022/colijnit-inphoto.mjs +5682 -2193
  7. package/fesm2022/colijnit-inphoto.mjs.map +1 -1
  8. package/icons/angle_down_solid_full.svg +1 -0
  9. package/icons/angle_up_solid_full.svg +1 -0
  10. package/icons/arrow_left_solid_full.svg +1 -0
  11. package/icons/arrow_right_solid_full.svg +1 -0
  12. package/icons/arrow_rotate_left_solid_full.svg +1 -0
  13. package/icons/arrow_up_from_bracket_solid.svg +1 -0
  14. package/icons/arrow_up_right_and_arrow_down_left_from_center_solid_full.svg +1 -0
  15. package/icons/arrow_up_to_bracket_duotone_regular.svg +1 -0
  16. package/icons/brush_solid_full.svg +1 -0
  17. package/icons/caret_down_solid_full.svg +1 -0
  18. package/icons/caret_up_solid_full.svg +1 -0
  19. package/icons/check_solid_full.svg +1 -0
  20. package/icons/circle_info_regular_full.svg +1 -0
  21. package/icons/cloud_arrow_up_regular.svg +1 -0
  22. package/icons/copy_light.svg +1 -0
  23. package/icons/couch_solid_full.svg +1 -0
  24. package/icons/cross_skinny.svg +1 -0
  25. package/icons/cube_regular_full.svg +1 -0
  26. package/icons/draw_square_regular.svg +1 -0
  27. package/icons/eraser_regular.svg +1 -0
  28. package/icons/eraser_solid_full.svg +1 -0
  29. package/icons/file_vector_light.svg +1 -0
  30. package/icons/fill_solid_full.svg +1 -0
  31. package/icons/grip_dots_vertical_solid.svg +1 -0
  32. package/icons/grip_vertical_sharp_solid.svg +1 -0
  33. package/icons/image_circle_arrow_down_solid_full.svg +1 -0
  34. package/icons/image_circle_xmark_solid_full.svg +1 -0
  35. package/icons/image_solid_full.svg +1 -0
  36. package/icons/images_sharp_solid_full.svg +1 -0
  37. package/icons/info_solid_full.svg +1 -0
  38. package/icons/lightbulb_regular_full.svg +1 -0
  39. package/icons/lock_solid_full.svg +1 -0
  40. package/icons/paintbrush_regular.svg +1 -0
  41. package/icons/pen_to_square_solid_full.svg +1 -0
  42. package/icons/rotate_left_sharp_solid_full.svg +1 -0
  43. package/icons/rotate_solid_full.svg +1 -0
  44. package/icons/save_skinny.svg +3 -0
  45. package/icons/scale.svg +1 -0
  46. package/icons/sharp_regular_object_group_pen.svg +1 -0
  47. package/icons/sparkles_regular_full.svg +1 -0
  48. package/icons/trash_can_light.svg +1 -0
  49. package/icons/up_down_left_right_solid_full.svg +1 -0
  50. package/icons/upload_solid_full.svg +1 -0
  51. package/icons/wand_magic_sparkles.svg +1 -0
  52. package/icons/wand_magic_sparkles_sharp_regular.svg +1 -0
  53. package/icons/xmark_solid_full.svg +1 -0
  54. package/index.d.ts +840 -342
  55. package/lib/component/ai-prompt/style/_layout.scss +125 -0
  56. package/lib/component/ai-prompt/style/_theme.scss +9 -0
  57. package/lib/component/back-next-buttons/style/_layout.scss +2 -2
  58. package/lib/component/back-next-buttons/style/_theme.scss +33 -22
  59. package/lib/component/canvas-tool-bar/style/_layout.scss +135 -0
  60. package/lib/component/canvas-tool-bar/style/_material-definition.scss +4 -0
  61. package/lib/component/canvas-tool-bar/style/_theme.scss +11 -0
  62. package/lib/component/catalog/style/_layout.scss +8 -35
  63. package/lib/component/catalog/style/_material-definition.scss +2 -1
  64. package/lib/component/catalog/style/_theme.scss +41 -7
  65. package/lib/component/{model-list-item → configuration-side-bar-menu}/style/_layout.scss +19 -37
  66. package/lib/component/configuration-side-bar-menu/style/_material-definition.scss +3 -0
  67. package/lib/component/configuration-side-bar-menu/style/_theme.scss +10 -0
  68. package/lib/component/edit-canvas/style/_layout.scss +10 -38
  69. package/lib/component/edit-canvas/style/_theme.scss +2 -27
  70. package/lib/component/error-dialog/style/_layout.scss +5 -6
  71. package/lib/component/error-dialog/style/_theme.scss +2 -2
  72. package/lib/component/image-enhancer/style/_layout.scss +75 -18
  73. package/lib/component/image-enhancer/style/_theme.scss +26 -14
  74. package/lib/component/image-enhancer-style/style/_layout.scss +53 -6
  75. package/lib/component/image-enhancer-style/style/_theme.scss +26 -2
  76. package/lib/component/image-enhancer-upload/style/_layout.scss +8 -9
  77. package/lib/component/image-enhancer-upload/style/_theme.scss +36 -2
  78. package/lib/component/image-history/style/_layout.scss +114 -20
  79. package/lib/component/image-history/style/_theme.scss +19 -7
  80. package/lib/component/image-history-tile/style/_layout.scss +46 -32
  81. package/lib/component/image-history-tile/style/_theme.scss +4 -4
  82. package/lib/component/image-process-complete/components/image-process-complete-next/style/_layout.scss +45 -0
  83. package/lib/component/image-process-complete/components/image-process-complete-next/style/_material-definition.scss +3 -0
  84. package/lib/component/image-process-complete/components/image-process-complete-next/style/_theme.scss +10 -0
  85. package/lib/component/image-process-complete/components/image-process-complete-next/style/material.scss +3 -0
  86. package/lib/component/image-process-complete/style/_layout.scss +56 -0
  87. package/lib/component/image-process-complete/style/_material-definition.scss +3 -0
  88. package/lib/component/image-process-complete/style/_theme.scss +66 -0
  89. package/lib/component/image-process-complete/style/material.scss +3 -0
  90. package/lib/component/image-tile/components/color-palette-option/style/_layout.scss +17 -0
  91. package/lib/component/image-tile/components/color-palette-option/style/_material-definition.scss +3 -0
  92. package/lib/component/image-tile/components/color-palette-option/style/_theme.scss +12 -0
  93. package/lib/component/image-tile/components/color-palette-option/style/material.scss +3 -0
  94. package/lib/component/image-tile/style/_layout.scss +100 -0
  95. package/lib/component/image-tile/style/_material-definition.scss +3 -0
  96. package/lib/component/image-tile/style/_theme.scss +8 -0
  97. package/lib/component/image-tile/style/material.scss +3 -0
  98. package/lib/component/image-upload/style/_layout.scss +34 -18
  99. package/lib/component/image-upload/style/_material-definition.scss +3 -3
  100. package/lib/component/image-upload/style/_theme.scss +29 -20
  101. package/lib/component/inphoto/style/_layout.scss +2 -10
  102. package/lib/component/inphoto/style/_theme.scss +2 -2
  103. package/lib/component/photo-editor/style/_layout.scss +9 -24
  104. package/lib/component/photo-editor/style/_theme.scss +2 -2
  105. package/lib/component/prepare-starting-image/style/_layout.scss +82 -23
  106. package/lib/component/prepare-starting-image/style/_material-definition.scss +1 -3
  107. package/lib/component/prepare-starting-image/style/_theme.scss +108 -53
  108. package/lib/component/process-loader/style/_layout.scss +69 -14
  109. package/lib/component/process-loader/style/_material-definition.scss +3 -0
  110. package/lib/component/process-loader/style/_theme.scss +85 -9
  111. package/lib/component/ready-to-add-articles/style/_layout.scss +65 -0
  112. package/lib/component/ready-to-add-articles/style/_material-definition.scss +3 -0
  113. package/lib/component/ready-to-add-articles/style/_theme.scss +95 -0
  114. package/lib/component/ready-to-add-articles/style/material.scss +3 -0
  115. package/lib/component/scene-context-menu/style/_layout.scss +90 -0
  116. package/lib/component/scene-context-menu/style/_material-definition.scss +3 -0
  117. package/lib/component/scene-context-menu/style/_theme.scss +8 -0
  118. package/lib/component/scene-context-menu/style/material.scss +3 -0
  119. package/lib/component/segment-inpaint/components/inpaint-info-card/style/_layout.scss +49 -0
  120. package/lib/component/segment-inpaint/components/inpaint-info-card/style/_material-definition.scss +3 -0
  121. package/lib/component/segment-inpaint/components/inpaint-info-card/style/_theme.scss +10 -0
  122. package/lib/component/segment-inpaint/components/inpaint-info-card/style/material.scss +3 -0
  123. package/lib/component/segment-inpaint/style/_layout.scss +52 -0
  124. package/lib/component/segment-inpaint/style/_material-definition.scss +3 -0
  125. package/lib/component/segment-inpaint/style/_theme.scss +11 -0
  126. package/lib/component/segment-inpaint/style/material.scss +3 -0
  127. package/lib/component/side-bar-menu/style/_layout.scss +24 -19
  128. package/lib/component/side-bar-menu/style/_theme.scss +2 -15
  129. package/lib/component/threed-to-ai/style/_layout.scss +38 -0
  130. package/lib/component/threed-to-ai/style/_material-definition.scss +3 -0
  131. package/lib/component/threed-to-ai/style/_theme.scss +6 -0
  132. package/lib/component/threed-to-ai/style/material.scss +3 -0
  133. package/lib/component/threedscene/style/_layout.scss +12 -41
  134. package/lib/component/threedscene/style/_theme.scss +3 -33
  135. package/lib/component/upload-starting-image/style/_layout.scss +40 -31
  136. package/lib/component/upload-starting-image/style/_theme.scss +31 -13
  137. package/lib/style/_index.scss +2 -0
  138. package/lib/style/_mixin.scss +28 -0
  139. package/lib/style/_variables.scss +41 -35
  140. package/lib/style/inphoto-globals.scss +15 -0
  141. package/package.json +1 -1
  142. package/lib/component/model-list/style/_layout.scss +0 -7
  143. package/lib/component/model-list/style/_theme.scss +0 -10
  144. package/lib/component/model-list-item/style/_material-definition.scss +0 -4
  145. package/lib/component/model-list-item/style/_theme.scss +0 -10
  146. package/lib/component/step-menu/style/_layout.scss +0 -43
  147. package/lib/component/step-menu/style/_material-definition.scss +0 -7
  148. package/lib/component/step-menu/style/_theme.scss +0 -44
  149. package/lib/style/app-globals.scss +0 -26
  150. /package/lib/component/{model-list → ai-prompt}/style/_material-definition.scss +0 -0
  151. /package/lib/component/{model-list-item → ai-prompt}/style/material.scss +0 -0
  152. /package/lib/component/{model-list → canvas-tool-bar}/style/material.scss +0 -0
  153. /package/lib/component/{step-menu → configuration-side-bar-menu}/style/material.scss +0 -0
@@ -1,33 +1,8 @@
1
- @import "../../../style/mixin.scss";
1
+ @use '../../../style' as cfg;
2
2
 
3
- @include export-module('co-edit-canvas-theme') {
3
+ @include cfg.export-module('co-edit-canvas-theme') {
4
4
  .co-edit-canvas {
5
5
 
6
- .edit-canvas-container {
7
- .toolbar {
8
- background-color: var(--co-inphoto-loader-background-light);
9
-
10
- .toolbar-item {
11
- .toolbar-item-option {
12
- background: #fff;
13
- }
14
-
15
- &:hover {
16
- background-color: rgba(255, 255, 255, 1);
17
- }
18
- }
19
- }
20
-
21
- .canvas-container {
22
- .close-canvas-button, .open-canvas-button {
23
- @include default-icon(30px, 30px, #fff);
24
- }
25
- }
26
-
27
- .canvas-container.canvas-full-screen {
28
- background-color: var(--co-inphoto-loader-background-dark);
29
- }
30
- }
31
6
  }
32
7
  }
33
8
 
@@ -1,6 +1,6 @@
1
- @import "../../../style/mixin.scss";
1
+ @use '../../../style' as cfg;
2
2
 
3
- @include export-module('co-error-dialog-layout') {
3
+ @include cfg.export-module('co-error-dialog-layout') {
4
4
  .co-error-dialog {
5
5
 
6
6
  .error-dialog {
@@ -9,13 +9,13 @@
9
9
  display: flex;
10
10
  align-items: center;
11
11
  justify-content: center;
12
- background:var(--co-inphoto-loader-background-dark);
12
+ background: var(--co-inphoto-loader-background-dark);
13
13
  z-index: 120;
14
14
 
15
15
  .error-dialog-container {
16
- background: #fff;
16
+ background: var(--co-inphoto-dialog-background-color);
17
17
  padding: 20px;
18
- border-radius: 10px;
18
+ border-radius: var(--co-inphoto-border-radius);
19
19
  max-width: 550px;
20
20
  width: 100%;
21
21
 
@@ -35,6 +35,5 @@
35
35
  }
36
36
  }
37
37
  }
38
-
39
38
  }
40
39
  }
@@ -1,6 +1,6 @@
1
- @import "../../../style/mixin.scss";
1
+ @use '../../../style' as cfg;
2
2
 
3
- @include export-module('co-error-dialog-theme') {
3
+ @include cfg.export-module('co-error-dialog-theme') {
4
4
  .co-error-dialog {
5
5
 
6
6
  }
@@ -1,38 +1,95 @@
1
- @import "../../../style/mixin.scss";
1
+ @use '../../../style' as cfg;
2
2
 
3
- @include export-module('co-image-enhancer-layout') {
3
+ @include cfg.export-module('co-image-enhancer-layout') {
4
4
  .co-image-enhancer {
5
5
  .image-enhancer-container {
6
- width: 100%;
7
-
8
- .header {
9
- .header-icon-container {
10
- margin-bottom: 10px;
11
- display: flex;
12
- align-items: center;
13
- gap: 10px;
14
- }
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;
15
16
  }
16
17
 
17
18
  .tabs {
18
19
  align-items: center;
19
20
  display: grid;
20
- grid-template-columns: repeat(3, 1fr);
21
+ grid-template-columns: repeat(2, 1fr);
21
22
  border-radius: 5px;
22
-
23
- .instruction-dialog {
24
- font-size: var(--font-size-small);
25
- }
23
+ height: 60px;
24
+ align-content: end;
26
25
 
27
26
  .tab-button {
28
27
  box-sizing: border-box;
29
28
  padding: 10px;
30
29
  cursor: pointer;
31
30
  height: 100%;
32
- display: flex;
33
- align-items: center;
31
+ text-align: center;
32
+ }
33
+ }
34
+ }
35
+
36
+ .dialog-collapse {
37
+ max-height: 55px;
38
+ }
39
+
40
+
41
+ .image-enhancer-header {
42
+ display: flex;
43
+ justify-content: space-between;
44
+ 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;
34
55
  }
56
+
35
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
+
36
92
  }
93
+
37
94
  }
38
95
  }
@@ -1,36 +1,48 @@
1
- @import "../../../style/mixin.scss";
1
+ @use '../../../style' as cfg;
2
2
 
3
- @include export-module('co-image-enhancer-theme') {
3
+ @include cfg.export-module('co-image-enhancer-theme') {
4
4
  .co-image-enhancer {
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%;
12
+ box-sizing: border-box;
13
+ padding: 20px;
14
+ border-radius: var(--co-inphoto-border-radius);
15
+ }
16
+
17
+
5
18
  .image-enhancer-container {
6
19
  .header {
7
20
  .header-icon-container {
8
21
  margin-bottom: 10px;
22
+
9
23
  h2 {
10
- font-size: var(--co-inphoto-font-size-head);
11
- color: var(--co-inphoto-color-dark);
24
+ @include cfg.header-text();
12
25
  }
13
26
  }
14
27
  }
15
28
 
16
29
  .tabs {
17
- background: var(--co-inphoto-tab-background-color);
18
- border-radius: 5px;
30
+ .instruction-dialog {
31
+ font-size: var(--font-size-small);
32
+ }
19
33
 
20
34
  .tab-button {
21
- border-radius: 5px;
22
- background: var(--co-inphoto-tab-background-color);
23
- color: var(--co-inphoto-color-dark);
24
- font-size: var(--co-inphoto-tab-header-font-size);
25
- border: 2px solid var(--co-inphoto-tab-border-color);
35
+ background: none;
36
+ @include cfg.sub-header-text();
37
+ border-bottom: 2px solid transparent;
38
+ font-weight: bold;
26
39
 
27
40
  &:hover {
28
- background: var(--co-inphoto-tab-active-background-color);
41
+ border-bottom-color: var(--co-inphoto-accent-color);
29
42
  }
30
43
 
31
44
  &.active {
32
- background: var(--co-inphoto-tab-active-background-color);
33
- color: var(--co-inphoto-tab-active-color);
45
+ border-bottom-color: var(--co-inphoto-accent-color);
34
46
  }
35
47
  }
36
48
  }
@@ -1,20 +1,54 @@
1
- @import "../../../style/mixin.scss";
1
+ @use '../../../style' as cfg;
2
2
 
3
- @include export-module('co-image-enhancer-style-layout') {
3
+ @include cfg.export-module('co-image-enhancer-style-layout') {
4
4
  .co-image-enhancer-style {
5
- .form-part-container, .custom-prompt-container {
5
+ .form-part-container {
6
6
  margin: 20px auto;
7
7
  }
8
8
 
9
9
  .form-part-container {
10
10
  .co-list-of-values {
11
11
  height: 60px;
12
+ border-radius: var(--co-inphoto-border-radius);
13
+ overflow: hidden;
14
+
15
+ &:before, &:hover {
16
+ box-shadow: none;
17
+ border: none;
18
+ }
19
+
20
+ &:not(.read-only):hover {
21
+ border: none;
22
+
23
+ &:before {
24
+ box-shadow: none;
25
+ }
26
+ }
27
+
28
+ &.cc-input-focused:not(.no-focus-line) {
29
+ border: none;
30
+
31
+ &:before {
32
+ box-shadow: none;
33
+ }
34
+ }
35
+
12
36
 
13
37
  .co-input-text {
14
38
  .input-text-clear-button {
15
39
  display: none;
16
40
  }
17
41
 
42
+ &:before {
43
+ box-shadow: none;
44
+ }
45
+
46
+ &:hover, &:not(.read-only):hover {
47
+ &:before {
48
+ box-shadow: none;
49
+ }
50
+ }
51
+
18
52
  &:not(.no-style) {
19
53
  input {
20
54
  padding-bottom: 10px;
@@ -22,6 +56,7 @@
22
56
 
23
57
  &:not(.custom-height) {
24
58
  height: 60px;
59
+ border-radius: var(--co-inphoto-border-radius);
25
60
  }
26
61
 
27
62
  &.has-own-label {
@@ -47,14 +82,26 @@
47
82
  max-height: 60px;
48
83
  }
49
84
  }
85
+
86
+ .input-text-wrapper {
87
+ .input-wrapper {
88
+ border-radius: var(--co-inphoto-border-radius);
89
+ }
90
+ }
50
91
  }
51
92
  }
52
93
  }
53
94
 
54
- .custom-prompt-container {
55
- .co-input-checkbox {
56
- margin-bottom: 10px;
95
+
96
+ .tool-explainer {
97
+ .header-with-icon {
98
+ display: flex;
99
+ align-items: center;
57
100
  }
58
101
  }
102
+
103
+ .button-container {
104
+ margin-top: 20px;
105
+ }
59
106
  }
60
107
  }
@@ -1,8 +1,32 @@
1
- @import "../../../style/mixin.scss";
1
+ @use '../../../style' as cfg;
2
2
 
3
- @include export-module('co-image-enhancer-style-theme') {
3
+ @include cfg.export-module('co-image-enhancer-style-theme') {
4
4
  .co-image-enhancer-style {
5
5
 
6
+ .tool-explainer, .explainer-text {
7
+ background: var(--co-inphoto-background-white);
8
+ border-radius: var(--co-inphoto-border-radius);
9
+ box-sizing: border-box;
10
+ padding: 15px;
11
+
12
+ .header-with-icon {
13
+ @include cfg.default-icon(var(--co-inphoto-icon-size), var(--co-inphoto-icon-size), var(--co-inphoto-icon-color));
14
+ .co-icon {
15
+ margin-right: 10px;
16
+ }
17
+ .tool-explainer-header {
18
+ @include cfg.sub-header-text();
19
+ }
20
+ }
21
+ }
22
+
23
+ .tool-explainer-text {
24
+ @include cfg.text();
25
+ }
26
+
27
+ .button-container {
28
+ margin-top: 20px;
29
+ }
6
30
  }
7
31
  }
8
32
 
@@ -1,17 +1,16 @@
1
- @import "../../../style/mixin.scss";
1
+ @use '../../../style' as cfg;
2
2
 
3
- @include export-module('co-image-enhancer-upload-layout') {
3
+ @include cfg.export-module('co-image-enhancer-upload-layout') {
4
4
  .co-image-enhancer-upload {
5
-
6
5
  .image-enhancer-upload {
7
6
  box-sizing: border-box;
8
- padding: 20px 10px;
9
7
 
10
- .custom-prompt-container {
11
- margin: 20px 0;
12
- .co-input-checkbox {
13
- margin-bottom: 10px;
14
- }
8
+ .tool-explainer {
9
+ box-sizing: border-box;
10
+ }
11
+
12
+ .uploaded-image-container {
13
+ display: grid;
15
14
  }
16
15
  }
17
16
  }
@@ -1,8 +1,42 @@
1
- @import "../../../style/mixin.scss";
1
+ @use '../../../style' as cfg;
2
2
 
3
- @include export-module('co-image-enhancer-upload-theme') {
3
+ @include cfg.export-module('co-image-enhancer-upload-theme') {
4
4
  .co-image-enhancer-upload {
5
+ .image-enhancer-upload {
5
6
 
7
+ .tool-explainer {
8
+ background: var(--co-inphoto-background-white);
9
+ border-radius: var(--co-inphoto-border-radius);
10
+ padding: 15px;
11
+ margin: 20px auto 0;
12
+
13
+ .header-with-icon {
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: flex-start;
17
+ box-sizing: border-box;
18
+ padding-bottom: 5px;
19
+
20
+ .co-icon {
21
+ margin-right: 10px;
22
+ }
23
+
24
+ .tool-explainer-header {
25
+ font-size: var(--co-inphoto-font-size-text);
26
+ font-weight: bold;
27
+ }
28
+ }
29
+
30
+ .tool-explainer-text {
31
+ font-size: var(--co-inphoto-font-size-text);
32
+ }
33
+ }
34
+
35
+ .uploaded-image-container {
36
+ grid-template-columns: repeat(3, 1fr);
37
+ margin: 20px 0;
38
+ }
39
+ }
6
40
  }
7
41
  }
8
42
 
@@ -1,45 +1,139 @@
1
- @import "../../../style/mixin.scss";
1
+ @use '../../../style' as cfg;
2
2
 
3
- @include export-module('co-image-history-layout') {
3
+ @include cfg.export-module('co-image-history-layout') {
4
4
  .co-image-history {
5
5
  .image-history-container {
6
+ position: absolute;
7
+ bottom: 10px;
8
+ left: 115px;
6
9
  box-sizing: border-box;
7
- padding: 20px;
10
+ }
11
+
12
+ .image-history-card {
13
+ position: relative;
14
+ display: flex;
15
+ align-items: center;
16
+ width: 675px;
17
+ }
18
+
19
+ .image-history-tiles {
20
+ flex: 1 1 auto;
21
+ min-width: 0;
22
+ display: flex;
23
+ gap: 10px;
24
+ overflow-x: auto;
25
+ overflow-y: hidden;
26
+ scroll-behavior: smooth;
27
+ scrollbar-width: none;
28
+ -ms-overflow-style: none;
8
29
 
9
- .image-history-header {
30
+ &::-webkit-scrollbar {
31
+ display: none;
32
+ }
33
+ }
34
+
35
+ .scroll-btn {
36
+ position: absolute;
37
+ top: 50%;
38
+ transform: translateY(-50%);
39
+ display: flex;
40
+ align-items: center;
41
+ justify-content: center;
42
+ width: 30px;
43
+ height: 30px;
44
+ padding: 0;
45
+ border: none;
46
+ border-radius: 50%;
47
+ cursor: pointer;
48
+ z-index: 2;
10
49
 
50
+ &-left {
51
+ left: -6px;
11
52
  }
12
53
 
13
- .image-history-tiles {
14
- width: 100%;
15
- display: grid;
16
- grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
17
- gap: 10px;
54
+ &-right {
55
+ right: -6px;
18
56
  }
19
57
  }
20
58
 
21
59
  .larger-image-dialog {
22
60
  position: fixed;
23
- top: 0;
24
- left: 0;
25
- width: 100%;
26
- height: 100%;
61
+ inset: 0;
27
62
  z-index: 1000;
28
63
  display: flex;
64
+ flex-direction: column;
29
65
  justify-content: center;
30
66
  align-items: center;
31
67
 
32
- .close-dialog-button {
33
- position: absolute;
34
- top: 20px;
35
- right: 20px;
36
- cursor: pointer;
68
+ .dialog-container {
69
+ position: relative;
70
+
71
+ .close-dialog-button, .dialog-prev-button, .dialog-next-button {
72
+ position: absolute;
73
+
74
+ cursor: pointer;
75
+ background: var(--co-inphoto-loader-background-dark);
76
+ width: 30px;
77
+ height: 30px;
78
+ border-radius: 50%;
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: space-around;
82
+
83
+ .co-icon {
84
+ flex: 1
85
+ }
86
+
87
+ @include cfg.default-icon(var(--co-inphoto-icon-size), var(--co-inphoto-icon-size), var(--co-inphoto-icon-color-light));
88
+ }
89
+
90
+ .close-dialog-button {
91
+ top: 20px;
92
+ right: 20px;
93
+ }
94
+
95
+ .dialog-prev-button {
96
+ left: 20px;
97
+ top: 50%;
98
+ }
99
+
100
+ .dialog-next-button {
101
+ right: 20px;
102
+ top: 50%;
103
+ }
104
+
105
+ .dialog-toolbar {
106
+ position: absolute;
107
+ bottom: 20px;
108
+ right: 20px;
109
+ display: flex;
110
+ gap: 10px;
111
+
112
+ .co-button {
113
+ display: flex;
114
+ cursor: pointer;
115
+ box-sizing: border-box;
116
+ 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
+
122
+ .label {
123
+ margin-left: 10px;
124
+ }
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
+ }
128
+ }
37
129
  }
38
130
 
131
+
39
132
  .large-image {
40
- max-width: 90%;
41
- max-height: 90%;
133
+ max-width: 100%;
134
+ max-height: 100%;
42
135
  object-fit: contain;
136
+ border-radius: var(--co-inphoto-border-radius);
43
137
  }
44
138
  }
45
139
  }
@@ -1,13 +1,25 @@
1
- @import "../../../style/mixin.scss";
1
+ @use '../../../style' as cfg;
2
2
 
3
- @include export-module('co-image-history-theme') {
3
+ @include cfg.export-module('co-image-history-theme') {
4
4
  .co-image-history {
5
- .larger-image-dialog {
6
- background-color: var(--co-inphoto-loader-background-dark);
5
+ .image-history-container {
6
+ background: var(--co-inphoto-dialog-background-color);
7
+ padding: 20px;
8
+ border-radius: var(--co-inphoto-border-radius);
9
+ }
10
+
11
+ .image-history-card {
12
+ border-radius: var(--co-inphoto-border-radius);
13
+ }
7
14
 
8
- .close-dialog-button {
9
- @include default-icon(30px, 30px, #fff);
10
- }
15
+ .scroll-btn {
16
+ background: #ffffff;
17
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
18
+ @include cfg.default-icon(var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-color));
19
+ }
20
+
21
+ .larger-image-dialog {
22
+ background: var(--co-inphoto-loader-background-dark);
11
23
  }
12
24
  }
13
25
  }