@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
|
@@ -61,6 +61,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
61
61
|
initial: {
|
|
62
62
|
fontFamily: t.fontFamily,
|
|
63
63
|
fontSize: t.typography.bodyLg.fontSize,
|
|
64
|
+
letterSpacing: t.typography.bodyLg.letterSpacing,
|
|
64
65
|
lineHeight: t.typography.bodyLg.lineHeight,
|
|
65
66
|
fontWeight: '600',
|
|
66
67
|
color: t.colors.title,
|
|
@@ -72,6 +73,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
72
73
|
flexShrink: 1,
|
|
73
74
|
fontFamily: t.fontFamily,
|
|
74
75
|
fontSize: t.typography.bodyLg.fontSize,
|
|
76
|
+
letterSpacing: t.typography.bodyLg.letterSpacing,
|
|
75
77
|
lineHeight: t.typography.bodyLg.lineHeight,
|
|
76
78
|
fontWeight: '600',
|
|
77
79
|
color: t.colors.title,
|
|
@@ -82,6 +84,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
82
84
|
statusText: {
|
|
83
85
|
fontFamily: t.fontFamily,
|
|
84
86
|
fontSize: t.typography.caption.fontSize,
|
|
87
|
+
letterSpacing: t.typography.caption.letterSpacing,
|
|
85
88
|
lineHeight: t.typography.caption.lineHeight,
|
|
86
89
|
color: t.colors.mutedForeground,
|
|
87
90
|
},
|
|
@@ -93,16 +96,17 @@ const useStyles = makeStyles((t) => ({
|
|
|
93
96
|
keyText: {
|
|
94
97
|
fontFamily: t.fontFamily,
|
|
95
98
|
fontSize: t.typography.eyebrow.fontSize,
|
|
99
|
+
letterSpacing: t.typography.eyebrow.letterSpacing,
|
|
96
100
|
lineHeight: t.typography.eyebrow.lineHeight,
|
|
97
101
|
color: t.colors.mutedForeground,
|
|
98
102
|
},
|
|
99
103
|
count: {
|
|
100
104
|
fontFamily: t.fontFamily,
|
|
101
105
|
fontSize: t.typography.display.fontSize,
|
|
106
|
+
letterSpacing: t.typography.display.letterSpacing,
|
|
102
107
|
lineHeight: t.typography.display.lineHeight,
|
|
103
|
-
fontWeight: '
|
|
108
|
+
fontWeight: '500',
|
|
104
109
|
color: t.colors.primary,
|
|
105
|
-
fontVariant: ['tabular-nums'],
|
|
106
110
|
},
|
|
107
111
|
zero: { fontWeight: '400', color: t.colors.input },
|
|
108
112
|
urgent: {
|
|
@@ -114,6 +118,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
114
118
|
urgentText: {
|
|
115
119
|
fontFamily: t.fontFamily,
|
|
116
120
|
fontSize: t.typography.caption.fontSize,
|
|
121
|
+
letterSpacing: t.typography.caption.letterSpacing,
|
|
117
122
|
lineHeight: t.typography.caption.lineHeight,
|
|
118
123
|
fontWeight: '600',
|
|
119
124
|
color: t.colors.warningText,
|
|
@@ -7,6 +7,7 @@ import { ProgressBar } from '../../components/progress-bar/progress-bar';
|
|
|
7
7
|
import { StatusBadge } from '../../components/status-badge/status-badge';
|
|
8
8
|
import { Switch } from '../../components/switch/switch';
|
|
9
9
|
import { Text } from '../../components/text/text';
|
|
10
|
+
import { Won } from '../../components/text/figures';
|
|
10
11
|
import { UsersGlyph } from '../../internal/glyphs';
|
|
11
12
|
import { PressableBase } from '../../internal/pressable-base';
|
|
12
13
|
import { useTheme } from '../../theme/theme-provider';
|
|
@@ -198,7 +199,7 @@ export function MetricCard({
|
|
|
198
199
|
weight="semibold"
|
|
199
200
|
tone={emphasis ? 'point' : undefined}
|
|
200
201
|
>
|
|
201
|
-
{value}
|
|
202
|
+
<Won>{value}</Won>
|
|
202
203
|
</Text>
|
|
203
204
|
{caption ? (
|
|
204
205
|
<Text variant="label" tone="muted">
|
|
@@ -208,7 +209,7 @@ export function MetricCard({
|
|
|
208
209
|
</View>
|
|
209
210
|
{aside ? (
|
|
210
211
|
<Text variant="bodyLg" weight="semibold" tone="point">
|
|
211
|
-
{aside}
|
|
212
|
+
<Won>{aside}</Won>
|
|
212
213
|
</Text>
|
|
213
214
|
) : null}
|
|
214
215
|
{action}
|
|
@@ -244,7 +245,7 @@ export function ValueTiles({ items }: ValueTilesProps) {
|
|
|
244
245
|
tone={item.emphasis ? 'point' : undefined}
|
|
245
246
|
numberOfLines={1}
|
|
246
247
|
>
|
|
247
|
-
{item.value}
|
|
248
|
+
<Won>{item.value}</Won>
|
|
248
249
|
</Text>
|
|
249
250
|
</>
|
|
250
251
|
);
|
|
@@ -35,8 +35,9 @@ const useStyles = makeStyles((t) => ({
|
|
|
35
35
|
},
|
|
36
36
|
count: {
|
|
37
37
|
fontSize: t.typography.title.fontSize,
|
|
38
|
+
fontFamily: t.fontFamily,
|
|
39
|
+
letterSpacing: t.typography.title.letterSpacing,
|
|
38
40
|
lineHeight: t.typography.title.lineHeight,
|
|
39
|
-
fontVariant: ['tabular-nums'],
|
|
40
41
|
},
|
|
41
42
|
}));
|
|
42
43
|
|
|
@@ -30,6 +30,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
30
30
|
label: {
|
|
31
31
|
fontFamily: t.fontFamily,
|
|
32
32
|
fontSize: t.typography.body.fontSize,
|
|
33
|
+
letterSpacing: t.typography.body.letterSpacing,
|
|
33
34
|
lineHeight: t.typography.body.lineHeight,
|
|
34
35
|
fontWeight: '500',
|
|
35
36
|
color: t.colors.title,
|
|
@@ -37,8 +38,9 @@ const useStyles = makeStyles((t) => ({
|
|
|
37
38
|
value: {
|
|
38
39
|
fontFamily: t.fontFamily,
|
|
39
40
|
fontSize: t.typography.title.fontSize,
|
|
41
|
+
letterSpacing: t.typography.title.letterSpacing,
|
|
40
42
|
lineHeight: t.typography.title.lineHeight,
|
|
41
|
-
fontWeight: '
|
|
43
|
+
fontWeight: '500',
|
|
42
44
|
color: t.colors.title,
|
|
43
45
|
},
|
|
44
46
|
lines: { gap: t.space[2] },
|
|
@@ -61,12 +63,14 @@ const useStyles = makeStyles((t) => ({
|
|
|
61
63
|
lineLabel: {
|
|
62
64
|
fontFamily: t.fontFamily,
|
|
63
65
|
fontSize: t.typography.label.fontSize,
|
|
66
|
+
letterSpacing: t.typography.label.letterSpacing,
|
|
64
67
|
lineHeight: t.typography.label.lineHeight,
|
|
65
68
|
color: t.colors.mutedForeground,
|
|
66
69
|
},
|
|
67
70
|
lineValue: {
|
|
68
71
|
fontFamily: t.fontFamily,
|
|
69
72
|
fontSize: t.typography.label.fontSize,
|
|
73
|
+
letterSpacing: t.typography.label.letterSpacing,
|
|
70
74
|
lineHeight: t.typography.label.lineHeight,
|
|
71
75
|
color: t.colors.foreground,
|
|
72
76
|
},
|
|
@@ -89,7 +93,9 @@ export function AmountSummary({
|
|
|
89
93
|
<Text style={s.label} maxFontSizeMultiplier={t.maxFontScale}>
|
|
90
94
|
{label}
|
|
91
95
|
</Text>
|
|
92
|
-
<RollText style={s.value}>
|
|
96
|
+
<RollText style={s.value} money>
|
|
97
|
+
{value}
|
|
98
|
+
</RollText>
|
|
93
99
|
</View>
|
|
94
100
|
);
|
|
95
101
|
return (
|
|
@@ -122,7 +128,7 @@ export function AmountSummary({
|
|
|
122
128
|
</PressableBase>
|
|
123
129
|
) : null}
|
|
124
130
|
</View>
|
|
125
|
-
<RollText style={s.lineValue} flash>
|
|
131
|
+
<RollText style={s.lineValue} flash money>
|
|
126
132
|
{line.value}
|
|
127
133
|
</RollText>
|
|
128
134
|
</View>
|
|
@@ -38,6 +38,8 @@ export type ButtonProps = Omit<
|
|
|
38
38
|
leftIcon?: IconSlot;
|
|
39
39
|
rightIcon?: IconSlot;
|
|
40
40
|
point?: boolean;
|
|
41
|
+
pill?: boolean;
|
|
42
|
+
steady?: boolean;
|
|
41
43
|
cost?: number | null;
|
|
42
44
|
children: ReactNode;
|
|
43
45
|
};
|
|
@@ -84,23 +86,31 @@ const useStyles = makeStyles((t) => ({
|
|
|
84
86
|
},
|
|
85
87
|
primary: { backgroundColor: t.colors.primary },
|
|
86
88
|
off: { backgroundColor: t.colors.disabledSurface },
|
|
89
|
+
soft: { backgroundColor: t.colors.muted },
|
|
87
90
|
secondary: { backgroundColor: t.colors.muted },
|
|
88
91
|
bare: { paddingHorizontal: 0 },
|
|
89
92
|
ghost: { backgroundColor: 'transparent' },
|
|
90
93
|
danger: { backgroundColor: t.colors.danger },
|
|
91
94
|
success: { backgroundColor: t.colors.success },
|
|
95
|
+
pill: { borderRadius: t.radius.full },
|
|
92
96
|
label: { fontFamily: t.fontFamily, fontWeight: '600' },
|
|
93
97
|
quiet: { fontWeight: '500' },
|
|
94
98
|
smLabel: {
|
|
95
99
|
fontSize: t.typography.label.fontSize,
|
|
100
|
+
fontFamily: t.fontFamily,
|
|
101
|
+
letterSpacing: t.typography.label.letterSpacing,
|
|
96
102
|
lineHeight: t.typography.label.lineHeight,
|
|
97
103
|
},
|
|
98
104
|
mdLabel: {
|
|
99
105
|
fontSize: t.typography.body.fontSize,
|
|
106
|
+
fontFamily: t.fontFamily,
|
|
107
|
+
letterSpacing: t.typography.body.letterSpacing,
|
|
100
108
|
lineHeight: t.typography.body.lineHeight,
|
|
101
109
|
},
|
|
102
110
|
lgLabel: {
|
|
103
111
|
fontSize: t.typography.bodyLg.fontSize,
|
|
112
|
+
fontFamily: t.fontFamily,
|
|
113
|
+
letterSpacing: t.typography.bodyLg.letterSpacing,
|
|
104
114
|
lineHeight: t.typography.bodyLg.lineHeight,
|
|
105
115
|
},
|
|
106
116
|
}));
|
|
@@ -115,6 +125,8 @@ export function Button({
|
|
|
115
125
|
leftIcon,
|
|
116
126
|
rightIcon,
|
|
117
127
|
point = false,
|
|
128
|
+
pill = false,
|
|
129
|
+
steady = false,
|
|
118
130
|
cost,
|
|
119
131
|
children,
|
|
120
132
|
style,
|
|
@@ -126,7 +138,7 @@ export function Button({
|
|
|
126
138
|
const busy = loading || done;
|
|
127
139
|
const off = !!disabled && !busy;
|
|
128
140
|
const flat = (variant === 'primary' || variant === 'danger') && !point;
|
|
129
|
-
const still = off && flat;
|
|
141
|
+
const still = off && (flat || steady);
|
|
130
142
|
const color = {
|
|
131
143
|
primary: t.colors.primaryForeground,
|
|
132
144
|
secondary: t.colors.title,
|
|
@@ -142,7 +154,7 @@ export function Button({
|
|
|
142
154
|
color: ink,
|
|
143
155
|
size: size === 'sm' ? t.iconSize.sm : t.iconSize.md,
|
|
144
156
|
};
|
|
145
|
-
const radius = s[size].borderRadius;
|
|
157
|
+
const radius = pill ? t.radius.full : s[size].borderRadius;
|
|
146
158
|
|
|
147
159
|
const [spin, setSpin] = useState(false);
|
|
148
160
|
useEffect(() => {
|
|
@@ -182,8 +194,8 @@ export function Button({
|
|
|
182
194
|
{...rest}
|
|
183
195
|
disabled={off || busy}
|
|
184
196
|
onDisabledPress={off ? shake : undefined}
|
|
185
|
-
live={live}
|
|
186
|
-
dim={!flat}
|
|
197
|
+
live={steady ? undefined : live}
|
|
198
|
+
dim={!flat && !steady}
|
|
187
199
|
nudge={nudge}
|
|
188
200
|
touchHeight={t.controlSize[size]}
|
|
189
201
|
accessibilityState={{ ...accessibilityState, busy: loading }}
|
|
@@ -192,8 +204,9 @@ export function Button({
|
|
|
192
204
|
s.base,
|
|
193
205
|
s[size],
|
|
194
206
|
s[variant],
|
|
195
|
-
still && s.off,
|
|
207
|
+
still && (steady ? s.soft : s.off),
|
|
196
208
|
point && s.bare,
|
|
209
|
+
pill && s.pill,
|
|
197
210
|
style,
|
|
198
211
|
]}
|
|
199
212
|
>
|
|
@@ -77,6 +77,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
77
77
|
flex: 1,
|
|
78
78
|
fontFamily: t.fontFamily,
|
|
79
79
|
fontSize: t.typography.label.fontSize,
|
|
80
|
+
letterSpacing: t.typography.label.letterSpacing,
|
|
80
81
|
lineHeight: t.typography.label.lineHeight,
|
|
81
82
|
fontWeight: '500',
|
|
82
83
|
color: t.colors.foreground,
|
|
@@ -95,6 +96,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
95
96
|
textAlign: 'center',
|
|
96
97
|
fontFamily: t.fontFamily,
|
|
97
98
|
fontSize: t.typography.body.fontSize,
|
|
99
|
+
letterSpacing: t.typography.body.letterSpacing,
|
|
98
100
|
lineHeight: t.typography.body.lineHeight,
|
|
99
101
|
color: t.colors.foreground,
|
|
100
102
|
},
|
|
@@ -102,6 +104,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
102
104
|
subhead: {
|
|
103
105
|
fontFamily: t.fontFamily,
|
|
104
106
|
fontSize: t.typography.label.fontSize,
|
|
107
|
+
letterSpacing: t.typography.label.letterSpacing,
|
|
105
108
|
lineHeight: t.typography.label.lineHeight,
|
|
106
109
|
fontWeight: '500',
|
|
107
110
|
color: t.colors.mutedForeground,
|
|
@@ -133,15 +136,15 @@ const useStyles = makeStyles((t) => ({
|
|
|
133
136
|
number: {
|
|
134
137
|
fontFamily: t.fontFamily,
|
|
135
138
|
fontSize: t.typography.body.fontSize,
|
|
139
|
+
letterSpacing: t.typography.body.letterSpacing,
|
|
136
140
|
lineHeight: t.typography.body.lineHeight,
|
|
137
|
-
fontVariant: ['tabular-nums'],
|
|
138
141
|
},
|
|
139
142
|
strong: { fontWeight: '600' },
|
|
140
143
|
label: {
|
|
141
144
|
fontFamily: t.fontFamily,
|
|
142
145
|
fontSize: t.typography.caption.fontSize,
|
|
146
|
+
letterSpacing: t.typography.caption.letterSpacing,
|
|
143
147
|
lineHeight: t.typography.caption.lineHeight,
|
|
144
|
-
fontVariant: ['tabular-nums'],
|
|
145
148
|
},
|
|
146
149
|
dot: {
|
|
147
150
|
width: 4,
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
} from '../../internal/pressable-base';
|
|
13
13
|
import { useTheme } from '../../theme/theme-provider';
|
|
14
14
|
import { makeStyles } from '../../utils/styles';
|
|
15
|
+
import { CreditCost } from '../credit/credit';
|
|
15
16
|
|
|
16
17
|
export type ChipSize = 'sm' | 'md' | 'lg';
|
|
17
18
|
|
|
@@ -21,6 +22,7 @@ export type ChipProps = Omit<PressableBaseProps, 'children' | 'touchHeight'> & {
|
|
|
21
22
|
size?: ChipSize;
|
|
22
23
|
leftIcon?: IconSlot;
|
|
23
24
|
count?: number;
|
|
25
|
+
cost?: number | null;
|
|
24
26
|
children: string;
|
|
25
27
|
};
|
|
26
28
|
|
|
@@ -55,11 +57,12 @@ const useStyles = makeStyles((t) => ({
|
|
|
55
57
|
label: {
|
|
56
58
|
fontFamily: t.fontFamily,
|
|
57
59
|
fontSize: t.typography.label.fontSize,
|
|
60
|
+
letterSpacing: t.typography.label.letterSpacing,
|
|
58
61
|
lineHeight: t.typography.label.lineHeight,
|
|
59
62
|
fontWeight: '500',
|
|
60
63
|
},
|
|
61
64
|
strong: { fontWeight: '600' },
|
|
62
|
-
count: {
|
|
65
|
+
count: { fontWeight: '500' },
|
|
63
66
|
}));
|
|
64
67
|
|
|
65
68
|
export function Chip({
|
|
@@ -68,6 +71,7 @@ export function Chip({
|
|
|
68
71
|
size = 'sm',
|
|
69
72
|
leftIcon,
|
|
70
73
|
count,
|
|
74
|
+
cost,
|
|
71
75
|
children,
|
|
72
76
|
style,
|
|
73
77
|
accessibilityState,
|
|
@@ -101,7 +105,11 @@ export function Chip({
|
|
|
101
105
|
{...rest}
|
|
102
106
|
accessibilityLabel={
|
|
103
107
|
accessibilityLabel ??
|
|
104
|
-
(count
|
|
108
|
+
(count !== undefined
|
|
109
|
+
? `${children}, ${count}건`
|
|
110
|
+
: cost != null
|
|
111
|
+
? `${children}, 크레딧 ${cost}`
|
|
112
|
+
: undefined)
|
|
105
113
|
}
|
|
106
114
|
accessibilityState={accessibilityState ?? { selected }}
|
|
107
115
|
touchHeight={HEIGHT[size]}
|
|
@@ -140,6 +148,7 @@ export function Chip({
|
|
|
140
148
|
{count}
|
|
141
149
|
</Animated.Text>
|
|
142
150
|
)}
|
|
151
|
+
{cost == null ? null : <CreditCost value={cost} />}
|
|
143
152
|
</PressableBase>
|
|
144
153
|
);
|
|
145
154
|
}
|
|
@@ -8,6 +8,7 @@ export type ChipGroupItem<T extends string> = {
|
|
|
8
8
|
value: T;
|
|
9
9
|
label: string;
|
|
10
10
|
count?: number;
|
|
11
|
+
cost?: number | null;
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
};
|
|
13
14
|
|
|
@@ -78,6 +79,7 @@ export function ChipGroup<T extends string>(props: ChipGroupProps<T>) {
|
|
|
78
79
|
check={check}
|
|
79
80
|
size={size}
|
|
80
81
|
count={item.count}
|
|
82
|
+
cost={item.cost}
|
|
81
83
|
disabled={item.disabled || (full && !selected)}
|
|
82
84
|
accessibilityRole={props.multiple ? 'checkbox' : 'radio'}
|
|
83
85
|
accessibilityState={{ checked: selected }}
|
|
@@ -95,7 +95,11 @@ const useStyles = makeStyles((t) => ({
|
|
|
95
95
|
backgroundColor: t.colors.muted,
|
|
96
96
|
},
|
|
97
97
|
image: { width: '100%', height: '100%' },
|
|
98
|
-
glyph: {
|
|
98
|
+
glyph: {
|
|
99
|
+
fontFamily: t.fontFamily,
|
|
100
|
+
fontSize: GLYPH,
|
|
101
|
+
lineHeight: GLYPH * 1.25,
|
|
102
|
+
},
|
|
99
103
|
badge: {
|
|
100
104
|
position: 'absolute',
|
|
101
105
|
right: -BADGE_SHIFT,
|
|
@@ -15,15 +15,20 @@ export type CreditPillProps = {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
const INVERSE = 0.78;
|
|
18
|
+
const GROUP = /\B(?=(\d{3})+(?!\d))/g;
|
|
19
|
+
|
|
20
|
+
export function creditText(value: number): string {
|
|
21
|
+
return String(value).replace(GROUP, ',');
|
|
22
|
+
}
|
|
18
23
|
|
|
19
24
|
const useStyles = makeStyles((t) => ({
|
|
20
25
|
cost: { flexDirection: 'row', alignItems: 'center', gap: t.space[1] },
|
|
21
26
|
value: {
|
|
22
27
|
fontFamily: t.fontFamily,
|
|
23
28
|
fontSize: t.typography.eyebrow.fontSize,
|
|
29
|
+
letterSpacing: t.typography.eyebrow.letterSpacing,
|
|
24
30
|
lineHeight: t.typography.eyebrow.lineHeight,
|
|
25
|
-
fontWeight: '
|
|
26
|
-
fontVariant: ['tabular-nums'],
|
|
31
|
+
fontWeight: '500',
|
|
27
32
|
},
|
|
28
33
|
pill: {
|
|
29
34
|
flexDirection: 'row',
|
|
@@ -53,7 +58,7 @@ export function CreditCost({ value, tone = 'muted' }: CreditCostProps) {
|
|
|
53
58
|
maxFontSizeMultiplier={t.maxFontScale}
|
|
54
59
|
style={[s.value, { color }]}
|
|
55
60
|
>
|
|
56
|
-
{
|
|
61
|
+
{creditText(value)}
|
|
57
62
|
</RNText>
|
|
58
63
|
</View>
|
|
59
64
|
);
|
|
@@ -64,7 +69,9 @@ export function CreditPill({ balance, accessibilityLabel }: CreditPillProps) {
|
|
|
64
69
|
return (
|
|
65
70
|
<View
|
|
66
71
|
accessible
|
|
67
|
-
accessibilityLabel={
|
|
72
|
+
accessibilityLabel={
|
|
73
|
+
accessibilityLabel ?? `크레딧 잔액 ${creditText(balance)}`
|
|
74
|
+
}
|
|
68
75
|
style={s.pill}
|
|
69
76
|
>
|
|
70
77
|
<CreditCost value={balance} />
|
|
@@ -36,6 +36,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
36
36
|
title: {
|
|
37
37
|
fontFamily: t.fontFamily,
|
|
38
38
|
fontSize: t.typography.title.fontSize,
|
|
39
|
+
letterSpacing: t.typography.title.letterSpacing,
|
|
39
40
|
lineHeight: t.typography.title.lineHeight,
|
|
40
41
|
fontWeight: '600',
|
|
41
42
|
textAlign: 'center',
|
|
@@ -45,6 +46,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
45
46
|
description: {
|
|
46
47
|
fontFamily: t.fontFamily,
|
|
47
48
|
fontSize: t.typography.body.fontSize,
|
|
49
|
+
letterSpacing: t.typography.body.letterSpacing,
|
|
48
50
|
lineHeight: t.typography.body.lineHeight,
|
|
49
51
|
textAlign: 'center',
|
|
50
52
|
color: t.colors.mutedForeground,
|
|
@@ -17,6 +17,8 @@ export type SectionAnchor = {
|
|
|
17
17
|
y: number;
|
|
18
18
|
width: number;
|
|
19
19
|
height: number;
|
|
20
|
+
fill?: boolean;
|
|
21
|
+
pitch?: number;
|
|
20
22
|
};
|
|
21
23
|
|
|
22
24
|
export type DropdownMenuItem = {
|
|
@@ -80,15 +82,24 @@ export function DropdownMenu({
|
|
|
80
82
|
const screen = useWindowDimensions();
|
|
81
83
|
if (!open || !anchor) return null;
|
|
82
84
|
const height = menuHeight(t, items);
|
|
83
|
-
const
|
|
85
|
+
const pitch = anchor.pitch ?? 0;
|
|
86
|
+
const lean =
|
|
87
|
+
pitch > 0
|
|
88
|
+
? (Math.max(1, Math.round(height / pitch)) * pitch - height) / 2
|
|
89
|
+
: 0;
|
|
90
|
+
const below = anchor.y + anchor.height + lean;
|
|
91
|
+
const above = anchor.y - lean - height;
|
|
84
92
|
const top =
|
|
85
93
|
below + height > screen.height - t.space[4]
|
|
86
|
-
? Math.max(t.space[4],
|
|
94
|
+
? Math.max(t.space[4], above)
|
|
87
95
|
: below;
|
|
88
|
-
const right =
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
96
|
+
const right = anchor.fill
|
|
97
|
+
? screen.width - (anchor.x + anchor.width)
|
|
98
|
+
: Math.max(
|
|
99
|
+
t.space[2],
|
|
100
|
+
screen.width - (anchor.x + anchor.width) + t.space[2]
|
|
101
|
+
);
|
|
102
|
+
const width = anchor.fill ? anchor.width : WIDTH;
|
|
92
103
|
const close = () => onOpenChange(false);
|
|
93
104
|
return (
|
|
94
105
|
<Modal
|
|
@@ -105,7 +116,7 @@ export function DropdownMenu({
|
|
|
105
116
|
accessibilityRole="button"
|
|
106
117
|
accessibilityLabel={closeLabel}
|
|
107
118
|
/>
|
|
108
|
-
<View accessibilityRole="menu" style={[s.menu, { top, right }]}>
|
|
119
|
+
<View accessibilityRole="menu" style={[s.menu, { top, right, width }]}>
|
|
109
120
|
{items.map((item, i) => {
|
|
110
121
|
const color =
|
|
111
122
|
item.tone === 'danger' ? t.colors.danger : t.colors.title;
|
|
@@ -104,11 +104,13 @@ const useStyles = makeStyles((t) => ({
|
|
|
104
104
|
paddingVertical: 0,
|
|
105
105
|
fontFamily: t.fontFamily,
|
|
106
106
|
fontSize: t.typography.bodyLg.fontSize,
|
|
107
|
+
letterSpacing: t.typography.bodyLg.letterSpacing,
|
|
107
108
|
color: t.colors.foreground,
|
|
108
109
|
},
|
|
109
110
|
error: {
|
|
110
111
|
fontFamily: t.fontFamily,
|
|
111
112
|
fontSize: t.typography.label.fontSize,
|
|
113
|
+
letterSpacing: t.typography.label.letterSpacing,
|
|
112
114
|
lineHeight: t.typography.label.lineHeight,
|
|
113
115
|
paddingLeft: t.space[1],
|
|
114
116
|
color: t.colors.danger,
|
|
@@ -124,6 +126,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
124
126
|
hint: {
|
|
125
127
|
fontFamily: t.fontFamily,
|
|
126
128
|
fontSize: t.typography.label.fontSize,
|
|
129
|
+
letterSpacing: t.typography.label.letterSpacing,
|
|
127
130
|
lineHeight: t.typography.label.lineHeight,
|
|
128
131
|
paddingLeft: t.space[1],
|
|
129
132
|
color: t.colors.mutedForeground,
|
|
@@ -131,6 +134,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
131
134
|
warning: {
|
|
132
135
|
fontFamily: t.fontFamily,
|
|
133
136
|
fontSize: t.typography.label.fontSize,
|
|
137
|
+
letterSpacing: t.typography.label.letterSpacing,
|
|
134
138
|
lineHeight: t.typography.label.lineHeight,
|
|
135
139
|
paddingLeft: t.space[1],
|
|
136
140
|
color: t.colors.foreground,
|
|
@@ -51,11 +51,12 @@ const useStyles = makeStyles((t) => ({
|
|
|
51
51
|
label: {
|
|
52
52
|
fontFamily: t.fontFamily,
|
|
53
53
|
fontSize: t.typography.label.fontSize,
|
|
54
|
+
letterSpacing: t.typography.label.letterSpacing,
|
|
54
55
|
lineHeight: t.typography.label.lineHeight,
|
|
55
56
|
fontWeight: '500',
|
|
56
57
|
color: t.colors.faint,
|
|
57
58
|
},
|
|
58
|
-
strong: { fontWeight: '
|
|
59
|
+
strong: { fontWeight: '600' },
|
|
59
60
|
line: {
|
|
60
61
|
position: 'absolute',
|
|
61
62
|
left: 0,
|
|
@@ -14,6 +14,7 @@ import { makeStyles } from '../../utils/styles';
|
|
|
14
14
|
import { Photo } from '../photo/photo';
|
|
15
15
|
import { FlushRowContext } from '../../internal/flush-row';
|
|
16
16
|
import { haptic } from '../../internal/haptics';
|
|
17
|
+
import { Figures, Won, isFigureText, type FiguresScope } from '../text/figures';
|
|
17
18
|
|
|
18
19
|
export type ListRowTone = 'muted' | 'warning' | 'danger';
|
|
19
20
|
|
|
@@ -36,6 +37,7 @@ export type ListRowProps = Omit<
|
|
|
36
37
|
strong?: boolean;
|
|
37
38
|
titleSize?: 'md' | 'lg';
|
|
38
39
|
titleLines?: number;
|
|
40
|
+
titleFigures?: FiguresScope;
|
|
39
41
|
selection?: 'check' | 'radio';
|
|
40
42
|
selected?: boolean;
|
|
41
43
|
};
|
|
@@ -65,7 +67,6 @@ const useStyles = makeStyles((t) => ({
|
|
|
65
67
|
...t.typography.bodyLg,
|
|
66
68
|
fontFamily: t.fontFamily,
|
|
67
69
|
color: t.colors.foreground,
|
|
68
|
-
fontVariant: ['tabular-nums'],
|
|
69
70
|
},
|
|
70
71
|
meta: {
|
|
71
72
|
...t.typography.label,
|
|
@@ -107,6 +108,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
107
108
|
checkOn: { borderColor: t.colors.primary, backgroundColor: t.colors.primary },
|
|
108
109
|
radioOn: { borderWidth: 6, borderColor: t.colors.primary },
|
|
109
110
|
strong: { color: t.colors.title, fontWeight: '600' },
|
|
111
|
+
strongFigure: { fontWeight: '500' },
|
|
110
112
|
titleLg: {
|
|
111
113
|
...t.typography.bodyLg,
|
|
112
114
|
color: t.colors.title,
|
|
@@ -130,6 +132,7 @@ export function ListRow({
|
|
|
130
132
|
strong = false,
|
|
131
133
|
titleSize = 'md',
|
|
132
134
|
titleLines = 1,
|
|
135
|
+
titleFigures,
|
|
133
136
|
selection,
|
|
134
137
|
selected = false,
|
|
135
138
|
onPress,
|
|
@@ -194,9 +197,31 @@ export function ListRow({
|
|
|
194
197
|
<Text
|
|
195
198
|
numberOfLines={titleLines}
|
|
196
199
|
maxFontSizeMultiplier={t.maxFontScale}
|
|
197
|
-
style={[
|
|
200
|
+
style={[
|
|
201
|
+
s.title,
|
|
202
|
+
strong && s.strong,
|
|
203
|
+
titleSize === 'lg' && s.titleLg,
|
|
204
|
+
(strong || titleSize === 'lg') &&
|
|
205
|
+
isFigureText(title) &&
|
|
206
|
+
s.strongFigure,
|
|
207
|
+
]}
|
|
198
208
|
>
|
|
199
|
-
{
|
|
209
|
+
{titleFigures ? (
|
|
210
|
+
<Figures
|
|
211
|
+
size={t.typography.bodyLg.fontSize}
|
|
212
|
+
tracking={t.typography.bodyLg.letterSpacing}
|
|
213
|
+
scope={titleFigures}
|
|
214
|
+
>
|
|
215
|
+
{title}
|
|
216
|
+
</Figures>
|
|
217
|
+
) : (
|
|
218
|
+
<Won
|
|
219
|
+
size={t.typography.bodyLg.fontSize}
|
|
220
|
+
tracking={t.typography.bodyLg.letterSpacing}
|
|
221
|
+
>
|
|
222
|
+
{title}
|
|
223
|
+
</Won>
|
|
224
|
+
)}
|
|
200
225
|
</Text>
|
|
201
226
|
{description ? (
|
|
202
227
|
<Text
|
|
@@ -218,9 +243,19 @@ export function ListRow({
|
|
|
218
243
|
{value ? (
|
|
219
244
|
<Text
|
|
220
245
|
maxFontSizeMultiplier={t.maxFontScale}
|
|
221
|
-
style={[
|
|
246
|
+
style={[
|
|
247
|
+
s.value,
|
|
248
|
+
strong && s.strong,
|
|
249
|
+
strong && s.money,
|
|
250
|
+
strong && isFigureText(value) && s.strongFigure,
|
|
251
|
+
]}
|
|
222
252
|
>
|
|
223
|
-
|
|
253
|
+
<Won
|
|
254
|
+
size={t.typography.bodyLg.fontSize}
|
|
255
|
+
tracking={t.typography.bodyLg.letterSpacing}
|
|
256
|
+
>
|
|
257
|
+
{value}
|
|
258
|
+
</Won>
|
|
224
259
|
</Text>
|
|
225
260
|
) : null}
|
|
226
261
|
{trailing ? renderIcon(trailing, icon) : null}
|
|
@@ -33,6 +33,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
33
33
|
},
|
|
34
34
|
title: {
|
|
35
35
|
fontSize: t.typography.screenTitle.fontSize,
|
|
36
|
+
fontFamily: t.fontFamily,
|
|
36
37
|
lineHeight: t.typography.screenTitle.lineHeight,
|
|
37
38
|
fontWeight: t.typography.screenTitle.fontWeight,
|
|
38
39
|
letterSpacing: t.typography.screenTitle.letterSpacing,
|
|
@@ -39,6 +39,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
39
39
|
label: {
|
|
40
40
|
fontFamily: t.fontFamily,
|
|
41
41
|
fontSize: t.typography.caption.fontSize,
|
|
42
|
+
letterSpacing: t.typography.caption.letterSpacing,
|
|
42
43
|
lineHeight: t.typography.caption.lineHeight,
|
|
43
44
|
fontWeight: '500',
|
|
44
45
|
color: t.colors.mutedForeground,
|