@xeplr/ui-utils 1.1.6 → 1.1.7

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 CHANGED
@@ -570,6 +570,10 @@ These create their own DOM nodes with inline styles, so they need no provider, m
570
570
  | `IMPORT_HISTORY_RULES` | nothing |
571
571
  | `DROPPED_ROWS_RULES` | `#xeplr-dropped-rows-copy`, `#xeplr-dropped-rows-download`, `#xeplr-dropped-rows-close` — checked when the dialog opens, since it is not on the page before |
572
572
 
573
+ ## On a phone
574
+
575
+ Below 640px wide every text, number and date input, and a dropdown's trigger and search box, is at least **16px** — smaller makes iOS zoom the whole page when the field is focused (a text field keeps a larger `--xeplr-input-text-font-size` if the theme sets one). A dropdown's trigger is 44px tall. A panel field puts its label above the control instead of in a 112px column. Nothing has a fixed width that can push a 360px page sideways: the grid's cards, the import pickers, the date-range box and the range field all shrink to the space they have. Nothing changes above 640px.
576
+
573
577
  ## Theming
574
578
 
575
579
  The designs use `xeplr-*` class prefixes (`xeplr-dropdown-*`, `xeplr-daterange-*`, `xeplr-rangefield-*`, `xeplr-datefield-*`, `xeplr-numberfield-*`, `xeplr-textfield-*`, `xeplr-upload-*`, `xeplr-data-import-*`, `xeplr-import-history-*`, `xeplr-grid-*`, `xeplr-colorpicker-*`, `xeplr-panel-*`, `xeplr-expander-*`, `xeplr-tree-*`). The progress notifier uses `xpn`, `xpn--running` / `--complete` / `--error`, `xpn-bar` and `xpn-text`. What each design reads:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeplr/ui-utils",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "UI utility components: file upload with progress, snackbar, static data (countries/states)",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -58,3 +58,8 @@
58
58
  font-size: 12px;
59
59
  color: #e25555;
60
60
  }
61
+
62
+ /* On a phone: under 16px, iOS zooms the whole page when the field is focused. */
63
+ @media (max-width: 640px) {
64
+ .xeplr-datefield-input { font-size: 16px; }
65
+ }
@@ -3,6 +3,7 @@
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  width: 260px;
6
+ max-width: 100%;
6
7
  background: var(--xeplr-surface, #fff);
7
8
  border: 1px solid var(--xeplr-border-strong, #c9cdd6);
8
9
  border-radius: 9px;
@@ -224,3 +224,10 @@
224
224
  color: var(--xeplr-accent, #9fb2ff);
225
225
  font-weight: 700;
226
226
  }
227
+
228
+ /* On a phone: a target a thumb can hit, and text large enough that iOS does
229
+ not zoom the page when the search box inside is focused. */
230
+ @media (max-width: 640px) {
231
+ .xeplr-dropdown-trigger { min-height: 44px; font-size: 16px; }
232
+ .xeplr-dropdown-search-input { font-size: 16px; }
233
+ }
@@ -47,7 +47,7 @@
47
47
 
48
48
  .xeplr-grid {
49
49
  display: grid;
50
- grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
50
+ grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
51
51
  gap: 16px;
52
52
  /* room for hovered tiles to scale up without clipping against the container edge */
53
53
  padding: 6px;
@@ -13,7 +13,7 @@
13
13
  margin-bottom: 12px; padding: 10px 12px; border-radius: 6px; font-size: 13px;
14
14
  background: var(--xeplr-danger-bg, #3d1111); color: var(--xeplr-danger, #ff6b6b); border: 1px solid var(--xeplr-danger-border, #5a1a1a);
15
15
  }
16
- .xeplr-imports-pickers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
16
+ .xeplr-imports-pickers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
17
17
  .xeplr-imports-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--xeplr-text-secondary, #999); }
18
18
  .xeplr-imports-field select {
19
19
  padding: 9px 10px; border-radius: 6px; font-size: 14px; font-family: inherit;
@@ -64,3 +64,8 @@
64
64
  font-size: 12px;
65
65
  color: #e25555;
66
66
  }
67
+
68
+ /* On a phone: under 16px, iOS zooms the whole page when the field is focused. */
69
+ @media (max-width: 640px) {
70
+ .xeplr-numberfield-input { font-size: 16px; }
71
+ }
@@ -70,3 +70,9 @@
70
70
  padding: 14px; border-top: 1px solid var(--xeplr-border-secondary, #eef0f4);
71
71
  display: flex; flex-direction: column; gap: 12px;
72
72
  }
73
+
74
+ /* On a phone the label goes above its control: a fixed 112px label column
75
+ leaves the control a sliver of a 360px screen. */
76
+ @media (max-width: 640px) {
77
+ .xeplr-panel-field { grid-template-columns: minmax(0, 1fr); gap: 6px; }
78
+ }
@@ -10,7 +10,7 @@
10
10
  flex-direction: column;
11
11
  gap: 6px;
12
12
  flex: 1;
13
- min-width: 160px;
13
+ min-width: min(160px, 100%);
14
14
  }
15
15
  .xeplr-rangefield-label {
16
16
  font-size: 12px;
@@ -90,3 +90,8 @@ textarea.xeplr-textfield-input { resize: vertical; min-height: 64px; }
90
90
  }
91
91
  .xeplr-textfield-error { color: var(--xeplr-input-text-invalid-color, #c2372e); }
92
92
  .xeplr-textfield-count { color: var(--xeplr-input-text-label-color, #6b6a63); text-align: right; }
93
+
94
+ /* On a phone: under 16px, iOS zooms the whole page when the field is focused. */
95
+ @media (max-width: 640px) {
96
+ .xeplr-textfield-input { font-size: max(16px, var(--xeplr-input-text-font-size, 12.5px)); }
97
+ }