@oxy.so/bloom 23.5.0 → 23.7.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/NOTICE +28 -0
- package/android/src/main/java/so/oxy/bloom/BloomPackage.kt +3 -1
- package/android/src/main/java/so/oxy/bloom/icons/BloomIcon.kt +251 -0
- package/android/src/main/java/so/oxy/bloom/icons/IconPathParser.java +660 -0
- package/docs/adoption-matrix.mdx +1 -4
- package/docs/bloom-language-codemod.mdx +6 -2
- package/docs/bloom-language-modifiers.mdx +22 -6
- package/docs/bloom-language-nodes.mdx +3 -58
- package/docs/bloom-language.mdx +15 -36
- package/docs/empty-state.mdx +2 -3
- package/docs/icons.mdx +29 -1
- package/docs/public-parts.mdx +2 -7
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/lib/commonjs/icons/TEMPLATE.js +25 -160
- package/lib/commonjs/icons/TEMPLATE.js.map +1 -1
- package/lib/commonjs/icons/glyph-svg.js +47 -0
- package/lib/commonjs/icons/glyph-svg.js.map +1 -0
- package/lib/commonjs/icons/glyph.js +29 -0
- package/lib/commonjs/icons/glyph.js.map +1 -0
- package/lib/commonjs/icons/glyph.native.js +112 -0
- package/lib/commonjs/icons/glyph.native.js.map +1 -0
- package/lib/commonjs/index.js +279 -485
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +279 -485
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/locale/translations/ar.js +0 -39
- package/lib/commonjs/locale/translations/ar.js.map +1 -1
- package/lib/commonjs/locale/translations/bn.js +0 -34
- package/lib/commonjs/locale/translations/bn.js.map +1 -1
- package/lib/commonjs/locale/translations/ca.js +0 -35
- package/lib/commonjs/locale/translations/ca.js.map +1 -1
- package/lib/commonjs/locale/translations/de.js +0 -35
- package/lib/commonjs/locale/translations/de.js.map +1 -1
- package/lib/commonjs/locale/translations/es.js +0 -35
- package/lib/commonjs/locale/translations/es.js.map +1 -1
- package/lib/commonjs/locale/translations/fr.js +0 -35
- package/lib/commonjs/locale/translations/fr.js.map +1 -1
- package/lib/commonjs/locale/translations/hi.js +0 -35
- package/lib/commonjs/locale/translations/hi.js.map +1 -1
- package/lib/commonjs/locale/translations/id.js +0 -34
- package/lib/commonjs/locale/translations/id.js.map +1 -1
- package/lib/commonjs/locale/translations/it.js +0 -35
- package/lib/commonjs/locale/translations/it.js.map +1 -1
- package/lib/commonjs/locale/translations/ja.js +0 -34
- package/lib/commonjs/locale/translations/ja.js.map +1 -1
- package/lib/commonjs/locale/translations/pt.js +0 -35
- package/lib/commonjs/locale/translations/pt.js.map +1 -1
- package/lib/commonjs/locale/translations/ru.js +0 -37
- package/lib/commonjs/locale/translations/ru.js.map +1 -1
- package/lib/commonjs/locale/translations/tr.js +0 -34
- package/lib/commonjs/locale/translations/tr.js.map +1 -1
- package/lib/commonjs/locale/translations/zh.js +0 -34
- package/lib/commonjs/locale/translations/zh.js.map +1 -1
- package/lib/commonjs/subtle-hover/SubtleHover.js +94 -31
- package/lib/commonjs/subtle-hover/SubtleHover.js.map +1 -1
- package/lib/commonjs/subtle-hover/index.js +7 -0
- package/lib/commonjs/subtle-hover/index.js.map +1 -1
- package/lib/commonjs/subtle-hover/use-press-highlight.js +95 -0
- package/lib/commonjs/subtle-hover/use-press-highlight.js.map +1 -0
- package/lib/module/icons/TEMPLATE.js +25 -158
- package/lib/module/icons/TEMPLATE.js.map +1 -1
- package/lib/module/icons/glyph-svg.js +41 -0
- package/lib/module/icons/glyph-svg.js.map +1 -0
- package/lib/module/icons/glyph.js +25 -0
- package/lib/module/icons/glyph.js.map +1 -0
- package/lib/module/icons/glyph.native.js +108 -0
- package/lib/module/icons/glyph.native.js.map +1 -0
- package/lib/module/index.js +0 -14
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +0 -14
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/locale/translations/ar.js +0 -39
- package/lib/module/locale/translations/ar.js.map +1 -1
- package/lib/module/locale/translations/bn.js +0 -34
- package/lib/module/locale/translations/bn.js.map +1 -1
- package/lib/module/locale/translations/ca.js +0 -35
- package/lib/module/locale/translations/ca.js.map +1 -1
- package/lib/module/locale/translations/de.js +0 -35
- package/lib/module/locale/translations/de.js.map +1 -1
- package/lib/module/locale/translations/es.js +0 -35
- package/lib/module/locale/translations/es.js.map +1 -1
- package/lib/module/locale/translations/fr.js +0 -35
- package/lib/module/locale/translations/fr.js.map +1 -1
- package/lib/module/locale/translations/hi.js +0 -35
- package/lib/module/locale/translations/hi.js.map +1 -1
- package/lib/module/locale/translations/id.js +0 -34
- package/lib/module/locale/translations/id.js.map +1 -1
- package/lib/module/locale/translations/it.js +0 -35
- package/lib/module/locale/translations/it.js.map +1 -1
- package/lib/module/locale/translations/ja.js +0 -34
- package/lib/module/locale/translations/ja.js.map +1 -1
- package/lib/module/locale/translations/pt.js +0 -35
- package/lib/module/locale/translations/pt.js.map +1 -1
- package/lib/module/locale/translations/ru.js +0 -37
- package/lib/module/locale/translations/ru.js.map +1 -1
- package/lib/module/locale/translations/tr.js +0 -34
- package/lib/module/locale/translations/tr.js.map +1 -1
- package/lib/module/locale/translations/zh.js +0 -34
- package/lib/module/locale/translations/zh.js.map +1 -1
- package/lib/module/subtle-hover/SubtleHover.js +95 -32
- package/lib/module/subtle-hover/SubtleHover.js.map +1 -1
- package/lib/module/subtle-hover/index.js +1 -0
- package/lib/module/subtle-hover/index.js.map +1 -1
- package/lib/module/subtle-hover/use-press-highlight.js +92 -0
- package/lib/module/subtle-hover/use-press-highlight.js.map +1 -0
- package/lib/typescript/commonjs/icons/TEMPLATE.d.ts +1 -1
- package/lib/typescript/commonjs/icons/TEMPLATE.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/glyph-svg.d.ts +17 -0
- package/lib/typescript/commonjs/icons/glyph-svg.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/glyph.d.ts +11 -0
- package/lib/typescript/commonjs/icons/glyph.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/glyph.native.d.ts +20 -0
- package/lib/typescript/commonjs/icons/glyph.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +0 -9
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +0 -9
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/types.d.ts +0 -6
- package/lib/typescript/commonjs/locale/translations/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/commonjs/subtle-hover/SubtleHover.d.ts +4 -1
- package/lib/typescript/commonjs/subtle-hover/SubtleHover.d.ts.map +1 -1
- package/lib/typescript/commonjs/subtle-hover/index.d.ts +1 -0
- package/lib/typescript/commonjs/subtle-hover/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/subtle-hover/types.d.ts +6 -0
- package/lib/typescript/commonjs/subtle-hover/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/subtle-hover/use-press-highlight.d.ts +42 -0
- package/lib/typescript/commonjs/subtle-hover/use-press-highlight.d.ts.map +1 -0
- package/lib/typescript/module/icons/TEMPLATE.d.ts +1 -1
- package/lib/typescript/module/icons/TEMPLATE.d.ts.map +1 -1
- package/lib/typescript/module/icons/glyph-svg.d.ts +17 -0
- package/lib/typescript/module/icons/glyph-svg.d.ts.map +1 -0
- package/lib/typescript/module/icons/glyph.d.ts +11 -0
- package/lib/typescript/module/icons/glyph.d.ts.map +1 -0
- package/lib/typescript/module/icons/glyph.native.d.ts +20 -0
- package/lib/typescript/module/icons/glyph.native.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +0 -9
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +0 -9
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/types.d.ts +0 -6
- package/lib/typescript/module/locale/translations/types.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/module/subtle-hover/SubtleHover.d.ts +4 -1
- package/lib/typescript/module/subtle-hover/SubtleHover.d.ts.map +1 -1
- package/lib/typescript/module/subtle-hover/index.d.ts +1 -0
- package/lib/typescript/module/subtle-hover/index.d.ts.map +1 -1
- package/lib/typescript/module/subtle-hover/types.d.ts +6 -0
- package/lib/typescript/module/subtle-hover/types.d.ts.map +1 -1
- package/lib/typescript/module/subtle-hover/use-press-highlight.d.ts +42 -0
- package/lib/typescript/module/subtle-hover/use-press-highlight.d.ts.map +1 -0
- package/package.json +1 -52
- package/src/__tests__/support/public-part-classifications.json +0 -5
- package/src/icons/TEMPLATE.tsx +28 -49
- package/src/icons/glyph-svg.tsx +54 -0
- package/src/icons/glyph.native.tsx +138 -0
- package/src/icons/glyph.tsx +15 -0
- package/src/index.ts +0 -62
- package/src/index.web.ts +0 -62
- package/src/locale/translations/ar.ts +0 -36
- package/src/locale/translations/bn.ts +0 -36
- package/src/locale/translations/ca.ts +0 -36
- package/src/locale/translations/de.ts +0 -36
- package/src/locale/translations/es.ts +0 -36
- package/src/locale/translations/fr.ts +0 -36
- package/src/locale/translations/hi.ts +0 -36
- package/src/locale/translations/id.ts +0 -36
- package/src/locale/translations/it.ts +0 -36
- package/src/locale/translations/ja.ts +0 -36
- package/src/locale/translations/pt.ts +0 -36
- package/src/locale/translations/ru.ts +0 -36
- package/src/locale/translations/tr.ts +0 -36
- package/src/locale/translations/types.ts +0 -6
- package/src/locale/translations/zh.ts +0 -36
- package/src/subtle-hover/SubtleHover.tsx +33 -2
- package/src/subtle-hover/index.ts +5 -0
- package/src/subtle-hover/types.ts +6 -0
- package/src/subtle-hover/use-press-highlight.ts +93 -0
- package/docs/checkout-summary.mdx +0 -94
- package/docs/order-confirmation.mdx +0 -66
- package/docs/vendor-card.mdx +0 -83
- package/lib/commonjs/checkout-summary/CheckoutConfirm.js +0 -243
- package/lib/commonjs/checkout-summary/CheckoutConfirm.js.map +0 -1
- package/lib/commonjs/checkout-summary/CheckoutSummary.js +0 -432
- package/lib/commonjs/checkout-summary/CheckoutSummary.js.map +0 -1
- package/lib/commonjs/checkout-summary/CheckoutSummaryRow.js +0 -277
- package/lib/commonjs/checkout-summary/CheckoutSummaryRow.js.map +0 -1
- package/lib/commonjs/checkout-summary/constants.js +0 -66
- package/lib/commonjs/checkout-summary/constants.js.map +0 -1
- package/lib/commonjs/checkout-summary/index.js +0 -95
- package/lib/commonjs/checkout-summary/index.js.map +0 -1
- package/lib/commonjs/checkout-summary/messages.js +0 -23
- package/lib/commonjs/checkout-summary/messages.js.map +0 -1
- package/lib/commonjs/checkout-summary/shared.js +0 -43
- package/lib/commonjs/checkout-summary/shared.js.map +0 -1
- package/lib/commonjs/checkout-summary/types.js +0 -6
- package/lib/commonjs/checkout-summary/types.js.map +0 -1
- package/lib/commonjs/order-confirmation/OrderConfirmation.js +0 -305
- package/lib/commonjs/order-confirmation/OrderConfirmation.js.map +0 -1
- package/lib/commonjs/order-confirmation/constants.js +0 -26
- package/lib/commonjs/order-confirmation/constants.js.map +0 -1
- package/lib/commonjs/order-confirmation/index.js +0 -38
- package/lib/commonjs/order-confirmation/index.js.map +0 -1
- package/lib/commonjs/order-confirmation/messages.js +0 -18
- package/lib/commonjs/order-confirmation/messages.js.map +0 -1
- package/lib/commonjs/order-confirmation/types.js +0 -6
- package/lib/commonjs/order-confirmation/types.js.map +0 -1
- package/lib/commonjs/vendor-card/VendorCard.js +0 -1051
- package/lib/commonjs/vendor-card/VendorCard.js.map +0 -1
- package/lib/commonjs/vendor-card/constants.js +0 -54
- package/lib/commonjs/vendor-card/constants.js.map +0 -1
- package/lib/commonjs/vendor-card/index.js +0 -69
- package/lib/commonjs/vendor-card/index.js.map +0 -1
- package/lib/commonjs/vendor-card/message-helpers.js +0 -23
- package/lib/commonjs/vendor-card/message-helpers.js.map +0 -1
- package/lib/commonjs/vendor-card/messages.js +0 -32
- package/lib/commonjs/vendor-card/messages.js.map +0 -1
- package/lib/commonjs/vendor-card/shared.js +0 -116
- package/lib/commonjs/vendor-card/shared.js.map +0 -1
- package/lib/commonjs/vendor-card/types.js +0 -6
- package/lib/commonjs/vendor-card/types.js.map +0 -1
- package/lib/module/checkout-summary/CheckoutConfirm.js +0 -237
- package/lib/module/checkout-summary/CheckoutConfirm.js.map +0 -1
- package/lib/module/checkout-summary/CheckoutSummary.js +0 -426
- package/lib/module/checkout-summary/CheckoutSummary.js.map +0 -1
- package/lib/module/checkout-summary/CheckoutSummaryRow.js +0 -273
- package/lib/module/checkout-summary/CheckoutSummaryRow.js.map +0 -1
- package/lib/module/checkout-summary/constants.js +0 -63
- package/lib/module/checkout-summary/constants.js.map +0 -1
- package/lib/module/checkout-summary/index.js +0 -8
- package/lib/module/checkout-summary/index.js.map +0 -1
- package/lib/module/checkout-summary/messages.js +0 -20
- package/lib/module/checkout-summary/messages.js.map +0 -1
- package/lib/module/checkout-summary/shared.js +0 -36
- package/lib/module/checkout-summary/shared.js.map +0 -1
- package/lib/module/checkout-summary/types.js +0 -4
- package/lib/module/checkout-summary/types.js.map +0 -1
- package/lib/module/order-confirmation/OrderConfirmation.js +0 -299
- package/lib/module/order-confirmation/OrderConfirmation.js.map +0 -1
- package/lib/module/order-confirmation/constants.js +0 -23
- package/lib/module/order-confirmation/constants.js.map +0 -1
- package/lib/module/order-confirmation/index.js +0 -5
- package/lib/module/order-confirmation/index.js.map +0 -1
- package/lib/module/order-confirmation/messages.js +0 -15
- package/lib/module/order-confirmation/messages.js.map +0 -1
- package/lib/module/order-confirmation/types.js +0 -4
- package/lib/module/order-confirmation/types.js.map +0 -1
- package/lib/module/vendor-card/VendorCard.js +0 -1046
- package/lib/module/vendor-card/VendorCard.js.map +0 -1
- package/lib/module/vendor-card/constants.js +0 -50
- package/lib/module/vendor-card/constants.js.map +0 -1
- package/lib/module/vendor-card/index.js +0 -6
- package/lib/module/vendor-card/index.js.map +0 -1
- package/lib/module/vendor-card/message-helpers.js +0 -18
- package/lib/module/vendor-card/message-helpers.js.map +0 -1
- package/lib/module/vendor-card/messages.js +0 -29
- package/lib/module/vendor-card/messages.js.map +0 -1
- package/lib/module/vendor-card/shared.js +0 -107
- package/lib/module/vendor-card/shared.js.map +0 -1
- package/lib/module/vendor-card/types.js +0 -4
- package/lib/module/vendor-card/types.js.map +0 -1
- package/lib/typescript/commonjs/checkout-summary/CheckoutConfirm.d.ts +0 -40
- package/lib/typescript/commonjs/checkout-summary/CheckoutConfirm.d.ts.map +0 -1
- package/lib/typescript/commonjs/checkout-summary/CheckoutSummary.d.ts +0 -36
- package/lib/typescript/commonjs/checkout-summary/CheckoutSummary.d.ts.map +0 -1
- package/lib/typescript/commonjs/checkout-summary/CheckoutSummaryRow.d.ts +0 -29
- package/lib/typescript/commonjs/checkout-summary/CheckoutSummaryRow.d.ts.map +0 -1
- package/lib/typescript/commonjs/checkout-summary/constants.d.ts +0 -39
- package/lib/typescript/commonjs/checkout-summary/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/checkout-summary/index.d.ts +0 -8
- package/lib/typescript/commonjs/checkout-summary/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/checkout-summary/messages.d.ts +0 -23
- package/lib/typescript/commonjs/checkout-summary/messages.d.ts.map +0 -1
- package/lib/typescript/commonjs/checkout-summary/shared.d.ts +0 -27
- package/lib/typescript/commonjs/checkout-summary/shared.d.ts.map +0 -1
- package/lib/typescript/commonjs/checkout-summary/types.d.ts +0 -147
- package/lib/typescript/commonjs/checkout-summary/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/order-confirmation/OrderConfirmation.d.ts +0 -40
- package/lib/typescript/commonjs/order-confirmation/OrderConfirmation.d.ts.map +0 -1
- package/lib/typescript/commonjs/order-confirmation/constants.d.ts +0 -17
- package/lib/typescript/commonjs/order-confirmation/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/order-confirmation/index.d.ts +0 -4
- package/lib/typescript/commonjs/order-confirmation/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/order-confirmation/messages.d.ts +0 -12
- package/lib/typescript/commonjs/order-confirmation/messages.d.ts.map +0 -1
- package/lib/typescript/commonjs/order-confirmation/types.d.ts +0 -88
- package/lib/typescript/commonjs/order-confirmation/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/vendor-card/VendorCard.d.ts +0 -6
- package/lib/typescript/commonjs/vendor-card/VendorCard.d.ts.map +0 -1
- package/lib/typescript/commonjs/vendor-card/constants.d.ts +0 -30
- package/lib/typescript/commonjs/vendor-card/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/vendor-card/index.d.ts +0 -5
- package/lib/typescript/commonjs/vendor-card/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/vendor-card/message-helpers.d.ts +0 -13
- package/lib/typescript/commonjs/vendor-card/message-helpers.d.ts.map +0 -1
- package/lib/typescript/commonjs/vendor-card/messages.d.ts +0 -22
- package/lib/typescript/commonjs/vendor-card/messages.d.ts.map +0 -1
- package/lib/typescript/commonjs/vendor-card/shared.d.ts +0 -24
- package/lib/typescript/commonjs/vendor-card/shared.d.ts.map +0 -1
- package/lib/typescript/commonjs/vendor-card/types.d.ts +0 -111
- package/lib/typescript/commonjs/vendor-card/types.d.ts.map +0 -1
- package/lib/typescript/module/checkout-summary/CheckoutConfirm.d.ts +0 -40
- package/lib/typescript/module/checkout-summary/CheckoutConfirm.d.ts.map +0 -1
- package/lib/typescript/module/checkout-summary/CheckoutSummary.d.ts +0 -36
- package/lib/typescript/module/checkout-summary/CheckoutSummary.d.ts.map +0 -1
- package/lib/typescript/module/checkout-summary/CheckoutSummaryRow.d.ts +0 -29
- package/lib/typescript/module/checkout-summary/CheckoutSummaryRow.d.ts.map +0 -1
- package/lib/typescript/module/checkout-summary/constants.d.ts +0 -39
- package/lib/typescript/module/checkout-summary/constants.d.ts.map +0 -1
- package/lib/typescript/module/checkout-summary/index.d.ts +0 -8
- package/lib/typescript/module/checkout-summary/index.d.ts.map +0 -1
- package/lib/typescript/module/checkout-summary/messages.d.ts +0 -23
- package/lib/typescript/module/checkout-summary/messages.d.ts.map +0 -1
- package/lib/typescript/module/checkout-summary/shared.d.ts +0 -27
- package/lib/typescript/module/checkout-summary/shared.d.ts.map +0 -1
- package/lib/typescript/module/checkout-summary/types.d.ts +0 -147
- package/lib/typescript/module/checkout-summary/types.d.ts.map +0 -1
- package/lib/typescript/module/order-confirmation/OrderConfirmation.d.ts +0 -40
- package/lib/typescript/module/order-confirmation/OrderConfirmation.d.ts.map +0 -1
- package/lib/typescript/module/order-confirmation/constants.d.ts +0 -17
- package/lib/typescript/module/order-confirmation/constants.d.ts.map +0 -1
- package/lib/typescript/module/order-confirmation/index.d.ts +0 -4
- package/lib/typescript/module/order-confirmation/index.d.ts.map +0 -1
- package/lib/typescript/module/order-confirmation/messages.d.ts +0 -12
- package/lib/typescript/module/order-confirmation/messages.d.ts.map +0 -1
- package/lib/typescript/module/order-confirmation/types.d.ts +0 -88
- package/lib/typescript/module/order-confirmation/types.d.ts.map +0 -1
- package/lib/typescript/module/vendor-card/VendorCard.d.ts +0 -6
- package/lib/typescript/module/vendor-card/VendorCard.d.ts.map +0 -1
- package/lib/typescript/module/vendor-card/constants.d.ts +0 -30
- package/lib/typescript/module/vendor-card/constants.d.ts.map +0 -1
- package/lib/typescript/module/vendor-card/index.d.ts +0 -5
- package/lib/typescript/module/vendor-card/index.d.ts.map +0 -1
- package/lib/typescript/module/vendor-card/message-helpers.d.ts +0 -13
- package/lib/typescript/module/vendor-card/message-helpers.d.ts.map +0 -1
- package/lib/typescript/module/vendor-card/messages.d.ts +0 -22
- package/lib/typescript/module/vendor-card/messages.d.ts.map +0 -1
- package/lib/typescript/module/vendor-card/shared.d.ts +0 -24
- package/lib/typescript/module/vendor-card/shared.d.ts.map +0 -1
- package/lib/typescript/module/vendor-card/types.d.ts +0 -111
- package/lib/typescript/module/vendor-card/types.d.ts.map +0 -1
- package/src/checkout-summary/CheckoutConfirm.tsx +0 -119
- package/src/checkout-summary/CheckoutSummary.tsx +0 -221
- package/src/checkout-summary/CheckoutSummaryRow.tsx +0 -172
- package/src/checkout-summary/constants.ts +0 -64
- package/src/checkout-summary/index.ts +0 -22
- package/src/checkout-summary/messages.ts +0 -33
- package/src/checkout-summary/shared.ts +0 -40
- package/src/checkout-summary/types.ts +0 -152
- package/src/order-confirmation/OrderConfirmation.tsx +0 -197
- package/src/order-confirmation/constants.ts +0 -20
- package/src/order-confirmation/index.ts +0 -12
- package/src/order-confirmation/messages.ts +0 -18
- package/src/order-confirmation/types.ts +0 -98
- package/src/vendor-card/VendorCard.tsx +0 -509
- package/src/vendor-card/constants.ts +0 -58
- package/src/vendor-card/index.ts +0 -15
- package/src/vendor-card/message-helpers.ts +0 -20
- package/src/vendor-card/messages.ts +0 -36
- package/src/vendor-card/shared.ts +0 -136
- package/src/vendor-card/types.ts +0 -115
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import type { AddressKind } from '../address';
|
|
4
|
-
import type { BloomIconComponent } from '../icons/icon-component';
|
|
5
|
-
import type { PriceSummaryProps } from '../price-breakdown';
|
|
6
|
-
/**
|
|
7
|
-
* ONE row of the review: what was chosen, and the thing that changes it.
|
|
8
|
-
*
|
|
9
|
-
* The row is the summary AND the trigger. A label with a "Change" button beside
|
|
10
|
-
* it gives a reader two targets for one decision and a screen reader two stops
|
|
11
|
-
* that do not mention each other; here the whole row is the button, its name is
|
|
12
|
-
* "<label>: <value>", and the chevron is decoration.
|
|
13
|
-
*/
|
|
14
|
-
export interface CheckoutSummaryLine {
|
|
15
|
-
/** Stable key. Defaults to the index. */
|
|
16
|
-
id?: string;
|
|
17
|
-
/** What the row is FOR — "Delivery window", "Note for the shop". */
|
|
18
|
-
label: string;
|
|
19
|
-
/** The glyph in the leading tile. */
|
|
20
|
-
icon?: BloomIconComponent;
|
|
21
|
-
/**
|
|
22
|
-
* The chosen value, PRE-FORMATTED — "Today, 17:00 – 19:00", "€24.80". This
|
|
23
|
-
* family formats no dates and no money.
|
|
24
|
-
*/
|
|
25
|
-
value?: string;
|
|
26
|
-
/** Drawn in place of the value while nothing is chosen. Default `"Not chosen yet"`. */
|
|
27
|
-
placeholder?: string;
|
|
28
|
-
/** A quieter third line — "Standard delivery", "Leave at the door". */
|
|
29
|
-
detail?: string;
|
|
30
|
-
/** A node beside the value — a `Badge` ("Free"), a `Chip`. */
|
|
31
|
-
badge?: ReactNode;
|
|
32
|
-
/** Opens whatever changes this row. Without it the row is a static summary. */
|
|
33
|
-
onPress?: () => void;
|
|
34
|
-
disabled?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* What pressing the row does, announced as the row's hint. Default
|
|
37
|
-
* `"Opens the picker"`; it is a HINT and not part of the name, so a reader
|
|
38
|
-
* scanning the summary hears the values rather than "Change" five times.
|
|
39
|
-
*/
|
|
40
|
-
accessibilityHint?: string;
|
|
41
|
-
/** Defaults to `"<label>: <value>"`. */
|
|
42
|
-
accessibilityLabel?: string;
|
|
43
|
-
testID?: string;
|
|
44
|
-
}
|
|
45
|
-
export interface CheckoutSummaryRowProps extends CheckoutSummaryLine {
|
|
46
|
-
/**
|
|
47
|
-
* Replaces the value/detail column — an `AddressRow`, a two-line receipt, a
|
|
48
|
-
* row of chips. The label and the chevron stay.
|
|
49
|
-
*/
|
|
50
|
-
content?: ReactNode;
|
|
51
|
-
/**
|
|
52
|
-
* An arbitrary leading node instead of the glyph tile. Read for PRESENCE:
|
|
53
|
-
* `leading={null}` draws no media at all.
|
|
54
|
-
*/
|
|
55
|
-
leading?: ReactNode;
|
|
56
|
-
style?: StyleProp<ViewStyle>;
|
|
57
|
-
}
|
|
58
|
-
/** The "where it goes" row, drawn with `address`'s own `AddressRow`. */
|
|
59
|
-
export interface CheckoutAddressSummary {
|
|
60
|
-
/** Default `"Deliver to"`. */
|
|
61
|
-
label?: string;
|
|
62
|
-
/** The line the place is recognised by — "Home", "Carrer de l’Om 14". */
|
|
63
|
-
title: string;
|
|
64
|
-
/** The rest of it — "Carrer de l’Om 14, 2nd floor". */
|
|
65
|
-
subtitle?: string;
|
|
66
|
-
/** Chooses the glyph in the row's tile. Default `place`. */
|
|
67
|
-
kind?: AddressKind;
|
|
68
|
-
/** The glyph, overriding whatever `kind` would have chosen. */
|
|
69
|
-
icon?: BloomIconComponent;
|
|
70
|
-
/** A node after the title — a `Badge` ("Default"). */
|
|
71
|
-
badge?: ReactNode;
|
|
72
|
-
/** Opens the address picker. */
|
|
73
|
-
onPress?: () => void;
|
|
74
|
-
disabled?: boolean;
|
|
75
|
-
accessibilityHint?: string;
|
|
76
|
-
testID?: string;
|
|
77
|
-
}
|
|
78
|
-
export interface CheckoutConfirmProps {
|
|
79
|
-
/** Default `"Place order"`. */
|
|
80
|
-
label?: string;
|
|
81
|
-
/**
|
|
82
|
-
* The amount the press commits to, PRE-FORMATTED, drawn on the button after
|
|
83
|
-
* the label. It is on the BUTTON rather than beside it because the number a
|
|
84
|
-
* press commits to and the press are one decision.
|
|
85
|
-
*/
|
|
86
|
-
amount?: string;
|
|
87
|
-
/**
|
|
88
|
-
* A second, PRE-FORMATTED rendering of `amount` — the buyer's currency beside
|
|
89
|
-
* the shop's, `"≈ 12,00 €"` — drawn de-emphasised, centred under the button.
|
|
90
|
-
* Named like `PriceLine.secondaryAmount`; drawn as given, nothing converts.
|
|
91
|
-
*/
|
|
92
|
-
secondaryAmount?: string;
|
|
93
|
-
/**
|
|
94
|
-
* The terms line under the button — a string, or a node with links in it.
|
|
95
|
-
* `null` draws none.
|
|
96
|
-
*/
|
|
97
|
-
terms?: ReactNode;
|
|
98
|
-
/** Called at most once per busy cycle. */
|
|
99
|
-
onConfirm?: () => void;
|
|
100
|
-
disabled?: boolean;
|
|
101
|
-
/**
|
|
102
|
-
* The order is being placed: spinner, and every further press is dropped.
|
|
103
|
-
*
|
|
104
|
-
* The component ALSO latches on its own press, because the app's `busy`
|
|
105
|
-
* arrives a render later and the second tap of a double-tap lands inside that
|
|
106
|
-
* window. The latch clears when `busy` goes back to `false`.
|
|
107
|
-
*/
|
|
108
|
-
busy?: boolean;
|
|
109
|
-
/** Announced while busy, in place of the button's own name. Default `"Placing your order"`. */
|
|
110
|
-
busyLabel?: string;
|
|
111
|
-
/** Under the terms line — "Cancel", a help link. */
|
|
112
|
-
footer?: ReactNode;
|
|
113
|
-
style?: StyleProp<ViewStyle>;
|
|
114
|
-
testID?: string;
|
|
115
|
-
}
|
|
116
|
-
export interface CheckoutSummaryProps {
|
|
117
|
-
/** The heading above the rows. `null` draws none. */
|
|
118
|
-
title?: string | null;
|
|
119
|
-
/** Where it goes. */
|
|
120
|
-
address?: CheckoutAddressSummary;
|
|
121
|
-
/** When it comes. */
|
|
122
|
-
delivery?: CheckoutSummaryLine;
|
|
123
|
-
/**
|
|
124
|
-
* How it is paid — a SLOT, because the payment-method row is its own family.
|
|
125
|
-
* Anything that renders as a row goes here; `CheckoutSummaryRow` is exported
|
|
126
|
-
* so an app with no payment family yet can draw one in the same register.
|
|
127
|
-
*/
|
|
128
|
-
payment?: ReactNode;
|
|
129
|
-
/** The note to the seller. */
|
|
130
|
-
note?: CheckoutSummaryLine;
|
|
131
|
-
/** Anything else this order needs a decision about, appended after the note. */
|
|
132
|
-
extras?: readonly CheckoutSummaryLine[];
|
|
133
|
-
/**
|
|
134
|
-
* What it costs — `price-breakdown`'s `PriceSummary`, passed through. There
|
|
135
|
-
* is no second breakdown in this family and no arithmetic anywhere.
|
|
136
|
-
*/
|
|
137
|
-
price?: PriceSummaryProps;
|
|
138
|
-
/** The confirm control under the totals. */
|
|
139
|
-
confirm?: CheckoutConfirmProps;
|
|
140
|
-
/** Between the rows and the totals — a promo field, a tip picker. */
|
|
141
|
-
children?: ReactNode;
|
|
142
|
-
/** Names the summary. Default the title, then `"Order summary"`. */
|
|
143
|
-
accessibilityLabel?: string;
|
|
144
|
-
style?: StyleProp<ViewStyle>;
|
|
145
|
-
testID?: string;
|
|
146
|
-
}
|
|
147
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/checkout-summary/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,yCAAyC;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uFAAuF;IACvF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wCAAwC;IACxC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IAClE;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wEAAwE;AACxE,MAAM,WAAW,sBAAsB;IACrC,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,sDAAsD;IACtD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,gCAAgC;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,+FAA+F;IAC/F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,qBAAqB;IACrB,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,qBAAqB;IACrB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,gFAAgF;IAChF,MAAM,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACxC;;;OAGG;IACH,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,4CAA4C;IAC5C,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,qEAAqE;IACrE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { OrderConfirmationProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* It is placed: what happened, which order it was, where it is going, what it
|
|
5
|
-
* cost, and the two things you do next.
|
|
6
|
-
*
|
|
7
|
-
* mark a check on a success-tinted disc, 56. STATIC: `AnimatedCheck`
|
|
8
|
-
* draws itself on only when a caller kicks it through its ref, and
|
|
9
|
-
* a mark that is invisible until someone calls a method — or under
|
|
10
|
-
* reduce-motion — is not a mark. An app that wants the draw-on
|
|
11
|
-
* passes `<AnimatedCheck>` (and its `play()`) as `mark`.
|
|
12
|
-
* title the "done" register — `EmptyState`'s own heading and line, which
|
|
13
|
-
* is the same block `auth-card` and every finished flow draw
|
|
14
|
-
* reference the order number as an outlined `Chip`, under its caption; it is
|
|
15
|
-
* a chip because it is the one string a reader will read back to
|
|
16
|
-
* someone on the phone, and a chip is the library's token
|
|
17
|
-
* status `order-status`'s `OrderStatusBar` — the ONE tracking strip in the
|
|
18
|
-
* library, drawn here rather than copied
|
|
19
|
-
* address `address`'s `AddressRow`, flush with the block's edges
|
|
20
|
-
* facts the label/value box Bloom's action cards already draw
|
|
21
|
-
* items a slot: an order line is a dish, a parcel or a seat, and each has
|
|
22
|
-
* a row family of its own
|
|
23
|
-
* actions track it, get help
|
|
24
|
-
*
|
|
25
|
-
* ## It IS an `EmptyState`
|
|
26
|
-
*
|
|
27
|
-
* Not "looks like one": a mark, a heading, a line of explanation, a block of
|
|
28
|
-
* content and up to two actions is exactly that family's shape, and a "done"
|
|
29
|
-
* screen is the same object as a "nothing here" screen with a different reason
|
|
30
|
-
* for existing. Building it a second time is how two centred columns with
|
|
31
|
-
* different paddings ship in one library.
|
|
32
|
-
*
|
|
33
|
-
* ## It computes nothing
|
|
34
|
-
*
|
|
35
|
-
* Every amount, every time and every reading is a string the app formatted.
|
|
36
|
-
*/
|
|
37
|
-
declare function OrderConfirmationComponent({ title: titleProp, description, mark, markSize, reference, referenceLabel: referenceLabelProp, status, address, facts, items, itemsLabel: itemsLabelProp, action, secondaryAction, footer, variant, accessibilityLabel, style, testID, }: OrderConfirmationProps): React.JSX.Element;
|
|
38
|
-
export declare const OrderConfirmation: React.MemoExoticComponent<typeof OrderConfirmationComponent>;
|
|
39
|
-
export {};
|
|
40
|
-
//# sourceMappingURL=OrderConfirmation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrderConfirmation.d.ts","sourceRoot":"","sources":["../../../../src/order-confirmation/OrderConfirmation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAiB7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAStD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,iBAAS,0BAA0B,CAAC,EAClC,KAAK,EAAE,SAAS,EAChB,WAAW,EACX,IAAI,EACJ,QAAkC,EAClC,SAAS,EACT,cAAc,EAAE,kBAAkB,EAClC,MAAM,EACN,OAAO,EACP,KAAK,EACL,KAAK,EACL,UAAU,EAAE,cAAc,EAC1B,MAAM,EACN,eAAe,EACf,MAAM,EACN,OAAuB,EACvB,kBAAkB,EAClB,KAAK,EACL,MAAM,GACP,EAAE,sBAAsB,qBAkHxB;AAED,eAAO,MAAM,iBAAiB,8DAAmC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The English words the confirmation says when the app says nothing. The
|
|
3
|
-
* component itself says them in the app's language (`ORDER_CONFIRMATION_MESSAGES`).
|
|
4
|
-
*/
|
|
5
|
-
export declare const ORDER_CONFIRMATION_TITLE: string;
|
|
6
|
-
export declare const ORDER_CONFIRMATION_REFERENCE_LABEL: string;
|
|
7
|
-
export declare const ORDER_CONFIRMATION_ITEMS_LABEL: string;
|
|
8
|
-
/**
|
|
9
|
-
* The drawn-on check. 56 is the size at which the 4px stroke of
|
|
10
|
-
* `AnimatedCheck`'s 52-unit canvas reads as a mark rather than as an icon —
|
|
11
|
-
* below ~40 it looks like a status glyph, which is the opposite of what a
|
|
12
|
-
* finished flow is saying.
|
|
13
|
-
*/
|
|
14
|
-
export declare const ORDER_CONFIRMATION_MARK = 56;
|
|
15
|
-
/** Between the blocks of the receipt. */
|
|
16
|
-
export declare const ORDER_CONFIRMATION_GAP = 16;
|
|
17
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/order-confirmation/constants.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,wBAAwB,QAAuC,CAAC;AAC7E,eAAO,MAAM,kCAAkC,QAAgD,CAAC;AAChG,eAAO,MAAM,8BAA8B,QAA4C,CAAC;AAExF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C,yCAAyC;AACzC,eAAO,MAAM,sBAAsB,KAAK,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { OrderConfirmation } from './OrderConfirmation';
|
|
2
|
-
export { ORDER_CONFIRMATION_ITEMS_LABEL, ORDER_CONFIRMATION_MARK, ORDER_CONFIRMATION_REFERENCE_LABEL, ORDER_CONFIRMATION_TITLE, } from './constants';
|
|
3
|
-
export type { OrderConfirmationAddress, OrderConfirmationFact, OrderConfirmationProps, } from './types';
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/order-confirmation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,EACvB,kCAAkC,EAClC,wBAAwB,GACzB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,SAAS,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type MessageCatalog } from '../locale/messages';
|
|
2
|
-
/**
|
|
3
|
-
* The words the confirmation says when the app says nothing, in each Bloom
|
|
4
|
-
* language. The `title`, `referenceLabel` and `itemsLabel` props still win.
|
|
5
|
-
*/
|
|
6
|
-
export interface OrderConfirmationMessages {
|
|
7
|
-
title: string;
|
|
8
|
-
referenceLabel: string;
|
|
9
|
-
itemsLabel: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const ORDER_CONFIRMATION_MESSAGES: MessageCatalog<OrderConfirmationMessages>;
|
|
12
|
-
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../src/order-confirmation/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzE;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,2BAA2B,EAAE,cAAc,CAAC,yBAAyB,CAK9E,CAAC"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import type { AddressKind } from '../address';
|
|
4
|
-
import type { EmptyStateAction, EmptyStateVariant } from '../empty-state';
|
|
5
|
-
import type { BloomIconComponent } from '../icons/icon-component';
|
|
6
|
-
import type { OrderStatusBarProps } from '../order-status';
|
|
7
|
-
/**
|
|
8
|
-
* One reading of the receipt: when it arrives, what was charged, who is
|
|
9
|
-
* bringing it.
|
|
10
|
-
*
|
|
11
|
-
* `value` is PRE-FORMATTED, like every string in this family — a time, an
|
|
12
|
-
* amount, a courier's name. Nothing here reads a clock or adds a number.
|
|
13
|
-
*/
|
|
14
|
-
export interface OrderConfirmationFact {
|
|
15
|
-
/** Stable key. Defaults to the label. */
|
|
16
|
-
id?: string;
|
|
17
|
-
/** "Arrives", "Paid with", "Courier". */
|
|
18
|
-
label: string;
|
|
19
|
-
/** "Today, 17:00 – 19:00", "•••• 4417", "Mireia". */
|
|
20
|
-
value: string;
|
|
21
|
-
}
|
|
22
|
-
/** Where it is going, drawn with `address`'s own `AddressRow`. */
|
|
23
|
-
export interface OrderConfirmationAddress {
|
|
24
|
-
/** The line the place is recognised by — "Home". */
|
|
25
|
-
title: string;
|
|
26
|
-
/** The rest of it. */
|
|
27
|
-
subtitle?: string;
|
|
28
|
-
/** Chooses the glyph. Default `place`. */
|
|
29
|
-
kind?: AddressKind;
|
|
30
|
-
/** The glyph, overriding whatever `kind` would have chosen. */
|
|
31
|
-
icon?: BloomIconComponent;
|
|
32
|
-
/** A node after the title — a `Badge`. */
|
|
33
|
-
badge?: ReactNode;
|
|
34
|
-
/** A short trailing reading — "1.2 km". */
|
|
35
|
-
meta?: string;
|
|
36
|
-
testID?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface OrderConfirmationProps {
|
|
39
|
-
/** Default `"Your order is placed"`. */
|
|
40
|
-
title?: string;
|
|
41
|
-
/** The line under it — "We have sent the receipt to your inbox." */
|
|
42
|
-
description?: string;
|
|
43
|
-
/**
|
|
44
|
-
* The mark above the title. Default a check on a success-tinted disc — a
|
|
45
|
-
* STATIC one, because `AnimatedCheck` draws itself on only when a caller
|
|
46
|
-
* kicks it through its ref, and a mark nobody can see until a method runs is
|
|
47
|
-
* not a mark. Pass `<AnimatedCheck>` (played by your own ref) for the
|
|
48
|
-
* draw-on, a brand mark, or `null` for none.
|
|
49
|
-
*/
|
|
50
|
-
mark?: ReactNode;
|
|
51
|
-
/** The default mark's box. Default 56. */
|
|
52
|
-
markSize?: number;
|
|
53
|
-
/** The order's own number — "A-4821". PRE-FORMATTED, including any prefix. */
|
|
54
|
-
reference?: string;
|
|
55
|
-
/** The caption above it. Default `"Order number"`. */
|
|
56
|
-
referenceLabel?: string;
|
|
57
|
-
/**
|
|
58
|
-
* The tracking strip — `order-status`'s `OrderStatusBar`, passed straight
|
|
59
|
-
* through. This family draws no second one: "where it is right now" has one
|
|
60
|
-
* component in the library and this is a place that shows it.
|
|
61
|
-
*/
|
|
62
|
-
status?: OrderStatusBarProps;
|
|
63
|
-
/** Where it goes. */
|
|
64
|
-
address?: OrderConfirmationAddress;
|
|
65
|
-
/** When it arrives, what was charged, and anything else worth reading back. */
|
|
66
|
-
facts?: readonly OrderConfirmationFact[];
|
|
67
|
-
/**
|
|
68
|
-
* What was ordered, in full — the basket's own rows, rendered by the app.
|
|
69
|
-
* A slot rather than data: a line of an order is a dish, a parcel or a seat
|
|
70
|
-
* depending on the app, and each already has a row family of its own.
|
|
71
|
-
*/
|
|
72
|
-
items?: ReactNode;
|
|
73
|
-
/** The caption above `items`. Default `"What you ordered"`. */
|
|
74
|
-
itemsLabel?: string;
|
|
75
|
-
/** The first thing you do next — normally "Track order". */
|
|
76
|
-
action?: EmptyStateAction;
|
|
77
|
-
/** The other one — normally "Get help". */
|
|
78
|
-
secondaryAction?: EmptyStateAction;
|
|
79
|
-
/** Under the actions — a "Back to the shop" link, a note. */
|
|
80
|
-
footer?: ReactNode;
|
|
81
|
-
/** Default `comfortable`. `compact` is the panel rung. */
|
|
82
|
-
variant?: EmptyStateVariant;
|
|
83
|
-
/** Names the whole surface. Defaults to the title and the reference. */
|
|
84
|
-
accessibilityLabel?: string;
|
|
85
|
-
style?: StyleProp<ViewStyle>;
|
|
86
|
-
testID?: string;
|
|
87
|
-
}
|
|
88
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/order-confirmation/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC,yCAAyC;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,kEAAkE;AAClE,MAAM,WAAW,wBAAwB;IACvC,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,0CAA0C;IAC1C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAE7B,qBAAqB;IACrB,OAAO,CAAC,EAAE,wBAAwB,CAAC;IAEnC,+EAA+E;IAC/E,KAAK,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAEzC;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,2CAA2C;IAC3C,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,6DAA6D;IAC7D,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { VendorCardProps } from './types';
|
|
3
|
-
declare function VendorCardComponent(props: VendorCardProps): React.JSX.Element;
|
|
4
|
-
export declare const VendorCard: React.MemoExoticComponent<typeof VendorCardComponent>;
|
|
5
|
-
export {};
|
|
6
|
-
//# sourceMappingURL=VendorCard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VendorCard.d.ts","sourceRoot":"","sources":["../../../../src/vendor-card/VendorCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AA+C7C,OAAO,KAAK,EAAqB,eAAe,EAAE,MAAM,SAAS,CAAC;AAwPlE,iBAAS,mBAAmB,CAAC,KAAK,EAAE,eAAe,qBAkNlD;AAED,eAAO,MAAM,UAAU,uDAA4B,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { BloomIconComponent } from '../icons/icon-component';
|
|
2
|
-
import type { VendorAvailability, VendorCardDensity, VendorFactKey } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* The cover's shape in the comfortable density. 16:9 rather than the 20:19 a
|
|
5
|
-
* home is drawn at: a shelf of vendors is scanned SIDEWAYS, and a near-square
|
|
6
|
-
* cover at shelf width pushes the name off the first screen.
|
|
7
|
-
*/
|
|
8
|
-
export declare const VENDOR_PHOTO_ASPECT_RATIO: number;
|
|
9
|
-
/** The readings, in the order the fact row draws them. */
|
|
10
|
-
export declare const VENDOR_FACT_ORDER: readonly VendorFactKey[];
|
|
11
|
-
/**
|
|
12
|
-
* The glyph beside each reading. A bike for the fee because the fee is what the
|
|
13
|
-
* ride costs; a walker for distance, which is the one reading that is about the
|
|
14
|
-
* reader's own position rather than the order's.
|
|
15
|
-
*/
|
|
16
|
-
export declare const VENDOR_FACT_ICON: Record<VendorFactKey, BloomIconComponent>;
|
|
17
|
-
/**
|
|
18
|
-
* The word said before each reading in the card's accessible name, in English.
|
|
19
|
-
* The card itself speaks `VENDOR_CARD_MESSAGES` in the resolved locale.
|
|
20
|
-
*/
|
|
21
|
-
export declare const VENDOR_FACT_LABELS: Record<VendorFactKey, string>;
|
|
22
|
-
/** The English status pill labels. `open` draws none. The card speaks the resolved locale's. */
|
|
23
|
-
export declare const VENDOR_AVAILABILITY_LABELS: Record<Exclude<VendorAvailability, 'open'>, string>;
|
|
24
|
-
/** The cuisine pills' rung: 24 tall, caption weight — the densest pill Bloom has. */
|
|
25
|
-
export declare const VENDOR_CUISINE_CHIP_HEIGHT = 24;
|
|
26
|
-
/** Space between the cover and the text, and between the text lines. */
|
|
27
|
-
export declare const VENDOR_TEXT_GAP = 12;
|
|
28
|
-
/** How many cuisines are drawn at all. Past this the row is a list, not a mark. */
|
|
29
|
-
export declare const VENDOR_CUISINE_LIMIT: Record<VendorCardDensity, number>;
|
|
30
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/vendor-card/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAMlE,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEpF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,QAAS,CAAC;AAEhD,0DAA0D;AAC1D,eAAO,MAAM,iBAAiB,EAAE,SAAS,aAAa,EAKrD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,aAAa,EAAE,kBAAkB,CAKtE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAAiC,CAAC;AAE/F,gGAAgG;AAChG,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAC7C,OAAO,CAAC,kBAAkB,EAAE,MAAM,CAAC,EACnC,MAAM,CACgC,CAAC;AAEzC,qFAAqF;AACrF,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAE7C,wEAAwE;AACxE,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAGlE,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { VendorCard } from './VendorCard';
|
|
2
|
-
export { VENDOR_AVAILABILITY_LABELS, VENDOR_FACT_ICON, VENDOR_FACT_LABELS, VENDOR_FACT_ORDER, VENDOR_PHOTO_ASPECT_RATIO, } from './constants';
|
|
3
|
-
export { availabilityLabelFor, composeVendorName, vendorCuisines, vendorFacts } from './shared';
|
|
4
|
-
export type { VendorAvailability, VendorCardDensity, VendorCardProps, VendorFactKey, } from './types';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/vendor-card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACL,0BAA0B,EAC1B,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAChG,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,aAAa,GACd,MAAM,SAAS,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Helpers the vendor-card catalog's strings share across languages.
|
|
3
|
-
* Kept apart from `messages.ts` so a language module can use them without
|
|
4
|
-
* linking the family's English strings (see `src/locale/translations`).
|
|
5
|
-
*/
|
|
6
|
-
import type { BloomLanguage } from '../locale/languages';
|
|
7
|
-
import { type PluralCategory } from '../locale/plural';
|
|
8
|
-
/** A count the app may hand over as a number or as its own text ("1.2k"). */
|
|
9
|
-
export declare function counted(language: BloomLanguage, count: number | string, forms: Partial<Record<PluralCategory, string>> & {
|
|
10
|
-
other: string;
|
|
11
|
-
}): string;
|
|
12
|
-
export declare const has: (reviews: number | string | undefined) => reviews is number | string;
|
|
13
|
-
//# sourceMappingURL=message-helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message-helpers.d.ts","sourceRoot":"","sources":["../../../../src/vendor-card/message-helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,kBAAkB,CAAC;AAE/E,6EAA6E;AAC7E,wBAAgB,OAAO,CACrB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GACjE,MAAM,CAIR;AACD,eAAO,MAAM,GAAG,GAAI,SAAS,MAAM,GAAG,MAAM,GAAG,SAAS,KAAG,OAAO,IAAI,MAAM,GAAG,MAC5C,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type MessageCatalog } from '../locale/messages';
|
|
2
|
-
import type { VendorAvailability, VendorFactKey } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Every fixed string the vendor card draws or announces, in each Bloom
|
|
5
|
-
* language. A caller's `factLabels`, `availabilityLabel`, `newLabel` and
|
|
6
|
-
* `accessibilityLabel` still win over any entry here.
|
|
7
|
-
*/
|
|
8
|
-
export interface VendorCardMessages {
|
|
9
|
-
/** The word said before each reading in the card's accessible name. */
|
|
10
|
-
facts: Record<VendorFactKey, string>;
|
|
11
|
-
/** The status pill. `open` draws none. */
|
|
12
|
-
availability: Record<Exclude<VendorAvailability, 'open'>, string>;
|
|
13
|
-
/** An unrated vendor's mark. */
|
|
14
|
-
new: string;
|
|
15
|
-
/**
|
|
16
|
-
* The rating in the card's accessible name: "Rated 4.8 out of 5, 214
|
|
17
|
-
* reviews". `reviews` is the app's count, a number or pre-formatted text.
|
|
18
|
-
*/
|
|
19
|
-
rated: (value: string, reviews?: number | string) => string;
|
|
20
|
-
}
|
|
21
|
-
export declare const VENDOR_CARD_MESSAGES: MessageCatalog<VendorCardMessages>;
|
|
22
|
-
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../src/vendor-card/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGjE;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACrC,0CAA0C;IAC1C,YAAY,EAAE,MAAM,CAAC,OAAO,CAAC,kBAAkB,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IAClE,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,CAAC;CAC7D;AAED,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,kBAAkB,CAYhE,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { ListingFact } from '../listing-card/types';
|
|
2
|
-
import { type VendorCardMessages } from './messages';
|
|
3
|
-
import type { VendorAvailability, VendorCardDensity, VendorCardProps } from './types';
|
|
4
|
-
/** The status pill's label, or `null` for a vendor that is taking orders. */
|
|
5
|
-
export declare function availabilityLabelFor(availability: VendorAvailability | undefined, override?: string, messages?: VendorCardMessages): string | null;
|
|
6
|
-
/**
|
|
7
|
-
* The readings the fact row draws, in {@link VENDOR_FACT_ORDER}, skipping the
|
|
8
|
-
* ones the app did not give. Each carries the glyph it is drawn with and the
|
|
9
|
-
* words it is ANNOUNCED with, which are not the same string: "€1.90" beside a
|
|
10
|
-
* bike reads as a fee to an eye and as a price to a screen reader.
|
|
11
|
-
*/
|
|
12
|
-
export declare function vendorFacts(props: Pick<VendorCardProps, 'deliveryTime' | 'deliveryFee' | 'distance' | 'minimumOrder' | 'factLabels'>, messages?: VendorCardMessages): ListingFact[];
|
|
13
|
-
/** The cuisines actually drawn: the first few, de-duplicated, in the order given. */
|
|
14
|
-
export declare function vendorCuisines(cuisines: ReadonlyArray<string> | undefined, density: VendorCardDensity): string[];
|
|
15
|
-
/**
|
|
16
|
-
* The whole card as one sentence, in the order it is read on screen. EVERY
|
|
17
|
-
* cuisine is in it, including the ones the clipped row dropped — the row drops
|
|
18
|
-
* pills because it ran out of width, which is not a reason to withhold them
|
|
19
|
-
* from someone who is listening rather than looking.
|
|
20
|
-
*/
|
|
21
|
-
export declare function composeVendorName(props: VendorCardProps, messages?: VendorCardMessages): string;
|
|
22
|
-
export declare const VENDOR_CARD_STYLE_ID = "bloom-vendor-card-web-css";
|
|
23
|
-
export declare const VENDOR_CARD_CSS = "\n[data-bloom-vendor-card-link] {\n outline: none;\n text-decoration: none;\n color: inherit;\n}\n[data-bloom-vendor-card-link]:focus-visible {\n outline: 2px solid var(--bloom-vendor-card-ring, currentColor);\n outline-offset: 4px;\n border-radius: 20px;\n}\n";
|
|
24
|
-
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/vendor-card/shared.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGzD,OAAO,EAAwB,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC3E,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EAEhB,MAAM,SAAS,CAAC;AAEjB,6EAA6E;AAC7E,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,kBAAkB,GAAG,SAAS,EAC5C,QAAQ,CAAC,EAAE,MAAM,EACjB,QAAQ,GAAE,kBAA4C,GACrD,MAAM,GAAG,IAAI,CAGf;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,IAAI,CACT,eAAe,EACf,cAAc,GAAG,aAAa,GAAG,UAAU,GAAG,cAAc,GAAG,YAAY,CAC5E,EACD,QAAQ,GAAE,kBAA4C,GACrD,WAAW,EAAE,CAmBf;AAED,qFAAqF;AACrF,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,SAAS,EAC3C,OAAO,EAAE,iBAAiB,GACzB,MAAM,EAAE,CAMV;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,eAAe,EACtB,QAAQ,GAAE,kBAA4C,GACrD,MAAM,CAoBR;AAYD,eAAO,MAAM,oBAAoB,8BAA8B,CAAC;AAIhE,eAAO,MAAM,eAAe,+QAW3B,CAAC"}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
import type { AccentTone } from '../theme/accent-colors';
|
|
3
|
-
/**
|
|
4
|
-
* Whether you can order from this vendor right now.
|
|
5
|
-
*
|
|
6
|
-
* `open` draws nothing at all. `paused` is a vendor that is open but has
|
|
7
|
-
* stopped taking orders for a while (a kitchen that is under water); `closed`
|
|
8
|
-
* is outside its hours. Both wash the cover toward the page and draw a status
|
|
9
|
-
* pill, because the difference the reader acts on is "not now", and the two
|
|
10
|
-
* words are what say which kind of "not now" it is.
|
|
11
|
-
*/
|
|
12
|
-
export type VendorAvailability = 'open' | 'paused' | 'closed';
|
|
13
|
-
/**
|
|
14
|
-
* `comfortable` is the wide card that sits in a shelf of vendors; `compact` is
|
|
15
|
-
* the dense row a search result is drawn as. ONE component, because the DATA is
|
|
16
|
-
* the same and a screen that switches at a breakpoint must not switch
|
|
17
|
-
* components.
|
|
18
|
-
*/
|
|
19
|
-
export type VendorCardDensity = 'comfortable' | 'compact';
|
|
20
|
-
/**
|
|
21
|
-
* The four readings a vendor card can carry, in the order it draws them. Each
|
|
22
|
-
* arrives PRE-FORMATTED — "25–35 min", "€1.90", "Free", "1.2 km", "€12" — and
|
|
23
|
-
* nothing here parses, converts or adds up any of them.
|
|
24
|
-
*/
|
|
25
|
-
export type VendorFactKey = 'deliveryTime' | 'deliveryFee' | 'distance' | 'minimumOrder';
|
|
26
|
-
export interface VendorCardProps {
|
|
27
|
-
/** The vendor's name. One line, truncated. */
|
|
28
|
-
name: string;
|
|
29
|
-
/**
|
|
30
|
-
* The cover: an absolute URL, or an id the app's `ImageResolver` turns into
|
|
31
|
-
* one (resolved with `photoVariant`). One picture — a vendor is not a gallery.
|
|
32
|
-
*/
|
|
33
|
-
photo?: string;
|
|
34
|
-
/** The `ImageResolver` rendition for a photo id (e.g. `'medium'`). Ignored for URLs. */
|
|
35
|
-
photoVariant?: string;
|
|
36
|
-
/**
|
|
37
|
-
* What the vendor cooks or sells — "Japanese", "Sushi", "Poke". Drawn as a
|
|
38
|
-
* clipped row of pills under the name; the ones that do not fit drop out
|
|
39
|
-
* whole rather than being cut in half, and the card's accessible name still
|
|
40
|
-
* carries every one of them.
|
|
41
|
-
*/
|
|
42
|
-
cuisines?: ReadonlyArray<string>;
|
|
43
|
-
/**
|
|
44
|
-
* The rating on a 5 scale, drawn by Bloom's `Rating` right of the name.
|
|
45
|
-
* `undefined` draws nothing; `null` or `''` draws the "New" label.
|
|
46
|
-
*/
|
|
47
|
-
rating?: number | string | null;
|
|
48
|
-
/** The review count, drawn after the rating ("(128)"). */
|
|
49
|
-
reviewCount?: number | string;
|
|
50
|
-
/** The "New" label of an unrated vendor (`"New"` in English). */
|
|
51
|
-
newLabel?: string;
|
|
52
|
-
/** Pre-formatted — "25–35 min". */
|
|
53
|
-
deliveryTime?: string;
|
|
54
|
-
/** Pre-formatted — "€1.90", "Free". */
|
|
55
|
-
deliveryFee?: string;
|
|
56
|
-
/** Pre-formatted — "1.2 km". */
|
|
57
|
-
distance?: string;
|
|
58
|
-
/** Pre-formatted — "€12". */
|
|
59
|
-
minimumOrder?: string;
|
|
60
|
-
/**
|
|
61
|
-
* The WORD said before each reading in the card's accessible name —
|
|
62
|
-
* "Delivery time 25–35 min". Defaults follow the locale ("Delivery time",
|
|
63
|
-
* "Delivery", "Distance", "Minimum order" in English); a bare "25–35 min" beside a glyph
|
|
64
|
-
* means nothing read aloud, and the glyph is not announced.
|
|
65
|
-
*/
|
|
66
|
-
factLabels?: Partial<Record<VendorFactKey, string>>;
|
|
67
|
-
/** The promotion, pre-formatted and short — "2 for 1", "−20% today". */
|
|
68
|
-
promo?: string;
|
|
69
|
-
/** The promo mark's tone. Default `success`, the tone `price-breakdown` gives money coming back. */
|
|
70
|
-
promoTone?: AccentTone;
|
|
71
|
-
/** Default `open`. */
|
|
72
|
-
availability?: VendorAvailability;
|
|
73
|
-
/** Replaces the localised status label ("Paused", "Closed" in English). */
|
|
74
|
-
availabilityLabel?: string;
|
|
75
|
-
/**
|
|
76
|
-
* When the vendor takes orders again, PRE-FORMATTED by the app — "Opens at
|
|
77
|
-
* 19:00", "Opens tomorrow at 12:00". Drawn under the name while the vendor is
|
|
78
|
-
* not open, and ignored while it is: a line that said when an open shop opens
|
|
79
|
-
* is noise.
|
|
80
|
-
*/
|
|
81
|
-
opensAt?: string;
|
|
82
|
-
/** Whether the vendor is saved. Omit `onFavoriteChange` too to hide the heart. */
|
|
83
|
-
favorite?: boolean;
|
|
84
|
-
/** Called with the next saved state. The heart is drawn only when this is given. */
|
|
85
|
-
onFavoriteChange?: (favorite: boolean) => void;
|
|
86
|
-
/** Names of the heart, passed to `FavoriteButton`. */
|
|
87
|
-
saveLabel?: string;
|
|
88
|
-
removeLabel?: string;
|
|
89
|
-
/** Called when the card is pressed. */
|
|
90
|
-
onPress?: () => void;
|
|
91
|
-
/**
|
|
92
|
-
* The vendor's URL. On web the card is a real `<a href>` (open in a new tab,
|
|
93
|
-
* copy link); with `onPress` too the default navigation is prevented so a
|
|
94
|
-
* router can take it. On native the card opens it with `Linking` when there is
|
|
95
|
-
* no `onPress`.
|
|
96
|
-
*/
|
|
97
|
-
href?: string;
|
|
98
|
-
/** Draws a skeleton in the same geometry instead of the vendor. */
|
|
99
|
-
loading?: boolean;
|
|
100
|
-
/** Default `comfortable`. */
|
|
101
|
-
density?: VendorCardDensity;
|
|
102
|
-
/**
|
|
103
|
-
* Replaces the composed accessible name ("Fig & Ember, Closed, Japanese,
|
|
104
|
-
* Sushi, Rated 4.8 out of 5, 214 reviews, Delivery time 25–35 min" in
|
|
105
|
-
* English), which follows the locale.
|
|
106
|
-
*/
|
|
107
|
-
accessibilityLabel?: string;
|
|
108
|
-
style?: StyleProp<ViewStyle>;
|
|
109
|
-
testID?: string;
|
|
110
|
-
}
|
|
111
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/vendor-card/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,SAAS,CAAC;AAE1D;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,aAAa,GAAG,UAAU,GAAG,cAAc,CAAC;AAEzF,MAAM,WAAW,eAAe;IAC9B,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wFAAwF;IACxF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACjC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAChC,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;IACpD,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oGAAoG;IACpG,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,sBAAsB;IACtB,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oFAAoF;IACpF,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { CheckoutConfirmProps } from './types.js';
|
|
3
|
-
/**
|
|
4
|
-
* The press that places the order: the words, the amount it commits to, the
|
|
5
|
-
* terms under it, and the state where it must not fire twice.
|
|
6
|
-
*
|
|
7
|
-
* button `Button` primary large, full width, "Place order · €24.80"
|
|
8
|
-
* second `secondaryAmount` ("≈ 12,00 €"), 8 under the button, the same
|
|
9
|
-
* centred secondary line as the terms — the button carries ONE
|
|
10
|
-
* amount, the one the charge is made in
|
|
11
|
-
* terms 12 under it; the centred secondary line every Bloom action card
|
|
12
|
-
* draws under its primary (`ActionCardNote`)
|
|
13
|
-
* footer 16 under the terms
|
|
14
|
-
*
|
|
15
|
-
* ## Why the amount is ON the button
|
|
16
|
-
*
|
|
17
|
-
* The number a press commits to and the press are one decision. A total
|
|
18
|
-
* elsewhere on the screen and a button reading "Place order" are two, and the
|
|
19
|
-
* gap between them is where a reader confirms a figure they last saw before a
|
|
20
|
-
* tip picker changed it.
|
|
21
|
-
*
|
|
22
|
-
* ## Why there are TWO guards against a double order
|
|
23
|
-
*
|
|
24
|
-
* `busy` is the app's: while the order is in flight the button spins and every
|
|
25
|
-
* press is dropped. It is not enough on its own — a press calls `onConfirm`,
|
|
26
|
-
* the app sets its state, and `busy` only reaches this component on the NEXT
|
|
27
|
-
* commit; the second tap of a double-tap lands inside that window and places a
|
|
28
|
-
* second order. So the component also latches on its own press, synchronously,
|
|
29
|
-
* in a ref: state would not do, because two presses in one tick both read the
|
|
30
|
-
* same render's value.
|
|
31
|
-
*
|
|
32
|
-
* The latch clears on the first commit where `busy` is false again — so an app
|
|
33
|
-
* that never sets `busy` (a confirm that navigates away, a demo) gets exactly
|
|
34
|
-
* one press per tick and is never wedged, and an app that does keeps the button
|
|
35
|
-
* inert for the whole flight.
|
|
36
|
-
*/
|
|
37
|
-
declare function CheckoutConfirmComponent({ label: labelProp, amount, secondaryAmount, terms, onConfirm, disabled, busy, busyLabel: busyLabelProp, footer, style, testID, }: CheckoutConfirmProps): React.JSX.Element;
|
|
38
|
-
export declare const CheckoutConfirm: React.MemoExoticComponent<typeof CheckoutConfirmComponent>;
|
|
39
|
-
export {};
|
|
40
|
-
//# sourceMappingURL=CheckoutConfirm.d.ts.map
|