@jirawatpyk/aura-react 4.4.1 → 4.5.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.
@@ -28,7 +28,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  ));
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
30
 
31
- // src/index.js
31
+ // src/index.ts
32
32
  var index_exports = {};
33
33
  __export(index_exports, {
34
34
  Accordion: () => Accordion,
@@ -97,10 +97,10 @@ __export(index_exports, {
97
97
  });
98
98
  module.exports = __toCommonJS(index_exports);
99
99
 
100
- // src/Icon.js
100
+ // src/Icon.tsx
101
101
  var React2 = __toESM(require("react"), 1);
102
102
 
103
- // src/internal.js
103
+ // src/internal.tsx
104
104
  var React = __toESM(require("react"), 1);
105
105
  function cx() {
106
106
  return Array.prototype.filter.call(arguments, Boolean).join(" ");
@@ -171,7 +171,7 @@ function useMergedRef(a, b) {
171
171
  }, [a, b]);
172
172
  }
173
173
 
174
- // src/Icon.js
174
+ // src/Icon.tsx
175
175
  var h = React2.createElement;
176
176
  var ICONS = { "check": [["path", { "d": "M20 6 9 17l-5-5" }]], "x": [["path", { "d": "M18 6 6 18" }], ["path", { "d": "m6 6 12 12" }]], "plus": [["path", { "d": "M5 12h14" }], ["path", { "d": "M12 5v14" }]], "minus": [["path", { "d": "M5 12h14" }]], "search": [["path", { "d": "m21 21-4.34-4.34" }], ["circle", { "cx": "11", "cy": "11", "r": "8" }]], "chevron-down": [["path", { "d": "m6 9 6 6 6-6" }]], "chevron-up": [["path", { "d": "m18 15-6-6-6 6" }]], "chevron-left": [["path", { "d": "m15 18-6-6 6-6" }]], "chevron-right": [["path", { "d": "m9 18 6-6-6-6" }]], "arrow-right": [["path", { "d": "M5 12h14" }], ["path", { "d": "m12 5 7 7-7 7" }]], "arrow-up-right": [["path", { "d": "M7 7h10v10" }], ["path", { "d": "M7 17 17 7" }]], "arrow-up-down": [["path", { "d": "m21 16-4 4-4-4" }], ["path", { "d": "M17 20V4" }], ["path", { "d": "m3 8 4-4 4 4" }], ["path", { "d": "M7 4v16" }]], "loader-circle": [["path", { "d": "M21 12a9 9 0 1 1-6.219-8.56" }]], "circle-alert": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["line", { "x1": "12", "x2": "12", "y1": "8", "y2": "12" }], ["line", { "x1": "12", "x2": "12.01", "y1": "16", "y2": "16" }]], "circle-check": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "m16 9-5.5 5.5L8 12" }]], "info": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 16v-4" }], ["path", { "d": "M12 8h.01" }]], "triangle-alert": [["path", { "d": "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }], ["path", { "d": "M12 9v4" }], ["path", { "d": "M12 17h.01" }]], "settings": [["path", { "d": "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }], ["circle", { "cx": "12", "cy": "12", "r": "3" }]], "user": [["path", { "d": "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }], ["circle", { "cx": "12", "cy": "7", "r": "4" }]], "users": [["path", { "d": "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }], ["path", { "d": "M16 3.128a4 4 0 0 1 0 7.744" }], ["path", { "d": "M22 21v-2a4 4 0 0 0-3-3.87" }], ["circle", { "cx": "9", "cy": "7", "r": "4" }]], "filter": [["path", { "d": "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z" }]], "ellipsis": [["circle", { "cx": "12", "cy": "12", "r": "1" }], ["circle", { "cx": "19", "cy": "12", "r": "1" }], ["circle", { "cx": "5", "cy": "12", "r": "1" }]], "external-link": [["path", { "d": "M15 3h6v6" }], ["path", { "d": "M10 14 21 3" }], ["path", { "d": "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }]], "copy": [["rect", { "width": "14", "height": "14", "x": "8", "y": "8", "rx": "2", "ry": "2" }], ["path", { "d": "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }]], "trash-2": [["path", { "d": "M10 11v6" }], ["path", { "d": "M14 11v6" }], ["path", { "d": "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }], ["path", { "d": "M3 6h18" }], ["path", { "d": "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }]], "pencil": [["path", { "d": "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }], ["path", { "d": "m15 5 4 4" }]], "download": [["path", { "d": "M12 15V3" }], ["path", { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }], ["path", { "d": "m7 10 5 5 5-5" }]], "upload": [["path", { "d": "M12 3v12" }], ["path", { "d": "m17 8-5-5-5 5" }], ["path", { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }]], "calendar": [["path", { "d": "M8 2v3" }], ["path", { "d": "M16 2v3" }], ["rect", { "x": "3", "y": "3", "width": "18", "height": "18", "rx": "2" }], ["path", { "d": "M3 9h18" }]], "bell": [["path", { "d": "M10.268 21a2 2 0 0 0 3.464 0" }], ["path", { "d": "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" }]], "menu": [["path", { "d": "M4 5h16" }], ["path", { "d": "M4 12h16" }], ["path", { "d": "M4 19h16" }]], "eye": [["path", { "d": "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }], ["circle", { "cx": "12", "cy": "12", "r": "3" }]], "log-out": [["path", { "d": "m16 17 5-5-5-5" }], ["path", { "d": "M21 12H9" }], ["path", { "d": "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }]], "circle": [["circle", { "cx": "12", "cy": "12", "r": "10" }]], "circle-dot-dashed": [["path", { "d": "M10.1 2.18a9.93 9.93 0 0 1 3.8 0" }], ["path", { "d": "M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7" }], ["path", { "d": "M21.82 10.1a9.93 9.93 0 0 1 0 3.8" }], ["path", { "d": "M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69" }], ["path", { "d": "M13.9 21.82a9.94 9.94 0 0 1-3.8 0" }], ["path", { "d": "M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7" }], ["path", { "d": "M2.18 13.9a9.93 9.93 0 0 1 0-3.8" }], ["path", { "d": "M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69" }], ["circle", { "cx": "12", "cy": "12", "r": "1" }]], "ban": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M4.929 4.929 19.07 19.071" }]], "arrow-up": [["path", { "d": "m5 12 7-7 7 7" }], ["path", { "d": "M12 19V5" }]], "arrow-down": [["path", { "d": "M12 5v14" }], ["path", { "d": "m19 12-7 7-7-7" }]], "inbox": [["polyline", { "points": "22 12 16 12 14 15 10 15 8 12 2 12" }], ["path", { "d": "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" }]], "pin": [["path", { "d": "M12 17v5" }], ["path", { "d": "M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z" }]], "pin-off": [["path", { "d": "M12 17v5" }], ["path", { "d": "M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89" }], ["path", { "d": "m2 2 20 20" }], ["path", { "d": "M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11" }]], "eye-off": [["path", { "d": "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }], ["path", { "d": "M14.084 14.158a3 3 0 0 1-4.242-4.242" }], ["path", { "d": "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }], ["path", { "d": "m2 2 20 20" }]], "columns-3": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M9 3v18" }], ["path", { "d": "M15 3v18" }]], "arrow-left": [["path", { "d": "m12 19-7-7 7-7" }], ["path", { "d": "M19 12H5" }]], "rotate-ccw": [["path", { "d": "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { "d": "M3 3v5h5" }]], "house": [["path", { "d": "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" }], ["path", { "d": "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }]], "layout-dashboard": [["rect", { "width": "7", "height": "9", "x": "3", "y": "3", "rx": "1" }], ["rect", { "width": "7", "height": "5", "x": "14", "y": "3", "rx": "1" }], ["rect", { "width": "7", "height": "9", "x": "14", "y": "12", "rx": "1" }], ["rect", { "width": "7", "height": "5", "x": "3", "y": "16", "rx": "1" }]], "folder": [["path", { "d": "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }]], "chart-column": [["path", { "d": "M3 3v16a2 2 0 0 0 2 2h16" }], ["path", { "d": "M18 17V9" }], ["path", { "d": "M13 17V5" }], ["path", { "d": "M8 17v-3" }]], "file-text": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }], ["path", { "d": "M10 9H8" }], ["path", { "d": "M16 13H8" }], ["path", { "d": "M16 17H8" }]], "mail": [["path", { "d": "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" }], ["rect", { "x": "2", "y": "4", "width": "20", "height": "16", "rx": "2" }]], "lock": [["rect", { "width": "18", "height": "11", "x": "3", "y": "11", "rx": "2", "ry": "2" }], ["path", { "d": "M7 11V7a5 5 0 0 1 10 0v4" }]], "clock": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 6v6l4 2" }]], "trending-up": [["path", { "d": "M16 7h6v6" }], ["path", { "d": "m22 7-8.5 8.5-5-5L2 17" }]], "trending-down": [["path", { "d": "M16 17h6v-6" }], ["path", { "d": "m22 17-8.5-8.5-5 5L2 7" }]], "image": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2", "ry": "2" }], ["circle", { "cx": "9", "cy": "9", "r": "2" }], ["path", { "d": "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }]], "paperclip": [["path", { "d": "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551" }]], "cloud-upload": [["path", { "d": "M12 13v8" }], ["path", { "d": "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242" }], ["path", { "d": "m8 17 4-4 4 4" }]], "file": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }]] };
177
177
  var SIZES = { sm: 16, md: 20, lg: 24 };
@@ -200,7 +200,7 @@ var Icon = React2.forwardRef(function Icon2(props, ref) {
200
200
  });
201
201
  var iconNames = Object.keys(ICONS);
202
202
 
203
- // src/Button.js
203
+ // src/Button.tsx
204
204
  var React3 = __toESM(require("react"), 1);
205
205
  var h2 = React3.createElement;
206
206
  var Button = React3.forwardRef(function Button2(props, ref) {
@@ -225,7 +225,7 @@ var Button = React3.forwardRef(function Button2(props, ref) {
225
225
  );
226
226
  });
227
227
 
228
- // src/IconButton.js
228
+ // src/IconButton.tsx
229
229
  var React4 = __toESM(require("react"), 1);
230
230
  var h3 = React4.createElement;
231
231
  var IconButton = React4.forwardRef(function IconButton2(props, ref) {
@@ -239,7 +239,7 @@ var IconButton = React4.forwardRef(function IconButton2(props, ref) {
239
239
  }), h3(Icon, { name: props.icon, size: props.size || "sm" }));
240
240
  });
241
241
 
242
- // src/Menu.js
242
+ // src/Menu.tsx
243
243
  var React5 = __toESM(require("react"), 1);
244
244
  var import_react_dom = require("react-dom");
245
245
  var h4 = React5.createElement;
@@ -333,7 +333,7 @@ var Menu = React5.forwardRef(function Menu2(props, ref) {
333
333
  return mounted ? (0, import_react_dom.createPortal)(el, document.body) : null;
334
334
  });
335
335
 
336
- // src/DropdownMenu.js
336
+ // src/DropdownMenu.tsx
337
337
  var React6 = __toESM(require("react"), 1);
338
338
  var h5 = React6.createElement;
339
339
  var DropdownMenu = React6.forwardRef(function DropdownMenu2(props, ref) {
@@ -361,13 +361,13 @@ var DropdownMenu = React6.forwardRef(function DropdownMenu2(props, ref) {
361
361
  items: props.items,
362
362
  onClose: function(restore) {
363
363
  setAnchor(null);
364
- if (restore && anchor.focus) anchor.focus();
364
+ if (restore && typeof anchor.focus === "function") anchor.focus();
365
365
  }
366
366
  }) : null
367
367
  );
368
368
  });
369
369
 
370
- // src/Checkbox.js
370
+ // src/Checkbox.tsx
371
371
  var React7 = __toESM(require("react"), 1);
372
372
  var h6 = React7.createElement;
373
373
  var Checkbox = React7.forwardRef(function Checkbox2(props, ref) {
@@ -412,7 +412,7 @@ var Checkbox = React7.forwardRef(function Checkbox2(props, ref) {
412
412
  );
413
413
  });
414
414
 
415
- // src/StatusPill.js
415
+ // src/StatusPill.tsx
416
416
  var React8 = __toESM(require("react"), 1);
417
417
  var h7 = React8.createElement;
418
418
  var TONE_ICON = { neutral: "circle", progress: "circle-dot-dashed", ready: "circle-check", blocked: "ban" };
@@ -437,10 +437,10 @@ var StatusPill = React8.forwardRef(function StatusPill2(props, ref) {
437
437
  );
438
438
  });
439
439
 
440
- // src/forms.js
440
+ // src/forms.tsx
441
441
  var React10 = __toESM(require("react"), 1);
442
442
 
443
- // src/locale.js
443
+ // src/locale.tsx
444
444
  var React9 = __toESM(require("react"), 1);
445
445
  var h8 = React9.createElement;
446
446
  var n = function(x) {
@@ -627,8 +627,8 @@ var STRINGS = {
627
627
  var LocaleContext = React9.createContext(null);
628
628
  function AuraProvider(props) {
629
629
  var value = React9.useMemo(function() {
630
- var base = STRINGS[props.locale] || STRINGS.en;
631
- return { locale: props.locale || "en", calendar: props.calendar, strings: props.strings ? Object.assign({}, base, props.strings) : base };
630
+ var base = props.locale && STRINGS[props.locale] || STRINGS.en;
631
+ return { locale: props.locale || "en", calendar: props.calendar || null, strings: props.strings ? Object.assign({}, base, props.strings) : base };
632
632
  }, [props.locale, props.calendar, props.strings]);
633
633
  return h8(LocaleContext.Provider, { value }, props.children);
634
634
  }
@@ -639,7 +639,7 @@ function useStrings() {
639
639
  return useAuraLocale().strings;
640
640
  }
641
641
 
642
- // src/forms.js
642
+ // src/forms.tsx
643
643
  var h9 = React10.createElement;
644
644
  var Field = React10.forwardRef(function Field2(props, ref) {
645
645
  var t = useStrings();
@@ -809,7 +809,7 @@ var Switch = React10.forwardRef(function Switch2(props, ref) {
809
809
  );
810
810
  });
811
811
 
812
- // src/Combobox.js
812
+ // src/Combobox.tsx
813
813
  var React11 = __toESM(require("react"), 1);
814
814
  var import_react_dom2 = require("react-dom");
815
815
  var h10 = React11.createElement;
@@ -822,7 +822,7 @@ function toOpt(o) {
822
822
  function defaultFilter(option, query) {
823
823
  var q = norm(query).trim();
824
824
  if (!q) return true;
825
- return norm(option.label).indexOf(q) >= 0 || option.description && norm(option.description).indexOf(q) >= 0 || (option.keywords || []).some(function(k) {
825
+ return norm(option.label).indexOf(q) >= 0 || !!option.description && norm(option.description).indexOf(q) >= 0 || (option.keywords || []).some(function(k) {
826
826
  return norm(k).indexOf(q) >= 0;
827
827
  });
828
828
  }
@@ -1059,7 +1059,7 @@ var Combobox = React11.forwardRef(function Combobox2(props, ref) {
1059
1059
  );
1060
1060
  });
1061
1061
 
1062
- // src/DatePicker.js
1062
+ // src/DatePicker.tsx
1063
1063
  var React12 = __toESM(require("react"), 1);
1064
1064
  var import_react_dom3 = require("react-dom");
1065
1065
  var h11 = React12.createElement;
@@ -1153,7 +1153,7 @@ var Calendar = React12.forwardRef(function Calendar2(props, ref) {
1153
1153
  var gridRef = React12.useRef(null), gridMerged = useMergedRef(ref, gridRef), moved = React12.useRef(false);
1154
1154
  var th = locale !== "en";
1155
1155
  function disabled(d) {
1156
- return min && d < min || max && d > max || props.isDateDisabled && props.isDateDisabled(toISO(d));
1156
+ return !!(min && d < min || max && d > max || props.isDateDisabled && props.isDateDisabled(toISO(d)));
1157
1157
  }
1158
1158
  React12.useEffect(function() {
1159
1159
  if (!moved.current) return;
@@ -1621,7 +1621,7 @@ var DateRangePicker = React12.forwardRef(function DateRangePicker2(props, ref) {
1621
1621
  );
1622
1622
  });
1623
1623
 
1624
- // src/feedback.js
1624
+ // src/feedback.tsx
1625
1625
  var React13 = __toESM(require("react"), 1);
1626
1626
  var import_react_dom4 = require("react-dom");
1627
1627
  var h12 = React13.createElement;
@@ -1742,7 +1742,7 @@ function Toaster(props) {
1742
1742
  }
1743
1743
  var Tooltip = React13.forwardRef(function Tooltip2(props, ref) {
1744
1744
  var id = uid(), st = React13.useState(false), open = props.open !== void 0 ? props.open : st[0], set = st[1];
1745
- var anchor = React13.useRef(null), anchorMerged = useMergedRef(ref, anchor), tip = React13.useRef(null), timer = React13.useRef(null);
1745
+ var anchor = React13.useRef(null), anchorMerged = useMergedRef(ref, anchor), tip = React13.useRef(null), timer = React13.useRef(void 0);
1746
1746
  var pos = React13.useState(null);
1747
1747
  function show(now) {
1748
1748
  clearTimeout(timer.current);
@@ -1803,11 +1803,11 @@ var Tooltip = React13.forwardRef(function Tooltip2(props, ref) {
1803
1803
  );
1804
1804
  });
1805
1805
 
1806
- // src/Dialog.js
1806
+ // src/Dialog.tsx
1807
1807
  var React15 = __toESM(require("react"), 1);
1808
1808
  var import_react_dom5 = require("react-dom");
1809
1809
 
1810
- // src/overlay.js
1810
+ // src/overlay.tsx
1811
1811
  var React14 = __toESM(require("react"), 1);
1812
1812
  function useModal(open, ref, opts) {
1813
1813
  var mounted = useMounted();
@@ -1847,10 +1847,10 @@ function useModal(open, ref, opts) {
1847
1847
  first.focus();
1848
1848
  }
1849
1849
  }
1850
- return { ready: open && mounted, onKeyDown };
1850
+ return { ready: !!open && mounted, onKeyDown };
1851
1851
  }
1852
1852
 
1853
- // src/Dialog.js
1853
+ // src/Dialog.tsx
1854
1854
  var h13 = React15.createElement;
1855
1855
  var Dialog = React15.forwardRef(function Dialog2(props, ref) {
1856
1856
  var t = useStrings();
@@ -1931,7 +1931,7 @@ var Drawer = React15.forwardRef(function Drawer2(props, ref) {
1931
1931
  );
1932
1932
  });
1933
1933
 
1934
- // src/DataTable.js
1934
+ // src/DataTable.tsx
1935
1935
  var React16 = __toESM(require("react"), 1);
1936
1936
  var h14 = React16.createElement;
1937
1937
  var BP = { sm: 640, md: 768, lg: 1024, xl: 1280 };
@@ -2179,7 +2179,7 @@ var DataTable = React16.forwardRef(function DataTable2(props, ref) {
2179
2179
  })));
2180
2180
  }
2181
2181
  function canResize(c) {
2182
- return props.resizable && c.resizable !== false && c.width != null;
2182
+ return !!props.resizable && c.resizable !== false && c.width != null;
2183
2183
  }
2184
2184
  function clampW(c, w) {
2185
2185
  return Math.round(Math.min(c.maxWidth || 480, Math.max(c.minWidth || 64, w)));
@@ -2319,10 +2319,11 @@ var DataTable = React16.forwardRef(function DataTable2(props, ref) {
2319
2319
  }
2320
2320
  }
2321
2321
  function onGridKey(e) {
2322
- if (!gridRef.current || !gridRef.current.contains(e.target)) return;
2323
- var rc = e.target.getAttribute && e.target.getAttribute("data-rc");
2322
+ var target = e.target;
2323
+ if (!gridRef.current || !gridRef.current.contains(target)) return;
2324
+ var rc = target.getAttribute && target.getAttribute("data-rc");
2324
2325
  if (!rc) {
2325
- var cell = e.key === "Escape" && e.target.closest && e.target.closest("[data-rc]");
2326
+ var cell = e.key === "Escape" && target.closest && target.closest("[data-rc]");
2326
2327
  if (cell) {
2327
2328
  e.preventDefault();
2328
2329
  cell.focus();
@@ -2335,7 +2336,7 @@ var DataTable = React16.forwardRef(function DataTable2(props, ref) {
2335
2336
  if (r === 0 && col && e.altKey && (k === "ArrowLeft" || k === "ArrowRight") && canResize(col)) setW(col, widthOf(col) + (k === "ArrowLeft" ? -1 : 1) * (e.shiftKey ? 48 : 16), true);
2336
2337
  else if (r === 0 && col && e.ctrlKey && e.shiftKey && (k === "ArrowLeft" || k === "ArrowRight") && reorderable) {
2337
2338
  if (moveCol(col.key, k === "ArrowLeft" ? -1 : 1)) pending.current = { r: 0, key: col.key, c };
2338
- } else if (r === 0 && col && (e.altKey && k === "ArrowDown" || k === "ContextMenu" || e.shiftKey && k === "F10") && controls) openMenu("col", col.key, e.target, { r: 0, c });
2339
+ } else if (r === 0 && col && (e.altKey && k === "ArrowDown" || k === "ContextMenu" || e.shiftKey && k === "F10") && controls) openMenu("col", col.key, target, { r: 0, c });
2339
2340
  else if (k === "ArrowRight") focusCell(r, c + 1);
2340
2341
  else if (k === "ArrowLeft") focusCell(r, c - 1);
2341
2342
  else if (k === "ArrowDown") {
@@ -2354,13 +2355,17 @@ var DataTable = React16.forwardRef(function DataTable2(props, ref) {
2354
2355
  if (pageSize) {
2355
2356
  if (goPage(page - 1, { r: 1, c })) activeState[1]({ r: 1, c });
2356
2357
  } else focusCell(Math.max(1, r - visibleRows), c);
2358
+ } else if (k === "F2" && r > 0) {
2359
+ var inner = target.querySelector("button, a[href], input, select, textarea");
2360
+ if (inner) inner.focus();
2361
+ else handled = false;
2357
2362
  } else if (k === " " || k === "Enter") {
2358
2363
  if (r === 0 && !col && selectable && nRows) toggleAll();
2359
2364
  else if (r === 0 && col && col.sortable && nRows > 1) {
2360
2365
  setSort(nextSort(col.key));
2361
2366
  goPage(1);
2362
2367
  } else if (r > 0 && k === " " && selectable) toggle(row[rowKey], !selSet[row[rowKey]]);
2363
- else if (r > 0 && (k === "Enter" || k === "F2") && e.target.querySelector("button, a[href], input, select, textarea")) e.target.querySelector("button, a[href], input, select, textarea").focus();
2368
+ else if (r > 0 && k === "Enter" && target.querySelector("button, a[href], input, select, textarea")) target.querySelector("button, a[href], input, select, textarea").focus();
2364
2369
  else if (r > 0 && k === "Enter" && props.onRowActivate) props.onRowActivate(row);
2365
2370
  else handled = false;
2366
2371
  } else handled = false;
@@ -2535,7 +2540,7 @@ var DataTable = React16.forwardRef(function DataTable2(props, ref) {
2535
2540
  var rowStyle = { minWidth: rowMinWidth };
2536
2541
  if (loading) {
2537
2542
  var n2 = pageSize || props.skeletonRows || 5;
2538
- body = [];
2543
+ var skRows = body = [];
2539
2544
  for (var i = 0; i < n2; i++) {
2540
2545
  var sk = [h14("span", { key: "__gl", className: "aura-table__gutter" })];
2541
2546
  if (selectable) sk.push(h14("span", { key: "__sel", className: cx("aura-table__sel", nPinned && "is-pinned") }, h14("span", { className: "aura-skel aura-skel--box" })));
@@ -2547,7 +2552,7 @@ var DataTable = React16.forwardRef(function DataTable2(props, ref) {
2547
2552
  ));
2548
2553
  });
2549
2554
  sk.push(h14("span", { key: "__gr", className: cx("aura-table__gutter aura-table__gutter--end", controls && "has-picker") }));
2550
- body.push(h14("div", { key: "sk" + i, className: "aura-table__row aura-table__row--skeleton", "aria-hidden": true, style: rowStyle }, sk));
2555
+ skRows.push(h14("div", { key: "sk" + i, className: "aura-table__row aura-table__row--skeleton", "aria-hidden": true, style: rowStyle }, sk));
2551
2556
  }
2552
2557
  } else if (!rows.length) {
2553
2558
  var em = props.empty || {};
@@ -2564,12 +2569,12 @@ var DataTable = React16.forwardRef(function DataTable2(props, ref) {
2564
2569
  )
2565
2570
  );
2566
2571
  } else {
2567
- body = [];
2568
- if (virtual && start > 0) body.push(h14("div", { key: "__top", style: { height: start * ROW_H + "px" }, "aria-hidden": true }));
2572
+ var bodyRows = body = [];
2573
+ if (virtual && start > 0) bodyRows.push(h14("div", { key: "__top", style: { height: start * ROW_H + "px" }, "aria-hidden": true }));
2569
2574
  for (var ri = start; ri < end; ri++) {
2570
2575
  (function(r, i2) {
2571
2576
  var k = r[rowKey], isSel = !!selSet[k];
2572
- body.push(h14("div", {
2577
+ bodyRows.push(h14("div", {
2573
2578
  key: k,
2574
2579
  role: "row",
2575
2580
  "aria-rowindex": first + i2 + 2,
@@ -2577,13 +2582,14 @@ var DataTable = React16.forwardRef(function DataTable2(props, ref) {
2577
2582
  className: cx("aura-table__row", isSel && "is-selected", props.onRowActivate && "is-actionable"),
2578
2583
  style: rowStyle,
2579
2584
  onClick: function(e) {
2580
- if (e.target.closest && e.target.closest(".aura-check, button, a, input")) return;
2585
+ var el = e.target;
2586
+ if (el.closest && el.closest(".aura-check, button, a, input")) return;
2581
2587
  if (props.onRowActivate) props.onRowActivate(r);
2582
2588
  }
2583
2589
  }, rowCells(r, i2, k, isSel)));
2584
2590
  })(pageRows[ri], ri);
2585
2591
  }
2586
- if (virtual && end < pageRows.length) body.push(h14("div", { key: "__bot", style: { height: (pageRows.length - end) * ROW_H + "px" }, "aria-hidden": true }));
2592
+ if (virtual && end < pageRows.length) bodyRows.push(h14("div", { key: "__bot", style: { height: (pageRows.length - end) * ROW_H + "px" }, "aria-hidden": true }));
2587
2593
  }
2588
2594
  var foot = null;
2589
2595
  if (pageSize && (rows.length || loading)) {
@@ -2657,7 +2663,8 @@ var DataTable = React16.forwardRef(function DataTable2(props, ref) {
2657
2663
  className: cx("aura-table__card", isSel && "is-selected", props.onRowActivate && "is-actionable"),
2658
2664
  tabIndex: props.onRowActivate ? 0 : void 0,
2659
2665
  onClick: function(e) {
2660
- if (e.target.closest && e.target.closest(".aura-check, button, a, input")) return;
2666
+ var el = e.target;
2667
+ if (el.closest && el.closest(".aura-check, button, a, input")) return;
2661
2668
  if (props.onRowActivate) props.onRowActivate(r);
2662
2669
  },
2663
2670
  onKeyDown: function(e) {
@@ -2750,7 +2757,7 @@ var DataTable = React16.forwardRef(function DataTable2(props, ref) {
2750
2757
  );
2751
2758
  });
2752
2759
 
2753
- // src/layout.js
2760
+ // src/layout.tsx
2754
2761
  var React17 = __toESM(require("react"), 1);
2755
2762
  var h15 = React17.createElement;
2756
2763
  var Card = React17.forwardRef(function Card2(props, ref) {
@@ -2939,7 +2946,7 @@ var Avatar = React17.forwardRef(function Avatar2(props, ref) {
2939
2946
  );
2940
2947
  });
2941
2948
 
2942
- // src/layout2.js
2949
+ // src/layout2.tsx
2943
2950
  var React18 = __toESM(require("react"), 1);
2944
2951
  var h16 = React18.createElement;
2945
2952
  var breakpoints = { sm: 640, md: 768, lg: 1024, xl: 1280 };
@@ -2965,16 +2972,17 @@ function subscribe(cb) {
2965
2972
  function useResponsive(value) {
2966
2973
  var bp = useBreakpoint();
2967
2974
  if (value == null || typeof value !== "object") return value;
2968
- for (var i = ORDER.indexOf(bp); i >= 0; i--) if (value[ORDER[i]] !== void 0) return value[ORDER[i]];
2975
+ var map = value;
2976
+ for (var i = ORDER.indexOf(bp); i >= 0; i--) if (map[ORDER[i]] !== void 0) return map[ORDER[i]];
2969
2977
  return void 0;
2970
2978
  }
2971
2979
  function respVars(prefix, value, map) {
2972
2980
  var style = {};
2973
2981
  if (value == null) return style;
2974
2982
  if (typeof value !== "object") value = { base: value };
2975
- var cur;
2983
+ var byBp = value, cur;
2976
2984
  ORDER.forEach(function(k) {
2977
- if (value[k] !== void 0) cur = map ? map(value[k]) : value[k];
2985
+ if (byBp[k] !== void 0) cur = map ? map(byBp[k]) : byBp[k];
2978
2986
  if (cur !== void 0) style["--" + prefix + "-" + k] = cur;
2979
2987
  });
2980
2988
  return style;
@@ -3014,10 +3022,11 @@ var AppShell = React18.forwardRef(function AppShell2(props, ref) {
3014
3022
  React18.useEffect(function() {
3015
3023
  if (!compact) setOpen(false);
3016
3024
  }, [compact]);
3017
- var nav = props.nav && React18.isValidElement(props.nav) && compact ? React18.cloneElement(props.nav, { onChange: function(id) {
3018
- if (props.nav.props.onChange) props.nav.props.onChange(id);
3025
+ var navEl = props.nav;
3026
+ var nav = props.nav && React18.isValidElement(props.nav) && compact ? React18.cloneElement(navEl, { onChange: function(id) {
3027
+ if (navEl.props.onChange) navEl.props.onChange(id);
3019
3028
  setOpen(false);
3020
- }, className: cx(props.nav.props.className, "is-in-drawer") }) : props.nav;
3029
+ }, className: cx(navEl.props.className, "is-in-drawer") }) : props.nav;
3021
3030
  return h16(
3022
3031
  "div",
3023
3032
  { ref, className: cx("aura-shell", compact && "is-compact", props.className) },
@@ -3041,7 +3050,7 @@ var AppShell = React18.forwardRef(function AppShell2(props, ref) {
3041
3050
  );
3042
3051
  });
3043
3052
 
3044
- // src/Surface.js
3053
+ // src/Surface.tsx
3045
3054
  var React19 = __toESM(require("react"), 1);
3046
3055
  var h17 = React19.createElement;
3047
3056
  var Surface = React19.forwardRef(function Surface2(props, ref) {
@@ -3060,7 +3069,7 @@ var Surface = React19.forwardRef(function Surface2(props, ref) {
3060
3069
  }), props.children);
3061
3070
  });
3062
3071
 
3063
- // src/Stat.js
3072
+ // src/Stat.tsx
3064
3073
  var React20 = __toESM(require("react"), 1);
3065
3074
  var h18 = React20.createElement;
3066
3075
  var Stat = React20.forwardRef(function Stat2(props, ref) {
@@ -3101,7 +3110,7 @@ var Stat = React20.forwardRef(function Stat2(props, ref) {
3101
3110
  );
3102
3111
  });
3103
3112
 
3104
- // src/TimePicker.js
3113
+ // src/TimePicker.tsx
3105
3114
  var React21 = __toESM(require("react"), 1);
3106
3115
  var import_react_dom6 = require("react-dom");
3107
3116
  var h19 = React21.createElement;
@@ -3396,7 +3405,7 @@ var TimePicker = React21.forwardRef(function TimePicker2(props, ref) {
3396
3405
  );
3397
3406
  });
3398
3407
 
3399
- // src/FileUpload.js
3408
+ // src/FileUpload.tsx
3400
3409
  var React22 = __toESM(require("react"), 1);
3401
3410
  var h20 = React22.createElement;
3402
3411
  function formatBytes(n2) {
@@ -3561,7 +3570,7 @@ var FileUpload = React22.forwardRef(function FileUpload2(props, ref) {
3561
3570
  );
3562
3571
  });
3563
3572
 
3564
- // src/theme.js
3573
+ // src/theme.ts
3565
3574
  function hexToRgb(hex) {
3566
3575
  var h23 = String(hex).trim().replace("#", "");
3567
3576
  if (h23.length === 3) h23 = h23.split("").map(function(c) {
@@ -3743,7 +3752,7 @@ function createTheme(opts) {
3743
3752
  }), css };
3744
3753
  }
3745
3754
 
3746
- // src/ThemeStyle.js
3755
+ // src/ThemeStyle.tsx
3747
3756
  var React23 = __toESM(require("react"), 1);
3748
3757
  var h21 = React23.createElement;
3749
3758
  function ThemeStyle(props) {
@@ -3753,7 +3762,7 @@ function ThemeStyle(props) {
3753
3762
  return h21("style", { "data-aura-theme": props.name || props.brand, dangerouslySetInnerHTML: { __html: css } });
3754
3763
  }
3755
3764
 
3756
- // src/extra.js
3765
+ // src/extra.tsx
3757
3766
  var React24 = __toESM(require("react"), 1);
3758
3767
  var import_react_dom7 = require("react-dom");
3759
3768
  var h22 = React24.createElement;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import * as React from "react";
3
- import { useStrings, useAuraLocale } from "./locale.js";
3
+ import { useStrings } from "./locale.js";
4
4
  import { createPortal } from "react-dom";
5
5
  import { cx, uid, useMaybeControlled, useMounted, useIsoLayoutEffect, useMergedRef } from "./internal.js";
6
6
  import { Icon } from "./Icon.js";
@@ -15,7 +15,7 @@ function toOpt(o) {
15
15
  function defaultFilter(option, query) {
16
16
  var q = norm(query).trim();
17
17
  if (!q) return true;
18
- return norm(option.label).indexOf(q) >= 0 || option.description && norm(option.description).indexOf(q) >= 0 || (option.keywords || []).some(function(k) {
18
+ return norm(option.label).indexOf(q) >= 0 || !!option.description && norm(option.description).indexOf(q) >= 0 || (option.keywords || []).some(function(k) {
19
19
  return norm(k).indexOf(q) >= 0;
20
20
  });
21
21
  }
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import * as React from "react";
3
- import { useStrings, useAuraLocale } from "./locale.js";
4
- import { cx, omit, useMaybeControlled, compare, useIsoLayoutEffect, useMergedRef } from "./internal.js";
3
+ import { useStrings } from "./locale.js";
4
+ import { cx, useMaybeControlled, compare, useIsoLayoutEffect, useMergedRef } from "./internal.js";
5
5
  import { Icon } from "./Icon.js";
6
6
  import { IconButton } from "./IconButton.js";
7
7
  import { Checkbox } from "./Checkbox.js";
@@ -251,7 +251,7 @@ const DataTable = React.forwardRef(function DataTable2(props, ref) {
251
251
  })));
252
252
  }
253
253
  function canResize(c) {
254
- return props.resizable && c.resizable !== false && c.width != null;
254
+ return !!props.resizable && c.resizable !== false && c.width != null;
255
255
  }
256
256
  function clampW(c, w) {
257
257
  return Math.round(Math.min(c.maxWidth || 480, Math.max(c.minWidth || 64, w)));
@@ -391,10 +391,11 @@ const DataTable = React.forwardRef(function DataTable2(props, ref) {
391
391
  }
392
392
  }
393
393
  function onGridKey(e) {
394
- if (!gridRef.current || !gridRef.current.contains(e.target)) return;
395
- var rc = e.target.getAttribute && e.target.getAttribute("data-rc");
394
+ var target = e.target;
395
+ if (!gridRef.current || !gridRef.current.contains(target)) return;
396
+ var rc = target.getAttribute && target.getAttribute("data-rc");
396
397
  if (!rc) {
397
- var cell = e.key === "Escape" && e.target.closest && e.target.closest("[data-rc]");
398
+ var cell = e.key === "Escape" && target.closest && target.closest("[data-rc]");
398
399
  if (cell) {
399
400
  e.preventDefault();
400
401
  cell.focus();
@@ -407,7 +408,7 @@ const DataTable = React.forwardRef(function DataTable2(props, ref) {
407
408
  if (r === 0 && col && e.altKey && (k === "ArrowLeft" || k === "ArrowRight") && canResize(col)) setW(col, widthOf(col) + (k === "ArrowLeft" ? -1 : 1) * (e.shiftKey ? 48 : 16), true);
408
409
  else if (r === 0 && col && e.ctrlKey && e.shiftKey && (k === "ArrowLeft" || k === "ArrowRight") && reorderable) {
409
410
  if (moveCol(col.key, k === "ArrowLeft" ? -1 : 1)) pending.current = { r: 0, key: col.key, c };
410
- } else if (r === 0 && col && (e.altKey && k === "ArrowDown" || k === "ContextMenu" || e.shiftKey && k === "F10") && controls) openMenu("col", col.key, e.target, { r: 0, c });
411
+ } else if (r === 0 && col && (e.altKey && k === "ArrowDown" || k === "ContextMenu" || e.shiftKey && k === "F10") && controls) openMenu("col", col.key, target, { r: 0, c });
411
412
  else if (k === "ArrowRight") focusCell(r, c + 1);
412
413
  else if (k === "ArrowLeft") focusCell(r, c - 1);
413
414
  else if (k === "ArrowDown") {
@@ -426,13 +427,17 @@ const DataTable = React.forwardRef(function DataTable2(props, ref) {
426
427
  if (pageSize) {
427
428
  if (goPage(page - 1, { r: 1, c })) activeState[1]({ r: 1, c });
428
429
  } else focusCell(Math.max(1, r - visibleRows), c);
430
+ } else if (k === "F2" && r > 0) {
431
+ var inner = target.querySelector("button, a[href], input, select, textarea");
432
+ if (inner) inner.focus();
433
+ else handled = false;
429
434
  } else if (k === " " || k === "Enter") {
430
435
  if (r === 0 && !col && selectable && nRows) toggleAll();
431
436
  else if (r === 0 && col && col.sortable && nRows > 1) {
432
437
  setSort(nextSort(col.key));
433
438
  goPage(1);
434
439
  } else if (r > 0 && k === " " && selectable) toggle(row[rowKey], !selSet[row[rowKey]]);
435
- else if (r > 0 && (k === "Enter" || k === "F2") && e.target.querySelector("button, a[href], input, select, textarea")) e.target.querySelector("button, a[href], input, select, textarea").focus();
440
+ else if (r > 0 && k === "Enter" && target.querySelector("button, a[href], input, select, textarea")) target.querySelector("button, a[href], input, select, textarea").focus();
436
441
  else if (r > 0 && k === "Enter" && props.onRowActivate) props.onRowActivate(row);
437
442
  else handled = false;
438
443
  } else handled = false;
@@ -607,7 +612,7 @@ const DataTable = React.forwardRef(function DataTable2(props, ref) {
607
612
  var rowStyle = { minWidth: rowMinWidth };
608
613
  if (loading) {
609
614
  var n = pageSize || props.skeletonRows || 5;
610
- body = [];
615
+ var skRows = body = [];
611
616
  for (var i = 0; i < n; i++) {
612
617
  var sk = [h("span", { key: "__gl", className: "aura-table__gutter" })];
613
618
  if (selectable) sk.push(h("span", { key: "__sel", className: cx("aura-table__sel", nPinned && "is-pinned") }, h("span", { className: "aura-skel aura-skel--box" })));
@@ -619,7 +624,7 @@ const DataTable = React.forwardRef(function DataTable2(props, ref) {
619
624
  ));
620
625
  });
621
626
  sk.push(h("span", { key: "__gr", className: cx("aura-table__gutter aura-table__gutter--end", controls && "has-picker") }));
622
- body.push(h("div", { key: "sk" + i, className: "aura-table__row aura-table__row--skeleton", "aria-hidden": true, style: rowStyle }, sk));
627
+ skRows.push(h("div", { key: "sk" + i, className: "aura-table__row aura-table__row--skeleton", "aria-hidden": true, style: rowStyle }, sk));
623
628
  }
624
629
  } else if (!rows.length) {
625
630
  var em = props.empty || {};
@@ -636,12 +641,12 @@ const DataTable = React.forwardRef(function DataTable2(props, ref) {
636
641
  )
637
642
  );
638
643
  } else {
639
- body = [];
640
- if (virtual && start > 0) body.push(h("div", { key: "__top", style: { height: start * ROW_H + "px" }, "aria-hidden": true }));
644
+ var bodyRows = body = [];
645
+ if (virtual && start > 0) bodyRows.push(h("div", { key: "__top", style: { height: start * ROW_H + "px" }, "aria-hidden": true }));
641
646
  for (var ri = start; ri < end; ri++) {
642
647
  (function(r, i2) {
643
648
  var k = r[rowKey], isSel = !!selSet[k];
644
- body.push(h("div", {
649
+ bodyRows.push(h("div", {
645
650
  key: k,
646
651
  role: "row",
647
652
  "aria-rowindex": first + i2 + 2,
@@ -649,13 +654,14 @@ const DataTable = React.forwardRef(function DataTable2(props, ref) {
649
654
  className: cx("aura-table__row", isSel && "is-selected", props.onRowActivate && "is-actionable"),
650
655
  style: rowStyle,
651
656
  onClick: function(e) {
652
- if (e.target.closest && e.target.closest(".aura-check, button, a, input")) return;
657
+ var el = e.target;
658
+ if (el.closest && el.closest(".aura-check, button, a, input")) return;
653
659
  if (props.onRowActivate) props.onRowActivate(r);
654
660
  }
655
661
  }, rowCells(r, i2, k, isSel)));
656
662
  })(pageRows[ri], ri);
657
663
  }
658
- if (virtual && end < pageRows.length) body.push(h("div", { key: "__bot", style: { height: (pageRows.length - end) * ROW_H + "px" }, "aria-hidden": true }));
664
+ if (virtual && end < pageRows.length) bodyRows.push(h("div", { key: "__bot", style: { height: (pageRows.length - end) * ROW_H + "px" }, "aria-hidden": true }));
659
665
  }
660
666
  var foot = null;
661
667
  if (pageSize && (rows.length || loading)) {
@@ -729,7 +735,8 @@ const DataTable = React.forwardRef(function DataTable2(props, ref) {
729
735
  className: cx("aura-table__card", isSel && "is-selected", props.onRowActivate && "is-actionable"),
730
736
  tabIndex: props.onRowActivate ? 0 : void 0,
731
737
  onClick: function(e) {
732
- if (e.target.closest && e.target.closest(".aura-check, button, a, input")) return;
738
+ var el = e.target;
739
+ if (el.closest && el.closest(".aura-check, button, a, input")) return;
733
740
  if (props.onRowActivate) props.onRowActivate(r);
734
741
  },
735
742
  onKeyDown: function(e) {
@@ -97,7 +97,7 @@ const Calendar = React.forwardRef(function Calendar2(props, ref) {
97
97
  var gridRef = React.useRef(null), gridMerged = useMergedRef(ref, gridRef), moved = React.useRef(false);
98
98
  var th = locale !== "en";
99
99
  function disabled(d) {
100
- return min && d < min || max && d > max || props.isDateDisabled && props.isDateDisabled(toISO(d));
100
+ return !!(min && d < min || max && d > max || props.isDateDisabled && props.isDateDisabled(toISO(d)));
101
101
  }
102
102
  React.useEffect(function() {
103
103
  if (!moved.current) return;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import * as React from "react";
3
- import { useStrings, useAuraLocale } from "./locale.js";
3
+ import { useStrings } from "./locale.js";
4
4
  import { createPortal } from "react-dom";
5
5
  import { cx, uid, useMergedRef } from "./internal.js";
6
6
  import { IconButton } from "./IconButton.js";
@@ -28,7 +28,7 @@ const DropdownMenu = React.forwardRef(function DropdownMenu2(props, ref) {
28
28
  items: props.items,
29
29
  onClose: function(restore) {
30
30
  setAnchor(null);
31
- if (restore && anchor.focus) anchor.focus();
31
+ if (restore && typeof anchor.focus === "function") anchor.focus();
32
32
  }
33
33
  }) : null
34
34
  );
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import * as React from "react";
3
- import { useStrings, useAuraLocale } from "./locale.js";
3
+ import { useStrings } from "./locale.js";
4
4
  import { createPortal } from "react-dom";
5
5
  import { cx, uid, useMounted, useIsoLayoutEffect, useMergedRef } from "./internal.js";
6
6
  import { Icon } from "./Icon.js";
@@ -123,7 +123,7 @@ function Toaster(props) {
123
123
  }
124
124
  const Tooltip = React.forwardRef(function Tooltip2(props, ref) {
125
125
  var id = uid(), st = React.useState(false), open = props.open !== void 0 ? props.open : st[0], set = st[1];
126
- var anchor = React.useRef(null), anchorMerged = useMergedRef(ref, anchor), tip = React.useRef(null), timer = React.useRef(null);
126
+ var anchor = React.useRef(null), anchorMerged = useMergedRef(ref, anchor), tip = React.useRef(null), timer = React.useRef(void 0);
127
127
  var pos = React.useState(null);
128
128
  function show(now) {
129
129
  clearTimeout(timer.current);