@base44/app-plugin-commerce 0.6.2 → 0.6.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@base44/app-plugin-commerce",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Base44 Commerce plugin — entities, backend functions, shared commerce engine, admin UI and the commerce skill, shipped as copyable source",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"base44",
|
|
@@ -13,7 +13,10 @@ import { REQUIRED_BILLING_FIELDS } from "./address";
|
|
|
13
13
|
* `autoComplete` tokens are what make browser autofill work, and the server's
|
|
14
14
|
* "we don't ship there" belongs on the country field.
|
|
15
15
|
*
|
|
16
|
-
* It renders semantic fields and nothing else
|
|
16
|
+
* It renders semantic fields and nothing else. No CSS ships with it bar one
|
|
17
|
+
* containment guard — `max-width: 100%` on the selects, because their
|
|
18
|
+
* intrinsic width is the longest country name and an unstyled checkout would
|
|
19
|
+
* otherwise scroll sideways on a phone. It caps; it never sizes. Every
|
|
17
20
|
* element carries `data-part` (`field`, `label`, `control`, `required`,
|
|
18
21
|
* `error`) plus `data-key`/`data-span`/`data-invalid`, so the store's own
|
|
19
22
|
* classes attach via `className`/`classes` props or `[data-part]` selectors.
|
|
@@ -116,6 +119,13 @@ export function AddressFields({
|
|
|
116
119
|
<select
|
|
117
120
|
data-part="control"
|
|
118
121
|
className={classes?.control}
|
|
122
|
+
// The one style that ships: an unconstrained <select> takes the
|
|
123
|
+
// intrinsic width of its widest option, and the country list
|
|
124
|
+
// ("United Arab Emirates") is wider than a phone. Without this
|
|
125
|
+
// the checkout scrolls sideways on mobile before the store has
|
|
126
|
+
// written a single class. Caps only — any width the store sets
|
|
127
|
+
// still applies.
|
|
128
|
+
style={{ maxWidth: "100%" }}
|
|
119
129
|
aria-invalid={invalid || undefined}
|
|
120
130
|
aria-required={f.required || undefined}
|
|
121
131
|
{...dom}
|