@ksp-gonogo/ui-kit 1.0.0-rc.36 → 1.0.0-rc.40
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/dist/{chunk-TPCENPJX.js → chunk-5LJPQV5P.js} +4 -4
- package/dist/chunk-5LJPQV5P.js.map +1 -0
- package/dist/{chunk-7PFMJAPT.js → chunk-HTFRRLIQ.js} +699 -246
- package/dist/chunk-HTFRRLIQ.js.map +1 -0
- package/dist/gridUnits.d.ts +3 -3
- package/dist/gridUnits.js +1 -1
- package/dist/index.d.ts +117 -189
- package/dist/index.js +872 -1229
- package/dist/index.js.map +1 -1
- package/dist/reads-index.json +7 -14
- package/dist/testing.js +29 -4
- package/dist/testing.js.map +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +2 -3
- package/dist/chunk-7PFMJAPT.js.map +0 -1
- package/dist/chunk-TPCENPJX.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/gridUnits.ts
|
|
2
|
-
var COL_WIDTH =
|
|
3
|
-
var ROW_HEIGHT =
|
|
4
|
-
var GRID_MARGIN =
|
|
2
|
+
var COL_WIDTH = 21;
|
|
3
|
+
var ROW_HEIGHT = 13;
|
|
4
|
+
var GRID_MARGIN = 20;
|
|
5
5
|
function gridToPixels(w, h) {
|
|
6
6
|
return {
|
|
7
7
|
pxW: w * COL_WIDTH + (w - 1) * GRID_MARGIN,
|
|
@@ -15,4 +15,4 @@ export {
|
|
|
15
15
|
GRID_MARGIN,
|
|
16
16
|
gridToPixels
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-5LJPQV5P.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/gridUnits.ts"],"sourcesContent":["/**\n * The width of one dashboard grid column in CSS pixels, an approximation for\n * the dashboard's widest layout (36 columns across): on the dashboard a\n * column's real width is a fraction of the container. Use it to lay a widget\n * out outside the dashboard, such as in a test harness or a docs page. Used by\n * the docs and probe renderers that draw a widget at its dashboard size.\n *\n * @category Layout\n */\nexport const COL_WIDTH = 21;\n\n/**\n * The height of one dashboard grid row in CSS pixels. Useful for sizing a tile\n * the way the dashboard the operator sees does. Used by the dashboard grid.\n *\n * @category Layout\n */\nexport const ROW_HEIGHT = 13;\n\n/**\n * The gap between adjacent dashboard grid cells in CSS pixels. Useful for\n * sizing a tile the way the dashboard the operator sees does. Used by the\n * dashboard grid.\n *\n * @category Layout\n */\nexport const GRID_MARGIN = 20;\n\n/**\n * The pixel box of a `w` by `h` grid-unit tile, as `{ pxW, pxH }`. The margin\n * falls between cells, so `n` cells carry `n - 1` gaps and a single cell\n * carries none. Useful for drawing a widget at the size of its dashboard tile.\n * Used by {@link Panel} and by the probe that renders an Uplink's widget.\n *\n * @category Layout\n * @categoryDescription Layout\n * Arranging a widget's content: stacks, rows, clusters, grids, boxes, cards and\n * sections, the spacing scale they share, and the dashboard grid's cell sizes\n * for turning a tile's columns and rows into pixels.\n */\nexport function gridToPixels(\n w: number,\n h: number,\n): {\n pxW: number;\n pxH: number;\n} {\n return {\n pxW: w * COL_WIDTH + (w - 1) * GRID_MARGIN,\n pxH: h * ROW_HEIGHT + (h - 1) * GRID_MARGIN,\n };\n}\n"],"mappings":";AASO,IAAM,YAAY;AAQlB,IAAM,aAAa;AASnB,IAAM,cAAc;AAcpB,SAAS,aACd,GACA,GAIA;AACA,SAAO;AAAA,IACL,KAAK,IAAI,aAAa,IAAI,KAAK;AAAA,IAC/B,KAAK,IAAI,cAAc,IAAI,KAAK;AAAA,EAClC;AACF;","names":[]}
|