@tryghost/shade 0.1.0-alpha.30 → 0.1.0-alpha.32
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/README.md +1 -1
- package/package.json +1 -1
- package/types/app.d.ts +5 -5
- package/types/components/page-templates/modal-page.d.ts +1 -1
- package/types/components/patterns/color-picker.d.ts +2 -2
- package/types/components/patterns/filter-bar.d.ts +2 -2
- package/types/components/patterns/filters-helpers.d.ts +1 -1
- package/types/components/patterns/image-upload.d.ts +3 -3
- package/types/components/patterns/kpi-tabs.d.ts +2 -2
- package/types/components/patterns/page-header.d.ts +4 -4
- package/types/components/patterns/setting-group.d.ts +8 -8
- package/types/components/patterns/settings-modal.d.ts +1 -1
- package/types/components/patterns/share-modal.d.ts +3 -3
- package/types/components/patterns/use-dirty-confirmation.d.ts +1 -1
- package/types/components/ui/alert-dialog.d.ts +1 -1
- package/types/components/ui/badge.d.ts +1 -1
- package/types/components/ui/banner.d.ts +1 -1
- package/types/components/ui/button.d.ts +1 -1
- package/types/components/ui/calendar.d.ts +1 -1
- package/types/components/ui/code-editor.d.ts +1 -1
- package/types/components/ui/copy-field.d.ts +1 -1
- package/types/components/ui/dropzone-variants.d.ts +1 -1
- package/types/components/ui/dropzone.d.ts +1 -1
- package/types/components/ui/field.d.ts +1 -1
- package/types/components/ui/floating-sidebar.d.ts +1 -1
- package/types/components/ui/indicator.d.ts +1 -1
- package/types/components/ui/input-group.d.ts +2 -2
- package/types/components/ui/multi-select-combobox.d.ts +1 -1
- package/types/components/ui/preview-chrome.d.ts +1 -1
- package/types/components/ui/select.d.ts +1 -1
- package/types/components/ui/sidebar.d.ts +2 -2
- package/types/providers/shade-provider.d.ts +1 -1
- package/types/shade-app.d.ts +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ integration. Shade does not ship a compiled stylesheet.
|
|
|
19
19
|
For an existing React/Vite app:
|
|
20
20
|
|
|
21
21
|
```sh
|
|
22
|
-
pnpm add @tryghost/shade
|
|
22
|
+
pnpm add @tryghost/shade react@18 react-dom@18
|
|
23
23
|
pnpm add -D tailwindcss@^4.1 @tailwindcss/vite@^4.1
|
|
24
24
|
```
|
|
25
25
|
|
package/package.json
CHANGED
package/types/app.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { default as ShadeApp } from './shade-app';
|
|
2
|
-
export type { ShadeAppProps } from './shade-app';
|
|
3
|
-
export { ShadeScope } from './shade-scope';
|
|
4
|
-
export { useFocusContext, useShade } from './providers/shade-context';
|
|
5
|
-
export type { ControlShape } from './providers/shade-context';
|
|
1
|
+
export { default as ShadeApp } from './shade-app.js';
|
|
2
|
+
export type { ShadeAppProps } from './shade-app.js';
|
|
3
|
+
export { ShadeScope } from './shade-scope.js';
|
|
4
|
+
export { useFocusContext, useShade } from './providers/shade-context.js';
|
|
5
|
+
export type { ControlShape } from './providers/shade-context.js';
|
|
6
6
|
//# sourceMappingURL=app.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Box, Text } from '
|
|
2
|
+
import { Box, Text } from '../primitives/index.js';
|
|
3
3
|
type ModalPageProps = React.ComponentPropsWithoutRef<typeof Box>;
|
|
4
4
|
type ModalPageTitleProps = Omit<React.ComponentPropsWithoutRef<typeof Text>, 'as'>;
|
|
5
5
|
declare const ModalPageTitle: React.ForwardRefExoticComponent<ModalPageTitleProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Color from 'color';
|
|
2
2
|
import * as Slider from '@radix-ui/react-slider';
|
|
3
3
|
import { type ButtonHTMLAttributes, type ComponentProps, type HTMLAttributes } from 'react';
|
|
4
|
-
import { Button } from '
|
|
5
|
-
import { SelectTrigger } from '
|
|
4
|
+
import { Button } from '../ui/button.js';
|
|
5
|
+
import { SelectTrigger } from '../ui/select.js';
|
|
6
6
|
export interface ColorSwatchOption {
|
|
7
7
|
title: string;
|
|
8
8
|
hex: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type ButtonProps } from '
|
|
3
|
-
import { type InlineProps } from '
|
|
2
|
+
import { type ButtonProps } from '../ui/button.js';
|
|
3
|
+
import { type InlineProps } from '../primitives/inline.js';
|
|
4
4
|
type FilterBarProps = React.PropsWithChildren & {
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Filter, FilterFieldConfig, FilterGroup, FilterI18nConfig, FilterOperator } from '
|
|
1
|
+
import type { Filter, FilterFieldConfig, FilterGroup, FilterI18nConfig, FilterOperator } from './filters.js';
|
|
2
2
|
export declare const DEFAULT_I18N: FilterI18nConfig;
|
|
3
3
|
export declare const createOperatorsFromI18n: (i18n: FilterI18nConfig) => Record<string, FilterOperator[]>;
|
|
4
4
|
export declare const DEFAULT_OPERATORS: Record<string, FilterOperator[]>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { imageUploadPreviewVariants } from '
|
|
4
|
-
import { type ButtonProps } from '
|
|
5
|
-
import { type DropzoneProps } from '
|
|
3
|
+
import { imageUploadPreviewVariants } from './image-upload-variants.js';
|
|
4
|
+
import { type ButtonProps } from '../ui/button.js';
|
|
5
|
+
import { type DropzoneProps } from '../ui/dropzone.js';
|
|
6
6
|
declare const ImageUpload: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
declare const ImageUploadDropzone: React.ForwardRefExoticComponent<DropzoneProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
export interface ImageUploadPreviewProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof imageUploadPreviewVariants> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as LucideIcons from 'lucide-react';
|
|
3
|
-
import { ButtonProps } from '
|
|
4
|
-
import { TabsTrigger } from '
|
|
3
|
+
import { ButtonProps } from '../ui/button.js';
|
|
4
|
+
import { TabsTrigger } from '../ui/tabs.js';
|
|
5
5
|
interface KpiTabTriggerProps extends React.ComponentProps<typeof TabsTrigger> {
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DropdownMenuContent, DropdownMenuTrigger } from '
|
|
2
|
-
import { type ButtonProps } from '
|
|
3
|
-
import { TooltipTrigger } from '
|
|
1
|
+
import { DropdownMenuContent, DropdownMenuTrigger } from '../ui/dropdown-menu.js';
|
|
2
|
+
import { type ButtonProps } from '../ui/button.js';
|
|
3
|
+
import { TooltipTrigger } from '../ui/tooltip.js';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
type PropsWithChildrenAndClassName = React.PropsWithChildren & {
|
|
6
6
|
className?: string;
|
|
@@ -34,7 +34,7 @@ declare const PageHeaderAction: React.ForwardRefExoticComponent<ButtonProps & {
|
|
|
34
34
|
tooltip?: boolean;
|
|
35
35
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
36
36
|
declare const PageHeaderFilterTrigger: React.ForwardRefExoticComponent<Omit<PageHeaderActionProps, "label"> & React.RefAttributes<HTMLButtonElement>>;
|
|
37
|
-
declare const PageHeaderSelectTrigger: React.ForwardRefExoticComponent<Omit<import("
|
|
37
|
+
declare const PageHeaderSelectTrigger: React.ForwardRefExoticComponent<Omit<import("../ui/select.js").SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
38
38
|
label: string;
|
|
39
39
|
tooltip?: boolean;
|
|
40
40
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { settingGroupVariants } from '
|
|
3
|
+
import { settingGroupVariants } from './setting-group-variants.js';
|
|
4
4
|
interface SettingGroupProps extends React.ComponentPropsWithoutRef<'div'>, VariantProps<typeof settingGroupVariants> {
|
|
5
5
|
editing?: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare const SettingGroup: React.ForwardRefExoticComponent<SettingGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare const SettingGroupHeader: React.ForwardRefExoticComponent<Omit<import("
|
|
9
|
-
declare const SettingGroupDetails: React.ForwardRefExoticComponent<Omit<import("
|
|
10
|
-
declare const SettingGroupTitle: React.ForwardRefExoticComponent<Omit<import("
|
|
11
|
-
declare const SettingGroupDescription: React.ForwardRefExoticComponent<Omit<import("
|
|
8
|
+
declare const SettingGroupHeader: React.ForwardRefExoticComponent<Omit<import("../primitives/inline.js").InlineProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
declare const SettingGroupDetails: React.ForwardRefExoticComponent<Omit<import("../primitives/stack.js").StackProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SettingGroupTitle: React.ForwardRefExoticComponent<Omit<import("../primitives/text.js").TextProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
11
|
+
declare const SettingGroupDescription: React.ForwardRefExoticComponent<Omit<import("../primitives/text.js").TextProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
12
12
|
declare const SettingGroupActions: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
interface SettingGroupContentProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
14
14
|
columns?: 1 | 2;
|
|
15
15
|
}
|
|
16
16
|
declare const SettingGroupContent: React.ForwardRefExoticComponent<SettingGroupContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
declare const SettingGroupValue: React.ForwardRefExoticComponent<Omit<import("
|
|
18
|
-
declare const SettingGroupValueTitle: React.ForwardRefExoticComponent<Omit<import("
|
|
19
|
-
declare const SettingGroupValueContent: React.ForwardRefExoticComponent<Omit<import("
|
|
17
|
+
declare const SettingGroupValue: React.ForwardRefExoticComponent<Omit<import("../primitives/stack.js").StackProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const SettingGroupValueTitle: React.ForwardRefExoticComponent<Omit<import("../primitives/text.js").TextProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
19
|
+
declare const SettingGroupValueContent: React.ForwardRefExoticComponent<Omit<import("../primitives/inline.js").InlineProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
20
20
|
export { SettingGroup, SettingGroupActions, SettingGroupContent, SettingGroupDescription, SettingGroupDetails, SettingGroupHeader, SettingGroupTitle, SettingGroupValue, SettingGroupValueContent, SettingGroupValueTitle, };
|
|
21
21
|
export type { SettingGroupContentProps, SettingGroupProps };
|
|
22
22
|
//# sourceMappingURL=setting-group.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type ButtonProps } from '
|
|
2
|
+
import { type ButtonProps } from '../ui/button.js';
|
|
3
3
|
/**
|
|
4
4
|
* Consumer-controlled settings modal shell. Legacy full-page settings dialogs
|
|
5
5
|
* still render through it; new modal flows should use Shade Dialog primitives.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { type ButtonProps } from '
|
|
4
|
-
import { DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '
|
|
3
|
+
import { type ButtonProps } from '../ui/button.js';
|
|
4
|
+
import { DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '../ui/dialog.js';
|
|
5
5
|
type ShareService = 'x' | 'threads' | 'facebook' | 'linkedin' | 'bluesky';
|
|
6
6
|
export type ShareModalSocialLink = {
|
|
7
7
|
href: string;
|
|
@@ -38,7 +38,7 @@ declare function CopyURLBox({ children, className, copyURL, ...props }: CopyURLB
|
|
|
38
38
|
declare function Footer({ className, ...props }: React.ComponentPropsWithoutRef<typeof DialogFooter>): React.JSX.Element;
|
|
39
39
|
declare const ShareModal: {
|
|
40
40
|
CloseButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
41
|
-
Content: React.ForwardRefExoticComponent<Omit<import("
|
|
41
|
+
Content: React.ForwardRefExoticComponent<Omit<import("../ui/dialog.js").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
42
42
|
CopyButton: typeof CopyButton;
|
|
43
43
|
CopyURLBox: typeof CopyURLBox;
|
|
44
44
|
Description: typeof Description;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { DirtyConfirmDialogController } from '
|
|
1
|
+
import type { DirtyConfirmDialogController } from './dirty-confirm-dialog.js';
|
|
2
2
|
export declare function useDirtyConfirmation(): DirtyConfirmDialogController;
|
|
3
3
|
//# sourceMappingURL=use-dirty-confirmation.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
|
-
import type { ButtonProps } from '
|
|
3
|
+
import type { ButtonProps } from './button.js';
|
|
4
4
|
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
5
5
|
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { badgeVariants } from '
|
|
3
|
+
import { badgeVariants } from './badge-variants.js';
|
|
4
4
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
5
5
|
asChild?: boolean;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { bannerVariants } from '
|
|
3
|
+
import { bannerVariants } from './banner-variants.js';
|
|
4
4
|
interface BannerBaseProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'role'>, VariantProps<typeof bannerVariants> {
|
|
5
5
|
/**
|
|
6
6
|
* Semantic role of the banner
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { buttonVariants } from '
|
|
3
|
+
import { buttonVariants } from './button-variants.js';
|
|
4
4
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
5
5
|
asChild?: boolean;
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DayButton, DayPicker } from 'react-day-picker';
|
|
3
|
-
import { Button } from '
|
|
3
|
+
import { Button } from './button.js';
|
|
4
4
|
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
5
5
|
buttonVariant?: React.ComponentProps<typeof Button>['variant'];
|
|
6
6
|
}): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CodeEditorProps } from '
|
|
2
|
+
import type { CodeEditorProps } from './code-editor-view.js';
|
|
3
3
|
import type { ReactCodeMirrorRef } from '@uiw/react-codemirror';
|
|
4
4
|
export type { CodeEditorProps };
|
|
5
5
|
declare const CodeEditor: React.ForwardRefExoticComponent<CodeEditorProps & React.RefAttributes<ReactCodeMirrorRef>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ControlShape } from '../../providers/shade-context';
|
|
1
|
+
import type { ControlShape } from '../../providers/shade-context.js';
|
|
2
2
|
declare const dropzoneBaseVariants: (props?: ({
|
|
3
3
|
variant?: "button" | "buttonSecondary" | "default" | "filled" | null | undefined;
|
|
4
4
|
admin7Design?: boolean | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Accept, DropEvent, FileRejection } from 'react-dropzone';
|
|
3
3
|
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { dropzoneVariants } from '
|
|
4
|
+
import { dropzoneVariants } from './dropzone-variants.js';
|
|
5
5
|
type DropzoneRenderProps = {
|
|
6
6
|
isDragActive: boolean;
|
|
7
7
|
isDragAccept: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { Label } from '
|
|
2
|
+
import { Label } from './label.js';
|
|
3
3
|
declare function FieldSet({ className, ...props }: React.ComponentProps<'fieldset'>): import("react").JSX.Element;
|
|
4
4
|
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<'legend'> & {
|
|
5
5
|
variant?: 'legend' | 'label';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { type FloatingSidebarMorphStyle } from '
|
|
2
|
+
import { type FloatingSidebarMorphStyle } from './floating-sidebar-metrics.js';
|
|
3
3
|
interface FloatingSidebarProps extends Omit<React.ComponentProps<'div'>, 'children'> {
|
|
4
4
|
/** Docked beside the content, rather than a circle that opens over it. */
|
|
5
5
|
pinned: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { indicatorVariants } from '
|
|
3
|
+
import { indicatorVariants } from './indicator-variants.js';
|
|
4
4
|
export interface IndicatorProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof indicatorVariants> {
|
|
5
5
|
label?: string;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { inputGroupVariants } from '
|
|
3
|
+
import { inputGroupVariants } from './input-group-variants.js';
|
|
4
4
|
export interface InputGroupProps extends React.ComponentProps<'div'>, VariantProps<typeof inputGroupVariants> {
|
|
5
5
|
}
|
|
6
6
|
declare function InputGroup({ className, variant, shape, ...props }: InputGroupProps): React.JSX.Element;
|
|
@@ -8,7 +8,7 @@ declare const inputGroupAddonVariants: (props?: ({
|
|
|
8
8
|
align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
10
|
declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>): React.JSX.Element;
|
|
11
|
-
declare const InputGroupButton: React.ForwardRefExoticComponent<Omit<Omit<import("
|
|
11
|
+
declare const InputGroupButton: React.ForwardRefExoticComponent<Omit<Omit<import("./button.js").ButtonProps & React.RefAttributes<HTMLButtonElement>, "size"> & VariantProps<(props?: ({
|
|
12
12
|
size?: "icon-sm" | "icon-xs" | "sm" | "xs" | null | undefined;
|
|
13
13
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
14
|
declare function InputGroupText({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { FilterOption, ValueSource } from '
|
|
2
|
+
import type { FilterOption, ValueSource } from '../patterns/filters.js';
|
|
3
3
|
export interface MultiSelectComboboxI18n {
|
|
4
4
|
searchPlaceholder: string;
|
|
5
5
|
noResultsFound: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { previewChromeVariants } from '
|
|
3
|
+
import { previewChromeVariants } from './preview-chrome-variants.js';
|
|
4
4
|
export interface PreviewChromeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof previewChromeVariants> {
|
|
5
5
|
}
|
|
6
6
|
declare const PreviewChrome: React.ForwardRefExoticComponent<PreviewChromeProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
3
|
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { selectTriggerVariants } from '
|
|
4
|
+
import { selectTriggerVariants } from './select-variants.js';
|
|
5
5
|
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
6
6
|
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { TooltipContent } from '
|
|
3
|
+
import { TooltipContent } from './tooltip.js';
|
|
4
4
|
declare const SidebarProvider: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
5
5
|
defaultOpen?: boolean;
|
|
6
6
|
open?: boolean;
|
|
@@ -11,7 +11,7 @@ declare const Sidebar: React.ForwardRefExoticComponent<Omit<React.ClassAttribute
|
|
|
11
11
|
variant?: 'sidebar' | 'floating' | 'inset';
|
|
12
12
|
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
13
13
|
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<import("
|
|
14
|
+
declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<import("./button.js").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
15
15
|
declare const SidebarRail: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
16
16
|
declare const SidebarInset: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
17
|
declare const SidebarInput: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
package/types/shade-app.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ControlShape } from './providers/shade-context';
|
|
2
|
+
import type { ControlShape } from './providers/shade-context.js';
|
|
3
3
|
/**
|
|
4
4
|
* The className is used to scope the styles of the app to the app's namespace.
|
|
5
5
|
* Some components in radixUI/ShadCN need to be wrapped in a div with the className
|