@epilot/volt-ui-experimental-griffel 0.2.0 → 0.2.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/AGENTS.md +153 -0
- package/AUTHORING.md +292 -0
- package/README.md +90 -7
- package/dist/components/alert-dialog/alert-dialog.js +18 -18
- package/dist/components/avatar/avatar.js +18 -19
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/badge/badge.js +13 -13
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +6 -6
- package/dist/components/button/button.js +20 -20
- package/dist/components/button-group/button-group.js +6 -6
- package/dist/components/callout/callout.js +6 -6
- package/dist/components/card/card.js +8 -8
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js +4 -4
- package/dist/components/command/command.js +15 -15
- package/dist/components/data-table/data-table-column-header.js +5 -5
- package/dist/components/data-table/data-table-error.js +13 -13
- package/dist/components/data-table/data-table-loading.js +4 -4
- package/dist/components/date-range-picker/date-range-picker.js +8 -8
- package/dist/components/date-time-picker/calendar.js +15 -15
- package/dist/components/date-time-picker/date-time-picker-panel.js +73 -67
- package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker.js +53 -49
- package/dist/components/date-time-picker/date-time-picker.js.map +1 -1
- package/dist/components/date-time-picker/time-picker.js +77 -71
- package/dist/components/date-time-picker/time-picker.js.map +1 -1
- package/dist/components/dialog/dialog.js +21 -21
- package/dist/components/drawer/drawer.js +16 -16
- package/dist/components/dropdown-menu/dropdown-menu.js +13 -13
- package/dist/components/field/field-combobox.js +9 -9
- package/dist/components/field/field.js +22 -22
- package/dist/components/label/label.js +11 -11
- package/dist/components/list/list.js +13 -13
- package/dist/components/option-card/option-card.js +24 -24
- package/dist/components/pill/pill.js +21 -20
- package/dist/components/pill/pill.js.map +1 -1
- package/dist/components/popover/popover.js +4 -4
- package/dist/components/radio/radio.js +8 -8
- package/dist/components/scroll-overflow/scroll-overflow.js +6 -6
- package/dist/components/select/select.js +25 -25
- package/dist/components/skeleton/skeleton.js +17 -17
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/table/table-pagination.js +74 -76
- package/dist/components/table/table-pagination.js.map +1 -1
- package/dist/components/tabs/tabs.js +19 -19
- package/dist/components/toast/toast.js +24 -24
- package/dist/components/toggle/toggle.js +17 -17
- package/dist/components/tooltip/tooltip.js +6 -6
- package/dist/index.d.ts +9200 -65
- package/dist/index.js +276 -273
- package/dist/index.js.map +1 -1
- package/dist/tokens/core.generated.js +1168 -1154
- package/dist/tokens/core.generated.js.map +1 -1
- package/dist/tokens/index.d.ts +1079 -1053
- package/dist/tokens/index.js +1078 -1056
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/install.js +21 -9
- package/dist/tokens/install.js.map +1 -1
- package/dist/tokens/palette.generated.js +1323 -1293
- package/dist/tokens/palette.generated.js.map +1 -1
- package/dist/tokens.json +45 -1
- package/package.json +12 -5
- package/testing/jest-preset.cjs +64 -0
- package/dist/components/accordion/accordion.d.ts +0 -14
- package/dist/components/alert-dialog/alert-dialog.d.ts +0 -36
- package/dist/components/avatar/avatar-group.d.ts +0 -7
- package/dist/components/avatar/avatar.d.ts +0 -17
- package/dist/components/badge/badge.d.ts +0 -41
- package/dist/components/breadcrumb/breadcrumb.d.ts +0 -37
- package/dist/components/button/button.d.ts +0 -18
- package/dist/components/button-group/button-group.d.ts +0 -30
- package/dist/components/callout/callout.d.ts +0 -23
- package/dist/components/card/card.d.ts +0 -9
- package/dist/components/checkbox/checkbox.d.ts +0 -4
- package/dist/components/collapsible-sidebar/collapsible-sidebar.d.ts +0 -33
- package/dist/components/command/command.d.ts +0 -85
- package/dist/components/data-table/data-table-body.d.ts +0 -21
- package/dist/components/data-table/data-table-column-header.d.ts +0 -13
- package/dist/components/data-table/data-table-column-visibility.d.ts +0 -21
- package/dist/components/data-table/data-table-content.d.ts +0 -13
- package/dist/components/data-table/data-table-context.d.ts +0 -66
- package/dist/components/data-table/data-table-error.d.ts +0 -21
- package/dist/components/data-table/data-table-header.d.ts +0 -14
- package/dist/components/data-table/data-table-loading.d.ts +0 -13
- package/dist/components/data-table/data-table-pagination.d.ts +0 -17
- package/dist/components/data-table/data-table-pinning-utils.d.ts +0 -17
- package/dist/components/data-table/data-table-row.d.ts +0 -14
- package/dist/components/data-table/data-table-toolbar.d.ts +0 -7
- package/dist/components/data-table/data-table.d.ts +0 -92
- package/dist/components/data-table/get-selected-row-data.d.ts +0 -18
- package/dist/components/data-table/hooks/index.d.ts +0 -2
- package/dist/components/data-table/hooks/use-data-table-content.d.ts +0 -1
- package/dist/components/data-table/hooks/use-data-table.d.ts +0 -2
- package/dist/components/date-range-picker/date-range-picker-utils.d.ts +0 -2
- package/dist/components/date-range-picker/date-range-picker.d.ts +0 -34
- package/dist/components/date-range-picker/range-calendar.d.ts +0 -15
- package/dist/components/date-time-picker/calendar.d.ts +0 -28
- package/dist/components/date-time-picker/date-time-picker-context.d.ts +0 -39
- package/dist/components/date-time-picker/date-time-picker-input.d.ts +0 -13
- package/dist/components/date-time-picker/date-time-picker-panel.d.ts +0 -15
- package/dist/components/date-time-picker/date-time-picker-popover.d.ts +0 -6
- package/dist/components/date-time-picker/date-time-picker-utils.d.ts +0 -37
- package/dist/components/date-time-picker/date-time-picker.d.ts +0 -47
- package/dist/components/date-time-picker/time-picker.d.ts +0 -12
- package/dist/components/dialog/dialog.d.ts +0 -27
- package/dist/components/drawer/drawer.d.ts +0 -27
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +0 -41
- package/dist/components/field/field-combobox.d.ts +0 -90
- package/dist/components/field/field-select.d.ts +0 -4
- package/dist/components/field/field.d.ts +0 -76
- package/dist/components/label/label.d.ts +0 -21
- package/dist/components/list/list.d.ts +0 -46
- package/dist/components/option-card/option-card.d.ts +0 -39
- package/dist/components/pill/pill.d.ts +0 -27
- package/dist/components/popover/popover.d.ts +0 -14
- package/dist/components/radio/radio.d.ts +0 -6
- package/dist/components/scroll-overflow/scroll-overflow.d.ts +0 -38
- package/dist/components/segmented-control/segmented-control.d.ts +0 -11
- package/dist/components/select/select.d.ts +0 -26
- package/dist/components/separator/separator.d.ts +0 -30
- package/dist/components/skeleton/skeleton.d.ts +0 -24
- package/dist/components/spinner/spinner.d.ts +0 -25
- package/dist/components/switch/switch.d.ts +0 -17
- package/dist/components/table/table-pagination.d.ts +0 -45
- package/dist/components/table/table.d.ts +0 -50
- package/dist/components/tabs/tabs.d.ts +0 -18
- package/dist/components/text/text.d.ts +0 -22
- package/dist/components/toast/toast.d.ts +0 -10
- package/dist/components/toggle/toggle-group.d.ts +0 -10
- package/dist/components/toggle/toggle.d.ts +0 -10
- package/dist/components/tooltip/tooltip.d.ts +0 -15
- package/dist/lib/clear-button.d.ts +0 -5
- package/dist/lib/icons.d.ts +0 -3
- package/dist/lib/pagination.d.ts +0 -71
- package/dist/renderer/contract.d.ts +0 -12
- package/dist/renderer/index.d.ts +0 -10
- package/dist/styles/make-styles.d.ts +0 -37
- package/dist/tokens/core.generated.d.ts +0 -3
- package/dist/tokens/install.d.ts +0 -38
- package/dist/tokens/palette.generated.d.ts +0 -3
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { DateTimePickerLocale } from "./date-time-picker-utils";
|
|
3
|
-
export type CalendarView = "days" | "months" | "years";
|
|
4
|
-
export type CalendarProps = {
|
|
5
|
-
value: Date | null;
|
|
6
|
-
onChange: (date: Date) => void;
|
|
7
|
-
onDateSelect?: () => void;
|
|
8
|
-
disablePast?: boolean;
|
|
9
|
-
locale?: DateTimePickerLocale;
|
|
10
|
-
previousMonthLabel?: string;
|
|
11
|
-
nextMonthLabel?: string;
|
|
12
|
-
showTodayButton?: boolean;
|
|
13
|
-
todayLabel?: string;
|
|
14
|
-
currentTimeInTimezone?: Date;
|
|
15
|
-
showWeekNumbers?: boolean;
|
|
16
|
-
rangeStart?: Date | null;
|
|
17
|
-
rangeEnd?: Date | null;
|
|
18
|
-
hoveredDate?: Date | null;
|
|
19
|
-
onDayHover?: (day: Date | null) => void;
|
|
20
|
-
onDayClick?: (day: Date) => void;
|
|
21
|
-
showPreviousButton?: boolean;
|
|
22
|
-
showNextButton?: boolean;
|
|
23
|
-
controlledViewDate?: Date;
|
|
24
|
-
onViewDateChange?: (date: Date) => void;
|
|
25
|
-
hideOutOfMonthDays?: boolean;
|
|
26
|
-
className?: string;
|
|
27
|
-
};
|
|
28
|
-
export declare const Calendar: React.ForwardRefExoticComponent<CalendarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { DateTimePickerLocale } from "./date-time-picker-utils";
|
|
3
|
-
export type DateTimePickerContextValue = {
|
|
4
|
-
value: Date | null;
|
|
5
|
-
tempValue: Date | null;
|
|
6
|
-
inputValue: string;
|
|
7
|
-
isOpen: boolean;
|
|
8
|
-
format: string;
|
|
9
|
-
locale: DateTimePickerLocale;
|
|
10
|
-
disabled: boolean;
|
|
11
|
-
disablePast: boolean;
|
|
12
|
-
currentTimeInTimezone?: Date;
|
|
13
|
-
onChange: (date: Date | null) => void;
|
|
14
|
-
onBlur?: () => void;
|
|
15
|
-
setIsOpen: (open: boolean) => void;
|
|
16
|
-
setTempValue: (date: Date | null) => void;
|
|
17
|
-
setInputValue: (value: string) => void;
|
|
18
|
-
confirm: () => void;
|
|
19
|
-
cancel: () => void;
|
|
20
|
-
handleInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
21
|
-
handleInputBlur: () => void;
|
|
22
|
-
handleDateChange: (date: Date) => void;
|
|
23
|
-
};
|
|
24
|
-
export declare const useDateTimePickerContext: () => DateTimePickerContextValue;
|
|
25
|
-
export type DateTimePickerRootProps = {
|
|
26
|
-
value: Date | null;
|
|
27
|
-
onChange: (date: Date | null) => void;
|
|
28
|
-
onBlur?: () => void;
|
|
29
|
-
format?: string;
|
|
30
|
-
locale?: DateTimePickerLocale;
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
disablePast?: boolean;
|
|
33
|
-
currentTimeInTimezone?: Date;
|
|
34
|
-
children: React.ReactNode;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* @no-host-element Context provider only, renders no DOM element.
|
|
38
|
-
*/
|
|
39
|
-
export declare const DateTimePickerRoot: ({ value, onChange, onBlur, format: formatStr, locale, disabled, disablePast, currentTimeInTimezone, children, }: DateTimePickerRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export type DateTimePickerInputProps = {
|
|
3
|
-
editable?: boolean;
|
|
4
|
-
iconPosition?: "start" | "end";
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
inputAriaLabel?: string;
|
|
7
|
-
openPickerAriaLabel?: string;
|
|
8
|
-
keyboardIcon?: React.ReactNode;
|
|
9
|
-
testId?: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare const DateTimePickerInput: React.ForwardRefExoticComponent<DateTimePickerInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export type DateTimePickerPanelProps = {
|
|
3
|
-
showTimePicker?: boolean;
|
|
4
|
-
timePickerPosition?: "bottom" | "side";
|
|
5
|
-
okLabel?: string;
|
|
6
|
-
cancelLabel?: string;
|
|
7
|
-
previousMonthLabel?: string;
|
|
8
|
-
nextMonthLabel?: string;
|
|
9
|
-
showTodayButton?: boolean;
|
|
10
|
-
todayLabel?: string;
|
|
11
|
-
showWeekNumbers?: boolean;
|
|
12
|
-
className?: string;
|
|
13
|
-
minuteStep?: number;
|
|
14
|
-
};
|
|
15
|
-
export declare const DateTimePickerPanel: React.ForwardRefExoticComponent<DateTimePickerPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export type DateTimePickerPopoverProps = {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
modal?: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const DateTimePickerPopover: React.ForwardRefExoticComponent<DateTimePickerPopoverProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export type DateTimePickerLocale = "en" | "de" | "fr";
|
|
2
|
-
declare const getLocale: (locale?: DateTimePickerLocale) => import("date-fns").Locale;
|
|
3
|
-
declare const getWeekDays: (locale?: DateTimePickerLocale) => string[];
|
|
4
|
-
declare const getCalendarDays: (date: Date, locale?: DateTimePickerLocale) => import("date-fns").EachDayOfIntervalResult<{
|
|
5
|
-
start: Date;
|
|
6
|
-
end: Date;
|
|
7
|
-
}, undefined>;
|
|
8
|
-
declare const formatMonthYear: (date: Date, locale?: DateTimePickerLocale) => string;
|
|
9
|
-
declare const formatMonth: (date: Date, locale?: DateTimePickerLocale) => string;
|
|
10
|
-
declare const formatDateTimeDisplay: (date: Date, formatStr?: string, locale?: DateTimePickerLocale) => string;
|
|
11
|
-
declare const parseDateTimeInput: (input: string, formatStr?: string, locale?: DateTimePickerLocale) => Date | null;
|
|
12
|
-
declare const isDateDisabled: (date: Date, disablePast?: boolean, now?: Date) => boolean;
|
|
13
|
-
declare const isDayInCurrentMonth: (day: Date, currentMonth: Date) => boolean;
|
|
14
|
-
declare const isDaySelected: (day: Date, selectedDate: Date) => boolean;
|
|
15
|
-
declare const isDayToday: (day: Date) => boolean;
|
|
16
|
-
declare const goToPreviousMonth: (date: Date) => Date;
|
|
17
|
-
declare const goToNextMonth: (date: Date) => Date;
|
|
18
|
-
declare const updateTime: (date: Date, hours: number, minutes: number) => Date;
|
|
19
|
-
declare const getHours: (date: Date) => number;
|
|
20
|
-
declare const getMinutes: (date: Date) => number;
|
|
21
|
-
declare const padNumber: (num: number) => string;
|
|
22
|
-
declare const getMonthNames: (locale?: DateTimePickerLocale) => string[];
|
|
23
|
-
declare const getDecadeStart: (year: number) => number;
|
|
24
|
-
declare const getWeekNumber: (date: Date) => number;
|
|
25
|
-
declare const getWeekLabel: (locale?: DateTimePickerLocale) => string;
|
|
26
|
-
declare const adjustTimeIfPast: (date: Date, disablePast?: boolean, currentTimeInTimezone?: Date) => Date;
|
|
27
|
-
type DateRange = {
|
|
28
|
-
start: Date | null;
|
|
29
|
-
end: Date | null;
|
|
30
|
-
};
|
|
31
|
-
declare const isDateInRange: (day: Date, start: Date, end: Date) => boolean;
|
|
32
|
-
declare const normalizeRange: (start: Date, end: Date) => {
|
|
33
|
-
start: Date;
|
|
34
|
-
end: Date;
|
|
35
|
-
};
|
|
36
|
-
export { getLocale, getWeekDays, getCalendarDays, formatMonthYear, formatMonth, formatDateTimeDisplay, parseDateTimeInput, isDateDisabled, isDayInCurrentMonth, isDaySelected, isDayToday, goToPreviousMonth, goToNextMonth, updateTime, getHours, getMinutes, padNumber, getMonthNames, getDecadeStart, getWeekNumber, getWeekLabel, adjustTimeIfPast, isDateInRange, normalizeRange, };
|
|
37
|
-
export type { DateRange };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { DateTimePickerRoot } from "./date-time-picker-context";
|
|
3
|
-
import type { DateTimePickerRootProps } from "./date-time-picker-context";
|
|
4
|
-
import { DateTimePickerInput } from "./date-time-picker-input";
|
|
5
|
-
import type { DateTimePickerInputProps } from "./date-time-picker-input";
|
|
6
|
-
import { DateTimePickerPopover } from "./date-time-picker-popover";
|
|
7
|
-
import type { DateTimePickerPopoverProps } from "./date-time-picker-popover";
|
|
8
|
-
import { DateTimePickerPanel } from "./date-time-picker-panel";
|
|
9
|
-
import type { DateTimePickerPanelProps } from "./date-time-picker-panel";
|
|
10
|
-
import { Calendar } from "./calendar";
|
|
11
|
-
import type { CalendarProps } from "./calendar";
|
|
12
|
-
import { TimePicker } from "./time-picker";
|
|
13
|
-
import type { TimePickerProps } from "./time-picker";
|
|
14
|
-
import type { DateTimePickerLocale } from "./date-time-picker-utils";
|
|
15
|
-
type DateTimePickerProps = {
|
|
16
|
-
value: Date | null;
|
|
17
|
-
onChange: (date: Date | null) => void;
|
|
18
|
-
onBlur?: () => void;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
disablePast?: boolean;
|
|
21
|
-
label?: string;
|
|
22
|
-
error?: string;
|
|
23
|
-
placeholder?: string;
|
|
24
|
-
format?: string;
|
|
25
|
-
locale?: DateTimePickerLocale;
|
|
26
|
-
className?: string;
|
|
27
|
-
keyboardIcon?: React.ReactNode;
|
|
28
|
-
okLabel?: string;
|
|
29
|
-
cancelLabel?: string;
|
|
30
|
-
inputAriaLabel?: string;
|
|
31
|
-
openPickerAriaLabel?: string;
|
|
32
|
-
previousMonthLabel?: string;
|
|
33
|
-
nextMonthLabel?: string;
|
|
34
|
-
showTodayButton?: boolean;
|
|
35
|
-
todayLabel?: string;
|
|
36
|
-
showWeekNumbers?: boolean;
|
|
37
|
-
testId?: string;
|
|
38
|
-
currentTimeInTimezone?: Date;
|
|
39
|
-
timePickerPosition?: "bottom" | "side";
|
|
40
|
-
showTimePicker?: boolean;
|
|
41
|
-
editable?: boolean;
|
|
42
|
-
iconPosition?: "start" | "end";
|
|
43
|
-
minuteStep?: number;
|
|
44
|
-
};
|
|
45
|
-
declare const DateTimePicker: React.ForwardRefExoticComponent<DateTimePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
-
export { DateTimePicker, DateTimePickerRoot, DateTimePickerInput, DateTimePickerPopover, DateTimePickerPanel, Calendar, TimePicker, };
|
|
47
|
-
export type { DateTimePickerProps, DateTimePickerRootProps, DateTimePickerInputProps, DateTimePickerPopoverProps, DateTimePickerPanelProps, CalendarProps, TimePickerProps, DateTimePickerLocale, };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export type TimePickerProps = {
|
|
3
|
-
value: Date | null;
|
|
4
|
-
onChange: (date: Date) => void;
|
|
5
|
-
onTimeSelect?: () => void;
|
|
6
|
-
disablePast?: boolean;
|
|
7
|
-
currentTimeInTimezone?: Date;
|
|
8
|
-
fillHeight?: boolean;
|
|
9
|
-
minuteStep?: number;
|
|
10
|
-
className?: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
-
export type DialogProps = React.ComponentProps<typeof DialogPrimitive.Root>;
|
|
4
|
-
export declare const Dialog: React.ForwardRefExoticComponent<DialogPrimitive.DialogProps & React.RefAttributes<HTMLElement>>;
|
|
5
|
-
export type DialogTriggerProps = React.ComponentProps<typeof DialogPrimitive.Trigger>;
|
|
6
|
-
export declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
export type DialogPortalProps = React.ComponentProps<typeof DialogPrimitive.Portal>;
|
|
8
|
-
export declare const DialogPortal: React.ForwardRefExoticComponent<DialogPrimitive.DialogPortalProps & React.RefAttributes<HTMLElement>>;
|
|
9
|
-
export type DialogOverlayProps = React.ComponentProps<typeof DialogPrimitive.Overlay>;
|
|
10
|
-
export declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
export type DialogContentSize = "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "full-width";
|
|
12
|
-
export type DialogContentProps = React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
13
|
-
showCloseButton?: boolean;
|
|
14
|
-
size?: DialogContentSize;
|
|
15
|
-
flush?: boolean;
|
|
16
|
-
};
|
|
17
|
-
export declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
export type DialogCloseProps = React.ComponentProps<typeof DialogPrimitive.Close>;
|
|
19
|
-
export declare const DialogClose: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
-
export type DialogHeaderProps = React.ComponentProps<"div">;
|
|
21
|
-
export declare const DialogHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
export type DialogFooterProps = React.ComponentProps<"div">;
|
|
23
|
-
export declare const DialogFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
export type DialogTitleProps = React.ComponentProps<typeof DialogPrimitive.Title>;
|
|
25
|
-
export declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
26
|
-
export type DialogDescriptionProps = React.ComponentProps<typeof DialogPrimitive.Description>;
|
|
27
|
-
export declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
-
export type DrawerProps = React.ComponentProps<typeof DialogPrimitive.Root>;
|
|
4
|
-
export declare const Drawer: React.ForwardRefExoticComponent<DialogPrimitive.DialogProps & React.RefAttributes<HTMLElement>>;
|
|
5
|
-
export type DrawerTriggerProps = React.ComponentProps<typeof DialogPrimitive.Trigger>;
|
|
6
|
-
export declare const DrawerTrigger: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
export type DrawerPortalProps = React.ComponentProps<typeof DialogPrimitive.Portal>;
|
|
8
|
-
export declare const DrawerPortal: React.ForwardRefExoticComponent<DialogPrimitive.DialogPortalProps & React.RefAttributes<HTMLElement>>;
|
|
9
|
-
export type DrawerOverlayProps = React.ComponentProps<typeof DialogPrimitive.Overlay>;
|
|
10
|
-
export declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
export type DrawerSide = "left" | "right" | "top" | "bottom";
|
|
12
|
-
export type DrawerContentProps = React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
13
|
-
showCloseButton?: boolean;
|
|
14
|
-
side?: DrawerSide;
|
|
15
|
-
flush?: boolean;
|
|
16
|
-
};
|
|
17
|
-
export declare const DrawerContent: React.ForwardRefExoticComponent<Omit<DrawerContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
export type DrawerCloseProps = React.ComponentProps<typeof DialogPrimitive.Close>;
|
|
19
|
-
export declare const DrawerClose: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
-
export type DrawerHeaderProps = React.ComponentProps<"div">;
|
|
21
|
-
export declare const DrawerHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
export type DrawerFooterProps = React.ComponentProps<"div">;
|
|
23
|
-
export declare const DrawerFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
export type DrawerTitleProps = React.ComponentProps<typeof DialogPrimitive.Title>;
|
|
25
|
-
export declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
26
|
-
export type DrawerDescriptionProps = React.ComponentProps<typeof DialogPrimitive.Description>;
|
|
27
|
-
export declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
export type DropdownMenuProps = React.ComponentProps<typeof DropdownMenuPrimitive.Root>;
|
|
4
|
-
export declare const DropdownMenu: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuProps & React.RefAttributes<HTMLElement>>;
|
|
5
|
-
export type DropdownMenuTriggerProps = React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>;
|
|
6
|
-
export declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
export type DropdownMenuGroupProps = React.ComponentProps<typeof DropdownMenuPrimitive.Group>;
|
|
8
|
-
export declare const DropdownMenuGroup: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
export type DropdownMenuPortalProps = React.ComponentProps<typeof DropdownMenuPrimitive.Portal>;
|
|
10
|
-
export declare const DropdownMenuPortal: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuPortalProps & React.RefAttributes<HTMLElement>>;
|
|
11
|
-
export type DropdownMenuSubProps = React.ComponentProps<typeof DropdownMenuPrimitive.Sub>;
|
|
12
|
-
export declare const DropdownMenuSub: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuSubProps & React.RefAttributes<HTMLElement>>;
|
|
13
|
-
export type DropdownMenuRadioGroupProps = React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>;
|
|
14
|
-
export declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
export type DropdownMenuSubTriggerProps = React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
16
|
-
inset?: boolean;
|
|
17
|
-
};
|
|
18
|
-
export declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuSubTriggerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
export type DropdownMenuSubContentProps = React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>;
|
|
20
|
-
export declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
-
export type DropdownMenuContentProps = React.ComponentProps<typeof DropdownMenuPrimitive.Content> & {
|
|
22
|
-
container?: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>["container"];
|
|
23
|
-
};
|
|
24
|
-
export declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
export type DropdownMenuItemProps = React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
26
|
-
inset?: boolean;
|
|
27
|
-
destructive?: boolean;
|
|
28
|
-
};
|
|
29
|
-
export declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
-
export type DropdownMenuCheckboxItemProps = React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>;
|
|
31
|
-
export declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
-
export type DropdownMenuRadioItemProps = React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>;
|
|
33
|
-
export declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
-
export type DropdownMenuLabelProps = React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
35
|
-
inset?: boolean;
|
|
36
|
-
};
|
|
37
|
-
export declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
-
export type DropdownMenuSeparatorProps = React.ComponentProps<typeof DropdownMenuPrimitive.Separator>;
|
|
39
|
-
export declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
-
export type DropdownMenuShortcutProps = React.ComponentProps<"span">;
|
|
41
|
-
export declare const DropdownMenuShortcut: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type CommandEmptyProps, type CommandGroupProps, type CommandInputProps, type CommandItemProps, type CommandListProps, type CommandLoadingProps, type CommandSeparatorProps } from "../command/command";
|
|
3
|
-
import { type LabelProps } from "../label/label";
|
|
4
|
-
import { type PopoverContentProps, type PopoverPortalProps, type PopoverProps, type PopoverTriggerProps } from "../popover/popover";
|
|
5
|
-
export type FieldComboboxProps = PopoverProps;
|
|
6
|
-
export declare const FieldCombobox: React.ForwardRefExoticComponent<import("@radix-ui/react-popover").PopoverProps & React.RefAttributes<HTMLElement>>;
|
|
7
|
-
export type FieldComboboxTriggerProps = PopoverTriggerProps;
|
|
8
|
-
export declare const FieldComboboxTrigger: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-popover").PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
-
export type FieldComboboxContentProps = PopoverContentProps & {
|
|
10
|
-
container?: PopoverPortalProps["container"];
|
|
11
|
-
};
|
|
12
|
-
export declare const FieldComboboxContent: React.ForwardRefExoticComponent<Omit<FieldComboboxContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
export type FieldComboboxValueProps = React.ComponentProps<"div">;
|
|
14
|
-
export declare const FieldComboboxValue: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
export type FieldComboboxInputProps = CommandInputProps;
|
|
16
|
-
export declare const FieldComboboxInput: React.ForwardRefExoticComponent<Omit<CommandInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
17
|
-
export type FieldComboboxListProps = CommandListProps;
|
|
18
|
-
export declare const FieldComboboxList: React.ForwardRefExoticComponent<Omit<{
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
21
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
22
|
-
} & {
|
|
23
|
-
asChild?: boolean;
|
|
24
|
-
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
25
|
-
label?: string;
|
|
26
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
-
export type FieldComboboxItemProps = CommandItemProps;
|
|
28
|
-
export declare const FieldComboboxItem: React.ForwardRefExoticComponent<Omit<{
|
|
29
|
-
children?: React.ReactNode;
|
|
30
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
31
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
32
|
-
} & {
|
|
33
|
-
asChild?: boolean;
|
|
34
|
-
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
|
|
35
|
-
disabled?: boolean;
|
|
36
|
-
onSelect?: (value: string) => void;
|
|
37
|
-
value?: string;
|
|
38
|
-
keywords?: string[];
|
|
39
|
-
forceMount?: boolean;
|
|
40
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
-
export type FieldComboboxItemCheckIconProps = React.ComponentProps<"span">;
|
|
42
|
-
export declare const FieldComboboxItemCheckIcon: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
43
|
-
export type FieldComboboxEmptyProps = CommandEmptyProps;
|
|
44
|
-
export declare const FieldComboboxEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
45
|
-
children?: React.ReactNode;
|
|
46
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
47
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
48
|
-
} & {
|
|
49
|
-
asChild?: boolean;
|
|
50
|
-
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
-
export type FieldComboboxGroupProps = CommandGroupProps;
|
|
52
|
-
export declare const FieldComboboxGroup: React.ForwardRefExoticComponent<Omit<{
|
|
53
|
-
children?: React.ReactNode;
|
|
54
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
55
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
56
|
-
} & {
|
|
57
|
-
asChild?: boolean;
|
|
58
|
-
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
59
|
-
heading?: React.ReactNode;
|
|
60
|
-
value?: string;
|
|
61
|
-
forceMount?: boolean;
|
|
62
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
63
|
-
export type FieldComboboxGroupLabelProps = LabelProps;
|
|
64
|
-
export declare const FieldComboboxGroupLabel: React.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
65
|
-
export type FieldComboboxSeparatorProps = CommandSeparatorProps;
|
|
66
|
-
export declare const FieldComboboxSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
67
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
68
|
-
} & {
|
|
69
|
-
asChild?: boolean;
|
|
70
|
-
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
71
|
-
alwaysRender?: boolean;
|
|
72
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
73
|
-
export type FieldComboboxLoadingProps = CommandLoadingProps;
|
|
74
|
-
export declare const FieldComboboxLoading: React.ForwardRefExoticComponent<Omit<{
|
|
75
|
-
children?: React.ReactNode;
|
|
76
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
77
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
78
|
-
} & {
|
|
79
|
-
asChild?: boolean;
|
|
80
|
-
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
81
|
-
progress?: number;
|
|
82
|
-
label?: string;
|
|
83
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
84
|
-
export type FieldComboboxClearProps = React.ComponentProps<"span">;
|
|
85
|
-
export declare const FieldComboboxClear: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
86
|
-
export type FieldComboboxPlaceholderProps = React.ComponentProps<"span">;
|
|
87
|
-
export declare const FieldComboboxPlaceholder: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
88
|
-
export type FieldComboboxClearValueProps = React.ComponentProps<"span">;
|
|
89
|
-
export declare const FieldComboboxClearValue: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
90
|
-
export { FieldCombobox as Combobox, FieldComboboxGroup as ComboboxGroup, FieldComboboxGroupLabel as ComboboxGroupLabel, FieldComboboxValue as ComboboxValue, FieldComboboxTrigger as ComboboxTrigger, FieldComboboxContent as ComboboxContent, FieldComboboxItem as ComboboxItem, FieldComboboxItemCheckIcon as ComboboxItemCheckIcon, FieldComboboxEmpty as ComboboxEmpty, FieldComboboxSeparator as ComboboxSeparator, FieldComboboxInput as ComboboxInput, FieldComboboxList as ComboboxList, FieldComboboxLoading as ComboboxLoading, FieldComboboxClear as ComboboxClear, FieldComboboxClearValue as ComboboxClearValue, FieldComboboxPlaceholder as ComboboxPlaceholder, };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTriggerClear, SelectValue, type SelectContentProps, type SelectGroupProps, type SelectItemProps, type SelectLabelProps, type SelectProps, type SelectScrollDownButtonProps, type SelectScrollUpButtonProps, type SelectSeparatorProps, type SelectTriggerClearProps, type SelectTriggerProps, type SelectValueProps } from "../select/select";
|
|
3
|
-
export declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-select").SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTriggerClear, SelectValue, type SelectContentProps, type SelectGroupProps, type SelectItemProps, type SelectLabelProps, type SelectProps, type SelectScrollDownButtonProps, type SelectScrollUpButtonProps, type SelectSeparatorProps, type SelectTriggerClearProps, type SelectTriggerProps, type SelectValueProps, };
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export type FieldInputRef = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | HTMLButtonElement | null;
|
|
3
|
-
export interface FieldContextValue {
|
|
4
|
-
inputRef: React.RefObject<FieldInputRef>;
|
|
5
|
-
}
|
|
6
|
-
export declare const useFieldContext: () => FieldContextValue;
|
|
7
|
-
/**
|
|
8
|
-
* Field context when there is one, `null` otherwise — for parts that work both inside and outside a
|
|
9
|
-
* Field.
|
|
10
|
-
*
|
|
11
|
-
* `useFieldContext` throws by design, which is right for FieldInput (it is meaningless on its own)
|
|
12
|
-
* and wrong for SelectTrigger and the combobox trigger, which are legitimate standalone components
|
|
13
|
-
* that merely pick up field wiring when nested. Those were calling the throwing hook inside a
|
|
14
|
-
* try/catch, i.e. using an exception for control flow on every render of a perfectly valid tree.
|
|
15
|
-
*/
|
|
16
|
-
export declare const useOptionalFieldContext: () => FieldContextValue | null;
|
|
17
|
-
export type FieldVariant = "default" | "highlight" | "readonly" | "destructive";
|
|
18
|
-
export declare const fieldVariants: ({ variant, }?: {
|
|
19
|
-
variant?: FieldVariant;
|
|
20
|
-
}) => FieldVariant;
|
|
21
|
-
export type FieldProps = Omit<React.ComponentProps<"div">, "className"> & {
|
|
22
|
-
className?: string;
|
|
23
|
-
variant?: FieldVariant;
|
|
24
|
-
};
|
|
25
|
-
export declare const Field: React.ForwardRefExoticComponent<Omit<FieldProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
export type FieldSetProps = React.ComponentProps<"fieldset">;
|
|
27
|
-
export declare const FieldSet: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref"> & React.RefAttributes<HTMLFieldSetElement>>;
|
|
28
|
-
export type FieldGroupProps = React.ComponentProps<"div"> & {
|
|
29
|
-
direction?: "column" | "row";
|
|
30
|
-
};
|
|
31
|
-
export declare const FieldGroup: React.ForwardRefExoticComponent<Omit<FieldGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
-
export type FieldContentProps = React.ComponentProps<"div">;
|
|
33
|
-
export declare const FieldContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
-
export type FieldLabelProps = Omit<React.ComponentProps<"label">, "className"> & {
|
|
35
|
-
className?: string;
|
|
36
|
-
};
|
|
37
|
-
export declare const FieldLabel: React.ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
38
|
-
export type FieldLabelContentProps = React.ComponentProps<"div"> & {
|
|
39
|
-
showOnHover?: boolean;
|
|
40
|
-
};
|
|
41
|
-
export declare const FieldLabelContent: React.ForwardRefExoticComponent<Omit<FieldLabelContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
-
export type FieldDescriptionVariant = "default" | "helper";
|
|
43
|
-
export declare const fieldDescriptionVariants: ({ variant, }?: {
|
|
44
|
-
variant?: FieldDescriptionVariant;
|
|
45
|
-
}) => FieldDescriptionVariant;
|
|
46
|
-
export type FieldDescriptionProps = Omit<React.ComponentProps<"p">, "className"> & {
|
|
47
|
-
className?: string;
|
|
48
|
-
variant?: FieldDescriptionVariant;
|
|
49
|
-
};
|
|
50
|
-
export declare const FieldDescription: React.ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
51
|
-
export type FieldErrorProps = Omit<React.ComponentProps<"div">, "className"> & {
|
|
52
|
-
className?: string;
|
|
53
|
-
errors?: Array<{
|
|
54
|
-
message?: string;
|
|
55
|
-
} | undefined>;
|
|
56
|
-
};
|
|
57
|
-
export declare const FieldError: React.ForwardRefExoticComponent<Omit<FieldErrorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
58
|
-
export type FieldInputProps = Omit<React.ComponentProps<"input">, "className"> & {
|
|
59
|
-
className?: string;
|
|
60
|
-
};
|
|
61
|
-
export declare const FieldInput: React.ForwardRefExoticComponent<Omit<FieldInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
62
|
-
export type FieldInputGroupProps = React.ComponentProps<"div">;
|
|
63
|
-
export declare const FieldInputGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
64
|
-
export type FieldTextareaResize = "none" | "vertical" | "horizontal";
|
|
65
|
-
export type FieldTextareaProps = React.ComponentProps<"textarea"> & {
|
|
66
|
-
resize?: FieldTextareaResize;
|
|
67
|
-
};
|
|
68
|
-
export declare const FieldTextarea: React.ForwardRefExoticComponent<Omit<FieldTextareaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
69
|
-
export type FieldGroupAddonAlign = "start" | "end";
|
|
70
|
-
export declare const inputGroupAddonVariants: ({ align, }?: {
|
|
71
|
-
align?: FieldGroupAddonAlign;
|
|
72
|
-
}) => FieldGroupAddonAlign;
|
|
73
|
-
export type FieldGroupAddonProps = React.ComponentProps<"div"> & {
|
|
74
|
-
align?: FieldGroupAddonAlign;
|
|
75
|
-
};
|
|
76
|
-
export declare const FieldGroupAddon: React.ForwardRefExoticComponent<Omit<FieldGroupAddonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* Label — a native `<label>` element styled with Griffel atoms.
|
|
4
|
-
*
|
|
5
|
-
* Base UI has no Label primitive; v1 wrapped `@radix-ui/react-label`, which only added an
|
|
6
|
-
* `onMouseDown` handler preventing text selection on double click while wrapping a `<label>`
|
|
7
|
-
* to wire `htmlFor`. A native `<label>` natively associates with form controls via `htmlFor` or
|
|
8
|
-
* nesting, so we render a native `<label>` directly with no Base UI or Radix dependency.
|
|
9
|
-
*
|
|
10
|
-
* Variants: `primary` (`gray-a12`) and `destructive` (`error-a12`), both from the core token
|
|
11
|
-
* sheet so no palette install is required.
|
|
12
|
-
*
|
|
13
|
-
* Sizes: `sm` (`text-xs`), `base` (`text-sm`), and `lg` (`text-base`).
|
|
14
|
-
*/
|
|
15
|
-
export type LabelVariant = "primary" | "destructive";
|
|
16
|
-
export type LabelSize = "sm" | "base" | "lg";
|
|
17
|
-
export type LabelProps = React.ComponentProps<"label"> & {
|
|
18
|
-
variant?: LabelVariant;
|
|
19
|
-
size?: LabelSize;
|
|
20
|
-
};
|
|
21
|
-
export declare const Label: React.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export type ListDensity = "compact" | "relaxed";
|
|
3
|
-
export type ListItemStatus = "default" | "error" | "warning" | "success";
|
|
4
|
-
export type ListProps = Omit<React.ComponentProps<"ol">, "onReorder"> & {
|
|
5
|
-
/** Row density. Default: "relaxed" */
|
|
6
|
-
density?: ListDensity;
|
|
7
|
-
/** Alternating background on neutral rows. Default: false */
|
|
8
|
-
striped?: boolean;
|
|
9
|
-
/** Show a 1-based position number on each item. Default: false */
|
|
10
|
-
showIndex?: boolean;
|
|
11
|
-
/** Enable drag-and-drop reordering. Each `ListItem` must have a `value`. */
|
|
12
|
-
sortable?: boolean;
|
|
13
|
-
/** Called with the new order of `ListItem` values after a drag. */
|
|
14
|
-
onReorder?: (values: string[]) => void;
|
|
15
|
-
};
|
|
16
|
-
export declare const List: React.ForwardRefExoticComponent<Omit<ListProps, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
17
|
-
export type ListItemActionsProps = React.ComponentProps<"span">;
|
|
18
|
-
export declare const ListItemActions: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
19
|
-
export type ListItemTextProps = React.ComponentProps<"span">;
|
|
20
|
-
export declare const ListItemText: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
-
export type ListItemDescriptionProps = React.ComponentProps<"span">;
|
|
22
|
-
export declare const ListItemDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
23
|
-
export type ListItemProps = React.ComponentProps<"li"> & {
|
|
24
|
-
/** Stable id used for drag-and-drop. Required when the `List` is `sortable`. */
|
|
25
|
-
value?: string;
|
|
26
|
-
/** System status. Tints the row and shows a trailing status icon. */
|
|
27
|
-
status?: ListItemStatus;
|
|
28
|
-
/** Injected by `List` — the 0-based position. */
|
|
29
|
-
index?: number;
|
|
30
|
-
};
|
|
31
|
-
export declare const ListItem: React.ForwardRefExoticComponent<Omit<ListItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
32
|
-
export type ListGroupProps = Omit<React.ComponentProps<"li">, "onChange"> & {
|
|
33
|
-
/** Controlled open state of the collapsible group. */
|
|
34
|
-
open?: boolean;
|
|
35
|
-
/** Initial open state when uncontrolled. Default: false */
|
|
36
|
-
defaultOpen?: boolean;
|
|
37
|
-
/** Called when the group is expanded or collapsed. */
|
|
38
|
-
onOpenChange?: (open: boolean) => void;
|
|
39
|
-
};
|
|
40
|
-
export declare const ListGroup: React.ForwardRefExoticComponent<Omit<ListGroupProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
41
|
-
export type ListGroupLabelProps = React.ComponentProps<"button"> & {
|
|
42
|
-
asListItem?: boolean;
|
|
43
|
-
};
|
|
44
|
-
export declare const ListGroupLabel: React.ForwardRefExoticComponent<Omit<ListGroupLabelProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
45
|
-
export type ListGroupContentProps = React.ComponentProps<"ul">;
|
|
46
|
-
export declare const ListGroupContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
3
|
-
/** The trailing control glyph an {@link OptionCard} shows for its selected state. */
|
|
4
|
-
export type OptionCardControlType = "radio" | "checkbox" | "switch" | "none";
|
|
5
|
-
export type OptionCardLayout = "grid" | "row" | "column";
|
|
6
|
-
export type OptionCardGroupProps = React.ComponentProps<typeof ToggleGroupPrimitive.Root> & {
|
|
7
|
-
layout?: OptionCardLayout;
|
|
8
|
-
};
|
|
9
|
-
export declare const OptionCardGroup: React.ForwardRefExoticComponent<(Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement> & {
|
|
10
|
-
layout?: OptionCardLayout;
|
|
11
|
-
}, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement> & {
|
|
12
|
-
layout?: OptionCardLayout;
|
|
13
|
-
}, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
export type OptionCardControlProps = React.ComponentProps<"span"> & {
|
|
15
|
-
type?: OptionCardControlType;
|
|
16
|
-
};
|
|
17
|
-
export declare const OptionCardControl: React.ForwardRefExoticComponent<Omit<OptionCardControlProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
18
|
-
export type OptionCardMediaVariant = "icon" | "illustration";
|
|
19
|
-
export type OptionCardMediaProps = React.ComponentProps<"span"> & {
|
|
20
|
-
variant?: OptionCardMediaVariant;
|
|
21
|
-
};
|
|
22
|
-
export declare const OptionCardMedia: React.ForwardRefExoticComponent<Omit<OptionCardMediaProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
23
|
-
export type OptionCardTitleProps = React.ComponentProps<"span">;
|
|
24
|
-
export declare const OptionCardTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
25
|
-
export type OptionCardDescriptionProps = React.ComponentProps<"span">;
|
|
26
|
-
export declare const OptionCardDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
27
|
-
export type OptionCardContentProps = React.ComponentProps<"span">;
|
|
28
|
-
export declare const OptionCardContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
29
|
-
export type OptionCardProps = Omit<React.ComponentProps<"button">, "onChange" | "title"> & {
|
|
30
|
-
/** Value of this option. Required inside an {@link OptionCardGroup}. */
|
|
31
|
-
value?: string;
|
|
32
|
-
/** Controlled selected state for a standalone (group-less) card. */
|
|
33
|
-
pressed?: boolean;
|
|
34
|
-
/** Uncontrolled default selected state for a standalone card. */
|
|
35
|
-
defaultPressed?: boolean;
|
|
36
|
-
/** Fired when a standalone card is toggled. */
|
|
37
|
-
onPressedChange?: (pressed: boolean) => void;
|
|
38
|
-
};
|
|
39
|
-
export declare const OptionCard: React.ForwardRefExoticComponent<Omit<OptionCardProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|