fontdue-js 2.25.0 → 2.25.1
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
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## 2.25.1
|
|
2
|
+
|
|
3
|
+
- Fixed an error in the `TypeTester` style/family select that could occur in rare cases with typefaces detected without any language support.
|
|
4
|
+
- Fixed the `Checkbox` and `CheckboxChecked` icons rendering with uneven, asymmetric edges at fractional sizes.
|
|
5
|
+
|
|
1
6
|
## 2.25.0
|
|
2
7
|
|
|
3
8
|
- Added `storeModal.hideAllCollections` config option (default `false`). When `true`, the store modal skips the "All collections" landing page — the modal opens directly to the cart route, the cart button always opens the cart regardless of item count, the empty-cart "Continue shopping" button closes the modal, and the product/checkout back button becomes "Close" when there's no history. Useful for stores that drive purchases from "Add to Cart" buttons on product pages.
|
|
@@ -11,14 +11,16 @@ const Checkbox = () => /*#__PURE__*/_react.default.createElement("span", {
|
|
|
11
11
|
"data-label": "Checkbox"
|
|
12
12
|
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
viewBox: "0 0 12 12",
|
|
15
|
+
shapeRendering: "crispEdges",
|
|
16
|
+
overflow: "visible"
|
|
17
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
18
|
+
x: "0.5",
|
|
19
|
+
y: "0.5",
|
|
20
|
+
width: "11",
|
|
21
|
+
height: "11",
|
|
22
|
+
fill: "none",
|
|
23
|
+
stroke: "currentColor"
|
|
22
24
|
})));
|
|
23
25
|
var _default = Checkbox;
|
|
24
26
|
exports.default = _default;
|
|
@@ -10,15 +10,14 @@ const CheckboxChecked = () => /*#__PURE__*/_react.default.createElement("span",
|
|
|
10
10
|
className: "icon",
|
|
11
11
|
"data-label": "CheckboxChecked"
|
|
12
12
|
}, /*#__PURE__*/_react.default.createElement("svg", {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
fill: "none",
|
|
13
|
+
viewBox: "0 0 12 12",
|
|
14
|
+
shapeRendering: "crispEdges",
|
|
15
|
+
overflow: "visible",
|
|
17
16
|
xmlns: "http://www.w3.org/2000/svg"
|
|
18
17
|
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
19
18
|
fillRule: "evenodd",
|
|
20
19
|
clipRule: "evenodd",
|
|
21
|
-
d: "
|
|
20
|
+
d: "M0 12V0h12v12H0zm5.078-1.715l5.338-8.008-.832-.554-4.662 6.992-2.568-2.569-.708.708 3.432 3.43z"
|
|
22
21
|
})));
|
|
23
22
|
var _default = CheckboxChecked;
|
|
24
23
|
exports.default = _default;
|
|
@@ -95,7 +95,7 @@ function TypeTesterStyleSelectData(_ref) {
|
|
|
95
95
|
});
|
|
96
96
|
}, [familyData, fontStyle]);
|
|
97
97
|
const instance = variableSettings ? (_fontStyle$variableIn = fontStyle.variableInstances) === null || _fontStyle$variableIn === void 0 ? void 0 : _fontStyle$variableIn.find(instance => (0, _utils.compareVariableSettings)(instance, variableSettings)) : null;
|
|
98
|
-
return config.selectable && familyData ? /*#__PURE__*/_react.default.createElement(_TypeTesterStyleSelect.default, {
|
|
98
|
+
return config.selectable && familyData !== null && familyData !== void 0 && familyData.length ? /*#__PURE__*/_react.default.createElement(_TypeTesterStyleSelect.default, {
|
|
99
99
|
families: familyData,
|
|
100
100
|
selectedFontStyleId: fontStyle.id,
|
|
101
101
|
onSelectFontStyleValue: onSelectFontStyleValue,
|
package/dist/fontdue.css
CHANGED
|
@@ -2547,27 +2547,37 @@ body[data-fontdue-store-modal=open] {
|
|
|
2547
2547
|
}
|
|
2548
2548
|
.cart-item + .cart-item {
|
|
2549
2549
|
border-top: 1px solid var(--horizontal_rule_color);
|
|
2550
|
-
padding-top: 40px;
|
|
2551
2550
|
}
|
|
2552
|
-
@media (max-width:
|
|
2551
|
+
@media (max-width: 1199px) {
|
|
2553
2552
|
.cart-item {
|
|
2554
2553
|
display: grid;
|
|
2555
2554
|
grid-template-columns: 1fr auto;
|
|
2556
2555
|
column-gap: 20px;
|
|
2556
|
+
row-gap: 20px;
|
|
2557
2557
|
align-items: baseline;
|
|
2558
2558
|
}
|
|
2559
2559
|
}
|
|
2560
|
-
@media (max-width:
|
|
2561
|
-
> div:has(> .cart-item__licenses) {
|
|
2560
|
+
@media (max-width: 1199px) {
|
|
2561
|
+
.cart-item > div:has(> .cart-item__licenses) {
|
|
2562
2562
|
grid-column: 1/-1;
|
|
2563
2563
|
}
|
|
2564
2564
|
}
|
|
2565
|
+
@media (min-width: 1200px) {
|
|
2566
|
+
.cart-item > div:has(> .cart-item__licenses) {
|
|
2567
|
+
grid-column: name/end;
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2565
2570
|
@media (min-width: 900px) {
|
|
2571
|
+
.cart-item {
|
|
2572
|
+
grid-column: 1/-1;
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2575
|
+
@media (min-width: 1200px) {
|
|
2566
2576
|
.cart-item {
|
|
2567
2577
|
display: grid;
|
|
2568
2578
|
align-items: baseline;
|
|
2569
2579
|
grid-template-columns: subgrid;
|
|
2570
|
-
|
|
2580
|
+
row-gap: 20px;
|
|
2571
2581
|
padding-bottom: 30px;
|
|
2572
2582
|
margin-bottom: 0;
|
|
2573
2583
|
}
|
|
@@ -2590,12 +2600,17 @@ body[data-fontdue-store-modal=open] {
|
|
|
2590
2600
|
.cart-item__label {
|
|
2591
2601
|
color: var(--styles-count-color, var(--secondary_text_color));
|
|
2592
2602
|
}
|
|
2593
|
-
@media (max-width:
|
|
2603
|
+
@media (max-width: 1199px) {
|
|
2594
2604
|
.cart-item__product {
|
|
2595
2605
|
grid-column: 1;
|
|
2596
2606
|
margin-bottom: 20px;
|
|
2597
2607
|
}
|
|
2598
2608
|
}
|
|
2609
|
+
@media (min-width: 1200px) {
|
|
2610
|
+
.cart-item__product {
|
|
2611
|
+
grid-column: name/price;
|
|
2612
|
+
}
|
|
2613
|
+
}
|
|
2599
2614
|
.cart-item__name {
|
|
2600
2615
|
font-size: 1em;
|
|
2601
2616
|
margin-top: 30px; /* line up to the baseline of next column */
|
|
@@ -2616,9 +2631,8 @@ body[data-fontdue-store-modal=open] {
|
|
|
2616
2631
|
align-items: flex-start;
|
|
2617
2632
|
gap: 20px;
|
|
2618
2633
|
padding-top: 20px;
|
|
2619
|
-
padding-bottom: 20px;
|
|
2620
2634
|
}
|
|
2621
|
-
.cart-
|
|
2635
|
+
.cart-item__license:first-child {
|
|
2622
2636
|
padding-top: 0;
|
|
2623
2637
|
}
|
|
2624
2638
|
@media (pointer: fine) {
|
|
@@ -2650,9 +2664,6 @@ body[data-fontdue-store-modal=open] {
|
|
|
2650
2664
|
.cart-item__license__delete-button .icon {
|
|
2651
2665
|
font-size: 16px;
|
|
2652
2666
|
}
|
|
2653
|
-
.cart-item__license + .cart-item__license {
|
|
2654
|
-
border-top: 1px solid var(--horizontal_rule_color);
|
|
2655
|
-
}
|
|
2656
2667
|
.cart-item__license-wrapper {
|
|
2657
2668
|
flex: 1;
|
|
2658
2669
|
}
|
|
@@ -2759,15 +2770,17 @@ body[data-fontdue-store-modal=open] {
|
|
|
2759
2770
|
.cart-item__license-variable__loading {
|
|
2760
2771
|
padding: 10px;
|
|
2761
2772
|
}
|
|
2762
|
-
@media (max-width:
|
|
2773
|
+
@media (max-width: 1199px) {
|
|
2763
2774
|
.cart-item__price {
|
|
2764
2775
|
grid-column: 2;
|
|
2765
2776
|
grid-row: 1;
|
|
2766
2777
|
text-align: right;
|
|
2767
2778
|
}
|
|
2768
2779
|
}
|
|
2769
|
-
@media (min-width:
|
|
2780
|
+
@media (min-width: 1200px) {
|
|
2770
2781
|
.cart-item__price {
|
|
2782
|
+
grid-column: price/end;
|
|
2783
|
+
grid-row: 1;
|
|
2771
2784
|
display: initial;
|
|
2772
2785
|
margin-top: 30px;
|
|
2773
2786
|
text-align: right;
|
|
@@ -2780,9 +2793,9 @@ body[data-fontdue-store-modal=open] {
|
|
|
2780
2793
|
padding-top: 16px;
|
|
2781
2794
|
color: var(--additional-license-color, var(--secondary_text_color));
|
|
2782
2795
|
}
|
|
2783
|
-
@media (min-width:
|
|
2796
|
+
@media (min-width: 1200px) {
|
|
2784
2797
|
.cart-item__additional-licenses {
|
|
2785
|
-
grid-column
|
|
2798
|
+
grid-column: name/end;
|
|
2786
2799
|
padding-top: 10px;
|
|
2787
2800
|
padding-bottom: 5px;
|
|
2788
2801
|
}
|