@mistriwork/ui 1.0.0-rc.63 → 1.0.0-rc.64

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.
@@ -35,3 +35,5 @@ export declare function viewportSize(): {
35
35
  width: number;
36
36
  height: number;
37
37
  };
38
+ export declare const PHONE_QUERY = "(max-width: 760px)";
39
+ export declare const TABLET_QUERY = "(min-width: 761px) and (max-width: 1100px)";
@@ -53,3 +53,14 @@ export function viewportSize() {
53
53
  const z = viewportScale();
54
54
  return { width: window.innerWidth / z, height: window.innerHeight / z };
55
55
  }
56
+ /*
57
+ * The window's three bands, named once (docs/design.md, Mobile). A phone is up to 760px: one column, the
58
+ * navigation in a drawer, a list drawn as cards. A tablet is 761–1100px: the navigation folded to its icon rail, a
59
+ * record keeping its side column at 280px, a dashboard two-up. A desk is 1101px and wider. A media query measures
60
+ * the window in CSS pixels before the root's zoom, so these are read with matchMedia, not against the ruler above;
61
+ * the stylesheets say the same numbers in their @media rules, which cannot import them.
62
+ */
63
+ const PHONE_MAX = 760;
64
+ const DESK_MIN = 1101;
65
+ export const PHONE_QUERY = `(max-width: ${PHONE_MAX}px)`;
66
+ export const TABLET_QUERY = `(min-width: ${PHONE_MAX + 1}px) and (max-width: ${DESK_MIN - 1}px)`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mistriwork/ui",
3
- "version": "1.0.0-rc.63",
3
+ "version": "1.0.0-rc.64",
4
4
  "description": "The standalone React primitives both shells are drawn with: Modal, DropMenu, Dropdown, Typeahead, Button, Field, Icon and DateField over UI SDK, Switch, Tabs, Drawer, Popover, Avatar, Pagination, Carousel, Resizable, ScrollArea and Tooltip, the form controls built on them (text, masked, money and sensitive boxes, listboxes, choices, slider, progress and action bar; Preview), the landing hero's blocks (badge, photo tiles, icon rows; Preview), their tokens and stylesheet, and the zoom-aware ruler their popups are placed by.",
5
5
  "homepage": "https://mistriwork.dev",
6
6
  "bugs": {