@inglorious/ui 8.2.2 → 8.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inglorious/ui",
3
- "version": "8.2.2",
3
+ "version": "8.2.4",
4
4
  "description": "A design system for Inglorious Web with render-function components and customizable themes",
5
5
  "author": "Matteo Antony Mistretta <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
6
6
  "license": "MIT",
@@ -301,21 +301,21 @@
301
301
  "**/*.css"
302
302
  ],
303
303
  "peerDependencies": {
304
- "@inglorious/store": "11.0.5",
304
+ "@inglorious/store": "11.1.0",
305
305
  "@inglorious/utils": "5.0.0",
306
- "@inglorious/web": "6.6.2"
306
+ "@inglorious/web": "6.7.0"
307
307
  },
308
308
  "devDependencies": {
309
309
  "@iconify-icons/fa7-brands": "^2.0.0",
310
310
  "@iconify-icons/fa7-regular": "^2.0.0",
311
311
  "@iconify-icons/fa7-solid": "^2.0.0",
312
312
  "@iconify-icons/material-symbols": "^2.0.6",
313
- "@inglorious/charts": "11.1.1",
313
+ "@inglorious/charts": "11.1.2",
314
314
  "@inglorious/eslint-config": "1.1.4",
315
- "@inglorious/store": "11.0.5",
315
+ "@inglorious/store": "11.1.0",
316
316
  "@inglorious/vite-plugin-jsx": "2.0.4",
317
317
  "@inglorious/vite-plugin-vue": "1.0.5",
318
- "@inglorious/web": "6.6.2",
318
+ "@inglorious/web": "6.7.0",
319
319
  "@storybook/addon-docs": "^10.6.0",
320
320
  "@storybook/web-components-vite": "^10.6.0",
321
321
  "happy-dom": "^20.14.0",
@@ -323,6 +323,7 @@
323
323
  "prettier": "^3.9.6",
324
324
  "remark-gfm": "^4.0.1",
325
325
  "storybook": "^10.6.0",
326
+ "typescript": "~7.0.2",
326
327
  "vite": "^8.2.2",
327
328
  "vitest": "^5.0.0"
328
329
  },
@@ -336,8 +337,9 @@
336
337
  "format": "prettier --write .",
337
338
  "lint": "eslint .",
338
339
  "test:watch": "vitest",
339
- "test": "vitest run",
340
+ "test": "vitest run && tsc -p type-tests",
340
341
  "storybook": "storybook dev -p 6006",
341
- "build-storybook": "storybook build"
342
+ "build-storybook": "storybook build",
343
+ "test:types": "tsc -p type-tests"
342
344
  }
343
345
  }
@@ -42,21 +42,12 @@
42
42
  color 0.15s ease;
43
43
  }
44
44
 
45
- /* The leading icon is an Icon of size lg, which fixes its own width and
46
- height. Its spacing therefore goes outside it, as margin: padding on the
47
- same element fought that fixed size, and under border-box it ate the box,
48
- leaving 32px of padding around a glyph that overflowed. */
49
45
  .iw-list-item-icon {
50
- margin: var(--iw-list-icon-spacing, var(--iw-space-4));
46
+ padding: var(--iw-space-1);
51
47
  }
52
48
 
53
- /* An item without an icon lines its text up with the items that have one:
54
- the icon, the margin either side of it, and the row gap. */
55
49
  .iw-list-item-inset .iw-list-item-content {
56
- margin-inline-start: calc(
57
- var(--iw-list-icon-size, var(--iw-space-6)) + 2 *
58
- var(--iw-list-icon-spacing, var(--iw-space-4)) + var(--iw-space-2)
59
- );
50
+ margin-inline-start: var(--iw-space-6);
60
51
  }
61
52
 
62
53
  .iw-list-title {
@@ -126,7 +117,6 @@
126
117
  }
127
118
 
128
119
  .iw-list-nested {
129
- margin-top: var(--iw-space-1);
130
120
  padding-inline-start: var(--iw-space-4);
131
121
  }
132
122
 
@@ -2,7 +2,7 @@ import type { TemplateResult } from "@inglorious/web"
2
2
 
3
3
  export interface ButtonProps {
4
4
  id?: string
5
- type: "Button"
5
+ type?: string
6
6
  children?: TemplateResult | string | number
7
7
  variant?: "default" | "outline" | "ghost"
8
8
  color?:
@@ -50,7 +50,7 @@ export interface Column {
50
50
  }
51
51
 
52
52
  export interface DataGridProps<T extends Row = Row> {
53
- id: string | number
53
+ id?: string
54
54
  type: string
55
55
  data: T[]
56
56
  columns: Column[]
@@ -13,7 +13,7 @@ export interface VirtualListEntity<
13
13
  T extends VirtualListItem = VirtualListItem,
14
14
  > {
15
15
  /** A unique identifier for the list entity. */
16
- id: string | number
16
+ id?: string
17
17
 
18
18
  /** The entity type, used to look up rendering logic. */
19
19
  type: string