@busiverse/ui 0.2.17 → 0.2.18

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.
@@ -0,0 +1,34 @@
1
+ /**
2
+ * The size of anything a pointer activates.
3
+ *
4
+ * `minTarget` is a floor, not a preference. WCAG 2.5.5 and both platform interface guidelines put
5
+ * the smallest safe target at 44px, so no interactive size sits below it: a control that should
6
+ * *look* smaller gets less padding and smaller text, and keeps its 44px target. That is why `sm`
7
+ * and `md` share a height here and differ only in padding and type size.
8
+ *
9
+ * This is the only place a control height is written down. `styles/index.css` publishes these as
10
+ * custom properties, the kit's own classes read those properties, and one floor rule in the same
11
+ * stylesheet applies them to every control in every app that imports it. Nothing restates the
12
+ * number, so nothing can disagree with it.
13
+ */
14
+ export declare const busiverseControls: {
15
+ /** The smallest target a pointer may be asked to hit. */
16
+ readonly minTarget: "44px";
17
+ readonly height: {
18
+ readonly sm: "44px";
19
+ readonly md: "44px";
20
+ readonly lg: "50px";
21
+ };
22
+ readonly padding: {
23
+ readonly sm: "0 12px";
24
+ readonly md: "0 16px";
25
+ readonly lg: "0 22px";
26
+ };
27
+ readonly fontSize: {
28
+ readonly sm: "14px";
29
+ readonly md: "15px";
30
+ readonly lg: "16px";
31
+ };
32
+ };
33
+ export type BusiverseControlSize = keyof typeof busiverseControls.height;
34
+ //# sourceMappingURL=controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../src/tokens/controls.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB;IAC5B,yDAAyD;;;;;;;;;;;;;;;;;CAiBjD,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,iBAAiB,CAAC,MAAM,CAAC"}
@@ -3,4 +3,5 @@ export * from "./typography";
3
3
  export * from "./spacing";
4
4
  export * from "./radius";
5
5
  export * from "./motion";
6
+ export * from "./controls";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tokens/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tokens/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@busiverse/ui",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "author": "Joel Julius Okoromi <okmarq@gmail.com> (https://busiversehq.com)",
5
5
  "description": "BUSIVERSE shared React UI, design tokens, pricing, i18n, auth helpers, and product shell. Network-neutral core; Gateway transport is app-injected.",
6
6
  "type": "module",