@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,4 +1,4 @@
1
- import { View } from 'react-native';
1
+ import { View, type TextStyle } from 'react-native';
2
2
  import { renderIcon, type IconSlot } from '../../internal/icon';
3
3
  import { PressableBase } from '../../internal/pressable-base';
4
4
  import { useTheme } from '../../theme/theme-provider';
@@ -9,6 +9,7 @@ export type SegmentedControlItem<T extends string> = {
9
9
  value: T;
10
10
  label: string;
11
11
  icon?: IconSlot;
12
+ weight?: TextStyle['fontWeight'];
12
13
  };
13
14
 
14
15
  export type SegmentedControlProps<T extends string> = {
@@ -34,6 +35,8 @@ const useStyles = makeStyles((t) => ({
34
35
  on: { backgroundColor: t.colors.surface, boxShadow: t.shadow.sm },
35
36
  label: {
36
37
  fontSize: t.typography.eyebrow.fontSize,
38
+ fontFamily: t.fontFamily,
39
+ letterSpacing: t.typography.eyebrow.letterSpacing,
37
40
  lineHeight: t.typography.eyebrow.lineHeight,
38
41
  color: t.colors.mutedForeground,
39
42
  },
@@ -70,7 +73,14 @@ export function SegmentedControl<T extends string>({
70
73
  size: t.iconSize.md,
71
74
  })
72
75
  ) : (
73
- <Text numberOfLines={1} style={[s.label, on && s.labelOn]}>
76
+ <Text
77
+ numberOfLines={1}
78
+ style={[
79
+ s.label,
80
+ on && s.labelOn,
81
+ item.weight ? { fontWeight: item.weight } : null,
82
+ ]}
83
+ >
74
84
  {item.label}
75
85
  </Text>
76
86
  )}
@@ -53,15 +53,16 @@ const useStyles = makeStyles((t) => ({
53
53
  label: {
54
54
  fontFamily: t.fontFamily,
55
55
  fontSize: t.typography.body.fontSize,
56
+ letterSpacing: t.typography.body.letterSpacing,
56
57
  lineHeight: t.typography.body.lineHeight,
57
58
  color: t.colors.mutedForeground,
58
59
  },
59
60
  count: {
60
61
  fontFamily: t.fontFamily,
61
62
  fontSize: t.typography.eyebrow.fontSize,
63
+ letterSpacing: t.typography.eyebrow.letterSpacing,
62
64
  lineHeight: t.typography.eyebrow.lineHeight,
63
65
  color: t.colors.mutedForeground,
64
- fontVariant: ['tabular-nums'],
65
66
  },
66
67
  strong: { fontWeight: '600' },
67
68
  bar: {
@@ -22,6 +22,7 @@ export type SkeletonProps = {
22
22
  width?: DimensionValue;
23
23
  height?: DimensionValue;
24
24
  radius?: number;
25
+ sheen?: boolean;
25
26
  style?: StyleProp<ViewStyle>;
26
27
  };
27
28
 
@@ -36,6 +37,7 @@ export function Skeleton({
36
37
  width = '100%',
37
38
  height = 16,
38
39
  radius,
40
+ sheen = false,
39
41
  style,
40
42
  }: SkeletonProps) {
41
43
  const t = useTheme();
@@ -57,8 +59,9 @@ export function Skeleton({
57
59
  return () => cancelAnimation(sweep);
58
60
  }, [reduced, span, sweep]);
59
61
 
62
+ const resting = sheen && reduced;
60
63
  const band = useAnimatedStyle(() => ({
61
- transform: [{ translateX: -span + span * 2 * sweep.value }],
64
+ transform: [{ translateX: resting ? 0 : -span + span * 2 * sweep.value }],
62
65
  }));
63
66
 
64
67
  const measure = (event: LayoutChangeEvent) =>
@@ -82,7 +85,7 @@ export function Skeleton({
82
85
  style,
83
86
  ]}
84
87
  >
85
- {reduced || span === 0 ? null : (
88
+ {(reduced && !sheen) || span === 0 ? null : (
86
89
  <Animated.View
87
90
  style={[
88
91
  styles.band,
@@ -20,11 +20,14 @@ export type SliderProps = {
20
20
  start?: ReactNode;
21
21
  end?: ReactNode;
22
22
  accessibilityLabel: string;
23
+ size?: 'md' | 'sm';
23
24
  style?: StyleProp<ViewStyle>;
24
25
  };
25
26
 
26
27
  const TRACK = 6;
27
28
  const THUMB = 28;
29
+ const TRACK_SM = 4;
30
+ const THUMB_SM = 24;
28
31
  const TICK_WIDTH = 2;
29
32
  const TICK_HEIGHT = 16;
30
33
  const NUDGE = 10;
@@ -74,6 +77,25 @@ const useStyles = makeStyles((t) => ({
74
77
  t.scheme === 'dark' ? t.colors.foreground : t.colors.surface,
75
78
  boxShadow: t.shadow.md,
76
79
  },
80
+ rootSm: { gap: t.space[3] },
81
+ trackSm: {
82
+ top: (t.minTouchSize - TRACK_SM) / 2,
83
+ height: TRACK_SM,
84
+ backgroundColor: t.colors.border,
85
+ },
86
+ fillSm: { top: (t.minTouchSize - TRACK_SM) / 2, height: TRACK_SM },
87
+ thumbSm: {
88
+ top: (t.minTouchSize - THUMB_SM) / 2,
89
+ width: THUMB_SM,
90
+ height: THUMB_SM,
91
+ },
92
+ slotSm: { width: 'auto' },
93
+ labelSm: { width: t.space[8] },
94
+ valueSm: {
95
+ width: t.space[8],
96
+ textAlign: 'right',
97
+ color: t.colors.title,
98
+ },
77
99
  }));
78
100
 
79
101
  export function Slider({
@@ -87,13 +109,32 @@ export function Slider({
87
109
  start,
88
110
  end,
89
111
  accessibilityLabel,
112
+ size = 'md',
90
113
  style,
91
114
  }: SliderProps) {
92
115
  const s = useStyles();
116
+ const sm = size === 'sm';
117
+ const thumb = sm ? THUMB_SM : THUMB;
93
118
  const [width, setWidth] = useState(0);
94
119
  const span = max - min;
95
- const latest = useRef({ value, onChange, onSlidingStart, min, span, width });
96
- latest.current = { value, onChange, onSlidingStart, min, span, width };
120
+ const latest = useRef({
121
+ value,
122
+ onChange,
123
+ onSlidingStart,
124
+ min,
125
+ span,
126
+ width,
127
+ thumb,
128
+ });
129
+ latest.current = {
130
+ value,
131
+ onChange,
132
+ onSlidingStart,
133
+ min,
134
+ span,
135
+ width,
136
+ thumb,
137
+ };
97
138
  const origin = useRef(0);
98
139
  const pick = (x: number) => {
99
140
  const {
@@ -102,10 +143,11 @@ export function Slider({
102
143
  span: n,
103
144
  value: now,
104
145
  onChange: change,
146
+ thumb: knob,
105
147
  } = latest.current;
106
148
  if (w <= 0 || n <= 0) return;
107
- const room = w - THUMB;
108
- const at = Math.max(0, Math.min(room, x - THUMB / 2));
149
+ const room = w - knob;
150
+ const at = Math.max(0, Math.min(room, x - knob / 2));
109
151
  const next = lo + (at / room) * n;
110
152
  if (next !== now) change(next);
111
153
  };
@@ -128,16 +170,21 @@ export function Slider({
128
170
  span > 0 ? (Math.min(max, Math.max(min, value)) - min) / span : 0;
129
171
  const base = sliderOrigin(min, max);
130
172
  const baseRatio = span > 0 ? (base - min) / span : 0;
131
- const room = Math.max(0, width - THUMB);
173
+ const room = Math.max(0, width - thumb);
132
174
  const left = ratio * room;
133
- const center = left + THUMB / 2;
134
- const baseCenter = base === min ? 0 : baseRatio * room + THUMB / 2;
175
+ const center = left + thumb / 2;
176
+ const baseCenter = base === min ? 0 : baseRatio * room + thumb / 2;
135
177
  return (
136
- <View style={[s.root, style]}>
178
+ <View style={[s.root, sm && s.rootSm, style]}>
137
179
  {start ? (
138
- <View style={s.slotStart}>{start}</View>
180
+ <View style={[s.slotStart, sm && s.slotSm]}>{start}</View>
139
181
  ) : startLabel ? (
140
- <Text variant="caption" tone="muted" numberOfLines={1} style={s.end}>
182
+ <Text
183
+ variant="caption"
184
+ tone="muted"
185
+ numberOfLines={1}
186
+ style={[s.end, sm && s.labelSm]}
187
+ >
141
188
  {startLabel}
142
189
  </Text>
143
190
  ) : null}
@@ -160,13 +207,14 @@ export function Slider({
160
207
  }
161
208
  style={s.area}
162
209
  >
163
- <View style={s.track} pointerEvents="none" />
210
+ <View style={[s.track, sm && s.trackSm]} pointerEvents="none" />
164
211
  {width > 0 ? (
165
212
  <>
166
213
  <View
167
214
  testID="slider-fill"
168
215
  style={[
169
216
  s.fill,
217
+ sm && s.fillSm,
170
218
  {
171
219
  left: Math.min(baseCenter, center),
172
220
  width: Math.abs(center - baseCenter),
@@ -181,18 +229,22 @@ export function Slider({
181
229
  pointerEvents="none"
182
230
  />
183
231
  ) : null}
184
- <View style={[s.thumb, { left }]} pointerEvents="none" />
232
+ <View
233
+ style={[s.thumb, sm && s.thumbSm, { left }]}
234
+ pointerEvents="none"
235
+ />
185
236
  </>
186
237
  ) : null}
187
238
  </View>
188
239
  {end ? (
189
- <View style={s.slotEnd}>{end}</View>
240
+ <View style={[s.slotEnd, sm && s.slotSm]}>{end}</View>
190
241
  ) : endLabel ? (
191
242
  <Text
192
243
  variant="caption"
193
244
  tone="muted"
245
+ weight={sm ? 'semibold' : undefined}
194
246
  numberOfLines={1}
195
- style={s.endRight}
247
+ style={[s.endRight, sm && s.valueSm]}
196
248
  >
197
249
  {endLabel}
198
250
  </Text>
@@ -120,6 +120,8 @@ const useStyles = makeStyles((t) => ({
120
120
  due: { color: t.colors.warningText },
121
121
  small: {
122
122
  fontSize: t.typography.eyebrow.fontSize,
123
+ fontFamily: t.fontFamily,
124
+ letterSpacing: t.typography.eyebrow.letterSpacing,
123
125
  lineHeight: t.typography.eyebrow.lineHeight,
124
126
  },
125
127
  }));
@@ -0,0 +1,92 @@
1
+ import { useContext } from 'react';
2
+ import { Text as RNText } from 'react-native';
3
+ import { useTheme } from '../../theme/theme-provider';
4
+ import { TextMetricsContext } from './metrics';
5
+
6
+ const MONEY = /^([+\-−]?\d[\d,]*(?:\.\d+)?)(만원|원)$/;
7
+ const FIGURE =
8
+ /^[₩$]?[+\-−]?\d[\d,.:\-–~/\s]*(원|%|개|명|박|인|점|건|회|일|분|시간|만원|P)?$/;
9
+ const RUN = /(\d[\d,.:]*)/;
10
+ const MORE = /^(.*\s외\s)(\d[\d,]*)(건|개)$/;
11
+
12
+ export type FigureProps = {
13
+ children: string;
14
+ size?: number;
15
+ tracking?: number;
16
+ };
17
+
18
+ export type FiguresScope = 'all' | 'more';
19
+
20
+ function px(value: number) {
21
+ return Math.round(value * 100) / 100;
22
+ }
23
+
24
+ function useMetrics(size?: number, tracking?: number) {
25
+ const t = useTheme();
26
+ const context = useContext(TextMetricsContext);
27
+ return {
28
+ t,
29
+ size: size ?? context?.size ?? t.typography.body.fontSize,
30
+ tracking: tracking ?? context?.tracking ?? 0,
31
+ };
32
+ }
33
+
34
+ export function isFigureText(text: string | undefined | null): boolean {
35
+ return !!text && FIGURE.test(text.trim());
36
+ }
37
+
38
+ export function Won({ children, size, tracking }: FigureProps) {
39
+ const m = useMetrics(size, tracking);
40
+ const match = MONEY.exec(children.trim());
41
+ if (!match) return <>{children}</>;
42
+ const [, amount = '', unit = ''] = match;
43
+ const f = m.t.figure;
44
+ return (
45
+ <>
46
+ {amount.slice(0, -1)}
47
+ <RNText style={{ letterSpacing: px(m.tracking + f.unitGap * m.size) }}>
48
+ {amount.slice(-1)}
49
+ </RNText>
50
+ <RNText
51
+ style={{
52
+ fontSize: px(m.size * f.unitScale),
53
+ fontWeight: f.unitWeight,
54
+ letterSpacing: f.unitTracking,
55
+ }}
56
+ >
57
+ {unit}
58
+ </RNText>
59
+ </>
60
+ );
61
+ }
62
+
63
+ export function Figures({
64
+ children,
65
+ size,
66
+ tracking,
67
+ scope = 'all',
68
+ }: FigureProps & { scope?: FiguresScope }) {
69
+ const m = useMetrics(size, tracking);
70
+ const f = m.t.figure;
71
+ if (m.size < f.emphasisMinSize) return <>{children}</>;
72
+ const style = {
73
+ fontWeight: f.emphasisWeight,
74
+ letterSpacing: px(f.emphasisTracking * m.size),
75
+ };
76
+ const more = scope === 'more' ? MORE.exec(children) : null;
77
+ if (scope === 'more' && !more) return <>{children}</>;
78
+ const parts = more ? more.slice(1) : children.split(RUN);
79
+ return (
80
+ <>
81
+ {parts.map((part, i) =>
82
+ i % 2 === 1 ? (
83
+ <RNText key={i} style={style}>
84
+ {part}
85
+ </RNText>
86
+ ) : (
87
+ part
88
+ )
89
+ )}
90
+ </>
91
+ );
92
+ }
@@ -1 +1,8 @@
1
1
  export { Text, type TextProps, type TextTone, type TextWeight } from './text';
2
+ export {
3
+ Figures,
4
+ Won,
5
+ isFigureText,
6
+ type FigureProps,
7
+ type FiguresScope,
8
+ } from './figures';
@@ -0,0 +1,5 @@
1
+ import { createContext } from 'react';
2
+
3
+ export type TextMetrics = { size: number; tracking: number };
4
+
5
+ export const TextMetricsContext = createContext<TextMetrics | null>(null);
@@ -1,8 +1,21 @@
1
- import type { ComponentRef, Ref } from 'react';
2
- import { Text as RNText, type TextProps as RNTextProps } from 'react-native';
1
+ import {
2
+ isValidElement,
3
+ useMemo,
4
+ type ComponentRef,
5
+ type ReactNode,
6
+ type Ref,
7
+ } from 'react';
8
+ import {
9
+ StyleSheet,
10
+ Text as RNText,
11
+ type TextProps as RNTextProps,
12
+ type TextStyle,
13
+ } from 'react-native';
3
14
  import type { TypographyVariant } from '../../types';
4
15
  import { useTheme } from '../../theme/theme-provider';
5
16
  import { makeStyles } from '../../utils/styles';
17
+ import { TextMetricsContext } from './metrics';
18
+ import { Won, isFigureText } from './figures';
6
19
 
7
20
  export type TextTone =
8
21
  'default' | 'muted' | 'primary' | 'point' | 'warning' | 'danger' | 'success';
@@ -36,34 +49,65 @@ const useStyles = makeStyles((t) => ({
36
49
  regular: { fontWeight: '400' },
37
50
  medium: { fontWeight: '500' },
38
51
  semibold: { fontWeight: '600' },
52
+ figure: { fontWeight: t.figure.weight },
39
53
  }));
40
54
 
55
+ const HEAVY = new Set(['600', '700', '800', '900', 'bold', 600, 700, 800, 900]);
56
+
57
+ function figureOf(children: ReactNode): string | null {
58
+ if (typeof children === 'string') return children;
59
+ if (typeof children === 'number') return String(children);
60
+ if (isValidElement<{ children?: unknown }>(children) && children.type === Won)
61
+ return typeof children.props.children === 'string'
62
+ ? children.props.children
63
+ : null;
64
+ return null;
65
+ }
66
+
41
67
  export function Text({
42
68
  variant = 'body',
43
69
  tone = 'default',
44
70
  weight,
45
71
  style,
72
+ children,
46
73
  ...rest
47
74
  }: TextProps) {
48
75
  const t = useTheme();
49
76
  const s = useStyles();
77
+ const styles = [
78
+ s.font,
79
+ s[variant],
80
+ s[tone],
81
+ tone === 'default' &&
82
+ (variant === 'screenTitle' ||
83
+ variant === 'title' ||
84
+ variant === 'display' ||
85
+ weight === 'semibold') &&
86
+ s.heading,
87
+ weight && s[weight],
88
+ style,
89
+ ];
90
+ const flat: TextStyle = StyleSheet.flatten(styles as TextStyle[]) ?? {};
91
+ const shown = figureOf(children);
92
+ const capped =
93
+ shown !== null && isFigureText(shown) && HEAVY.has(flat.fontWeight ?? '');
94
+ const size = flat.fontSize ?? t.typography[variant].fontSize;
95
+ const tracking = flat.letterSpacing ?? 0;
96
+ const metrics = useMemo(() => ({ size, tracking }), [size, tracking]);
50
97
  return (
51
98
  <RNText
52
99
  maxFontSizeMultiplier={t.maxFontScale}
100
+ lineBreakStrategyIOS="hangul-word"
53
101
  {...rest}
54
- style={[
55
- s.font,
56
- s[variant],
57
- s[tone],
58
- tone === 'default' &&
59
- (variant === 'screenTitle' ||
60
- variant === 'title' ||
61
- variant === 'display' ||
62
- weight === 'semibold') &&
63
- s.heading,
64
- weight && s[weight],
65
- style,
66
- ]}
67
- />
102
+ style={capped ? [...styles, s.figure] : styles}
103
+ >
104
+ {typeof children === 'string' || typeof children === 'number' ? (
105
+ children
106
+ ) : (
107
+ <TextMetricsContext.Provider value={metrics}>
108
+ {children}
109
+ </TextMetricsContext.Provider>
110
+ )}
111
+ </RNText>
68
112
  );
69
113
  }
@@ -49,7 +49,7 @@ const NAME_TOP = 32;
49
49
  const NAME_WIDTH = 88;
50
50
  const NAME_SIZE = 16;
51
51
  const NAME_LEADING = 21;
52
- const NAME_TRACKING = -0.3;
52
+ const NAME_TRACKING = -0.19;
53
53
  const CHECK = 22;
54
54
  const CHECK_INSET = 12;
55
55
 
@@ -106,6 +106,7 @@ const useStyles = makeStyles((t) => ({
106
106
  right: INSET_X,
107
107
  fontFamily: t.fontFamily,
108
108
  fontSize: t.typography.eyebrow.fontSize,
109
+ letterSpacing: t.typography.eyebrow.letterSpacing,
109
110
  lineHeight: t.typography.eyebrow.lineHeight,
110
111
  fontWeight: '400',
111
112
  color: t.colors.faint,
@@ -122,7 +123,7 @@ const useStyles = makeStyles((t) => ({
122
123
  fontWeight: '600',
123
124
  color: t.colors.title,
124
125
  },
125
- strong: { fontWeight: '700' },
126
+ strong: { fontWeight: '600' },
126
127
  check: {
127
128
  position: 'absolute',
128
129
  left: CHECK_INSET,
@@ -143,12 +143,18 @@ const useStyles = makeStyles((t) => ({
143
143
  paddingRight: t.space[2],
144
144
  },
145
145
  message: { ...t.typography.body, flexShrink: 1, fontFamily: t.fontFamily },
146
- messageFill: { flex: 1, fontSize: t.typography.label.fontSize },
146
+ messageFill: {
147
+ flex: 1,
148
+ fontSize: t.typography.label.fontSize,
149
+ fontFamily: t.fontFamily,
150
+ letterSpacing: t.typography.label.letterSpacing,
151
+ },
147
152
  action: { paddingHorizontal: t.space[3], justifyContent: 'center' },
148
153
  mark: { marginRight: t.space[2] },
149
154
  actionLabel: {
150
155
  fontFamily: t.fontFamily,
151
156
  fontSize: t.typography.label.fontSize,
157
+ letterSpacing: t.typography.label.letterSpacing,
152
158
  lineHeight: t.typography.label.lineHeight,
153
159
  fontWeight: '600',
154
160
  },
@@ -3,6 +3,7 @@ import { ChevronGlyph } from '../../internal/glyphs';
3
3
  import { PressableBase } from '../../internal/pressable-base';
4
4
  import { useTheme } from '../../theme/theme-provider';
5
5
  import { makeStyles } from '../../utils/styles';
6
+ import { Won } from '../text/figures';
6
7
 
7
8
  export type ValueTone = 'default' | 'warning' | 'success';
8
9
 
@@ -30,6 +31,7 @@ const useStyles = makeStyles((t) => ({
30
31
  label: {
31
32
  fontFamily: t.fontFamily,
32
33
  fontSize: t.typography.label.fontSize,
34
+ letterSpacing: t.typography.label.letterSpacing,
33
35
  lineHeight: t.typography.label.lineHeight,
34
36
  color: t.colors.mutedForeground,
35
37
  },
@@ -38,6 +40,7 @@ const useStyles = makeStyles((t) => ({
38
40
  textAlign: 'right',
39
41
  fontFamily: t.fontFamily,
40
42
  fontSize: t.typography.label.fontSize,
43
+ letterSpacing: t.typography.label.letterSpacing,
41
44
  lineHeight: t.typography.label.lineHeight,
42
45
  color: t.colors.foreground,
43
46
  },
@@ -72,7 +75,12 @@ export function ValueRows({ rows, style }: ValueRowsProps) {
72
75
  {row.note ? (
73
76
  <Text style={tone(row.note.tone)}>{`${row.note.text} `}</Text>
74
77
  ) : null}
75
- {row.value}
78
+ <Won
79
+ size={t.typography.label.fontSize}
80
+ tracking={t.typography.label.letterSpacing}
81
+ >
82
+ {row.value}
83
+ </Won>
76
84
  </Text>
77
85
  {row.onPress ? (
78
86
  <ChevronGlyph color={t.colors.ring} size={t.iconSize.sm} />
package/src/index.tsx CHANGED
@@ -72,6 +72,7 @@ export {
72
72
  CropGlyph,
73
73
  EraserGlyph,
74
74
  BucketGlyph,
75
+ FocusGlyph,
75
76
  MonitorGlyph,
76
77
  MobileGlyph,
77
78
  ColumnsGlyph,
@@ -13,6 +13,7 @@ const useStyles = makeStyles((t) => ({
13
13
  flexShrink: 1,
14
14
  fontFamily: t.fontFamily,
15
15
  fontSize: t.typography.body.fontSize,
16
+ letterSpacing: t.typography.body.letterSpacing,
16
17
  lineHeight: t.typography.body.lineHeight,
17
18
  fontWeight: '500',
18
19
  color: t.colors.foreground,
@@ -22,6 +23,7 @@ const useStyles = makeStyles((t) => ({
22
23
  marginLeft: 'auto',
23
24
  fontFamily: t.fontFamily,
24
25
  fontSize: t.typography.caption.fontSize,
26
+ letterSpacing: t.typography.caption.letterSpacing,
25
27
  lineHeight: t.typography.caption.lineHeight,
26
28
  color: t.colors.mutedForeground,
27
29
  fontVariant: ['tabular-nums'],
@@ -16,6 +16,7 @@ import {
16
16
  EYE,
17
17
  EYE_OFF,
18
18
  FILE,
19
+ FOCUS,
19
20
  GLOBE,
20
21
  IMAGES,
21
22
  KEYBOARD,
@@ -320,6 +321,7 @@ export const SlidersGlyph = imageGlyph(SLIDERS);
320
321
  export const CropGlyph = imageGlyph(CROP);
321
322
  export const EraserGlyph = imageGlyph(ERASER);
322
323
  export const BucketGlyph = imageGlyph(BUCKET);
324
+ export const FocusGlyph = imageGlyph(FOCUS);
323
325
 
324
326
  function lineOf(size: number) {
325
327
  return Math.max(1.5, size / 12);
@@ -105,3 +105,5 @@ export const ERASER =
105
105
  'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAAAsTAAALEwEAmpwYAAADVklEQVR42u2dy2oUQRSGa1ZqdOHG6Au470xGn0ESfQHNCwhidIII4sadtyS4cOvKCOLWVRIF3ajPYbLTURzBhWA8DdWiwXRXd9flnFP/Dz8ETdIz39e36a7qGIMgCIIgCIIgCCI/A+qQukQd2y7ZfxsAT7jMUlepu9S9A7prv2cWuPyu8SvUaQ34/Z3an8EW0TOHqRstwO/vM+oRYOyWEtxWD/hV31CPAmca+JDQEf6mR/hVt7A78gv/nT3jWbVfQ0Ik+F+oC//5+UX7f5AQcJ//lXq25vfMUT/hmJAGPiQwgA8JDOBDAgP4kMAAPiQwgA8JDOBDAgP4WUvgAj9LCdzgZyWBK/y/JXzWKoE7fNUSpMBXKUEafFUSpMJXIUE6fNEStMAXKaHNbcSRoLO4kePtzU07dglrfsIt4YVJMAJP65rfdUsYA35aCdNYA4Jzg99GwsMY8LczhO8qYSfkseA49WPG8Kucb3j/Rag1fwfw/+R9DYOLIeC/Bvx/shbrbKjNQNn7Jp9EEdB2iPgv6pVMBHwIvQvqOj4/BwkXQh+E+06OKCVcVQp/PvRpqK+ZKRollPAnDe/7QaxPuI8yk+AC/xv1RMzLCzcykeACv+x102MebtdrO9oluMJ/anrMQN/o+SFLqwRX+L1uyKx4+oSrTUIb+J0n+500zc9ea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EL86tRK1nHEfjy94tjbTsqPH0j8JOB+LzC0/uOH03Fpagwjt9E936bIBlRURs0jkIlwlhEeLqcRg4iZ6D4icurmXfeTzv0xDV/tHJsz0Dxozv6FocmtStD3k8zt08RK1tReUcz4ycur2bReT/LoA0mwc9eolfkYpE2htqM7UU0ospGTSMCuZ7gbk4WAsRpDlMEG5Grmi8oLl9SN6m+XVbDbKgN09obWBIZVkNNgJoAaaDOFzTgfEFxMEKyUJFhhdGs/W9kpPCoYSdUTRsyd3e69PxYDokjwDjwX4g+64mlN4aKaOgSbKBIUsquVsaVEenzUtS6he/o1z4H/nrijvdxJ6j2UZnH56Sou2zJu3u16JsEuzJdybu/iLKCIVn6+s2oNDHdkAb4KI/fR8BDqAxRnRiKTxNEJJfxHLHRGA5poIIHHgcuIYgtDbN+txi4arsqjGvYUlQArUuEmPnz9yQwyQ8CX1HOc8RWxPluBOaH9D0MJxeiUr6lPl/Mdrn28wiT2XyOWNiufVv89MVVrxt5Ciqso01/D/Ep6zliWQ/xaZPg+JJeG3on2c8PG9ZzxHSfdBzTA/1Cvj1ZP0L44WVVP0fMjFt6OoGCk4kT7hFxZGamavfAvsNwjpgWNaY0mAYe7PfIdzV6GfBORpadzeeI2WUjKWNOsx5nez5wHeowm8Wo8JCOS+cl2Iv1DfAw8GlJ1NDzgCcFiS2CzLdhorgp1u0O4eA3CU5L6lndzHKgMxbiDkfF6ujzhM0Ts/VvfaDzzpIaYjrvZ1T7R4QA4yEuDL+IxqdJFTwM54h5xMcpDYwDohxZSZxOZV1D8BI+U/V1kBpqqKGGGmqY/fA/cw+DCyjZ5tIAAAAASUVORK5CYII=';
@@ -1,8 +1,10 @@
1
1
  import { StyleSheet, View } from 'react-native';
2
2
 
3
+ const OPEN = 'transparent';
4
+
3
5
  const g = StyleSheet.create({
4
6
  center: { alignItems: 'center', justifyContent: 'center' },
5
- open: { borderTopColor: 'transparent', transform: [{ rotate: '45deg' }] },
7
+ open: { transform: [{ rotate: '45deg' }] },
6
8
  head: { position: 'absolute' },
7
9
  });
8
10
 
@@ -19,7 +21,10 @@ export function RetryGlyph({ color, size }: { color: string; size: number }) {
19
21
  height: ring,
20
22
  borderRadius: ring / 2,
21
23
  borderWidth: stroke,
22
- borderColor: color,
24
+ borderTopColor: OPEN,
25
+ borderRightColor: color,
26
+ borderBottomColor: color,
27
+ borderLeftColor: color,
23
28
  },
24
29
  ]}
25
30
  />