@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
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { Text as RNText, View } from 'react-native';
|
|
3
|
+
import Animated, {
|
|
4
|
+
interpolateColor,
|
|
5
|
+
useAnimatedStyle,
|
|
6
|
+
} from 'react-native-reanimated';
|
|
7
|
+
import { haptic } from '../../internal/haptics';
|
|
8
|
+
import { useSwitch } from '../../internal/motion';
|
|
9
|
+
import { PressableBase } from '../../internal/pressable-base';
|
|
10
|
+
import { useTheme } from '../../theme/theme-provider';
|
|
11
|
+
import { makeStyles } from '../../utils/styles';
|
|
12
|
+
|
|
13
|
+
export type StudioToggleProps = {
|
|
14
|
+
label: string;
|
|
15
|
+
value: boolean;
|
|
16
|
+
onValueChange: (value: boolean) => void;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type StudioToggleListProps = {
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const TRACK = 26;
|
|
26
|
+
const KNOB = 22;
|
|
27
|
+
|
|
28
|
+
const useStyles = makeStyles((t) => {
|
|
29
|
+
const inset = (TRACK - KNOB) / 2;
|
|
30
|
+
return {
|
|
31
|
+
list: { marginHorizontal: -t.space[4] },
|
|
32
|
+
row: {
|
|
33
|
+
height: t.controlSize.lg,
|
|
34
|
+
flexDirection: 'row',
|
|
35
|
+
alignItems: 'center',
|
|
36
|
+
gap: t.space[3],
|
|
37
|
+
paddingHorizontal: t.space[5],
|
|
38
|
+
},
|
|
39
|
+
label: {
|
|
40
|
+
...t.typography.body,
|
|
41
|
+
flex: 1,
|
|
42
|
+
fontFamily: t.fontFamily,
|
|
43
|
+
color: t.colors.title,
|
|
44
|
+
},
|
|
45
|
+
track: {
|
|
46
|
+
width: t.controlSize.sm,
|
|
47
|
+
height: TRACK,
|
|
48
|
+
borderRadius: t.radius.full,
|
|
49
|
+
},
|
|
50
|
+
thumb: {
|
|
51
|
+
position: 'absolute',
|
|
52
|
+
top: inset,
|
|
53
|
+
left: inset,
|
|
54
|
+
width: KNOB,
|
|
55
|
+
height: KNOB,
|
|
56
|
+
borderRadius: t.radius.full,
|
|
57
|
+
backgroundColor: t.colors.raised,
|
|
58
|
+
boxShadow: t.shadow.sm,
|
|
59
|
+
},
|
|
60
|
+
extra: {
|
|
61
|
+
paddingTop: t.space[1],
|
|
62
|
+
paddingBottom: t.space[3],
|
|
63
|
+
paddingHorizontal: t.space[5],
|
|
64
|
+
},
|
|
65
|
+
off: { opacity: t.opacity.disabled },
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
function Knob({ on }: { on: boolean }) {
|
|
70
|
+
const t = useTheme();
|
|
71
|
+
const s = useStyles();
|
|
72
|
+
const travel = t.controlSize.sm - TRACK;
|
|
73
|
+
const off = t.colors.border;
|
|
74
|
+
const lit = t.colors.primary;
|
|
75
|
+
const progress = useSwitch(on, 'base');
|
|
76
|
+
const track = useAnimatedStyle(() => ({
|
|
77
|
+
backgroundColor: interpolateColor(progress.value, [0, 1], [off, lit]),
|
|
78
|
+
}));
|
|
79
|
+
const thumb = useAnimatedStyle(() => ({
|
|
80
|
+
transform: [{ translateX: travel * progress.value }],
|
|
81
|
+
}));
|
|
82
|
+
return (
|
|
83
|
+
<Animated.View testID="studio-switch" style={[s.track, track]}>
|
|
84
|
+
<Animated.View style={[s.thumb, thumb]} />
|
|
85
|
+
</Animated.View>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function StudioToggle({
|
|
90
|
+
label,
|
|
91
|
+
value,
|
|
92
|
+
onValueChange,
|
|
93
|
+
disabled,
|
|
94
|
+
children,
|
|
95
|
+
}: StudioToggleProps) {
|
|
96
|
+
const t = useTheme();
|
|
97
|
+
const s = useStyles();
|
|
98
|
+
return (
|
|
99
|
+
<View>
|
|
100
|
+
<PressableBase
|
|
101
|
+
feedback="row"
|
|
102
|
+
accessibilityRole="switch"
|
|
103
|
+
accessibilityLabel={label}
|
|
104
|
+
accessibilityState={{ checked: value, disabled }}
|
|
105
|
+
disabled={disabled}
|
|
106
|
+
disabledStyle={s.off}
|
|
107
|
+
onPress={() => {
|
|
108
|
+
haptic('select');
|
|
109
|
+
onValueChange(!value);
|
|
110
|
+
}}
|
|
111
|
+
style={s.row}
|
|
112
|
+
>
|
|
113
|
+
<RNText
|
|
114
|
+
numberOfLines={1}
|
|
115
|
+
maxFontSizeMultiplier={t.maxFontScale}
|
|
116
|
+
style={s.label}
|
|
117
|
+
>
|
|
118
|
+
{label}
|
|
119
|
+
</RNText>
|
|
120
|
+
<Knob on={value} />
|
|
121
|
+
</PressableBase>
|
|
122
|
+
{children ? <View style={s.extra}>{children}</View> : null}
|
|
123
|
+
</View>
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function StudioToggleList({ children }: StudioToggleListProps) {
|
|
128
|
+
const s = useStyles();
|
|
129
|
+
return <View style={s.list}>{children}</View>;
|
|
130
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { useRef, type ComponentRef } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { CreditCost } from '../../components/credit/credit';
|
|
4
|
+
import type { SectionAnchor } from '../../components/dropdown-menu/dropdown-menu';
|
|
5
|
+
import { Text } from '../../components/text/text';
|
|
6
|
+
import { renderIcon, type IconSlot } from '../../internal/icon';
|
|
7
|
+
import { PressableBase } from '../../internal/pressable-base';
|
|
8
|
+
import { useTheme } from '../../theme/theme-provider';
|
|
9
|
+
import { makeStyles } from '../../utils/styles';
|
|
10
|
+
|
|
11
|
+
export type StudioToolItem = {
|
|
12
|
+
key: string;
|
|
13
|
+
icon: IconSlot;
|
|
14
|
+
label: string;
|
|
15
|
+
onPress: (anchor?: SectionAnchor) => void;
|
|
16
|
+
menu?: boolean;
|
|
17
|
+
active?: boolean;
|
|
18
|
+
accent?: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
cost?: number | null;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type StudioToolsProps = {
|
|
24
|
+
items: readonly StudioToolItem[];
|
|
25
|
+
docked?: boolean;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const useStyles = makeStyles((t) => ({
|
|
29
|
+
bar: {
|
|
30
|
+
paddingVertical: t.space[2],
|
|
31
|
+
paddingHorizontal: t.space[2],
|
|
32
|
+
borderTopWidth: 1,
|
|
33
|
+
borderTopColor: t.colors.border,
|
|
34
|
+
backgroundColor: t.colors.surface,
|
|
35
|
+
},
|
|
36
|
+
row: { flexDirection: 'row', gap: t.space[1] },
|
|
37
|
+
inset: { paddingHorizontal: t.space[2] },
|
|
38
|
+
cell: { flex: 1 },
|
|
39
|
+
item: {
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
gap: t.space[1],
|
|
42
|
+
paddingVertical: t.space[1],
|
|
43
|
+
},
|
|
44
|
+
circle: {
|
|
45
|
+
width: t.minTouchSize,
|
|
46
|
+
height: t.minTouchSize,
|
|
47
|
+
borderRadius: t.radius.full,
|
|
48
|
+
alignItems: 'center',
|
|
49
|
+
justifyContent: 'center',
|
|
50
|
+
backgroundColor: t.colors.background,
|
|
51
|
+
},
|
|
52
|
+
on: { backgroundColor: t.colors.primaryTint },
|
|
53
|
+
cost: { position: 'absolute', top: 0, right: 0 },
|
|
54
|
+
}));
|
|
55
|
+
|
|
56
|
+
export function StudioTools({ items, docked = true }: StudioToolsProps) {
|
|
57
|
+
const t = useTheme();
|
|
58
|
+
const s = useStyles();
|
|
59
|
+
const cells = useRef<Record<string, ComponentRef<typeof View> | null>>({});
|
|
60
|
+
const press = (item: StudioToolItem) => {
|
|
61
|
+
const cell = item.menu ? cells.current[item.key] : null;
|
|
62
|
+
if (!cell) {
|
|
63
|
+
item.onPress();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
cell.measureInWindow((x, y, width, height) =>
|
|
67
|
+
item.onPress({ x, y, width, height })
|
|
68
|
+
);
|
|
69
|
+
};
|
|
70
|
+
return (
|
|
71
|
+
<View accessibilityRole="toolbar" style={[s.row, docked ? s.bar : s.inset]}>
|
|
72
|
+
{items.map((item) => {
|
|
73
|
+
const hot = !item.disabled && (item.active || item.accent);
|
|
74
|
+
const color = item.disabled
|
|
75
|
+
? t.colors.disabledForeground
|
|
76
|
+
: hot
|
|
77
|
+
? t.colors.selectForeground
|
|
78
|
+
: t.colors.title;
|
|
79
|
+
return (
|
|
80
|
+
<View
|
|
81
|
+
key={item.key}
|
|
82
|
+
ref={(node) => {
|
|
83
|
+
cells.current[item.key] = node;
|
|
84
|
+
}}
|
|
85
|
+
collapsable={false}
|
|
86
|
+
style={s.cell}
|
|
87
|
+
>
|
|
88
|
+
<PressableBase
|
|
89
|
+
onPress={() => press(item)}
|
|
90
|
+
disabled={item.disabled}
|
|
91
|
+
disabledStyle={{}}
|
|
92
|
+
feedback="small"
|
|
93
|
+
accessibilityLabel={item.label}
|
|
94
|
+
accessibilityState={
|
|
95
|
+
item.active === undefined
|
|
96
|
+
? undefined
|
|
97
|
+
: { selected: item.active }
|
|
98
|
+
}
|
|
99
|
+
style={s.item}
|
|
100
|
+
>
|
|
101
|
+
<View style={[s.circle, hot && s.on]}>
|
|
102
|
+
{renderIcon(item.icon, { color, size: t.iconSize.md })}
|
|
103
|
+
</View>
|
|
104
|
+
<Text
|
|
105
|
+
variant="caption"
|
|
106
|
+
numberOfLines={1}
|
|
107
|
+
weight={hot ? 'semibold' : undefined}
|
|
108
|
+
style={{ color }}
|
|
109
|
+
>
|
|
110
|
+
{item.label}
|
|
111
|
+
</Text>
|
|
112
|
+
{item.cost != null ? (
|
|
113
|
+
<View pointerEvents="none" style={s.cost}>
|
|
114
|
+
<CreditCost
|
|
115
|
+
value={item.cost}
|
|
116
|
+
tone={item.disabled ? 'disabled' : 'muted'}
|
|
117
|
+
/>
|
|
118
|
+
</View>
|
|
119
|
+
) : null}
|
|
120
|
+
</PressableBase>
|
|
121
|
+
</View>
|
|
122
|
+
);
|
|
123
|
+
})}
|
|
124
|
+
</View>
|
|
125
|
+
);
|
|
126
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Text as RNText, View } from 'react-native';
|
|
1
|
+
import { Text as RNText, View, type TextStyle } from 'react-native';
|
|
2
2
|
import { SegmentedControl } from '../../components/segmented-control/segmented-control';
|
|
3
3
|
import { Slider } from '../../components/slider/slider';
|
|
4
4
|
import {
|
|
@@ -29,6 +29,7 @@ export type TextFormatPanelProps = {
|
|
|
29
29
|
onSlidingStart?: () => void;
|
|
30
30
|
tab: TextFormatTab;
|
|
31
31
|
onTabChange: (tab: TextFormatTab) => void;
|
|
32
|
+
tabs?: readonly TextFormatTab[];
|
|
32
33
|
sample?: string;
|
|
33
34
|
colors?: readonly ColorSwatch[];
|
|
34
35
|
bottomInset?: number;
|
|
@@ -45,10 +46,14 @@ const TABS: { value: TextFormatTab; label: string }[] = [
|
|
|
45
46
|
{ value: 'effect', label: '효과' },
|
|
46
47
|
];
|
|
47
48
|
|
|
48
|
-
const WEIGHTS: {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
const WEIGHTS: {
|
|
50
|
+
value: DetailWeight;
|
|
51
|
+
label: string;
|
|
52
|
+
weight: TextStyle['fontWeight'];
|
|
53
|
+
}[] = [
|
|
54
|
+
{ value: 'regular', label: '보통', weight: '400' },
|
|
55
|
+
{ value: 'bold', label: '굵게', weight: '600' },
|
|
56
|
+
{ value: 'heavy', label: '아주 굵게', weight: '700' },
|
|
52
57
|
];
|
|
53
58
|
|
|
54
59
|
const ALIGNS = [
|
|
@@ -67,13 +72,17 @@ const useStyles = makeStyles((t) => ({
|
|
|
67
72
|
},
|
|
68
73
|
small: {
|
|
69
74
|
fontSize: t.typography.eyebrow.fontSize,
|
|
75
|
+
fontFamily: t.fontFamily,
|
|
76
|
+
letterSpacing: t.typography.eyebrow.letterSpacing,
|
|
70
77
|
lineHeight: t.typography.eyebrow.lineHeight,
|
|
71
78
|
color: t.colors.mutedForeground,
|
|
72
79
|
},
|
|
73
80
|
swatches: { paddingTop: t.space[4], paddingHorizontal: t.space[1] },
|
|
74
81
|
large: {
|
|
75
|
-
fontSize: t.typography.
|
|
76
|
-
|
|
82
|
+
fontSize: t.typography.screenTitle.fontSize,
|
|
83
|
+
fontFamily: t.fontFamily,
|
|
84
|
+
letterSpacing: t.typography.screenTitle.letterSpacing,
|
|
85
|
+
lineHeight: t.typography.screenTitle.lineHeight,
|
|
77
86
|
color: t.colors.title,
|
|
78
87
|
},
|
|
79
88
|
}));
|
|
@@ -86,6 +95,7 @@ export function TextFormatPanel({
|
|
|
86
95
|
onSlidingStart,
|
|
87
96
|
tab,
|
|
88
97
|
onTabChange,
|
|
98
|
+
tabs,
|
|
89
99
|
sample = '가나다',
|
|
90
100
|
colors,
|
|
91
101
|
bottomInset = 0,
|
|
@@ -95,6 +105,7 @@ export function TextFormatPanel({
|
|
|
95
105
|
const size = value.size ?? 5;
|
|
96
106
|
const line = value.line ?? 5;
|
|
97
107
|
const tracking = value.tracking ?? 0;
|
|
108
|
+
const shown = tabs ? TABS.filter((item) => tabs.includes(item.value)) : TABS;
|
|
98
109
|
|
|
99
110
|
const body = () => {
|
|
100
111
|
switch (tab) {
|
|
@@ -111,6 +122,7 @@ export function TextFormatPanel({
|
|
|
111
122
|
return (
|
|
112
123
|
<>
|
|
113
124
|
<Slider
|
|
125
|
+
size="sm"
|
|
114
126
|
value={size}
|
|
115
127
|
min={1}
|
|
116
128
|
max={10}
|
|
@@ -139,6 +151,7 @@ export function TextFormatPanel({
|
|
|
139
151
|
return (
|
|
140
152
|
<>
|
|
141
153
|
<Slider
|
|
154
|
+
size="sm"
|
|
142
155
|
value={line}
|
|
143
156
|
min={1}
|
|
144
157
|
max={10}
|
|
@@ -149,6 +162,7 @@ export function TextFormatPanel({
|
|
|
149
162
|
accessibilityLabel="줄 간격"
|
|
150
163
|
/>
|
|
151
164
|
<Slider
|
|
165
|
+
size="sm"
|
|
152
166
|
value={tracking}
|
|
153
167
|
min={-5}
|
|
154
168
|
max={10}
|
|
@@ -191,13 +205,15 @@ export function TextFormatPanel({
|
|
|
191
205
|
|
|
192
206
|
return (
|
|
193
207
|
<View style={[s.panel, { height: FORMAT_PANEL + bottomInset }]}>
|
|
194
|
-
|
|
195
|
-
<
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
208
|
+
{shown.length > 1 ? (
|
|
209
|
+
<View style={s.tabs}>
|
|
210
|
+
<SegmentedControl
|
|
211
|
+
items={shown}
|
|
212
|
+
value={tab}
|
|
213
|
+
onValueChange={onTabChange}
|
|
214
|
+
/>
|
|
215
|
+
</View>
|
|
216
|
+
) : null}
|
|
201
217
|
<View style={s.body}>{body()}</View>
|
|
202
218
|
</View>
|
|
203
219
|
);
|
|
@@ -33,6 +33,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
33
33
|
label: {
|
|
34
34
|
fontFamily: t.fontFamily,
|
|
35
35
|
fontSize: t.typography.eyebrow.fontSize,
|
|
36
|
+
letterSpacing: t.typography.eyebrow.letterSpacing,
|
|
36
37
|
lineHeight: t.typography.eyebrow.lineHeight,
|
|
37
38
|
fontWeight: '600',
|
|
38
39
|
color: t.colors.primary,
|
|
@@ -41,12 +42,14 @@ const useStyles = makeStyles((t) => ({
|
|
|
41
42
|
flexShrink: 1,
|
|
42
43
|
fontFamily: t.fontFamily,
|
|
43
44
|
fontSize: t.typography.eyebrow.fontSize,
|
|
45
|
+
letterSpacing: t.typography.eyebrow.letterSpacing,
|
|
44
46
|
lineHeight: t.typography.eyebrow.lineHeight,
|
|
45
47
|
color: t.colors.mutedForeground,
|
|
46
48
|
},
|
|
47
49
|
text: {
|
|
48
50
|
fontFamily: t.fontFamily,
|
|
49
51
|
fontSize: t.typography.body.fontSize,
|
|
52
|
+
letterSpacing: t.typography.body.letterSpacing,
|
|
50
53
|
lineHeight: t.typography.body.lineHeight,
|
|
51
54
|
color: t.colors.title,
|
|
52
55
|
},
|
package/src/blocks/index.tsx
CHANGED
|
@@ -9,6 +9,7 @@ import type { IconSlot } from '../../internal/icon';
|
|
|
9
9
|
import { PressableBase } from '../../internal/pressable-base';
|
|
10
10
|
import { useTheme } from '../../theme/theme-provider';
|
|
11
11
|
import { makeStyles } from '../../utils/styles';
|
|
12
|
+
import { Figures, Won } from '../../components/text/figures';
|
|
12
13
|
|
|
13
14
|
export type OrderBlockAction = {
|
|
14
15
|
label: string;
|
|
@@ -50,6 +51,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
50
51
|
overline: {
|
|
51
52
|
fontFamily: t.fontFamily,
|
|
52
53
|
fontSize: t.typography.eyebrow.fontSize,
|
|
54
|
+
letterSpacing: t.typography.eyebrow.letterSpacing,
|
|
53
55
|
lineHeight: t.typography.eyebrow.lineHeight,
|
|
54
56
|
fontWeight: '500',
|
|
55
57
|
color: t.colors.mutedForeground,
|
|
@@ -57,6 +59,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
57
59
|
title: {
|
|
58
60
|
fontFamily: t.fontFamily,
|
|
59
61
|
fontSize: t.typography.bodyLg.fontSize,
|
|
62
|
+
letterSpacing: t.typography.bodyLg.letterSpacing,
|
|
60
63
|
lineHeight: t.typography.bodyLg.lineHeight,
|
|
61
64
|
fontWeight: '500',
|
|
62
65
|
color: t.colors.title,
|
|
@@ -64,6 +67,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
64
67
|
meta: {
|
|
65
68
|
fontFamily: t.fontFamily,
|
|
66
69
|
fontSize: t.typography.label.fontSize,
|
|
70
|
+
letterSpacing: t.typography.label.letterSpacing,
|
|
67
71
|
lineHeight: t.typography.label.lineHeight,
|
|
68
72
|
color: t.colors.mutedForeground,
|
|
69
73
|
},
|
|
@@ -71,10 +75,10 @@ const useStyles = makeStyles((t) => ({
|
|
|
71
75
|
marginTop: 'auto',
|
|
72
76
|
fontFamily: t.fontFamily,
|
|
73
77
|
fontSize: t.typography.bodyLg.fontSize,
|
|
78
|
+
letterSpacing: t.typography.bodyLg.letterSpacing,
|
|
74
79
|
lineHeight: t.typography.bodyLg.lineHeight,
|
|
75
|
-
fontWeight: '
|
|
80
|
+
fontWeight: '500',
|
|
76
81
|
color: t.colors.title,
|
|
77
|
-
fontVariant: ['tabular-nums'],
|
|
78
82
|
},
|
|
79
83
|
bottom: {
|
|
80
84
|
flexDirection: 'row',
|
|
@@ -108,6 +112,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
108
112
|
swipeLabel: {
|
|
109
113
|
fontFamily: t.fontFamily,
|
|
110
114
|
fontSize: t.typography.body.fontSize,
|
|
115
|
+
letterSpacing: t.typography.body.letterSpacing,
|
|
111
116
|
lineHeight: t.typography.body.lineHeight,
|
|
112
117
|
fontWeight: '600',
|
|
113
118
|
color: t.colors.primaryForeground,
|
|
@@ -182,7 +187,13 @@ export function OrderBlock({
|
|
|
182
187
|
numberOfLines={1}
|
|
183
188
|
maxFontSizeMultiplier={t.maxFontScale}
|
|
184
189
|
>
|
|
185
|
-
|
|
190
|
+
<Figures
|
|
191
|
+
size={t.typography.bodyLg.fontSize}
|
|
192
|
+
tracking={t.typography.bodyLg.letterSpacing}
|
|
193
|
+
scope="more"
|
|
194
|
+
>
|
|
195
|
+
{title}
|
|
196
|
+
</Figures>
|
|
186
197
|
</Text>
|
|
187
198
|
<Text
|
|
188
199
|
style={s.meta}
|
|
@@ -192,7 +203,12 @@ export function OrderBlock({
|
|
|
192
203
|
{meta}
|
|
193
204
|
</Text>
|
|
194
205
|
<Text style={s.amount} maxFontSizeMultiplier={t.maxFontScale}>
|
|
195
|
-
|
|
206
|
+
<Won
|
|
207
|
+
size={t.typography.bodyLg.fontSize}
|
|
208
|
+
tracking={t.typography.bodyLg.letterSpacing}
|
|
209
|
+
>
|
|
210
|
+
{amount}
|
|
211
|
+
</Won>
|
|
196
212
|
</Text>
|
|
197
213
|
</View>
|
|
198
214
|
</PressableBase>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { View, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
2
|
import { Photo } from '../../components/photo/photo';
|
|
3
3
|
import { Text } from '../../components/text/text';
|
|
4
|
+
import { Won } from '../../components/text/figures';
|
|
4
5
|
import { PressableBase } from '../../internal/pressable-base';
|
|
5
6
|
import { makeStyles } from '../../utils/styles';
|
|
6
7
|
|
|
@@ -37,7 +38,9 @@ export function ProductTile({
|
|
|
37
38
|
<Photo source={{ uri: image ?? '' }} seed={name} />
|
|
38
39
|
<View style={s.body}>
|
|
39
40
|
<Text numberOfLines={1}>{name}</Text>
|
|
40
|
-
<Text weight="semibold">
|
|
41
|
+
<Text weight="semibold">
|
|
42
|
+
<Won>{price}</Won>
|
|
43
|
+
</Text>
|
|
41
44
|
{state ? (
|
|
42
45
|
<Text variant="caption" tone="muted">
|
|
43
46
|
{state}
|
|
@@ -88,11 +88,12 @@ const useStyles = makeStyles((t) => ({
|
|
|
88
88
|
tabText: {
|
|
89
89
|
fontFamily: t.fontFamily,
|
|
90
90
|
fontSize: t.typography.label.fontSize,
|
|
91
|
+
letterSpacing: t.typography.label.letterSpacing,
|
|
91
92
|
lineHeight: t.typography.label.lineHeight,
|
|
92
93
|
fontWeight: '500',
|
|
93
94
|
color: t.colors.faint,
|
|
94
95
|
},
|
|
95
|
-
tabActiveText: { fontWeight: '
|
|
96
|
+
tabActiveText: { fontWeight: '600', color: t.colors.title },
|
|
96
97
|
tabDoneText: { color: t.colors.mutedForeground },
|
|
97
98
|
area: { flex: 1, marginHorizontal: -t.layout.screenX },
|
|
98
99
|
flow: {
|
|
@@ -40,12 +40,14 @@ const useStyles = makeStyles((t) => ({
|
|
|
40
40
|
flex: 1,
|
|
41
41
|
fontFamily: t.fontFamily,
|
|
42
42
|
fontSize: t.typography.eyebrow.fontSize,
|
|
43
|
+
letterSpacing: t.typography.eyebrow.letterSpacing,
|
|
43
44
|
lineHeight: t.typography.eyebrow.lineHeight,
|
|
44
45
|
color: t.colors.mutedForeground,
|
|
45
46
|
},
|
|
46
47
|
body: {
|
|
47
48
|
fontFamily: t.fontFamily,
|
|
48
49
|
fontSize: t.typography.body.fontSize,
|
|
50
|
+
letterSpacing: t.typography.body.letterSpacing,
|
|
49
51
|
lineHeight: t.typography.body.lineHeight,
|
|
50
52
|
color: t.colors.title,
|
|
51
53
|
},
|
|
@@ -62,6 +64,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
62
64
|
flexShrink: 1,
|
|
63
65
|
fontFamily: t.fontFamily,
|
|
64
66
|
fontSize: t.typography.eyebrow.fontSize,
|
|
67
|
+
letterSpacing: t.typography.eyebrow.letterSpacing,
|
|
65
68
|
lineHeight: t.typography.eyebrow.lineHeight,
|
|
66
69
|
color: t.colors.mutedForeground,
|
|
67
70
|
},
|
|
@@ -72,6 +75,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
72
75
|
borderLeftColor: t.colors.muted,
|
|
73
76
|
fontFamily: t.fontFamily,
|
|
74
77
|
fontSize: t.typography.label.fontSize,
|
|
78
|
+
letterSpacing: t.typography.label.letterSpacing,
|
|
75
79
|
lineHeight: t.typography.label.lineHeight,
|
|
76
80
|
color: t.colors.mutedForeground,
|
|
77
81
|
},
|
|
@@ -45,6 +45,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
45
45
|
backgroundColor: t.colors.muted,
|
|
46
46
|
fontFamily: t.fontFamily,
|
|
47
47
|
fontSize: t.typography.body.fontSize,
|
|
48
|
+
letterSpacing: t.typography.body.letterSpacing,
|
|
48
49
|
lineHeight: t.typography.body.lineHeight,
|
|
49
50
|
color: t.colors.title,
|
|
50
51
|
},
|
|
@@ -60,14 +60,15 @@ const useStyles = makeStyles((t) => ({
|
|
|
60
60
|
count: {
|
|
61
61
|
fontFamily: t.fontFamily,
|
|
62
62
|
fontSize: t.typography.title.fontSize,
|
|
63
|
+
letterSpacing: t.typography.title.letterSpacing,
|
|
63
64
|
lineHeight: t.typography.title.lineHeight,
|
|
64
|
-
fontWeight: '
|
|
65
|
-
fontVariant: ['tabular-nums'],
|
|
65
|
+
fontWeight: '500',
|
|
66
66
|
},
|
|
67
67
|
zero: { fontWeight: '400' },
|
|
68
68
|
label: {
|
|
69
69
|
fontFamily: t.fontFamily,
|
|
70
70
|
fontSize: t.typography.eyebrow.fontSize,
|
|
71
|
+
letterSpacing: t.typography.eyebrow.letterSpacing,
|
|
71
72
|
lineHeight: t.typography.eyebrow.lineHeight,
|
|
72
73
|
color: t.colors.mutedForeground,
|
|
73
74
|
},
|
|
@@ -2,6 +2,7 @@ import type { ReactNode } from 'react';
|
|
|
2
2
|
import { View, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
import { Text } from '../../components/text/text';
|
|
4
4
|
import { makeStyles } from '../../utils/styles';
|
|
5
|
+
import { Won } from '../../components/text/figures';
|
|
5
6
|
import { Card } from '../internal/card';
|
|
6
7
|
|
|
7
8
|
export type StatCardProps = {
|
|
@@ -61,7 +62,7 @@ export function StatCard({
|
|
|
61
62
|
{meta ? null : <Text tone="muted">{label}</Text>}
|
|
62
63
|
<View style={s.value}>
|
|
63
64
|
<Text variant="title" weight="semibold">
|
|
64
|
-
{value}
|
|
65
|
+
<Won>{value}</Won>
|
|
65
66
|
</Text>
|
|
66
67
|
{hasChange ? (
|
|
67
68
|
<Text
|
|
@@ -55,13 +55,14 @@ export type StepScreenProps = {
|
|
|
55
55
|
|
|
56
56
|
const TITLE_SIZE = 26;
|
|
57
57
|
const TITLE_LEADING = 34;
|
|
58
|
-
const TITLE_TRACKING = -0.
|
|
58
|
+
const TITLE_TRACKING = -0.57;
|
|
59
59
|
const DOCK = 68;
|
|
60
60
|
const DOCK_GO = 112;
|
|
61
61
|
const DOCK_RADIUS = 14;
|
|
62
62
|
const DOCK_THUMB = 44;
|
|
63
63
|
const DOCK_LABEL_SIZE = 16;
|
|
64
64
|
const DOCK_LABEL_LEADING = 22;
|
|
65
|
+
const DOCK_LABEL_TRACKING = -0.19;
|
|
65
66
|
const THUMB_INSET = '14%';
|
|
66
67
|
const THUMB_PHOTO = '72%';
|
|
67
68
|
|
|
@@ -81,8 +82,9 @@ const useStyles = makeStyles((t) => ({
|
|
|
81
82
|
countText: {
|
|
82
83
|
fontFamily: t.fontFamily,
|
|
83
84
|
fontSize: t.typography.body.fontSize,
|
|
85
|
+
letterSpacing: t.typography.body.letterSpacing,
|
|
84
86
|
lineHeight: t.typography.body.lineHeight,
|
|
85
|
-
fontWeight: '
|
|
87
|
+
fontWeight: '500',
|
|
86
88
|
color: t.colors.faint,
|
|
87
89
|
},
|
|
88
90
|
countNow: { color: t.colors.title },
|
|
@@ -173,6 +175,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
173
175
|
fontFamily: t.fontFamily,
|
|
174
176
|
fontSize: DOCK_LABEL_SIZE,
|
|
175
177
|
lineHeight: DOCK_LABEL_LEADING,
|
|
178
|
+
letterSpacing: DOCK_LABEL_TRACKING,
|
|
176
179
|
fontWeight: '600',
|
|
177
180
|
color: t.colors.title,
|
|
178
181
|
},
|