@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,467 @@
1
+ import { useState, type ReactNode } from 'react';
2
+ import { Text as RNText, View, type LayoutChangeEvent } from 'react-native';
3
+ import Animated, {
4
+ interpolateColor,
5
+ useAnimatedStyle,
6
+ } from 'react-native-reanimated';
7
+ import { HeaderButton } from '../components/page-header/page-header';
8
+ import { Text } from '../components/text/text';
9
+ import { ToastHost } from '../components/toast/toast';
10
+ import { ChevronGlyph, MobileGlyph, MonitorGlyph } from '../internal/glyphs';
11
+ import { haptic } from '../internal/haptics';
12
+ import { renderIcon, type IconSlot } from '../internal/icon';
13
+ import { useSwitch } from '../internal/motion';
14
+ import { PressableBase } from '../internal/pressable-base';
15
+ import { SteadyText } from '../internal/steady-text';
16
+ import { useSlide } from '../internal/use-slide';
17
+ import { useTheme } from '../theme/theme-provider';
18
+ import { makeStyles } from '../utils/styles';
19
+ import { HeaderIconButton, type TemplateAction } from './parts';
20
+
21
+ export type PreviewDevice = 'web' | 'mobile';
22
+
23
+ export type PreviewEditChoice = {
24
+ key: string;
25
+ label: string;
26
+ art?: IconSlot;
27
+ selected: boolean;
28
+ disabled?: boolean;
29
+ onPress: () => void;
30
+ };
31
+
32
+ export type PreviewEditTool = {
33
+ key: string;
34
+ label: string;
35
+ icon: IconSlot;
36
+ disabled?: boolean;
37
+ };
38
+
39
+ export type PreviewEditTemplateProps = {
40
+ title: string;
41
+ saveAction: TemplateAction;
42
+ onBack?: () => void;
43
+ backLabel?: string;
44
+ device: PreviewDevice;
45
+ onDeviceChange: (device: PreviewDevice) => void;
46
+ deviceNotes?: Partial<Record<PreviewDevice, string>>;
47
+ compareLabel?: string;
48
+ onCompareChange?: (comparing: boolean) => void;
49
+ children: ReactNode;
50
+ choices?: readonly PreviewEditChoice[];
51
+ tray?: ReactNode;
52
+ tools: readonly PreviewEditTool[];
53
+ tool: string;
54
+ onToolChange: (key: string) => void;
55
+ topInset?: number;
56
+ bottomInset?: number;
57
+ };
58
+
59
+ const DEVICES: readonly {
60
+ value: PreviewDevice;
61
+ label: string;
62
+ icon: IconSlot;
63
+ }[] = [
64
+ { value: 'web', label: '웹', icon: MonitorGlyph },
65
+ { value: 'mobile', label: '모바일', icon: MobileGlyph },
66
+ ];
67
+
68
+ const EDGE = 1.5;
69
+
70
+ const useStyles = makeStyles((t) => ({
71
+ root: { flex: 1, backgroundColor: t.colors.background },
72
+ head: {
73
+ height: t.headerHeight,
74
+ flexDirection: 'row',
75
+ alignItems: 'center',
76
+ paddingLeft: t.space[1],
77
+ paddingRight: t.space[2],
78
+ },
79
+ title: { flex: 1 },
80
+ titleAlone: { paddingLeft: t.space[4] },
81
+ row: {
82
+ flexDirection: 'row',
83
+ alignItems: 'center',
84
+ justifyContent: 'space-between',
85
+ paddingHorizontal: t.layout.groupGap,
86
+ paddingBottom: t.space[2],
87
+ },
88
+ segment: {
89
+ height: t.space[10],
90
+ flexDirection: 'row',
91
+ padding: t.space[1],
92
+ borderRadius: t.radius.full,
93
+ backgroundColor: t.colors.border,
94
+ },
95
+ option: {
96
+ flexDirection: 'row',
97
+ alignItems: 'center',
98
+ justifyContent: 'center',
99
+ gap: t.space[1],
100
+ minWidth: t.space[16],
101
+ paddingHorizontal: t.space[3],
102
+ borderRadius: t.radius.full,
103
+ },
104
+ thumb: {
105
+ position: 'absolute',
106
+ left: 0,
107
+ top: 0,
108
+ borderRadius: t.radius.full,
109
+ backgroundColor: t.colors.surface,
110
+ boxShadow: t.shadow.sm,
111
+ },
112
+ optionLabel: {
113
+ fontFamily: t.fontFamily,
114
+ fontSize: t.typography.eyebrow.fontSize,
115
+ lineHeight: t.typography.eyebrow.lineHeight,
116
+ fontWeight: '500',
117
+ color: t.colors.mutedForeground,
118
+ },
119
+ strong: { fontWeight: '600' },
120
+ note: {
121
+ fontFamily: t.fontFamily,
122
+ fontSize: t.typography.eyebrow.fontSize,
123
+ lineHeight: t.typography.eyebrow.lineHeight,
124
+ fontWeight: '500',
125
+ color: t.colors.faint,
126
+ },
127
+ noteOn: { color: t.colors.primary },
128
+ compare: {
129
+ height: t.space[8],
130
+ justifyContent: 'center',
131
+ paddingHorizontal: t.space[3],
132
+ borderRadius: t.radius.full,
133
+ borderWidth: EDGE,
134
+ borderColor: t.colors.surface,
135
+ backgroundColor: t.colors.surface,
136
+ boxShadow: t.shadow.sm,
137
+ },
138
+ compareOn: {
139
+ borderColor: t.colors.primaryEdge,
140
+ backgroundColor: t.colors.selectSurface,
141
+ },
142
+ compareLabelOn: { color: t.colors.selectForeground },
143
+ card: {
144
+ flex: 1,
145
+ minHeight: 0,
146
+ marginHorizontal: t.layout.groupGap,
147
+ borderRadius: t.radius.lg,
148
+ backgroundColor: t.colors.surface,
149
+ boxShadow: t.shadow.lift,
150
+ },
151
+ stage: { flex: 1, borderRadius: t.radius.lg, overflow: 'hidden' },
152
+ bar: {
153
+ marginTop: t.space[3],
154
+ marginHorizontal: t.layout.groupGap,
155
+ paddingTop: t.space[3],
156
+ paddingHorizontal: t.space[3],
157
+ borderRadius: t.radius.xl,
158
+ backgroundColor: t.colors.surface,
159
+ boxShadow: t.shadow.md,
160
+ },
161
+ choices: {
162
+ height: t.space[16] + t.space[5],
163
+ flexDirection: 'row',
164
+ gap: t.space[2],
165
+ },
166
+ tile: {
167
+ flex: 1,
168
+ alignItems: 'center',
169
+ justifyContent: 'center',
170
+ gap: t.space[2],
171
+ borderRadius: t.radius.lg,
172
+ borderWidth: EDGE,
173
+ borderColor: t.colors.background,
174
+ backgroundColor: t.colors.background,
175
+ },
176
+ tileOn: {
177
+ borderColor: t.colors.primaryEdge,
178
+ backgroundColor: t.colors.selectSurface,
179
+ },
180
+ tileLabel: {
181
+ fontFamily: t.fontFamily,
182
+ fontSize: t.typography.eyebrow.fontSize,
183
+ lineHeight: t.typography.eyebrow.lineHeight,
184
+ fontWeight: '400',
185
+ color: t.colors.title,
186
+ },
187
+ tileLabelOn: { fontWeight: '600', color: t.colors.selectForeground },
188
+ tabs: {
189
+ flexDirection: 'row',
190
+ marginTop: t.space[2],
191
+ borderTopWidth: 1,
192
+ borderTopColor: t.colors.line,
193
+ },
194
+ tabOff: { opacity: 1 },
195
+ tab: {
196
+ flex: 1,
197
+ minHeight: t.space[16],
198
+ alignItems: 'center',
199
+ justifyContent: 'center',
200
+ gap: t.space[1],
201
+ },
202
+ }));
203
+
204
+ function DeviceOption({
205
+ label,
206
+ icon,
207
+ note,
208
+ selected,
209
+ onPress,
210
+ onLayout,
211
+ }: {
212
+ label: string;
213
+ icon: IconSlot;
214
+ note?: string;
215
+ selected: boolean;
216
+ onPress: () => void;
217
+ onLayout: (event: LayoutChangeEvent) => void;
218
+ }) {
219
+ const t = useTheme();
220
+ const s = useStyles();
221
+ const on = useSwitch(selected, 'base');
222
+ const idle = t.colors.mutedForeground;
223
+ const ink = t.colors.title;
224
+ const tone = useAnimatedStyle(() => ({
225
+ color: interpolateColor(on.value, [0, 1], [idle, ink]),
226
+ }));
227
+ return (
228
+ <PressableBase
229
+ accessibilityRole="tab"
230
+ accessibilityState={{ selected }}
231
+ accessibilityLabel={note ? `${label} ${note}` : label}
232
+ feedback="none"
233
+ onPress={onPress}
234
+ onLayout={onLayout}
235
+ style={s.option}
236
+ >
237
+ {renderIcon(icon, {
238
+ color: selected ? ink : idle,
239
+ size: t.iconSize.sm,
240
+ })}
241
+ <SteadyText
242
+ selected={selected}
243
+ style={s.optionLabel}
244
+ strongStyle={s.strong}
245
+ animatedStyle={tone}
246
+ >
247
+ {label}
248
+ </SteadyText>
249
+ {note ? (
250
+ <RNText
251
+ numberOfLines={1}
252
+ maxFontSizeMultiplier={t.maxFontScale}
253
+ style={[s.note, selected && s.noteOn]}
254
+ >
255
+ {note}
256
+ </RNText>
257
+ ) : null}
258
+ </PressableBase>
259
+ );
260
+ }
261
+
262
+ function ChoiceTile({ choice }: { choice: PreviewEditChoice }) {
263
+ const t = useTheme();
264
+ const s = useStyles();
265
+ const { selected } = choice;
266
+ return (
267
+ <PressableBase
268
+ accessibilityRole="button"
269
+ accessibilityLabel={choice.label}
270
+ accessibilityState={{ selected, disabled: choice.disabled }}
271
+ feedback="small"
272
+ disabled={choice.disabled}
273
+ onPress={() => {
274
+ haptic('select');
275
+ choice.onPress();
276
+ }}
277
+ style={[s.tile, selected && s.tileOn]}
278
+ >
279
+ {choice.art
280
+ ? renderIcon(choice.art, {
281
+ color: selected ? t.colors.primaryEdge : t.colors.input,
282
+ size: t.space[6],
283
+ })
284
+ : null}
285
+ <RNText
286
+ numberOfLines={1}
287
+ maxFontSizeMultiplier={t.maxFontScale}
288
+ style={[s.tileLabel, selected && s.tileLabelOn]}
289
+ >
290
+ {choice.label}
291
+ </RNText>
292
+ </PressableBase>
293
+ );
294
+ }
295
+
296
+ function ToolTab({
297
+ tool,
298
+ selected,
299
+ onPress,
300
+ }: {
301
+ tool: PreviewEditTool;
302
+ selected: boolean;
303
+ onPress: () => void;
304
+ }) {
305
+ const t = useTheme();
306
+ const s = useStyles();
307
+ const off = !!tool.disabled;
308
+ const color = off
309
+ ? t.colors.disabledForeground
310
+ : selected
311
+ ? t.colors.primary
312
+ : t.colors.mutedForeground;
313
+ return (
314
+ <PressableBase
315
+ accessibilityRole="tab"
316
+ accessibilityLabel={tool.label}
317
+ accessibilityState={{ selected, disabled: off }}
318
+ feedback="small"
319
+ disabled={off}
320
+ disabledStyle={s.tabOff}
321
+ onPress={onPress}
322
+ style={s.tab}
323
+ >
324
+ {renderIcon(tool.icon, { color, size: t.iconSize.md })}
325
+ <Text
326
+ variant="caption"
327
+ weight={selected ? 'semibold' : 'regular'}
328
+ numberOfLines={1}
329
+ style={{ color }}
330
+ >
331
+ {tool.label}
332
+ </Text>
333
+ </PressableBase>
334
+ );
335
+ }
336
+
337
+ export function PreviewEditTemplate({
338
+ title,
339
+ saveAction,
340
+ onBack,
341
+ backLabel = '뒤로',
342
+ device,
343
+ onDeviceChange,
344
+ deviceNotes,
345
+ compareLabel = '원래와 비교',
346
+ onCompareChange,
347
+ children,
348
+ choices,
349
+ tray,
350
+ tools,
351
+ tool,
352
+ onToolChange,
353
+ topInset = 0,
354
+ bottomInset = 0,
355
+ }: PreviewEditTemplateProps) {
356
+ const t = useTheme();
357
+ const s = useStyles();
358
+ const slide = useSlide(device);
359
+ const [comparing, setComparing] = useState(false);
360
+ const [barHeight, setBarHeight] = useState(0);
361
+ const barBottom = bottomInset + t.space[4];
362
+ const hold = (next: boolean) => {
363
+ setComparing(next);
364
+ onCompareChange?.(next);
365
+ };
366
+ return (
367
+ <View style={[s.root, { paddingTop: topInset }]}>
368
+ <View style={s.head}>
369
+ {onBack ? (
370
+ <HeaderIconButton
371
+ icon={ChevronGlyph}
372
+ label={backLabel}
373
+ onPress={onBack}
374
+ size={24}
375
+ mirror
376
+ />
377
+ ) : null}
378
+ <Text
379
+ variant="title"
380
+ accessibilityRole="header"
381
+ numberOfLines={1}
382
+ style={[s.title, !onBack && s.titleAlone]}
383
+ >
384
+ {title}
385
+ </Text>
386
+ <HeaderButton
387
+ label={saveAction.label}
388
+ primary
389
+ disabled={saveAction.disabled || saveAction.loading}
390
+ onPress={saveAction.onPress}
391
+ />
392
+ </View>
393
+ <View style={s.row}>
394
+ <View accessibilityRole="tablist" style={s.segment}>
395
+ <Animated.View pointerEvents="none" style={[s.thumb, slide.box]} />
396
+ {DEVICES.map((option) => {
397
+ const selected = option.value === device;
398
+ return (
399
+ <DeviceOption
400
+ key={option.value}
401
+ label={option.label}
402
+ icon={option.icon}
403
+ note={deviceNotes?.[option.value]}
404
+ selected={selected}
405
+ onPress={() => {
406
+ if (selected) return;
407
+ haptic('select');
408
+ onDeviceChange(option.value);
409
+ }}
410
+ onLayout={slide.measure(option.value)}
411
+ />
412
+ );
413
+ })}
414
+ </View>
415
+ {onCompareChange ? (
416
+ <PressableBase
417
+ onPress={() => {}}
418
+ onPressIn={() => hold(true)}
419
+ onPressOut={() => hold(false)}
420
+ accessibilityRole="button"
421
+ accessibilityLabel={compareLabel}
422
+ accessibilityState={{ selected: comparing }}
423
+ feedback="small"
424
+ style={[s.compare, comparing && s.compareOn]}
425
+ >
426
+ <Text
427
+ variant="caption"
428
+ weight={comparing ? 'semibold' : 'medium'}
429
+ style={comparing ? s.compareLabelOn : undefined}
430
+ >
431
+ {compareLabel}
432
+ </Text>
433
+ </PressableBase>
434
+ ) : null}
435
+ </View>
436
+ <View style={s.card}>
437
+ <View style={s.stage}>{children}</View>
438
+ </View>
439
+ <View
440
+ onLayout={(event) => setBarHeight(event.nativeEvent.layout.height)}
441
+ style={[s.bar, { marginBottom: barBottom }]}
442
+ >
443
+ {tray ??
444
+ (choices?.length ? (
445
+ <View style={s.choices}>
446
+ {choices.map((choice) => (
447
+ <ChoiceTile key={choice.key} choice={choice} />
448
+ ))}
449
+ </View>
450
+ ) : null)}
451
+ <View accessibilityRole="tablist" style={s.tabs}>
452
+ {tools.map((item) => (
453
+ <ToolTab
454
+ key={item.key}
455
+ tool={item}
456
+ selected={item.key === tool}
457
+ onPress={() => {
458
+ if (item.key !== tool) onToolChange(item.key);
459
+ }}
460
+ />
461
+ ))}
462
+ </View>
463
+ </View>
464
+ <ToastHost bottom={barBottom + barHeight + t.space[3]} />
465
+ </View>
466
+ );
467
+ }
@@ -34,6 +34,7 @@ export type ResultTemplateProps = {
34
34
  index: number;
35
35
  onIndexChange: (index: number) => void;
36
36
  progress?: ReactNode;
37
+ tray?: ReactNode;
37
38
  notice?: TemplateNotice;
38
39
  primaryAction?: TemplateAction;
39
40
  secondaryAction?: TemplateAction;
@@ -150,6 +151,7 @@ export function ResultTemplate({
150
151
  index,
151
152
  onIndexChange,
152
153
  progress,
154
+ tray,
153
155
  notice,
154
156
  primaryAction,
155
157
  secondaryAction,
@@ -235,6 +237,7 @@ export function ResultTemplate({
235
237
  </>
236
238
  )}
237
239
  </View>
240
+ {tray ?? null}
238
241
  {notice ? (
239
242
  <View style={s.notice}>
240
243
  <Notice notice={notice} />
@@ -1,67 +0,0 @@
1
- "use strict";
2
-
3
- import { View } from 'react-native';
4
- import { Button } from "../../components/button/button.js";
5
- import { renderIcon } from "../../internal/icon.js";
6
- import { PressableBase } from "../../internal/pressable-base.js";
7
- import { useTheme } from "../../theme/theme-provider.js";
8
- import { makeStyles } from "../../utils/styles.js";
9
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
- const useStyles = makeStyles(t => ({
11
- bar: {
12
- height: t.minTouchSize,
13
- flexDirection: 'row',
14
- alignItems: 'center',
15
- paddingHorizontal: t.space[1],
16
- borderTopWidth: 1,
17
- borderTopColor: t.colors.border,
18
- backgroundColor: t.colors.background
19
- },
20
- item: {
21
- width: t.minTouchSize,
22
- height: t.minTouchSize,
23
- alignItems: 'center',
24
- justifyContent: 'center',
25
- borderRadius: t.radius.md
26
- },
27
- on: {
28
- backgroundColor: t.colors.muted
29
- },
30
- end: {
31
- marginLeft: 'auto'
32
- }
33
- }));
34
- export function KeyboardBar({
35
- items,
36
- action
37
- }) {
38
- const t = useTheme();
39
- const s = useStyles();
40
- return /*#__PURE__*/_jsxs(View, {
41
- accessibilityRole: "toolbar",
42
- style: s.bar,
43
- children: [items.map(item => /*#__PURE__*/_jsx(PressableBase, {
44
- onPress: item.onPress,
45
- disabled: item.disabled,
46
- disabledStyle: {},
47
- accessibilityLabel: item.label,
48
- accessibilityState: item.active === undefined ? undefined : {
49
- selected: item.active
50
- },
51
- style: [s.item, item.active && s.on],
52
- children: renderIcon(item.icon, {
53
- color: item.disabled ? t.colors.input : t.colors.title,
54
- size: t.iconSize.md
55
- })
56
- }, item.key)), /*#__PURE__*/_jsx(View, {
57
- style: s.end,
58
- children: /*#__PURE__*/_jsx(Button, {
59
- variant: "ghost",
60
- size: "sm",
61
- onPress: action.onPress,
62
- children: action.label
63
- })
64
- })]
65
- });
66
- }
67
- //# sourceMappingURL=keyboard-bar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["View","Button","renderIcon","PressableBase","useTheme","makeStyles","jsx","_jsx","jsxs","_jsxs","useStyles","t","bar","height","minTouchSize","flexDirection","alignItems","paddingHorizontal","space","borderTopWidth","borderTopColor","colors","border","backgroundColor","background","item","width","justifyContent","borderRadius","radius","md","on","muted","end","marginLeft","KeyboardBar","items","action","s","accessibilityRole","style","children","map","onPress","disabled","disabledStyle","accessibilityLabel","label","accessibilityState","active","undefined","selected","icon","color","input","title","size","iconSize","key","variant"],"sourceRoot":"../../../../src","sources":["blocks/detail-studio/keyboard-bar.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,MAAM,QAAQ,mCAAgC;AACvD,SAASC,UAAU,QAAuB,wBAAqB;AAC/D,SAASC,aAAa,QAAQ,kCAA+B;AAC7D,SAASC,QAAQ,QAAQ,+BAA4B;AACrD,SAASC,UAAU,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAgBhD,MAAMC,SAAS,GAAGL,UAAU,CAAEM,CAAC,KAAM;EACnCC,GAAG,EAAE;IACHC,MAAM,EAAEF,CAAC,CAACG,YAAY;IACtBC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,iBAAiB,EAAEN,CAAC,CAACO,KAAK,CAAC,CAAC,CAAC;IAC7BC,cAAc,EAAE,CAAC;IACjBC,cAAc,EAAET,CAAC,CAACU,MAAM,CAACC,MAAM;IAC/BC,eAAe,EAAEZ,CAAC,CAACU,MAAM,CAACG;EAC5B,CAAC;EACDC,IAAI,EAAE;IACJC,KAAK,EAAEf,CAAC,CAACG,YAAY;IACrBD,MAAM,EAAEF,CAAC,CAACG,YAAY;IACtBE,UAAU,EAAE,QAAQ;IACpBW,cAAc,EAAE,QAAQ;IACxBC,YAAY,EAAEjB,CAAC,CAACkB,MAAM,CAACC;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ACL,GAAI;MAAAQ,QAAA,eACjBlC,IAAA,CAACN,MAAM;QAAC0D,OAAO,EAAC,OAAO;QAACH,IAAI,EAAC,IAAI;QAACb,OAAO,EAAEN,MAAM,CAACM,OAAQ;QAAAF,QAAA,EACvDJ,MAAM,CAACU;MAAK,CACP;IAAC,CACL,CAAC;EAAA,CACH,CAAC;AAEX","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["ScrollView","View","Button","CreditCost","Text","renderIcon","PressableBase","useTheme","makeStyles","jsx","_jsx","jsxs","_jsxs","useStyles","t","bar","height","space","flexDirection","alignItems","paddingHorizontal","borderTopWidth","borderTopColor","colors","border","backgroundColor","surface","tools","flex","row","gap","item","width","justifyContent","borderRadius","radius","md","on","muted","cost","position","top","right","PhotoToolBar","items","action","s","accessibilityRole","style","children","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","map","color","disabled","disabledForeground","title","onPress","disabledStyle","feedback","accessibilityLabel","label","accessibilityState","active","undefined","selected","icon","size","iconSize","variant","numberOfLines","pointerEvents","value","tone","key"],"sourceRoot":"../../../../src","sources":["blocks/detail-studio/photo-tool-bar.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,MAAM,QAAQ,mCAAgC;AACvD,SAASC,UAAU,QAAQ,mCAAgC;AAC3D,SAASC,IAAI,QAAQ,+BAA4B;AACjD,SAASC,UAAU,QAAuB,wBAAqB;AAC/D,SAASC,aAAa,QAAQ,kCAA+B;AAC7D,SAASC,QAAQ,QAAQ,+BAA4B;AACrD,SAASC,UAAU,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAiBhD,MAAMC,SAAS,GAAGL,UAAU,CAAEM,CAAC,KAAM;EACnCC,GAAG,EAAE;IACHC,MAAM,EAAEF,CAAC,CAACG,KAAK,CAAC,EAAE,CAAC;IACnBC,aAAa,EAAE,KAAK;IACpBC,UAAU,EA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E1C,IAAI,CAACQ,IAAK;cACjBmC,IAAI,EAAE3C,IAAI,CAACwB,QAAQ,GAAG,UAAU,GAAG;YAAQ,CAC5C;UAAC,CACE,CAAC,GACL,IAAI;QAAA,GAxBHxB,IAAI,CAAC4C,GAyBG,CAAC;MAEpB,CAAC;IAAC,CACQ,CAAC,eACbjE,IAAA,CAACR,MAAM;MAACoE,OAAO,EAAC,OAAO;MAACF,IAAI,EAAC,IAAI;MAACV,OAAO,EAAEb,MAAM,CAACa,OAAQ;MAAAT,QAAA,EACvDJ,MAAM,CAACiB;IAAK,CACP,CAAC;EAAA,CACL,CAAC;AAEX","ignoreList":[]}
@@ -1,49 +0,0 @@
1
- "use strict";
2
-
3
- import { memo } from 'react';
4
- import { View } from 'react-native';
5
- import { makeStyles } from "../../utils/styles.js";
6
- import { DetailCanvas } from "../detail-editor/detail-canvas.js";
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- export const SECTION_THUMB = {
9
- width: 104,
10
- height: 80
11
- };
12
- const useStyles = makeStyles(t => ({
13
- box: {
14
- width: SECTION_THUMB.width,
15
- height: SECTION_THUMB.height,
16
- overflow: 'hidden',
17
- borderRadius: t.radius.md,
18
- backgroundColor: t.colors.surface
19
- },
20
- page: {
21
- position: 'absolute',
22
- left: 0,
23
- width: SECTION_THUMB.width
24
- }
25
- }));
26
- function Thumb({
27
- doc,
28
- base = 360,
29
- offset = 0
30
- }) {
31
- const s = useStyles();
32
- return /*#__PURE__*/_jsx(View, {
33
- style: s.box,
34
- accessibilityElementsHidden: true,
35
- importantForAccessibility: "no-hide-descendants",
36
- children: /*#__PURE__*/_jsx(View, {
37
- pointerEvents: "none",
38
- style: [s.page, {
39
- top: -offset
40
- }],
41
- children: /*#__PURE__*/_jsx(DetailCanvas, {
42
- doc: doc,
43
- scale: SECTION_THUMB.width / base
44
- })
45
- })
46
- });
47
- }
48
- export const SectionThumb = /*#__PURE__*/memo(Thumb);
49
- //# sourceMappingURL=section-thumb.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["memo","View","makeStyles","DetailCanvas","jsx","_jsx","SECTION_THUMB","width","height","useStyles","t","box","overflow","borderRadius","radius","md","backgroundColor","colors","surface","page","position","left","Thumb","doc","base","offset","s","style","accessibilityElementsHidden","importantForAccessibility","children","pointerEvents","top","scale","SectionThumb"],"sourceRoot":"../../../../src","sources":["blocks/detail-studio/section-thumb.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,OAAO;AAC5B,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,UAAU,QAAQ,uBAAoB;AAC/C,SAASC,YAAY,QAAQ,mCAAgC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAG9D,OAAO,MAAMC,aAAa,GAAG;EAAEC,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AAAG,CAAU;AAQhE,MAAMC,SAAS,GAAGP,UAAU,CAAEQ,CAAC,KAAM;EACnCC,GAAG,EAAE;IACHJ,KAAK,EAAED,aAAa,CAACC,KAAK;IAC1BC,MAAM,EAAEF,aAAa,CAACE,MAAM;IAC5BI,QAAQ,EAAE,QAAQ;IAClBC,YAAY,EAAEH,CAAC,CAACI,MAAM,CAACC,EAAE;IACzBC,eAAe,EAAEN,CAAC,CAACO,MAAM,CAACC;EAC5B,CAAC;EACDC,IAAI,EAAE;IAAEC,QAAQ,EAAE,UAAU;IAAEC,IAAI,EAAE,CAAC;IAAEd,KAAK,EAAED,aAAa,CAACC;EAAM;AACpE,CAAC,CAAC,CAAC;AAEH,SAASe,KAAKA,CAAC;EAAEC,GAAG;EAAEC,IAAI,GAAG,GAAG;EAAEC,MAAM,GAAG;AAAqB,CAAC,EAAE;EACjE,MAAMC,CAAC,GAAGjB,SAAS,CAAC,CAAC;EACrB,oBACEJ,IAAA,CAACJ,IAAI;IACH0B,KAAK,EAAED,CAAC,CAACf,GAAI;IACbiB,2BAA2B;IAC3BC,yBAAyB,EAAC,qBAAqB;IAAAC,QAAA,eAE/CzB,IAAA,CAACJ,IAAI;MAAC8B,aAAa,EAAC,MAAM;MAACJ,KAAK,EAAE,CAACD,CAAC,CAACP,IAAI,EAAE;QAAEa,GAAG,EAAE,CAACP;MAAO,CAAC,CAAE;MAAAK,QAAA,eAC3DzB,IAAA,CAACF,YAAY;QAACoB,GAAG,EAAEA,GAAI;QAACU,KAAK,EAAE3B,aAAa,CAACC,KAAK,GAAGiB;MAAK,CAAE;IAAC,CACzD;EAAC,CACH,CAAC;AAEX;AAEA,OAAO,MAAMU,YAAY,gBAAGlC,IAAI,CAACsB,KAAK,CAAC","ignoreList":[]}
@@ -1,18 +0,0 @@
1
- import { type IconSlot } from '../../internal/icon.js';
2
- export type KeyboardBarItem = {
3
- key: string;
4
- icon: IconSlot;
5
- label: string;
6
- onPress: () => void;
7
- active?: boolean;
8
- disabled?: boolean;
9
- };
10
- export type KeyboardBarProps = {
11
- items: readonly KeyboardBarItem[];
12
- action: {
13
- label: string;
14
- onPress: () => void;
15
- };
16
- };
17
- export declare function KeyboardBar({ items, action }: KeyboardBarProps): import("react").JSX.Element;
18
- //# sourceMappingURL=keyboard-bar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keyboard-bar.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-studio/keyboard-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,wBAAqB,CAAC;AAKhE,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,SAAS,eAAe,EAAE,CAAC;IAClC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;CAChD,CAAC;AAuBF,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,gBAAgB,+BA8B9D"}
@@ -1,19 +0,0 @@
1
- import { type IconSlot } from '../../internal/icon.js';
2
- export type PhotoToolItem = {
3
- key: string;
4
- icon: IconSlot;
5
- label: string;
6
- onPress: () => void;
7
- active?: boolean;
8
- disabled?: boolean;
9
- cost?: number | null;
10
- };
11
- export type PhotoToolBarProps = {
12
- items: readonly PhotoToolItem[];
13
- action: {
14
- label: string;
15
- onPress: () => void;
16
- };
17
- };
18
- export declare function PhotoToolBar({ items, action }: PhotoToolBarProps): import("react").JSX.Element;
19
- //# sourceMappingURL=photo-tool-bar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"photo-tool-bar.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/detail-studio/photo-tool-bar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,wBAAqB,CAAC;AAKhE,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,SAAS,aAAa,EAAE,CAAC;IAChC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;CAChD,CAAC;AA0BF,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BAmDhE"}
@@ -1,14 +0,0 @@
1
- import type { DetailDocValue } from '../detail-editor/detail-types.js';
2
- export declare const SECTION_THUMB: {
3
- readonly width: 104;
4
- readonly height: 80;
5
- };
6
- export type SectionThumbProps = {
7
- doc: DetailDocValue;
8
- base?: number;
9
- offset?: number;
10
- };
11
- declare function Thumb({ doc, base, offset }: SectionThumbProps): import("react").JSX.Element;
12
- export declare const SectionThumb: import("react").MemoExoticComponent<typeof Thumb>;
13
- export {};
14
- //# sourceMappingURL=section-thumb.d.ts.map