@encorekit/web-sdk 2.0.1 → 2.0.2
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/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/umd/encore.min.js +1 -1
- package/dist/umd/encore.min.js.map +1 -1
- package/package.json +1 -1
- package/types/core/version.d.ts +1 -1
- package/types/ui/styles.d.ts +25 -15
- package/types/ui/styles.d.ts.map +1 -1
package/types/ui/styles.d.ts
CHANGED
|
@@ -26,16 +26,26 @@ export declare const BREAKPOINTS: {
|
|
|
26
26
|
* track Figma frame 18304:2399 (393×852). Where they disagree the Figma wins — see
|
|
27
27
|
* the PR for the itemised list. Web has no SDUI engine, so every value is hand-tracked.
|
|
28
28
|
*
|
|
29
|
-
* SHEET BACKGROUND
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
29
|
+
* SHEET BACKGROUND IS FLAT — a deliberate divergence from both the Figma and the
|
|
30
|
+
* variant, on Junaid's call. The sheet used to layer the Figma's radial brand glow
|
|
31
|
+
* over the variant's two stacked full-bleed gradients (an accent wash and a
|
|
32
|
+
* surface → background canvas); all of it is gone. `.thankyou--reward` now declares
|
|
33
|
+
* no background at all, exactly like the base `.thankyou`, so the sheet inherits the
|
|
34
|
+
* modal's `--encore-bg-color` and follows a publisher's theme instead of a colour
|
|
35
|
+
* this file paints. The brand custom properties stay — they feed the dot, the arrow
|
|
36
|
+
* focus ring, the CTA gradient and the card tint, none of which are background.
|
|
37
|
+
*
|
|
38
|
+
* `isolation: isolate` went with the layers. It was there so the confetti canvas
|
|
39
|
+
* (z-index 0) and the content (z-index 1) resolved inside the reward root rather than
|
|
40
|
+
* the modal's stacking context. Measured in Chrome after the removal: the topmost
|
|
41
|
+
* element over the title, the close button and the CTA is identical with and without
|
|
42
|
+
* it, because the canvas and the content are positioned siblings whose own z-indexes
|
|
43
|
+
* already order them, and the close button's z-index 10 still wins either way.
|
|
44
|
+
* `position: relative` STAYS — it is the canvas's declared positioning context for
|
|
45
|
+
* `inset: 0`. Its box happens to measure the same without it today only because the
|
|
46
|
+
* reward root exactly fills the modal; that coincidence ends the moment the modal
|
|
47
|
+
* scrolls, at which point `inset: 0` would size to the modal's viewport instead of
|
|
48
|
+
* the sheet.
|
|
39
49
|
*
|
|
40
50
|
* TEXT COLOUR stays on theme tokens rather than the Figma's #292D32 / #051E34. The
|
|
41
51
|
* variant's own dark-mode note is explicit that every mode-derived colour must remain
|
|
@@ -59,17 +69,17 @@ export declare const BREAKPOINTS: {
|
|
|
59
69
|
*
|
|
60
70
|
* DESKTOP WIDTH. The design is a 393-wide phone frame; on the desktop modal
|
|
61
71
|
* (max-width 800) the content column holds 393 and centres, so the hero keeps its
|
|
62
|
-
* proportions instead of stranding a 210px card in an 800px sheet.
|
|
63
|
-
* stays full-bleed — only the content column is constrained. Content sits at
|
|
72
|
+
* proportions instead of stranding a 210px card in an 800px sheet. Content sits at
|
|
64
73
|
* z-index 1 so it clears the confetti canvas, matching the variant's zStack order
|
|
65
|
-
* (
|
|
74
|
+
* (confetti → content).
|
|
66
75
|
*/
|
|
67
76
|
/**
|
|
68
77
|
* The reward sheet's brand pair, read off the Figma (frame 18304:2399).
|
|
69
78
|
*
|
|
70
79
|
* `#B728F5 → #6515ED` is the primary CTA's gradient (node 18304:2417, 98.22°), and
|
|
71
|
-
* `#B728F5` is also the active dot
|
|
72
|
-
* for the whole surface, which is why it is one variable rather than three
|
|
80
|
+
* `#B728F5` is also the active dot, the arrow focus ring and the card-tint default —
|
|
81
|
+
* one accent for the whole surface, which is why it is one variable rather than three
|
|
82
|
+
* literals. It no longer paints any background: the sheet is flat (see above).
|
|
73
83
|
*
|
|
74
84
|
* NOT `--encore-primary-color`. `streaksCarousel.json` fills this CTA with a FLAT
|
|
75
85
|
* `accent` (the publisher's brand colour) at `cornerRadius: 12`; the Figma shows this
|
package/types/ui/styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/ui/styles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,eAAO,MAAM,OAAO;;;CAGV,CAAC;AAGX,eAAO,MAAM,WAAW;;;;CAId,CAAC;AAEX
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/ui/styles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,eAAO,MAAM,OAAO;;;CAGV,CAAC;AAGX,eAAO,MAAM,WAAW;;;;CAId,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY,YAAY,CAAC;AACtC,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,6DAA6D;AAC7D,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAE1C;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB;;;;IAI/B,0FAA0F;;CAElF,CAAC;AAEX;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAwpDD;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,GAAE,cAAmB,GAAG,IAAI,CAgB7D;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,IAAI,CAMnC;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAUvD;AAED;;GAEG;AACH,wBAAgB,EAAE,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAE/C;AAED;;GAEG;AACH,wBAAgB,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE7C"}
|