@imfusion/web-ui 0.6.4-dev.10.gefecdbe5 → 0.6.4-dev.23.gc1cc4132

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": "@imfusion/web-ui",
3
- "version": "0.6.4-dev.10.gefecdbe5",
3
+ "version": "0.6.4-dev.23.gc1cc4132",
4
4
  "description": "The official Web UI component library for ImFusion web apps",
5
5
  "author": "ImFusion GmbH",
6
6
  "homepage": "https://imfusion.com",
@@ -148,7 +148,6 @@
148
148
  "jiti": "2.7.0",
149
149
  "knip": "6.14.2",
150
150
  "lightningcss": "1.32.0",
151
- "nano-staged": "1.0.2",
152
151
  "playwright": "1.60.0",
153
152
  "prettier": "3.8.3",
154
153
  "react-docgen-typescript": "2.4.0",
@@ -81,6 +81,13 @@
81
81
  "defaultValue": null,
82
82
  "description": ""
83
83
  },
84
+ {
85
+ "name": "context",
86
+ "required": false,
87
+ "type": "\"default\" | \"oncolor\" | null",
88
+ "defaultValue": "default",
89
+ "description": ""
90
+ },
84
91
  {
85
92
  "name": "endIcon",
86
93
  "required": false,
@@ -255,7 +262,15 @@
255
262
  {
256
263
  "name": "Card.Image",
257
264
  "description": "Card.Image — an edge-to-edge media slot. Has no padding, so the image bleeds\nto the card edges. Always place it first among the slots.",
258
- "props": []
265
+ "props": [
266
+ {
267
+ "name": "aspectRatio",
268
+ "required": false,
269
+ "type": "number | \"auto\"",
270
+ "defaultValue": "16 / 10",
271
+ "description": "Width divided by height, or \"auto\" to use the image's intrinsic ratio."
272
+ }
273
+ ]
259
274
  }
260
275
  ]
261
276
  },
@@ -725,6 +740,13 @@
725
740
  "defaultValue": null,
726
741
  "description": ""
727
742
  },
743
+ {
744
+ "name": "context",
745
+ "required": false,
746
+ "type": "\"default\" | \"oncolor\" | null",
747
+ "defaultValue": null,
748
+ "description": ""
749
+ },
728
750
  {
729
751
  "name": "copiedLabel",
730
752
  "required": false,
@@ -2651,7 +2673,7 @@
2651
2673
  {
2652
2674
  "name": "defaultValue",
2653
2675
  "required": false,
2654
- "type": "unknown",
2676
+ "type": "SelectValueType<Value, Multiple> | null",
2655
2677
  "defaultValue": null,
2656
2678
  "description": ""
2657
2679
  },
@@ -2693,7 +2715,7 @@
2693
2715
  {
2694
2716
  "name": "isItemEqualToValue",
2695
2717
  "required": false,
2696
- "type": "(itemValue: unknown, value: unknown) => boolean",
2718
+ "type": "(itemValue: Value, value: Value) => boolean",
2697
2719
  "defaultValue": null,
2698
2720
  "description": ""
2699
2721
  },
@@ -2707,14 +2729,14 @@
2707
2729
  {
2708
2730
  "name": "itemToStringLabel",
2709
2731
  "required": false,
2710
- "type": "(itemValue: unknown) => string",
2732
+ "type": "(itemValue: Value) => string",
2711
2733
  "defaultValue": null,
2712
2734
  "description": ""
2713
2735
  },
2714
2736
  {
2715
2737
  "name": "itemToStringValue",
2716
2738
  "required": false,
2717
- "type": "(itemValue: unknown) => string",
2739
+ "type": "(itemValue: Value) => string",
2718
2740
  "defaultValue": null,
2719
2741
  "description": ""
2720
2742
  },
@@ -2756,7 +2778,7 @@
2756
2778
  {
2757
2779
  "name": "onValueChange",
2758
2780
  "required": false,
2759
- "type": "(\n value: unknown,\n eventDetails: SelectRootChangeEventDetails\n) => void",
2781
+ "type": "(\n value:\n | SelectValueType<Value, Multiple>\n | (Multiple extends true ? never : null),\n eventDetails: SelectRootChangeEventDetails\n) => void",
2760
2782
  "defaultValue": null,
2761
2783
  "description": ""
2762
2784
  },
@@ -2791,7 +2813,7 @@
2791
2813
  {
2792
2814
  "name": "value",
2793
2815
  "required": false,
2794
- "type": "unknown",
2816
+ "type": "SelectValueType<Value, Multiple> | null",
2795
2817
  "defaultValue": null,
2796
2818
  "description": ""
2797
2819
  }
@@ -18,7 +18,8 @@ The hooks are tracked in `.githooks/`. Check both the Git setting and the direct
18
18
 
19
19
  There are two scopes:
20
20
 
21
- - **staged**: `verify:staged`, run by pre-commit. It is fast and checks the staged files plus relevant project-wide checks.
21
+ - **commit**: `verify:staged`, run by pre-commit. It checks whole-repository lint and formatting, then runs project checks
22
+ for staged inputs.
22
23
  - **full**: `verify:full`, the build and complete verification used by CI.
23
24
 
24
25
  The scripts under `scripts/verify/` own the step lists. Hooks and npm scripts only launch them.
@@ -17,7 +17,7 @@ Read this topic before adding a dependency or configuring a tool. Use the tool's
17
17
  | Format | Prettier |
18
18
  | Lint | ESLint flat config |
19
19
  | Types | `tsc --noEmit` |
20
- | Staged files | lint-staged or nano-staged |
20
+ | Pre-commit checks | Whole-repository lint and format checks |
21
21
  | Dead code | Knip via `verify:knip` |
22
22
 
23
23
  ## When a library owns a layer
@@ -65,10 +65,11 @@ tests, requires the `#/` alias instead of parent-relative imports, and uses proj
65
65
  Use strict TypeScript with bundler module resolution, `verbatimModuleSyntax`, unused-value checks, and `#/` paths. Keep
66
66
  `import type` for type-only imports.
67
67
 
68
- ## Staged files
68
+ ## Pre-commit checks
69
69
 
70
- The staged-file runner applies ESLint fixes and Prettier writes only to staged files. It also runs the relevant project
71
- checks when source or config can affect the dependency graph.
70
+ The pre-commit hook checks the whole repository with ESLint and Prettier, then runs project checks for staged inputs that can
71
+ affect generated files, types, dependencies, or TeamCity configuration. It does not rewrite files during a commit; use
72
+ `npm run format` to apply Prettier changes explicitly.
72
73
 
73
74
  ## CSS class names
74
75