@ezpg/app-ui 0.9.0 → 0.11.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 +15 -0
- package/lib/module/adjust/adjust-template.js +92 -0
- package/lib/module/adjust/adjust-template.js.map +1 -0
- package/lib/module/adjust/color-adjust-note.js +67 -0
- package/lib/module/adjust/color-adjust-note.js.map +1 -0
- package/lib/module/adjust/color-track.js +132 -0
- package/lib/module/adjust/color-track.js.map +1 -0
- package/lib/module/adjust/dial-strip.js +126 -0
- package/lib/module/adjust/dial-strip.js.map +1 -0
- package/lib/module/adjust/font-controls.js +76 -0
- package/lib/module/adjust/font-controls.js.map +1 -0
- package/lib/module/adjust/hsl.js +29 -0
- package/lib/module/adjust/hsl.js.map +1 -0
- package/lib/module/adjust/index.js +10 -0
- package/lib/module/adjust/index.js.map +1 -0
- package/lib/module/adjust/scrub-ruler.js +159 -0
- package/lib/module/adjust/scrub-ruler.js.map +1 -0
- package/lib/module/adjust.js +4 -0
- package/lib/module/adjust.js.map +1 -0
- 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 +74 -32
- 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 +26 -3
- 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/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/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/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/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-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 +89 -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 +67 -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/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/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/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 +10 -5
- 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 +52 -6
- 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/sheet/index.js +1 -1
- package/lib/module/components/sheet/index.js.map +1 -1
- package/lib/module/components/sheet/sheet.js +27 -1
- 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-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/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 +41 -0
- 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 +49 -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 +1 -0
- package/lib/module/theme/base.js.map +1 -1
- package/lib/typescript/src/adjust/adjust-template.d.ts +13 -0
- package/lib/typescript/src/adjust/adjust-template.d.ts.map +1 -0
- package/lib/typescript/src/adjust/color-adjust-note.d.ts +10 -0
- package/lib/typescript/src/adjust/color-adjust-note.d.ts.map +1 -0
- package/lib/typescript/src/adjust/color-track.d.ts +12 -0
- package/lib/typescript/src/adjust/color-track.d.ts.map +1 -0
- package/lib/typescript/src/adjust/dial-strip.d.ts +17 -0
- package/lib/typescript/src/adjust/dial-strip.d.ts.map +1 -0
- 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/hsl.d.ts +4 -0
- package/lib/typescript/src/adjust/hsl.d.ts.map +1 -0
- package/lib/typescript/src/adjust/index.d.ts +8 -0
- package/lib/typescript/src/adjust/index.d.ts.map +1 -0
- package/lib/typescript/src/adjust/scrub-ruler.d.ts +13 -0
- package/lib/typescript/src/adjust/scrub-ruler.d.ts.map +1 -0
- package/lib/typescript/src/adjust.d.ts +2 -0
- package/lib/typescript/src/adjust.d.ts.map +1 -0
- 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-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 +1 -0
- package/lib/typescript/src/theme/base.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/adjust/adjust-template.tsx +89 -0
- package/src/adjust/color-adjust-note.tsx +61 -0
- package/src/adjust/color-track.tsx +140 -0
- package/src/adjust/dial-strip.tsx +143 -0
- package/src/adjust/font-controls.tsx +86 -0
- package/src/adjust/hsl.ts +37 -0
- package/src/adjust/index.ts +14 -0
- package/src/adjust/scrub-ruler.tsx +160 -0
- package/src/adjust.tsx +1 -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 +66 -23
- 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 +24 -4
- package/src/blocks/consent-list/consent-list.tsx +129 -0
- package/src/blocks/consent-list/index.ts +5 -0
- 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/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/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/setup-guide/index.ts +5 -0
- package/src/blocks/setup-guide/setup-guide.tsx +103 -0
- 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 +75 -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/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/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/empty-state/empty-state.tsx +26 -0
- package/src/components/field/field.tsx +8 -5
- 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 +71 -4
- 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/sheet/index.ts +6 -1
- package/src/components/sheet/sheet.tsx +33 -0
- 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-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/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 +41 -1
- package/src/templates/result-template.tsx +26 -8
- package/src/templates/scroll-templates.tsx +55 -3
- package/src/templates/system-template.tsx +33 -2
- package/src/theme/base.ts +8 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useMemo, useRef } from 'react';
|
|
4
|
+
import { PanResponder, View } from 'react-native';
|
|
5
|
+
import { Text } from "../components/text/text.js";
|
|
6
|
+
import { useTheme } from "../theme/theme-provider.js";
|
|
7
|
+
import { makeStyles } from "../utils/styles.js";
|
|
8
|
+
import { clamp } from "./hsl.js";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
const MINOR = 3;
|
|
11
|
+
const TICK = 2;
|
|
12
|
+
const useStyles = makeStyles(t => ({
|
|
13
|
+
root: {
|
|
14
|
+
height: t.controlSize.lg,
|
|
15
|
+
marginHorizontal: t.layout.screenX,
|
|
16
|
+
overflow: 'hidden'
|
|
17
|
+
},
|
|
18
|
+
ticks: {
|
|
19
|
+
position: 'absolute',
|
|
20
|
+
top: t.space[2],
|
|
21
|
+
left: '50%',
|
|
22
|
+
flexDirection: 'row',
|
|
23
|
+
alignItems: 'flex-end'
|
|
24
|
+
},
|
|
25
|
+
tick: {
|
|
26
|
+
width: TICK,
|
|
27
|
+
height: t.space[2],
|
|
28
|
+
backgroundColor: t.colors.input
|
|
29
|
+
},
|
|
30
|
+
major: {
|
|
31
|
+
height: t.space[4],
|
|
32
|
+
backgroundColor: t.colors.mutedForeground
|
|
33
|
+
},
|
|
34
|
+
zero: {
|
|
35
|
+
height: t.space[5],
|
|
36
|
+
backgroundColor: t.colors.foreground
|
|
37
|
+
},
|
|
38
|
+
needle: {
|
|
39
|
+
position: 'absolute',
|
|
40
|
+
left: '50%',
|
|
41
|
+
top: t.space[1],
|
|
42
|
+
width: TICK,
|
|
43
|
+
marginLeft: -TICK / 2,
|
|
44
|
+
height: t.space[6] + t.space[1],
|
|
45
|
+
borderRadius: t.radius.sm,
|
|
46
|
+
backgroundColor: t.colors.primary
|
|
47
|
+
},
|
|
48
|
+
ends: {
|
|
49
|
+
position: 'absolute',
|
|
50
|
+
left: 0,
|
|
51
|
+
right: 0,
|
|
52
|
+
bottom: 0,
|
|
53
|
+
flexDirection: 'row',
|
|
54
|
+
justifyContent: 'space-between'
|
|
55
|
+
}
|
|
56
|
+
}));
|
|
57
|
+
export function ScrubRuler({
|
|
58
|
+
value,
|
|
59
|
+
min = -2,
|
|
60
|
+
max = 2,
|
|
61
|
+
onChange,
|
|
62
|
+
startLabel,
|
|
63
|
+
endLabel,
|
|
64
|
+
accessibilityLabel,
|
|
65
|
+
style
|
|
66
|
+
}) {
|
|
67
|
+
const t = useTheme();
|
|
68
|
+
const s = useStyles();
|
|
69
|
+
const step = t.space[8];
|
|
70
|
+
const gap = (step - TICK * (MINOR + 1)) / (MINOR + 1);
|
|
71
|
+
const latest = useRef({
|
|
72
|
+
value,
|
|
73
|
+
onChange,
|
|
74
|
+
min,
|
|
75
|
+
max
|
|
76
|
+
});
|
|
77
|
+
latest.current = {
|
|
78
|
+
value,
|
|
79
|
+
onChange,
|
|
80
|
+
min,
|
|
81
|
+
max
|
|
82
|
+
};
|
|
83
|
+
const start = useRef(value);
|
|
84
|
+
const pan = useMemo(() => PanResponder.create({
|
|
85
|
+
onStartShouldSetPanResponder: () => true,
|
|
86
|
+
onMoveShouldSetPanResponder: (_, g) => Math.abs(g.dx) > Math.abs(g.dy),
|
|
87
|
+
onPanResponderTerminationRequest: () => false,
|
|
88
|
+
onPanResponderGrant: () => {
|
|
89
|
+
start.current = latest.current.value;
|
|
90
|
+
},
|
|
91
|
+
onPanResponderMove: (_, g) => {
|
|
92
|
+
const {
|
|
93
|
+
onChange: change,
|
|
94
|
+
min: lo,
|
|
95
|
+
max: hi,
|
|
96
|
+
value: now
|
|
97
|
+
} = latest.current;
|
|
98
|
+
const next = clamp(start.current - Math.round(g.dx / step), lo, hi);
|
|
99
|
+
if (next !== now) change(next);
|
|
100
|
+
}
|
|
101
|
+
}), [step]);
|
|
102
|
+
const ticks = [];
|
|
103
|
+
for (let v = min; v <= max; v += 1) {
|
|
104
|
+
ticks.push(/*#__PURE__*/_jsx(View, {
|
|
105
|
+
style: [s.tick, v === 0 ? s.zero : s.major, v < max && {
|
|
106
|
+
marginRight: gap
|
|
107
|
+
}]
|
|
108
|
+
}, `m${v}`));
|
|
109
|
+
if (v < max) {
|
|
110
|
+
for (let j = 0; j < MINOR; j += 1) {
|
|
111
|
+
ticks.push(/*#__PURE__*/_jsx(View, {
|
|
112
|
+
style: [s.tick, {
|
|
113
|
+
marginRight: gap
|
|
114
|
+
}]
|
|
115
|
+
}, `${v}-${j}`));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
120
|
+
...pan.panHandlers,
|
|
121
|
+
accessible: true,
|
|
122
|
+
accessibilityRole: "adjustable",
|
|
123
|
+
accessibilityLabel: accessibilityLabel,
|
|
124
|
+
accessibilityValue: {
|
|
125
|
+
min,
|
|
126
|
+
max,
|
|
127
|
+
now: value
|
|
128
|
+
},
|
|
129
|
+
accessibilityActions: [{
|
|
130
|
+
name: 'increment'
|
|
131
|
+
}, {
|
|
132
|
+
name: 'decrement'
|
|
133
|
+
}],
|
|
134
|
+
onAccessibilityAction: e => onChange(clamp(value + (e.nativeEvent.actionName === 'increment' ? 1 : -1), min, max)),
|
|
135
|
+
style: [s.root, style],
|
|
136
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
137
|
+
style: [s.ticks, {
|
|
138
|
+
transform: [{
|
|
139
|
+
translateX: -(value - min) * step - TICK / 2
|
|
140
|
+
}]
|
|
141
|
+
}],
|
|
142
|
+
children: ticks
|
|
143
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
144
|
+
style: s.needle
|
|
145
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
146
|
+
style: s.ends,
|
|
147
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
148
|
+
variant: "caption",
|
|
149
|
+
tone: "muted",
|
|
150
|
+
children: startLabel ?? ''
|
|
151
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
152
|
+
variant: "caption",
|
|
153
|
+
tone: "muted",
|
|
154
|
+
children: endLabel ?? ''
|
|
155
|
+
})]
|
|
156
|
+
})]
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
//# sourceMappingURL=scrub-ruler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useMemo","useRef","PanResponder","View","Text","useTheme","makeStyles","clamp","jsx","_jsx","jsxs","_jsxs","MINOR","TICK","useStyles","t","root","height","controlSize","lg","marginHorizontal","layout","screenX","overflow","ticks","position","top","space","left","flexDirection","alignItems","tick","width","backgroundColor","colors","input","major","mutedForeground","zero","foreground","needle","marginLeft","borderRadius","radius","sm","primary","ends","right","bottom","justifyContent","ScrubRuler","value","min","max","onChange","startLabel","endLabel","accessibilityLabel","style","s","step","gap","latest","current","start","pan","create","onStartShouldSetPanResponder","onMoveShouldSetPanResponder","_","g","Math","abs","dx","dy","onPanResponderTerminationRequest","onPanResponderGrant","onPanResponderMove","change","lo","hi","now","next","round","v","push","marginRight","j","panHandlers","accessible","accessibilityRole","accessibilityValue","accessibilityActions","name","onAccessibilityAction","e","nativeEvent","actionName","children","transform","translateX","variant","tone"],"sourceRoot":"../../../src","sources":["adjust/scrub-ruler.tsx"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACvC,SACEC,YAAY,EACZC,IAAI,QAGC,cAAc;AACrB,SAASC,IAAI,QAAQ,4BAAyB;AAC9C,SAASC,QAAQ,QAAQ,4BAAyB;AAClD,SAASC,UAAU,QAAQ,oBAAiB;AAC5C,SAASC,KAAK,QAAQ,UAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAa9B,MAAMC,KAAK,GAAG,CAAC;AACf,MAAMC,IAAI,GAAG,CAAC;AAEd,MAAMC,SAAS,GAAGR,UAAU,CAAES,CAAC,KAAM;EACnCC,IAAI,EAAE;IACJC,MAAM,EAAEF,CAAC,CAACG,WAAW,CAACC,EAAE;IACxBC,gBAAgB,EAAEL,CAAC,CAACM,MAAM,CAACC,OAAO;IAClCC,QAAQ,EAAE;EACZ,CAAC;EACDC,KAAK,EAAE;IACLC,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAEX,CAAC,CAACY,KAAK,CAAC,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just.tsx"],"mappings":";;AAAA,cAAc,mBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import { Text } from "../../components/text/text.js";
|
|
5
|
+
import { renderIcon } from "../../internal/icon.js";
|
|
6
|
+
import { PressableBase } from "../../internal/pressable-base.js";
|
|
7
|
+
import { useTheme } from "../../theme/theme-provider.js";
|
|
8
|
+
import { makeStyles } from "../../utils/styles.js";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
const useStyles = makeStyles(t => ({
|
|
11
|
+
root: {
|
|
12
|
+
flexDirection: 'row',
|
|
13
|
+
flexWrap: 'wrap',
|
|
14
|
+
gap: t.space[2],
|
|
15
|
+
paddingHorizontal: t.layout.screenX
|
|
16
|
+
},
|
|
17
|
+
item: {
|
|
18
|
+
flexBasis: '48%',
|
|
19
|
+
flexGrow: 1,
|
|
20
|
+
gap: t.space[2],
|
|
21
|
+
padding: t.space[3],
|
|
22
|
+
borderRadius: t.radius.lg,
|
|
23
|
+
backgroundColor: t.colors.muted
|
|
24
|
+
},
|
|
25
|
+
pressed: {
|
|
26
|
+
backgroundColor: t.colors.border
|
|
27
|
+
},
|
|
28
|
+
row: {
|
|
29
|
+
flexDirection: 'row',
|
|
30
|
+
alignItems: 'center',
|
|
31
|
+
gap: t.space[2]
|
|
32
|
+
},
|
|
33
|
+
label: {
|
|
34
|
+
flex: 1
|
|
35
|
+
}
|
|
36
|
+
}));
|
|
37
|
+
export function ActionGrid({
|
|
38
|
+
items,
|
|
39
|
+
style
|
|
40
|
+
}) {
|
|
41
|
+
const t = useTheme();
|
|
42
|
+
const s = useStyles();
|
|
43
|
+
return /*#__PURE__*/_jsx(View, {
|
|
44
|
+
style: [s.root, style],
|
|
45
|
+
children: items.map(item => /*#__PURE__*/_jsxs(PressableBase, {
|
|
46
|
+
onPress: item.onPress,
|
|
47
|
+
accessibilityLabel: [item.label, item.value].filter(Boolean).join(' '),
|
|
48
|
+
style: s.item,
|
|
49
|
+
pressedStyle: s.pressed,
|
|
50
|
+
children: [renderIcon(item.icon, {
|
|
51
|
+
color: t.colors.primary,
|
|
52
|
+
size: t.iconSize.md
|
|
53
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
54
|
+
style: s.row,
|
|
55
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
56
|
+
variant: "label",
|
|
57
|
+
weight: "bold",
|
|
58
|
+
numberOfLines: 1,
|
|
59
|
+
style: s.label,
|
|
60
|
+
children: item.label
|
|
61
|
+
}), item.value ? /*#__PURE__*/_jsx(Text, {
|
|
62
|
+
variant: "caption",
|
|
63
|
+
tone: "muted",
|
|
64
|
+
numberOfLines: 1,
|
|
65
|
+
children: item.value
|
|
66
|
+
}) : null]
|
|
67
|
+
})]
|
|
68
|
+
}, item.key))
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=action-grid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["View","Text","renderIcon","PressableBase","useTheme","makeStyles","jsx","_jsx","jsxs","_jsxs","useStyles","t","root","flexDirection","flexWrap","gap","space","paddingHorizontal","layout","screenX","item","flexBasis","flexGrow","padding","borderRadius","radius","lg","backgroundColor","colors","muted","pressed","border","row","alignItems","label","flex","ActionGrid","items","style","s","children","map","onPress","accessibilityLabel","value","filter","Boolean","join","pressedStyle","icon","color","primary","size","iconSize","md","variant","weight","numberOfLines","tone","key"],"sourceRoot":"../../../../src","sources":["blocks/action-grid/action-grid.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAwC,cAAc;AACnE,SAASC,IAAI,QAAQ,+BAA4B;AACjD,SAASC,UAAU,QAAuB,wBAAqB;AAC/D,SAASC,aAAa,QAAQ,kCAA+B;AAC7D,SAASC,QAAQ,QAAQ,+BAA4B;AACrD,SAASC,UAAU,QAAQ,uBAAoB;AAAC,SA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IAAI,CAACsB,OAAQ;MACtBC,kBAAkB,EAAE,CAACvB,IAAI,CAACc,KAAK,EAAEd,IAAI,CAACwB,KAAK,CAAC,CACzCC,MAAM,CAACC,OAAO,CAAC,CACfC,IAAI,CAAC,GAAG,CAAE;MACbT,KAAK,EAAEC,CAAC,CAACnB,IAAK;MACd4B,YAAY,EAAET,CAAC,CAACT,OAAQ;MAAAU,QAAA,GAEvBtC,UAAU,CAACkB,IAAI,CAAC6B,IAAI,EAAE;QACrBC,KAAK,EAAEvC,CAAC,CAACiB,MAAM,CAACuB,OAAO;QACvBC,IAAI,EAAEzC,CAAC,CAAC0C,QAAQ,CAACC;MACnB,CAAC,CAAC,eACF7C,KAAA,CAACT,IAAI;QAACsC,KAAK,EAAEC,CAAC,CAACP,GAAI;QAAAQ,QAAA,gBACjBjC,IAAA,CAACN,IAAI;UACHsD,OAAO,EAAC,OAAO;UACfC,MAAM,EAAC,MAAM;UACbC,aAAa,EAAE,CAAE;UACjBnB,KAAK,EAAEC,CAAC,CAACL,KAAM;UAAAM,QAAA,EAEdpB,IAAI,CAACc;QAAK,CACP,CAAC,EACNd,IAAI,CAACwB,KAAK,gBACTrC,IAAA,CAACN,IAAI;UAACsD,OAAO,EAAC,SAAS;UAACG,IAAI,EAAC,OAAO;UAACD,aAAa,EAAE,CAAE;UAAAjB,QAAA,EACnDpB,IAAI,CAACwB;QAAK,CACP,CAAC,GACL,IAAI;MAAA,CACJ,CAAC;IAAA,GA1BFxB,IAAI,CAACuC,GA2BG,CAChB;EAAC,CACE,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ActionGrid"],"sourceRoot":"../../../../src","sources":["blocks/action-grid/index.ts"],"mappings":";;AAAA,SACEA,UAAU,QAGL,kBAAe","ignoreList":[]}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { useState } from 'react';
|
|
3
4
|
import { StyleSheet, View } from 'react-native';
|
|
4
|
-
import { ChipGroup } from "../../components/chip-group/chip-group.js";
|
|
5
5
|
import { Field } from "../../components/field/field.js";
|
|
6
|
+
import { ListRow } from "../../components/list-row/list-row.js";
|
|
7
|
+
import { Photo } from "../../components/photo/photo.js";
|
|
8
|
+
import { Sheet, SheetOptions } from "../../components/sheet/sheet.js";
|
|
6
9
|
import { Text } from "../../components/text/text.js";
|
|
7
10
|
import { PressableBase } from "../../internal/pressable-base.js";
|
|
8
11
|
import { useTheme } from "../../theme/theme-provider.js";
|
|
@@ -12,6 +15,7 @@ const TRACKING = /^[0-9-]{8,20}$/;
|
|
|
12
15
|
const INVALID = '숫자와 -만 8~20자리로 입력해 주세요';
|
|
13
16
|
const DUPLICATE = '같은 송장 번호가 다른 주문에도 있어요';
|
|
14
17
|
const FIELD_HEIGHT = 52;
|
|
18
|
+
const THUMB = 48;
|
|
15
19
|
export function trackingIssues(rows) {
|
|
16
20
|
const key = v => v.trim().replace(/-/g, '');
|
|
17
21
|
const seen = new Map();
|
|
@@ -30,17 +34,28 @@ export function trackingIssues(rows) {
|
|
|
30
34
|
return issues;
|
|
31
35
|
}
|
|
32
36
|
const useStyles = makeStyles(t => ({
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
gap: t.space[2]
|
|
37
|
+
head: {
|
|
38
|
+
paddingTop: t.space[4],
|
|
39
|
+
paddingBottom: t.space[2],
|
|
40
|
+
paddingHorizontal: t.layout.screenX
|
|
38
41
|
},
|
|
39
42
|
list: {
|
|
40
43
|
gap: t.space[4]
|
|
41
44
|
},
|
|
42
45
|
row: {
|
|
43
|
-
gap: t.space[2]
|
|
46
|
+
gap: t.space[2],
|
|
47
|
+
paddingHorizontal: t.layout.screenX
|
|
48
|
+
},
|
|
49
|
+
item: {
|
|
50
|
+
flexDirection: 'row',
|
|
51
|
+
alignItems: 'center',
|
|
52
|
+
gap: t.space[3]
|
|
53
|
+
},
|
|
54
|
+
thumb: {
|
|
55
|
+
width: THUMB
|
|
56
|
+
},
|
|
57
|
+
body: {
|
|
58
|
+
flex: 1
|
|
44
59
|
},
|
|
45
60
|
input: {
|
|
46
61
|
flexDirection: 'row',
|
|
@@ -117,29 +132,30 @@ export function BulkShipList({
|
|
|
117
132
|
rows,
|
|
118
133
|
onTrackingChange,
|
|
119
134
|
onScan,
|
|
135
|
+
bottomInset = 0,
|
|
120
136
|
style
|
|
121
137
|
}) {
|
|
122
138
|
const t = useTheme();
|
|
123
139
|
const s = useStyles();
|
|
140
|
+
const [picking, setPicking] = useState(false);
|
|
124
141
|
const issues = trackingIssues(rows);
|
|
142
|
+
const selected = carriers.find(c => c.code === carrier);
|
|
125
143
|
return /*#__PURE__*/_jsxs(View, {
|
|
126
|
-
style:
|
|
127
|
-
children: [/*#__PURE__*/
|
|
128
|
-
|
|
129
|
-
|
|
144
|
+
style: style,
|
|
145
|
+
children: [/*#__PURE__*/_jsx(ListRow, {
|
|
146
|
+
title: "\uD0DD\uBC30\uC0AC",
|
|
147
|
+
value: selected?.name ?? '선택',
|
|
148
|
+
chevron: true,
|
|
149
|
+
onPress: () => setPicking(true)
|
|
150
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
151
|
+
style: s.head,
|
|
152
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
153
|
+
variant: "label",
|
|
154
|
+
tone: "muted",
|
|
130
155
|
weight: "semibold",
|
|
131
156
|
accessibilityRole: "header",
|
|
132
|
-
children:
|
|
133
|
-
})
|
|
134
|
-
items: carriers.map(c => ({
|
|
135
|
-
value: c.code,
|
|
136
|
-
label: c.name
|
|
137
|
-
})),
|
|
138
|
-
value: carrier,
|
|
139
|
-
onValueChange: code => {
|
|
140
|
-
if (code !== null) onCarrierChange(code);
|
|
141
|
-
}
|
|
142
|
-
})]
|
|
157
|
+
children: `${rows.length}건`
|
|
158
|
+
})
|
|
143
159
|
}), /*#__PURE__*/_jsx(View, {
|
|
144
160
|
style: s.list,
|
|
145
161
|
children: rows.map(row => {
|
|
@@ -147,16 +163,26 @@ export function BulkShipList({
|
|
|
147
163
|
return /*#__PURE__*/_jsxs(View, {
|
|
148
164
|
style: s.row,
|
|
149
165
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
166
|
+
style: s.item,
|
|
167
|
+
children: [row.image !== undefined ? /*#__PURE__*/_jsx(Photo, {
|
|
168
|
+
source: {
|
|
169
|
+
uri: row.image ?? ''
|
|
170
|
+
},
|
|
171
|
+
radius: t.radius.md,
|
|
172
|
+
style: s.thumb
|
|
173
|
+
}) : null, /*#__PURE__*/_jsxs(View, {
|
|
174
|
+
style: s.body,
|
|
175
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
176
|
+
variant: "bodyLg",
|
|
177
|
+
numberOfLines: 1,
|
|
178
|
+
children: row.title
|
|
179
|
+
}), row.subtitle ? /*#__PURE__*/_jsx(Text, {
|
|
180
|
+
variant: "label",
|
|
181
|
+
tone: "muted",
|
|
182
|
+
numberOfLines: 1,
|
|
183
|
+
children: row.subtitle
|
|
184
|
+
}) : null]
|
|
185
|
+
})]
|
|
160
186
|
}), /*#__PURE__*/_jsxs(View, {
|
|
161
187
|
style: s.input,
|
|
162
188
|
children: [/*#__PURE__*/_jsx(Field, {
|
|
@@ -184,6 +210,22 @@ export function BulkShipList({
|
|
|
184
210
|
})]
|
|
185
211
|
}, row.id);
|
|
186
212
|
})
|
|
213
|
+
}), /*#__PURE__*/_jsx(Sheet, {
|
|
214
|
+
open: picking,
|
|
215
|
+
onOpenChange: setPicking,
|
|
216
|
+
title: "\uD0DD\uBC30\uC0AC",
|
|
217
|
+
bottomInset: bottomInset,
|
|
218
|
+
children: /*#__PURE__*/_jsx(SheetOptions, {
|
|
219
|
+
items: carriers.map(c => ({
|
|
220
|
+
value: c.code,
|
|
221
|
+
label: c.name
|
|
222
|
+
})),
|
|
223
|
+
value: carrier,
|
|
224
|
+
onValueChange: code => {
|
|
225
|
+
onCarrierChange(code);
|
|
226
|
+
setPicking(false);
|
|
227
|
+
}
|
|
228
|
+
})
|
|
187
229
|
})]
|
|
188
230
|
});
|
|
189
231
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","View","
|
|
1
|
+
{"version":3,"names":["useState","StyleSheet","View","Field","ListRow","Photo","Sheet","SheetOptions","Text","PressableBase","useTheme","makeStyles","jsx","_jsx","jsxs","_jsxs","TRACKING","INVALID","DUPLICATE","FIELD_HEIGHT","THUMB","trackingIssues","rows","key","v","trim","replace","seen","Map","row","k","trackingNo","test","set","get","issues","value","id","useStyles","t","head","paddingTop","space","paddingBottom","paddingHorizontal","layout","screenX","list","gap","item","flexDirection","alignItems","thumb","width","body","flex","input","field","scan","height","justifyContent","borderRadius","radius","md","borderWidth","borderColor","colors","backgroundColor","background","pressed","muted","g","create","absolute","position","ScanGlyph","color","size","stroke","Math","max","arm","corner","h","style","children","left","right","top","BulkShipList","carriers","carrier","onCarrierChange","onTrackingChange","onScan","bottomInset","s","picking","setPicking","selected","find","c","code","title","name","chevron","onPress","variant","tone","weight","accessibilityRole","length","map","issue","image","undefined","source","uri","numberOfLines","subtitle","onChangeText","placeholder","keyboardType","inputMode","autoCorrect","maxLength","accessibilityLabel","error","warning","pressedStyle","foreground","open","onOpenChange","items","label","onValueChange"],"sourceRoot":"../../../../src","sources":["blocks/bulk-ship-list/bulk-ship-list.tsx"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,OAAO;AAChC,SAASC,UAAU,EAAEC,IAAI,QAAwC,cAAc;AAC/E,SAASC,KAAK,QAAQ,iCAA8B;AACpD,SAASC,OAAO,QAAQ,uCAAoC;AAC5D,SAASC,KAAK,QAAQ,iCAA8B;AACpD,SAASC,KAAK,EAAEC,YAAY,QAAQ,iCAA8B;AAClE,SAASC,IAAI,QAAQ,+BAA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J,CAAC;QAAA,GA5CEhD,GAAG,CAACQ,EA6CT,CAAC;MAEX,CAAC;IAAC,CACE,CAAC,eACPxB,IAAA,CAACP,KAAK;MACJ6H,IAAI,EAAElC,OAAQ;MACdmC,YAAY,EAAElC,UAAW;MACzBK,KAAK,EAAC,oBAAK;MACXR,WAAW,EAAEA,WAAY;MAAAV,QAAA,eAEzBxE,IAAA,CAACN,YAAY;QACX8H,KAAK,EAAE3C,QAAQ,CAACsB,GAAG,CAAEX,CAAC,KAAM;UAAEjE,KAAK,EAAEiE,CAAC,CAACC,IAAI;UAAEgC,KAAK,EAAEjC,CAAC,CAACG;QAAK,CAAC,CAAC,CAAE;QAC/DpE,KAAK,EAAEuD,OAAQ;QACf4C,aAAa,EAAGjC,IAAI,IAAK;UACvBV,eAAe,CAACU,IAAI,CAAC;UACrBJ,UAAU,CAAC,KAAK,CAAC;QACnB;MAAE,CACH;IAAC,CACG,CAAC;EAAA,CACJ,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useRef } from 'react';
|
|
4
|
+
import { TextInput, View } from 'react-native';
|
|
5
|
+
import { Text } from "../../components/text/text.js";
|
|
6
|
+
import { PressableBase } from "../../internal/pressable-base.js";
|
|
7
|
+
import { makeStyles } from "../../utils/styles.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
const useStyles = makeStyles(t => ({
|
|
10
|
+
root: {
|
|
11
|
+
gap: t.space[2]
|
|
12
|
+
},
|
|
13
|
+
row: {
|
|
14
|
+
flexDirection: 'row',
|
|
15
|
+
gap: t.space[1]
|
|
16
|
+
},
|
|
17
|
+
cell: {
|
|
18
|
+
flex: 1,
|
|
19
|
+
height: t.controlSize.md,
|
|
20
|
+
borderRadius: t.radius.md,
|
|
21
|
+
borderWidth: 1,
|
|
22
|
+
borderColor: t.colors.input,
|
|
23
|
+
alignItems: 'center',
|
|
24
|
+
justifyContent: 'center'
|
|
25
|
+
},
|
|
26
|
+
filled: {
|
|
27
|
+
borderColor: t.colors.primaryEdge
|
|
28
|
+
},
|
|
29
|
+
active: {
|
|
30
|
+
borderColor: t.colors.primary
|
|
31
|
+
},
|
|
32
|
+
wrong: {
|
|
33
|
+
borderColor: t.colors.danger
|
|
34
|
+
},
|
|
35
|
+
hidden: {
|
|
36
|
+
position: 'absolute',
|
|
37
|
+
left: 0,
|
|
38
|
+
top: 0,
|
|
39
|
+
width: 1,
|
|
40
|
+
height: 1,
|
|
41
|
+
opacity: 0.01,
|
|
42
|
+
color: 'transparent'
|
|
43
|
+
}
|
|
44
|
+
}));
|
|
45
|
+
export const cleanCode = (raw, length) => raw.toUpperCase().replace(/[^A-Z0-9]/g, '').slice(0, length);
|
|
46
|
+
export function CodeInput({
|
|
47
|
+
value,
|
|
48
|
+
onChangeText,
|
|
49
|
+
length = 8,
|
|
50
|
+
onComplete,
|
|
51
|
+
autoFocus,
|
|
52
|
+
accessibilityLabel,
|
|
53
|
+
error,
|
|
54
|
+
style
|
|
55
|
+
}) {
|
|
56
|
+
const s = useStyles();
|
|
57
|
+
const input = useRef(null);
|
|
58
|
+
const change = raw => {
|
|
59
|
+
const next = cleanCode(raw, length);
|
|
60
|
+
onChangeText(next);
|
|
61
|
+
if (next.length === length) onComplete?.(next);
|
|
62
|
+
};
|
|
63
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
64
|
+
style: [s.root, style],
|
|
65
|
+
children: [/*#__PURE__*/_jsxs(PressableBase, {
|
|
66
|
+
onPress: () => input.current?.focus(),
|
|
67
|
+
accessible: false,
|
|
68
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
69
|
+
style: s.row,
|
|
70
|
+
children: Array.from({
|
|
71
|
+
length
|
|
72
|
+
}, (_, i) => /*#__PURE__*/_jsx(View, {
|
|
73
|
+
style: [s.cell, i < value.length && s.filled, i === Math.min(value.length, length - 1) && s.active, error ? s.wrong : null],
|
|
74
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
75
|
+
variant: "bodyLg",
|
|
76
|
+
weight: "bold",
|
|
77
|
+
children: value[i] ?? ''
|
|
78
|
+
})
|
|
79
|
+
}, i))
|
|
80
|
+
}), /*#__PURE__*/_jsx(TextInput, {
|
|
81
|
+
ref: input,
|
|
82
|
+
value: value,
|
|
83
|
+
onChangeText: change,
|
|
84
|
+
autoFocus: autoFocus,
|
|
85
|
+
autoCapitalize: "characters",
|
|
86
|
+
autoCorrect: false,
|
|
87
|
+
autoComplete: "one-time-code",
|
|
88
|
+
textContentType: "oneTimeCode",
|
|
89
|
+
maxLength: length * 2,
|
|
90
|
+
caretHidden: true,
|
|
91
|
+
selectionColor: "transparent",
|
|
92
|
+
underlineColorAndroid: "transparent",
|
|
93
|
+
accessibilityLabel: accessibilityLabel,
|
|
94
|
+
style: s.hidden
|
|
95
|
+
})]
|
|
96
|
+
}), error ? /*#__PURE__*/_jsx(Text, {
|
|
97
|
+
variant: "caption",
|
|
98
|
+
tone: "danger",
|
|
99
|
+
children: error
|
|
100
|
+
}) : null]
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=code-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useRef","TextInput","View","Text","PressableBase","makeStyles","jsx","_jsx","jsxs","_jsxs","useStyles","t","root","gap","space","row","flexDirection","cell","flex","height","controlSize","md","borderRadius","radius","borderWidth","borderColor","colors","input","alignItems","justifyContent","filled","primaryEdge","active","primary","wrong","danger","hidden","position","left","top","width","opacity","color","cleanCode","raw","length","toUpperCase","replace","slice","CodeInput","value","onChangeText","onComplete","autoFocus","accessibilityLabel","error","style","s","change","next","children","onPress","current","focus","accessible","Array","from","_","i","Math","min","variant","weight","ref","autoCapitalize","autoCorrect","autoComplete","textContentType","maxLength","caretHidden","selectionColor","underlineColorAndroid","tone"],"sourceRoot":"../../../../src","sources":["blocks/code-input/code-input.tsx"],"mappings":";;A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AACpB,KAAK,CAACL,MAAM,EAAEA,MAAM,GAAG,CAAC,CAAC,IAAIY,CAAC,CAACzB,MAAM,EACpDuB,KAAK,GAAGE,CAAC,CAACvB,KAAK,GAAG,IAAI,CACtB;UAAA0B,QAAA,eAEFrD,IAAA,CAACJ,IAAI;YAACoE,OAAO,EAAC,QAAQ;YAACC,MAAM,EAAC,MAAM;YAAAZ,QAAA,EACjCV,KAAK,CAACkB,CAAC,CAAC,IAAI;UAAE,CACX;QAAC,GAVFA,CAWD,CACP;MAAC,CACE,CAAC,eACP7D,IAAA,CAACN,SAAS;QACRwE,GAAG,EAAE9C,KAAM;QACXuB,KAAK,EAAEA,KAAM;QACbC,YAAY,EAAEO,MAAO;QACrBL,SAAS,EAAEA,SAAU;QACrBqB,cAAc,EAAC,YAAY;QAC3BC,WAAW,EAAE,KAAM;QACnBC,YAAY,EAAC,eAAe;QAC5BC,eAAe,EAAC,aAAa;QAC7BC,SAAS,EAAEjC,MAAM,GAAG,CAAE;QACtBkC,WAAW;QACXC,cAAc,EAAC,aAAa;QAC5BC,qBAAqB,EAAC,aAAa;QACnC3B,kBAAkB,EAAEA,kBAAmB;QACvCE,KAAK,EAAEC,CAAC,CAACrB;MAAO,CACjB,CAAC;IAAA,CACW,CAAC,EACfmB,KAAK,gBACJhD,IAAA,CAACJ,IAAI;MAACoE,OAAO,EAAC,SAAS;MAACW,IAAI,EAAC,QAAQ;MAAAtB,QAAA,EAClCL;IAAK,CACF,CAAC,GACL,IAAI;EAAA,CACJ,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CodeInput","cleanCode"],"sourceRoot":"../../../../src","sources":["blocks/code-input/index.ts"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,SAAS,QAA6B,iBAAc","ignoreList":[]}
|