@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
|
@@ -44,53 +44,80 @@ const FADE = _reactNativeReanimated.Easing.bezier(0.4, 0, 0.2, 1);
|
|
|
44
44
|
* can light up together (e.g. every post of a thread), cross-fading over
|
|
45
45
|
* 150ms. Web always; native only when `native` is set.
|
|
46
46
|
*
|
|
47
|
+
* Either way, on native a `pressed` value (`usePressHighlight`, iOS) adds the
|
|
48
|
+
* row's press wash on top, at the full fill.
|
|
49
|
+
*
|
|
47
50
|
* The wash color comes from the theme's `contrast50` token so it tracks the
|
|
48
51
|
* active preset and light/dark mode.
|
|
49
52
|
*/
|
|
50
53
|
function SubtleHover(t0) {
|
|
51
|
-
const $ = (0, _compilerRuntime.c)(
|
|
54
|
+
const $ = (0, _compilerRuntime.c)(10);
|
|
52
55
|
const {
|
|
53
56
|
active,
|
|
57
|
+
pressed,
|
|
54
58
|
style,
|
|
55
59
|
native: t1
|
|
56
60
|
} = t0;
|
|
57
61
|
const native = t1 === undefined ? false : t1;
|
|
58
|
-
|
|
59
|
-
if (active
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
});
|
|
68
|
-
$[0] = style;
|
|
69
|
-
$[1] = t2;
|
|
70
|
-
} else {
|
|
71
|
-
t2 = $[1];
|
|
72
|
-
}
|
|
73
|
-
return t2;
|
|
62
|
+
let t2;
|
|
63
|
+
if ($[0] !== active || $[1] !== native || $[2] !== style) {
|
|
64
|
+
t2 = washFor(active, native, style);
|
|
65
|
+
$[0] = active;
|
|
66
|
+
$[1] = native;
|
|
67
|
+
$[2] = style;
|
|
68
|
+
$[3] = t2;
|
|
69
|
+
} else {
|
|
70
|
+
t2 = $[3];
|
|
74
71
|
}
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
const wash = t2;
|
|
73
|
+
if (pressed === undefined || _reactNative.Platform.OS === "web") {
|
|
74
|
+
return wash;
|
|
77
75
|
}
|
|
78
|
-
let
|
|
79
|
-
if ($[
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
style: style
|
|
83
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(NativeActiveWash, {
|
|
84
|
-
active: active,
|
|
76
|
+
let t3;
|
|
77
|
+
if ($[4] !== pressed || $[5] !== style) {
|
|
78
|
+
t3 = /*#__PURE__*/(0, _jsxRuntime.jsx)(PressedWash, {
|
|
79
|
+
pressed: pressed,
|
|
85
80
|
style: style
|
|
86
81
|
});
|
|
87
|
-
$[
|
|
88
|
-
$[
|
|
89
|
-
$[
|
|
82
|
+
$[4] = pressed;
|
|
83
|
+
$[5] = style;
|
|
84
|
+
$[6] = t3;
|
|
90
85
|
} else {
|
|
91
|
-
|
|
86
|
+
t3 = $[6];
|
|
92
87
|
}
|
|
93
|
-
|
|
88
|
+
let t4;
|
|
89
|
+
if ($[7] !== t3 || $[8] !== wash) {
|
|
90
|
+
t4 = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
91
|
+
children: [wash, t3]
|
|
92
|
+
});
|
|
93
|
+
$[7] = t3;
|
|
94
|
+
$[8] = wash;
|
|
95
|
+
$[9] = t4;
|
|
96
|
+
} else {
|
|
97
|
+
t4 = $[9];
|
|
98
|
+
}
|
|
99
|
+
return t4;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** The hover or coordinated wash, drawn in place (no component of its own). */
|
|
103
|
+
function washFor(active, native, style) {
|
|
104
|
+
const isWeb = _reactNative.Platform.OS === 'web';
|
|
105
|
+
if (active === undefined) {
|
|
106
|
+
// A web pointer affordance. Native has no hover, and neither does touch web.
|
|
107
|
+
if (!isWeb || _pointer.IS_WEB_TOUCH_DEVICE) return null;
|
|
108
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(HoverWash, {
|
|
109
|
+
style: style
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
// JS-driven coordinated mode: web always; native only when opted in.
|
|
113
|
+
if (!isWeb && !native) return null;
|
|
114
|
+
return isWeb ? /*#__PURE__*/(0, _jsxRuntime.jsx)(WebActiveWash, {
|
|
115
|
+
active: active,
|
|
116
|
+
style: style
|
|
117
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(NativeActiveWash, {
|
|
118
|
+
active: active,
|
|
119
|
+
style: style
|
|
120
|
+
});
|
|
94
121
|
}
|
|
95
122
|
SubtleHover.displayName = 'SubtleHover';
|
|
96
123
|
function HoverWash(t0) {
|
|
@@ -234,6 +261,42 @@ function NativeActiveWash(t0) {
|
|
|
234
261
|
}
|
|
235
262
|
return t4;
|
|
236
263
|
}
|
|
264
|
+
|
|
265
|
+
/** A press's wash: the full fill, its opacity the press highlight's value, on the UI thread. */
|
|
266
|
+
function PressedWash(t0) {
|
|
267
|
+
const $ = (0, _compilerRuntime.c)(6);
|
|
268
|
+
const {
|
|
269
|
+
pressed,
|
|
270
|
+
style
|
|
271
|
+
} = t0;
|
|
272
|
+
const theme = (0, _theme.useTheme)();
|
|
273
|
+
const fade = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
274
|
+
opacity: pressed.value
|
|
275
|
+
}), [pressed]);
|
|
276
|
+
let t1;
|
|
277
|
+
if ($[0] !== theme.colors.contrast50) {
|
|
278
|
+
t1 = {
|
|
279
|
+
backgroundColor: theme.colors.contrast50
|
|
280
|
+
};
|
|
281
|
+
$[0] = theme.colors.contrast50;
|
|
282
|
+
$[1] = t1;
|
|
283
|
+
} else {
|
|
284
|
+
t1 = $[1];
|
|
285
|
+
}
|
|
286
|
+
let t2;
|
|
287
|
+
if ($[2] !== fade || $[3] !== style || $[4] !== t1) {
|
|
288
|
+
t2 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
289
|
+
style: [styles.overlay, t1, fade, style]
|
|
290
|
+
});
|
|
291
|
+
$[2] = fade;
|
|
292
|
+
$[3] = style;
|
|
293
|
+
$[4] = t1;
|
|
294
|
+
$[5] = t2;
|
|
295
|
+
} else {
|
|
296
|
+
t2 = $[5];
|
|
297
|
+
}
|
|
298
|
+
return t2;
|
|
299
|
+
}
|
|
237
300
|
const styles = _reactNative.StyleSheet.create({
|
|
238
301
|
overlay: {
|
|
239
302
|
position: 'absolute',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_theme","_adoptStyleSheet","_pointer","_webData","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","hoverGroupProps","exports","webDataSet","bloomHoverGroup","STYLE_ID","CSS","FADE_MS","FADE","Easing","bezier","SubtleHover","t0","$","_compilerRuntime","active","style","native","t1","undefined","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_theme","_adoptStyleSheet","_pointer","_webData","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","hoverGroupProps","exports","webDataSet","bloomHoverGroup","STYLE_ID","CSS","FADE_MS","FADE","Easing","bezier","SubtleHover","t0","$","_compilerRuntime","active","pressed","style","native","t1","undefined","t2","washFor","wash","Platform","OS","t3","jsx","PressedWash","t4","jsxs","Fragment","children","isWeb","IS_WEB_TOUCH_DEVICE","HoverWash","WebActiveWash","NativeActiveWash","displayName","theme","useTheme","Symbol","for","adoptStyleSheet","useEffect","bloomSubtleHover","colors","contrast50","backgroundColor","t5","View","styles","overlay","isDark","opacity","webFade","target","useSharedValue","value","withTiming","duration","easing","fade","useAnimatedStyle","StyleSheet","create","position","top","left","right","bottom","pointerEvents","transitionProperty","transitionDuration","transitionTimingFunction"],"sourceRoot":"../../../src","sources":["subtle-hover/SubtleHover.tsx"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAQA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AAAgD,IAAAQ,WAAA,GAAAR,OAAA;AAAA,IAAAS,KAAA;AAAA,SAAAN,wBAAAO,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,MAAAA,CAAA,SAAAQ,CAAA,MAAAT,KAAA,yBAAAY,OAAA,KAAAZ,KAAA,OAAAY,OAAA,KAAAZ,KAAA,QAAAA,KAAA,CAAAa,GAAA,CAAAZ,CAAA,UAAAD,KAAA,CAAAc,GAAA,CAAAb,CAAA,GAAAD,KAAA,CAAAe,GAAA,CAAAd,CAAA,EAAAQ,CAAA,UAAAJ,CAAA,IAAAJ,CAAA,gBAAAI,CAAA,OAAAW,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAI,CAAA,OAAAD,CAAA,GAAAE,CAAA,IAAAC,MAAA,CAAAW,wBAAA,CAAAjB,CAAA,EAAAI,CAAA,OAAAD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A;MAAA6B,eAAA,EAAmBT,KAAK,CAAAO,MAAO,CAAAC;IAAY,CAAC;IAAAlC,CAAA,MAAA0B,KAAA,CAAAO,MAAA,CAAAC,UAAA;IAAAlC,CAAA,MAAAM,EAAA;EAAA;IAAAA,EAAA,GAAAN,CAAA;EAAA;EAAA,IAAAQ,EAAA;EAAA,IAAAR,CAAA,QAAAiD,IAAA,IAAAjD,CAAA,QAAAI,KAAA,IAAAJ,CAAA,QAAAM,EAAA;IADtEE,EAAA,oBAAAxC,WAAA,CAAA8C,GAAA,EAAApD,sBAAA,CAAAkB,OAAA,CAAAyD,IAAA;MACSjC,KAA2E,EAA3E,CAACkC,MAAM,CAAAC,OAAQ,EAAEjC,EAA4C,EAAE2C,IAAI,EAAE7C,KAAK;IAAC,CACnF,CAAC;IAAAJ,CAAA,MAAAiD,IAAA;IAAAjD,CAAA,MAAAI,KAAA;IAAAJ,CAAA,MAAAM,EAAA;IAAAN,CAAA,MAAAQ,EAAA;EAAA;IAAAA,EAAA,GAAAR,CAAA;EAAA;EAAA,OAFFQ,EAEE;AAAA;AAIN,MAAM8B,MAAM,GAAGa,uBAAU,CAACC,MAAM,CAAC;EAC/Bb,OAAO,EAAE;IACPc,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,aAAa,EAAE;EACjB,CAAC;EACDhB,OAAO,EAAE;IACPiB,kBAAkB,EAAE,SAAS;IAC7BC,kBAAkB,EAAE,OAAO;IAC3BC,wBAAwB,EAAE;EAC5B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -15,5 +15,12 @@ Object.defineProperty(exports, "hoverGroupProps", {
|
|
|
15
15
|
return _SubtleHover.hoverGroupProps;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "usePressHighlight", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _usePressHighlight.usePressHighlight;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
18
24
|
var _SubtleHover = require("./SubtleHover.js");
|
|
25
|
+
var _usePressHighlight = require("./use-press-highlight.js");
|
|
19
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_SubtleHover","require"],"sourceRoot":"../../../src","sources":["subtle-hover/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_SubtleHover","require","_usePressHighlight"],"sourceRoot":"../../../src","sources":["subtle-hover/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,kBAAA,GAAAD,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.usePressHighlight = void 0;
|
|
7
|
+
var _compilerRuntime = require("react/compiler-runtime");
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
var _reactNative = require("react-native");
|
|
10
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
11
|
+
var _theme = require("../theme");
|
|
12
|
+
/** The props a row's pressable host spreads for its press highlight. */
|
|
13
|
+
|
|
14
|
+
/** The release's fade, as `SubtleHover`'s cross-fade. */
|
|
15
|
+
const FADE_OUT = {
|
|
16
|
+
duration: 150,
|
|
17
|
+
easing: _reactNativeReanimated.Easing.bezier(0.4, 0, 0.2, 1)
|
|
18
|
+
};
|
|
19
|
+
const NONE = Object.freeze({
|
|
20
|
+
hostProps: Object.freeze({}),
|
|
21
|
+
pressed: undefined
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Android: the ripple React Native draws for a `Pressable` (`android_ripple`).
|
|
26
|
+
* The press reaches the view as a command, without a React render, and the
|
|
27
|
+
* ripple animates on the render thread.
|
|
28
|
+
*/
|
|
29
|
+
function useRipple() {
|
|
30
|
+
const $ = (0, _compilerRuntime.c)(2);
|
|
31
|
+
const color = (0, _theme.useTheme)().colors.contrast50;
|
|
32
|
+
let t0;
|
|
33
|
+
if ($[0] !== color) {
|
|
34
|
+
t0 = {
|
|
35
|
+
hostProps: {
|
|
36
|
+
android_ripple: {
|
|
37
|
+
color,
|
|
38
|
+
borderless: false
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
pressed: undefined
|
|
42
|
+
};
|
|
43
|
+
$[0] = color;
|
|
44
|
+
$[1] = t0;
|
|
45
|
+
} else {
|
|
46
|
+
t0 = $[1];
|
|
47
|
+
}
|
|
48
|
+
return t0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* iOS: a wash the press lights at once and the release fades, as a table
|
|
53
|
+
* cell's highlight. Press in and out only set a shared value: no React render,
|
|
54
|
+
* and the wash's opacity follows it on the UI thread.
|
|
55
|
+
*/
|
|
56
|
+
function useWash() {
|
|
57
|
+
const pressed = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
58
|
+
return (0, _react.useMemo)(() => ({
|
|
59
|
+
hostProps: {
|
|
60
|
+
onPressIn: () => {
|
|
61
|
+
pressed.value = 1;
|
|
62
|
+
},
|
|
63
|
+
onPressOut: () => {
|
|
64
|
+
pressed.value = (0, _reactNativeReanimated.withTiming)(0, FADE_OUT);
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
pressed
|
|
68
|
+
}), [pressed]);
|
|
69
|
+
}
|
|
70
|
+
function useNone() {
|
|
71
|
+
return NONE;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* A pressable row's pressed state on native, in the wash `SubtleHover` paints:
|
|
76
|
+
* the theme's `contrast50`, the fill an unfilled Bloom control takes while
|
|
77
|
+
* held. Android draws its ripple; iOS lights the row's `SubtleHover`. The web
|
|
78
|
+
* has the pointer's hover wash and gets nothing here.
|
|
79
|
+
*
|
|
80
|
+
* Spread `hostProps` only on a row that takes a press: a `Pressable` without
|
|
81
|
+
* `onPress` still answers a touch.
|
|
82
|
+
*
|
|
83
|
+
* ```tsx
|
|
84
|
+
* const highlight = usePressHighlight();
|
|
85
|
+
* <Pressable onPress={open} {...highlight.hostProps}>
|
|
86
|
+
* <SubtleHover pressed={highlight.pressed} />
|
|
87
|
+
* …
|
|
88
|
+
* </Pressable>
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* A child that takes its own press (a button, a link) holds the touch, so the
|
|
92
|
+
* row does not light; a scroll that takes the touch releases it.
|
|
93
|
+
*/
|
|
94
|
+
const usePressHighlight = exports.usePressHighlight = _reactNative.Platform.OS === 'android' ? useRipple : _reactNative.Platform.OS === 'ios' ? useWash : useNone;
|
|
95
|
+
//# sourceMappingURL=use-press-highlight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_theme","FADE_OUT","duration","easing","Easing","bezier","NONE","Object","freeze","hostProps","pressed","undefined","useRipple","$","_compilerRuntime","c","color","useTheme","colors","contrast50","t0","android_ripple","borderless","useWash","useSharedValue","useMemo","onPressIn","value","onPressOut","withTiming","useNone","usePressHighlight","exports","Platform","OS"],"sourceRoot":"../../../src","sources":["subtle-hover/use-press-highlight.ts"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AAEA;;AAoBA;AACA,MAAMI,QAAQ,GAAG;EAAEC,QAAQ,EAAE,GAAG;EAAEC,MAAM,EAAEC,6BAAM,CAACC,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC;AAAE,CAAC;AAEzE,MAAMC,IAAoB,GAAGC,MAAM,CAACC,MAAM,CAAC;EAAEC,SAAS,EAAEF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AAE,KAAK,SAAS,GAAGtB,SAAS,GAAGqB,qBAAQ,CAACC,EAAE,KAAK,KAAK,GAAGX,OAAO,GAAGO,OAAO","ignoreList":[]}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { c as _c } from "react/compiler-runtime";
|
|
4
3
|
import { forwardRef } from 'react';
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { useGlyph } from './glyph';
|
|
5
|
+
/**
|
|
6
|
+
* The icon component of one glyph. What draws it is the platform's: inline SVG
|
|
7
|
+
* on the web, one native view per icon on native when the app's binary has it
|
|
8
|
+
* (`glyph.native.tsx`), react-native-svg otherwise.
|
|
9
|
+
*/
|
|
10
|
+
function iconComponent(glyph) {
|
|
11
|
+
return /*#__PURE__*/forwardRef(function IconImpl(props, ref) {
|
|
12
|
+
return useGlyph(glyph, props, ref);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
8
15
|
export function createSinglePathSVG({
|
|
9
16
|
path,
|
|
10
17
|
viewBox,
|
|
@@ -12,166 +19,26 @@ export function createSinglePathSVG({
|
|
|
12
19
|
strokeLinecap = 'butt',
|
|
13
20
|
strokeLinejoin = 'miter'
|
|
14
21
|
}) {
|
|
15
|
-
return
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
let style;
|
|
23
|
-
if ($[0] !== t0) {
|
|
24
|
-
({
|
|
25
|
-
fill,
|
|
26
|
-
size,
|
|
27
|
-
style,
|
|
28
|
-
gradient,
|
|
29
|
-
...rest
|
|
30
|
-
} = t0);
|
|
31
|
-
$[0] = t0;
|
|
32
|
-
$[1] = fill;
|
|
33
|
-
$[2] = gradient;
|
|
34
|
-
$[3] = rest;
|
|
35
|
-
$[4] = size;
|
|
36
|
-
$[5] = style;
|
|
37
|
-
} else {
|
|
38
|
-
fill = $[1];
|
|
39
|
-
gradient = $[2];
|
|
40
|
-
rest = $[3];
|
|
41
|
-
size = $[4];
|
|
42
|
-
style = $[5];
|
|
43
|
-
}
|
|
44
|
-
const hasStroke = strokeWidth > 0;
|
|
45
|
-
let t1;
|
|
46
|
-
if ($[6] !== style) {
|
|
47
|
-
t1 = [style];
|
|
48
|
-
$[6] = style;
|
|
49
|
-
$[7] = t1;
|
|
50
|
-
} else {
|
|
51
|
-
t1 = $[7];
|
|
52
|
-
}
|
|
53
|
-
const t2 = hasStroke ? "none" : fill;
|
|
54
|
-
const t3 = hasStroke ? fill : "none";
|
|
55
|
-
let t4;
|
|
56
|
-
if ($[8] !== t2 || $[9] !== t3) {
|
|
57
|
-
t4 = /*#__PURE__*/_jsx(Path, {
|
|
58
|
-
fill: t2,
|
|
59
|
-
stroke: t3,
|
|
60
|
-
strokeWidth: strokeWidth,
|
|
61
|
-
strokeLinecap: strokeLinecap,
|
|
62
|
-
strokeLinejoin: strokeLinejoin,
|
|
63
|
-
fillRule: "evenodd",
|
|
64
|
-
clipRule: "evenodd",
|
|
65
|
-
d: path
|
|
66
|
-
});
|
|
67
|
-
$[8] = t2;
|
|
68
|
-
$[9] = t3;
|
|
69
|
-
$[10] = t4;
|
|
70
|
-
} else {
|
|
71
|
-
t4 = $[10];
|
|
72
|
-
}
|
|
73
|
-
let t5;
|
|
74
|
-
if ($[11] !== gradient || $[12] !== ref || $[13] !== rest || $[14] !== size || $[15] !== t1 || $[16] !== t4) {
|
|
75
|
-
t5 = /*#__PURE__*/_jsxs(Svg, {
|
|
76
|
-
fill: "none",
|
|
77
|
-
...rest,
|
|
78
|
-
ref: ref,
|
|
79
|
-
viewBox: viewBox || "0 0 24 24",
|
|
80
|
-
width: size,
|
|
81
|
-
height: size,
|
|
82
|
-
style: t1,
|
|
83
|
-
children: [gradient, t4]
|
|
84
|
-
});
|
|
85
|
-
$[11] = gradient;
|
|
86
|
-
$[12] = ref;
|
|
87
|
-
$[13] = rest;
|
|
88
|
-
$[14] = size;
|
|
89
|
-
$[15] = t1;
|
|
90
|
-
$[16] = t4;
|
|
91
|
-
$[17] = t5;
|
|
92
|
-
} else {
|
|
93
|
-
t5 = $[17];
|
|
94
|
-
}
|
|
95
|
-
return t5;
|
|
22
|
+
return iconComponent({
|
|
23
|
+
kind: 'single',
|
|
24
|
+
paths: [path],
|
|
25
|
+
viewBox: viewBox || '0 0 24 24',
|
|
26
|
+
strokeWidth,
|
|
27
|
+
strokeLinecap,
|
|
28
|
+
strokeLinejoin
|
|
96
29
|
});
|
|
97
30
|
}
|
|
98
31
|
export function createMultiPathSVG({
|
|
99
32
|
paths,
|
|
100
33
|
viewBox
|
|
101
34
|
}) {
|
|
102
|
-
return
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
let style;
|
|
110
|
-
if ($[0] !== t0) {
|
|
111
|
-
({
|
|
112
|
-
fill,
|
|
113
|
-
size,
|
|
114
|
-
style,
|
|
115
|
-
gradient,
|
|
116
|
-
...rest
|
|
117
|
-
} = t0);
|
|
118
|
-
$[0] = t0;
|
|
119
|
-
$[1] = fill;
|
|
120
|
-
$[2] = gradient;
|
|
121
|
-
$[3] = rest;
|
|
122
|
-
$[4] = size;
|
|
123
|
-
$[5] = style;
|
|
124
|
-
} else {
|
|
125
|
-
fill = $[1];
|
|
126
|
-
gradient = $[2];
|
|
127
|
-
rest = $[3];
|
|
128
|
-
size = $[4];
|
|
129
|
-
style = $[5];
|
|
130
|
-
}
|
|
131
|
-
let t1;
|
|
132
|
-
if ($[6] !== style) {
|
|
133
|
-
t1 = [style];
|
|
134
|
-
$[6] = style;
|
|
135
|
-
$[7] = t1;
|
|
136
|
-
} else {
|
|
137
|
-
t1 = $[7];
|
|
138
|
-
}
|
|
139
|
-
let t2;
|
|
140
|
-
if ($[8] !== fill) {
|
|
141
|
-
t2 = paths.map((path, i) => /*#__PURE__*/_jsx(Path, {
|
|
142
|
-
fill: fill,
|
|
143
|
-
fillRule: "evenodd",
|
|
144
|
-
clipRule: "evenodd",
|
|
145
|
-
d: path
|
|
146
|
-
}, i));
|
|
147
|
-
$[8] = fill;
|
|
148
|
-
$[9] = t2;
|
|
149
|
-
} else {
|
|
150
|
-
t2 = $[9];
|
|
151
|
-
}
|
|
152
|
-
let t3;
|
|
153
|
-
if ($[10] !== gradient || $[11] !== ref || $[12] !== rest || $[13] !== size || $[14] !== t1 || $[15] !== t2) {
|
|
154
|
-
t3 = /*#__PURE__*/_jsxs(Svg, {
|
|
155
|
-
fill: "none",
|
|
156
|
-
...rest,
|
|
157
|
-
ref: ref,
|
|
158
|
-
viewBox: viewBox || "0 0 24 24",
|
|
159
|
-
width: size,
|
|
160
|
-
height: size,
|
|
161
|
-
style: t1,
|
|
162
|
-
children: [gradient, t2]
|
|
163
|
-
});
|
|
164
|
-
$[10] = gradient;
|
|
165
|
-
$[11] = ref;
|
|
166
|
-
$[12] = rest;
|
|
167
|
-
$[13] = size;
|
|
168
|
-
$[14] = t1;
|
|
169
|
-
$[15] = t2;
|
|
170
|
-
$[16] = t3;
|
|
171
|
-
} else {
|
|
172
|
-
t3 = $[16];
|
|
173
|
-
}
|
|
174
|
-
return t3;
|
|
35
|
+
return iconComponent({
|
|
36
|
+
kind: 'multi',
|
|
37
|
+
paths,
|
|
38
|
+
viewBox: viewBox || '0 0 24 24',
|
|
39
|
+
strokeWidth: 0,
|
|
40
|
+
strokeLinecap: 'butt',
|
|
41
|
+
strokeLinejoin: 'miter'
|
|
175
42
|
});
|
|
176
43
|
}
|
|
177
44
|
//# sourceMappingURL=TEMPLATE.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","
|
|
1
|
+
{"version":3,"names":["forwardRef","useGlyph","iconComponent","glyph","IconImpl","props","ref","createSinglePathSVG","path","viewBox","strokeWidth","strokeLinecap","strokeLinejoin","kind","paths","createMultiPathSVG"],"sourceRoot":"../../../src","sources":["icons/TEMPLATE.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAGlC,SAAyBC,QAAQ,QAAQ,SAAS;AAGlD;AACA;AACA;AACA;AACA;AACA,SAASC,aAAaA,CAACC,KAAgB,EAAE;EACvC,oBAAOH,UAAU,CAAa,SAAAI,SAAAC,KAAA,EAAAC,GAAA;IAAA,OACrBL,QAAQ,CAACE,KAAK,EAAEE,KAAK,EAAEC,GAAG,CAAC;EAAA,CACnC,CAAC;AACJ;AAEA,OAAO,SAASC,mBAAmBA,CAAC;EAClCC,IAAI;EACJC,OAAO;EACPC,WAAW,GAAG,CAAC;EACfC,aAAa,GAAG,MAAM;EACtBC,cAAc,GAAG;AAOnB,CAAC,EAAE;EACD,OAAOV,aAAa,CAAC;IACnBW,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;AAEA,OAAO,SAASG,kBAAkBA,CAAC;EAAED,KAAK;EAAEL;AAA+C,CAAC,EAAE;EAC5F,OAAOP,aAAa,CAAC;IACnBW,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,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import Svg, { Path } from 'react-native-svg';
|
|
4
|
+
|
|
5
|
+
/** One glyph as its factory describes it: its path data and how it paints. */
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
/** The glyph as react-native-svg (and, on the web, inline SVG) draws it. */
|
|
8
|
+
export function svgGlyph(glyph, {
|
|
9
|
+
fill,
|
|
10
|
+
size,
|
|
11
|
+
style,
|
|
12
|
+
gradient,
|
|
13
|
+
...rest
|
|
14
|
+
}, ref) {
|
|
15
|
+
const hasStroke = glyph.strokeWidth > 0;
|
|
16
|
+
return /*#__PURE__*/_jsxs(Svg, {
|
|
17
|
+
fill: "none",
|
|
18
|
+
...rest,
|
|
19
|
+
ref: ref,
|
|
20
|
+
viewBox: glyph.viewBox,
|
|
21
|
+
width: size,
|
|
22
|
+
height: size,
|
|
23
|
+
style: [style],
|
|
24
|
+
children: [gradient, glyph.kind === 'single' ? /*#__PURE__*/_jsx(Path, {
|
|
25
|
+
fill: hasStroke ? 'none' : fill,
|
|
26
|
+
stroke: hasStroke ? fill : 'none',
|
|
27
|
+
strokeWidth: glyph.strokeWidth,
|
|
28
|
+
strokeLinecap: glyph.strokeLinecap,
|
|
29
|
+
strokeLinejoin: glyph.strokeLinejoin,
|
|
30
|
+
fillRule: "evenodd",
|
|
31
|
+
clipRule: "evenodd",
|
|
32
|
+
d: glyph.paths[0]
|
|
33
|
+
}) : glyph.paths.map((path, i) => /*#__PURE__*/_jsx(Path, {
|
|
34
|
+
fill: fill,
|
|
35
|
+
fillRule: "evenodd",
|
|
36
|
+
clipRule: "evenodd",
|
|
37
|
+
d: path
|
|
38
|
+
}, i))]
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=glyph-svg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Svg","Path","jsx","_jsx","jsxs","_jsxs","svgGlyph","glyph","fill","size","style","gradient","rest","ref","hasStroke","strokeWidth","viewBox","width","height","children","kind","stroke","strokeLinecap","strokeLinejoin","fillRule","clipRule","d","paths","map","path","i"],"sourceRoot":"../../../src","sources":["icons/glyph-svg.tsx"],"mappings":";;AACA,OAAOA,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;;AAI5C;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAYA;AACA,OAAO,SAASC,QAAQA,CACtBC,KAAgB,EAChB;EAAEC,IAAI;EAAEC,IAAI;EAAEC,KAAK;EAAEC,QAAQ;EAAE,GAAGC;AAAqB,CAAC,EACxDC,GAAsB,EACtB;EACA,MAAMC,SAAS,GAAGP,KAAK,CAACQ,WAAW,GAAG,CAAC;EACvC,oBACEV,KAAA,CAACL,GAAG;IACFQ,IAAI,EAAC,MAAM;IAAA,GACPI,IAAI;IACRC,GAAG,EAAEA,GAAI;IACTG,OAAO,EAAET,KAAK,CAACS,OAAQ;IACvBC,KAAK,EAAER,IAAK;IACZS,MAAM,EAAET,IAAK;IACbC,KAAK,EAAE,CAACA,KAAK,CAAE;IAAAS,QAAA,GAEdR,QAAQ,EACRJ,KAAK,CAACa,IAAI,KAAK,QAAQ,gBACtBjB,IAAA,CAACF,IAAI;MACHO,IAAI,EAAEM,SAAS,GAAG,MAAM,GAAGN,IAAK;MAChCa,MAAM,EAAEP,SAAS,GAAGN,IAAI,GAAG,MAAO;MAClCO,WAAW,EAAER,KAAK,CAACQ,WAAY;MAC/BO,aAAa,EAAEf,KAAK,CAACe,aAAc;MACnCC,cAAc,EAAEhB,KAAK,CAACgB,cAAe;MACrCC,QAAQ,EAAC,SAAS;MAClBC,QAAQ,EAAC,SAAS;MAClBC,CAAC,EAAEnB,KAAK,CAACoB,KAAK,CAAC,CAAC;IAAE,CACnB,CAAC,GAEFpB,KAAK,CAACoB,KAAK,CAACC,GAAG,CAAC,CAACC,IAAI,EAAEC,CAAC,kBACtB3B,IAAA,CAACF,IAAI;MAASO,IAAI,EAAEA,IAAK;MAACgB,QAAQ,EAAC,SAAS;MAACC,QAAQ,EAAC,SAAS;MAACC,CAAC,EAAEG;IAAK,GAA7DC,CAA+D,CAC3E,CACF;EAAA,CACE,CAAC;AAEV","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { svgGlyph } from "./glyph-svg.js";
|
|
5
|
+
import { useCommonSVGProps } from "./shared.js";
|
|
6
|
+
/**
|
|
7
|
+
* Draws a Bloom icon. Here (the web, and Node) it is inline SVG, which costs
|
|
8
|
+
* nothing extra in a browser; `glyph.native.tsx` is the native fork.
|
|
9
|
+
*/
|
|
10
|
+
export function useGlyph(glyph, props, ref) {
|
|
11
|
+
const $ = _c(4);
|
|
12
|
+
const t0 = useCommonSVGProps(props);
|
|
13
|
+
let t1;
|
|
14
|
+
if ($[0] !== glyph || $[1] !== ref || $[2] !== t0) {
|
|
15
|
+
t1 = svgGlyph(glyph, t0, ref);
|
|
16
|
+
$[0] = glyph;
|
|
17
|
+
$[1] = ref;
|
|
18
|
+
$[2] = t0;
|
|
19
|
+
$[3] = t1;
|
|
20
|
+
} else {
|
|
21
|
+
t1 = $[3];
|
|
22
|
+
}
|
|
23
|
+
return t1;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=glyph.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["svgGlyph","useCommonSVGProps","useGlyph","glyph","props","ref","$","_c","t0","t1"],"sourceRoot":"../../../src","sources":["icons/glyph.tsx"],"mappings":";;;AAGA,SAAyBA,QAAQ,QAAQ,gBAAa;AACtD,SAAqBC,iBAAiB,QAAQ,aAAU;AAIxD;AACA;AACA;AACA;AACA,OAAO,SAAAC,SAAAC,KAAA,EAAAC,KAAA,EAAAC,GAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EACkB,MAAAC,EAAA,GAAAP,iBAAiB,CAACG,KAAK,CAAC;EAAA,IAAAK,EAAA;EAAA,IAAAH,CAAA,QAAAH,KAAA,IAAAG,CAAA,QAAAD,GAAA,IAAAC,CAAA,QAAAE,EAAA;IAAxCC,EAAA,GAAAT,QAAQ,CAACG,KAAK,EAAEK,EAAwB,EAAEH,GAAG,CAAC;IAAAC,CAAA,MAAAH,KAAA;IAAAG,CAAA,MAAAD,GAAA;IAAAC,CAAA,MAAAE,EAAA;IAAAF,CAAA,MAAAG,EAAA;EAAA;IAAAA,EAAA,GAAAH,CAAA;EAAA;EAAA,OAA9CG,EAA8C;AAAA","ignoreList":[]}
|