@ksp-gonogo/ui-kit 1.0.0-rc.21 → 1.0.0-rc.25
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 +8 -2
- package/dist/{chunk-GGJES6XH.js → chunk-JNKL3HA3.js} +307 -263
- package/dist/chunk-JNKL3HA3.js.map +1 -0
- package/dist/{chunk-IZZF25H2.js → chunk-SPBHQUHI.js} +1 -1
- package/dist/chunk-SPBHQUHI.js.map +1 -0
- package/dist/gridUnits.d.ts +4 -4
- package/dist/gridUnits.js +1 -1
- package/dist/guards.d.ts +2 -1
- package/dist/guards.js.map +1 -1
- package/dist/index.d.ts +938 -328
- package/dist/index.js +1388 -798
- package/dist/index.js.map +1 -1
- package/dist/reads-index.json +1559 -0
- package/dist/testing.d.ts +2 -1
- package/dist/testing.js +2 -2
- package/dist/testing.js.map +1 -1
- package/dist/tokens.css +2 -0
- package/dist/{units-Cl-8ZdJc.d.ts → units-DZYIWBWP.d.ts} +32 -6
- package/package.json +5 -12
- package/dist/chunk-GGJES6XH.js.map +0 -1
- package/dist/chunk-IZZF25H2.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/gridUnits.ts"],"sourcesContent":["/**\n * The width of one dashboard grid column in CSS pixels, an approximation at\n * the `lg` breakpoint (36 columns): on the dashboard a column's real width is a\n * fraction of the container. Use it to lay a widget out outside the dashboard,\n * such as in a test harness or a docs page.\n *\n * @category Layout\n */\nexport const COL_WIDTH = 32;\n\n/**\n * The height of one dashboard grid row in CSS pixels.\n *\n * @category Layout\n */\nexport const ROW_HEIGHT = 25;\n\n/**\n * The gap between adjacent dashboard grid cells in CSS pixels.\n *\n * @category Layout\n */\nexport const GRID_MARGIN = 8;\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.\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":";AAQO,IAAM,YAAY;AAOlB,IAAM,aAAa;AAOnB,IAAM,cAAc;AAapB,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":[]}
|