@swiftwc/ui 0.0.0-dev.29 → 0.0.0-dev.30

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.
@@ -395,6 +395,20 @@
395
395
  font-size: 14px;
396
396
  }
397
397
  }
398
+ html {
399
+ font-family: var(--host--font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
400
+ font-feature-settings: var(--host--font-feature-settings, normal);
401
+ font-variation-settings: var(--host--font-variation-settings, normal);
402
+ }
403
+ html:has(body > v-keyboard[system-font=Inter]) {
404
+ --host--font-family: Verdana, Inter, sans-serif;
405
+ --host--font-feature-settings: 'liga' 1, 'calt' 1;
406
+ }
407
+ @supports (font-variation-settings: normal) {
408
+ html:has(body > v-keyboard[system-font=Inter]) {
409
+ --host--font-family: Verdana, InterVariable, sans-serif;
410
+ }
411
+ }
398
412
  html::before {
399
413
  content: "delete-button-icon=trash&confirm-button-icon=check&close-button-icon=x&cancel-button-icon=x&ipad-sheet-view-height=27.75rem&ipad-sheet-view-inline-size=37rem&vt-fwd-class-name=fwd";
400
414
  display: none;
@@ -1699,7 +1713,7 @@
1699
1713
  inline-size: fit-content;
1700
1714
  block-size: fit-content;
1701
1715
  height: auto;
1702
- min-inline-size: min(20rem, 80svw);
1716
+ min-inline-size: var(--confirmation--dialog-min-inline-size, );
1703
1717
  max-inline-size: var(--confirmation--dialog-max-inline-size, );
1704
1718
  max-block-size: var(--confirmation--dialog-max-block-size, );
1705
1719
  margin-block: var(--confirmation--dialog-margin-block, );
@@ -1717,6 +1731,7 @@
1717
1731
  --confirmation--dialog-scale: scale(0);
1718
1732
  }
1719
1733
  :where([is=confirmation-dialog][open]) {
1734
+ --confirmation--dialog-min-inline-size: min(20rem, 80svw);
1720
1735
  --confirmation--dialog-max-inline-size: min(20rem, 80vw);
1721
1736
  --confirmation--dialog-max-block-size: 80vh;
1722
1737
  --confirmation--dialog-margin-block: max(env(safe-area-inset-top), var(--menu-spacing)) max(env(safe-area-inset-bottom), var(--menu-spacing));
@@ -1729,6 +1744,7 @@
1729
1744
  }
1730
1745
  }
1731
1746
  :where([is=confirmation-dialog][closing]) {
1747
+ --confirmation--dialog-min-inline-size: anchor-size();
1732
1748
  --confirmation--dialog-max-inline-size: anchor-size();
1733
1749
  --confirmation--dialog-max-block-size: anchor-size();
1734
1750
  --confirmation--dialog-scale: scale(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swiftwc/ui",
3
- "version": "0.0.0-dev.29",
3
+ "version": "0.0.0-dev.30",
4
4
  "description": "Elegant SwiftUI-inspired web components for standalone web apps and web extensions.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -115,6 +115,22 @@
115
115
  @media (pointer: fine) {
116
116
  font-size: 14px;
117
117
  }
118
+
119
+ font-family: var(--host--font-family, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
120
+
121
+ font-feature-settings: var(--host--font-feature-settings, normal);
122
+
123
+ font-variation-settings: var(--host--font-variation-settings, normal);
124
+
125
+ &:has(body > v-keyboard[system-font='Inter']) {
126
+ --host--font-family: Verdana, Inter, sans-serif;
127
+
128
+ --host--font-feature-settings: 'liga' 1, 'calt' 1;
129
+
130
+ @supports (font-variation-settings: normal) {
131
+ --host--font-family: Verdana, InterVariable, sans-serif;
132
+ }
133
+ }
118
134
  }
119
135
 
120
136
  // label {
@@ -13,6 +13,10 @@
13
13
  :root {
14
14
  color-scheme: light dark;
15
15
 
16
+ // --font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
17
+
18
+ // --font-variation-settings: 'cv02', 'cv03', 'cv04', 'cv11';
19
+
16
20
  // --ipad-bp: #{vars.$ipad-portrait-bp};
17
21
 
18
22
  // --edge-inset-inline-start: 10px;
@@ -16,7 +16,7 @@
16
16
  block-size: fit-content;
17
17
  height: auto; // safari
18
18
 
19
- min-inline-size: min(20rem, 80svw);
19
+ min-inline-size: var(--confirmation--dialog-min-inline-size,); //min(20rem, 80svw);
20
20
 
21
21
  max-inline-size: var(--confirmation--dialog-max-inline-size,);
22
22
  max-block-size: var(--confirmation--dialog-max-block-size,);
@@ -45,6 +45,8 @@
45
45
 
46
46
  &[open] {
47
47
  :where(&) {
48
+ --confirmation--dialog-min-inline-size: min(20rem, 80svw);
49
+
48
50
  --confirmation--dialog-max-inline-size: min(20rem, 80vw);
49
51
  --confirmation--dialog-max-block-size: 80vh;
50
52
 
@@ -61,6 +63,8 @@
61
63
 
62
64
  &[closing] {
63
65
  :where(&) {
66
+ --confirmation--dialog-min-inline-size: anchor-size();
67
+
64
68
  --confirmation--dialog-max-inline-size: anchor-size();
65
69
  --confirmation--dialog-max-block-size: anchor-size();
66
70