@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
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useRef } from 'react';
2
- import type { StyleProp, TextStyle } from 'react-native';
2
+ import { StyleSheet, type StyleProp, type TextStyle } from 'react-native';
3
3
  import Animated, {
4
4
  interpolateColor,
5
5
  type AnimatedStyle,
@@ -8,6 +8,7 @@ import Animated, {
8
8
  withSequence,
9
9
  withTiming,
10
10
  } from 'react-native-reanimated';
11
+ import { Won } from '../components/text/figures';
11
12
  import { useTheme } from '../theme/theme-provider';
12
13
  import { timing } from './motion';
13
14
 
@@ -19,11 +20,13 @@ export function RollText({
19
20
  style,
20
21
  animatedStyle,
21
22
  flash = false,
23
+ money = false,
22
24
  }: {
23
25
  children: string | number;
24
26
  style?: StyleProp<TextStyle>;
25
27
  animatedStyle?: StyleProp<AnimatedStyle<TextStyle>>;
26
28
  flash?: boolean;
29
+ money?: boolean;
27
30
  }) {
28
31
  const t = useTheme();
29
32
  const roll = useSharedValue(0);
@@ -54,6 +57,7 @@ export function RollText({
54
57
  ['transparent', tint]
55
58
  ),
56
59
  }));
60
+ const flat = StyleSheet.flatten(style) ?? {};
57
61
  return (
58
62
  <Animated.Text
59
63
  maxFontSizeMultiplier={t.maxFontScale}
@@ -64,7 +68,13 @@ export function RollText({
64
68
  move,
65
69
  ]}
66
70
  >
67
- {children}
71
+ {money ? (
72
+ <Won size={flat.fontSize} tracking={flat.letterSpacing}>
73
+ {String(children)}
74
+ </Won>
75
+ ) : (
76
+ children
77
+ )}
68
78
  </Animated.Text>
69
79
  );
70
80
  }
@@ -87,6 +87,8 @@ export function useSampleStyle() {
87
87
  const t = useTheme();
88
88
  return {
89
89
  fontSize: t.typography.screenTitle.fontSize,
90
+ fontFamily: t.fontFamily,
91
+ letterSpacing: t.typography.screenTitle.letterSpacing,
90
92
  lineHeight: t.typography.screenTitle.lineHeight,
91
93
  color: t.colors.title,
92
94
  };
@@ -1,19 +1,17 @@
1
1
  import { StyleSheet, View } from 'react-native';
2
2
 
3
+ const OPEN = 'transparent';
4
+
3
5
  const g = StyleSheet.create({
4
- arc: {
5
- position: 'absolute',
6
- borderTopColor: 'transparent',
7
- transform: [{ rotate: '-45deg' }],
8
- },
9
- head: { position: 'absolute', transform: [{ rotate: '-6deg' }] },
6
+ arc: { position: 'absolute', transform: [{ rotate: '-55deg' }] },
7
+ head: { position: 'absolute', transform: [{ rotate: '45deg' }] },
10
8
  });
11
9
 
12
10
  export function UndoGlyph({ color, size }: { color: string; size: number }) {
13
11
  const unit = size / 18;
14
12
  const stroke = Math.max(1.5, unit * 1.7);
15
13
  const ring = unit * 13;
16
- const head = unit * 5;
14
+ const head = unit * 4.8;
17
15
  return (
18
16
  <View style={{ width: size, height: size }}>
19
17
  <View
@@ -26,7 +24,10 @@ export function UndoGlyph({ color, size }: { color: string; size: number }) {
26
24
  height: ring,
27
25
  borderRadius: ring / 2,
28
26
  borderWidth: stroke,
29
- borderColor: color,
27
+ borderTopColor: OPEN,
28
+ borderRightColor: color,
29
+ borderBottomColor: color,
30
+ borderLeftColor: color,
30
31
  },
31
32
  ]}
32
33
  />
@@ -34,14 +35,14 @@ export function UndoGlyph({ color, size }: { color: string; size: number }) {
34
35
  style={[
35
36
  g.head,
36
37
  {
37
- left: unit * 1.6,
38
- top: unit * 1.2,
38
+ left: unit * 6.6,
39
+ top: unit * 1.45,
39
40
  width: head,
40
41
  height: head,
41
42
  borderLeftWidth: stroke,
42
43
  borderBottomWidth: stroke,
43
44
  borderColor: color,
44
- borderRadius: unit * 0.8,
45
+ borderRadius: unit * 0.5,
45
46
  },
46
47
  ]}
47
48
  />
@@ -10,7 +10,6 @@ import {
10
10
  import { View } from 'react-native';
11
11
  import Animated, { useAnimatedRef } from 'react-native-reanimated';
12
12
  import Sortable from 'react-native-sortables';
13
- import { SECTION_THUMB } from '../blocks/detail-studio/section-thumb';
14
13
  import { Skeleton } from '../components/skeleton/skeleton';
15
14
  import { Text } from '../components/text/text';
16
15
  import type { SectionAnchor } from '../components/dropdown-menu/dropdown-menu';
@@ -46,42 +45,46 @@ export type SectionBoardProps = {
46
45
  const MOVE_LABELS: [string, string] = ['위로 이동', '아래로 이동'];
47
46
  const WAIT_LINE = 120;
48
47
 
49
- const rowHeight = (t: Theme) => SECTION_THUMB.height + t.space[2] * 2;
48
+ const rowHeight = (t: Theme) => t.listRow.threeLine;
49
+
50
+ const thumbSize = (t: Theme) => t.space[16];
50
51
 
51
52
  const useStyles = makeStyles((t) => ({
52
53
  scroll: { flex: 1 },
54
+ content: { paddingTop: t.space[1], paddingBottom: t.space[4] },
53
55
  card: {
54
56
  marginHorizontal: t.space[4],
55
- borderRadius: t.radius.lg,
57
+ borderRadius: t.radius.md * 2,
56
58
  backgroundColor: t.colors.surface,
57
59
  },
58
60
  row: {
59
61
  height: rowHeight(t),
60
62
  flexDirection: 'row',
61
63
  alignItems: 'center',
62
- paddingHorizontal: t.space[1],
64
+ paddingLeft: t.space[3],
65
+ paddingRight: t.space[1],
63
66
  backgroundColor: t.colors.surface,
64
67
  },
65
68
  first: {
66
- borderTopLeftRadius: t.radius.lg,
67
- borderTopRightRadius: t.radius.lg,
69
+ borderTopLeftRadius: t.radius.md * 2,
70
+ borderTopRightRadius: t.radius.md * 2,
68
71
  },
69
72
  last: {
70
- borderBottomLeftRadius: t.radius.lg,
71
- borderBottomRightRadius: t.radius.lg,
73
+ borderBottomLeftRadius: t.radius.md * 2,
74
+ borderBottomRightRadius: t.radius.md * 2,
72
75
  },
73
76
  pressed: { backgroundColor: t.colors.background },
74
- lifted: { borderRadius: t.radius.lg, boxShadow: t.shadow.lift },
77
+ lifted: { borderRadius: t.radius.md * 2, boxShadow: t.shadow.lift },
75
78
  line: {
76
79
  position: 'absolute',
77
80
  top: 0,
78
81
  right: 0,
79
- left: t.space[1] + t.space[8] + SECTION_THUMB.width + t.space[3],
82
+ left: 0,
80
83
  height: 1,
81
84
  backgroundColor: t.colors.border,
82
85
  },
83
86
  grip: {
84
- width: t.space[8],
87
+ width: t.minTouchSize,
85
88
  height: t.minTouchSize,
86
89
  alignItems: 'center',
87
90
  justifyContent: 'center',
@@ -93,26 +96,18 @@ const useStyles = makeStyles((t) => ({
93
96
  alignItems: 'center',
94
97
  },
95
98
  thumb: {
96
- width: SECTION_THUMB.width,
97
- height: SECTION_THUMB.height,
99
+ width: thumbSize(t),
100
+ height: thumbSize(t),
98
101
  overflow: 'hidden',
99
- borderRadius: t.radius.md,
100
- backgroundColor: t.colors.surface,
101
- },
102
- ring: {
103
- position: 'absolute',
104
- left: 0,
105
- right: 0,
106
- top: 0,
107
- bottom: 0,
108
- borderRadius: t.radius.md,
109
- borderWidth: 1,
110
- borderColor: t.colors.border,
102
+ borderRadius: t.radius.lg,
103
+ backgroundColor: t.colors.muted,
111
104
  },
112
105
  text: { flex: 1, paddingLeft: t.space[3], paddingRight: t.space[1] },
113
106
  snippet: {
114
107
  marginTop: t.space[1],
115
108
  fontSize: t.typography.eyebrow.fontSize,
109
+ fontFamily: t.fontFamily,
110
+ letterSpacing: t.typography.eyebrow.letterSpacing,
116
111
  lineHeight: t.typography.eyebrow.lineHeight,
117
112
  },
118
113
  faded: { opacity: t.opacity.disabled },
@@ -124,8 +119,9 @@ const useStyles = makeStyles((t) => ({
124
119
  justifyContent: 'center',
125
120
  },
126
121
  wait: { marginTop: t.space[2] },
127
- flag: { marginRight: -t.space[2] },
122
+ flag: { marginRight: -t.space[3] },
128
123
  turn: { transform: [{ rotate: '90deg' }] },
124
+ space: { width: t.minTouchSize * 2 },
129
125
  }));
130
126
 
131
127
  type RowProps = {
@@ -135,7 +131,7 @@ type RowProps = {
135
131
  active: boolean;
136
132
  lifted: boolean;
137
133
  onPress: (key: string) => void;
138
- onMore: (key: string, anchor: SectionAnchor) => void;
134
+ onMore: (key: string, index: number) => void;
139
135
  onMove: (from: number, to: number) => void;
140
136
  hiddenLabel: string;
141
137
  moreLabel: string;
@@ -157,7 +153,6 @@ const Row = memo(function SectionRow({
157
153
  }: RowProps) {
158
154
  const t = useTheme();
159
155
  const s = useStyles();
160
- const more = useRef<ComponentRef<typeof View>>(null);
161
156
  const hidden = !!item.hidden;
162
157
  if (item.pending) {
163
158
  return (
@@ -165,17 +160,15 @@ const Row = memo(function SectionRow({
165
160
  style={[s.row, index === 0 && s.first, index === count - 1 && s.last]}
166
161
  >
167
162
  {index > 0 ? <View pointerEvents="none" style={s.line} /> : null}
168
- <Sortable.Handle mode="fixed-order">
169
- <View style={s.grip} />
170
- </Sortable.Handle>
171
163
  <View style={s.main} accessible accessibilityLabel={item.title}>
172
164
  <View style={s.thumb}>
173
- <Skeleton
174
- width={SECTION_THUMB.width}
175
- height={SECTION_THUMB.height}
176
- radius={t.radius.md}
177
- />
178
- <View pointerEvents="none" style={s.ring} />
165
+ {item.thumb ?? (
166
+ <Skeleton
167
+ width={thumbSize(t)}
168
+ height={thumbSize(t)}
169
+ radius={t.radius.lg}
170
+ />
171
+ )}
179
172
  </View>
180
173
  <View style={s.text}>
181
174
  <Text weight="semibold" tone="muted" numberOfLines={1}>
@@ -189,17 +182,12 @@ const Row = memo(function SectionRow({
189
182
  />
190
183
  </View>
191
184
  </View>
192
- <View style={s.icon} />
185
+ <Sortable.Handle mode="fixed-order">
186
+ <View style={s.space} />
187
+ </Sortable.Handle>
193
188
  </View>
194
189
  );
195
190
  }
196
- const openMore = () => {
197
- const box = more.current;
198
- if (!box) return;
199
- box.measureInWindow((x, y, width, height) =>
200
- onMore(item.key, { x, y, width, height })
201
- );
202
- };
203
191
  return (
204
192
  <View
205
193
  style={[
@@ -213,18 +201,6 @@ const Row = memo(function SectionRow({
213
201
  {index > 0 && !lifted ? (
214
202
  <View pointerEvents="none" style={s.line} />
215
203
  ) : null}
216
- <Sortable.Handle>
217
- <View
218
- style={s.grip}
219
- accessibilityElementsHidden
220
- importantForAccessibility="no-hide-descendants"
221
- >
222
- <GripGlyph
223
- color={lifted ? t.colors.title : t.colors.faint}
224
- size={t.iconSize.md}
225
- />
226
- </View>
227
- </Sortable.Handle>
228
204
  <PressableBase
229
205
  onPress={() => onPress(item.key)}
230
206
  accessibilityLabel={item.title}
@@ -241,10 +217,7 @@ const Row = memo(function SectionRow({
241
217
  feedback="none"
242
218
  style={s.main}
243
219
  >
244
- <View style={[s.thumb, hidden && s.faded]}>
245
- {item.thumb}
246
- <View pointerEvents="none" style={s.ring} />
247
- </View>
220
+ <View style={[s.thumb, hidden && s.faded]}>{item.thumb}</View>
248
221
  <View style={s.text}>
249
222
  <Text weight="semibold" numberOfLines={1} style={hidden && s.faded}>
250
223
  {item.title}
@@ -269,18 +242,28 @@ const Row = memo(function SectionRow({
269
242
  <EyeOffGlyph color={t.colors.mutedForeground} size={t.iconSize.md} />
270
243
  </View>
271
244
  ) : null}
272
- <View ref={more} collapsable={false}>
273
- <PressableBase
274
- onPress={openMore}
275
- accessibilityLabel={moreLabel}
276
- feedback="small"
277
- style={s.icon}
245
+ <PressableBase
246
+ onPress={() => onMore(item.key, index)}
247
+ accessibilityLabel={moreLabel}
248
+ feedback="small"
249
+ style={s.icon}
250
+ >
251
+ <View style={s.turn}>
252
+ <MoreGlyph color={t.colors.mutedForeground} size={t.iconSize.md} />
253
+ </View>
254
+ </PressableBase>
255
+ <Sortable.Handle>
256
+ <View
257
+ style={s.grip}
258
+ accessibilityElementsHidden
259
+ importantForAccessibility="no-hide-descendants"
278
260
  >
279
- <View style={s.turn}>
280
- <MoreGlyph color={t.colors.mutedForeground} size={t.iconSize.md} />
281
- </View>
282
- </PressableBase>
283
- </View>
261
+ <GripGlyph
262
+ color={lifted ? t.colors.title : t.colors.faint}
263
+ size={t.iconSize.md}
264
+ />
265
+ </View>
266
+ </Sortable.Handle>
284
267
  </View>
285
268
  );
286
269
  });
@@ -300,6 +283,7 @@ export function SectionBoard({
300
283
  const t = useTheme();
301
284
  const s = useStyles();
302
285
  const scroller = useAnimatedRef<Animated.ScrollView>();
286
+ const card = useRef<ComponentRef<typeof View>>(null);
303
287
  const [lifted, setLifted] = useState<string | null>(null);
304
288
  const live = useRef({ items, onPress, onMore, onReorder, bottomSpace });
305
289
  live.current = { items, onPress, onMore, onReorder, bottomSpace };
@@ -311,8 +295,17 @@ export function SectionBoard({
311
295
 
312
296
  const press = useCallback((key: string) => live.current.onPress(key), []);
313
297
  const openMore = useCallback(
314
- (key: string, anchor: SectionAnchor) => live.current.onMore(key, anchor),
315
- []
298
+ (key: string, index: number) =>
299
+ card.current?.measureInWindow((x, y, width) =>
300
+ live.current.onMore(key, {
301
+ x,
302
+ y: y + index * row,
303
+ width,
304
+ height: row,
305
+ pitch: row,
306
+ })
307
+ ),
308
+ [row]
316
309
  );
317
310
  const move = useCallback((from: number, to: number) => {
318
311
  const list = live.current.items;
@@ -348,7 +341,7 @@ export function SectionBoard({
348
341
  <Animated.ScrollView
349
342
  ref={scroller}
350
343
  style={s.scroll}
351
- contentContainerStyle={{ paddingBottom: bottomSpace }}
344
+ contentContainerStyle={s.content}
352
345
  scrollEventThrottle={16}
353
346
  onScroll={(e) => {
354
347
  offset.current = e.nativeEvent.contentOffset.y;
@@ -363,7 +356,11 @@ export function SectionBoard({
363
356
  }}
364
357
  >
365
358
  {items.length ? (
366
- <View style={s.card}>
359
+ <View
360
+ ref={card}
361
+ collapsable={false}
362
+ style={[s.card, { paddingBottom: bottomSpace }]}
363
+ >
367
364
  <Sortable.Grid
368
365
  data={[...items]}
369
366
  keyExtractor={(item) => item.key}
@@ -44,6 +44,7 @@ export type DesignPickTemplateProps<T extends string> = {
44
44
  };
45
45
 
46
46
  const BAR_BORDER = 1;
47
+ const ROOMY = 3;
47
48
 
48
49
  export function designPickBarSpace(bottomInset = 0): number {
49
50
  const gap = tokens.space[2];
@@ -78,6 +79,10 @@ const useStyles = makeStyles((t) => ({
78
79
  paddingHorizontal: t.space[3],
79
80
  borderRadius: t.radius.full,
80
81
  },
82
+ tight: {
83
+ minWidth: t.space[10],
84
+ paddingHorizontal: t.space[2],
85
+ },
81
86
  thumb: {
82
87
  position: 'absolute',
83
88
  left: 0,
@@ -89,6 +94,7 @@ const useStyles = makeStyles((t) => ({
89
94
  label: {
90
95
  fontFamily: t.fontFamily,
91
96
  fontSize: t.typography.label.fontSize,
97
+ letterSpacing: t.typography.label.letterSpacing,
92
98
  lineHeight: t.typography.label.lineHeight,
93
99
  fontWeight: '500',
94
100
  color: t.colors.mutedForeground,
@@ -134,11 +140,13 @@ const useStyles = makeStyles((t) => ({
134
140
  function Option({
135
141
  label,
136
142
  selected,
143
+ tight,
137
144
  onPress,
138
145
  onLayout,
139
146
  }: {
140
147
  label: string;
141
148
  selected: boolean;
149
+ tight: boolean;
142
150
  onPress: () => void;
143
151
  onLayout: (event: LayoutChangeEvent) => void;
144
152
  }) {
@@ -158,7 +166,7 @@ function Option({
158
166
  feedback="none"
159
167
  onPress={onPress}
160
168
  onLayout={onLayout}
161
- style={s.option}
169
+ style={[s.option, tight && s.tight]}
162
170
  >
163
171
  <SteadyText
164
172
  selected={selected}
@@ -236,6 +244,7 @@ export function DesignPickTemplate<T extends string>({
236
244
  key={option.value}
237
245
  label={option.label}
238
246
  selected={selected}
247
+ tight={options.length > ROOMY}
239
248
  onPress={() => {
240
249
  if (selected) return;
241
250
  haptic('select');
@@ -109,18 +109,20 @@ export function IntroTemplate({
109
109
  }
110
110
  style={s.pager}
111
111
  >
112
- {pages.map((page) => (
113
- <View key={page.key} style={[s.page, { width }]}>
114
- {art ? page.art(art) : null}
115
- <Text
116
- variant="screenTitle"
117
- accessibilityRole="header"
118
- style={s.title}
119
- >
120
- {page.title}
121
- </Text>
122
- </View>
123
- ))}
112
+ {width
113
+ ? pages.map((page) => (
114
+ <View key={page.key} style={[s.page, { width }]}>
115
+ {page.art(art)}
116
+ <Text
117
+ variant="screenTitle"
118
+ accessibilityRole="header"
119
+ style={s.title}
120
+ >
121
+ {page.title}
122
+ </Text>
123
+ </View>
124
+ ))
125
+ : null}
124
126
  </ScrollView>
125
127
  <View
126
128
  style={[
@@ -112,6 +112,7 @@ const useStyles = makeStyles((t) => ({
112
112
  optionLabel: {
113
113
  fontFamily: t.fontFamily,
114
114
  fontSize: t.typography.eyebrow.fontSize,
115
+ letterSpacing: t.typography.eyebrow.letterSpacing,
115
116
  lineHeight: t.typography.eyebrow.lineHeight,
116
117
  fontWeight: '500',
117
118
  color: t.colors.mutedForeground,
@@ -120,6 +121,7 @@ const useStyles = makeStyles((t) => ({
120
121
  note: {
121
122
  fontFamily: t.fontFamily,
122
123
  fontSize: t.typography.eyebrow.fontSize,
124
+ letterSpacing: t.typography.eyebrow.letterSpacing,
123
125
  lineHeight: t.typography.eyebrow.lineHeight,
124
126
  fontWeight: '500',
125
127
  color: t.colors.faint,
@@ -180,6 +182,7 @@ const useStyles = makeStyles((t) => ({
180
182
  tileLabel: {
181
183
  fontFamily: t.fontFamily,
182
184
  fontSize: t.typography.eyebrow.fontSize,
185
+ letterSpacing: t.typography.eyebrow.letterSpacing,
183
186
  lineHeight: t.typography.eyebrow.lineHeight,
184
187
  fontWeight: '400',
185
188
  color: t.colors.title,
@@ -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} />
@@ -7,6 +7,7 @@ import {
7
7
  } from 'react-native';
8
8
  import { Photo } from '../components/photo/photo';
9
9
  import { Text } from '../components/text/text';
10
+ import { Won, isFigureText } from '../components/text/figures';
10
11
  import { CopyGlyph } from '../internal/glyphs';
11
12
  import { PressableBase } from '../internal/pressable-base';
12
13
  import { useTheme } from '../theme/theme-provider';
@@ -83,6 +84,7 @@ const useStyles = makeStyles((t) => ({
83
84
  flex: 1,
84
85
  fontFamily: t.fontFamily,
85
86
  fontSize: t.typography.screenTitle.fontSize,
87
+ letterSpacing: t.typography.screenTitle.letterSpacing,
86
88
  lineHeight: t.typography.screenTitle.lineHeight,
87
89
  fontWeight: '600',
88
90
  color: t.colors.title,
@@ -95,13 +97,17 @@ const useStyles = makeStyles((t) => ({
95
97
  heroCaptionText: {
96
98
  fontFamily: t.fontFamily,
97
99
  fontSize: t.typography.eyebrow.fontSize,
100
+ letterSpacing: t.typography.eyebrow.letterSpacing,
98
101
  lineHeight: t.typography.eyebrow.lineHeight,
99
102
  color: t.colors.mutedForeground,
100
103
  },
101
104
  heroBody: { marginTop: t.space[4] },
102
105
  heroWarn: { color: t.colors.warningText, fontWeight: '500' },
106
+ heroFigure: { fontWeight: '500' },
103
107
  heroSuffix: {
104
108
  fontSize: t.typography.label.fontSize,
109
+ fontFamily: t.fontFamily,
110
+ letterSpacing: t.typography.label.letterSpacing,
105
111
  fontWeight: '400',
106
112
  color: t.colors.mutedForeground,
107
113
  },
@@ -146,8 +152,11 @@ function ScrollTemplate({
146
152
  <View style={s.hero}>
147
153
  {hero.overline}
148
154
  <View style={s.heroHead}>
149
- <Text accessibilityRole="header" style={s.heroTitle}>
150
- {hero.title}
155
+ <Text
156
+ accessibilityRole="header"
157
+ style={[s.heroTitle, isFigureText(hero.title) && s.heroFigure]}
158
+ >
159
+ <Won>{hero.title}</Won>
151
160
  {hero.titleSuffix ? (
152
161
  <Text style={s.heroSuffix}>{` ${hero.titleSuffix}`}</Text>
153
162
  ) : null}
@@ -64,6 +64,8 @@ const useStyles = makeStyles((t) => ({
64
64
  flex: 1,
65
65
  textAlign: 'center',
66
66
  fontSize: t.typography.title.fontSize,
67
+ fontFamily: t.fontFamily,
68
+ letterSpacing: t.typography.title.letterSpacing,
67
69
  lineHeight: t.typography.title.lineHeight,
68
70
  },
69
71
  body: { padding: t.space[3], gap: t.space[3] },
@@ -82,6 +84,8 @@ const useStyles = makeStyles((t) => ({
82
84
  lead: { flexDirection: 'row', alignItems: 'center', gap: t.space[1] },
83
85
  blockTitle: {
84
86
  fontSize: t.typography.title.fontSize,
87
+ fontFamily: t.fontFamily,
88
+ letterSpacing: t.typography.title.letterSpacing,
85
89
  lineHeight: t.typography.title.lineHeight,
86
90
  },
87
91
  }));
package/src/theme/base.ts CHANGED
@@ -116,48 +116,55 @@ export const typography = {
116
116
  fontSize: 12,
117
117
  lineHeight: 16,
118
118
  fontWeight: '400',
119
+ letterSpacing: 0.12,
119
120
  },
120
121
  label: {
121
122
  fontSize: 14,
122
123
  lineHeight: 20,
123
124
  fontWeight: '400',
125
+ letterSpacing: -0.06,
124
126
  },
125
127
  body: {
126
128
  fontSize: 15,
127
129
  lineHeight: 22,
128
130
  fontWeight: '400',
131
+ letterSpacing: -0.06,
129
132
  },
130
133
  bodyLg: {
131
134
  fontSize: 17,
132
135
  lineHeight: 24,
133
136
  fontWeight: '400',
137
+ letterSpacing: -0.2,
134
138
  },
135
139
  eyebrow: {
136
140
  fontSize: 13,
137
141
  lineHeight: 18,
138
142
  fontWeight: '500',
143
+ letterSpacing: 0,
139
144
  },
140
145
  question: {
141
146
  fontSize: 18,
142
147
  lineHeight: 26,
143
148
  fontWeight: '500',
144
- letterSpacing: -0.4,
149
+ letterSpacing: -0.22,
145
150
  },
146
151
  title: {
147
152
  fontSize: 20,
148
153
  lineHeight: 28,
149
154
  fontWeight: '600',
155
+ letterSpacing: -0.44,
150
156
  },
151
157
  screenTitle: {
152
158
  fontSize: 24,
153
159
  lineHeight: 32,
154
160
  fontWeight: '600',
155
- letterSpacing: -0.6,
161
+ letterSpacing: -0.53,
156
162
  },
157
163
  display: {
158
164
  fontSize: 28,
159
165
  lineHeight: 34,
160
166
  fontWeight: '600',
167
+ letterSpacing: -0.84,
161
168
  },
162
169
  } as const;
163
170