@imfusion/web-ui 0.11.1-dev.5.g8a97f4f6 → 0.11.1-dev.52.g8c3c8d4b

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 (83) hide show
  1. package/CHANGELOG.md +137 -1
  2. package/dist/{code-NTcddiYk.js → code-BaLXMEMa.js} +13 -13
  3. package/dist/components/autocomplete/autocomplete.d.ts +144 -0
  4. package/dist/components/autocomplete/autocomplete.meta.d.ts +2 -0
  5. package/dist/components/autocomplete/index.d.ts +2 -0
  6. package/dist/components/avatar/avatar.d.ts +1 -1
  7. package/dist/components/card/card.d.ts +3 -2
  8. package/dist/components/checkbox/checkbox.cva.d.ts +3 -0
  9. package/dist/components/combobox/combobox.cva.d.ts +37 -0
  10. package/dist/components/combobox/combobox.d.ts +171 -0
  11. package/dist/components/combobox/combobox.meta.d.ts +2 -0
  12. package/dist/components/combobox/index.d.ts +2 -0
  13. package/dist/components/file-drop-zone/collect-files.d.ts +56 -0
  14. package/dist/components/file-drop-zone/file-drop-zone-context.d.ts +15 -0
  15. package/dist/components/file-drop-zone/file-drop-zone.d.ts +185 -0
  16. package/dist/components/file-drop-zone/file-drop-zone.meta.d.ts +2 -0
  17. package/dist/components/file-drop-zone/format-bytes.d.ts +5 -0
  18. package/dist/components/file-drop-zone/index.d.ts +4 -0
  19. package/dist/components/logo/logo.d.ts +1 -1
  20. package/dist/components/popover/popover.d.ts +2 -2
  21. package/dist/components/progress/index.d.ts +2 -0
  22. package/dist/components/progress/progress.d.ts +40 -0
  23. package/dist/components/progress/progress.meta.d.ts +2 -0
  24. package/dist/components/select/select.cva.d.ts +7 -0
  25. package/dist/components/select/select.d.ts +1 -1
  26. package/dist/components/tab-nav/index.d.ts +2 -0
  27. package/dist/components/tab-nav/tab-nav.d.ts +26 -0
  28. package/dist/components/tab-nav/tab-nav.meta.d.ts +2 -0
  29. package/dist/components/table/table.d.ts +8 -0
  30. package/dist/components/tabs/tabs-underline.cva.d.ts +6 -0
  31. package/dist/components/tabs/tabs.d.ts +13 -4
  32. package/dist/components/textarea/index.d.ts +2 -0
  33. package/dist/components/textarea/textarea.d.ts +32 -0
  34. package/dist/components/textarea/textarea.meta.d.ts +2 -0
  35. package/dist/components/toast/toast.d.ts +2 -2
  36. package/dist/components/typo/typo.d.ts +5 -1
  37. package/dist/docgen/component-sources.d.ts +4 -0
  38. package/dist/icon-button-roSB497o.js +171 -0
  39. package/dist/icons/catalog.gen.d.ts +28 -0
  40. package/dist/icons/icons.gen.d.ts +4 -0
  41. package/dist/{icons-BsK_o-Cb.js → icons-vc1WZCxX.js} +1027 -879
  42. package/dist/icons.js +1 -1
  43. package/dist/index.d.ts +8 -0
  44. package/dist/index.js +4336 -2930
  45. package/dist/integrations/code-highlight.js +2 -2
  46. package/dist/integrations/frame-selection.js +1 -1
  47. package/dist/integrations/image-display-options.js +73 -71
  48. package/dist/integrations/layout-mode/index.d.ts +2 -0
  49. package/dist/integrations/layout-mode/layout-mode-view.d.ts +32 -0
  50. package/dist/integrations/layout-mode/layout-mode.d.ts +13 -0
  51. package/dist/integrations/layout-mode/layout-mode.meta.d.ts +2 -0
  52. package/dist/integrations/layout-mode.js +103 -0
  53. package/dist/integrations/view-tools/index.d.ts +4 -0
  54. package/dist/integrations/view-tools/use-view-interaction.d.ts +21 -0
  55. package/dist/integrations/view-tools/view-tools-view.d.ts +23 -0
  56. package/dist/integrations/view-tools/view-tools.d.ts +14 -0
  57. package/dist/integrations/view-tools/view-tools.meta.d.ts +2 -0
  58. package/dist/integrations/view-tools.js +133 -0
  59. package/dist/{resolve-state-props-DQf9WiGv.js → rolldown-runtime-Dy4uBu1J.js} +1 -12
  60. package/dist/row-CImu8yXV.js +136 -0
  61. package/dist/{scroll-area-z9Lf9uIk.js → scroll-area-CXQ_SxPX.js} +2 -1
  62. package/dist/{slider-Bf274cMe.js → slider-CpIZMAFl.js} +2 -1
  63. package/dist/style.css +2 -1
  64. package/dist/tabs-BqgyMmo6.js +173 -0
  65. package/dist/toggle-group-Bhb3qicp.js +31 -0
  66. package/dist/toggle-group-eGr6_hgQ.js +125 -0
  67. package/dist/utils/email.d.ts +4 -1
  68. package/dist/utils/index.d.ts +2 -0
  69. package/dist/utils/initials.d.ts +4 -0
  70. package/dist/utils/item-parts.d.ts +23 -0
  71. package/dist/utils/stable-popup-height.d.ts +10 -0
  72. package/dist/utils-J6vbjIt1.js +46 -0
  73. package/package.json +3 -3
  74. package/src/docgen/doc.gen.json +5187 -1669
  75. package/src/llms/icon-catalog.gen.json +32 -0
  76. package/src/llms/llms.gen.txt +47 -1
  77. package/src/llms/skills/imf-web-ui-conventions/templates/AUDIT_CHECKLIST.md +3 -1
  78. package/src/llms/skills/imf-web-ui-conventions/topics/assets.md +24 -4
  79. package/src/llms/skills/imf-web-ui-conventions/topics/components.md +10 -0
  80. package/src/llms/skills/imf-web-ui-conventions/topics/library-boundary.md +3 -0
  81. package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +22 -1
  82. package/src/llms/tokens.gen.json +19 -1
  83. package/dist/tabs-CU46aGud.js +0 -376
@@ -0,0 +1,171 @@
1
+ import { _M as e } from "./icons-vc1WZCxX.js";
2
+ import { t } from "./meta-V_KyLeGn.js";
3
+ import { a as n, r } from "./toggle-group-eGr6_hgQ.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
+ h != null && /* @__PURE__ */ s("span", {
91
+ className: l.endIcon,
92
+ "aria-hidden": !0,
93
+ children: h
94
+ }),
95
+ g && /* @__PURE__ */ s(n, {
96
+ variant: "flat",
97
+ className: l.shortcut,
98
+ "aria-hidden": !0,
99
+ children: g
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 };
@@ -6011,6 +6011,27 @@ export declare const ICON_CATALOG: readonly [{
6011
6011
  readonly style: "regular";
6012
6012
  readonly origin: "iconoir";
6013
6013
  readonly file: "regular/laptop-warning.svg";
6014
+ }, {
6015
+ readonly name: "LayoutAuto";
6016
+ readonly category: "Layout";
6017
+ readonly tags: readonly ["layout", "auto", "masonry", "viewports", "tiles", "grid"];
6018
+ readonly style: "regular";
6019
+ readonly origin: "imfusion";
6020
+ readonly file: "regular/layout-auto.svg";
6021
+ }, {
6022
+ readonly name: "LayoutFocusPlusRows";
6023
+ readonly category: "Layout";
6024
+ readonly tags: readonly ["layout", "focus", "rows", "main viewport", "viewports", "split"];
6025
+ readonly style: "regular";
6026
+ readonly origin: "imfusion";
6027
+ readonly file: "regular/layout-focus-plus-rows.svg";
6028
+ }, {
6029
+ readonly name: "LayoutFocusPlusStack";
6030
+ readonly category: "Layout";
6031
+ readonly tags: readonly ["layout", "focus", "stack", "main viewport", "sidebar", "viewports"];
6032
+ readonly style: "regular";
6033
+ readonly origin: "imfusion";
6034
+ readonly file: "regular/layout-focus-plus-stack.svg";
6014
6035
  }, {
6015
6036
  readonly name: "LayoutLeft";
6016
6037
  readonly category: "Layout";
@@ -6025,6 +6046,13 @@ export declare const ICON_CATALOG: readonly [{
6025
6046
  readonly style: "regular";
6026
6047
  readonly origin: "iconoir";
6027
6048
  readonly file: "regular/layout-right.svg";
6049
+ }, {
6050
+ readonly name: "LayoutRows";
6051
+ readonly category: "Layout";
6052
+ readonly tags: readonly ["layout", "rows", "viewports", "grid", "2x2", "tiles"];
6053
+ readonly style: "regular";
6054
+ readonly origin: "imfusion";
6055
+ readonly file: "regular/layout-rows.svg";
6028
6056
  }, {
6029
6057
  readonly name: "Leaderboard";
6030
6058
  readonly category: "Activities";
@@ -857,8 +857,12 @@ export declare const LaptopCharging: import('.').IconComponent;
857
857
  export declare const LaptopDevMode: import('.').IconComponent;
858
858
  export declare const LaptopFix: import('.').IconComponent;
859
859
  export declare const LaptopWarning: import('.').IconComponent;
860
+ export declare const LayoutAuto: import('.').IconComponent;
861
+ export declare const LayoutFocusPlusRows: import('.').IconComponent;
862
+ export declare const LayoutFocusPlusStack: import('.').IconComponent;
860
863
  export declare const LayoutLeft: import('.').IconComponent;
861
864
  export declare const LayoutRight: import('.').IconComponent;
865
+ export declare const LayoutRows: import('.').IconComponent;
862
866
  export declare const Leaderboard: import('.').IconComponent;
863
867
  export declare const LeaderboardStar: import('.').IconComponent;
864
868
  export declare const Leaf: import('.').IconComponent;