@jirawatpyk/aura-tokens 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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # AURA Design System 4.4 — `@jirawatpyk/aura-tokens` (imported as `@aura/tokens`)
1
+ # AURA Design System — `@jirawatpyk/aura-tokens` (imported as `@aura/tokens`)
2
2
 
3
- Enterprise Standard, Human Creative. Tokens, Tailwind preset, Figma variables a contrast check and token lint. The components live in `../react` (`@aura/react`); `components/` here is a synced copy of their `window.Aura` bundle for `<script>`-tag use.
3
+ Enterprise Standard, Human Creative. Tokens, Tailwind preset, Figma variables a contrast check and token lint. The components live in [`@jirawatpyk/aura-react`](https://www.npmjs.com/package/@jirawatpyk/aura-react); `components/` here is a synced copy of their `window.Aura` bundle for `<script>`-tag use.
4
4
 
5
5
  ## What's inside
6
6
 
@@ -22,6 +22,7 @@ Enterprise Standard, Human Creative. Tokens, Tailwind preset, Figma variables a
22
22
  ```bash
23
23
  # public on npmjs; internal projects can use GitHub Packages instead (see the repository README)
24
24
  npm install @aura/tokens@npm:@jirawatpyk/aura-tokens @aura/react@npm:@jirawatpyk/aura-react
25
+ # or plain: npm install @jirawatpyk/aura-tokens @jirawatpyk/aura-react
25
26
  ```
26
27
 
27
28
  ```tsx
package/aura.css CHANGED
@@ -1,4 +1,4 @@
1
- /* AURA v4.4.1 — GENERATED by scripts/build-tokens.js from tokens.json. Do not edit by hand. */
1
+ /* AURA v4.5.0 — GENERATED by scripts/build-tokens.js from tokens.json. Do not edit by hand. */
2
2
  /* Fonts: load aura-fonts.css (or the <link> tags in README) separately, so a blocked Google Fonts never breaks this file. */
3
3
 
4
4
  :root, [data-theme="light"] {
@@ -45,7 +45,7 @@ window.Aura = (() => {
45
45
  }
46
46
  });
47
47
 
48
- // src/index.js
48
+ // src/index.ts
49
49
  var index_exports = {};
50
50
  __export(index_exports, {
51
51
  Accordion: () => Accordion,
@@ -113,10 +113,10 @@ window.Aura = (() => {
113
113
  useResponsive: () => useResponsive
114
114
  });
115
115
 
116
- // src/Icon.js
116
+ // src/Icon.tsx
117
117
  var React2 = __toESM(require_react(), 1);
118
118
 
119
- // src/internal.js
119
+ // src/internal.tsx
120
120
  var React = __toESM(require_react(), 1);
121
121
  function cx() {
122
122
  return Array.prototype.filter.call(arguments, Boolean).join(" ");
@@ -187,7 +187,7 @@ window.Aura = (() => {
187
187
  }, [a, b]);
188
188
  }
189
189
 
190
- // src/Icon.js
190
+ // src/Icon.tsx
191
191
  var h = React2.createElement;
192
192
  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" }]] };
193
193
  var SIZES = { sm: 16, md: 20, lg: 24 };
@@ -216,7 +216,7 @@ window.Aura = (() => {
216
216
  });
217
217
  var iconNames = Object.keys(ICONS);
218
218
 
219
- // src/Button.js
219
+ // src/Button.tsx
220
220
  var React3 = __toESM(require_react(), 1);
221
221
  var h2 = React3.createElement;
222
222
  var Button = React3.forwardRef(function Button2(props, ref) {
@@ -241,7 +241,7 @@ window.Aura = (() => {
241
241
  );
242
242
  });
243
243
 
244
- // src/IconButton.js
244
+ // src/IconButton.tsx
245
245
  var React4 = __toESM(require_react(), 1);
246
246
  var h3 = React4.createElement;
247
247
  var IconButton = React4.forwardRef(function IconButton2(props, ref) {
@@ -255,7 +255,7 @@ window.Aura = (() => {
255
255
  }), h3(Icon, { name: props.icon, size: props.size || "sm" }));
256
256
  });
257
257
 
258
- // src/Menu.js
258
+ // src/Menu.tsx
259
259
  var React5 = __toESM(require_react(), 1);
260
260
  var import_react_dom = __toESM(require_react_dom(), 1);
261
261
  var h4 = React5.createElement;
@@ -349,7 +349,7 @@ window.Aura = (() => {
349
349
  return mounted ? (0, import_react_dom.createPortal)(el, document.body) : null;
350
350
  });
351
351
 
352
- // src/DropdownMenu.js
352
+ // src/DropdownMenu.tsx
353
353
  var React6 = __toESM(require_react(), 1);
354
354
  var h5 = React6.createElement;
355
355
  var DropdownMenu = React6.forwardRef(function DropdownMenu2(props, ref) {
@@ -377,13 +377,13 @@ window.Aura = (() => {
377
377
  items: props.items,
378
378
  onClose: function(restore) {
379
379
  setAnchor(null);
380
- if (restore && anchor.focus) anchor.focus();
380
+ if (restore && typeof anchor.focus === "function") anchor.focus();
381
381
  }
382
382
  }) : null
383
383
  );
384
384
  });
385
385
 
386
- // src/Checkbox.js
386
+ // src/Checkbox.tsx
387
387
  var React7 = __toESM(require_react(), 1);
388
388
  var h6 = React7.createElement;
389
389
  var Checkbox = React7.forwardRef(function Checkbox2(props, ref) {
@@ -428,7 +428,7 @@ window.Aura = (() => {
428
428
  );
429
429
  });
430
430
 
431
- // src/StatusPill.js
431
+ // src/StatusPill.tsx
432
432
  var React8 = __toESM(require_react(), 1);
433
433
  var h7 = React8.createElement;
434
434
  var TONE_ICON = { neutral: "circle", progress: "circle-dot-dashed", ready: "circle-check", blocked: "ban" };
@@ -453,10 +453,10 @@ window.Aura = (() => {
453
453
  );
454
454
  });
455
455
 
456
- // src/forms.js
456
+ // src/forms.tsx
457
457
  var React10 = __toESM(require_react(), 1);
458
458
 
459
- // src/locale.js
459
+ // src/locale.tsx
460
460
  var React9 = __toESM(require_react(), 1);
461
461
  var h8 = React9.createElement;
462
462
  var n = function(x) {
@@ -643,8 +643,8 @@ window.Aura = (() => {
643
643
  var LocaleContext = React9.createContext(null);
644
644
  function AuraProvider(props) {
645
645
  var value = React9.useMemo(function() {
646
- var base = STRINGS[props.locale] || STRINGS.en;
647
- return { locale: props.locale || "en", calendar: props.calendar, strings: props.strings ? Object.assign({}, base, props.strings) : base };
646
+ var base = props.locale && STRINGS[props.locale] || STRINGS.en;
647
+ return { locale: props.locale || "en", calendar: props.calendar || null, strings: props.strings ? Object.assign({}, base, props.strings) : base };
648
648
  }, [props.locale, props.calendar, props.strings]);
649
649
  return h8(LocaleContext.Provider, { value }, props.children);
650
650
  }
@@ -655,7 +655,7 @@ window.Aura = (() => {
655
655
  return useAuraLocale().strings;
656
656
  }
657
657
 
658
- // src/forms.js
658
+ // src/forms.tsx
659
659
  var h9 = React10.createElement;
660
660
  var Field = React10.forwardRef(function Field2(props, ref) {
661
661
  var t = useStrings();
@@ -825,7 +825,7 @@ window.Aura = (() => {
825
825
  );
826
826
  });
827
827
 
828
- // src/Combobox.js
828
+ // src/Combobox.tsx
829
829
  var React11 = __toESM(require_react(), 1);
830
830
  var import_react_dom2 = __toESM(require_react_dom(), 1);
831
831
  var h10 = React11.createElement;
@@ -838,7 +838,7 @@ window.Aura = (() => {
838
838
  function defaultFilter(option, query) {
839
839
  var q = norm(query).trim();
840
840
  if (!q) return true;
841
- return norm(option.label).indexOf(q) >= 0 || option.description && norm(option.description).indexOf(q) >= 0 || (option.keywords || []).some(function(k) {
841
+ return norm(option.label).indexOf(q) >= 0 || !!option.description && norm(option.description).indexOf(q) >= 0 || (option.keywords || []).some(function(k) {
842
842
  return norm(k).indexOf(q) >= 0;
843
843
  });
844
844
  }
@@ -1075,7 +1075,7 @@ window.Aura = (() => {
1075
1075
  );
1076
1076
  });
1077
1077
 
1078
- // src/DatePicker.js
1078
+ // src/DatePicker.tsx
1079
1079
  var React12 = __toESM(require_react(), 1);
1080
1080
  var import_react_dom3 = __toESM(require_react_dom(), 1);
1081
1081
  var h11 = React12.createElement;
@@ -1169,7 +1169,7 @@ window.Aura = (() => {
1169
1169
  var gridRef = React12.useRef(null), gridMerged = useMergedRef(ref, gridRef), moved = React12.useRef(false);
1170
1170
  var th = locale !== "en";
1171
1171
  function disabled(d) {
1172
- return min && d < min || max && d > max || props.isDateDisabled && props.isDateDisabled(toISO(d));
1172
+ return !!(min && d < min || max && d > max || props.isDateDisabled && props.isDateDisabled(toISO(d)));
1173
1173
  }
1174
1174
  React12.useEffect(function() {
1175
1175
  if (!moved.current) return;
@@ -1637,7 +1637,7 @@ window.Aura = (() => {
1637
1637
  );
1638
1638
  });
1639
1639
 
1640
- // src/feedback.js
1640
+ // src/feedback.tsx
1641
1641
  var React13 = __toESM(require_react(), 1);
1642
1642
  var import_react_dom4 = __toESM(require_react_dom(), 1);
1643
1643
  var h12 = React13.createElement;
@@ -1758,7 +1758,7 @@ window.Aura = (() => {
1758
1758
  }
1759
1759
  var Tooltip = React13.forwardRef(function Tooltip2(props, ref) {
1760
1760
  var id = uid(), st = React13.useState(false), open = props.open !== void 0 ? props.open : st[0], set = st[1];
1761
- var anchor = React13.useRef(null), anchorMerged = useMergedRef(ref, anchor), tip = React13.useRef(null), timer = React13.useRef(null);
1761
+ var anchor = React13.useRef(null), anchorMerged = useMergedRef(ref, anchor), tip = React13.useRef(null), timer = React13.useRef(void 0);
1762
1762
  var pos = React13.useState(null);
1763
1763
  function show(now) {
1764
1764
  clearTimeout(timer.current);
@@ -1819,11 +1819,11 @@ window.Aura = (() => {
1819
1819
  );
1820
1820
  });
1821
1821
 
1822
- // src/Dialog.js
1822
+ // src/Dialog.tsx
1823
1823
  var React15 = __toESM(require_react(), 1);
1824
1824
  var import_react_dom5 = __toESM(require_react_dom(), 1);
1825
1825
 
1826
- // src/overlay.js
1826
+ // src/overlay.tsx
1827
1827
  var React14 = __toESM(require_react(), 1);
1828
1828
  function useModal(open, ref, opts) {
1829
1829
  var mounted = useMounted();
@@ -1863,10 +1863,10 @@ window.Aura = (() => {
1863
1863
  first.focus();
1864
1864
  }
1865
1865
  }
1866
- return { ready: open && mounted, onKeyDown };
1866
+ return { ready: !!open && mounted, onKeyDown };
1867
1867
  }
1868
1868
 
1869
- // src/Dialog.js
1869
+ // src/Dialog.tsx
1870
1870
  var h13 = React15.createElement;
1871
1871
  var Dialog = React15.forwardRef(function Dialog2(props, ref) {
1872
1872
  var t = useStrings();
@@ -1947,7 +1947,7 @@ window.Aura = (() => {
1947
1947
  );
1948
1948
  });
1949
1949
 
1950
- // src/DataTable.js
1950
+ // src/DataTable.tsx
1951
1951
  var React16 = __toESM(require_react(), 1);
1952
1952
  var h14 = React16.createElement;
1953
1953
  var BP = { sm: 640, md: 768, lg: 1024, xl: 1280 };
@@ -2195,7 +2195,7 @@ window.Aura = (() => {
2195
2195
  })));
2196
2196
  }
2197
2197
  function canResize(c) {
2198
- return props.resizable && c.resizable !== false && c.width != null;
2198
+ return !!props.resizable && c.resizable !== false && c.width != null;
2199
2199
  }
2200
2200
  function clampW(c, w) {
2201
2201
  return Math.round(Math.min(c.maxWidth || 480, Math.max(c.minWidth || 64, w)));
@@ -2335,10 +2335,11 @@ window.Aura = (() => {
2335
2335
  }
2336
2336
  }
2337
2337
  function onGridKey(e) {
2338
- if (!gridRef.current || !gridRef.current.contains(e.target)) return;
2339
- var rc = e.target.getAttribute && e.target.getAttribute("data-rc");
2338
+ var target = e.target;
2339
+ if (!gridRef.current || !gridRef.current.contains(target)) return;
2340
+ var rc = target.getAttribute && target.getAttribute("data-rc");
2340
2341
  if (!rc) {
2341
- var cell = e.key === "Escape" && e.target.closest && e.target.closest("[data-rc]");
2342
+ var cell = e.key === "Escape" && target.closest && target.closest("[data-rc]");
2342
2343
  if (cell) {
2343
2344
  e.preventDefault();
2344
2345
  cell.focus();
@@ -2351,7 +2352,7 @@ window.Aura = (() => {
2351
2352
  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);
2352
2353
  else if (r === 0 && col && e.ctrlKey && e.shiftKey && (k === "ArrowLeft" || k === "ArrowRight") && reorderable) {
2353
2354
  if (moveCol(col.key, k === "ArrowLeft" ? -1 : 1)) pending.current = { r: 0, key: col.key, c };
2354
- } 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 });
2355
+ } else if (r === 0 && col && (e.altKey && k === "ArrowDown" || k === "ContextMenu" || e.shiftKey && k === "F10") && controls) openMenu("col", col.key, target, { r: 0, c });
2355
2356
  else if (k === "ArrowRight") focusCell(r, c + 1);
2356
2357
  else if (k === "ArrowLeft") focusCell(r, c - 1);
2357
2358
  else if (k === "ArrowDown") {
@@ -2370,13 +2371,17 @@ window.Aura = (() => {
2370
2371
  if (pageSize) {
2371
2372
  if (goPage(page - 1, { r: 1, c })) activeState[1]({ r: 1, c });
2372
2373
  } else focusCell(Math.max(1, r - visibleRows), c);
2374
+ } else if (k === "F2" && r > 0) {
2375
+ var inner = target.querySelector("button, a[href], input, select, textarea");
2376
+ if (inner) inner.focus();
2377
+ else handled = false;
2373
2378
  } else if (k === " " || k === "Enter") {
2374
2379
  if (r === 0 && !col && selectable && nRows) toggleAll();
2375
2380
  else if (r === 0 && col && col.sortable && nRows > 1) {
2376
2381
  setSort(nextSort(col.key));
2377
2382
  goPage(1);
2378
2383
  } else if (r > 0 && k === " " && selectable) toggle(row[rowKey], !selSet[row[rowKey]]);
2379
- 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();
2384
+ else if (r > 0 && k === "Enter" && target.querySelector("button, a[href], input, select, textarea")) target.querySelector("button, a[href], input, select, textarea").focus();
2380
2385
  else if (r > 0 && k === "Enter" && props.onRowActivate) props.onRowActivate(row);
2381
2386
  else handled = false;
2382
2387
  } else handled = false;
@@ -2551,7 +2556,7 @@ window.Aura = (() => {
2551
2556
  var rowStyle = { minWidth: rowMinWidth };
2552
2557
  if (loading) {
2553
2558
  var n2 = pageSize || props.skeletonRows || 5;
2554
- body = [];
2559
+ var skRows = body = [];
2555
2560
  for (var i = 0; i < n2; i++) {
2556
2561
  var sk = [h14("span", { key: "__gl", className: "aura-table__gutter" })];
2557
2562
  if (selectable) sk.push(h14("span", { key: "__sel", className: cx("aura-table__sel", nPinned && "is-pinned") }, h14("span", { className: "aura-skel aura-skel--box" })));
@@ -2563,7 +2568,7 @@ window.Aura = (() => {
2563
2568
  ));
2564
2569
  });
2565
2570
  sk.push(h14("span", { key: "__gr", className: cx("aura-table__gutter aura-table__gutter--end", controls && "has-picker") }));
2566
- body.push(h14("div", { key: "sk" + i, className: "aura-table__row aura-table__row--skeleton", "aria-hidden": true, style: rowStyle }, sk));
2571
+ skRows.push(h14("div", { key: "sk" + i, className: "aura-table__row aura-table__row--skeleton", "aria-hidden": true, style: rowStyle }, sk));
2567
2572
  }
2568
2573
  } else if (!rows.length) {
2569
2574
  var em = props.empty || {};
@@ -2580,12 +2585,12 @@ window.Aura = (() => {
2580
2585
  )
2581
2586
  );
2582
2587
  } else {
2583
- body = [];
2584
- if (virtual && start > 0) body.push(h14("div", { key: "__top", style: { height: start * ROW_H + "px" }, "aria-hidden": true }));
2588
+ var bodyRows = body = [];
2589
+ if (virtual && start > 0) bodyRows.push(h14("div", { key: "__top", style: { height: start * ROW_H + "px" }, "aria-hidden": true }));
2585
2590
  for (var ri = start; ri < end; ri++) {
2586
2591
  (function(r, i2) {
2587
2592
  var k = r[rowKey], isSel = !!selSet[k];
2588
- body.push(h14("div", {
2593
+ bodyRows.push(h14("div", {
2589
2594
  key: k,
2590
2595
  role: "row",
2591
2596
  "aria-rowindex": first + i2 + 2,
@@ -2593,13 +2598,14 @@ window.Aura = (() => {
2593
2598
  className: cx("aura-table__row", isSel && "is-selected", props.onRowActivate && "is-actionable"),
2594
2599
  style: rowStyle,
2595
2600
  onClick: function(e) {
2596
- if (e.target.closest && e.target.closest(".aura-check, button, a, input")) return;
2601
+ var el = e.target;
2602
+ if (el.closest && el.closest(".aura-check, button, a, input")) return;
2597
2603
  if (props.onRowActivate) props.onRowActivate(r);
2598
2604
  }
2599
2605
  }, rowCells(r, i2, k, isSel)));
2600
2606
  })(pageRows[ri], ri);
2601
2607
  }
2602
- if (virtual && end < pageRows.length) body.push(h14("div", { key: "__bot", style: { height: (pageRows.length - end) * ROW_H + "px" }, "aria-hidden": true }));
2608
+ if (virtual && end < pageRows.length) bodyRows.push(h14("div", { key: "__bot", style: { height: (pageRows.length - end) * ROW_H + "px" }, "aria-hidden": true }));
2603
2609
  }
2604
2610
  var foot = null;
2605
2611
  if (pageSize && (rows.length || loading)) {
@@ -2673,7 +2679,8 @@ window.Aura = (() => {
2673
2679
  className: cx("aura-table__card", isSel && "is-selected", props.onRowActivate && "is-actionable"),
2674
2680
  tabIndex: props.onRowActivate ? 0 : void 0,
2675
2681
  onClick: function(e) {
2676
- if (e.target.closest && e.target.closest(".aura-check, button, a, input")) return;
2682
+ var el = e.target;
2683
+ if (el.closest && el.closest(".aura-check, button, a, input")) return;
2677
2684
  if (props.onRowActivate) props.onRowActivate(r);
2678
2685
  },
2679
2686
  onKeyDown: function(e) {
@@ -2766,7 +2773,7 @@ window.Aura = (() => {
2766
2773
  );
2767
2774
  });
2768
2775
 
2769
- // src/layout.js
2776
+ // src/layout.tsx
2770
2777
  var React17 = __toESM(require_react(), 1);
2771
2778
  var h15 = React17.createElement;
2772
2779
  var Card = React17.forwardRef(function Card2(props, ref) {
@@ -2955,7 +2962,7 @@ window.Aura = (() => {
2955
2962
  );
2956
2963
  });
2957
2964
 
2958
- // src/layout2.js
2965
+ // src/layout2.tsx
2959
2966
  var React18 = __toESM(require_react(), 1);
2960
2967
  var h16 = React18.createElement;
2961
2968
  var breakpoints = { sm: 640, md: 768, lg: 1024, xl: 1280 };
@@ -2981,16 +2988,17 @@ window.Aura = (() => {
2981
2988
  function useResponsive(value) {
2982
2989
  var bp = useBreakpoint();
2983
2990
  if (value == null || typeof value !== "object") return value;
2984
- for (var i = ORDER.indexOf(bp); i >= 0; i--) if (value[ORDER[i]] !== void 0) return value[ORDER[i]];
2991
+ var map = value;
2992
+ for (var i = ORDER.indexOf(bp); i >= 0; i--) if (map[ORDER[i]] !== void 0) return map[ORDER[i]];
2985
2993
  return void 0;
2986
2994
  }
2987
2995
  function respVars(prefix, value, map) {
2988
2996
  var style = {};
2989
2997
  if (value == null) return style;
2990
2998
  if (typeof value !== "object") value = { base: value };
2991
- var cur;
2999
+ var byBp = value, cur;
2992
3000
  ORDER.forEach(function(k) {
2993
- if (value[k] !== void 0) cur = map ? map(value[k]) : value[k];
3001
+ if (byBp[k] !== void 0) cur = map ? map(byBp[k]) : byBp[k];
2994
3002
  if (cur !== void 0) style["--" + prefix + "-" + k] = cur;
2995
3003
  });
2996
3004
  return style;
@@ -3030,10 +3038,11 @@ window.Aura = (() => {
3030
3038
  React18.useEffect(function() {
3031
3039
  if (!compact) setOpen(false);
3032
3040
  }, [compact]);
3033
- var nav = props.nav && React18.isValidElement(props.nav) && compact ? React18.cloneElement(props.nav, { onChange: function(id) {
3034
- if (props.nav.props.onChange) props.nav.props.onChange(id);
3041
+ var navEl = props.nav;
3042
+ var nav = props.nav && React18.isValidElement(props.nav) && compact ? React18.cloneElement(navEl, { onChange: function(id) {
3043
+ if (navEl.props.onChange) navEl.props.onChange(id);
3035
3044
  setOpen(false);
3036
- }, className: cx(props.nav.props.className, "is-in-drawer") }) : props.nav;
3045
+ }, className: cx(navEl.props.className, "is-in-drawer") }) : props.nav;
3037
3046
  return h16(
3038
3047
  "div",
3039
3048
  { ref, className: cx("aura-shell", compact && "is-compact", props.className) },
@@ -3057,7 +3066,7 @@ window.Aura = (() => {
3057
3066
  );
3058
3067
  });
3059
3068
 
3060
- // src/Surface.js
3069
+ // src/Surface.tsx
3061
3070
  var React19 = __toESM(require_react(), 1);
3062
3071
  var h17 = React19.createElement;
3063
3072
  var Surface = React19.forwardRef(function Surface2(props, ref) {
@@ -3076,7 +3085,7 @@ window.Aura = (() => {
3076
3085
  }), props.children);
3077
3086
  });
3078
3087
 
3079
- // src/Stat.js
3088
+ // src/Stat.tsx
3080
3089
  var React20 = __toESM(require_react(), 1);
3081
3090
  var h18 = React20.createElement;
3082
3091
  var Stat = React20.forwardRef(function Stat2(props, ref) {
@@ -3117,7 +3126,7 @@ window.Aura = (() => {
3117
3126
  );
3118
3127
  });
3119
3128
 
3120
- // src/TimePicker.js
3129
+ // src/TimePicker.tsx
3121
3130
  var React21 = __toESM(require_react(), 1);
3122
3131
  var import_react_dom6 = __toESM(require_react_dom(), 1);
3123
3132
  var h19 = React21.createElement;
@@ -3412,7 +3421,7 @@ window.Aura = (() => {
3412
3421
  );
3413
3422
  });
3414
3423
 
3415
- // src/FileUpload.js
3424
+ // src/FileUpload.tsx
3416
3425
  var React22 = __toESM(require_react(), 1);
3417
3426
  var h20 = React22.createElement;
3418
3427
  function formatBytes(n2) {
@@ -3577,7 +3586,7 @@ window.Aura = (() => {
3577
3586
  );
3578
3587
  });
3579
3588
 
3580
- // src/theme.js
3589
+ // src/theme.ts
3581
3590
  function hexToRgb(hex) {
3582
3591
  var h23 = String(hex).trim().replace("#", "");
3583
3592
  if (h23.length === 3) h23 = h23.split("").map(function(c) {
@@ -3759,7 +3768,7 @@ window.Aura = (() => {
3759
3768
  }), css };
3760
3769
  }
3761
3770
 
3762
- // src/ThemeStyle.js
3771
+ // src/ThemeStyle.tsx
3763
3772
  var React23 = __toESM(require_react(), 1);
3764
3773
  var h21 = React23.createElement;
3765
3774
  function ThemeStyle(props) {
@@ -3769,7 +3778,7 @@ window.Aura = (() => {
3769
3778
  return h21("style", { "data-aura-theme": props.name || props.brand, dangerouslySetInnerHTML: { __html: css } });
3770
3779
  }
3771
3780
 
3772
- // src/extra.js
3781
+ // src/extra.tsx
3773
3782
  var React24 = __toESM(require_react(), 1);
3774
3783
  var import_react_dom7 = __toESM(require_react_dom(), 1);
3775
3784
  var h22 = React24.createElement;