@ezpg/app-ui 0.10.0 → 0.12.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 +19 -0
- package/lib/module/adjust/dial-strip.js +2 -2
- package/lib/module/adjust/dial-strip.js.map +1 -1
- package/lib/module/adjust/font-controls.js +76 -0
- package/lib/module/adjust/font-controls.js.map +1 -0
- package/lib/module/adjust/index.js +1 -0
- package/lib/module/adjust/index.js.map +1 -1
- package/lib/module/blocks/action-grid/action-grid.js +71 -0
- package/lib/module/blocks/action-grid/action-grid.js.map +1 -0
- package/lib/module/blocks/action-grid/index.js +4 -0
- package/lib/module/blocks/action-grid/index.js.map +1 -0
- package/lib/module/blocks/bulk-ship-list/bulk-ship-list.js +75 -33
- package/lib/module/blocks/bulk-ship-list/bulk-ship-list.js.map +1 -1
- package/lib/module/blocks/code-input/code-input.js +103 -0
- package/lib/module/blocks/code-input/code-input.js.map +1 -0
- package/lib/module/blocks/code-input/index.js +4 -0
- package/lib/module/blocks/code-input/index.js.map +1 -0
- package/lib/module/blocks/color-swatch-picker/color-swatch-picker.js +27 -4
- package/lib/module/blocks/color-swatch-picker/color-swatch-picker.js.map +1 -1
- package/lib/module/blocks/consent-list/consent-list.js +116 -0
- package/lib/module/blocks/consent-list/consent-list.js.map +1 -0
- package/lib/module/blocks/consent-list/index.js +4 -0
- package/lib/module/blocks/consent-list/index.js.map +1 -0
- package/lib/module/blocks/copy-variant-picker/copy-variant-picker.js +1 -1
- package/lib/module/blocks/copy-variant-picker/copy-variant-picker.js.map +1 -1
- package/lib/module/blocks/image-grid/image-grid.js +5 -44
- package/lib/module/blocks/image-grid/image-grid.js.map +1 -1
- package/lib/module/blocks/inbox-row/inbox-row.js +120 -0
- package/lib/module/blocks/inbox-row/inbox-row.js.map +1 -0
- package/lib/module/blocks/inbox-row/index.js +4 -0
- package/lib/module/blocks/inbox-row/index.js.map +1 -0
- package/lib/module/blocks/index.js +11 -0
- package/lib/module/blocks/index.js.map +1 -1
- package/lib/module/blocks/internal/card.js +1 -1
- package/lib/module/blocks/internal/card.js.map +1 -1
- package/lib/module/blocks/invite-card/index.js +4 -0
- package/lib/module/blocks/invite-card/index.js.map +1 -0
- package/lib/module/blocks/invite-card/invite-card.js +156 -0
- package/lib/module/blocks/invite-card/invite-card.js.map +1 -0
- package/lib/module/blocks/oauth-buttons/index.js +1 -1
- package/lib/module/blocks/oauth-buttons/index.js.map +1 -1
- package/lib/module/blocks/oauth-buttons/logos.js +7 -0
- package/lib/module/blocks/oauth-buttons/logos.js.map +1 -0
- package/lib/module/blocks/oauth-buttons/oauth-buttons.js +84 -5
- package/lib/module/blocks/oauth-buttons/oauth-buttons.js.map +1 -1
- package/lib/module/blocks/option-editor/option-editor.js +1 -1
- package/lib/module/blocks/option-editor/option-editor.js.map +1 -1
- package/lib/module/blocks/product-list-empty/product-list-empty.js +1 -1
- package/lib/module/blocks/product-list-empty/product-list-empty.js.map +1 -1
- package/lib/module/blocks/product-row/product-row.js +1 -1
- package/lib/module/blocks/product-row/product-row.js.map +1 -1
- package/lib/module/blocks/product-tile/index.js +4 -0
- package/lib/module/blocks/product-tile/index.js.map +1 -0
- package/lib/module/blocks/product-tile/product-tile.js +60 -0
- package/lib/module/blocks/product-tile/product-tile.js.map +1 -0
- package/lib/module/blocks/quick-actions/index.js +4 -0
- package/lib/module/blocks/quick-actions/index.js.map +1 -0
- package/lib/module/blocks/quick-actions/quick-actions.js +52 -0
- package/lib/module/blocks/quick-actions/quick-actions.js.map +1 -0
- package/lib/module/blocks/selection-bar/selection-bar.js +1 -1
- package/lib/module/blocks/selection-bar/selection-bar.js.map +1 -1
- package/lib/module/blocks/setup-guide/index.js +4 -0
- package/lib/module/blocks/setup-guide/index.js.map +1 -0
- package/lib/module/blocks/setup-guide/setup-guide.js +102 -0
- package/lib/module/blocks/setup-guide/setup-guide.js.map +1 -0
- package/lib/module/blocks/site-preview-frame/site-preview-frame.js +1 -1
- package/lib/module/blocks/site-preview-frame/site-preview-frame.js.map +1 -1
- package/lib/module/blocks/site-summary/index.js +4 -0
- package/lib/module/blocks/site-summary/index.js.map +1 -0
- package/lib/module/blocks/site-summary/site-summary.js +81 -0
- package/lib/module/blocks/site-summary/site-summary.js.map +1 -0
- package/lib/module/blocks/stage-bar/index.js +4 -0
- package/lib/module/blocks/stage-bar/index.js.map +1 -0
- package/lib/module/blocks/stage-bar/stage-bar.js +88 -0
- package/lib/module/blocks/stage-bar/stage-bar.js.map +1 -0
- package/lib/module/blocks/stat-card/stat-card.js +18 -4
- package/lib/module/blocks/stat-card/stat-card.js.map +1 -1
- package/lib/module/blocks/step-screen/step-screen.js +54 -27
- package/lib/module/blocks/step-screen/step-screen.js.map +1 -1
- package/lib/module/blocks/store-sheet/index.js +4 -0
- package/lib/module/blocks/store-sheet/index.js.map +1 -0
- package/lib/module/blocks/store-sheet/store-sheet.js +90 -0
- package/lib/module/blocks/store-sheet/store-sheet.js.map +1 -0
- package/lib/module/blocks/task-tiles/index.js +4 -0
- package/lib/module/blocks/task-tiles/index.js.map +1 -0
- package/lib/module/blocks/task-tiles/task-tiles.js +68 -0
- package/lib/module/blocks/task-tiles/task-tiles.js.map +1 -0
- package/lib/module/charts/index.js +1 -0
- package/lib/module/charts/index.js.map +1 -1
- package/lib/module/charts/mini-bars.js +75 -0
- package/lib/module/charts/mini-bars.js.map +1 -0
- package/lib/module/components/avatar/avatar.js +100 -0
- package/lib/module/components/avatar/avatar.js.map +1 -0
- package/lib/module/components/avatar/index.js +4 -0
- package/lib/module/components/avatar/index.js.map +1 -0
- package/lib/module/components/button/button.js +1 -1
- package/lib/module/components/button/button.js.map +1 -1
- package/lib/module/components/calendar/calendar.js +200 -103
- package/lib/module/components/calendar/calendar.js.map +1 -1
- package/lib/module/components/check-list/check-list.js +54 -0
- package/lib/module/components/check-list/check-list.js.map +1 -0
- package/lib/module/components/check-list/index.js +4 -0
- package/lib/module/components/check-list/index.js.map +1 -0
- package/lib/module/components/checkbox/checkbox.js +1 -1
- package/lib/module/components/checkbox/checkbox.js.map +1 -1
- package/lib/module/components/chip/chip.js +33 -6
- package/lib/module/components/chip/chip.js.map +1 -1
- package/lib/module/components/chip/index.js.map +1 -1
- package/lib/module/components/chip-group/chip-group.js +42 -17
- package/lib/module/components/chip-group/chip-group.js.map +1 -1
- package/lib/module/components/circle-grid/circle-grid.js +141 -0
- package/lib/module/components/circle-grid/circle-grid.js.map +1 -0
- package/lib/module/components/circle-grid/index.js +4 -0
- package/lib/module/components/circle-grid/index.js.map +1 -0
- package/lib/module/components/dialog/dialog.js +1 -1
- package/lib/module/components/dialog/dialog.js.map +1 -1
- package/lib/module/components/empty-state/empty-state.js +15 -0
- package/lib/module/components/empty-state/empty-state.js.map +1 -1
- package/lib/module/components/field/field.js +11 -6
- package/lib/module/components/field/field.js.map +1 -1
- package/lib/module/components/field-group/field-group.js +39 -0
- package/lib/module/components/field-group/field-group.js.map +1 -0
- package/lib/module/components/field-group/index.js +4 -0
- package/lib/module/components/field-group/index.js.map +1 -0
- package/lib/module/components/list-row/list-row.js +56 -7
- package/lib/module/components/list-row/list-row.js.map +1 -1
- package/lib/module/components/page-header/index.js +5 -0
- package/lib/module/components/page-header/index.js.map +1 -0
- package/lib/module/components/page-header/page-header.js +110 -0
- package/lib/module/components/page-header/page-header.js.map +1 -0
- package/lib/module/components/page-header/store-header.js +134 -0
- package/lib/module/components/page-header/store-header.js.map +1 -0
- package/lib/module/components/photo/index.js +1 -0
- package/lib/module/components/photo/index.js.map +1 -1
- package/lib/module/components/photo/photo.js +15 -3
- package/lib/module/components/photo/photo.js.map +1 -1
- package/lib/module/components/progress-circle/index.js +4 -0
- package/lib/module/components/progress-circle/index.js.map +1 -0
- package/lib/module/components/progress-circle/progress-circle.js +49 -0
- package/lib/module/components/progress-circle/progress-circle.js.map +1 -0
- package/lib/module/components/result-mark/index.js +4 -0
- package/lib/module/components/result-mark/index.js.map +1 -0
- package/lib/module/components/result-mark/result-mark.js +42 -0
- package/lib/module/components/result-mark/result-mark.js.map +1 -0
- package/lib/module/components/segmented-tabs/segmented-tabs.js +1 -1
- package/lib/module/components/segmented-tabs/segmented-tabs.js.map +1 -1
- package/lib/module/components/sheet/index.js +1 -1
- package/lib/module/components/sheet/index.js.map +1 -1
- package/lib/module/components/sheet/sheet.js +28 -2
- package/lib/module/components/sheet/sheet.js.map +1 -1
- package/lib/module/components/status-steps/index.js +4 -0
- package/lib/module/components/status-steps/index.js.map +1 -0
- package/lib/module/components/status-steps/status-steps.js +96 -0
- package/lib/module/components/status-steps/status-steps.js.map +1 -0
- package/lib/module/components/step-slider/index.js +4 -0
- package/lib/module/components/step-slider/index.js.map +1 -0
- package/lib/module/components/step-slider/step-slider.js +167 -0
- package/lib/module/components/step-slider/step-slider.js.map +1 -0
- package/lib/module/components/text/text.js +3 -0
- package/lib/module/components/text/text.js.map +1 -1
- package/lib/module/components/text-links/index.js +4 -0
- package/lib/module/components/text-links/index.js.map +1 -0
- package/lib/module/components/text-links/text-links.js +48 -0
- package/lib/module/components/text-links/text-links.js.map +1 -0
- package/lib/module/index.js +12 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/bell.js +4 -0
- package/lib/module/internal/bell.js.map +1 -0
- package/lib/module/internal/glyphs.js +47 -1
- package/lib/module/internal/glyphs.js.map +1 -1
- package/lib/module/internal/line-icons.js +21 -0
- package/lib/module/internal/line-icons.js.map +1 -0
- package/lib/module/internal/tab-icons.js +10 -0
- package/lib/module/internal/tab-icons.js.map +1 -0
- package/lib/module/templates/calendar-template.js +42 -0
- package/lib/module/templates/calendar-template.js.map +1 -0
- package/lib/module/templates/editor-template.js +2 -2
- package/lib/module/templates/editor-template.js.map +1 -1
- package/lib/module/templates/index.js +2 -0
- package/lib/module/templates/index.js.map +1 -1
- package/lib/module/templates/intro-template.js +1 -1
- package/lib/module/templates/list-template.js +50 -5
- package/lib/module/templates/list-template.js.map +1 -1
- package/lib/module/templates/notice-template.js +138 -0
- package/lib/module/templates/notice-template.js.map +1 -0
- package/lib/module/templates/parts.js +42 -1
- package/lib/module/templates/parts.js.map +1 -1
- package/lib/module/templates/result-template.js +17 -3
- package/lib/module/templates/result-template.js.map +1 -1
- package/lib/module/templates/scroll-templates.js +50 -1
- package/lib/module/templates/scroll-templates.js.map +1 -1
- package/lib/module/templates/system-template.js +18 -2
- package/lib/module/templates/system-template.js.map +1 -1
- package/lib/module/theme/base.js +20 -15
- package/lib/module/theme/base.js.map +1 -1
- package/lib/typescript/src/adjust/dial-strip.d.ts +1 -0
- package/lib/typescript/src/adjust/dial-strip.d.ts.map +1 -1
- package/lib/typescript/src/adjust/font-controls.d.ts +21 -0
- package/lib/typescript/src/adjust/font-controls.d.ts.map +1 -0
- package/lib/typescript/src/adjust/index.d.ts +1 -0
- package/lib/typescript/src/adjust/index.d.ts.map +1 -1
- package/lib/typescript/src/blocks/action-grid/action-grid.d.ts +15 -0
- package/lib/typescript/src/blocks/action-grid/action-grid.d.ts.map +1 -0
- package/lib/typescript/src/blocks/action-grid/index.d.ts +2 -0
- package/lib/typescript/src/blocks/action-grid/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/bulk-ship-list/bulk-ship-list.d.ts +3 -1
- package/lib/typescript/src/blocks/bulk-ship-list/bulk-ship-list.d.ts.map +1 -1
- package/lib/typescript/src/blocks/code-input/code-input.d.ts +14 -0
- package/lib/typescript/src/blocks/code-input/code-input.d.ts.map +1 -0
- package/lib/typescript/src/blocks/code-input/index.d.ts +2 -0
- package/lib/typescript/src/blocks/code-input/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/color-swatch-picker/color-swatch-picker.d.ts +1 -1
- package/lib/typescript/src/blocks/color-swatch-picker/color-swatch-picker.d.ts.map +1 -1
- package/lib/typescript/src/blocks/consent-list/consent-list.d.ts +18 -0
- package/lib/typescript/src/blocks/consent-list/consent-list.d.ts.map +1 -0
- package/lib/typescript/src/blocks/consent-list/index.d.ts +2 -0
- package/lib/typescript/src/blocks/consent-list/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/image-grid/image-grid.d.ts.map +1 -1
- package/lib/typescript/src/blocks/inbox-row/inbox-row.d.ts +15 -0
- package/lib/typescript/src/blocks/inbox-row/inbox-row.d.ts.map +1 -0
- package/lib/typescript/src/blocks/inbox-row/index.d.ts +2 -0
- package/lib/typescript/src/blocks/inbox-row/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/index.d.ts +11 -0
- package/lib/typescript/src/blocks/index.d.ts.map +1 -1
- package/lib/typescript/src/blocks/invite-card/index.d.ts +2 -0
- package/lib/typescript/src/blocks/invite-card/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/invite-card/invite-card.d.ts +15 -0
- package/lib/typescript/src/blocks/invite-card/invite-card.d.ts.map +1 -0
- package/lib/typescript/src/blocks/oauth-buttons/index.d.ts +1 -1
- package/lib/typescript/src/blocks/oauth-buttons/index.d.ts.map +1 -1
- package/lib/typescript/src/blocks/oauth-buttons/logos.d.ts +5 -0
- package/lib/typescript/src/blocks/oauth-buttons/logos.d.ts.map +1 -0
- package/lib/typescript/src/blocks/oauth-buttons/oauth-buttons.d.ts +3 -0
- package/lib/typescript/src/blocks/oauth-buttons/oauth-buttons.d.ts.map +1 -1
- package/lib/typescript/src/blocks/product-tile/index.d.ts +2 -0
- package/lib/typescript/src/blocks/product-tile/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/product-tile/product-tile.d.ts +12 -0
- package/lib/typescript/src/blocks/product-tile/product-tile.d.ts.map +1 -0
- package/lib/typescript/src/blocks/quick-actions/index.d.ts +2 -0
- package/lib/typescript/src/blocks/quick-actions/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/quick-actions/quick-actions.d.ts +14 -0
- package/lib/typescript/src/blocks/quick-actions/quick-actions.d.ts.map +1 -0
- package/lib/typescript/src/blocks/setup-guide/index.d.ts +2 -0
- package/lib/typescript/src/blocks/setup-guide/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/setup-guide/setup-guide.d.ts +14 -0
- package/lib/typescript/src/blocks/setup-guide/setup-guide.d.ts.map +1 -0
- package/lib/typescript/src/blocks/site-summary/index.d.ts +2 -0
- package/lib/typescript/src/blocks/site-summary/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/site-summary/site-summary.d.ts +18 -0
- package/lib/typescript/src/blocks/site-summary/site-summary.d.ts.map +1 -0
- package/lib/typescript/src/blocks/stage-bar/index.d.ts +2 -0
- package/lib/typescript/src/blocks/stage-bar/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/stage-bar/stage-bar.d.ts +15 -0
- package/lib/typescript/src/blocks/stage-bar/stage-bar.d.ts.map +1 -0
- package/lib/typescript/src/blocks/stat-card/stat-card.d.ts +2 -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 +5 -2
- package/lib/typescript/src/blocks/step-screen/step-screen.d.ts.map +1 -1
- package/lib/typescript/src/blocks/store-sheet/index.d.ts +2 -0
- package/lib/typescript/src/blocks/store-sheet/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/store-sheet/store-sheet.d.ts +16 -0
- package/lib/typescript/src/blocks/store-sheet/store-sheet.d.ts.map +1 -0
- package/lib/typescript/src/blocks/task-tiles/index.d.ts +2 -0
- package/lib/typescript/src/blocks/task-tiles/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/task-tiles/task-tiles.d.ts +16 -0
- package/lib/typescript/src/blocks/task-tiles/task-tiles.d.ts.map +1 -0
- package/lib/typescript/src/charts/index.d.ts +1 -0
- package/lib/typescript/src/charts/index.d.ts.map +1 -1
- package/lib/typescript/src/charts/mini-bars.d.ts +11 -0
- package/lib/typescript/src/charts/mini-bars.d.ts.map +1 -0
- package/lib/typescript/src/components/avatar/avatar.d.ts +13 -0
- package/lib/typescript/src/components/avatar/avatar.d.ts.map +1 -0
- package/lib/typescript/src/components/avatar/index.d.ts +2 -0
- package/lib/typescript/src/components/avatar/index.d.ts.map +1 -0
- package/lib/typescript/src/components/calendar/calendar.d.ts +4 -1
- package/lib/typescript/src/components/calendar/calendar.d.ts.map +1 -1
- package/lib/typescript/src/components/check-list/check-list.d.ts +5 -0
- package/lib/typescript/src/components/check-list/check-list.d.ts.map +1 -0
- package/lib/typescript/src/components/check-list/index.d.ts +2 -0
- package/lib/typescript/src/components/check-list/index.d.ts.map +1 -0
- package/lib/typescript/src/components/chip/chip.d.ts +5 -1
- package/lib/typescript/src/components/chip/chip.d.ts.map +1 -1
- package/lib/typescript/src/components/chip/index.d.ts +1 -1
- package/lib/typescript/src/components/chip/index.d.ts.map +1 -1
- package/lib/typescript/src/components/chip-group/chip-group.d.ts +4 -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 +17 -0
- package/lib/typescript/src/components/circle-grid/circle-grid.d.ts.map +1 -0
- package/lib/typescript/src/components/circle-grid/index.d.ts +2 -0
- package/lib/typescript/src/components/circle-grid/index.d.ts.map +1 -0
- package/lib/typescript/src/components/empty-state/empty-state.d.ts +6 -1
- package/lib/typescript/src/components/empty-state/empty-state.d.ts.map +1 -1
- package/lib/typescript/src/components/field/field.d.ts +2 -1
- package/lib/typescript/src/components/field/field.d.ts.map +1 -1
- package/lib/typescript/src/components/field-group/field-group.d.ts +10 -0
- package/lib/typescript/src/components/field-group/field-group.d.ts.map +1 -0
- package/lib/typescript/src/components/field-group/index.d.ts +2 -0
- package/lib/typescript/src/components/field-group/index.d.ts.map +1 -0
- package/lib/typescript/src/components/list-row/list-row.d.ts +6 -1
- package/lib/typescript/src/components/list-row/list-row.d.ts.map +1 -1
- package/lib/typescript/src/components/page-header/index.d.ts +3 -0
- package/lib/typescript/src/components/page-header/index.d.ts.map +1 -0
- package/lib/typescript/src/components/page-header/page-header.d.ts +23 -0
- package/lib/typescript/src/components/page-header/page-header.d.ts.map +1 -0
- package/lib/typescript/src/components/page-header/store-header.d.ts +17 -0
- package/lib/typescript/src/components/page-header/store-header.d.ts.map +1 -0
- package/lib/typescript/src/components/photo/index.d.ts +1 -0
- package/lib/typescript/src/components/photo/index.d.ts.map +1 -1
- package/lib/typescript/src/components/photo/photo.d.ts +2 -0
- package/lib/typescript/src/components/photo/photo.d.ts.map +1 -1
- package/lib/typescript/src/components/progress-circle/index.d.ts +2 -0
- package/lib/typescript/src/components/progress-circle/index.d.ts.map +1 -0
- package/lib/typescript/src/components/progress-circle/progress-circle.d.ts +8 -0
- package/lib/typescript/src/components/progress-circle/progress-circle.d.ts.map +1 -0
- package/lib/typescript/src/components/result-mark/index.d.ts +2 -0
- package/lib/typescript/src/components/result-mark/index.d.ts.map +1 -0
- package/lib/typescript/src/components/result-mark/result-mark.d.ts +7 -0
- package/lib/typescript/src/components/result-mark/result-mark.d.ts.map +1 -0
- package/lib/typescript/src/components/sheet/index.d.ts +1 -1
- package/lib/typescript/src/components/sheet/index.d.ts.map +1 -1
- package/lib/typescript/src/components/sheet/sheet.d.ts +9 -0
- package/lib/typescript/src/components/sheet/sheet.d.ts.map +1 -1
- package/lib/typescript/src/components/status-steps/index.d.ts +2 -0
- package/lib/typescript/src/components/status-steps/index.d.ts.map +1 -0
- package/lib/typescript/src/components/status-steps/status-steps.d.ts +8 -0
- package/lib/typescript/src/components/status-steps/status-steps.d.ts.map +1 -0
- package/lib/typescript/src/components/step-slider/index.d.ts +2 -0
- package/lib/typescript/src/components/step-slider/index.d.ts.map +1 -0
- package/lib/typescript/src/components/step-slider/step-slider.d.ts +13 -0
- package/lib/typescript/src/components/step-slider/step-slider.d.ts.map +1 -0
- package/lib/typescript/src/components/text/text.d.ts +1 -1
- package/lib/typescript/src/components/text/text.d.ts.map +1 -1
- package/lib/typescript/src/components/text-links/index.d.ts +2 -0
- package/lib/typescript/src/components/text-links/index.d.ts.map +1 -0
- package/lib/typescript/src/components/text-links/text-links.d.ts +9 -0
- package/lib/typescript/src/components/text-links/text-links.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +12 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/internal/bell.d.ts +2 -0
- package/lib/typescript/src/internal/bell.d.ts.map +1 -0
- package/lib/typescript/src/internal/glyphs.d.ts +26 -0
- package/lib/typescript/src/internal/glyphs.d.ts.map +1 -1
- package/lib/typescript/src/internal/line-icons.d.ts +19 -0
- package/lib/typescript/src/internal/line-icons.d.ts.map +1 -0
- package/lib/typescript/src/internal/tab-icons.d.ts +8 -0
- package/lib/typescript/src/internal/tab-icons.d.ts.map +1 -0
- package/lib/typescript/src/templates/calendar-template.d.ts +11 -0
- package/lib/typescript/src/templates/calendar-template.d.ts.map +1 -0
- package/lib/typescript/src/templates/index.d.ts +4 -0
- package/lib/typescript/src/templates/index.d.ts.map +1 -1
- package/lib/typescript/src/templates/list-template.d.ts +9 -1
- package/lib/typescript/src/templates/list-template.d.ts.map +1 -1
- package/lib/typescript/src/templates/notice-template.d.ts +23 -0
- package/lib/typescript/src/templates/notice-template.d.ts.map +1 -0
- package/lib/typescript/src/templates/parts.d.ts +3 -2
- package/lib/typescript/src/templates/parts.d.ts.map +1 -1
- package/lib/typescript/src/templates/result-template.d.ts +3 -1
- package/lib/typescript/src/templates/result-template.d.ts.map +1 -1
- package/lib/typescript/src/templates/scroll-templates.d.ts +4 -1
- package/lib/typescript/src/templates/scroll-templates.d.ts.map +1 -1
- package/lib/typescript/src/templates/system-template.d.ts +4 -1
- package/lib/typescript/src/templates/system-template.d.ts.map +1 -1
- package/lib/typescript/src/theme/base.d.ts +20 -15
- package/lib/typescript/src/theme/base.d.ts.map +1 -1
- package/lib/typescript/src/types/index.d.ts +2 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adjust/dial-strip.tsx +3 -2
- package/src/adjust/font-controls.tsx +86 -0
- package/src/adjust/index.ts +5 -0
- package/src/blocks/action-grid/action-grid.tsx +79 -0
- package/src/blocks/action-grid/index.ts +5 -0
- package/src/blocks/bulk-ship-list/bulk-ship-list.tsx +67 -24
- package/src/blocks/code-input/code-input.tsx +111 -0
- package/src/blocks/code-input/index.ts +1 -0
- package/src/blocks/color-swatch-picker/color-swatch-picker.tsx +25 -5
- package/src/blocks/consent-list/consent-list.tsx +129 -0
- package/src/blocks/consent-list/index.ts +5 -0
- package/src/blocks/copy-variant-picker/copy-variant-picker.tsx +1 -1
- package/src/blocks/image-grid/image-grid.tsx +3 -48
- package/src/blocks/inbox-row/inbox-row.tsx +114 -0
- package/src/blocks/inbox-row/index.ts +1 -0
- package/src/blocks/index.tsx +11 -0
- package/src/blocks/internal/card.tsx +1 -1
- package/src/blocks/invite-card/index.ts +1 -0
- package/src/blocks/invite-card/invite-card.tsx +151 -0
- package/src/blocks/oauth-buttons/index.ts +1 -0
- package/src/blocks/oauth-buttons/logos.ts +10 -0
- package/src/blocks/oauth-buttons/oauth-buttons.tsx +61 -3
- package/src/blocks/option-editor/option-editor.tsx +1 -1
- package/src/blocks/product-list-empty/product-list-empty.tsx +1 -1
- package/src/blocks/product-row/product-row.tsx +1 -1
- package/src/blocks/product-tile/index.ts +5 -0
- package/src/blocks/product-tile/product-tile.tsx +54 -0
- package/src/blocks/quick-actions/index.ts +5 -0
- package/src/blocks/quick-actions/quick-actions.tsx +61 -0
- package/src/blocks/selection-bar/selection-bar.tsx +1 -1
- package/src/blocks/setup-guide/index.ts +5 -0
- package/src/blocks/setup-guide/setup-guide.tsx +103 -0
- package/src/blocks/site-preview-frame/site-preview-frame.tsx +1 -1
- package/src/blocks/site-summary/index.ts +5 -0
- package/src/blocks/site-summary/site-summary.tsx +95 -0
- package/src/blocks/stage-bar/index.ts +1 -0
- package/src/blocks/stage-bar/stage-bar.tsx +107 -0
- package/src/blocks/stat-card/stat-card.tsx +10 -1
- package/src/blocks/step-screen/step-screen.tsx +70 -34
- package/src/blocks/store-sheet/index.ts +5 -0
- package/src/blocks/store-sheet/store-sheet.tsx +94 -0
- package/src/blocks/task-tiles/index.ts +1 -0
- package/src/blocks/task-tiles/task-tiles.tsx +79 -0
- package/src/charts/index.ts +1 -0
- package/src/charts/mini-bars.tsx +82 -0
- package/src/components/avatar/avatar.tsx +95 -0
- package/src/components/avatar/index.ts +1 -0
- package/src/components/button/button.tsx +1 -1
- package/src/components/calendar/calendar.tsx +213 -91
- package/src/components/check-list/check-list.tsx +46 -0
- package/src/components/check-list/index.ts +1 -0
- package/src/components/checkbox/checkbox.tsx +1 -1
- package/src/components/chip/chip.tsx +36 -6
- package/src/components/chip/index.ts +1 -1
- package/src/components/chip-group/chip-group.tsx +48 -21
- package/src/components/circle-grid/circle-grid.tsx +154 -0
- package/src/components/circle-grid/index.ts +5 -0
- package/src/components/dialog/dialog.tsx +1 -1
- package/src/components/empty-state/empty-state.tsx +26 -0
- package/src/components/field/field.tsx +9 -6
- package/src/components/field-group/field-group.tsx +40 -0
- package/src/components/field-group/index.ts +1 -0
- package/src/components/list-row/list-row.tsx +73 -5
- package/src/components/page-header/index.ts +14 -0
- package/src/components/page-header/page-header.tsx +122 -0
- package/src/components/page-header/store-header.tsx +138 -0
- package/src/components/photo/index.ts +1 -0
- package/src/components/photo/photo.tsx +19 -3
- package/src/components/progress-circle/index.ts +1 -0
- package/src/components/progress-circle/progress-circle.tsx +55 -0
- package/src/components/result-mark/index.ts +1 -0
- package/src/components/result-mark/result-mark.tsx +45 -0
- package/src/components/segmented-tabs/segmented-tabs.tsx +1 -1
- package/src/components/sheet/index.ts +6 -1
- package/src/components/sheet/sheet.tsx +34 -1
- package/src/components/status-steps/index.ts +1 -0
- package/src/components/status-steps/status-steps.tsx +84 -0
- package/src/components/step-slider/index.ts +1 -0
- package/src/components/step-slider/step-slider.tsx +153 -0
- package/src/components/text/text.tsx +2 -1
- package/src/components/text-links/index.ts +1 -0
- package/src/components/text-links/text-links.tsx +43 -0
- package/src/index.tsx +37 -0
- package/src/internal/bell.ts +2 -0
- package/src/internal/glyphs.tsx +69 -1
- package/src/internal/line-icons.ts +53 -0
- package/src/internal/tab-icons.ts +19 -0
- package/src/templates/calendar-template.tsx +46 -0
- package/src/templates/editor-template.tsx +2 -2
- package/src/templates/index.ts +4 -0
- package/src/templates/intro-template.tsx +1 -1
- package/src/templates/list-template.tsx +54 -0
- package/src/templates/notice-template.tsx +150 -0
- package/src/templates/parts.tsx +42 -2
- package/src/templates/result-template.tsx +26 -8
- package/src/templates/scroll-templates.tsx +59 -3
- package/src/templates/system-template.tsx +33 -2
- package/src/theme/base.ts +27 -15
- package/src/types/index.ts +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAC3B,SAAS,GAAG,OAAO,GAA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IACF,WAAW,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACpD,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IAChC,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAEhD,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,WAAW,CAAC,GAAG;IACtD,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9B,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;KAAE,CAAC;CAC1C,CAAC"}
|
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@ export type DialItem = {
|
|
|
11
11
|
value?: number;
|
|
12
12
|
max?: number;
|
|
13
13
|
color?: string;
|
|
14
|
+
text?: string;
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
export type DialStripProps = {
|
|
@@ -91,7 +92,7 @@ function Ring({ item, on }: { item: DialItem; on: boolean }) {
|
|
|
91
92
|
tone={on ? 'primary' : 'muted'}
|
|
92
93
|
style={s.value}
|
|
93
94
|
>
|
|
94
|
-
{v ? signed(v) : '0'}
|
|
95
|
+
{item.text ?? (v ? signed(v) : '0')}
|
|
95
96
|
</Text>
|
|
96
97
|
</View>
|
|
97
98
|
);
|
|
@@ -119,7 +120,7 @@ export function DialStrip({
|
|
|
119
120
|
onPress={() => onSelect(item.key)}
|
|
120
121
|
accessibilityRole="button"
|
|
121
122
|
accessibilityLabel={
|
|
122
|
-
item.color
|
|
123
|
+
item.color || item.text
|
|
123
124
|
? item.label
|
|
124
125
|
: `${item.label} ${signed(item.value ?? 0)}`
|
|
125
126
|
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { View, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
import { Chip } from '../components/chip/chip';
|
|
3
|
+
import {
|
|
4
|
+
ChipGroup,
|
|
5
|
+
type ChipGroupItem,
|
|
6
|
+
} from '../components/chip-group/chip-group';
|
|
7
|
+
import { Text } from '../components/text/text';
|
|
8
|
+
import { makeStyles } from '../utils/styles';
|
|
9
|
+
|
|
10
|
+
export type FontLevel<L extends string> = {
|
|
11
|
+
key: L;
|
|
12
|
+
label: string;
|
|
13
|
+
bold: boolean;
|
|
14
|
+
italic: boolean;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type FontControlsProps<S extends string, L extends string> = {
|
|
18
|
+
sets: readonly ChipGroupItem<S>[];
|
|
19
|
+
selected: S;
|
|
20
|
+
onSelect: (set: S) => void;
|
|
21
|
+
levels: readonly FontLevel<L>[];
|
|
22
|
+
italicAvailable?: boolean;
|
|
23
|
+
onToggle: (level: L, style: 'bold' | 'italic') => void;
|
|
24
|
+
boldLabel?: string;
|
|
25
|
+
italicLabel?: string;
|
|
26
|
+
style?: StyleProp<ViewStyle>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const useStyles = makeStyles((t) => ({
|
|
30
|
+
root: { gap: t.space[3] },
|
|
31
|
+
sets: { paddingHorizontal: t.layout.screenX },
|
|
32
|
+
levels: { gap: t.space[2], paddingHorizontal: t.layout.screenX },
|
|
33
|
+
level: { flexDirection: 'row', alignItems: 'center', gap: t.space[2] },
|
|
34
|
+
name: { flex: 1 },
|
|
35
|
+
}));
|
|
36
|
+
|
|
37
|
+
export function FontControls<S extends string, L extends string>({
|
|
38
|
+
sets,
|
|
39
|
+
selected,
|
|
40
|
+
onSelect,
|
|
41
|
+
levels,
|
|
42
|
+
italicAvailable = true,
|
|
43
|
+
onToggle,
|
|
44
|
+
boldLabel = '굵게',
|
|
45
|
+
italicLabel = '기울임',
|
|
46
|
+
style,
|
|
47
|
+
}: FontControlsProps<S, L>) {
|
|
48
|
+
const s = useStyles();
|
|
49
|
+
return (
|
|
50
|
+
<View style={[s.root, style]}>
|
|
51
|
+
<View style={s.sets}>
|
|
52
|
+
<ChipGroup
|
|
53
|
+
items={sets}
|
|
54
|
+
value={selected}
|
|
55
|
+
onValueChange={(set) => set && onSelect(set)}
|
|
56
|
+
/>
|
|
57
|
+
</View>
|
|
58
|
+
<View style={s.levels}>
|
|
59
|
+
{levels.map((level) => (
|
|
60
|
+
<View key={level.key} style={s.level}>
|
|
61
|
+
<Text variant="label" style={s.name}>
|
|
62
|
+
{level.label}
|
|
63
|
+
</Text>
|
|
64
|
+
<Chip
|
|
65
|
+
size="sm"
|
|
66
|
+
selected={level.bold}
|
|
67
|
+
onPress={() => onToggle(level.key, 'bold')}
|
|
68
|
+
accessibilityLabel={`${level.label} ${boldLabel}`}
|
|
69
|
+
>
|
|
70
|
+
{boldLabel}
|
|
71
|
+
</Chip>
|
|
72
|
+
<Chip
|
|
73
|
+
size="sm"
|
|
74
|
+
selected={level.italic}
|
|
75
|
+
disabled={!italicAvailable}
|
|
76
|
+
onPress={() => onToggle(level.key, 'italic')}
|
|
77
|
+
accessibilityLabel={`${level.label} ${italicLabel}`}
|
|
78
|
+
>
|
|
79
|
+
{italicLabel}
|
|
80
|
+
</Chip>
|
|
81
|
+
</View>
|
|
82
|
+
))}
|
|
83
|
+
</View>
|
|
84
|
+
</View>
|
|
85
|
+
);
|
|
86
|
+
}
|
package/src/adjust/index.ts
CHANGED
|
@@ -5,5 +5,10 @@ export {
|
|
|
5
5
|
} from './color-adjust-note';
|
|
6
6
|
export { ColorTrack, type ColorTrackProps } from './color-track';
|
|
7
7
|
export { DialStrip, type DialItem, type DialStripProps } from './dial-strip';
|
|
8
|
+
export {
|
|
9
|
+
FontControls,
|
|
10
|
+
type FontControlsProps,
|
|
11
|
+
type FontLevel,
|
|
12
|
+
} from './font-controls';
|
|
8
13
|
export { ScrubRuler, type ScrubRulerProps } from './scrub-ruler';
|
|
9
14
|
export { hexToHsl, hslToHex } from './hsl';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { View, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
import { Text } from '../../components/text/text';
|
|
3
|
+
import { renderIcon, type IconSlot } from '../../internal/icon';
|
|
4
|
+
import { PressableBase } from '../../internal/pressable-base';
|
|
5
|
+
import { useTheme } from '../../theme/theme-provider';
|
|
6
|
+
import { makeStyles } from '../../utils/styles';
|
|
7
|
+
|
|
8
|
+
export type ActionGridItem = {
|
|
9
|
+
key: string;
|
|
10
|
+
icon: IconSlot;
|
|
11
|
+
label: string;
|
|
12
|
+
value?: string;
|
|
13
|
+
onPress: () => void;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type ActionGridProps = {
|
|
17
|
+
items: readonly ActionGridItem[];
|
|
18
|
+
style?: StyleProp<ViewStyle>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const useStyles = makeStyles((t) => ({
|
|
22
|
+
root: {
|
|
23
|
+
flexDirection: 'row',
|
|
24
|
+
flexWrap: 'wrap',
|
|
25
|
+
gap: t.space[2],
|
|
26
|
+
paddingHorizontal: t.layout.screenX,
|
|
27
|
+
},
|
|
28
|
+
item: {
|
|
29
|
+
flexBasis: '48%',
|
|
30
|
+
flexGrow: 1,
|
|
31
|
+
gap: t.space[2],
|
|
32
|
+
padding: t.space[3],
|
|
33
|
+
borderRadius: t.radius.lg,
|
|
34
|
+
backgroundColor: t.colors.muted,
|
|
35
|
+
},
|
|
36
|
+
pressed: { backgroundColor: t.colors.border },
|
|
37
|
+
row: { flexDirection: 'row', alignItems: 'center', gap: t.space[2] },
|
|
38
|
+
label: { flex: 1 },
|
|
39
|
+
}));
|
|
40
|
+
|
|
41
|
+
export function ActionGrid({ items, style }: ActionGridProps) {
|
|
42
|
+
const t = useTheme();
|
|
43
|
+
const s = useStyles();
|
|
44
|
+
return (
|
|
45
|
+
<View style={[s.root, style]}>
|
|
46
|
+
{items.map((item) => (
|
|
47
|
+
<PressableBase
|
|
48
|
+
key={item.key}
|
|
49
|
+
onPress={item.onPress}
|
|
50
|
+
accessibilityLabel={[item.label, item.value]
|
|
51
|
+
.filter(Boolean)
|
|
52
|
+
.join(' ')}
|
|
53
|
+
style={s.item}
|
|
54
|
+
pressedStyle={s.pressed}
|
|
55
|
+
>
|
|
56
|
+
{renderIcon(item.icon, {
|
|
57
|
+
color: t.colors.primary,
|
|
58
|
+
size: t.iconSize.md,
|
|
59
|
+
})}
|
|
60
|
+
<View style={s.row}>
|
|
61
|
+
<Text
|
|
62
|
+
variant="label"
|
|
63
|
+
weight="bold"
|
|
64
|
+
numberOfLines={1}
|
|
65
|
+
style={s.label}
|
|
66
|
+
>
|
|
67
|
+
{item.label}
|
|
68
|
+
</Text>
|
|
69
|
+
{item.value ? (
|
|
70
|
+
<Text variant="caption" tone="muted" numberOfLines={1}>
|
|
71
|
+
{item.value}
|
|
72
|
+
</Text>
|
|
73
|
+
) : null}
|
|
74
|
+
</View>
|
|
75
|
+
</PressableBase>
|
|
76
|
+
))}
|
|
77
|
+
</View>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { StyleSheet, View, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
-
import { ChipGroup } from '../../components/chip-group/chip-group';
|
|
3
3
|
import { Field } from '../../components/field/field';
|
|
4
|
+
import { ListRow } from '../../components/list-row/list-row';
|
|
5
|
+
import { Photo } from '../../components/photo/photo';
|
|
6
|
+
import { Sheet, SheetOptions } from '../../components/sheet/sheet';
|
|
4
7
|
import { Text } from '../../components/text/text';
|
|
5
8
|
import type { IconRenderProps } from '../../internal/icon';
|
|
6
9
|
import { PressableBase } from '../../internal/pressable-base';
|
|
@@ -13,6 +16,7 @@ export type BulkShipRow = {
|
|
|
13
16
|
id: string;
|
|
14
17
|
title: string;
|
|
15
18
|
subtitle?: string;
|
|
19
|
+
image?: string | null;
|
|
16
20
|
trackingNo: string;
|
|
17
21
|
};
|
|
18
22
|
|
|
@@ -23,6 +27,7 @@ export type BulkShipListProps = {
|
|
|
23
27
|
rows: readonly BulkShipRow[];
|
|
24
28
|
onTrackingChange: (id: string, value: string) => void;
|
|
25
29
|
onScan?: (id: string) => void;
|
|
30
|
+
bottomInset?: number;
|
|
26
31
|
style?: StyleProp<ViewStyle>;
|
|
27
32
|
};
|
|
28
33
|
|
|
@@ -32,6 +37,7 @@ const TRACKING = /^[0-9-]{8,20}$/;
|
|
|
32
37
|
const INVALID = '숫자와 -만 8~20자리로 입력해 주세요';
|
|
33
38
|
const DUPLICATE = '같은 송장 번호가 다른 주문에도 있어요';
|
|
34
39
|
const FIELD_HEIGHT = 52;
|
|
40
|
+
const THUMB = 48;
|
|
35
41
|
|
|
36
42
|
export function trackingIssues(
|
|
37
43
|
rows: readonly BulkShipRow[]
|
|
@@ -55,10 +61,16 @@ export function trackingIssues(
|
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
const useStyles = makeStyles((t) => ({
|
|
58
|
-
|
|
59
|
-
|
|
64
|
+
head: {
|
|
65
|
+
paddingTop: t.space[4],
|
|
66
|
+
paddingBottom: t.space[2],
|
|
67
|
+
paddingHorizontal: t.layout.screenX,
|
|
68
|
+
},
|
|
60
69
|
list: { gap: t.space[4] },
|
|
61
|
-
row: { gap: t.space[2] },
|
|
70
|
+
row: { gap: t.space[2], paddingHorizontal: t.layout.screenX },
|
|
71
|
+
item: { flexDirection: 'row', alignItems: 'center', gap: t.space[3] },
|
|
72
|
+
thumb: { width: THUMB },
|
|
73
|
+
body: { flex: 1 },
|
|
62
74
|
input: { flexDirection: 'row', alignItems: 'flex-start', gap: t.space[2] },
|
|
63
75
|
field: { flex: 1 },
|
|
64
76
|
scan: {
|
|
@@ -69,7 +81,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
69
81
|
borderRadius: t.radius.md,
|
|
70
82
|
borderWidth: 1,
|
|
71
83
|
borderColor: t.colors.input,
|
|
72
|
-
backgroundColor: t.colors.
|
|
84
|
+
backgroundColor: t.colors.surface,
|
|
73
85
|
},
|
|
74
86
|
pressed: { backgroundColor: t.colors.muted },
|
|
75
87
|
}));
|
|
@@ -119,39 +131,55 @@ export function BulkShipList({
|
|
|
119
131
|
rows,
|
|
120
132
|
onTrackingChange,
|
|
121
133
|
onScan,
|
|
134
|
+
bottomInset = 0,
|
|
122
135
|
style,
|
|
123
136
|
}: BulkShipListProps) {
|
|
124
137
|
const t = useTheme();
|
|
125
138
|
const s = useStyles();
|
|
139
|
+
const [picking, setPicking] = useState(false);
|
|
126
140
|
const issues = trackingIssues(rows);
|
|
141
|
+
const selected = carriers.find((c) => c.code === carrier);
|
|
127
142
|
return (
|
|
128
|
-
<View style={
|
|
129
|
-
<
|
|
130
|
-
|
|
131
|
-
|
|
143
|
+
<View style={style}>
|
|
144
|
+
<ListRow
|
|
145
|
+
title="택배사"
|
|
146
|
+
value={selected?.name ?? '선택'}
|
|
147
|
+
chevron
|
|
148
|
+
onPress={() => setPicking(true)}
|
|
149
|
+
/>
|
|
150
|
+
<View style={s.head}>
|
|
151
|
+
<Text
|
|
152
|
+
variant="label"
|
|
153
|
+
tone="muted"
|
|
154
|
+
weight="semibold"
|
|
155
|
+
accessibilityRole="header"
|
|
156
|
+
>
|
|
157
|
+
{`${rows.length}건`}
|
|
132
158
|
</Text>
|
|
133
|
-
<ChipGroup
|
|
134
|
-
items={carriers.map((c) => ({ value: c.code, label: c.name }))}
|
|
135
|
-
value={carrier}
|
|
136
|
-
onValueChange={(code) => {
|
|
137
|
-
if (code !== null) onCarrierChange(code);
|
|
138
|
-
}}
|
|
139
|
-
/>
|
|
140
159
|
</View>
|
|
141
160
|
<View style={s.list}>
|
|
142
161
|
{rows.map((row) => {
|
|
143
162
|
const issue = issues[row.id];
|
|
144
163
|
return (
|
|
145
164
|
<View key={row.id} style={s.row}>
|
|
146
|
-
<View>
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
</Text>
|
|
165
|
+
<View style={s.item}>
|
|
166
|
+
{row.image !== undefined ? (
|
|
167
|
+
<Photo
|
|
168
|
+
source={{ uri: row.image ?? '' }}
|
|
169
|
+
radius={t.radius.md}
|
|
170
|
+
style={s.thumb}
|
|
171
|
+
/>
|
|
154
172
|
) : null}
|
|
173
|
+
<View style={s.body}>
|
|
174
|
+
<Text variant="bodyLg" numberOfLines={1}>
|
|
175
|
+
{row.title}
|
|
176
|
+
</Text>
|
|
177
|
+
{row.subtitle ? (
|
|
178
|
+
<Text variant="label" tone="muted" numberOfLines={1}>
|
|
179
|
+
{row.subtitle}
|
|
180
|
+
</Text>
|
|
181
|
+
) : null}
|
|
182
|
+
</View>
|
|
155
183
|
</View>
|
|
156
184
|
<View style={s.input}>
|
|
157
185
|
<Field
|
|
@@ -182,6 +210,21 @@ export function BulkShipList({
|
|
|
182
210
|
);
|
|
183
211
|
})}
|
|
184
212
|
</View>
|
|
213
|
+
<Sheet
|
|
214
|
+
open={picking}
|
|
215
|
+
onOpenChange={setPicking}
|
|
216
|
+
title="택배사"
|
|
217
|
+
bottomInset={bottomInset}
|
|
218
|
+
>
|
|
219
|
+
<SheetOptions
|
|
220
|
+
items={carriers.map((c) => ({ value: c.code, label: c.name }))}
|
|
221
|
+
value={carrier}
|
|
222
|
+
onValueChange={(code) => {
|
|
223
|
+
onCarrierChange(code);
|
|
224
|
+
setPicking(false);
|
|
225
|
+
}}
|
|
226
|
+
/>
|
|
227
|
+
</Sheet>
|
|
185
228
|
</View>
|
|
186
229
|
);
|
|
187
230
|
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { useRef, type ComponentRef } from 'react';
|
|
2
|
+
import { TextInput, View, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import { Text } from '../../components/text/text';
|
|
4
|
+
import { PressableBase } from '../../internal/pressable-base';
|
|
5
|
+
import { makeStyles } from '../../utils/styles';
|
|
6
|
+
|
|
7
|
+
export type CodeInputProps = {
|
|
8
|
+
value: string;
|
|
9
|
+
onChangeText: (value: string) => void;
|
|
10
|
+
length?: number;
|
|
11
|
+
onComplete?: (value: string) => void;
|
|
12
|
+
autoFocus?: boolean;
|
|
13
|
+
accessibilityLabel: string;
|
|
14
|
+
error?: string;
|
|
15
|
+
style?: StyleProp<ViewStyle>;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const useStyles = makeStyles((t) => ({
|
|
19
|
+
root: { gap: t.space[2] },
|
|
20
|
+
row: { flexDirection: 'row', gap: t.space[1] },
|
|
21
|
+
cell: {
|
|
22
|
+
flex: 1,
|
|
23
|
+
height: t.controlSize.md,
|
|
24
|
+
borderRadius: t.radius.md,
|
|
25
|
+
borderWidth: 1,
|
|
26
|
+
borderColor: t.colors.input,
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
justifyContent: 'center',
|
|
29
|
+
},
|
|
30
|
+
filled: { borderColor: t.colors.primaryEdge },
|
|
31
|
+
active: { borderColor: t.colors.primary },
|
|
32
|
+
wrong: { borderColor: t.colors.danger },
|
|
33
|
+
hidden: {
|
|
34
|
+
position: 'absolute',
|
|
35
|
+
left: 0,
|
|
36
|
+
top: 0,
|
|
37
|
+
width: 1,
|
|
38
|
+
height: 1,
|
|
39
|
+
opacity: 0.01,
|
|
40
|
+
color: 'transparent',
|
|
41
|
+
},
|
|
42
|
+
}));
|
|
43
|
+
|
|
44
|
+
export const cleanCode = (raw: string, length: number) =>
|
|
45
|
+
raw
|
|
46
|
+
.toUpperCase()
|
|
47
|
+
.replace(/[^A-Z0-9]/g, '')
|
|
48
|
+
.slice(0, length);
|
|
49
|
+
|
|
50
|
+
export function CodeInput({
|
|
51
|
+
value,
|
|
52
|
+
onChangeText,
|
|
53
|
+
length = 8,
|
|
54
|
+
onComplete,
|
|
55
|
+
autoFocus,
|
|
56
|
+
accessibilityLabel,
|
|
57
|
+
error,
|
|
58
|
+
style,
|
|
59
|
+
}: CodeInputProps) {
|
|
60
|
+
const s = useStyles();
|
|
61
|
+
const input = useRef<ComponentRef<typeof TextInput>>(null);
|
|
62
|
+
const change = (raw: string) => {
|
|
63
|
+
const next = cleanCode(raw, length);
|
|
64
|
+
onChangeText(next);
|
|
65
|
+
if (next.length === length) onComplete?.(next);
|
|
66
|
+
};
|
|
67
|
+
return (
|
|
68
|
+
<View style={[s.root, style]}>
|
|
69
|
+
<PressableBase onPress={() => input.current?.focus()} accessible={false}>
|
|
70
|
+
<View style={s.row}>
|
|
71
|
+
{Array.from({ length }, (_, i) => (
|
|
72
|
+
<View
|
|
73
|
+
key={i}
|
|
74
|
+
style={[
|
|
75
|
+
s.cell,
|
|
76
|
+
i < value.length && s.filled,
|
|
77
|
+
i === Math.min(value.length, length - 1) && s.active,
|
|
78
|
+
error ? s.wrong : null,
|
|
79
|
+
]}
|
|
80
|
+
>
|
|
81
|
+
<Text variant="bodyLg" weight="bold">
|
|
82
|
+
{value[i] ?? ''}
|
|
83
|
+
</Text>
|
|
84
|
+
</View>
|
|
85
|
+
))}
|
|
86
|
+
</View>
|
|
87
|
+
<TextInput
|
|
88
|
+
ref={input}
|
|
89
|
+
value={value}
|
|
90
|
+
onChangeText={change}
|
|
91
|
+
autoFocus={autoFocus}
|
|
92
|
+
autoCapitalize="characters"
|
|
93
|
+
autoCorrect={false}
|
|
94
|
+
autoComplete="one-time-code"
|
|
95
|
+
textContentType="oneTimeCode"
|
|
96
|
+
maxLength={length * 2}
|
|
97
|
+
caretHidden
|
|
98
|
+
selectionColor="transparent"
|
|
99
|
+
underlineColorAndroid="transparent"
|
|
100
|
+
accessibilityLabel={accessibilityLabel}
|
|
101
|
+
style={s.hidden}
|
|
102
|
+
/>
|
|
103
|
+
</PressableBase>
|
|
104
|
+
{error ? (
|
|
105
|
+
<Text variant="caption" tone="danger">
|
|
106
|
+
{error}
|
|
107
|
+
</Text>
|
|
108
|
+
) : null}
|
|
109
|
+
</View>
|
|
110
|
+
);
|
|
111
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CodeInput, cleanCode, type CodeInputProps } from './code-input';
|
|
@@ -12,12 +12,15 @@ export type ColorSwatchPickerProps = {
|
|
|
12
12
|
colors: readonly ColorSwatch[];
|
|
13
13
|
value: string;
|
|
14
14
|
onValueChange: (value: string) => void;
|
|
15
|
-
variant?: 'circle' | 'card';
|
|
15
|
+
variant?: 'circle' | 'card' | 'grid';
|
|
16
16
|
style?: StyleProp<ViewStyle>;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
const DOT = 40;
|
|
20
|
+
const GRID = 44;
|
|
20
21
|
const MARK = 18;
|
|
22
|
+
const RING = 2;
|
|
23
|
+
const RING_GAP = 3;
|
|
21
24
|
|
|
22
25
|
const useStyles = makeStyles((t) => ({
|
|
23
26
|
wrap: { flexDirection: 'row', flexWrap: 'wrap', gap: t.space[3] },
|
|
@@ -35,6 +38,17 @@ const useStyles = makeStyles((t) => ({
|
|
|
35
38
|
borderColor: 'transparent',
|
|
36
39
|
},
|
|
37
40
|
ringOn: { borderColor: t.colors.primary },
|
|
41
|
+
cell: { width: GRID, height: GRID, borderRadius: t.radius.full },
|
|
42
|
+
cellRing: {
|
|
43
|
+
position: 'absolute',
|
|
44
|
+
top: -(RING + RING_GAP),
|
|
45
|
+
left: -(RING + RING_GAP),
|
|
46
|
+
right: -(RING + RING_GAP),
|
|
47
|
+
bottom: -(RING + RING_GAP),
|
|
48
|
+
borderRadius: t.radius.full,
|
|
49
|
+
borderWidth: RING,
|
|
50
|
+
borderColor: t.colors.foreground,
|
|
51
|
+
},
|
|
38
52
|
card: {
|
|
39
53
|
width: 148,
|
|
40
54
|
gap: t.space[2],
|
|
@@ -42,7 +56,7 @@ const useStyles = makeStyles((t) => ({
|
|
|
42
56
|
borderRadius: t.radius.lg,
|
|
43
57
|
borderWidth: 1,
|
|
44
58
|
borderColor: t.colors.border,
|
|
45
|
-
backgroundColor: t.colors.
|
|
59
|
+
backgroundColor: t.colors.surface,
|
|
46
60
|
},
|
|
47
61
|
cardOn: {
|
|
48
62
|
borderColor: t.colors.primaryTint,
|
|
@@ -94,16 +108,22 @@ export function ColorSwatchPicker({
|
|
|
94
108
|
accessibilityRole="radio"
|
|
95
109
|
accessibilityLabel={c.label}
|
|
96
110
|
accessibilityState={{ selected }}
|
|
97
|
-
touchHeight={DOT}
|
|
111
|
+
touchHeight={variant === 'grid' ? GRID : DOT}
|
|
98
112
|
pressedStyle={{}}
|
|
99
113
|
onPress={() => onValueChange(c.value)}
|
|
100
114
|
style={
|
|
101
115
|
variant === 'card'
|
|
102
116
|
? [s.card, selected && s.cardOn]
|
|
103
|
-
:
|
|
117
|
+
: variant === 'grid'
|
|
118
|
+
? [s.cell, { backgroundColor: c.value }]
|
|
119
|
+
: [s.ring, selected && s.ringOn]
|
|
104
120
|
}
|
|
105
121
|
>
|
|
106
|
-
{variant === '
|
|
122
|
+
{variant === 'grid' ? (
|
|
123
|
+
selected ? (
|
|
124
|
+
<View style={s.cellRing} pointerEvents="none" />
|
|
125
|
+
) : null
|
|
126
|
+
) : variant === 'card' ? (
|
|
107
127
|
<>
|
|
108
128
|
<View style={[s.line, s.long]} />
|
|
109
129
|
<View style={[s.line, s.short]} />
|