@gemboss/gem-framework 0.18.11 → 0.18.15
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/README.md +38 -0
- package/dist/SOURCE.json +3 -3
- package/dist/editions.js +2 -0
- package/dist/gem-framework.css +36 -7
- package/dist/gem-runtime.js +655 -1
- package/dist/index.js +748 -14
- package/dist/plugins/reviews.d.ts +9 -0
- package/dist/plugins/reviews.js +670 -0
- package/dist/popup-shell.css +4 -4
- package/dist/primitives.css +29 -1
- package/dist/section-gate.js +737 -11
- package/dist/sections.css +2 -2
- package/dist/tokens.css +1 -0
- package/package.json +1 -1
package/dist/popup-shell.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
width: min(880px, 92vw); max-width: none; max-height: min(640px, 92vh); overflow: hidden;
|
|
5
5
|
border-radius: var(--gem-radius-lg); box-shadow: var(--gem-shadow-md);
|
|
6
6
|
}
|
|
7
|
-
.gem-popup-shell__dialog::backdrop { background:
|
|
7
|
+
.gem-popup-shell__dialog::backdrop { background: color-mix(in srgb, var(--gem-color-scrim, #000) 55%, transparent); }
|
|
8
8
|
.gem-popup-shell__frame { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; height: 100%; }
|
|
9
9
|
.gem-popup-shell__media { position: relative; min-width: 0; overflow: hidden; background: var(--gem-color-surface); }
|
|
10
10
|
.gem-popup-shell__image { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
.gem-popup-shell[data-gem-popup-desktop='card-over-image'] .gem-popup-shell__panel {
|
|
28
28
|
width: min(420px, 86%); margin: var(--gem-space-xl) 0; background: var(--gem-color-background); border-radius: var(--gem-radius-lg); box-shadow: var(--gem-shadow-sm);
|
|
29
29
|
}
|
|
30
|
-
.gem-popup-shell[data-gem-popup-media='background'] .gem-popup-shell__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(
|
|
30
|
+
.gem-popup-shell[data-gem-popup-media='background'] .gem-popup-shell__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(color-mix(in srgb, var(--gem-color-scrim, #000) 35%, transparent), color-mix(in srgb, var(--gem-color-scrim, #000) 60%, transparent)); }
|
|
31
31
|
.gem-popup-shell[data-gem-popup-media='background'] .gem-popup-shell__panel,
|
|
32
32
|
.gem-popup-shell[data-gem-popup-media='background'] .gem-popup-shell__close { color: #fff; }
|
|
33
33
|
.gem-popup-shell__close {
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
.gem-popup-shell[data-gem-popup-media='background'] .gem-popup-shell__frame { grid-template-rows: 1fr; }
|
|
75
75
|
.gem-popup-shell[data-gem-popup-media='background'] .gem-popup-shell__media { position: absolute; inset: 0; max-height: none; }
|
|
76
76
|
}
|
|
77
|
-
:root:not(:has([data-gem-canvas])) .gem-popup-shell[data-gem-popup-preview='true'] { position: fixed; inset: 0; z-index: 1000; padding: 0; background:
|
|
77
|
+
:root:not(:has([data-gem-canvas])) .gem-popup-shell[data-gem-popup-preview='true'] { position: fixed; inset: 0; z-index: 1000; padding: 0; background: color-mix(in srgb, var(--gem-color-scrim, #000) 55%, transparent); }
|
|
78
78
|
:root:not(:has([data-gem-canvas])) .gem-popup-shell[data-gem-popup-preview='true'] .gem-popup-shell__dialog { position: fixed; inset: 0; display: block; }
|
|
79
79
|
:root:has([data-gem-canvas]) .gem-popup-shell[data-gem-popup-preview='true'] .gem-popup-shell__dialog { position: relative; display: block; inset: auto; }
|
|
80
|
-
:root:has([data-gem-canvas]) .gem-popup-shell[data-gem-popup-preview='true'] { padding: var(--gem-space-xl) var(--gem-layout-gutter); background:
|
|
80
|
+
:root:has([data-gem-canvas]) .gem-popup-shell[data-gem-popup-preview='true'] { padding: var(--gem-space-xl) var(--gem-layout-gutter); background: color-mix(in srgb, var(--gem-color-scrim, #000) 55%, transparent); }
|
|
81
81
|
@media (min-width: 750px) {
|
|
82
82
|
:root:has([data-gem-canvas]) .gem-popup-shell[data-gem-popup-preview='true'][data-gem-popup-desktop='fullscreen'] { padding: 0; }
|
|
83
83
|
:root:has([data-gem-canvas]) .gem-popup-shell[data-gem-popup-preview='true'][data-gem-popup-desktop='fullscreen'] .gem-popup-shell__dialog { height: 720px; max-height: none; }
|
package/dist/primitives.css
CHANGED
|
@@ -321,6 +321,30 @@ a {
|
|
|
321
321
|
block-size: var(--gem-checkbox-size);
|
|
322
322
|
accent-color: var(--gem-checkbox-accent);
|
|
323
323
|
}
|
|
324
|
+
[data-gem-form-set] :is(.gem-quantity-input) {
|
|
325
|
+
min-height: var(--gem-input-height);
|
|
326
|
+
border: var(--gem-input-border-width) solid var(--gem-input-border-color);
|
|
327
|
+
border-radius: min(var(--gem-input-radius), 22px);
|
|
328
|
+
}
|
|
329
|
+
[data-gem-form-set] :is(.gem-quantity-input__button, .gem-quantity-input__field) {
|
|
330
|
+
background: var(--gem-input-bg);
|
|
331
|
+
font-size: var(--gem-input-font-size);
|
|
332
|
+
}
|
|
333
|
+
[data-gem-form-set][data-gem-field-shape="underline"] :is(.gem-quantity-input__button, .gem-quantity-input__field) {
|
|
334
|
+
background: transparent;
|
|
335
|
+
}
|
|
336
|
+
@media (hover: hover) {
|
|
337
|
+
:is(.gem-input, .gem-select, .gem-textarea, .gem-shell-footer__newsletter .gem-input):where(:not(.gem-search-form .gem-input)):hover:not(:disabled):not([aria-invalid="true"]):not(:focus-visible) {
|
|
338
|
+
border-color: currentColor;
|
|
339
|
+
box-shadow: 0 0 0 1px currentColor;
|
|
340
|
+
}
|
|
341
|
+
[data-gem-form-set]:is([data-gem-field-shape="underline"], [data-gem-field-shape="filled"]) :is(.gem-input, .gem-select, .gem-textarea, .gem-shell-footer__newsletter .gem-input):where(:not(.gem-search-form .gem-input)):hover:not(:disabled):not([aria-invalid="true"]):not(:focus-visible) {
|
|
342
|
+
box-shadow: 0 1px 0 0 currentColor;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
:is(.gem-input, .gem-select, .gem-textarea, .gem-shell-footer__newsletter .gem-input):where(:not(.gem-search-form .gem-input))[aria-invalid="true"] {
|
|
346
|
+
border-color: color-mix(in srgb, var(--gem-color-danger, #b42318) 70%, currentColor);
|
|
347
|
+
}
|
|
324
348
|
.gem-submit {
|
|
325
349
|
cursor: pointer;
|
|
326
350
|
}
|
|
@@ -833,6 +857,10 @@ a {
|
|
|
833
857
|
color: var(--gem-color-text);
|
|
834
858
|
text-align: center;
|
|
835
859
|
}
|
|
860
|
+
.gem-quantity-input__field {
|
|
861
|
+
display: grid;
|
|
862
|
+
place-items: center;
|
|
863
|
+
}
|
|
836
864
|
.gem-quantity-input__button {
|
|
837
865
|
font-weight: 750;
|
|
838
866
|
}
|
|
@@ -1176,7 +1204,7 @@ a {
|
|
|
1176
1204
|
.gem-cart-drawer__overlay {
|
|
1177
1205
|
position: fixed;
|
|
1178
1206
|
inset: 0;
|
|
1179
|
-
background:
|
|
1207
|
+
background: color-mix(in srgb, var(--gem-color-scrim, #000) 36%, transparent);
|
|
1180
1208
|
}
|
|
1181
1209
|
@keyframes gem-cart-drawer-panel-in { from { translate: calc(var(--gem-drawer-offset, 24px) * var(--gem-drawer-dir, 1)) 0; opacity: 0; } }
|
|
1182
1210
|
@keyframes gem-cart-drawer-overlay-in { from { opacity: 0; } }
|