@ezpg/app-ui 0.21.0 → 0.23.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 (486) hide show
  1. package/CHANGELOG.md +29 -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-dial.js +2 -2
  7. package/lib/module/adjust/axis-dial.js.map +1 -1
  8. package/lib/module/adjust/axis-tabs.js +81 -0
  9. package/lib/module/adjust/axis-tabs.js.map +1 -0
  10. package/lib/module/adjust/axis-wheel.js +286 -0
  11. package/lib/module/adjust/axis-wheel.js.map +1 -0
  12. package/lib/module/adjust/dial-strip.js +6 -4
  13. package/lib/module/adjust/dial-strip.js.map +1 -1
  14. package/lib/module/adjust/index.js +4 -0
  15. package/lib/module/adjust/index.js.map +1 -1
  16. package/lib/module/adjust/store-sample.js +436 -0
  17. package/lib/module/adjust/store-sample.js.map +1 -0
  18. package/lib/module/blocks/chat-message/chat-message.js +1 -0
  19. package/lib/module/blocks/chat-message/chat-message.js.map +1 -1
  20. package/lib/module/blocks/choice-art/choice-art.js +2 -0
  21. package/lib/module/blocks/choice-art/choice-art.js.map +1 -1
  22. package/lib/module/blocks/color-swatch-picker/color-swatch-picker.js +1 -1
  23. package/lib/module/blocks/color-tune/store-sample.js +13 -6
  24. package/lib/module/blocks/color-tune/store-sample.js.map +1 -1
  25. package/lib/module/blocks/color-tune/swatch-card.js +1 -1
  26. package/lib/module/blocks/color-tune/swatch-card.js.map +1 -1
  27. package/lib/module/blocks/detail-editor/compare-slider.js +6 -2
  28. package/lib/module/blocks/detail-editor/compare-slider.js.map +1 -1
  29. package/lib/module/blocks/detail-editor/detail-canvas.js +195 -61
  30. package/lib/module/blocks/detail-editor/detail-canvas.js.map +1 -1
  31. package/lib/module/blocks/detail-editor/detail-types.js +57 -0
  32. package/lib/module/blocks/detail-editor/detail-types.js.map +1 -1
  33. package/lib/module/blocks/detail-editor/draft-preview.js +22 -0
  34. package/lib/module/blocks/detail-editor/draft-preview.js.map +1 -1
  35. package/lib/module/blocks/detail-editor/focus-context.js +1 -0
  36. package/lib/module/blocks/detail-editor/focus-context.js.map +1 -1
  37. package/lib/module/blocks/detail-editor/index.js +2 -2
  38. package/lib/module/blocks/detail-editor/index.js.map +1 -1
  39. package/lib/module/blocks/detail-editor/keep-words.js +34 -0
  40. package/lib/module/blocks/detail-editor/keep-words.js.map +1 -0
  41. package/lib/module/blocks/detail-editor/layout-picker.js +195 -8
  42. package/lib/module/blocks/detail-editor/layout-picker.js.map +1 -1
  43. package/lib/module/blocks/detail-request/detail-request.js +213 -0
  44. package/lib/module/blocks/detail-request/detail-request.js.map +1 -0
  45. package/lib/module/blocks/detail-request/index.js +4 -0
  46. package/lib/module/blocks/detail-request/index.js.map +1 -0
  47. package/lib/module/blocks/detail-studio/action-chips.js +73 -0
  48. package/lib/module/blocks/detail-studio/action-chips.js.map +1 -0
  49. package/lib/module/blocks/detail-studio/adjust-tiles.js +4 -3
  50. package/lib/module/blocks/detail-studio/adjust-tiles.js.map +1 -1
  51. package/lib/module/blocks/detail-studio/asset-grid.js +33 -16
  52. package/lib/module/blocks/detail-studio/asset-grid.js.map +1 -1
  53. package/lib/module/blocks/detail-studio/confirm-row.js +3 -0
  54. package/lib/module/blocks/detail-studio/confirm-row.js.map +1 -1
  55. package/lib/module/blocks/detail-studio/detail-studio-template.js +2 -6
  56. package/lib/module/blocks/detail-studio/detail-studio-template.js.map +1 -1
  57. package/lib/module/blocks/detail-studio/edge-fade.js +74 -0
  58. package/lib/module/blocks/detail-studio/edge-fade.js.map +1 -0
  59. package/lib/module/blocks/detail-studio/image-prompt.js +9 -10
  60. package/lib/module/blocks/detail-studio/image-prompt.js.map +1 -1
  61. package/lib/module/blocks/detail-studio/index.js +7 -5
  62. package/lib/module/blocks/detail-studio/index.js.map +1 -1
  63. package/lib/module/blocks/detail-studio/rewrite-tray.js +17 -64
  64. package/lib/module/blocks/detail-studio/rewrite-tray.js.map +1 -1
  65. package/lib/module/blocks/detail-studio/section-cover.js +41 -0
  66. package/lib/module/blocks/detail-studio/section-cover.js.map +1 -0
  67. package/lib/module/blocks/detail-studio/section-edit-template.js +103 -12
  68. package/lib/module/blocks/detail-studio/section-edit-template.js.map +1 -1
  69. package/lib/module/blocks/detail-studio/section-kind-grid.js +4 -3
  70. package/lib/module/blocks/detail-studio/section-kind-grid.js.map +1 -1
  71. package/lib/module/blocks/detail-studio/section-settings.js +127 -61
  72. package/lib/module/blocks/detail-studio/section-settings.js.map +1 -1
  73. package/lib/module/blocks/detail-studio/studio-bar.js +46 -25
  74. package/lib/module/blocks/detail-studio/studio-bar.js.map +1 -1
  75. package/lib/module/blocks/detail-studio/studio-dock.js +21 -39
  76. package/lib/module/blocks/detail-studio/studio-dock.js.map +1 -1
  77. package/lib/module/blocks/detail-studio/studio-glyphs.js +92 -0
  78. package/lib/module/blocks/detail-studio/studio-glyphs.js.map +1 -0
  79. package/lib/module/blocks/detail-studio/studio-sheet.js +5 -3
  80. package/lib/module/blocks/detail-studio/studio-sheet.js.map +1 -1
  81. package/lib/module/blocks/detail-studio/studio-steps.js +60 -0
  82. package/lib/module/blocks/detail-studio/studio-steps.js.map +1 -0
  83. package/lib/module/blocks/detail-studio/studio-toggle.js +130 -0
  84. package/lib/module/blocks/detail-studio/studio-toggle.js.map +1 -0
  85. package/lib/module/blocks/detail-studio/{photo-tool-bar.js → studio-tools.js} +63 -42
  86. package/lib/module/blocks/detail-studio/studio-tools.js.map +1 -0
  87. package/lib/module/blocks/detail-studio/text-format-panel.js +20 -8
  88. package/lib/module/blocks/detail-studio/text-format-panel.js.map +1 -1
  89. package/lib/module/blocks/draft-box/draft-box.js +3 -0
  90. package/lib/module/blocks/draft-box/draft-box.js.map +1 -1
  91. package/lib/module/blocks/index.js +1 -0
  92. package/lib/module/blocks/index.js.map +1 -1
  93. package/lib/module/blocks/oauth-buttons/oauth-buttons.js +1 -0
  94. package/lib/module/blocks/oauth-buttons/oauth-buttons.js.map +1 -1
  95. package/lib/module/blocks/order-block/order-block.js +19 -5
  96. package/lib/module/blocks/order-block/order-block.js.map +1 -1
  97. package/lib/module/blocks/product-tile/product-tile.js +4 -1
  98. package/lib/module/blocks/product-tile/product-tile.js.map +1 -1
  99. package/lib/module/blocks/question-accordion/question-accordion.js +1 -2
  100. package/lib/module/blocks/question-accordion/question-accordion.js.map +1 -1
  101. package/lib/module/blocks/question-pager/question-pager.js +2 -1
  102. package/lib/module/blocks/question-pager/question-pager.js.map +1 -1
  103. package/lib/module/blocks/review-card/review-card.js +4 -0
  104. package/lib/module/blocks/review-card/review-card.js.map +1 -1
  105. package/lib/module/blocks/send-bar/send-bar.js +1 -0
  106. package/lib/module/blocks/send-bar/send-bar.js.map +1 -1
  107. package/lib/module/blocks/stage-bar/stage-bar.js +3 -2
  108. package/lib/module/blocks/stage-bar/stage-bar.js.map +1 -1
  109. package/lib/module/blocks/stat-card/stat-card.js +4 -1
  110. package/lib/module/blocks/stat-card/stat-card.js.map +1 -1
  111. package/lib/module/blocks/step-screen/step-screen.js +5 -2
  112. package/lib/module/blocks/step-screen/step-screen.js.map +1 -1
  113. package/lib/module/blocks/store-top/store-top.js +8 -3
  114. package/lib/module/blocks/store-top/store-top.js.map +1 -1
  115. package/lib/module/blocks/summary-cards/summary-cards.js +10 -3
  116. package/lib/module/blocks/summary-cards/summary-cards.js.map +1 -1
  117. package/lib/module/blocks/task-tiles/task-tiles.js +3 -2
  118. package/lib/module/blocks/task-tiles/task-tiles.js.map +1 -1
  119. package/lib/module/components/amount-summary/amount-summary.js +7 -1
  120. package/lib/module/components/amount-summary/amount-summary.js.map +1 -1
  121. package/lib/module/components/button/button.js +19 -5
  122. package/lib/module/components/button/button.js.map +1 -1
  123. package/lib/module/components/calendar/calendar.js +7 -4
  124. package/lib/module/components/calendar/calendar.js.map +1 -1
  125. package/lib/module/components/chip/chip.js +7 -3
  126. package/lib/module/components/chip/chip.js.map +1 -1
  127. package/lib/module/components/chip-group/chip-group.js +1 -0
  128. package/lib/module/components/chip-group/chip-group.js.map +1 -1
  129. package/lib/module/components/circle-grid/circle-grid.js +1 -0
  130. package/lib/module/components/circle-grid/circle-grid.js.map +1 -1
  131. package/lib/module/components/credit/credit.js +8 -4
  132. package/lib/module/components/credit/credit.js.map +1 -1
  133. package/lib/module/components/dialog/dialog.js +2 -0
  134. package/lib/module/components/dialog/dialog.js.map +1 -1
  135. package/lib/module/components/dropdown-menu/dropdown-menu.js +9 -4
  136. package/lib/module/components/dropdown-menu/dropdown-menu.js.map +1 -1
  137. package/lib/module/components/empty-state/empty-state.js +1 -0
  138. package/lib/module/components/empty-state/empty-state.js.map +1 -1
  139. package/lib/module/components/fact-list/fact-list.js +1 -0
  140. package/lib/module/components/fact-list/fact-list.js.map +1 -1
  141. package/lib/module/components/field/field.js +4 -0
  142. package/lib/module/components/field/field.js.map +1 -1
  143. package/lib/module/components/filter-tabs/filter-tabs.js +2 -1
  144. package/lib/module/components/filter-tabs/filter-tabs.js.map +1 -1
  145. package/lib/module/components/list-row/list-row.js +23 -6
  146. package/lib/module/components/list-row/list-row.js.map +1 -1
  147. package/lib/module/components/page-header/page-header.js +1 -0
  148. package/lib/module/components/page-header/page-header.js.map +1 -1
  149. package/lib/module/components/pill/pill.js +1 -0
  150. package/lib/module/components/pill/pill.js.map +1 -1
  151. package/lib/module/components/segmented-control/segmented-control.js +5 -1
  152. package/lib/module/components/segmented-control/segmented-control.js.map +1 -1
  153. package/lib/module/components/segmented-tabs/segmented-tabs.js +3 -2
  154. package/lib/module/components/segmented-tabs/segmented-tabs.js.map +1 -1
  155. package/lib/module/components/skeleton/skeleton.js +4 -2
  156. package/lib/module/components/skeleton/skeleton.js.map +1 -1
  157. package/lib/module/components/slider/slider.js +53 -16
  158. package/lib/module/components/slider/slider.js.map +1 -1
  159. package/lib/module/components/status-steps/status-steps.js +2 -0
  160. package/lib/module/components/status-steps/status-steps.js.map +1 -1
  161. package/lib/module/components/text/figures.js +82 -0
  162. package/lib/module/components/text/figures.js.map +1 -0
  163. package/lib/module/components/text/index.js +1 -0
  164. package/lib/module/components/text/index.js.map +1 -1
  165. package/lib/module/components/text/metrics.js +5 -0
  166. package/lib/module/components/text/metrics.js.map +1 -0
  167. package/lib/module/components/text/text.js +31 -2
  168. package/lib/module/components/text/text.js.map +1 -1
  169. package/lib/module/components/tile-grid/tile-grid.js +3 -2
  170. package/lib/module/components/tile-grid/tile-grid.js.map +1 -1
  171. package/lib/module/components/toast/toast.js +4 -1
  172. package/lib/module/components/toast/toast.js.map +1 -1
  173. package/lib/module/components/value-rows/value-rows.js +8 -1
  174. package/lib/module/components/value-rows/value-rows.js.map +1 -1
  175. package/lib/module/index.js +1 -1
  176. package/lib/module/index.js.map +1 -1
  177. package/lib/module/internal/field-label.js +2 -0
  178. package/lib/module/internal/field-label.js.map +1 -1
  179. package/lib/module/internal/glyphs.js +2 -1
  180. package/lib/module/internal/glyphs.js.map +1 -1
  181. package/lib/module/internal/line-icons.js +1 -0
  182. package/lib/module/internal/line-icons.js.map +1 -1
  183. package/lib/module/internal/retry-glyph.js +5 -2
  184. package/lib/module/internal/retry-glyph.js.map +1 -1
  185. package/lib/module/internal/roll-text.js +10 -2
  186. package/lib/module/internal/roll-text.js.map +1 -1
  187. package/lib/module/internal/sample-tiles.js +2 -0
  188. package/lib/module/internal/sample-tiles.js.map +1 -1
  189. package/lib/module/internal/undo-glyph.js +11 -8
  190. package/lib/module/internal/undo-glyph.js.map +1 -1
  191. package/lib/module/sortable/section-board.js +75 -89
  192. package/lib/module/sortable/section-board.js.map +1 -1
  193. package/lib/module/templates/design-pick-template.js +9 -1
  194. package/lib/module/templates/design-pick-template.js.map +1 -1
  195. package/lib/module/templates/intro-template.js +3 -3
  196. package/lib/module/templates/intro-template.js.map +1 -1
  197. package/lib/module/templates/preview-edit-template.js +3 -0
  198. package/lib/module/templates/preview-edit-template.js.map +1 -1
  199. package/lib/module/templates/result-template.js +2 -1
  200. package/lib/module/templates/result-template.js.map +1 -1
  201. package/lib/module/templates/scroll-templates.js +12 -2
  202. package/lib/module/templates/scroll-templates.js.map +1 -1
  203. package/lib/module/templates/sheet-form-template.js +4 -0
  204. package/lib/module/templates/sheet-form-template.js.map +1 -1
  205. package/lib/module/theme/base.js +16 -9
  206. package/lib/module/theme/base.js.map +1 -1
  207. package/lib/module/theme/create-theme.js +6 -2
  208. package/lib/module/theme/create-theme.js.map +1 -1
  209. package/lib/module/theme/tokens.js +23 -2
  210. package/lib/module/theme/tokens.js.map +1 -1
  211. package/lib/typescript/src/adjust/adjust-template.d.ts.map +1 -1
  212. package/lib/typescript/src/adjust/axis-adjust.d.ts +25 -0
  213. package/lib/typescript/src/adjust/axis-adjust.d.ts.map +1 -0
  214. package/lib/typescript/src/adjust/axis-tabs.d.ts +15 -0
  215. package/lib/typescript/src/adjust/axis-tabs.d.ts.map +1 -0
  216. package/lib/typescript/src/adjust/axis-wheel.d.ts +15 -0
  217. package/lib/typescript/src/adjust/axis-wheel.d.ts.map +1 -0
  218. package/lib/typescript/src/adjust/dial-strip.d.ts.map +1 -1
  219. package/lib/typescript/src/adjust/index.d.ts +4 -0
  220. package/lib/typescript/src/adjust/index.d.ts.map +1 -1
  221. package/lib/typescript/src/adjust/store-sample.d.ts +46 -0
  222. package/lib/typescript/src/adjust/store-sample.d.ts.map +1 -0
  223. package/lib/typescript/src/blocks/chat-message/chat-message.d.ts.map +1 -1
  224. package/lib/typescript/src/blocks/choice-art/choice-art.d.ts.map +1 -1
  225. package/lib/typescript/src/blocks/color-tune/store-sample.d.ts.map +1 -1
  226. package/lib/typescript/src/blocks/detail-editor/compare-slider.d.ts +2 -1
  227. package/lib/typescript/src/blocks/detail-editor/compare-slider.d.ts.map +1 -1
  228. package/lib/typescript/src/blocks/detail-editor/detail-canvas.d.ts +3 -1
  229. package/lib/typescript/src/blocks/detail-editor/detail-canvas.d.ts.map +1 -1
  230. package/lib/typescript/src/blocks/detail-editor/detail-types.d.ts +11 -0
  231. package/lib/typescript/src/blocks/detail-editor/detail-types.d.ts.map +1 -1
  232. package/lib/typescript/src/blocks/detail-editor/draft-preview.d.ts +4 -1
  233. package/lib/typescript/src/blocks/detail-editor/draft-preview.d.ts.map +1 -1
  234. package/lib/typescript/src/blocks/detail-editor/focus-context.d.ts +9 -0
  235. package/lib/typescript/src/blocks/detail-editor/focus-context.d.ts.map +1 -1
  236. package/lib/typescript/src/blocks/detail-editor/index.d.ts +3 -2
  237. package/lib/typescript/src/blocks/detail-editor/index.d.ts.map +1 -1
  238. package/lib/typescript/src/blocks/detail-editor/keep-words.d.ts +2 -0
  239. package/lib/typescript/src/blocks/detail-editor/keep-words.d.ts.map +1 -0
  240. package/lib/typescript/src/blocks/detail-editor/layout-picker.d.ts +6 -1
  241. package/lib/typescript/src/blocks/detail-editor/layout-picker.d.ts.map +1 -1
  242. package/lib/typescript/src/blocks/detail-request/detail-request.d.ts +24 -0
  243. package/lib/typescript/src/blocks/detail-request/detail-request.d.ts.map +1 -0
  244. package/lib/typescript/src/blocks/detail-request/index.d.ts +2 -0
  245. package/lib/typescript/src/blocks/detail-request/index.d.ts.map +1 -0
  246. package/lib/typescript/src/blocks/detail-studio/action-chips.d.ts +12 -0
  247. package/lib/typescript/src/blocks/detail-studio/action-chips.d.ts.map +1 -0
  248. package/lib/typescript/src/blocks/detail-studio/adjust-tiles.d.ts.map +1 -1
  249. package/lib/typescript/src/blocks/detail-studio/asset-grid.d.ts.map +1 -1
  250. package/lib/typescript/src/blocks/detail-studio/confirm-row.d.ts.map +1 -1
  251. package/lib/typescript/src/blocks/detail-studio/detail-studio-template.d.ts.map +1 -1
  252. package/lib/typescript/src/blocks/detail-studio/edge-fade.d.ts +10 -0
  253. package/lib/typescript/src/blocks/detail-studio/edge-fade.d.ts.map +1 -0
  254. package/lib/typescript/src/blocks/detail-studio/image-prompt.d.ts.map +1 -1
  255. package/lib/typescript/src/blocks/detail-studio/index.d.ts +7 -5
  256. package/lib/typescript/src/blocks/detail-studio/index.d.ts.map +1 -1
  257. package/lib/typescript/src/blocks/detail-studio/rewrite-tray.d.ts +3 -3
  258. package/lib/typescript/src/blocks/detail-studio/rewrite-tray.d.ts.map +1 -1
  259. package/lib/typescript/src/blocks/detail-studio/section-cover.d.ts +7 -0
  260. package/lib/typescript/src/blocks/detail-studio/section-cover.d.ts.map +1 -0
  261. package/lib/typescript/src/blocks/detail-studio/section-edit-template.d.ts +9 -0
  262. package/lib/typescript/src/blocks/detail-studio/section-edit-template.d.ts.map +1 -1
  263. package/lib/typescript/src/blocks/detail-studio/section-kind-grid.d.ts.map +1 -1
  264. package/lib/typescript/src/blocks/detail-studio/section-settings.d.ts +11 -13
  265. package/lib/typescript/src/blocks/detail-studio/section-settings.d.ts.map +1 -1
  266. package/lib/typescript/src/blocks/detail-studio/studio-bar.d.ts +6 -2
  267. package/lib/typescript/src/blocks/detail-studio/studio-bar.d.ts.map +1 -1
  268. package/lib/typescript/src/blocks/detail-studio/studio-dock.d.ts +0 -2
  269. package/lib/typescript/src/blocks/detail-studio/studio-dock.d.ts.map +1 -1
  270. package/lib/typescript/src/blocks/detail-studio/studio-glyphs.d.ts +6 -0
  271. package/lib/typescript/src/blocks/detail-studio/studio-glyphs.d.ts.map +1 -0
  272. package/lib/typescript/src/blocks/detail-studio/studio-sheet.d.ts.map +1 -1
  273. package/lib/typescript/src/blocks/detail-studio/studio-steps.d.ts +11 -0
  274. package/lib/typescript/src/blocks/detail-studio/studio-steps.d.ts.map +1 -0
  275. package/lib/typescript/src/blocks/detail-studio/studio-toggle.d.ts +14 -0
  276. package/lib/typescript/src/blocks/detail-studio/studio-toggle.d.ts.map +1 -0
  277. package/lib/typescript/src/blocks/detail-studio/studio-tools.d.ts +19 -0
  278. package/lib/typescript/src/blocks/detail-studio/studio-tools.d.ts.map +1 -0
  279. package/lib/typescript/src/blocks/detail-studio/text-format-panel.d.ts +2 -1
  280. package/lib/typescript/src/blocks/detail-studio/text-format-panel.d.ts.map +1 -1
  281. package/lib/typescript/src/blocks/draft-box/draft-box.d.ts.map +1 -1
  282. package/lib/typescript/src/blocks/index.d.ts +1 -0
  283. package/lib/typescript/src/blocks/index.d.ts.map +1 -1
  284. package/lib/typescript/src/blocks/oauth-buttons/oauth-buttons.d.ts.map +1 -1
  285. package/lib/typescript/src/blocks/order-block/order-block.d.ts.map +1 -1
  286. package/lib/typescript/src/blocks/product-tile/product-tile.d.ts.map +1 -1
  287. package/lib/typescript/src/blocks/question-accordion/question-accordion.d.ts.map +1 -1
  288. package/lib/typescript/src/blocks/question-pager/question-pager.d.ts.map +1 -1
  289. package/lib/typescript/src/blocks/review-card/review-card.d.ts.map +1 -1
  290. package/lib/typescript/src/blocks/send-bar/send-bar.d.ts.map +1 -1
  291. package/lib/typescript/src/blocks/stage-bar/stage-bar.d.ts.map +1 -1
  292. package/lib/typescript/src/blocks/stat-card/stat-card.d.ts.map +1 -1
  293. package/lib/typescript/src/blocks/step-screen/step-screen.d.ts.map +1 -1
  294. package/lib/typescript/src/blocks/store-top/store-top.d.ts.map +1 -1
  295. package/lib/typescript/src/blocks/summary-cards/summary-cards.d.ts.map +1 -1
  296. package/lib/typescript/src/blocks/task-tiles/task-tiles.d.ts.map +1 -1
  297. package/lib/typescript/src/components/amount-summary/amount-summary.d.ts.map +1 -1
  298. package/lib/typescript/src/components/button/button.d.ts +3 -1
  299. package/lib/typescript/src/components/button/button.d.ts.map +1 -1
  300. package/lib/typescript/src/components/calendar/calendar.d.ts.map +1 -1
  301. package/lib/typescript/src/components/chip/chip.d.ts +2 -1
  302. package/lib/typescript/src/components/chip/chip.d.ts.map +1 -1
  303. package/lib/typescript/src/components/chip-group/chip-group.d.ts +1 -0
  304. package/lib/typescript/src/components/chip-group/chip-group.d.ts.map +1 -1
  305. package/lib/typescript/src/components/circle-grid/circle-grid.d.ts.map +1 -1
  306. package/lib/typescript/src/components/credit/credit.d.ts +1 -0
  307. package/lib/typescript/src/components/credit/credit.d.ts.map +1 -1
  308. package/lib/typescript/src/components/dialog/dialog.d.ts.map +1 -1
  309. package/lib/typescript/src/components/dropdown-menu/dropdown-menu.d.ts +2 -0
  310. package/lib/typescript/src/components/dropdown-menu/dropdown-menu.d.ts.map +1 -1
  311. package/lib/typescript/src/components/empty-state/empty-state.d.ts.map +1 -1
  312. package/lib/typescript/src/components/fact-list/fact-list.d.ts.map +1 -1
  313. package/lib/typescript/src/components/field/field.d.ts.map +1 -1
  314. package/lib/typescript/src/components/filter-tabs/filter-tabs.d.ts.map +1 -1
  315. package/lib/typescript/src/components/list-row/list-row.d.ts +3 -1
  316. package/lib/typescript/src/components/list-row/list-row.d.ts.map +1 -1
  317. package/lib/typescript/src/components/page-header/page-header.d.ts.map +1 -1
  318. package/lib/typescript/src/components/pill/pill.d.ts.map +1 -1
  319. package/lib/typescript/src/components/segmented-control/segmented-control.d.ts +2 -0
  320. package/lib/typescript/src/components/segmented-control/segmented-control.d.ts.map +1 -1
  321. package/lib/typescript/src/components/segmented-tabs/segmented-tabs.d.ts.map +1 -1
  322. package/lib/typescript/src/components/skeleton/skeleton.d.ts +2 -1
  323. package/lib/typescript/src/components/skeleton/skeleton.d.ts.map +1 -1
  324. package/lib/typescript/src/components/slider/slider.d.ts +2 -1
  325. package/lib/typescript/src/components/slider/slider.d.ts.map +1 -1
  326. package/lib/typescript/src/components/status-steps/status-steps.d.ts.map +1 -1
  327. package/lib/typescript/src/components/text/figures.d.ts +12 -0
  328. package/lib/typescript/src/components/text/figures.d.ts.map +1 -0
  329. package/lib/typescript/src/components/text/index.d.ts +1 -0
  330. package/lib/typescript/src/components/text/index.d.ts.map +1 -1
  331. package/lib/typescript/src/components/text/metrics.d.ts +6 -0
  332. package/lib/typescript/src/components/text/metrics.d.ts.map +1 -0
  333. package/lib/typescript/src/components/text/text.d.ts +2 -2
  334. package/lib/typescript/src/components/text/text.d.ts.map +1 -1
  335. package/lib/typescript/src/components/tile-grid/tile-grid.d.ts.map +1 -1
  336. package/lib/typescript/src/components/toast/toast.d.ts.map +1 -1
  337. package/lib/typescript/src/components/value-rows/value-rows.d.ts.map +1 -1
  338. package/lib/typescript/src/index.d.ts +1 -1
  339. package/lib/typescript/src/index.d.ts.map +1 -1
  340. package/lib/typescript/src/internal/field-label.d.ts.map +1 -1
  341. package/lib/typescript/src/internal/glyphs.d.ts +1 -0
  342. package/lib/typescript/src/internal/glyphs.d.ts.map +1 -1
  343. package/lib/typescript/src/internal/line-icons.d.ts +1 -0
  344. package/lib/typescript/src/internal/line-icons.d.ts.map +1 -1
  345. package/lib/typescript/src/internal/retry-glyph.d.ts.map +1 -1
  346. package/lib/typescript/src/internal/roll-text.d.ts +3 -2
  347. package/lib/typescript/src/internal/roll-text.d.ts.map +1 -1
  348. package/lib/typescript/src/internal/sample-tiles.d.ts +2 -0
  349. package/lib/typescript/src/internal/sample-tiles.d.ts.map +1 -1
  350. package/lib/typescript/src/internal/undo-glyph.d.ts.map +1 -1
  351. package/lib/typescript/src/sortable/section-board.d.ts.map +1 -1
  352. package/lib/typescript/src/templates/design-pick-template.d.ts.map +1 -1
  353. package/lib/typescript/src/templates/intro-template.d.ts.map +1 -1
  354. package/lib/typescript/src/templates/preview-edit-template.d.ts.map +1 -1
  355. package/lib/typescript/src/templates/result-template.d.ts +2 -1
  356. package/lib/typescript/src/templates/result-template.d.ts.map +1 -1
  357. package/lib/typescript/src/templates/scroll-templates.d.ts.map +1 -1
  358. package/lib/typescript/src/templates/sheet-form-template.d.ts.map +1 -1
  359. package/lib/typescript/src/theme/base.d.ts +9 -2
  360. package/lib/typescript/src/theme/base.d.ts.map +1 -1
  361. package/lib/typescript/src/theme/create-theme.d.ts.map +1 -1
  362. package/lib/typescript/src/theme/tokens.d.ts +3 -1
  363. package/lib/typescript/src/theme/tokens.d.ts.map +1 -1
  364. package/lib/typescript/src/types/index.d.ts +12 -0
  365. package/lib/typescript/src/types/index.d.ts.map +1 -1
  366. package/package.json +1 -1
  367. package/src/adjust/adjust-template.tsx +1 -0
  368. package/src/adjust/axis-adjust.tsx +206 -0
  369. package/src/adjust/axis-dial.tsx +2 -2
  370. package/src/adjust/axis-tabs.tsx +81 -0
  371. package/src/adjust/axis-wheel.tsx +309 -0
  372. package/src/adjust/dial-strip.tsx +5 -3
  373. package/src/adjust/index.ts +15 -0
  374. package/src/adjust/store-sample.tsx +519 -0
  375. package/src/blocks/chat-message/chat-message.tsx +1 -0
  376. package/src/blocks/choice-art/choice-art.tsx +2 -0
  377. package/src/blocks/color-swatch-picker/color-swatch-picker.tsx +1 -1
  378. package/src/blocks/color-tune/store-sample.tsx +11 -6
  379. package/src/blocks/color-tune/swatch-card.tsx +1 -1
  380. package/src/blocks/detail-editor/compare-slider.tsx +4 -1
  381. package/src/blocks/detail-editor/detail-canvas.tsx +267 -69
  382. package/src/blocks/detail-editor/detail-types.ts +37 -0
  383. package/src/blocks/detail-editor/draft-preview.tsx +46 -2
  384. package/src/blocks/detail-editor/focus-context.ts +13 -0
  385. package/src/blocks/detail-editor/index.ts +11 -1
  386. package/src/blocks/detail-editor/keep-words.ts +36 -0
  387. package/src/blocks/detail-editor/layout-picker.tsx +191 -6
  388. package/src/blocks/detail-request/detail-request.tsx +198 -0
  389. package/src/blocks/detail-request/index.ts +11 -0
  390. package/src/blocks/detail-studio/action-chips.tsx +78 -0
  391. package/src/blocks/detail-studio/adjust-tiles.tsx +4 -3
  392. package/src/blocks/detail-studio/asset-grid.tsx +30 -16
  393. package/src/blocks/detail-studio/confirm-row.tsx +3 -0
  394. package/src/blocks/detail-studio/detail-studio-template.tsx +2 -6
  395. package/src/blocks/detail-studio/edge-fade.tsx +76 -0
  396. package/src/blocks/detail-studio/image-prompt.tsx +7 -9
  397. package/src/blocks/detail-studio/index.ts +19 -16
  398. package/src/blocks/detail-studio/rewrite-tray.tsx +16 -56
  399. package/src/blocks/detail-studio/section-cover.tsx +44 -0
  400. package/src/blocks/detail-studio/section-edit-template.tsx +138 -13
  401. package/src/blocks/detail-studio/section-kind-grid.tsx +4 -2
  402. package/src/blocks/detail-studio/section-settings.tsx +124 -69
  403. package/src/blocks/detail-studio/studio-bar.tsx +61 -41
  404. package/src/blocks/detail-studio/studio-dock.tsx +19 -37
  405. package/src/blocks/detail-studio/studio-glyphs.tsx +77 -0
  406. package/src/blocks/detail-studio/studio-sheet.tsx +7 -3
  407. package/src/blocks/detail-studio/studio-steps.tsx +58 -0
  408. package/src/blocks/detail-studio/studio-toggle.tsx +130 -0
  409. package/src/blocks/detail-studio/studio-tools.tsx +126 -0
  410. package/src/blocks/detail-studio/text-format-panel.tsx +30 -14
  411. package/src/blocks/draft-box/draft-box.tsx +3 -0
  412. package/src/blocks/index.tsx +1 -0
  413. package/src/blocks/oauth-buttons/oauth-buttons.tsx +1 -0
  414. package/src/blocks/order-block/order-block.tsx +20 -4
  415. package/src/blocks/product-tile/product-tile.tsx +4 -1
  416. package/src/blocks/question-accordion/question-accordion.tsx +0 -1
  417. package/src/blocks/question-pager/question-pager.tsx +2 -1
  418. package/src/blocks/review-card/review-card.tsx +4 -0
  419. package/src/blocks/send-bar/send-bar.tsx +1 -0
  420. package/src/blocks/stage-bar/stage-bar.tsx +3 -2
  421. package/src/blocks/stat-card/stat-card.tsx +2 -1
  422. package/src/blocks/step-screen/step-screen.tsx +5 -2
  423. package/src/blocks/store-top/store-top.tsx +7 -2
  424. package/src/blocks/summary-cards/summary-cards.tsx +4 -3
  425. package/src/blocks/task-tiles/task-tiles.tsx +2 -1
  426. package/src/components/amount-summary/amount-summary.tsx +9 -3
  427. package/src/components/button/button.tsx +18 -5
  428. package/src/components/calendar/calendar.tsx +5 -2
  429. package/src/components/chip/chip.tsx +11 -2
  430. package/src/components/chip-group/chip-group.tsx +2 -0
  431. package/src/components/circle-grid/circle-grid.tsx +5 -1
  432. package/src/components/credit/credit.tsx +11 -4
  433. package/src/components/dialog/dialog.tsx +2 -0
  434. package/src/components/dropdown-menu/dropdown-menu.tsx +18 -7
  435. package/src/components/empty-state/empty-state.tsx +1 -0
  436. package/src/components/fact-list/fact-list.tsx +1 -0
  437. package/src/components/field/field.tsx +4 -0
  438. package/src/components/filter-tabs/filter-tabs.tsx +2 -1
  439. package/src/components/list-row/list-row.tsx +40 -5
  440. package/src/components/page-header/page-header.tsx +1 -0
  441. package/src/components/pill/pill.tsx +1 -0
  442. package/src/components/segmented-control/segmented-control.tsx +12 -2
  443. package/src/components/segmented-tabs/segmented-tabs.tsx +2 -1
  444. package/src/components/skeleton/skeleton.tsx +5 -2
  445. package/src/components/slider/slider.tsx +66 -14
  446. package/src/components/status-steps/status-steps.tsx +2 -0
  447. package/src/components/text/figures.tsx +92 -0
  448. package/src/components/text/index.ts +7 -0
  449. package/src/components/text/metrics.ts +5 -0
  450. package/src/components/text/text.tsx +60 -16
  451. package/src/components/tile-grid/tile-grid.tsx +3 -2
  452. package/src/components/toast/toast.tsx +7 -1
  453. package/src/components/value-rows/value-rows.tsx +9 -1
  454. package/src/index.tsx +1 -0
  455. package/src/internal/field-label.tsx +2 -0
  456. package/src/internal/glyphs.tsx +2 -0
  457. package/src/internal/line-icons.ts +2 -0
  458. package/src/internal/retry-glyph.tsx +7 -2
  459. package/src/internal/roll-text.tsx +12 -2
  460. package/src/internal/sample-tiles.tsx +2 -0
  461. package/src/internal/undo-glyph.tsx +12 -11
  462. package/src/sortable/section-board.tsx +73 -76
  463. package/src/templates/design-pick-template.tsx +10 -1
  464. package/src/templates/intro-template.tsx +14 -12
  465. package/src/templates/preview-edit-template.tsx +3 -0
  466. package/src/templates/result-template.tsx +3 -0
  467. package/src/templates/scroll-templates.tsx +11 -2
  468. package/src/templates/sheet-form-template.tsx +4 -0
  469. package/src/theme/base.ts +9 -2
  470. package/src/theme/create-theme.ts +9 -2
  471. package/src/theme/tokens.ts +37 -3
  472. package/src/types/index.ts +13 -0
  473. package/lib/module/blocks/detail-studio/keyboard-bar.js +0 -67
  474. package/lib/module/blocks/detail-studio/keyboard-bar.js.map +0 -1
  475. package/lib/module/blocks/detail-studio/photo-tool-bar.js.map +0 -1
  476. package/lib/module/blocks/detail-studio/section-thumb.js +0 -49
  477. package/lib/module/blocks/detail-studio/section-thumb.js.map +0 -1
  478. package/lib/typescript/src/blocks/detail-studio/keyboard-bar.d.ts +0 -18
  479. package/lib/typescript/src/blocks/detail-studio/keyboard-bar.d.ts.map +0 -1
  480. package/lib/typescript/src/blocks/detail-studio/photo-tool-bar.d.ts +0 -19
  481. package/lib/typescript/src/blocks/detail-studio/photo-tool-bar.d.ts.map +0 -1
  482. package/lib/typescript/src/blocks/detail-studio/section-thumb.d.ts +0 -14
  483. package/lib/typescript/src/blocks/detail-studio/section-thumb.d.ts.map +0 -1
  484. package/src/blocks/detail-studio/keyboard-bar.tsx +0 -73
  485. package/src/blocks/detail-studio/photo-tool-bar.tsx +0 -100
  486. package/src/blocks/detail-studio/section-thumb.tsx +0 -41
@@ -0,0 +1,519 @@
1
+ import { useEffect, useRef, type ReactNode } from 'react';
2
+ import {
3
+ Animated,
4
+ Easing,
5
+ Image,
6
+ Platform,
7
+ StyleSheet,
8
+ Text as RNText,
9
+ View,
10
+ type ImageSourcePropType,
11
+ type TextStyle,
12
+ type ViewStyle,
13
+ } from 'react-native';
14
+ import Svg, { Path } from 'react-native-svg';
15
+ import { useReducedMotion } from '../internal/use-reduced-motion';
16
+
17
+ export type StoreSampleScene =
18
+ 'color' | 'motion' | 'shape' | 'style' | 'power' | 'whole';
19
+
20
+ export type StoreSampleLook = {
21
+ surface: string;
22
+ surfaceAlt: string;
23
+ text: string;
24
+ muted: string;
25
+ accent: string;
26
+ onAccent: string;
27
+ radiusSm: number;
28
+ radiusMd: number;
29
+ radiusLg: number;
30
+ button: 'square' | 'rounded' | 'pill';
31
+ gutter: number;
32
+ sectionGap: number;
33
+ autoplay: boolean;
34
+ photoRatio: number;
35
+ tracking: number;
36
+ scale: number;
37
+ weight: 500 | 600 | 700;
38
+ area: 0 | 1 | 2;
39
+ serif: boolean;
40
+ };
41
+
42
+ export type StoreSampleCopy = {
43
+ store: string;
44
+ headline: string;
45
+ hero: string;
46
+ section: string;
47
+ more: string;
48
+ notice: string;
49
+ add: string;
50
+ };
51
+
52
+ export type StoreSampleProps = {
53
+ scene: StoreSampleScene;
54
+ look: StoreSampleLook;
55
+ photos: readonly ImageSourcePropType[];
56
+ hero: ImageSourcePropType;
57
+ copy: StoreSampleCopy;
58
+ width: number;
59
+ height: number;
60
+ fontFamily?: string;
61
+ serifFamily?: string;
62
+ cutout?: boolean;
63
+ };
64
+
65
+ const BASE = 390;
66
+ const PAD = 20;
67
+ const BAR = 56;
68
+ const SMALL = 280;
69
+ const TURN = 3000;
70
+ const SLIDE = 600;
71
+
72
+ const styles = StyleSheet.create({
73
+ root: { overflow: 'hidden' },
74
+ row: { flexDirection: 'row' },
75
+ center: { alignItems: 'center', justifyContent: 'center' },
76
+ between: {
77
+ flexDirection: 'row',
78
+ alignItems: 'center',
79
+ justifyContent: 'space-between',
80
+ },
81
+ lead: {
82
+ flex: 1,
83
+ justifyContent: 'space-between',
84
+ alignItems: 'flex-start',
85
+ paddingRight: 0,
86
+ },
87
+ fill: { flex: 1 },
88
+ strong: { fontWeight: '600' },
89
+ bold: { fontWeight: '600' },
90
+ dots: {
91
+ position: 'absolute',
92
+ left: 0,
93
+ right: 0,
94
+ flexDirection: 'row',
95
+ justifyContent: 'center',
96
+ },
97
+ faded: { opacity: 0.35 },
98
+ clip: { overflow: 'hidden', alignItems: 'center', justifyContent: 'center' },
99
+ inset: { width: '76%', height: '76%' },
100
+ });
101
+
102
+ const serifDefault = Platform.select({
103
+ ios: 'NanumMyeongjo',
104
+ android: 'NanumMyeongjo',
105
+ default: "'Nanum Myeongjo', 'Noto Serif KR', serif",
106
+ });
107
+
108
+ function Glyph({ d, size, color }: { d: string; size: number; color: string }) {
109
+ return (
110
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
111
+ <Path
112
+ d={d}
113
+ stroke={color}
114
+ strokeWidth={1.6}
115
+ strokeLinecap="round"
116
+ strokeLinejoin="round"
117
+ />
118
+ </Svg>
119
+ );
120
+ }
121
+
122
+ const MENU = 'M4 8h16M4 16h16';
123
+ const BAG = 'M5 8h14l1 12H4zM9 8a3 3 0 016 0';
124
+ const HEART =
125
+ 'M12 20s-7.5-4.6-7.5-10.2A4.2 4.2 0 0112 7.2a4.2 4.2 0 017.5 2.6C19.5 15.4 12 20 12 20z';
126
+
127
+ function Shot({
128
+ source,
129
+ box,
130
+ tone,
131
+ cutout,
132
+ }: {
133
+ source: ImageSourcePropType | undefined;
134
+ box: ViewStyle;
135
+ tone: string;
136
+ cutout: boolean;
137
+ }) {
138
+ if (!source) return <View style={[box, { backgroundColor: tone }]} />;
139
+ return cutout ? (
140
+ <View style={[styles.clip, box, { backgroundColor: tone }]}>
141
+ <Image source={source} resizeMode="contain" style={styles.inset} />
142
+ </View>
143
+ ) : (
144
+ <Image
145
+ source={source}
146
+ resizeMode="cover"
147
+ style={[box as never, { backgroundColor: tone }]}
148
+ />
149
+ );
150
+ }
151
+
152
+ function Rail({
153
+ photos,
154
+ side,
155
+ gap,
156
+ pad,
157
+ radius,
158
+ tone,
159
+ play,
160
+ cutout,
161
+ }: {
162
+ photos: readonly ImageSourcePropType[];
163
+ side: number;
164
+ gap: number;
165
+ pad: number;
166
+ radius: number;
167
+ tone: string;
168
+ play: boolean;
169
+ cutout: boolean;
170
+ }) {
171
+ const reduced = useReducedMotion();
172
+ const x = useRef(new Animated.Value(0)).current;
173
+ const running = play && !reduced;
174
+ useEffect(() => {
175
+ if (!running) {
176
+ x.setValue(0);
177
+ return undefined;
178
+ }
179
+ let at = 0;
180
+ const timer = setInterval(() => {
181
+ at = (at + 1) % 3;
182
+ Animated.timing(x, {
183
+ toValue: -at * (side + gap),
184
+ duration: SLIDE,
185
+ easing: Easing.inOut(Easing.cubic),
186
+ useNativeDriver: Platform.OS !== 'web',
187
+ }).start();
188
+ }, TURN);
189
+ return () => clearInterval(timer);
190
+ }, [running, side, gap, x]);
191
+ return (
192
+ <Animated.View
193
+ style={[
194
+ styles.row,
195
+ { gap, paddingLeft: pad, transform: [{ translateX: x }] },
196
+ ]}
197
+ >
198
+ {photos.map((photo, i) => (
199
+ <Shot
200
+ key={i}
201
+ source={photo}
202
+ box={{ width: side, height: side, borderRadius: radius }}
203
+ tone={tone}
204
+ cutout={cutout}
205
+ />
206
+ ))}
207
+ </Animated.View>
208
+ );
209
+ }
210
+
211
+ export function StoreSample({
212
+ scene,
213
+ look,
214
+ photos,
215
+ hero,
216
+ copy,
217
+ width,
218
+ height,
219
+ fontFamily,
220
+ serifFamily = serifDefault,
221
+ cutout = false,
222
+ }: StoreSampleProps) {
223
+ const k = width / BASE;
224
+ const px = (n: number) => n * k;
225
+ const tall = height / k;
226
+ const small = tall < SMALL;
227
+ const inner = BASE - PAD * 2;
228
+ const cell = (inner - look.gutter) / 2;
229
+ const family = look.serif ? serifFamily : fontFamily;
230
+ const round = (h: number) =>
231
+ look.button === 'pill'
232
+ ? h / 2
233
+ : look.button === 'square'
234
+ ? look.radiusSm
235
+ : look.radiusMd;
236
+ const title = (size: number): TextStyle => ({
237
+ fontFamily: family,
238
+ fontSize: px(size),
239
+ lineHeight: px(size + 10),
240
+ letterSpacing: px(size * look.tracking),
241
+ fontWeight: String(look.weight) as TextStyle['fontWeight'],
242
+ color: look.text,
243
+ });
244
+ const photo = (i: number, w: number, h: number, radius = look.radiusLg) => (
245
+ <Shot
246
+ key={i}
247
+ source={photos[i % Math.max(1, photos.length)]}
248
+ box={{ width: px(w), height: px(h), borderRadius: px(radius) }}
249
+ tone={look.surfaceAlt}
250
+ cutout={cutout}
251
+ />
252
+ );
253
+ const pair = (first: number, h: number) => (
254
+ <View
255
+ style={[styles.row, { gap: px(look.gutter), paddingHorizontal: px(PAD) }]}
256
+ >
257
+ {photo(first, cell, h)}
258
+ {photo(first + 1, cell, h)}
259
+ </View>
260
+ );
261
+ const button = (label: string, h: number, size: number, flip = false) => (
262
+ <View
263
+ style={[
264
+ styles.center,
265
+ {
266
+ height: px(h),
267
+ paddingHorizontal: px(22),
268
+ borderRadius: px(round(h)),
269
+ backgroundColor: flip ? look.onAccent : look.accent,
270
+ },
271
+ ]}
272
+ >
273
+ <RNText
274
+ allowFontScaling={false}
275
+ style={[
276
+ styles.strong,
277
+ {
278
+ fontFamily,
279
+ fontSize: px(size),
280
+ color: flip ? look.accent : look.onAccent,
281
+ },
282
+ ]}
283
+ >
284
+ {label}
285
+ </RNText>
286
+ </View>
287
+ );
288
+ const bar = (
289
+ <View
290
+ style={[styles.between, { height: px(BAR), paddingHorizontal: px(PAD) }]}
291
+ >
292
+ <Glyph d={MENU} size={px(22)} color={look.text} />
293
+ <RNText allowFontScaling={false} style={[title(20), styles.bold]}>
294
+ {copy.store}
295
+ </RNText>
296
+ <Glyph d={BAG} size={px(22)} color={look.text} />
297
+ </View>
298
+ );
299
+ const strong = look.area === 2;
300
+ const heroHeight =
301
+ scene === 'whole'
302
+ ? 252
303
+ : Math.min(300, Math.max(130, tall - (small ? 44 : 58)));
304
+ const heroBlock = (
305
+ <View
306
+ style={[
307
+ styles.row,
308
+ {
309
+ height: px(heroHeight),
310
+ backgroundColor: strong ? look.accent : look.surfaceAlt,
311
+ },
312
+ ]}
313
+ >
314
+ <View
315
+ style={[
316
+ styles.lead,
317
+ {
318
+ paddingVertical: px(small ? 14 : 20),
319
+ paddingLeft: px(small ? 14 : 20),
320
+ },
321
+ ]}
322
+ >
323
+ <RNText
324
+ allowFontScaling={false}
325
+ style={[
326
+ title(Math.round((small ? 12.6 : 16) * Math.pow(look.scale, 3.6))),
327
+ strong && { color: look.onAccent },
328
+ ]}
329
+ >
330
+ {copy.hero}
331
+ </RNText>
332
+ {button(copy.more, small ? 36 : 48, 15, strong)}
333
+ </View>
334
+ <Shot
335
+ source={photos[2 % Math.max(1, photos.length)]}
336
+ box={{ width: px(178), height: '100%' }}
337
+ tone={strong ? look.accent : look.surfaceAlt}
338
+ cutout={cutout}
339
+ />
340
+ </View>
341
+ );
342
+ const band = (
343
+ <View
344
+ style={[
345
+ styles.center,
346
+ {
347
+ height: px(48),
348
+ backgroundColor: look.area === 0 ? look.surface : look.accent,
349
+ },
350
+ ]}
351
+ >
352
+ <RNText
353
+ allowFontScaling={false}
354
+ style={[
355
+ styles.strong,
356
+ {
357
+ fontFamily,
358
+ fontSize: px(15),
359
+ color: look.area === 0 ? look.muted : look.onAccent,
360
+ },
361
+ ]}
362
+ >
363
+ {copy.notice}
364
+ </RNText>
365
+ </View>
366
+ );
367
+ const sectionTitle = (
368
+ <RNText
369
+ allowFontScaling={false}
370
+ style={[
371
+ title(Math.round(16 * Math.pow(look.scale, 2))),
372
+ { paddingHorizontal: px(PAD), paddingBottom: px(14) },
373
+ ]}
374
+ >
375
+ {copy.section}
376
+ </RNText>
377
+ );
378
+
379
+ let body: ReactNode;
380
+ if (scene === 'color') {
381
+ const h = Math.max(70, (tall - BAR - look.gutter - PAD) / 2);
382
+ body = (
383
+ <>
384
+ {bar}
385
+ <View style={{ gap: px(look.gutter) }}>
386
+ {pair(0, h)}
387
+ {pair(2, h)}
388
+ </View>
389
+ </>
390
+ );
391
+ } else if (scene === 'motion') {
392
+ const side = Math.max(64, Math.min(230, tall * 0.42));
393
+ body = (
394
+ <View style={{ paddingTop: px(PAD), gap: px(look.sectionGap) }}>
395
+ <View>
396
+ <Rail
397
+ photos={[0, 1, 3, 2].map(
398
+ (i) => photos[i % Math.max(1, photos.length)]!
399
+ )}
400
+ side={px(side)}
401
+ gap={px(look.gutter)}
402
+ pad={px(PAD)}
403
+ radius={px(look.radiusLg)}
404
+ tone={look.surfaceAlt}
405
+ play={look.autoplay}
406
+ cutout={cutout}
407
+ />
408
+ {look.autoplay ? (
409
+ <View style={[styles.dots, { bottom: -px(PAD), gap: px(6) }]}>
410
+ {[0, 1, 2].map((i) => (
411
+ <View
412
+ key={i}
413
+ style={[
414
+ {
415
+ width: px(i ? 6 : 18),
416
+ height: px(6),
417
+ borderRadius: px(3),
418
+ backgroundColor: i ? look.muted : look.accent,
419
+ },
420
+ i > 0 && styles.faded,
421
+ ]}
422
+ />
423
+ ))}
424
+ </View>
425
+ ) : null}
426
+ </View>
427
+ {pair(2, cell)}
428
+ </View>
429
+ );
430
+ } else if (scene === 'shape') {
431
+ const h = Math.max(70, tall - PAD * 3 - 56);
432
+ body = (
433
+ <View style={{ padding: px(PAD), gap: px(PAD) }}>
434
+ <Shot
435
+ source={hero}
436
+ box={{
437
+ width: px(inner),
438
+ height: px(h),
439
+ borderRadius: px(look.radiusLg),
440
+ }}
441
+ tone={look.surfaceAlt}
442
+ cutout={cutout}
443
+ />
444
+ <View style={[styles.row, { gap: px(10) }]}>
445
+ <View
446
+ style={[
447
+ styles.center,
448
+ {
449
+ width: px(56),
450
+ height: px(56),
451
+ borderRadius: px(round(56)),
452
+ backgroundColor: look.surfaceAlt,
453
+ },
454
+ ]}
455
+ >
456
+ <Glyph d={HEART} size={px(24)} color={look.text} />
457
+ </View>
458
+ <View style={styles.fill}>{button(copy.add, 56, 17)}</View>
459
+ </View>
460
+ </View>
461
+ );
462
+ } else if (scene === 'style') {
463
+ const w = Math.min(260, Math.max(90, (tall - 110) / 1.25));
464
+ body = (
465
+ <View style={{ paddingTop: px(22) }}>
466
+ <RNText
467
+ allowFontScaling={false}
468
+ numberOfLines={1}
469
+ style={[title(small ? 26 : 30), { paddingHorizontal: px(PAD) }]}
470
+ >
471
+ {copy.headline}
472
+ </RNText>
473
+ <View
474
+ style={[
475
+ styles.row,
476
+ {
477
+ gap: px(look.gutter),
478
+ paddingLeft: px(PAD),
479
+ paddingTop: px(16),
480
+ },
481
+ ]}
482
+ >
483
+ {[1, 0, 3].map((i) =>
484
+ photo(i, w, w / look.photoRatio, Math.min(look.radiusLg, w / 4))
485
+ )}
486
+ </View>
487
+ </View>
488
+ );
489
+ } else if (scene === 'power') {
490
+ body = (
491
+ <>
492
+ {heroBlock}
493
+ {band}
494
+ <View style={{ paddingTop: px(22) }}>{sectionTitle}</View>
495
+ {pair(0, cell)}
496
+ </>
497
+ );
498
+ } else {
499
+ body = (
500
+ <>
501
+ {bar}
502
+ {heroBlock}
503
+ {band}
504
+ <View style={{ paddingTop: px(look.sectionGap) }}>
505
+ {sectionTitle}
506
+ {pair(1, cell / look.photoRatio)}
507
+ </View>
508
+ </>
509
+ );
510
+ }
511
+ return (
512
+ <View
513
+ pointerEvents="none"
514
+ style={[styles.root, { width, height, backgroundColor: look.surface }]}
515
+ >
516
+ {body}
517
+ </View>
518
+ );
519
+ }
@@ -20,6 +20,7 @@ const useStyles = makeStyles((t) => ({
20
20
  who: {
21
21
  fontFamily: t.fontFamily,
22
22
  fontSize: t.typography.caption.fontSize,
23
+ letterSpacing: t.typography.caption.letterSpacing,
23
24
  lineHeight: t.typography.caption.lineHeight,
24
25
  color: t.colors.mutedForeground,
25
26
  },
@@ -74,6 +74,7 @@ const useStyles = makeStyles((t) => ({
74
74
  sample: {
75
75
  fontFamily: t.fontFamily,
76
76
  fontSize: t.typography.label.fontSize,
77
+ letterSpacing: t.typography.label.letterSpacing,
77
78
  lineHeight: t.space[6],
78
79
  fontWeight: '600',
79
80
  },
@@ -229,6 +230,7 @@ const useStyles = makeStyles((t) => ({
229
230
  chipLabel: {
230
231
  fontFamily: t.fontFamily,
231
232
  fontSize: t.typography.eyebrow.fontSize,
233
+ letterSpacing: t.typography.eyebrow.letterSpacing,
232
234
  lineHeight: t.typography.eyebrow.lineHeight,
233
235
  fontWeight: '400',
234
236
  color: t.colors.title,
@@ -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] },
@@ -10,6 +10,7 @@ import {
10
10
  import { useTheme } from '../../theme/theme-provider';
11
11
  import { contrastRatio, pickForeground } from '../../utils/color';
12
12
  import { makeStyles } from '../../utils/styles';
13
+ import { Won } from '../../components/text/figures';
13
14
  import type { PaletteColors } from '../palette-block/palette-block';
14
15
 
15
16
  export type StoreSampleItem = {
@@ -36,7 +37,7 @@ const RADIUS = 22;
36
37
  const TOP = 11;
37
38
  const TITLE_SIZE = 18;
38
39
  const TITLE_LEADING = 24;
39
- const TITLE_TRACKING = -0.3;
40
+ const TITLE_TRACKING = -0.22;
40
41
  const BAG = 20;
41
42
  const BAG_STROKE = 1.5;
42
43
  const CHIPS_TOP = 17;
@@ -49,7 +50,7 @@ const HERO = 150;
49
50
  const HERO_RADIUS = 14;
50
51
  const BADGE = 22;
51
52
  const BADGE_SIZE = 12;
52
- const BADGE_TRACKING = 0.4;
53
+ const BADGE_TRACKING = 0.12;
53
54
  const GRID_TOP = 14;
54
55
  const GRID_GAP = 10;
55
56
  const ROW_GAP = 16;
@@ -58,6 +59,7 @@ const ITEM_SIZE = 13;
58
59
  const ITEM_LEADING = 18;
59
60
  const PRICE_SIZE = 14;
60
61
  const PRICE_LEADING = 20;
62
+ const PRICE_TRACKING = -0.06;
61
63
 
62
64
  const useStyles = makeStyles((t) => ({
63
65
  root: { borderRadius: RADIUS, boxShadow: t.shadow.lift },
@@ -83,7 +85,7 @@ const useStyles = makeStyles((t) => ({
83
85
  fontSize: TITLE_SIZE,
84
86
  lineHeight: TITLE_LEADING,
85
87
  letterSpacing: TITLE_TRACKING,
86
- fontWeight: '700',
88
+ fontWeight: '600',
87
89
  },
88
90
  chips: {
89
91
  flexDirection: 'row',
@@ -118,7 +120,7 @@ const useStyles = makeStyles((t) => ({
118
120
  fontSize: BADGE_SIZE,
119
121
  lineHeight: BADGE,
120
122
  letterSpacing: BADGE_TRACKING,
121
- fontWeight: '700',
123
+ fontWeight: '600',
122
124
  },
123
125
  grid: { gap: ROW_GAP, marginTop: GRID_TOP },
124
126
  row: { flexDirection: 'row', gap: GRID_GAP },
@@ -156,7 +158,8 @@ const useStyles = makeStyles((t) => ({
156
158
  fontFamily: t.fontFamily,
157
159
  fontSize: PRICE_SIZE,
158
160
  lineHeight: PRICE_LEADING,
159
- fontWeight: '700',
161
+ letterSpacing: PRICE_TRACKING,
162
+ fontWeight: '500',
160
163
  },
161
164
  }));
162
165
 
@@ -269,7 +272,9 @@ function StoreSampleView({
269
272
  maxFontSizeMultiplier={scale}
270
273
  style={[s.price, { color: colors.text }]}
271
274
  >
272
- {item.price}
275
+ <Won size={PRICE_SIZE} tracking={PRICE_TRACKING}>
276
+ {item.price}
277
+ </Won>
273
278
  </Text>
274
279
  </View>
275
280
  ))}
@@ -22,7 +22,7 @@ const CODE_LEADING = 18;
22
22
  const CODE_TRACKING = 0.8;
23
23
  const NAME_SIZE = 22;
24
24
  const NAME_LEADING = 28;
25
- const NAME_TRACKING = -0.3;
25
+ const NAME_TRACKING = -0.48;
26
26
  const LINE_GAP = 2;
27
27
  const RESET = 36;
28
28
  const RESET_ICON = 18;
@@ -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;
@@ -68,6 +69,7 @@ const useStyles = makeStyles((t) => ({
68
69
  tagText: {
69
70
  fontFamily: t.fontFamily,
70
71
  fontSize: t.typography.caption.fontSize,
72
+ letterSpacing: t.typography.caption.letterSpacing,
71
73
  lineHeight: t.typography.caption.lineHeight,
72
74
  fontWeight: '600',
73
75
  color: t.colors.title,
@@ -80,6 +82,7 @@ export function CompareSlider({
80
82
  aspectRatio = 4 / 5,
81
83
  label = '원본과 비교',
82
84
  labels,
85
+ inset = 0,
83
86
  }: CompareSliderProps) {
84
87
  const t = useTheme();
85
88
  const s = useStyles();
@@ -134,7 +137,7 @@ export function CompareSlider({
134
137
  style={[s.fill, { width }]}
135
138
  />
136
139
  </View>
137
- <View style={[s.line, { left: x - 1 }]} />
140
+ <View style={[s.line, { left: x - 1, top: inset, bottom: inset }]} />
138
141
  <View style={[s.knob, { left: x - knob / 2 }]}>
139
142
  <View style={s.flip}>
140
143
  <ChevronGlyph color={t.colors.title} size={t.space[3]} />