@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
|
@@ -5,13 +5,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.createMultiPathSVG = createMultiPathSVG;
|
|
7
7
|
exports.createSinglePathSVG = createSinglePathSVG;
|
|
8
|
-
var _compilerRuntime = require("react/compiler-runtime");
|
|
9
8
|
var _react = require("react");
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
var _glyph = require("./glyph");
|
|
10
|
+
/**
|
|
11
|
+
* The icon component of one glyph. What draws it is the platform's: inline SVG
|
|
12
|
+
* on the web, one native view per icon on native when the app's binary has it
|
|
13
|
+
* (`glyph.native.tsx`), react-native-svg otherwise.
|
|
14
|
+
*/
|
|
15
|
+
function iconComponent(glyph) {
|
|
16
|
+
return /*#__PURE__*/(0, _react.forwardRef)(function IconImpl(props, ref) {
|
|
17
|
+
return (0, _glyph.useGlyph)(glyph, props, ref);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
15
20
|
function createSinglePathSVG({
|
|
16
21
|
path,
|
|
17
22
|
viewBox,
|
|
@@ -19,166 +24,26 @@ function createSinglePathSVG({
|
|
|
19
24
|
strokeLinecap = 'butt',
|
|
20
25
|
strokeLinejoin = 'miter'
|
|
21
26
|
}) {
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
let style;
|
|
30
|
-
if ($[0] !== t0) {
|
|
31
|
-
({
|
|
32
|
-
fill,
|
|
33
|
-
size,
|
|
34
|
-
style,
|
|
35
|
-
gradient,
|
|
36
|
-
...rest
|
|
37
|
-
} = t0);
|
|
38
|
-
$[0] = t0;
|
|
39
|
-
$[1] = fill;
|
|
40
|
-
$[2] = gradient;
|
|
41
|
-
$[3] = rest;
|
|
42
|
-
$[4] = size;
|
|
43
|
-
$[5] = style;
|
|
44
|
-
} else {
|
|
45
|
-
fill = $[1];
|
|
46
|
-
gradient = $[2];
|
|
47
|
-
rest = $[3];
|
|
48
|
-
size = $[4];
|
|
49
|
-
style = $[5];
|
|
50
|
-
}
|
|
51
|
-
const hasStroke = strokeWidth > 0;
|
|
52
|
-
let t1;
|
|
53
|
-
if ($[6] !== style) {
|
|
54
|
-
t1 = [style];
|
|
55
|
-
$[6] = style;
|
|
56
|
-
$[7] = t1;
|
|
57
|
-
} else {
|
|
58
|
-
t1 = $[7];
|
|
59
|
-
}
|
|
60
|
-
const t2 = hasStroke ? "none" : fill;
|
|
61
|
-
const t3 = hasStroke ? fill : "none";
|
|
62
|
-
let t4;
|
|
63
|
-
if ($[8] !== t2 || $[9] !== t3) {
|
|
64
|
-
t4 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
65
|
-
fill: t2,
|
|
66
|
-
stroke: t3,
|
|
67
|
-
strokeWidth: strokeWidth,
|
|
68
|
-
strokeLinecap: strokeLinecap,
|
|
69
|
-
strokeLinejoin: strokeLinejoin,
|
|
70
|
-
fillRule: "evenodd",
|
|
71
|
-
clipRule: "evenodd",
|
|
72
|
-
d: path
|
|
73
|
-
});
|
|
74
|
-
$[8] = t2;
|
|
75
|
-
$[9] = t3;
|
|
76
|
-
$[10] = t4;
|
|
77
|
-
} else {
|
|
78
|
-
t4 = $[10];
|
|
79
|
-
}
|
|
80
|
-
let t5;
|
|
81
|
-
if ($[11] !== gradient || $[12] !== ref || $[13] !== rest || $[14] !== size || $[15] !== t1 || $[16] !== t4) {
|
|
82
|
-
t5 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
|
|
83
|
-
fill: "none",
|
|
84
|
-
...rest,
|
|
85
|
-
ref: ref,
|
|
86
|
-
viewBox: viewBox || "0 0 24 24",
|
|
87
|
-
width: size,
|
|
88
|
-
height: size,
|
|
89
|
-
style: t1,
|
|
90
|
-
children: [gradient, t4]
|
|
91
|
-
});
|
|
92
|
-
$[11] = gradient;
|
|
93
|
-
$[12] = ref;
|
|
94
|
-
$[13] = rest;
|
|
95
|
-
$[14] = size;
|
|
96
|
-
$[15] = t1;
|
|
97
|
-
$[16] = t4;
|
|
98
|
-
$[17] = t5;
|
|
99
|
-
} else {
|
|
100
|
-
t5 = $[17];
|
|
101
|
-
}
|
|
102
|
-
return t5;
|
|
27
|
+
return iconComponent({
|
|
28
|
+
kind: 'single',
|
|
29
|
+
paths: [path],
|
|
30
|
+
viewBox: viewBox || '0 0 24 24',
|
|
31
|
+
strokeWidth,
|
|
32
|
+
strokeLinecap,
|
|
33
|
+
strokeLinejoin
|
|
103
34
|
});
|
|
104
35
|
}
|
|
105
36
|
function createMultiPathSVG({
|
|
106
37
|
paths,
|
|
107
38
|
viewBox
|
|
108
39
|
}) {
|
|
109
|
-
return
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
let style;
|
|
117
|
-
if ($[0] !== t0) {
|
|
118
|
-
({
|
|
119
|
-
fill,
|
|
120
|
-
size,
|
|
121
|
-
style,
|
|
122
|
-
gradient,
|
|
123
|
-
...rest
|
|
124
|
-
} = t0);
|
|
125
|
-
$[0] = t0;
|
|
126
|
-
$[1] = fill;
|
|
127
|
-
$[2] = gradient;
|
|
128
|
-
$[3] = rest;
|
|
129
|
-
$[4] = size;
|
|
130
|
-
$[5] = style;
|
|
131
|
-
} else {
|
|
132
|
-
fill = $[1];
|
|
133
|
-
gradient = $[2];
|
|
134
|
-
rest = $[3];
|
|
135
|
-
size = $[4];
|
|
136
|
-
style = $[5];
|
|
137
|
-
}
|
|
138
|
-
let t1;
|
|
139
|
-
if ($[6] !== style) {
|
|
140
|
-
t1 = [style];
|
|
141
|
-
$[6] = style;
|
|
142
|
-
$[7] = t1;
|
|
143
|
-
} else {
|
|
144
|
-
t1 = $[7];
|
|
145
|
-
}
|
|
146
|
-
let t2;
|
|
147
|
-
if ($[8] !== fill) {
|
|
148
|
-
t2 = paths.map((path, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
149
|
-
fill: fill,
|
|
150
|
-
fillRule: "evenodd",
|
|
151
|
-
clipRule: "evenodd",
|
|
152
|
-
d: path
|
|
153
|
-
}, i));
|
|
154
|
-
$[8] = fill;
|
|
155
|
-
$[9] = t2;
|
|
156
|
-
} else {
|
|
157
|
-
t2 = $[9];
|
|
158
|
-
}
|
|
159
|
-
let t3;
|
|
160
|
-
if ($[10] !== gradient || $[11] !== ref || $[12] !== rest || $[13] !== size || $[14] !== t1 || $[15] !== t2) {
|
|
161
|
-
t3 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
|
|
162
|
-
fill: "none",
|
|
163
|
-
...rest,
|
|
164
|
-
ref: ref,
|
|
165
|
-
viewBox: viewBox || "0 0 24 24",
|
|
166
|
-
width: size,
|
|
167
|
-
height: size,
|
|
168
|
-
style: t1,
|
|
169
|
-
children: [gradient, t2]
|
|
170
|
-
});
|
|
171
|
-
$[10] = gradient;
|
|
172
|
-
$[11] = ref;
|
|
173
|
-
$[12] = rest;
|
|
174
|
-
$[13] = size;
|
|
175
|
-
$[14] = t1;
|
|
176
|
-
$[15] = t2;
|
|
177
|
-
$[16] = t3;
|
|
178
|
-
} else {
|
|
179
|
-
t3 = $[16];
|
|
180
|
-
}
|
|
181
|
-
return t3;
|
|
40
|
+
return iconComponent({
|
|
41
|
+
kind: 'multi',
|
|
42
|
+
paths,
|
|
43
|
+
viewBox: viewBox || '0 0 24 24',
|
|
44
|
+
strokeWidth: 0,
|
|
45
|
+
strokeLinecap: 'butt',
|
|
46
|
+
strokeLinejoin: 'miter'
|
|
182
47
|
});
|
|
183
48
|
}
|
|
184
49
|
//# sourceMappingURL=TEMPLATE.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","
|
|
1
|
+
{"version":3,"names":["_react","require","_glyph","iconComponent","glyph","forwardRef","IconImpl","props","ref","useGlyph","createSinglePathSVG","path","viewBox","strokeWidth","strokeLinecap","strokeLinejoin","kind","paths","createMultiPathSVG"],"sourceRoot":"../../../src","sources":["icons/TEMPLATE.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA;AAGA;AACA;AACA;AACA;AACA;AACA,SAASE,aAAaA,CAACC,KAAgB,EAAE;EACvC,oBAAO,IAAAC,iBAAU,EAAa,SAAAC,SAAAC,KAAA,EAAAC,GAAA;IAAA,OACrB,IAAAC,eAAQ,EAACL,KAAK,EAAEG,KAAK,EAAEC,GAAG,CAAC;EAAA,CACnC,CAAC;AACJ;AAEO,SAASE,mBAAmBA,CAAC;EAClCC,IAAI;EACJC,OAAO;EACPC,WAAW,GAAG,CAAC;EACfC,aAAa,GAAG,MAAM;EACtBC,cAAc,GAAG;AAOnB,CAAC,EAAE;EACD,OAAOZ,aAAa,CAAC;IACnBa,IAAI,EAAE,QAAQ;IACdC,KAAK,EAAE,CAACN,IAAI,CAAC;IACbC,OAAO,EAAEA,OAAO,IAAI,WAAW;IAC/BC,WAAW;IACXC,aAAa;IACbC;EACF,CAAC,CAAC;AACJ;AAEO,SAASG,kBAAkBA,CAAC;EAAED,KAAK;EAAEL;AAA+C,CAAC,EAAE;EAC5F,OAAOT,aAAa,CAAC;IACnBa,IAAI,EAAE,OAAO;IACbC,KAAK;IACLL,OAAO,EAAEA,OAAO,IAAI,WAAW;IAC/BC,WAAW,EAAE,CAAC;IACdC,aAAa,EAAE,MAAM;IACrBC,cAAc,EAAE;EAClB,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.svgGlyph = svgGlyph;
|
|
7
|
+
var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
var cache;
|
|
10
|
+
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
11
|
+
/** One glyph as its factory describes it: its path data and how it paints. */
|
|
12
|
+
|
|
13
|
+
/** The glyph as react-native-svg (and, on the web, inline SVG) draws it. */
|
|
14
|
+
function svgGlyph(glyph, {
|
|
15
|
+
fill,
|
|
16
|
+
size,
|
|
17
|
+
style,
|
|
18
|
+
gradient,
|
|
19
|
+
...rest
|
|
20
|
+
}, ref) {
|
|
21
|
+
const hasStroke = glyph.strokeWidth > 0;
|
|
22
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
|
|
23
|
+
fill: "none",
|
|
24
|
+
...rest,
|
|
25
|
+
ref: ref,
|
|
26
|
+
viewBox: glyph.viewBox,
|
|
27
|
+
width: size,
|
|
28
|
+
height: size,
|
|
29
|
+
style: [style],
|
|
30
|
+
children: [gradient, glyph.kind === 'single' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
31
|
+
fill: hasStroke ? 'none' : fill,
|
|
32
|
+
stroke: hasStroke ? fill : 'none',
|
|
33
|
+
strokeWidth: glyph.strokeWidth,
|
|
34
|
+
strokeLinecap: glyph.strokeLinecap,
|
|
35
|
+
strokeLinejoin: glyph.strokeLinejoin,
|
|
36
|
+
fillRule: "evenodd",
|
|
37
|
+
clipRule: "evenodd",
|
|
38
|
+
d: glyph.paths[0]
|
|
39
|
+
}) : glyph.paths.map((path, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
40
|
+
fill: fill,
|
|
41
|
+
fillRule: "evenodd",
|
|
42
|
+
clipRule: "evenodd",
|
|
43
|
+
d: path
|
|
44
|
+
}, i))]
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=glyph-svg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeSvg","_interopRequireWildcard","require","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","svgGlyph","glyph","fill","size","style","gradient","rest","ref","hasStroke","strokeWidth","jsxs","viewBox","width","height","children","kind","jsx","Path","stroke","strokeLinecap","strokeLinejoin","fillRule","clipRule","d","paths","map","path","i"],"sourceRoot":"../../../src","sources":["icons/glyph-svg.tsx"],"mappings":";;;;;;AACA,IAAAA,eAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA6C,IAAAC,WAAA,GAAAD,OAAA;AAAA,IAAAE,KAAA;AAAA,SAAAH,wBAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAE,UAAA,SAAAF,CAAA,MAAAG,CAAA,EAAAC,CAAA,EAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,QAAAM,MAAA,CAAAN,CAAA,MAAA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;MAChCgB,MAAM,EAAEV,SAAS,GAAGN,IAAI,GAAG,MAAO;MAClCO,WAAW,EAAER,KAAK,CAACQ,WAAY;MAC/BU,aAAa,EAAElB,KAAK,CAACkB,aAAc;MACnCC,cAAc,EAAEnB,KAAK,CAACmB,cAAe;MACrCC,QAAQ,EAAC,SAAS;MAClBC,QAAQ,EAAC,SAAS;MAClBC,CAAC,EAAEtB,KAAK,CAACuB,KAAK,CAAC,CAAC;IAAE,CACnB,CAAC,GAEFvB,KAAK,CAACuB,KAAK,CAACC,GAAG,CAAC,CAACC,IAAI,EAAEC,CAAC,kBACtB,IAAA/C,WAAA,CAAAoC,GAAA,EAACvC,eAAA,CAAAwC,IAAI;MAASf,IAAI,EAAEA,IAAK;MAACmB,QAAQ,EAAC,SAAS;MAACC,QAAQ,EAAC,SAAS;MAACC,CAAC,EAAEG;IAAK,GAA7DC,CAA+D,CAC3E,CACF;EAAA,CACE,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useGlyph = useGlyph;
|
|
7
|
+
var _compilerRuntime = require("react/compiler-runtime");
|
|
8
|
+
var _glyphSvg = require("./glyph-svg.js");
|
|
9
|
+
var _shared = require("./shared.js");
|
|
10
|
+
/**
|
|
11
|
+
* Draws a Bloom icon. Here (the web, and Node) it is inline SVG, which costs
|
|
12
|
+
* nothing extra in a browser; `glyph.native.tsx` is the native fork.
|
|
13
|
+
*/
|
|
14
|
+
function useGlyph(glyph, props, ref) {
|
|
15
|
+
const $ = (0, _compilerRuntime.c)(4);
|
|
16
|
+
const t0 = (0, _shared.useCommonSVGProps)(props);
|
|
17
|
+
let t1;
|
|
18
|
+
if ($[0] !== glyph || $[1] !== ref || $[2] !== t0) {
|
|
19
|
+
t1 = (0, _glyphSvg.svgGlyph)(glyph, t0, ref);
|
|
20
|
+
$[0] = glyph;
|
|
21
|
+
$[1] = ref;
|
|
22
|
+
$[2] = t0;
|
|
23
|
+
$[3] = t1;
|
|
24
|
+
} else {
|
|
25
|
+
t1 = $[3];
|
|
26
|
+
}
|
|
27
|
+
return t1;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=glyph.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_glyphSvg","require","_shared","useGlyph","glyph","props","ref","$","_compilerRuntime","c","t0","useCommonSVGProps","t1","svgGlyph"],"sourceRoot":"../../../src","sources":["icons/glyph.tsx"],"mappings":";;;;;;;AAGA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAIA;AACA;AACA;AACA;AACO,SAAAE,SAAAC,KAAA,EAAAC,KAAA,EAAAC,GAAA;EAAA,MAAAC,CAAA,OAAAC,gBAAA,CAAAC,CAAA;EACkB,MAAAC,EAAA,OAAAC,yBAAiB,EAACN,KAAK,CAAC;EAAA,IAAAO,EAAA;EAAA,IAAAL,CAAA,QAAAH,KAAA,IAAAG,CAAA,QAAAD,GAAA,IAAAC,CAAA,QAAAG,EAAA;IAAxCE,EAAA,OAAAC,kBAAQ,EAACT,KAAK,EAAEM,EAAwB,EAAEJ,GAAG,CAAC;IAAAC,CAAA,MAAAH,KAAA;IAAAG,CAAA,MAAAD,GAAA;IAAAC,CAAA,MAAAG,EAAA;IAAAH,CAAA,MAAAK,EAAA;EAAA;IAAAA,EAAA,GAAAL,CAAA;EAAA;EAAA,OAA9CK,EAA8C;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useGlyph = useGlyph;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _tokens = require("../styles/tokens.js");
|
|
9
|
+
var _glyphSvg = require("./glyph-svg.js");
|
|
10
|
+
var _shared = require("./shared.js");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
/** `BloomIconV1` (`android/…/icons/BloomIcon.kt`): the versioned name is the prop contract. */
|
|
13
|
+
|
|
14
|
+
let nativeIcon;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The native icon view, when the app's binary has it. A JavaScript-only update
|
|
18
|
+
* (an OTA bundle on an older binary, Expo Go, iOS until it has the view) keeps
|
|
19
|
+
* react-native-svg, so every icon still draws.
|
|
20
|
+
*/
|
|
21
|
+
function loadNativeIcon() {
|
|
22
|
+
if (nativeIcon === undefined) {
|
|
23
|
+
try {
|
|
24
|
+
nativeIcon = _reactNative.UIManager.hasViewManagerConfig?.('BloomIconV1') ? (0, _reactNative.requireNativeComponent)('BloomIconV1') : null;
|
|
25
|
+
} catch {
|
|
26
|
+
nativeIcon = null;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return nativeIcon;
|
|
30
|
+
}
|
|
31
|
+
const stopLists = new Map();
|
|
32
|
+
|
|
33
|
+
/** A gradient token's stops, as react-native-svg's `extractGradient` sends them (opaque stops). */
|
|
34
|
+
function stopList(name) {
|
|
35
|
+
let list = stopLists.get(name);
|
|
36
|
+
if (list === undefined) {
|
|
37
|
+
list = _tokens.gradients[name].values.flatMap(([offset, color]) => [offset, (0, _reactNative.processColor)(color) & 0x00ffffff | 255 << 24]);
|
|
38
|
+
stopLists.set(name, list);
|
|
39
|
+
}
|
|
40
|
+
return list;
|
|
41
|
+
}
|
|
42
|
+
const boxes = new Map();
|
|
43
|
+
|
|
44
|
+
/** react-native-svg's root override for a sized `<Svg>`: the side, and `flex: 0`. */
|
|
45
|
+
function box(size) {
|
|
46
|
+
let style = boxes.get(size);
|
|
47
|
+
if (style === undefined) {
|
|
48
|
+
style = {
|
|
49
|
+
width: size,
|
|
50
|
+
height: size,
|
|
51
|
+
flex: 0
|
|
52
|
+
};
|
|
53
|
+
boxes.set(size, style);
|
|
54
|
+
}
|
|
55
|
+
return style;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Draws a Bloom icon on native: ONE native view that draws the path on the
|
|
60
|
+
* hardware canvas, where react-native-svg mounts three views and rasterises
|
|
61
|
+
* the glyph in software. The paint is resolved exactly as for the SVG
|
|
62
|
+
* (`useCommonSVGProps`): `fill`, else `style.color`, else the theme's primary;
|
|
63
|
+
* a `gradient` token wins over the fill; `currentColor` is the `color` prop or
|
|
64
|
+
* `style.color`, black without either (react-native-svg's default).
|
|
65
|
+
*
|
|
66
|
+
* What the native view draws: fill, stroke, the gradient tokens and `opacity`,
|
|
67
|
+
* with every View prop (layout style, accessibility, testID, onLayout). SVG
|
|
68
|
+
* paint props an icon never needed (`fillOpacity`, `strokeDasharray`, an SVG
|
|
69
|
+
* `transform`…) are not drawn there.
|
|
70
|
+
*/
|
|
71
|
+
function useGlyph(glyph, props, ref) {
|
|
72
|
+
const common = (0, _shared.useCommonSVGProps)(props);
|
|
73
|
+
const NativeIcon = loadNativeIcon();
|
|
74
|
+
if (NativeIcon === null) return (0, _glyphSvg.svgGlyph)(glyph, common, ref);
|
|
75
|
+
const {
|
|
76
|
+
fill,
|
|
77
|
+
size,
|
|
78
|
+
style,
|
|
79
|
+
gradient: _gradientDefs,
|
|
80
|
+
width: _width,
|
|
81
|
+
height: _height,
|
|
82
|
+
color,
|
|
83
|
+
opacity,
|
|
84
|
+
transform: _transform,
|
|
85
|
+
viewBox: _viewBox,
|
|
86
|
+
strokeWidth: _strokeWidth,
|
|
87
|
+
strokeLinecap: _strokeLinecap,
|
|
88
|
+
strokeLinejoin: _strokeLinejoin,
|
|
89
|
+
...rest
|
|
90
|
+
} = common;
|
|
91
|
+
const token = props.gradient && _tokens.gradients[props.gradient] ? props.gradient : undefined;
|
|
92
|
+
let paint = null;
|
|
93
|
+
if (token === undefined && fill !== 'none' && fill != null) {
|
|
94
|
+
paint = fill === 'currentColor' ? color ?? style?.color ?? 'black' : fill;
|
|
95
|
+
}
|
|
96
|
+
const stroked = glyph.kind === 'single' && glyph.strokeWidth > 0;
|
|
97
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(NativeIcon, {
|
|
98
|
+
...rest,
|
|
99
|
+
ref: ref,
|
|
100
|
+
style: opacity == null ? [style, box(size)] : [style, box(size), {
|
|
101
|
+
opacity: Number(opacity)
|
|
102
|
+
}],
|
|
103
|
+
paths: glyph.paths,
|
|
104
|
+
viewBox: glyph.viewBox,
|
|
105
|
+
fill: paint,
|
|
106
|
+
strokeWidth: stroked ? glyph.strokeWidth : 0,
|
|
107
|
+
strokeLinecap: glyph.strokeLinecap,
|
|
108
|
+
strokeLinejoin: glyph.strokeLinejoin,
|
|
109
|
+
gradient: token === undefined ? null : stopList(token)
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=glyph.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_tokens","_glyphSvg","_shared","_jsxRuntime","nativeIcon","loadNativeIcon","undefined","UIManager","hasViewManagerConfig","requireNativeComponent","stopLists","Map","stopList","name","list","get","gradients","values","flatMap","offset","color","processColor","set","boxes","box","size","style","width","height","flex","useGlyph","glyph","props","ref","common","useCommonSVGProps","NativeIcon","svgGlyph","fill","gradient","_gradientDefs","_width","_height","opacity","transform","_transform","viewBox","_viewBox","strokeWidth","_strokeWidth","strokeLinecap","_strokeLinecap","strokeLinejoin","_strokeLinejoin","rest","token","paint","stroked","kind","jsx","Number","paths"],"sourceRoot":"../../../src","sources":["icons/glyph.native.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAWA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAAyD,IAAAI,WAAA,GAAAJ,OAAA;AAIzD;;AAYA,IAAIK,UAA6D;;AAEjE;AACA;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