@cloudvoyant/helix-react 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1335,6 +1335,494 @@ function NavbarMobileOverlay({ className, children, ...props }) {
1335
1335
  ] }) })
1336
1336
  ] }) });
1337
1337
  }
1338
+
1339
+ // src/field.tsx
1340
+ import {
1341
+ FieldRoot as ArkFieldRoot,
1342
+ FieldLabel as ArkFieldLabel,
1343
+ FieldHelperText as ArkFieldHelperText,
1344
+ FieldErrorText as ArkFieldErrorText,
1345
+ FieldRequiredIndicator as ArkFieldRequiredIndicator,
1346
+ useFieldContext
1347
+ } from "@ark-ui/react/field";
1348
+ import {
1349
+ FieldsetRoot as ArkFieldsetRoot,
1350
+ FieldsetLegend as ArkFieldsetLegend,
1351
+ FieldsetHelperText as ArkFieldsetHelperText,
1352
+ FieldsetErrorText as ArkFieldsetErrorText
1353
+ } from "@ark-ui/react/fieldset";
1354
+ import {
1355
+ fieldRootBase,
1356
+ fieldLabelBase,
1357
+ fieldHelperBase,
1358
+ fieldErrorBase,
1359
+ fieldRequiredIndicatorBase,
1360
+ fieldsetRootBase,
1361
+ fieldsetLegendBase,
1362
+ fieldsetHelperBase,
1363
+ fieldsetErrorBase,
1364
+ cn as cn44
1365
+ } from "@cloudvoyant/helix";
1366
+ import { jsx as jsx44 } from "react/jsx-runtime";
1367
+ function Field({ className, ...props }) {
1368
+ return /* @__PURE__ */ jsx44(ArkFieldRoot, { className: cn44(fieldRootBase, className), ...props });
1369
+ }
1370
+ function FieldLabel({ className, ...props }) {
1371
+ return /* @__PURE__ */ jsx44(ArkFieldLabel, { className: cn44(fieldLabelBase, className), ...props });
1372
+ }
1373
+ function FieldHelper({ className, ...props }) {
1374
+ return /* @__PURE__ */ jsx44(ArkFieldHelperText, { className: cn44(fieldHelperBase, className), ...props });
1375
+ }
1376
+ function FieldError({ className, ...props }) {
1377
+ return /* @__PURE__ */ jsx44(ArkFieldErrorText, { className: cn44(fieldErrorBase, className), ...props });
1378
+ }
1379
+ function FieldRequiredIndicator({ className, ...props }) {
1380
+ return /* @__PURE__ */ jsx44(ArkFieldRequiredIndicator, { className: cn44(fieldRequiredIndicatorBase, className), ...props });
1381
+ }
1382
+ function FieldSet({ className, ...props }) {
1383
+ return /* @__PURE__ */ jsx44(ArkFieldsetRoot, { className: cn44(fieldsetRootBase, className), ...props });
1384
+ }
1385
+ function FieldSetLegend({ className, ...props }) {
1386
+ return /* @__PURE__ */ jsx44(ArkFieldsetLegend, { className: cn44(fieldsetLegendBase, className), ...props });
1387
+ }
1388
+ function FieldSetHelper({ className, ...props }) {
1389
+ return /* @__PURE__ */ jsx44(ArkFieldsetHelperText, { className: cn44(fieldsetHelperBase, className), ...props });
1390
+ }
1391
+ function FieldSetError({ className, ...props }) {
1392
+ return /* @__PURE__ */ jsx44(ArkFieldsetErrorText, { className: cn44(fieldsetErrorBase, className), ...props });
1393
+ }
1394
+ var useField = useFieldContext;
1395
+
1396
+ // src/input.tsx
1397
+ import { FieldInput } from "@ark-ui/react/field";
1398
+ import { inputVariants, cn as cn45 } from "@cloudvoyant/helix";
1399
+ import { jsx as jsx45 } from "react/jsx-runtime";
1400
+ function Input2({ className, size, ...props }) {
1401
+ return /* @__PURE__ */ jsx45(FieldInput, { className: cn45(inputVariants({ size }), className), ...props });
1402
+ }
1403
+
1404
+ // src/textarea.tsx
1405
+ import { FieldTextarea } from "@ark-ui/react/field";
1406
+ import { textareaBase, cn as cn46 } from "@cloudvoyant/helix";
1407
+ import { jsx as jsx46 } from "react/jsx-runtime";
1408
+ function Textarea({ className, ...props }) {
1409
+ return /* @__PURE__ */ jsx46(FieldTextarea, { className: cn46(textareaBase, className), ...props });
1410
+ }
1411
+
1412
+ // src/number-input.tsx
1413
+ import {
1414
+ NumberInputRoot as ArkNumberInputRoot,
1415
+ NumberInputControl as ArkNumberInputControl,
1416
+ NumberInputInput as ArkNumberInputInput,
1417
+ NumberInputIncrementTrigger as ArkNumberInputIncrementTrigger,
1418
+ NumberInputDecrementTrigger as ArkNumberInputDecrementTrigger,
1419
+ useNumberInputContext
1420
+ } from "@ark-ui/react/number-input";
1421
+ import {
1422
+ numberInputRootBase,
1423
+ numberInputControlBase,
1424
+ numberInputInputBase,
1425
+ numberInputTriggerBase,
1426
+ cn as cn47
1427
+ } from "@cloudvoyant/helix";
1428
+ import { jsx as jsx47 } from "react/jsx-runtime";
1429
+ function NumberInput({ className, ...props }) {
1430
+ return /* @__PURE__ */ jsx47(ArkNumberInputRoot, { className: cn47(numberInputRootBase, className), ...props });
1431
+ }
1432
+ function NumberInputControl({ className, ...props }) {
1433
+ return /* @__PURE__ */ jsx47(ArkNumberInputControl, { className: cn47(numberInputControlBase, className), ...props });
1434
+ }
1435
+ function NumberInputInput({ className, ...props }) {
1436
+ return /* @__PURE__ */ jsx47(ArkNumberInputInput, { className: cn47(numberInputInputBase, className), ...props });
1437
+ }
1438
+ function NumberInputDecrement({ className, ...props }) {
1439
+ return /* @__PURE__ */ jsx47(ArkNumberInputDecrementTrigger, { "aria-label": "Decrement", className: cn47(numberInputTriggerBase, className), ...props });
1440
+ }
1441
+ function NumberInputIncrement({ className, ...props }) {
1442
+ return /* @__PURE__ */ jsx47(ArkNumberInputIncrementTrigger, { "aria-label": "Increment", className: cn47(numberInputTriggerBase, className), ...props });
1443
+ }
1444
+ var useNumberInput = useNumberInputContext;
1445
+
1446
+ // src/checkbox.tsx
1447
+ import { createContext as createContext4, useContext as useContext4 } from "react";
1448
+ import {
1449
+ CheckboxRoot as ArkCheckboxRoot,
1450
+ CheckboxControl as ArkCheckboxControl,
1451
+ CheckboxIndicator as ArkCheckboxIndicator,
1452
+ CheckboxLabel as ArkCheckboxLabel,
1453
+ CheckboxGroup as ArkCheckboxGroup,
1454
+ CheckboxHiddenInput as ArkCheckboxHiddenInput,
1455
+ useCheckboxContext
1456
+ } from "@ark-ui/react/checkbox";
1457
+ import { checkboxVariants, checkboxIndicatorBase, checkboxLabelBase, checkboxGroupBase, cn as cn48 } from "@cloudvoyant/helix";
1458
+ import { jsx as jsx48, jsxs as jsxs11 } from "react/jsx-runtime";
1459
+ var CheckboxSizeContext = createContext4("md");
1460
+ function Checkbox({ className, size = "md", children, ...props }) {
1461
+ return /* @__PURE__ */ jsx48(CheckboxSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsxs11(ArkCheckboxRoot, { className: cn48("flex items-center gap-2", className), ...props, children: [
1462
+ children,
1463
+ /* @__PURE__ */ jsx48(ArkCheckboxHiddenInput, {})
1464
+ ] }) });
1465
+ }
1466
+ function CheckboxControl({ className, ...props }) {
1467
+ const size = useContext4(CheckboxSizeContext);
1468
+ return /* @__PURE__ */ jsx48(ArkCheckboxControl, { className: cn48(checkboxVariants({ size }), className), ...props });
1469
+ }
1470
+ function CheckboxIndicator({ className, ...props }) {
1471
+ return /* @__PURE__ */ jsx48(ArkCheckboxIndicator, { className: cn48(checkboxIndicatorBase, className), ...props });
1472
+ }
1473
+ function CheckboxLabel({ className, ...props }) {
1474
+ return /* @__PURE__ */ jsx48(ArkCheckboxLabel, { className: cn48(checkboxLabelBase, className), ...props });
1475
+ }
1476
+ function CheckboxGroup({ className, ...props }) {
1477
+ return /* @__PURE__ */ jsx48(ArkCheckboxGroup, { className: cn48(checkboxGroupBase, className), ...props });
1478
+ }
1479
+ var useCheckbox = useCheckboxContext;
1480
+
1481
+ // src/switch.tsx
1482
+ import { createContext as createContext5, useContext as useContext5 } from "react";
1483
+ import {
1484
+ SwitchRoot as ArkSwitchRoot,
1485
+ SwitchControl as ArkSwitchControl,
1486
+ SwitchThumb as ArkSwitchThumb,
1487
+ SwitchLabel as ArkSwitchLabel,
1488
+ SwitchHiddenInput as ArkSwitchHiddenInput,
1489
+ useSwitchContext
1490
+ } from "@ark-ui/react/switch";
1491
+ import { switchVariants, switchControlBase, switchThumbBase, switchLabelBase, cn as cn49 } from "@cloudvoyant/helix";
1492
+ import { jsx as jsx49, jsxs as jsxs12 } from "react/jsx-runtime";
1493
+ var SwitchSizeContext = createContext5("md");
1494
+ function Switch({ className, size = "md", children, ...props }) {
1495
+ return /* @__PURE__ */ jsx49(SwitchSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsxs12(ArkSwitchRoot, { className: cn49("flex items-center gap-2", className), ...props, children: [
1496
+ children,
1497
+ /* @__PURE__ */ jsx49(ArkSwitchHiddenInput, {})
1498
+ ] }) });
1499
+ }
1500
+ function SwitchControl({ className, ...props }) {
1501
+ const size = useContext5(SwitchSizeContext);
1502
+ return /* @__PURE__ */ jsx49(ArkSwitchControl, { className: cn49(switchVariants({ size }), switchControlBase, className), ...props });
1503
+ }
1504
+ function SwitchThumb({ className, ...props }) {
1505
+ return /* @__PURE__ */ jsx49(ArkSwitchThumb, { className: cn49(switchThumbBase, className), ...props });
1506
+ }
1507
+ function SwitchLabel({ className, ...props }) {
1508
+ return /* @__PURE__ */ jsx49(ArkSwitchLabel, { className: cn49(switchLabelBase, className), ...props });
1509
+ }
1510
+ var useSwitch = useSwitchContext;
1511
+
1512
+ // src/select.tsx
1513
+ import { ark as ark33 } from "@ark-ui/react/factory";
1514
+ import { Portal as Portal2 } from "@ark-ui/react/portal";
1515
+ import { useMemo as useMemo4 } from "react";
1516
+ import {
1517
+ SelectRoot as ArkSelectRoot,
1518
+ SelectTrigger as ArkSelectTrigger,
1519
+ SelectValueText as ArkSelectValueText,
1520
+ SelectIndicator as ArkSelectIndicator,
1521
+ SelectClearTrigger as ArkSelectClearTrigger,
1522
+ SelectContent as ArkSelectContent,
1523
+ SelectPositioner as ArkSelectPositioner,
1524
+ SelectItem as ArkSelectItem,
1525
+ SelectItemGroup as ArkSelectItemGroup,
1526
+ SelectItemGroupLabel as ArkSelectItemGroupLabel,
1527
+ SelectItemText as ArkSelectItemText,
1528
+ SelectItemIndicator as ArkSelectItemIndicator,
1529
+ SelectHiddenSelect as ArkSelectHiddenSelect,
1530
+ createListCollection,
1531
+ useSelectContext
1532
+ } from "@ark-ui/react/select";
1533
+ import {
1534
+ inputVariants as inputVariants2,
1535
+ selectTriggerBase,
1536
+ selectValueBase,
1537
+ selectIndicatorBase,
1538
+ selectClearTriggerBase,
1539
+ selectContentBase,
1540
+ selectPositionerBase,
1541
+ selectItemBase,
1542
+ selectItemGroupLabelBase,
1543
+ selectItemTextBase,
1544
+ selectItemIndicatorBase,
1545
+ nativeSelectVariants,
1546
+ nativeSelectWrapperBase,
1547
+ nativeSelectIconBase,
1548
+ cn as cn50
1549
+ } from "@cloudvoyant/helix";
1550
+
1551
+ // src/use-media-query.ts
1552
+ import { useSyncExternalStore } from "react";
1553
+ function useMediaQuery(query) {
1554
+ return useSyncExternalStore(
1555
+ (onStoreChange) => {
1556
+ const mql = window.matchMedia(query);
1557
+ mql.addEventListener("change", onStoreChange);
1558
+ return () => mql.removeEventListener("change", onStoreChange);
1559
+ },
1560
+ () => window.matchMedia(query).matches,
1561
+ () => false
1562
+ );
1563
+ }
1564
+
1565
+ // src/select.tsx
1566
+ import { jsx as jsx50, jsxs as jsxs13 } from "react/jsx-runtime";
1567
+ function Select({ items, collection, size, children, ...props }) {
1568
+ const isCoarse = useMediaQuery("(pointer: coarse)");
1569
+ const resolvedCollection = useMemo4(
1570
+ () => collection ?? createListCollection({ items: items ?? [] }),
1571
+ [collection, items]
1572
+ );
1573
+ if (isCoarse && items) {
1574
+ return /* @__PURE__ */ jsx50(
1575
+ SelectNative,
1576
+ {
1577
+ items,
1578
+ size,
1579
+ value: props.value?.[0],
1580
+ defaultValue: props.defaultValue?.[0],
1581
+ onValueChange: (value) => props.onValueChange?.({ value: [value], items: items.filter((i) => i.value === value) }),
1582
+ invalid: props.invalid,
1583
+ disabled: props.disabled,
1584
+ name: props.name,
1585
+ form: props.form,
1586
+ required: props.required
1587
+ }
1588
+ );
1589
+ }
1590
+ return /* @__PURE__ */ jsxs13(ArkSelectRoot, { collection: resolvedCollection, ...props, children: [
1591
+ children,
1592
+ /* @__PURE__ */ jsx50(ArkSelectHiddenSelect, {})
1593
+ ] });
1594
+ }
1595
+ function SelectTrigger({ size = "md", className, ...props }) {
1596
+ return /* @__PURE__ */ jsx50(ArkSelectTrigger, { className: cn50(inputVariants2({ size }), selectTriggerBase, className), ...props });
1597
+ }
1598
+ function SelectValue({ className, ...props }) {
1599
+ return /* @__PURE__ */ jsx50(ArkSelectValueText, { className: cn50(selectValueBase, className), ...props });
1600
+ }
1601
+ function SelectIndicator({ className, ...props }) {
1602
+ return /* @__PURE__ */ jsx50(ArkSelectIndicator, { className: cn50(selectIndicatorBase, className), ...props });
1603
+ }
1604
+ function SelectClearTrigger({ className, ...props }) {
1605
+ return /* @__PURE__ */ jsx50(ArkSelectClearTrigger, { "aria-label": "Clear selection", className: cn50(selectClearTriggerBase, className), ...props });
1606
+ }
1607
+ function SelectContent({ className, ...props }) {
1608
+ return /* @__PURE__ */ jsx50(Portal2, { children: /* @__PURE__ */ jsx50(ArkSelectPositioner, { className: selectPositionerBase, children: /* @__PURE__ */ jsx50(ArkSelectContent, { className: cn50(selectContentBase, className), ...props }) }) });
1609
+ }
1610
+ function SelectItemGroup({ className, ...props }) {
1611
+ return /* @__PURE__ */ jsx50(ArkSelectItemGroup, { className, ...props });
1612
+ }
1613
+ function SelectItemGroupLabel({ className, ...props }) {
1614
+ return /* @__PURE__ */ jsx50(ArkSelectItemGroupLabel, { className: cn50(selectItemGroupLabelBase, className), ...props });
1615
+ }
1616
+ function SelectItem({ item, className, ...props }) {
1617
+ return /* @__PURE__ */ jsx50(ArkSelectItem, { item, className: cn50(selectItemBase, className), ...props });
1618
+ }
1619
+ function SelectItemText({ className, ...props }) {
1620
+ return /* @__PURE__ */ jsx50(ArkSelectItemText, { className: cn50(selectItemTextBase, className), ...props });
1621
+ }
1622
+ function SelectItemIndicator({ className, ...props }) {
1623
+ return /* @__PURE__ */ jsx50(ArkSelectItemIndicator, { className: cn50(selectItemIndicatorBase, className), ...props });
1624
+ }
1625
+ var useSelect = useSelectContext;
1626
+ function ChevronDownIcon() {
1627
+ return /* @__PURE__ */ jsx50(
1628
+ "svg",
1629
+ {
1630
+ viewBox: "0 0 24 24",
1631
+ fill: "none",
1632
+ stroke: "currentColor",
1633
+ strokeWidth: "2",
1634
+ strokeLinecap: "round",
1635
+ strokeLinejoin: "round",
1636
+ "aria-hidden": true,
1637
+ children: /* @__PURE__ */ jsx50("path", { d: "m6 9 6 6 6-6" })
1638
+ }
1639
+ );
1640
+ }
1641
+ function SelectNative({
1642
+ items = [],
1643
+ value,
1644
+ defaultValue,
1645
+ onValueChange,
1646
+ size = "md",
1647
+ invalid,
1648
+ icon,
1649
+ className,
1650
+ ...props
1651
+ }) {
1652
+ return /* @__PURE__ */ jsxs13(ark33.div, { className: cn50(nativeSelectWrapperBase, className), children: [
1653
+ /* @__PURE__ */ jsx50(
1654
+ ark33.select,
1655
+ {
1656
+ className: nativeSelectVariants({ size }),
1657
+ value,
1658
+ defaultValue,
1659
+ onChange: (event) => onValueChange?.(event.currentTarget.value),
1660
+ "aria-invalid": invalid,
1661
+ ...props,
1662
+ children: items.map((item) => /* @__PURE__ */ jsx50(ark33.option, { value: item.value, disabled: item.disabled, children: item.label }, item.value))
1663
+ }
1664
+ ),
1665
+ /* @__PURE__ */ jsx50(ark33.span, { className: nativeSelectIconBase, "aria-hidden": true, children: icon ?? /* @__PURE__ */ jsx50(ChevronDownIcon, {}) })
1666
+ ] });
1667
+ }
1668
+
1669
+ // src/combobox.tsx
1670
+ import { Portal as Portal3 } from "@ark-ui/react/portal";
1671
+ import { useMemo as useMemo5 } from "react";
1672
+ import {
1673
+ ComboboxRoot as ArkComboboxRoot,
1674
+ ComboboxControl as ArkComboboxControl,
1675
+ ComboboxInput as ArkComboboxInput,
1676
+ ComboboxTrigger as ArkComboboxTrigger,
1677
+ ComboboxClearTrigger as ArkComboboxClearTrigger,
1678
+ ComboboxContent as ArkComboboxContent,
1679
+ ComboboxPositioner as ArkComboboxPositioner,
1680
+ ComboboxItem as ArkComboboxItem,
1681
+ ComboboxItemGroup as ArkComboboxItemGroup,
1682
+ ComboboxItemGroupLabel as ArkComboboxItemGroupLabel,
1683
+ ComboboxItemText as ArkComboboxItemText,
1684
+ ComboboxItemIndicator as ArkComboboxItemIndicator,
1685
+ ComboboxList as ArkComboboxList,
1686
+ ComboboxEmpty as ArkComboboxEmpty,
1687
+ createListCollection as createListCollection2,
1688
+ useComboboxContext
1689
+ } from "@ark-ui/react/combobox";
1690
+ import {
1691
+ inputVariants as inputVariants3,
1692
+ comboboxControlBase,
1693
+ comboboxInputBase,
1694
+ comboboxTriggerBase,
1695
+ comboboxClearTriggerBase,
1696
+ comboboxContentBase,
1697
+ comboboxPositionerBase,
1698
+ comboboxItemVariants,
1699
+ comboboxItemGroupLabelBase,
1700
+ comboboxItemIndicatorBase,
1701
+ comboboxListBase,
1702
+ comboboxEmptyBase,
1703
+ cn as cn51
1704
+ } from "@cloudvoyant/helix";
1705
+ import { jsx as jsx51 } from "react/jsx-runtime";
1706
+ function Combobox({
1707
+ items,
1708
+ collection,
1709
+ openOnClick = true,
1710
+ lazyMount = true,
1711
+ unmountOnExit = true,
1712
+ ...props
1713
+ }) {
1714
+ const resolvedCollection = useMemo5(
1715
+ () => collection ?? createListCollection2({ items: items ?? [] }),
1716
+ [collection, items]
1717
+ );
1718
+ return /* @__PURE__ */ jsx51(
1719
+ ArkComboboxRoot,
1720
+ {
1721
+ collection: resolvedCollection,
1722
+ openOnClick,
1723
+ lazyMount,
1724
+ unmountOnExit,
1725
+ ...props
1726
+ }
1727
+ );
1728
+ }
1729
+ function ComboboxControl({ className, ...props }) {
1730
+ return /* @__PURE__ */ jsx51(ArkComboboxControl, { className: cn51(comboboxControlBase, className), ...props });
1731
+ }
1732
+ function ComboboxInput({ size = "md", className, ...props }) {
1733
+ return /* @__PURE__ */ jsx51(ArkComboboxInput, { className: cn51(inputVariants3({ size }), comboboxInputBase, className), ...props });
1734
+ }
1735
+ function ComboboxTrigger({ className, ...props }) {
1736
+ return /* @__PURE__ */ jsx51(ArkComboboxTrigger, { className: cn51(comboboxTriggerBase, className), ...props });
1737
+ }
1738
+ function ComboboxClear({ className, ...props }) {
1739
+ return /* @__PURE__ */ jsx51(ArkComboboxClearTrigger, { "aria-label": "Clear", className: cn51(comboboxClearTriggerBase, className), ...props });
1740
+ }
1741
+ function ComboboxContent({ className, ...props }) {
1742
+ return /* @__PURE__ */ jsx51(Portal3, { children: /* @__PURE__ */ jsx51(ArkComboboxPositioner, { className: comboboxPositionerBase, children: /* @__PURE__ */ jsx51(ArkComboboxContent, { className: cn51(comboboxContentBase, className), ...props }) }) });
1743
+ }
1744
+ function ComboboxItemGroup({ className, ...props }) {
1745
+ return /* @__PURE__ */ jsx51(ArkComboboxItemGroup, { className, ...props });
1746
+ }
1747
+ function ComboboxItemGroupLabel({ className, ...props }) {
1748
+ return /* @__PURE__ */ jsx51(ArkComboboxItemGroupLabel, { className: cn51(comboboxItemGroupLabelBase, className), ...props });
1749
+ }
1750
+ function ComboboxItem({ item, showIndicator = true, className, ...props }) {
1751
+ return /* @__PURE__ */ jsx51(ArkComboboxItem, { item, persistFocus: true, className: cn51(comboboxItemVariants({ showIndicator }), className), ...props });
1752
+ }
1753
+ function ComboboxItemText({ className, ...props }) {
1754
+ return /* @__PURE__ */ jsx51(ArkComboboxItemText, { className, ...props });
1755
+ }
1756
+ function ComboboxItemIndicator({ className, ...props }) {
1757
+ return /* @__PURE__ */ jsx51(ArkComboboxItemIndicator, { className: cn51(comboboxItemIndicatorBase, className), ...props });
1758
+ }
1759
+ function ComboboxList({ className, ...props }) {
1760
+ return /* @__PURE__ */ jsx51(ArkComboboxList, { className: cn51(comboboxListBase, className), ...props });
1761
+ }
1762
+ function ComboboxEmpty({ className, children, ...props }) {
1763
+ return /* @__PURE__ */ jsx51(ArkComboboxEmpty, { className: cn51(comboboxEmptyBase, className), ...props, children: children ?? "No results found." });
1764
+ }
1765
+ var useCombobox = useComboboxContext;
1766
+
1767
+ // src/tags-input.tsx
1768
+ import {
1769
+ TagsInputRoot as ArkTagsInputRoot,
1770
+ TagsInputControl as ArkTagsInputControl,
1771
+ TagsInputInput as ArkTagsInputInput,
1772
+ TagsInputItem as ArkTagsInputItem,
1773
+ TagsInputItemPreview as ArkTagsInputItemPreview,
1774
+ TagsInputItemText as ArkTagsInputItemText,
1775
+ TagsInputItemInput as ArkTagsInputItemInput,
1776
+ TagsInputItemDeleteTrigger as ArkTagsInputItemDeleteTrigger,
1777
+ TagsInputClearTrigger as ArkTagsInputClearTrigger,
1778
+ TagsInputHiddenInput as ArkTagsInputHiddenInput,
1779
+ TagsInputContext as ArkTagsInputContext,
1780
+ useTagsInputContext
1781
+ } from "@ark-ui/react/tags-input";
1782
+ import {
1783
+ tagsInputRootBase,
1784
+ tagsInputControlBase,
1785
+ tagsInputInputBase,
1786
+ tagsInputItemBase,
1787
+ tagsInputItemTextBase,
1788
+ tagsInputItemInputBase,
1789
+ tagsInputItemDeleteTriggerBase,
1790
+ tagsInputClearTriggerBase,
1791
+ cn as cn52
1792
+ } from "@cloudvoyant/helix";
1793
+ import { jsx as jsx52, jsxs as jsxs14 } from "react/jsx-runtime";
1794
+ function TagInput({ className, editable = false, children, ...props }) {
1795
+ return /* @__PURE__ */ jsxs14(ArkTagsInputRoot, { className: cn52(tagsInputRootBase, className), editable, ...props, children: [
1796
+ children,
1797
+ /* @__PURE__ */ jsx52(ArkTagsInputHiddenInput, {})
1798
+ ] });
1799
+ }
1800
+ function TagInputControl({ className, ...props }) {
1801
+ return /* @__PURE__ */ jsx52(ArkTagsInputControl, { className: cn52(tagsInputControlBase, className), ...props });
1802
+ }
1803
+ function TagInputInput({ className, ...props }) {
1804
+ return /* @__PURE__ */ jsx52(ArkTagsInputInput, { className: cn52(tagsInputInputBase, className), ...props });
1805
+ }
1806
+ function TagInputItem({ className, ...props }) {
1807
+ return /* @__PURE__ */ jsx52(ArkTagsInputItem, { className: cn52(tagsInputItemBase, className), ...props });
1808
+ }
1809
+ function TagInputItemPreview({ className, ...props }) {
1810
+ return /* @__PURE__ */ jsx52(ArkTagsInputItemPreview, { className, ...props });
1811
+ }
1812
+ function TagInputItemText({ className, ...props }) {
1813
+ return /* @__PURE__ */ jsx52(ArkTagsInputItemText, { className: cn52(tagsInputItemTextBase, className), ...props });
1814
+ }
1815
+ function TagInputItemInput({ className, ...props }) {
1816
+ return /* @__PURE__ */ jsx52(ArkTagsInputItemInput, { className: cn52(tagsInputItemInputBase, className), ...props });
1817
+ }
1818
+ function TagInputItemDeleteTrigger({ className, ...props }) {
1819
+ return /* @__PURE__ */ jsx52(ArkTagsInputItemDeleteTrigger, { "aria-label": "Remove tag", className: cn52(tagsInputItemDeleteTriggerBase, className), ...props });
1820
+ }
1821
+ function TagInputClearTrigger({ className, ...props }) {
1822
+ return /* @__PURE__ */ jsx52(ArkTagsInputClearTrigger, { "aria-label": "Clear all tags", className: cn52(tagsInputClearTriggerBase, className), ...props });
1823
+ }
1824
+ var TagInputContext = ArkTagsInputContext;
1825
+ var useTagInput = useTagsInputContext;
1338
1826
  export {
1339
1827
  Badge,
1340
1828
  Button,
@@ -1346,9 +1834,37 @@ export {
1346
1834
  CardHeader,
1347
1835
  CardTitle,
1348
1836
  Center,
1837
+ Checkbox,
1838
+ CheckboxControl,
1839
+ CheckboxGroup,
1840
+ CheckboxIndicator,
1841
+ CheckboxLabel,
1349
1842
  Col,
1843
+ Combobox,
1844
+ ComboboxClear,
1845
+ ComboboxContent,
1846
+ ComboboxControl,
1847
+ ComboboxEmpty,
1848
+ ComboboxInput,
1849
+ ComboboxItem,
1850
+ ComboboxItemGroup,
1851
+ ComboboxItemGroupLabel,
1852
+ ComboboxItemIndicator,
1853
+ ComboboxItemText,
1854
+ ComboboxList,
1855
+ ComboboxTrigger,
1350
1856
  Container,
1857
+ Field,
1858
+ FieldError,
1859
+ FieldHelper,
1860
+ FieldLabel,
1861
+ FieldRequiredIndicator,
1862
+ FieldSet,
1863
+ FieldSetError,
1864
+ FieldSetHelper,
1865
+ FieldSetLegend,
1351
1866
  HStack,
1867
+ Input2 as Input,
1352
1868
  Item,
1353
1869
  Navbar,
1354
1870
  NavbarActions,
@@ -1369,6 +1885,11 @@ export {
1369
1885
  NavbarMobileOverlay,
1370
1886
  NavbarProvider,
1371
1887
  NavbarTrigger,
1888
+ NumberInput,
1889
+ NumberInputControl,
1890
+ NumberInputDecrement,
1891
+ NumberInputIncrement,
1892
+ NumberInputInput,
1372
1893
  Pagination,
1373
1894
  PaginationEllipsis,
1374
1895
  PaginationItem,
@@ -1377,6 +1898,18 @@ export {
1377
1898
  PaginationPrevious,
1378
1899
  Row,
1379
1900
  Scroll,
1901
+ Select,
1902
+ SelectClearTrigger,
1903
+ SelectContent,
1904
+ SelectIndicator,
1905
+ SelectItem,
1906
+ SelectItemGroup,
1907
+ SelectItemGroupLabel,
1908
+ SelectItemIndicator,
1909
+ SelectItemText,
1910
+ SelectNative,
1911
+ SelectTrigger,
1912
+ SelectValue,
1380
1913
  Root as Sidebar,
1381
1914
  Content as SidebarContent,
1382
1915
  Footer as SidebarFooter,
@@ -1404,15 +1937,38 @@ export {
1404
1937
  SplitterResizeTrigger,
1405
1938
  SplitterResizeTriggerIndicator,
1406
1939
  Stack,
1940
+ Switch,
1941
+ SwitchControl,
1942
+ SwitchLabel,
1943
+ SwitchThumb,
1407
1944
  Tabs,
1408
1945
  TabsContent,
1409
1946
  TabsList,
1410
1947
  TabsTrigger,
1948
+ TagInput,
1949
+ TagInputClearTrigger,
1950
+ TagInputContext,
1951
+ TagInputControl,
1952
+ TagInputInput,
1953
+ TagInputItem,
1954
+ TagInputItemDeleteTrigger,
1955
+ TagInputItemInput,
1956
+ TagInputItemPreview,
1957
+ TagInputItemText,
1958
+ Textarea,
1411
1959
  ToggleButton,
1412
1960
  ToggleButtonIndicator,
1413
1961
  VStack,
1414
1962
  navbarMenuTriggerStyle2 as navbarMenuTriggerStyle,
1963
+ useCheckbox,
1964
+ useCombobox,
1965
+ useField,
1966
+ useMediaQuery,
1415
1967
  useNavbar,
1968
+ useNumberInput,
1969
+ useSelect,
1416
1970
  useSidebar,
1417
- useTabs
1971
+ useSwitch,
1972
+ useTabs,
1973
+ useTagInput
1418
1974
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudvoyant/helix-react",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "helix React UI components",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@ark-ui/react": "^5.38.2",
30
- "@cloudvoyant/helix": "0.12.0"
30
+ "@cloudvoyant/helix": "0.13.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^22.0.0",