@openwarelabs/ui 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +8 -8
  2. package/dist/index.js +381 -381
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ function cx(...values) {
13
13
  }
14
14
 
15
15
  // src/components/Text/Text.tsx
16
- import { jsx } from "react/jsx-runtime";
16
+ import { jsx, jsx as jsx2, jsx as jsx3, jsxs, Fragment, jsx as jsx4, jsxs as jsxs2, jsx as jsx5, jsx as jsx6, jsxs as jsxs3, jsx as jsx7, jsxs as jsxs4, jsx as jsx8, jsxs as jsxs5, Fragment as Fragment2, jsx as jsx9, jsxs as jsxs6, jsx as jsx10, jsx as jsx11, jsxs as jsxs7, jsx as jsx12, jsx as jsx13, jsxs as jsxs8, jsx as jsx14, jsxs as jsxs9, jsx as jsx15, jsxs as jsxs10, jsx as jsx16, jsxs as jsxs11, jsx as jsx17, jsxs as jsxs12, jsx as jsx18, jsx as jsx19, jsxs as jsxs13, Fragment as Fragment3, jsx as jsx20, jsxs as jsxs14, jsx as jsx21, jsxs as jsxs15, jsx as jsx22, jsxs as jsxs16, jsx as jsx23, jsxs as jsxs17, jsx as jsx24, jsx as jsx25, jsx as jsx26, Fragment as Fragment4, jsx as jsx27, jsxs as jsxs18, Fragment as Fragment5, jsx as jsx28, jsxs as jsxs19, jsx as jsx29, jsxs as jsxs20, jsx as jsx30, jsxs as jsxs21, Fragment as Fragment6, jsx as jsx31, jsxs as jsxs22, Fragment as Fragment7, jsx as jsx32, jsxs as jsxs23, Fragment as Fragment8, jsx as jsx33, jsxs as jsxs24, Fragment as Fragment9, jsx as jsx34, jsxs as jsxs25, jsx as jsx35, jsxs as jsxs26, jsx as jsx36, jsx as jsx37, jsxs as jsxs27, jsx as jsx38, jsxs as jsxs28, jsx as jsx39, jsxs as jsxs29, jsx as jsx40, jsxs as jsxs30, jsx as jsx41, jsxs as jsxs31, jsx as jsx42, jsxs as jsxs32, jsx as jsx43, jsxs as jsxs33, Fragment as Fragment10, jsx as jsx44, jsxs as jsxs34, jsx as jsx45, jsxs as jsxs35, Fragment as Fragment11, jsx as jsx46, jsxs as jsxs36, jsx as jsx47, Fragment as Fragment12, jsx as jsx48, jsxs as jsxs37, jsx as jsx49, jsxs as jsxs38, jsx as jsx50, jsxs as jsxs39, jsx as jsx51, Fragment as Fragment13, jsx as jsx52, jsxs as jsxs40, jsx as jsx53, jsxs as jsxs41, Fragment as Fragment14, jsx as jsx54, jsxs as jsxs42, jsx as jsx55, jsxs as jsxs43, jsx as jsx56, jsxs as jsxs44, Fragment as Fragment16, jsx as jsx57, jsxs as jsxs45, Fragment as Fragment17, jsx as jsx58, jsxs as jsxs46, Fragment as Fragment18, jsx as jsx59, jsxs as jsxs47, jsx as jsx60, jsxs as jsxs48, jsx as jsx61, jsxs as jsxs49, jsx as jsx62, jsxs as jsxs50, jsx as jsx63, jsxs as jsxs51, Fragment as Fragment19, jsx as jsx64, jsxs as jsxs52, jsx as jsx65, jsxs as jsxs53, jsx as jsx66, jsxs as jsxs54, Fragment as Fragment20, jsx as jsx67, jsxs as jsxs55, jsx as jsx68, jsxs as jsxs56, jsx as jsx69, jsx as jsx70, jsxs as jsxs57, jsx as jsx71, jsxs as jsxs58, jsx as jsx72, jsxs as jsxs59, Fragment as Fragment21, jsx as jsx73, jsxs as jsxs60, jsx as jsx74, jsxs as jsxs61, Fragment as Fragment22, jsx as jsx75, jsxs as jsxs62, jsx as jsx76, jsxs as jsxs63, Fragment as Fragment23, jsx as jsx77, jsxs as jsxs64, jsx as jsx78, jsx as jsx79, jsx as jsx80, jsxs as jsxs65, Fragment as Fragment24, jsx as jsx81, jsxs as jsxs66, jsx as jsx82, jsxs as jsxs67, jsx as jsx83, jsxs as jsxs68, Fragment as Fragment25, jsx as jsx84, jsxs as jsxs69, jsx as jsx85, jsxs as jsxs70, jsx as jsx86, jsxs as jsxs71, jsx as jsx87, jsx as jsx88, jsxs as jsxs72, jsx as jsx89, jsx as jsx90, jsxs as jsxs73, Fragment as Fragment26, jsx as jsx91, jsxs as jsxs74, jsx as jsx92, Fragment as Fragment27, jsx as jsx93, jsxs as jsxs75, jsx as jsx94, jsxs as jsxs76, jsx as jsx95, jsxs as jsxs77, jsx as jsx96, jsx as jsx97, jsx as jsx98, jsxs as jsxs78, jsx as jsx99, Fragment as Fragment30, jsx as jsx100, jsxs as jsxs79, jsx as jsx101, jsx as jsx102, jsxs as jsxs80, jsx as jsx103, jsxs as jsxs81, jsx as jsx104, jsxs as jsxs82, Fragment as Fragment31, jsx as jsx105, jsxs as jsxs83, jsx as jsx106, jsxs as jsxs84, Fragment as Fragment32, jsx as jsx107, jsxs as jsxs85, jsx as jsx108, jsxs as jsxs86, Fragment as Fragment33, jsx as jsx109, jsxs as jsxs87, Fragment as Fragment34, jsx as jsx110, jsxs as jsxs88, jsx as jsx111, jsxs as jsxs89, jsx as jsx112, jsxs as jsxs90, jsx as jsx113, jsxs as jsxs91 } from "react/jsx-runtime"; import { forwardRef, forwardRef as forwardRef2, useCallback, useRef, useState, useRef as useRef2, useLayoutEffect, forwardRef as forwardRef3, useEffect, useRef as useRef3, useState as useState2, useEffect as useEffect2, useMemo, useRef as useRef4, useState as useState3, useContext as useContext2, useRef as useRef7, useState as useState7, createContext, forwardRef as forwardRef4, useCallback as useCallback2, useContext, useEffect as useEffect3, useLayoutEffect as useLayoutEffect2, useMemo as useMemo2, useRef as useRef5, useEffect as useEffect6, useRef as useRef6, useState as useState6, useCallback as useCallback3, useEffect as useEffect4, useLayoutEffect as useLayoutEffect3, useState as useState4, useEffect as useEffect5, useState as useState5, cloneElement, isValidElement, useContext as useContext5, useEffect as useEffect9, useId as useId2, useLayoutEffect as useLayoutEffect4, useRef as useRef10, useState as useState9, createContext as createContext2, forwardRef as forwardRef5, useContext as useContext3, useEffect as useEffect7, useId, useRef as useRef8, createContext as createContext3, forwardRef as forwardRef6, useCallback as useCallback4, useContext as useContext4, useEffect as useEffect8, useMemo as useMemo3, useRef as useRef9, useState as useState8, forwardRef as forwardRef7, forwardRef as forwardRef8, useRef as useRef11, forwardRef as forwardRef9, useCallback as useCallback5, useEffect as useEffect10, useId as useId4, useLayoutEffect as useLayoutEffect5, useRef as useRef12, useState as useState10, useId as useId3, forwardRef as forwardRef10, useState as useState11, useRef as useRef13, forwardRef as forwardRef11, useMemo as useMemo4, useRef as useRef15, useState as useState13, useEffect as useEffect11, useRef as useRef14, useState as useState12, forwardRef as forwardRef12, useMemo as useMemo5, useRef as useRef16, useState as useState14, forwardRef as forwardRef13, useLayoutEffect as useLayoutEffect6, useRef as useRef17, useId as useId5, useLayoutEffect as useLayoutEffect7, useRef as useRef18, useState as useState15, useCallback as useCallback6, useEffect as useEffect12, useId as useId6, useMemo as useMemo6, useRef as useRef19, useState as useState16, forwardRef as forwardRef14, useCallback as useCallback7, useEffect as useEffect13, useId as useId7, useMemo as useMemo7, useRef as useRef20, useState as useState17, forwardRef as forwardRef15, useContext as useContext6, useEffect as useEffect14, useId as useId8, useMemo as useMemo8, useRef as useRef21, useState as useState18, forwardRef as forwardRef16, useEffect as useEffect15, useId as useId9, useMemo as useMemo9, useRef as useRef22, useState as useState19, forwardRef as forwardRef17, useContext as useContext7, useEffect as useEffect16, useId as useId10, useMemo as useMemo10, useRef as useRef23, useState as useState20, forwardRef as forwardRef18, useCallback as useCallback9, useCallback as useCallback8, useEffect as useEffect17, useId as useId11, useLayoutEffect as useLayoutEffect8, useMemo as useMemo11, useRef as useRef24, useState as useState21, createContext as createContext4, useContext as useContext8, useId as useId12, forwardRef as forwardRef19, useId as useId13, forwardRef as forwardRef20, useContext as useContext9, useEffect as useEffect18, useId as useId14, useImperativeHandle, useRef as useRef25, useState as useState22, useId as useId15, useRef as useRef26, useState as useState23, useEffect as useEffect19, useId as useId16, useRef as useRef27, useState as useState24, useEffect as useEffect21, useRef as useRef29, useState as useState26, useId as useId17, useCallback as useCallback10, useEffect as useEffect20, useId as useId18, useRef as useRef28, useState as useState25, forwardRef as forwardRef21, useEffect as useEffect22, useImperativeHandle as useImperativeHandle2, useMemo as useMemo12, useRef as useRef30, useState as useState27, forwardRef as forwardRef22, useCallback as useCallback11, useId as useId19, useRef as useRef31, useState as useState28, forwardRef as forwardRef23, useEffect as useEffect23, useId as useId20, useImperativeHandle as useImperativeHandle3, useRef as useRef32, useState as useState29, forwardRef as forwardRef24, useCallback as useCallback12, useEffect as useEffect24, useId as useId21, useRef as useRef33, useState as useState30, useState as useState31, useSyncExternalStore, useEffect as useEffect25, useState as useState32, useEffect as useEffect26, useRef as useRef34, useId as useId22, useState as useState34, useEffect as useEffect27, useRef as useRef35, useState as useState33, useId as useId23, cloneElement as cloneElement2, isValidElement as isValidElement2, useCallback as useCallback13, useEffect as useEffect28, useId as useId24, useRef as useRef36, Fragment as Fragment15, useEffect as useEffect29, useId as useId26, useMemo as useMemo13, useRef as useRef38, useState as useState35, createContext as createContext5, useContext as useContext10, useId as useId25, useLayoutEffect as useLayoutEffect9, useRef as useRef37, useEffect as useEffect30, useId as useId27, useLayoutEffect as useLayoutEffect10, useMemo as useMemo14, useRef as useRef39, useState as useState36, useCallback as useCallback14, useEffect as useEffect31, useRef as useRef40, cloneElement as cloneElement3, forwardRef as forwardRef25, isValidElement as isValidElement3, useContext as useContext11, useEffect as useEffect33, useId as useId28, useRef as useRef41, useState as useState37, useEffect as useEffect32, createContext as createContext6, useCallback as useCallback15, useEffect as useEffect34, useId as useId29, useRef as useRef42, useState as useState38, useEffect as useEffect35, useId as useId30, useMemo as useMemo15, useRef as useRef43, useState as useState39, createContext as createContext7, useContext as useContext12, useEffect as useEffect36, useId as useId31, useRef as useRef44, forwardRef as forwardRef26, useId as useId32, forwardRef as forwardRef27, useContext as useContext14, createContext as createContext8, useContext as useContext13, createContext as createContext9, useCallback as useCallback16, useContext as useContext15, useEffect as useEffect37, useId as useId33, useLayoutEffect as useLayoutEffect11, useMemo as useMemo16, useRef as useRef45, useState as useState40, useCallback as useCallback17, useId as useId34, useMemo as useMemo17, useState as useState42, useEffect as useEffect38, useRef as useRef46, useState as useState41, useMemo as useMemo18, useEffect as useEffect39, useId as useId35, useLayoutEffect as useLayoutEffect12, useRef as useRef47, useState as useState43, useState as useState45, useLayoutEffect as useLayoutEffect13, useRef as useRef48, useState as useState44, useState as useState46, useId as useId36, useLayoutEffect as useLayoutEffect14, useMemo as useMemo19, useRef as useRef49, useState as useState47, useMemo as useMemo20, useRef as useRef50, useState as useState48, useEffect as useEffect40, useMemo as useMemo21, useRef as useRef51, useState as useState49, forwardRef as forwardRef28, useMemo as useMemo22, useState as useState50, Children, cloneElement as cloneElement4, isValidElement as isValidElement4, forwardRef as forwardRef29, useCallback as useCallback18, useEffect as useEffect41, useLayoutEffect as useLayoutEffect15, useRef as useRef52, useState as useState51, forwardRef as forwardRef30, useEffect as useEffect42, useImperativeHandle as useImperativeHandle4, useRef as useRef53, useState as useState52, Children as Children2, createContext as createContext10, isValidElement as isValidElement5, useCallback as useCallback19, useContext as useContext16, useEffect as useEffect43, useLayoutEffect as useLayoutEffect16, useRef as useRef54, useState as useState53, forwardRef as forwardRef31, useCallback as useCallback21, useEffect as useEffect44, useImperativeHandle as useImperativeHandle5, useLayoutEffect as useLayoutEffect18, useRef as useRef56, useState as useState55, useCallback as useCallback20, useLayoutEffect as useLayoutEffect17, useMemo as useMemo23, useReducer, useRef as useRef55, useState as useState54, Children as Children3, createContext as createContext11, Fragment as Fragment28, isValidElement as isValidElement6, useCallback as useCallback22, useContext as useContext17, useEffect as useEffect45, useId as useId37, useLayoutEffect as useLayoutEffect19, useRef as useRef57, useRef as useRef58, forwardRef as forwardRef32, useEffect as useEffect46, useRef as useRef59, createElement, Fragment as Fragment29, memo, useMemo as useMemo24, useRef as useRef60, forwardRef as forwardRef33, useEffect as useEffect47, useId as useId38, useLayoutEffect as useLayoutEffect20, useRef as useRef61, useState as useState56, forwardRef as forwardRef34, Children as Children4, createContext as createContext12, forwardRef as forwardRef35, useCallback as useCallback23, useEffect as useEffect48, useImperativeHandle as useImperativeHandle6, useLayoutEffect as useLayoutEffect21, useMemo as useMemo25, useRef as useRef62, useState as useState57, forwardRef as forwardRef36, useContext as useContext18, useEffect as useEffect49, useId as useId39, useLayoutEffect as useLayoutEffect22, useRef as useRef63, useState as useState58, forwardRef as forwardRef37, useEffect as useEffect50, useId as useId40, useRef as useRef64, useState as useState59, forwardRef as forwardRef38, useId as useId41, forwardRef as forwardRef39, useCallback as useCallback24, useEffect as useEffect51, useId as useId42, useRef as useRef65, useState as useState60, forwardRef as forwardRef40, useCallback as useCallback25, useEffect as useEffect52, useId as useId43, useRef as useRef66, useState as useState61, forwardRef as forwardRef41, useRef as useRef68, useState as useState63, useCallback as useCallback26, useReducer as useReducer2, useRef as useRef67, useState as useState62, forwardRef as forwardRef42, useId as useId44, useRef as useRef69, forwardRef as forwardRef43, useRef as useRef70 } from "react"; import { Toaster as SonnerToaster, toast } from "sonner"; import { flushSync } from "react-dom"; import { HexAlphaColorPicker, HexColorInput, HexColorPicker } from "react-colorful";
17
17
  var elements = {
18
18
  hero: "h1",
19
19
  "page-title": "h1",
@@ -56,7 +56,7 @@ function Text({ variant = "body", as, tone, align, truncate = false, className,
56
56
  }
57
57
 
58
58
  // src/components/Button/Button.tsx
59
- import { forwardRef } from "react";
59
+
60
60
 
61
61
  // src/utils/text.ts
62
62
  function getInitials(name) {
@@ -70,7 +70,7 @@ function toAriaShortcut(shortcut) {
70
70
  }
71
71
 
72
72
  // src/components/Spinner/Spinner.tsx
73
- import { jsx as jsx2 } from "react/jsx-runtime";
73
+
74
74
  function Spinner({ size: size2 = "md", tone = "primary", label = "Loading", className }) {
75
75
  return /* @__PURE__ */ jsx2(
76
76
  "span",
@@ -82,7 +82,7 @@ function Spinner({ size: size2 = "md", tone = "primary", label = "Loading", clas
82
82
  }
83
83
 
84
84
  // src/components/Button/Button.tsx
85
- import { jsx as jsx3, jsxs } from "react/jsx-runtime";
85
+
86
86
  function buttonClassName({
87
87
  variant = "secondary",
88
88
  size: size2 = "md",
@@ -141,10 +141,10 @@ var Button = /* @__PURE__ */ forwardRef(function Button2({
141
141
  });
142
142
 
143
143
  // src/components/Button/ButtonGroup.tsx
144
- import { forwardRef as forwardRef2 } from "react";
144
+
145
145
 
146
146
  // src/hooks/useControllableState.ts
147
- import { useCallback, useRef, useState } from "react";
147
+
148
148
  function useControllableState(value, defaultValue2, onChange) {
149
149
  const [internal, setInternal] = useState(defaultValue2);
150
150
  const isControlled = value !== void 0;
@@ -166,7 +166,7 @@ function useControllableState(value, defaultValue2, onChange) {
166
166
  }
167
167
 
168
168
  // src/icons.tsx
169
- import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
169
+
170
170
  function icon(paths2) {
171
171
  return function Icon({ size: size2 = 16, strokeWidth = 2, ...props }) {
172
172
  return /* @__PURE__ */ jsx4(
@@ -387,7 +387,7 @@ var PauseIcon = /* @__PURE__ */ icon(
387
387
  var PlayIcon = /* @__PURE__ */ icon(/* @__PURE__ */ jsx4("polygon", { points: "6 3 20 12 6 21 6 3" }));
388
388
 
389
389
  // src/components/Button/ButtonGroup.tsx
390
- import { jsx as jsx5 } from "react/jsx-runtime";
390
+
391
391
  function ButtonGroup({ attached = true, orientation = "horizontal", className, ...props }) {
392
392
  return /* @__PURE__ */ jsx5(
393
393
  "div",
@@ -435,10 +435,10 @@ var ToggleButton = /* @__PURE__ */ forwardRef2(function ToggleButton2({ pressed:
435
435
  });
436
436
 
437
437
  // src/components/SegmentedControl/SegmentedControl.tsx
438
- import { useRef as useRef2 } from "react";
438
+
439
439
 
440
440
  // src/hooks/useIndicator.ts
441
- import { useLayoutEffect } from "react";
441
+
442
442
  function useIndicator(containerRef, selector, key) {
443
443
  useLayoutEffect(() => {
444
444
  const container = containerRef.current;
@@ -476,7 +476,7 @@ function useIndicator(containerRef, selector, key) {
476
476
  }
477
477
 
478
478
  // src/components/SegmentedControl/SegmentedControl.tsx
479
- import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
479
+
480
480
  function SegmentedControl({
481
481
  options,
482
482
  value,
@@ -547,8 +547,8 @@ function SegmentedControl({
547
547
  }
548
548
 
549
549
  // src/components/ChoiceCard/ChoiceCard.tsx
550
- import { forwardRef as forwardRef3 } from "react";
551
- import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
550
+
551
+
552
552
  var ChoiceCard = /* @__PURE__ */ forwardRef3(function ChoiceCard2({ className, description, icon: icon2, recommended = false, shortcut, title, type = "button", ...buttonProps }, ref) {
553
553
  return /* @__PURE__ */ jsxs4(
554
554
  "button",
@@ -573,7 +573,7 @@ var ChoiceCard = /* @__PURE__ */ forwardRef3(function ChoiceCard2({ className, d
573
573
  });
574
574
 
575
575
  // src/components/CodeBlock/CodeBlock.tsx
576
- import { useEffect, useRef as useRef3, useState as useState2 } from "react";
576
+
577
577
 
578
578
  // src/utils/copyText.ts
579
579
  async function copyText(text2) {
@@ -600,7 +600,7 @@ async function copyText(text2) {
600
600
  }
601
601
 
602
602
  // src/components/CodeBlock/CodeBlock.tsx
603
- import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
603
+
604
604
  function CopyButton({ value, label = "Copy", copiedLabel = "Copied", iconOnly = false, tone = "default", onCopy, className }) {
605
605
  const [copied2, setCopied] = useState2(false);
606
606
  const timer = useRef3(0);
@@ -662,7 +662,7 @@ function Snippet({ value, prompt = "$", className }) {
662
662
  }
663
663
 
664
664
  // src/components/DiffViewer/DiffViewer.tsx
665
- import { useEffect as useEffect2, useMemo, useRef as useRef4, useState as useState3 } from "react";
665
+
666
666
 
667
667
  // src/components/DiffViewer/diff.ts
668
668
  var SAME = 0;
@@ -908,7 +908,7 @@ function toRows(lines2, context, opened, split3) {
908
908
  }
909
909
 
910
910
  // src/components/DiffViewer/DiffViewer.tsx
911
- import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
911
+
912
912
  var closed = [];
913
913
  var lines = (count) => `${count} ${count === 1 ? "line" : "lines"}`;
914
914
  var defaultLabels = {
@@ -1104,20 +1104,20 @@ function DiffTable({ file, split: split3, context, wrap, showLineNumbers, copyab
1104
1104
  }
1105
1105
 
1106
1106
  // src/components/ToggleButtonGroup/ToggleButtonGroup.tsx
1107
- import { useContext as useContext2, useRef as useRef7, useState as useState7 } from "react";
1107
+
1108
1108
 
1109
1109
  // src/components/Toolbar/Toolbar.tsx
1110
- import {
1111
- createContext,
1112
- forwardRef as forwardRef4,
1113
- useCallback as useCallback2,
1114
- useContext,
1115
- useEffect as useEffect3,
1116
- useLayoutEffect as useLayoutEffect2,
1117
- useMemo as useMemo2,
1118
- useRef as useRef5
1119
- } from "react";
1120
- import { jsx as jsx10 } from "react/jsx-runtime";
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+
1121
1121
  var ToolbarContext = /* @__PURE__ */ createContext(null);
1122
1122
  var candidates = 'button, a[href], input:not([type="hidden"]), select, textarea, [contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"], [tabindex]';
1123
1123
  var textTypes = ["text", "search", "url", "tel", "password", "email"];
@@ -1248,10 +1248,10 @@ function ToolbarSeparator({ className }) {
1248
1248
  }
1249
1249
 
1250
1250
  // src/components/Tooltip/Tooltip.tsx
1251
- import { useEffect as useEffect6, useRef as useRef6, useState as useState6 } from "react";
1251
+
1252
1252
 
1253
1253
  // src/hooks/useFloating.ts
1254
- import { useCallback as useCallback3, useEffect as useEffect4, useLayoutEffect as useLayoutEffect3, useState as useState4 } from "react";
1254
+
1255
1255
  var margin = 8;
1256
1256
  function useFloating({
1257
1257
  open,
@@ -1377,7 +1377,7 @@ function useDismiss(open, refs, onDismiss) {
1377
1377
  var manualPopover = { popover: "manual" };
1378
1378
 
1379
1379
  // src/hooks/usePresence.ts
1380
- import { useEffect as useEffect5, useState as useState5 } from "react";
1380
+
1381
1381
  var exitDuration = 140;
1382
1382
  function usePresence(open, exitMs = exitDuration) {
1383
1383
  const [mounted, setMounted] = useState5(open);
@@ -1392,7 +1392,7 @@ function usePresence(open, exitMs = exitDuration) {
1392
1392
  }
1393
1393
 
1394
1394
  // src/components/Tooltip/Tooltip.tsx
1395
- import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
1395
+
1396
1396
  var lastClosedAt = 0;
1397
1397
  var warmWindow = 500;
1398
1398
  function Tooltip({ children, label, placement = "top", delay = 400 }) {
@@ -1446,7 +1446,7 @@ function Tooltip({ children, label, placement = "top", delay = 400 }) {
1446
1446
  }
1447
1447
 
1448
1448
  // src/components/ToggleButtonGroup/ToggleButtonGroup.tsx
1449
- import { jsx as jsx12 } from "react/jsx-runtime";
1449
+
1450
1450
  var toList = (value) => value === void 0 ? void 0 : Array.isArray(value) ? value : value === "" ? [] : [value];
1451
1451
  var hasLabel = (option) => option.label !== void 0 && option.label !== null && option.label !== false && option.label !== "";
1452
1452
  function ToggleButtonGroup(props) {
@@ -1548,18 +1548,18 @@ function ToggleButtonGroup(props) {
1548
1548
  }
1549
1549
 
1550
1550
  // src/components/Field/Field.tsx
1551
- import { cloneElement, isValidElement, useContext as useContext5, useEffect as useEffect9, useId as useId2, useLayoutEffect as useLayoutEffect4, useRef as useRef10, useState as useState9 } from "react";
1551
+
1552
1552
 
1553
1553
  // src/components/Checkbox/Checkbox.tsx
1554
- import {
1555
- createContext as createContext2,
1556
- forwardRef as forwardRef5,
1557
- useContext as useContext3,
1558
- useEffect as useEffect7,
1559
- useId,
1560
- useRef as useRef8
1561
- } from "react";
1562
- import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
1554
+
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+
1563
1563
  var CheckboxGroupContext = /* @__PURE__ */ createContext2(null);
1564
1564
  function assignRef(ref, value) {
1565
1565
  if (typeof ref === "function") ref(value);
@@ -1693,19 +1693,19 @@ function Fieldset({ legend, description, error, errorId, disabled, children, cla
1693
1693
  }
1694
1694
 
1695
1695
  // src/components/Form/Form.tsx
1696
- import {
1697
- createContext as createContext3,
1698
- forwardRef as forwardRef6,
1699
- useCallback as useCallback4,
1700
- useContext as useContext4,
1701
- useEffect as useEffect8,
1702
- useMemo as useMemo3,
1703
- useRef as useRef9,
1704
- useState as useState8
1705
- } from "react";
1696
+
1697
+
1698
+
1699
+
1700
+
1701
+
1702
+
1703
+
1704
+
1705
+
1706
1706
 
1707
1707
  // src/components/Alert/Alert.tsx
1708
- import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
1708
+
1709
1709
  var icons = {
1710
1710
  info: /* @__PURE__ */ jsx14(InfoIcon, { size: 16 }),
1711
1711
  success: /* @__PURE__ */ jsx14(CircleCheckIcon, { size: 16 }),
@@ -1744,7 +1744,7 @@ function Alert({
1744
1744
  }
1745
1745
 
1746
1746
  // src/components/Form/Form.tsx
1747
- import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
1747
+
1748
1748
  var FormContext = /* @__PURE__ */ createContext3(null);
1749
1749
  var checks = [
1750
1750
  "valueMissing",
@@ -2018,7 +2018,7 @@ function useFormStatus() {
2018
2018
  }
2019
2019
 
2020
2020
  // src/components/Field/Field.tsx
2021
- import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
2021
+
2022
2022
  var isLabelable = (element) => element instanceof HTMLInputElement || element instanceof HTMLSelectElement || element instanceof HTMLTextAreaElement || element instanceof HTMLButtonElement || element instanceof HTMLMeterElement || element instanceof HTMLOutputElement || element instanceof HTMLProgressElement;
2023
2023
  var keyOf = (value) => JSON.stringify(value ?? null);
2024
2024
  function Field({ label, children, hint, error, name: nameProp, errorMessages, className }) {
@@ -2069,8 +2069,8 @@ function Field({ label, children, hint, error, name: nameProp, errorMessages, cl
2069
2069
  }
2070
2070
 
2071
2071
  // src/components/Input/Input.tsx
2072
- import { forwardRef as forwardRef7 } from "react";
2073
- import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
2072
+
2073
+
2074
2074
  var Input = /* @__PURE__ */ forwardRef7(function Input2({ className, isInvalid = false, size: size2 = "md", startContent, endContent, ...inputProps }, ref) {
2075
2075
  const invalid = isInvalid || void 0;
2076
2076
  if (startContent === void 0 && endContent === void 0) {
@@ -2104,8 +2104,8 @@ var Input = /* @__PURE__ */ forwardRef7(function Input2({ className, isInvalid =
2104
2104
  });
2105
2105
 
2106
2106
  // src/components/SearchField/SearchField.tsx
2107
- import { forwardRef as forwardRef8, useRef as useRef11 } from "react";
2108
- import { jsx as jsx18 } from "react/jsx-runtime";
2107
+
2108
+
2109
2109
  function assignRef2(ref, value) {
2110
2110
  if (typeof ref === "function") ref(value);
2111
2111
  else if (ref) ref.current = value;
@@ -2167,11 +2167,11 @@ var SearchField = /* @__PURE__ */ forwardRef8(function SearchField2({
2167
2167
  });
2168
2168
 
2169
2169
  // src/components/PasswordInput/PasswordInput.tsx
2170
- import { forwardRef as forwardRef9, useCallback as useCallback5, useEffect as useEffect10, useId as useId4, useLayoutEffect as useLayoutEffect5, useRef as useRef12, useState as useState10 } from "react";
2170
+
2171
2171
 
2172
2172
  // src/components/Meter/Meter.tsx
2173
- import { useId as useId3 } from "react";
2174
- import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
2173
+
2174
+
2175
2175
  var clamp = (value, low, high) => Math.min(high, Math.max(low, value));
2176
2176
  function toneOf(value, min, max, low = min, high = max, optimum = (min + max) / 2) {
2177
2177
  const lowEdge = clamp(low, min, max);
@@ -2292,7 +2292,7 @@ function passwordStrength(value) {
2292
2292
  }
2293
2293
 
2294
2294
  // src/components/PasswordInput/PasswordInput.tsx
2295
- import { Fragment as Fragment3, jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
2295
+
2296
2296
  var toneOf2 = (score2) => score2 >= 3 ? "success" : score2 === 2 ? "warning" : "danger";
2297
2297
  var PasswordInput = /* @__PURE__ */ forwardRef9(function PasswordInput2({
2298
2298
  strength = false,
@@ -2435,8 +2435,8 @@ var PasswordInput = /* @__PURE__ */ forwardRef9(function PasswordInput2({
2435
2435
  });
2436
2436
 
2437
2437
  // src/components/NumberField/NumberField.tsx
2438
- import { forwardRef as forwardRef10, useState as useState11 } from "react";
2439
- import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
2438
+
2439
+
2440
2440
  var decimals = (step) => (String(step).split(".")[1] ?? "").length;
2441
2441
  var NumberField = /* @__PURE__ */ forwardRef10(function NumberField2({
2442
2442
  value,
@@ -2573,8 +2573,8 @@ var NumberField = /* @__PURE__ */ forwardRef10(function NumberField2({
2573
2573
  });
2574
2574
 
2575
2575
  // src/components/InputOTP/InputOTP.tsx
2576
- import { useRef as useRef13 } from "react";
2577
- import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
2576
+
2577
+
2578
2578
  function InputOTP({
2579
2579
  length = 6,
2580
2580
  value,
@@ -2686,7 +2686,7 @@ function InputOTP({
2686
2686
  }
2687
2687
 
2688
2688
  // src/components/DateField/DateField.tsx
2689
- import { forwardRef as forwardRef11, useMemo as useMemo4, useRef as useRef15, useState as useState13 } from "react";
2689
+
2690
2690
 
2691
2691
  // src/components/Calendar/dates.ts
2692
2692
  var pad = (n) => String(n).padStart(2, "0");
@@ -2754,8 +2754,8 @@ function monthWeeks(first, weekStartsOn) {
2754
2754
  }
2755
2755
 
2756
2756
  // src/components/DateField/SegmentedField.tsx
2757
- import { useEffect as useEffect11, useRef as useRef14, useState as useState12 } from "react";
2758
- import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
2757
+
2758
+
2759
2759
  var escapeHTML = (text2) => text2.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2760
2760
  function SegmentedField({
2761
2761
  parts,
@@ -3118,7 +3118,7 @@ function localeDigits(locale) {
3118
3118
  }
3119
3119
 
3120
3120
  // src/components/DateField/DateField.tsx
3121
- import { jsx as jsx24 } from "react/jsx-runtime";
3121
+
3122
3122
  var pad2 = (n, length = 2) => String(n).padStart(length, "0");
3123
3123
  var isLeapYear = (year) => year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
3124
3124
  function daysIn(year, month) {
@@ -3267,8 +3267,8 @@ var DateField = /* @__PURE__ */ forwardRef11(function DateField2({
3267
3267
  });
3268
3268
 
3269
3269
  // src/components/DateField/TimeField.tsx
3270
- import { forwardRef as forwardRef12, useMemo as useMemo5, useRef as useRef16, useState as useState14 } from "react";
3271
- import { jsx as jsx25 } from "react/jsx-runtime";
3270
+
3271
+
3272
3272
  var pad3 = (n) => String(n).padStart(2, "0");
3273
3273
  function toSeconds(time) {
3274
3274
  const match = time ? /^(\d{1,2}):(\d{2})(?::(\d{2}))?$/.exec(time) : null;
@@ -3459,11 +3459,11 @@ var TimeField = /* @__PURE__ */ forwardRef12(function TimeField2({
3459
3459
  });
3460
3460
 
3461
3461
  // src/components/Textarea/Textarea.tsx
3462
- import {
3463
- forwardRef as forwardRef13,
3464
- useLayoutEffect as useLayoutEffect6,
3465
- useRef as useRef17
3466
- } from "react";
3462
+
3463
+
3464
+
3465
+
3466
+
3467
3467
 
3468
3468
  // src/utils/resizeTextArea.ts
3469
3469
  var surelyOverflowingLength = 2e4;
@@ -3493,7 +3493,7 @@ function resizeTextArea(textArea) {
3493
3493
  }
3494
3494
 
3495
3495
  // src/components/Textarea/Textarea.tsx
3496
- import { jsx as jsx26 } from "react/jsx-runtime";
3496
+
3497
3497
  var defaultAutoGrowMaxHeight = 180;
3498
3498
  function assignRef3(ref, element) {
3499
3499
  if (typeof ref === "function") ref(element);
@@ -3548,8 +3548,8 @@ var Textarea = /* @__PURE__ */ forwardRef13(function Textarea2({
3548
3548
  });
3549
3549
 
3550
3550
  // src/components/InlineEdit/InlineEdit.tsx
3551
- import { useId as useId5, useLayoutEffect as useLayoutEffect7, useRef as useRef18, useState as useState15 } from "react";
3552
- import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
3551
+
3552
+
3553
3553
  var defaultLabels2 = {
3554
3554
  edit: (label) => `Edit ${label.toLowerCase()}`,
3555
3555
  save: "Save",
@@ -3758,8 +3758,8 @@ function InlineEdit({
3758
3758
  }
3759
3759
 
3760
3760
  // src/components/Select/Select.tsx
3761
- import { useCallback as useCallback6, useEffect as useEffect12, useId as useId6, useMemo as useMemo6, useRef as useRef19, useState as useState16 } from "react";
3762
- import { Fragment as Fragment5, jsx as jsx28, jsxs as jsxs19 } from "react/jsx-runtime";
3761
+
3762
+
3763
3763
  var menuGap = 4;
3764
3764
  var menuMaxHeight = 288;
3765
3765
  var typeaheadResetMs = 600;
@@ -4016,16 +4016,16 @@ function Select({
4016
4016
  }
4017
4017
 
4018
4018
  // src/components/ListBox/ListBox.tsx
4019
- import {
4020
- forwardRef as forwardRef14,
4021
- useCallback as useCallback7,
4022
- useEffect as useEffect13,
4023
- useId as useId7,
4024
- useMemo as useMemo7,
4025
- useRef as useRef20,
4026
- useState as useState17
4027
- } from "react";
4028
- import { jsx as jsx29, jsxs as jsxs20 } from "react/jsx-runtime";
4019
+
4020
+
4021
+
4022
+
4023
+
4024
+
4025
+
4026
+
4027
+
4028
+
4029
4029
  var typeaheadResetMs2 = 600;
4030
4030
  function isGroup2(item) {
4031
4031
  return "options" in item;
@@ -4333,16 +4333,16 @@ var ForwardedListBox = /* @__PURE__ */ Object.assign(/* @__PURE__ */ forwardRef1
4333
4333
  var ListBox = ForwardedListBox;
4334
4334
 
4335
4335
  // src/components/TransferList/TransferList.tsx
4336
- import {
4337
- forwardRef as forwardRef15,
4338
- useContext as useContext6,
4339
- useEffect as useEffect14,
4340
- useId as useId8,
4341
- useMemo as useMemo8,
4342
- useRef as useRef21,
4343
- useState as useState18
4344
- } from "react";
4345
- import { jsx as jsx30, jsxs as jsxs21 } from "react/jsx-runtime";
4336
+
4337
+
4338
+
4339
+
4340
+
4341
+
4342
+
4343
+
4344
+
4345
+
4346
4346
  var none = [];
4347
4347
  var sides = ["source", "target"];
4348
4348
  var other = (side) => side === "source" ? "target" : "source";
@@ -4566,15 +4566,15 @@ var TransferList = /* @__PURE__ */ forwardRef15(function TransferList2({
4566
4566
  });
4567
4567
 
4568
4568
  // src/components/Combobox/Combobox.tsx
4569
- import {
4570
- forwardRef as forwardRef16,
4571
- useEffect as useEffect15,
4572
- useId as useId9,
4573
- useMemo as useMemo9,
4574
- useRef as useRef22,
4575
- useState as useState19
4576
- } from "react";
4577
- import { Fragment as Fragment6, jsx as jsx31, jsxs as jsxs22 } from "react/jsx-runtime";
4569
+
4570
+
4571
+
4572
+
4573
+
4574
+
4575
+
4576
+
4577
+
4578
4578
  function assignRef4(ref, value) {
4579
4579
  if (typeof ref === "function") ref(value);
4580
4580
  else if (ref) ref.current = value;
@@ -4803,16 +4803,16 @@ var Combobox = /* @__PURE__ */ forwardRef16(function Combobox2({
4803
4803
  });
4804
4804
 
4805
4805
  // src/components/TagInput/TagInput.tsx
4806
- import {
4807
- forwardRef as forwardRef17,
4808
- useContext as useContext7,
4809
- useEffect as useEffect16,
4810
- useId as useId10,
4811
- useMemo as useMemo10,
4812
- useRef as useRef23,
4813
- useState as useState20
4814
- } from "react";
4815
- import { Fragment as Fragment7, jsx as jsx32, jsxs as jsxs23 } from "react/jsx-runtime";
4806
+
4807
+
4808
+
4809
+
4810
+
4811
+
4812
+
4813
+
4814
+
4815
+
4816
4816
  var none2 = [];
4817
4817
  var escape = (text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
4818
4818
  var TagInput = /* @__PURE__ */ forwardRef17(function TagInput2({
@@ -5196,11 +5196,11 @@ var TagInput = /* @__PURE__ */ forwardRef17(function TagInput2({
5196
5196
  });
5197
5197
 
5198
5198
  // src/components/MentionInput/MentionInput.tsx
5199
- import { forwardRef as forwardRef18, useCallback as useCallback9 } from "react";
5199
+
5200
5200
 
5201
5201
  // src/components/MentionInput/useMentions.tsx
5202
- import { useCallback as useCallback8, useEffect as useEffect17, useId as useId11, useLayoutEffect as useLayoutEffect8, useMemo as useMemo11, useRef as useRef24, useState as useState21 } from "react";
5203
- import { Fragment as Fragment8, jsx as jsx33, jsxs as jsxs24 } from "react/jsx-runtime";
5202
+
5203
+
5204
5204
  var copied = [
5205
5205
  "box-sizing",
5206
5206
  "width",
@@ -5504,7 +5504,7 @@ function useMentions({ triggers, value, onMentionsChange, disabled = false, size
5504
5504
  }
5505
5505
 
5506
5506
  // src/components/MentionInput/MentionInput.tsx
5507
- import { Fragment as Fragment9, jsx as jsx34, jsxs as jsxs25 } from "react/jsx-runtime";
5507
+
5508
5508
  var MentionInput = /* @__PURE__ */ forwardRef18(function MentionInput2({ triggers, value, defaultValue: defaultValue2 = "", onChange, onMentionsChange, multiline = false, rows = 3, maxHeight, size: size2 = "md", disabled = false, labels, ...props }, ref) {
5509
5509
  const [text2, setText] = useControllableState(value, defaultValue2, onChange);
5510
5510
  const { ref: attach, list } = useMentions({ triggers, value: text2, onMentionsChange, disabled, size: size2, labels });
@@ -5530,8 +5530,8 @@ var MentionInput = /* @__PURE__ */ forwardRef18(function MentionInput2({ trigger
5530
5530
  });
5531
5531
 
5532
5532
  // src/components/RadioGroup/RadioGroup.tsx
5533
- import { createContext as createContext4, useContext as useContext8, useId as useId12 } from "react";
5534
- import { jsx as jsx35, jsxs as jsxs26 } from "react/jsx-runtime";
5533
+
5534
+
5535
5535
  var RadioGroupContext = /* @__PURE__ */ createContext4(null);
5536
5536
  function RadioGroup({
5537
5537
  label,
@@ -5593,8 +5593,8 @@ function Radio({ value, children, description, disabled, className, ...inputProp
5593
5593
  }
5594
5594
 
5595
5595
  // src/components/Switch/Switch.tsx
5596
- import { forwardRef as forwardRef19 } from "react";
5597
- import { jsx as jsx36 } from "react/jsx-runtime";
5596
+
5597
+
5598
5598
  var Switch = /* @__PURE__ */ forwardRef19(function Switch2({ checked, onChange, label, className, disabled, ...buttonProps }, ref) {
5599
5599
  return /* @__PURE__ */ jsx36(
5600
5600
  "button",
@@ -5614,8 +5614,8 @@ var Switch = /* @__PURE__ */ forwardRef19(function Switch2({ checked, onChange,
5614
5614
  });
5615
5615
 
5616
5616
  // src/components/Slider/Slider.tsx
5617
- import { useId as useId13 } from "react";
5618
- import { jsx as jsx37, jsxs as jsxs27 } from "react/jsx-runtime";
5617
+
5618
+
5619
5619
  function Slider({
5620
5620
  value,
5621
5621
  defaultValue: defaultValue2,
@@ -5685,16 +5685,16 @@ function Slider({
5685
5685
  }
5686
5686
 
5687
5687
  // src/components/SignaturePad/SignaturePad.tsx
5688
- import {
5689
- forwardRef as forwardRef20,
5690
- useContext as useContext9,
5691
- useEffect as useEffect18,
5692
- useId as useId14,
5693
- useImperativeHandle,
5694
- useRef as useRef25,
5695
- useState as useState22
5696
- } from "react";
5697
- import { jsx as jsx38, jsxs as jsxs28 } from "react/jsx-runtime";
5688
+
5689
+
5690
+
5691
+
5692
+
5693
+
5694
+
5695
+
5696
+
5697
+
5698
5698
  var defaultLabels3 = {
5699
5699
  signHere: "Sign here",
5700
5700
  clear: "Clear",
@@ -6102,8 +6102,8 @@ var SignaturePad = /* @__PURE__ */ forwardRef20(function SignaturePad2({
6102
6102
  });
6103
6103
 
6104
6104
  // src/components/Rating/Rating.tsx
6105
- import { useId as useId15, useRef as useRef26, useState as useState23 } from "react";
6106
- import { jsx as jsx39, jsxs as jsxs29 } from "react/jsx-runtime";
6105
+
6106
+
6107
6107
  var formatValue = (value) => String(Math.round(value * 10) / 10);
6108
6108
  var thousands = new Intl.NumberFormat("en");
6109
6109
  var defaultLabels4 = {
@@ -6256,8 +6256,8 @@ function Rating({
6256
6256
  }
6257
6257
 
6258
6258
  // src/components/FileDropZone/FileDropZone.tsx
6259
- import { useEffect as useEffect19, useId as useId16, useRef as useRef27, useState as useState24 } from "react";
6260
- import { jsx as jsx40, jsxs as jsxs30 } from "react/jsx-runtime";
6259
+
6260
+
6261
6261
  function matches3(file, accept) {
6262
6262
  if (!accept) return true;
6263
6263
  return accept.split(",").some((rule) => {
@@ -6384,11 +6384,11 @@ function FileDropZone({
6384
6384
  }
6385
6385
 
6386
6386
  // src/components/UploadList/UploadList.tsx
6387
- import { useEffect as useEffect21, useRef as useRef29, useState as useState26 } from "react";
6387
+
6388
6388
 
6389
6389
  // src/components/Progress/Progress.tsx
6390
- import { useId as useId17 } from "react";
6391
- import { jsx as jsx41, jsxs as jsxs31 } from "react/jsx-runtime";
6390
+
6391
+
6392
6392
  function ProgressBar({
6393
6393
  value,
6394
6394
  max = 100,
@@ -6483,7 +6483,7 @@ function ProgressCircle({
6483
6483
  }
6484
6484
 
6485
6485
  // src/components/UploadList/useUploadQueue.ts
6486
- import { useCallback as useCallback10, useEffect as useEffect20, useId as useId18, useRef as useRef28, useState as useState25 } from "react";
6486
+
6487
6487
  function useUploadQueue(uploader, { concurrency = 3 } = {}) {
6488
6488
  const [items2, setItems] = useState25([]);
6489
6489
  const prefix = useId18();
@@ -6575,7 +6575,7 @@ function useUploadQueue(uploader, { concurrency = 3 } = {}) {
6575
6575
  }
6576
6576
 
6577
6577
  // src/components/UploadList/UploadList.tsx
6578
- import { jsx as jsx42, jsxs as jsxs32 } from "react/jsx-runtime";
6578
+
6579
6579
  var retryIcon = /* @__PURE__ */ jsxs32(
6580
6580
  "svg",
6581
6581
  {
@@ -6749,8 +6749,8 @@ function UploadList({
6749
6749
  }
6750
6750
 
6751
6751
  // src/components/Calendar/Calendar.tsx
6752
- import { forwardRef as forwardRef21, useEffect as useEffect22, useImperativeHandle as useImperativeHandle2, useMemo as useMemo12, useRef as useRef30, useState as useState27 } from "react";
6753
- import { jsx as jsx43, jsxs as jsxs33 } from "react/jsx-runtime";
6752
+
6753
+
6754
6754
  var Calendar = /* @__PURE__ */ forwardRef21(function Calendar2({ value, defaultValue: defaultValue2 = "", onChange, min, max, isDateDisabled, locale, weekStartsOn = 1, autoFocus = false, className }, ref) {
6755
6755
  const [selected, setSelected] = useControllableState(value, defaultValue2, onChange);
6756
6756
  const today = todayISO();
@@ -6939,8 +6939,8 @@ function MonthGrid({
6939
6939
  }
6940
6940
 
6941
6941
  // src/components/Calendar/DatePicker.tsx
6942
- import { forwardRef as forwardRef22, useCallback as useCallback11, useId as useId19, useRef as useRef31, useState as useState28 } from "react";
6943
- import { Fragment as Fragment10, jsx as jsx44, jsxs as jsxs34 } from "react/jsx-runtime";
6942
+
6943
+
6944
6944
  function assignRef5(ref, value) {
6945
6945
  if (typeof ref === "function") ref(value);
6946
6946
  else if (ref) ref.current = value;
@@ -7043,8 +7043,8 @@ var DatePicker = /* @__PURE__ */ forwardRef22(function DatePicker2({
7043
7043
  });
7044
7044
 
7045
7045
  // src/components/Calendar/RangeCalendar.tsx
7046
- import { forwardRef as forwardRef23, useEffect as useEffect23, useId as useId20, useImperativeHandle as useImperativeHandle3, useRef as useRef32, useState as useState29 } from "react";
7047
- import { jsx as jsx45, jsxs as jsxs35 } from "react/jsx-runtime";
7046
+
7047
+
7048
7048
  var RangeCalendar = /* @__PURE__ */ forwardRef23(function RangeCalendar2({ value, defaultValue: defaultValue2 = null, onChange, min, max, isDateDisabled, locale, weekStartsOn = 1, visibleMonths = 1, autoFocus = false, className }, ref) {
7049
7049
  const months = visibleMonths;
7050
7050
  const [range, setRange] = useControllableState(value, defaultValue2, onChange);
@@ -7209,8 +7209,8 @@ function monthsShowing(date, current, months, min, max) {
7209
7209
  }
7210
7210
 
7211
7211
  // src/components/Calendar/DateRangePicker.tsx
7212
- import { forwardRef as forwardRef24, useCallback as useCallback12, useEffect as useEffect24, useId as useId21, useRef as useRef33, useState as useState30 } from "react";
7213
- import { Fragment as Fragment11, jsx as jsx46, jsxs as jsxs36 } from "react/jsx-runtime";
7212
+
7213
+
7214
7214
  var twoMonthsQuery = "(min-width: 768px)";
7215
7215
  function assignRef6(ref, value) {
7216
7216
  if (typeof ref === "function") ref(value);
@@ -7389,16 +7389,16 @@ var DateRangePicker = /* @__PURE__ */ forwardRef24(function DateRangePicker2({
7389
7389
  });
7390
7390
 
7391
7391
  // src/components/Banner/Banner.tsx
7392
- import { useState as useState31, useSyncExternalStore } from "react";
7392
+
7393
7393
 
7394
7394
  // src/components/Container/Container.tsx
7395
- import { jsx as jsx47 } from "react/jsx-runtime";
7395
+
7396
7396
  function Container({ size: size2 = "page", as: Element2 = "div", className, ...props }) {
7397
7397
  return /* @__PURE__ */ jsx47(Element2, { className: cx("ow-container", `ow-container--${size2}`, className), ...props });
7398
7398
  }
7399
7399
 
7400
7400
  // src/components/Banner/Banner.tsx
7401
- import { Fragment as Fragment12, jsx as jsx48, jsxs as jsxs37 } from "react/jsx-runtime";
7401
+
7402
7402
  var icons2 = {
7403
7403
  brand: /* @__PURE__ */ jsx48(InfoIcon, { size: 16 }),
7404
7404
  neutral: /* @__PURE__ */ jsx48(InfoIcon, { size: 16 }),
@@ -7491,7 +7491,7 @@ function Banner({
7491
7491
  }
7492
7492
 
7493
7493
  // src/components/Badge/Badge.tsx
7494
- import { jsx as jsx49, jsxs as jsxs38 } from "react/jsx-runtime";
7494
+
7495
7495
  function Badge({ children, className, icon: icon2, size: size2 = "md", variant = "neutral", ...spanProps }) {
7496
7496
  return /* @__PURE__ */ jsxs38("span", { className: cx("ow-badge", `ow-badge--${size2}`, `ow-badge--${variant}`, className), ...spanProps, children: [
7497
7497
  icon2 ? /* @__PURE__ */ jsx49("span", { className: "ow-badge__icon", children: icon2 }) : null,
@@ -7500,8 +7500,8 @@ function Badge({ children, className, icon: icon2, size: size2 = "md", variant =
7500
7500
  }
7501
7501
 
7502
7502
  // src/components/Skeleton/Skeleton.tsx
7503
- import { useEffect as useEffect25, useState as useState32 } from "react";
7504
- import { jsx as jsx50, jsxs as jsxs39 } from "react/jsx-runtime";
7503
+
7504
+
7505
7505
  function Skeleton({ width = "100%", height = 14, soft = false, shape = "bar", className }) {
7506
7506
  return /* @__PURE__ */ jsx50(
7507
7507
  "span",
@@ -7529,9 +7529,9 @@ function SkeletonRows({ label = "Loading", rows = 4, delayMs = 150 }) {
7529
7529
  }
7530
7530
 
7531
7531
  // src/components/Toast/Toast.tsx
7532
- import { useEffect as useEffect26, useRef as useRef34 } from "react";
7533
- import { Toaster as SonnerToaster, toast } from "sonner";
7534
- import { jsx as jsx51 } from "react/jsx-runtime";
7532
+
7533
+
7534
+
7535
7535
  var icons3 = {
7536
7536
  success: /* @__PURE__ */ jsx51(CircleCheckIcon, { size: 16 }),
7537
7537
  error: /* @__PURE__ */ jsx51(CircleAlertIcon, { size: 16 }),
@@ -7590,10 +7590,10 @@ function Toaster({
7590
7590
  }
7591
7591
 
7592
7592
  // src/components/Dialog/Dialog.tsx
7593
- import { useId as useId22, useState as useState34 } from "react";
7593
+
7594
7594
 
7595
7595
  // src/hooks/useModalDialog.ts
7596
- import { useEffect as useEffect27, useRef as useRef35, useState as useState33 } from "react";
7596
+
7597
7597
  var closeAnimationMs = 160;
7598
7598
  function useModalDialog(open, onCancel) {
7599
7599
  const dialogRef = useRef35(null);
@@ -7649,7 +7649,7 @@ function useModalDialog(open, onCancel) {
7649
7649
  }
7650
7650
 
7651
7651
  // src/components/Dialog/Dialog.tsx
7652
- import { Fragment as Fragment13, jsx as jsx52, jsxs as jsxs40 } from "react/jsx-runtime";
7652
+
7653
7653
  function Dialog({
7654
7654
  open,
7655
7655
  onClose,
@@ -7762,8 +7762,8 @@ function ConfirmDialog({
7762
7762
  }
7763
7763
 
7764
7764
  // src/components/Drawer/Drawer.tsx
7765
- import { useId as useId23 } from "react";
7766
- import { jsx as jsx53, jsxs as jsxs41 } from "react/jsx-runtime";
7765
+
7766
+
7767
7767
  function Drawer({
7768
7768
  open,
7769
7769
  onClose,
@@ -7807,15 +7807,15 @@ function Drawer({
7807
7807
  }
7808
7808
 
7809
7809
  // src/components/Popover/Popover.tsx
7810
- import {
7811
- cloneElement as cloneElement2,
7812
- isValidElement as isValidElement2,
7813
- useCallback as useCallback13,
7814
- useEffect as useEffect28,
7815
- useId as useId24,
7816
- useRef as useRef36
7817
- } from "react";
7818
- import { Fragment as Fragment14, jsx as jsx54, jsxs as jsxs42 } from "react/jsx-runtime";
7810
+
7811
+
7812
+
7813
+
7814
+
7815
+
7816
+
7817
+
7818
+
7819
7819
  function Popover({
7820
7820
  trigger,
7821
7821
  children,
@@ -7903,10 +7903,10 @@ function Popover({
7903
7903
  }
7904
7904
 
7905
7905
  // src/components/NotificationCenter/NotificationCenter.tsx
7906
- import { Fragment as Fragment15, useEffect as useEffect29, useId as useId26, useMemo as useMemo13, useRef as useRef38, useState as useState35 } from "react";
7906
+
7907
7907
 
7908
7908
  // src/components/EmptyState/EmptyState.tsx
7909
- import { jsx as jsx55, jsxs as jsxs43 } from "react/jsx-runtime";
7909
+
7910
7910
  function EmptyState({ title, description, icon: icon2, actions, bordered = false, className }) {
7911
7911
  return /* @__PURE__ */ jsxs43("div", { className: cx("ow-empty", bordered && "ow-empty--bordered", className), children: [
7912
7912
  /* @__PURE__ */ jsx55("span", { className: "ow-empty__icon", "aria-hidden": "true", children: icon2 ?? /* @__PURE__ */ jsx55(InboxIcon, { size: 20 }) }),
@@ -7919,14 +7919,14 @@ function EmptyState({ title, description, icon: icon2, actions, bordered = false
7919
7919
  }
7920
7920
 
7921
7921
  // src/components/Tabs/Tabs.tsx
7922
- import {
7923
- createContext as createContext5,
7924
- useContext as useContext10,
7925
- useId as useId25,
7926
- useLayoutEffect as useLayoutEffect9,
7927
- useRef as useRef37
7928
- } from "react";
7929
- import { jsx as jsx56, jsxs as jsxs44 } from "react/jsx-runtime";
7922
+
7923
+
7924
+
7925
+
7926
+
7927
+
7928
+
7929
+
7930
7930
  var TabsContext = /* @__PURE__ */ createContext5(null);
7931
7931
  function useTabs(component) {
7932
7932
  const context = useContext10(TabsContext);
@@ -8012,7 +8012,7 @@ function TabPanel({ value, keepMounted = false, className, children, ...props })
8012
8012
  }
8013
8013
 
8014
8014
  // src/components/NotificationCenter/NotificationCenter.tsx
8015
- import { Fragment as Fragment16, jsx as jsx57, jsxs as jsxs45 } from "react/jsx-runtime";
8015
+
8016
8016
  function Glyph({ children, size: size2 }) {
8017
8017
  return /* @__PURE__ */ jsx57("svg", { width: size2, height: size2, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", focusable: "false", children });
8018
8018
  }
@@ -8302,8 +8302,8 @@ function NotificationCenter({
8302
8302
  }
8303
8303
 
8304
8304
  // src/components/Tour/Tour.tsx
8305
- import { useEffect as useEffect30, useId as useId27, useLayoutEffect as useLayoutEffect10, useMemo as useMemo14, useRef as useRef39, useState as useState36 } from "react";
8306
- import { Fragment as Fragment17, jsx as jsx58, jsxs as jsxs46 } from "react/jsx-runtime";
8305
+
8306
+
8307
8307
  function resolveTarget(target) {
8308
8308
  if (!target || typeof document === "undefined") return null;
8309
8309
  if (typeof target === "string") return document.querySelector(target);
@@ -8592,8 +8592,8 @@ function TourCard({ cardRef, id, state, centred, style, className, title, conten
8592
8592
  }
8593
8593
 
8594
8594
  // src/components/HoverCard/HoverCard.tsx
8595
- import { useCallback as useCallback14, useEffect as useEffect31, useRef as useRef40 } from "react";
8596
- import { Fragment as Fragment18, jsx as jsx59, jsxs as jsxs47 } from "react/jsx-runtime";
8595
+
8596
+
8597
8597
  function HoverCard({
8598
8598
  trigger,
8599
8599
  children,
@@ -8692,10 +8692,10 @@ function HoverCard({
8692
8692
  }
8693
8693
 
8694
8694
  // src/components/Menu/Menu.tsx
8695
- import { cloneElement as cloneElement3, forwardRef as forwardRef25, isValidElement as isValidElement3, useContext as useContext11, useEffect as useEffect33, useId as useId28, useRef as useRef41, useState as useState37 } from "react";
8695
+
8696
8696
 
8697
8697
  // src/hooks/useMenuKeyboard.ts
8698
- import { useEffect as useEffect32 } from "react";
8698
+
8699
8699
  var itemSelector = '[role="menuitem"]:not([disabled]):not([aria-disabled="true"]), [role="menuitemradio"]:not([disabled]), [role="menuitemcheckbox"]:not([disabled])';
8700
8700
  function items(menu) {
8701
8701
  return menu ? [...menu.querySelectorAll(itemSelector)] : [];
@@ -8749,11 +8749,11 @@ function useMenuKeyboard({
8749
8749
  }
8750
8750
 
8751
8751
  // src/components/Menu/Menu.context.ts
8752
- import { createContext as createContext6 } from "react";
8752
+
8753
8753
  var MenuContext = /* @__PURE__ */ createContext6(null);
8754
8754
 
8755
8755
  // src/components/Menu/Menu.tsx
8756
- import { jsx as jsx60, jsxs as jsxs48 } from "react/jsx-runtime";
8756
+
8757
8757
  function Menu({ trigger, children, label, align = "start", above = false, width, defaultOpen = false, className }) {
8758
8758
  const [open, setOpen] = useState37(defaultOpen);
8759
8759
  const rootRef = useRef41(null);
@@ -8853,8 +8853,8 @@ function MenuSeparator() {
8853
8853
  }
8854
8854
 
8855
8855
  // src/components/ContextMenu/ContextMenu.tsx
8856
- import { useCallback as useCallback15, useEffect as useEffect34, useId as useId29, useRef as useRef42, useState as useState38 } from "react";
8857
- import { jsx as jsx61, jsxs as jsxs49 } from "react/jsx-runtime";
8856
+
8857
+
8858
8858
  var longPressMs = 500;
8859
8859
  var longPressSlop = 10;
8860
8860
  var echoMs = 800;
@@ -9000,7 +9000,7 @@ function ContextMenuPanel({ anchor, open, state, menuRef, restoreRef, id, label,
9000
9000
  }
9001
9001
 
9002
9002
  // src/components/CommandPalette/CommandPalette.tsx
9003
- import { useEffect as useEffect35, useId as useId30, useMemo as useMemo15, useRef as useRef43, useState as useState39 } from "react";
9003
+
9004
9004
 
9005
9005
  // src/components/CommandPalette/filterCommands.ts
9006
9006
  function score(query, text2, loose = true) {
@@ -9037,7 +9037,7 @@ function filterCommands(commands, query) {
9037
9037
  }
9038
9038
 
9039
9039
  // src/components/CommandPalette/CommandPalette.tsx
9040
- import { jsx as jsx62, jsxs as jsxs50 } from "react/jsx-runtime";
9040
+
9041
9041
  function CommandPalette({ open, onClose, commands, placeholder = "Search commands\u2026" }) {
9042
9042
  const { dialogRef, mounted } = useModalDialog(open, onClose);
9043
9043
  const [query, setQuery] = useState39("");
@@ -9133,14 +9133,14 @@ function CommandPalette({ open, onClose, commands, placeholder = "Search command
9133
9133
  }
9134
9134
 
9135
9135
  // src/components/Accordion/Accordion.tsx
9136
- import {
9137
- createContext as createContext7,
9138
- useContext as useContext12,
9139
- useEffect as useEffect36,
9140
- useId as useId31,
9141
- useRef as useRef44
9142
- } from "react";
9143
- import { jsx as jsx63, jsxs as jsxs51 } from "react/jsx-runtime";
9136
+
9137
+
9138
+
9139
+
9140
+
9141
+
9142
+
9143
+
9144
9144
  function DisclosureView({
9145
9145
  open,
9146
9146
  onToggle,
@@ -9268,8 +9268,8 @@ function AccordionItem({ value, ...props }) {
9268
9268
  }
9269
9269
 
9270
9270
  // src/components/Breadcrumbs/Breadcrumbs.tsx
9271
- import { forwardRef as forwardRef26 } from "react";
9272
- import { Fragment as Fragment19, jsx as jsx64, jsxs as jsxs52 } from "react/jsx-runtime";
9271
+
9272
+
9273
9273
  function Breadcrumbs({ items: items2, separator = "chevron", label = "Breadcrumb", className }) {
9274
9274
  return /* @__PURE__ */ jsx64("nav", { "aria-label": label, className: cx("ow-breadcrumbs", className), children: /* @__PURE__ */ jsx64("ol", { className: "ow-breadcrumbs__list", children: items2.map((item, index) => {
9275
9275
  const isLast = index === items2.length - 1;
@@ -9303,7 +9303,7 @@ var Link = /* @__PURE__ */ forwardRef26(function Link2({ variant = "default", ex
9303
9303
  });
9304
9304
 
9305
9305
  // src/components/Pagination/Pagination.tsx
9306
- import { jsx as jsx65, jsxs as jsxs53 } from "react/jsx-runtime";
9306
+
9307
9307
  function paginationItems(page, pageCount, siblingCount = 1, boundaryCount = 1) {
9308
9308
  const range = (from, to) => Array.from({ length: Math.max(0, to - from + 1) }, (_, i) => from + i);
9309
9309
  const startPages = range(1, Math.min(boundaryCount, pageCount));
@@ -9376,8 +9376,8 @@ function Pagination({
9376
9376
  }
9377
9377
 
9378
9378
  // src/components/Steps/Steps.tsx
9379
- import { useId as useId32 } from "react";
9380
- import { jsx as jsx66, jsxs as jsxs54 } from "react/jsx-runtime";
9379
+
9380
+
9381
9381
  function Steps({ items: items2, current = 0, orientation = "vertical", title, label = "Steps", className }) {
9382
9382
  const statuses = items2.map((item, index) => item.status ?? (index < current ? "done" : index === current ? "current" : "upcoming"));
9383
9383
  const doneCount = statuses.filter((status) => status === "done").length;
@@ -9427,17 +9427,17 @@ function Steps({ items: items2, current = 0, orientation = "vertical", title, la
9427
9427
  }
9428
9428
 
9429
9429
  // src/components/NavList/NavList.tsx
9430
- import { forwardRef as forwardRef27, useContext as useContext14 } from "react";
9430
+
9431
9431
 
9432
9432
  // src/components/AppShell/AppShell.context.ts
9433
- import { createContext as createContext8, useContext as useContext13 } from "react";
9433
+
9434
9434
  var AppShellContext = /* @__PURE__ */ createContext8(null);
9435
9435
  function useAppShell() {
9436
9436
  return useContext13(AppShellContext);
9437
9437
  }
9438
9438
 
9439
9439
  // src/components/NavList/NavList.tsx
9440
- import { Fragment as Fragment20, jsx as jsx67, jsxs as jsxs55 } from "react/jsx-runtime";
9440
+
9441
9441
  function NavList({ label, heading, orientation = "vertical", children, className }) {
9442
9442
  return /* @__PURE__ */ jsxs55("nav", { "aria-label": label, className: cx("ow-nav", `ow-nav--${orientation}`, className), children: [
9443
9443
  heading && orientation === "vertical" ? /* @__PURE__ */ jsx67("span", { className: "ow-nav__heading", children: heading }) : null,
@@ -9460,18 +9460,18 @@ var NavItem = /* @__PURE__ */ forwardRef27(function NavItem2({ icon: icon2, acti
9460
9460
  });
9461
9461
 
9462
9462
  // src/components/NavigationMenu/NavigationMenu.tsx
9463
- import {
9464
- createContext as createContext9,
9465
- useCallback as useCallback16,
9466
- useContext as useContext15,
9467
- useEffect as useEffect37,
9468
- useId as useId33,
9469
- useLayoutEffect as useLayoutEffect11,
9470
- useMemo as useMemo16,
9471
- useRef as useRef45,
9472
- useState as useState40
9473
- } from "react";
9474
- import { jsx as jsx68, jsxs as jsxs56 } from "react/jsx-runtime";
9463
+
9464
+
9465
+
9466
+
9467
+
9468
+
9469
+
9470
+
9471
+
9472
+
9473
+
9474
+
9475
9475
  var Context = /* @__PURE__ */ createContext9(null);
9476
9476
  var mouse = (event) => event.pointerType === "mouse";
9477
9477
  var isRtl = (element) => getComputedStyle(element).direction === "rtl";
@@ -9706,15 +9706,15 @@ function NavigationMenuGroup({ title, children, className }) {
9706
9706
  }
9707
9707
 
9708
9708
  // src/components/AppShell/AppShell.tsx
9709
- import { useCallback as useCallback17, useId as useId34, useMemo as useMemo17, useState as useState42 } from "react";
9709
+
9710
9710
 
9711
9711
  // src/components/Layout/Layout.tsx
9712
- import {
9713
- useEffect as useEffect38,
9714
- useRef as useRef46,
9715
- useState as useState41
9716
- } from "react";
9717
- import { jsx as jsx69 } from "react/jsx-runtime";
9712
+
9713
+
9714
+
9715
+
9716
+
9717
+
9718
9718
  var space = (token) => token === "none" ? "0" : `var(--ow-space-${token})`;
9719
9719
  var alignments = { start: "flex-start", center: "center", end: "flex-end", stretch: "stretch", baseline: "baseline", between: "space-between" };
9720
9720
  function Stack({
@@ -9817,7 +9817,7 @@ function VisuallyHidden({ className, ...props }) {
9817
9817
  }
9818
9818
 
9819
9819
  // src/components/AppShell/AppShell.tsx
9820
- import { jsx as jsx70, jsxs as jsxs57 } from "react/jsx-runtime";
9820
+
9821
9821
  function AppShell({
9822
9822
  sidebar,
9823
9823
  children,
@@ -9908,8 +9908,8 @@ function SidebarToggle({ labels = {}, className }) {
9908
9908
  }
9909
9909
 
9910
9910
  // src/components/Table/Table.tsx
9911
- import { useMemo as useMemo18 } from "react";
9912
- import { jsx as jsx71, jsxs as jsxs58 } from "react/jsx-runtime";
9911
+
9912
+
9913
9913
  function compare(a, b) {
9914
9914
  if (typeof a === "number" && typeof b === "number") return a - b;
9915
9915
  return String(a).localeCompare(String(b), void 0, { numeric: true, sensitivity: "base" });
@@ -10024,7 +10024,7 @@ function Table({
10024
10024
  }
10025
10025
 
10026
10026
  // src/components/Stat/Stat.tsx
10027
- import { jsx as jsx72, jsxs as jsxs59 } from "react/jsx-runtime";
10027
+
10028
10028
  function Sparkline({ values }) {
10029
10029
  const max = Math.max(...values);
10030
10030
  const min = Math.min(...values);
@@ -10065,7 +10065,7 @@ function Stat({ label, value, icon: icon2, change, changeTone, description, tren
10065
10065
  }
10066
10066
 
10067
10067
  // src/components/DescriptionList/DescriptionList.tsx
10068
- import { Fragment as Fragment21, jsx as jsx73, jsxs as jsxs60 } from "react/jsx-runtime";
10068
+
10069
10069
  function DescriptionList({
10070
10070
  layout = "horizontal",
10071
10071
  columns = 2,
@@ -10104,7 +10104,7 @@ function DescriptionItem({ term, children, action, span = 1, className, ...props
10104
10104
  }
10105
10105
 
10106
10106
  // src/components/Timeline/Timeline.tsx
10107
- import { jsx as jsx74, jsxs as jsxs61 } from "react/jsx-runtime";
10107
+
10108
10108
  function Timeline({ density = "comfortable", className, children, ...props }) {
10109
10109
  return /* @__PURE__ */ jsx74("ol", { className: cx("ow-timeline", `ow-timeline--${density}`, className), ...props, children });
10110
10110
  }
@@ -10152,14 +10152,14 @@ function TimelineItem({
10152
10152
  }
10153
10153
 
10154
10154
  // src/components/SortableList/SortableList.tsx
10155
- import {
10156
- useEffect as useEffect39,
10157
- useId as useId35,
10158
- useLayoutEffect as useLayoutEffect12,
10159
- useRef as useRef47,
10160
- useState as useState43
10161
- } from "react";
10162
- import { Fragment as Fragment22, jsx as jsx75, jsxs as jsxs62 } from "react/jsx-runtime";
10155
+
10156
+
10157
+
10158
+
10159
+
10160
+
10161
+
10162
+
10163
10163
  var defaultLabels5 = {
10164
10164
  pickedUp: (item, position, total) => `Picked up ${item}. Position ${position} of ${total}.`,
10165
10165
  moved: (item, position, total) => `${item}, position ${position} of ${total}.`,
@@ -10444,10 +10444,10 @@ function SortableList({
10444
10444
  }
10445
10445
 
10446
10446
  // src/components/Chart/Cartesian.tsx
10447
- import { useState as useState45 } from "react";
10447
+
10448
10448
 
10449
10449
  // src/components/Chart/chartUtils.ts
10450
- import { useLayoutEffect as useLayoutEffect13, useRef as useRef48, useState as useState44 } from "react";
10450
+
10451
10451
  var colorOf = (color, index) => color === void 0 ? `var(--ow-chart-${index % 8 + 1})` : typeof color === "number" ? `var(--ow-chart-${color})` : color;
10452
10452
  var seriesColors = (series) => series.map((entry, index) => colorOf(entry.color, index));
10453
10453
  var number = new Intl.NumberFormat();
@@ -10490,7 +10490,7 @@ function useWidth() {
10490
10490
  var textWidth = (text2) => text2.length * 6.6;
10491
10491
 
10492
10492
  // src/components/Chart/ChartParts.tsx
10493
- import { jsx as jsx76, jsxs as jsxs63 } from "react/jsx-runtime";
10493
+
10494
10494
  function ChartLegend({ items: items2, shape }) {
10495
10495
  return /* @__PURE__ */ jsx76("ul", { className: "ow-chart__legend", children: items2.map((item, i) => /* @__PURE__ */ jsxs63("li", { className: "ow-chart__legend-item", children: [
10496
10496
  /* @__PURE__ */ jsx76("span", { className: `ow-chart__key ow-chart__key--${shape}`, style: { background: item.color }, "aria-hidden": "true" }),
@@ -10509,7 +10509,7 @@ function ChartTable({ caption, head, rows }) {
10509
10509
  }
10510
10510
 
10511
10511
  // src/components/Chart/Cartesian.tsx
10512
- import { Fragment as Fragment23, jsx as jsx77, jsxs as jsxs64 } from "react/jsx-runtime";
10512
+
10513
10513
  var gap = 2;
10514
10514
  var maxBar = 24;
10515
10515
  var radius = 4;
@@ -10740,20 +10740,20 @@ function flipped(x, top, width, bottom) {
10740
10740
  }
10741
10741
 
10742
10742
  // src/components/Chart/LineChart.tsx
10743
- import { jsx as jsx78 } from "react/jsx-runtime";
10743
+
10744
10744
  function LineChart(props) {
10745
10745
  return /* @__PURE__ */ jsx78(CartesianChart, { kind: "line", ...props });
10746
10746
  }
10747
10747
 
10748
10748
  // src/components/Chart/BarChart.tsx
10749
- import { jsx as jsx79 } from "react/jsx-runtime";
10749
+
10750
10750
  function BarChart(props) {
10751
10751
  return /* @__PURE__ */ jsx79(CartesianChart, { kind: "bar", ...props });
10752
10752
  }
10753
10753
 
10754
10754
  // src/components/Chart/DonutChart.tsx
10755
- import { useState as useState46 } from "react";
10756
- import { jsx as jsx80, jsxs as jsxs65 } from "react/jsx-runtime";
10755
+
10756
+
10757
10757
  var percent = new Intl.NumberFormat(void 0, { style: "percent", maximumFractionDigits: 1 });
10758
10758
  function slicePath(cx2, cy, outer, inner, start, end) {
10759
10759
  const point = (r2, a) => `${(cx2 + r2 * Math.sin(a)).toFixed(2)} ${(cy - r2 * Math.cos(a)).toFixed(2)}`;
@@ -10862,7 +10862,7 @@ function innerPadded(outer, inner, start, end, padOuter, padInner) {
10862
10862
  }
10863
10863
 
10864
10864
  // src/components/Chart/Sparkline.tsx
10865
- import { Fragment as Fragment24, jsx as jsx81, jsxs as jsxs66 } from "react/jsx-runtime";
10865
+
10866
10866
  function Sparkline2({ data, "aria-label": ariaLabel, color = 1, area = true, width = 120, height = 32, className }) {
10867
10867
  const min = Math.min(...data);
10868
10868
  const max = Math.max(...data);
@@ -10890,8 +10890,8 @@ function Sparkline2({ data, "aria-label": ariaLabel, color = 1, area = true, wid
10890
10890
  }
10891
10891
 
10892
10892
  // src/components/ActivityHeatmap/ActivityHeatmap.tsx
10893
- import { useId as useId36, useLayoutEffect as useLayoutEffect14, useMemo as useMemo19, useRef as useRef49, useState as useState47 } from "react";
10894
- import { jsx as jsx82, jsxs as jsxs67 } from "react/jsx-runtime";
10893
+
10894
+
10895
10895
  function localeWeekStart(locale) {
10896
10896
  try {
10897
10897
  const info = new Intl.Locale(new Intl.DateTimeFormat(locale).resolvedOptions().locale);
@@ -11114,8 +11114,8 @@ function ActivityHeatmap({
11114
11114
  }
11115
11115
 
11116
11116
  // src/components/FileTree/FileTree.tsx
11117
- import { useMemo as useMemo20, useRef as useRef50, useState as useState48 } from "react";
11118
- import { jsx as jsx83, jsxs as jsxs68 } from "react/jsx-runtime";
11117
+
11118
+
11119
11119
  function flatten(nodes, expanded, parent, level = 1) {
11120
11120
  return nodes.flatMap((node) => {
11121
11121
  const path = parent ? `${parent}/${node.name}` : node.name;
@@ -11240,8 +11240,8 @@ function FileTree({
11240
11240
  }
11241
11241
 
11242
11242
  // src/components/TreeView/TreeView.tsx
11243
- import { useEffect as useEffect40, useMemo as useMemo21, useRef as useRef51, useState as useState49 } from "react";
11244
- import { Fragment as Fragment25, jsx as jsx84, jsxs as jsxs69 } from "react/jsx-runtime";
11243
+
11244
+
11245
11245
  var defaultLabels7 = { loading: "Loading\u2026", error: "Couldn't load.", retry: "Retry" };
11246
11246
  var same = (a, b) => a.length === b.length && a.every((id, index) => id === b[index]);
11247
11247
  function TreeView({
@@ -11569,7 +11569,7 @@ function TreeView({
11569
11569
  }
11570
11570
 
11571
11571
  // src/components/Tag/Tag.tsx
11572
- import { jsx as jsx85, jsxs as jsxs70 } from "react/jsx-runtime";
11572
+
11573
11573
  function Tag({ onRemove, variant = "neutral", size: size2 = "md", icon: icon2, removeLabel, className, children, ...props }) {
11574
11574
  const name = removeLabel ?? (typeof children === "string" ? children : "tag");
11575
11575
  return /* @__PURE__ */ jsxs70("span", { className: cx("ow-tag", `ow-tag--${variant}`, `ow-tag--${size2}`, onRemove && "ow-tag--removable", className), ...props, children: [
@@ -11601,7 +11601,7 @@ function ColorSwatch({ color, name, value, size: size2 = "md", shape = "square",
11601
11601
  }
11602
11602
 
11603
11603
  // src/components/QRCode/QRCode.tsx
11604
- import { forwardRef as forwardRef28, useMemo as useMemo22 } from "react";
11604
+
11605
11605
 
11606
11606
  // src/components/QRCode/qr.ts
11607
11607
  var LEVELS = ["L", "M", "Q", "H"];
@@ -11834,7 +11834,7 @@ function encodeQR(text2, { level = "M", minVersion = 1, mask: forcedMask } = {})
11834
11834
  }
11835
11835
 
11836
11836
  // src/components/QRCode/QRCode.tsx
11837
- import { jsx as jsx86, jsxs as jsxs71 } from "react/jsx-runtime";
11837
+
11838
11838
  function defaultLabel(value) {
11839
11839
  const link = /^https?:\/\/([^/?#]+)/i.exec(value);
11840
11840
  if (link) return `QR code for ${link[1]}`;
@@ -11951,8 +11951,8 @@ async function qrCodeToDataURL(svg, { type = "image/png", scale = 4 } = {}) {
11951
11951
  }
11952
11952
 
11953
11953
  // src/components/Avatar/Avatar.tsx
11954
- import { useState as useState50 } from "react";
11955
- import { jsx as jsx87 } from "react/jsx-runtime";
11954
+
11955
+
11956
11956
  var namedSizes = { sm: 24, md: 28, lg: 36, xl: 48 };
11957
11957
  function avatarSize(size2) {
11958
11958
  if (typeof size2 === "number") {
@@ -11978,8 +11978,8 @@ function Avatar({ name, src, size: size2 = "md", label, className }) {
11978
11978
  }
11979
11979
 
11980
11980
  // src/components/Avatar/AvatarGroup.tsx
11981
- import { Children, cloneElement as cloneElement4, isValidElement as isValidElement4 } from "react";
11982
- import { jsx as jsx88, jsxs as jsxs72 } from "react/jsx-runtime";
11981
+
11982
+
11983
11983
  function AvatarGroup({ children, max = 4, size: size2 = "md", label, className }) {
11984
11984
  const avatars = Children.toArray(children).filter(isValidElement4);
11985
11985
  const sizing = avatarSize(size2);
@@ -12015,16 +12015,16 @@ function User({ name, description, src, size: size2 = "md", className }) {
12015
12015
  }
12016
12016
 
12017
12017
  // src/components/Image/Image.tsx
12018
- import { forwardRef as forwardRef29, useCallback as useCallback18, useEffect as useEffect41, useLayoutEffect as useLayoutEffect15, useRef as useRef52, useState as useState51 } from "react";
12018
+
12019
12019
 
12020
12020
  // src/components/AspectRatio/AspectRatio.tsx
12021
- import { jsx as jsx89 } from "react/jsx-runtime";
12021
+
12022
12022
  function AspectRatio({ ratio: ratio2 = 16 / 9, as: Element2 = "div", className, style, ...props }) {
12023
12023
  return /* @__PURE__ */ jsx89(Element2, { className: cx("ow-aspect-ratio", className), style: { aspectRatio: String(ratio2), ...style }, ...props });
12024
12024
  }
12025
12025
 
12026
12026
  // src/components/Image/Image.tsx
12027
- import { jsx as jsx90, jsxs as jsxs73 } from "react/jsx-runtime";
12027
+
12028
12028
  var useIsomorphicLayoutEffect = typeof window === "undefined" ? useEffect41 : useLayoutEffect15;
12029
12029
  var toLength = (value) => typeof value === "number" ? `${value}px` : value;
12030
12030
  var Image2 = /* @__PURE__ */ forwardRef29(function Image3({
@@ -12124,8 +12124,8 @@ var Image2 = /* @__PURE__ */ forwardRef29(function Image3({
12124
12124
  });
12125
12125
 
12126
12126
  // src/components/MediaPlayer/MediaPlayer.tsx
12127
- import { forwardRef as forwardRef30, useEffect as useEffect42, useImperativeHandle as useImperativeHandle4, useRef as useRef53, useState as useState52 } from "react";
12128
- import { Fragment as Fragment26, jsx as jsx91, jsxs as jsxs74 } from "react/jsx-runtime";
12127
+
12128
+
12129
12129
  var paths = {
12130
12130
  volume: "M11 4.7a.7.7 0 0 0-1.2-.5L6.4 7.6a1.4 1.4 0 0 1-1 .4H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.4a1.4 1.4 0 0 1 1 .4l3.4 3.4a.7.7 0 0 0 1.2-.5zM16 9a5 5 0 0 1 0 6M19.4 18.4a9 9 0 0 0 0-12.8",
12131
12131
  muted: "M11 4.7a.7.7 0 0 0-1.2-.5L6.4 7.6a1.4 1.4 0 0 1-1 .4H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.4a1.4 1.4 0 0 1 1 .4l3.4 3.4a.7.7 0 0 0 1.2-.5zM22 9l-6 6M16 9l6 6",
@@ -12463,7 +12463,7 @@ var MediaPlayer = /* @__PURE__ */ forwardRef30(function MediaPlayer2({
12463
12463
  });
12464
12464
 
12465
12465
  // src/components/Kbd/Kbd.tsx
12466
- import { jsx as jsx92 } from "react/jsx-runtime";
12466
+
12467
12467
  function Kbd({ className, ...props }) {
12468
12468
  return /* @__PURE__ */ jsx92("kbd", { className: cx("ow-kbd", className), ...props });
12469
12469
  }
@@ -12472,18 +12472,18 @@ function Code({ className, ...props }) {
12472
12472
  }
12473
12473
 
12474
12474
  // src/components/Carousel/Carousel.tsx
12475
- import {
12476
- Children as Children2,
12477
- createContext as createContext10,
12478
- isValidElement as isValidElement5,
12479
- useCallback as useCallback19,
12480
- useContext as useContext16,
12481
- useEffect as useEffect43,
12482
- useLayoutEffect as useLayoutEffect16,
12483
- useRef as useRef54,
12484
- useState as useState53
12485
- } from "react";
12486
- import { Fragment as Fragment27, jsx as jsx93, jsxs as jsxs75 } from "react/jsx-runtime";
12475
+
12476
+
12477
+
12478
+
12479
+
12480
+
12481
+
12482
+
12483
+
12484
+
12485
+
12486
+
12487
12487
  var SlideLabelContext = /* @__PURE__ */ createContext10(void 0);
12488
12488
  var reducedMotion2 = () => typeof window !== "undefined" && Boolean(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches);
12489
12489
  var slideName = (n, count) => `Slide ${n} of ${count}`;
@@ -12701,7 +12701,7 @@ function CarouselSlide({ label, className, ...props }) {
12701
12701
  }
12702
12702
 
12703
12703
  // src/components/Card/Card.tsx
12704
- import { jsx as jsx94, jsxs as jsxs76 } from "react/jsx-runtime";
12704
+
12705
12705
  function Card({ className, padding = "md", ...props }) {
12706
12706
  return /* @__PURE__ */ jsx94("div", { className: cx("ow-card", `ow-card--pad-${padding}`, className), ...props });
12707
12707
  }
@@ -12716,19 +12716,19 @@ function SettingsRow({ children, description, label, className }) {
12716
12716
  }
12717
12717
 
12718
12718
  // src/components/VirtualList/VirtualList.tsx
12719
- import {
12720
- forwardRef as forwardRef31,
12721
- useCallback as useCallback21,
12722
- useEffect as useEffect44,
12723
- useImperativeHandle as useImperativeHandle5,
12724
- useLayoutEffect as useLayoutEffect18,
12725
- useRef as useRef56,
12726
- useState as useState55
12727
- } from "react";
12719
+
12720
+
12721
+
12722
+
12723
+
12724
+
12725
+
12726
+
12727
+
12728
12728
 
12729
12729
  // src/components/VirtualList/useVirtualizer.ts
12730
- import { useCallback as useCallback20, useLayoutEffect as useLayoutEffect17, useMemo as useMemo23, useReducer, useRef as useRef55, useState as useState54 } from "react";
12731
- import { flushSync } from "react-dom";
12730
+
12731
+
12732
12732
  var prefersReducedMotion = () => typeof window !== "undefined" && Boolean(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches);
12733
12733
  function rowAt(starts, count, offset) {
12734
12734
  let low = 0;
@@ -12889,7 +12889,7 @@ function useVirtualizer({
12889
12889
  }
12890
12890
 
12891
12891
  // src/components/VirtualList/VirtualList.tsx
12892
- import { jsx as jsx95, jsxs as jsxs77 } from "react/jsx-runtime";
12892
+
12893
12893
  var stickyDistance = 32;
12894
12894
  var rowOf = (target) => target?.closest?.("[data-index]") ?? null;
12895
12895
  function VirtualListWithRef({
@@ -13058,24 +13058,24 @@ var ForwardedVirtualList = /* @__PURE__ */ Object.assign(/* @__PURE__ */ forward
13058
13058
  var VirtualList = ForwardedVirtualList;
13059
13059
 
13060
13060
  // src/components/Section/Section.tsx
13061
- import { jsx as jsx96 } from "react/jsx-runtime";
13061
+
13062
13062
  function Section({ tone = "paper", spacing = "md", size: size2 = "page", as: Element2 = "section", className, children, ...props }) {
13063
13063
  return /* @__PURE__ */ jsx96(Element2, { className: cx("ow-section", `ow-section--${tone}`, `ow-section--space-${spacing}`, className), ...props, children: size2 === false ? children : /* @__PURE__ */ jsx96(Container, { size: size2, children }) });
13064
13064
  }
13065
13065
 
13066
13066
  // src/components/Splitter/Splitter.tsx
13067
- import {
13068
- Children as Children3,
13069
- createContext as createContext11,
13070
- Fragment as Fragment28,
13071
- isValidElement as isValidElement6,
13072
- useCallback as useCallback22,
13073
- useContext as useContext17,
13074
- useEffect as useEffect45,
13075
- useId as useId37,
13076
- useLayoutEffect as useLayoutEffect19,
13077
- useRef as useRef57
13078
- } from "react";
13067
+
13068
+
13069
+
13070
+
13071
+
13072
+
13073
+
13074
+
13075
+
13076
+
13077
+
13078
+
13079
13079
 
13080
13080
  // src/components/Splitter/Splitter.layout.ts
13081
13081
  var EPSILON = 1e-3;
@@ -13129,7 +13129,7 @@ function moveHandle(sizes, limits, handle, delta, snap) {
13129
13129
  }
13130
13130
 
13131
13131
  // src/components/Splitter/Splitter.tsx
13132
- import { jsx as jsx97 } from "react/jsx-runtime";
13132
+
13133
13133
  var SplitterContext = /* @__PURE__ */ createContext11(null);
13134
13134
  var IndexContext = /* @__PURE__ */ createContext11(-1);
13135
13135
  var storageKey = (id) => `ow-splitter:${id}`;
@@ -13378,8 +13378,8 @@ function SplitterHandle({
13378
13378
  }
13379
13379
 
13380
13380
  // src/components/Marketing/Marketing.tsx
13381
- import { useRef as useRef58 } from "react";
13382
- import { jsx as jsx98, jsxs as jsxs78 } from "react/jsx-runtime";
13381
+
13382
+
13383
13383
  function Chip({ className, ...props }) {
13384
13384
  return /* @__PURE__ */ jsx98("span", { className: cx("ow-chip", className), ...props });
13385
13385
  }
@@ -13431,8 +13431,8 @@ function DotGrid({ fade = false, interactive = false, className, children, onPoi
13431
13431
  }
13432
13432
 
13433
13433
  // src/components/Prose/Prose.tsx
13434
- import { forwardRef as forwardRef32, useEffect as useEffect46, useRef as useRef59 } from "react";
13435
- import { jsx as jsx99 } from "react/jsx-runtime";
13434
+
13435
+
13436
13436
  var Prose = /* @__PURE__ */ forwardRef32(function Prose2({ size: size2 = "md", fullWidth = false, as = "div", className, children, ...props }, ref) {
13437
13437
  const Element2 = as;
13438
13438
  const root = useRef59(null);
@@ -13464,8 +13464,8 @@ var Prose = /* @__PURE__ */ forwardRef32(function Prose2({ size: size2 = "md", f
13464
13464
  });
13465
13465
 
13466
13466
  // src/components/Markdown/Markdown.tsx
13467
- import { createElement, Fragment as Fragment29, memo, useMemo as useMemo24, useRef as useRef60 } from "react";
13468
- import { Fragment as Fragment30, jsx as jsx100, jsxs as jsxs79 } from "react/jsx-runtime";
13467
+
13468
+
13469
13469
  var FENCE = /^ {0,3}(`{3,}|~{3,})[ \t]*([^\s`]*)/;
13470
13470
  var HEADING = /^ {0,3}(#{1,6})(?:[ \t]+(.*?))?(?:[ \t]+#+)?[ \t]*$/;
13471
13471
  var RULE = /^ {0,3}([-*_])(?:[ \t]*\1){2,}[ \t]*$/;
@@ -13785,7 +13785,7 @@ function Markdown({
13785
13785
  }
13786
13786
 
13787
13787
  // src/components/TextShimmer/TextShimmer.tsx
13788
- import { jsx as jsx101 } from "react/jsx-runtime";
13788
+
13789
13789
  function TextShimmer({ children, as = "span", duration = 2, active = true, className }) {
13790
13790
  const Element2 = as;
13791
13791
  return /* @__PURE__ */ jsx101(
@@ -13799,15 +13799,15 @@ function TextShimmer({ children, as = "span", duration = 2, active = true, class
13799
13799
  }
13800
13800
 
13801
13801
  // src/components/PromptInput/PromptInput.tsx
13802
- import {
13803
- forwardRef as forwardRef33,
13804
- useEffect as useEffect47,
13805
- useId as useId38,
13806
- useLayoutEffect as useLayoutEffect20,
13807
- useRef as useRef61,
13808
- useState as useState56
13809
- } from "react";
13810
- import { jsx as jsx102, jsxs as jsxs80 } from "react/jsx-runtime";
13802
+
13803
+
13804
+
13805
+
13806
+
13807
+
13808
+
13809
+
13810
+
13811
13811
  var noAttachments = [];
13812
13812
  var counterFrom = 0.8;
13813
13813
  var announceDelay = 1e3;
@@ -14243,8 +14243,8 @@ var PromptInput = /* @__PURE__ */ forwardRef33(function PromptInput2({
14243
14243
  });
14244
14244
 
14245
14245
  // src/components/PromptInput/PromptSuggestion.tsx
14246
- import { forwardRef as forwardRef34 } from "react";
14247
- import { jsx as jsx103, jsxs as jsxs81 } from "react/jsx-runtime";
14246
+
14247
+
14248
14248
  var PromptSuggestion = /* @__PURE__ */ forwardRef34(function PromptSuggestion2({ children, icon: icon2, description, variant = description ? "card" : "pill", type = "button", className, ...buttonProps }, ref) {
14249
14249
  if (variant === "card") {
14250
14250
  return /* @__PURE__ */ jsxs81("button", { ref, type, className: cx("ow-prompt-suggestion", "ow-prompt-suggestion--card", className), ...buttonProps, children: [
@@ -14298,19 +14298,19 @@ function PromptSuggestions({
14298
14298
  }
14299
14299
 
14300
14300
  // src/components/Chat/ChatConversation.tsx
14301
- import {
14302
- Children as Children4,
14303
- createContext as createContext12,
14304
- forwardRef as forwardRef35,
14305
- useCallback as useCallback23,
14306
- useEffect as useEffect48,
14307
- useImperativeHandle as useImperativeHandle6,
14308
- useLayoutEffect as useLayoutEffect21,
14309
- useMemo as useMemo25,
14310
- useRef as useRef62,
14311
- useState as useState57
14312
- } from "react";
14313
- import { jsx as jsx104, jsxs as jsxs82 } from "react/jsx-runtime";
14301
+
14302
+
14303
+
14304
+
14305
+
14306
+
14307
+
14308
+
14309
+
14310
+
14311
+
14312
+
14313
+
14314
14314
  var ChatConversationContext = /* @__PURE__ */ createContext12(null);
14315
14315
  var stickyDistance2 = 32;
14316
14316
  var defaultCount = (count) => `${count} new`;
@@ -14448,16 +14448,16 @@ var ChatConversation = /* @__PURE__ */ forwardRef35(function ChatConversation2({
14448
14448
  });
14449
14449
 
14450
14450
  // src/components/Chat/ChatMessage.tsx
14451
- import {
14452
- forwardRef as forwardRef36,
14453
- useContext as useContext18,
14454
- useEffect as useEffect49,
14455
- useId as useId39,
14456
- useLayoutEffect as useLayoutEffect22,
14457
- useRef as useRef63,
14458
- useState as useState58
14459
- } from "react";
14460
- import { Fragment as Fragment31, jsx as jsx105, jsxs as jsxs83 } from "react/jsx-runtime";
14451
+
14452
+
14453
+
14454
+
14455
+
14456
+
14457
+
14458
+
14459
+
14460
+
14461
14461
  function lucide(paths2) {
14462
14462
  return function Icon({ size: size2 = 16, strokeWidth = 2, ...props }) {
14463
14463
  return /* @__PURE__ */ jsx105(
@@ -14742,7 +14742,7 @@ function ChatMessageActions({
14742
14742
  }
14743
14743
 
14744
14744
  // src/components/Chat/ChatLoader.tsx
14745
- import { jsx as jsx106, jsxs as jsxs84 } from "react/jsx-runtime";
14745
+
14746
14746
  function ChatLoader({ label, inline: inline2 = false, name, avatar, srLabel = "Working\u2026", className }) {
14747
14747
  const entering = useChatEntrance();
14748
14748
  const indicator = label != null ? /* @__PURE__ */ jsx106(TextShimmer, { className: "ow-chat-loader__label", children: label }) : /* @__PURE__ */ jsxs84("span", { className: "ow-chat-loader__dots", children: [
@@ -14765,8 +14765,8 @@ function ChatLoader({ label, inline: inline2 = false, name, avatar, srLabel = "W
14765
14765
  }
14766
14766
 
14767
14767
  // src/components/ChatTool/ChatTool.tsx
14768
- import { forwardRef as forwardRef37, useEffect as useEffect50, useId as useId40, useRef as useRef64, useState as useState59 } from "react";
14769
- import { Fragment as Fragment32, jsx as jsx107, jsxs as jsxs85 } from "react/jsx-runtime";
14768
+
14769
+
14770
14770
  var statusWords = {
14771
14771
  pending: "Not started",
14772
14772
  running: "Running",
@@ -15048,8 +15048,8 @@ var ChatTool = /* @__PURE__ */ forwardRef37(function ChatTool2({
15048
15048
  });
15049
15049
 
15050
15050
  // src/components/ChainOfThought/ChainOfThought.tsx
15051
- import { forwardRef as forwardRef38, useId as useId41 } from "react";
15052
- import { jsx as jsx108, jsxs as jsxs86 } from "react/jsx-runtime";
15051
+
15052
+
15053
15053
  var plural = (count, word) => `${count} ${word}${count === 1 ? "" : "s"}`;
15054
15054
  var ChainOfThought = /* @__PURE__ */ forwardRef38(function ChainOfThought2({
15055
15055
  steps = [],
@@ -15112,8 +15112,8 @@ var ChainOfThought = /* @__PURE__ */ forwardRef38(function ChainOfThought2({
15112
15112
  });
15113
15113
 
15114
15114
  // src/components/ChatSource/ChatSource.tsx
15115
- import { forwardRef as forwardRef39, useCallback as useCallback24, useEffect as useEffect51, useId as useId42, useRef as useRef65, useState as useState60 } from "react";
15116
- import { Fragment as Fragment33, jsx as jsx109, jsxs as jsxs87 } from "react/jsx-runtime";
15115
+
15116
+
15117
15117
  var openDelay = 250;
15118
15118
  var closeDelay = 150;
15119
15119
  var ChatSource = /* @__PURE__ */ forwardRef39(function ChatSource2({
@@ -15256,9 +15256,9 @@ var ChatSources = /* @__PURE__ */ forwardRef39(function ChatSources2({ sources,
15256
15256
  });
15257
15257
 
15258
15258
  // src/components/ColorPicker/ColorPicker.tsx
15259
- import { forwardRef as forwardRef40, useCallback as useCallback25, useEffect as useEffect52, useId as useId43, useRef as useRef66, useState as useState61 } from "react";
15260
- import { HexAlphaColorPicker, HexColorInput, HexColorPicker } from "react-colorful";
15261
- import { Fragment as Fragment34, jsx as jsx110, jsxs as jsxs88 } from "react/jsx-runtime";
15259
+
15260
+
15261
+
15262
15262
  var swatchColor = (swatch) => typeof swatch === "string" ? swatch : swatch.color;
15263
15263
  var swatchName = (swatch) => typeof swatch === "string" ? swatch : swatch.name;
15264
15264
  var same2 = (a, b) => a.toLowerCase().replace(/^#/, "") === b.toLowerCase().replace(/^#/, "");
@@ -15427,10 +15427,10 @@ var ColorField = /* @__PURE__ */ forwardRef40(function ColorField2({
15427
15427
  });
15428
15428
 
15429
15429
  // src/components/ColorPicker/ColorArea.tsx
15430
- import { forwardRef as forwardRef41, useRef as useRef68, useState as useState63 } from "react";
15430
+
15431
15431
 
15432
15432
  // src/components/ColorPicker/color.ts
15433
- import { useCallback as useCallback26, useReducer as useReducer2, useRef as useRef67, useState as useState62 } from "react";
15433
+
15434
15434
  var clamp2 = (n, min, max) => Math.min(max, Math.max(min, n));
15435
15435
  function parseHex(color) {
15436
15436
  let hex = color.trim().replace(/^#/, "");
@@ -15611,7 +15611,7 @@ var hueHex = (h2) => toHex(hsvToRgb({ h: h2, s: 100, v: 100, a: 1 }));
15611
15611
  var hueStops = "#ff0000 0%, #ffff00 16.67%, #00ff00 33.33%, #00ffff 50%, #0000ff 66.67%, #ff00ff 83.33%, #ff0000 100%";
15612
15612
 
15613
15613
  // src/components/ColorPicker/ColorArea.tsx
15614
- import { jsx as jsx111, jsxs as jsxs89 } from "react/jsx-runtime";
15614
+
15615
15615
  var size = (length) => typeof length === "number" ? `${length}px` : length;
15616
15616
  function assignRef8(ref, value) {
15617
15617
  if (typeof ref === "function") ref(value);
@@ -15758,8 +15758,8 @@ var ColorArea = /* @__PURE__ */ forwardRef41(function ColorArea2({
15758
15758
  });
15759
15759
 
15760
15760
  // src/components/ColorPicker/ColorSlider.tsx
15761
- import { forwardRef as forwardRef42, useId as useId44, useRef as useRef69 } from "react";
15762
- import { jsx as jsx112, jsxs as jsxs90 } from "react/jsx-runtime";
15761
+
15762
+
15763
15763
  var channels = {
15764
15764
  hue: { name: "Hue", max: 360, unit: "degree" },
15765
15765
  saturation: { name: "Saturation", max: 100, unit: "percent" },
@@ -15946,8 +15946,8 @@ var ColorSlider = /* @__PURE__ */ forwardRef42(function ColorSlider2({
15946
15946
  });
15947
15947
 
15948
15948
  // src/components/ColorPicker/ColorSwatchPicker.tsx
15949
- import { forwardRef as forwardRef43, useRef as useRef70 } from "react";
15950
- import { jsx as jsx113, jsxs as jsxs91 } from "react/jsx-runtime";
15949
+
15950
+
15951
15951
  var ColorSwatchPicker = /* @__PURE__ */ forwardRef43(function ColorSwatchPicker2({ options, value, defaultValue: defaultValue2, onChange, size: size2 = "md", shape = "square", disabled = false, name, className, ...aria }, ref) {
15952
15952
  const [current, setCurrent] = useControllableState(value, defaultValue2 ?? "", onChange);
15953
15953
  const refs = useRef70([]);