@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.
- package/CHANGELOG.md +29 -0
- package/lib/module/adjust/adjust-template.js +1 -0
- package/lib/module/adjust/adjust-template.js.map +1 -1
- package/lib/module/adjust/axis-adjust.js +181 -0
- package/lib/module/adjust/axis-adjust.js.map +1 -0
- package/lib/module/adjust/axis-dial.js +2 -2
- package/lib/module/adjust/axis-dial.js.map +1 -1
- package/lib/module/adjust/axis-tabs.js +81 -0
- package/lib/module/adjust/axis-tabs.js.map +1 -0
- package/lib/module/adjust/axis-wheel.js +286 -0
- package/lib/module/adjust/axis-wheel.js.map +1 -0
- package/lib/module/adjust/dial-strip.js +6 -4
- package/lib/module/adjust/dial-strip.js.map +1 -1
- package/lib/module/adjust/index.js +4 -0
- package/lib/module/adjust/index.js.map +1 -1
- package/lib/module/adjust/store-sample.js +436 -0
- package/lib/module/adjust/store-sample.js.map +1 -0
- package/lib/module/blocks/chat-message/chat-message.js +1 -0
- package/lib/module/blocks/chat-message/chat-message.js.map +1 -1
- package/lib/module/blocks/choice-art/choice-art.js +2 -0
- package/lib/module/blocks/choice-art/choice-art.js.map +1 -1
- package/lib/module/blocks/color-swatch-picker/color-swatch-picker.js +1 -1
- package/lib/module/blocks/color-tune/store-sample.js +13 -6
- package/lib/module/blocks/color-tune/store-sample.js.map +1 -1
- package/lib/module/blocks/color-tune/swatch-card.js +1 -1
- package/lib/module/blocks/color-tune/swatch-card.js.map +1 -1
- package/lib/module/blocks/detail-editor/compare-slider.js +6 -2
- package/lib/module/blocks/detail-editor/compare-slider.js.map +1 -1
- package/lib/module/blocks/detail-editor/detail-canvas.js +195 -61
- package/lib/module/blocks/detail-editor/detail-canvas.js.map +1 -1
- package/lib/module/blocks/detail-editor/detail-types.js +57 -0
- package/lib/module/blocks/detail-editor/detail-types.js.map +1 -1
- package/lib/module/blocks/detail-editor/draft-preview.js +22 -0
- package/lib/module/blocks/detail-editor/draft-preview.js.map +1 -1
- package/lib/module/blocks/detail-editor/focus-context.js +1 -0
- package/lib/module/blocks/detail-editor/focus-context.js.map +1 -1
- package/lib/module/blocks/detail-editor/index.js +2 -2
- package/lib/module/blocks/detail-editor/index.js.map +1 -1
- package/lib/module/blocks/detail-editor/keep-words.js +34 -0
- package/lib/module/blocks/detail-editor/keep-words.js.map +1 -0
- package/lib/module/blocks/detail-editor/layout-picker.js +195 -8
- package/lib/module/blocks/detail-editor/layout-picker.js.map +1 -1
- package/lib/module/blocks/detail-request/detail-request.js +213 -0
- package/lib/module/blocks/detail-request/detail-request.js.map +1 -0
- package/lib/module/blocks/detail-request/index.js +4 -0
- package/lib/module/blocks/detail-request/index.js.map +1 -0
- package/lib/module/blocks/detail-studio/action-chips.js +73 -0
- package/lib/module/blocks/detail-studio/action-chips.js.map +1 -0
- package/lib/module/blocks/detail-studio/adjust-tiles.js +4 -3
- package/lib/module/blocks/detail-studio/adjust-tiles.js.map +1 -1
- package/lib/module/blocks/detail-studio/asset-grid.js +33 -16
- package/lib/module/blocks/detail-studio/asset-grid.js.map +1 -1
- package/lib/module/blocks/detail-studio/confirm-row.js +3 -0
- package/lib/module/blocks/detail-studio/confirm-row.js.map +1 -1
- package/lib/module/blocks/detail-studio/detail-studio-template.js +2 -6
- package/lib/module/blocks/detail-studio/detail-studio-template.js.map +1 -1
- package/lib/module/blocks/detail-studio/edge-fade.js +74 -0
- package/lib/module/blocks/detail-studio/edge-fade.js.map +1 -0
- package/lib/module/blocks/detail-studio/image-prompt.js +9 -10
- package/lib/module/blocks/detail-studio/image-prompt.js.map +1 -1
- package/lib/module/blocks/detail-studio/index.js +7 -5
- package/lib/module/blocks/detail-studio/index.js.map +1 -1
- package/lib/module/blocks/detail-studio/rewrite-tray.js +17 -64
- package/lib/module/blocks/detail-studio/rewrite-tray.js.map +1 -1
- package/lib/module/blocks/detail-studio/section-cover.js +41 -0
- package/lib/module/blocks/detail-studio/section-cover.js.map +1 -0
- package/lib/module/blocks/detail-studio/section-edit-template.js +103 -12
- package/lib/module/blocks/detail-studio/section-edit-template.js.map +1 -1
- package/lib/module/blocks/detail-studio/section-kind-grid.js +4 -3
- package/lib/module/blocks/detail-studio/section-kind-grid.js.map +1 -1
- package/lib/module/blocks/detail-studio/section-settings.js +127 -61
- package/lib/module/blocks/detail-studio/section-settings.js.map +1 -1
- package/lib/module/blocks/detail-studio/studio-bar.js +46 -25
- package/lib/module/blocks/detail-studio/studio-bar.js.map +1 -1
- package/lib/module/blocks/detail-studio/studio-dock.js +21 -39
- package/lib/module/blocks/detail-studio/studio-dock.js.map +1 -1
- package/lib/module/blocks/detail-studio/studio-glyphs.js +92 -0
- package/lib/module/blocks/detail-studio/studio-glyphs.js.map +1 -0
- package/lib/module/blocks/detail-studio/studio-sheet.js +5 -3
- package/lib/module/blocks/detail-studio/studio-sheet.js.map +1 -1
- package/lib/module/blocks/detail-studio/studio-steps.js +60 -0
- package/lib/module/blocks/detail-studio/studio-steps.js.map +1 -0
- package/lib/module/blocks/detail-studio/studio-toggle.js +130 -0
- package/lib/module/blocks/detail-studio/studio-toggle.js.map +1 -0
- package/lib/module/blocks/detail-studio/{photo-tool-bar.js → studio-tools.js} +63 -42
- package/lib/module/blocks/detail-studio/studio-tools.js.map +1 -0
- package/lib/module/blocks/detail-studio/text-format-panel.js +20 -8
- package/lib/module/blocks/detail-studio/text-format-panel.js.map +1 -1
- package/lib/module/blocks/draft-box/draft-box.js +3 -0
- package/lib/module/blocks/draft-box/draft-box.js.map +1 -1
- package/lib/module/blocks/index.js +1 -0
- package/lib/module/blocks/index.js.map +1 -1
- package/lib/module/blocks/oauth-buttons/oauth-buttons.js +1 -0
- package/lib/module/blocks/oauth-buttons/oauth-buttons.js.map +1 -1
- package/lib/module/blocks/order-block/order-block.js +19 -5
- package/lib/module/blocks/order-block/order-block.js.map +1 -1
- package/lib/module/blocks/product-tile/product-tile.js +4 -1
- package/lib/module/blocks/product-tile/product-tile.js.map +1 -1
- package/lib/module/blocks/question-accordion/question-accordion.js +1 -2
- package/lib/module/blocks/question-accordion/question-accordion.js.map +1 -1
- package/lib/module/blocks/question-pager/question-pager.js +2 -1
- package/lib/module/blocks/question-pager/question-pager.js.map +1 -1
- package/lib/module/blocks/review-card/review-card.js +4 -0
- package/lib/module/blocks/review-card/review-card.js.map +1 -1
- package/lib/module/blocks/send-bar/send-bar.js +1 -0
- package/lib/module/blocks/send-bar/send-bar.js.map +1 -1
- package/lib/module/blocks/stage-bar/stage-bar.js +3 -2
- package/lib/module/blocks/stage-bar/stage-bar.js.map +1 -1
- package/lib/module/blocks/stat-card/stat-card.js +4 -1
- package/lib/module/blocks/stat-card/stat-card.js.map +1 -1
- package/lib/module/blocks/step-screen/step-screen.js +5 -2
- package/lib/module/blocks/step-screen/step-screen.js.map +1 -1
- package/lib/module/blocks/store-top/store-top.js +8 -3
- package/lib/module/blocks/store-top/store-top.js.map +1 -1
- package/lib/module/blocks/summary-cards/summary-cards.js +10 -3
- package/lib/module/blocks/summary-cards/summary-cards.js.map +1 -1
- package/lib/module/blocks/task-tiles/task-tiles.js +3 -2
- package/lib/module/blocks/task-tiles/task-tiles.js.map +1 -1
- package/lib/module/components/amount-summary/amount-summary.js +7 -1
- package/lib/module/components/amount-summary/amount-summary.js.map +1 -1
- package/lib/module/components/button/button.js +19 -5
- package/lib/module/components/button/button.js.map +1 -1
- package/lib/module/components/calendar/calendar.js +7 -4
- package/lib/module/components/calendar/calendar.js.map +1 -1
- package/lib/module/components/chip/chip.js +7 -3
- package/lib/module/components/chip/chip.js.map +1 -1
- package/lib/module/components/chip-group/chip-group.js +1 -0
- package/lib/module/components/chip-group/chip-group.js.map +1 -1
- package/lib/module/components/circle-grid/circle-grid.js +1 -0
- package/lib/module/components/circle-grid/circle-grid.js.map +1 -1
- package/lib/module/components/credit/credit.js +8 -4
- package/lib/module/components/credit/credit.js.map +1 -1
- package/lib/module/components/dialog/dialog.js +2 -0
- package/lib/module/components/dialog/dialog.js.map +1 -1
- package/lib/module/components/dropdown-menu/dropdown-menu.js +9 -4
- package/lib/module/components/dropdown-menu/dropdown-menu.js.map +1 -1
- package/lib/module/components/empty-state/empty-state.js +1 -0
- package/lib/module/components/empty-state/empty-state.js.map +1 -1
- package/lib/module/components/fact-list/fact-list.js +1 -0
- package/lib/module/components/fact-list/fact-list.js.map +1 -1
- package/lib/module/components/field/field.js +4 -0
- package/lib/module/components/field/field.js.map +1 -1
- package/lib/module/components/filter-tabs/filter-tabs.js +2 -1
- package/lib/module/components/filter-tabs/filter-tabs.js.map +1 -1
- package/lib/module/components/list-row/list-row.js +23 -6
- package/lib/module/components/list-row/list-row.js.map +1 -1
- package/lib/module/components/page-header/page-header.js +1 -0
- package/lib/module/components/page-header/page-header.js.map +1 -1
- package/lib/module/components/pill/pill.js +1 -0
- package/lib/module/components/pill/pill.js.map +1 -1
- package/lib/module/components/segmented-control/segmented-control.js +5 -1
- package/lib/module/components/segmented-control/segmented-control.js.map +1 -1
- package/lib/module/components/segmented-tabs/segmented-tabs.js +3 -2
- package/lib/module/components/segmented-tabs/segmented-tabs.js.map +1 -1
- package/lib/module/components/skeleton/skeleton.js +4 -2
- package/lib/module/components/skeleton/skeleton.js.map +1 -1
- package/lib/module/components/slider/slider.js +53 -16
- package/lib/module/components/slider/slider.js.map +1 -1
- package/lib/module/components/status-steps/status-steps.js +2 -0
- package/lib/module/components/status-steps/status-steps.js.map +1 -1
- package/lib/module/components/text/figures.js +82 -0
- package/lib/module/components/text/figures.js.map +1 -0
- package/lib/module/components/text/index.js +1 -0
- package/lib/module/components/text/index.js.map +1 -1
- package/lib/module/components/text/metrics.js +5 -0
- package/lib/module/components/text/metrics.js.map +1 -0
- package/lib/module/components/text/text.js +31 -2
- package/lib/module/components/text/text.js.map +1 -1
- package/lib/module/components/tile-grid/tile-grid.js +3 -2
- package/lib/module/components/tile-grid/tile-grid.js.map +1 -1
- package/lib/module/components/toast/toast.js +4 -1
- package/lib/module/components/toast/toast.js.map +1 -1
- package/lib/module/components/value-rows/value-rows.js +8 -1
- package/lib/module/components/value-rows/value-rows.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/field-label.js +2 -0
- package/lib/module/internal/field-label.js.map +1 -1
- package/lib/module/internal/glyphs.js +2 -1
- package/lib/module/internal/glyphs.js.map +1 -1
- package/lib/module/internal/line-icons.js +1 -0
- package/lib/module/internal/line-icons.js.map +1 -1
- package/lib/module/internal/retry-glyph.js +5 -2
- package/lib/module/internal/retry-glyph.js.map +1 -1
- package/lib/module/internal/roll-text.js +10 -2
- package/lib/module/internal/roll-text.js.map +1 -1
- package/lib/module/internal/sample-tiles.js +2 -0
- package/lib/module/internal/sample-tiles.js.map +1 -1
- package/lib/module/internal/undo-glyph.js +11 -8
- package/lib/module/internal/undo-glyph.js.map +1 -1
- package/lib/module/sortable/section-board.js +75 -89
- package/lib/module/sortable/section-board.js.map +1 -1
- package/lib/module/templates/design-pick-template.js +9 -1
- package/lib/module/templates/design-pick-template.js.map +1 -1
- package/lib/module/templates/intro-template.js +3 -3
- package/lib/module/templates/intro-template.js.map +1 -1
- package/lib/module/templates/preview-edit-template.js +3 -0
- package/lib/module/templates/preview-edit-template.js.map +1 -1
- package/lib/module/templates/result-template.js +2 -1
- package/lib/module/templates/result-template.js.map +1 -1
- package/lib/module/templates/scroll-templates.js +12 -2
- package/lib/module/templates/scroll-templates.js.map +1 -1
- package/lib/module/templates/sheet-form-template.js +4 -0
- package/lib/module/templates/sheet-form-template.js.map +1 -1
- package/lib/module/theme/base.js +16 -9
- package/lib/module/theme/base.js.map +1 -1
- package/lib/module/theme/create-theme.js +6 -2
- package/lib/module/theme/create-theme.js.map +1 -1
- package/lib/module/theme/tokens.js +23 -2
- package/lib/module/theme/tokens.js.map +1 -1
- package/lib/typescript/src/adjust/adjust-template.d.ts.map +1 -1
- package/lib/typescript/src/adjust/axis-adjust.d.ts +25 -0
- package/lib/typescript/src/adjust/axis-adjust.d.ts.map +1 -0
- package/lib/typescript/src/adjust/axis-tabs.d.ts +15 -0
- package/lib/typescript/src/adjust/axis-tabs.d.ts.map +1 -0
- package/lib/typescript/src/adjust/axis-wheel.d.ts +15 -0
- package/lib/typescript/src/adjust/axis-wheel.d.ts.map +1 -0
- package/lib/typescript/src/adjust/dial-strip.d.ts.map +1 -1
- package/lib/typescript/src/adjust/index.d.ts +4 -0
- package/lib/typescript/src/adjust/index.d.ts.map +1 -1
- package/lib/typescript/src/adjust/store-sample.d.ts +46 -0
- package/lib/typescript/src/adjust/store-sample.d.ts.map +1 -0
- package/lib/typescript/src/blocks/chat-message/chat-message.d.ts.map +1 -1
- package/lib/typescript/src/blocks/choice-art/choice-art.d.ts.map +1 -1
- package/lib/typescript/src/blocks/color-tune/store-sample.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-editor/compare-slider.d.ts +2 -1
- package/lib/typescript/src/blocks/detail-editor/compare-slider.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-editor/detail-canvas.d.ts +3 -1
- package/lib/typescript/src/blocks/detail-editor/detail-canvas.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-editor/detail-types.d.ts +11 -0
- package/lib/typescript/src/blocks/detail-editor/detail-types.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-editor/draft-preview.d.ts +4 -1
- package/lib/typescript/src/blocks/detail-editor/draft-preview.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-editor/focus-context.d.ts +9 -0
- package/lib/typescript/src/blocks/detail-editor/focus-context.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-editor/index.d.ts +3 -2
- package/lib/typescript/src/blocks/detail-editor/index.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-editor/keep-words.d.ts +2 -0
- package/lib/typescript/src/blocks/detail-editor/keep-words.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-editor/layout-picker.d.ts +6 -1
- package/lib/typescript/src/blocks/detail-editor/layout-picker.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-request/detail-request.d.ts +24 -0
- package/lib/typescript/src/blocks/detail-request/detail-request.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-request/index.d.ts +2 -0
- package/lib/typescript/src/blocks/detail-request/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-studio/action-chips.d.ts +12 -0
- package/lib/typescript/src/blocks/detail-studio/action-chips.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-studio/adjust-tiles.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-studio/asset-grid.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-studio/confirm-row.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-studio/detail-studio-template.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-studio/edge-fade.d.ts +10 -0
- package/lib/typescript/src/blocks/detail-studio/edge-fade.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-studio/image-prompt.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-studio/index.d.ts +7 -5
- package/lib/typescript/src/blocks/detail-studio/index.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-studio/rewrite-tray.d.ts +3 -3
- package/lib/typescript/src/blocks/detail-studio/rewrite-tray.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-studio/section-cover.d.ts +7 -0
- package/lib/typescript/src/blocks/detail-studio/section-cover.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-studio/section-edit-template.d.ts +9 -0
- package/lib/typescript/src/blocks/detail-studio/section-edit-template.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-studio/section-kind-grid.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-studio/section-settings.d.ts +11 -13
- package/lib/typescript/src/blocks/detail-studio/section-settings.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-studio/studio-bar.d.ts +6 -2
- package/lib/typescript/src/blocks/detail-studio/studio-bar.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-studio/studio-dock.d.ts +0 -2
- package/lib/typescript/src/blocks/detail-studio/studio-dock.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-studio/studio-glyphs.d.ts +6 -0
- package/lib/typescript/src/blocks/detail-studio/studio-glyphs.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-studio/studio-sheet.d.ts.map +1 -1
- package/lib/typescript/src/blocks/detail-studio/studio-steps.d.ts +11 -0
- package/lib/typescript/src/blocks/detail-studio/studio-steps.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-studio/studio-toggle.d.ts +14 -0
- package/lib/typescript/src/blocks/detail-studio/studio-toggle.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-studio/studio-tools.d.ts +19 -0
- package/lib/typescript/src/blocks/detail-studio/studio-tools.d.ts.map +1 -0
- package/lib/typescript/src/blocks/detail-studio/text-format-panel.d.ts +2 -1
- package/lib/typescript/src/blocks/detail-studio/text-format-panel.d.ts.map +1 -1
- package/lib/typescript/src/blocks/draft-box/draft-box.d.ts.map +1 -1
- package/lib/typescript/src/blocks/index.d.ts +1 -0
- package/lib/typescript/src/blocks/index.d.ts.map +1 -1
- package/lib/typescript/src/blocks/oauth-buttons/oauth-buttons.d.ts.map +1 -1
- package/lib/typescript/src/blocks/order-block/order-block.d.ts.map +1 -1
- package/lib/typescript/src/blocks/product-tile/product-tile.d.ts.map +1 -1
- package/lib/typescript/src/blocks/question-accordion/question-accordion.d.ts.map +1 -1
- package/lib/typescript/src/blocks/question-pager/question-pager.d.ts.map +1 -1
- package/lib/typescript/src/blocks/review-card/review-card.d.ts.map +1 -1
- package/lib/typescript/src/blocks/send-bar/send-bar.d.ts.map +1 -1
- package/lib/typescript/src/blocks/stage-bar/stage-bar.d.ts.map +1 -1
- package/lib/typescript/src/blocks/stat-card/stat-card.d.ts.map +1 -1
- package/lib/typescript/src/blocks/step-screen/step-screen.d.ts.map +1 -1
- package/lib/typescript/src/blocks/store-top/store-top.d.ts.map +1 -1
- package/lib/typescript/src/blocks/summary-cards/summary-cards.d.ts.map +1 -1
- package/lib/typescript/src/blocks/task-tiles/task-tiles.d.ts.map +1 -1
- package/lib/typescript/src/components/amount-summary/amount-summary.d.ts.map +1 -1
- package/lib/typescript/src/components/button/button.d.ts +3 -1
- package/lib/typescript/src/components/button/button.d.ts.map +1 -1
- package/lib/typescript/src/components/calendar/calendar.d.ts.map +1 -1
- package/lib/typescript/src/components/chip/chip.d.ts +2 -1
- package/lib/typescript/src/components/chip/chip.d.ts.map +1 -1
- package/lib/typescript/src/components/chip-group/chip-group.d.ts +1 -0
- package/lib/typescript/src/components/chip-group/chip-group.d.ts.map +1 -1
- package/lib/typescript/src/components/circle-grid/circle-grid.d.ts.map +1 -1
- package/lib/typescript/src/components/credit/credit.d.ts +1 -0
- package/lib/typescript/src/components/credit/credit.d.ts.map +1 -1
- package/lib/typescript/src/components/dialog/dialog.d.ts.map +1 -1
- package/lib/typescript/src/components/dropdown-menu/dropdown-menu.d.ts +2 -0
- package/lib/typescript/src/components/dropdown-menu/dropdown-menu.d.ts.map +1 -1
- package/lib/typescript/src/components/empty-state/empty-state.d.ts.map +1 -1
- package/lib/typescript/src/components/fact-list/fact-list.d.ts.map +1 -1
- package/lib/typescript/src/components/field/field.d.ts.map +1 -1
- package/lib/typescript/src/components/filter-tabs/filter-tabs.d.ts.map +1 -1
- package/lib/typescript/src/components/list-row/list-row.d.ts +3 -1
- package/lib/typescript/src/components/list-row/list-row.d.ts.map +1 -1
- package/lib/typescript/src/components/page-header/page-header.d.ts.map +1 -1
- package/lib/typescript/src/components/pill/pill.d.ts.map +1 -1
- package/lib/typescript/src/components/segmented-control/segmented-control.d.ts +2 -0
- package/lib/typescript/src/components/segmented-control/segmented-control.d.ts.map +1 -1
- package/lib/typescript/src/components/segmented-tabs/segmented-tabs.d.ts.map +1 -1
- package/lib/typescript/src/components/skeleton/skeleton.d.ts +2 -1
- package/lib/typescript/src/components/skeleton/skeleton.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/slider.d.ts +2 -1
- package/lib/typescript/src/components/slider/slider.d.ts.map +1 -1
- package/lib/typescript/src/components/status-steps/status-steps.d.ts.map +1 -1
- package/lib/typescript/src/components/text/figures.d.ts +12 -0
- package/lib/typescript/src/components/text/figures.d.ts.map +1 -0
- package/lib/typescript/src/components/text/index.d.ts +1 -0
- package/lib/typescript/src/components/text/index.d.ts.map +1 -1
- package/lib/typescript/src/components/text/metrics.d.ts +6 -0
- package/lib/typescript/src/components/text/metrics.d.ts.map +1 -0
- package/lib/typescript/src/components/text/text.d.ts +2 -2
- package/lib/typescript/src/components/text/text.d.ts.map +1 -1
- package/lib/typescript/src/components/tile-grid/tile-grid.d.ts.map +1 -1
- package/lib/typescript/src/components/toast/toast.d.ts.map +1 -1
- package/lib/typescript/src/components/value-rows/value-rows.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/internal/field-label.d.ts.map +1 -1
- package/lib/typescript/src/internal/glyphs.d.ts +1 -0
- package/lib/typescript/src/internal/glyphs.d.ts.map +1 -1
- package/lib/typescript/src/internal/line-icons.d.ts +1 -0
- package/lib/typescript/src/internal/line-icons.d.ts.map +1 -1
- package/lib/typescript/src/internal/retry-glyph.d.ts.map +1 -1
- package/lib/typescript/src/internal/roll-text.d.ts +3 -2
- package/lib/typescript/src/internal/roll-text.d.ts.map +1 -1
- package/lib/typescript/src/internal/sample-tiles.d.ts +2 -0
- package/lib/typescript/src/internal/sample-tiles.d.ts.map +1 -1
- package/lib/typescript/src/internal/undo-glyph.d.ts.map +1 -1
- package/lib/typescript/src/sortable/section-board.d.ts.map +1 -1
- package/lib/typescript/src/templates/design-pick-template.d.ts.map +1 -1
- package/lib/typescript/src/templates/intro-template.d.ts.map +1 -1
- package/lib/typescript/src/templates/preview-edit-template.d.ts.map +1 -1
- package/lib/typescript/src/templates/result-template.d.ts +2 -1
- package/lib/typescript/src/templates/result-template.d.ts.map +1 -1
- package/lib/typescript/src/templates/scroll-templates.d.ts.map +1 -1
- package/lib/typescript/src/templates/sheet-form-template.d.ts.map +1 -1
- package/lib/typescript/src/theme/base.d.ts +9 -2
- package/lib/typescript/src/theme/base.d.ts.map +1 -1
- package/lib/typescript/src/theme/create-theme.d.ts.map +1 -1
- package/lib/typescript/src/theme/tokens.d.ts +3 -1
- package/lib/typescript/src/theme/tokens.d.ts.map +1 -1
- package/lib/typescript/src/types/index.d.ts +12 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adjust/adjust-template.tsx +1 -0
- package/src/adjust/axis-adjust.tsx +206 -0
- package/src/adjust/axis-dial.tsx +2 -2
- package/src/adjust/axis-tabs.tsx +81 -0
- package/src/adjust/axis-wheel.tsx +309 -0
- package/src/adjust/dial-strip.tsx +5 -3
- package/src/adjust/index.ts +15 -0
- package/src/adjust/store-sample.tsx +519 -0
- package/src/blocks/chat-message/chat-message.tsx +1 -0
- package/src/blocks/choice-art/choice-art.tsx +2 -0
- package/src/blocks/color-swatch-picker/color-swatch-picker.tsx +1 -1
- package/src/blocks/color-tune/store-sample.tsx +11 -6
- package/src/blocks/color-tune/swatch-card.tsx +1 -1
- package/src/blocks/detail-editor/compare-slider.tsx +4 -1
- package/src/blocks/detail-editor/detail-canvas.tsx +267 -69
- package/src/blocks/detail-editor/detail-types.ts +37 -0
- package/src/blocks/detail-editor/draft-preview.tsx +46 -2
- package/src/blocks/detail-editor/focus-context.ts +13 -0
- package/src/blocks/detail-editor/index.ts +11 -1
- package/src/blocks/detail-editor/keep-words.ts +36 -0
- package/src/blocks/detail-editor/layout-picker.tsx +191 -6
- package/src/blocks/detail-request/detail-request.tsx +198 -0
- package/src/blocks/detail-request/index.ts +11 -0
- package/src/blocks/detail-studio/action-chips.tsx +78 -0
- package/src/blocks/detail-studio/adjust-tiles.tsx +4 -3
- package/src/blocks/detail-studio/asset-grid.tsx +30 -16
- package/src/blocks/detail-studio/confirm-row.tsx +3 -0
- package/src/blocks/detail-studio/detail-studio-template.tsx +2 -6
- package/src/blocks/detail-studio/edge-fade.tsx +76 -0
- package/src/blocks/detail-studio/image-prompt.tsx +7 -9
- package/src/blocks/detail-studio/index.ts +19 -16
- package/src/blocks/detail-studio/rewrite-tray.tsx +16 -56
- package/src/blocks/detail-studio/section-cover.tsx +44 -0
- package/src/blocks/detail-studio/section-edit-template.tsx +138 -13
- package/src/blocks/detail-studio/section-kind-grid.tsx +4 -2
- package/src/blocks/detail-studio/section-settings.tsx +124 -69
- package/src/blocks/detail-studio/studio-bar.tsx +61 -41
- package/src/blocks/detail-studio/studio-dock.tsx +19 -37
- package/src/blocks/detail-studio/studio-glyphs.tsx +77 -0
- package/src/blocks/detail-studio/studio-sheet.tsx +7 -3
- package/src/blocks/detail-studio/studio-steps.tsx +58 -0
- package/src/blocks/detail-studio/studio-toggle.tsx +130 -0
- package/src/blocks/detail-studio/studio-tools.tsx +126 -0
- package/src/blocks/detail-studio/text-format-panel.tsx +30 -14
- package/src/blocks/draft-box/draft-box.tsx +3 -0
- package/src/blocks/index.tsx +1 -0
- package/src/blocks/oauth-buttons/oauth-buttons.tsx +1 -0
- package/src/blocks/order-block/order-block.tsx +20 -4
- package/src/blocks/product-tile/product-tile.tsx +4 -1
- package/src/blocks/question-accordion/question-accordion.tsx +0 -1
- package/src/blocks/question-pager/question-pager.tsx +2 -1
- package/src/blocks/review-card/review-card.tsx +4 -0
- package/src/blocks/send-bar/send-bar.tsx +1 -0
- package/src/blocks/stage-bar/stage-bar.tsx +3 -2
- package/src/blocks/stat-card/stat-card.tsx +2 -1
- package/src/blocks/step-screen/step-screen.tsx +5 -2
- package/src/blocks/store-top/store-top.tsx +7 -2
- package/src/blocks/summary-cards/summary-cards.tsx +4 -3
- package/src/blocks/task-tiles/task-tiles.tsx +2 -1
- package/src/components/amount-summary/amount-summary.tsx +9 -3
- package/src/components/button/button.tsx +18 -5
- package/src/components/calendar/calendar.tsx +5 -2
- package/src/components/chip/chip.tsx +11 -2
- package/src/components/chip-group/chip-group.tsx +2 -0
- package/src/components/circle-grid/circle-grid.tsx +5 -1
- package/src/components/credit/credit.tsx +11 -4
- package/src/components/dialog/dialog.tsx +2 -0
- package/src/components/dropdown-menu/dropdown-menu.tsx +18 -7
- package/src/components/empty-state/empty-state.tsx +1 -0
- package/src/components/fact-list/fact-list.tsx +1 -0
- package/src/components/field/field.tsx +4 -0
- package/src/components/filter-tabs/filter-tabs.tsx +2 -1
- package/src/components/list-row/list-row.tsx +40 -5
- package/src/components/page-header/page-header.tsx +1 -0
- package/src/components/pill/pill.tsx +1 -0
- package/src/components/segmented-control/segmented-control.tsx +12 -2
- package/src/components/segmented-tabs/segmented-tabs.tsx +2 -1
- package/src/components/skeleton/skeleton.tsx +5 -2
- package/src/components/slider/slider.tsx +66 -14
- package/src/components/status-steps/status-steps.tsx +2 -0
- package/src/components/text/figures.tsx +92 -0
- package/src/components/text/index.ts +7 -0
- package/src/components/text/metrics.ts +5 -0
- package/src/components/text/text.tsx +60 -16
- package/src/components/tile-grid/tile-grid.tsx +3 -2
- package/src/components/toast/toast.tsx +7 -1
- package/src/components/value-rows/value-rows.tsx +9 -1
- package/src/index.tsx +1 -0
- package/src/internal/field-label.tsx +2 -0
- package/src/internal/glyphs.tsx +2 -0
- package/src/internal/line-icons.ts +2 -0
- package/src/internal/retry-glyph.tsx +7 -2
- package/src/internal/roll-text.tsx +12 -2
- package/src/internal/sample-tiles.tsx +2 -0
- package/src/internal/undo-glyph.tsx +12 -11
- package/src/sortable/section-board.tsx +73 -76
- package/src/templates/design-pick-template.tsx +10 -1
- package/src/templates/intro-template.tsx +14 -12
- package/src/templates/preview-edit-template.tsx +3 -0
- package/src/templates/result-template.tsx +3 -0
- package/src/templates/scroll-templates.tsx +11 -2
- package/src/templates/sheet-form-template.tsx +4 -0
- package/src/theme/base.ts +9 -2
- package/src/theme/create-theme.ts +9 -2
- package/src/theme/tokens.ts +37 -3
- package/src/types/index.ts +13 -0
- package/lib/module/blocks/detail-studio/keyboard-bar.js +0 -67
- package/lib/module/blocks/detail-studio/keyboard-bar.js.map +0 -1
- package/lib/module/blocks/detail-studio/photo-tool-bar.js.map +0 -1
- package/lib/module/blocks/detail-studio/section-thumb.js +0 -49
- package/lib/module/blocks/detail-studio/section-thumb.js.map +0 -1
- package/lib/typescript/src/blocks/detail-studio/keyboard-bar.d.ts +0 -18
- package/lib/typescript/src/blocks/detail-studio/keyboard-bar.d.ts.map +0 -1
- package/lib/typescript/src/blocks/detail-studio/photo-tool-bar.d.ts +0 -19
- package/lib/typescript/src/blocks/detail-studio/photo-tool-bar.d.ts.map +0 -1
- package/lib/typescript/src/blocks/detail-studio/section-thumb.d.ts +0 -14
- package/lib/typescript/src/blocks/detail-studio/section-thumb.d.ts.map +0 -1
- package/src/blocks/detail-studio/keyboard-bar.tsx +0 -73
- package/src/blocks/detail-studio/photo-tool-bar.tsx +0 -100
- package/src/blocks/detail-studio/section-thumb.tsx +0 -41
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useRef } from 'react';
|
|
2
|
-
import type
|
|
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
|
-
{
|
|
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
|
-
|
|
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 *
|
|
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
|
-
|
|
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 *
|
|
38
|
-
top: unit * 1.
|
|
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.
|
|
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) =>
|
|
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.
|
|
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
|
-
|
|
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.
|
|
67
|
-
borderTopRightRadius: t.radius.
|
|
69
|
+
borderTopLeftRadius: t.radius.md * 2,
|
|
70
|
+
borderTopRightRadius: t.radius.md * 2,
|
|
68
71
|
},
|
|
69
72
|
last: {
|
|
70
|
-
borderBottomLeftRadius: t.radius.
|
|
71
|
-
borderBottomRightRadius: t.radius.
|
|
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.
|
|
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:
|
|
82
|
+
left: 0,
|
|
80
83
|
height: 1,
|
|
81
84
|
backgroundColor: t.colors.border,
|
|
82
85
|
},
|
|
83
86
|
grip: {
|
|
84
|
-
width: t.
|
|
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:
|
|
97
|
-
height:
|
|
99
|
+
width: thumbSize(t),
|
|
100
|
+
height: thumbSize(t),
|
|
98
101
|
overflow: 'hidden',
|
|
99
|
-
borderRadius: t.radius.
|
|
100
|
-
backgroundColor: t.colors.
|
|
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[
|
|
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,
|
|
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
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
<
|
|
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
|
-
<
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
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
|
-
<
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
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,
|
|
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={
|
|
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
|
|
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
|
-
{
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
|
150
|
-
|
|
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.
|
|
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.
|
|
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
|
|