@zappie/theme-base 0.1.40 → 0.1.43
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/CHANGELOG.md +24 -0
- package/dist/styles.css +18 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @zappie/theme-base
|
|
2
2
|
|
|
3
|
+
## 0.1.43
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [7980f3c]
|
|
8
|
+
- @zappie/sdk@0.27.0
|
|
9
|
+
- @zappie/foundations@0.26.0
|
|
10
|
+
|
|
11
|
+
## 0.1.42
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [80af2eb]
|
|
16
|
+
- @zappie/sdk@0.26.0
|
|
17
|
+
- @zappie/foundations@0.25.0
|
|
18
|
+
|
|
19
|
+
## 0.1.41
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 6186e4f: Choice and PaymentMethods.Item are real form controls now. Each is a `<label>` around a native `<input type="radio">` or `<input type="checkbox">`, so the browser draws a round radio for a group that takes exactly one and a square checkbox for every other group, and owns the arrows, Tab and Space. The label keeps every data attribute it had as a button (`data-zappie-option`, `data-control`, `data-state`, `data-selected`, `data-disabled`, `data-sold-out`, `data-limit-reached`) and the template's `className`. The input carries `checked`, `disabled` for a sold-out choice or one the template passes `disabled`, `aria-disabled` for a choice held back by the group's limit, and `data-zappie-choice-input` for styling. A template that draws its own mark restyles or hides that input, styles its focus ring with `:has(> [data-zappie-choice-input]:focus-visible)` and its disabled look with `[data-disabled]`. Put quantity steppers beside a Choice, not inside it. The base theme draws its marks on the input. V05 skips sold-out choices by `data-disabled` as well as `aria-disabled`.
|
|
24
|
+
- Updated dependencies [6186e4f]
|
|
25
|
+
- @zappie/foundations@0.24.0
|
|
26
|
+
|
|
3
27
|
## 0.1.40
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/dist/styles.css
CHANGED
|
@@ -311,6 +311,11 @@
|
|
|
311
311
|
padding: var(--z-space-3);
|
|
312
312
|
border: 1px solid var(--z-border);
|
|
313
313
|
border-radius: var(--z-radius-md);
|
|
314
|
+
display: flex;
|
|
315
|
+
gap: var(--z-space-2);
|
|
316
|
+
align-items: center;
|
|
317
|
+
cursor: pointer;
|
|
318
|
+
accent-color: var(--z-accent-contrast);
|
|
314
319
|
}
|
|
315
320
|
[data-zappie-theme="base"] .z-base-choice[data-selected] {
|
|
316
321
|
border-color: var(--z-accent-contrast);
|
|
@@ -739,22 +744,31 @@
|
|
|
739
744
|
width: 100%;
|
|
740
745
|
background: transparent;
|
|
741
746
|
font-size: 14px;
|
|
747
|
+
cursor: pointer;
|
|
742
748
|
}
|
|
743
|
-
|
|
744
|
-
|
|
749
|
+
/* The native input is the mark: round for a radio, square for a checkbox. */
|
|
750
|
+
.z-base-item .z-base-choice > [data-zappie-choice-input] {
|
|
751
|
+
appearance: none;
|
|
752
|
+
margin: 0;
|
|
745
753
|
width: 20px;
|
|
746
754
|
height: 20px;
|
|
747
755
|
flex-shrink: 0;
|
|
748
756
|
border: 1px solid var(--z-text-muted);
|
|
749
757
|
border-radius: 50%;
|
|
750
758
|
}
|
|
751
|
-
.z-base-item
|
|
759
|
+
.z-base-item
|
|
760
|
+
.z-base-choice[data-control="checkbox"]
|
|
761
|
+
> [data-zappie-choice-input] {
|
|
752
762
|
border-radius: 4px;
|
|
753
763
|
}
|
|
754
|
-
.z-base-item .z-base-choice[data-selected]
|
|
764
|
+
.z-base-item .z-base-choice[data-selected] > [data-zappie-choice-input] {
|
|
755
765
|
background: var(--z-text);
|
|
756
766
|
box-shadow: inset 0 0 0 4px var(--z-surface);
|
|
757
767
|
}
|
|
768
|
+
.z-base-item .z-base-choice > [data-zappie-choice-input]:focus-visible {
|
|
769
|
+
outline: 2px solid var(--z-focus-ring);
|
|
770
|
+
outline-offset: 2px;
|
|
771
|
+
}
|
|
758
772
|
.z-base-item-purchase {
|
|
759
773
|
display: flex;
|
|
760
774
|
gap: var(--z-space-3);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zappie/theme-base",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.43",
|
|
4
4
|
"description": "The base storefront theme Zappie's own storefront app renders, built only from Zappie's public packages.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"CHANGELOG.md"
|
|
55
55
|
],
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@zappie/foundations": "^0.
|
|
57
|
+
"@zappie/foundations": "^0.26.0",
|
|
58
58
|
"@zappie/tokens": "^0.2.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"react": "^19.2.0",
|
|
62
|
-
"@zappie/sdk": "^0.
|
|
62
|
+
"@zappie/sdk": "^0.27.0"
|
|
63
63
|
},
|
|
64
64
|
"repository": {
|
|
65
65
|
"type": "git",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"url": "https://github.com/zappie/storefront-packages/issues"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@zappie/sdk": "0.
|
|
75
|
+
"@zappie/sdk": "0.27.0"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"build": "tsup && node ../../scripts/release-packages/build-modules.mjs"
|