@plexui/styles 0.17.9 → 0.17.11

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.
@@ -343,6 +343,7 @@
343
343
  flex: none;
344
344
  width: var(--toolbar-search-icon-size);
345
345
  height: var(--toolbar-search-icon-size);
346
+ color: var(--toolbar-search-icon-color);
346
347
  }
347
348
 
348
349
  /* An invalid field keeps the Input's error line over the glass. */
@@ -601,6 +602,7 @@
601
602
  flex: none;
602
603
  width: var(--toolbar-search-icon-size);
603
604
  height: var(--toolbar-search-icon-size);
605
+ color: var(--toolbar-search-icon-color);
604
606
  }
605
607
 
606
608
  /* An invalid field keeps the Input's error line over the glass. */
@@ -866,6 +866,25 @@
866
866
  --dialog-panel-radius: var(--dialog-sheet-radius) var(--dialog-sheet-radius) 0 0;
867
867
  }
868
868
 
869
+ /* An iOS sheet's own search field (IMG_5491): its magnifier and its hint in one gray, darker than a bar's hint.
870
+ Android keeps a bar's own (its magnifier in the text color). */
871
+ .Content[data-mobile-variant="sheet"] {
872
+ --toolbar-search-placeholder-color: var(--toolbar-search-sheet-color);
873
+ --toolbar-search-icon-color: var(--toolbar-search-sheet-color);
874
+ }
875
+
876
+ [data-platform="android"] .Content[data-mobile-variant="sheet"] {
877
+ --toolbar-search-icon-color: var(--color-text);
878
+ }
879
+
880
+ [data-platform="android"] .Content[data-mobile-variant="sheet"], :where([data-theme="light"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] {
881
+ --toolbar-search-placeholder-color: var(--alpha-40);
882
+ }
883
+
884
+ :where([data-theme="dark"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] {
885
+ --toolbar-search-placeholder-color: var(--alpha-60);
886
+ }
887
+
869
888
  .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] {
870
889
  --dialog-panel-max-height: var(--dialog-viewport-height, 100dvh);
871
890
  --dialog-panel-radius: 0;
@@ -1467,6 +1486,25 @@
1467
1486
  --dialog-panel-radius: var(--dialog-sheet-radius) var(--dialog-sheet-radius) 0 0;
1468
1487
  }
1469
1488
 
1489
+ /* An iOS sheet's own search field (IMG_5491): its magnifier and its hint in one gray, darker than a bar's hint.
1490
+ Android keeps a bar's own (its magnifier in the text color). */
1491
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] {
1492
+ --toolbar-search-placeholder-color: var(--toolbar-search-sheet-color);
1493
+ --toolbar-search-icon-color: var(--toolbar-search-sheet-color);
1494
+ }
1495
+
1496
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] {
1497
+ --toolbar-search-icon-color: var(--color-text);
1498
+ }
1499
+
1500
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"], :where([data-theme="light"]) :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] {
1501
+ --toolbar-search-placeholder-color: var(--alpha-40);
1502
+ }
1503
+
1504
+ :where([data-theme="dark"]) :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] {
1505
+ --toolbar-search-placeholder-color: var(--alpha-60);
1506
+ }
1507
+
1470
1508
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] {
1471
1509
  --dialog-panel-max-height: var(--dialog-viewport-height, 100dvh);
1472
1510
  --dialog-panel-radius: 0;
@@ -589,6 +589,7 @@
589
589
  flex: none;
590
590
  width: var(--toolbar-search-icon-size);
591
591
  height: var(--toolbar-search-icon-size);
592
+ color: var(--toolbar-search-icon-color);
592
593
  }
593
594
 
594
595
  /* The clear button of a phone text field is the filled circle with a cross of iOS (xmark.circle.fill, a 17px
@@ -835,6 +836,7 @@
835
836
  flex: none;
836
837
  width: var(--toolbar-search-icon-size);
837
838
  height: var(--toolbar-search-icon-size);
839
+ color: var(--toolbar-search-icon-color);
838
840
  }
839
841
 
840
842
  /* The clear button of a phone text field is the filled circle with a cross of iOS (xmark.circle.fill, a 17px
@@ -568,6 +568,7 @@
568
568
  flex: none;
569
569
  width: var(--toolbar-search-icon-size);
570
570
  height: var(--toolbar-search-icon-size);
571
+ color: var(--toolbar-search-icon-color);
571
572
  }
572
573
 
573
574
  /* Title: centered in the 44px row. Native iOS 26 bars put its cap middle on the buttons' center
@@ -1848,6 +1849,7 @@
1848
1849
  flex: none;
1849
1850
  width: var(--toolbar-search-icon-size);
1850
1851
  height: var(--toolbar-search-icon-size);
1852
+ color: var(--toolbar-search-icon-color);
1851
1853
  }
1852
1854
 
1853
1855
  /* Title: centered in the 44px row. Native iOS 26 bars put its cap middle on the buttons' center
@@ -557,6 +557,11 @@
557
557
  --toolbar-search-icon-gap: 6.43px;
558
558
  --toolbar-search-icon-size: 23.75px;
559
559
  --toolbar-search-font-weight: 400;
560
+ /* The magnifier: in a bar the text color (iOS 26 Contacts' bottom search beside its +, IMG_5737: the glyph
561
+ black, "Search" 148). A sheet's own search field draws both in one darker gray, typed in or not (a system
562
+ sheet's bottom search, IMG_5491 at 3x: both 134 134 138 on the capsule's 249 249 252, the ink at 49%):
563
+ Dialog.module.css sets these two for a phone sheet. */
564
+ --toolbar-search-icon-color: var(--color-text);
560
565
  --toolbar-flat-opacity: 80%;
561
566
  --toolbar-flat-blur: 60px;
562
567
  /* The large title of iOS 27.2 (Files, Settings, UIKit and SwiftUI on an iPhone 17, plan 178 block 10): the top
@@ -1281,6 +1286,7 @@
1281
1286
  --menu-item-background-color: var(--alpha-08);
1282
1287
  --modal-backdrop-background: rgb(0 0 0 / 30%);
1283
1288
  --toolbar-search-placeholder-color: var(--alpha-40);
1289
+ --toolbar-search-sheet-color: color-mix(in oklab, var(--alpha-base) 49%, transparent);
1284
1290
  --toolbar-prominent-disabled-background: var(--alpha-12);
1285
1291
  --toolbar-prominent-disabled-color: var(--gray-0);
1286
1292
  --toolbar-prominent-shadow: 0 8px 15px rgb(0 0 0 / 2%), 1.25px 0 0 -0.75px rgb(0 0 0 / 12%), -1.25px 0 0 -0.75px rgb(0 0 0 / 12%), inset 0 0.67px 0 rgb(255 255 255 / 35%), inset 0 -0.67px 0 rgb(255 255 255 / 35%);
@@ -1348,6 +1354,7 @@
1348
1354
  --menu-item-background-color: var(--alpha-10);
1349
1355
  --modal-backdrop-background: rgb(0 0 0 / 50%);
1350
1356
  --toolbar-search-placeholder-color: var(--alpha-60);
1357
+ --toolbar-search-sheet-color: var(--alpha-60);
1351
1358
  --toolbar-prominent-disabled-background: var(--alpha-20);
1352
1359
  --toolbar-prominent-disabled-color: var(--alpha-30);
1353
1360
  --toolbar-prominent-shadow: 0 8px 15px transparent, 1.25px 0 0 -0.75px rgb(0 0 0 / 12%), -1.25px 0 0 -0.75px rgb(0 0 0 / 12%), inset 0 0.67px 0 rgb(255 255 255 / 35%), inset 0 -0.67px 0 rgb(255 255 255 / 35%);
@@ -1209,6 +1209,8 @@ export const tokenLayers = [
1209
1209
  "--toolbar-search-icon-size": "23.75px",
1210
1210
  "--toolbar-search-font-weight": "400",
1211
1211
  "--toolbar-search-placeholder-color": "light-dark(var(--alpha-40), var(--alpha-60))",
1212
+ "--toolbar-search-icon-color": "var(--color-text)",
1213
+ "--toolbar-search-sheet-color": "light-dark(alpha(var(--alpha-base), 49%), var(--alpha-60))",
1212
1214
  "--toolbar-flat-opacity": "80%",
1213
1215
  "--toolbar-flat-blur": "60px",
1214
1216
  "--toolbar-large-title-gap": "13.3px",
@@ -1674,7 +1676,7 @@ export const tokenLayers = [
1674
1676
  1,
1675
1677
  0
1676
1678
  ],
1677
- "order": 1495,
1679
+ "order": 1497,
1678
1680
  "tokens": {
1679
1681
  "--radius-2xs": "0.125rem",
1680
1682
  "--radius-xs": "0.25rem",
@@ -1706,7 +1708,7 @@ export const tokenLayers = [
1706
1708
  1,
1707
1709
  0
1708
1710
  ],
1709
- "order": 1516,
1711
+ "order": 1518,
1710
1712
  "when": {
1711
1713
  "maxWidth": 767
1712
1714
  },
@@ -1738,7 +1740,7 @@ export const tokenLayers = [
1738
1740
  1,
1739
1741
  0
1740
1742
  ],
1741
- "order": 1532,
1743
+ "order": 1534,
1742
1744
  "when": {
1743
1745
  "maxWidth": 767
1744
1746
  },
@@ -1779,7 +1781,7 @@ export const tokenLayers = [
1779
1781
  1,
1780
1782
  0
1781
1783
  ],
1782
- "order": 1557,
1784
+ "order": 1559,
1783
1785
  "when": {
1784
1786
  "maxWidth": 767
1785
1787
  },
@@ -1796,7 +1798,7 @@ export const tokenLayers = [
1796
1798
  1,
1797
1799
  1
1798
1800
  ],
1799
- "order": 1584,
1801
+ "order": 1586,
1800
1802
  "when": {
1801
1803
  "maxWidth": 767
1802
1804
  },
@@ -2271,7 +2273,7 @@ export const tokenLayers = [
2271
2273
  1,
2272
2274
  1
2273
2275
  ],
2274
- "order": 2136,
2276
+ "order": 2138,
2275
2277
  "when": {
2276
2278
  "minWidth": 414,
2277
2279
  "maxWidth": 767
@@ -2289,7 +2291,7 @@ export const tokenLayers = [
2289
2291
  1,
2290
2292
  1
2291
2293
  ],
2292
- "order": 2137,
2294
+ "order": 2139,
2293
2295
  "when": {
2294
2296
  "maxWidth": 575
2295
2297
  },
@@ -4047,10 +4049,12 @@ export const resolvedTokens = {
4047
4049
  "--toolbar-row-gap": 10,
4048
4050
  "--toolbar-search-font-weight": 400,
4049
4051
  "--toolbar-search-gutter": 10.54,
4052
+ "--toolbar-search-icon-color": "#0d0d0d",
4050
4053
  "--toolbar-search-icon-gap": 6.43,
4051
4054
  "--toolbar-search-icon-size": 23.75,
4052
4055
  "--toolbar-search-padding-bottom": 14,
4053
4056
  "--toolbar-search-placeholder-color": "rgba(13, 13, 13, 0.4)",
4057
+ "--toolbar-search-sheet-color": "rgba(13, 13, 13, 0.49)",
4054
4058
  "--toolbar-sheet-padding-top": 16,
4055
4059
  "--toolbar-subtitle-font-size": 12,
4056
4060
  "--toolbar-subtitle-font-weight": 500,
@@ -5830,10 +5834,12 @@ export const resolvedTokens = {
5830
5834
  "--toolbar-row-gap": 10,
5831
5835
  "--toolbar-search-font-weight": 400,
5832
5836
  "--toolbar-search-gutter": 10.54,
5837
+ "--toolbar-search-icon-color": "#ffffff",
5833
5838
  "--toolbar-search-icon-gap": 6.43,
5834
5839
  "--toolbar-search-icon-size": 23.75,
5835
5840
  "--toolbar-search-padding-bottom": 14,
5836
5841
  "--toolbar-search-placeholder-color": "rgba(255, 255, 255, 0.6)",
5842
+ "--toolbar-search-sheet-color": "rgba(255, 255, 255, 0.6)",
5837
5843
  "--toolbar-sheet-padding-top": 16,
5838
5844
  "--toolbar-subtitle-font-size": 12,
5839
5845
  "--toolbar-subtitle-font-weight": 500,