@collective-intelligence/ui-react 0.1.1 → 0.1.3

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 (51) hide show
  1. package/README.md +3 -1
  2. package/dist/components/icons/index.js +1 -1
  3. package/dist/components/illustrations/index.d.ts +8 -8
  4. package/dist/components/illustrations/index.js +1 -1
  5. package/dist/components/ui/index.js +20 -1
  6. package/dist/components/ui-extensions/atoms/ThemeToggle/index.js +1 -1
  7. package/dist/components/ui-extensions/hooks/use-mobile.js +1 -1
  8. package/dist/components/ui-extensions/index.d.ts +12 -0
  9. package/dist/components/ui-extensions/index.js +6 -6
  10. package/dist/hooks/index.js +1 -1
  11. package/dist/hooks/operations.js +1 -1
  12. package/dist/hooks/use-debounced-callback.js +1 -1
  13. package/dist/hooks/use-mount-action.js +1 -1
  14. package/dist/index-1hg2mydq.js +2 -0
  15. package/dist/index-1kd3e9cz.js +2 -0
  16. package/dist/index-24awe3d6.js +2 -0
  17. package/dist/index-38cmkpwj.js +6 -0
  18. package/dist/index-42q094m7.js +2 -0
  19. package/dist/index-75cf149h.js +2 -0
  20. package/dist/index-7gzq3np4.js +2 -0
  21. package/dist/index-87bxrmfq.js +42 -0
  22. package/dist/index-9nkdbb33.js +2 -0
  23. package/dist/index-ckt9z566.js +2 -0
  24. package/dist/index-db7hx21g.js +2 -0
  25. package/dist/index-k79cbjh7.js +2 -0
  26. package/dist/index-q2bgrvjz.js +2 -0
  27. package/dist/index-rgye3pe5.js +2 -0
  28. package/dist/index-s7dyqth2.js +2 -0
  29. package/dist/index-vs10z2rc.js +2 -0
  30. package/dist/index-whabarfn.js +2 -0
  31. package/dist/index-x6g6brsv.js +2 -0
  32. package/dist/index-ycc4mvy6.js +2 -0
  33. package/dist/index.js +1 -1
  34. package/dist/resources.d.ts +2 -1
  35. package/dist/resources.js +1 -1
  36. package/dist/tokens/theme.js +1 -1
  37. package/dist/utils/cn.js +1 -1
  38. package/package.json +3 -3
  39. package/dist/index-225zhfvs.js +0 -2
  40. package/dist/index-4djc1w16.js +0 -2
  41. package/dist/index-5m33z54y.js +0 -25
  42. package/dist/index-eevg910d.js +0 -2
  43. package/dist/index-f91yzwpm.js +0 -2
  44. package/dist/index-fdh3nr3r.js +0 -2
  45. package/dist/index-fmpwyc92.js +0 -2
  46. package/dist/index-gzgwcnnv.js +0 -42
  47. package/dist/index-kghpgv95.js +0 -2
  48. package/dist/index-m283d3wz.js +0 -2
  49. package/dist/index-mtc4857g.js +0 -2
  50. package/dist/index-y8r5sgrk.js +0 -2
  51. package/dist/index-yaz3187s.js +0 -2
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{Fd as f}from"../../../../index-yaz3187s.js";import"../../../../index-4djc1w16.js";import"../../../../index-gzgwcnnv.js";import"../../../../index-fdh3nr3r.js";import"../../../../index-mtc4857g.js";import"../../../../index-225zhfvs.js";export{f as default};
2
+ import"../../../../index-s7dyqth2.js";import"../../../../index-87bxrmfq.js";import"../../../../index-whabarfn.js";import{no}from"../../../../index-ckt9z566.js";import"../../../../index-1hg2mydq.js";export{no as default};
@@ -1 +1 @@
1
- import{Gc as j}from"../../../index-fmpwyc92.js";import"../../../index-225zhfvs.js";export{j as useIsMobile};
1
+ import{vt}from"../../../index-24awe3d6.js";export{vt as useIsMobile};
@@ -643,6 +643,18 @@ export interface JsonViewerDialogProps {
643
643
  jsonViewerProps?: Omit<JsonViewerProps, "data">;
644
644
  }
645
645
  export declare const JsonViewerDialog: ({ open, onOpenChange, title, data, jsonViewerProps }: JsonViewerDialogProps) => React$1.JSX.Element;
646
+ export interface LabeledFieldProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "id"> {
647
+ /** The id of the control that `children` renders. The label points at it. */
648
+ id: string;
649
+ label: React$1.ReactNode;
650
+ /** Shown in parentheses after the label of a field that can stay empty. */
651
+ optionalLabel?: string;
652
+ help?: string;
653
+ /** Replaces the help text and is announced as an alert. */
654
+ error?: string;
655
+ }
656
+ /** A labelled control with its help text, or with the error that replaces it. */
657
+ export declare const LabeledField: React$1.ForwardRefExoticComponent<LabeledFieldProps & React$1.RefAttributes<HTMLDivElement>>;
646
658
  export interface LinkComponentProps {
647
659
  to: string;
648
660
  className?: string;