@flatwork-ui/react 0.1.1 → 0.2.0

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/dist/index.js CHANGED
@@ -96,104 +96,23 @@ import {
96
96
  } from "react";
97
97
 
98
98
  // src/icons.tsx
99
- import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
100
- function icon(name, paths) {
101
- const Icon = (props) => /* @__PURE__ */ jsx3(
102
- "svg",
99
+ import { jsx as jsx3 } from "react/jsx-runtime";
100
+ function Icon({ name, filled, size, label, className, style, ...props }) {
101
+ return /* @__PURE__ */ jsx3(
102
+ "span",
103
103
  {
104
- "aria-hidden": "true",
105
- viewBox: "0 0 16 16",
106
- width: "16",
107
- height: "16",
108
- fill: "none",
109
- stroke: "currentColor",
110
- strokeWidth: 1.4,
111
- strokeLinecap: "round",
112
- strokeLinejoin: "round",
104
+ className: cx("fw-icon", filled && "is-filled", className),
105
+ style: size ? { fontSize: size, ...style } : style,
106
+ ...label ? { role: "img", "aria-label": label } : { "aria-hidden": true },
107
+ translate: "no",
113
108
  ...props,
114
- children: paths
109
+ children: name
115
110
  }
116
111
  );
117
- Icon.displayName = name;
118
- return Icon;
119
- }
120
- var IconHome = icon("IconHome", /* @__PURE__ */ jsxs2(Fragment2, { children: [
121
- /* @__PURE__ */ jsx3("path", { d: "M2 6.5 8 2l6 4.5V14H2z" }),
122
- /* @__PURE__ */ jsx3("path", { d: "M6.25 14V9.5h3.5V14" })
123
- ] }));
124
- var IconUser = icon("IconUser", /* @__PURE__ */ jsxs2(Fragment2, { children: [
125
- /* @__PURE__ */ jsx3("circle", { cx: "8", cy: "5.5", r: "2.75" }),
126
- /* @__PURE__ */ jsx3("path", { d: "M2.75 14c.6-2.6 2.7-4 5.25-4s4.65 1.4 5.25 4" })
127
- ] }));
128
- var IconSettings = icon("IconSettings", /* @__PURE__ */ jsxs2(Fragment2, { children: [
129
- /* @__PURE__ */ jsx3("circle", { cx: "8", cy: "8", r: "2" }),
130
- /* @__PURE__ */ jsx3("path", { d: "M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2M3.4 3.4l1.4 1.4M11.2 11.2l1.4 1.4M3.4 12.6l1.4-1.4M11.2 4.8l1.4-1.4" })
131
- ] }));
132
- var IconPlus = icon("IconPlus", /* @__PURE__ */ jsx3("path", { d: "M8 3v10M3 8h10" }));
133
- var IconDownload = icon("IconDownload", /* @__PURE__ */ jsx3("path", { d: "M8 2.5v8M4.5 7 8 10.5 11.5 7M2.5 13.5h11" }));
134
- var IconUpload = icon("IconUpload", /* @__PURE__ */ jsx3("path", { d: "M8 10.5v-8M4.5 6 8 2.5 11.5 6M2.5 13.5h11" }));
135
- var IconChevronDown = icon("IconChevronDown", /* @__PURE__ */ jsx3("path", { d: "m4 6 4 4 4-4" }));
136
- var IconChevronUp = icon("IconChevronUp", /* @__PURE__ */ jsx3("path", { d: "m4 10 4-4 4 4" }));
137
- var IconChevronRight = icon("IconChevronRight", /* @__PURE__ */ jsx3("path", { d: "m6 3.5 4 4.5-4 4.5" }));
138
- var IconChevronLeft = icon("IconChevronLeft", /* @__PURE__ */ jsx3("path", { d: "m10 3.5-4 4.5 4 4.5" }));
139
- var IconArrowRight = icon("IconArrowRight", /* @__PURE__ */ jsx3("path", { d: "M3 8h10M9 4l4 4-4 4" }));
140
- var IconPencil = icon("IconPencil", /* @__PURE__ */ jsx3("path", { d: "M10.5 2.5 13.5 5.5 5.5 13.5H2.5V10.5z" }));
141
- var IconCopy = icon("IconCopy", /* @__PURE__ */ jsxs2(Fragment2, { children: [
142
- /* @__PURE__ */ jsx3("rect", { x: "5", y: "5", width: "8.5", height: "8.5", rx: "1.5" }),
143
- /* @__PURE__ */ jsx3("path", { d: "M3 10.5V3.5A1 1 0 0 1 4 2.5h6.5" })
144
- ] }));
145
- var IconMore = icon("IconMore", /* @__PURE__ */ jsxs2(Fragment2, { children: [
146
- /* @__PURE__ */ jsx3("circle", { cx: "3.5", cy: "8", r: "1.25" }),
147
- /* @__PURE__ */ jsx3("circle", { cx: "8", cy: "8", r: "1.25" }),
148
- /* @__PURE__ */ jsx3("circle", { cx: "12.5", cy: "8", r: "1.25" })
149
- ] }));
150
- var IconX = icon("IconX", /* @__PURE__ */ jsx3("path", { d: "m4 4 8 8M12 4l-8 8" }));
151
- var IconTrash = icon("IconTrash", /* @__PURE__ */ jsx3("path", { d: "M2.5 4.5h11M6 4.5V3h4v1.5M4 4.5l.7 9h6.6l.7-9" }));
152
- var IconSearch = icon("IconSearch", /* @__PURE__ */ jsxs2(Fragment2, { children: [
153
- /* @__PURE__ */ jsx3("circle", { cx: "7", cy: "7", r: "4.5" }),
154
- /* @__PURE__ */ jsx3("path", { d: "m10.5 10.5 3.5 3.5" })
155
- ] }));
156
- var IconEye = icon("IconEye", /* @__PURE__ */ jsxs2(Fragment2, { children: [
157
- /* @__PURE__ */ jsx3("path", { d: "M1.5 8S3.9 3.5 8 3.5 14.5 8 14.5 8 12.1 12.5 8 12.5 1.5 8 1.5 8z" }),
158
- /* @__PURE__ */ jsx3("circle", { cx: "8", cy: "8", r: "2" })
159
- ] }));
160
- var IconInfo = icon("IconInfo", /* @__PURE__ */ jsxs2(Fragment2, { children: [
161
- /* @__PURE__ */ jsx3("circle", { cx: "8", cy: "8", r: "6.25" }),
162
- /* @__PURE__ */ jsx3("path", { d: "M8 7.25v4M8 4.75v.25" })
163
- ] }));
164
- var IconCheckCircle = icon("IconCheckCircle", /* @__PURE__ */ jsxs2(Fragment2, { children: [
165
- /* @__PURE__ */ jsx3("circle", { cx: "8", cy: "8", r: "6.25" }),
166
- /* @__PURE__ */ jsx3("path", { d: "m5.5 8.25 1.75 1.75 3.25-3.5" })
167
- ] }));
168
- var IconWarning = icon("IconWarning", /* @__PURE__ */ jsxs2(Fragment2, { children: [
169
- /* @__PURE__ */ jsx3("path", { d: "M8 2 14.5 13.5h-13z" }),
170
- /* @__PURE__ */ jsx3("path", { d: "M8 6.5v3.25M8 11.5v.25" })
171
- ] }));
172
- var IconError = icon("IconError", /* @__PURE__ */ jsxs2(Fragment2, { children: [
173
- /* @__PURE__ */ jsx3("circle", { cx: "8", cy: "8", r: "6.25" }),
174
- /* @__PURE__ */ jsx3("path", { d: "M8 4.75v3.75M8 10.75v.5" })
175
- ] }));
176
- var IconFolder = icon("IconFolder", /* @__PURE__ */ jsx3("path", { d: "M2 4.5h4l1.5 1.5H14V13H2z" }));
177
- var IconBell = icon("IconBell", /* @__PURE__ */ jsxs2(Fragment2, { children: [
178
- /* @__PURE__ */ jsx3("path", { d: "M4 6.5a4 4 0 0 1 8 0c0 3.5 1.5 4.5 1.5 4.5h-11S4 10 4 6.5z" }),
179
- /* @__PURE__ */ jsx3("path", { d: "M6.75 13.5a1.4 1.4 0 0 0 2.5 0" })
180
- ] }));
181
- var IconChart = icon("IconChart", /* @__PURE__ */ jsx3("path", { d: "M2 13V9M6 13V5M10 13V7M14 13V3" }));
182
- var IconLock = icon("IconLock", /* @__PURE__ */ jsxs2(Fragment2, { children: [
183
- /* @__PURE__ */ jsx3("rect", { x: "3", y: "7", width: "10", height: "7", rx: "1.5" }),
184
- /* @__PURE__ */ jsx3("path", { d: "M5.5 7V5a2.5 2.5 0 0 1 5 0v2" })
185
- ] }));
186
- var IconGrid = icon("IconGrid", /* @__PURE__ */ jsxs2(Fragment2, { children: [
187
- /* @__PURE__ */ jsx3("rect", { x: "2.5", y: "2.5", width: "4.5", height: "4.5", rx: "1" }),
188
- /* @__PURE__ */ jsx3("rect", { x: "9", y: "2.5", width: "4.5", height: "4.5", rx: "1" }),
189
- /* @__PURE__ */ jsx3("rect", { x: "2.5", y: "9", width: "4.5", height: "4.5", rx: "1" }),
190
- /* @__PURE__ */ jsx3("rect", { x: "9", y: "9", width: "4.5", height: "4.5", rx: "1" })
191
- ] }));
192
- var IconList = icon("IconList", /* @__PURE__ */ jsx3("path", { d: "M2.5 4h11M2.5 8h11M2.5 12h11" }));
193
- var IconCheck = icon("IconCheck", /* @__PURE__ */ jsx3("path", { d: "m3 8.5 3 3 7-7" }));
112
+ }
194
113
 
195
114
  // src/Form.tsx
196
- import { Fragment as Fragment3, jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
115
+ import { Fragment as Fragment2, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
197
116
  var FieldContext = createContext(null);
198
117
  function useFieldProps(props) {
199
118
  const field = useContext(FieldContext);
@@ -210,12 +129,12 @@ function Field({ label, optional, help, error, labelEnd, labelAsText, id, classN
210
129
  const controlId = id ?? autoId;
211
130
  const messageId = `${controlId}-message`;
212
131
  const message = error ?? help;
213
- const labelEl = labelAsText ? /* @__PURE__ */ jsx4("span", { className: "fw-label", children: label }) : /* @__PURE__ */ jsxs3("label", { className: "fw-label", htmlFor: controlId, children: [
132
+ const labelEl = labelAsText ? /* @__PURE__ */ jsx4("span", { className: "fw-label", children: label }) : /* @__PURE__ */ jsxs2("label", { className: "fw-label", htmlFor: controlId, children: [
214
133
  label,
215
134
  optional && /* @__PURE__ */ jsx4("span", { className: "fw-opt", children: " (optional)" })
216
135
  ] });
217
- return /* @__PURE__ */ jsx4(FieldContext.Provider, { value: { id: controlId, describedBy: message ? messageId : void 0, invalid: Boolean(error) }, children: /* @__PURE__ */ jsxs3("div", { className: cx("fw-field", className), ...props, children: [
218
- labelEnd ? /* @__PURE__ */ jsxs3("div", { style: { display: "flex", justifyContent: "space-between", gap: 8 }, children: [
136
+ return /* @__PURE__ */ jsx4(FieldContext.Provider, { value: { id: controlId, describedBy: message ? messageId : void 0, invalid: Boolean(error) }, children: /* @__PURE__ */ jsxs2("div", { className: cx("fw-field", className), ...props, children: [
137
+ labelEnd ? /* @__PURE__ */ jsxs2("div", { style: { display: "flex", justifyContent: "space-between", gap: 8 }, children: [
219
138
  labelEl,
220
139
  labelEnd
221
140
  ] }) : labelEl,
@@ -241,9 +160,9 @@ var Textarea = forwardRef3(function Textarea2({ invalid: _invalid, className, ..
241
160
  });
242
161
  var Select = forwardRef3(function Select2({ invalid: _invalid, className, children, ...props }, ref) {
243
162
  const { invalid, ...field } = useFieldProps({ ...props, invalid: _invalid });
244
- return /* @__PURE__ */ jsxs3("span", { className: "fw-select-wrap", children: [
163
+ return /* @__PURE__ */ jsxs2("span", { className: "fw-select-wrap", children: [
245
164
  /* @__PURE__ */ jsx4("select", { ref, className: cx("fw-select", invalid && "is-error", className), ...props, ...field, children }),
246
- /* @__PURE__ */ jsx4(IconChevronDown, {})
165
+ /* @__PURE__ */ jsx4(Icon, { name: "keyboard_arrow_down" })
247
166
  ] });
248
167
  });
249
168
  function InputGroup({ className, ...props }) {
@@ -253,8 +172,8 @@ function Affix({ boxed, end, className, ...props }) {
253
172
  return /* @__PURE__ */ jsx4("span", { className: cx("fw-affix", boxed && "fw-affix-box", boxed && end && "fw-end", className), ...props });
254
173
  }
255
174
  function ChoiceLabel({ label, description, children, center, spread, style, className }) {
256
- if (label === void 0) return /* @__PURE__ */ jsx4(Fragment3, { children });
257
- const text = description ? /* @__PURE__ */ jsxs3("span", { children: [
175
+ if (label === void 0) return /* @__PURE__ */ jsx4(Fragment2, { children });
176
+ const text = description ? /* @__PURE__ */ jsxs2("span", { children: [
258
177
  label,
259
178
  /* @__PURE__ */ jsx4("small", { children: description })
260
179
  ] }) : label;
@@ -263,10 +182,10 @@ function ChoiceLabel({ label, description, children, center, spread, style, clas
263
182
  {
264
183
  className: cx("fw-check", className),
265
184
  style: { ...center && { alignItems: "center" }, ...spread && { justifyContent: "space-between", width: "100%" }, ...style },
266
- children: spread ? /* @__PURE__ */ jsxs3(Fragment3, { children: [
185
+ children: spread ? /* @__PURE__ */ jsxs2(Fragment2, { children: [
267
186
  text,
268
187
  children
269
- ] }) : /* @__PURE__ */ jsxs3(Fragment3, { children: [
188
+ ] }) : /* @__PURE__ */ jsxs2(Fragment2, { children: [
270
189
  children,
271
190
  text
272
191
  ] })
@@ -331,7 +250,7 @@ var Range = forwardRef3(function Range2({ className, style, min = 0, max = 100,
331
250
  });
332
251
  function Dropzone({ title, hint, onFiles, onChange, className, ...props }) {
333
252
  const field = useFieldProps(props);
334
- return /* @__PURE__ */ jsxs3(
253
+ return /* @__PURE__ */ jsxs2(
335
254
  "label",
336
255
  {
337
256
  className: cx("fw-dropzone", className),
@@ -342,8 +261,8 @@ function Dropzone({ title, hint, onFiles, onChange, className, ...props }) {
342
261
  if (e.dataTransfer.files.length) onFiles?.(e.dataTransfer.files);
343
262
  },
344
263
  children: [
345
- /* @__PURE__ */ jsx4(IconUpload, {}),
346
- /* @__PURE__ */ jsx4("span", { children: title ?? /* @__PURE__ */ jsxs3(Fragment3, { children: [
264
+ /* @__PURE__ */ jsx4(Icon, { name: "upload" }),
265
+ /* @__PURE__ */ jsx4("span", { children: title ?? /* @__PURE__ */ jsxs2(Fragment2, { children: [
347
266
  /* @__PURE__ */ jsx4("strong", { children: "Click to upload" }),
348
267
  " or drag and drop"
349
268
  ] }) }),
@@ -367,7 +286,7 @@ function Dropzone({ title, hint, onFiles, onChange, className, ...props }) {
367
286
  );
368
287
  }
369
288
  function Fieldset({ legend, className, children, ...props }) {
370
- return /* @__PURE__ */ jsxs3("fieldset", { className: cx("fw-fieldset", className), ...props, children: [
289
+ return /* @__PURE__ */ jsxs2("fieldset", { className: cx("fw-fieldset", className), ...props, children: [
371
290
  /* @__PURE__ */ jsx4("legend", { children: legend }),
372
291
  children
373
292
  ] });
@@ -383,41 +302,41 @@ import {
383
302
  useRef as useRef2,
384
303
  useState
385
304
  } from "react";
386
- import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
305
+ import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
387
306
  var toneIcon = {
388
- info: /* @__PURE__ */ jsx5(IconInfo, {}),
389
- success: /* @__PURE__ */ jsx5(IconCheckCircle, {}),
390
- warning: /* @__PURE__ */ jsx5(IconWarning, {}),
391
- error: /* @__PURE__ */ jsx5(IconError, {}),
392
- neutral: /* @__PURE__ */ jsx5(IconInfo, {})
307
+ info: /* @__PURE__ */ jsx5(Icon, { name: "info" }),
308
+ success: /* @__PURE__ */ jsx5(Icon, { name: "check_circle" }),
309
+ warning: /* @__PURE__ */ jsx5(Icon, { name: "warning" }),
310
+ error: /* @__PURE__ */ jsx5(Icon, { name: "error" }),
311
+ neutral: /* @__PURE__ */ jsx5(Icon, { name: "info" })
393
312
  };
394
- function Alert({ tone = "info", title, icon: icon2, onDismiss, className, children, ...props }) {
395
- return /* @__PURE__ */ jsxs4(
313
+ function Alert({ tone = "info", title, icon, onDismiss, className, children, ...props }) {
314
+ return /* @__PURE__ */ jsxs3(
396
315
  "div",
397
316
  {
398
317
  role: tone === "error" ? "alert" : "status",
399
318
  className: cx("fw-alert", tone !== "info" && `fw-alert-${tone}`, className),
400
319
  ...props,
401
320
  children: [
402
- icon2 === void 0 ? toneIcon[tone] : icon2,
403
- /* @__PURE__ */ jsxs4("div", { className: "fw-alert-body", children: [
321
+ icon === void 0 ? toneIcon[tone] : icon,
322
+ /* @__PURE__ */ jsxs3("div", { className: "fw-alert-body", children: [
404
323
  title && /* @__PURE__ */ jsx5("span", { className: "fw-alert-title", children: title }),
405
324
  children && /* @__PURE__ */ jsx5("span", { className: "fw-alert-text", children })
406
325
  ] }),
407
- onDismiss && /* @__PURE__ */ jsx5(Button, { variant: "ghost", size: "sm", iconOnly: true, "aria-label": "Dismiss", onClick: onDismiss, style: { margin: "-6px -6px 0 0", color: "inherit" }, children: /* @__PURE__ */ jsx5(IconX, {}) })
326
+ onDismiss && /* @__PURE__ */ jsx5(Button, { variant: "ghost", size: "sm", iconOnly: true, "aria-label": "Dismiss", onClick: onDismiss, style: { margin: "-6px -6px 0 0", color: "inherit" }, children: /* @__PURE__ */ jsx5(Icon, { name: "close" }) })
408
327
  ]
409
328
  }
410
329
  );
411
330
  }
412
331
  function Toast({ tone = "success", title, description, actions, onDismiss, className, ...props }) {
413
- return /* @__PURE__ */ jsxs4("div", { role: tone === "error" ? "alert" : "status", className: cx("fw-toast", className), ...props, children: [
332
+ return /* @__PURE__ */ jsxs3("div", { role: tone === "error" ? "alert" : "status", className: cx("fw-toast", className), ...props, children: [
414
333
  /* @__PURE__ */ jsx5("span", { style: { color: `var(--fw-${tone === "neutral" ? "muted" : tone})`, display: "contents" }, children: toneIcon[tone] }),
415
- /* @__PURE__ */ jsxs4("div", { className: "fw-alert-body", children: [
334
+ /* @__PURE__ */ jsxs3("div", { className: "fw-alert-body", children: [
416
335
  /* @__PURE__ */ jsx5("span", { className: "fw-alert-title", children: title }),
417
336
  description && /* @__PURE__ */ jsx5("span", { children: description }),
418
337
  actions && /* @__PURE__ */ jsx5("div", { className: "fw-toast-actions", children: actions })
419
338
  ] }),
420
- onDismiss && /* @__PURE__ */ jsx5(Button, { variant: "ghost", size: "sm", iconOnly: true, "aria-label": "Dismiss", onClick: onDismiss, style: { margin: "-6px -8px 0 0" }, children: /* @__PURE__ */ jsx5(IconX, {}) })
339
+ onDismiss && /* @__PURE__ */ jsx5(Button, { variant: "ghost", size: "sm", iconOnly: true, "aria-label": "Dismiss", onClick: onDismiss, style: { margin: "-6px -8px 0 0" }, children: /* @__PURE__ */ jsx5(Icon, { name: "close" }) })
421
340
  ] });
422
341
  }
423
342
  var ToastContext = createContext2(null);
@@ -441,7 +360,7 @@ function ToastProvider({ children }) {
441
360
  );
442
361
  useEffect2(() => () => timers.current.forEach(clearTimeout), []);
443
362
  const api = useMemo(() => ({ show, dismiss }), [show, dismiss]);
444
- return /* @__PURE__ */ jsxs4(ToastContext.Provider, { value: api, children: [
363
+ return /* @__PURE__ */ jsxs3(ToastContext.Provider, { value: api, children: [
445
364
  children,
446
365
  /* @__PURE__ */ jsx5("div", { className: "fw-toaster", "aria-live": "polite", children: toasts.map(({ id, duration: _duration, ...toast }) => /* @__PURE__ */ jsx5(Toast, { ...toast, onDismiss: () => dismiss(id) }, id)) })
447
366
  ] });
@@ -452,15 +371,15 @@ function useToast() {
452
371
  return api;
453
372
  }
454
373
  function Badge({ tone = "neutral", dot, count, className, children, ...props }) {
455
- return /* @__PURE__ */ jsxs4("span", { className: cx("fw-badge", tone !== "neutral" && `fw-badge-${tone}`, count && "fw-badge-count", className), ...props, children: [
374
+ return /* @__PURE__ */ jsxs3("span", { className: cx("fw-badge", tone !== "neutral" && `fw-badge-${tone}`, count && "fw-badge-count", className), ...props, children: [
456
375
  dot && /* @__PURE__ */ jsx5("span", { className: "fw-dot" }),
457
376
  children
458
377
  ] });
459
378
  }
460
379
  function Tag({ onRemove, removeLabel, className, children, ...props }) {
461
- return /* @__PURE__ */ jsxs4("span", { className: cx("fw-tag", className), ...props, children: [
380
+ return /* @__PURE__ */ jsxs3("span", { className: cx("fw-tag", className), ...props, children: [
462
381
  children,
463
- onRemove && /* @__PURE__ */ jsx5("button", { type: "button", "aria-label": removeLabel ?? (typeof children === "string" ? `Remove ${children}` : "Remove"), onClick: onRemove, children: /* @__PURE__ */ jsx5(IconX, {}) })
382
+ onRemove && /* @__PURE__ */ jsx5("button", { type: "button", "aria-label": removeLabel ?? (typeof children === "string" ? `Remove ${children}` : "Remove"), onClick: onRemove, children: /* @__PURE__ */ jsx5(Icon, { name: "close" }) })
464
383
  ] });
465
384
  }
466
385
  function Progress({ value, max = 100, tone = "accent", meter, className, ...props }) {
@@ -490,9 +409,9 @@ function Skeleton({ width, height = 12, circle, className, style, ...props }) {
490
409
  }
491
410
  );
492
411
  }
493
- function EmptyState({ icon: icon2, title, description, action, className, ...props }) {
494
- return /* @__PURE__ */ jsxs4("div", { className: cx("fw-empty", className), ...props, children: [
495
- icon2 && /* @__PURE__ */ jsx5("span", { className: "fw-empty-icon", children: icon2 }),
412
+ function EmptyState({ icon, title, description, action, className, ...props }) {
413
+ return /* @__PURE__ */ jsxs3("div", { className: cx("fw-empty", className), ...props, children: [
414
+ icon && /* @__PURE__ */ jsx5("span", { className: "fw-empty-icon", children: icon }),
496
415
  /* @__PURE__ */ jsx5("span", { className: "fw-t-heading", children: title }),
497
416
  description && /* @__PURE__ */ jsx5("span", { className: "fw-t-caption", style: { maxWidth: 260 }, children: description }),
498
417
  action && /* @__PURE__ */ jsx5("div", { style: { marginTop: 8 }, children: action })
@@ -501,7 +420,7 @@ function EmptyState({ icon: icon2, title, description, action, className, ...pro
501
420
 
502
421
  // src/Menu.tsx
503
422
  import { forwardRef as forwardRef4 } from "react";
504
- import { Fragment as Fragment4, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
423
+ import { Fragment as Fragment3, jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
505
424
  var Menu = forwardRef4(function Menu2({ className, role = "menu", ...props }, ref) {
506
425
  return /* @__PURE__ */ jsx6("ul", { ref, role, className: cx("fw-menu", className), ...props });
507
426
  });
@@ -511,12 +430,12 @@ function MenuLabel({ className, ...props }) {
511
430
  function MenuSeparator({ className, ...props }) {
512
431
  return /* @__PURE__ */ jsx6("li", { role: "separator", className: cx("fw-menu-sep", className), ...props });
513
432
  }
514
- function MenuItem({ icon: icon2, shortcut, danger, selected, disabled, as = "button", className, children, ...props }) {
433
+ function MenuItem({ icon, shortcut, danger, selected, disabled, as = "button", className, children, ...props }) {
515
434
  const classes = cx("fw-menu-item", danger && "is-danger", selected && "is-selected", className);
516
- const inner = /* @__PURE__ */ jsxs5(Fragment4, { children: [
517
- icon2,
435
+ const inner = /* @__PURE__ */ jsxs4(Fragment3, { children: [
436
+ icon,
518
437
  children,
519
- shortcut ? /* @__PURE__ */ jsx6("span", { className: "fw-end", children: shortcut }) : selected ? /* @__PURE__ */ jsx6(IconCheck, { style: { marginLeft: "auto", color: "var(--fw-accent)" } }) : null
438
+ shortcut ? /* @__PURE__ */ jsx6("span", { className: "fw-end", children: shortcut }) : selected ? /* @__PURE__ */ jsx6(Icon, { name: "check", style: { marginLeft: "auto", color: "var(--fw-accent)" } }) : null
520
439
  ] });
521
440
  if (as === "li") {
522
441
  return /* @__PURE__ */ jsx6("li", { className: classes, "aria-disabled": disabled || void 0, ...props, children: inner });
@@ -533,7 +452,7 @@ import {
533
452
  useRef as useRef3,
534
453
  useState as useState2
535
454
  } from "react";
536
- import { Fragment as Fragment5, jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
455
+ import { Fragment as Fragment4, jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
537
456
  function useDismiss(ref, active, onOutside) {
538
457
  useEffect3(() => {
539
458
  if (!active) return;
@@ -565,7 +484,7 @@ function Tooltip({ content: content2, shortcut, children, delay = 500 }) {
565
484
  setOpen(false);
566
485
  };
567
486
  useEffect3(() => () => clearTimeout(timer.current), []);
568
- return /* @__PURE__ */ jsxs6(
487
+ return /* @__PURE__ */ jsxs5(
569
488
  "span",
570
489
  {
571
490
  className: "fw-anchor",
@@ -576,7 +495,7 @@ function Tooltip({ content: content2, shortcut, children, delay = 500 }) {
576
495
  onKeyDown: (e) => e.key === "Escape" && hide(),
577
496
  children: [
578
497
  cloneElement(children, { "aria-describedby": open ? id : void 0 }),
579
- open && /* @__PURE__ */ jsxs6("span", { className: "fw-tooltip", role: "tooltip", id, children: [
498
+ open && /* @__PURE__ */ jsxs5("span", { className: "fw-tooltip", role: "tooltip", id, children: [
580
499
  content2,
581
500
  shortcut && /* @__PURE__ */ jsx7("kbd", { children: shortcut })
582
501
  ] })
@@ -594,7 +513,7 @@ function Popover({ trigger, children, open: controlled, defaultOpen = false, onO
594
513
  const ref = useRef3(null);
595
514
  const id = useId2();
596
515
  useDismiss(ref, open, () => setOpen(false));
597
- return /* @__PURE__ */ jsxs6("span", { className: "fw-anchor", ref, children: [
516
+ return /* @__PURE__ */ jsxs5("span", { className: "fw-anchor", ref, children: [
598
517
  cloneElement(trigger, {
599
518
  "aria-expanded": open,
600
519
  "aria-haspopup": "dialog",
@@ -624,7 +543,7 @@ function DropdownMenu({ trigger, children, alignEnd, label }) {
624
543
  items[e.key === "Home" ? 0 : items.length - 1]?.focus();
625
544
  }
626
545
  };
627
- return /* @__PURE__ */ jsxs6("span", { className: "fw-anchor", ref, children: [
546
+ return /* @__PURE__ */ jsxs5("span", { className: "fw-anchor", ref, children: [
628
547
  cloneElement(trigger, {
629
548
  "aria-expanded": open,
630
549
  "aria-haspopup": "menu",
@@ -666,18 +585,18 @@ function useModal(open, onClose) {
666
585
  return props;
667
586
  }
668
587
  function DialogHead({ titleId, title, subtitle, onClose, hideClose, divided }) {
669
- return /* @__PURE__ */ jsxs6("div", { className: "fw-dialog-head", style: divided ? { paddingBottom: 16, borderBottom: "1px solid var(--fw-border)" } : void 0, children: [
670
- /* @__PURE__ */ jsxs6("div", { children: [
588
+ return /* @__PURE__ */ jsxs5("div", { className: "fw-dialog-head", style: divided ? { paddingBottom: 16, borderBottom: "1px solid var(--fw-border)" } : void 0, children: [
589
+ /* @__PURE__ */ jsxs5("div", { children: [
671
590
  /* @__PURE__ */ jsx7("h3", { className: "fw-dialog-title", id: titleId, children: title }),
672
591
  subtitle && /* @__PURE__ */ jsx7("p", { className: "fw-card-sub", children: subtitle })
673
592
  ] }),
674
- !hideClose && /* @__PURE__ */ jsx7(Button, { variant: "ghost", size: "sm", iconOnly: true, "aria-label": "Close", onClick: onClose, style: { margin: "-6px -10px 0 0" }, children: /* @__PURE__ */ jsx7(IconX, {}) })
593
+ !hideClose && /* @__PURE__ */ jsx7(Button, { variant: "ghost", size: "sm", iconOnly: true, "aria-label": "Close", onClick: onClose, style: { margin: "-6px -10px 0 0" }, children: /* @__PURE__ */ jsx7(Icon, { name: "close" }) })
675
594
  ] });
676
595
  }
677
596
  function Dialog({ open, onClose, title, subtitle, footer, alert, hideClose, className, children, ...props }) {
678
597
  const modal = useModal(open, onClose);
679
598
  const titleId = useId2();
680
- return /* @__PURE__ */ jsx7("dialog", { ...modal, role: alert ? "alertdialog" : void 0, "aria-labelledby": titleId, className: cx("fw-dialog", className), ...props, children: open && /* @__PURE__ */ jsxs6(Fragment5, { children: [
599
+ return /* @__PURE__ */ jsx7("dialog", { ...modal, role: alert ? "alertdialog" : void 0, "aria-labelledby": titleId, className: cx("fw-dialog", className), ...props, children: open && /* @__PURE__ */ jsxs5(Fragment4, { children: [
681
600
  /* @__PURE__ */ jsx7(DialogHead, { titleId, title, subtitle, onClose, hideClose }),
682
601
  /* @__PURE__ */ jsx7("div", { className: "fw-dialog-body", children }),
683
602
  footer && /* @__PURE__ */ jsx7("div", { className: "fw-dialog-foot", children: footer })
@@ -686,7 +605,7 @@ function Dialog({ open, onClose, title, subtitle, footer, alert, hideClose, clas
686
605
  function Drawer({ open, onClose, title, subtitle, footer, hideClose, className, children, ...props }) {
687
606
  const modal = useModal(open, onClose);
688
607
  const titleId = useId2();
689
- return /* @__PURE__ */ jsx7("dialog", { ...modal, "aria-labelledby": titleId, className: cx("fw-drawer", className), ...props, children: open && /* @__PURE__ */ jsxs6(Fragment5, { children: [
608
+ return /* @__PURE__ */ jsx7("dialog", { ...modal, "aria-labelledby": titleId, className: cx("fw-drawer", className), ...props, children: open && /* @__PURE__ */ jsxs5(Fragment4, { children: [
690
609
  /* @__PURE__ */ jsx7(DialogHead, { titleId, title, subtitle, onClose, hideClose, divided: true }),
691
610
  /* @__PURE__ */ jsx7("div", { className: "fw-dialog-body", style: { paddingTop: 20 }, children }),
692
611
  footer && /* @__PURE__ */ jsx7("div", { className: "fw-dialog-foot", children: footer })
@@ -733,9 +652,9 @@ function CommandPalette({ open, onClose, commands, placeholder = "Search command
733
652
  }
734
653
  };
735
654
  let lastGroup;
736
- return /* @__PURE__ */ jsx7("dialog", { ...modal, "aria-label": "Command palette", className: "fw-command", children: open && /* @__PURE__ */ jsxs6(Fragment5, { children: [
737
- /* @__PURE__ */ jsxs6("div", { className: "fw-command-input", children: [
738
- /* @__PURE__ */ jsx7(IconSearch, {}),
655
+ return /* @__PURE__ */ jsx7("dialog", { ...modal, "aria-label": "Command palette", className: "fw-command", children: open && /* @__PURE__ */ jsxs5(Fragment4, { children: [
656
+ /* @__PURE__ */ jsxs5("div", { className: "fw-command-input", children: [
657
+ /* @__PURE__ */ jsx7(Icon, { name: "search" }),
739
658
  /* @__PURE__ */ jsx7(
740
659
  "input",
741
660
  {
@@ -756,7 +675,7 @@ function CommandPalette({ open, onClose, commands, placeholder = "Search command
756
675
  ),
757
676
  /* @__PURE__ */ jsx7("kbd", { children: "Esc" })
758
677
  ] }),
759
- /* @__PURE__ */ jsxs6(Menu, { id: listId, role: "listbox", children: [
678
+ /* @__PURE__ */ jsxs5(Menu, { id: listId, role: "listbox", children: [
760
679
  results.length === 0 && /* @__PURE__ */ jsx7(MenuLabel, { children: "No results" }),
761
680
  results.map((c, i) => {
762
681
  const header = c.group && c.group !== lastGroup ? /* @__PURE__ */ jsx7(MenuLabel, { children: c.group }, `g-${c.group}`) : null;
@@ -782,17 +701,17 @@ function CommandPalette({ open, onClose, commands, placeholder = "Search command
782
701
  ];
783
702
  })
784
703
  ] }),
785
- /* @__PURE__ */ jsxs6("div", { className: "fw-command-foot", children: [
786
- /* @__PURE__ */ jsxs6("span", { children: [
704
+ /* @__PURE__ */ jsxs5("div", { className: "fw-command-foot", children: [
705
+ /* @__PURE__ */ jsxs5("span", { children: [
787
706
  /* @__PURE__ */ jsx7("kbd", { children: "\u2191" }),
788
707
  /* @__PURE__ */ jsx7("kbd", { children: "\u2193" }),
789
708
  "navigate"
790
709
  ] }),
791
- /* @__PURE__ */ jsxs6("span", { children: [
710
+ /* @__PURE__ */ jsxs5("span", { children: [
792
711
  /* @__PURE__ */ jsx7("kbd", { children: "\u21B5" }),
793
712
  "select"
794
713
  ] }),
795
- /* @__PURE__ */ jsxs6("span", { children: [
714
+ /* @__PURE__ */ jsxs5("span", { children: [
796
715
  /* @__PURE__ */ jsx7("kbd", { children: "Esc" }),
797
716
  "close"
798
717
  ] })
@@ -803,12 +722,12 @@ function CommandPalette({ open, onClose, commands, placeholder = "Search command
803
722
  // src/Navigation.tsx
804
723
  import {
805
724
  createContext as createContext3,
806
- Fragment as Fragment6,
725
+ Fragment as Fragment5,
807
726
  useContext as useContext3,
808
727
  useId as useId3,
809
728
  useState as useState3
810
729
  } from "react";
811
- import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
730
+ import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
812
731
  function rovingKeys(selector, orientation = "horizontal") {
813
732
  return (e) => {
814
733
  const [prev, next] = orientation === "horizontal" ? ["ArrowLeft", "ArrowRight"] : ["ArrowUp", "ArrowDown"];
@@ -822,14 +741,14 @@ function rovingKeys(selector, orientation = "horizontal") {
822
741
  };
823
742
  }
824
743
  function TopNav({ brand, end, navLabel = "Primary", className, children, ...props }) {
825
- return /* @__PURE__ */ jsxs7("header", { className: cx("fw-topnav", className), ...props, children: [
744
+ return /* @__PURE__ */ jsxs6("header", { className: cx("fw-topnav", className), ...props, children: [
826
745
  brand,
827
746
  children && /* @__PURE__ */ jsx8("nav", { "aria-label": navLabel, children }),
828
747
  end && /* @__PURE__ */ jsx8("div", { className: "fw-end", children: end })
829
748
  ] });
830
749
  }
831
750
  function Brand({ mark, className, children, style, ...props }) {
832
- return /* @__PURE__ */ jsxs7("a", { className: cx("fw-brand", className), style: { textDecoration: "none", ...style }, ...props, children: [
751
+ return /* @__PURE__ */ jsxs6("a", { className: cx("fw-brand", className), style: { textDecoration: "none", ...style }, ...props, children: [
833
752
  mark && /* @__PURE__ */ jsx8("span", { className: "fw-logo-mark", "aria-hidden": "true", children: mark }),
834
753
  children
835
754
  ] });
@@ -840,10 +759,10 @@ function SideNav({ className, ...props }) {
840
759
  function NavGroupLabel({ className, ...props }) {
841
760
  return /* @__PURE__ */ jsx8("span", { className: cx("fw-group-label", className), ...props });
842
761
  }
843
- function NavItem({ icon: icon2, badge, current, as, className, children, ...props }) {
762
+ function NavItem({ icon, badge, current, as, className, children, ...props }) {
844
763
  const Tag2 = as ?? "a";
845
- return /* @__PURE__ */ jsxs7(Tag2, { className: cx("fw-nav-item", className), "aria-current": current ? "page" : void 0, ...props, children: [
846
- icon2,
764
+ return /* @__PURE__ */ jsxs6(Tag2, { className: cx("fw-nav-item", className), "aria-current": current ? "page" : void 0, ...props, children: [
765
+ icon,
847
766
  children,
848
767
  badge
849
768
  ] });
@@ -870,7 +789,7 @@ function TabList({ className, ...props }) {
870
789
  function Tab({ value, badge, className, children, ...props }) {
871
790
  const tabs = useTabs();
872
791
  const selected = tabs.value === value;
873
- return /* @__PURE__ */ jsxs7(
792
+ return /* @__PURE__ */ jsxs6(
874
793
  "button",
875
794
  {
876
795
  type: "button",
@@ -897,7 +816,7 @@ function TabPanel({ value, ...props }) {
897
816
  function SegmentedControl({ options, value: controlled, defaultValue, onValueChange, label, className, ...props }) {
898
817
  const [uncontrolled, setUncontrolled] = useState3(defaultValue ?? options[0]?.value);
899
818
  const value = controlled ?? uncontrolled;
900
- return /* @__PURE__ */ jsx8("div", { role: "radiogroup", "aria-label": label, className: cx("fw-segmented", className), onKeyDown: rovingKeys('[role="radio"]'), ...props, children: options.map((o) => /* @__PURE__ */ jsxs7(
819
+ return /* @__PURE__ */ jsx8("div", { role: "radiogroup", "aria-label": label, className: cx("fw-segmented", className), onKeyDown: rovingKeys('[role="radio"]'), ...props, children: options.map((o) => /* @__PURE__ */ jsxs6(
901
820
  "button",
902
821
  {
903
822
  type: "button",
@@ -921,9 +840,9 @@ function SegmentedControl({ options, value: controlled, defaultValue, onValueCha
921
840
  function Breadcrumb({ items, renderLink, className, ...props }) {
922
841
  return /* @__PURE__ */ jsx8("nav", { "aria-label": "Breadcrumb", className, ...props, children: /* @__PURE__ */ jsx8("ol", { className: "fw-breadcrumb", children: items.map((c, i) => {
923
842
  const last = i === items.length - 1;
924
- return /* @__PURE__ */ jsxs7(Fragment6, { children: [
843
+ return /* @__PURE__ */ jsxs6(Fragment5, { children: [
925
844
  /* @__PURE__ */ jsx8("li", { children: last ? /* @__PURE__ */ jsx8("span", { "aria-current": "page", children: c.label }) : renderLink ? renderLink(c) : /* @__PURE__ */ jsx8("a", { href: c.href, children: c.label }) }),
926
- !last && /* @__PURE__ */ jsx8("li", { "aria-hidden": "true", children: /* @__PURE__ */ jsx8(IconChevronRight, { className: "fw-sep" }) })
845
+ !last && /* @__PURE__ */ jsx8("li", { "aria-hidden": "true", children: /* @__PURE__ */ jsx8(Icon, { name: "chevron_right", className: "fw-sep" }) })
927
846
  ] }, i);
928
847
  }) }) });
929
848
  }
@@ -938,8 +857,8 @@ function pageRange(page, count) {
938
857
  return out;
939
858
  }
940
859
  function Pagination({ page, count, onPageChange, className, ...props }) {
941
- return /* @__PURE__ */ jsx8("nav", { "aria-label": "Pagination", className, ...props, children: /* @__PURE__ */ jsxs7("ul", { className: "fw-pagination", children: [
942
- /* @__PURE__ */ jsx8("li", { children: /* @__PURE__ */ jsx8("button", { className: "fw-page", type: "button", "aria-label": "Previous page", disabled: page <= 1, onClick: () => onPageChange(page - 1), children: /* @__PURE__ */ jsx8(IconChevronLeft, {}) }) }),
860
+ return /* @__PURE__ */ jsx8("nav", { "aria-label": "Pagination", className, ...props, children: /* @__PURE__ */ jsxs6("ul", { className: "fw-pagination", children: [
861
+ /* @__PURE__ */ jsx8("li", { children: /* @__PURE__ */ jsx8("button", { className: "fw-page", type: "button", "aria-label": "Previous page", disabled: page <= 1, onClick: () => onPageChange(page - 1), children: /* @__PURE__ */ jsx8(Icon, { name: "chevron_left" }) }) }),
943
862
  pageRange(page, count).map(
944
863
  (p, i) => p === "gap" ? /* @__PURE__ */ jsx8("li", { children: /* @__PURE__ */ jsx8("span", { className: "fw-page", "aria-hidden": "true", style: { cursor: "default" }, children: "\u2026" }) }, `gap-${i}`) : /* @__PURE__ */ jsx8("li", { children: /* @__PURE__ */ jsx8(
945
864
  "button",
@@ -952,28 +871,28 @@ function Pagination({ page, count, onPageChange, className, ...props }) {
952
871
  }
953
872
  ) }, p)
954
873
  ),
955
- /* @__PURE__ */ jsx8("li", { children: /* @__PURE__ */ jsx8("button", { className: "fw-page", type: "button", "aria-label": "Next page", disabled: page >= count, onClick: () => onPageChange(page + 1), children: /* @__PURE__ */ jsx8(IconChevronRight, {}) }) })
874
+ /* @__PURE__ */ jsx8("li", { children: /* @__PURE__ */ jsx8("button", { className: "fw-page", type: "button", "aria-label": "Next page", disabled: page >= count, onClick: () => onPageChange(page + 1), children: /* @__PURE__ */ jsx8(Icon, { name: "chevron_right" }) }) })
956
875
  ] }) });
957
876
  }
958
877
  function Stepper({ steps, current, className, ...props }) {
959
- return /* @__PURE__ */ jsx8("ol", { className: cx("fw-stepper", className), ...props, children: steps.map((label, i) => /* @__PURE__ */ jsxs7(Fragment6, { children: [
878
+ return /* @__PURE__ */ jsx8("ol", { className: cx("fw-stepper", className), ...props, children: steps.map((label, i) => /* @__PURE__ */ jsxs6(Fragment5, { children: [
960
879
  i > 0 && /* @__PURE__ */ jsx8("li", { className: "fw-step-line", "aria-hidden": "true" }),
961
- /* @__PURE__ */ jsxs7("li", { className: cx("fw-step", i < current && "is-done", i === current && "is-active"), "aria-current": i === current ? "step" : void 0, children: [
962
- /* @__PURE__ */ jsx8("span", { className: "fw-step-n", children: i < current ? /* @__PURE__ */ jsx8(IconCheck, {}) : i + 1 }),
880
+ /* @__PURE__ */ jsxs6("li", { className: cx("fw-step", i < current && "is-done", i === current && "is-active"), "aria-current": i === current ? "step" : void 0, children: [
881
+ /* @__PURE__ */ jsx8("span", { className: "fw-step-n", children: i < current ? /* @__PURE__ */ jsx8(Icon, { name: "check" }) : i + 1 }),
963
882
  label
964
883
  ] })
965
884
  ] }, i)) });
966
885
  }
967
886
 
968
887
  // src/Data.tsx
969
- import { Fragment as Fragment7 } from "react";
970
- import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
888
+ import { Fragment as Fragment6 } from "react";
889
+ import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
971
890
  function Card({ className, ...props }) {
972
891
  return /* @__PURE__ */ jsx9("div", { className: cx("fw-card", className), ...props });
973
892
  }
974
893
  function CardHeader({ title, subtitle, action, className, children, ...props }) {
975
- return /* @__PURE__ */ jsxs8("div", { className: cx("fw-card-head", className), ...props, children: [
976
- children ?? /* @__PURE__ */ jsxs8("div", { children: [
894
+ return /* @__PURE__ */ jsxs7("div", { className: cx("fw-card-head", className), ...props, children: [
895
+ children ?? /* @__PURE__ */ jsxs7("div", { children: [
977
896
  title && /* @__PURE__ */ jsx9("h3", { className: "fw-card-title", children: title }),
978
897
  subtitle && /* @__PURE__ */ jsx9("p", { className: "fw-card-sub", children: subtitle })
979
898
  ] }),
@@ -987,20 +906,20 @@ function CardFooter({ className, ...props }) {
987
906
  return /* @__PURE__ */ jsx9("div", { className: cx("fw-card-foot", className), ...props });
988
907
  }
989
908
  function StatCard({ label, value, delta, caption, ...props }) {
990
- return /* @__PURE__ */ jsxs8(Card, { ...props, children: [
991
- /* @__PURE__ */ jsxs8(CardHeader, { children: [
909
+ return /* @__PURE__ */ jsxs7(Card, { ...props, children: [
910
+ /* @__PURE__ */ jsxs7(CardHeader, { children: [
992
911
  /* @__PURE__ */ jsx9("span", { className: "fw-t-caption", children: label }),
993
912
  delta
994
913
  ] }),
995
- /* @__PURE__ */ jsxs8(CardBody, { children: [
914
+ /* @__PURE__ */ jsxs7(CardBody, { children: [
996
915
  /* @__PURE__ */ jsx9("span", { className: "fw-stat-value", children: value }),
997
916
  caption && /* @__PURE__ */ jsx9("span", { className: "fw-t-caption", children: caption })
998
917
  ] })
999
918
  ] });
1000
919
  }
1001
920
  function Table({ caption, footer, className, children, ...props }) {
1002
- return /* @__PURE__ */ jsxs8("div", { className: "fw-table-wrap", children: [
1003
- /* @__PURE__ */ jsxs8("table", { className: cx("fw-table", className), ...props, children: [
921
+ return /* @__PURE__ */ jsxs7("div", { className: "fw-table-wrap", children: [
922
+ /* @__PURE__ */ jsxs7("table", { className: cx("fw-table", className), ...props, children: [
1004
923
  caption && /* @__PURE__ */ jsx9("caption", { children: caption }),
1005
924
  children
1006
925
  ] }),
@@ -1008,18 +927,18 @@ function Table({ caption, footer, className, children, ...props }) {
1008
927
  ] });
1009
928
  }
1010
929
  function SortableHeader({ sort = "none", onSort, className, children, ...props }) {
1011
- return /* @__PURE__ */ jsx9("th", { className: cx("fw-sortable", className), "aria-sort": sort, ...props, children: /* @__PURE__ */ jsxs8("button", { type: "button", onClick: onSort, style: { background: "none", border: 0, padding: 0, font: "inherit", color: "inherit", cursor: "pointer" }, children: [
930
+ return /* @__PURE__ */ jsx9("th", { className: cx("fw-sortable", className), "aria-sort": sort, ...props, children: /* @__PURE__ */ jsxs7("button", { type: "button", onClick: onSort, style: { background: "none", border: 0, padding: 0, font: "inherit", color: "inherit", cursor: "pointer" }, children: [
1012
931
  children,
1013
- sort === "descending" ? /* @__PURE__ */ jsx9(IconChevronDown, {}) : /* @__PURE__ */ jsx9(IconChevronUp, { style: sort === "none" ? { opacity: 0.4 } : void 0 })
932
+ sort === "descending" ? /* @__PURE__ */ jsx9(Icon, { name: "keyboard_arrow_down" }) : /* @__PURE__ */ jsx9(Icon, { name: "keyboard_arrow_up", style: sort === "none" ? { opacity: 0.4 } : void 0 })
1014
933
  ] }) });
1015
934
  }
1016
935
  function List({ className, ...props }) {
1017
936
  return /* @__PURE__ */ jsx9("ul", { className: cx("fw-list", className), ...props });
1018
937
  }
1019
938
  function ListItem({ leading, title, meta, trailing, ...props }) {
1020
- return /* @__PURE__ */ jsxs8("li", { ...props, children: [
939
+ return /* @__PURE__ */ jsxs7("li", { ...props, children: [
1021
940
  leading,
1022
- /* @__PURE__ */ jsxs8("span", { className: "fw-grow", children: [
941
+ /* @__PURE__ */ jsxs7("span", { className: "fw-grow", children: [
1023
942
  /* @__PURE__ */ jsx9("span", { className: "fw-title", children: title }),
1024
943
  meta && /* @__PURE__ */ jsx9("span", { className: "fw-meta", children: meta })
1025
944
  ] }),
@@ -1027,7 +946,7 @@ function ListItem({ leading, title, meta, trailing, ...props }) {
1027
946
  ] });
1028
947
  }
1029
948
  function DescriptionList({ items, className, ...props }) {
1030
- return /* @__PURE__ */ jsx9("dl", { className: cx("fw-dl", className), ...props, children: items.map((it, i) => /* @__PURE__ */ jsxs8(Fragment7, { children: [
949
+ return /* @__PURE__ */ jsx9("dl", { className: cx("fw-dl", className), ...props, children: items.map((it, i) => /* @__PURE__ */ jsxs7(Fragment6, { children: [
1031
950
  /* @__PURE__ */ jsx9("dt", { children: it.term }),
1032
951
  /* @__PURE__ */ jsx9("dd", { className: it.mono ? "fw-mono" : void 0, children: it.value })
1033
952
  ] }, i)) });
@@ -1036,10 +955,10 @@ function Accordion({ className, ...props }) {
1036
955
  return /* @__PURE__ */ jsx9("div", { className: cx("fw-accordion", className), ...props });
1037
956
  }
1038
957
  function AccordionItem({ title, children, ...props }) {
1039
- return /* @__PURE__ */ jsxs8("details", { ...props, children: [
1040
- /* @__PURE__ */ jsxs8("summary", { children: [
958
+ return /* @__PURE__ */ jsxs7("details", { ...props, children: [
959
+ /* @__PURE__ */ jsxs7("summary", { children: [
1041
960
  title,
1042
- /* @__PURE__ */ jsx9(IconChevronDown, {})
961
+ /* @__PURE__ */ jsx9(Icon, { name: "keyboard_arrow_down" })
1043
962
  ] }),
1044
963
  /* @__PURE__ */ jsx9("div", { className: "fw-acc-body", children })
1045
964
  ] });
@@ -1050,7 +969,7 @@ function CodeBlock({ className, ...props }) {
1050
969
  function Divider({ label }) {
1051
970
  if (!label) return /* @__PURE__ */ jsx9("hr", {});
1052
971
  const line = /* @__PURE__ */ jsx9("span", { style: { flex: 1, height: 1, background: "var(--fw-border)" } });
1053
- return /* @__PURE__ */ jsxs8("div", { role: "separator", style: { display: "flex", alignItems: "center", gap: 12, color: "var(--fw-muted)", fontSize: 12 }, children: [
972
+ return /* @__PURE__ */ jsxs7("div", { role: "separator", style: { display: "flex", alignItems: "center", gap: 12, color: "var(--fw-muted)", fontSize: 12 }, children: [
1054
973
  line,
1055
974
  label,
1056
975
  line
@@ -1092,35 +1011,7 @@ export {
1092
1011
  Field,
1093
1012
  Fieldset,
1094
1013
  FlatworkRoot,
1095
- IconArrowRight,
1096
- IconBell,
1097
- IconChart,
1098
- IconCheck,
1099
- IconCheckCircle,
1100
- IconChevronDown,
1101
- IconChevronLeft,
1102
- IconChevronRight,
1103
- IconChevronUp,
1104
- IconCopy,
1105
- IconDownload,
1106
- IconError,
1107
- IconEye,
1108
- IconFolder,
1109
- IconGrid,
1110
- IconHome,
1111
- IconInfo,
1112
- IconList,
1113
- IconLock,
1114
- IconMore,
1115
- IconPencil,
1116
- IconPlus,
1117
- IconSearch,
1118
- IconSettings,
1119
- IconTrash,
1120
- IconUpload,
1121
- IconUser,
1122
- IconWarning,
1123
- IconX,
1014
+ Icon,
1124
1015
  Input,
1125
1016
  InputGroup,
1126
1017
  Kbd,