@imfusion/web-ui 0.9.1-dev.9.gdfff1530 → 0.10.1-dev.11.g9f5bc06e

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +116 -21
  2. package/dist/code-NTcddiYk.js +139 -0
  3. package/dist/components/app-shell/app-shell.d.ts +1 -1
  4. package/dist/components/dialog/dialog.d.ts +148 -0
  5. package/dist/components/dialog/dialog.meta.d.ts +2 -0
  6. package/dist/components/dialog/index.d.ts +2 -0
  7. package/dist/components/drawer/drawer.d.ts +1 -1
  8. package/dist/components/scroll-area/index.d.ts +2 -0
  9. package/dist/components/scroll-area/scroll-area.d.ts +49 -0
  10. package/dist/components/scroll-area/scroll-area.meta.d.ts +2 -0
  11. package/dist/index.d.ts +2 -0
  12. package/dist/index.js +2072 -1743
  13. package/dist/integrations/code-highlight.js +2 -2
  14. package/dist/integrations/frame-selection.js +1 -1
  15. package/dist/integrations/image-display-options.js +121 -111
  16. package/dist/{rolldown-runtime-Dy4uBu1J.js → resolve-state-props-DQf9WiGv.js} +12 -1
  17. package/dist/scroll-area-z9Lf9uIk.js +89 -0
  18. package/dist/slider-Bf274cMe.js +106 -0
  19. package/dist/style.css +1 -1
  20. package/dist/{tabs-DRyqtS04.js → tabs-Do0BFL12.js} +31 -32
  21. package/package.json +1 -1
  22. package/src/docgen/doc.gen.json +1099 -0
  23. package/src/llms/llms.gen.txt +12 -0
  24. package/src/llms/skills/imf-web-ui-conventions/templates/AUDIT_CHECKLIST.md +1 -0
  25. package/src/llms/skills/imf-web-ui-conventions/topics/authentication.md +2 -3
  26. package/src/llms/skills/imf-web-ui-conventions/topics/components.md +4 -1
  27. package/src/llms/skills/imf-web-ui-conventions/topics/data.md +11 -5
  28. package/src/llms/skills/imf-web-ui-conventions/topics/project-structure.md +11 -0
  29. package/src/llms/skills/imf-web-ui-conventions/topics/react.md +6 -4
  30. package/src/llms/skills/imf-web-ui-update/SKILL.md +20 -10
  31. package/dist/code-BYkr5k55.js +0 -134
  32. package/dist/slider-Cqpreglu.js +0 -116
@@ -1,7 +1,6 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { mh as t, pM as n } from "./icons-BsK_o-Cb.js";
3
- import { t as r } from "./meta-V_KyLeGn.js";
4
- import { l as i, u as a } from "./slider-Cqpreglu.js";
1
+ import { n as e, r as t, t as n } from "./resolve-state-props-DQf9WiGv.js";
2
+ import { mh as r, pM as i } from "./icons-BsK_o-Cb.js";
3
+ import { t as a } from "./meta-V_KyLeGn.js";
5
4
  import { cva as o } from "class-variance-authority";
6
5
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
6
  import { Children as l, useCallback as u } from "react";
@@ -19,7 +18,7 @@ var h = {
19
18
  primary: h.primary,
20
19
  flat: h.flat
21
20
  } } });
22
- function _({ variant: e = "default", icon: r = !1, children: i, ...a }) {
21
+ function _({ variant: e = "default", icon: t = !1, children: n, ...a }) {
23
22
  return /* @__PURE__ */ c("kbd", {
24
23
  ...a,
25
24
  "data-imf-ui-component": "Kbd",
@@ -27,19 +26,19 @@ function _({ variant: e = "default", icon: r = !1, children: i, ...a }) {
27
26
  variant: e,
28
27
  className: a.className
29
28
  }),
30
- children: [r && /* @__PURE__ */ s(n, {
31
- glyph: t,
29
+ children: [t && /* @__PURE__ */ s(i, {
30
+ glyph: r,
32
31
  strokeWidth: 2,
33
32
  "aria-hidden": !0,
34
33
  className: h.icon
35
- }), i]
34
+ }), n]
36
35
  });
37
36
  }
38
37
  //#endregion
39
38
  //#region src/components/kbd/kbd.meta.ts
40
39
  var ee = {
41
40
  name: "Kbd",
42
- category: r.display,
41
+ category: a.display,
43
42
  status: "experimental",
44
43
  description: "Shows a keyboard key or shortcut, such as the letter that activates a button. Also called a key hint; Button and Toggle render it through their `shortcut` prop.",
45
44
  origin: "native",
@@ -66,7 +65,7 @@ function y(e) {
66
65
  var b = {
67
66
  root: "imf-ui-switch-module-root",
68
67
  thumb: "imf-ui-switch-module-thumb"
69
- }, x = /* @__PURE__ */ e({
68
+ }, x = /* @__PURE__ */ t({
70
69
  Root: () => w,
71
70
  Thumb: () => T
72
71
  }), S = o(b.root), C = o(b.thumb);
@@ -74,7 +73,7 @@ function w(e) {
74
73
  return /* @__PURE__ */ s(d.Root, {
75
74
  ...e,
76
75
  "data-imf-ui-component": "Switch.Root",
77
- className: (t) => S({ className: i(e.className, t) })
76
+ className: (t) => S({ className: n(e.className, t) })
78
77
  });
79
78
  }
80
79
  w.displayName = "Switch.Root";
@@ -82,7 +81,7 @@ function T(e) {
82
81
  return /* @__PURE__ */ s(d.Thumb, {
83
82
  ...e,
84
83
  "data-imf-ui-component": "Switch.Thumb",
85
- className: (t) => C({ className: i(e.className, t) })
84
+ className: (t) => C({ className: n(e.className, t) })
86
85
  });
87
86
  }
88
87
  T.displayName = "Switch.Thumb";
@@ -96,25 +95,25 @@ function O(e) {
96
95
  typeof e == "string" || typeof e == "number" ? t += String(e).trim().length : e != null && typeof e != "boolean" && (t += D);
97
96
  }), t;
98
97
  }
99
- function k({ style: e, shortcut: t, children: n, ...r }) {
98
+ function k({ style: t, shortcut: r, children: i, ...a }) {
100
99
  let o = {
101
- "--glyph-count": O(n),
100
+ "--glyph-count": O(i),
102
101
  "--max-glyphs": D
103
102
  };
104
103
  return /* @__PURE__ */ c(f, {
105
- "aria-keyshortcuts": t ? y(t) : void 0,
106
- ...r,
104
+ "aria-keyshortcuts": r ? y(r) : void 0,
105
+ ...a,
107
106
  "data-imf-ui-component": "Toggle",
108
- style: (t) => ({
107
+ style: (n) => ({
109
108
  ...o,
110
- ...a(e, t)
109
+ ...e(t, n)
111
110
  }),
112
- className: (e) => te({ className: i(r.className, e) }),
113
- children: [n, t && /* @__PURE__ */ s(_, {
111
+ className: (e) => te({ className: n(a.className, e) }),
112
+ children: [i, r && /* @__PURE__ */ s(_, {
114
113
  variant: "flat",
115
114
  className: E.shortcut,
116
115
  "aria-hidden": !0,
117
- children: t
116
+ children: r
118
117
  })]
119
118
  });
120
119
  }
@@ -125,7 +124,7 @@ function j(e) {
125
124
  return /* @__PURE__ */ s(p, {
126
125
  ...e,
127
126
  "data-imf-ui-component": "ToggleGroup",
128
- className: (t) => A({ className: i(e.className, t) })
127
+ className: (t) => A({ className: n(e.className, t) })
129
128
  });
130
129
  }
131
130
  var M = {
@@ -268,7 +267,7 @@ var R = {
268
267
  panelViewport: "imf-ui-tabs-module-panelViewport",
269
268
  root: "imf-ui-tabs-module-root",
270
269
  tab: "imf-ui-tabs-module-tab"
271
- }, z = /* @__PURE__ */ e({
270
+ }, z = /* @__PURE__ */ t({
272
271
  Indicator: () => Z,
273
272
  List: () => Y,
274
273
  Panel: () => $,
@@ -298,12 +297,12 @@ function J(e) {
298
297
  return /* @__PURE__ */ s(m.Root, {
299
298
  ...e,
300
299
  "data-imf-ui-component": "Tabs.Root",
301
- className: (t) => V({ className: i(e.className, t) })
300
+ className: (t) => V({ className: n(e.className, t) })
302
301
  });
303
302
  }
304
303
  J.displayName = "Tabs.Root";
305
- function Y({ fill: e = !1, ref: t, ...n }) {
306
- let r = u((e) => {
304
+ function Y({ fill: e = !1, ref: t, ...r }) {
305
+ let i = u((e) => {
307
306
  if (!e) return;
308
307
  K(t, e);
309
308
  let n = q(e);
@@ -312,12 +311,12 @@ function Y({ fill: e = !1, ref: t, ...n }) {
312
311
  };
313
312
  }, [t]);
314
313
  return /* @__PURE__ */ s(m.List, {
315
- ...n,
316
- ref: r,
314
+ ...r,
315
+ ref: i,
317
316
  "data-imf-ui-component": "Tabs.List",
318
317
  className: (t) => B({
319
318
  fill: e,
320
- className: i(n.className, t)
319
+ className: n(r.className, t)
321
320
  })
322
321
  });
323
322
  }
@@ -326,7 +325,7 @@ function X(e) {
326
325
  return /* @__PURE__ */ s(m.Tab, {
327
326
  ...e,
328
327
  "data-imf-ui-component": "Tabs.Tab",
329
- className: (t) => H({ className: i(e.className, t) })
328
+ className: (t) => H({ className: n(e.className, t) })
330
329
  });
331
330
  }
332
331
  X.displayName = "Tabs.Tab";
@@ -334,7 +333,7 @@ function Z(e) {
334
333
  return /* @__PURE__ */ s(m.Indicator, {
335
334
  ...e,
336
335
  "data-imf-ui-component": "Tabs.Indicator",
337
- className: (t) => U({ className: i(e.className, t) })
336
+ className: (t) => U({ className: n(e.className, t) })
338
337
  });
339
338
  }
340
339
  Z.displayName = "Tabs.Indicator";
@@ -350,7 +349,7 @@ function $(e) {
350
349
  return /* @__PURE__ */ s(m.Panel, {
351
350
  ...e,
352
351
  "data-imf-ui-component": "Tabs.Panel",
353
- className: (t) => G({ className: i(e.className, t) })
352
+ className: (t) => G({ className: n(e.className, t) })
354
353
  });
355
354
  }
356
355
  $.displayName = "Tabs.Panel";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imfusion/web-ui",
3
- "version": "0.9.1-dev.9.gdfff1530",
3
+ "version": "0.10.1-dev.11.g9f5bc06e",
4
4
  "description": "The official Web UI component library for ImFusion web apps",
5
5
  "author": "ImFusion GmbH",
6
6
  "homepage": "https://imfusion.com",