@ezpg/app-ui 0.0.0-stage → 0.1.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 +7 -0
- package/LICENSE +20 -0
- package/lib/module/blocks/brand-profile-card/brand-profile-card.js +90 -0
- package/lib/module/blocks/brand-profile-card/brand-profile-card.js.map +1 -0
- package/lib/module/blocks/brand-profile-card/index.js +4 -0
- package/lib/module/blocks/brand-profile-card/index.js.map +1 -0
- package/lib/module/blocks/claim-row/claim-row.js +107 -0
- package/lib/module/blocks/claim-row/claim-row.js.map +1 -0
- package/lib/module/blocks/claim-row/index.js +4 -0
- package/lib/module/blocks/claim-row/index.js.map +1 -0
- package/lib/module/blocks/color-swatch-picker/color-swatch-picker.js +124 -0
- package/lib/module/blocks/color-swatch-picker/color-swatch-picker.js.map +1 -0
- package/lib/module/blocks/color-swatch-picker/index.js +4 -0
- package/lib/module/blocks/color-swatch-picker/index.js.map +1 -0
- package/lib/module/blocks/copy-variant-picker/copy-variant-picker.js +142 -0
- package/lib/module/blocks/copy-variant-picker/copy-variant-picker.js.map +1 -0
- package/lib/module/blocks/copy-variant-picker/index.js +4 -0
- package/lib/module/blocks/copy-variant-picker/index.js.map +1 -0
- package/lib/module/blocks/credit-wallet/credit-wallet.js +123 -0
- package/lib/module/blocks/credit-wallet/credit-wallet.js.map +1 -0
- package/lib/module/blocks/credit-wallet/index.js +4 -0
- package/lib/module/blocks/credit-wallet/index.js.map +1 -0
- package/lib/module/blocks/image-grid/image-grid.js +273 -0
- package/lib/module/blocks/image-grid/image-grid.js.map +1 -0
- package/lib/module/blocks/image-grid/index.js +4 -0
- package/lib/module/blocks/image-grid/index.js.map +1 -0
- package/lib/module/blocks/index.js +22 -0
- package/lib/module/blocks/index.js.map +1 -0
- package/lib/module/blocks/internal/card.js +41 -0
- package/lib/module/blocks/internal/card.js.map +1 -0
- package/lib/module/blocks/internal/format.js +25 -0
- package/lib/module/blocks/internal/format.js.map +1 -0
- package/lib/module/blocks/invoice-row/index.js +4 -0
- package/lib/module/blocks/invoice-row/index.js.map +1 -0
- package/lib/module/blocks/invoice-row/invoice-row.js +101 -0
- package/lib/module/blocks/invoice-row/invoice-row.js.map +1 -0
- package/lib/module/blocks/logo-candidate-grid/index.js +4 -0
- package/lib/module/blocks/logo-candidate-grid/index.js.map +1 -0
- package/lib/module/blocks/logo-candidate-grid/logo-candidate-grid.js +117 -0
- package/lib/module/blocks/logo-candidate-grid/logo-candidate-grid.js.map +1 -0
- package/lib/module/blocks/oauth-buttons/index.js +4 -0
- package/lib/module/blocks/oauth-buttons/index.js.map +1 -0
- package/lib/module/blocks/oauth-buttons/oauth-buttons.js +102 -0
- package/lib/module/blocks/oauth-buttons/oauth-buttons.js.map +1 -0
- package/lib/module/blocks/option-editor/index.js +4 -0
- package/lib/module/blocks/option-editor/index.js.map +1 -0
- package/lib/module/blocks/option-editor/option-editor.js +133 -0
- package/lib/module/blocks/option-editor/option-editor.js.map +1 -0
- package/lib/module/blocks/order-card/index.js +4 -0
- package/lib/module/blocks/order-card/index.js.map +1 -0
- package/lib/module/blocks/order-card/order-card.js +156 -0
- package/lib/module/blocks/order-card/order-card.js.map +1 -0
- package/lib/module/blocks/plan-card/index.js +4 -0
- package/lib/module/blocks/plan-card/index.js.map +1 -0
- package/lib/module/blocks/plan-card/plan-card.js +134 -0
- package/lib/module/blocks/plan-card/plan-card.js.map +1 -0
- package/lib/module/blocks/product-list-empty/index.js +4 -0
- package/lib/module/blocks/product-list-empty/index.js.map +1 -0
- package/lib/module/blocks/product-list-empty/product-list-empty.js +155 -0
- package/lib/module/blocks/product-list-empty/product-list-empty.js.map +1 -0
- package/lib/module/blocks/review-row/index.js +4 -0
- package/lib/module/blocks/review-row/index.js.map +1 -0
- package/lib/module/blocks/review-row/review-row.js +284 -0
- package/lib/module/blocks/review-row/review-row.js.map +1 -0
- package/lib/module/blocks/sales-chart/index.js +4 -0
- package/lib/module/blocks/sales-chart/index.js.map +1 -0
- package/lib/module/blocks/sales-chart/sales-chart.js +126 -0
- package/lib/module/blocks/sales-chart/sales-chart.js.map +1 -0
- package/lib/module/blocks/service-state-banner/index.js +4 -0
- package/lib/module/blocks/service-state-banner/index.js.map +1 -0
- package/lib/module/blocks/service-state-banner/service-state-banner.js +64 -0
- package/lib/module/blocks/service-state-banner/service-state-banner.js.map +1 -0
- package/lib/module/blocks/shipping-tracking-row/index.js +4 -0
- package/lib/module/blocks/shipping-tracking-row/index.js.map +1 -0
- package/lib/module/blocks/shipping-tracking-row/shipping-tracking-row.js +116 -0
- package/lib/module/blocks/shipping-tracking-row/shipping-tracking-row.js.map +1 -0
- package/lib/module/blocks/site-preview-frame/index.js +4 -0
- package/lib/module/blocks/site-preview-frame/index.js.map +1 -0
- package/lib/module/blocks/site-preview-frame/site-preview-frame.js +111 -0
- package/lib/module/blocks/site-preview-frame/site-preview-frame.js.map +1 -0
- package/lib/module/blocks/stat-card/index.js +4 -0
- package/lib/module/blocks/stat-card/index.js.map +1 -0
- package/lib/module/blocks/stat-card/stat-card.js +71 -0
- package/lib/module/blocks/stat-card/stat-card.js.map +1 -0
- package/lib/module/blocks/step-screen/index.js +4 -0
- package/lib/module/blocks/step-screen/index.js.map +1 -0
- package/lib/module/blocks/step-screen/step-screen.js +134 -0
- package/lib/module/blocks/step-screen/step-screen.js.map +1 -0
- package/lib/module/blocks/supply-item-card/index.js +4 -0
- package/lib/module/blocks/supply-item-card/index.js.map +1 -0
- package/lib/module/blocks/supply-item-card/supply-item-card.js +151 -0
- package/lib/module/blocks/supply-item-card/supply-item-card.js.map +1 -0
- package/lib/module/charts/index.js +5 -0
- package/lib/module/charts/index.js.map +1 -0
- package/lib/module/charts/line-chart.js +115 -0
- package/lib/module/charts/line-chart.js.map +1 -0
- package/lib/module/charts/scale.js +45 -0
- package/lib/module/charts/scale.js.map +1 -0
- package/lib/module/charts/sparkline.js +50 -0
- package/lib/module/charts/sparkline.js.map +1 -0
- package/lib/module/charts/summary.js +11 -0
- package/lib/module/charts/summary.js.map +1 -0
- package/lib/module/charts.js +5 -0
- package/lib/module/charts.js.map +1 -0
- package/lib/module/components/button/button.js +122 -0
- package/lib/module/components/button/button.js.map +1 -0
- package/lib/module/components/button/index.js +4 -0
- package/lib/module/components/button/index.js.map +1 -0
- package/lib/module/components/checkbox/checkbox.js +72 -0
- package/lib/module/components/checkbox/checkbox.js.map +1 -0
- package/lib/module/components/checkbox/index.js +4 -0
- package/lib/module/components/checkbox/index.js.map +1 -0
- package/lib/module/components/chip/chip.js +68 -0
- package/lib/module/components/chip/chip.js.map +1 -0
- package/lib/module/components/chip/index.js +4 -0
- package/lib/module/components/chip/index.js.map +1 -0
- package/lib/module/components/chip-group/chip-group.js +55 -0
- package/lib/module/components/chip-group/chip-group.js.map +1 -0
- package/lib/module/components/chip-group/index.js +4 -0
- package/lib/module/components/chip-group/index.js.map +1 -0
- package/lib/module/components/dialog/dialog.js +118 -0
- package/lib/module/components/dialog/dialog.js.map +1 -0
- package/lib/module/components/dialog/index.js +4 -0
- package/lib/module/components/dialog/index.js.map +1 -0
- package/lib/module/components/divider/divider.js +21 -0
- package/lib/module/components/divider/divider.js.map +1 -0
- package/lib/module/components/divider/index.js +4 -0
- package/lib/module/components/divider/index.js.map +1 -0
- package/lib/module/components/empty-state/empty-state.js +126 -0
- package/lib/module/components/empty-state/empty-state.js.map +1 -0
- package/lib/module/components/empty-state/index.js +4 -0
- package/lib/module/components/empty-state/index.js.map +1 -0
- package/lib/module/components/field/field.js +123 -0
- package/lib/module/components/field/field.js.map +1 -0
- package/lib/module/components/field/index.js +4 -0
- package/lib/module/components/field/index.js.map +1 -0
- package/lib/module/components/list-row/index.js +4 -0
- package/lib/module/components/list-row/index.js.map +1 -0
- package/lib/module/components/list-row/list-row.js +97 -0
- package/lib/module/components/list-row/list-row.js.map +1 -0
- package/lib/module/components/photo/index.js +4 -0
- package/lib/module/components/photo/index.js.map +1 -0
- package/lib/module/components/photo/photo.js +68 -0
- package/lib/module/components/photo/photo.js.map +1 -0
- package/lib/module/components/price/index.js +4 -0
- package/lib/module/components/price/index.js.map +1 -0
- package/lib/module/components/price/price.js +72 -0
- package/lib/module/components/price/price.js.map +1 -0
- package/lib/module/components/search-field/index.js +4 -0
- package/lib/module/components/search-field/index.js.map +1 -0
- package/lib/module/components/search-field/search-field.js +35 -0
- package/lib/module/components/search-field/search-field.js.map +1 -0
- package/lib/module/components/segmented-tabs/index.js +4 -0
- package/lib/module/components/segmented-tabs/index.js.map +1 -0
- package/lib/module/components/segmented-tabs/segmented-tabs.js +74 -0
- package/lib/module/components/segmented-tabs/segmented-tabs.js.map +1 -0
- package/lib/module/components/sheet/index.js +4 -0
- package/lib/module/components/sheet/index.js.map +1 -0
- package/lib/module/components/sheet/sheet.js +97 -0
- package/lib/module/components/sheet/sheet.js.map +1 -0
- package/lib/module/components/skeleton/index.js +4 -0
- package/lib/module/components/skeleton/index.js.map +1 -0
- package/lib/module/components/skeleton/skeleton.js +49 -0
- package/lib/module/components/skeleton/skeleton.js.map +1 -0
- package/lib/module/components/status-badge/index.js +4 -0
- package/lib/module/components/status-badge/index.js.map +1 -0
- package/lib/module/components/status-badge/status-badge.js +48 -0
- package/lib/module/components/status-badge/status-badge.js.map +1 -0
- package/lib/module/components/switch/index.js +4 -0
- package/lib/module/components/switch/index.js.map +1 -0
- package/lib/module/components/switch/switch.js +26 -0
- package/lib/module/components/switch/switch.js.map +1 -0
- package/lib/module/components/text/index.js +4 -0
- package/lib/module/components/text/index.js.map +1 -0
- package/lib/module/components/text/text.js +56 -0
- package/lib/module/components/text/text.js.map +1 -0
- package/lib/module/components/toast/index.js +4 -0
- package/lib/module/components/toast/index.js.map +1 -0
- package/lib/module/components/toast/toast.js +203 -0
- package/lib/module/components/toast/toast.js.map +1 -0
- package/lib/module/components/wizard-steps/index.js +4 -0
- package/lib/module/components/wizard-steps/index.js.map +1 -0
- package/lib/module/components/wizard-steps/wizard-steps.js +69 -0
- package/lib/module/components/wizard-steps/wizard-steps.js.map +1 -0
- package/lib/module/index.js +31 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/internal/glyphs.js +200 -0
- package/lib/module/internal/glyphs.js.map +1 -0
- package/lib/module/internal/icon.js +8 -0
- package/lib/module/internal/icon.js.map +1 -0
- package/lib/module/internal/overlay.js +60 -0
- package/lib/module/internal/overlay.js.map +1 -0
- package/lib/module/internal/pressable-base.js +40 -0
- package/lib/module/internal/pressable-base.js.map +1 -0
- package/lib/module/internal/use-reduced-motion.js +31 -0
- package/lib/module/internal/use-reduced-motion.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/sortable/index.js +6 -0
- package/lib/module/sortable/index.js.map +1 -0
- package/lib/module/sortable/move.js +11 -0
- package/lib/module/sortable/move.js.map +1 -0
- package/lib/module/sortable/sortable-grid.js +86 -0
- package/lib/module/sortable/sortable-grid.js.map +1 -0
- package/lib/module/sortable/sortable-list.js +16 -0
- package/lib/module/sortable/sortable-list.js.map +1 -0
- package/lib/module/sortable.js +6 -0
- package/lib/module/sortable.js.map +1 -0
- package/lib/module/theme/create-theme.js +56 -0
- package/lib/module/theme/create-theme.js.map +1 -0
- package/lib/module/theme/theme-provider.js +26 -0
- package/lib/module/theme/theme-provider.js.map +1 -0
- package/lib/module/theme/tokens.js +123 -0
- package/lib/module/theme/tokens.js.map +1 -0
- package/lib/module/types/index.js +4 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/utils/color.js +30 -0
- package/lib/module/utils/color.js.map +1 -0
- package/lib/module/utils/styles.js +22 -0
- package/lib/module/utils/styles.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/blocks/brand-profile-card/brand-profile-card.d.ts +15 -0
- package/lib/typescript/src/blocks/brand-profile-card/brand-profile-card.d.ts.map +1 -0
- package/lib/typescript/src/blocks/brand-profile-card/index.d.ts +2 -0
- package/lib/typescript/src/blocks/brand-profile-card/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/claim-row/claim-row.d.ts +22 -0
- package/lib/typescript/src/blocks/claim-row/claim-row.d.ts.map +1 -0
- package/lib/typescript/src/blocks/claim-row/index.d.ts +2 -0
- package/lib/typescript/src/blocks/claim-row/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/color-swatch-picker/color-swatch-picker.d.ts +16 -0
- package/lib/typescript/src/blocks/color-swatch-picker/color-swatch-picker.d.ts.map +1 -0
- package/lib/typescript/src/blocks/color-swatch-picker/index.d.ts +2 -0
- package/lib/typescript/src/blocks/color-swatch-picker/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/copy-variant-picker/copy-variant-picker.d.ts +22 -0
- package/lib/typescript/src/blocks/copy-variant-picker/copy-variant-picker.d.ts.map +1 -0
- package/lib/typescript/src/blocks/copy-variant-picker/index.d.ts +2 -0
- package/lib/typescript/src/blocks/copy-variant-picker/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/credit-wallet/credit-wallet.d.ts +14 -0
- package/lib/typescript/src/blocks/credit-wallet/credit-wallet.d.ts.map +1 -0
- package/lib/typescript/src/blocks/credit-wallet/index.d.ts +2 -0
- package/lib/typescript/src/blocks/credit-wallet/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/image-grid/image-grid.d.ts +24 -0
- package/lib/typescript/src/blocks/image-grid/image-grid.d.ts.map +1 -0
- package/lib/typescript/src/blocks/image-grid/index.d.ts +2 -0
- package/lib/typescript/src/blocks/image-grid/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/index.d.ts +20 -0
- package/lib/typescript/src/blocks/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/internal/card.d.ts +10 -0
- package/lib/typescript/src/blocks/internal/card.d.ts.map +1 -0
- package/lib/typescript/src/blocks/internal/format.d.ts +7 -0
- package/lib/typescript/src/blocks/internal/format.d.ts.map +1 -0
- package/lib/typescript/src/blocks/invoice-row/index.d.ts +2 -0
- package/lib/typescript/src/blocks/invoice-row/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/invoice-row/invoice-row.d.ts +22 -0
- package/lib/typescript/src/blocks/invoice-row/invoice-row.d.ts.map +1 -0
- package/lib/typescript/src/blocks/logo-candidate-grid/index.d.ts +2 -0
- package/lib/typescript/src/blocks/logo-candidate-grid/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/logo-candidate-grid/logo-candidate-grid.d.ts +17 -0
- package/lib/typescript/src/blocks/logo-candidate-grid/logo-candidate-grid.d.ts.map +1 -0
- package/lib/typescript/src/blocks/oauth-buttons/index.d.ts +2 -0
- package/lib/typescript/src/blocks/oauth-buttons/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/oauth-buttons/oauth-buttons.d.ts +20 -0
- package/lib/typescript/src/blocks/oauth-buttons/oauth-buttons.d.ts.map +1 -0
- package/lib/typescript/src/blocks/option-editor/index.d.ts +2 -0
- package/lib/typescript/src/blocks/option-editor/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/option-editor/option-editor.d.ts +20 -0
- package/lib/typescript/src/blocks/option-editor/option-editor.d.ts.map +1 -0
- package/lib/typescript/src/blocks/order-card/index.d.ts +2 -0
- package/lib/typescript/src/blocks/order-card/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/order-card/order-card.d.ts +44 -0
- package/lib/typescript/src/blocks/order-card/order-card.d.ts.map +1 -0
- package/lib/typescript/src/blocks/plan-card/index.d.ts +2 -0
- package/lib/typescript/src/blocks/plan-card/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/plan-card/plan-card.d.ts +36 -0
- package/lib/typescript/src/blocks/plan-card/plan-card.d.ts.map +1 -0
- package/lib/typescript/src/blocks/product-list-empty/index.d.ts +2 -0
- package/lib/typescript/src/blocks/product-list-empty/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/product-list-empty/product-list-empty.d.ts +21 -0
- package/lib/typescript/src/blocks/product-list-empty/product-list-empty.d.ts.map +1 -0
- package/lib/typescript/src/blocks/review-row/index.d.ts +2 -0
- package/lib/typescript/src/blocks/review-row/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/review-row/review-row.d.ts +34 -0
- package/lib/typescript/src/blocks/review-row/review-row.d.ts.map +1 -0
- package/lib/typescript/src/blocks/sales-chart/index.d.ts +2 -0
- package/lib/typescript/src/blocks/sales-chart/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/sales-chart/sales-chart.d.ts +20 -0
- package/lib/typescript/src/blocks/sales-chart/sales-chart.d.ts.map +1 -0
- package/lib/typescript/src/blocks/service-state-banner/index.d.ts +2 -0
- package/lib/typescript/src/blocks/service-state-banner/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/service-state-banner/service-state-banner.d.ts +13 -0
- package/lib/typescript/src/blocks/service-state-banner/service-state-banner.d.ts.map +1 -0
- package/lib/typescript/src/blocks/shipping-tracking-row/index.d.ts +2 -0
- package/lib/typescript/src/blocks/shipping-tracking-row/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/shipping-tracking-row/shipping-tracking-row.d.ts +12 -0
- package/lib/typescript/src/blocks/shipping-tracking-row/shipping-tracking-row.d.ts.map +1 -0
- package/lib/typescript/src/blocks/site-preview-frame/index.d.ts +2 -0
- package/lib/typescript/src/blocks/site-preview-frame/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/site-preview-frame/site-preview-frame.d.ts +18 -0
- package/lib/typescript/src/blocks/site-preview-frame/site-preview-frame.d.ts.map +1 -0
- package/lib/typescript/src/blocks/stat-card/index.d.ts +2 -0
- package/lib/typescript/src/blocks/stat-card/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/stat-card/stat-card.d.ts +17 -0
- package/lib/typescript/src/blocks/stat-card/stat-card.d.ts.map +1 -0
- package/lib/typescript/src/blocks/step-screen/index.d.ts +2 -0
- package/lib/typescript/src/blocks/step-screen/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/step-screen/step-screen.d.ts +26 -0
- package/lib/typescript/src/blocks/step-screen/step-screen.d.ts.map +1 -0
- package/lib/typescript/src/blocks/supply-item-card/index.d.ts +2 -0
- package/lib/typescript/src/blocks/supply-item-card/index.d.ts.map +1 -0
- package/lib/typescript/src/blocks/supply-item-card/supply-item-card.d.ts +30 -0
- package/lib/typescript/src/blocks/supply-item-card/supply-item-card.d.ts.map +1 -0
- package/lib/typescript/src/charts/index.d.ts +3 -0
- package/lib/typescript/src/charts/index.d.ts.map +1 -0
- package/lib/typescript/src/charts/line-chart.d.ts +21 -0
- package/lib/typescript/src/charts/line-chart.d.ts.map +1 -0
- package/lib/typescript/src/charts/scale.d.ts +13 -0
- package/lib/typescript/src/charts/scale.d.ts.map +1 -0
- package/lib/typescript/src/charts/sparkline.d.ts +15 -0
- package/lib/typescript/src/charts/sparkline.d.ts.map +1 -0
- package/lib/typescript/src/charts/summary.d.ts +3 -0
- package/lib/typescript/src/charts/summary.d.ts.map +1 -0
- package/lib/typescript/src/charts.d.ts +3 -0
- package/lib/typescript/src/charts.d.ts.map +1 -0
- package/lib/typescript/src/components/button/button.d.ts +18 -0
- package/lib/typescript/src/components/button/button.d.ts.map +1 -0
- package/lib/typescript/src/components/button/index.d.ts +2 -0
- package/lib/typescript/src/components/button/index.d.ts.map +1 -0
- package/lib/typescript/src/components/checkbox/checkbox.d.ts +8 -0
- package/lib/typescript/src/components/checkbox/checkbox.d.ts.map +1 -0
- package/lib/typescript/src/components/checkbox/index.d.ts +2 -0
- package/lib/typescript/src/components/checkbox/index.d.ts.map +1 -0
- package/lib/typescript/src/components/chip/chip.d.ts +9 -0
- package/lib/typescript/src/components/chip/chip.d.ts.map +1 -0
- package/lib/typescript/src/components/chip/index.d.ts +2 -0
- package/lib/typescript/src/components/chip/index.d.ts.map +1 -0
- package/lib/typescript/src/components/chip-group/chip-group.d.ts +27 -0
- package/lib/typescript/src/components/chip-group/chip-group.d.ts.map +1 -0
- package/lib/typescript/src/components/chip-group/index.d.ts +2 -0
- package/lib/typescript/src/components/chip-group/index.d.ts.map +1 -0
- package/lib/typescript/src/components/dialog/dialog.d.ts +20 -0
- package/lib/typescript/src/components/dialog/dialog.d.ts.map +1 -0
- package/lib/typescript/src/components/dialog/index.d.ts +2 -0
- package/lib/typescript/src/components/dialog/index.d.ts.map +1 -0
- package/lib/typescript/src/components/divider/divider.d.ts +9 -0
- package/lib/typescript/src/components/divider/divider.d.ts.map +1 -0
- package/lib/typescript/src/components/divider/index.d.ts +2 -0
- package/lib/typescript/src/components/divider/index.d.ts.map +1 -0
- package/lib/typescript/src/components/empty-state/empty-state.d.ts +26 -0
- package/lib/typescript/src/components/empty-state/empty-state.d.ts.map +1 -0
- package/lib/typescript/src/components/empty-state/index.d.ts +2 -0
- package/lib/typescript/src/components/empty-state/index.d.ts.map +1 -0
- package/lib/typescript/src/components/field/field.d.ts +15 -0
- package/lib/typescript/src/components/field/field.d.ts.map +1 -0
- package/lib/typescript/src/components/field/index.d.ts +2 -0
- package/lib/typescript/src/components/field/index.d.ts.map +1 -0
- package/lib/typescript/src/components/list-row/index.d.ts +2 -0
- package/lib/typescript/src/components/list-row/index.d.ts.map +1 -0
- package/lib/typescript/src/components/list-row/list-row.d.ts +15 -0
- package/lib/typescript/src/components/list-row/list-row.d.ts.map +1 -0
- package/lib/typescript/src/components/photo/index.d.ts +2 -0
- package/lib/typescript/src/components/photo/index.d.ts.map +1 -0
- package/lib/typescript/src/components/photo/photo.d.ts +15 -0
- package/lib/typescript/src/components/photo/photo.d.ts.map +1 -0
- package/lib/typescript/src/components/price/index.d.ts +2 -0
- package/lib/typescript/src/components/price/index.d.ts.map +1 -0
- package/lib/typescript/src/components/price/price.d.ts +15 -0
- package/lib/typescript/src/components/price/price.d.ts.map +1 -0
- package/lib/typescript/src/components/search-field/index.d.ts +2 -0
- package/lib/typescript/src/components/search-field/index.d.ts.map +1 -0
- package/lib/typescript/src/components/search-field/search-field.d.ts +9 -0
- package/lib/typescript/src/components/search-field/search-field.d.ts.map +1 -0
- package/lib/typescript/src/components/segmented-tabs/index.d.ts +2 -0
- package/lib/typescript/src/components/segmented-tabs/index.d.ts.map +1 -0
- package/lib/typescript/src/components/segmented-tabs/segmented-tabs.d.ts +14 -0
- package/lib/typescript/src/components/segmented-tabs/segmented-tabs.d.ts.map +1 -0
- package/lib/typescript/src/components/sheet/index.d.ts +2 -0
- package/lib/typescript/src/components/sheet/index.d.ts.map +1 -0
- package/lib/typescript/src/components/sheet/sheet.d.ts +17 -0
- package/lib/typescript/src/components/sheet/sheet.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton/index.d.ts +2 -0
- package/lib/typescript/src/components/skeleton/index.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton/skeleton.d.ts +13 -0
- package/lib/typescript/src/components/skeleton/skeleton.d.ts.map +1 -0
- package/lib/typescript/src/components/status-badge/index.d.ts +2 -0
- package/lib/typescript/src/components/status-badge/index.d.ts.map +1 -0
- package/lib/typescript/src/components/status-badge/status-badge.d.ts +10 -0
- package/lib/typescript/src/components/status-badge/status-badge.d.ts.map +1 -0
- package/lib/typescript/src/components/switch/index.d.ts +2 -0
- package/lib/typescript/src/components/switch/index.d.ts.map +1 -0
- package/lib/typescript/src/components/switch/switch.d.ts +9 -0
- package/lib/typescript/src/components/switch/switch.d.ts.map +1 -0
- package/lib/typescript/src/components/text/index.d.ts +2 -0
- package/lib/typescript/src/components/text/index.d.ts.map +1 -0
- package/lib/typescript/src/components/text/text.d.ts +16 -0
- package/lib/typescript/src/components/text/text.d.ts.map +1 -0
- package/lib/typescript/src/components/toast/index.d.ts +2 -0
- package/lib/typescript/src/components/toast/index.d.ts.map +1 -0
- package/lib/typescript/src/components/toast/toast.d.ts +30 -0
- package/lib/typescript/src/components/toast/toast.d.ts.map +1 -0
- package/lib/typescript/src/components/wizard-steps/index.d.ts +2 -0
- package/lib/typescript/src/components/wizard-steps/index.d.ts.map +1 -0
- package/lib/typescript/src/components/wizard-steps/wizard-steps.d.ts +11 -0
- package/lib/typescript/src/components/wizard-steps/wizard-steps.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +31 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/internal/glyphs.d.ts +12 -0
- package/lib/typescript/src/internal/glyphs.d.ts.map +1 -0
- package/lib/typescript/src/internal/icon.d.ts +9 -0
- package/lib/typescript/src/internal/icon.d.ts.map +1 -0
- package/lib/typescript/src/internal/overlay.d.ts +16 -0
- package/lib/typescript/src/internal/overlay.d.ts.map +1 -0
- package/lib/typescript/src/internal/pressable-base.d.ts +13 -0
- package/lib/typescript/src/internal/pressable-base.d.ts.map +1 -0
- package/lib/typescript/src/internal/use-reduced-motion.d.ts +3 -0
- package/lib/typescript/src/internal/use-reduced-motion.d.ts.map +1 -0
- package/lib/typescript/src/sortable/index.d.ts +4 -0
- package/lib/typescript/src/sortable/index.d.ts.map +1 -0
- package/lib/typescript/src/sortable/move.d.ts +3 -0
- package/lib/typescript/src/sortable/move.d.ts.map +1 -0
- package/lib/typescript/src/sortable/sortable-grid.d.ts +37 -0
- package/lib/typescript/src/sortable/sortable-grid.d.ts.map +1 -0
- package/lib/typescript/src/sortable/sortable-list.d.ts +5 -0
- package/lib/typescript/src/sortable/sortable-list.d.ts.map +1 -0
- package/lib/typescript/src/sortable.d.ts +4 -0
- package/lib/typescript/src/sortable.d.ts.map +1 -0
- package/lib/typescript/src/theme/create-theme.d.ts +8 -0
- package/lib/typescript/src/theme/create-theme.d.ts.map +1 -0
- package/lib/typescript/src/theme/theme-provider.d.ts +13 -0
- package/lib/typescript/src/theme/theme-provider.d.ts.map +1 -0
- package/lib/typescript/src/theme/tokens.d.ts +4 -0
- package/lib/typescript/src/theme/tokens.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +90 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -0
- package/lib/typescript/src/utils/color.d.ts +5 -0
- package/lib/typescript/src/utils/color.d.ts.map +1 -0
- package/lib/typescript/src/utils/styles.d.ts +13 -0
- package/lib/typescript/src/utils/styles.d.ts.map +1 -0
- package/package.json +109 -3
- package/src/blocks/brand-profile-card/brand-profile-card.tsx +87 -0
- package/src/blocks/brand-profile-card/index.ts +4 -0
- package/src/blocks/claim-row/claim-row.tsx +112 -0
- package/src/blocks/claim-row/index.ts +6 -0
- package/src/blocks/color-swatch-picker/color-swatch-picker.tsx +119 -0
- package/src/blocks/color-swatch-picker/index.ts +5 -0
- package/src/blocks/copy-variant-picker/copy-variant-picker.tsx +140 -0
- package/src/blocks/copy-variant-picker/index.ts +5 -0
- package/src/blocks/credit-wallet/credit-wallet.tsx +105 -0
- package/src/blocks/credit-wallet/index.ts +1 -0
- package/src/blocks/image-grid/image-grid.tsx +279 -0
- package/src/blocks/image-grid/index.ts +1 -0
- package/src/blocks/index.tsx +19 -0
- package/src/blocks/internal/card.tsx +42 -0
- package/src/blocks/internal/format.ts +22 -0
- package/src/blocks/invoice-row/index.ts +5 -0
- package/src/blocks/invoice-row/invoice-row.tsx +122 -0
- package/src/blocks/logo-candidate-grid/index.ts +5 -0
- package/src/blocks/logo-candidate-grid/logo-candidate-grid.tsx +129 -0
- package/src/blocks/oauth-buttons/index.ts +5 -0
- package/src/blocks/oauth-buttons/oauth-buttons.tsx +109 -0
- package/src/blocks/option-editor/index.ts +5 -0
- package/src/blocks/option-editor/option-editor.tsx +135 -0
- package/src/blocks/order-card/index.ts +11 -0
- package/src/blocks/order-card/order-card.tsx +184 -0
- package/src/blocks/plan-card/index.ts +1 -0
- package/src/blocks/plan-card/plan-card.tsx +147 -0
- package/src/blocks/product-list-empty/index.ts +5 -0
- package/src/blocks/product-list-empty/product-list-empty.tsx +144 -0
- package/src/blocks/review-row/index.ts +8 -0
- package/src/blocks/review-row/review-row.tsx +256 -0
- package/src/blocks/sales-chart/index.ts +5 -0
- package/src/blocks/sales-chart/sales-chart.tsx +120 -0
- package/src/blocks/service-state-banner/index.ts +5 -0
- package/src/blocks/service-state-banner/service-state-banner.tsx +66 -0
- package/src/blocks/shipping-tracking-row/index.ts +5 -0
- package/src/blocks/shipping-tracking-row/shipping-tracking-row.tsx +93 -0
- package/src/blocks/site-preview-frame/index.ts +5 -0
- package/src/blocks/site-preview-frame/site-preview-frame.tsx +121 -0
- package/src/blocks/stat-card/index.ts +1 -0
- package/src/blocks/stat-card/stat-card.tsx +77 -0
- package/src/blocks/step-screen/index.ts +5 -0
- package/src/blocks/step-screen/step-screen.tsx +137 -0
- package/src/blocks/supply-item-card/index.ts +6 -0
- package/src/blocks/supply-item-card/supply-item-card.tsx +145 -0
- package/src/charts/index.ts +2 -0
- package/src/charts/line-chart.tsx +177 -0
- package/src/charts/scale.ts +49 -0
- package/src/charts/sparkline.tsx +64 -0
- package/src/charts/summary.ts +11 -0
- package/src/charts.tsx +2 -0
- package/src/components/button/button.tsx +119 -0
- package/src/components/button/index.ts +6 -0
- package/src/components/checkbox/checkbox.tsx +79 -0
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/chip/chip.tsx +73 -0
- package/src/components/chip/index.ts +1 -0
- package/src/components/chip-group/chip-group.tsx +86 -0
- package/src/components/chip-group/index.ts +5 -0
- package/src/components/dialog/dialog.tsx +131 -0
- package/src/components/dialog/index.ts +1 -0
- package/src/components/divider/divider.tsx +26 -0
- package/src/components/divider/index.ts +1 -0
- package/src/components/empty-state/empty-state.tsx +152 -0
- package/src/components/empty-state/index.ts +5 -0
- package/src/components/field/field.tsx +151 -0
- package/src/components/field/index.ts +1 -0
- package/src/components/list-row/index.ts +1 -0
- package/src/components/list-row/list-row.tsx +115 -0
- package/src/components/photo/index.ts +1 -0
- package/src/components/photo/photo.tsx +87 -0
- package/src/components/price/index.ts +1 -0
- package/src/components/price/price.tsx +84 -0
- package/src/components/search-field/index.ts +1 -0
- package/src/components/search-field/search-field.tsx +46 -0
- package/src/components/segmented-tabs/index.ts +5 -0
- package/src/components/segmented-tabs/segmented-tabs.tsx +81 -0
- package/src/components/sheet/index.ts +1 -0
- package/src/components/sheet/sheet.tsx +121 -0
- package/src/components/skeleton/index.ts +1 -0
- package/src/components/skeleton/skeleton.tsx +73 -0
- package/src/components/status-badge/index.ts +5 -0
- package/src/components/status-badge/status-badge.tsx +54 -0
- package/src/components/switch/index.ts +1 -0
- package/src/components/switch/switch.tsx +26 -0
- package/src/components/text/index.ts +1 -0
- package/src/components/text/text.tsx +54 -0
- package/src/components/toast/index.ts +9 -0
- package/src/components/toast/toast.tsx +248 -0
- package/src/components/wizard-steps/index.ts +1 -0
- package/src/components/wizard-steps/wizard-steps.tsx +54 -0
- package/src/index.tsx +56 -0
- package/src/internal/glyphs.tsx +158 -0
- package/src/internal/icon.tsx +10 -0
- package/src/internal/overlay.tsx +59 -0
- package/src/internal/pressable-base.tsx +55 -0
- package/src/internal/use-reduced-motion.ts +32 -0
- package/src/sortable/index.ts +8 -0
- package/src/sortable/move.ts +19 -0
- package/src/sortable/sortable-grid.tsx +97 -0
- package/src/sortable/sortable-list.tsx +11 -0
- package/src/sortable.tsx +3 -0
- package/src/theme/create-theme.ts +67 -0
- package/src/theme/theme-provider.tsx +37 -0
- package/src/theme/tokens.ts +91 -0
- package/src/types/index.ts +80 -0
- package/src/utils/color.ts +47 -0
- package/src/utils/styles.ts +30 -0
- package/README.md +0 -3
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import { Button } from "../../components/button/button.js";
|
|
5
|
+
import { formatPrice } from "../../components/price/price.js";
|
|
6
|
+
import { Text } from "../../components/text/text.js";
|
|
7
|
+
import { CheckGlyph } from "../../internal/glyphs.js";
|
|
8
|
+
import { useTheme } from "../../theme/theme-provider.js";
|
|
9
|
+
import { makeStyles } from "../../utils/styles.js";
|
|
10
|
+
import { Card } from "../internal/card.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
const useStyles = makeStyles(t => ({
|
|
13
|
+
recommended: {
|
|
14
|
+
borderColor: t.colors.primary,
|
|
15
|
+
borderWidth: 2,
|
|
16
|
+
padding: t.space[4] - 1
|
|
17
|
+
},
|
|
18
|
+
head: {
|
|
19
|
+
flexDirection: 'row',
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
gap: t.space[2]
|
|
22
|
+
},
|
|
23
|
+
name: {
|
|
24
|
+
flex: 1
|
|
25
|
+
},
|
|
26
|
+
list: {
|
|
27
|
+
gap: 6
|
|
28
|
+
},
|
|
29
|
+
feature: {
|
|
30
|
+
flexDirection: 'row',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
gap: t.space[2]
|
|
33
|
+
},
|
|
34
|
+
change: {
|
|
35
|
+
flexDirection: 'row',
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
gap: t.space[2],
|
|
38
|
+
paddingTop: t.space[3],
|
|
39
|
+
borderTopWidth: 1,
|
|
40
|
+
borderTopColor: t.colors.border
|
|
41
|
+
},
|
|
42
|
+
changePrice: {
|
|
43
|
+
flex: 1
|
|
44
|
+
}
|
|
45
|
+
}));
|
|
46
|
+
function stateText(state, cancelDate) {
|
|
47
|
+
switch (state) {
|
|
48
|
+
case 'cancelScheduled':
|
|
49
|
+
return cancelDate ? `${cancelDate} 해지` : '해지 신청됨';
|
|
50
|
+
case 'pastDue':
|
|
51
|
+
return '결제 실패';
|
|
52
|
+
case 'suspended':
|
|
53
|
+
return '이용 정지';
|
|
54
|
+
default:
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** 구독 플랜 한 장. 섹션 제목('이용 중인 플랜' 등)은 쓰는 쪽에서 붙인다 */
|
|
60
|
+
export function PlanCard({
|
|
61
|
+
name,
|
|
62
|
+
price,
|
|
63
|
+
monthlyCredits,
|
|
64
|
+
dailyLimit,
|
|
65
|
+
features = [],
|
|
66
|
+
current,
|
|
67
|
+
recommended,
|
|
68
|
+
state = 'active',
|
|
69
|
+
cancelDate,
|
|
70
|
+
proratedAmount,
|
|
71
|
+
priceChange,
|
|
72
|
+
onSelect,
|
|
73
|
+
onConsent,
|
|
74
|
+
actionLabel = '이 플랜으로 변경',
|
|
75
|
+
style
|
|
76
|
+
}) {
|
|
77
|
+
const t = useTheme();
|
|
78
|
+
const s = useStyles();
|
|
79
|
+
const items = [`월 크레딧 ${formatPrice(monthlyCredits, '')}`, `하루 생성 ${dailyLimit}회`, ...features];
|
|
80
|
+
const alert = current ? stateText(state, cancelDate) : null;
|
|
81
|
+
return /*#__PURE__*/_jsxs(Card, {
|
|
82
|
+
style: [recommended && s.recommended, style],
|
|
83
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
84
|
+
style: s.head,
|
|
85
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
86
|
+
variant: "bodyLg",
|
|
87
|
+
weight: "bold",
|
|
88
|
+
style: s.name,
|
|
89
|
+
children: name
|
|
90
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
91
|
+
variant: "bodyLg",
|
|
92
|
+
weight: "bold",
|
|
93
|
+
children: ["\uC6D4 ", formatPrice(price)]
|
|
94
|
+
})]
|
|
95
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
96
|
+
style: s.list,
|
|
97
|
+
children: items.map(item => /*#__PURE__*/_jsxs(View, {
|
|
98
|
+
style: s.feature,
|
|
99
|
+
children: [/*#__PURE__*/_jsx(CheckGlyph, {
|
|
100
|
+
color: t.colors.foreground,
|
|
101
|
+
size: 16
|
|
102
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
103
|
+
children: item
|
|
104
|
+
})]
|
|
105
|
+
}, item))
|
|
106
|
+
}), alert ? /*#__PURE__*/_jsx(Text, {
|
|
107
|
+
tone: "destructive",
|
|
108
|
+
children: alert
|
|
109
|
+
}) : null, priceChange ? /*#__PURE__*/_jsxs(View, {
|
|
110
|
+
style: s.change,
|
|
111
|
+
children: [/*#__PURE__*/_jsxs(Text, {
|
|
112
|
+
tone: "muted",
|
|
113
|
+
children: [priceChange.effectiveDate, "\uBD80\uD130"]
|
|
114
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
115
|
+
weight: "bold",
|
|
116
|
+
style: s.changePrice,
|
|
117
|
+
children: ["\uC6D4 ", formatPrice(priceChange.newPrice)]
|
|
118
|
+
}), priceChange.consented ? /*#__PURE__*/_jsx(Text, {
|
|
119
|
+
tone: "muted",
|
|
120
|
+
children: "\uB3D9\uC758\uD568"
|
|
121
|
+
}) : onConsent ? /*#__PURE__*/_jsx(Button, {
|
|
122
|
+
size: "sm",
|
|
123
|
+
onPress: onConsent,
|
|
124
|
+
children: "\uC778\uC0C1 \uB3D9\uC758"
|
|
125
|
+
}) : null]
|
|
126
|
+
}) : null, !current && onSelect ? /*#__PURE__*/_jsx(Button, {
|
|
127
|
+
size: "lg",
|
|
128
|
+
variant: recommended ? 'solid' : 'outline',
|
|
129
|
+
onPress: onSelect,
|
|
130
|
+
children: proratedAmount !== undefined && proratedAmount > 0 ? `${formatPrice(proratedAmount)} 결제하고 ${actionLabel}` : actionLabel
|
|
131
|
+
}) : null]
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=plan-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["View","Button","formatPrice","Text","CheckGlyph","useTheme","makeStyles","Card","jsx","_jsx","jsxs","_jsxs","useStyles","t","recommended","borderColor","colors","primary","borderWidth","padding","space","head","flexDirection","alignItems","gap","name","flex","list","feature","change","paddingTop","borderTopWidth","borderTopColor","border","changePrice","stateText","state","cancelDate","PlanCard","price","monthlyCredits","dailyLimit","features","current","proratedAmount","priceChange","onSelect","onConsent","actionLabel","style","s","items","alert","children","variant","weight","map","item","color","foreground","size","tone","effectiveDate","newPrice","consented","onPress","undefined"],"sourceRoot":"../../../../src","sources":["blocks/plan-card/plan-card.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAwC,cAAc;AACnE,SAASC,MAAM,QAAQ,mCAAgC;AACvD,SAASC,WAAW,QAAQ,iCAA8B;AAC1D,SAASC,IAAI,QAAQ,+BAA4B;AACjD,SAASC,UAAU,QAAQ,0BAAuB;AAClD,SAASC,QAAQ,QAAQ,+BAA4B;AAC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rC,IAAA,CAACR,MAAM;MACL2D,IAAI,EAAC,IAAI;MACTN,OAAO,EAAExC,WAAW,GAAG,OAAO,GAAG,SAAU;MAC3CmD,OAAO,EAAEnB,QAAS;MAAAO,QAAA,EAEjBT,cAAc,KAAKsB,SAAS,IAAItB,cAAc,GAAG,CAAC,GAC/C,GAAG1C,WAAW,CAAC0C,cAAc,CAAC,SAASI,WAAW,EAAE,GACpDA;IAAW,CACT,CAAC,GACP,IAAI;EAAA,CACJ,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ProductListEmpty"],"sourceRoot":"../../../../src","sources":["blocks/product-list-empty/index.ts"],"mappings":";;AAAA,SACEA,gBAAgB,QAGX,yBAAsB","ignoreList":[]}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import { Button } from "../../components/button/button.js";
|
|
5
|
+
import { Photo } from "../../components/photo/photo.js";
|
|
6
|
+
import { formatPrice } from "../../components/price/price.js";
|
|
7
|
+
import { Text } from "../../components/text/text.js";
|
|
8
|
+
import { CloseGlyph, PlusGlyph } from "../../internal/glyphs.js";
|
|
9
|
+
import { PressableBase } from "../../internal/pressable-base.js";
|
|
10
|
+
import { useTheme } from "../../theme/theme-provider.js";
|
|
11
|
+
import { makeStyles } from "../../utils/styles.js";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
const useStyles = makeStyles(t => ({
|
|
14
|
+
grid: {
|
|
15
|
+
flexDirection: 'row',
|
|
16
|
+
flexWrap: 'wrap',
|
|
17
|
+
gap: t.space[3],
|
|
18
|
+
padding: t.space[4]
|
|
19
|
+
},
|
|
20
|
+
tile: {
|
|
21
|
+
width: '47%',
|
|
22
|
+
aspectRatio: 1,
|
|
23
|
+
alignItems: 'center',
|
|
24
|
+
justifyContent: 'center',
|
|
25
|
+
gap: t.space[3],
|
|
26
|
+
borderRadius: t.radius.lg,
|
|
27
|
+
borderWidth: 1.5,
|
|
28
|
+
borderStyle: 'dashed',
|
|
29
|
+
borderColor: t.colors.mutedForeground,
|
|
30
|
+
backgroundColor: t.colors.background
|
|
31
|
+
},
|
|
32
|
+
pressed: {
|
|
33
|
+
backgroundColor: t.colors.muted
|
|
34
|
+
},
|
|
35
|
+
card: {
|
|
36
|
+
margin: t.space[4],
|
|
37
|
+
overflow: 'hidden',
|
|
38
|
+
borderRadius: t.radius.lg,
|
|
39
|
+
borderWidth: 1.5,
|
|
40
|
+
borderStyle: 'dashed',
|
|
41
|
+
borderColor: t.colors.mutedForeground
|
|
42
|
+
},
|
|
43
|
+
media: {
|
|
44
|
+
height: 180,
|
|
45
|
+
backgroundColor: t.colors.muted
|
|
46
|
+
},
|
|
47
|
+
badge: {
|
|
48
|
+
position: 'absolute',
|
|
49
|
+
top: t.space[3],
|
|
50
|
+
left: t.space[3],
|
|
51
|
+
paddingHorizontal: 10,
|
|
52
|
+
paddingVertical: t.space[1],
|
|
53
|
+
borderRadius: t.radius.full,
|
|
54
|
+
backgroundColor: t.colors.foreground
|
|
55
|
+
},
|
|
56
|
+
badgeLabel: {
|
|
57
|
+
color: t.colors.background,
|
|
58
|
+
fontSize: 14
|
|
59
|
+
},
|
|
60
|
+
body: {
|
|
61
|
+
gap: t.space[1],
|
|
62
|
+
padding: t.space[4]
|
|
63
|
+
},
|
|
64
|
+
actions: {
|
|
65
|
+
flexDirection: 'row',
|
|
66
|
+
gap: t.space[2],
|
|
67
|
+
marginTop: t.space[3]
|
|
68
|
+
},
|
|
69
|
+
edit: {
|
|
70
|
+
flex: 1,
|
|
71
|
+
height: 48
|
|
72
|
+
},
|
|
73
|
+
dismiss: {
|
|
74
|
+
width: 48,
|
|
75
|
+
height: 48,
|
|
76
|
+
paddingHorizontal: 0
|
|
77
|
+
}
|
|
78
|
+
}));
|
|
79
|
+
|
|
80
|
+
/** 상품 목록이 비었을 때: 예시 초안이 있으면 예시 카드, 없으면 등록 타일 */
|
|
81
|
+
export function ProductListEmpty({
|
|
82
|
+
onAdd,
|
|
83
|
+
addLabel = '첫 상품 등록',
|
|
84
|
+
sample,
|
|
85
|
+
onEditSample,
|
|
86
|
+
onDismissSample,
|
|
87
|
+
style
|
|
88
|
+
}) {
|
|
89
|
+
const t = useTheme();
|
|
90
|
+
const s = useStyles();
|
|
91
|
+
if (sample) {
|
|
92
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
93
|
+
style: [s.card, style],
|
|
94
|
+
accessibilityLabel: `예시 상품, ${sample.name}, 손님에게 안 보여요`,
|
|
95
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
96
|
+
style: s.media,
|
|
97
|
+
children: [sample.image ? /*#__PURE__*/_jsx(Photo, {
|
|
98
|
+
source: sample.image,
|
|
99
|
+
radius: 0,
|
|
100
|
+
style: s.media
|
|
101
|
+
}) : null, /*#__PURE__*/_jsx(View, {
|
|
102
|
+
style: s.badge,
|
|
103
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
104
|
+
variant: "caption",
|
|
105
|
+
weight: "semibold",
|
|
106
|
+
style: s.badgeLabel,
|
|
107
|
+
children: "\uC608\uC2DC \xB7 \uC190\uB2D8\uC5D0\uAC8C \uC548 \uBCF4\uC5EC\uC694"
|
|
108
|
+
})
|
|
109
|
+
})]
|
|
110
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
111
|
+
style: s.body,
|
|
112
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
113
|
+
weight: "semibold",
|
|
114
|
+
children: sample.name
|
|
115
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
116
|
+
weight: "bold",
|
|
117
|
+
children: formatPrice(sample.price)
|
|
118
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
119
|
+
style: s.actions,
|
|
120
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
121
|
+
style: s.edit,
|
|
122
|
+
onPress: onEditSample ?? onAdd,
|
|
123
|
+
children: "\uB0B4 \uC0C1\uD488\uC73C\uB85C \uC218\uC815"
|
|
124
|
+
}), onDismissSample ? /*#__PURE__*/_jsx(Button, {
|
|
125
|
+
variant: "outline",
|
|
126
|
+
accessibilityLabel: "\uC608\uC2DC \uC9C0\uC6B0\uACE0 \uC0C8\uB85C \uB4F1\uB85D",
|
|
127
|
+
style: s.dismiss,
|
|
128
|
+
onPress: onDismissSample,
|
|
129
|
+
children: /*#__PURE__*/_jsx(CloseGlyph, {
|
|
130
|
+
color: t.colors.foreground,
|
|
131
|
+
size: t.iconSize.sm
|
|
132
|
+
})
|
|
133
|
+
}) : null]
|
|
134
|
+
})]
|
|
135
|
+
})]
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
return /*#__PURE__*/_jsx(View, {
|
|
139
|
+
style: [s.grid, style],
|
|
140
|
+
children: /*#__PURE__*/_jsxs(PressableBase, {
|
|
141
|
+
accessibilityLabel: `등록된 상품이 없어요. ${addLabel}`,
|
|
142
|
+
pressedStyle: s.pressed,
|
|
143
|
+
onPress: onAdd,
|
|
144
|
+
style: s.tile,
|
|
145
|
+
children: [/*#__PURE__*/_jsx(PlusGlyph, {
|
|
146
|
+
color: t.colors.foreground,
|
|
147
|
+
size: 40
|
|
148
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
149
|
+
weight: "semibold",
|
|
150
|
+
children: addLabel
|
|
151
|
+
})]
|
|
152
|
+
})
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=product-list-empty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["View","Button","Photo","formatPrice","Text","CloseGlyph","PlusGlyph","PressableBase","useTheme","makeStyles","jsx","_jsx","jsxs","_jsxs","useStyles","t","grid","flexDirection","flexWrap","gap","space","padding","tile","width","aspectRatio","alignItems","justifyContent","borderRadius","radius","lg","borderWidth","borderStyle","borderColor","colors","mutedForeground","backgroundColor","background","pressed","muted","card","margin","overflow","media","height","badge","position","top","left","paddingHorizontal","paddingVertical","full","foreground","badgeLabel","color","fontSize","body","actions","marginTop","edit","flex","dismiss","ProductListEmpty","onAdd","addLabel","sample","onEditSample","onDismissSample","style","s","accessibilityLabel","name","children","image","source","variant","weight","price","onPress","size","iconSize","sm","pressedStyle"],"sourceRoot":"../../../../src","sources":["blocks/product-list-empty/product-list-empty.tsx"],"mappings":";;AAAA,SACEA,IAAI,QAIC,cAAc;AACrB,SAASC,MAAM,QAAQ,mCAAgC;AACvD,SAASC,KAAK,QAAQ,iCAA8B;AACpD,SAASC,WAAW,QAAQ,iCAA8B;AAC1D,SAASC,IAAI,QAAQ,+BAA4B;AACjD,SAASC,UAAU,EAAEC,SAAS,QAAQ,0BAAuB;AAC7D,SAASC,aAAa,QAAQ,kCAA+B;AAC7D,SAASC,QAAQ,QAAQ,+BAA4B;AACrD,SAASC,UAAU,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAqBhD,MAAMC,SAAS,GAAGL,UAAU,CAAEM,CAAC,KAAM;EACnCC,IAAI,EAAE;IACJC,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAE,MAAM;IAChBC,GAAG,EAAEJ,CAAC,CAACK,KAAK,CAAC,CAAC,CAAC;IACfC,OAAO,EAAEN,CAAC,CAACK,KAAK,CAAC,CAAC;EACpB,CAAC;EACDE,IAAI,EAAE;IACJC,KAAK,EAAE,KAAK;IACZC,WAAW,EAAE,CAAC;IACdC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBP,GAAG,EAAEJ,CAAC,CAACK,KAAK,CAAC,CAAC,CAAC;IACfO,YAAY,EAAEZ,CAAC,CAACa,MAAM,CAACC,EAAE;IACzBC,WAAW,EAAE,GAAG;IAChBC,WAAW,EAAE,QAAQ;IACrBC,WAAW,EAAEjB,CAAC,CAACkB,MAAM,CAACC,eAAe;IACrCC,eAAe,EAAEpB,CAAC,CAACkB,MA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,EAAEtC,CAAC,CAACkB,MAAM,CAACkB,UAAW;QAAC2B,IAAI,EAAE;MAAG,CAAE,CAAC,eACnDnE,IAAA,CAACP,IAAI;QAACuE,MAAM,EAAC,UAAU;QAAAJ,QAAA,EAAER;MAAQ,CAAO,CAAC;IAAA,CAC5B;EAAC,CACZ,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["HiddenReviewsRow","ReviewRow","ReviewSummary"],"sourceRoot":"../../../../src","sources":["blocks/review-row/index.ts"],"mappings":";;AAAA,SACEA,gBAAgB,EAChBC,SAAS,EACTC,aAAa,QAIR,iBAAc","ignoreList":[]}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import { Button } from "../../components/button/button.js";
|
|
5
|
+
import { Photo } from "../../components/photo/photo.js";
|
|
6
|
+
import { Text } from "../../components/text/text.js";
|
|
7
|
+
import { PressableBase } from "../../internal/pressable-base.js";
|
|
8
|
+
import { useTheme } from "../../theme/theme-provider.js";
|
|
9
|
+
import { makeStyles } from "../../utils/styles.js";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
const useStyles = makeStyles(t => ({
|
|
12
|
+
root: {
|
|
13
|
+
gap: 10,
|
|
14
|
+
paddingVertical: t.space[4]
|
|
15
|
+
},
|
|
16
|
+
head: {
|
|
17
|
+
flexDirection: 'row',
|
|
18
|
+
alignItems: 'center',
|
|
19
|
+
gap: t.space[2]
|
|
20
|
+
},
|
|
21
|
+
stars: {
|
|
22
|
+
letterSpacing: 1
|
|
23
|
+
},
|
|
24
|
+
author: {
|
|
25
|
+
flexShrink: 1,
|
|
26
|
+
fontSize: 14
|
|
27
|
+
},
|
|
28
|
+
more: {
|
|
29
|
+
width: 44,
|
|
30
|
+
height: 44,
|
|
31
|
+
marginVertical: -t.space[3],
|
|
32
|
+
marginLeft: 'auto',
|
|
33
|
+
alignItems: 'center',
|
|
34
|
+
justifyContent: 'center'
|
|
35
|
+
},
|
|
36
|
+
dots: {
|
|
37
|
+
flexDirection: 'row',
|
|
38
|
+
gap: 3
|
|
39
|
+
},
|
|
40
|
+
dot: {
|
|
41
|
+
width: 3.5,
|
|
42
|
+
height: 3.5,
|
|
43
|
+
borderRadius: 2
|
|
44
|
+
},
|
|
45
|
+
photos: {
|
|
46
|
+
flexDirection: 'row',
|
|
47
|
+
gap: t.space[2]
|
|
48
|
+
},
|
|
49
|
+
photo: {
|
|
50
|
+
width: 72
|
|
51
|
+
},
|
|
52
|
+
reply: {
|
|
53
|
+
gap: t.space[1],
|
|
54
|
+
marginLeft: t.space[3],
|
|
55
|
+
paddingVertical: t.space[3],
|
|
56
|
+
paddingHorizontal: 14,
|
|
57
|
+
borderRadius: 10,
|
|
58
|
+
backgroundColor: t.colors.muted
|
|
59
|
+
},
|
|
60
|
+
replyTitle: {
|
|
61
|
+
fontSize: 13,
|
|
62
|
+
lineHeight: 18
|
|
63
|
+
},
|
|
64
|
+
replyButton: {
|
|
65
|
+
alignSelf: 'flex-start'
|
|
66
|
+
},
|
|
67
|
+
hidden: {
|
|
68
|
+
flexDirection: 'row',
|
|
69
|
+
alignItems: 'center',
|
|
70
|
+
gap: t.space[2],
|
|
71
|
+
minHeight: 52,
|
|
72
|
+
paddingLeft: 14,
|
|
73
|
+
paddingRight: t.space[2],
|
|
74
|
+
borderRadius: 10,
|
|
75
|
+
backgroundColor: t.colors.muted
|
|
76
|
+
},
|
|
77
|
+
hiddenLabel: {
|
|
78
|
+
flex: 1
|
|
79
|
+
}
|
|
80
|
+
}));
|
|
81
|
+
|
|
82
|
+
/** 별점을 ★로 그린다. 빈 별은 border 색 */
|
|
83
|
+
function Stars({
|
|
84
|
+
rating,
|
|
85
|
+
size
|
|
86
|
+
}) {
|
|
87
|
+
const t = useTheme();
|
|
88
|
+
const s = useStyles();
|
|
89
|
+
const n = Math.max(0, Math.min(5, Math.round(rating)));
|
|
90
|
+
return /*#__PURE__*/_jsxs(Text, {
|
|
91
|
+
accessibilityRole: "image",
|
|
92
|
+
accessibilityLabel: `별점 ${n}점`,
|
|
93
|
+
style: [s.stars, {
|
|
94
|
+
color: t.colors.warning
|
|
95
|
+
}, size ? {
|
|
96
|
+
fontSize: size,
|
|
97
|
+
lineHeight: size + 4
|
|
98
|
+
} : null],
|
|
99
|
+
children: ['★'.repeat(n), /*#__PURE__*/_jsx(Text, {
|
|
100
|
+
style: {
|
|
101
|
+
color: t.colors.border
|
|
102
|
+
},
|
|
103
|
+
children: '★'.repeat(5 - n)
|
|
104
|
+
})]
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** 리뷰 한 건과 사장님 답글 */
|
|
109
|
+
export function ReviewRow({
|
|
110
|
+
author,
|
|
111
|
+
rating,
|
|
112
|
+
content,
|
|
113
|
+
photos = [],
|
|
114
|
+
reply,
|
|
115
|
+
onReply,
|
|
116
|
+
onMore,
|
|
117
|
+
style
|
|
118
|
+
}) {
|
|
119
|
+
const t = useTheme();
|
|
120
|
+
const s = useStyles();
|
|
121
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
122
|
+
style: [s.root, style],
|
|
123
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
124
|
+
style: s.head,
|
|
125
|
+
children: [/*#__PURE__*/_jsx(Stars, {
|
|
126
|
+
rating: rating
|
|
127
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
128
|
+
weight: "semibold",
|
|
129
|
+
numberOfLines: 1,
|
|
130
|
+
style: s.author,
|
|
131
|
+
children: author
|
|
132
|
+
}), onMore ? /*#__PURE__*/_jsx(PressableBase, {
|
|
133
|
+
accessibilityLabel: "\uB354\uBCF4\uAE30",
|
|
134
|
+
onPress: onMore,
|
|
135
|
+
style: s.more,
|
|
136
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
137
|
+
style: s.dots,
|
|
138
|
+
children: [0, 1, 2].map(i => /*#__PURE__*/_jsx(View, {
|
|
139
|
+
style: [s.dot, {
|
|
140
|
+
backgroundColor: t.colors.mutedForeground
|
|
141
|
+
}]
|
|
142
|
+
}, i))
|
|
143
|
+
})
|
|
144
|
+
}) : null]
|
|
145
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
146
|
+
children: content
|
|
147
|
+
}), photos.length ? /*#__PURE__*/_jsx(View, {
|
|
148
|
+
style: s.photos,
|
|
149
|
+
children: photos.slice(0, 4).map((p, i) => /*#__PURE__*/_jsx(View, {
|
|
150
|
+
style: s.photo,
|
|
151
|
+
children: /*#__PURE__*/_jsx(Photo, {
|
|
152
|
+
source: p,
|
|
153
|
+
radius: t.radius.sm,
|
|
154
|
+
accessibilityLabel: `리뷰 사진 ${i + 1}`
|
|
155
|
+
})
|
|
156
|
+
}, i))
|
|
157
|
+
}) : null, reply ? /*#__PURE__*/_jsxs(View, {
|
|
158
|
+
style: s.reply,
|
|
159
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
160
|
+
weight: "bold",
|
|
161
|
+
style: s.replyTitle,
|
|
162
|
+
children: "\uC0AC\uC7A5\uB2D8"
|
|
163
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
164
|
+
children: reply
|
|
165
|
+
})]
|
|
166
|
+
}) : onReply ? /*#__PURE__*/_jsx(Button, {
|
|
167
|
+
size: "sm",
|
|
168
|
+
variant: "outline",
|
|
169
|
+
onPress: onReply,
|
|
170
|
+
style: s.replyButton,
|
|
171
|
+
children: "\uB2F5\uAE00 \uB2EC\uAE30"
|
|
172
|
+
}) : null]
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/** 숨긴 리뷰를 한 줄로 접어 둔다 */
|
|
177
|
+
export function HiddenReviewsRow({
|
|
178
|
+
count,
|
|
179
|
+
onShow,
|
|
180
|
+
style
|
|
181
|
+
}) {
|
|
182
|
+
const s = useStyles();
|
|
183
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
184
|
+
style: [s.hidden, style],
|
|
185
|
+
children: [/*#__PURE__*/_jsxs(Text, {
|
|
186
|
+
style: s.hiddenLabel,
|
|
187
|
+
children: ["\uC228\uAE34 \uB9AC\uBDF0 ", count, "\uAC1C"]
|
|
188
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
189
|
+
size: "sm",
|
|
190
|
+
variant: "ghost",
|
|
191
|
+
onPress: onShow,
|
|
192
|
+
children: "\uB2E4\uC2DC \uBCF4\uC774\uAE30"
|
|
193
|
+
})]
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
const useSummaryStyles = makeStyles(t => ({
|
|
197
|
+
root: {
|
|
198
|
+
flexDirection: 'row',
|
|
199
|
+
alignItems: 'center',
|
|
200
|
+
gap: t.space[5]
|
|
201
|
+
},
|
|
202
|
+
score: {
|
|
203
|
+
alignItems: 'center',
|
|
204
|
+
gap: t.space[1]
|
|
205
|
+
},
|
|
206
|
+
average: {
|
|
207
|
+
fontSize: 36,
|
|
208
|
+
lineHeight: 40,
|
|
209
|
+
fontVariant: ['tabular-nums']
|
|
210
|
+
},
|
|
211
|
+
bars: {
|
|
212
|
+
flex: 1,
|
|
213
|
+
gap: t.space[1]
|
|
214
|
+
},
|
|
215
|
+
bar: {
|
|
216
|
+
flexDirection: 'row',
|
|
217
|
+
alignItems: 'center',
|
|
218
|
+
gap: t.space[2]
|
|
219
|
+
},
|
|
220
|
+
digit: {
|
|
221
|
+
width: 8,
|
|
222
|
+
fontVariant: ['tabular-nums']
|
|
223
|
+
},
|
|
224
|
+
track: {
|
|
225
|
+
flex: 1,
|
|
226
|
+
height: 6,
|
|
227
|
+
borderRadius: 3,
|
|
228
|
+
overflow: 'hidden',
|
|
229
|
+
backgroundColor: t.colors.muted
|
|
230
|
+
},
|
|
231
|
+
fill: {
|
|
232
|
+
height: 6,
|
|
233
|
+
borderRadius: 3,
|
|
234
|
+
backgroundColor: t.colors.warning
|
|
235
|
+
}
|
|
236
|
+
}));
|
|
237
|
+
|
|
238
|
+
/** 평균 별점과 점수별 분포 막대 */
|
|
239
|
+
export function ReviewSummary({
|
|
240
|
+
average,
|
|
241
|
+
distribution,
|
|
242
|
+
style
|
|
243
|
+
}) {
|
|
244
|
+
const s = useSummaryStyles();
|
|
245
|
+
const total = distribution.reduce((a, b) => a + b, 0);
|
|
246
|
+
const shown = average.toFixed(1);
|
|
247
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
248
|
+
style: [s.root, style],
|
|
249
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
250
|
+
accessible: true,
|
|
251
|
+
accessibilityLabel: `별점 평균 ${shown}, 리뷰 ${total}개`,
|
|
252
|
+
style: s.score,
|
|
253
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
254
|
+
weight: "bold",
|
|
255
|
+
style: s.average,
|
|
256
|
+
children: shown
|
|
257
|
+
}), /*#__PURE__*/_jsx(Stars, {
|
|
258
|
+
rating: average,
|
|
259
|
+
size: 13
|
|
260
|
+
})]
|
|
261
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
262
|
+
accessible: true,
|
|
263
|
+
accessibilityLabel: distribution.map((n, i) => `${5 - i}점 ${n}개`).join(', '),
|
|
264
|
+
style: s.bars,
|
|
265
|
+
children: distribution.map((n, i) => /*#__PURE__*/_jsxs(View, {
|
|
266
|
+
style: s.bar,
|
|
267
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
268
|
+
variant: "caption",
|
|
269
|
+
tone: "muted",
|
|
270
|
+
style: s.digit,
|
|
271
|
+
children: 5 - i
|
|
272
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
273
|
+
style: s.track,
|
|
274
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
275
|
+
style: [s.fill, {
|
|
276
|
+
width: `${total ? Math.round(n / total * 100) : 0}%`
|
|
277
|
+
}]
|
|
278
|
+
})
|
|
279
|
+
})]
|
|
280
|
+
}, i))
|
|
281
|
+
})]
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
//# sourceMappingURL=review-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["View","Button","Photo","Text","PressableBase","useTheme","makeStyles","jsx","_jsx","jsxs","_jsxs","useStyles","t","root","gap","paddingVertical","space","head","flexDirection","alignItems","stars","letterSpacing","author","flexShrink","fontSize","more","width","height","marginVertical","marginLeft","justifyContent","dots","dot","borderRadius","photos","photo","reply","paddingHorizontal","backgroundColor","colors","muted","replyTitle","lineHeight","replyButton","alignSelf","hidden","minHeight","paddingLeft","paddingRight","hiddenLabel","flex","Stars","rating","size","s","n","Math","max","min","round","accessibilityRole","accessibilityLabel","style","color","warning","children","repeat","border","ReviewRow","content","onReply","onMore","weight","numberOfLines","onPress","map","i","mutedForeground","length","slice","p","source","radius","sm","variant","HiddenReviewsRow","count","onShow","useSummaryStyles","score","average","fontVariant","bars","bar","digit","track","overflow","fill","ReviewSummary","distribution","total","reduce","a","b","shown","toFixed","accessible","join","tone"],"sourceRoot":"../../../../src","sources":["blocks/review-row/review-row.tsx"],"mappings":";;AAAA,SACEA,IAAI,QAIC,cAAc;AACrB,SAASC,MAAM,QAAQ,mCAAgC;AACvD,SAASC,KAAK,QAAQ,iCAA8B;AACpD,SAASC,IAAI,QAAQ,+BAA4B;AACjD,SAASC,aAAa,QAAQ,kCAA+B;AAC7D,SAASC,QAAQ,QAAQ,+BAA4B;AACrD,SAASC,UAAU,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAuBhD,MAAMC,SAAS,GAAGL,UAAU,CAAEM,CAAC,KAAM;EACnCC,IAAI,EAAE;IAAEC,GAAG,EAAE,EAAE;IAAEC,eAAe,EAAEH,CAAC,CAACI,KAAK,CAAC,CAAC;EAAE,CAAC;EAC9CC,IAAI,EAAE;IAAEC,aAAa,EAAE,KAAK;IAAEC,UAAU,EAAE,QAAQ;IAAEL,GAAG,EAAEF,CAAC,CAACI,KAAK,CAAC,CAA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ChCoD,IAAI,CAAC,IAAI,CAAE;MACd7C,KAAK,EAAER,CAAC,CAACsC,IAAK;MAAA3B,QAAA,EAEbkC,YAAY,CAACxB,GAAG,CAAC,CAACpB,CAAC,EAAEqB,CAAC,kBACrBlE,KAAA,CAACV,IAAI;QAAS8D,KAAK,EAAER,CAAC,CAACuC,GAAI;QAAA5B,QAAA,gBACzBzD,IAAA,CAACL,IAAI;UAACiF,OAAO,EAAC,SAAS;UAACwB,IAAI,EAAC,OAAO;UAAC9C,KAAK,EAAER,CAAC,CAACwC,KAAM;UAAA7B,QAAA,EACjD,CAAC,GAAGW;QAAC,CACF,CAAC,eACPpE,IAAA,CAACR,IAAI;UAAC8D,KAAK,EAAER,CAAC,CAACyC,KAAM;UAAA9B,QAAA,eACnBzD,IAAA,CAACR,IAAI;YACH8D,KAAK,EAAE,CACLR,CAAC,CAAC2C,IAAI,EACN;cAAEvE,KAAK,EAAE,GAAG0E,KAAK,GAAG5C,IAAI,CAACG,KAAK,CAAEJ,CAAC,GAAG6C,KAAK,GAAI,GAAG,CAAC,GAAG,CAAC;YAAI,CAAC;UAC1D,CACH;QAAC,CACE,CAAC;MAAA,GAXExB,CAYL,CACP;IAAC,CACE,CAAC;EAAA,CACH,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SalesChart"],"sourceRoot":"../../../../src","sources":["blocks/sales-chart/index.ts"],"mappings":";;AAAA,SACEA,UAAU,QAGL,kBAAe","ignoreList":[]}
|