@jirawatpyk/aura-react 5.65.0 → 5.67.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.
@@ -1,4 +1,4 @@
1
- /* @ds-bundle: {"format":4,"namespace":"Aura","components":[{"name":"Icon"},{"name":"Button"},{"name":"IconButton"},{"name":"Menu"},{"name":"DropdownMenu"},{"name":"Checkbox"},{"name":"StatusPill"},{"name":"TextField"},{"name":"Textarea"},{"name":"Select"},{"name":"FilterSelect"},{"name":"FilterDateRange"},{"name":"RadioGroup"},{"name":"Switch"},{"name":"Combobox"},{"name":"DatePicker"},{"name":"DateRangePicker"},{"name":"Calendar"},{"name":"Alert"},{"name":"Toaster"},{"name":"PasswordField"},{"name":"FormErrorSummary"},{"name":"FilterBar"},{"name":"Command"},{"name":"Tooltip"},{"name":"Dialog"},{"name":"Drawer"},{"name":"DataTable"},{"name":"Card"},{"name":"Tabs"},{"name":"SideNav"},{"name":"Breadcrumb"},{"name":"Avatar"},{"name":"Stack"},{"name":"Grid"},{"name":"Container"},{"name":"PageHeader"},{"name":"StatusTile"},{"name":"TileGrid"},{"name":"Sparkline"},{"name":"AppShell"},{"name":"ActionBar"},{"name":"Separator"},{"name":"Table"},{"name":"Tr"},{"name":"Th"},{"name":"Td"},{"name":"TableSkeleton"},{"name":"BottomNav"},{"name":"Surface"},{"name":"Stat"},{"name":"TimePicker"},{"name":"FileUpload"},{"name":"ColorSchemeScript"},{"name":"ColorSchemeToggle"},{"name":"Badge"},{"name":"Tag"},{"name":"Progress"},{"name":"Skeleton"},{"name":"EmptyState"},{"name":"Pagination"},{"name":"Accordion"},{"name":"Popover"},{"name":"NumberField"},{"name":"Stepper"},{"name":"SegmentedControl"}]} */
1
+ /* @ds-bundle: {"format":4,"namespace":"Aura","components":[{"name":"Icon"},{"name":"Button"},{"name":"IconButton"},{"name":"Menu"},{"name":"DropdownMenu"},{"name":"Checkbox"},{"name":"StatusPill"},{"name":"TextField"},{"name":"Textarea"},{"name":"Select"},{"name":"FilterSelect"},{"name":"FilterDateRange"},{"name":"RadioGroup"},{"name":"CheckboxGroup"},{"name":"Switch"},{"name":"Combobox"},{"name":"DatePicker"},{"name":"DateRangePicker"},{"name":"Calendar"},{"name":"Alert"},{"name":"Toaster"},{"name":"PasswordField"},{"name":"FormErrorSummary"},{"name":"FilterBar"},{"name":"Command"},{"name":"Tooltip"},{"name":"Dialog"},{"name":"Drawer"},{"name":"DataTable"},{"name":"Card"},{"name":"Tabs"},{"name":"SideNav"},{"name":"Breadcrumb"},{"name":"Avatar"},{"name":"Stack"},{"name":"Grid"},{"name":"Container"},{"name":"PageHeader"},{"name":"StatusTile"},{"name":"TileGrid"},{"name":"Sparkline"},{"name":"AppShell"},{"name":"ActionBar"},{"name":"Separator"},{"name":"Table"},{"name":"Tr"},{"name":"Th"},{"name":"Td"},{"name":"TableSkeleton"},{"name":"BottomNav"},{"name":"Surface"},{"name":"Stat"},{"name":"TimePicker"},{"name":"FileUpload"},{"name":"ColorSchemeScript"},{"name":"ColorSchemeToggle"},{"name":"Badge"},{"name":"Tag"},{"name":"Progress"},{"name":"Skeleton"},{"name":"EmptyState"},{"name":"Pagination"},{"name":"Accordion"},{"name":"Popover"},{"name":"NumberField"},{"name":"Stepper"},{"name":"SegmentedControl"}]} */
2
2
  window.Aura = (() => {
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
@@ -63,6 +63,7 @@ window.Aura = (() => {
63
63
  Calendar: () => Calendar,
64
64
  Card: () => Card,
65
65
  Checkbox: () => Checkbox,
66
+ CheckboxGroup: () => CheckboxGroup,
66
67
  ColorSchemeScript: () => ColorSchemeScript,
67
68
  ColorSchemeToggle: () => ColorSchemeToggle,
68
69
  Combobox: () => Combobox,
@@ -1029,6 +1030,7 @@ window.Aura = (() => {
1029
1030
  statusOk: "\u0E1B\u0E01\u0E15\u0E34",
1030
1031
  statusUnknown: "\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
1031
1032
  opensInNewTab: "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E19\u0E41\u0E17\u0E47\u0E1A\u0E43\u0E2B\u0E21\u0E48",
1033
+ required: "\u0E08\u0E33\u0E40\u0E1B\u0E47\u0E19",
1032
1034
  filtersApplied: function(n3) {
1033
1035
  return "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07, \u0E43\u0E0A\u0E49\u0E2D\u0E22\u0E39\u0E48 " + n3.toLocaleString("en") + " \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23";
1034
1036
  },
@@ -1170,6 +1172,7 @@ window.Aura = (() => {
1170
1172
  statusOk: "OK",
1171
1173
  statusUnknown: "Ingen data",
1172
1174
  opensInNewTab: "\xF6ppnas i en ny flik",
1175
+ required: "obligatoriskt",
1173
1176
  filtersApplied: function(n3) {
1174
1177
  return "Filter, " + n3.toLocaleString("sv-SE") + " aktiva";
1175
1178
  },
@@ -1312,6 +1315,7 @@ window.Aura = (() => {
1312
1315
  statusOk: "OK",
1313
1316
  statusUnknown: "No data",
1314
1317
  opensInNewTab: "opens in a new tab",
1318
+ required: "required",
1315
1319
  filtersApplied: function(n3) {
1316
1320
  return "Filters, " + n3.toLocaleString("en") + " applied";
1317
1321
  },
@@ -1835,11 +1839,13 @@ window.Aura = (() => {
1835
1839
  if (it.separator) return /* @__PURE__ */ React9.createElement("div", { key: "s" + i, role: "separator", className: "aura-menu__sep" });
1836
1840
  const isRadio = it.type === "radio";
1837
1841
  const isCheck = !isRadio && it.checked !== void 0;
1838
- const lead = isRadio ? /* @__PURE__ */ React9.createElement("span", { className: cx("aura-menu__radio", it.checked && "is-on") }) : isCheck ? /* @__PURE__ */ React9.createElement("span", { className: cx("aura-menu__check", it.checked && "is-on") }, it.checked ? /* @__PURE__ */ React9.createElement(Icon, { name: /* @__PURE__ */ React9.createElement(IconCheck, null), size: 12, strokeWidth: 3 }) : null) : it.icon ? /* @__PURE__ */ React9.createElement(Icon, { name: it.icon }) : /* @__PURE__ */ React9.createElement("span", { className: "aura-menu__blank" });
1842
+ const checkAtEnd = isCheck && !!it.icon && it.checkPlacement !== "start";
1843
+ const lead = isRadio ? /* @__PURE__ */ React9.createElement("span", { className: cx("aura-menu__radio", it.checked && "is-on") }) : isCheck && !checkAtEnd ? /* @__PURE__ */ React9.createElement("span", { className: cx("aura-menu__check", it.checked && "is-on") }, it.checked ? /* @__PURE__ */ React9.createElement(Icon, { name: /* @__PURE__ */ React9.createElement(IconCheck, null), size: 12, strokeWidth: 3 }) : null) : it.icon ? /* @__PURE__ */ React9.createElement(Icon, { name: it.icon }) : /* @__PURE__ */ React9.createElement("span", { className: "aura-menu__blank" });
1839
1844
  const body = [
1840
1845
  /* @__PURE__ */ React9.createElement(React9.Fragment, { key: "l" }, lead),
1841
1846
  /* @__PURE__ */ React9.createElement("span", { key: "t", className: "aura-menu__label" }, it.label),
1842
- it.hint ? /* @__PURE__ */ React9.createElement("span", { key: "h", className: "aura-menu__hint" }, it.hint) : null
1847
+ it.hint ? /* @__PURE__ */ React9.createElement("span", { key: "h", className: "aura-menu__hint" }, it.hint) : null,
1848
+ checkAtEnd ? /* @__PURE__ */ React9.createElement("span", { key: "c", className: cx("aura-menu__mark", it.checked && "is-on") }, it.checked ? /* @__PURE__ */ React9.createElement(Icon, { name: /* @__PURE__ */ React9.createElement(IconCheck, null), size: 16, strokeWidth: 2.5 }) : null) : null
1843
1849
  ];
1844
1850
  const cls = cx("aura-menu__item", it.tone === "danger" && "aura-menu__item--danger");
1845
1851
  const reasonId = it.disabled && it.disabledReason ? itemId + "-r" + i : void 0;
@@ -3899,15 +3905,88 @@ window.Aura = (() => {
3899
3905
  );
3900
3906
  });
3901
3907
 
3902
- // src/Switch.tsx
3908
+ // src/CheckboxGroup.tsx
3903
3909
  var React21 = __toESM(require_react(), 1);
3904
- var Switch = React21.forwardRef(function Switch2(props, ref) {
3910
+ var CheckboxGroup = React21.forwardRef(
3911
+ function CheckboxGroup2(props, ref) {
3912
+ const t = useStrings();
3913
+ const auto = uid(), id = props.id || auto;
3914
+ const st = useMaybeControlled(props.value, props.defaultValue || [], props.onChange);
3915
+ const picked = st[0] || [];
3916
+ const opts = (props.options || []).map(function(o) {
3917
+ return typeof o === "object" ? o : { value: o, label: o };
3918
+ });
3919
+ const name = props.name || id;
3920
+ const setRef = React21.useCallback(
3921
+ function(el) {
3922
+ if (el)
3923
+ el.focus = function(o) {
3924
+ const b = el.querySelector('input[type="checkbox"]:checked:not(:disabled)') || el.querySelector('input[type="checkbox"]:not(:disabled)');
3925
+ if (b) b.focus(o);
3926
+ };
3927
+ if (typeof ref === "function") ref(el);
3928
+ else if (ref) ref.current = el;
3929
+ },
3930
+ [ref]
3931
+ );
3932
+ return /* @__PURE__ */ React21.createElement(
3933
+ "fieldset",
3934
+ {
3935
+ ref: setRef,
3936
+ className: cx(
3937
+ "aura-field aura-radio-group aura-checkbox-group",
3938
+ props.error && "is-invalid",
3939
+ touchClass(props.touchHeight),
3940
+ props.className
3941
+ ),
3942
+ "aria-describedby": describedBy(id, props),
3943
+ disabled: props.disabled
3944
+ },
3945
+ props.label ? /* @__PURE__ */ React21.createElement("legend", { className: "aura-field__label" }, props.label, props.required ? /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement("span", { className: "aura-field__req", "aria-hidden": true }, " *"), /* @__PURE__ */ React21.createElement("span", { className: "aura-sr-only" }, " (" + t.required + ")")) : null) : null,
3946
+ /* @__PURE__ */ React21.createElement("div", { className: cx("aura-radio-group__list", props.orientation === "horizontal" && "is-horizontal") }, opts.map(function(v) {
3947
+ return /* @__PURE__ */ React21.createElement(
3948
+ Checkbox,
3949
+ {
3950
+ key: v.value,
3951
+ name,
3952
+ value: v.value,
3953
+ checked: picked.indexOf(v.value) >= 0,
3954
+ disabled: props.disabled || v.disabled,
3955
+ description: v.description,
3956
+ touchHeight: props.touchHeight,
3957
+ "aria-invalid": props.error ? true : void 0,
3958
+ "aria-describedby": props.error ? id + "-error" : void 0,
3959
+ onChange: function(on) {
3960
+ const known = opts.map(function(o) {
3961
+ return o.value;
3962
+ });
3963
+ const next = known.filter(function(val) {
3964
+ return val === v.value ? on : picked.indexOf(val) >= 0;
3965
+ }).concat(
3966
+ picked.filter(function(val) {
3967
+ return known.indexOf(val) < 0;
3968
+ })
3969
+ );
3970
+ st[1](next);
3971
+ }
3972
+ },
3973
+ v.label
3974
+ );
3975
+ })),
3976
+ props.error ? /* @__PURE__ */ React21.createElement("p", { className: "aura-field__error", id: id + "-error" }, /* @__PURE__ */ React21.createElement(Icon, { name: /* @__PURE__ */ React21.createElement(IconCircleAlert, null), size: 14 }), props.error) : props.hint ? /* @__PURE__ */ React21.createElement("p", { className: "aura-field__hint", id: id + "-hint" }, props.hint) : null
3977
+ );
3978
+ }
3979
+ );
3980
+
3981
+ // src/Switch.tsx
3982
+ var React22 = __toESM(require_react(), 1);
3983
+ var Switch = React22.forwardRef(function Switch2(props, ref) {
3905
3984
  const auto = uid(), id = props.id || auto;
3906
3985
  const st = useMaybeControlled(props.checked, !!props.defaultChecked, props.onChange);
3907
3986
  const on = !!st[0];
3908
3987
  const ro = !!props.readOnly && !props.disabled;
3909
3988
  const described = [props.description ? id + "-desc" : "", props["aria-describedby"] || ""].filter(Boolean).join(" ");
3910
- return /* @__PURE__ */ React21.createElement(
3989
+ return /* @__PURE__ */ React22.createElement(
3911
3990
  "div",
3912
3991
  {
3913
3992
  className: cx("aura-switch-row", props.disabled && "is-disabled", ro && "is-readonly", props.className),
@@ -3917,7 +3996,7 @@ window.Aura = (() => {
3917
3996
  st[1](!on);
3918
3997
  }
3919
3998
  },
3920
- /* @__PURE__ */ React21.createElement(
3999
+ /* @__PURE__ */ React22.createElement(
3921
4000
  "button",
3922
4001
  {
3923
4002
  ref,
@@ -3935,15 +4014,15 @@ window.Aura = (() => {
3935
4014
  if (!ro) st[1](!on);
3936
4015
  }
3937
4016
  },
3938
- /* @__PURE__ */ React21.createElement("span", { className: "aura-switch__thumb" })
4017
+ /* @__PURE__ */ React22.createElement("span", { className: "aura-switch__thumb" })
3939
4018
  ),
3940
- props.label ? /* @__PURE__ */ React21.createElement("span", { className: "aura-choice__text" }, /* @__PURE__ */ React21.createElement("label", { className: "aura-choice__label", id: id + "-label", htmlFor: id }, props.label), props.description ? /* @__PURE__ */ React21.createElement("span", { className: "aura-choice__desc", id: id + "-desc" }, props.description) : null) : props.description ? /* @__PURE__ */ React21.createElement("span", { className: "aura-sr-only", id: id + "-desc" }, props.description) : null,
3941
- props.icon ? /* @__PURE__ */ React21.createElement(Icon, { name: props.icon, className: "aura-switch-row__icon" }) : null
4019
+ props.label ? /* @__PURE__ */ React22.createElement("span", { className: "aura-choice__text" }, /* @__PURE__ */ React22.createElement("label", { className: "aura-choice__label", id: id + "-label", htmlFor: id }, props.label), props.description ? /* @__PURE__ */ React22.createElement("span", { className: "aura-choice__desc", id: id + "-desc" }, props.description) : null) : props.description ? /* @__PURE__ */ React22.createElement("span", { className: "aura-sr-only", id: id + "-desc" }, props.description) : null,
4020
+ props.icon ? /* @__PURE__ */ React22.createElement(Icon, { name: props.icon, className: "aura-switch-row__icon" }) : null
3942
4021
  );
3943
4022
  });
3944
4023
 
3945
4024
  // src/Combobox.tsx
3946
- var React22 = __toESM(require_react(), 1);
4025
+ var React23 = __toESM(require_react(), 1);
3947
4026
  var import_react_dom5 = __toESM(require_react_dom(), 1);
3948
4027
  function norm(s) {
3949
4028
  return String(s == null ? "" : s).normalize("NFC").toLocaleLowerCase("th");
@@ -3958,7 +4037,7 @@ window.Aura = (() => {
3958
4037
  return norm(k).indexOf(q) >= 0;
3959
4038
  });
3960
4039
  }
3961
- var Combobox = React22.forwardRef(
4040
+ var Combobox = React23.forwardRef(
3962
4041
  function Combobox2(all, ref) {
3963
4042
  const props = all;
3964
4043
  const multi = all.multiple === true;
@@ -4000,11 +4079,11 @@ window.Aura = (() => {
4000
4079
  return o.value === v;
4001
4080
  })[0];
4002
4081
  }).filter(Boolean) : [];
4003
- const openState = React22.useState(false), open = openState[0], setOpen = openState[1];
4004
- const qState = React22.useState(null), query = qState[0], setQuery = qState[1];
4005
- const aState = React22.useState(0), active = aState[0], setActive = aState[1];
4006
- const posState = React22.useState(null);
4007
- const inputRef = React22.useRef(null), inputMerged = useMergedRef(ref, inputRef), boxRef = React22.useRef(null), listRef = React22.useRef(null);
4082
+ const openState = React23.useState(false), open = openState[0], setOpen = openState[1];
4083
+ const qState = React23.useState(null), query = qState[0], setQuery = qState[1];
4084
+ const aState = React23.useState(0), active = aState[0], setActive = aState[1];
4085
+ const posState = React23.useState(null);
4086
+ const inputRef = React23.useRef(null), inputMerged = useMergedRef(ref, inputRef), boxRef = React23.useRef(null), listRef = React23.useRef(null);
4008
4087
  const mounted = useMounted();
4009
4088
  const limit = props.limit || 200;
4010
4089
  const filter = props.filter || defaultFilter;
@@ -4034,7 +4113,7 @@ window.Aura = (() => {
4034
4113
  },
4035
4114
  [open, shown.length, values.length]
4036
4115
  );
4037
- React22.useEffect(
4116
+ React23.useEffect(
4038
4117
  function() {
4039
4118
  if (!open) return;
4040
4119
  function outside(e) {
@@ -4057,7 +4136,7 @@ window.Aura = (() => {
4057
4136
  },
4058
4137
  [open]
4059
4138
  );
4060
- React22.useEffect(
4139
+ React23.useEffect(
4061
4140
  function() {
4062
4141
  if (!open || !listRef.current) return;
4063
4142
  const el = listRef.current.querySelector('[data-idx="' + activeIdx + '"]');
@@ -4077,8 +4156,8 @@ window.Aura = (() => {
4077
4156
  setOpen(false);
4078
4157
  setQuery(null);
4079
4158
  }
4080
- const committed = React22.useRef(false);
4081
- const commitRef = React22.useRef(function() {
4159
+ const committed = React23.useRef(false);
4160
+ const commitRef = React23.useRef(function() {
4082
4161
  return false;
4083
4162
  });
4084
4163
  function commitTyped() {
@@ -4166,7 +4245,7 @@ window.Aura = (() => {
4166
4245
  function renderOpt(o, i) {
4167
4246
  const isSel = multi ? isPicked(o.value) : !!selected && o.value === selected.value;
4168
4247
  const blocked = o.disabled || multi && full && !isSel;
4169
- return /* @__PURE__ */ React22.createElement(
4248
+ return /* @__PURE__ */ React23.createElement(
4170
4249
  "li",
4171
4250
  {
4172
4251
  key: o.value,
@@ -4192,9 +4271,9 @@ window.Aura = (() => {
4192
4271
  if (activeIdx !== i) setActive(i);
4193
4272
  }
4194
4273
  },
4195
- o.icon ? /* @__PURE__ */ React22.createElement(Icon, { name: o.icon }) : null,
4196
- /* @__PURE__ */ React22.createElement("span", { className: "aura-combo__text" }, /* @__PURE__ */ React22.createElement("span", { className: "aura-combo__label", id: o.description ? optId(i) + "-label" : void 0 }, o.label), o.description ? /* @__PURE__ */ React22.createElement("span", { className: "aura-combo__desc", id: optId(i) + "-desc", "aria-hidden": true }, o.description) : null),
4197
- isSel ? /* @__PURE__ */ React22.createElement(Icon, { name: /* @__PURE__ */ React22.createElement(IconCheck, null), className: "aura-combo__check" }) : null
4274
+ o.icon ? /* @__PURE__ */ React23.createElement(Icon, { name: o.icon }) : null,
4275
+ /* @__PURE__ */ React23.createElement("span", { className: "aura-combo__text" }, /* @__PURE__ */ React23.createElement("span", { className: "aura-combo__label", id: o.description ? optId(i) + "-label" : void 0 }, o.label), o.description ? /* @__PURE__ */ React23.createElement("span", { className: "aura-combo__desc", id: optId(i) + "-desc", "aria-hidden": true }, o.description) : null),
4276
+ isSel ? /* @__PURE__ */ React23.createElement(Icon, { name: /* @__PURE__ */ React23.createElement(IconCheck, null), className: "aura-combo__check" }) : null
4198
4277
  );
4199
4278
  }
4200
4279
  function grouped(list2) {
@@ -4207,7 +4286,7 @@ window.Aura = (() => {
4207
4286
  return out;
4208
4287
  }
4209
4288
  const list = open && mounted && posState[0] ? (0, import_react_dom5.createPortal)(
4210
- /* @__PURE__ */ React22.createElement(
4289
+ /* @__PURE__ */ React23.createElement(
4211
4290
  "div",
4212
4291
  {
4213
4292
  ref: listRef,
@@ -4218,7 +4297,7 @@ window.Aura = (() => {
4218
4297
  e.preventDefault();
4219
4298
  }
4220
4299
  },
4221
- live.length ? /* @__PURE__ */ React22.createElement(
4300
+ live.length ? /* @__PURE__ */ React23.createElement(
4222
4301
  "ul",
4223
4302
  {
4224
4303
  id: listId,
@@ -4229,33 +4308,34 @@ window.Aura = (() => {
4229
4308
  },
4230
4309
  grouped(live).map(function(seg) {
4231
4310
  if (seg.g == null)
4232
- return /* @__PURE__ */ React22.createElement(React22.Fragment, { key: "u" + seg.items[0][1] }, seg.items.map(function(p) {
4311
+ return /* @__PURE__ */ React23.createElement(React23.Fragment, { key: "u" + seg.items[0][1] }, seg.items.map(function(p) {
4233
4312
  return renderOpt(p[0], p[1]);
4234
4313
  }));
4235
4314
  const gid = id + "-group-" + seg.g + "-" + seg.items[0][1];
4236
- return /* @__PURE__ */ React22.createElement("li", { key: gid, role: "group", "aria-labelledby": gid, className: "aura-combo__group" }, /* @__PURE__ */ React22.createElement("span", { id: gid, role: "presentation", className: "aura-combo__group-label" }, groups[seg.g].label), /* @__PURE__ */ React22.createElement("ul", { role: "none", className: "aura-combo__grouplist" }, seg.items.map(function(p) {
4315
+ return /* @__PURE__ */ React23.createElement("li", { key: gid, role: "group", "aria-labelledby": gid, className: "aura-combo__group" }, /* @__PURE__ */ React23.createElement("span", { id: gid, role: "presentation", className: "aura-combo__group-label" }, groups[seg.g].label), /* @__PURE__ */ React23.createElement("ul", { role: "none", className: "aura-combo__grouplist" }, seg.items.map(function(p) {
4237
4316
  return renderOpt(p[0], p[1]);
4238
4317
  })));
4239
4318
  })
4240
4319
  ) : null,
4241
- props.loading || !live.length || more ? /* @__PURE__ */ React22.createElement("div", { className: "aura-combo__list", role: "status" }, props.loading ? /* @__PURE__ */ React22.createElement("div", { className: "aura-combo__note" }, /* @__PURE__ */ React22.createElement(Icon, { name: /* @__PURE__ */ React22.createElement(IconLoaderCircle, null), className: "aura-spin" }), props.loadingText || t.searching) : !live.length ? /* @__PURE__ */ React22.createElement("div", { className: "aura-combo__note" }, props.emptyText || t.noMatches) : /* @__PURE__ */ React22.createElement("div", { className: "aura-combo__note" }, t.keepTyping(options.length))) : null
4320
+ props.loading || !live.length || more ? /* @__PURE__ */ React23.createElement("div", { className: "aura-combo__list", role: "status" }, props.loading ? /* @__PURE__ */ React23.createElement("div", { className: "aura-combo__note" }, /* @__PURE__ */ React23.createElement(Icon, { name: /* @__PURE__ */ React23.createElement(IconLoaderCircle, null), className: "aura-spin" }), props.loadingText || t.searching) : !live.length ? /* @__PURE__ */ React23.createElement("div", { className: "aura-combo__note" }, props.emptyText || t.noMatches) : /* @__PURE__ */ React23.createElement("div", { className: "aura-combo__note" }, t.keepTyping(options.length))) : null
4242
4321
  ),
4243
4322
  document.body
4244
4323
  ) : null;
4245
- return /* @__PURE__ */ React22.createElement(
4324
+ return /* @__PURE__ */ React23.createElement(
4246
4325
  Field,
4247
4326
  {
4248
4327
  id,
4249
4328
  label: props.label,
4250
4329
  hint: props.hint,
4251
4330
  error: props.error,
4331
+ invalid: props.invalid,
4252
4332
  required: props.required,
4253
4333
  optional: props.optional,
4254
4334
  disabled: props.disabled,
4255
4335
  className: cx(touchClass(props.touchHeight), props.className)
4256
4336
  },
4257
- /* @__PURE__ */ React22.createElement("div", { ref: boxRef, className: cx("aura-input aura-combo has-icon", open && "is-open", multi && "is-multi") }, /* @__PURE__ */ React22.createElement(Icon, { name: props.icon || /* @__PURE__ */ React22.createElement(IconSearch, null), className: "aura-input__icon" }), multi && picked.length ? /* @__PURE__ */ React22.createElement("span", { className: "aura-combo__chips" }, picked.map(function(o) {
4258
- return /* @__PURE__ */ React22.createElement("span", { key: o.value, className: "aura-combo__chip" }, /* @__PURE__ */ React22.createElement("span", { className: "aura-combo__chip-label" }, o.label), props.disabled || props.readOnly ? null : /* @__PURE__ */ React22.createElement(
4337
+ /* @__PURE__ */ React23.createElement("div", { ref: boxRef, className: cx("aura-input aura-combo has-icon", open && "is-open", multi && "is-multi") }, /* @__PURE__ */ React23.createElement(Icon, { name: props.icon || /* @__PURE__ */ React23.createElement(IconSearch, null), className: "aura-input__icon" }), multi && picked.length ? /* @__PURE__ */ React23.createElement("span", { className: "aura-combo__chips" }, picked.map(function(o) {
4338
+ return /* @__PURE__ */ React23.createElement("span", { key: o.value, className: "aura-combo__chip" }, /* @__PURE__ */ React23.createElement("span", { className: "aura-combo__chip-label" }, o.label), props.disabled || props.readOnly ? null : /* @__PURE__ */ React23.createElement(
4259
4339
  "button",
4260
4340
  {
4261
4341
  type: "button",
@@ -4274,13 +4354,13 @@ window.Aura = (() => {
4274
4354
  if (inputRef.current) inputRef.current.focus();
4275
4355
  }
4276
4356
  },
4277
- /* @__PURE__ */ React22.createElement(Icon, { name: /* @__PURE__ */ React22.createElement(IconX, null) })
4357
+ /* @__PURE__ */ React23.createElement(Icon, { name: /* @__PURE__ */ React23.createElement(IconX, null) })
4278
4358
  ));
4279
- })) : null, multi ? /* @__PURE__ */ React22.createElement("span", { id: summaryId, className: "aura-sr-only" }, picked.length ? t.selectedCount(picked.length) + ": " + picked.map(function(o) {
4359
+ })) : null, multi ? /* @__PURE__ */ React23.createElement("span", { id: summaryId, className: "aura-sr-only" }, picked.length ? t.selectedCount(picked.length) + ": " + picked.map(function(o) {
4280
4360
  return o.label;
4281
4361
  }).join(", ") : "") : null, props.name ? multi ? values.map(function(v) {
4282
- return /* @__PURE__ */ React22.createElement("input", { key: v, type: "hidden", name: props.name, value: v });
4283
- }) : /* @__PURE__ */ React22.createElement("input", { type: "hidden", name: props.name, value: value == null ? "" : value }) : null, /* @__PURE__ */ React22.createElement(
4362
+ return /* @__PURE__ */ React23.createElement("input", { key: v, type: "hidden", name: props.name, value: v });
4363
+ }) : /* @__PURE__ */ React23.createElement("input", { type: "hidden", name: props.name, value: value == null ? "" : value }) : null, /* @__PURE__ */ React23.createElement(
4284
4364
  "input",
4285
4365
  {
4286
4366
  ref: inputMerged,
@@ -4293,8 +4373,18 @@ window.Aura = (() => {
4293
4373
  "aria-controls": open && live.length ? listId : void 0,
4294
4374
  "aria-autocomplete": "list",
4295
4375
  "aria-activedescendant": open && live[activeIdx] ? optId(activeIdx) : void 0,
4296
- "aria-invalid": props.error ? true : void 0,
4297
- "aria-describedby": [props.error ? id + "-error" : props.hint ? id + "-hint" : "", multi && picked.length ? summaryId : ""].filter(Boolean).join(" ") || void 0,
4376
+ "aria-invalid": props.error || props.invalid ? true : void 0,
4377
+ "aria-describedby": (
4378
+ /* each id once, in order: error or hint, the chip summary, then yours */
4379
+ Array.from(
4380
+ new Set(
4381
+ [
4382
+ props.error ? id + "-error" : props.hint ? id + "-hint" : "",
4383
+ multi && picked.length ? summaryId : ""
4384
+ ].concat(String(props["aria-describedby"] || "").split(/\s+/)).filter(Boolean)
4385
+ )
4386
+ ).join(" ") || void 0
4387
+ ),
4298
4388
  placeholder: multi && values.length ? void 0 : props.placeholder,
4299
4389
  disabled: props.disabled,
4300
4390
  readOnly: props.readOnly,
@@ -4319,7 +4409,7 @@ window.Aura = (() => {
4319
4409
  }, 0);
4320
4410
  }
4321
4411
  }
4322
- ), props.clearable !== false && values.length && !props.disabled && !props.readOnly ? /* @__PURE__ */ React22.createElement(
4412
+ ), props.clearable !== false && values.length && !props.disabled && !props.readOnly ? /* @__PURE__ */ React23.createElement(
4323
4413
  "button",
4324
4414
  {
4325
4415
  type: "button",
@@ -4332,8 +4422,8 @@ window.Aura = (() => {
4332
4422
  if (inputRef.current) inputRef.current.focus();
4333
4423
  }
4334
4424
  },
4335
- /* @__PURE__ */ React22.createElement(Icon, { name: /* @__PURE__ */ React22.createElement(IconX, null) })
4336
- ) : null, /* @__PURE__ */ React22.createElement(
4425
+ /* @__PURE__ */ React23.createElement(Icon, { name: /* @__PURE__ */ React23.createElement(IconX, null) })
4426
+ ) : null, /* @__PURE__ */ React23.createElement(
4337
4427
  "button",
4338
4428
  {
4339
4429
  type: "button",
@@ -4351,7 +4441,7 @@ window.Aura = (() => {
4351
4441
  }
4352
4442
  }
4353
4443
  },
4354
- /* @__PURE__ */ React22.createElement(Icon, { name: /* @__PURE__ */ React22.createElement(IconChevronDown, null) })
4444
+ /* @__PURE__ */ React23.createElement(Icon, { name: /* @__PURE__ */ React23.createElement(IconChevronDown, null) })
4355
4445
  )),
4356
4446
  list
4357
4447
  );
@@ -4359,20 +4449,20 @@ window.Aura = (() => {
4359
4449
  );
4360
4450
 
4361
4451
  // src/Alert.tsx
4362
- var React23 = __toESM(require_react(), 1);
4363
- var Alert = React23.forwardRef(function Alert2(props, ref) {
4452
+ var React24 = __toESM(require_react(), 1);
4453
+ var Alert = React24.forwardRef(function Alert2(props, ref) {
4364
4454
  const t = useStrings();
4365
4455
  const autoId = uid();
4366
4456
  return alertElement(
4367
4457
  props,
4368
4458
  ref,
4369
- props.onDismiss ? /* @__PURE__ */ React23.createElement(IconButton, { icon: /* @__PURE__ */ React23.createElement(IconX, null), label: t.dismiss, className: "aura-alert__close", onClick: props.onDismiss }) : null,
4459
+ props.onDismiss ? /* @__PURE__ */ React24.createElement(IconButton, { icon: /* @__PURE__ */ React24.createElement(IconX, null), label: t.dismiss, className: "aura-alert__close", onClick: props.onDismiss }) : null,
4370
4460
  autoId
4371
4461
  );
4372
4462
  });
4373
4463
 
4374
4464
  // src/Toaster.tsx
4375
- var React24 = __toESM(require_react(), 1);
4465
+ var React25 = __toESM(require_react(), 1);
4376
4466
  var import_react_dom6 = __toESM(require_react_dom(), 1);
4377
4467
  var MAX_VISIBLE = 3;
4378
4468
  var toastState = {
@@ -4448,8 +4538,8 @@ window.Aura = (() => {
4448
4538
  function ToastItem(props) {
4449
4539
  const str = useStrings();
4450
4540
  const Link = useLinkComponent();
4451
- const node = React24.useRef(null);
4452
- const origin = React24.useRef(null);
4541
+ const node = React25.useRef(null);
4542
+ const origin = React25.useRef(null);
4453
4543
  useIsoLayoutEffect(function() {
4454
4544
  origin.current = outsideToaster(document.activeElement);
4455
4545
  const el = node.current;
@@ -4465,8 +4555,8 @@ window.Aura = (() => {
4465
4555
  }, 0);
4466
4556
  };
4467
4557
  }, []);
4468
- const t = props.toast, timer2 = React24.useRef(null), left = React24.useRef(t.duration || 5e3), since = React24.useRef(0);
4469
- const hover = React24.useRef(false), focused = React24.useRef(false);
4558
+ const t = props.toast, timer2 = React25.useRef(null), left = React25.useRef(t.duration || 5e3), since = React25.useRef(0);
4559
+ const hover = React25.useRef(false), focused = React25.useRef(false);
4470
4560
  function syncFocus() {
4471
4561
  if (focused.current && !(node.current && node.current.contains(document.activeElement))) focused.current = false;
4472
4562
  }
@@ -4488,7 +4578,7 @@ window.Aura = (() => {
4488
4578
  left.current -= Date.now() - since.current;
4489
4579
  }
4490
4580
  }
4491
- React24.useEffect(
4581
+ React25.useEffect(
4492
4582
  function() {
4493
4583
  if (timer2.current) clearTimeout(timer2.current);
4494
4584
  timer2.current = null;
@@ -4507,7 +4597,7 @@ window.Aura = (() => {
4507
4597
  if (a.onClick) a.onClick();
4508
4598
  if (a.dismiss !== false) toast.dismiss(t.id);
4509
4599
  }
4510
- return /* @__PURE__ */ React24.createElement(
4600
+ return /* @__PURE__ */ React25.createElement(
4511
4601
  "div",
4512
4602
  {
4513
4603
  ref: node,
@@ -4544,16 +4634,16 @@ window.Aura = (() => {
4544
4634
  resume();
4545
4635
  }
4546
4636
  },
4547
- /* @__PURE__ */ React24.createElement(
4637
+ /* @__PURE__ */ React25.createElement(
4548
4638
  Icon,
4549
4639
  {
4550
- name: t.loading ? /* @__PURE__ */ React24.createElement(IconLoaderCircle, null) : React24.createElement(ALERT_ICON[t.tone] || IconInfo),
4640
+ name: t.loading ? /* @__PURE__ */ React25.createElement(IconLoaderCircle, null) : React25.createElement(ALERT_ICON[t.tone] || IconInfo),
4551
4641
  className: cx("aura-toast__icon", t.loading && "aura-spin")
4552
4642
  }
4553
4643
  ),
4554
- /* @__PURE__ */ React24.createElement("div", { className: "aura-toast__body" }, /* @__PURE__ */ React24.createElement("p", { className: "aura-toast__title" }, t.title), rich ? /* @__PURE__ */ React24.createElement("div", { className: "aura-toast__text" }, t.description) : null),
4555
- actions.length ? /* @__PURE__ */ React24.createElement("div", { className: "aura-toast__actions" }, actions.map(function(a, i) {
4556
- return a.href ? /* @__PURE__ */ React24.createElement(
4644
+ /* @__PURE__ */ React25.createElement("div", { className: "aura-toast__body" }, /* @__PURE__ */ React25.createElement("p", { className: "aura-toast__title" }, t.title), rich ? /* @__PURE__ */ React25.createElement("div", { className: "aura-toast__text" }, t.description) : null),
4645
+ actions.length ? /* @__PURE__ */ React25.createElement("div", { className: "aura-toast__actions" }, actions.map(function(a, i) {
4646
+ return a.href ? /* @__PURE__ */ React25.createElement(
4557
4647
  Link,
4558
4648
  {
4559
4649
  key: i,
@@ -4565,7 +4655,7 @@ window.Aura = (() => {
4565
4655
  }
4566
4656
  },
4567
4657
  a.label
4568
- ) : /* @__PURE__ */ React24.createElement(
4658
+ ) : /* @__PURE__ */ React25.createElement(
4569
4659
  "button",
4570
4660
  {
4571
4661
  key: i,
@@ -4578,10 +4668,10 @@ window.Aura = (() => {
4578
4668
  a.label
4579
4669
  );
4580
4670
  })) : null,
4581
- /* @__PURE__ */ React24.createElement(
4671
+ /* @__PURE__ */ React25.createElement(
4582
4672
  IconButton,
4583
4673
  {
4584
- icon: /* @__PURE__ */ React24.createElement(IconX, null),
4674
+ icon: /* @__PURE__ */ React25.createElement(IconX, null),
4585
4675
  label: str.dismissToast,
4586
4676
  className: "aura-toast__close",
4587
4677
  onClick: function() {
@@ -4609,8 +4699,8 @@ window.Aura = (() => {
4609
4699
  function Toaster(props = {}) {
4610
4700
  const t = useStrings();
4611
4701
  const mounted = useMounted();
4612
- const s = React24.useState(toastState.list);
4613
- React24.useEffect(function() {
4702
+ const s = React25.useState(toastState.list);
4703
+ React25.useEffect(function() {
4614
4704
  toastState.subs.push(s[1]);
4615
4705
  s[1](toastState.list.slice());
4616
4706
  return function() {
@@ -4619,9 +4709,9 @@ window.Aura = (() => {
4619
4709
  });
4620
4710
  };
4621
4711
  }, []);
4622
- const region = React24.useRef(null);
4712
+ const region = React25.useRef(null);
4623
4713
  const hotkey = props.hotkey === void 0 ? "Alt+T" : props.hotkey;
4624
- React24.useEffect(
4714
+ React25.useEffect(
4625
4715
  function() {
4626
4716
  if (!hotkey) return;
4627
4717
  const match = hotkeyMatcher(hotkey);
@@ -4652,7 +4742,7 @@ window.Aura = (() => {
4652
4742
  const pos = props.position || "bottom";
4653
4743
  const offset = props.offset;
4654
4744
  return (0, import_react_dom6.createPortal)(
4655
- /* @__PURE__ */ React24.createElement(
4745
+ /* @__PURE__ */ React25.createElement(
4656
4746
  "div",
4657
4747
  {
4658
4748
  ref: region,
@@ -4664,7 +4754,7 @@ window.Aura = (() => {
4664
4754
  "aria-keyshortcuts": hotkey || void 0
4665
4755
  },
4666
4756
  s[0].map(function(t2) {
4667
- return /* @__PURE__ */ React24.createElement(ToastItem, { key: t2.id, toast: t2 });
4757
+ return /* @__PURE__ */ React25.createElement(ToastItem, { key: t2.id, toast: t2 });
4668
4758
  })
4669
4759
  ),
4670
4760
  document.body
@@ -4672,12 +4762,12 @@ window.Aura = (() => {
4672
4762
  }
4673
4763
 
4674
4764
  // src/PasswordField.tsx
4675
- var React25 = __toESM(require_react(), 1);
4676
- var PasswordField = React25.forwardRef(function PasswordField2(props, ref) {
4765
+ var React26 = __toESM(require_react(), 1);
4766
+ var PasswordField = React26.forwardRef(function PasswordField2(props, ref) {
4677
4767
  const t = useStrings();
4678
- const shown = React25.useState(false);
4768
+ const shown = React26.useState(false);
4679
4769
  const rest = omit(props, ["toggle", "className"]);
4680
- return /* @__PURE__ */ React25.createElement(
4770
+ return /* @__PURE__ */ React26.createElement(
4681
4771
  TextField,
4682
4772
  {
4683
4773
  autoComplete: "current-password",
@@ -4687,10 +4777,10 @@ window.Aura = (() => {
4687
4777
  spellCheck: false,
4688
4778
  autoCapitalize: "none",
4689
4779
  className: cx("aura-password", props.className),
4690
- suffix: props.toggle === false ? void 0 : /* @__PURE__ */ React25.createElement(
4780
+ suffix: props.toggle === false ? void 0 : /* @__PURE__ */ React26.createElement(
4691
4781
  IconButton,
4692
4782
  {
4693
- icon: shown[0] ? /* @__PURE__ */ React25.createElement(IconEyeOff, null) : /* @__PURE__ */ React25.createElement(IconEye, null),
4783
+ icon: shown[0] ? /* @__PURE__ */ React26.createElement(IconEyeOff, null) : /* @__PURE__ */ React26.createElement(IconEye, null),
4694
4784
  label: t.showPassword,
4695
4785
  "aria-pressed": shown[0],
4696
4786
  disabled: props.disabled,
@@ -4704,7 +4794,7 @@ window.Aura = (() => {
4704
4794
  });
4705
4795
 
4706
4796
  // src/FormErrorSummary.tsx
4707
- var React26 = __toESM(require_react(), 1);
4797
+ var React27 = __toESM(require_react(), 1);
4708
4798
  function items(errors) {
4709
4799
  if (Array.isArray(errors)) return errors;
4710
4800
  const out = [];
@@ -4733,16 +4823,16 @@ window.Aura = (() => {
4733
4823
  }
4734
4824
  return named;
4735
4825
  }
4736
- var FormErrorSummary = React26.forwardRef(
4826
+ var FormErrorSummary = React27.forwardRef(
4737
4827
  function FormErrorSummary2(props, ref) {
4738
4828
  const t = useStrings();
4739
4829
  const auto = uid(), id = props.id || auto;
4740
4830
  const list = items(props.errors);
4741
- const box = React26.useRef(null);
4831
+ const box = React27.useRef(null);
4742
4832
  const keyed = props.focusKey !== void 0;
4743
- const lastKey = React26.useRef(null), armed = React26.useRef(false), hadErrors = React26.useRef(false);
4833
+ const lastKey = React27.useRef(null), armed = React27.useRef(false), hadErrors = React27.useRef(false);
4744
4834
  const has = list.length > 0;
4745
- React26.useEffect(
4835
+ React27.useEffect(
4746
4836
  function() {
4747
4837
  const appeared = has && !hadErrors.current;
4748
4838
  hadErrors.current = has;
@@ -4766,7 +4856,7 @@ window.Aura = (() => {
4766
4856
  // eslint-disable-next-line react-hooks/exhaustive-deps
4767
4857
  [has, props.focusKey, keyed]
4768
4858
  );
4769
- React26.useEffect(
4859
+ React27.useEffect(
4770
4860
  function() {
4771
4861
  if (!keyed) return;
4772
4862
  function disarm() {
@@ -4785,7 +4875,7 @@ window.Aura = (() => {
4785
4875
  [keyed]
4786
4876
  );
4787
4877
  if (!list.length) return null;
4788
- return /* @__PURE__ */ React26.createElement(
4878
+ return /* @__PURE__ */ React27.createElement(
4789
4879
  "div",
4790
4880
  {
4791
4881
  ref: function(el) {
@@ -4799,9 +4889,9 @@ window.Aura = (() => {
4799
4889
  "aria-labelledby": id + "-title",
4800
4890
  className: cx("aura-alert aura-alert--danger aura-error-summary", props.className)
4801
4891
  },
4802
- /* @__PURE__ */ React26.createElement(Icon, { name: /* @__PURE__ */ React26.createElement(IconCircleAlert, null), className: "aura-alert__icon" }),
4803
- /* @__PURE__ */ React26.createElement("div", { className: "aura-alert__body" }, /* @__PURE__ */ React26.createElement("h2", { className: "aura-alert__title", id: id + "-title" }, props.title || t.errorSummary(list.length)), /* @__PURE__ */ React26.createElement("ul", { className: "aura-error-summary__list" }, list.map(function(e) {
4804
- return /* @__PURE__ */ React26.createElement("li", { key: e.field }, /* @__PURE__ */ React26.createElement(
4892
+ /* @__PURE__ */ React27.createElement(Icon, { name: /* @__PURE__ */ React27.createElement(IconCircleAlert, null), className: "aura-alert__icon" }),
4893
+ /* @__PURE__ */ React27.createElement("div", { className: "aura-alert__body" }, /* @__PURE__ */ React27.createElement("h2", { className: "aura-alert__title", id: id + "-title" }, props.title || t.errorSummary(list.length)), /* @__PURE__ */ React27.createElement("ul", { className: "aura-error-summary__list" }, list.map(function(e) {
4894
+ return /* @__PURE__ */ React27.createElement("li", { key: e.field }, /* @__PURE__ */ React27.createElement(
4805
4895
  "a",
4806
4896
  {
4807
4897
  href: "#" + e.field,
@@ -4826,14 +4916,14 @@ window.Aura = (() => {
4826
4916
  );
4827
4917
 
4828
4918
  // src/FilterBar.tsx
4829
- var React31 = __toESM(require_react(), 1);
4919
+ var React32 = __toESM(require_react(), 1);
4830
4920
 
4831
4921
  // src/Dialog.tsx
4832
- var React28 = __toESM(require_react(), 1);
4922
+ var React29 = __toESM(require_react(), 1);
4833
4923
  var import_react_dom7 = __toESM(require_react_dom(), 1);
4834
4924
 
4835
4925
  // src/useModal.tsx
4836
- var React27 = __toESM(require_react(), 1);
4926
+ var React28 = __toESM(require_react(), 1);
4837
4927
  var locks = 0;
4838
4928
  var savedOverflow = "";
4839
4929
  function lockScroll() {
@@ -4860,11 +4950,11 @@ window.Aura = (() => {
4860
4950
  }
4861
4951
  function useModal(open, ref, opts) {
4862
4952
  const mounted = useMounted();
4863
- const prev = React27.useRef(null);
4953
+ const prev = React28.useRef(null);
4864
4954
  const o = opts || {};
4865
- const latest = React27.useRef(o);
4955
+ const latest = React28.useRef(o);
4866
4956
  latest.current = o;
4867
- React27.useEffect(
4957
+ React28.useEffect(
4868
4958
  function() {
4869
4959
  if (!open || !mounted) return;
4870
4960
  prev.current = document.activeElement;
@@ -4919,15 +5009,15 @@ window.Aura = (() => {
4919
5009
  }
4920
5010
 
4921
5011
  // src/Dialog.tsx
4922
- var DialogClose = React28.createContext(null);
5012
+ var DialogClose = React29.createContext(null);
4923
5013
  function useDialogClose() {
4924
- return React28.useContext(DialogClose) || function() {
5014
+ return React29.useContext(DialogClose) || function() {
4925
5015
  };
4926
5016
  }
4927
- var Dialog = React28.forwardRef(function Dialog2(props, ref) {
5017
+ var Dialog = React29.forwardRef(function Dialog2(props, ref) {
4928
5018
  const t = useStrings();
4929
5019
  const density = useDensity();
4930
- const own = React28.useRef(null), merged = useMergedRef(ref, own), titleId = uid(), descId = uid();
5020
+ const own = React29.useRef(null), merged = useMergedRef(ref, own), titleId = uid(), descId = uid();
4931
5021
  const openState = useMaybeControlled(props.open, false, null), open = openState[0];
4932
5022
  if (props.open === void 0 && !props.trigger)
4933
5023
  devWarnOnce("dialog-no-open", "Dialog has neither `open` nor `trigger`, so it can never open. Pass one of them.");
@@ -4955,7 +5045,7 @@ window.Aura = (() => {
4955
5045
  onCloseComplete: props.onCloseComplete
4956
5046
  });
4957
5047
  const trig = props.trigger;
4958
- const trigger = trig && React28.isValidElement(trig) ? React28.cloneElement(trig, {
5048
+ const trigger = trig && React29.isValidElement(trig) ? React29.cloneElement(trig, {
4959
5049
  "aria-haspopup": "dialog",
4960
5050
  "aria-expanded": open,
4961
5051
  "data-aura-trigger": trigId,
@@ -4990,7 +5080,7 @@ window.Aura = (() => {
4990
5080
  "aria-modal"
4991
5081
  ]);
4992
5082
  const panel = (0, import_react_dom7.createPortal)(
4993
- /* @__PURE__ */ React28.createElement("div", { className: "aura-dialog-layer", "data-density": density, onKeyDown: modal.onKeyDown }, /* @__PURE__ */ React28.createElement(
5083
+ /* @__PURE__ */ React29.createElement("div", { className: "aura-dialog-layer", "data-density": density, onKeyDown: modal.onKeyDown }, /* @__PURE__ */ React29.createElement(
4994
5084
  "div",
4995
5085
  {
4996
5086
  className: "aura-scrim",
@@ -5000,7 +5090,7 @@ window.Aura = (() => {
5000
5090
  },
5001
5091
  "aria-hidden": true
5002
5092
  }
5003
- ), /* @__PURE__ */ React28.createElement(
5093
+ ), /* @__PURE__ */ React29.createElement(
5004
5094
  "div",
5005
5095
  {
5006
5096
  ...rest,
@@ -5012,18 +5102,18 @@ window.Aura = (() => {
5012
5102
  tabIndex: -1,
5013
5103
  className: cx("aura-dialog", "aura-dialog--" + (props.size || "md"), props.className)
5014
5104
  },
5015
- /* @__PURE__ */ React28.createElement("div", { className: "aura-dialog__head" }, /* @__PURE__ */ React28.createElement("h2", { className: "aura-dialog__title", id: titleId }, props.title), props.dismissible !== false ? /* @__PURE__ */ React28.createElement(IconButton, { icon: /* @__PURE__ */ React28.createElement(IconX, null), label: t.close, className: "aura-dialog__close", onClick: close }) : null),
5016
- props.description ? /* @__PURE__ */ React28.createElement("p", { className: "aura-dialog__desc", id: descId }, props.description) : null,
5017
- /* @__PURE__ */ React28.createElement(DialogClose.Provider, { value: closeNow }, props.children ? /* @__PURE__ */ React28.createElement("div", { className: "aura-dialog__body" }, props.children) : null, props.footer ? /* @__PURE__ */ React28.createElement("div", { className: "aura-dialog__foot" }, props.footer) : null)
5105
+ /* @__PURE__ */ React29.createElement("div", { className: "aura-dialog__head" }, /* @__PURE__ */ React29.createElement("h2", { className: "aura-dialog__title", id: titleId }, props.title), props.dismissible !== false ? /* @__PURE__ */ React29.createElement(IconButton, { icon: /* @__PURE__ */ React29.createElement(IconX, null), label: t.close, className: "aura-dialog__close", onClick: close }) : null),
5106
+ props.description ? /* @__PURE__ */ React29.createElement("p", { className: "aura-dialog__desc", id: descId }, props.description) : null,
5107
+ /* @__PURE__ */ React29.createElement(DialogClose.Provider, { value: closeNow }, props.children ? /* @__PURE__ */ React29.createElement("div", { className: "aura-dialog__body" }, props.children) : null, props.footer ? /* @__PURE__ */ React29.createElement("div", { className: "aura-dialog__foot" }, props.footer) : null)
5018
5108
  )),
5019
5109
  document.body
5020
5110
  );
5021
- return trigger ? /* @__PURE__ */ React28.createElement(React28.Fragment, null, trigger, panel) : panel;
5111
+ return trigger ? /* @__PURE__ */ React29.createElement(React29.Fragment, null, trigger, panel) : panel;
5022
5112
  });
5023
- var Drawer = React28.forwardRef(function Drawer2(props, ref) {
5113
+ var Drawer = React29.forwardRef(function Drawer2(props, ref) {
5024
5114
  const t = useStrings();
5025
5115
  const density = useDensity();
5026
- const own = React28.useRef(null), merged = useMergedRef(ref, own), titleId = uid(), descId = uid();
5116
+ const own = React29.useRef(null), merged = useMergedRef(ref, own), titleId = uid(), descId = uid();
5027
5117
  function close() {
5028
5118
  if (props.dismissible !== false && props.onClose) props.onClose();
5029
5119
  }
@@ -5060,7 +5150,7 @@ window.Aura = (() => {
5060
5150
  ]);
5061
5151
  const drawerScrimCloses = props.dismissible !== false && props.dismissOnScrim !== false;
5062
5152
  return (0, import_react_dom7.createPortal)(
5063
- /* @__PURE__ */ React28.createElement("div", { className: "aura-dialog-layer aura-drawer-layer", "data-density": density, onKeyDown: modal.onKeyDown }, /* @__PURE__ */ React28.createElement(
5153
+ /* @__PURE__ */ React29.createElement("div", { className: "aura-dialog-layer aura-drawer-layer", "data-density": density, onKeyDown: modal.onKeyDown }, /* @__PURE__ */ React29.createElement(
5064
5154
  "div",
5065
5155
  {
5066
5156
  className: "aura-scrim",
@@ -5070,7 +5160,7 @@ window.Aura = (() => {
5070
5160
  } : void 0,
5071
5161
  "aria-hidden": true
5072
5162
  }
5073
- ), /* @__PURE__ */ React28.createElement(
5163
+ ), /* @__PURE__ */ React29.createElement(
5074
5164
  "div",
5075
5165
  {
5076
5166
  ...rest,
@@ -5083,11 +5173,11 @@ window.Aura = (() => {
5083
5173
  tabIndex: -1,
5084
5174
  className: cx("aura-drawer", "aura-drawer--" + side, "aura-drawer--" + (props.size || "md"), props.className)
5085
5175
  },
5086
- props.title || props.dismissible !== false ? /* @__PURE__ */ React28.createElement("div", { className: "aura-drawer__head" }, props.title ? /* @__PURE__ */ React28.createElement("h2", { className: "aura-drawer__title", id: titleId }, props.title) : /* @__PURE__ */ React28.createElement("span", { style: { flex: 1 } }), props.dismissible !== false ? /* @__PURE__ */ React28.createElement(
5176
+ props.title || props.dismissible !== false ? /* @__PURE__ */ React29.createElement("div", { className: "aura-drawer__head" }, props.title ? /* @__PURE__ */ React29.createElement("h2", { className: "aura-drawer__title", id: titleId }, props.title) : /* @__PURE__ */ React29.createElement("span", { style: { flex: 1 } }), props.dismissible !== false ? /* @__PURE__ */ React29.createElement(
5087
5177
  IconButton,
5088
5178
  {
5089
5179
  ...props.closeProps,
5090
- icon: /* @__PURE__ */ React28.createElement(IconX, null),
5180
+ icon: /* @__PURE__ */ React29.createElement(IconX, null),
5091
5181
  label: props.closeLabel || t.close,
5092
5182
  onClick: function(e) {
5093
5183
  const own2 = props.closeProps && props.closeProps.onClick;
@@ -5096,24 +5186,24 @@ window.Aura = (() => {
5096
5186
  }
5097
5187
  }
5098
5188
  ) : null) : null,
5099
- props.description ? /* @__PURE__ */ React28.createElement("p", { className: "aura-drawer__desc", id: descId }, props.description) : null,
5100
- /* @__PURE__ */ React28.createElement("div", { className: "aura-drawer__body" }, props.children),
5101
- props.footer ? /* @__PURE__ */ React28.createElement("div", { className: "aura-drawer__foot" }, props.footer) : null
5189
+ props.description ? /* @__PURE__ */ React29.createElement("p", { className: "aura-drawer__desc", id: descId }, props.description) : null,
5190
+ /* @__PURE__ */ React29.createElement("div", { className: "aura-drawer__body" }, props.children),
5191
+ props.footer ? /* @__PURE__ */ React29.createElement("div", { className: "aura-drawer__foot" }, props.footer) : null
5102
5192
  )),
5103
5193
  document.body
5104
5194
  );
5105
5195
  });
5106
5196
 
5107
5197
  // src/Tag.tsx
5108
- var React30 = __toESM(require_react(), 1);
5198
+ var React31 = __toESM(require_react(), 1);
5109
5199
 
5110
5200
  // src/Tooltip.tsx
5111
- var React29 = __toESM(require_react(), 1);
5201
+ var React30 = __toESM(require_react(), 1);
5112
5202
  var import_react_dom8 = __toESM(require_react_dom(), 1);
5113
- var Tooltip = React29.forwardRef(function Tooltip2(props, ref) {
5114
- const id = uid(), st = React29.useState(false), open = props.open !== void 0 ? props.open : st[0], set = st[1];
5115
- const anchor = React29.useRef(null), anchorMerged = useMergedRef(ref, anchor), tip2 = React29.useRef(null), timer2 = React29.useRef(void 0);
5116
- const pos = React29.useState(null), mounted = useMounted();
5203
+ var Tooltip = React30.forwardRef(function Tooltip2(props, ref) {
5204
+ const id = uid(), st = React30.useState(false), open = props.open !== void 0 ? props.open : st[0], set = st[1];
5205
+ const anchor = React30.useRef(null), anchorMerged = useMergedRef(ref, anchor), tip2 = React30.useRef(null), timer2 = React30.useRef(void 0);
5206
+ const pos = React30.useState(null), mounted = useMounted();
5117
5207
  function show3(now) {
5118
5208
  clearTimeout(timer2.current);
5119
5209
  timer2.current = setTimeout(
@@ -5133,7 +5223,7 @@ window.Aura = (() => {
5133
5223
  set(false);
5134
5224
  }, 120);
5135
5225
  }
5136
- React29.useEffect(function() {
5226
+ React30.useEffect(function() {
5137
5227
  return function() {
5138
5228
  clearTimeout(timer2.current);
5139
5229
  };
@@ -5177,7 +5267,7 @@ window.Aura = (() => {
5177
5267
  },
5178
5268
  [open, mounted]
5179
5269
  );
5180
- React29.useEffect(
5270
+ React30.useEffect(
5181
5271
  function() {
5182
5272
  if (!open) return;
5183
5273
  function esc(e) {
@@ -5190,8 +5280,8 @@ window.Aura = (() => {
5190
5280
  },
5191
5281
  [open]
5192
5282
  );
5193
- const child = React29.Children.only(props.children);
5194
- const trigger = /* @__PURE__ */ React29.createElement(
5283
+ const child = React30.Children.only(props.children);
5284
+ const trigger = /* @__PURE__ */ React30.createElement(
5195
5285
  "span",
5196
5286
  {
5197
5287
  ref: anchorMerged,
@@ -5205,10 +5295,10 @@ window.Aura = (() => {
5205
5295
  },
5206
5296
  onBlur: hide2
5207
5297
  },
5208
- React29.cloneElement(child, { "aria-describedby": open ? id : child.props["aria-describedby"] })
5298
+ React30.cloneElement(child, { "aria-describedby": open ? id : child.props["aria-describedby"] })
5209
5299
  );
5210
- return /* @__PURE__ */ React29.createElement(React29.Fragment, null, trigger, open && mounted ? (0, import_react_dom8.createPortal)(
5211
- /* @__PURE__ */ React29.createElement(
5300
+ return /* @__PURE__ */ React30.createElement(React30.Fragment, null, trigger, open && mounted ? (0, import_react_dom8.createPortal)(
5301
+ /* @__PURE__ */ React30.createElement(
5212
5302
  "div",
5213
5303
  {
5214
5304
  ref: tip2,
@@ -5235,13 +5325,13 @@ window.Aura = (() => {
5235
5325
  return node.map(function(n3) {
5236
5326
  return textOf2(n3, all);
5237
5327
  }).join("");
5238
- if (React30.isValidElement(node)) {
5328
+ if (React31.isValidElement(node)) {
5239
5329
  const p = node.props;
5240
5330
  return !all && (p["aria-hidden"] === true || p["aria-hidden"] === "true") ? "" : textOf2(p.children, all);
5241
5331
  }
5242
5332
  return "";
5243
5333
  }
5244
- var Tag = React30.forwardRef(function Tag2(props, ref) {
5334
+ var Tag = React31.forwardRef(function Tag2(props, ref) {
5245
5335
  const t = useStrings();
5246
5336
  const selectable = props.onClick != null || props.selected != null;
5247
5337
  const rest = omit(props, [
@@ -5254,10 +5344,10 @@ window.Aura = (() => {
5254
5344
  "removeLabel",
5255
5345
  "touchHeight"
5256
5346
  ]);
5257
- const textRef = React30.useRef(null);
5347
+ const textRef = React31.useRef(null);
5258
5348
  useAutoTip();
5259
- const cutState = React30.useState(false), isCut = cutState[0];
5260
- const check = React30.useCallback(function() {
5349
+ const cutState = React31.useState(false), isCut = cutState[0];
5350
+ const check = React31.useCallback(function() {
5261
5351
  const el = textRef.current;
5262
5352
  if (el) cutState[1](el.scrollWidth > el.clientWidth + 1);
5263
5353
  }, []);
@@ -5276,11 +5366,11 @@ window.Aura = (() => {
5276
5366
  );
5277
5367
  const fullText = isCut ? textOf2(props.children, true).replace(/\s+/g, " ").trim() : "";
5278
5368
  const inner = [
5279
- props.icon ? /* @__PURE__ */ React30.createElement(Icon, { key: "i", name: props.icon, size: 14 }) : null,
5280
- /* @__PURE__ */ React30.createElement("span", { key: "t", ref: textRef, className: "aura-tag__text", "data-aura-tip": fullText || void 0 }, props.children)
5369
+ props.icon ? /* @__PURE__ */ React31.createElement(Icon, { key: "i", name: props.icon, size: 14 }) : null,
5370
+ /* @__PURE__ */ React31.createElement("span", { key: "t", ref: textRef, className: "aura-tag__text", "data-aura-tip": fullText || void 0 }, props.children)
5281
5371
  ];
5282
5372
  if (selectable) {
5283
- return /* @__PURE__ */ React30.createElement(
5373
+ return /* @__PURE__ */ React31.createElement(
5284
5374
  "button",
5285
5375
  {
5286
5376
  ...rest,
@@ -5295,7 +5385,7 @@ window.Aura = (() => {
5295
5385
  props.className
5296
5386
  )
5297
5387
  },
5298
- props.selected ? /* @__PURE__ */ React30.createElement(Icon, { name: /* @__PURE__ */ React30.createElement(IconCheck, null), size: 14 }) : inner[0],
5388
+ props.selected ? /* @__PURE__ */ React31.createElement(Icon, { name: /* @__PURE__ */ React31.createElement(IconCheck, null), size: 14 }) : inner[0],
5299
5389
  inner[1]
5300
5390
  );
5301
5391
  }
@@ -5305,8 +5395,8 @@ window.Aura = (() => {
5305
5395
  "tag-remove-label",
5306
5396
  'Tag: the remove button has no name \u2014 its children have no text. Pass removeLabel (e.g. "Remove Acme AB").'
5307
5397
  );
5308
- return /* @__PURE__ */ React30.createElement("span", { ...rest, ref, className: cx("aura-tag", props.disabled && "is-disabled", props.className) }, inner, props.onRemove && !props.disabled ? function() {
5309
- const btn = /* @__PURE__ */ React30.createElement(
5398
+ return /* @__PURE__ */ React31.createElement("span", { ...rest, ref, className: cx("aura-tag", props.disabled && "is-disabled", props.className) }, inner, props.onRemove && !props.disabled ? function() {
5399
+ const btn = /* @__PURE__ */ React31.createElement(
5310
5400
  "button",
5311
5401
  {
5312
5402
  type: "button",
@@ -5314,9 +5404,9 @@ window.Aura = (() => {
5314
5404
  "aria-label": props.removeLabel || t.remove(name),
5315
5405
  onClick: props.onRemove
5316
5406
  },
5317
- /* @__PURE__ */ React30.createElement(Icon, { name: /* @__PURE__ */ React30.createElement(IconX, null), size: 14 })
5407
+ /* @__PURE__ */ React31.createElement(Icon, { name: /* @__PURE__ */ React31.createElement(IconX, null), size: 14 })
5318
5408
  );
5319
- return /* @__PURE__ */ React30.createElement(Tooltip, { content: fullText, open: fullText ? void 0 : false }, btn);
5409
+ return /* @__PURE__ */ React31.createElement(Tooltip, { content: fullText, open: fullText ? void 0 : false }, btn);
5320
5410
  }() : null);
5321
5411
  });
5322
5412
 
@@ -5339,16 +5429,16 @@ window.Aura = (() => {
5339
5429
  };
5340
5430
 
5341
5431
  // src/FilterBar.tsx
5342
- var FilterBar = React31.forwardRef(function FilterBar2(props, ref) {
5432
+ var FilterBar = React32.forwardRef(function FilterBar2(props, ref) {
5343
5433
  const t = useStrings();
5344
5434
  const id = uid();
5345
5435
  const hasSearch = !!props.onSearchChange;
5346
- const draft = React31.useState(props.search || "");
5347
- const timer2 = React31.useRef(null);
5348
- const sent = React31.useRef(props.search || "");
5349
- const onChange = React31.useRef(props.onSearchChange);
5436
+ const draft = React32.useState(props.search || "");
5437
+ const timer2 = React32.useRef(null);
5438
+ const sent = React32.useRef(props.search || "");
5439
+ const onChange = React32.useRef(props.onSearchChange);
5350
5440
  onChange.current = props.onSearchChange;
5351
- React31.useEffect(
5441
+ React32.useEffect(
5352
5442
  function() {
5353
5443
  if ((props.search || "") !== sent.current) {
5354
5444
  sent.current = props.search || "";
@@ -5357,7 +5447,7 @@ window.Aura = (() => {
5357
5447
  },
5358
5448
  [props.search]
5359
5449
  );
5360
- React31.useEffect(function() {
5450
+ React32.useEffect(function() {
5361
5451
  return function() {
5362
5452
  if (timer2.current) clearTimeout(timer2.current);
5363
5453
  };
@@ -5380,14 +5470,14 @@ window.Aura = (() => {
5380
5470
  );
5381
5471
  }
5382
5472
  const filters = props.filters || [];
5383
- const hasChildren = React31.Children.toArray(props.children).length > 0;
5473
+ const hasChildren = React32.Children.toArray(props.children).length > 0;
5384
5474
  const collapse = props.collapseBelow && hasChildren ? props.collapseBelow : null;
5385
- const sheet = React31.useState(false), open = !!collapse && sheet[0];
5475
+ const sheet = React32.useState(false), open = !!collapse && sheet[0];
5386
5476
  const sheetId = id + "-filters";
5387
- const doneRef = React31.useRef(null), moreRef = React31.useRef(null), own = React31.useRef(null), rootRef = useMergedRef(ref, own);
5477
+ const doneRef = React32.useRef(null), moreRef = React32.useRef(null), own = React32.useRef(null), rootRef = useMergedRef(ref, own);
5388
5478
  if (collapse)
5389
- React31.Children.forEach(props.children, function(c) {
5390
- if (!React31.isValidElement(c) || c.type === Button || c.type === IconButton) return;
5479
+ React32.Children.forEach(props.children, function(c) {
5480
+ if (!React32.isValidElement(c) || c.type === Button || c.type === IconButton) return;
5391
5481
  const p = c.props;
5392
5482
  if (p.defaultValue !== void 0 || p.defaultChecked !== void 0 || "label" in p && !("value" in p) && !("selected" in p) && !("checked" in p))
5393
5483
  devWarnOnce(
@@ -5405,7 +5495,7 @@ window.Aura = (() => {
5405
5495
  ) || bar.querySelector(".aura-filterbar__search input");
5406
5496
  }
5407
5497
  const applied = props.filterCount != null ? props.filterCount : filters.length;
5408
- React31.useEffect(
5498
+ React32.useEffect(
5409
5499
  function() {
5410
5500
  if (!open || !collapse || typeof window.matchMedia !== "function") return;
5411
5501
  const mq = window.matchMedia("(min-width: " + breakpoints[collapse] + "px)");
@@ -5430,7 +5520,7 @@ window.Aura = (() => {
5430
5520
  }
5431
5521
  const anything = filters.length > 0 || !!(props.search || draft[0]);
5432
5522
  const count = props.resultCount == null ? null : typeof props.resultCount === "number" ? t.results(props.resultCount) : props.resultCount;
5433
- const searchBox = hasSearch ? /* @__PURE__ */ React31.createElement("div", { className: "aura-input has-icon aura-filterbar__search" }, /* @__PURE__ */ React31.createElement(Icon, { name: /* @__PURE__ */ React31.createElement(IconSearch, null), className: "aura-input__icon" }), /* @__PURE__ */ React31.createElement(
5523
+ const searchBox = hasSearch ? /* @__PURE__ */ React32.createElement("div", { className: "aura-input has-icon aura-filterbar__search" }, /* @__PURE__ */ React32.createElement(Icon, { name: /* @__PURE__ */ React32.createElement(IconSearch, null), className: "aura-input__icon" }), /* @__PURE__ */ React32.createElement(
5434
5524
  "input",
5435
5525
  {
5436
5526
  id,
@@ -5451,10 +5541,10 @@ window.Aura = (() => {
5451
5541
  }
5452
5542
  }
5453
5543
  }
5454
- ), draft[0] ? /* @__PURE__ */ React31.createElement(
5544
+ ), draft[0] ? /* @__PURE__ */ React32.createElement(
5455
5545
  IconButton,
5456
5546
  {
5457
- icon: /* @__PURE__ */ React31.createElement(IconX, null),
5547
+ icon: /* @__PURE__ */ React32.createElement(IconX, null),
5458
5548
  label: t.clear((props.searchLabel || t.search).toLowerCase()),
5459
5549
  className: "aura-filterbar__clear-search",
5460
5550
  onClick: function() {
@@ -5463,12 +5553,12 @@ window.Aura = (() => {
5463
5553
  }
5464
5554
  }
5465
5555
  ) : null) : null;
5466
- const more = collapse ? /* @__PURE__ */ React31.createElement(
5556
+ const more = collapse ? /* @__PURE__ */ React32.createElement(
5467
5557
  Button,
5468
5558
  {
5469
5559
  ref: moreRef,
5470
5560
  variant: "secondary",
5471
- icon: /* @__PURE__ */ React31.createElement(IconSlidersHorizontal, null),
5561
+ icon: /* @__PURE__ */ React32.createElement(IconSlidersHorizontal, null),
5472
5562
  className: "aura-filterbar__more",
5473
5563
  "aria-haspopup": "dialog",
5474
5564
  "aria-expanded": open,
@@ -5477,9 +5567,9 @@ window.Aura = (() => {
5477
5567
  sheet[1](true);
5478
5568
  }
5479
5569
  },
5480
- applied > 0 ? /* @__PURE__ */ React31.createElement(React31.Fragment, null, /* @__PURE__ */ React31.createElement("span", { className: "aura-sr-only" }, t.filtersApplied(applied)), /* @__PURE__ */ React31.createElement("span", { "aria-hidden": true }, t.filters + " (" + applied + ")")) : t.filters
5570
+ applied > 0 ? /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement("span", { className: "aura-sr-only" }, t.filtersApplied(applied)), /* @__PURE__ */ React32.createElement("span", { "aria-hidden": true }, t.filters + " (" + applied + ")")) : t.filters
5481
5571
  ) : null;
5482
- return /* @__PURE__ */ React31.createElement(
5572
+ return /* @__PURE__ */ React32.createElement(
5483
5573
  "div",
5484
5574
  {
5485
5575
  ref: rootRef,
@@ -5495,15 +5585,15 @@ window.Aura = (() => {
5495
5585
  props.className
5496
5586
  )
5497
5587
  },
5498
- /* @__PURE__ */ React31.createElement("div", { className: "aura-filterbar__row" }, collapse ? (
5588
+ /* @__PURE__ */ React32.createElement("div", { className: "aura-filterbar__row" }, collapse ? (
5499
5589
  /* 5.42: the search and the Filters button share a row of their own below the breakpoint (count and actions
5500
5590
  * wrap under them); from the breakpoint up this box is display: contents and the bar is as before. */
5501
- /* @__PURE__ */ React31.createElement("div", { className: cx("aura-filterbar__lead", !hasSearch && "is-alone") }, searchBox, more)
5502
- ) : searchBox, hasChildren && !open ? /* @__PURE__ */ React31.createElement("div", { className: "aura-filterbar__controls" }, props.children) : null, /* @__PURE__ */ React31.createElement("span", { className: "aura-filterbar__spacer" }), count != null ? /* @__PURE__ */ React31.createElement("span", { className: "aura-filterbar__count", "aria-live": "polite" }, count) : null, props.actions ? /* @__PURE__ */ React31.createElement("div", { className: "aura-filterbar__actions" }, props.actions) : null),
5503
- filters.length || props.onClearAll && anything ? /* @__PURE__ */ React31.createElement("div", { className: "aura-filterbar__chips" }, filters.map(function(f) {
5504
- return /* @__PURE__ */ React31.createElement(Tag, { key: f.id, onRemove: f.onRemove }, f.label);
5505
- }), props.onClearAll && anything ? /* @__PURE__ */ React31.createElement("button", { type: "button", className: "aura-filterbar__clear", onClick: clearAll }, t.clearFilters) : null) : null,
5506
- collapse ? /* @__PURE__ */ React31.createElement(
5591
+ /* @__PURE__ */ React32.createElement("div", { className: cx("aura-filterbar__lead", !hasSearch && "is-alone") }, searchBox, more)
5592
+ ) : searchBox, hasChildren && !open ? /* @__PURE__ */ React32.createElement("div", { className: "aura-filterbar__controls" }, props.children) : null, /* @__PURE__ */ React32.createElement("span", { className: "aura-filterbar__spacer" }), count != null ? /* @__PURE__ */ React32.createElement("span", { className: "aura-filterbar__count", "aria-live": "polite" }, count) : null, props.actions ? /* @__PURE__ */ React32.createElement("div", { className: "aura-filterbar__actions" }, props.actions) : null),
5593
+ filters.length || props.onClearAll && anything ? /* @__PURE__ */ React32.createElement("div", { className: "aura-filterbar__chips" }, filters.map(function(f) {
5594
+ return /* @__PURE__ */ React32.createElement(Tag, { key: f.id, onRemove: f.onRemove }, f.label);
5595
+ }), props.onClearAll && anything ? /* @__PURE__ */ React32.createElement("button", { type: "button", className: "aura-filterbar__clear", onClick: clearAll }, t.clearFilters) : null) : null,
5596
+ collapse ? /* @__PURE__ */ React32.createElement(
5507
5597
  Dialog,
5508
5598
  {
5509
5599
  open,
@@ -5515,7 +5605,7 @@ window.Aura = (() => {
5515
5605
  title: t.filters,
5516
5606
  size: "sm",
5517
5607
  className: "aura-filterbar__sheet",
5518
- footer: /* @__PURE__ */ React31.createElement(React31.Fragment, null, props.onClearAll && filters.length ? /* @__PURE__ */ React31.createElement(
5608
+ footer: /* @__PURE__ */ React32.createElement(React32.Fragment, null, props.onClearAll && filters.length ? /* @__PURE__ */ React32.createElement(
5519
5609
  Button,
5520
5610
  {
5521
5611
  variant: "secondary",
@@ -5526,7 +5616,7 @@ window.Aura = (() => {
5526
5616
  }
5527
5617
  },
5528
5618
  t.clearFilters
5529
- ) : null, /* @__PURE__ */ React31.createElement(
5619
+ ) : null, /* @__PURE__ */ React32.createElement(
5530
5620
  Button,
5531
5621
  {
5532
5622
  ref: doneRef,
@@ -5538,13 +5628,13 @@ window.Aura = (() => {
5538
5628
  t.done
5539
5629
  ))
5540
5630
  },
5541
- /* @__PURE__ */ React31.createElement(FilterSheet.Provider, { value: true }, /* @__PURE__ */ React31.createElement("div", { className: "aura-filterbar aura-filterbar--sheet is-touch-always" }, props.children))
5631
+ /* @__PURE__ */ React32.createElement(FilterSheet.Provider, { value: true }, /* @__PURE__ */ React32.createElement("div", { className: "aura-filterbar aura-filterbar--sheet is-touch-always" }, props.children))
5542
5632
  ) : null
5543
5633
  );
5544
5634
  });
5545
5635
 
5546
5636
  // src/Command.tsx
5547
- var React32 = __toESM(require_react(), 1);
5637
+ var React33 = __toESM(require_react(), 1);
5548
5638
  var import_react_dom9 = __toESM(require_react_dom(), 1);
5549
5639
  function isMac() {
5550
5640
  return typeof navigator !== "undefined" && /Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent);
@@ -5553,21 +5643,21 @@ window.Aura = (() => {
5553
5643
  const t = useStrings();
5554
5644
  const density = useDensity();
5555
5645
  const id = uid(), listId = id + "-list";
5556
- const box = React32.useRef(null);
5557
- const input = React32.useRef(null);
5558
- const qState = React32.useState(""), act = React32.useState(null);
5646
+ const box = React33.useRef(null);
5647
+ const input = React33.useRef(null);
5648
+ const qState = React33.useState(""), act = React33.useState(null);
5559
5649
  const query = props.query !== void 0 ? props.query : qState[0];
5560
5650
  function setQuery(v) {
5561
5651
  if (props.query === void 0) qState[1](v);
5562
5652
  if (props.onQueryChange) props.onQueryChange(v);
5563
5653
  }
5564
- const openRef = React32.useRef(props.open);
5654
+ const openRef = React33.useRef(props.open);
5565
5655
  openRef.current = props.open;
5566
5656
  const close = function() {
5567
5657
  props.onOpenChange(false);
5568
5658
  };
5569
5659
  const modal = useModal(props.open, box, { onEscape: close });
5570
- React32.useEffect(
5660
+ React33.useEffect(
5571
5661
  function() {
5572
5662
  if (props.hotkey === false) return;
5573
5663
  function onKey2(e) {
@@ -5583,7 +5673,7 @@ window.Aura = (() => {
5583
5673
  },
5584
5674
  [props.hotkey, props.onOpenChange]
5585
5675
  );
5586
- React32.useEffect(
5676
+ React33.useEffect(
5587
5677
  function() {
5588
5678
  if (!props.open) {
5589
5679
  if (query) setQuery("");
@@ -5623,7 +5713,7 @@ window.Aura = (() => {
5623
5713
  const optId = function(i2) {
5624
5714
  return id + "-o" + i2;
5625
5715
  };
5626
- React32.useEffect(
5716
+ React33.useEffect(
5627
5717
  function() {
5628
5718
  if (!box.current || active < 0) return;
5629
5719
  const el = box.current.querySelector("#" + CSS.escape(optId(active)));
@@ -5668,7 +5758,7 @@ window.Aura = (() => {
5668
5758
  if (!modal.ready) return null;
5669
5759
  let i = -1;
5670
5760
  return (0, import_react_dom9.createPortal)(
5671
- /* @__PURE__ */ React32.createElement(
5761
+ /* @__PURE__ */ React33.createElement(
5672
5762
  "div",
5673
5763
  {
5674
5764
  className: "aura-dialog-layer aura-command-layer",
@@ -5678,8 +5768,8 @@ window.Aura = (() => {
5678
5768
  e.stopPropagation();
5679
5769
  }
5680
5770
  },
5681
- /* @__PURE__ */ React32.createElement("div", { className: "aura-scrim", onClick: close, "aria-hidden": true }),
5682
- /* @__PURE__ */ React32.createElement(
5771
+ /* @__PURE__ */ React33.createElement("div", { className: "aura-scrim", onClick: close, "aria-hidden": true }),
5772
+ /* @__PURE__ */ React33.createElement(
5683
5773
  "div",
5684
5774
  {
5685
5775
  ref: box,
@@ -5689,7 +5779,7 @@ window.Aura = (() => {
5689
5779
  tabIndex: -1,
5690
5780
  className: cx("aura-command", props.className)
5691
5781
  },
5692
- /* @__PURE__ */ React32.createElement("div", { className: "aura-command__search" }, /* @__PURE__ */ React32.createElement(Icon, { name: /* @__PURE__ */ React32.createElement(IconSearch, null), className: "aura-command__search-icon" }), /* @__PURE__ */ React32.createElement(
5782
+ /* @__PURE__ */ React33.createElement("div", { className: "aura-command__search" }, /* @__PURE__ */ React33.createElement(Icon, { name: /* @__PURE__ */ React33.createElement(IconSearch, null), className: "aura-command__search-icon" }), /* @__PURE__ */ React33.createElement(
5693
5783
  "input",
5694
5784
  {
5695
5785
  ref: input,
@@ -5712,8 +5802,8 @@ window.Aura = (() => {
5712
5802
  },
5713
5803
  onKeyDown: onKey
5714
5804
  }
5715
- ), /* @__PURE__ */ React32.createElement("kbd", { className: "aura-command__kbd" }, "Esc")),
5716
- /* @__PURE__ */ React32.createElement("div", { className: "aura-command__list", "aria-busy": props.loading || void 0 }, props.loading ? /* @__PURE__ */ React32.createElement("div", { className: "aura-command__loading" }, /* @__PURE__ */ React32.createElement(Icon, { name: /* @__PURE__ */ React32.createElement(IconLoaderCircle, null), className: "aura-spin" }), t.searching) : null, !flat3.length ? props.loading ? null : /* @__PURE__ */ React32.createElement("div", { className: "aura-command__empty" }, props.empty != null ? props.empty : props.emptyText || t.noMatches) : /* @__PURE__ */ React32.createElement(
5805
+ ), /* @__PURE__ */ React33.createElement("kbd", { className: "aura-command__kbd" }, "Esc")),
5806
+ /* @__PURE__ */ React33.createElement("div", { className: "aura-command__list", "aria-busy": props.loading || void 0 }, props.loading ? /* @__PURE__ */ React33.createElement("div", { className: "aura-command__loading" }, /* @__PURE__ */ React33.createElement(Icon, { name: /* @__PURE__ */ React33.createElement(IconLoaderCircle, null), className: "aura-spin" }), t.searching) : null, !flat3.length ? props.loading ? null : /* @__PURE__ */ React33.createElement("div", { className: "aura-command__empty" }, props.empty != null ? props.empty : props.emptyText || t.noMatches) : /* @__PURE__ */ React33.createElement(
5717
5807
  "div",
5718
5808
  {
5719
5809
  id: listId,
@@ -5723,7 +5813,7 @@ window.Aura = (() => {
5723
5813
  },
5724
5814
  groups.map(function(g, gi) {
5725
5815
  const gid = id + "-g" + gi;
5726
- return /* @__PURE__ */ React32.createElement(
5816
+ return /* @__PURE__ */ React33.createElement(
5727
5817
  "div",
5728
5818
  {
5729
5819
  key: g.name || gi,
@@ -5731,11 +5821,11 @@ window.Aura = (() => {
5731
5821
  "aria-labelledby": g.name ? gid : void 0,
5732
5822
  className: "aura-command__group"
5733
5823
  },
5734
- g.name ? /* @__PURE__ */ React32.createElement("div", { className: "aura-command__heading", id: gid, role: "presentation" }, g.name) : null,
5824
+ g.name ? /* @__PURE__ */ React33.createElement("div", { className: "aura-command__heading", id: gid, role: "presentation" }, g.name) : null,
5735
5825
  g.items.map(function(it) {
5736
5826
  i++;
5737
5827
  const n3 = i;
5738
- return /* @__PURE__ */ React32.createElement(
5828
+ return /* @__PURE__ */ React33.createElement(
5739
5829
  "div",
5740
5830
  {
5741
5831
  key: it.id,
@@ -5759,16 +5849,16 @@ window.Aura = (() => {
5759
5849
  run(it);
5760
5850
  }
5761
5851
  },
5762
- it.icon ? /* @__PURE__ */ React32.createElement(Icon, { name: it.icon }) : null,
5763
- /* @__PURE__ */ React32.createElement("span", { className: "aura-command__text" }, /* @__PURE__ */ React32.createElement("span", { className: "aura-command__label", id: it.description ? optId(n3) + "-label" : void 0 }, it.label), it.description ? /* @__PURE__ */ React32.createElement("span", { className: "aura-command__desc", id: optId(n3) + "-desc", "aria-hidden": true }, it.description) : null),
5764
- it.shortcut ? /* @__PURE__ */ React32.createElement("kbd", { className: "aura-command__kbd", id: it.description ? optId(n3) + "-kbd" : void 0 }, it.shortcut) : null
5852
+ it.icon ? /* @__PURE__ */ React33.createElement(Icon, { name: it.icon }) : null,
5853
+ /* @__PURE__ */ React33.createElement("span", { className: "aura-command__text" }, /* @__PURE__ */ React33.createElement("span", { className: "aura-command__label", id: it.description ? optId(n3) + "-label" : void 0 }, it.label), it.description ? /* @__PURE__ */ React33.createElement("span", { className: "aura-command__desc", id: optId(n3) + "-desc", "aria-hidden": true }, it.description) : null),
5854
+ it.shortcut ? /* @__PURE__ */ React33.createElement("kbd", { className: "aura-command__kbd", id: it.description ? optId(n3) + "-kbd" : void 0 }, it.shortcut) : null
5765
5855
  );
5766
5856
  })
5767
5857
  );
5768
5858
  })
5769
5859
  )),
5770
- /* @__PURE__ */ React32.createElement("span", { className: "aura-sr-only", role: "status" }, props.loading ? t.searching : query && !flat3.length ? t.noMatches : props.loading === false && query ? t.results(flat3.length) : ""),
5771
- /* @__PURE__ */ React32.createElement("div", { className: "aura-command__foot", "aria-hidden": true }, t.commandHint, /* @__PURE__ */ React32.createElement("span", { className: "aura-command__mod" }, isMac() ? "\u2318K" : "Ctrl K"))
5860
+ /* @__PURE__ */ React33.createElement("span", { className: "aura-sr-only", role: "status" }, props.loading ? t.searching : query && !flat3.length ? t.noMatches : props.loading === false && query ? t.results(flat3.length) : ""),
5861
+ /* @__PURE__ */ React33.createElement("div", { className: "aura-command__foot", "aria-hidden": true }, t.commandHint, /* @__PURE__ */ React33.createElement("span", { className: "aura-command__mod" }, isMac() ? "\u2318K" : "Ctrl K"))
5772
5862
  )
5773
5863
  ),
5774
5864
  document.body
@@ -5776,7 +5866,7 @@ window.Aura = (() => {
5776
5866
  }
5777
5867
 
5778
5868
  // src/DataTable.tsx
5779
- var React33 = __toESM(require_react(), 1);
5869
+ var React34 = __toESM(require_react(), 1);
5780
5870
  var import_react_dom10 = __toESM(require_react_dom(), 1);
5781
5871
  function ownRowAttrs(p) {
5782
5872
  if (!p) return null;
@@ -5812,7 +5902,7 @@ window.Aura = (() => {
5812
5902
  var ROW_H_DEFAULT = 48;
5813
5903
  var OVERSCAN = 8;
5814
5904
  var FLEX_MIN = 160;
5815
- var DataTableImpl = React33.forwardRef(function DataTable(props, ref) {
5905
+ var DataTableImpl = React34.forwardRef(function DataTable(props, ref) {
5816
5906
  const t = useStrings();
5817
5907
  const columns = props.columns || DEFAULT_COLUMNS;
5818
5908
  const byKey = {};
@@ -5839,7 +5929,7 @@ window.Aura = (() => {
5839
5929
  );
5840
5930
  const sort = sortState[0], setSort = sortState[1];
5841
5931
  const selState = useMaybeControlled(props.selected, props.defaultSelected || [], null);
5842
- const onSel = React33.useRef(props.onSelectionChange);
5932
+ const onSel = React34.useRef(props.onSelectionChange);
5843
5933
  onSel.current = props.onSelectionChange;
5844
5934
  const canSelect = function(r2) {
5845
5935
  return !!r2 && (!props.isRowSelectable || !!props.isRowSelectable(r2));
@@ -5859,7 +5949,7 @@ window.Aura = (() => {
5859
5949
  const droppedSig = selState[0].length === selected.length ? "" : "#" + selState[0].filter(function(k) {
5860
5950
  return rejected[String(k)];
5861
5951
  }).join("\0") + "#" + selected.join("\0");
5862
- React33.useEffect(
5952
+ React34.useEffect(
5863
5953
  function() {
5864
5954
  if (droppedSig !== "") setSelected(selected);
5865
5955
  },
@@ -5896,19 +5986,19 @@ window.Aura = (() => {
5896
5986
  }),
5897
5987
  props.onPinnedColumnsChange
5898
5988
  );
5899
- const widthState = React33.useState({});
5989
+ const widthState = React34.useState({});
5900
5990
  const widths = widthState[0], setWidths = widthState[1];
5901
- const activeState = React33.useState({ r: 1, c: 0 });
5902
- const scrollState = React33.useState(0);
5991
+ const activeState = React34.useState({ r: 1, c: 0 });
5992
+ const scrollState = React34.useState(0);
5903
5993
  const scrollTop = scrollState[0], setScrollTop = scrollState[1];
5904
- const scrolledX = React33.useState(false);
5905
- const menuState = React33.useState(null);
5994
+ const scrolledX = React34.useState(false);
5995
+ const menuState = React34.useState(null);
5906
5996
  const menu = menuState[0], setMenu = menuState[1];
5907
- const dragState = React33.useState(null);
5997
+ const dragState = React34.useState(null);
5908
5998
  const drag = dragState[0], setDrag = dragState[1];
5909
- const gridRef = React33.useRef(null);
5910
- const wrapRef = React33.useRef(null), wrapMerged = useMergedRef(ref, wrapRef);
5911
- const boxWidth = React33.useState(null);
5999
+ const gridRef = React34.useRef(null);
6000
+ const wrapRef = React34.useRef(null), wrapMerged = useMergedRef(ref, wrapRef);
6001
+ const boxWidth = React34.useState(null);
5912
6002
  const measure = !!props.stackBelow || columns.some(function(c) {
5913
6003
  return c.hideBelow != null;
5914
6004
  });
@@ -5918,7 +6008,7 @@ window.Aura = (() => {
5918
6008
  return px != null && a.indexOf(px) === i;
5919
6009
  }).length
5920
6010
  );
5921
- React33.useEffect(
6011
+ React34.useEffect(
5922
6012
  function() {
5923
6013
  if (!measure || !wrapRef.current || typeof ResizeObserver === "undefined") return;
5924
6014
  const ro = new ResizeObserver(function(en) {
@@ -5964,8 +6054,8 @@ window.Aura = (() => {
5964
6054
  const px = hidePx(c);
5965
6055
  return px != null && below(boxWidth[0], px);
5966
6056
  }
5967
- const scrollRef = React33.useRef(null);
5968
- const edgeState = React33.useState("");
6057
+ const scrollRef = React34.useRef(null);
6058
+ const edgeState = React34.useState("");
5969
6059
  const checkMoreX = function() {
5970
6060
  const el = scrollRef.current;
5971
6061
  if (!el) return;
@@ -5973,9 +6063,9 @@ window.Aura = (() => {
5973
6063
  const next = more ? [el.offsetTop, el.clientHeight, el.offsetWidth - el.clientWidth].join(" ") : "";
5974
6064
  if (next !== edgeState[0]) edgeState[1](next);
5975
6065
  };
5976
- const checkRef = React33.useRef(checkMoreX);
6066
+ const checkRef = React34.useRef(checkMoreX);
5977
6067
  checkRef.current = checkMoreX;
5978
- React33.useEffect(function() {
6068
+ React34.useEffect(function() {
5979
6069
  const el = scrollRef.current;
5980
6070
  if (!el || typeof ResizeObserver === "undefined") return;
5981
6071
  const ro = new ResizeObserver(function() {
@@ -5987,7 +6077,7 @@ window.Aura = (() => {
5987
6077
  ro.disconnect();
5988
6078
  };
5989
6079
  }, []);
5990
- const tipState = React33.useState(null), tip2 = tipState[0], setTip = tipState[1];
6080
+ const tipState = React34.useState(null), tip2 = tipState[0], setTip = tipState[1];
5991
6081
  function showFull(e) {
5992
6082
  const el = e.target.closest ? e.target.closest(".aura-table__td") : null;
5993
6083
  if (!el || el.scrollWidth <= el.clientWidth + 1 || el.querySelector("button, input, .aura-pill"))
@@ -5999,7 +6089,7 @@ window.Aura = (() => {
5999
6089
  setTip(null);
6000
6090
  }
6001
6091
  const tipEl = tip2 && typeof document !== "undefined" ? (0, import_react_dom10.createPortal)(
6002
- /* @__PURE__ */ React33.createElement(
6092
+ /* @__PURE__ */ React34.createElement(
6003
6093
  "div",
6004
6094
  {
6005
6095
  className: "aura-tooltip aura-tooltip--above",
@@ -6010,7 +6100,7 @@ window.Aura = (() => {
6010
6100
  ),
6011
6101
  document.body
6012
6102
  ) : null;
6013
- const rowH = React33.useState(ROW_H_DEFAULT);
6103
+ const rowH = React34.useState(ROW_H_DEFAULT);
6014
6104
  const ROW_H = rowH[0];
6015
6105
  useIsoLayoutEffect(function() {
6016
6106
  const el = wrapRef.current;
@@ -6018,8 +6108,8 @@ window.Aura = (() => {
6018
6108
  const v = parseFloat(getComputedStyle(el).getPropertyValue("--aura-table-row-height"));
6019
6109
  if (v > 0 && v !== rowH[0]) rowH[1](v);
6020
6110
  });
6021
- const pending = React33.useRef(null);
6022
- const resizing = React33.useRef(false);
6111
+ const pending = React34.useRef(null);
6112
+ const resizing = React34.useRef(false);
6023
6113
  useIsoLayoutEffect(function() {
6024
6114
  if (!gridRef.current || tabMode) return;
6025
6115
  const els = gridRef.current.querySelectorAll(
@@ -6142,7 +6232,7 @@ window.Aura = (() => {
6142
6232
  return s;
6143
6233
  }
6144
6234
  const sortCol = sort && sort.key ? byKey[sort.key] : void 0;
6145
- const view = React33.useMemo(
6235
+ const view = React34.useMemo(
6146
6236
  function() {
6147
6237
  if (manual || !sort || !sort.key || !byKey[sort.key]) return rows;
6148
6238
  const col = byKey[sort.key];
@@ -6184,8 +6274,8 @@ window.Aura = (() => {
6184
6274
  const pageRows = pageSize && !manual ? view.slice(first, first + pageSize) : view;
6185
6275
  const canSortAny = !busy && (manual ? total > 1 : rows.length > 1);
6186
6276
  const shownTotal = manual && props.totalRows == null ? first + rows.length : total;
6187
- const prevCount = React33.useRef(pageCount);
6188
- React33.useEffect(
6277
+ const prevCount = React34.useRef(pageCount);
6278
+ React34.useEffect(
6189
6279
  function() {
6190
6280
  if (busy) return;
6191
6281
  const before = prevCount.current;
@@ -6199,9 +6289,9 @@ window.Aura = (() => {
6199
6289
  [pageState[0], page, busy, pageCount]
6200
6290
  );
6201
6291
  const linkPaging = !!props.getPageHref && !props.onPageChange && !oneCallback;
6202
- const prevLink = React33.useRef(null), nextLink = React33.useRef(null), jumpLink = React33.useRef(null);
6203
- const jumpState = React33.useState(null);
6204
- React33.useEffect(
6292
+ const prevLink = React34.useRef(null), nextLink = React34.useRef(null), jumpLink = React34.useRef(null);
6293
+ const jumpState = React34.useState(null);
6294
+ React34.useEffect(
6205
6295
  function() {
6206
6296
  if (jumpState[0] == null) return;
6207
6297
  if (jumpLink.current) jumpLink.current.click();
@@ -6252,7 +6342,7 @@ window.Aura = (() => {
6252
6342
  );
6253
6343
  }
6254
6344
  function rowLinkWrap(r2, content) {
6255
- return rowHref ? /* @__PURE__ */ React33.createElement(Link, { href: rowHref(r2), className: "aura-table__row-link" }, content) : content;
6345
+ return rowHref ? /* @__PURE__ */ React34.createElement(Link, { href: rowHref(r2), className: "aura-table__row-link" }, content) : content;
6256
6346
  }
6257
6347
  const height = props.height || 0;
6258
6348
  const autoRows = props.rowHeight === "auto" && !height;
@@ -6296,8 +6386,8 @@ window.Aura = (() => {
6296
6386
  const acShown = nearestShown(ac, 1, function(cc) {
6297
6387
  return !cardHidden[cc];
6298
6388
  });
6299
- const lastFocus = React33.useRef(null);
6300
- React33.useEffect(
6389
+ const lastFocus = React34.useRef(null);
6390
+ React34.useEffect(
6301
6391
  function() {
6302
6392
  const was = lastFocus.current, g = gridRef.current;
6303
6393
  if (!stacked || !was || !g || !g.contains(was) || was.getClientRects().length > 0) return;
@@ -6312,7 +6402,7 @@ window.Aura = (() => {
6312
6402
  if (!activeRendered) return r2 === 0 && c === ac ? 0 : -1;
6313
6403
  return r2 === ar && c === acShown ? 0 : -1;
6314
6404
  }
6315
- React33.useEffect(function() {
6405
+ React34.useEffect(function() {
6316
6406
  const p = pending.current;
6317
6407
  if (!p || !gridRef.current) return;
6318
6408
  let c = p.c;
@@ -6375,8 +6465,8 @@ window.Aura = (() => {
6375
6465
  return selSet[String(k)];
6376
6466
  }).length;
6377
6467
  const all = nSel > 0 && nSel === pageKeys.length;
6378
- const anchor = React33.useRef(null);
6379
- const shiftClick = React33.useRef(false);
6468
+ const anchor = React34.useRef(null);
6469
+ const shiftClick = React34.useRef(false);
6380
6470
  function toggle(k, on, how) {
6381
6471
  const same2 = function(x) {
6382
6472
  return String(x) === String(k);
@@ -6532,14 +6622,14 @@ window.Aura = (() => {
6532
6622
  items2.push(
6533
6623
  {
6534
6624
  label: t.sortAsc,
6535
- icon: /* @__PURE__ */ React33.createElement(IconArrowUp, null),
6625
+ icon: /* @__PURE__ */ React34.createElement(IconArrowUp, null),
6536
6626
  onSelect: function() {
6537
6627
  applySort({ key: c.key, dir: "asc" });
6538
6628
  }
6539
6629
  },
6540
6630
  {
6541
6631
  label: t.sortDesc,
6542
- icon: /* @__PURE__ */ React33.createElement(IconArrowDown, null),
6632
+ icon: /* @__PURE__ */ React34.createElement(IconArrowDown, null),
6543
6633
  onSelect: function() {
6544
6634
  applySort({ key: c.key, dir: "desc" });
6545
6635
  }
@@ -6549,7 +6639,7 @@ window.Aura = (() => {
6549
6639
  if (c.width != null)
6550
6640
  items2.push({
6551
6641
  label: isPinned(c) ? t.unpin : t.pin,
6552
- icon: isPinned(c) ? /* @__PURE__ */ React33.createElement(IconPinOff, null) : /* @__PURE__ */ React33.createElement(IconPin, null),
6642
+ icon: isPinned(c) ? /* @__PURE__ */ React34.createElement(IconPinOff, null) : /* @__PURE__ */ React34.createElement(IconPin, null),
6553
6643
  onSelect: function() {
6554
6644
  togglePin(c.key);
6555
6645
  }
@@ -6558,7 +6648,7 @@ window.Aura = (() => {
6558
6648
  items2.push(
6559
6649
  {
6560
6650
  label: t.moveLeft,
6561
- icon: /* @__PURE__ */ React33.createElement(IconArrowLeft, null),
6651
+ icon: /* @__PURE__ */ React34.createElement(IconArrowLeft, null),
6562
6652
  disabled: gi <= 0,
6563
6653
  onSelect: function() {
6564
6654
  moveCol(c.key, -1);
@@ -6566,7 +6656,7 @@ window.Aura = (() => {
6566
6656
  },
6567
6657
  {
6568
6658
  label: t.moveRight,
6569
- icon: /* @__PURE__ */ React33.createElement(IconArrowRight, null),
6659
+ icon: /* @__PURE__ */ React34.createElement(IconArrowRight, null),
6570
6660
  disabled: gi >= group.length - 1,
6571
6661
  onSelect: function() {
6572
6662
  moveCol(c.key, 1);
@@ -6577,7 +6667,7 @@ window.Aura = (() => {
6577
6667
  { separator: true },
6578
6668
  {
6579
6669
  label: t.hideColumn,
6580
- icon: /* @__PURE__ */ React33.createElement(IconEyeOff, null),
6670
+ icon: /* @__PURE__ */ React34.createElement(IconEyeOff, null),
6581
6671
  disabled: shown.length <= 1,
6582
6672
  onSelect: function() {
6583
6673
  setHidden(c.key, true);
@@ -6598,7 +6688,7 @@ window.Aura = (() => {
6598
6688
  setHidden(k, on);
6599
6689
  }
6600
6690
  };
6601
- }).concat([{ separator: true }, { label: t.resetColumns, icon: /* @__PURE__ */ React33.createElement(IconRotateCcw, null), onSelect: resetColumns }]);
6691
+ }).concat([{ separator: true }, { label: t.resetColumns, icon: /* @__PURE__ */ React34.createElement(IconRotateCcw, null), onSelect: resetColumns }]);
6602
6692
  }
6603
6693
  function openMenu(kind, key, anchor2, rc) {
6604
6694
  setMenu({ kind, key, anchor: anchor2, rc });
@@ -6675,10 +6765,10 @@ window.Aura = (() => {
6675
6765
  e.stopPropagation();
6676
6766
  }
6677
6767
  }
6678
- const head = [/* @__PURE__ */ React33.createElement("span", { key: "__gl", className: "aura-table__gutter", "aria-hidden": true })];
6768
+ const head = [/* @__PURE__ */ React34.createElement("span", { key: "__gl", className: "aura-table__gutter", "aria-hidden": true })];
6679
6769
  if (selectable)
6680
6770
  head.push(
6681
- /* @__PURE__ */ React33.createElement(
6771
+ /* @__PURE__ */ React34.createElement(
6682
6772
  "span",
6683
6773
  {
6684
6774
  key: "__sel",
@@ -6692,7 +6782,7 @@ window.Aura = (() => {
6692
6782
  activeState[1]({ r: 0, c: 0 });
6693
6783
  }
6694
6784
  },
6695
- pageKeys.length ? /* @__PURE__ */ React33.createElement(
6785
+ pageKeys.length ? /* @__PURE__ */ React34.createElement(
6696
6786
  Checkbox,
6697
6787
  {
6698
6788
  ref: props.selectAllRef,
@@ -6704,7 +6794,7 @@ window.Aura = (() => {
6704
6794
  onChange: toggleAll
6705
6795
  }
6706
6796
  ) : null,
6707
- pageKeys.length ? /* @__PURE__ */ React33.createElement("span", { className: "aura-table__sel-text" }, nSel ? t.selectedCount(nSel) : t.selectAll) : /* @__PURE__ */ React33.createElement("span", { className: "aura-sr-only" }, t.selectRows)
6797
+ pageKeys.length ? /* @__PURE__ */ React34.createElement("span", { className: "aura-table__sel-text" }, nSel ? t.selectedCount(nSel) : t.selectAll) : /* @__PURE__ */ React34.createElement("span", { className: "aura-sr-only" }, t.selectRows)
6708
6798
  )
6709
6799
  );
6710
6800
  vis.forEach(function(c, i) {
@@ -6715,7 +6805,7 @@ window.Aura = (() => {
6715
6805
  const ariaSort = sort && canSortAny ? isSorted && canSort ? sort.dir === "desc" ? "descending" : "ascending" : canSort ? "none" : void 0 : own || (canSort ? "none" : void 0);
6716
6806
  const pin = isPinned(c), edge = pin && i === nPinned - 1;
6717
6807
  head.push(
6718
- /* @__PURE__ */ React33.createElement(
6808
+ /* @__PURE__ */ React34.createElement(
6719
6809
  "span",
6720
6810
  {
6721
6811
  key: c.key,
@@ -6766,7 +6856,7 @@ window.Aura = (() => {
6766
6856
  setDrag(null);
6767
6857
  }
6768
6858
  },
6769
- /* @__PURE__ */ React33.createElement("span", { className: "aura-table__th-inner" }, canSort ? /* @__PURE__ */ React33.createElement(
6859
+ /* @__PURE__ */ React34.createElement("span", { className: "aura-table__th-inner" }, canSort ? /* @__PURE__ */ React34.createElement(
6770
6860
  "button",
6771
6861
  {
6772
6862
  type: "button",
@@ -6778,14 +6868,14 @@ window.Aura = (() => {
6778
6868
  }
6779
6869
  },
6780
6870
  c.label,
6781
- /* @__PURE__ */ React33.createElement(
6871
+ /* @__PURE__ */ React34.createElement(
6782
6872
  Icon,
6783
6873
  {
6784
- name: isSorted ? sort.dir === "desc" ? /* @__PURE__ */ React33.createElement(IconArrowDown, null) : /* @__PURE__ */ React33.createElement(IconArrowUp, null) : /* @__PURE__ */ React33.createElement(IconArrowUpDown, null),
6874
+ name: isSorted ? sort.dir === "desc" ? /* @__PURE__ */ React34.createElement(IconArrowDown, null) : /* @__PURE__ */ React34.createElement(IconArrowUp, null) : /* @__PURE__ */ React34.createElement(IconArrowUpDown, null),
6785
6875
  size: 12
6786
6876
  }
6787
6877
  )
6788
- ) : /* @__PURE__ */ React33.createElement("span", { className: cx("aura-table__th-label", !c.label && "aura-sr-only") }, c.label || (c.actions ? t.actions : c.key)), pin ? /* @__PURE__ */ React33.createElement(Icon, { name: /* @__PURE__ */ React33.createElement(IconPin, null), size: 12, className: "aura-table__pin-icon", label: t.pinned }) : null, controls ? /* @__PURE__ */ React33.createElement(
6878
+ ) : /* @__PURE__ */ React34.createElement("span", { className: cx("aura-table__th-label", !c.label && "aura-sr-only") }, c.label || (c.actions ? t.actions : c.key)), pin ? /* @__PURE__ */ React34.createElement(Icon, { name: /* @__PURE__ */ React34.createElement(IconPin, null), size: 12, className: "aura-table__pin-icon", label: t.pinned }) : null, controls ? /* @__PURE__ */ React34.createElement(
6789
6879
  "button",
6790
6880
  {
6791
6881
  type: "button",
@@ -6799,9 +6889,9 @@ window.Aura = (() => {
6799
6889
  openMenu("col", c.key, e.currentTarget, { r: 0, c: ci });
6800
6890
  }
6801
6891
  },
6802
- /* @__PURE__ */ React33.createElement(Icon, { name: /* @__PURE__ */ React33.createElement(IconEllipsis, null) })
6892
+ /* @__PURE__ */ React34.createElement(Icon, { name: /* @__PURE__ */ React34.createElement(IconEllipsis, null) })
6803
6893
  ) : null),
6804
- canResize(c) ? /* @__PURE__ */ React33.createElement(
6894
+ canResize(c) ? /* @__PURE__ */ React34.createElement(
6805
6895
  "span",
6806
6896
  {
6807
6897
  className: "aura-table__resize",
@@ -6823,7 +6913,7 @@ window.Aura = (() => {
6823
6913
  );
6824
6914
  });
6825
6915
  head.push(
6826
- /* @__PURE__ */ React33.createElement(
6916
+ /* @__PURE__ */ React34.createElement(
6827
6917
  "span",
6828
6918
  {
6829
6919
  key: "__gr",
@@ -6834,15 +6924,15 @@ window.Aura = (() => {
6834
6924
  );
6835
6925
  function cellContent(c, r2) {
6836
6926
  const v = r2[c.key];
6837
- return c.render ? c.render(r2) : c.pill ? /* @__PURE__ */ React33.createElement(StatusPill, { ...{ tone: c.tones && c.tones[v] } }, v) : v;
6927
+ return c.render ? c.render(r2) : c.pill ? /* @__PURE__ */ React34.createElement(StatusPill, { ...{ tone: c.tones && c.tones[v] } }, v) : v;
6838
6928
  }
6839
6929
  function rowCells(r2, i, k, isSel) {
6840
6930
  const ri = i + 1;
6841
6931
  const selLabel = selectable && canSelect(r2) ? props.rowSelectLabel && props.rowSelectLabel(r2) || t.selectRow(k) : void 0;
6842
- const cells = [/* @__PURE__ */ React33.createElement("span", { key: "__gl", className: "aura-table__gutter", "aria-hidden": true })];
6932
+ const cells = [/* @__PURE__ */ React34.createElement("span", { key: "__gl", className: "aura-table__gutter", "aria-hidden": true })];
6843
6933
  if (selectable)
6844
6934
  cells.push(
6845
- /* @__PURE__ */ React33.createElement(
6935
+ /* @__PURE__ */ React34.createElement(
6846
6936
  "span",
6847
6937
  {
6848
6938
  key: "__sel",
@@ -6859,7 +6949,7 @@ window.Aura = (() => {
6859
6949
  shiftClick.current = e.shiftKey;
6860
6950
  }
6861
6951
  },
6862
- canSelect(r2) ? /* @__PURE__ */ React33.createElement(
6952
+ canSelect(r2) ? /* @__PURE__ */ React34.createElement(
6863
6953
  Checkbox,
6864
6954
  {
6865
6955
  hideLabel: true,
@@ -6878,7 +6968,7 @@ window.Aura = (() => {
6878
6968
  vis.forEach(function(c, j) {
6879
6969
  const ci = j + (selectable ? 1 : 0), v = r2[c.key], pin = isPinned(c);
6880
6970
  cells.push(
6881
- /* @__PURE__ */ React33.createElement(
6971
+ /* @__PURE__ */ React34.createElement(
6882
6972
  "span",
6883
6973
  {
6884
6974
  key: c.key,
@@ -6900,13 +6990,13 @@ window.Aura = (() => {
6900
6990
  if (activeState[0].r !== ri || activeState[0].c !== ci) activeState[1]({ r: ri, c: ci });
6901
6991
  }
6902
6992
  },
6903
- autoRows ? /* @__PURE__ */ React33.createElement("span", { className: "aura-table__cell" }, j === 0 ? rowLinkWrap(r2, cellContent(c, r2)) : cellContent(c, r2)) : j === 0 ? rowLinkWrap(r2, cellContent(c, r2)) : cellContent(c, r2)
6993
+ autoRows ? /* @__PURE__ */ React34.createElement("span", { className: "aura-table__cell" }, j === 0 ? rowLinkWrap(r2, cellContent(c, r2)) : cellContent(c, r2)) : j === 0 ? rowLinkWrap(r2, cellContent(c, r2)) : cellContent(c, r2)
6904
6994
  )
6905
6995
  );
6906
6996
  });
6907
- if (hasFields) cells.push(/* @__PURE__ */ React33.createElement("span", { key: "__br", className: "aura-table__break", "aria-hidden": true }));
6997
+ if (hasFields) cells.push(/* @__PURE__ */ React34.createElement("span", { key: "__br", className: "aura-table__break", "aria-hidden": true }));
6908
6998
  cells.push(
6909
- /* @__PURE__ */ React33.createElement(
6999
+ /* @__PURE__ */ React34.createElement(
6910
7000
  "span",
6911
7001
  {
6912
7002
  key: "__gr",
@@ -6923,17 +7013,17 @@ window.Aura = (() => {
6923
7013
  const n3 = pageSize || props.skeletonRows || 5;
6924
7014
  const skRows = body = [];
6925
7015
  for (let i = 0; i < n3; i++) {
6926
- const sk = [/* @__PURE__ */ React33.createElement("span", { key: "__gl", className: "aura-table__gutter" })];
7016
+ const sk = [/* @__PURE__ */ React34.createElement("span", { key: "__gl", className: "aura-table__gutter" })];
6927
7017
  if (selectable)
6928
7018
  sk.push(
6929
- /* @__PURE__ */ React33.createElement("span", { key: "__sel", className: cx("aura-table__sel", nPinned && "is-pinned") }, /* @__PURE__ */ React33.createElement("span", { className: "aura-skel aura-skel--box" }))
7019
+ /* @__PURE__ */ React34.createElement("span", { key: "__sel", className: cx("aura-table__sel", nPinned && "is-pinned") }, /* @__PURE__ */ React34.createElement("span", { className: "aura-skel aura-skel--box" }))
6930
7020
  );
6931
7021
  vis.forEach(function(c, j) {
6932
7022
  const part = cardPart(c, j);
6933
7023
  const action = part === "footer" || part === "actions";
6934
7024
  const lines = c.pill ? 1 : Math.max(1, Math.min(10, Math.floor(Number(c.skeletonLines)) || 1));
6935
7025
  const bar = function(n4) {
6936
- return /* @__PURE__ */ React33.createElement(
7026
+ return /* @__PURE__ */ React34.createElement(
6937
7027
  "span",
6938
7028
  {
6939
7029
  key: n4,
@@ -6945,7 +7035,7 @@ window.Aura = (() => {
6945
7035
  const bars2 = [];
6946
7036
  for (let b = 0; b < lines; b++) bars2.push(bar(b));
6947
7037
  sk.push(
6948
- /* @__PURE__ */ React33.createElement(
7038
+ /* @__PURE__ */ React34.createElement(
6949
7039
  "span",
6950
7040
  {
6951
7041
  key: c.key,
@@ -6958,7 +7048,7 @@ window.Aura = (() => {
6958
7048
  style: cellStyle(c, j),
6959
7049
  ...cardAttrs(c, j)
6960
7050
  },
6961
- action ? /* @__PURE__ */ React33.createElement(
7051
+ action ? /* @__PURE__ */ React34.createElement(
6962
7052
  "span",
6963
7053
  {
6964
7054
  className: cx(
@@ -6967,16 +7057,16 @@ window.Aura = (() => {
6967
7057
  c.skeletonTouch && "is-touch"
6968
7058
  )
6969
7059
  }
6970
- ) : lines > 1 ? /* @__PURE__ */ React33.createElement("span", { className: "aura-skel-lines" }, bars2) : bars2[0]
7060
+ ) : lines > 1 ? /* @__PURE__ */ React34.createElement("span", { className: "aura-skel-lines" }, bars2) : bars2[0]
6971
7061
  )
6972
7062
  );
6973
7063
  });
6974
- if (hasFields) sk.push(/* @__PURE__ */ React33.createElement("span", { key: "__br", className: "aura-table__break" }));
7064
+ if (hasFields) sk.push(/* @__PURE__ */ React34.createElement("span", { key: "__br", className: "aura-table__break" }));
6975
7065
  sk.push(
6976
- /* @__PURE__ */ React33.createElement("span", { key: "__gr", className: cx("aura-table__gutter aura-table__gutter--end", controls && "has-picker") })
7066
+ /* @__PURE__ */ React34.createElement("span", { key: "__gr", className: cx("aura-table__gutter aura-table__gutter--end", controls && "has-picker") })
6977
7067
  );
6978
7068
  skRows.push(
6979
- /* @__PURE__ */ React33.createElement(
7069
+ /* @__PURE__ */ React34.createElement(
6980
7070
  "div",
6981
7071
  {
6982
7072
  key: "sk" + i,
@@ -6990,18 +7080,18 @@ window.Aura = (() => {
6990
7080
  }
6991
7081
  } else if (!rows.length) {
6992
7082
  const em = props.empty || {};
6993
- body = /* @__PURE__ */ React33.createElement("div", { className: "aura-table__empty", role: "row" }, /* @__PURE__ */ React33.createElement("div", { role: "gridcell" }, /* @__PURE__ */ React33.createElement("span", { className: "aura-table__empty-icon" }, /* @__PURE__ */ React33.createElement(Icon, { name: em.icon || /* @__PURE__ */ React33.createElement(IconInbox, null), size: "lg" })), /* @__PURE__ */ React33.createElement("p", { className: "aura-table__empty-title" }, em.title || t.empty), em.description ? /* @__PURE__ */ React33.createElement("p", { className: "aura-table__empty-text" }, em.description) : null, em.action ? /* @__PURE__ */ React33.createElement("div", { className: "aura-table__empty-action" }, em.action) : null));
7083
+ body = /* @__PURE__ */ React34.createElement("div", { className: "aura-table__empty", role: "row" }, /* @__PURE__ */ React34.createElement("div", { role: "gridcell" }, /* @__PURE__ */ React34.createElement("span", { className: "aura-table__empty-icon" }, /* @__PURE__ */ React34.createElement(Icon, { name: em.icon || /* @__PURE__ */ React34.createElement(IconInbox, null), size: "lg" })), /* @__PURE__ */ React34.createElement("p", { className: "aura-table__empty-title" }, em.title || t.empty), em.description ? /* @__PURE__ */ React34.createElement("p", { className: "aura-table__empty-text" }, em.description) : null, em.action ? /* @__PURE__ */ React34.createElement("div", { className: "aura-table__empty-action" }, em.action) : null));
6994
7084
  } else {
6995
7085
  const bodyRows = body = [];
6996
7086
  if (virtual && start > 0)
6997
7087
  bodyRows.push(
6998
- /* @__PURE__ */ React33.createElement("div", { key: "__top", className: "aura-table__spacer", style: { height: start * ROW_H + "px" }, "aria-hidden": true })
7088
+ /* @__PURE__ */ React34.createElement("div", { key: "__top", className: "aura-table__spacer", style: { height: start * ROW_H + "px" }, "aria-hidden": true })
6999
7089
  );
7000
7090
  for (let ri = start; ri < end; ri++) {
7001
7091
  (function(r2, i) {
7002
7092
  const k = r2[rowKey], isSel = !!selSet[k];
7003
7093
  bodyRows.push(
7004
- /* @__PURE__ */ React33.createElement(
7094
+ /* @__PURE__ */ React34.createElement(
7005
7095
  "div",
7006
7096
  {
7007
7097
  key: k,
@@ -7030,7 +7120,7 @@ window.Aura = (() => {
7030
7120
  }
7031
7121
  if (virtual && end < pageRows.length)
7032
7122
  bodyRows.push(
7033
- /* @__PURE__ */ React33.createElement(
7123
+ /* @__PURE__ */ React34.createElement(
7034
7124
  "div",
7035
7125
  {
7036
7126
  key: "__bot",
@@ -7043,9 +7133,9 @@ window.Aura = (() => {
7043
7133
  }
7044
7134
  let foot = null;
7045
7135
  function pagerButton(dir) {
7046
- const p = page + dir, off = busy || (dir < 0 ? page <= 1 : page >= pageCount), label = dir < 0 ? t.prevPage : t.nextPage, icon = dir < 0 ? /* @__PURE__ */ React33.createElement(IconChevronLeft, null) : /* @__PURE__ */ React33.createElement(IconChevronRight, null);
7136
+ const p = page + dir, off = busy || (dir < 0 ? page <= 1 : page >= pageCount), label = dir < 0 ? t.prevPage : t.nextPage, icon = dir < 0 ? /* @__PURE__ */ React34.createElement(IconChevronLeft, null) : /* @__PURE__ */ React34.createElement(IconChevronRight, null);
7047
7137
  if (props.getPageHref && !off)
7048
- return /* @__PURE__ */ React33.createElement(
7138
+ return /* @__PURE__ */ React34.createElement(
7049
7139
  Link,
7050
7140
  {
7051
7141
  ref: dir < 0 ? prevLink : nextLink,
@@ -7060,9 +7150,9 @@ window.Aura = (() => {
7060
7150
  }
7061
7151
  }
7062
7152
  },
7063
- /* @__PURE__ */ React33.createElement(Icon, { name: icon })
7153
+ /* @__PURE__ */ React34.createElement(Icon, { name: icon })
7064
7154
  );
7065
- return /* @__PURE__ */ React33.createElement(
7155
+ return /* @__PURE__ */ React34.createElement(
7066
7156
  IconButton,
7067
7157
  {
7068
7158
  icon,
@@ -7077,11 +7167,11 @@ window.Aura = (() => {
7077
7167
  const openTotal = manual && props.totalRows == null && !!pageSize && rows.length >= pageSize;
7078
7168
  if (pageSize && (rows.length || busy || page > 1)) {
7079
7169
  const from = rows.length ? first + 1 : 0, to = manual ? first + rows.length : Math.min(first + pageSize, view.length);
7080
- foot = /* @__PURE__ */ React33.createElement("div", { className: "aura-table__foot" }, /* @__PURE__ */ React33.createElement("span", { "aria-live": "polite" }, busy ? t.loading : openTotal ? t.rangeOpen(from, to) : t.range(from, to, shownTotal)), /* @__PURE__ */ React33.createElement("span", { className: "aura-table__pager" }, /* @__PURE__ */ React33.createElement("span", null, openTotal ? t.pageOpen(page) : t.page(page, pageCount)), pagerButton(-1), pagerButton(1)));
7170
+ foot = /* @__PURE__ */ React34.createElement("div", { className: "aura-table__foot" }, /* @__PURE__ */ React34.createElement("span", { "aria-live": "polite" }, busy ? t.loading : openTotal ? t.rangeOpen(from, to) : t.range(from, to, shownTotal)), /* @__PURE__ */ React34.createElement("span", { className: "aura-table__pager" }, /* @__PURE__ */ React34.createElement("span", null, openTotal ? t.pageOpen(page) : t.page(page, pageCount)), pagerButton(-1), pagerButton(1)));
7081
7171
  } else if (height && rows.length && !loading) {
7082
- foot = /* @__PURE__ */ React33.createElement("div", { className: "aura-table__foot" }, /* @__PURE__ */ React33.createElement("span", null, t.rowCount(shownTotal)), selectable && selected.length ? /* @__PURE__ */ React33.createElement("span", null, t.selectedCount(selected.length)) : /* @__PURE__ */ React33.createElement("span", null));
7172
+ foot = /* @__PURE__ */ React34.createElement("div", { className: "aura-table__foot" }, /* @__PURE__ */ React34.createElement("span", null, t.rowCount(shownTotal)), selectable && selected.length ? /* @__PURE__ */ React34.createElement("span", null, t.selectedCount(selected.length)) : /* @__PURE__ */ React34.createElement("span", null));
7083
7173
  }
7084
- const totalRow = props.footer && rows.length && !loading ? /* @__PURE__ */ React33.createElement(
7174
+ const totalRow = props.footer && rows.length && !loading ? /* @__PURE__ */ React34.createElement(
7085
7175
  "div",
7086
7176
  {
7087
7177
  role: "row",
@@ -7090,8 +7180,8 @@ window.Aura = (() => {
7090
7180
  className: cx("aura-table__row aura-table__total", props.stickyFooter && "is-sticky"),
7091
7181
  style: rowStyle
7092
7182
  },
7093
- /* @__PURE__ */ React33.createElement("span", { className: "aura-table__gutter", "aria-hidden": true }),
7094
- selectable ? /* @__PURE__ */ React33.createElement(
7183
+ /* @__PURE__ */ React34.createElement("span", { className: "aura-table__gutter", "aria-hidden": true }),
7184
+ selectable ? /* @__PURE__ */ React34.createElement(
7095
7185
  "span",
7096
7186
  {
7097
7187
  role: "gridcell",
@@ -7106,7 +7196,7 @@ window.Aura = (() => {
7106
7196
  ) : null,
7107
7197
  vis.map(function(c, j) {
7108
7198
  const pin = isPinned(c), ci = j + (selectable ? 1 : 0);
7109
- return /* @__PURE__ */ React33.createElement(
7199
+ return /* @__PURE__ */ React34.createElement(
7110
7200
  "span",
7111
7201
  {
7112
7202
  key: c.key,
@@ -7132,8 +7222,8 @@ window.Aura = (() => {
7132
7222
  props.footer[c.key]
7133
7223
  );
7134
7224
  }),
7135
- hasFields ? /* @__PURE__ */ React33.createElement("span", { className: "aura-table__break", "aria-hidden": true }) : null,
7136
- /* @__PURE__ */ React33.createElement(
7225
+ hasFields ? /* @__PURE__ */ React34.createElement("span", { className: "aura-table__break", "aria-hidden": true }) : null,
7226
+ /* @__PURE__ */ React34.createElement(
7137
7227
  "span",
7138
7228
  {
7139
7229
  className: cx("aura-table__gutter aura-table__gutter--end", controls && "has-picker"),
@@ -7147,7 +7237,7 @@ window.Aura = (() => {
7147
7237
  scrollPaddingBottom: stickyTotal ? ROW_H + "px" : void 0
7148
7238
  };
7149
7239
  if (height) scrollStyle["--aura-table-h"] = height + "px";
7150
- const gridEl = /* @__PURE__ */ React33.createElement(
7240
+ const gridEl = /* @__PURE__ */ React34.createElement(
7151
7241
  "div",
7152
7242
  {
7153
7243
  ref: levels.length ? wrapRef : wrapMerged,
@@ -7168,8 +7258,8 @@ window.Aura = (() => {
7168
7258
  ),
7169
7259
  style: levels.length ? { ["--aura-q-back"]: String(levels[levels.length - 1].px / Q) } : void 0
7170
7260
  },
7171
- refreshing ? /* @__PURE__ */ React33.createElement("span", { className: "aura-table__busy-bar", "aria-hidden": true }) : null,
7172
- edgeState[0] && !stacked ? /* @__PURE__ */ React33.createElement(
7261
+ refreshing ? /* @__PURE__ */ React34.createElement("span", { className: "aura-table__busy-bar", "aria-hidden": true }) : null,
7262
+ edgeState[0] && !stacked ? /* @__PURE__ */ React34.createElement(
7173
7263
  "span",
7174
7264
  {
7175
7265
  className: "aura-table__edge",
@@ -7181,7 +7271,7 @@ window.Aura = (() => {
7181
7271
  }
7182
7272
  }
7183
7273
  ) : null,
7184
- /* @__PURE__ */ React33.createElement(
7274
+ /* @__PURE__ */ React34.createElement(
7185
7275
  "div",
7186
7276
  {
7187
7277
  ref: function(el) {
@@ -7219,7 +7309,7 @@ window.Aura = (() => {
7219
7309
  checkMoreX();
7220
7310
  }
7221
7311
  },
7222
- /* @__PURE__ */ React33.createElement(
7312
+ /* @__PURE__ */ React34.createElement(
7223
7313
  "div",
7224
7314
  {
7225
7315
  className: cx("aura-table__head", selectable && nRows > 0 && !busy && "has-select-all"),
@@ -7232,11 +7322,11 @@ window.Aura = (() => {
7232
7322
  body,
7233
7323
  totalRow
7234
7324
  ),
7235
- busy ? /* @__PURE__ */ React33.createElement("span", { className: "aura-sr-only", role: "status" }, t.loadingRows) : null,
7236
- controls ? /* @__PURE__ */ React33.createElement("div", { className: "aura-table__picker" }, /* @__PURE__ */ React33.createElement(
7325
+ busy ? /* @__PURE__ */ React34.createElement("span", { className: "aura-sr-only", role: "status" }, t.loadingRows) : null,
7326
+ controls ? /* @__PURE__ */ React34.createElement("div", { className: "aura-table__picker" }, /* @__PURE__ */ React34.createElement(
7237
7327
  IconButton,
7238
7328
  {
7239
- icon: /* @__PURE__ */ React33.createElement(IconColumns3, null),
7329
+ icon: /* @__PURE__ */ React34.createElement(IconColumns3, null),
7240
7330
  label: t.showHideColumns,
7241
7331
  "aria-haspopup": "menu",
7242
7332
  onClick: function(e) {
@@ -7245,7 +7335,7 @@ window.Aura = (() => {
7245
7335
  }
7246
7336
  )) : null,
7247
7337
  foot,
7248
- menu ? /* @__PURE__ */ React33.createElement(
7338
+ menu ? /* @__PURE__ */ React34.createElement(
7249
7339
  Menu,
7250
7340
  {
7251
7341
  anchor: menu.anchor,
@@ -7255,13 +7345,13 @@ window.Aura = (() => {
7255
7345
  }
7256
7346
  ) : null,
7257
7347
  tipEl,
7258
- jumpState[0] != null && props.getPageHref ? /* @__PURE__ */ React33.createElement(Link, { ref: jumpLink, href: props.getPageHref(jumpState[0]), hidden: true, tabIndex: -1, "aria-hidden": true }) : null
7348
+ jumpState[0] != null && props.getPageHref ? /* @__PURE__ */ React34.createElement(Link, { ref: jumpLink, href: props.getPageHref(jumpState[0]), hidden: true, tabIndex: -1, "aria-hidden": true }) : null
7259
7349
  );
7260
7350
  if (!levels.length) return gridEl;
7261
7351
  let out = gridEl;
7262
7352
  for (let i = levels.length - 1; i >= 0; i--) {
7263
7353
  const prev = i === 0 ? Q : levels[i - 1].px;
7264
- out = /* @__PURE__ */ React33.createElement(
7354
+ out = /* @__PURE__ */ React34.createElement(
7265
7355
  "div",
7266
7356
  {
7267
7357
  className: cx("aura-table-q", "aura-table-q--" + levels[i].name),
@@ -7270,7 +7360,7 @@ window.Aura = (() => {
7270
7360
  out
7271
7361
  );
7272
7362
  }
7273
- return /* @__PURE__ */ React33.createElement(
7363
+ return /* @__PURE__ */ React34.createElement(
7274
7364
  "div",
7275
7365
  {
7276
7366
  ref,
@@ -7287,14 +7377,14 @@ window.Aura = (() => {
7287
7377
  var DataTable2 = DataTableImpl;
7288
7378
 
7289
7379
  // src/Card.tsx
7290
- var React34 = __toESM(require_react(), 1);
7291
- var Card = React34.forwardRef(function Card2(props, ref) {
7380
+ var React35 = __toESM(require_react(), 1);
7381
+ var Card = React35.forwardRef(function Card2(props, ref) {
7292
7382
  return cardElement(props, ref);
7293
7383
  });
7294
7384
 
7295
7385
  // src/Tabs.tsx
7296
- var React35 = __toESM(require_react(), 1);
7297
- var Tabs = React35.forwardRef(function Tabs2(props, ref) {
7386
+ var React36 = __toESM(require_react(), 1);
7387
+ var Tabs = React36.forwardRef(function Tabs2(props, ref) {
7298
7388
  const items2 = props.tabs || [], base = uid();
7299
7389
  const asLinks = items2.length > 0 && items2.every(function(t) {
7300
7390
  return !!t.href;
@@ -7308,7 +7398,7 @@ window.Aura = (() => {
7308
7398
  props.onChange
7309
7399
  );
7310
7400
  const cur2 = asLinks && "value" in props ? props.value : st[0];
7311
- const refs = React35.useRef({});
7401
+ const refs = React36.useRef({});
7312
7402
  const current2 = items2.filter(function(t) {
7313
7403
  return t.id === cur2;
7314
7404
  })[0] || firstOn || items2[0];
@@ -7326,7 +7416,7 @@ window.Aura = (() => {
7326
7416
  return cx("aura-tab", on && "is-active", seg && "aura-segmented__option", seg && on && "is-selected", extra);
7327
7417
  };
7328
7418
  const rootCls = cx("aura-tabs", seg && "aura-tabs--segmented", touchClass(props.touchHeight));
7329
- const [focusId, setFocusId] = React35.useState(null);
7419
+ const [focusId, setFocusId] = React36.useState(null);
7330
7420
  items2.forEach(function(t) {
7331
7421
  const al = t.tabProps && t.tabProps["aria-label"];
7332
7422
  if (al && al.toLowerCase().indexOf(String(t.label).toLowerCase()) !== 0)
@@ -7336,19 +7426,19 @@ window.Aura = (() => {
7336
7426
  );
7337
7427
  });
7338
7428
  if (asLinks)
7339
- return /* @__PURE__ */ React35.createElement(
7429
+ return /* @__PURE__ */ React36.createElement(
7340
7430
  "nav",
7341
7431
  {
7342
7432
  ref,
7343
7433
  "aria-label": props.label,
7344
7434
  className: cx(rootCls, "aura-tabs--links", props.className)
7345
7435
  },
7346
- /* @__PURE__ */ React35.createElement("div", { className: listCls }, items2.map(function(t) {
7436
+ /* @__PURE__ */ React36.createElement("div", { className: listCls }, items2.map(function(t) {
7347
7437
  const on = t.id === cur2;
7348
7438
  const inner = [
7349
- t.icon ? /* @__PURE__ */ React35.createElement(Icon, { key: "i", name: t.icon }) : null,
7439
+ t.icon ? /* @__PURE__ */ React36.createElement(Icon, { key: "i", name: t.icon }) : null,
7350
7440
  t.label,
7351
- t.count != null ? /* @__PURE__ */ React35.createElement("span", { key: "c", className: "aura-tab__count" }, t.count) : null
7441
+ t.count != null ? /* @__PURE__ */ React36.createElement("span", { key: "c", className: "aura-tab__count" }, t.count) : null
7352
7442
  ];
7353
7443
  const own = omit(t.tabProps || {}, [
7354
7444
  "type",
@@ -7362,7 +7452,7 @@ window.Aura = (() => {
7362
7452
  "name",
7363
7453
  "value"
7364
7454
  ]);
7365
- return t.disabled ? /* @__PURE__ */ React35.createElement(
7455
+ return t.disabled ? /* @__PURE__ */ React36.createElement(
7366
7456
  "span",
7367
7457
  {
7368
7458
  ...omit(own, ["onClick"]),
@@ -7371,7 +7461,7 @@ window.Aura = (() => {
7371
7461
  "aria-disabled": true
7372
7462
  },
7373
7463
  inner
7374
- ) : /* @__PURE__ */ React35.createElement(
7464
+ ) : /* @__PURE__ */ React36.createElement(
7375
7465
  Link,
7376
7466
  {
7377
7467
  ...own,
@@ -7401,7 +7491,7 @@ window.Aura = (() => {
7401
7491
  const stop2 = manual && focusId && items2.filter(function(t) {
7402
7492
  return t.id === focusId && !t.disabled;
7403
7493
  })[0] || current2;
7404
- return /* @__PURE__ */ React35.createElement("div", { ref, className: cx(rootCls, props.className) }, /* @__PURE__ */ React35.createElement(
7494
+ return /* @__PURE__ */ React36.createElement("div", { ref, className: cx(rootCls, props.className) }, /* @__PURE__ */ React36.createElement(
7405
7495
  "div",
7406
7496
  {
7407
7497
  role: "tablist",
@@ -7434,7 +7524,7 @@ window.Aura = (() => {
7434
7524
  items2.map(function(t) {
7435
7525
  const on = current2 && t.id === current2.id;
7436
7526
  const own = t.tabProps || {};
7437
- return /* @__PURE__ */ React35.createElement(
7527
+ return /* @__PURE__ */ React36.createElement(
7438
7528
  "button",
7439
7529
  {
7440
7530
  ...own,
@@ -7461,9 +7551,9 @@ window.Aura = (() => {
7461
7551
  st[1](t.id);
7462
7552
  }
7463
7553
  },
7464
- t.icon ? /* @__PURE__ */ React35.createElement(Icon, { name: t.icon }) : null,
7554
+ t.icon ? /* @__PURE__ */ React36.createElement(Icon, { name: t.icon }) : null,
7465
7555
  t.label,
7466
- t.count != null ? /* @__PURE__ */ React35.createElement("span", { className: "aura-tab__count" }, t.count) : null
7556
+ t.count != null ? /* @__PURE__ */ React36.createElement("span", { className: "aura-tab__count" }, t.count) : null
7467
7557
  );
7468
7558
  })
7469
7559
  ), props.keepMounted ? (
@@ -7471,7 +7561,7 @@ window.Aura = (() => {
7471
7561
  items2.map(function(t) {
7472
7562
  if (t.content === void 0) return null;
7473
7563
  const on = current2 && t.id === current2.id;
7474
- return /* @__PURE__ */ React35.createElement(
7564
+ return /* @__PURE__ */ React36.createElement(
7475
7565
  "div",
7476
7566
  {
7477
7567
  key: t.id,
@@ -7485,7 +7575,7 @@ window.Aura = (() => {
7485
7575
  t.content
7486
7576
  );
7487
7577
  })
7488
- ) : current2 && current2.content !== void 0 ? /* @__PURE__ */ React35.createElement(
7578
+ ) : current2 && current2.content !== void 0 ? /* @__PURE__ */ React36.createElement(
7489
7579
  "div",
7490
7580
  {
7491
7581
  role: "tabpanel",
@@ -7499,14 +7589,14 @@ window.Aura = (() => {
7499
7589
  });
7500
7590
 
7501
7591
  // src/SideNav.tsx
7502
- var React36 = __toESM(require_react(), 1);
7592
+ var React37 = __toESM(require_react(), 1);
7503
7593
  var import_react_dom11 = __toESM(require_react_dom(), 1);
7504
7594
  function contains(it, id) {
7505
7595
  return !!id && !!it.children && it.children.some(function(c) {
7506
7596
  return c.id === id || contains(c, id);
7507
7597
  });
7508
7598
  }
7509
- var SideNav = React36.forwardRef(function SideNav2(props, ref) {
7599
+ var SideNav = React37.forwardRef(function SideNav2(props, ref) {
7510
7600
  const t = useStrings();
7511
7601
  const Link = useLinkComponent(props.linkComponent);
7512
7602
  const base = uid();
@@ -7518,14 +7608,14 @@ window.Aura = (() => {
7518
7608
  const active = st[0];
7519
7609
  const col = useMaybeControlled(props.collapsed, !!props.defaultCollapsed, props.onCollapsedChange);
7520
7610
  const collapsed = col[0];
7521
- const tipState = React36.useState(null), tip2 = tipState[0], setTip = tipState[1];
7522
- React36.useEffect(
7611
+ const tipState = React37.useState(null), tip2 = tipState[0], setTip = tipState[1];
7612
+ React37.useEffect(
7523
7613
  function() {
7524
7614
  if (!collapsed) setTip(null);
7525
7615
  },
7526
7616
  [collapsed]
7527
7617
  );
7528
- React36.useEffect(
7618
+ React37.useEffect(
7529
7619
  function() {
7530
7620
  if (!tip2) return;
7531
7621
  function esc(e) {
@@ -7550,12 +7640,12 @@ window.Aura = (() => {
7550
7640
  return { onMouseEnter: show3, onFocus: show3, onMouseLeave: hide2, onBlur: hide2 };
7551
7641
  }
7552
7642
  const sections = props.sections || [{ items: props.items || [] }];
7553
- const openState = React36.useState({}), toggled = openState[0], setToggled = openState[1];
7643
+ const openState = React37.useState({}), toggled = openState[0], setToggled = openState[1];
7554
7644
  function isOpen(it) {
7555
7645
  if (toggled[it.id] != null) return toggled[it.id];
7556
7646
  return !!it.defaultOpen || contains(it, active);
7557
7647
  }
7558
- React36.useEffect(
7648
+ React37.useEffect(
7559
7649
  function() {
7560
7650
  if (!active) return;
7561
7651
  const next = {};
@@ -7577,7 +7667,7 @@ window.Aura = (() => {
7577
7667
  },
7578
7668
  [active]
7579
7669
  );
7580
- const navRef = React36.useRef(null);
7670
+ const navRef = React37.useRef(null);
7581
7671
  function onKeyDown(e) {
7582
7672
  const k = e.key;
7583
7673
  if (k !== "ArrowDown" && k !== "ArrowUp" && k !== "Home" && k !== "End") return;
@@ -7596,12 +7686,12 @@ window.Aura = (() => {
7596
7686
  function inner(it, group, open) {
7597
7687
  const marked = it.count != null && it.count > 0 || it.badge != null;
7598
7688
  return [
7599
- it.icon ? /* @__PURE__ */ React36.createElement(Icon, { key: "i", name: it.icon }) : collapsed ? /* @__PURE__ */ React36.createElement("span", { key: "i", className: "aura-nav__initial", "aria-hidden": "true" }, it.label.charAt(0)) : null,
7600
- collapsed && marked ? /* @__PURE__ */ React36.createElement("span", { key: "d", className: "aura-nav__dot", "aria-hidden": "true" }) : null,
7601
- /* @__PURE__ */ React36.createElement("span", { key: "l", className: "aura-nav__label" }, it.label),
7602
- it.badge != null ? /* @__PURE__ */ React36.createElement("span", { key: "b", className: "aura-nav__badge" }, it.badge) : null,
7603
- it.count != null ? /* @__PURE__ */ React36.createElement("span", { key: "c", className: "aura-nav__count" }, it.count) : null,
7604
- group ? /* @__PURE__ */ React36.createElement(Icon, { key: "g", name: /* @__PURE__ */ React36.createElement(IconChevronDown, null), className: cx("aura-nav__chevron", open && "is-open") }) : null
7689
+ it.icon ? /* @__PURE__ */ React37.createElement(Icon, { key: "i", name: it.icon }) : collapsed ? /* @__PURE__ */ React37.createElement("span", { key: "i", className: "aura-nav__initial", "aria-hidden": "true" }, it.label.charAt(0)) : null,
7690
+ collapsed && marked ? /* @__PURE__ */ React37.createElement("span", { key: "d", className: "aura-nav__dot", "aria-hidden": "true" }) : null,
7691
+ /* @__PURE__ */ React37.createElement("span", { key: "l", className: "aura-nav__label" }, it.label),
7692
+ it.badge != null ? /* @__PURE__ */ React37.createElement("span", { key: "b", className: "aura-nav__badge" }, it.badge) : null,
7693
+ it.count != null ? /* @__PURE__ */ React37.createElement("span", { key: "c", className: "aura-nav__count" }, it.count) : null,
7694
+ group ? /* @__PURE__ */ React37.createElement(Icon, { key: "g", name: /* @__PURE__ */ React37.createElement(IconChevronDown, null), className: cx("aura-nav__chevron", open && "is-open") }) : null
7605
7695
  ];
7606
7696
  }
7607
7697
  function item(it, depth) {
@@ -7609,7 +7699,7 @@ window.Aura = (() => {
7609
7699
  const open = !collapsed && isOpen(it);
7610
7700
  const listId = base + "-" + it.id;
7611
7701
  const holdsActive = contains(it, active);
7612
- return /* @__PURE__ */ React36.createElement("li", { key: it.id, className: "aura-nav__group" }, /* @__PURE__ */ React36.createElement(
7702
+ return /* @__PURE__ */ React37.createElement("li", { key: it.id, className: "aura-nav__group" }, /* @__PURE__ */ React37.createElement(
7613
7703
  "button",
7614
7704
  {
7615
7705
  type: "button",
@@ -7638,7 +7728,7 @@ window.Aura = (() => {
7638
7728
  }
7639
7729
  },
7640
7730
  inner(it, true, open)
7641
- ), /* @__PURE__ */ React36.createElement("ul", { id: listId, className: "aura-nav__list aura-nav__sub", hidden: !open }, it.children.map(function(c) {
7731
+ ), /* @__PURE__ */ React37.createElement("ul", { id: listId, className: "aura-nav__list aura-nav__sub", hidden: !open }, it.children.map(function(c) {
7642
7732
  return item(c, depth + 1);
7643
7733
  })));
7644
7734
  }
@@ -7657,9 +7747,9 @@ window.Aura = (() => {
7657
7747
  if (action && props.onAction) props.onAction(it.id);
7658
7748
  }
7659
7749
  };
7660
- return /* @__PURE__ */ React36.createElement("li", { key: it.id }, it.href ? /* @__PURE__ */ React36.createElement(Link, { href: it.href, ...common }, inner(it, false, false)) : /* @__PURE__ */ React36.createElement("button", { type: "button", ...common }, inner(it, false, false)));
7750
+ return /* @__PURE__ */ React37.createElement("li", { key: it.id }, it.href ? /* @__PURE__ */ React37.createElement(Link, { href: it.href, ...common }, inner(it, false, false)) : /* @__PURE__ */ React37.createElement("button", { type: "button", ...common }, inner(it, false, false)));
7661
7751
  }
7662
- return /* @__PURE__ */ React36.createElement(
7752
+ return /* @__PURE__ */ React37.createElement(
7663
7753
  "nav",
7664
7754
  {
7665
7755
  ref: function(el) {
@@ -7679,14 +7769,14 @@ window.Aura = (() => {
7679
7769
  "aria-label": props.label || t.mainNav,
7680
7770
  onKeyDown
7681
7771
  },
7682
- props.header ? /* @__PURE__ */ React36.createElement("div", { className: "aura-nav__header" }, props.header) : null,
7683
- /* @__PURE__ */ React36.createElement("div", { className: "aura-nav__scroll" }, sections.map(function(s, i) {
7684
- return /* @__PURE__ */ React36.createElement("div", { key: i, className: "aura-nav__section" }, s.title ? /* @__PURE__ */ React36.createElement("p", { className: "aura-nav__title" }, s.title) : null, /* @__PURE__ */ React36.createElement("ul", { className: "aura-nav__list" }, s.items.map(function(it) {
7772
+ props.header ? /* @__PURE__ */ React37.createElement("div", { className: "aura-nav__header" }, props.header) : null,
7773
+ /* @__PURE__ */ React37.createElement("div", { className: "aura-nav__scroll" }, sections.map(function(s, i) {
7774
+ return /* @__PURE__ */ React37.createElement("div", { key: i, className: "aura-nav__section" }, s.title ? /* @__PURE__ */ React37.createElement("p", { className: "aura-nav__title" }, s.title) : null, /* @__PURE__ */ React37.createElement("ul", { className: "aura-nav__list" }, s.items.map(function(it) {
7685
7775
  return item(it, 0);
7686
7776
  })));
7687
7777
  })),
7688
- props.footer ? /* @__PURE__ */ React36.createElement("div", { className: "aura-nav__footer" }, props.footer) : null,
7689
- props.collapsible && props.collapseToggle === "row" ? /* @__PURE__ */ React36.createElement("div", { className: "aura-nav__toggle aura-nav__toggle--row" }, /* @__PURE__ */ React36.createElement(
7778
+ props.footer ? /* @__PURE__ */ React37.createElement("div", { className: "aura-nav__footer" }, props.footer) : null,
7779
+ props.collapsible && props.collapseToggle === "row" ? /* @__PURE__ */ React37.createElement("div", { className: "aura-nav__toggle aura-nav__toggle--row" }, /* @__PURE__ */ React37.createElement(
7690
7780
  "button",
7691
7781
  {
7692
7782
  type: "button",
@@ -7697,12 +7787,12 @@ window.Aura = (() => {
7697
7787
  col[1](!collapsed);
7698
7788
  }
7699
7789
  },
7700
- /* @__PURE__ */ React36.createElement(Icon, { name: collapsed ? /* @__PURE__ */ React36.createElement(IconPanelLeftOpen, null) : /* @__PURE__ */ React36.createElement(IconPanelLeftClose, null) }),
7701
- /* @__PURE__ */ React36.createElement("span", { className: "aura-nav__label" }, collapsed ? t.expandNav : t.collapseNav)
7702
- )) : props.collapsible ? /* @__PURE__ */ React36.createElement("div", { className: "aura-nav__toggle" }, /* @__PURE__ */ React36.createElement(
7790
+ /* @__PURE__ */ React37.createElement(Icon, { name: collapsed ? /* @__PURE__ */ React37.createElement(IconPanelLeftOpen, null) : /* @__PURE__ */ React37.createElement(IconPanelLeftClose, null) }),
7791
+ /* @__PURE__ */ React37.createElement("span", { className: "aura-nav__label" }, collapsed ? t.expandNav : t.collapseNav)
7792
+ )) : props.collapsible ? /* @__PURE__ */ React37.createElement("div", { className: "aura-nav__toggle" }, /* @__PURE__ */ React37.createElement(
7703
7793
  IconButton,
7704
7794
  {
7705
- icon: collapsed ? /* @__PURE__ */ React36.createElement(IconPanelLeftOpen, null) : /* @__PURE__ */ React36.createElement(IconPanelLeftClose, null),
7795
+ icon: collapsed ? /* @__PURE__ */ React37.createElement(IconPanelLeftOpen, null) : /* @__PURE__ */ React37.createElement(IconPanelLeftClose, null),
7706
7796
  label: collapsed ? t.expandNav : t.collapseNav,
7707
7797
  size: "md",
7708
7798
  onClick: function() {
@@ -7712,7 +7802,7 @@ window.Aura = (() => {
7712
7802
  }
7713
7803
  )) : null,
7714
7804
  tip2 && typeof document !== "undefined" ? (0, import_react_dom11.createPortal)(
7715
- /* @__PURE__ */ React36.createElement(
7805
+ /* @__PURE__ */ React37.createElement(
7716
7806
  "div",
7717
7807
  {
7718
7808
  className: "aura-tooltip aura-tooltip--right",
@@ -7727,8 +7817,8 @@ window.Aura = (() => {
7727
7817
  });
7728
7818
 
7729
7819
  // src/Breadcrumb.tsx
7730
- var React37 = __toESM(require_react(), 1);
7731
- var Breadcrumb = React37.forwardRef(function Breadcrumb2(props, ref) {
7820
+ var React38 = __toESM(require_react(), 1);
7821
+ var Breadcrumb = React38.forwardRef(function Breadcrumb2(props, ref) {
7732
7822
  const t = useStrings();
7733
7823
  const Link = useLinkComponent(props.linkComponent);
7734
7824
  const items2 = props.items || [];
@@ -7736,12 +7826,12 @@ window.Aura = (() => {
7736
7826
  const trail = items2.map(function(it) {
7737
7827
  return it.label + "" + (it.href || "");
7738
7828
  }).join("");
7739
- const st = React37.useState(null), expanded = st[0] === trail, setExpanded = function() {
7829
+ const st = React38.useState(null), expanded = st[0] === trail, setExpanded = function() {
7740
7830
  st[1](trail);
7741
7831
  };
7742
- const listRef = React37.useRef(null);
7743
- const focusNext = React37.useRef(false);
7744
- React37.useEffect(
7832
+ const listRef = React38.useRef(null);
7833
+ const focusNext = React38.useRef(false);
7834
+ React38.useEffect(
7745
7835
  function() {
7746
7836
  if (!expanded || !focusNext.current) return;
7747
7837
  focusNext.current = false;
@@ -7756,8 +7846,8 @@ window.Aura = (() => {
7756
7846
  },
7757
7847
  [expanded]
7758
7848
  );
7759
- const sep = /* @__PURE__ */ React37.createElement(Icon, { name: /* @__PURE__ */ React37.createElement(IconChevronRight, null), size: 12, className: "aura-crumbs__sep" });
7760
- const more = collapsible && !expanded ? /* @__PURE__ */ React37.createElement("li", { key: "more", className: "aura-crumbs__more" }, /* @__PURE__ */ React37.createElement(
7849
+ const sep = /* @__PURE__ */ React38.createElement(Icon, { name: /* @__PURE__ */ React38.createElement(IconChevronRight, null), size: 12, className: "aura-crumbs__sep" });
7850
+ const more = collapsible && !expanded ? /* @__PURE__ */ React38.createElement("li", { key: "more", className: "aura-crumbs__more" }, /* @__PURE__ */ React38.createElement(
7761
7851
  "button",
7762
7852
  {
7763
7853
  type: "button",
@@ -7780,23 +7870,23 @@ window.Aura = (() => {
7780
7870
  if (it.onClick) it.onClick();
7781
7871
  } : void 0;
7782
7872
  out.push(
7783
- /* @__PURE__ */ React37.createElement(
7873
+ /* @__PURE__ */ React38.createElement(
7784
7874
  "li",
7785
7875
  {
7786
7876
  key: i,
7787
7877
  ...it.itemProps,
7788
7878
  className: cx(it.itemProps && it.itemProps.className, collapsible && !last && i > 0 && "aura-crumbs__middle") || void 0
7789
7879
  },
7790
- last ? /* @__PURE__ */ React37.createElement("span", { ...plain, "aria-current": "page", className: cx("aura-crumbs__current", lp.className) }, it.label) : it.href ? /* @__PURE__ */ React37.createElement(Link, { ...lp, href: it.href, onClick: click }, it.label) : it.onClick ? /* @__PURE__ */ React37.createElement("button", { ...lp, type: "button", onClick: click }, it.label) : (
7880
+ last ? /* @__PURE__ */ React38.createElement("span", { ...plain, "aria-current": "page", className: cx("aura-crumbs__current", lp.className) }, it.label) : it.href ? /* @__PURE__ */ React38.createElement(Link, { ...lp, href: it.href, onClick: click }, it.label) : it.onClick ? /* @__PURE__ */ React38.createElement("button", { ...lp, type: "button", onClick: click }, it.label) : (
7791
7881
  /* 5.7: a segment with no page and no action is text, not a button that does nothing. */
7792
- /* @__PURE__ */ React37.createElement("span", { ...plain, className: cx("aura-crumbs__text", lp.className) }, it.label)
7882
+ /* @__PURE__ */ React38.createElement("span", { ...plain, className: cx("aura-crumbs__text", lp.className) }, it.label)
7793
7883
  ),
7794
7884
  last ? null : sep
7795
7885
  )
7796
7886
  );
7797
7887
  if (i === 0 && more) out.push(more);
7798
7888
  });
7799
- return /* @__PURE__ */ React37.createElement(
7889
+ return /* @__PURE__ */ React38.createElement(
7800
7890
  "nav",
7801
7891
  {
7802
7892
  ref,
@@ -7807,27 +7897,27 @@ window.Aura = (() => {
7807
7897
  props.className
7808
7898
  )
7809
7899
  },
7810
- /* @__PURE__ */ React37.createElement("ol", { ref: listRef }, out)
7900
+ /* @__PURE__ */ React38.createElement("ol", { ref: listRef }, out)
7811
7901
  );
7812
7902
  });
7813
7903
 
7814
7904
  // src/Avatar.tsx
7815
- var React38 = __toESM(require_react(), 1);
7816
- var Avatar = React38.forwardRef(function Avatar2(props, ref) {
7817
- const errState = React38.useState(null);
7905
+ var React39 = __toESM(require_react(), 1);
7906
+ var Avatar = React39.forwardRef(function Avatar2(props, ref) {
7907
+ const errState = React39.useState(null);
7818
7908
  return avatarElement(props, ref, errState[0], function() {
7819
7909
  errState[1](props.src || null);
7820
7910
  });
7821
7911
  });
7822
7912
 
7823
7913
  // src/Stack.tsx
7824
- var React40 = __toESM(require_react(), 1);
7914
+ var React41 = __toESM(require_react(), 1);
7825
7915
 
7826
7916
  // src/responsive.tsx
7827
- var React39 = __toESM(require_react(), 1);
7917
+ var React40 = __toESM(require_react(), 1);
7828
7918
  var ORDER2 = ["base", "sm", "md", "lg", "xl"];
7829
7919
  function useBreakpoint() {
7830
- return React39.useSyncExternalStore(subscribe, current, function() {
7920
+ return React40.useSyncExternalStore(subscribe, current, function() {
7831
7921
  return "lg";
7832
7922
  });
7833
7923
  }
@@ -7853,8 +7943,8 @@ window.Aura = (() => {
7853
7943
  }
7854
7944
 
7855
7945
  // src/Stack.tsx
7856
- var h5 = React40.createElement;
7857
- var Stack = React40.forwardRef(function Stack2(props, ref) {
7946
+ var h5 = React41.createElement;
7947
+ var Stack = React41.forwardRef(function Stack2(props, ref) {
7858
7948
  const style = Object.assign(
7859
7949
  {},
7860
7950
  respVars("aura-stack-dir", props.direction || "column"),
@@ -7868,9 +7958,9 @@ window.Aura = (() => {
7868
7958
  });
7869
7959
 
7870
7960
  // src/Grid.tsx
7871
- var React41 = __toESM(require_react(), 1);
7872
- var h6 = React41.createElement;
7873
- var Grid = React41.forwardRef(function Grid2(props, ref) {
7961
+ var React42 = __toESM(require_react(), 1);
7962
+ var h6 = React42.createElement;
7963
+ var Grid = React42.forwardRef(function Grid2(props, ref) {
7874
7964
  const style = Object.assign(
7875
7965
  {},
7876
7966
  respVars("aura-grid-gap", props.gap == null ? 6 : props.gap, space),
@@ -7885,9 +7975,9 @@ window.Aura = (() => {
7885
7975
  });
7886
7976
 
7887
7977
  // src/Container.tsx
7888
- var React42 = __toESM(require_react(), 1);
7889
- var h7 = React42.createElement;
7890
- var Container = React42.forwardRef(function Container2(props, ref) {
7978
+ var React43 = __toESM(require_react(), 1);
7979
+ var h7 = React43.createElement;
7980
+ var Container = React43.forwardRef(function Container2(props, ref) {
7891
7981
  const attrs2 = {};
7892
7982
  Object.keys(props).forEach(function(k) {
7893
7983
  if (k === "id" || k === "lang" || k === "dir" || /^(aria|data)-/.test(k))
@@ -7910,11 +8000,11 @@ window.Aura = (() => {
7910
8000
  });
7911
8001
 
7912
8002
  // src/PageHeaderClient.tsx
7913
- var React44 = __toESM(require_react(), 1);
8003
+ var React45 = __toESM(require_react(), 1);
7914
8004
 
7915
8005
  // src/PageHeader.tsx
7916
- var React43 = __toESM(require_react(), 1);
7917
- var h8 = React43.createElement;
8006
+ var React44 = __toESM(require_react(), 1);
8007
+ var h8 = React44.createElement;
7918
8008
  var LAZY = Symbol.for("react.lazy");
7919
8009
  function chipsOnly(node) {
7920
8010
  let el = 0;
@@ -7933,8 +8023,8 @@ window.Aura = (() => {
7933
8023
  }
7934
8024
  return walk(value);
7935
8025
  }
7936
- if (React43.isValidElement(n3)) {
7937
- if (n3.type === React43.Fragment) return walk(n3.props.children);
8026
+ if (React44.isValidElement(n3)) {
8027
+ if (n3.type === React44.Fragment) return walk(n3.props.children);
7938
8028
  el++;
7939
8029
  return true;
7940
8030
  }
@@ -7942,7 +8032,7 @@ window.Aura = (() => {
7942
8032
  };
7943
8033
  return walk(node) && el > 0;
7944
8034
  }
7945
- var PageHeader = React43.forwardRef(function PageHeader2(props, ref) {
8035
+ var PageHeader = React44.forwardRef(function PageHeader2(props, ref) {
7946
8036
  const attrs2 = {};
7947
8037
  Object.keys(props).forEach(function(k) {
7948
8038
  if (k === "id" || k === "lang" || k === "dir" || k === "role" || /^(aria|data)-/.test(k))
@@ -8022,12 +8112,12 @@ window.Aura = (() => {
8022
8112
  }
8023
8113
  return false;
8024
8114
  }
8025
- var PageHeader3 = React44.forwardRef(function PageHeader4(props, ref) {
8026
- const own = React44.useRef(null);
8115
+ var PageHeader3 = React45.forwardRef(function PageHeader4(props, ref) {
8116
+ const own = React45.useRef(null);
8027
8117
  const merged = useMergedRef(ref, own);
8028
8118
  const bar = props.actionsBarBelow;
8029
8119
  const hasActions = props.actions != null && props.actions !== false;
8030
- React44.useEffect(
8120
+ React45.useEffect(
8031
8121
  function() {
8032
8122
  if (bar !== "sm" && bar !== "md" || !hasActions || !own.current) return;
8033
8123
  const el = own.current.querySelector(":scope > .aura-page-header__actions");
@@ -8066,20 +8156,20 @@ window.Aura = (() => {
8066
8156
  [bar, hasActions]
8067
8157
  );
8068
8158
  const focusTitle = !!props.focusTitleOnMount;
8069
- React44.useEffect(function() {
8159
+ React45.useEffect(function() {
8070
8160
  if (!focusTitle || !own.current) return;
8071
8161
  const t = own.current.querySelector(".aura-page-header__title");
8072
8162
  if (t) t.focus({ preventScroll: true });
8073
8163
  }, []);
8074
- return /* @__PURE__ */ React44.createElement(PageHeader, { ...props, ref: merged });
8164
+ return /* @__PURE__ */ React45.createElement(PageHeader, { ...props, ref: merged });
8075
8165
  });
8076
8166
 
8077
8167
  // src/StatusTile.tsx
8078
- var React46 = __toESM(require_react(), 1);
8168
+ var React47 = __toESM(require_react(), 1);
8079
8169
 
8080
8170
  // src/tiles.tsx
8081
- var React45 = __toESM(require_react(), 1);
8082
- var h9 = React45.createElement;
8171
+ var React46 = __toESM(require_react(), 1);
8172
+ var h9 = React46.createElement;
8083
8173
  var STATUS_ICON = {
8084
8174
  down: IconCircleAlert,
8085
8175
  problem: IconTriangleAlert,
@@ -8171,7 +8261,7 @@ window.Aura = (() => {
8171
8261
  ) : null
8172
8262
  );
8173
8263
  }
8174
- var TileGrid = React45.forwardRef(function TileGrid2(props, ref) {
8264
+ var TileGrid = React46.forwardRef(function TileGrid2(props, ref) {
8175
8265
  const style = Object.assign(
8176
8266
  {},
8177
8267
  respVars("aura-grid-cols", props.columns == null ? { base: 2, md: 3 } : props.columns),
@@ -8187,16 +8277,16 @@ window.Aura = (() => {
8187
8277
  }),
8188
8278
  /* toArray drops null and booleans and keys each element; a Fragment's children are items too. */
8189
8279
  flat(props.children).map(function(c, i) {
8190
- return h9("li", { key: React45.isValidElement(c) && c.key != null ? c.key : i }, c);
8280
+ return h9("li", { key: React46.isValidElement(c) && c.key != null ? c.key : i }, c);
8191
8281
  })
8192
8282
  );
8193
8283
  });
8194
8284
  function flat(children) {
8195
8285
  const out = [];
8196
- React45.Children.toArray(children).forEach(function(c) {
8197
- if (React45.isValidElement(c) && c.type === React45.Fragment)
8286
+ React46.Children.toArray(children).forEach(function(c) {
8287
+ if (React46.isValidElement(c) && c.type === React46.Fragment)
8198
8288
  flat(c.props.children).forEach(function(x) {
8199
- out.push(React45.isValidElement(x) ? React45.cloneElement(x, { key: String(c.key) + "/" + String(x.key) }) : x);
8289
+ out.push(React46.isValidElement(x) ? React46.cloneElement(x, { key: String(c.key) + "/" + String(x.key) }) : x);
8200
8290
  });
8201
8291
  else if (c !== "") out.push(c);
8202
8292
  });
@@ -8210,7 +8300,7 @@ window.Aura = (() => {
8210
8300
  function num(v) {
8211
8301
  return typeof v === "number" && isFinite(v) ? v : null;
8212
8302
  }
8213
- var Sparkline = React45.forwardRef(function Sparkline2(props, ref) {
8303
+ var Sparkline = React46.forwardRef(function Sparkline2(props, ref) {
8214
8304
  const wh = SIZES2[props.size || "sm"] || SIZES2.sm;
8215
8305
  const W = wh[0], H = wh[1];
8216
8306
  const data = (props.data || []).map(num);
@@ -8284,8 +8374,8 @@ window.Aura = (() => {
8284
8374
  });
8285
8375
 
8286
8376
  // src/StatusTile.tsx
8287
- var useIsoLayoutEffect2 = typeof window !== "undefined" ? React46.useLayoutEffect : React46.useEffect;
8288
- var StatusTile = React46.forwardRef(function StatusTile2(props, ref) {
8377
+ var useIsoLayoutEffect2 = typeof window !== "undefined" ? React47.useLayoutEffect : React47.useEffect;
8378
+ var StatusTile = React47.forwardRef(function StatusTile2(props, ref) {
8289
8379
  const Link = useLinkComponent(props.linkComponent);
8290
8380
  const t = useStrings();
8291
8381
  useAutoTip();
@@ -8294,8 +8384,8 @@ window.Aura = (() => {
8294
8384
  "status-tile-label",
8295
8385
  "StatusTile `aria-label` needs `href`: without a link the tile is a plain box, where a name is not allowed."
8296
8386
  );
8297
- const titleRef = React46.useRef(null);
8298
- const check = React46.useCallback(function() {
8387
+ const titleRef = React47.useRef(null);
8388
+ const check = React47.useCallback(function() {
8299
8389
  const el = titleRef.current;
8300
8390
  if (!el) return;
8301
8391
  const cut = el.scrollHeight > el.clientHeight + 1;
@@ -8305,7 +8395,7 @@ window.Aura = (() => {
8305
8395
  }, []);
8306
8396
  useIsoLayoutEffect2(check, [props.title, check]);
8307
8397
  const linked = !!props.href;
8308
- React46.useEffect(
8398
+ React47.useEffect(
8309
8399
  function() {
8310
8400
  const el = titleRef.current;
8311
8401
  if (!el) return;
@@ -8330,14 +8420,14 @@ window.Aura = (() => {
8330
8420
  });
8331
8421
 
8332
8422
  // src/AppShell.tsx
8333
- var React48 = __toESM(require_react(), 1);
8423
+ var React49 = __toESM(require_react(), 1);
8334
8424
 
8335
8425
  // src/scrollHide.ts
8336
- var React47 = __toESM(require_react(), 1);
8426
+ var React48 = __toESM(require_react(), 1);
8337
8427
  var STEP = 8;
8338
8428
  function useHideOnScroll(enabled, el, media, from) {
8339
- const st = React47.useState(false), hidden = st[0], setHidden = st[1];
8340
- React47.useEffect(
8429
+ const st = React48.useState(false), hidden = st[0], setHidden = st[1];
8430
+ React48.useEffect(
8341
8431
  function() {
8342
8432
  if (!enabled || typeof window === "undefined") {
8343
8433
  setHidden(false);
@@ -8430,32 +8520,32 @@ window.Aura = (() => {
8430
8520
  function pinned(bar) {
8431
8521
  return getComputedStyle(bar).position !== "static";
8432
8522
  }
8433
- var AppShell = React48.forwardRef(function AppShell2(props, ref) {
8523
+ var AppShell = React49.forwardRef(function AppShell2(props, ref) {
8434
8524
  const t = useStrings();
8435
8525
  const bp = useBreakpoint();
8436
8526
  const wide = bp === "lg" || bp === "xl";
8437
- const st = React48.useState(false), open = st[0], setOpen = st[1];
8438
- React48.useEffect(
8527
+ const st = React49.useState(false), open = st[0], setOpen = st[1];
8528
+ React49.useEffect(
8439
8529
  function() {
8440
8530
  if (wide) setOpen(false);
8441
8531
  },
8442
8532
  [wide]
8443
8533
  );
8444
- const navEl = props.nav && React48.isValidElement(props.nav) ? props.nav : null;
8534
+ const navEl = props.nav && React49.isValidElement(props.nav) ? props.nav : null;
8445
8535
  const shared = !!navEl && navEl.props.value === void 0 && (navEl.props.defaultValue !== void 0 || navEl.props.sections !== void 0 || navEl.props.items !== void 0);
8446
- const navState = React48.useState(navEl ? navEl.props.defaultValue : void 0);
8536
+ const navState = React49.useState(navEl ? navEl.props.defaultValue : void 0);
8447
8537
  function onNav(id) {
8448
8538
  if (shared) navState[1](id);
8449
8539
  if (navEl && navEl.props.onChange) navEl.props.onChange(id);
8450
8540
  }
8451
- const rootRef = React48.useRef(null);
8452
- const barRef = React48.useRef(null);
8453
- const probeRef = React48.useRef(null);
8541
+ const rootRef = React49.useRef(null);
8542
+ const barRef = React49.useRef(null);
8543
+ const probeRef = React49.useRef(null);
8454
8544
  const mergedRef = useMergedRef(ref, rootRef);
8455
8545
  const hasBar = !!(props.header || props.nav);
8456
- const barH = React48.useState(null);
8546
+ const barH = React49.useState(null);
8457
8547
  const away = useHideOnScroll(!!props.headerHideOnScroll && hasBar, barRef, "(max-width: 1023.98px)", barH[0] || 56);
8458
- const awayRef = React48.useRef(away);
8548
+ const awayRef = React49.useRef(away);
8459
8549
  awayRef.current = away;
8460
8550
  useIsoLayoutEffect(
8461
8551
  function() {
@@ -8490,8 +8580,8 @@ window.Aura = (() => {
8490
8580
  },
8491
8581
  [hasBar]
8492
8582
  );
8493
- const deskNav = navEl && shared ? React48.cloneElement(navEl, { value: navState[0], onChange: onNav }) : props.nav;
8494
- const drawerNav = navEl ? React48.cloneElement(navEl, {
8583
+ const deskNav = navEl && shared ? React49.cloneElement(navEl, { value: navState[0], onChange: onNav }) : props.nav;
8584
+ const drawerNav = navEl ? React49.cloneElement(navEl, {
8495
8585
  value: shared ? navState[0] : navEl.props.value,
8496
8586
  onChange: function(id) {
8497
8587
  onNav(id);
@@ -8506,7 +8596,7 @@ window.Aura = (() => {
8506
8596
  collapsed: false,
8507
8597
  collapsible: false
8508
8598
  }) : props.nav;
8509
- return /* @__PURE__ */ React48.createElement(
8599
+ return /* @__PURE__ */ React49.createElement(
8510
8600
  "div",
8511
8601
  {
8512
8602
  ref: mergedRef,
@@ -8521,8 +8611,8 @@ window.Aura = (() => {
8521
8611
  props.className
8522
8612
  )
8523
8613
  },
8524
- props.nav ? /* @__PURE__ */ React48.createElement("div", { className: "aura-shell__nav" }, deskNav) : null,
8525
- props.nav ? /* @__PURE__ */ React48.createElement(
8614
+ props.nav ? /* @__PURE__ */ React49.createElement("div", { className: "aura-shell__nav" }, deskNav) : null,
8615
+ props.nav ? /* @__PURE__ */ React49.createElement(
8526
8616
  Drawer,
8527
8617
  {
8528
8618
  open,
@@ -8539,7 +8629,7 @@ window.Aura = (() => {
8539
8629
  },
8540
8630
  drawerNav
8541
8631
  ) : null,
8542
- /* @__PURE__ */ React48.createElement("div", { className: "aura-shell__main" }, props.header || props.nav ? /* @__PURE__ */ React48.createElement(
8632
+ /* @__PURE__ */ React49.createElement("div", { className: "aura-shell__main" }, props.header || props.nav ? /* @__PURE__ */ React49.createElement(
8543
8633
  "header",
8544
8634
  {
8545
8635
  ref: barRef,
@@ -8551,11 +8641,11 @@ window.Aura = (() => {
8551
8641
  away && "is-away"
8552
8642
  )
8553
8643
  },
8554
- props.nav ? /* @__PURE__ */ React48.createElement(
8644
+ props.nav ? /* @__PURE__ */ React49.createElement(
8555
8645
  IconButton,
8556
8646
  {
8557
8647
  className: "aura-shell__menu",
8558
- icon: /* @__PURE__ */ React48.createElement(IconMenu, null),
8648
+ icon: /* @__PURE__ */ React49.createElement(IconMenu, null),
8559
8649
  label: props.menuLabel || t.openNav,
8560
8650
  size: "md",
8561
8651
  touchHeight: true,
@@ -8565,9 +8655,9 @@ window.Aura = (() => {
8565
8655
  "aria-expanded": open
8566
8656
  }
8567
8657
  ) : null,
8568
- /* @__PURE__ */ React48.createElement("div", { className: "aura-shell__bar-content" }, props.header),
8569
- /* @__PURE__ */ React48.createElement("span", { className: "aura-shell__probe", "aria-hidden": "true", ref: probeRef })
8570
- ) : null, /* @__PURE__ */ React48.createElement(
8658
+ /* @__PURE__ */ React49.createElement("div", { className: "aura-shell__bar-content" }, props.header),
8659
+ /* @__PURE__ */ React49.createElement("span", { className: "aura-shell__probe", "aria-hidden": "true", ref: probeRef })
8660
+ ) : null, /* @__PURE__ */ React49.createElement(
8571
8661
  "main",
8572
8662
  {
8573
8663
  className: cx("aura-shell__content", props.contentPadding === false && "is-flush"),
@@ -8580,17 +8670,17 @@ window.Aura = (() => {
8580
8670
  });
8581
8671
 
8582
8672
  // src/ActionBar.tsx
8583
- var React49 = __toESM(require_react(), 1);
8584
- var ActionBar = React49.forwardRef(function ActionBar2(props, ref) {
8673
+ var React50 = __toESM(require_react(), 1);
8674
+ var ActionBar = React50.forwardRef(function ActionBar2(props, ref) {
8585
8675
  const t = useStrings();
8586
8676
  const bulk = props.selected != null;
8587
8677
  const idle = bulk && !props.selected;
8588
8678
  const count = bulk && props.selected ? t.selectedCount(props.selected) : null;
8589
- const hasStart = React49.Children.toArray(props.start).some(function(c) {
8679
+ const hasStart = React50.Children.toArray(props.start).some(function(c) {
8590
8680
  return c !== "";
8591
8681
  });
8592
- const cameFrom = React49.useRef(null);
8593
- const own = React49.useRef(null);
8682
+ const cameFrom = React50.useRef(null);
8683
+ const own = React50.useRef(null);
8594
8684
  function clear() {
8595
8685
  props.onClearSelection();
8596
8686
  setTimeout(function() {
@@ -8599,7 +8689,7 @@ window.Aura = (() => {
8599
8689
  if ((!a || a === document.body || !a.isConnected) && back && back.isConnected) back.focus();
8600
8690
  }, 0);
8601
8691
  }
8602
- return /* @__PURE__ */ React49.createElement(
8692
+ return /* @__PURE__ */ React50.createElement(
8603
8693
  "div",
8604
8694
  {
8605
8695
  ref: function(el) {
@@ -8621,16 +8711,16 @@ window.Aura = (() => {
8621
8711
  props.className
8622
8712
  )
8623
8713
  },
8624
- /* @__PURE__ */ React49.createElement("div", { className: cx("aura-actionbar__inner", hasStart && "has-start") }, /* @__PURE__ */ React49.createElement("div", { className: "aura-actionbar__status", role: "status" }, count, count && props.status ? " \xB7 " : null, props.status), !idle && hasStart ? /* @__PURE__ */ React49.createElement("div", { className: "aura-actionbar__start" }, props.start) : null, !idle ? /* @__PURE__ */ React49.createElement("div", { className: "aura-actionbar__actions" }, count && props.onClearSelection ? /* @__PURE__ */ React49.createElement(Button, { variant: "ghost", size: "sm", touchHeight: props.touchHeight, onClick: clear }, t.clear()) : null, props.children) : null)
8714
+ /* @__PURE__ */ React50.createElement("div", { className: cx("aura-actionbar__inner", hasStart && "has-start") }, /* @__PURE__ */ React50.createElement("div", { className: "aura-actionbar__status", role: "status" }, count, count && props.status ? " \xB7 " : null, props.status), !idle && hasStart ? /* @__PURE__ */ React50.createElement("div", { className: "aura-actionbar__start" }, props.start) : null, !idle ? /* @__PURE__ */ React50.createElement("div", { className: "aura-actionbar__actions" }, count && props.onClearSelection ? /* @__PURE__ */ React50.createElement(Button, { variant: "ghost", size: "sm", touchHeight: props.touchHeight, onClick: clear }, t.clear()) : null, props.children) : null)
8625
8715
  );
8626
8716
  });
8627
8717
 
8628
8718
  // src/Separator.tsx
8629
- var React50 = __toESM(require_react(), 1);
8630
- var Separator = React50.forwardRef(function Separator2(props, ref) {
8719
+ var React51 = __toESM(require_react(), 1);
8720
+ var Separator = React51.forwardRef(function Separator2(props, ref) {
8631
8721
  const vertical = props.orientation === "vertical";
8632
8722
  const decorative = props.decorative !== false;
8633
- return /* @__PURE__ */ React50.createElement(
8723
+ return /* @__PURE__ */ React51.createElement(
8634
8724
  "div",
8635
8725
  {
8636
8726
  ref,
@@ -8643,13 +8733,13 @@ window.Aura = (() => {
8643
8733
  });
8644
8734
 
8645
8735
  // src/Table.tsx
8646
- var React52 = __toESM(require_react(), 1);
8736
+ var React53 = __toESM(require_react(), 1);
8647
8737
 
8648
8738
  // src/TableSkeleton.tsx
8649
- var React51 = __toESM(require_react(), 1);
8650
- var h10 = React51.createElement;
8739
+ var React52 = __toESM(require_react(), 1);
8740
+ var h10 = React52.createElement;
8651
8741
  function inertProps() {
8652
- return { inert: parseInt(React51.version, 10) >= 19 ? true : "", "aria-hidden": true };
8742
+ return { inert: parseInt(React52.version, 10) >= 19 ? true : "", "aria-hidden": true };
8653
8743
  }
8654
8744
  function widthOf(w) {
8655
8745
  return w == null || w === "" ? void 0 : typeof w === "number" ? w + "px" : w;
@@ -8807,12 +8897,12 @@ window.Aura = (() => {
8807
8897
  }
8808
8898
 
8809
8899
  // src/Table.tsx
8810
- var StackLabels = React52.createContext(null);
8811
- var ColumnIndex = React52.createContext(-1);
8900
+ var StackLabels = React53.createContext(null);
8901
+ var ColumnIndex = React53.createContext(-1);
8812
8902
  function flat2(children) {
8813
8903
  const out = [];
8814
- React52.Children.toArray(children).forEach(function(c) {
8815
- if (React52.isValidElement(c) && c.type === React52.Fragment)
8904
+ React53.Children.toArray(children).forEach(function(c) {
8905
+ if (React53.isValidElement(c) && c.type === React53.Fragment)
8816
8906
  out.push.apply(out, flat2(c.props.children));
8817
8907
  else out.push(c);
8818
8908
  });
@@ -8826,7 +8916,7 @@ window.Aura = (() => {
8826
8916
  });
8827
8917
  return parts.length ? parts.join("") : void 0;
8828
8918
  }
8829
- if (React52.isValidElement(node)) {
8919
+ if (React53.isValidElement(node)) {
8830
8920
  const p = node.props;
8831
8921
  if (p["aria-hidden"] === true || p["aria-hidden"] === "true") return void 0;
8832
8922
  return text(p.children);
@@ -8836,13 +8926,13 @@ window.Aura = (() => {
8836
8926
  function headerLabels(children) {
8837
8927
  let out = [];
8838
8928
  flat2(children).forEach(function(c) {
8839
- if (out.length || !React52.isValidElement(c) || c.type !== THead) return;
8929
+ if (out.length || !React53.isValidElement(c) || c.type !== THead) return;
8840
8930
  const row = flat2(c.props.children).find(function(r2) {
8841
- return React52.isValidElement(r2);
8931
+ return React53.isValidElement(r2);
8842
8932
  });
8843
8933
  if (!row) return;
8844
8934
  flat2(row.props.children).forEach(function(cell) {
8845
- if (!React52.isValidElement(cell)) return;
8935
+ if (!React53.isValidElement(cell)) return;
8846
8936
  const p = cell.props;
8847
8937
  const t = text(p.children);
8848
8938
  const label = p.label != null ? p.label : t != null ? t.replace(/\s+/g, " ").trim() || void 0 : void 0;
@@ -8855,13 +8945,13 @@ window.Aura = (() => {
8855
8945
  function headerColumns(children) {
8856
8946
  const out = [];
8857
8947
  flat2(children).forEach(function(c) {
8858
- if (out.length || !React52.isValidElement(c) || c.type !== THead) return;
8948
+ if (out.length || !React53.isValidElement(c) || c.type !== THead) return;
8859
8949
  const row = flat2(c.props.children).find(function(r2) {
8860
- return React52.isValidElement(r2);
8950
+ return React53.isValidElement(r2);
8861
8951
  });
8862
8952
  if (!row) return;
8863
8953
  flat2(row.props.children).forEach(function(cell) {
8864
- if (!React52.isValidElement(cell)) return;
8954
+ if (!React53.isValidElement(cell)) return;
8865
8955
  const p = cell.props;
8866
8956
  const t = text(p.children);
8867
8957
  const style = p.style;
@@ -8879,7 +8969,7 @@ window.Aura = (() => {
8879
8969
  });
8880
8970
  return out;
8881
8971
  }
8882
- var Table = React52.forwardRef(function Table2(props, ref) {
8972
+ var Table = React53.forwardRef(function Table2(props, ref) {
8883
8973
  const {
8884
8974
  caption,
8885
8975
  captionHidden,
@@ -8907,7 +8997,7 @@ window.Aura = (() => {
8907
8997
  );
8908
8998
  const shownChildren = skeletonCols ? [
8909
8999
  flat2(children).filter(function(c) {
8910
- return React52.isValidElement(c) && c.type === THead;
9000
+ return React53.isValidElement(c) && c.type === THead;
8911
9001
  }),
8912
9002
  skeletonBody(skeletonCols, loadingRows != null ? Math.max(0, loadingRows) : 5, !!stackBelow)
8913
9003
  ] : children;
@@ -8923,12 +9013,12 @@ window.Aura = (() => {
8923
9013
  "tbl-stack-labels",
8924
9014
  "Table stackBelow: no THead > Tr > Th found among its children, so cells have no labels. Pass `label` on each Td."
8925
9015
  );
8926
- const outer = React52.useContext(StackLabels);
9016
+ const outer = React53.useContext(StackLabels);
8927
9017
  const pageDensity = useDensity();
8928
9018
  const capId = uid();
8929
- const wrap = React52.useRef(null);
8930
- const sc = React52.useState(false), scrolls = sc[0];
8931
- const wide = React52.useState(false);
9019
+ const wrap = React53.useRef(null);
9020
+ const sc = React53.useState(false), scrolls = sc[0];
9021
+ const wide = React53.useState(false);
8932
9022
  useIsoLayoutEffect(function() {
8933
9023
  const el = wrap.current;
8934
9024
  if (!el || typeof ResizeObserver === "undefined") return;
@@ -8945,7 +9035,7 @@ window.Aura = (() => {
8945
9035
  ro.disconnect();
8946
9036
  };
8947
9037
  }, []);
8948
- const table = /* @__PURE__ */ React52.createElement(
9038
+ const table = /* @__PURE__ */ React53.createElement(
8949
9039
  "div",
8950
9040
  {
8951
9041
  ref: wrap,
@@ -8970,7 +9060,7 @@ window.Aura = (() => {
8970
9060
  "aria-labelledby": scrolls && !loading ? caption != null ? capId : rest["aria-labelledby"] : void 0,
8971
9061
  "aria-label": scrolls && !loading && caption == null ? rest["aria-label"] : void 0
8972
9062
  },
8973
- /* @__PURE__ */ React52.createElement(
9063
+ /* @__PURE__ */ React53.createElement(
8974
9064
  "table",
8975
9065
  {
8976
9066
  ref,
@@ -8987,12 +9077,12 @@ window.Aura = (() => {
8987
9077
  role: stackBelow ? "table" : void 0,
8988
9078
  ...rest
8989
9079
  },
8990
- caption != null ? /* @__PURE__ */ React52.createElement("caption", { id: capId, className: cx("aura-tbl__caption", captionHidden && "aura-sr-only") }, caption) : null,
9080
+ caption != null ? /* @__PURE__ */ React53.createElement("caption", { id: capId, className: cx("aura-tbl__caption", captionHidden && "aura-sr-only") }, caption) : null,
8991
9081
  skeletonCols ? skeletonColgroup(skeletonCols) : null,
8992
- labels ? /* @__PURE__ */ React52.createElement(StackLabels.Provider, { value: labels }, shownChildren) : outer ? /* @__PURE__ */ React52.createElement(StackLabels.Provider, { value: null }, shownChildren) : shownChildren
9082
+ labels ? /* @__PURE__ */ React53.createElement(StackLabels.Provider, { value: labels }, shownChildren) : outer ? /* @__PURE__ */ React53.createElement(StackLabels.Provider, { value: null }, shownChildren) : shownChildren
8993
9083
  )
8994
9084
  );
8995
- return cards ? /* @__PURE__ */ React52.createElement(
9085
+ return cards ? /* @__PURE__ */ React53.createElement(
8996
9086
  "div",
8997
9087
  {
8998
9088
  className: cx(
@@ -9005,10 +9095,10 @@ window.Aura = (() => {
9005
9095
  ) : table;
9006
9096
  });
9007
9097
  function section(tag, cls) {
9008
- const C = React52.forwardRef(function TableSection(props, ref) {
9098
+ const C = React53.forwardRef(function TableSection(props, ref) {
9009
9099
  const { className, ...rest } = props;
9010
- const stacked = React52.useContext(StackLabels) != null;
9011
- return React52.createElement(
9100
+ const stacked = React53.useContext(StackLabels) != null;
9101
+ return React53.createElement(
9012
9102
  tag,
9013
9103
  Object.assign({ ref, className: cx(cls, className), role: stacked ? "rowgroup" : void 0 }, rest)
9014
9104
  );
@@ -9021,14 +9111,14 @@ window.Aura = (() => {
9021
9111
  TBody.displayName = "TBody";
9022
9112
  var TFoot = section("tfoot", "aura-tbl__foot");
9023
9113
  TFoot.displayName = "TFoot";
9024
- var Tr = React52.forwardRef(function Tr2(props, ref) {
9114
+ var Tr = React53.forwardRef(function Tr2(props, ref) {
9025
9115
  const { className, children, ...rest } = props;
9026
- const stacked = React52.useContext(StackLabels) != null;
9116
+ const stacked = React53.useContext(StackLabels) != null;
9027
9117
  let col = 0;
9028
- return /* @__PURE__ */ React52.createElement("tr", { ref, className: cx("aura-tbl__row", className), role: stacked ? "row" : void 0, ...rest }, stacked ? flat2(children).map(function(c) {
9118
+ return /* @__PURE__ */ React53.createElement("tr", { ref, className: cx("aura-tbl__row", className), role: stacked ? "row" : void 0, ...rest }, stacked ? flat2(children).map(function(c) {
9029
9119
  const at = col;
9030
- if (React52.isValidElement(c)) col += Math.max(1, Number(c.props.colSpan) || 1);
9031
- return /* @__PURE__ */ React52.createElement(ColumnIndex.Provider, { key: React52.isValidElement(c) && c.key != null ? c.key : at, value: at }, c);
9120
+ if (React53.isValidElement(c)) col += Math.max(1, Number(c.props.colSpan) || 1);
9121
+ return /* @__PURE__ */ React53.createElement(ColumnIndex.Provider, { key: React53.isValidElement(c) && c.key != null ? c.key : at, value: at }, c);
9032
9122
  }) : children);
9033
9123
  });
9034
9124
  function cellClass(base, p) {
@@ -9045,10 +9135,10 @@ window.Aura = (() => {
9045
9135
  p.className
9046
9136
  );
9047
9137
  }
9048
- var Th = React52.forwardRef(function Th2(props, ref) {
9138
+ var Th = React53.forwardRef(function Th2(props, ref) {
9049
9139
  const { align, numeric, mono, className, scope, label, card, skeleton, skeletonWidth, wrap, ...rest } = props;
9050
- const stacked = React52.useContext(StackLabels) != null;
9051
- return /* @__PURE__ */ React52.createElement(
9140
+ const stacked = React53.useContext(StackLabels) != null;
9141
+ return /* @__PURE__ */ React53.createElement(
9052
9142
  "th",
9053
9143
  {
9054
9144
  ref,
@@ -9060,12 +9150,12 @@ window.Aura = (() => {
9060
9150
  }
9061
9151
  );
9062
9152
  });
9063
- var Td = React52.forwardRef(function Td2(props, ref) {
9153
+ var Td = React53.forwardRef(function Td2(props, ref) {
9064
9154
  const { align, numeric, mono, className, scope, label, card, skeleton, skeletonWidth, wrap, ...rest } = props;
9065
- const labels = React52.useContext(StackLabels), col = React52.useContext(ColumnIndex);
9155
+ const labels = React53.useContext(StackLabels), col = React53.useContext(ColumnIndex);
9066
9156
  const slot = labels && (card === "title" || card === "action") ? card : void 0;
9067
9157
  const shown = labels && !slot ? label != null ? label : col >= 0 ? labels[col] : void 0 : void 0;
9068
- return /* @__PURE__ */ React52.createElement(
9158
+ return /* @__PURE__ */ React53.createElement(
9069
9159
  "td",
9070
9160
  {
9071
9161
  ref,
@@ -9079,8 +9169,8 @@ window.Aura = (() => {
9079
9169
  });
9080
9170
 
9081
9171
  // src/BottomNav.tsx
9082
- var React53 = __toESM(require_react(), 1);
9083
- var BottomNav = React53.forwardRef(function BottomNav2(props, ref) {
9172
+ var React54 = __toESM(require_react(), 1);
9173
+ var BottomNav = React54.forwardRef(function BottomNav2(props, ref) {
9084
9174
  const t = useStrings();
9085
9175
  const Link = useLinkComponent(props.linkComponent);
9086
9176
  const st = useMaybeControlled(
@@ -9090,7 +9180,7 @@ window.Aura = (() => {
9090
9180
  );
9091
9181
  const active = st[0];
9092
9182
  const hide2 = props.hideFrom === false ? "always" : "below-" + (props.hideFrom || "lg");
9093
- const own = React53.useRef(null);
9183
+ const own = React54.useRef(null);
9094
9184
  const hf = props.hideFrom === false ? null : props.hideFrom || "lg";
9095
9185
  const away = useHideOnScroll(
9096
9186
  !!props.hideOnScroll,
@@ -9098,7 +9188,7 @@ window.Aura = (() => {
9098
9188
  hf ? "(max-width: " + (breakpoints[hf] - 0.02) + "px)" : "all",
9099
9189
  64
9100
9190
  );
9101
- const setRef = React53.useCallback(
9191
+ const setRef = React54.useCallback(
9102
9192
  function(el) {
9103
9193
  own.current = el;
9104
9194
  if (typeof ref === "function") ref(el);
@@ -9106,7 +9196,7 @@ window.Aura = (() => {
9106
9196
  },
9107
9197
  [ref]
9108
9198
  );
9109
- return /* @__PURE__ */ React53.createElement(React53.Fragment, null, /* @__PURE__ */ React53.createElement("div", { className: cx("aura-bottomnav-spacer", "aura-bottomnav--" + hide2), "aria-hidden": "true" }), /* @__PURE__ */ React53.createElement(
9199
+ return /* @__PURE__ */ React54.createElement(React54.Fragment, null, /* @__PURE__ */ React54.createElement("div", { className: cx("aura-bottomnav-spacer", "aura-bottomnav--" + hide2), "aria-hidden": "true" }), /* @__PURE__ */ React54.createElement(
9110
9200
  "nav",
9111
9201
  {
9112
9202
  ref: setRef,
@@ -9119,7 +9209,7 @@ window.Aura = (() => {
9119
9209
  ),
9120
9210
  "aria-label": props.label || t.mainNav
9121
9211
  },
9122
- /* @__PURE__ */ React53.createElement("ul", { className: "aura-bottomnav__list" }, props.items.map(function(it) {
9212
+ /* @__PURE__ */ React54.createElement("ul", { className: "aura-bottomnav__list" }, props.items.map(function(it) {
9123
9213
  if (it.ariaLabel && typeof it.label === "string" && it.ariaLabel.toLowerCase().indexOf(it.label.toLowerCase()) < 0)
9124
9214
  devWarnOnce(
9125
9215
  "bottomnav-label-" + it.id,
@@ -9140,20 +9230,20 @@ window.Aura = (() => {
9140
9230
  }
9141
9231
  };
9142
9232
  const inner = [
9143
- /* @__PURE__ */ React53.createElement("span", { key: "i", className: "aura-bottomnav__icon" }, /* @__PURE__ */ React53.createElement(Icon, { name: it.icon, size: "md" }), count ? /* @__PURE__ */ React53.createElement("span", { className: "aura-bottomnav__count", "aria-hidden": "true" }, count) : it.badge ? /* @__PURE__ */ React53.createElement("span", { className: "aura-bottomnav__dot", "aria-hidden": "true" }) : null),
9144
- it.ariaLabel ? /* @__PURE__ */ React53.createElement("span", { key: "n", className: "aura-sr-only" }, it.ariaLabel + suffix) : null,
9145
- /* @__PURE__ */ React53.createElement("span", { key: "l", className: "aura-bottomnav__label", "aria-hidden": it.ariaLabel ? true : void 0 }, it.label),
9146
- suffix && !it.ariaLabel ? /* @__PURE__ */ React53.createElement("span", { key: "s", className: "aura-sr-only" }, suffix) : null
9233
+ /* @__PURE__ */ React54.createElement("span", { key: "i", className: "aura-bottomnav__icon" }, /* @__PURE__ */ React54.createElement(Icon, { name: it.icon, size: "md" }), count ? /* @__PURE__ */ React54.createElement("span", { className: "aura-bottomnav__count", "aria-hidden": "true" }, count) : it.badge ? /* @__PURE__ */ React54.createElement("span", { className: "aura-bottomnav__dot", "aria-hidden": "true" }) : null),
9234
+ it.ariaLabel ? /* @__PURE__ */ React54.createElement("span", { key: "n", className: "aura-sr-only" }, it.ariaLabel + suffix) : null,
9235
+ /* @__PURE__ */ React54.createElement("span", { key: "l", className: "aura-bottomnav__label", "aria-hidden": it.ariaLabel ? true : void 0 }, it.label),
9236
+ suffix && !it.ariaLabel ? /* @__PURE__ */ React54.createElement("span", { key: "s", className: "aura-sr-only" }, suffix) : null
9147
9237
  ];
9148
- return /* @__PURE__ */ React53.createElement("li", { key: it.id, className: "aura-bottomnav__cell" }, it.href ? /* @__PURE__ */ React53.createElement(Link, { href: it.href, ...common }, inner) : /* @__PURE__ */ React53.createElement("button", { type: "button", ...common }, inner));
9238
+ return /* @__PURE__ */ React54.createElement("li", { key: it.id, className: "aura-bottomnav__cell" }, it.href ? /* @__PURE__ */ React54.createElement(Link, { href: it.href, ...common }, inner) : /* @__PURE__ */ React54.createElement("button", { type: "button", ...common }, inner));
9149
9239
  }))
9150
9240
  ));
9151
9241
  });
9152
9242
 
9153
9243
  // src/Surface.tsx
9154
- var React54 = __toESM(require_react(), 1);
9155
- var h11 = React54.createElement;
9156
- var Surface = React54.forwardRef(function Surface2(props, ref) {
9244
+ var React55 = __toESM(require_react(), 1);
9245
+ var h11 = React55.createElement;
9246
+ var Surface = React55.forwardRef(function Surface2(props, ref) {
9157
9247
  const t = props.texture || "mesh";
9158
9248
  const rest = omit(props, ["texture", "className", "children", "as"]);
9159
9249
  return h11(
@@ -9174,14 +9264,14 @@ window.Aura = (() => {
9174
9264
  });
9175
9265
 
9176
9266
  // src/Stat.tsx
9177
- var React55 = __toESM(require_react(), 1);
9178
- var Stat = React55.forwardRef(function Stat2(props, ref) {
9267
+ var React56 = __toESM(require_react(), 1);
9268
+ var Stat = React56.forwardRef(function Stat2(props, ref) {
9179
9269
  const Link = useLinkComponent(props.linkComponent);
9180
9270
  return statElement(props, ref, Link);
9181
9271
  });
9182
9272
 
9183
9273
  // src/TimePicker.tsx
9184
- var React56 = __toESM(require_react(), 1);
9274
+ var React57 = __toESM(require_react(), 1);
9185
9275
  var import_react_dom12 = __toESM(require_react_dom(), 1);
9186
9276
 
9187
9277
  // src/text.ts
@@ -9223,7 +9313,7 @@ window.Aura = (() => {
9223
9313
  function fromMin(n3) {
9224
9314
  return pad3(Math.floor(n3 / 60)) + ":" + pad3(n3 % 60);
9225
9315
  }
9226
- var TimePicker = React56.forwardRef(function TimePicker2(props, ref) {
9316
+ var TimePicker = React57.forwardRef(function TimePicker2(props, ref) {
9227
9317
  const t = useStrings();
9228
9318
  const auto = uid(), id = props.id || auto, listId = id + "-list";
9229
9319
  const st = useMaybeControlled(
@@ -9233,7 +9323,7 @@ window.Aura = (() => {
9233
9323
  );
9234
9324
  const value = st[0];
9235
9325
  const step = props.step || 30, lo = toMin(props.min) != null ? toMin(props.min) : 0, hi = toMin(props.max) != null ? toMin(props.max) : 24 * 60 - 1;
9236
- const slots = React56.useMemo(
9326
+ const slots = React57.useMemo(
9237
9327
  function() {
9238
9328
  const out = [];
9239
9329
  for (let m = lo; m <= hi; m += step) out.push(fromMin(m));
@@ -9245,12 +9335,12 @@ window.Aura = (() => {
9245
9335
  const n3 = toMin(v);
9246
9336
  return n3 == null || n3 < lo || n3 > hi || props.isTimeDisabled && props.isTimeDisabled(v);
9247
9337
  }
9248
- const openState = React56.useState(false), open = openState[0], setOpen = openState[1];
9249
- const editState = React56.useState(null), editing = editState[0], setEditing = editState[1];
9250
- const aState = React56.useState(0), active = aState[0], setActive = aState[1];
9251
- const errState = React56.useState(null);
9252
- const pos = React56.useState(null);
9253
- const boxRef = React56.useRef(null), inputRef = React56.useRef(null), listRef = React56.useRef(null), inputMerged = useMergedRef(ref, inputRef);
9338
+ const openState = React57.useState(false), open = openState[0], setOpen = openState[1];
9339
+ const editState = React57.useState(null), editing = editState[0], setEditing = editState[1];
9340
+ const aState = React57.useState(0), active = aState[0], setActive = aState[1];
9341
+ const errState = React57.useState(null);
9342
+ const pos = React57.useState(null);
9343
+ const boxRef = React57.useRef(null), inputRef = React57.useRef(null), listRef = React57.useRef(null), inputMerged = useMergedRef(ref, inputRef);
9254
9344
  const mounted = useMounted();
9255
9345
  function nearest(v) {
9256
9346
  const n3 = toMin(v);
@@ -9278,7 +9368,7 @@ window.Aura = (() => {
9278
9368
  },
9279
9369
  [open]
9280
9370
  );
9281
- React56.useEffect(
9371
+ React57.useEffect(
9282
9372
  function() {
9283
9373
  if (!open) return;
9284
9374
  function outside(e) {
@@ -9300,7 +9390,7 @@ window.Aura = (() => {
9300
9390
  },
9301
9391
  [open]
9302
9392
  );
9303
- React56.useEffect(
9393
+ React57.useEffect(
9304
9394
  function() {
9305
9395
  if (!open || !listRef.current) return;
9306
9396
  const el = listRef.current.querySelector('[data-idx="' + active + '"]');
@@ -9399,9 +9489,9 @@ window.Aura = (() => {
9399
9489
  }
9400
9490
  const error = errState[0] || props.error;
9401
9491
  const list = open && mounted && pos[0] ? (0, import_react_dom12.createPortal)(
9402
- /* @__PURE__ */ React56.createElement("div", { ref: listRef, className: "aura-combo__popover aura-time__popover", style: pos[0] }, /* @__PURE__ */ React56.createElement("ul", { id: listId, role: "listbox", "aria-label": props.label, className: "aura-combo__list" }, slots.map(function(s, i) {
9492
+ /* @__PURE__ */ React57.createElement("div", { ref: listRef, className: "aura-combo__popover aura-time__popover", style: pos[0] }, /* @__PURE__ */ React57.createElement("ul", { id: listId, role: "listbox", "aria-label": props.label, className: "aura-combo__list" }, slots.map(function(s, i) {
9403
9493
  const dis = blocked(s), sel = s === value;
9404
- return /* @__PURE__ */ React56.createElement(
9494
+ return /* @__PURE__ */ React57.createElement(
9405
9495
  "li",
9406
9496
  {
9407
9497
  key: s,
@@ -9426,13 +9516,13 @@ window.Aura = (() => {
9426
9516
  if (active !== i) setActive(i);
9427
9517
  }
9428
9518
  },
9429
- /* @__PURE__ */ React56.createElement("span", { className: "aura-combo__label" }, s),
9430
- sel ? /* @__PURE__ */ React56.createElement(Icon, { name: /* @__PURE__ */ React56.createElement(IconCheck, null), className: "aura-combo__check" }) : null
9519
+ /* @__PURE__ */ React57.createElement("span", { className: "aura-combo__label" }, s),
9520
+ sel ? /* @__PURE__ */ React57.createElement(Icon, { name: /* @__PURE__ */ React57.createElement(IconCheck, null), className: "aura-combo__check" }) : null
9431
9521
  );
9432
9522
  }))),
9433
9523
  document.body
9434
9524
  ) : null;
9435
- return /* @__PURE__ */ React56.createElement(
9525
+ return /* @__PURE__ */ React57.createElement(
9436
9526
  Field,
9437
9527
  {
9438
9528
  id,
@@ -9444,7 +9534,7 @@ window.Aura = (() => {
9444
9534
  disabled: props.disabled,
9445
9535
  className: cx(touchClass(props.touchHeight), props.className)
9446
9536
  },
9447
- /* @__PURE__ */ React56.createElement("div", { ref: boxRef, className: cx("aura-input aura-combo aura-time has-icon", open && "is-open") }, /* @__PURE__ */ React56.createElement(Icon, { name: /* @__PURE__ */ React56.createElement(IconClock, null), className: "aura-input__icon" }), /* @__PURE__ */ React56.createElement(
9537
+ /* @__PURE__ */ React57.createElement("div", { ref: boxRef, className: cx("aura-input aura-combo aura-time has-icon", open && "is-open") }, /* @__PURE__ */ React57.createElement(Icon, { name: /* @__PURE__ */ React57.createElement(IconClock, null), className: "aura-input__icon" }), /* @__PURE__ */ React57.createElement(
9448
9538
  "input",
9449
9539
  {
9450
9540
  ref: inputMerged,
@@ -9484,7 +9574,7 @@ window.Aura = (() => {
9484
9574
  }, 0);
9485
9575
  }
9486
9576
  }
9487
- ), props.clearable !== false && value != null && !props.disabled ? /* @__PURE__ */ React56.createElement(
9577
+ ), props.clearable !== false && value != null && !props.disabled ? /* @__PURE__ */ React57.createElement(
9488
9578
  "button",
9489
9579
  {
9490
9580
  type: "button",
@@ -9497,8 +9587,8 @@ window.Aura = (() => {
9497
9587
  if (inputRef.current) inputRef.current.focus();
9498
9588
  }
9499
9589
  },
9500
- /* @__PURE__ */ React56.createElement(Icon, { name: /* @__PURE__ */ React56.createElement(IconX, null) })
9501
- ) : null, /* @__PURE__ */ React56.createElement(
9590
+ /* @__PURE__ */ React57.createElement(Icon, { name: /* @__PURE__ */ React57.createElement(IconX, null) })
9591
+ ) : null, /* @__PURE__ */ React57.createElement(
9502
9592
  "button",
9503
9593
  {
9504
9594
  type: "button",
@@ -9516,14 +9606,14 @@ window.Aura = (() => {
9516
9606
  }
9517
9607
  }
9518
9608
  },
9519
- /* @__PURE__ */ React56.createElement(Icon, { name: /* @__PURE__ */ React56.createElement(IconChevronDown, null) })
9609
+ /* @__PURE__ */ React57.createElement(Icon, { name: /* @__PURE__ */ React57.createElement(IconChevronDown, null) })
9520
9610
  )),
9521
9611
  list
9522
9612
  );
9523
9613
  });
9524
9614
 
9525
9615
  // src/FileUpload.tsx
9526
- var React57 = __toESM(require_react(), 1);
9616
+ var React58 = __toESM(require_react(), 1);
9527
9617
  function matches(file, accept) {
9528
9618
  if (!accept) return true;
9529
9619
  const name = (file.name || "").toLowerCase(), type = (file.type || "").toLowerCase();
@@ -9547,24 +9637,24 @@ window.Aura = (() => {
9547
9637
  }).join(", ");
9548
9638
  }
9549
9639
  var seq = 0;
9550
- var FileUpload = React57.forwardRef(function FileUpload2(props, ref) {
9640
+ var FileUpload = React58.forwardRef(function FileUpload2(props, ref) {
9551
9641
  const t = useStrings();
9552
9642
  const auto = uid(), id = props.id || auto;
9553
9643
  const st = useMaybeControlled(props.value, props.defaultValue || [], props.onChange);
9554
9644
  const items2 = st[0] || [];
9555
- const dragState = React57.useState(false), over = dragState[0];
9556
- const inputRef = React57.useRef(null), inputMerged = useMergedRef(ref, inputRef);
9557
- const urls = React57.useRef({});
9645
+ const dragState = React58.useState(false), over = dragState[0];
9646
+ const inputRef = React58.useRef(null), inputMerged = useMergedRef(ref, inputRef);
9647
+ const urls = React58.useRef({});
9558
9648
  const maxFiles = props.multiple ? props.maxFiles : 1;
9559
9649
  const note = t.accepts(describeAccept(props.accept, t), props.maxSize ? formatBytes(props.maxSize) : "");
9560
- React57.useEffect(function() {
9650
+ React58.useEffect(function() {
9561
9651
  return function() {
9562
9652
  Object.keys(urls.current).forEach(function(k) {
9563
9653
  URL.revokeObjectURL(urls.current[k]);
9564
9654
  });
9565
9655
  };
9566
9656
  }, []);
9567
- React57.useEffect(
9657
+ React58.useEffect(
9568
9658
  function() {
9569
9659
  const el = inputRef.current;
9570
9660
  if (!el || !props.name || typeof DataTransfer === "undefined") return;
@@ -9624,7 +9714,7 @@ window.Aura = (() => {
9624
9714
  if (inputRef.current) inputRef.current.focus();
9625
9715
  }
9626
9716
  const error = props.error;
9627
- return /* @__PURE__ */ React57.createElement(
9717
+ return /* @__PURE__ */ React58.createElement(
9628
9718
  Field,
9629
9719
  {
9630
9720
  id,
@@ -9636,7 +9726,7 @@ window.Aura = (() => {
9636
9726
  disabled: props.disabled,
9637
9727
  className: props.className
9638
9728
  },
9639
- /* @__PURE__ */ React57.createElement(
9729
+ /* @__PURE__ */ React58.createElement(
9640
9730
  "div",
9641
9731
  {
9642
9732
  className: cx("aura-upload", over && "is-over", props.disabled && "is-disabled", error && "is-invalid"),
@@ -9657,9 +9747,9 @@ window.Aura = (() => {
9657
9747
  add(e.dataTransfer && e.dataTransfer.files);
9658
9748
  }
9659
9749
  },
9660
- /* @__PURE__ */ React57.createElement(Icon, { name: /* @__PURE__ */ React57.createElement(IconCloudUpload, null), size: "lg", className: "aura-upload__icon" }),
9661
- /* @__PURE__ */ React57.createElement("span", { className: "aura-upload__text" }, t.dropFiles, " "),
9662
- /* @__PURE__ */ React57.createElement(
9750
+ /* @__PURE__ */ React58.createElement(Icon, { name: /* @__PURE__ */ React58.createElement(IconCloudUpload, null), size: "lg", className: "aura-upload__icon" }),
9751
+ /* @__PURE__ */ React58.createElement("span", { className: "aura-upload__text" }, t.dropFiles, " "),
9752
+ /* @__PURE__ */ React58.createElement(
9663
9753
  "input",
9664
9754
  {
9665
9755
  ref: inputMerged,
@@ -9681,12 +9771,12 @@ window.Aura = (() => {
9681
9771
  }
9682
9772
  }
9683
9773
  ),
9684
- /* @__PURE__ */ React57.createElement("span", { className: "aura-upload__browse", "aria-hidden": true }, props.multiple ? t.browse : t.browseOne),
9685
- note ? /* @__PURE__ */ React57.createElement("span", { className: "aura-upload__note", id: id + "-note" }, note) : null
9774
+ /* @__PURE__ */ React58.createElement("span", { className: "aura-upload__browse", "aria-hidden": true }, props.multiple ? t.browse : t.browseOne),
9775
+ note ? /* @__PURE__ */ React58.createElement("span", { className: "aura-upload__note", id: id + "-note" }, note) : null
9686
9776
  ),
9687
- items2.length ? /* @__PURE__ */ React57.createElement("ul", { className: "aura-upload__list", "aria-live": "polite" }, items2.map(function(it) {
9777
+ items2.length ? /* @__PURE__ */ React58.createElement("ul", { className: "aura-upload__list", "aria-live": "polite" }, items2.map(function(it) {
9688
9778
  const src = thumb(it);
9689
- return /* @__PURE__ */ React57.createElement("li", { key: it.id, className: cx("aura-upload__item", it.error && "is-error") }, src ? /* @__PURE__ */ React57.createElement("img", { className: "aura-upload__thumb", src, alt: "" }) : /* @__PURE__ */ React57.createElement("span", { className: "aura-upload__thumb is-icon", "aria-hidden": true }, /* @__PURE__ */ React57.createElement(Icon, { name: /^image\//.test(it.type || "") ? /* @__PURE__ */ React57.createElement(IconImage, null) : /* @__PURE__ */ React57.createElement(IconFile, null), size: "md" })), /* @__PURE__ */ React57.createElement("span", { className: "aura-upload__meta" }, it.url && !it.error ? /* @__PURE__ */ React57.createElement("a", { className: "aura-upload__name", href: it.url, target: "_blank", rel: "noreferrer" }, it.name) : /* @__PURE__ */ React57.createElement("span", { className: "aura-upload__name" }, it.name), /* @__PURE__ */ React57.createElement("span", { className: "aura-upload__sub" }, it.error ? /* @__PURE__ */ React57.createElement(React57.Fragment, null, /* @__PURE__ */ React57.createElement(Icon, { name: /* @__PURE__ */ React57.createElement(IconCircleAlert, null), size: 12 }), it.error) : it.status === "uploading" ? t.uploading + (it.progress != null ? " " + Math.round(it.progress) + "%" : "") : it.status === "done" ? /* @__PURE__ */ React57.createElement(React57.Fragment, null, /* @__PURE__ */ React57.createElement(Icon, { name: /* @__PURE__ */ React57.createElement(IconCircleCheck, null), size: 12 }), formatBytes(it.size)) : formatBytes(it.size)), it.status === "uploading" ? /* @__PURE__ */ React57.createElement(
9779
+ return /* @__PURE__ */ React58.createElement("li", { key: it.id, className: cx("aura-upload__item", it.error && "is-error") }, src ? /* @__PURE__ */ React58.createElement("img", { className: "aura-upload__thumb", src, alt: "" }) : /* @__PURE__ */ React58.createElement("span", { className: "aura-upload__thumb is-icon", "aria-hidden": true }, /* @__PURE__ */ React58.createElement(Icon, { name: /^image\//.test(it.type || "") ? /* @__PURE__ */ React58.createElement(IconImage, null) : /* @__PURE__ */ React58.createElement(IconFile, null), size: "md" })), /* @__PURE__ */ React58.createElement("span", { className: "aura-upload__meta" }, it.url && !it.error ? /* @__PURE__ */ React58.createElement("a", { className: "aura-upload__name", href: it.url, target: "_blank", rel: "noreferrer" }, it.name) : /* @__PURE__ */ React58.createElement("span", { className: "aura-upload__name" }, it.name), /* @__PURE__ */ React58.createElement("span", { className: "aura-upload__sub" }, it.error ? /* @__PURE__ */ React58.createElement(React58.Fragment, null, /* @__PURE__ */ React58.createElement(Icon, { name: /* @__PURE__ */ React58.createElement(IconCircleAlert, null), size: 12 }), it.error) : it.status === "uploading" ? t.uploading + (it.progress != null ? " " + Math.round(it.progress) + "%" : "") : it.status === "done" ? /* @__PURE__ */ React58.createElement(React58.Fragment, null, /* @__PURE__ */ React58.createElement(Icon, { name: /* @__PURE__ */ React58.createElement(IconCircleCheck, null), size: 12 }), formatBytes(it.size)) : formatBytes(it.size)), it.status === "uploading" ? /* @__PURE__ */ React58.createElement(
9690
9780
  "span",
9691
9781
  {
9692
9782
  className: "aura-upload__bar",
@@ -9696,11 +9786,11 @@ window.Aura = (() => {
9696
9786
  "aria-valuemax": 100,
9697
9787
  "aria-valuenow": it.progress != null ? Math.round(it.progress) : void 0
9698
9788
  },
9699
- /* @__PURE__ */ React57.createElement("span", { style: { width: (it.progress || 0) + "%" } })
9700
- ) : null), /* @__PURE__ */ React57.createElement(
9789
+ /* @__PURE__ */ React58.createElement("span", { style: { width: (it.progress || 0) + "%" } })
9790
+ ) : null), /* @__PURE__ */ React58.createElement(
9701
9791
  IconButton,
9702
9792
  {
9703
- icon: /* @__PURE__ */ React57.createElement(IconX, null),
9793
+ icon: /* @__PURE__ */ React58.createElement(IconX, null),
9704
9794
  label: t.remove(it.name),
9705
9795
  onClick: function() {
9706
9796
  remove(it);
@@ -10016,9 +10106,9 @@ window.Aura = (() => {
10016
10106
  }
10017
10107
 
10018
10108
  // src/ThemeStyle.tsx
10019
- var React58 = __toESM(require_react(), 1);
10109
+ var React59 = __toESM(require_react(), 1);
10020
10110
  function ThemeStyle(props) {
10021
- const css = React58.useMemo(
10111
+ const css = React59.useMemo(
10022
10112
  function() {
10023
10113
  try {
10024
10114
  return createTheme({
@@ -10035,11 +10125,11 @@ window.Aura = (() => {
10035
10125
  [props.brand, props.signal, props.primary, props.name, props.selector]
10036
10126
  );
10037
10127
  if (css === null) return null;
10038
- return /* @__PURE__ */ React58.createElement("style", { "data-aura-theme": props.name || props.brand, dangerouslySetInnerHTML: { __html: css } });
10128
+ return /* @__PURE__ */ React59.createElement("style", { "data-aura-theme": props.name || props.brand, dangerouslySetInnerHTML: { __html: css } });
10039
10129
  }
10040
10130
 
10041
10131
  // src/colorScheme.tsx
10042
- var React59 = __toESM(require_react(), 1);
10132
+ var React60 = __toESM(require_react(), 1);
10043
10133
 
10044
10134
  // src/colorSchemeScript.ts
10045
10135
  var DEFAULT_KEY = "aura-color-scheme";
@@ -10056,7 +10146,7 @@ window.Aura = (() => {
10056
10146
 
10057
10147
  // src/colorScheme.tsx
10058
10148
  function ColorSchemeScript(props) {
10059
- return /* @__PURE__ */ React59.createElement(
10149
+ return /* @__PURE__ */ React60.createElement(
10060
10150
  "script",
10061
10151
  {
10062
10152
  "data-aura-color-scheme": "",
@@ -10081,7 +10171,7 @@ window.Aura = (() => {
10081
10171
  function useColorScheme(options) {
10082
10172
  const key = options && options.storageKey || DEFAULT_KEY;
10083
10173
  const fallback = options && options.defaultScheme || "system";
10084
- const subscribe2 = React59.useCallback(
10174
+ const subscribe2 = React60.useCallback(
10085
10175
  function(cb) {
10086
10176
  const mq = window.matchMedia ? window.matchMedia("(prefers-color-scheme: dark)") : null;
10087
10177
  function onSystem() {
@@ -10103,7 +10193,7 @@ window.Aura = (() => {
10103
10193
  },
10104
10194
  [fallback, key]
10105
10195
  );
10106
- const snapshot = React59.useSyncExternalStore(
10196
+ const snapshot = React60.useSyncExternalStore(
10107
10197
  subscribe2,
10108
10198
  function() {
10109
10199
  const s = readScheme(fallback);
@@ -10114,7 +10204,7 @@ window.Aura = (() => {
10114
10204
  }
10115
10205
  );
10116
10206
  const parts = snapshot.split("|");
10117
- const setScheme = React59.useCallback(
10207
+ const setScheme = React60.useCallback(
10118
10208
  function(next) {
10119
10209
  if (!valid(next)) return;
10120
10210
  try {
@@ -10133,14 +10223,14 @@ window.Aura = (() => {
10133
10223
  const cs = useColorScheme(props);
10134
10224
  const names = { light: t.schemeLight, dark: t.schemeDark, system: t.schemeSystem };
10135
10225
  const label = props.label || t.colorScheme;
10136
- return /* @__PURE__ */ React59.createElement(
10226
+ return /* @__PURE__ */ React60.createElement(
10137
10227
  DropdownMenu,
10138
10228
  {
10139
10229
  label,
10140
- trigger: /* @__PURE__ */ React59.createElement(
10230
+ trigger: /* @__PURE__ */ React60.createElement(
10141
10231
  IconButton,
10142
10232
  {
10143
- icon: cs.resolved === "dark" ? /* @__PURE__ */ React59.createElement(IconMoon, null) : /* @__PURE__ */ React59.createElement(IconSun, null),
10233
+ icon: cs.resolved === "dark" ? /* @__PURE__ */ React60.createElement(IconMoon, null) : /* @__PURE__ */ React60.createElement(IconSun, null),
10144
10234
  label: label + ": " + names[cs.scheme]
10145
10235
  }
10146
10236
  ),
@@ -10158,14 +10248,14 @@ window.Aura = (() => {
10158
10248
  }
10159
10249
 
10160
10250
  // src/Badge.tsx
10161
- var React60 = __toESM(require_react(), 1);
10162
- var Badge = React60.forwardRef(function Badge2(props, ref) {
10251
+ var React61 = __toESM(require_react(), 1);
10252
+ var Badge = React61.forwardRef(function Badge2(props, ref) {
10163
10253
  return badgeElement(props, ref);
10164
10254
  });
10165
10255
 
10166
10256
  // src/Progress.tsx
10167
- var React61 = __toESM(require_react(), 1);
10168
- var Progress = React61.forwardRef(function Progress2(props, ref) {
10257
+ var React62 = __toESM(require_react(), 1);
10258
+ var Progress = React62.forwardRef(function Progress2(props, ref) {
10169
10259
  const t = useStrings();
10170
10260
  const auto = uid(), id = props.id || auto;
10171
10261
  const max = props.max || 100, det = props.value != null;
@@ -10175,7 +10265,7 @@ window.Aura = (() => {
10175
10265
  const keyed = !!props.legend && spct > 0;
10176
10266
  const valueText = props.valueText != null ? props.valueText : keyed ? t.progressReserved(props.value, sec, max) : props.valueLabel != null ? String(props.valueLabel) : sec ? t.progressReserved(props.value, sec, max) : void 0;
10177
10267
  const shown = props.valueLabel != null ? props.valueLabel : det ? Math.round(pct) + "%" : null;
10178
- return /* @__PURE__ */ React61.createElement(
10268
+ return /* @__PURE__ */ React62.createElement(
10179
10269
  "div",
10180
10270
  {
10181
10271
  ref,
@@ -10186,8 +10276,8 @@ window.Aura = (() => {
10186
10276
  props.className
10187
10277
  )
10188
10278
  },
10189
- props.label || props.showValue && shown ? /* @__PURE__ */ React61.createElement("div", { className: "aura-progress__head" }, props.label ? /* @__PURE__ */ React61.createElement("span", { className: "aura-progress__label", id: id + "-label" }, props.label) : /* @__PURE__ */ React61.createElement("span", null), props.showValue && shown ? /* @__PURE__ */ React61.createElement("span", { className: "aura-progress__value" }, shown) : null) : null,
10190
- /* @__PURE__ */ React61.createElement(
10279
+ props.label || props.showValue && shown ? /* @__PURE__ */ React62.createElement("div", { className: "aura-progress__head" }, props.label ? /* @__PURE__ */ React62.createElement("span", { className: "aura-progress__label", id: id + "-label" }, props.label) : /* @__PURE__ */ React62.createElement("span", null), props.showValue && shown ? /* @__PURE__ */ React62.createElement("span", { className: "aura-progress__value" }, shown) : null) : null,
10280
+ /* @__PURE__ */ React62.createElement(
10191
10281
  "div",
10192
10282
  {
10193
10283
  className: cx("aura-progress__track", !det && "is-indeterminate"),
@@ -10199,8 +10289,8 @@ window.Aura = (() => {
10199
10289
  "aria-valuenow": det ? props.value : void 0,
10200
10290
  "aria-valuetext": det ? valueText : void 0
10201
10291
  },
10202
- /* @__PURE__ */ React61.createElement("span", { className: "aura-progress__bar", style: det ? { width: pct + "%" } : void 0 }),
10203
- sec ? /* @__PURE__ */ React61.createElement(
10292
+ /* @__PURE__ */ React62.createElement("span", { className: "aura-progress__bar", style: det ? { width: pct + "%" } : void 0 }),
10293
+ sec ? /* @__PURE__ */ React62.createElement(
10204
10294
  "span",
10205
10295
  {
10206
10296
  className: "aura-progress__bar aura-progress__bar--reserved",
@@ -10208,20 +10298,20 @@ window.Aura = (() => {
10208
10298
  }
10209
10299
  ) : null
10210
10300
  ),
10211
- keyed ? /* @__PURE__ */ React61.createElement("div", { className: "aura-progress__legend", "aria-hidden": "true" }, props.legend.value != null && props.legend.value !== false ? /* @__PURE__ */ React61.createElement("span", { className: "aura-progress__key" }, /* @__PURE__ */ React61.createElement("span", { className: "aura-progress__swatch" }), props.legend.value) : null, /* @__PURE__ */ React61.createElement("span", { className: "aura-progress__key" }, /* @__PURE__ */ React61.createElement("span", { className: "aura-progress__swatch aura-progress__swatch--reserved" }), props.legend.secondary)) : null,
10212
- props.hint ? /* @__PURE__ */ React61.createElement("p", { className: "aura-progress__hint" }, props.hint) : null
10301
+ keyed ? /* @__PURE__ */ React62.createElement("div", { className: "aura-progress__legend", "aria-hidden": "true" }, props.legend.value != null && props.legend.value !== false ? /* @__PURE__ */ React62.createElement("span", { className: "aura-progress__key" }, /* @__PURE__ */ React62.createElement("span", { className: "aura-progress__swatch" }), props.legend.value) : null, /* @__PURE__ */ React62.createElement("span", { className: "aura-progress__key" }, /* @__PURE__ */ React62.createElement("span", { className: "aura-progress__swatch aura-progress__swatch--reserved" }), props.legend.secondary)) : null,
10302
+ props.hint ? /* @__PURE__ */ React62.createElement("p", { className: "aura-progress__hint" }, props.hint) : null
10213
10303
  );
10214
10304
  });
10215
10305
 
10216
10306
  // src/Skeleton.tsx
10217
- var React62 = __toESM(require_react(), 1);
10218
- var Skeleton = React62.forwardRef(function Skeleton2(props, ref) {
10307
+ var React63 = __toESM(require_react(), 1);
10308
+ var Skeleton = React63.forwardRef(function Skeleton2(props, ref) {
10219
10309
  const v = props.variant || "text";
10220
10310
  if (v === "text" && (props.lines || 1) > 1) {
10221
10311
  const n3 = props.lines, rows = [];
10222
10312
  for (let i = 0; i < n3; i++)
10223
- rows.push(/* @__PURE__ */ React62.createElement("span", { key: i, className: "aura-skel aura-skel--text", style: { width: i === n3 - 1 ? "60%" : "100%" } }));
10224
- return /* @__PURE__ */ React62.createElement(
10313
+ rows.push(/* @__PURE__ */ React63.createElement("span", { key: i, className: "aura-skel aura-skel--text", style: { width: i === n3 - 1 ? "60%" : "100%" } }));
10314
+ return /* @__PURE__ */ React63.createElement(
10225
10315
  "span",
10226
10316
  {
10227
10317
  ref,
@@ -10239,17 +10329,17 @@ window.Aura = (() => {
10239
10329
  if (v === "circle") {
10240
10330
  style.width = style.height = props.size || props.width || 40;
10241
10331
  }
10242
- return /* @__PURE__ */ React62.createElement("span", { ref, "aria-hidden": true, className: cx("aura-skel", "aura-skel--" + v, props.className), style });
10332
+ return /* @__PURE__ */ React63.createElement("span", { ref, "aria-hidden": true, className: cx("aura-skel", "aura-skel--" + v, props.className), style });
10243
10333
  });
10244
10334
 
10245
10335
  // src/EmptyState.tsx
10246
- var React63 = __toESM(require_react(), 1);
10247
- var EmptyState = React63.forwardRef(function EmptyState2(props, ref) {
10336
+ var React64 = __toESM(require_react(), 1);
10337
+ var EmptyState = React64.forwardRef(function EmptyState2(props, ref) {
10248
10338
  return emptyStateElement(props, ref);
10249
10339
  });
10250
10340
 
10251
10341
  // src/Pagination.tsx
10252
- var React64 = __toESM(require_react(), 1);
10342
+ var React65 = __toESM(require_react(), 1);
10253
10343
  function pageList(page, count, sib) {
10254
10344
  let out = [], lo = Math.max(2, page - sib), hi = Math.min(count - 1, page + sib);
10255
10345
  if (page - sib <= 3) {
@@ -10269,7 +10359,7 @@ window.Aura = (() => {
10269
10359
  if (count > 1) out.push(count);
10270
10360
  return out;
10271
10361
  }
10272
- var Pagination = React64.forwardRef(function Pagination2(props, ref) {
10362
+ var Pagination = React65.forwardRef(function Pagination2(props, ref) {
10273
10363
  const t = useStrings();
10274
10364
  useAutoTip();
10275
10365
  const count = Math.max(1, props.pageCount || 1);
@@ -10289,7 +10379,7 @@ window.Aura = (() => {
10289
10379
  },
10290
10380
  extra
10291
10381
  );
10292
- return link ? /* @__PURE__ */ React64.createElement(
10382
+ return link ? /* @__PURE__ */ React65.createElement(
10293
10383
  Link,
10294
10384
  {
10295
10385
  href: link(p),
@@ -10302,7 +10392,7 @@ window.Aura = (() => {
10302
10392
  ...common
10303
10393
  },
10304
10394
  label
10305
- ) : /* @__PURE__ */ React64.createElement(
10395
+ ) : /* @__PURE__ */ React65.createElement(
10306
10396
  "button",
10307
10397
  {
10308
10398
  type: "button",
@@ -10316,7 +10406,7 @@ window.Aura = (() => {
10316
10406
  }
10317
10407
  function arrow(p, icon, label, rel, disabled) {
10318
10408
  if (!link || disabled)
10319
- return /* @__PURE__ */ React64.createElement(
10409
+ return /* @__PURE__ */ React65.createElement(
10320
10410
  IconButton,
10321
10411
  {
10322
10412
  icon,
@@ -10327,7 +10417,7 @@ window.Aura = (() => {
10327
10417
  }
10328
10418
  }
10329
10419
  );
10330
- return /* @__PURE__ */ React64.createElement(
10420
+ return /* @__PURE__ */ React65.createElement(
10331
10421
  Link,
10332
10422
  {
10333
10423
  href: link(p),
@@ -10342,17 +10432,17 @@ window.Aura = (() => {
10342
10432
  }
10343
10433
  }
10344
10434
  },
10345
- /* @__PURE__ */ React64.createElement(Icon, { name: icon, size: "sm" })
10435
+ /* @__PURE__ */ React65.createElement(Icon, { name: icon, size: "sm" })
10346
10436
  );
10347
10437
  }
10348
- return /* @__PURE__ */ React64.createElement("nav", { ref, className: cx("aura-pagination", props.className), "aria-label": props.label || t.pagination }, arrow(page - 1, /* @__PURE__ */ React64.createElement(IconChevronLeft, null), t.prevPage, "prev", page <= 1), /* @__PURE__ */ React64.createElement("ol", { className: "aura-pagination__list" }, pageList(page, count, props.siblingCount == null ? 1 : props.siblingCount).map(function(p) {
10349
- return typeof p === "number" ? /* @__PURE__ */ React64.createElement("li", { key: p }, item(p, p)) : /* @__PURE__ */ React64.createElement("li", { key: p, className: "aura-pagination__gap", "aria-hidden": true }, "\u2026");
10350
- })), /* @__PURE__ */ React64.createElement("span", { className: "aura-pagination__compact", "aria-hidden": true }, t.page(page, count)), arrow(page + 1, /* @__PURE__ */ React64.createElement(IconChevronRight, null), t.nextPage, "next", page >= count));
10438
+ return /* @__PURE__ */ React65.createElement("nav", { ref, className: cx("aura-pagination", props.className), "aria-label": props.label || t.pagination }, arrow(page - 1, /* @__PURE__ */ React65.createElement(IconChevronLeft, null), t.prevPage, "prev", page <= 1), /* @__PURE__ */ React65.createElement("ol", { className: "aura-pagination__list" }, pageList(page, count, props.siblingCount == null ? 1 : props.siblingCount).map(function(p) {
10439
+ return typeof p === "number" ? /* @__PURE__ */ React65.createElement("li", { key: p }, item(p, p)) : /* @__PURE__ */ React65.createElement("li", { key: p, className: "aura-pagination__gap", "aria-hidden": true }, "\u2026");
10440
+ })), /* @__PURE__ */ React65.createElement("span", { className: "aura-pagination__compact", "aria-hidden": true }, t.page(page, count)), arrow(page + 1, /* @__PURE__ */ React65.createElement(IconChevronRight, null), t.nextPage, "next", page >= count));
10351
10441
  });
10352
10442
 
10353
10443
  // src/Accordion.tsx
10354
- var React65 = __toESM(require_react(), 1);
10355
- var Accordion = React65.forwardRef(function Accordion2(props, ref) {
10444
+ var React66 = __toESM(require_react(), 1);
10445
+ var Accordion = React66.forwardRef(function Accordion2(props, ref) {
10356
10446
  const auto = uid(), base = props.id || auto;
10357
10447
  const multiple = props.type === "multiple";
10358
10448
  const st = useMaybeControlled(
@@ -10390,9 +10480,9 @@ window.Aura = (() => {
10390
10480
  n3.focus();
10391
10481
  }
10392
10482
  }
10393
- return /* @__PURE__ */ React65.createElement("div", { ref, className: cx("aura-accordion", props.className), onKeyDown: onKey }, items2.map(function(it) {
10483
+ return /* @__PURE__ */ React66.createElement("div", { ref, className: cx("aura-accordion", props.className), onKeyDown: onKey }, items2.map(function(it) {
10394
10484
  const on = open.indexOf(it.id) >= 0, bid = base + "-btn-" + it.id, pid = base + "-panel-" + it.id;
10395
- return /* @__PURE__ */ React65.createElement("div", { key: it.id, className: cx("aura-accordion__item", on && "is-open") }, /* @__PURE__ */ React65.createElement(HT, { className: "aura-accordion__heading" }, /* @__PURE__ */ React65.createElement(
10485
+ return /* @__PURE__ */ React66.createElement("div", { key: it.id, className: cx("aura-accordion__item", on && "is-open") }, /* @__PURE__ */ React66.createElement(HT, { className: "aura-accordion__heading" }, /* @__PURE__ */ React66.createElement(
10396
10486
  "button",
10397
10487
  {
10398
10488
  type: "button",
@@ -10405,10 +10495,10 @@ window.Aura = (() => {
10405
10495
  toggle(it.id);
10406
10496
  }
10407
10497
  },
10408
- it.icon ? /* @__PURE__ */ React65.createElement(Icon, { name: it.icon, className: "aura-accordion__lead" }) : null,
10409
- /* @__PURE__ */ React65.createElement("span", { className: "aura-accordion__title" }, /* @__PURE__ */ React65.createElement("span", { id: it.description ? bid + "-title" : void 0 }, it.title), it.description ? /* @__PURE__ */ React65.createElement("span", { className: "aura-accordion__desc", id: bid + "-desc", "aria-hidden": true }, it.description) : null),
10410
- /* @__PURE__ */ React65.createElement(Icon, { name: /* @__PURE__ */ React65.createElement(IconChevronDown, null), className: "aura-accordion__chevron" })
10411
- )), /* @__PURE__ */ React65.createElement(
10498
+ it.icon ? /* @__PURE__ */ React66.createElement(Icon, { name: it.icon, className: "aura-accordion__lead" }) : null,
10499
+ /* @__PURE__ */ React66.createElement("span", { className: "aura-accordion__title" }, /* @__PURE__ */ React66.createElement("span", { id: it.description ? bid + "-title" : void 0 }, it.title), it.description ? /* @__PURE__ */ React66.createElement("span", { className: "aura-accordion__desc", id: bid + "-desc", "aria-hidden": true }, it.description) : null),
10500
+ /* @__PURE__ */ React66.createElement(Icon, { name: /* @__PURE__ */ React66.createElement(IconChevronDown, null), className: "aura-accordion__chevron" })
10501
+ )), /* @__PURE__ */ React66.createElement(
10412
10502
  "div",
10413
10503
  {
10414
10504
  id: pid,
@@ -10423,7 +10513,7 @@ window.Aura = (() => {
10423
10513
  });
10424
10514
 
10425
10515
  // src/Popover.tsx
10426
- var React66 = __toESM(require_react(), 1);
10516
+ var React67 = __toESM(require_react(), 1);
10427
10517
  var import_react_dom13 = __toESM(require_react_dom(), 1);
10428
10518
  function position(anchor, pop, placement) {
10429
10519
  const r2 = anchor.getBoundingClientRect(), pw = pop.offsetWidth, ph = pop.scrollHeight, vw = window.innerWidth, vh = window.innerHeight, gap = 6;
@@ -10441,15 +10531,15 @@ window.Aura = (() => {
10441
10531
  const left = align === "end" ? r2.right - pw : align === "center" ? r2.left + r2.width / 2 - pw / 2 : r2.left;
10442
10532
  return { top: Math.max(8, top), left: Math.max(8, Math.min(left, vw - pw - 8)), side, maxHeight };
10443
10533
  }
10444
- var Popover = React66.forwardRef(function Popover2(props, ref) {
10534
+ var Popover = React67.forwardRef(function Popover2(props, ref) {
10445
10535
  const t = useStrings();
10446
10536
  const density = useDensity();
10447
10537
  const auto = uid(), id = props.id || auto;
10448
10538
  const st = useMaybeControlled(props.open, !!props.defaultOpen, props.onOpenChange);
10449
10539
  const open = !!st[0];
10450
- const wrap = React66.useRef(null), pop = React66.useRef(null), popMerged = useMergedRef(ref, pop);
10451
- const pos = React66.useState(null), mounted = useMounted();
10452
- const inTree = React66.useRef(false);
10540
+ const wrap = React67.useRef(null), pop = React67.useRef(null), popMerged = useMergedRef(ref, pop);
10541
+ const pos = React67.useState(null), mounted = useMounted();
10542
+ const inTree = React67.useRef(false);
10453
10543
  function trigger() {
10454
10544
  return wrap.current && (wrap.current.querySelector('button, [role="button"], a, input') || wrap.current.firstElementChild);
10455
10545
  }
@@ -10476,7 +10566,7 @@ window.Aura = (() => {
10476
10566
  },
10477
10567
  [open, mounted, props.placement]
10478
10568
  );
10479
- React66.useEffect(
10569
+ React67.useEffect(
10480
10570
  function() {
10481
10571
  if (!open || !mounted) return;
10482
10572
  if (props.autoFocus !== false && pop.current) {
@@ -10508,9 +10598,9 @@ window.Aura = (() => {
10508
10598
  },
10509
10599
  [open, mounted]
10510
10600
  );
10511
- const child = React66.Children.only(props.trigger);
10601
+ const child = React67.Children.only(props.trigger);
10512
10602
  const panel = open && mounted ? (0, import_react_dom13.createPortal)(
10513
- /* @__PURE__ */ React66.createElement(
10603
+ /* @__PURE__ */ React67.createElement(
10514
10604
  "div",
10515
10605
  {
10516
10606
  ref: popMerged,
@@ -10540,17 +10630,17 @@ window.Aura = (() => {
10540
10630
  } else trapTab(e, pop.current);
10541
10631
  }
10542
10632
  },
10543
- props.title ? /* @__PURE__ */ React66.createElement("div", { className: "aura-popover__head" }, /* @__PURE__ */ React66.createElement("p", { className: "aura-popover__title", id: id + "-title" }, props.title), /* @__PURE__ */ React66.createElement(
10633
+ props.title ? /* @__PURE__ */ React67.createElement("div", { className: "aura-popover__head" }, /* @__PURE__ */ React67.createElement("p", { className: "aura-popover__title", id: id + "-title" }, props.title), /* @__PURE__ */ React67.createElement(
10544
10634
  IconButton,
10545
10635
  {
10546
- icon: /* @__PURE__ */ React66.createElement(IconX, null),
10636
+ icon: /* @__PURE__ */ React67.createElement(IconX, null),
10547
10637
  label: t.close,
10548
10638
  onClick: function() {
10549
10639
  close(true);
10550
10640
  }
10551
10641
  }
10552
10642
  )) : null,
10553
- /* @__PURE__ */ React66.createElement("div", { className: "aura-popover__body" }, typeof props.children === "function" ? props.children({
10643
+ /* @__PURE__ */ React67.createElement("div", { className: "aura-popover__body" }, typeof props.children === "function" ? props.children({
10554
10644
  close: function() {
10555
10645
  close(true);
10556
10646
  }
@@ -10558,7 +10648,7 @@ window.Aura = (() => {
10558
10648
  ),
10559
10649
  document.body
10560
10650
  ) : null;
10561
- return /* @__PURE__ */ React66.createElement("span", { ref: wrap, className: "aura-popover-anchor" }, React66.cloneElement(child, {
10651
+ return /* @__PURE__ */ React67.createElement("span", { ref: wrap, className: "aura-popover-anchor" }, React67.cloneElement(child, {
10562
10652
  onClick: function(e) {
10563
10653
  if (child.props.onClick) child.props.onClick(e);
10564
10654
  st[1](!open);
@@ -10570,7 +10660,7 @@ window.Aura = (() => {
10570
10660
  });
10571
10661
 
10572
10662
  // src/NumberField.tsx
10573
- var React67 = __toESM(require_react(), 1);
10663
+ var React68 = __toESM(require_react(), 1);
10574
10664
  function decimalsOf(n3) {
10575
10665
  const s = String(n3);
10576
10666
  const i = s.indexOf(".");
@@ -10583,7 +10673,7 @@ window.Aura = (() => {
10583
10673
  if (!/^-?(\d+\.?\d*|\.\d+)$/.test(s)) return NaN;
10584
10674
  return Number(s);
10585
10675
  }
10586
- var NumberField = React67.forwardRef(function NumberField2(props, ref) {
10676
+ var NumberField = React68.forwardRef(function NumberField2(props, ref) {
10587
10677
  const t = useStrings();
10588
10678
  const auto = uid(), id = props.id || auto;
10589
10679
  const step = props.step || 1;
@@ -10594,7 +10684,7 @@ window.Aura = (() => {
10594
10684
  props.onChange
10595
10685
  );
10596
10686
  const value = st[0], setValue = st[1];
10597
- const draftState = React67.useState(null), draft = draftState[0], setDraft = draftState[1];
10687
+ const draftState = React68.useState(null), draft = draftState[0], setDraft = draftState[1];
10598
10688
  function fmt2(n3) {
10599
10689
  if (n3 == null || isNaN(n3)) return "";
10600
10690
  return n3.toLocaleString("en", { minimumFractionDigits: decimals, maximumFractionDigits: decimals });
@@ -10643,7 +10733,7 @@ window.Aura = (() => {
10643
10733
  };
10644
10734
  const valueText = value == null ? void 0 : [affixText(props.prefix), fmt2(value), affixText(props.suffix)].join(" ").trim();
10645
10735
  const stepper = props.stepper !== false && !props.readOnly;
10646
- return /* @__PURE__ */ React67.createElement(
10736
+ return /* @__PURE__ */ React68.createElement(
10647
10737
  Field,
10648
10738
  {
10649
10739
  id,
@@ -10655,7 +10745,7 @@ window.Aura = (() => {
10655
10745
  disabled: props.disabled,
10656
10746
  className: cx(touchClass(props.touchHeight), props.className)
10657
10747
  },
10658
- /* @__PURE__ */ React67.createElement("div", { className: cx("aura-input aura-number", stepper && "has-stepper") }, props.prefix != null ? /* @__PURE__ */ React67.createElement("span", { className: "aura-number__affix", "aria-hidden": true }, props.prefix) : null, /* @__PURE__ */ React67.createElement(
10748
+ /* @__PURE__ */ React68.createElement("div", { className: cx("aura-input aura-number", stepper && "has-stepper") }, props.prefix != null ? /* @__PURE__ */ React68.createElement("span", { className: "aura-number__affix", "aria-hidden": true }, props.prefix) : null, /* @__PURE__ */ React68.createElement(
10659
10749
  "input",
10660
10750
  {
10661
10751
  ref,
@@ -10702,7 +10792,7 @@ window.Aura = (() => {
10702
10792
  },
10703
10793
  onKeyDown
10704
10794
  }
10705
- ), props.suffix != null ? /* @__PURE__ */ React67.createElement("span", { className: "aura-number__affix", "aria-hidden": true }, props.suffix) : null, stepper ? /* @__PURE__ */ React67.createElement("span", { className: "aura-number__steps" }, /* @__PURE__ */ React67.createElement(
10795
+ ), props.suffix != null ? /* @__PURE__ */ React68.createElement("span", { className: "aura-number__affix", "aria-hidden": true }, props.suffix) : null, stepper ? /* @__PURE__ */ React68.createElement("span", { className: "aura-number__steps" }, /* @__PURE__ */ React68.createElement(
10706
10796
  "button",
10707
10797
  {
10708
10798
  type: "button",
@@ -10718,8 +10808,8 @@ window.Aura = (() => {
10718
10808
  nudge(-step);
10719
10809
  }
10720
10810
  },
10721
- /* @__PURE__ */ React67.createElement(Icon, { name: /* @__PURE__ */ React67.createElement(IconMinus, null) })
10722
- ), /* @__PURE__ */ React67.createElement(
10811
+ /* @__PURE__ */ React68.createElement(Icon, { name: /* @__PURE__ */ React68.createElement(IconMinus, null) })
10812
+ ), /* @__PURE__ */ React68.createElement(
10723
10813
  "button",
10724
10814
  {
10725
10815
  type: "button",
@@ -10735,14 +10825,14 @@ window.Aura = (() => {
10735
10825
  nudge(step);
10736
10826
  }
10737
10827
  },
10738
- /* @__PURE__ */ React67.createElement(Icon, { name: /* @__PURE__ */ React67.createElement(IconPlus, null) })
10828
+ /* @__PURE__ */ React68.createElement(Icon, { name: /* @__PURE__ */ React68.createElement(IconPlus, null) })
10739
10829
  )) : null)
10740
10830
  );
10741
10831
  });
10742
10832
 
10743
10833
  // src/Stepper.tsx
10744
- var React68 = __toESM(require_react(), 1);
10745
- var Stepper = React68.forwardRef(function Stepper2(props, ref) {
10834
+ var React69 = __toESM(require_react(), 1);
10835
+ var Stepper = React69.forwardRef(function Stepper2(props, ref) {
10746
10836
  const t = useStrings();
10747
10837
  const idBase = uid();
10748
10838
  const steps = props.steps || [];
@@ -10753,22 +10843,22 @@ window.Aura = (() => {
10753
10843
  if (at < 0) at = 0;
10754
10844
  const vertical = props.orientation === "vertical";
10755
10845
  const cur2 = steps[at];
10756
- return /* @__PURE__ */ React68.createElement(
10846
+ return /* @__PURE__ */ React69.createElement(
10757
10847
  "nav",
10758
10848
  {
10759
10849
  ref,
10760
10850
  "aria-label": props.label,
10761
10851
  className: cx("aura-stepper", vertical ? "aura-stepper--vertical" : "aura-stepper--horizontal", props.className)
10762
10852
  },
10763
- /* @__PURE__ */ React68.createElement("ol", { className: "aura-stepper__list" }, steps.map(function(s, i) {
10853
+ /* @__PURE__ */ React69.createElement("ol", { className: "aura-stepper__list" }, steps.map(function(s, i) {
10764
10854
  const state = i < at ? "done" : i === at ? "current" : "upcoming";
10765
10855
  const error = s.status === "error";
10766
- const marker = /* @__PURE__ */ React68.createElement("span", { className: "aura-stepper__marker", "aria-hidden": true }, error ? /* @__PURE__ */ React68.createElement(Icon, { name: /* @__PURE__ */ React68.createElement(IconCircleAlert, null) }) : state === "done" ? /* @__PURE__ */ React68.createElement(Icon, { name: /* @__PURE__ */ React68.createElement(IconCheck, null) }) : i + 1);
10856
+ const marker = /* @__PURE__ */ React69.createElement("span", { className: "aura-stepper__marker", "aria-hidden": true }, error ? /* @__PURE__ */ React69.createElement(Icon, { name: /* @__PURE__ */ React69.createElement(IconCircleAlert, null) }) : state === "done" ? /* @__PURE__ */ React69.createElement(Icon, { name: /* @__PURE__ */ React69.createElement(IconCheck, null) }) : i + 1);
10767
10857
  const note = error ? t.stepError : state === "done" ? t.stepDone : "";
10768
10858
  const clickable = state === "done" && !!props.onStepClick;
10769
10859
  const named = clickable && (typeof s.label === "string" || typeof s.label === "number") && String(s.label).trim() !== "";
10770
10860
  const descId = idBase + "-step-" + i;
10771
- const text2 = /* @__PURE__ */ React68.createElement("span", { className: "aura-stepper__text" }, named ? /* @__PURE__ */ React68.createElement("span", { className: "aura-sr-only" }, String(s.label) + (note ? ", " + note : "")) : null, /* @__PURE__ */ React68.createElement("span", { className: "aura-stepper__label", "aria-hidden": named ? true : void 0 }, s.label, note && !named ? /* @__PURE__ */ React68.createElement("span", { className: "aura-sr-only" }, ", " + note) : null), s.description ? /* @__PURE__ */ React68.createElement(
10861
+ const text2 = /* @__PURE__ */ React69.createElement("span", { className: "aura-stepper__text" }, named ? /* @__PURE__ */ React69.createElement("span", { className: "aura-sr-only" }, String(s.label) + (note ? ", " + note : "")) : null, /* @__PURE__ */ React69.createElement("span", { className: "aura-stepper__label", "aria-hidden": named ? true : void 0 }, s.label, note && !named ? /* @__PURE__ */ React69.createElement("span", { className: "aura-sr-only" }, ", " + note) : null), s.description ? /* @__PURE__ */ React69.createElement(
10772
10862
  "span",
10773
10863
  {
10774
10864
  className: "aura-stepper__desc",
@@ -10777,14 +10867,14 @@ window.Aura = (() => {
10777
10867
  },
10778
10868
  s.description
10779
10869
  ) : null);
10780
- return /* @__PURE__ */ React68.createElement(
10870
+ return /* @__PURE__ */ React69.createElement(
10781
10871
  "li",
10782
10872
  {
10783
10873
  key: s.id,
10784
10874
  className: cx("aura-stepper__item", "is-" + state, error && "is-error"),
10785
10875
  "aria-current": state === "current" ? "step" : void 0
10786
10876
  },
10787
- clickable ? /* @__PURE__ */ React68.createElement(
10877
+ clickable ? /* @__PURE__ */ React69.createElement(
10788
10878
  "button",
10789
10879
  {
10790
10880
  type: "button",
@@ -10796,19 +10886,19 @@ window.Aura = (() => {
10796
10886
  },
10797
10887
  marker,
10798
10888
  text2
10799
- ) : /* @__PURE__ */ React68.createElement("span", { className: "aura-stepper__step" }, marker, text2)
10889
+ ) : /* @__PURE__ */ React69.createElement("span", { className: "aura-stepper__step" }, marker, text2)
10800
10890
  );
10801
10891
  })),
10802
- !vertical && cur2 ? /* @__PURE__ */ React68.createElement("p", { className: "aura-stepper__compact", "aria-hidden": true }, /* @__PURE__ */ React68.createElement("span", { className: "aura-stepper__count" }, t.stepOf(at + 1, steps.length), cur2.status === "error" ? /* @__PURE__ */ React68.createElement("span", { className: "aura-stepper__count-error" }, " \u2014 " + t.stepError) : null), /* @__PURE__ */ React68.createElement("span", { className: "aura-stepper__compact-label" }, cur2.label)) : null
10892
+ !vertical && cur2 ? /* @__PURE__ */ React69.createElement("p", { className: "aura-stepper__compact", "aria-hidden": true }, /* @__PURE__ */ React69.createElement("span", { className: "aura-stepper__count" }, t.stepOf(at + 1, steps.length), cur2.status === "error" ? /* @__PURE__ */ React69.createElement("span", { className: "aura-stepper__count-error" }, " \u2014 " + t.stepError) : null), /* @__PURE__ */ React69.createElement("span", { className: "aura-stepper__compact-label" }, cur2.label)) : null
10803
10893
  );
10804
10894
  });
10805
10895
 
10806
10896
  // src/SegmentedControl.tsx
10807
- var React69 = __toESM(require_react(), 1);
10897
+ var React70 = __toESM(require_react(), 1);
10808
10898
  function toOpt2(o) {
10809
10899
  return typeof o === "object" ? o : { value: o, label: o };
10810
10900
  }
10811
- var SegmentedControl = React69.forwardRef(
10901
+ var SegmentedControl = React70.forwardRef(
10812
10902
  function SegmentedControl2(props, ref) {
10813
10903
  const options = (props.options || []).map(toOpt2);
10814
10904
  useAutoTip();
@@ -10822,7 +10912,7 @@ window.Aura = (() => {
10822
10912
  );
10823
10913
  const value = st[0], setValue = st[1];
10824
10914
  const auto = uid(), id = props.id || auto;
10825
- const refs = React69.useRef([]);
10915
+ const refs = React70.useRef([]);
10826
10916
  const selIdx = options.findIndex(function(o) {
10827
10917
  return o.value === value;
10828
10918
  });
@@ -10855,7 +10945,7 @@ window.Aura = (() => {
10855
10945
  move(options.length, -1);
10856
10946
  }
10857
10947
  }
10858
- return /* @__PURE__ */ React69.createElement(
10948
+ return /* @__PURE__ */ React70.createElement(
10859
10949
  "div",
10860
10950
  {
10861
10951
  ref,
@@ -10875,7 +10965,7 @@ window.Aura = (() => {
10875
10965
  options.map(function(o, i) {
10876
10966
  const on = o.value === value;
10877
10967
  const off = props.disabled || o.disabled;
10878
- return /* @__PURE__ */ React69.createElement(
10968
+ return /* @__PURE__ */ React70.createElement(
10879
10969
  "button",
10880
10970
  {
10881
10971
  key: o.value,
@@ -10897,8 +10987,8 @@ window.Aura = (() => {
10897
10987
  onKeyDown(e, i);
10898
10988
  }
10899
10989
  },
10900
- o.icon ? /* @__PURE__ */ React69.createElement(Icon, { name: o.icon }) : null,
10901
- o.iconOnly ? null : /* @__PURE__ */ React69.createElement("span", null, o.label)
10990
+ o.icon ? /* @__PURE__ */ React70.createElement(Icon, { name: o.icon }) : null,
10991
+ o.iconOnly ? null : /* @__PURE__ */ React70.createElement("span", null, o.label)
10902
10992
  );
10903
10993
  })
10904
10994
  );