@firecms/ui 3.5.2 → 3.5.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 (84) hide show
  1. package/dist/components/BooleanSwitchWithLabel.d.ts +1 -1
  2. package/dist/components/Chip.d.ts +1 -1
  3. package/dist/components/ColorPicker.d.ts +1 -1
  4. package/dist/components/DebouncedTextField.d.ts +1 -1
  5. package/dist/components/DialogTitle.d.ts +1 -1
  6. package/dist/components/LoadingButton.d.ts +1 -1
  7. package/dist/components/index.d.ts +51 -51
  8. package/dist/hooks/index.d.ts +6 -6
  9. package/dist/icons/FirestoreIcon.d.ts +1 -1
  10. package/dist/icons/GitHubIcon.d.ts +1 -1
  11. package/dist/icons/create_icon.d.ts +1 -1
  12. package/dist/icons/generated_icons.d.ts +2198 -2198
  13. package/dist/icons/index.d.ts +8 -8
  14. package/dist/index.d.ts +5 -5
  15. package/dist/index.es.js.map +1 -1
  16. package/dist/index.umd.js.map +1 -1
  17. package/dist/util/chip_colors.d.ts +1 -1
  18. package/dist/util/index.d.ts +4 -4
  19. package/package.json +1 -1
  20. package/src/components/Alert.tsx +1 -1
  21. package/src/components/Autocomplete.tsx +4 -4
  22. package/src/components/Avatar.tsx +1 -1
  23. package/src/components/BooleanSwitch.tsx +1 -1
  24. package/src/components/BooleanSwitchWithLabel.tsx +3 -3
  25. package/src/components/Button.tsx +1 -1
  26. package/src/components/Card.tsx +2 -2
  27. package/src/components/CenteredView.tsx +2 -2
  28. package/src/components/Checkbox.tsx +2 -2
  29. package/src/components/Chip.tsx +1 -1
  30. package/src/components/CircularProgress.tsx +1 -1
  31. package/src/components/Collapse.tsx +2 -2
  32. package/src/components/ColorPicker.tsx +4 -4
  33. package/src/components/Container.tsx +1 -1
  34. package/src/components/DateTimeField.tsx +7 -7
  35. package/src/components/DebouncedTextField.tsx +1 -1
  36. package/src/components/Dialog.tsx +3 -3
  37. package/src/components/DialogActions.tsx +2 -2
  38. package/src/components/DialogContent.tsx +1 -1
  39. package/src/components/DialogTitle.tsx +2 -2
  40. package/src/components/ExpandablePanel.tsx +4 -4
  41. package/src/components/FileUpload.tsx +3 -3
  42. package/src/components/FilterChip.tsx +1 -1
  43. package/src/components/IconButton.tsx +1 -1
  44. package/src/components/InfoLabel.tsx +1 -1
  45. package/src/components/InputLabel.tsx +2 -2
  46. package/src/components/Label.tsx +2 -2
  47. package/src/components/LoadingButton.tsx +2 -2
  48. package/src/components/Markdown.tsx +1 -1
  49. package/src/components/Menu.tsx +3 -3
  50. package/src/components/Menubar.tsx +3 -3
  51. package/src/components/MultiSelect.tsx +8 -8
  52. package/src/components/Paper.tsx +2 -2
  53. package/src/components/Popover.tsx +4 -4
  54. package/src/components/RadioGroup.tsx +1 -1
  55. package/src/components/ResizablePanels.tsx +1 -1
  56. package/src/components/SearchBar.tsx +5 -5
  57. package/src/components/SearchableSelect.tsx +6 -6
  58. package/src/components/Select.tsx +5 -5
  59. package/src/components/Separator.tsx +1 -1
  60. package/src/components/Sheet.tsx +3 -3
  61. package/src/components/Skeleton.tsx +2 -2
  62. package/src/components/Slider.tsx +1 -1
  63. package/src/components/Table.tsx +2 -2
  64. package/src/components/Tabs.tsx +4 -4
  65. package/src/components/TextField.tsx +3 -3
  66. package/src/components/TextareaAutosize.tsx +1 -1
  67. package/src/components/ToggleButtonGroup.tsx +1 -1
  68. package/src/components/Tooltip.tsx +3 -3
  69. package/src/components/Typography.tsx +1 -1
  70. package/src/components/common/SelectInputLabel.tsx +1 -1
  71. package/src/components/index.tsx +51 -51
  72. package/src/hooks/index.ts +6 -6
  73. package/src/hooks/useIconStyles.tsx +1 -1
  74. package/src/hooks/useInjectStyles.tsx +1 -1
  75. package/src/icons/FirestoreIcon.tsx +1 -1
  76. package/src/icons/GitHubIcon.tsx +1 -1
  77. package/src/icons/Icon.tsx +1 -1
  78. package/src/icons/create_icon.tsx +1 -1
  79. package/src/icons/generated_icons.ts +1 -1
  80. package/src/icons/index.ts +8 -8
  81. package/src/index.ts +5 -5
  82. package/src/scripts/saveIconFiles.ts +1 -1
  83. package/src/util/chip_colors.ts +2 -2
  84. package/src/util/index.ts +4 -4
@@ -1,4 +1,4 @@
1
- import { ChipColorKey, ChipColorScheme } from "../components";
1
+ import { ChipColorKey, ChipColorScheme } from "../components/index.js";
2
2
  export declare const CHIP_COLORS: Record<string, ChipColorScheme>;
3
3
  export declare function getColorSchemeForKey(key: ChipColorKey): ChipColorScheme;
4
4
  export declare function getColorSchemeForSeed(seed: string): ChipColorScheme;
@@ -1,4 +1,4 @@
1
- export * from "./cls";
2
- export * from "./debounce";
3
- export * from "./chip_colors";
4
- export * from "./key_to_icon_component";
1
+ export * from "./cls.js";
2
+ export * from "./debounce.js";
3
+ export * from "./chip_colors.js";
4
+ export * from "./key_to_icon_component.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@firecms/ui",
3
3
  "type": "module",
4
- "version": "3.5.2",
4
+ "version": "3.5.3",
5
5
  "description": "Awesome Firebase/Firestore-based headless open-source CMS",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/firecmsco"
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { cls } from "../util";
2
+ import { cls } from "../util/index.js";
3
3
 
4
4
  export interface AlertProps {
5
5
  children: React.ReactNode;
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import React from "react";
3
3
 
4
- import { paperMixin } from "../styles";
5
- import { Collapse } from "./Collapse";
6
- import { cls } from "../util";
7
- import { useOutsideAlerter } from "../hooks";
4
+ import { paperMixin } from "../styles.js";
5
+ import { Collapse } from "./Collapse.js";
6
+ import { cls } from "../util/index.js";
7
+ import { useOutsideAlerter } from "../hooks/index.js";
8
8
 
9
9
  export type AutocompleteProps = {
10
10
  children: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import React, { useState } from "react";
3
- import { cls } from "../util";
3
+ import { cls } from "../util/index.js";
4
4
 
5
5
  export interface AvatarProps {
6
6
  src?: string;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import React from "react";
3
- import { cls } from "../util";
3
+ import { cls } from "../util/index.js";
4
4
 
5
5
  export type BooleanSwitchProps = {
6
6
  value: boolean | null;
@@ -5,9 +5,9 @@ import {
5
5
  fieldBackgroundHoverMixin,
6
6
  fieldBackgroundMixin,
7
7
  focusedClasses
8
- } from "../styles";
9
- import { BooleanSwitch, BooleanSwitchProps } from "./BooleanSwitch";
10
- import { cls } from "../util";
8
+ } from "../styles.js";
9
+ import { BooleanSwitch, BooleanSwitchProps } from "./BooleanSwitch.js";
10
+ import { cls } from "../util/index.js";
11
11
 
12
12
  export type BooleanSwitchWithLabelProps = BooleanSwitchProps & {
13
13
  position?: "start" | "end",
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import React from "react";
3
- import { cls } from "../util";
3
+ import { cls } from "../util/index.js";
4
4
 
5
5
  export type ButtonProps<C extends React.ElementType = "button"> = {
6
6
  children?: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import React, { useCallback } from "react";
3
- import { cardClickableMixin, cardMixin } from "../styles";
4
- import { cls } from "../util";
3
+ import { cardClickableMixin, cardMixin } from "../styles.js";
4
+ import { cls } from "../util/index.js";
5
5
 
6
6
  type CardProps = {
7
7
  children: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import React from "react";
3
- import { Container } from "./Container";
4
- import { cls } from "../util";
3
+ import { Container } from "./Container.js";
4
+ import { cls } from "../util/index.js";
5
5
 
6
6
  export type CenteredViewProps = {
7
7
  children: React.ReactNode;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
3
 
4
- import { CheckIcon, RemoveIcon } from "../icons";
5
- import { cls } from "../util";
4
+ import { CheckIcon, RemoveIcon } from "../icons/index.js";
5
+ import { cls } from "../util/index.js";
6
6
 
7
7
  export interface CheckboxProps {
8
8
  checked: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { CHIP_COLORS, cls, getColorSchemeForKey } from "../util";
2
+ import { CHIP_COLORS, cls, getColorSchemeForKey } from "../util/index.js";
3
3
 
4
4
  export type ChipColorScheme = {
5
5
  color: string;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { cls } from "../util";
2
+ import { cls } from "../util/index.js";
3
3
 
4
4
  export type CircularProgressProps = {
5
5
  size?: "smallest" | "small" | "medium" | "large",
@@ -2,8 +2,8 @@
2
2
  import React from "react";
3
3
  import * as Collapsible from "@radix-ui/react-collapsible";
4
4
 
5
- import { cls } from "../util";
6
- import { useInjectStyles } from "../hooks";
5
+ import { cls } from "../util/index.js";
6
+ import { useInjectStyles } from "../hooks/index.js";
7
7
 
8
8
  interface CollapseProps {
9
9
  children?: React.ReactNode;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
- import { CHIP_COLORS, cls } from "../util";
3
- import { ChipColorKey, ChipColorScheme } from "./Chip";
4
- import { CheckIcon } from "../icons";
5
- import { Tooltip } from "./Tooltip";
2
+ import { CHIP_COLORS, cls } from "../util/index.js";
3
+ import { ChipColorKey, ChipColorScheme } from "./Chip.js";
4
+ import { CheckIcon } from "../icons/index.js";
5
+ import { Tooltip } from "./Tooltip.js";
6
6
 
7
7
  export interface ColorPickerProps {
8
8
  /**
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import React, { ForwardRefRenderFunction } from "react";
3
- import { cls } from "../util";
3
+ import { cls } from "../util/index.js";
4
4
 
5
5
  export type ContainerProps = {
6
6
  children: React.ReactNode;
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
 
3
3
  import React, { useRef, useState } from "react";
4
- import { CalendarMonthIcon, CloseIcon, ErrorIcon } from "../icons";
5
- import { IconButton } from "./IconButton";
6
- import { fieldBackgroundDisabledMixin, fieldBackgroundHoverMixin, fieldBackgroundMixin, } from "../styles";
7
- import { InputLabel } from "./InputLabel";
8
- import { Typography } from "./Typography";
9
- import { cls } from "../util";
10
- import { useInjectStyles } from "../hooks";
4
+ import { CalendarMonthIcon, CloseIcon, ErrorIcon } from "../icons/index.js";
5
+ import { IconButton } from "./IconButton.js";
6
+ import { fieldBackgroundDisabledMixin, fieldBackgroundHoverMixin, fieldBackgroundMixin, } from "../styles.js";
7
+ import { InputLabel } from "./InputLabel.js";
8
+ import { Typography } from "./Typography.js";
9
+ import { cls } from "../util/index.js";
10
+ import { useInjectStyles } from "../hooks/index.js";
11
11
 
12
12
  export type DateTimeFieldProps = {
13
13
  value?: Date | null;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import React, { ChangeEvent, useCallback, useDeferredValue, useEffect } from "react";
3
- import { TextField, TextFieldProps } from "./index";
3
+ import { TextField, TextFieldProps } from "./index.js";
4
4
 
5
5
  export function DebouncedTextField<T extends string | number>(props: TextFieldProps<T>) {
6
6
 
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import React, { useEffect, useState } from "react";
3
3
  import * as DialogPrimitive from "@radix-ui/react-dialog";
4
- import { paperMixin } from "../styles";
5
- import { cls } from "../util";
6
- import { usePortalContainer } from "../hooks/PortalContainerContext";
4
+ import { paperMixin } from "../styles.js";
5
+ import { cls } from "../util/index.js";
6
+ import { usePortalContainer } from "../hooks/PortalContainerContext.js";
7
7
 
8
8
  export type DialogProps = {
9
9
  open?: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import { defaultBorderMixin } from "../styles";
3
- import { cls } from "../util";
2
+ import { defaultBorderMixin } from "../styles.js";
3
+ import { cls } from "../util/index.js";
4
4
 
5
5
  export function DialogActions({
6
6
  children,
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { cls } from "../util";
2
+ import { cls } from "../util/index.js";
3
3
 
4
4
  export function DialogContent({
5
5
  children,
@@ -3,8 +3,8 @@
3
3
  import React from "react";
4
4
  import * as DialogPrimitive from "@radix-ui/react-dialog";
5
5
  import * as VisuallyHidden from "@radix-ui/react-visually-hidden";
6
- import { Typography, TypographyProps, TypographyVariant } from "./Typography";
7
- import { cls } from "../util";
6
+ import { Typography, TypographyProps, TypographyVariant } from "./Typography.js";
7
+ import { cls } from "../util/index.js";
8
8
 
9
9
  export type DialogContentProps = TypographyProps & {
10
10
  children: React.ReactNode,
@@ -2,10 +2,10 @@
2
2
  import React, { PropsWithChildren, useEffect, useState } from "react";
3
3
 
4
4
  import * as Collapsible from "@radix-ui/react-collapsible";
5
- import { defaultBorderMixin, fieldBackgroundMixin } from "../styles";
6
- import { KeyboardArrowDownIcon } from "../icons";
7
- import { cls } from "../util";
8
- import { useInjectStyles } from "../hooks";
5
+ import { defaultBorderMixin, fieldBackgroundMixin } from "../styles.js";
6
+ import { KeyboardArrowDownIcon } from "../icons/index.js";
7
+ import { cls } from "../util/index.js";
8
+ import { useInjectStyles } from "../hooks/index.js";
9
9
 
10
10
  export function ExpandablePanel({
11
11
  title,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import React from "react";
3
3
  import { useDropzone } from "react-dropzone";
4
- import { fieldBackgroundHoverMixin, fieldBackgroundMixin } from "../styles";
5
- import { cls } from "../util";
6
- import { Typography } from "./Typography";
4
+ import { fieldBackgroundHoverMixin, fieldBackgroundMixin } from "../styles.js";
5
+ import { cls } from "../util/index.js";
6
+ import { Typography } from "./Typography.js";
7
7
 
8
8
  export interface FileUploadError {
9
9
  message: string;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { cls } from "../util";
2
+ import { cls } from "../util/index.js";
3
3
 
4
4
  export interface FilterChipProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import React from "react";
3
- import { cls } from "../util";
3
+ import { cls } from "../util/index.js";
4
4
 
5
5
  export type IconButtonProps<C extends React.ElementType> =
6
6
  Omit<(C extends "button" ? React.ButtonHTMLAttributes<HTMLButtonElement> : React.ComponentProps<C>), "onClick">
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { cls } from "../util";
2
+ import { cls } from "../util/index.js";
3
3
 
4
4
  // The text colour is set explicitly rather than inherited: these backgrounds
5
5
  // flip between themes, so a label rendered outside a Scaffold (which supplies
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import * as React from "react";
3
- import { cls } from "../util";
4
- import { defaultBorderMixin } from "../styles";
3
+ import { cls } from "../util/index.js";
4
+ import { defaultBorderMixin } from "../styles.js";
5
5
 
6
6
  export type InputLabelProps = {
7
7
  children?: React.ReactNode;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import * as React from "react"
3
3
  import * as LabelPrimitive from "@radix-ui/react-label"
4
- import { cls } from "../util";
5
- import { defaultBorderMixin } from "../styles";
4
+ import { cls } from "../util/index.js";
5
+ import { defaultBorderMixin } from "../styles.js";
6
6
 
7
7
  type LabelProps = React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & {
8
8
  border?: boolean,
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import { Button, ButtonProps } from "./Button";
3
- import { CircularProgress } from "./CircularProgress";
2
+ import { Button, ButtonProps } from "./Button.js";
3
+ import { CircularProgress } from "./CircularProgress.js";
4
4
 
5
5
  export type LoadingButtonProps<P extends React.ElementType> = ButtonProps<P> & {
6
6
  startIcon?: React.ReactNode;
@@ -4,7 +4,7 @@ import equal from "react-fast-compare"
4
4
 
5
5
  // @ts-ignore
6
6
  import MarkdownIt from "markdown-it";
7
- import { cls } from "../util";
7
+ import { cls } from "../util/index.js";
8
8
 
9
9
  export interface MarkdownProps {
10
10
  source: string,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import React from "react";
3
3
  import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
4
- import { focusedDisabled, paperMixin } from "../styles";
5
- import { cls } from "../util";
6
- import { usePortalContainer } from "../hooks/PortalContainerContext";
4
+ import { focusedDisabled, paperMixin } from "../styles.js";
5
+ import { cls } from "../util/index.js";
6
+ import { usePortalContainer } from "../hooks/PortalContainerContext.js";
7
7
 
8
8
  export type MenuProps = {
9
9
  children: React.ReactNode;
@@ -1,9 +1,9 @@
1
1
  import * as React from "react";
2
2
 
3
3
  import * as MenubarPrimitive from "@radix-ui/react-menubar";
4
- import { cls } from "../util";
5
- import { CheckIcon, ChevronRightIcon } from "../icons";
6
- import { usePortalContainer } from "../hooks/PortalContainerContext";
4
+ import { cls } from "../util/index.js";
5
+ import { CheckIcon, ChevronRightIcon } from "../icons/index.js";
6
+ import { usePortalContainer } from "../hooks/PortalContainerContext.js";
7
7
 
8
8
  export function Menubar({
9
9
  children,
@@ -3,11 +3,11 @@ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
3
  import * as React from "react";
4
4
  import { ChangeEvent, Children, useEffect, useState } from "react";
5
5
  import { Command as CommandPrimitive } from "cmdk";
6
- import { cls } from "../util";
7
- import { CheckIcon, CloseIcon, KeyboardArrowDownIcon } from "../icons";
8
- import { Separator } from "./Separator";
9
- import { Chip } from "./Chip";
10
- import { SelectInputLabel } from "./common/SelectInputLabel";
6
+ import { cls } from "../util/index.js";
7
+ import { CheckIcon, CloseIcon, KeyboardArrowDownIcon } from "../icons/index.js";
8
+ import { Separator } from "./Separator.js";
9
+ import { Chip } from "./Chip.js";
10
+ import { SelectInputLabel } from "./common/SelectInputLabel.js";
11
11
  import {
12
12
  defaultBorderMixin,
13
13
  fieldBackgroundDisabledMixin,
@@ -15,9 +15,9 @@ import {
15
15
  fieldBackgroundInvisibleMixin,
16
16
  fieldBackgroundMixin,
17
17
  focusedDisabled
18
- } from "../styles";
19
- import { useInjectStyles } from "../hooks";
20
- import { usePortalContainer } from "../hooks/PortalContainerContext";
18
+ } from "../styles.js";
19
+ import { useInjectStyles } from "../hooks/index.js";
20
+ import { usePortalContainer } from "../hooks/PortalContainerContext.js";
21
21
 
22
22
  export type MultiSelectValue = string | number | boolean;
23
23
 
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
 
3
- import { paperMixin } from "../styles";
4
- import { cls } from "../util";
3
+ import { paperMixin } from "../styles.js";
4
+ import { cls } from "../util/index.js";
5
5
 
6
6
  export function Paper({
7
7
  children,
@@ -2,10 +2,10 @@
2
2
  import React from "react";
3
3
  import * as PopoverPrimitive from "@radix-ui/react-popover";
4
4
 
5
- import { paperMixin } from "../styles";
6
- import { cls } from "../util";
7
- import { useInjectStyles } from "../hooks";
8
- import { usePortalContainer } from "../hooks/PortalContainerContext";
5
+ import { paperMixin } from "../styles.js";
6
+ import { cls } from "../util/index.js";
7
+ import { useInjectStyles } from "../hooks/index.js";
8
+ import { usePortalContainer } from "../hooks/PortalContainerContext.js";
9
9
 
10
10
  export type PopoverSide = "top" | "right" | "bottom" | "left";
11
11
  export type PopoverAlign = "start" | "center" | "end";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import * as React from "react"
3
3
  import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"
4
- import { cls } from "../util";
4
+ import { cls } from "../util/index.js";
5
5
 
6
6
  export interface RadioGroupProps {
7
7
  id?: string;
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback, useEffect, useRef, useState } from "react";
2
- import { cls } from "../util";
2
+ import { cls } from "../util/index.js";
3
3
 
4
4
  export type ResizablePanelsProps = {
5
5
  firstPanel: React.ReactNode;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import React, { useCallback, useState } from "react";
3
3
 
4
- import { defaultBorderMixin } from "../styles";
5
- import { CircularProgress, IconButton } from "./index";
6
- import { CloseIcon, SearchIcon } from "../icons";
7
- import { cls } from "../util";
8
- import { useDebounceValue } from "../hooks";
4
+ import { defaultBorderMixin } from "../styles.js";
5
+ import { CircularProgress, IconButton } from "./index.js";
6
+ import { CloseIcon, SearchIcon } from "../icons/index.js";
7
+ import { cls } from "../util/index.js";
8
+ import { useDebounceValue } from "../hooks/index.js";
9
9
 
10
10
  interface SearchBarProps {
11
11
  onClick?: () => void;
@@ -3,9 +3,9 @@ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
3
  import * as React from "react";
4
4
  import { useEffect, useRef, useState } from "react";
5
5
  import { Command as CommandPrimitive } from "cmdk";
6
- import { cls } from "../util";
7
- import { CheckIcon, KeyboardArrowDownIcon } from "../icons";
8
- import { Separator } from "./Separator";
6
+ import { cls } from "../util/index.js";
7
+ import { CheckIcon, KeyboardArrowDownIcon } from "../icons/index.js";
8
+ import { Separator } from "./Separator.js";
9
9
  import {
10
10
  defaultBorderMixin,
11
11
  fieldBackgroundDisabledMixin,
@@ -13,9 +13,9 @@ import {
13
13
  fieldBackgroundInvisibleMixin,
14
14
  fieldBackgroundMixin,
15
15
  focusedDisabled
16
- } from "../styles";
17
- import { useInjectStyles } from "../hooks";
18
- import { usePortalContainer } from "../hooks/PortalContainerContext";
16
+ } from "../styles.js";
17
+ import { useInjectStyles } from "../hooks/index.js";
18
+ import { usePortalContainer } from "../hooks/PortalContainerContext.js";
19
19
 
20
20
  // ─── Types ──────────────────────────────────────────────────────────────────
21
21
 
@@ -8,11 +8,11 @@ import {
8
8
  fieldBackgroundInvisibleMixin,
9
9
  fieldBackgroundMixin,
10
10
  focusedDisabled
11
- } from "../styles";
12
- import { CheckIcon, KeyboardArrowDownIcon } from "../icons";
13
- import { cls } from "../util";
14
- import { SelectInputLabel } from "./common/SelectInputLabel";
15
- import { usePortalContainer } from "../hooks/PortalContainerContext";
11
+ } from "../styles.js";
12
+ import { CheckIcon, KeyboardArrowDownIcon } from "../icons/index.js";
13
+ import { cls } from "../util/index.js";
14
+ import { SelectInputLabel } from "./common/SelectInputLabel.js";
15
+ import { usePortalContainer } from "../hooks/PortalContainerContext.js";
16
16
 
17
17
  export type SelectValue = string | number | boolean;
18
18
 
@@ -1,5 +1,5 @@
1
1
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
2
- import { cls } from "../util";
2
+ import { cls } from "../util/index.js";
3
3
 
4
4
  export function Separator({
5
5
  orientation,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import React, { useEffect, useState } from "react";
3
- import { cls } from "../util";
4
- import { defaultBorderMixin } from "../styles";
3
+ import { cls } from "../util/index.js";
4
+ import { defaultBorderMixin } from "../styles.js";
5
5
  import * as DialogPrimitive from "@radix-ui/react-dialog";
6
- import { usePortalContainer } from "../hooks/PortalContainerContext";
6
+ import { usePortalContainer } from "../hooks/PortalContainerContext.js";
7
7
 
8
8
  interface SheetProps {
9
9
  children: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import { cls } from "../util";
3
- import { useInjectStyles } from "../hooks";
2
+ import { cls } from "../util/index.js";
3
+ import { useInjectStyles } from "../hooks/index.js";
4
4
 
5
5
  export type SkeletonProps = {
6
6
  width?: number;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as React from "react";
3
- import { cls } from "../util";
3
+ import { cls } from "../util/index.js";
4
4
  import * as SliderPrimitive from "@radix-ui/react-slider";
5
5
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
6
6
 
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
 
3
3
  import React, { useRef } from "react";
4
- import { defaultBorderMixin } from "../styles";
5
- import { cls } from "../util";
4
+ import { defaultBorderMixin } from "../styles.js";
5
+ import { cls } from "../util/index.js";
6
6
 
7
7
  export type TableProps = {
8
8
  children: React.ReactNode;
@@ -1,9 +1,9 @@
1
1
  import React, { createContext, useContext, useRef, useState, useEffect } from "react";
2
2
  import * as TabsPrimitive from "@radix-ui/react-tabs";
3
- import { cls } from "../util";
4
- import { defaultBorderMixin } from "../styles";
5
- import { IconButton } from "./IconButton";
6
- import { ChevronLeftIcon, ChevronRightIcon } from "../icons";
3
+ import { cls } from "../util/index.js";
4
+ import { defaultBorderMixin } from "../styles.js";
5
+ import { IconButton } from "./IconButton.js";
6
+ import { ChevronLeftIcon, ChevronRightIcon } from "../icons/index.js";
7
7
 
8
8
  type TabsMode = "primary" | "secondary";
9
9
  const TabsModeContext = createContext<TabsMode>("primary");
@@ -7,9 +7,9 @@ import {
7
7
  fieldBackgroundInvisibleMixin,
8
8
  fieldBackgroundMixin,
9
9
  focusedInvisibleMixin
10
- } from "../styles";
11
- import { InputLabel } from "./InputLabel";
12
- import { cls } from "../util";
10
+ } from "../styles.js";
11
+ import { InputLabel } from "./InputLabel.js";
12
+ import { cls } from "../util/index.js";
13
13
 
14
14
  export type InputType =
15
15
  | "text"
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import * as React from "react";
3
3
  import { useLayoutEffect } from "react";
4
- import { debounce } from "../util";
4
+ import { debounce } from "../util/index.js";
5
5
 
6
6
  type State = {
7
7
  outerHeightStyle: number;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { cls } from "../util";
2
+ import { cls } from "../util/index.js";
3
3
 
4
4
  export type ToggleButtonOption<T extends string = string> = {
5
5
  value: T;