@ezpg/app-ui 0.20.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/lib/module/adjust/adjust-template.js +1 -0
  3. package/lib/module/adjust/adjust-template.js.map +1 -1
  4. package/lib/module/adjust/axis-adjust.js +181 -0
  5. package/lib/module/adjust/axis-adjust.js.map +1 -0
  6. package/lib/module/adjust/axis-tabs.js +81 -0
  7. package/lib/module/adjust/axis-tabs.js.map +1 -0
  8. package/lib/module/adjust/axis-wheel.js +286 -0
  9. package/lib/module/adjust/axis-wheel.js.map +1 -0
  10. package/lib/module/adjust/index.js +4 -0
  11. package/lib/module/adjust/index.js.map +1 -1
  12. package/lib/module/adjust/store-sample.js +436 -0
  13. package/lib/module/adjust/store-sample.js.map +1 -0
  14. package/lib/module/blocks/choice-art/choice-art.js +589 -0
  15. package/lib/module/blocks/choice-art/choice-art.js.map +1 -0
  16. package/lib/module/blocks/choice-art/index.js +4 -0
  17. package/lib/module/blocks/choice-art/index.js.map +1 -0
  18. package/lib/module/blocks/color-swatch-picker/color-swatch-picker.js +1 -1
  19. package/lib/module/blocks/detail-editor/compare-slider.js +5 -2
  20. package/lib/module/blocks/detail-editor/compare-slider.js.map +1 -1
  21. package/lib/module/blocks/detail-editor/detail-canvas.js +192 -61
  22. package/lib/module/blocks/detail-editor/detail-canvas.js.map +1 -1
  23. package/lib/module/blocks/detail-editor/detail-types.js +57 -0
  24. package/lib/module/blocks/detail-editor/detail-types.js.map +1 -1
  25. package/lib/module/blocks/detail-editor/draft-preview.js +22 -0
  26. package/lib/module/blocks/detail-editor/draft-preview.js.map +1 -1
  27. package/lib/module/blocks/detail-editor/focus-context.js +1 -0
  28. package/lib/module/blocks/detail-editor/focus-context.js.map +1 -1
  29. package/lib/module/blocks/detail-editor/index.js +2 -2
  30. package/lib/module/blocks/detail-editor/index.js.map +1 -1
  31. package/lib/module/blocks/detail-editor/keep-words.js +34 -0
  32. package/lib/module/blocks/detail-editor/keep-words.js.map +1 -0
  33. package/lib/module/blocks/detail-editor/layout-picker.js +192 -8
  34. package/lib/module/blocks/detail-editor/layout-picker.js.map +1 -1
  35. package/lib/module/blocks/detail-request/detail-request.js +213 -0
  36. package/lib/module/blocks/detail-request/detail-request.js.map +1 -0
  37. package/lib/module/blocks/detail-request/index.js +4 -0
  38. package/lib/module/blocks/detail-request/index.js.map +1 -0
  39. package/lib/module/blocks/detail-studio/action-chips.js +72 -0
  40. package/lib/module/blocks/detail-studio/action-chips.js.map +1 -0
  41. package/lib/module/blocks/detail-studio/adjust-tiles.js +3 -3
  42. package/lib/module/blocks/detail-studio/adjust-tiles.js.map +1 -1
  43. package/lib/module/blocks/detail-studio/asset-grid.js +33 -16
  44. package/lib/module/blocks/detail-studio/asset-grid.js.map +1 -1
  45. package/lib/module/blocks/detail-studio/confirm-row.js +3 -0
  46. package/lib/module/blocks/detail-studio/confirm-row.js.map +1 -1
  47. package/lib/module/blocks/detail-studio/detail-studio-template.js +2 -6
  48. package/lib/module/blocks/detail-studio/detail-studio-template.js.map +1 -1
  49. package/lib/module/blocks/detail-studio/edge-fade.js +74 -0
  50. package/lib/module/blocks/detail-studio/edge-fade.js.map +1 -0
  51. package/lib/module/blocks/detail-studio/image-prompt.js +8 -10
  52. package/lib/module/blocks/detail-studio/image-prompt.js.map +1 -1
  53. package/lib/module/blocks/detail-studio/index.js +7 -5
  54. package/lib/module/blocks/detail-studio/index.js.map +1 -1
  55. package/lib/module/blocks/detail-studio/rewrite-tray.js +17 -64
  56. package/lib/module/blocks/detail-studio/rewrite-tray.js.map +1 -1
  57. package/lib/module/blocks/detail-studio/section-cover.js +41 -0
  58. package/lib/module/blocks/detail-studio/section-cover.js.map +1 -0
  59. package/lib/module/blocks/detail-studio/section-edit-template.js +103 -12
  60. package/lib/module/blocks/detail-studio/section-edit-template.js.map +1 -1
  61. package/lib/module/blocks/detail-studio/section-kind-grid.js +2 -3
  62. package/lib/module/blocks/detail-studio/section-kind-grid.js.map +1 -1
  63. package/lib/module/blocks/detail-studio/section-settings.js +127 -61
  64. package/lib/module/blocks/detail-studio/section-settings.js.map +1 -1
  65. package/lib/module/blocks/detail-studio/studio-bar.js +46 -25
  66. package/lib/module/blocks/detail-studio/studio-bar.js.map +1 -1
  67. package/lib/module/blocks/detail-studio/studio-dock.js +21 -39
  68. package/lib/module/blocks/detail-studio/studio-dock.js.map +1 -1
  69. package/lib/module/blocks/detail-studio/studio-glyphs.js +92 -0
  70. package/lib/module/blocks/detail-studio/studio-glyphs.js.map +1 -0
  71. package/lib/module/blocks/detail-studio/studio-sheet.js +5 -3
  72. package/lib/module/blocks/detail-studio/studio-sheet.js.map +1 -1
  73. package/lib/module/blocks/detail-studio/studio-steps.js +60 -0
  74. package/lib/module/blocks/detail-studio/studio-steps.js.map +1 -0
  75. package/lib/module/blocks/detail-studio/studio-toggle.js +130 -0
  76. package/lib/module/blocks/detail-studio/studio-toggle.js.map +1 -0
  77. package/lib/module/blocks/detail-studio/{photo-tool-bar.js → studio-tools.js} +63 -42
  78. package/lib/module/blocks/detail-studio/studio-tools.js.map +1 -0
  79. package/lib/module/blocks/detail-studio/text-format-panel.js +16 -8
  80. package/lib/module/blocks/detail-studio/text-format-panel.js.map +1 -1
  81. package/lib/module/blocks/index.js +2 -0
  82. package/lib/module/blocks/index.js.map +1 -1
  83. package/lib/module/components/button/button.js +13 -5
  84. package/lib/module/components/button/button.js.map +1 -1
  85. package/lib/module/components/chip/chip.js +5 -1
  86. package/lib/module/components/chip/chip.js.map +1 -1
  87. package/lib/module/components/chip-group/chip-group.js +1 -0
  88. package/lib/module/components/chip-group/chip-group.js.map +1 -1
  89. package/lib/module/components/credit/credit.js +6 -2
  90. package/lib/module/components/credit/credit.js.map +1 -1
  91. package/lib/module/components/dropdown-menu/dropdown-menu.js +9 -4
  92. package/lib/module/components/dropdown-menu/dropdown-menu.js.map +1 -1
  93. package/lib/module/components/page-header/page-header.js +25 -1
  94. package/lib/module/components/page-header/page-header.js.map +1 -1
  95. package/lib/module/components/segmented-control/segmented-control.js +3 -1
  96. package/lib/module/components/segmented-control/segmented-control.js.map +1 -1
  97. package/lib/module/components/skeleton/skeleton.js +4 -2
  98. package/lib/module/components/skeleton/skeleton.js.map +1 -1
  99. package/lib/module/components/slider/slider.js +53 -16
  100. package/lib/module/components/slider/slider.js.map +1 -1
  101. package/lib/module/components/toast/index.js.map +1 -1
  102. package/lib/module/components/toast/toast.js +8 -4
  103. package/lib/module/components/toast/toast.js.map +1 -1
  104. package/lib/module/index.js +1 -1
  105. package/lib/module/index.js.map +1 -1
  106. package/lib/module/internal/glyphs.js +459 -1
  107. package/lib/module/internal/glyphs.js.map +1 -1
  108. package/lib/module/internal/line-icons.js +1 -0
  109. package/lib/module/internal/line-icons.js.map +1 -1
  110. package/lib/module/internal/retry-glyph.js +5 -2
  111. package/lib/module/internal/retry-glyph.js.map +1 -1
  112. package/lib/module/internal/undo-glyph.js +11 -8
  113. package/lib/module/internal/undo-glyph.js.map +1 -1
  114. package/lib/module/sortable/section-board.js +73 -89
  115. package/lib/module/sortable/section-board.js.map +1 -1
  116. package/lib/module/templates/design-pick-template.js +8 -1
  117. package/lib/module/templates/design-pick-template.js.map +1 -1
  118. package/lib/module/templates/index.js +1 -0
  119. package/lib/module/templates/index.js.map +1 -1
  120. package/lib/module/templates/intro-template.js +3 -3
  121. package/lib/module/templates/intro-template.js.map +1 -1
  122. package/lib/module/templates/preview-edit-template.js +422 -0
  123. package/lib/module/templates/preview-edit-template.js.map +1 -0
  124. package/lib/module/templates/result-template.js +2 -1
  125. package/lib/module/templates/result-template.js.map +1 -1
  126. package/lib/typescript/src/adjust/adjust-template.d.ts.map +1 -1
  127. package/lib/typescript/src/adjust/axis-adjust.d.ts +25 -0
  128. package/lib/typescript/src/adjust/axis-adjust.d.ts.map +1 -0
  129. package/lib/typescript/src/adjust/axis-tabs.d.ts +15 -0
  130. package/lib/typescript/src/adjust/axis-tabs.d.ts.map +1 -0
  131. package/lib/typescript/src/adjust/axis-wheel.d.ts +15 -0
  132. package/lib/typescript/src/adjust/axis-wheel.d.ts.map +1 -0
  133. package/lib/typescript/src/adjust/index.d.ts +4 -0
  134. package/lib/typescript/src/adjust/index.d.ts.map +1 -1
  135. package/lib/typescript/src/adjust/store-sample.d.ts +46 -0
  136. package/lib/typescript/src/adjust/store-sample.d.ts.map +1 -0
  137. package/lib/typescript/src/blocks/choice-art/choice-art.d.ts +73 -0
  138. package/lib/typescript/src/blocks/choice-art/choice-art.d.ts.map +1 -0
  139. package/lib/typescript/src/blocks/choice-art/index.d.ts +2 -0
  140. package/lib/typescript/src/blocks/choice-art/index.d.ts.map +1 -0
  141. package/lib/typescript/src/blocks/detail-editor/compare-slider.d.ts +2 -1
  142. package/lib/typescript/src/blocks/detail-editor/compare-slider.d.ts.map +1 -1
  143. package/lib/typescript/src/blocks/detail-editor/detail-canvas.d.ts +3 -1
  144. package/lib/typescript/src/blocks/detail-editor/detail-canvas.d.ts.map +1 -1
  145. package/lib/typescript/src/blocks/detail-editor/detail-types.d.ts +11 -0
  146. package/lib/typescript/src/blocks/detail-editor/detail-types.d.ts.map +1 -1
  147. package/lib/typescript/src/blocks/detail-editor/draft-preview.d.ts +4 -1
  148. package/lib/typescript/src/blocks/detail-editor/draft-preview.d.ts.map +1 -1
  149. package/lib/typescript/src/blocks/detail-editor/focus-context.d.ts +9 -0
  150. package/lib/typescript/src/blocks/detail-editor/focus-context.d.ts.map +1 -1
  151. package/lib/typescript/src/blocks/detail-editor/index.d.ts +3 -2
  152. package/lib/typescript/src/blocks/detail-editor/index.d.ts.map +1 -1
  153. package/lib/typescript/src/blocks/detail-editor/keep-words.d.ts +2 -0
  154. package/lib/typescript/src/blocks/detail-editor/keep-words.d.ts.map +1 -0
  155. package/lib/typescript/src/blocks/detail-editor/layout-picker.d.ts +6 -1
  156. package/lib/typescript/src/blocks/detail-editor/layout-picker.d.ts.map +1 -1
  157. package/lib/typescript/src/blocks/detail-request/detail-request.d.ts +24 -0
  158. package/lib/typescript/src/blocks/detail-request/detail-request.d.ts.map +1 -0
  159. package/lib/typescript/src/blocks/detail-request/index.d.ts +2 -0
  160. package/lib/typescript/src/blocks/detail-request/index.d.ts.map +1 -0
  161. package/lib/typescript/src/blocks/detail-studio/action-chips.d.ts +12 -0
  162. package/lib/typescript/src/blocks/detail-studio/action-chips.d.ts.map +1 -0
  163. package/lib/typescript/src/blocks/detail-studio/asset-grid.d.ts.map +1 -1
  164. package/lib/typescript/src/blocks/detail-studio/confirm-row.d.ts.map +1 -1
  165. package/lib/typescript/src/blocks/detail-studio/detail-studio-template.d.ts.map +1 -1
  166. package/lib/typescript/src/blocks/detail-studio/edge-fade.d.ts +10 -0
  167. package/lib/typescript/src/blocks/detail-studio/edge-fade.d.ts.map +1 -0
  168. package/lib/typescript/src/blocks/detail-studio/image-prompt.d.ts.map +1 -1
  169. package/lib/typescript/src/blocks/detail-studio/index.d.ts +7 -5
  170. package/lib/typescript/src/blocks/detail-studio/index.d.ts.map +1 -1
  171. package/lib/typescript/src/blocks/detail-studio/rewrite-tray.d.ts +3 -3
  172. package/lib/typescript/src/blocks/detail-studio/rewrite-tray.d.ts.map +1 -1
  173. package/lib/typescript/src/blocks/detail-studio/section-cover.d.ts +7 -0
  174. package/lib/typescript/src/blocks/detail-studio/section-cover.d.ts.map +1 -0
  175. package/lib/typescript/src/blocks/detail-studio/section-edit-template.d.ts +9 -0
  176. package/lib/typescript/src/blocks/detail-studio/section-edit-template.d.ts.map +1 -1
  177. package/lib/typescript/src/blocks/detail-studio/section-kind-grid.d.ts.map +1 -1
  178. package/lib/typescript/src/blocks/detail-studio/section-settings.d.ts +11 -13
  179. package/lib/typescript/src/blocks/detail-studio/section-settings.d.ts.map +1 -1
  180. package/lib/typescript/src/blocks/detail-studio/studio-bar.d.ts +6 -2
  181. package/lib/typescript/src/blocks/detail-studio/studio-bar.d.ts.map +1 -1
  182. package/lib/typescript/src/blocks/detail-studio/studio-dock.d.ts +0 -2
  183. package/lib/typescript/src/blocks/detail-studio/studio-dock.d.ts.map +1 -1
  184. package/lib/typescript/src/blocks/detail-studio/studio-glyphs.d.ts +6 -0
  185. package/lib/typescript/src/blocks/detail-studio/studio-glyphs.d.ts.map +1 -0
  186. package/lib/typescript/src/blocks/detail-studio/studio-sheet.d.ts.map +1 -1
  187. package/lib/typescript/src/blocks/detail-studio/studio-steps.d.ts +11 -0
  188. package/lib/typescript/src/blocks/detail-studio/studio-steps.d.ts.map +1 -0
  189. package/lib/typescript/src/blocks/detail-studio/studio-toggle.d.ts +14 -0
  190. package/lib/typescript/src/blocks/detail-studio/studio-toggle.d.ts.map +1 -0
  191. package/lib/typescript/src/blocks/detail-studio/studio-tools.d.ts +19 -0
  192. package/lib/typescript/src/blocks/detail-studio/studio-tools.d.ts.map +1 -0
  193. package/lib/typescript/src/blocks/detail-studio/text-format-panel.d.ts +2 -1
  194. package/lib/typescript/src/blocks/detail-studio/text-format-panel.d.ts.map +1 -1
  195. package/lib/typescript/src/blocks/index.d.ts +2 -0
  196. package/lib/typescript/src/blocks/index.d.ts.map +1 -1
  197. package/lib/typescript/src/components/button/button.d.ts +3 -1
  198. package/lib/typescript/src/components/button/button.d.ts.map +1 -1
  199. package/lib/typescript/src/components/chip/chip.d.ts +2 -1
  200. package/lib/typescript/src/components/chip/chip.d.ts.map +1 -1
  201. package/lib/typescript/src/components/chip-group/chip-group.d.ts +1 -0
  202. package/lib/typescript/src/components/chip-group/chip-group.d.ts.map +1 -1
  203. package/lib/typescript/src/components/credit/credit.d.ts +1 -0
  204. package/lib/typescript/src/components/credit/credit.d.ts.map +1 -1
  205. package/lib/typescript/src/components/dropdown-menu/dropdown-menu.d.ts +2 -0
  206. package/lib/typescript/src/components/dropdown-menu/dropdown-menu.d.ts.map +1 -1
  207. package/lib/typescript/src/components/page-header/page-header.d.ts +1 -0
  208. package/lib/typescript/src/components/page-header/page-header.d.ts.map +1 -1
  209. package/lib/typescript/src/components/segmented-control/segmented-control.d.ts +2 -0
  210. package/lib/typescript/src/components/segmented-control/segmented-control.d.ts.map +1 -1
  211. package/lib/typescript/src/components/skeleton/skeleton.d.ts +2 -1
  212. package/lib/typescript/src/components/skeleton/skeleton.d.ts.map +1 -1
  213. package/lib/typescript/src/components/slider/slider.d.ts +2 -1
  214. package/lib/typescript/src/components/slider/slider.d.ts.map +1 -1
  215. package/lib/typescript/src/components/toast/index.d.ts +1 -1
  216. package/lib/typescript/src/components/toast/index.d.ts.map +1 -1
  217. package/lib/typescript/src/components/toast/toast.d.ts +4 -1
  218. package/lib/typescript/src/components/toast/toast.d.ts.map +1 -1
  219. package/lib/typescript/src/index.d.ts +1 -1
  220. package/lib/typescript/src/index.d.ts.map +1 -1
  221. package/lib/typescript/src/internal/glyphs.d.ts +13 -0
  222. package/lib/typescript/src/internal/glyphs.d.ts.map +1 -1
  223. package/lib/typescript/src/internal/line-icons.d.ts +1 -0
  224. package/lib/typescript/src/internal/line-icons.d.ts.map +1 -1
  225. package/lib/typescript/src/internal/retry-glyph.d.ts.map +1 -1
  226. package/lib/typescript/src/internal/undo-glyph.d.ts.map +1 -1
  227. package/lib/typescript/src/sortable/section-board.d.ts.map +1 -1
  228. package/lib/typescript/src/templates/design-pick-template.d.ts.map +1 -1
  229. package/lib/typescript/src/templates/index.d.ts +2 -0
  230. package/lib/typescript/src/templates/index.d.ts.map +1 -1
  231. package/lib/typescript/src/templates/intro-template.d.ts.map +1 -1
  232. package/lib/typescript/src/templates/preview-edit-template.d.ts +39 -0
  233. package/lib/typescript/src/templates/preview-edit-template.d.ts.map +1 -0
  234. package/lib/typescript/src/templates/result-template.d.ts +2 -1
  235. package/lib/typescript/src/templates/result-template.d.ts.map +1 -1
  236. package/package.json +1 -1
  237. package/src/adjust/adjust-template.tsx +1 -0
  238. package/src/adjust/axis-adjust.tsx +206 -0
  239. package/src/adjust/axis-tabs.tsx +81 -0
  240. package/src/adjust/axis-wheel.tsx +309 -0
  241. package/src/adjust/index.ts +15 -0
  242. package/src/adjust/store-sample.tsx +519 -0
  243. package/src/blocks/choice-art/choice-art.tsx +500 -0
  244. package/src/blocks/choice-art/index.ts +29 -0
  245. package/src/blocks/color-swatch-picker/color-swatch-picker.tsx +1 -1
  246. package/src/blocks/detail-editor/compare-slider.tsx +3 -1
  247. package/src/blocks/detail-editor/detail-canvas.tsx +264 -69
  248. package/src/blocks/detail-editor/detail-types.ts +37 -0
  249. package/src/blocks/detail-editor/draft-preview.tsx +46 -2
  250. package/src/blocks/detail-editor/focus-context.ts +13 -0
  251. package/src/blocks/detail-editor/index.ts +11 -1
  252. package/src/blocks/detail-editor/keep-words.ts +36 -0
  253. package/src/blocks/detail-editor/layout-picker.tsx +188 -6
  254. package/src/blocks/detail-request/detail-request.tsx +198 -0
  255. package/src/blocks/detail-request/index.ts +11 -0
  256. package/src/blocks/detail-studio/action-chips.tsx +77 -0
  257. package/src/blocks/detail-studio/adjust-tiles.tsx +3 -3
  258. package/src/blocks/detail-studio/asset-grid.tsx +30 -16
  259. package/src/blocks/detail-studio/confirm-row.tsx +3 -0
  260. package/src/blocks/detail-studio/detail-studio-template.tsx +2 -6
  261. package/src/blocks/detail-studio/edge-fade.tsx +76 -0
  262. package/src/blocks/detail-studio/image-prompt.tsx +6 -9
  263. package/src/blocks/detail-studio/index.ts +19 -16
  264. package/src/blocks/detail-studio/rewrite-tray.tsx +16 -56
  265. package/src/blocks/detail-studio/section-cover.tsx +44 -0
  266. package/src/blocks/detail-studio/section-edit-template.tsx +138 -13
  267. package/src/blocks/detail-studio/section-kind-grid.tsx +2 -2
  268. package/src/blocks/detail-studio/section-settings.tsx +124 -69
  269. package/src/blocks/detail-studio/studio-bar.tsx +61 -41
  270. package/src/blocks/detail-studio/studio-dock.tsx +19 -37
  271. package/src/blocks/detail-studio/studio-glyphs.tsx +77 -0
  272. package/src/blocks/detail-studio/studio-sheet.tsx +7 -3
  273. package/src/blocks/detail-studio/studio-steps.tsx +58 -0
  274. package/src/blocks/detail-studio/studio-toggle.tsx +130 -0
  275. package/src/blocks/detail-studio/studio-tools.tsx +126 -0
  276. package/src/blocks/detail-studio/text-format-panel.tsx +26 -14
  277. package/src/blocks/index.tsx +2 -0
  278. package/src/components/button/button.tsx +12 -5
  279. package/src/components/chip/chip.tsx +9 -1
  280. package/src/components/chip-group/chip-group.tsx +2 -0
  281. package/src/components/credit/credit.tsx +9 -2
  282. package/src/components/dropdown-menu/dropdown-menu.tsx +18 -7
  283. package/src/components/page-header/page-header.tsx +28 -1
  284. package/src/components/segmented-control/segmented-control.tsx +10 -2
  285. package/src/components/skeleton/skeleton.tsx +5 -2
  286. package/src/components/slider/slider.tsx +66 -14
  287. package/src/components/toast/index.ts +1 -0
  288. package/src/components/toast/toast.tsx +12 -4
  289. package/src/index.tsx +13 -0
  290. package/src/internal/glyphs.tsx +411 -0
  291. package/src/internal/line-icons.ts +2 -0
  292. package/src/internal/retry-glyph.tsx +7 -2
  293. package/src/internal/undo-glyph.tsx +12 -11
  294. package/src/sortable/section-board.tsx +71 -76
  295. package/src/templates/design-pick-template.tsx +9 -1
  296. package/src/templates/index.ts +7 -0
  297. package/src/templates/intro-template.tsx +14 -12
  298. package/src/templates/preview-edit-template.tsx +467 -0
  299. package/src/templates/result-template.tsx +3 -0
  300. package/lib/module/blocks/detail-studio/keyboard-bar.js +0 -67
  301. package/lib/module/blocks/detail-studio/keyboard-bar.js.map +0 -1
  302. package/lib/module/blocks/detail-studio/photo-tool-bar.js.map +0 -1
  303. package/lib/module/blocks/detail-studio/section-thumb.js +0 -49
  304. package/lib/module/blocks/detail-studio/section-thumb.js.map +0 -1
  305. package/lib/typescript/src/blocks/detail-studio/keyboard-bar.d.ts +0 -18
  306. package/lib/typescript/src/blocks/detail-studio/keyboard-bar.d.ts.map +0 -1
  307. package/lib/typescript/src/blocks/detail-studio/photo-tool-bar.d.ts +0 -19
  308. package/lib/typescript/src/blocks/detail-studio/photo-tool-bar.d.ts.map +0 -1
  309. package/lib/typescript/src/blocks/detail-studio/section-thumb.d.ts +0 -14
  310. package/lib/typescript/src/blocks/detail-studio/section-thumb.d.ts.map +0 -1
  311. package/src/blocks/detail-studio/keyboard-bar.tsx +0 -73
  312. package/src/blocks/detail-studio/photo-tool-bar.tsx +0 -100
  313. package/src/blocks/detail-studio/section-thumb.tsx +0 -41
@@ -0,0 +1,500 @@
1
+ import { Text as RNText, View, type ViewStyle } from 'react-native';
2
+ import { CheckGlyph, ChevronGlyph, CloseGlyph } from '../../internal/glyphs';
3
+ import { haptic } from '../../internal/haptics';
4
+ import { PressableBase } from '../../internal/pressable-base';
5
+ import { useTheme } from '../../theme/theme-provider';
6
+ import { makeStyles } from '../../utils/styles';
7
+
8
+ export type ColumnsArtProps = { count: number; color: string };
9
+
10
+ export type RatioArtProps = { width: number; height: number; color: string };
11
+
12
+ export type LevelsArtProps = { levels: readonly number[]; color: string };
13
+
14
+ export type SlashArtProps = { color: string };
15
+
16
+ export type PlacementSpot = 'center' | 'corner' | 'band';
17
+
18
+ export type PlacementArtProps = {
19
+ spot: PlacementSpot;
20
+ color: string;
21
+ scale?: number;
22
+ dim?: boolean;
23
+ };
24
+
25
+ export type PlacementThumbProps = {
26
+ spot: PlacementSpot;
27
+ scale?: number;
28
+ dim?: boolean;
29
+ };
30
+
31
+ export type FooterArtProps = { text: boolean; color: string };
32
+
33
+ export type SampleArtProps = { text: string; color: string; strike?: boolean };
34
+
35
+ export type FieldArtProps = { shown: boolean; color: string };
36
+
37
+ export type FoldArtProps = { open: boolean; color: string };
38
+
39
+ export type ButtonArtProps = { text: number; color: string };
40
+
41
+ export type ChoiceChip = {
42
+ key: string;
43
+ label: string;
44
+ selected: boolean;
45
+ disabled?: boolean;
46
+ onPress: () => void;
47
+ };
48
+
49
+ export type ChoiceChipsProps = { items: readonly ChoiceChip[] };
50
+
51
+ const useStyles = makeStyles((t) => ({
52
+ box: {
53
+ width: t.space[10],
54
+ height: t.space[6],
55
+ flexDirection: 'row',
56
+ gap: t.space[1],
57
+ },
58
+ levels: {
59
+ width: t.space[10],
60
+ height: t.space[6],
61
+ flexDirection: 'row',
62
+ alignItems: 'flex-end',
63
+ justifyContent: 'center',
64
+ gap: t.space[1],
65
+ },
66
+ bar: { flex: 1, borderRadius: t.space[1] / 2 },
67
+ level: { width: t.space[2], borderRadius: t.space[1] / 2 },
68
+ ratio: {
69
+ height: t.space[8],
70
+ alignItems: 'center',
71
+ justifyContent: 'center',
72
+ },
73
+ frame: { height: t.space[8], borderRadius: t.space[1] / 2 },
74
+ sample: {
75
+ fontFamily: t.fontFamily,
76
+ fontSize: t.typography.label.fontSize,
77
+ lineHeight: t.space[6],
78
+ fontWeight: '600',
79
+ },
80
+ strike: { textDecorationLine: 'line-through' },
81
+ thumb: {
82
+ width: t.space[10] + t.space[2],
83
+ height: t.space[12] + t.space[2],
84
+ alignItems: 'center',
85
+ justifyContent: 'center',
86
+ borderRadius: t.radius.md,
87
+ backgroundColor: t.colors.recess,
88
+ },
89
+ thumbPhone: { width: t.space[6], height: t.space[10] },
90
+ pair: {
91
+ flexDirection: 'row',
92
+ alignItems: 'flex-end',
93
+ gap: t.space[1] + t.space[1] / 2,
94
+ },
95
+ web: { width: t.space[12], height: t.space[8] },
96
+ phone: { width: t.space[4], height: t.space[8] },
97
+ outline: {
98
+ position: 'absolute',
99
+ left: 0,
100
+ right: 0,
101
+ top: 0,
102
+ bottom: 0,
103
+ borderWidth: 1.5,
104
+ borderRadius: t.space[1],
105
+ opacity: 0.55,
106
+ },
107
+ shade: {
108
+ position: 'absolute',
109
+ left: 0,
110
+ right: 0,
111
+ top: 0,
112
+ bottom: 0,
113
+ borderRadius: t.space[1],
114
+ opacity: 0.22,
115
+ },
116
+ spot: { position: 'absolute', borderRadius: t.space[1] / 2 },
117
+ footer: {
118
+ width: t.space[12],
119
+ height: t.space[6],
120
+ flexDirection: 'row',
121
+ alignItems: 'center',
122
+ justifyContent: 'flex-end',
123
+ gap: t.space[2],
124
+ paddingHorizontal: t.space[1],
125
+ borderTopWidth: 1.5,
126
+ },
127
+ footerText: {
128
+ flex: 1,
129
+ height: t.space[1],
130
+ borderRadius: t.space[1],
131
+ },
132
+ slash: {
133
+ width: t.space[6],
134
+ height: t.space[6],
135
+ alignItems: 'center',
136
+ justifyContent: 'center',
137
+ borderWidth: 1.5,
138
+ borderRadius: t.space[1] / 2,
139
+ overflow: 'hidden',
140
+ },
141
+ slashLine: {
142
+ width: t.space[8],
143
+ height: 1.5,
144
+ transform: [{ rotate: '-45deg' }],
145
+ },
146
+ form: {
147
+ width: t.space[12],
148
+ height: t.space[8],
149
+ gap: t.space[1],
150
+ },
151
+ field: {
152
+ flex: 1,
153
+ justifyContent: 'center',
154
+ paddingHorizontal: t.space[1],
155
+ borderWidth: 1.5,
156
+ borderRadius: t.space[1] / 2,
157
+ },
158
+ fieldGone: { borderStyle: 'dashed', opacity: 0.45 },
159
+ ink: { width: '50%', height: t.space[1] / 2, borderRadius: t.space[1] },
160
+ fold: {
161
+ width: t.space[12],
162
+ height: t.space[8],
163
+ gap: t.space[1],
164
+ },
165
+ foldHead: {
166
+ height: t.space[3] + t.space[1] / 2,
167
+ flexDirection: 'row',
168
+ alignItems: 'center',
169
+ gap: t.space[1],
170
+ paddingHorizontal: t.space[1],
171
+ borderWidth: 1.5,
172
+ borderRadius: t.space[1] / 2,
173
+ },
174
+ foldBody: {
175
+ flex: 1,
176
+ justifyContent: 'center',
177
+ gap: t.space[1] / 2,
178
+ paddingHorizontal: t.space[1],
179
+ borderRadius: t.space[1] / 2,
180
+ },
181
+ foldEdge: { borderWidth: 1.5 },
182
+ grow: { flex: 1 },
183
+ button: {
184
+ width: t.space[12] + t.space[2],
185
+ height: t.space[5],
186
+ alignItems: 'center',
187
+ justifyContent: 'center',
188
+ borderWidth: 1.5,
189
+ borderRadius: t.radius.full,
190
+ },
191
+ buttonText: { height: t.space[1] / 2, borderRadius: t.space[1] },
192
+ paper: {
193
+ width: t.space[6] + t.space[1],
194
+ height: t.space[10],
195
+ justifyContent: 'flex-end',
196
+ gap: t.space[1] / 2,
197
+ padding: t.space[1],
198
+ borderRadius: t.space[1] / 2,
199
+ backgroundColor: t.colors.surface,
200
+ },
201
+ paperLine: {
202
+ height: t.space[1],
203
+ borderRadius: t.space[1],
204
+ backgroundColor: t.colors.border,
205
+ },
206
+ paperShort: { width: '60%' },
207
+ paperButton: {
208
+ height: t.space[1],
209
+ marginTop: t.space[1],
210
+ borderRadius: t.space[1],
211
+ backgroundColor: t.colors.faint,
212
+ },
213
+ chips: { flexDirection: 'row', flexWrap: 'wrap', gap: t.space[2] },
214
+ chip: {
215
+ height: t.space[8] + t.space[1],
216
+ flexDirection: 'row',
217
+ alignItems: 'center',
218
+ gap: t.space[1],
219
+ paddingHorizontal: t.space[3],
220
+ borderRadius: t.radius.full,
221
+ borderWidth: 1.5,
222
+ borderColor: t.colors.line,
223
+ backgroundColor: t.colors.surface,
224
+ },
225
+ chipOn: {
226
+ borderColor: t.colors.primaryEdge,
227
+ backgroundColor: t.colors.selectSurface,
228
+ },
229
+ chipLabel: {
230
+ fontFamily: t.fontFamily,
231
+ fontSize: t.typography.eyebrow.fontSize,
232
+ lineHeight: t.typography.eyebrow.lineHeight,
233
+ fontWeight: '400',
234
+ color: t.colors.title,
235
+ },
236
+ chipLabelOn: { fontWeight: '600', color: t.colors.selectForeground },
237
+ }));
238
+
239
+ export function ColumnsArt({ count, color }: ColumnsArtProps) {
240
+ const s = useStyles();
241
+ return (
242
+ <View style={s.box}>
243
+ {Array.from({ length: count }, (_, i) => (
244
+ <View key={i} style={[s.bar, { backgroundColor: color }]} />
245
+ ))}
246
+ </View>
247
+ );
248
+ }
249
+
250
+ export function RatioArt({ width, height, color }: RatioArtProps) {
251
+ const s = useStyles();
252
+ return (
253
+ <View style={s.ratio}>
254
+ <View
255
+ style={[
256
+ s.frame,
257
+ { aspectRatio: width / height, backgroundColor: color },
258
+ ]}
259
+ />
260
+ </View>
261
+ );
262
+ }
263
+
264
+ export function LevelsArt({ levels, color }: LevelsArtProps) {
265
+ const s = useStyles();
266
+ const top = Math.max(1, ...levels);
267
+ return (
268
+ <View style={s.levels}>
269
+ {levels.map((level, i) => (
270
+ <View
271
+ key={i}
272
+ style={[
273
+ s.level,
274
+ { height: `${(level / top) * 100}%`, backgroundColor: color },
275
+ ]}
276
+ />
277
+ ))}
278
+ </View>
279
+ );
280
+ }
281
+
282
+ export function SampleArt({ text, color, strike }: SampleArtProps) {
283
+ const t = useTheme();
284
+ const s = useStyles();
285
+ return (
286
+ <RNText
287
+ numberOfLines={1}
288
+ maxFontSizeMultiplier={t.maxFontScale}
289
+ style={[s.sample, strike && s.strike, { color }]}
290
+ >
291
+ {text}
292
+ </RNText>
293
+ );
294
+ }
295
+
296
+ export function SlashArt({ color }: SlashArtProps) {
297
+ const s = useStyles();
298
+ return (
299
+ <View style={[s.slash, { borderColor: color }]}>
300
+ <View style={[s.slashLine, { backgroundColor: color }]} />
301
+ </View>
302
+ );
303
+ }
304
+
305
+ const EDGE = 3;
306
+
307
+ function spotBox(
308
+ spot: PlacementSpot,
309
+ phone: boolean,
310
+ scale: number
311
+ ): ViewStyle {
312
+ const grow = (n: number) => `${Math.min(100, n * scale)}%` as const;
313
+ if (spot === 'band') {
314
+ return { left: 0, right: 0, bottom: 0, height: grow(22) };
315
+ }
316
+ if (spot === 'corner') {
317
+ return phone
318
+ ? { left: 0, right: 0, bottom: 0, height: grow(36) }
319
+ : { right: EDGE, bottom: EDGE, width: grow(32), height: grow(50) };
320
+ }
321
+ const width = phone ? 78 * Math.min(1, scale) : 40 * scale;
322
+ const height = phone ? 38 * scale : 46 * scale;
323
+ return {
324
+ left: `${(100 - Math.min(100, width)) / 2}%`,
325
+ top: `${(100 - Math.min(100, height)) / 2}%`,
326
+ width: `${Math.min(100, width)}%`,
327
+ height: `${Math.min(100, height)}%`,
328
+ };
329
+ }
330
+
331
+ function Screen({
332
+ phone,
333
+ spot,
334
+ color,
335
+ scale,
336
+ dim,
337
+ style,
338
+ }: Required<PlacementArtProps> & { phone: boolean; style?: ViewStyle }) {
339
+ const s = useStyles();
340
+ return (
341
+ <View style={style ?? (phone ? s.phone : s.web)}>
342
+ {dim ? <View style={[s.shade, { backgroundColor: color }]} /> : null}
343
+ <View style={[s.outline, { borderColor: color }]} />
344
+ <View
345
+ style={[
346
+ s.spot,
347
+ spotBox(spot, phone, scale),
348
+ { backgroundColor: color },
349
+ ]}
350
+ />
351
+ </View>
352
+ );
353
+ }
354
+
355
+ export function PlacementArt({
356
+ spot,
357
+ color,
358
+ scale = 1,
359
+ dim = false,
360
+ }: PlacementArtProps) {
361
+ const s = useStyles();
362
+ return (
363
+ <View style={s.pair}>
364
+ <Screen phone={false} spot={spot} color={color} scale={scale} dim={dim} />
365
+ <Screen phone spot={spot} color={color} scale={scale} dim={dim} />
366
+ </View>
367
+ );
368
+ }
369
+
370
+ export function FooterArt({ text, color }: FooterArtProps) {
371
+ const t = useTheme();
372
+ const s = useStyles();
373
+ return (
374
+ <View style={[s.footer, { borderTopColor: color }]}>
375
+ {text ? (
376
+ <View style={[s.footerText, { backgroundColor: color }]} />
377
+ ) : null}
378
+ <CloseGlyph color={color} size={t.iconSize.sm} />
379
+ </View>
380
+ );
381
+ }
382
+
383
+ export function PlacementThumb({
384
+ spot,
385
+ scale = 1,
386
+ dim = false,
387
+ }: PlacementThumbProps) {
388
+ const t = useTheme();
389
+ const s = useStyles();
390
+ return (
391
+ <View style={s.thumb}>
392
+ <Screen
393
+ phone
394
+ spot={spot}
395
+ color={t.colors.faint}
396
+ scale={scale}
397
+ dim={dim}
398
+ style={s.thumbPhone}
399
+ />
400
+ </View>
401
+ );
402
+ }
403
+
404
+ export function FieldArt({ shown, color }: FieldArtProps) {
405
+ const s = useStyles();
406
+ return (
407
+ <View style={s.form}>
408
+ <View style={[s.field, { borderColor: color }]}>
409
+ <View style={[s.ink, { backgroundColor: color }]} />
410
+ </View>
411
+ <View style={[s.field, !shown && s.fieldGone, { borderColor: color }]}>
412
+ {shown ? <View style={[s.ink, { backgroundColor: color }]} /> : null}
413
+ </View>
414
+ </View>
415
+ );
416
+ }
417
+
418
+ export function FoldArt({ open, color }: FoldArtProps) {
419
+ const t = useTheme();
420
+ const s = useStyles();
421
+ return (
422
+ <View style={s.fold}>
423
+ <View style={[s.foldHead, { borderColor: color }]}>
424
+ <View style={[s.grow, s.ink, { backgroundColor: color }]} />
425
+ <View style={{ transform: [{ rotate: open ? '-90deg' : '90deg' }] }}>
426
+ <ChevronGlyph color={color} size={t.space[2]} />
427
+ </View>
428
+ </View>
429
+ {open ? (
430
+ <View style={[s.foldBody, s.foldEdge, { borderColor: color }]}>
431
+ <View style={[s.ink, { backgroundColor: color }]} />
432
+ <View style={[s.ink, { width: '30%', backgroundColor: color }]} />
433
+ </View>
434
+ ) : null}
435
+ </View>
436
+ );
437
+ }
438
+
439
+ export function ButtonArt({ text, color }: ButtonArtProps) {
440
+ const s = useStyles();
441
+ const width = `${Math.round(Math.min(1, Math.max(0, text)) * 100)}%` as const;
442
+ return (
443
+ <View style={[s.button, { borderColor: color }]}>
444
+ <View style={[s.buttonText, { width, backgroundColor: color }]} />
445
+ </View>
446
+ );
447
+ }
448
+
449
+ export function FormThumb() {
450
+ const s = useStyles();
451
+ return (
452
+ <View style={s.thumb}>
453
+ <View style={s.paper}>
454
+ <View style={s.paperLine} />
455
+ <View style={s.paperLine} />
456
+ <View style={s.paperLine} />
457
+ <View style={[s.paperLine, s.paperShort]} />
458
+ <View style={s.paperButton} />
459
+ </View>
460
+ </View>
461
+ );
462
+ }
463
+
464
+ export function ChoiceChips({ items }: ChoiceChipsProps) {
465
+ const t = useTheme();
466
+ const s = useStyles();
467
+ return (
468
+ <View style={s.chips}>
469
+ {items.map((item) => (
470
+ <PressableBase
471
+ key={item.key}
472
+ accessibilityRole="checkbox"
473
+ accessibilityLabel={item.label}
474
+ accessibilityState={{
475
+ checked: item.selected,
476
+ disabled: item.disabled,
477
+ }}
478
+ feedback="small"
479
+ disabled={item.disabled}
480
+ onPress={() => {
481
+ haptic('select');
482
+ item.onPress();
483
+ }}
484
+ style={[s.chip, item.selected && s.chipOn]}
485
+ >
486
+ {item.selected ? (
487
+ <CheckGlyph color={t.colors.primaryEdge} size={t.iconSize.sm} />
488
+ ) : null}
489
+ <RNText
490
+ numberOfLines={1}
491
+ maxFontSizeMultiplier={t.maxFontScale}
492
+ style={[s.chipLabel, item.selected && s.chipLabelOn]}
493
+ >
494
+ {item.label}
495
+ </RNText>
496
+ </PressableBase>
497
+ ))}
498
+ </View>
499
+ );
500
+ }
@@ -0,0 +1,29 @@
1
+ export {
2
+ ButtonArt,
3
+ ChoiceChips,
4
+ ColumnsArt,
5
+ FieldArt,
6
+ FoldArt,
7
+ FormThumb,
8
+ FooterArt,
9
+ PlacementArt,
10
+ PlacementThumb,
11
+ LevelsArt,
12
+ RatioArt,
13
+ SampleArt,
14
+ SlashArt,
15
+ type ButtonArtProps,
16
+ type ChoiceChip,
17
+ type ChoiceChipsProps,
18
+ type ColumnsArtProps,
19
+ type FieldArtProps,
20
+ type FoldArtProps,
21
+ type FooterArtProps,
22
+ type PlacementArtProps,
23
+ type PlacementThumbProps,
24
+ type PlacementSpot,
25
+ type LevelsArtProps,
26
+ type RatioArtProps,
27
+ type SampleArtProps,
28
+ type SlashArtProps,
29
+ } from './choice-art';
@@ -20,7 +20,7 @@ const DOT = 40;
20
20
  const GRID = 44;
21
21
  const MARK = 18;
22
22
  const RING = 2;
23
- const RING_GAP = 3;
23
+ const RING_GAP = 4;
24
24
 
25
25
  const useStyles = makeStyles((t) => ({
26
26
  wrap: { flexDirection: 'row', flexWrap: 'wrap', gap: t.space[3] },
@@ -18,6 +18,7 @@ export type CompareSliderProps = {
18
18
  aspectRatio?: number;
19
19
  label?: string;
20
20
  labels?: { before: string; after: string };
21
+ inset?: number;
21
22
  };
22
23
 
23
24
  const STEP = 0.1;
@@ -80,6 +81,7 @@ export function CompareSlider({
80
81
  aspectRatio = 4 / 5,
81
82
  label = '원본과 비교',
82
83
  labels,
84
+ inset = 0,
83
85
  }: CompareSliderProps) {
84
86
  const t = useTheme();
85
87
  const s = useStyles();
@@ -134,7 +136,7 @@ export function CompareSlider({
134
136
  style={[s.fill, { width }]}
135
137
  />
136
138
  </View>
137
- <View style={[s.line, { left: x - 1 }]} />
139
+ <View style={[s.line, { left: x - 1, top: inset, bottom: inset }]} />
138
140
  <View style={[s.knob, { left: x - knob / 2 }]}>
139
141
  <View style={s.flip}>
140
142
  <ChevronGlyph color={t.colors.title} size={t.space[3]} />