@oxy.so/bloom 23.6.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 +21 -5
- 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/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/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/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/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/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,277 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CheckoutSummaryRow = void 0;
|
|
7
|
-
var _compilerRuntime = require("react/compiler-runtime");
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var _reactNative = require("react-native");
|
|
10
|
-
var _RiArrowRightSLine = require("../icons/remix/RiArrowRightSLine.js");
|
|
11
|
-
var _index = require("../item/index.js");
|
|
12
|
-
var _messages = require("../locale/messages.js");
|
|
13
|
-
var _surfaceLevels = require("../styles/surface-levels.js");
|
|
14
|
-
var _useTheme = require("../theme/use-theme.js");
|
|
15
|
-
var _index2 = require("../typography/index.js");
|
|
16
|
-
var _constants = require("./constants.js");
|
|
17
|
-
var _messages2 = require("./messages.js");
|
|
18
|
-
var _shared = require("./shared.js");
|
|
19
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
-
/**
|
|
21
|
-
* One decision, as a row: what it is, what was chosen, and the press that
|
|
22
|
-
* changes it.
|
|
23
|
-
*
|
|
24
|
-
* tile 40 round, one surface step off the group behind the row, with a
|
|
25
|
-
* 20 glyph in the secondary rung — `address`'s own geometry, so a
|
|
26
|
-
* summary and an address list line up
|
|
27
|
-
* label caption-2-bold uppercase secondary; the row is read label-first
|
|
28
|
-
* because every row in the group is a different QUESTION
|
|
29
|
-
* value body-medium, up to two lines, falling back to the placeholder
|
|
30
|
-
* detail body-2-regular secondary
|
|
31
|
-
* chevron 20, tertiary, decorative — the whole row is the button
|
|
32
|
-
*
|
|
33
|
-
* It is `Item` with those slots filled in: the press target, the hover and
|
|
34
|
-
* press paint, the density rungs, the disabled opacity and the a11y role are
|
|
35
|
-
* `Item`'s job, and this family owns no second copy of any of them.
|
|
36
|
-
*
|
|
37
|
-
* The label/value pair is a CAPTION OVER A VALUE rather than a title with the
|
|
38
|
-
* value on the right, which is the other row Bloom draws (`GroupedSectionItem`).
|
|
39
|
-
* The difference is the length: a settings value is a word, and a checkout
|
|
40
|
-
* value is an address, a window and a card number — none of which fits in the
|
|
41
|
-
* right half of a 390 row without truncating the thing the reader came to
|
|
42
|
-
* check.
|
|
43
|
-
*/
|
|
44
|
-
function CheckoutSummaryRowComponent(t0) {
|
|
45
|
-
const $ = (0, _compilerRuntime.c)(52);
|
|
46
|
-
const {
|
|
47
|
-
label,
|
|
48
|
-
icon: Icon,
|
|
49
|
-
leading,
|
|
50
|
-
value,
|
|
51
|
-
placeholder: placeholderProp,
|
|
52
|
-
detail,
|
|
53
|
-
badge,
|
|
54
|
-
content,
|
|
55
|
-
onPress,
|
|
56
|
-
disabled: t1,
|
|
57
|
-
accessibilityHint,
|
|
58
|
-
accessibilityLabel,
|
|
59
|
-
style,
|
|
60
|
-
testID
|
|
61
|
-
} = t0;
|
|
62
|
-
const disabled = t1 === undefined ? false : t1;
|
|
63
|
-
const {
|
|
64
|
-
messages
|
|
65
|
-
} = (0, _messages.useMessages)(_messages2.CHECKOUT_SUMMARY_MESSAGES);
|
|
66
|
-
const placeholder = placeholderProp ?? messages.notChosen;
|
|
67
|
-
const theme = (0, _useTheme.useTheme)();
|
|
68
|
-
const surface = (0, _surfaceLevels.useSurfaceFill)();
|
|
69
|
-
let t2;
|
|
70
|
-
if ($[0] !== surface || $[1] !== theme) {
|
|
71
|
-
t2 = (0, _shared.resolveCheckoutPaint)(theme, surface);
|
|
72
|
-
$[0] = surface;
|
|
73
|
-
$[1] = theme;
|
|
74
|
-
$[2] = t2;
|
|
75
|
-
} else {
|
|
76
|
-
t2 = $[2];
|
|
77
|
-
}
|
|
78
|
-
const paint = t2;
|
|
79
|
-
let t3;
|
|
80
|
-
if ($[3] !== testID) {
|
|
81
|
-
t3 = part => testID ? `${testID}-${part}` : undefined;
|
|
82
|
-
$[3] = testID;
|
|
83
|
-
$[4] = t3;
|
|
84
|
-
} else {
|
|
85
|
-
t3 = $[4];
|
|
86
|
-
}
|
|
87
|
-
const id = t3;
|
|
88
|
-
const chosen = value != null && value !== "";
|
|
89
|
-
const shown = chosen ? value : placeholder;
|
|
90
|
-
let t4;
|
|
91
|
-
if ($[5] !== Icon || $[6] !== id || $[7] !== leading || $[8] !== paint.textSecondary || $[9] !== paint.tile) {
|
|
92
|
-
t4 = leading !== undefined ? leading : Icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
93
|
-
testID: id("tile"),
|
|
94
|
-
style: {
|
|
95
|
-
width: _constants.CHECKOUT_ROW_TILE,
|
|
96
|
-
height: _constants.CHECKOUT_ROW_TILE,
|
|
97
|
-
borderRadius: _constants.CHECKOUT_ROW_TILE / 2,
|
|
98
|
-
alignItems: "center",
|
|
99
|
-
justifyContent: "center",
|
|
100
|
-
backgroundColor: paint.tile
|
|
101
|
-
},
|
|
102
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
|
|
103
|
-
width: _constants.CHECKOUT_ROW_GLYPH,
|
|
104
|
-
height: _constants.CHECKOUT_ROW_GLYPH,
|
|
105
|
-
fill: paint.textSecondary
|
|
106
|
-
})
|
|
107
|
-
}) : null;
|
|
108
|
-
$[5] = Icon;
|
|
109
|
-
$[6] = id;
|
|
110
|
-
$[7] = leading;
|
|
111
|
-
$[8] = paint.textSecondary;
|
|
112
|
-
$[9] = paint.tile;
|
|
113
|
-
$[10] = t4;
|
|
114
|
-
} else {
|
|
115
|
-
t4 = $[10];
|
|
116
|
-
}
|
|
117
|
-
const media = t4;
|
|
118
|
-
let t5;
|
|
119
|
-
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
120
|
-
t5 = {
|
|
121
|
-
flex: 1,
|
|
122
|
-
minWidth: 0,
|
|
123
|
-
gap: _constants.CHECKOUT_ROW_TEXT_GAP
|
|
124
|
-
};
|
|
125
|
-
$[11] = t5;
|
|
126
|
-
} else {
|
|
127
|
-
t5 = $[11];
|
|
128
|
-
}
|
|
129
|
-
let t6;
|
|
130
|
-
if ($[12] !== id) {
|
|
131
|
-
t6 = id("label");
|
|
132
|
-
$[12] = id;
|
|
133
|
-
$[13] = t6;
|
|
134
|
-
} else {
|
|
135
|
-
t6 = $[13];
|
|
136
|
-
}
|
|
137
|
-
let t7;
|
|
138
|
-
if ($[14] !== paint.textSecondary) {
|
|
139
|
-
t7 = {
|
|
140
|
-
color: paint.textSecondary,
|
|
141
|
-
textTransform: "uppercase"
|
|
142
|
-
};
|
|
143
|
-
$[14] = paint.textSecondary;
|
|
144
|
-
$[15] = t7;
|
|
145
|
-
} else {
|
|
146
|
-
t7 = $[15];
|
|
147
|
-
}
|
|
148
|
-
let t8;
|
|
149
|
-
if ($[16] !== label || $[17] !== t6 || $[18] !== t7) {
|
|
150
|
-
t8 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
151
|
-
variant: "caption-2-bold",
|
|
152
|
-
numberOfLines: 1,
|
|
153
|
-
testID: t6,
|
|
154
|
-
style: t7,
|
|
155
|
-
children: label
|
|
156
|
-
});
|
|
157
|
-
$[16] = label;
|
|
158
|
-
$[17] = t6;
|
|
159
|
-
$[18] = t7;
|
|
160
|
-
$[19] = t8;
|
|
161
|
-
} else {
|
|
162
|
-
t8 = $[19];
|
|
163
|
-
}
|
|
164
|
-
let t9;
|
|
165
|
-
if ($[20] !== badge || $[21] !== chosen || $[22] !== content || $[23] !== detail || $[24] !== id || $[25] !== paint.text || $[26] !== paint.textSecondary || $[27] !== paint.textTertiary || $[28] !== shown) {
|
|
166
|
-
t9 = content !== undefined ? content : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
167
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
168
|
-
style: {
|
|
169
|
-
flexDirection: "row",
|
|
170
|
-
alignItems: "center",
|
|
171
|
-
gap: 6,
|
|
172
|
-
minWidth: 0
|
|
173
|
-
},
|
|
174
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
175
|
-
variant: "body-medium",
|
|
176
|
-
numberOfLines: 2,
|
|
177
|
-
testID: id("value"),
|
|
178
|
-
style: {
|
|
179
|
-
flexShrink: 1,
|
|
180
|
-
minWidth: 0,
|
|
181
|
-
color: chosen ? paint.text : paint.textTertiary
|
|
182
|
-
},
|
|
183
|
-
children: shown
|
|
184
|
-
}), badge]
|
|
185
|
-
}), detail ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
|
|
186
|
-
variant: "body-2-regular",
|
|
187
|
-
numberOfLines: 2,
|
|
188
|
-
testID: id("detail"),
|
|
189
|
-
style: {
|
|
190
|
-
color: paint.textSecondary
|
|
191
|
-
},
|
|
192
|
-
children: detail
|
|
193
|
-
}) : null]
|
|
194
|
-
});
|
|
195
|
-
$[20] = badge;
|
|
196
|
-
$[21] = chosen;
|
|
197
|
-
$[22] = content;
|
|
198
|
-
$[23] = detail;
|
|
199
|
-
$[24] = id;
|
|
200
|
-
$[25] = paint.text;
|
|
201
|
-
$[26] = paint.textSecondary;
|
|
202
|
-
$[27] = paint.textTertiary;
|
|
203
|
-
$[28] = shown;
|
|
204
|
-
$[29] = t9;
|
|
205
|
-
} else {
|
|
206
|
-
t9 = $[29];
|
|
207
|
-
}
|
|
208
|
-
let t10;
|
|
209
|
-
if ($[30] !== t8 || $[31] !== t9) {
|
|
210
|
-
t10 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
211
|
-
style: t5,
|
|
212
|
-
children: [t8, t9]
|
|
213
|
-
});
|
|
214
|
-
$[30] = t8;
|
|
215
|
-
$[31] = t9;
|
|
216
|
-
$[32] = t10;
|
|
217
|
-
} else {
|
|
218
|
-
t10 = $[32];
|
|
219
|
-
}
|
|
220
|
-
const body = t10;
|
|
221
|
-
let t11;
|
|
222
|
-
if ($[33] !== onPress || $[34] !== paint.textTertiary) {
|
|
223
|
-
t11 = onPress ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_RiArrowRightSLine.RiArrowRightSLine, {
|
|
224
|
-
width: _constants.CHECKOUT_ROW_CHEVRON,
|
|
225
|
-
height: _constants.CHECKOUT_ROW_CHEVRON,
|
|
226
|
-
fill: paint.textTertiary
|
|
227
|
-
}) : null;
|
|
228
|
-
$[33] = onPress;
|
|
229
|
-
$[34] = paint.textTertiary;
|
|
230
|
-
$[35] = t11;
|
|
231
|
-
} else {
|
|
232
|
-
t11 = $[35];
|
|
233
|
-
}
|
|
234
|
-
let t12;
|
|
235
|
-
if ($[36] !== accessibilityLabel || $[37] !== chosen || $[38] !== label || $[39] !== placeholder || $[40] !== value) {
|
|
236
|
-
t12 = accessibilityLabel ?? (0, _shared.checkoutRowName)(label, chosen ? value : placeholder);
|
|
237
|
-
$[36] = accessibilityLabel;
|
|
238
|
-
$[37] = chosen;
|
|
239
|
-
$[38] = label;
|
|
240
|
-
$[39] = placeholder;
|
|
241
|
-
$[40] = value;
|
|
242
|
-
$[41] = t12;
|
|
243
|
-
} else {
|
|
244
|
-
t12 = $[41];
|
|
245
|
-
}
|
|
246
|
-
const t13 = onPress ? accessibilityHint ?? messages.opensPicker : accessibilityHint;
|
|
247
|
-
let t14;
|
|
248
|
-
if ($[42] !== body || $[43] !== disabled || $[44] !== media || $[45] !== onPress || $[46] !== style || $[47] !== t11 || $[48] !== t12 || $[49] !== t13 || $[50] !== testID) {
|
|
249
|
-
t14 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Item, {
|
|
250
|
-
leading: media,
|
|
251
|
-
trailing: t11,
|
|
252
|
-
onPress: onPress,
|
|
253
|
-
disabled: disabled,
|
|
254
|
-
accessibilityLabel: t12,
|
|
255
|
-
accessibilityHint: t13,
|
|
256
|
-
style: style,
|
|
257
|
-
testID: testID,
|
|
258
|
-
children: body
|
|
259
|
-
});
|
|
260
|
-
$[42] = body;
|
|
261
|
-
$[43] = disabled;
|
|
262
|
-
$[44] = media;
|
|
263
|
-
$[45] = onPress;
|
|
264
|
-
$[46] = style;
|
|
265
|
-
$[47] = t11;
|
|
266
|
-
$[48] = t12;
|
|
267
|
-
$[49] = t13;
|
|
268
|
-
$[50] = testID;
|
|
269
|
-
$[51] = t14;
|
|
270
|
-
} else {
|
|
271
|
-
t14 = $[51];
|
|
272
|
-
}
|
|
273
|
-
return t14;
|
|
274
|
-
}
|
|
275
|
-
const CheckoutSummaryRow = exports.CheckoutSummaryRow = /*#__PURE__*/(0, _react.memo)(CheckoutSummaryRowComponent);
|
|
276
|
-
CheckoutSummaryRow.displayName = 'CheckoutSummaryRow';
|
|
277
|
-
//# sourceMappingURL=CheckoutSummaryRow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_RiArrowRightSLine","_index","_messages","_surfaceLevels","_useTheme","_index2","_constants","_messages2","_shared","_jsxRuntime","CheckoutSummaryRowComponent","t0","$","_compilerRuntime","c","label","icon","Icon","leading","value","placeholder","placeholderProp","detail","badge","content","onPress","disabled","t1","accessibilityHint","accessibilityLabel","style","testID","undefined","messages","useMessages","CHECKOUT_SUMMARY_MESSAGES","notChosen","theme","useTheme","surface","useSurfaceFill","t2","resolveCheckoutPaint","paint","t3","part","id","chosen","shown","t4","textSecondary","tile","jsx","View","width","CHECKOUT_ROW_TILE","height","borderRadius","alignItems","justifyContent","backgroundColor","children","CHECKOUT_ROW_GLYPH","fill","media","t5","Symbol","for","flex","minWidth","gap","CHECKOUT_ROW_TEXT_GAP","t6","t7","color","textTransform","t8","Text","variant","numberOfLines","t9","text","textTertiary","jsxs","Fragment","flexDirection","flexShrink","t10","body","t11","RiArrowRightSLine","CHECKOUT_ROW_CHEVRON","t12","checkoutRowName","t13","opensPicker","t14","Item","trailing","CheckoutSummaryRow","exports","memo","displayName"],"sourceRoot":"../../../src","sources":["checkout-summary/CheckoutSummaryRow.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,kBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAMA,IAAAS,UAAA,GAAAT,OAAA;AACA,IAAAU,OAAA,GAAAV,OAAA;AAAiE,IAAAW,WAAA,GAAAX,OAAA;AAGjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAAY,4BAAAC,EAAA;EAAA,MAAAC,CAAA,OAAAC,gBAAA,CAAAC,CAAA;EAAqC;IAAAC,KAAA;IAAAC,IAAA,EAAAC,IAAA;IAAAC,OAAA;IAAAC,KAAA;IAAAC,WAAA,EAAAC,eAAA;IAAAC,MAAA;IAAAC,KAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,QAAA,EAAAC,EAAA;IAAAC,iBAAA;IAAAC,kBAAA;IAAAC,KAAA;IAAAC;EAAA,IAAApB,EAeX;EALxB,MAAAe,QAAA,GAAAC,EAAgB,KAAhBK,SAAgB,GAAhB,KAAgB,GAAhBL,EAAgB;EAMhB;IAAAM;EAAA,IAAqB,IAAAC,qBAAW,EAACC,oCAAyB,CAAC;EAC3D,MAAAf,WAAA,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F,kBAAkB,CAACG,WAAW,GAAG,oBAAoB","ignoreList":[]}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CHECKOUT_SECTION_GAP = exports.CHECKOUT_ROW_TILE = exports.CHECKOUT_ROW_TEXT_GAP = exports.CHECKOUT_ROW_PLACEHOLDER = exports.CHECKOUT_ROW_ICON = exports.CHECKOUT_ROW_HINT = exports.CHECKOUT_ROW_GLYPH = exports.CHECKOUT_ROW_CHEVRON = exports.CHECKOUT_PRICE_PADDING = exports.CHECKOUT_GROUP_RADIUS = exports.CHECKOUT_CONFIRM_LABEL = exports.CHECKOUT_CONFIRM_BUSY_LABEL = exports.CHECKOUT_AMOUNT_SEPARATOR = void 0;
|
|
7
|
-
var _RiBankCardLine = require("../icons/remix/RiBankCardLine.js");
|
|
8
|
-
var _RiChat3Line = require("../icons/remix/RiChat3Line.js");
|
|
9
|
-
var _RiMapPin2Line = require("../icons/remix/RiMapPin2Line.js");
|
|
10
|
-
var _RiTimeLine = require("../icons/remix/RiTimeLine.js");
|
|
11
|
-
var _messages = require("./messages.js");
|
|
12
|
-
/**
|
|
13
|
-
* The default glyph for each of the four rows a buyer checks. A caller that
|
|
14
|
-
* wants a different one passes `icon`; these exist so the common summary reads
|
|
15
|
-
* correctly with four strings and four handlers.
|
|
16
|
-
*/
|
|
17
|
-
const CHECKOUT_ROW_ICON = exports.CHECKOUT_ROW_ICON = {
|
|
18
|
-
address: _RiMapPin2Line.RiMapPin2Line,
|
|
19
|
-
delivery: _RiTimeLine.RiTimeLine,
|
|
20
|
-
payment: _RiBankCardLine.RiBankCardLine,
|
|
21
|
-
note: _RiChat3Line.RiChat3Line
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
// The English words below stay exported; the components speak
|
|
25
|
-
// `CHECKOUT_SUMMARY_MESSAGES` in the resolved locale.
|
|
26
|
-
|
|
27
|
-
/** Drawn in place of the value while nothing is chosen. */
|
|
28
|
-
const CHECKOUT_ROW_PLACEHOLDER = exports.CHECKOUT_ROW_PLACEHOLDER = _messages.CHECKOUT_SUMMARY_MESSAGES.en.notChosen;
|
|
29
|
-
|
|
30
|
-
/** The row's hint: what pressing it opens. */
|
|
31
|
-
const CHECKOUT_ROW_HINT = exports.CHECKOUT_ROW_HINT = _messages.CHECKOUT_SUMMARY_MESSAGES.en.opensPicker;
|
|
32
|
-
|
|
33
|
-
/** The default words on the confirm control. */
|
|
34
|
-
const CHECKOUT_CONFIRM_LABEL = exports.CHECKOUT_CONFIRM_LABEL = _messages.CHECKOUT_SUMMARY_MESSAGES.en.placeOrder;
|
|
35
|
-
const CHECKOUT_CONFIRM_BUSY_LABEL = exports.CHECKOUT_CONFIRM_BUSY_LABEL = _messages.CHECKOUT_SUMMARY_MESSAGES.en.placingOrder;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* The separator between the confirm label and the amount. A MIDDLE DOT rather
|
|
39
|
-
* than a hyphen: "Place order - €24.80" reads as a subtraction at a glance in
|
|
40
|
-
* a row that is otherwise full of money.
|
|
41
|
-
*/
|
|
42
|
-
const CHECKOUT_AMOUNT_SEPARATOR = exports.CHECKOUT_AMOUNT_SEPARATOR = ' · ';
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* The tile a row's glyph sits in. 40 is `address`'s own comfortable rung
|
|
46
|
-
* (`ADDRESS_GEOMETRY`), which is what lines a summary row up with an `Avatar`
|
|
47
|
-
* at `lg` — a summary that mixes a place and a courier must not step sideways
|
|
48
|
-
* at the avatar.
|
|
49
|
-
*/
|
|
50
|
-
const CHECKOUT_ROW_TILE = exports.CHECKOUT_ROW_TILE = 40;
|
|
51
|
-
const CHECKOUT_ROW_GLYPH = exports.CHECKOUT_ROW_GLYPH = 20;
|
|
52
|
-
/** The trailing chevron. */
|
|
53
|
-
const CHECKOUT_ROW_CHEVRON = exports.CHECKOUT_ROW_CHEVRON = 20;
|
|
54
|
-
|
|
55
|
-
/** Between the label and the value, and between the value and the detail. */
|
|
56
|
-
const CHECKOUT_ROW_TEXT_GAP = exports.CHECKOUT_ROW_TEXT_GAP = 2;
|
|
57
|
-
|
|
58
|
-
/** The group's corner, matching every other card-sized surface in the library. */
|
|
59
|
-
const CHECKOUT_GROUP_RADIUS = exports.CHECKOUT_GROUP_RADIUS = 16;
|
|
60
|
-
|
|
61
|
-
/** Between the group, the children, the totals and the confirm control. */
|
|
62
|
-
const CHECKOUT_SECTION_GAP = exports.CHECKOUT_SECTION_GAP = 20;
|
|
63
|
-
|
|
64
|
-
/** Inside the group's own padding, around the totals. */
|
|
65
|
-
const CHECKOUT_PRICE_PADDING = exports.CHECKOUT_PRICE_PADDING = 16;
|
|
66
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_RiBankCardLine","require","_RiChat3Line","_RiMapPin2Line","_RiTimeLine","_messages","CHECKOUT_ROW_ICON","exports","address","RiMapPin2Line","delivery","RiTimeLine","payment","RiBankCardLine","note","RiChat3Line","CHECKOUT_ROW_PLACEHOLDER","CHECKOUT_SUMMARY_MESSAGES","en","notChosen","CHECKOUT_ROW_HINT","opensPicker","CHECKOUT_CONFIRM_LABEL","placeOrder","CHECKOUT_CONFIRM_BUSY_LABEL","placingOrder","CHECKOUT_AMOUNT_SEPARATOR","CHECKOUT_ROW_TILE","CHECKOUT_ROW_GLYPH","CHECKOUT_ROW_CHEVRON","CHECKOUT_ROW_TEXT_GAP","CHECKOUT_GROUP_RADIUS","CHECKOUT_SECTION_GAP","CHECKOUT_PRICE_PADDING"],"sourceRoot":"../../../src","sources":["checkout-summary/constants.ts"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAEA,IAA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95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "CHECKOUT_AMOUNT_SEPARATOR", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _constants.CHECKOUT_AMOUNT_SEPARATOR;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "CHECKOUT_CONFIRM_BUSY_LABEL", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _constants.CHECKOUT_CONFIRM_BUSY_LABEL;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "CHECKOUT_CONFIRM_LABEL", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _constants.CHECKOUT_CONFIRM_LABEL;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "CHECKOUT_GROUP_RADIUS", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _constants.CHECKOUT_GROUP_RADIUS;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "CHECKOUT_ROW_HINT", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _constants.CHECKOUT_ROW_HINT;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "CHECKOUT_ROW_ICON", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _constants.CHECKOUT_ROW_ICON;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "CHECKOUT_ROW_PLACEHOLDER", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () {
|
|
45
|
-
return _constants.CHECKOUT_ROW_PLACEHOLDER;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "CHECKOUT_ROW_TILE", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return _constants.CHECKOUT_ROW_TILE;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "CheckoutConfirm", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _CheckoutConfirm.CheckoutConfirm;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "CheckoutSummary", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () {
|
|
63
|
-
return _CheckoutSummary.CheckoutSummary;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "CheckoutSummaryRow", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () {
|
|
69
|
-
return _CheckoutSummaryRow.CheckoutSummaryRow;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "checkoutConfirmLabel", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function () {
|
|
75
|
-
return _shared.checkoutConfirmLabel;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, "checkoutRowName", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function () {
|
|
81
|
-
return _shared.checkoutRowName;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "resolveCheckoutPaint", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function () {
|
|
87
|
-
return _shared.resolveCheckoutPaint;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
var _CheckoutConfirm = require("./CheckoutConfirm.js");
|
|
91
|
-
var _CheckoutSummary = require("./CheckoutSummary.js");
|
|
92
|
-
var _CheckoutSummaryRow = require("./CheckoutSummaryRow.js");
|
|
93
|
-
var _constants = require("./constants.js");
|
|
94
|
-
var _shared = require("./shared.js");
|
|
95
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_CheckoutConfirm","require","_CheckoutSummary","_CheckoutSummaryRow","_constants","_shared"],"sourceRoot":"../../../src","sources":["checkout-summary/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAUA,IAAAI,OAAA,GAAAJ,OAAA","ignoreList":[]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CHECKOUT_SUMMARY_MESSAGES = void 0;
|
|
7
|
-
var _messages = require("../locale/messages.js");
|
|
8
|
-
/**
|
|
9
|
-
* Every fixed string the checkout summary draws or announces, in each Bloom
|
|
10
|
-
* language. A caller's `title`, `label`, `placeholder`, `busyLabel`,
|
|
11
|
-
* `accessibilityHint` and `accessibilityLabel` still win.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
const CHECKOUT_SUMMARY_MESSAGES = exports.CHECKOUT_SUMMARY_MESSAGES = (0, _messages.defineMessages)('CHECKOUT_SUMMARY_MESSAGES', {
|
|
15
|
-
title: 'Review your order',
|
|
16
|
-
orderSummary: 'Order summary',
|
|
17
|
-
deliverTo: 'Deliver to',
|
|
18
|
-
notChosen: 'Not chosen yet',
|
|
19
|
-
opensPicker: 'Opens the picker',
|
|
20
|
-
placeOrder: 'Place order',
|
|
21
|
-
placingOrder: 'Placing your order'
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_messages","require","CHECKOUT_SUMMARY_MESSAGES","exports","defineMessages","title","orderSummary","deliverTo","notChosen","opensPicker","placeOrder","placingOrder"],"sourceRoot":"../../../src","sources":["checkout-summary/messages.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA;;AAiBO,MAAMC,yBAAkE,GAAAC,OAAA,CAAAD,yBAAA,GAC7E,IAAAE,wBAAc,EAA0B,2BAA2B,EAAE;EACnEC,KAAK,EAAE,mBAAmB;EAC1BC,YAAY,EAAE,eAAe;EAC7BC,SAAS,EAAE,YAAY;EACvBC,SAAS,EAAE,gBAAgB;EAC3BC,WAAW,EAAE,kBAAkB;EAC/BC,UAAU,EAAE,aAAa;EACzBC,YAAY,EAAE;AAChB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.checkoutConfirmLabel = checkoutConfirmLabel;
|
|
7
|
-
exports.checkoutRowName = checkoutRowName;
|
|
8
|
-
exports.resolveCheckoutPaint = resolveCheckoutPaint;
|
|
9
|
-
var _surfaceLevels = require("../styles/surface-levels.js");
|
|
10
|
-
var _constants = require("./constants.js");
|
|
11
|
-
/**
|
|
12
|
-
* What a checkout summary paints, read RELATIVE to the surface it was dropped
|
|
13
|
-
* on (`styles/surface-levels.ts`): the review is a page on a phone, a column
|
|
14
|
-
* beside a basket on a desktop, and a sheet over a menu — three different
|
|
15
|
-
* fills, and a tile colour picked by eye vanishes on one of them.
|
|
16
|
-
*
|
|
17
|
-
* Pure, so `CheckoutSummary.test.tsx` can walk presets and modes without
|
|
18
|
-
* rendering.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
function resolveCheckoutPaint(theme, surface) {
|
|
22
|
-
return {
|
|
23
|
-
...(0, _surfaceLevels.surfaceTextOn)(theme, surface),
|
|
24
|
-
tile: (0, _surfaceLevels.surfaceFillOn)(theme, surface)
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* The row's announced name: the label, then whatever the row is showing.
|
|
30
|
-
*
|
|
31
|
-
* Deliberately "Delivery window: Today, 17:00 – 19:00" and not "Change
|
|
32
|
-
* delivery window" — a reader moving through the summary wants the DECISIONS
|
|
33
|
-
* read back, and what the press does belongs in the hint.
|
|
34
|
-
*/
|
|
35
|
-
function checkoutRowName(label, value) {
|
|
36
|
-
return value && value !== '' ? `${label}: ${value}` : label;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/** "Place order" + "€24.80" → "Place order · €24.80". */
|
|
40
|
-
function checkoutConfirmLabel(label, amount) {
|
|
41
|
-
return amount && amount !== '' ? `${label}${_constants.CHECKOUT_AMOUNT_SEPARATOR}${amount}` : label;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=shared.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_surfaceLevels","require","_constants","resolveCheckoutPaint","theme","surface","surfaceTextOn","tile","surfaceFillOn","checkoutRowName","label","value","checkoutConfirmLabel","amount","CHECKOUT_AMOUNT_SEPARATOR"],"sourceRoot":"../../../src","sources":["checkout-summary/shared.ts"],"mappings":";;;;;;;;AASA,IAAAA,cAAA,GAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AAXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUO,SAASE,oBAAoBA,CAACC,KAAY,EAAEC,OAAe,EAAwB;EACxF,OAAO;IACL,GAAG,IAAAC,4BAAa,EAACF,KAAK,EAAEC,OAAO,CAAC;IAChCE,IAAI,EAAE,IAAAC,4BAAa,EAACJ,KAAK,EAAEC,OAAO;EACpC,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASI,eAAeA,CAACC,KAAa,EAAEC,KAAyB,EAAU;EAChF,OAAOA,KAAK,IAAIA,KAAK,KAAK,EAAE,GAAG,GAAGD,KAAK,KAAKC,KAAK,EAAE,GAAGD,KAAK;AAC7D;;AAEA;AACO,SAASE,oBAAoBA,CAACF,KAAa,EAAEG,MAA0B,EAAU;EACtF,OAAOA,MAAM,IAAIA,MAAM,KAAK,EAAE,GAAG,GAAGH,KAAK,GAAGI,oCAAyB,GAAGD,MAAM,EAAE,GAAGH,KAAK;AAC1F","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["checkout-summary/types.ts"],"mappings":"","ignoreList":[]}
|