@firecms/ui 3.5.2-canary.c5764a3 → 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.
- package/dist/components/BooleanSwitchWithLabel.d.ts +1 -1
- package/dist/components/Chip.d.ts +1 -1
- package/dist/components/ColorPicker.d.ts +1 -1
- package/dist/components/DebouncedTextField.d.ts +1 -1
- package/dist/components/DialogTitle.d.ts +1 -1
- package/dist/components/LoadingButton.d.ts +1 -1
- package/dist/components/index.d.ts +51 -51
- package/dist/hooks/index.d.ts +6 -6
- package/dist/icons/FirestoreIcon.d.ts +1 -1
- package/dist/icons/GitHubIcon.d.ts +1 -1
- package/dist/icons/create_icon.d.ts +1 -1
- package/dist/icons/generated_icons.d.ts +2198 -2198
- package/dist/icons/index.d.ts +8 -8
- package/dist/index.d.ts +5 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/util/chip_colors.d.ts +1 -1
- package/dist/util/index.d.ts +4 -4
- package/package.json +1 -1
- package/src/components/Alert.tsx +1 -1
- package/src/components/Autocomplete.tsx +4 -4
- package/src/components/Avatar.tsx +1 -1
- package/src/components/BooleanSwitch.tsx +1 -1
- package/src/components/BooleanSwitchWithLabel.tsx +3 -3
- package/src/components/Button.tsx +1 -1
- package/src/components/Card.tsx +2 -2
- package/src/components/CenteredView.tsx +2 -2
- package/src/components/Checkbox.tsx +2 -2
- package/src/components/Chip.tsx +1 -1
- package/src/components/CircularProgress.tsx +1 -1
- package/src/components/Collapse.tsx +2 -2
- package/src/components/ColorPicker.tsx +4 -4
- package/src/components/Container.tsx +1 -1
- package/src/components/DateTimeField.tsx +7 -7
- package/src/components/DebouncedTextField.tsx +1 -1
- package/src/components/Dialog.tsx +3 -3
- package/src/components/DialogActions.tsx +2 -2
- package/src/components/DialogContent.tsx +1 -1
- package/src/components/DialogTitle.tsx +2 -2
- package/src/components/ExpandablePanel.tsx +4 -4
- package/src/components/FileUpload.tsx +3 -3
- package/src/components/FilterChip.tsx +1 -1
- package/src/components/IconButton.tsx +1 -1
- package/src/components/InfoLabel.tsx +1 -1
- package/src/components/InputLabel.tsx +2 -2
- package/src/components/Label.tsx +2 -2
- package/src/components/LoadingButton.tsx +2 -2
- package/src/components/Markdown.tsx +1 -1
- package/src/components/Menu.tsx +3 -3
- package/src/components/Menubar.tsx +3 -3
- package/src/components/MultiSelect.tsx +8 -8
- package/src/components/Paper.tsx +2 -2
- package/src/components/Popover.tsx +4 -4
- package/src/components/RadioGroup.tsx +1 -1
- package/src/components/ResizablePanels.tsx +1 -1
- package/src/components/SearchBar.tsx +5 -5
- package/src/components/SearchableSelect.tsx +6 -6
- package/src/components/Select.tsx +5 -5
- package/src/components/Separator.tsx +1 -1
- package/src/components/Sheet.tsx +3 -3
- package/src/components/Skeleton.tsx +2 -2
- package/src/components/Slider.tsx +1 -1
- package/src/components/Table.tsx +2 -2
- package/src/components/Tabs.tsx +4 -4
- package/src/components/TextField.tsx +3 -3
- package/src/components/TextareaAutosize.tsx +1 -1
- package/src/components/ToggleButtonGroup.tsx +1 -1
- package/src/components/Tooltip.tsx +3 -3
- package/src/components/Typography.tsx +1 -1
- package/src/components/common/SelectInputLabel.tsx +1 -1
- package/src/components/index.tsx +51 -51
- package/src/hooks/index.ts +6 -6
- package/src/hooks/useIconStyles.tsx +1 -1
- package/src/hooks/useInjectStyles.tsx +1 -1
- package/src/icons/FirestoreIcon.tsx +1 -1
- package/src/icons/GitHubIcon.tsx +1 -1
- package/src/icons/Icon.tsx +1 -1
- package/src/icons/create_icon.tsx +1 -1
- package/src/icons/generated_icons.ts +1 -1
- package/src/icons/index.ts +8 -8
- package/src/index.ts +5 -5
- package/src/scripts/saveIconFiles.ts +1 -1
- package/src/util/chip_colors.ts +2 -2
- 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;
|
package/dist/util/index.d.ts
CHANGED
|
@@ -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
package/src/components/Alert.tsx
CHANGED
|
@@ -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;
|
|
@@ -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",
|
package/src/components/Card.tsx
CHANGED
|
@@ -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;
|
package/src/components/Chip.tsx
CHANGED
|
@@ -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,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;
|
|
@@ -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,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,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;
|
package/src/components/Label.tsx
CHANGED
|
@@ -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;
|
package/src/components/Menu.tsx
CHANGED
|
@@ -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
|
|
package/src/components/Paper.tsx
CHANGED
|
@@ -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,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
|
|
package/src/components/Sheet.tsx
CHANGED
|
@@ -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;
|
package/src/components/Table.tsx
CHANGED
|
@@ -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;
|
package/src/components/Tabs.tsx
CHANGED
|
@@ -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"
|