@imfusion/web-ui 0.11.1-dev.7.gf073da2b → 0.11.1-dev.71.g25428988
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/CHANGELOG.md +196 -1
- package/dist/{code-Cl9AzRyF.js → code-72NzL5Cp.js} +13 -13
- package/dist/components/autocomplete/autocomplete.d.ts +144 -0
- package/dist/components/autocomplete/autocomplete.meta.d.ts +2 -0
- package/dist/components/autocomplete/index.d.ts +2 -0
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/card/card.d.ts +3 -2
- package/dist/components/checkbox/checkbox.cva.d.ts +3 -0
- package/dist/components/combobox/combobox.cva.d.ts +37 -0
- package/dist/components/combobox/combobox.d.ts +171 -0
- package/dist/components/combobox/combobox.meta.d.ts +2 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/dialog/dialog.d.ts +23 -3
- package/dist/components/file-drop-zone/collect-files.d.ts +56 -0
- package/dist/components/file-drop-zone/file-drop-zone-context.d.ts +15 -0
- package/dist/components/file-drop-zone/file-drop-zone.d.ts +185 -0
- package/dist/components/file-drop-zone/file-drop-zone.meta.d.ts +2 -0
- package/dist/components/file-drop-zone/format-bytes.d.ts +5 -0
- package/dist/components/file-drop-zone/index.d.ts +4 -0
- package/dist/components/image/image.d.ts +50 -0
- package/dist/components/image/image.meta.d.ts +2 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/logo/logo.d.ts +1 -1
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/menu.d.ts +135 -0
- package/dist/components/menu/menu.meta.d.ts +2 -0
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/progress.d.ts +40 -0
- package/dist/components/progress/progress.meta.d.ts +2 -0
- package/dist/components/rich-link/rich-link.d.ts +1 -1
- package/dist/components/select/select.cva.d.ts +7 -0
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/tab-nav/index.d.ts +2 -0
- package/dist/components/tab-nav/tab-nav.d.ts +26 -0
- package/dist/components/tab-nav/tab-nav.meta.d.ts +2 -0
- package/dist/components/table/table.d.ts +56 -1
- package/dist/components/tabs/tabs-underline.cva.d.ts +6 -0
- package/dist/components/tabs/tabs.d.ts +13 -4
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textarea.d.ts +32 -0
- package/dist/components/textarea/textarea.meta.d.ts +2 -0
- package/dist/components/toast/toast.d.ts +2 -2
- package/dist/components/typo/typo.d.ts +5 -1
- package/dist/docgen/component-sources.d.ts +4 -0
- package/dist/icon-button-kVghav2z.js +171 -0
- package/dist/icons/catalog.gen.d.ts +7 -0
- package/dist/icons/icons.gen.d.ts +1 -0
- package/dist/{icons-vc1WZCxX.js → icons-CMetKl2x.js} +898 -893
- package/dist/icons.js +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +5022 -3013
- package/dist/integrations/code-highlight.js +2 -2
- package/dist/integrations/frame-selection.js +1 -1
- package/dist/integrations/image-display-options.js +73 -71
- package/dist/integrations/layout-mode/index.d.ts +2 -0
- package/dist/integrations/layout-mode/layout-mode-view.d.ts +32 -0
- package/dist/integrations/layout-mode/layout-mode.d.ts +13 -0
- package/dist/integrations/layout-mode/layout-mode.meta.d.ts +2 -0
- package/dist/integrations/layout-mode.js +103 -0
- package/dist/integrations/view-tools/index.d.ts +4 -0
- package/dist/integrations/view-tools/use-view-interaction.d.ts +21 -0
- package/dist/integrations/view-tools/view-tools-view.d.ts +23 -0
- package/dist/integrations/view-tools/view-tools.d.ts +14 -0
- package/dist/integrations/view-tools/view-tools.meta.d.ts +2 -0
- package/dist/integrations/view-tools.js +133 -0
- package/dist/{resolve-state-props-DQf9WiGv.js → rolldown-runtime-Dy4uBu1J.js} +1 -12
- package/dist/row-CImu8yXV.js +136 -0
- package/dist/{scroll-area-z9Lf9uIk.js → scroll-area-CXQ_SxPX.js} +2 -1
- package/dist/{slider-Bf274cMe.js → slider-CpIZMAFl.js} +2 -1
- package/dist/style.css +2 -1
- package/dist/tabs-BqgyMmo6.js +173 -0
- package/dist/toggle-group-CVQzM3lQ.js +125 -0
- package/dist/toggle-group-ghJtINie.js +31 -0
- package/dist/utils/email.d.ts +4 -1
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/initials.d.ts +4 -0
- package/dist/utils/item-parts.d.ts +23 -0
- package/dist/utils/stable-popup-height.d.ts +10 -0
- package/dist/utils-J6vbjIt1.js +46 -0
- package/package.json +4 -4
- package/src/docgen/doc.gen.json +7591 -2096
- package/src/llms/icon-catalog.gen.json +8 -0
- package/src/llms/llms.gen.txt +59 -2
- package/src/llms/skills/imf-web-ui-audit/SKILL.md +5 -2
- package/src/llms/skills/imf-web-ui-components/SKILL.md +3 -1
- package/src/llms/skills/imf-web-ui-conventions/SKILL.md +2 -2
- package/src/llms/skills/imf-web-ui-conventions/templates/AUDIT_CHECKLIST.md +19 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/assets.md +28 -4
- package/src/llms/skills/imf-web-ui-conventions/topics/components.md +10 -0
- package/src/llms/skills/imf-web-ui-conventions/topics/library-boundary.md +3 -0
- package/src/llms/skills/imf-web-ui-conventions/topics/npm-project.md +2 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/react/composition.md +54 -0
- package/src/llms/skills/imf-web-ui-conventions/topics/react/effects.md +59 -0
- package/src/llms/skills/imf-web-ui-conventions/topics/react/state.md +41 -0
- package/src/llms/skills/imf-web-ui-conventions/topics/react.md +7 -60
- package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +22 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/tooling.md +3 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/validation.md +7 -0
- package/src/llms/skills/imf-web-ui-ux/references/forms.md +3 -2
- package/src/llms/tokens.gen.json +21 -3
- package/dist/tabs-DsDSCA--.js +0 -376
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { vM as e } from "./icons-CMetKl2x.js";
|
|
2
|
+
import { t } from "./meta-V_KyLeGn.js";
|
|
3
|
+
import { a as n, r } from "./toggle-group-CVQzM3lQ.js";
|
|
4
|
+
import { a as i } from "./utils-J6vbjIt1.js";
|
|
5
|
+
import { Button as a } from "@base-ui/react/button";
|
|
6
|
+
import { cva as o } from "class-variance-authority";
|
|
7
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
var l = {
|
|
9
|
+
chamfer: "imf-ui-button-module-chamfer",
|
|
10
|
+
contextOncolor: "imf-ui-button-module-contextOncolor",
|
|
11
|
+
endIcon: "imf-ui-button-module-endIcon",
|
|
12
|
+
justifySpread: "imf-ui-button-module-justifySpread",
|
|
13
|
+
label: "imf-ui-button-module-label",
|
|
14
|
+
radiusLg: "imf-ui-button-module-radiusLg",
|
|
15
|
+
radiusMd: "imf-ui-button-module-radiusMd",
|
|
16
|
+
radiusRound: "imf-ui-button-module-radiusRound",
|
|
17
|
+
radiusSm: "imf-ui-button-module-radiusSm",
|
|
18
|
+
root: "imf-ui-button-module-root",
|
|
19
|
+
shortcut: "imf-ui-button-module-shortcut",
|
|
20
|
+
sizeHero: "imf-ui-button-module-sizeHero",
|
|
21
|
+
sizeLg: "imf-ui-button-module-sizeLg",
|
|
22
|
+
sizeMd: "imf-ui-button-module-sizeMd",
|
|
23
|
+
sizeSm: "imf-ui-button-module-sizeSm",
|
|
24
|
+
startIcon: "imf-ui-button-module-startIcon",
|
|
25
|
+
variantGhost: "imf-ui-button-module-variantGhost",
|
|
26
|
+
variantNegative: "imf-ui-button-module-variantNegative",
|
|
27
|
+
variantOutline: "imf-ui-button-module-variantOutline",
|
|
28
|
+
variantPositive: "imf-ui-button-module-variantPositive",
|
|
29
|
+
variantPrimary: "imf-ui-button-module-variantPrimary",
|
|
30
|
+
variantSecondary: "imf-ui-button-module-variantSecondary"
|
|
31
|
+
}, u = o(l.root, { variants: {
|
|
32
|
+
variant: {
|
|
33
|
+
primary: l.variantPrimary,
|
|
34
|
+
secondary: l.variantSecondary,
|
|
35
|
+
positive: l.variantPositive,
|
|
36
|
+
negative: l.variantNegative,
|
|
37
|
+
outline: l.variantOutline,
|
|
38
|
+
ghost: l.variantGhost
|
|
39
|
+
},
|
|
40
|
+
size: {
|
|
41
|
+
sm: l.sizeSm,
|
|
42
|
+
md: l.sizeMd,
|
|
43
|
+
lg: l.sizeLg,
|
|
44
|
+
hero: l.sizeHero
|
|
45
|
+
},
|
|
46
|
+
chamfer: {
|
|
47
|
+
false: null,
|
|
48
|
+
true: l.chamfer
|
|
49
|
+
},
|
|
50
|
+
radius: {
|
|
51
|
+
none: null,
|
|
52
|
+
sm: l.radiusSm,
|
|
53
|
+
md: l.radiusMd,
|
|
54
|
+
lg: l.radiusLg,
|
|
55
|
+
round: l.radiusRound
|
|
56
|
+
},
|
|
57
|
+
context: {
|
|
58
|
+
default: null,
|
|
59
|
+
oncolor: l.contextOncolor
|
|
60
|
+
},
|
|
61
|
+
justify: {
|
|
62
|
+
center: null,
|
|
63
|
+
spread: l.justifySpread
|
|
64
|
+
}
|
|
65
|
+
} });
|
|
66
|
+
function d({ variant: e = "primary", size: t = "md", context: o = "default", chamfer: d = t === "hero", radius: f = "none", justify: p = "center", startIcon: m, endIcon: h, shortcut: g, children: _, ...v }) {
|
|
67
|
+
return /* @__PURE__ */ c(a, {
|
|
68
|
+
"aria-keyshortcuts": g ? r(g) : void 0,
|
|
69
|
+
...v,
|
|
70
|
+
"data-imf-ui-component": "Button",
|
|
71
|
+
className: (n) => u({
|
|
72
|
+
variant: e,
|
|
73
|
+
size: t,
|
|
74
|
+
chamfer: d,
|
|
75
|
+
radius: f,
|
|
76
|
+
context: o,
|
|
77
|
+
justify: p,
|
|
78
|
+
className: i(v.className, n)
|
|
79
|
+
}),
|
|
80
|
+
children: [
|
|
81
|
+
m != null && /* @__PURE__ */ s("span", {
|
|
82
|
+
className: l.startIcon,
|
|
83
|
+
"aria-hidden": !0,
|
|
84
|
+
children: m
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ s("span", {
|
|
87
|
+
className: l.label,
|
|
88
|
+
children: _
|
|
89
|
+
}),
|
|
90
|
+
g && /* @__PURE__ */ s(n, {
|
|
91
|
+
variant: "flat",
|
|
92
|
+
className: l.shortcut,
|
|
93
|
+
"aria-hidden": !0,
|
|
94
|
+
children: g
|
|
95
|
+
}),
|
|
96
|
+
h != null && /* @__PURE__ */ s("span", {
|
|
97
|
+
className: l.endIcon,
|
|
98
|
+
"aria-hidden": !0,
|
|
99
|
+
children: h
|
|
100
|
+
})
|
|
101
|
+
]
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/components/button/button.meta.ts
|
|
106
|
+
var f = {
|
|
107
|
+
name: "Button",
|
|
108
|
+
category: t.buttons,
|
|
109
|
+
status: "stable",
|
|
110
|
+
description: "Triggers an action such as submit, confirm, cancel, navigate, or delete. Also called a CTA or action button; variants and sizes communicate its importance.",
|
|
111
|
+
origin: "adapted",
|
|
112
|
+
internalDependencies: ["Kbd"],
|
|
113
|
+
upstream: {
|
|
114
|
+
name: "Base UI",
|
|
115
|
+
websiteLink: "https://base-ui.com/",
|
|
116
|
+
docLink: "https://base-ui.com/react/components/button",
|
|
117
|
+
llmDocLink: "https://base-ui.com/react/components/button.md"
|
|
118
|
+
}
|
|
119
|
+
}, p = {
|
|
120
|
+
root: "imf-ui-icon-button-module-root",
|
|
121
|
+
sizeHero: "imf-ui-icon-button-module-sizeHero",
|
|
122
|
+
sizeLg: "imf-ui-icon-button-module-sizeLg",
|
|
123
|
+
sizeMd: "imf-ui-icon-button-module-sizeMd",
|
|
124
|
+
sizeSm: "imf-ui-icon-button-module-sizeSm"
|
|
125
|
+
}, m = o(p.root, { variants: { size: {
|
|
126
|
+
sm: p.sizeSm,
|
|
127
|
+
md: p.sizeMd,
|
|
128
|
+
lg: p.sizeLg,
|
|
129
|
+
hero: p.sizeHero
|
|
130
|
+
} } }), h = {
|
|
131
|
+
sm: 15,
|
|
132
|
+
md: 18,
|
|
133
|
+
lg: 20,
|
|
134
|
+
hero: 24
|
|
135
|
+
}, g = {
|
|
136
|
+
sm: "md",
|
|
137
|
+
md: "lg",
|
|
138
|
+
lg: "hero",
|
|
139
|
+
hero: "hero"
|
|
140
|
+
};
|
|
141
|
+
function _({ glyph: t, label: n, iconProps: r, size: a = "md", ...o }) {
|
|
142
|
+
let c = a ?? "md", l = o.shortcut ? g[c] : c;
|
|
143
|
+
return /* @__PURE__ */ s(d, {
|
|
144
|
+
...o,
|
|
145
|
+
size: c,
|
|
146
|
+
"aria-label": n,
|
|
147
|
+
className: (e) => m({
|
|
148
|
+
size: l,
|
|
149
|
+
className: i(o.className, e)
|
|
150
|
+
}),
|
|
151
|
+
children: /* @__PURE__ */ s(e, {
|
|
152
|
+
size: h[c],
|
|
153
|
+
...r,
|
|
154
|
+
glyph: t,
|
|
155
|
+
"aria-hidden": !0
|
|
156
|
+
})
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
_.displayName = "IconButton";
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region src/components/icon-button/icon-button.meta.ts
|
|
162
|
+
var v = {
|
|
163
|
+
name: "IconButton",
|
|
164
|
+
category: t.buttons,
|
|
165
|
+
status: "experimental",
|
|
166
|
+
description: "Square button that shows a single icon and no visible text, with its accessible name from `label`. Also called an icon-only or toolbar button. Use Button with `startIcon` or `endIcon` when a text label is visible.",
|
|
167
|
+
origin: "native",
|
|
168
|
+
internalDependencies: ["Button", "Icon"]
|
|
169
|
+
};
|
|
170
|
+
//#endregion
|
|
171
|
+
export { d as i, _ as n, f as r, v as t };
|
|
@@ -5941,6 +5941,13 @@ export declare const ICON_CATALOG: readonly [{
|
|
|
5941
5941
|
readonly style: "regular";
|
|
5942
5942
|
readonly origin: "iconoir";
|
|
5943
5943
|
readonly file: "regular/label.svg";
|
|
5944
|
+
}, {
|
|
5945
|
+
readonly name: "LabelMap";
|
|
5946
|
+
readonly category: "Medical Imaging";
|
|
5947
|
+
readonly tags: readonly ["label map", "labelmap", "segmentation", "vertebra", "spine", "mask", "pixels"];
|
|
5948
|
+
readonly style: "regular";
|
|
5949
|
+
readonly origin: "imfusion";
|
|
5950
|
+
readonly file: "regular/label-map.svg";
|
|
5944
5951
|
}, {
|
|
5945
5952
|
readonly name: "LabelPropagationAction";
|
|
5946
5953
|
readonly category: "Medical Imaging";
|
|
@@ -847,6 +847,7 @@ export declare const KeyMinus: import('.').IconComponent;
|
|
|
847
847
|
export declare const KeyPlus: import('.').IconComponent;
|
|
848
848
|
export declare const KeyXmark: import('.').IconComponent;
|
|
849
849
|
export declare const Label: import('.').IconComponent;
|
|
850
|
+
export declare const LabelMap: import('.').IconComponent;
|
|
850
851
|
export declare const LabelPropagationAction: import('.').IconComponent;
|
|
851
852
|
export declare const LabelSolid: import('.').IconComponent;
|
|
852
853
|
export declare const Lamp: import('.').IconComponent;
|