raft-ui 0.0.1 → 0.0.4
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/index.d.mts +323 -1
- package/dist/index.mjs +282 -2
- package/dist/use-theme-Y_h1DKll.mjs +34 -0
- package/dist/wip.d.mts +1 -323
- package/dist/wip.mjs +2 -204
- package/package.json +1 -1
- package/src/index.ts +22 -0
- package/src/wip.ts +0 -22
- package/dist/label-DWq4ia5I.mjs +0 -115
package/dist/index.d.mts
CHANGED
|
@@ -9,6 +9,7 @@ import { Menu } from "@base-ui/react/menu";
|
|
|
9
9
|
import { Tooltip as Tooltip$1 } from "@base-ui/react/tooltip";
|
|
10
10
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
11
11
|
import { Input as Input$1 } from "@base-ui/react/input";
|
|
12
|
+
import { Field as Field$1 } from "@base-ui/react/field";
|
|
12
13
|
import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
|
|
13
14
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
14
15
|
import { Radio } from "@base-ui/react/radio";
|
|
@@ -988,6 +989,134 @@ declare function Input({
|
|
|
988
989
|
...props
|
|
989
990
|
}: InputProps): import("react").JSX.Element;
|
|
990
991
|
//#endregion
|
|
992
|
+
//#region src/components/field/field.d.ts
|
|
993
|
+
declare const field: import("tailwind-variants/lite").TVReturnType<{
|
|
994
|
+
theme: {
|
|
995
|
+
brutal: {
|
|
996
|
+
root: string[];
|
|
997
|
+
label: string[];
|
|
998
|
+
description: string[];
|
|
999
|
+
error: string[];
|
|
1000
|
+
};
|
|
1001
|
+
elegant: {
|
|
1002
|
+
label: string[];
|
|
1003
|
+
description: string[];
|
|
1004
|
+
error: string[];
|
|
1005
|
+
};
|
|
1006
|
+
};
|
|
1007
|
+
size: {
|
|
1008
|
+
sm: {
|
|
1009
|
+
label: string;
|
|
1010
|
+
};
|
|
1011
|
+
md: {
|
|
1012
|
+
label: string;
|
|
1013
|
+
};
|
|
1014
|
+
};
|
|
1015
|
+
}, {
|
|
1016
|
+
root: string[];
|
|
1017
|
+
item: string[];
|
|
1018
|
+
label: string[];
|
|
1019
|
+
description: string[];
|
|
1020
|
+
error: string[];
|
|
1021
|
+
}, undefined, {
|
|
1022
|
+
theme: {
|
|
1023
|
+
brutal: {
|
|
1024
|
+
root: string[];
|
|
1025
|
+
label: string[];
|
|
1026
|
+
description: string[];
|
|
1027
|
+
error: string[];
|
|
1028
|
+
};
|
|
1029
|
+
elegant: {
|
|
1030
|
+
label: string[];
|
|
1031
|
+
description: string[];
|
|
1032
|
+
error: string[];
|
|
1033
|
+
};
|
|
1034
|
+
};
|
|
1035
|
+
size: {
|
|
1036
|
+
sm: {
|
|
1037
|
+
label: string;
|
|
1038
|
+
};
|
|
1039
|
+
md: {
|
|
1040
|
+
label: string;
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1043
|
+
}, {
|
|
1044
|
+
root: string[];
|
|
1045
|
+
item: string[];
|
|
1046
|
+
label: string[];
|
|
1047
|
+
description: string[];
|
|
1048
|
+
error: string[];
|
|
1049
|
+
}, import("tailwind-variants/lite").TVReturnType<{
|
|
1050
|
+
theme: {
|
|
1051
|
+
brutal: {
|
|
1052
|
+
root: string[];
|
|
1053
|
+
label: string[];
|
|
1054
|
+
description: string[];
|
|
1055
|
+
error: string[];
|
|
1056
|
+
};
|
|
1057
|
+
elegant: {
|
|
1058
|
+
label: string[];
|
|
1059
|
+
description: string[];
|
|
1060
|
+
error: string[];
|
|
1061
|
+
};
|
|
1062
|
+
};
|
|
1063
|
+
size: {
|
|
1064
|
+
sm: {
|
|
1065
|
+
label: string;
|
|
1066
|
+
};
|
|
1067
|
+
md: {
|
|
1068
|
+
label: string;
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
}, {
|
|
1072
|
+
root: string[];
|
|
1073
|
+
item: string[];
|
|
1074
|
+
label: string[];
|
|
1075
|
+
description: string[];
|
|
1076
|
+
error: string[];
|
|
1077
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
1078
|
+
type FieldProps = StyledProps<Field$1.Root.Props>;
|
|
1079
|
+
declare function Field({
|
|
1080
|
+
className,
|
|
1081
|
+
...props
|
|
1082
|
+
}: FieldProps): import("react").JSX.Element;
|
|
1083
|
+
type FieldItemProps = StyledProps<Field$1.Item.Props>;
|
|
1084
|
+
declare function FieldItem({
|
|
1085
|
+
className,
|
|
1086
|
+
...props
|
|
1087
|
+
}: FieldItemProps): import("react").JSX.Element;
|
|
1088
|
+
type LabelMarker = {
|
|
1089
|
+
required?: boolean;
|
|
1090
|
+
optional?: never;
|
|
1091
|
+
} | {
|
|
1092
|
+
optional?: boolean;
|
|
1093
|
+
required?: never;
|
|
1094
|
+
};
|
|
1095
|
+
type FieldLabelProps = StyledProps<Field$1.Label.Props> & Omit<VariantProps<typeof field>, "theme"> & LabelMarker;
|
|
1096
|
+
declare function FieldLabel({
|
|
1097
|
+
size,
|
|
1098
|
+
required,
|
|
1099
|
+
optional,
|
|
1100
|
+
className,
|
|
1101
|
+
children,
|
|
1102
|
+
...props
|
|
1103
|
+
}: FieldLabelProps): import("react").JSX.Element;
|
|
1104
|
+
type FieldDescriptionProps = StyledProps<Field$1.Description.Props>;
|
|
1105
|
+
declare function FieldDescription({
|
|
1106
|
+
className,
|
|
1107
|
+
...props
|
|
1108
|
+
}: FieldDescriptionProps): import("react").JSX.Element;
|
|
1109
|
+
type FieldErrorProps = StyledProps<Field$1.Error.Props>;
|
|
1110
|
+
declare function FieldError({
|
|
1111
|
+
className,
|
|
1112
|
+
role,
|
|
1113
|
+
...props
|
|
1114
|
+
}: FieldErrorProps): import("react").JSX.Element;
|
|
1115
|
+
type FieldControlProps = Field$1.Control.Props;
|
|
1116
|
+
declare function FieldControl(props: FieldControlProps): import("react").JSX.Element;
|
|
1117
|
+
type FieldValidityProps = Field$1.Validity.Props;
|
|
1118
|
+
declare function FieldValidity(props: FieldValidityProps): import("react").JSX.Element;
|
|
1119
|
+
//#endregion
|
|
991
1120
|
//#region src/components/input-group/input-group.d.ts
|
|
992
1121
|
declare const inputGroup: import("tailwind-variants/lite").TVReturnType<{
|
|
993
1122
|
theme: {
|
|
@@ -1727,6 +1856,199 @@ declare function InlineCode({
|
|
|
1727
1856
|
...props
|
|
1728
1857
|
}: InlineCodeProps): import("react").JSX.Element;
|
|
1729
1858
|
//#endregion
|
|
1859
|
+
//#region src/components/text/text.d.ts
|
|
1860
|
+
declare const heading: import("tailwind-variants/lite").TVReturnType<{
|
|
1861
|
+
level: {
|
|
1862
|
+
1: string[];
|
|
1863
|
+
2: string[];
|
|
1864
|
+
3: string[];
|
|
1865
|
+
4: string[];
|
|
1866
|
+
5: string[];
|
|
1867
|
+
6: string[];
|
|
1868
|
+
};
|
|
1869
|
+
variant: {
|
|
1870
|
+
default: string[];
|
|
1871
|
+
primary: string[];
|
|
1872
|
+
information: string[];
|
|
1873
|
+
muted: string[];
|
|
1874
|
+
accent: string[];
|
|
1875
|
+
success: string[];
|
|
1876
|
+
warning: string[];
|
|
1877
|
+
danger: string[];
|
|
1878
|
+
};
|
|
1879
|
+
}, undefined, string[], {
|
|
1880
|
+
level: {
|
|
1881
|
+
1: string[];
|
|
1882
|
+
2: string[];
|
|
1883
|
+
3: string[];
|
|
1884
|
+
4: string[];
|
|
1885
|
+
5: string[];
|
|
1886
|
+
6: string[];
|
|
1887
|
+
};
|
|
1888
|
+
variant: {
|
|
1889
|
+
default: string[];
|
|
1890
|
+
primary: string[];
|
|
1891
|
+
information: string[];
|
|
1892
|
+
muted: string[];
|
|
1893
|
+
accent: string[];
|
|
1894
|
+
success: string[];
|
|
1895
|
+
warning: string[];
|
|
1896
|
+
danger: string[];
|
|
1897
|
+
};
|
|
1898
|
+
}, undefined, import("tailwind-variants/lite").TVReturnType<{
|
|
1899
|
+
level: {
|
|
1900
|
+
1: string[];
|
|
1901
|
+
2: string[];
|
|
1902
|
+
3: string[];
|
|
1903
|
+
4: string[];
|
|
1904
|
+
5: string[];
|
|
1905
|
+
6: string[];
|
|
1906
|
+
};
|
|
1907
|
+
variant: {
|
|
1908
|
+
default: string[];
|
|
1909
|
+
primary: string[];
|
|
1910
|
+
information: string[];
|
|
1911
|
+
muted: string[];
|
|
1912
|
+
accent: string[];
|
|
1913
|
+
success: string[];
|
|
1914
|
+
warning: string[];
|
|
1915
|
+
danger: string[];
|
|
1916
|
+
};
|
|
1917
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
1918
|
+
declare const sans: import("tailwind-variants/lite").TVReturnType<{
|
|
1919
|
+
size: {
|
|
1920
|
+
large: string[];
|
|
1921
|
+
body: string[];
|
|
1922
|
+
small: string[];
|
|
1923
|
+
caption: string[];
|
|
1924
|
+
};
|
|
1925
|
+
variant: {
|
|
1926
|
+
default: string[];
|
|
1927
|
+
primary: string[];
|
|
1928
|
+
information: string[];
|
|
1929
|
+
muted: string[];
|
|
1930
|
+
accent: string[];
|
|
1931
|
+
success: string[];
|
|
1932
|
+
warning: string[];
|
|
1933
|
+
danger: string[];
|
|
1934
|
+
};
|
|
1935
|
+
}, undefined, string[], {
|
|
1936
|
+
size: {
|
|
1937
|
+
large: string[];
|
|
1938
|
+
body: string[];
|
|
1939
|
+
small: string[];
|
|
1940
|
+
caption: string[];
|
|
1941
|
+
};
|
|
1942
|
+
variant: {
|
|
1943
|
+
default: string[];
|
|
1944
|
+
primary: string[];
|
|
1945
|
+
information: string[];
|
|
1946
|
+
muted: string[];
|
|
1947
|
+
accent: string[];
|
|
1948
|
+
success: string[];
|
|
1949
|
+
warning: string[];
|
|
1950
|
+
danger: string[];
|
|
1951
|
+
};
|
|
1952
|
+
}, undefined, import("tailwind-variants/lite").TVReturnType<{
|
|
1953
|
+
size: {
|
|
1954
|
+
large: string[];
|
|
1955
|
+
body: string[];
|
|
1956
|
+
small: string[];
|
|
1957
|
+
caption: string[];
|
|
1958
|
+
};
|
|
1959
|
+
variant: {
|
|
1960
|
+
default: string[];
|
|
1961
|
+
primary: string[];
|
|
1962
|
+
information: string[];
|
|
1963
|
+
muted: string[];
|
|
1964
|
+
accent: string[];
|
|
1965
|
+
success: string[];
|
|
1966
|
+
warning: string[];
|
|
1967
|
+
danger: string[];
|
|
1968
|
+
};
|
|
1969
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
1970
|
+
declare const mono: import("tailwind-variants/lite").TVReturnType<{
|
|
1971
|
+
size: {
|
|
1972
|
+
code: string[];
|
|
1973
|
+
meta: string[];
|
|
1974
|
+
eyebrow: string[];
|
|
1975
|
+
tabular: string[];
|
|
1976
|
+
};
|
|
1977
|
+
variant: {
|
|
1978
|
+
default: string[];
|
|
1979
|
+
primary: string[];
|
|
1980
|
+
information: string[];
|
|
1981
|
+
muted: string[];
|
|
1982
|
+
accent: string[];
|
|
1983
|
+
success: string[];
|
|
1984
|
+
warning: string[];
|
|
1985
|
+
danger: string[];
|
|
1986
|
+
};
|
|
1987
|
+
}, undefined, string[], {
|
|
1988
|
+
size: {
|
|
1989
|
+
code: string[];
|
|
1990
|
+
meta: string[];
|
|
1991
|
+
eyebrow: string[];
|
|
1992
|
+
tabular: string[];
|
|
1993
|
+
};
|
|
1994
|
+
variant: {
|
|
1995
|
+
default: string[];
|
|
1996
|
+
primary: string[];
|
|
1997
|
+
information: string[];
|
|
1998
|
+
muted: string[];
|
|
1999
|
+
accent: string[];
|
|
2000
|
+
success: string[];
|
|
2001
|
+
warning: string[];
|
|
2002
|
+
danger: string[];
|
|
2003
|
+
};
|
|
2004
|
+
}, undefined, import("tailwind-variants/lite").TVReturnType<{
|
|
2005
|
+
size: {
|
|
2006
|
+
code: string[];
|
|
2007
|
+
meta: string[];
|
|
2008
|
+
eyebrow: string[];
|
|
2009
|
+
tabular: string[];
|
|
2010
|
+
};
|
|
2011
|
+
variant: {
|
|
2012
|
+
default: string[];
|
|
2013
|
+
primary: string[];
|
|
2014
|
+
information: string[];
|
|
2015
|
+
muted: string[];
|
|
2016
|
+
accent: string[];
|
|
2017
|
+
success: string[];
|
|
2018
|
+
warning: string[];
|
|
2019
|
+
danger: string[];
|
|
2020
|
+
};
|
|
2021
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
2022
|
+
type TextHeadingProps = useRender.ComponentProps<"h1"> & VariantProps<typeof heading>;
|
|
2023
|
+
declare function TextHeading({
|
|
2024
|
+
level,
|
|
2025
|
+
variant,
|
|
2026
|
+
className,
|
|
2027
|
+
render,
|
|
2028
|
+
...props
|
|
2029
|
+
}: TextHeadingProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
2030
|
+
type TextSansProps = useRender.ComponentProps<"p"> & VariantProps<typeof sans>;
|
|
2031
|
+
declare function TextSans({
|
|
2032
|
+
size,
|
|
2033
|
+
variant,
|
|
2034
|
+
className,
|
|
2035
|
+
render,
|
|
2036
|
+
...props
|
|
2037
|
+
}: TextSansProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
2038
|
+
type TextMonoProps = useRender.ComponentProps<"p"> & VariantProps<typeof mono>;
|
|
2039
|
+
declare function TextMono({
|
|
2040
|
+
size,
|
|
2041
|
+
variant,
|
|
2042
|
+
className,
|
|
2043
|
+
render,
|
|
2044
|
+
...props
|
|
2045
|
+
}: TextMonoProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
2046
|
+
declare const Text: {
|
|
2047
|
+
Heading: typeof TextHeading;
|
|
2048
|
+
Sans: typeof TextSans;
|
|
2049
|
+
Mono: typeof TextMono;
|
|
2050
|
+
};
|
|
2051
|
+
//#endregion
|
|
1730
2052
|
//#region src/components/status/status.d.ts
|
|
1731
2053
|
declare const status$1: import("tailwind-variants/lite").TVReturnType<{
|
|
1732
2054
|
theme: {
|
|
@@ -2707,4 +3029,4 @@ declare function useThemeFamily(): Theme;
|
|
|
2707
3029
|
/** Read and update the application-level RUI theme selection. */
|
|
2708
3030
|
declare function useTheme(): ThemeState;
|
|
2709
3031
|
//#endregion
|
|
2710
|
-
export { Avatar, AvatarBadge, type AvatarBadgeProps, AvatarFallback, type AvatarFallbackProps, AvatarGroup, AvatarGroupCount, type AvatarGroupCountProps, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, type AvatarSize, Badge, type BadgeProps, Banner, BannerAction, type BannerActionProps, BannerDescription, type BannerDescriptionProps, type BannerProps, type BannerStatus, BannerTitle, type BannerTitleProps, Button, type ButtonProps, Checkbox, type CheckboxProps, Combobox, ComboboxChip, type ComboboxChipProps, ComboboxChipRemove, type ComboboxChipRemoveProps, ComboboxChips, type ComboboxChipsProps, ComboboxClear, type ComboboxClearProps, ComboboxCollection, type ComboboxCollectionProps, ComboboxContent, type ComboboxContentProps, ComboboxControl, type ComboboxControlProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, ComboboxGroupLabel, type ComboboxGroupLabelProps, type ComboboxGroupProps, ComboboxHeader, type ComboboxHeaderProps, ComboboxInput, ComboboxInputGroup, type ComboboxInputGroupProps, type ComboboxInputProps, ComboboxItem, ComboboxItemIndicator, type ComboboxItemIndicatorProps, type ComboboxItemProps, ComboboxLabel, type ComboboxLabelProps, ComboboxList, type ComboboxListProps, ComboboxPopup, type ComboboxPopupProps, ComboboxPortal, type ComboboxPortalProps, type ComboboxProps, ComboboxRow, type ComboboxRowProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, ComboboxTriggerIndicator, type ComboboxTriggerIndicatorProps, type ComboboxTriggerProps, ComboboxValue, type ComboboxValueProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuCheckboxItemIndicator, type ContextMenuCheckboxItemIndicatorProps, type ContextMenuCheckboxItemProps, ContextMenuContent, type ContextMenuContentProps, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, ContextMenuPortal, type ContextMenuPortalProps, type ContextMenuProps, ContextMenuRadioGroup, type ContextMenuRadioGroupProps, ContextMenuRadioItem, ContextMenuRadioItemIndicator, type ContextMenuRadioItemIndicatorProps, type ContextMenuRadioItemProps, ContextMenuSeparator, type ContextMenuSeparatorProps, ContextMenuShortcut, type ContextMenuShortcutProps, ContextMenuSubmenu, type ContextMenuSubmenuProps, ContextMenuSubmenuTrigger, type ContextMenuSubmenuTriggerProps, ContextMenuTrigger, type ContextMenuTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, type DropdownMenuCheckboxItemIndicatorProps, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuItem, DropdownMenuItemCount, type DropdownMenuItemCountProps, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, DropdownMenuRadioItemIndicator, type DropdownMenuRadioItemIndicatorProps, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSubmenu, type DropdownMenuSubmenuProps, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmptyState, EmptyStateActions, type EmptyStateActionsProps, EmptyStateContent, type EmptyStateContentProps, EmptyStateDescription, type EmptyStateDescriptionProps, EmptyStateIcon, type EmptyStateIconProps, type EmptyStateProps, EmptyStateTitle, type EmptyStateTitleProps, InlineCode, type InlineCodeProps, Input, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupAddonTextProps, InputGroupInput, type InputGroupInputProps, type InputGroupProps, type InputProps, Kbd, KbdGroup, type KbdGroupProps, type KbdProps, Label, LabelAsterisk, type LabelAsteriskProps, LabelOptional, type LabelOptionalProps, type LabelProps, LabelSub, type LabelSubProps, NotificationCenter, NotificationCenterActionButton, type NotificationCenterActionButtonProps, NotificationCenterCount, type NotificationCenterCountProps, NotificationCenterEmptyState, type NotificationCenterEmptyStateProps, NotificationCenterHeader, type NotificationCenterHeaderProps, NotificationCenterItem, NotificationCenterItemActions, type NotificationCenterItemActionsProps, NotificationCenterItemBody, type NotificationCenterItemBodyProps, NotificationCenterItemContent, type NotificationCenterItemContentProps, NotificationCenterItemIcon, type NotificationCenterItemIconProps, type NotificationCenterItemProps, NotificationCenterItemRow, type NotificationCenterItemRowProps, NotificationCenterItemTitle, type NotificationCenterItemTitleProps, NotificationCenterList, type NotificationCenterListProps, NotificationCenterPopup, type NotificationCenterPopupProps, type NotificationCenterPortalProps, type NotificationCenterProps, NotificationCenterScroller, type NotificationCenterScrollerProps, NotificationCenterTitle, type NotificationCenterTitleProps, NotificationCenterTrigger, type NotificationCenterTriggerProps, type OrderedTabItem, Popover, PopoverArrow, type PopoverArrowProps, PopoverBackdrop, type PopoverBackdropProps, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, PopoverHeader, type PopoverHeaderProps, PopoverPopup, type PopoverPopupProps, PopoverPortal, type PopoverPortalProps, type PopoverProps, PopoverSeparator, type PopoverSeparatorProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, PopoverViewport, type PopoverViewportProps, RadioGroup, RadioGroupIndicator, type RadioGroupIndicatorProps, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type ResolvedThemeMode, SegmentedControl, SegmentedControlCount, type SegmentedControlCountProps, SegmentedControlItem, type SegmentedControlItemProps, SegmentedControlLabel, type SegmentedControlLabelProps, type SegmentedControlProps, Select, SelectArrow, type SelectArrowProps, SelectContent, type SelectContentProps, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectIcon, type SelectIconProps, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectLabel, type SelectLabelProps, SelectList, type SelectListProps, SelectPopup, type SelectPopupProps, SelectPortal, type SelectPortalProps, type SelectProps, SelectScrollDownArrow, type SelectScrollDownArrowProps, SelectScrollUpArrow, type SelectScrollUpArrowProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SetTheme, type SetThemeOptions, SortableTabsList, type SortableTabsListProps, SortableTabsTab, type SortableTabsTabProps, Spinner, type SpinnerProps, Status, type StatusProps, Tabs, TabsBackground, type TabsBackgroundProps, TabsIndicator, type TabsIndicatorProps, TabsLabel, type TabsLabelProps, TabsList, type TabsListProps, TabsPanel, type TabsPanelProps, type TabsProps, TabsTab, type TabsTabProps, Textarea, TextareaCounter, type TextareaCounterProps, TextareaGroup, type TextareaGroupProps, type TextareaProps, type Theme, type ThemeMode, ThemeProvider, type ThemeProviderProps, type ThemeState, Tooltip, TooltipContent, type TooltipContentProps, TooltipPortal, type TooltipPortalProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps, buttonVariants, cn, useOrderedTabs, useTheme, useThemeFamily };
|
|
3032
|
+
export { Avatar, AvatarBadge, type AvatarBadgeProps, AvatarFallback, type AvatarFallbackProps, AvatarGroup, AvatarGroupCount, type AvatarGroupCountProps, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, type AvatarSize, Badge, type BadgeProps, Banner, BannerAction, type BannerActionProps, BannerDescription, type BannerDescriptionProps, type BannerProps, type BannerStatus, BannerTitle, type BannerTitleProps, Button, type ButtonProps, Checkbox, type CheckboxProps, Combobox, ComboboxChip, type ComboboxChipProps, ComboboxChipRemove, type ComboboxChipRemoveProps, ComboboxChips, type ComboboxChipsProps, ComboboxClear, type ComboboxClearProps, ComboboxCollection, type ComboboxCollectionProps, ComboboxContent, type ComboboxContentProps, ComboboxControl, type ComboboxControlProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, ComboboxGroupLabel, type ComboboxGroupLabelProps, type ComboboxGroupProps, ComboboxHeader, type ComboboxHeaderProps, ComboboxInput, ComboboxInputGroup, type ComboboxInputGroupProps, type ComboboxInputProps, ComboboxItem, ComboboxItemIndicator, type ComboboxItemIndicatorProps, type ComboboxItemProps, ComboboxLabel, type ComboboxLabelProps, ComboboxList, type ComboboxListProps, ComboboxPopup, type ComboboxPopupProps, ComboboxPortal, type ComboboxPortalProps, type ComboboxProps, ComboboxRow, type ComboboxRowProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, ComboboxTriggerIndicator, type ComboboxTriggerIndicatorProps, type ComboboxTriggerProps, ComboboxValue, type ComboboxValueProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuCheckboxItemIndicator, type ContextMenuCheckboxItemIndicatorProps, type ContextMenuCheckboxItemProps, ContextMenuContent, type ContextMenuContentProps, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, ContextMenuPortal, type ContextMenuPortalProps, type ContextMenuProps, ContextMenuRadioGroup, type ContextMenuRadioGroupProps, ContextMenuRadioItem, ContextMenuRadioItemIndicator, type ContextMenuRadioItemIndicatorProps, type ContextMenuRadioItemProps, ContextMenuSeparator, type ContextMenuSeparatorProps, ContextMenuShortcut, type ContextMenuShortcutProps, ContextMenuSubmenu, type ContextMenuSubmenuProps, ContextMenuSubmenuTrigger, type ContextMenuSubmenuTriggerProps, ContextMenuTrigger, type ContextMenuTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, type DropdownMenuCheckboxItemIndicatorProps, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuItem, DropdownMenuItemCount, type DropdownMenuItemCountProps, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, DropdownMenuRadioItemIndicator, type DropdownMenuRadioItemIndicatorProps, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSubmenu, type DropdownMenuSubmenuProps, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmptyState, EmptyStateActions, type EmptyStateActionsProps, EmptyStateContent, type EmptyStateContentProps, EmptyStateDescription, type EmptyStateDescriptionProps, EmptyStateIcon, type EmptyStateIconProps, type EmptyStateProps, EmptyStateTitle, type EmptyStateTitleProps, Field, FieldControl, type FieldControlProps, FieldDescription, type FieldDescriptionProps, FieldError, type FieldErrorProps, FieldItem, type FieldItemProps, FieldLabel, type FieldLabelProps, type FieldProps, FieldValidity, type FieldValidityProps, InlineCode, type InlineCodeProps, Input, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupAddonTextProps, InputGroupInput, type InputGroupInputProps, type InputGroupProps, type InputProps, Kbd, KbdGroup, type KbdGroupProps, type KbdProps, Label, LabelAsterisk, type LabelAsteriskProps, LabelOptional, type LabelOptionalProps, type LabelProps, LabelSub, type LabelSubProps, NotificationCenter, NotificationCenterActionButton, type NotificationCenterActionButtonProps, NotificationCenterCount, type NotificationCenterCountProps, NotificationCenterEmptyState, type NotificationCenterEmptyStateProps, NotificationCenterHeader, type NotificationCenterHeaderProps, NotificationCenterItem, NotificationCenterItemActions, type NotificationCenterItemActionsProps, NotificationCenterItemBody, type NotificationCenterItemBodyProps, NotificationCenterItemContent, type NotificationCenterItemContentProps, NotificationCenterItemIcon, type NotificationCenterItemIconProps, type NotificationCenterItemProps, NotificationCenterItemRow, type NotificationCenterItemRowProps, NotificationCenterItemTitle, type NotificationCenterItemTitleProps, NotificationCenterList, type NotificationCenterListProps, NotificationCenterPopup, type NotificationCenterPopupProps, type NotificationCenterPortalProps, type NotificationCenterProps, NotificationCenterScroller, type NotificationCenterScrollerProps, NotificationCenterTitle, type NotificationCenterTitleProps, NotificationCenterTrigger, type NotificationCenterTriggerProps, type OrderedTabItem, Popover, PopoverArrow, type PopoverArrowProps, PopoverBackdrop, type PopoverBackdropProps, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, PopoverHeader, type PopoverHeaderProps, PopoverPopup, type PopoverPopupProps, PopoverPortal, type PopoverPortalProps, type PopoverProps, PopoverSeparator, type PopoverSeparatorProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, PopoverViewport, type PopoverViewportProps, RadioGroup, RadioGroupIndicator, type RadioGroupIndicatorProps, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type ResolvedThemeMode, SegmentedControl, SegmentedControlCount, type SegmentedControlCountProps, SegmentedControlItem, type SegmentedControlItemProps, SegmentedControlLabel, type SegmentedControlLabelProps, type SegmentedControlProps, Select, SelectArrow, type SelectArrowProps, SelectContent, type SelectContentProps, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectIcon, type SelectIconProps, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectLabel, type SelectLabelProps, SelectList, type SelectListProps, SelectPopup, type SelectPopupProps, SelectPortal, type SelectPortalProps, type SelectProps, SelectScrollDownArrow, type SelectScrollDownArrowProps, SelectScrollUpArrow, type SelectScrollUpArrowProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SetTheme, type SetThemeOptions, SortableTabsList, type SortableTabsListProps, SortableTabsTab, type SortableTabsTabProps, Spinner, type SpinnerProps, Status, type StatusProps, Tabs, TabsBackground, type TabsBackgroundProps, TabsIndicator, type TabsIndicatorProps, TabsLabel, type TabsLabelProps, TabsList, type TabsListProps, TabsPanel, type TabsPanelProps, type TabsProps, TabsTab, type TabsTabProps, Text, TextHeading, type TextHeadingProps, TextMono, type TextMonoProps, TextSans, type TextSansProps, Textarea, TextareaCounter, type TextareaCounterProps, TextareaGroup, type TextareaGroupProps, type TextareaProps, type Theme, type ThemeMode, ThemeProvider, type ThemeProviderProps, type ThemeState, Tooltip, TooltipContent, type TooltipContentProps, TooltipPortal, type TooltipPortalProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps, buttonVariants, cn, useOrderedTabs, useTheme, useThemeFamily };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as tv, i as ThemeStateContext, n as useThemeFamily, r as ThemeContext, t as useTheme } from "./use-theme-Y_h1DKll.mjs";
|
|
2
2
|
import { cn } from "./cn.mjs";
|
|
3
3
|
import { Button as Button$1 } from "@base-ui/react/button";
|
|
4
4
|
import { createContext, use, useCallback, useEffect, useId, useMemo, useState, useSyncExternalStore } from "react";
|
|
@@ -12,6 +12,7 @@ import { Menu } from "@base-ui/react/menu";
|
|
|
12
12
|
import { Tooltip as Tooltip$1 } from "@base-ui/react/tooltip";
|
|
13
13
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
14
14
|
import { Input as Input$1 } from "@base-ui/react/input";
|
|
15
|
+
import { Field as Field$1 } from "@base-ui/react/field";
|
|
15
16
|
import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
|
|
16
17
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
17
18
|
import { Radio } from "@base-ui/react/radio";
|
|
@@ -2166,6 +2167,84 @@ function PopoverBackdrop({ className, ...props }) {
|
|
|
2166
2167
|
});
|
|
2167
2168
|
}
|
|
2168
2169
|
//#endregion
|
|
2170
|
+
//#region src/components/label/label.tsx
|
|
2171
|
+
const label = tv({
|
|
2172
|
+
slots: {
|
|
2173
|
+
root: [
|
|
2174
|
+
"group/label inline-flex w-fit items-center gap-1",
|
|
2175
|
+
"cursor-pointer select-none",
|
|
2176
|
+
"text-sm leading-none",
|
|
2177
|
+
"aria-disabled:cursor-not-allowed aria-disabled:text-foreground-disabled"
|
|
2178
|
+
],
|
|
2179
|
+
asterisk: ["text-accent-400", "group-aria-disabled/label:text-foreground-disabled"],
|
|
2180
|
+
sub: ["font-normal normal-case", "group-aria-disabled/label:text-foreground-disabled"]
|
|
2181
|
+
},
|
|
2182
|
+
variants: {
|
|
2183
|
+
theme: {
|
|
2184
|
+
brutal: {
|
|
2185
|
+
root: "font-bold text-foreground-strong",
|
|
2186
|
+
sub: "font-bold tracking-wide text-black/40"
|
|
2187
|
+
},
|
|
2188
|
+
elegant: {
|
|
2189
|
+
root: "font-medium text-foreground",
|
|
2190
|
+
sub: "text-foreground/40"
|
|
2191
|
+
}
|
|
2192
|
+
},
|
|
2193
|
+
size: {
|
|
2194
|
+
sm: { root: "text-xs" },
|
|
2195
|
+
md: { root: "text-sm" }
|
|
2196
|
+
}
|
|
2197
|
+
},
|
|
2198
|
+
defaultVariants: { size: "md" }
|
|
2199
|
+
});
|
|
2200
|
+
function LabelRoot({ size, disabled, className, render, ...props }) {
|
|
2201
|
+
const { root } = label({
|
|
2202
|
+
theme: useThemeFamily(),
|
|
2203
|
+
size
|
|
2204
|
+
});
|
|
2205
|
+
return useRender({
|
|
2206
|
+
defaultTagName: "label",
|
|
2207
|
+
render,
|
|
2208
|
+
props: mergeProps({
|
|
2209
|
+
"aria-disabled": disabled ? true : void 0,
|
|
2210
|
+
className: root({ className })
|
|
2211
|
+
}, props),
|
|
2212
|
+
state: {
|
|
2213
|
+
slot: "label",
|
|
2214
|
+
disabled: disabled ?? false
|
|
2215
|
+
}
|
|
2216
|
+
});
|
|
2217
|
+
}
|
|
2218
|
+
function LabelAsterisk({ className, children = "*", ...props }) {
|
|
2219
|
+
const { asterisk } = label({ theme: useThemeFamily() });
|
|
2220
|
+
return /* @__PURE__ */ jsx("span", {
|
|
2221
|
+
"data-slot": "label-asterisk",
|
|
2222
|
+
className: asterisk({ className }),
|
|
2223
|
+
...props,
|
|
2224
|
+
children
|
|
2225
|
+
});
|
|
2226
|
+
}
|
|
2227
|
+
function LabelSub({ className, ...props }) {
|
|
2228
|
+
const { sub } = label({ theme: useThemeFamily() });
|
|
2229
|
+
return /* @__PURE__ */ jsx("span", {
|
|
2230
|
+
"data-slot": "label-sub",
|
|
2231
|
+
className: sub({ className }),
|
|
2232
|
+
...props
|
|
2233
|
+
});
|
|
2234
|
+
}
|
|
2235
|
+
function LabelOptional({ children = "(optional)", ...props }) {
|
|
2236
|
+
return /* @__PURE__ */ jsx(LabelSub, {
|
|
2237
|
+
"data-slot": "label-optional",
|
|
2238
|
+
...props,
|
|
2239
|
+
children
|
|
2240
|
+
});
|
|
2241
|
+
}
|
|
2242
|
+
const Label = Object.assign(LabelRoot, {
|
|
2243
|
+
Asterisk: LabelAsterisk,
|
|
2244
|
+
Optional: LabelOptional,
|
|
2245
|
+
Sub: LabelSub
|
|
2246
|
+
});
|
|
2247
|
+
//#endregion
|
|
2169
2248
|
//#region src/components/input/input.tsx
|
|
2170
2249
|
const input = tv({
|
|
2171
2250
|
slots: { root: ["w-full px-3 py-2 font-heading outline-none"] },
|
|
@@ -2209,6 +2288,100 @@ function Input({ suppressPasswordManager, className, ...props }) {
|
|
|
2209
2288
|
});
|
|
2210
2289
|
}
|
|
2211
2290
|
//#endregion
|
|
2291
|
+
//#region src/components/field/field.tsx
|
|
2292
|
+
const field = tv({
|
|
2293
|
+
slots: {
|
|
2294
|
+
root: ["group/field flex flex-col gap-1.5"],
|
|
2295
|
+
item: ["group/field-item flex items-start gap-2", "[&>[data-slot=checkbox]]:mt-px"],
|
|
2296
|
+
label: ["block leading-none", "group-data-[disabled]/field:text-foreground-disabled"],
|
|
2297
|
+
description: ["text-xs leading-5", "group-data-[disabled]/field:text-foreground-disabled"],
|
|
2298
|
+
error: ["text-xs leading-5", "group-data-[disabled]/field:text-foreground-disabled"]
|
|
2299
|
+
},
|
|
2300
|
+
variants: {
|
|
2301
|
+
theme: {
|
|
2302
|
+
brutal: {
|
|
2303
|
+
root: ["gap-1"],
|
|
2304
|
+
label: ["font-bold text-foreground-strong"],
|
|
2305
|
+
description: ["text-foreground/50"],
|
|
2306
|
+
error: ["text-danger-base"]
|
|
2307
|
+
},
|
|
2308
|
+
elegant: {
|
|
2309
|
+
label: ["font-medium text-foreground"],
|
|
2310
|
+
description: ["text-[13px] text-[oklch(0.48_0_0)] dark:text-[oklch(0.76_0_0)]", "group-data-[disabled]/field:text-foreground-disabled"],
|
|
2311
|
+
error: ["text-[13px] text-danger-base"]
|
|
2312
|
+
}
|
|
2313
|
+
},
|
|
2314
|
+
size: {
|
|
2315
|
+
sm: { label: "text-xs" },
|
|
2316
|
+
md: { label: "text-sm" }
|
|
2317
|
+
}
|
|
2318
|
+
},
|
|
2319
|
+
compoundVariants: [{
|
|
2320
|
+
theme: "brutal",
|
|
2321
|
+
size: "sm",
|
|
2322
|
+
class: { label: "text-foreground/60" }
|
|
2323
|
+
}],
|
|
2324
|
+
defaultVariants: { size: "md" }
|
|
2325
|
+
});
|
|
2326
|
+
function Field({ className, ...props }) {
|
|
2327
|
+
const { root } = field({ theme: useThemeFamily() });
|
|
2328
|
+
return /* @__PURE__ */ jsx(Field$1.Root, {
|
|
2329
|
+
"data-slot": "field",
|
|
2330
|
+
className: root({ className }),
|
|
2331
|
+
...props
|
|
2332
|
+
});
|
|
2333
|
+
}
|
|
2334
|
+
function FieldItem({ className, ...props }) {
|
|
2335
|
+
const { item } = field({ theme: useThemeFamily() });
|
|
2336
|
+
return /* @__PURE__ */ jsx(Field$1.Item, {
|
|
2337
|
+
"data-slot": "field-item",
|
|
2338
|
+
className: item({ className }),
|
|
2339
|
+
...props
|
|
2340
|
+
});
|
|
2341
|
+
}
|
|
2342
|
+
function FieldLabel({ size, required, optional, className, children, ...props }) {
|
|
2343
|
+
const { label } = field({
|
|
2344
|
+
theme: useThemeFamily(),
|
|
2345
|
+
size
|
|
2346
|
+
});
|
|
2347
|
+
return /* @__PURE__ */ jsxs(Field$1.Label, {
|
|
2348
|
+
"data-slot": "field-label",
|
|
2349
|
+
className: label({ className }),
|
|
2350
|
+
...props,
|
|
2351
|
+
children: [
|
|
2352
|
+
children,
|
|
2353
|
+
required ? /* @__PURE__ */ jsx(LabelAsterisk, { className: "ml-1" }) : null,
|
|
2354
|
+
optional ? /* @__PURE__ */ jsx(LabelOptional, { className: "ml-1" }) : null
|
|
2355
|
+
]
|
|
2356
|
+
});
|
|
2357
|
+
}
|
|
2358
|
+
function FieldDescription({ className, ...props }) {
|
|
2359
|
+
const { description } = field({ theme: useThemeFamily() });
|
|
2360
|
+
return /* @__PURE__ */ jsx(Field$1.Description, {
|
|
2361
|
+
"data-slot": "field-description",
|
|
2362
|
+
className: description({ className }),
|
|
2363
|
+
...props
|
|
2364
|
+
});
|
|
2365
|
+
}
|
|
2366
|
+
function FieldError({ className, role = "alert", ...props }) {
|
|
2367
|
+
const { error } = field({ theme: useThemeFamily() });
|
|
2368
|
+
return /* @__PURE__ */ jsx(Field$1.Error, {
|
|
2369
|
+
"data-slot": "field-error",
|
|
2370
|
+
role,
|
|
2371
|
+
className: error({ className }),
|
|
2372
|
+
...props
|
|
2373
|
+
});
|
|
2374
|
+
}
|
|
2375
|
+
function FieldControl(props) {
|
|
2376
|
+
return /* @__PURE__ */ jsx(Field$1.Control, {
|
|
2377
|
+
"data-slot": "field-control",
|
|
2378
|
+
...props
|
|
2379
|
+
});
|
|
2380
|
+
}
|
|
2381
|
+
function FieldValidity(props) {
|
|
2382
|
+
return /* @__PURE__ */ jsx(Field$1.Validity, { ...props });
|
|
2383
|
+
}
|
|
2384
|
+
//#endregion
|
|
2212
2385
|
//#region src/components/input-group/input-group.tsx
|
|
2213
2386
|
const inputGroup = tv({
|
|
2214
2387
|
slots: {
|
|
@@ -3658,6 +3831,113 @@ function InlineCode({ className, ...props }) {
|
|
|
3658
3831
|
});
|
|
3659
3832
|
}
|
|
3660
3833
|
//#endregion
|
|
3834
|
+
//#region src/components/text/text.tsx
|
|
3835
|
+
const textColorVariants = {
|
|
3836
|
+
default: ["text-foreground-strong"],
|
|
3837
|
+
primary: ["text-primary-700"],
|
|
3838
|
+
information: ["text-info-dark"],
|
|
3839
|
+
muted: ["text-foreground-muted"],
|
|
3840
|
+
accent: ["text-accent-700"],
|
|
3841
|
+
success: ["text-success-base"],
|
|
3842
|
+
warning: ["text-warning-base"],
|
|
3843
|
+
danger: ["text-danger-base"]
|
|
3844
|
+
};
|
|
3845
|
+
const heading = tv({
|
|
3846
|
+
base: ["m-0 font-heading font-medium text-foreground-strong"],
|
|
3847
|
+
variants: {
|
|
3848
|
+
level: {
|
|
3849
|
+
1: ["text-[3.5rem] tracking-[-0.01em] leading-[64px]"],
|
|
3850
|
+
2: ["text-[3rem] tracking-[-0.01em] leading-[56px]"],
|
|
3851
|
+
3: ["text-[2.5rem] tracking-[-0.01em] leading-[48px]"],
|
|
3852
|
+
4: ["text-[2rem] tracking-[-0.005em] leading-[40px]"],
|
|
3853
|
+
5: ["text-[1.5rem] leading-8"],
|
|
3854
|
+
6: ["text-[1.25rem] leading-7"]
|
|
3855
|
+
},
|
|
3856
|
+
variant: textColorVariants
|
|
3857
|
+
},
|
|
3858
|
+
defaultVariants: { level: 1 }
|
|
3859
|
+
});
|
|
3860
|
+
const sans = tv({
|
|
3861
|
+
base: ["m-0 font-sans font-normal"],
|
|
3862
|
+
variants: {
|
|
3863
|
+
size: {
|
|
3864
|
+
large: ["text-lg leading-7 text-foreground"],
|
|
3865
|
+
body: ["text-base leading-6 text-foreground"],
|
|
3866
|
+
small: ["text-sm leading-5 text-foreground-muted"],
|
|
3867
|
+
caption: ["text-xs leading-4 text-foreground-muted"]
|
|
3868
|
+
},
|
|
3869
|
+
variant: textColorVariants
|
|
3870
|
+
},
|
|
3871
|
+
defaultVariants: { size: "body" }
|
|
3872
|
+
});
|
|
3873
|
+
const mono = tv({
|
|
3874
|
+
base: ["m-0 font-mono font-normal"],
|
|
3875
|
+
variants: {
|
|
3876
|
+
size: {
|
|
3877
|
+
code: ["text-sm leading-5 text-foreground"],
|
|
3878
|
+
meta: ["text-xs leading-4 text-foreground-muted"],
|
|
3879
|
+
eyebrow: ["text-[10px] font-medium uppercase tracking-wide leading-none", "text-foreground-placeholder"],
|
|
3880
|
+
tabular: ["text-sm tabular-nums leading-5 text-foreground"]
|
|
3881
|
+
},
|
|
3882
|
+
variant: textColorVariants
|
|
3883
|
+
},
|
|
3884
|
+
defaultVariants: { size: "code" }
|
|
3885
|
+
});
|
|
3886
|
+
function TextHeading({ level = 1, variant, className, render, ...props }) {
|
|
3887
|
+
const defaultProps = { className: heading({
|
|
3888
|
+
level,
|
|
3889
|
+
variant,
|
|
3890
|
+
className
|
|
3891
|
+
}) };
|
|
3892
|
+
return useRender({
|
|
3893
|
+
defaultTagName: `h${level}`,
|
|
3894
|
+
render,
|
|
3895
|
+
props: mergeProps(defaultProps, props),
|
|
3896
|
+
state: {
|
|
3897
|
+
slot: "text-heading",
|
|
3898
|
+
level,
|
|
3899
|
+
variant
|
|
3900
|
+
}
|
|
3901
|
+
});
|
|
3902
|
+
}
|
|
3903
|
+
function TextSans({ size = "body", variant, className, render, ...props }) {
|
|
3904
|
+
return useRender({
|
|
3905
|
+
defaultTagName: "p",
|
|
3906
|
+
render,
|
|
3907
|
+
props: mergeProps({ className: sans({
|
|
3908
|
+
size,
|
|
3909
|
+
variant,
|
|
3910
|
+
className
|
|
3911
|
+
}) }, props),
|
|
3912
|
+
state: {
|
|
3913
|
+
slot: "text-sans",
|
|
3914
|
+
size,
|
|
3915
|
+
variant
|
|
3916
|
+
}
|
|
3917
|
+
});
|
|
3918
|
+
}
|
|
3919
|
+
function TextMono({ size = "code", variant, className, render, ...props }) {
|
|
3920
|
+
return useRender({
|
|
3921
|
+
defaultTagName: "p",
|
|
3922
|
+
render,
|
|
3923
|
+
props: mergeProps({ className: mono({
|
|
3924
|
+
size,
|
|
3925
|
+
variant,
|
|
3926
|
+
className
|
|
3927
|
+
}) }, props),
|
|
3928
|
+
state: {
|
|
3929
|
+
slot: "text-mono",
|
|
3930
|
+
size,
|
|
3931
|
+
variant
|
|
3932
|
+
}
|
|
3933
|
+
});
|
|
3934
|
+
}
|
|
3935
|
+
const Text = {
|
|
3936
|
+
Heading: TextHeading,
|
|
3937
|
+
Sans: TextSans,
|
|
3938
|
+
Mono: TextMono
|
|
3939
|
+
};
|
|
3940
|
+
//#endregion
|
|
3661
3941
|
//#region src/components/status/status.tsx
|
|
3662
3942
|
const STATUS_STYLE = `
|
|
3663
3943
|
@keyframes raft-status-pulse-background {
|
|
@@ -4818,4 +5098,4 @@ function ThemeProvider({ theme, defaultTheme = "brutal", onThemeChange, mode, de
|
|
|
4818
5098
|
});
|
|
4819
5099
|
}
|
|
4820
5100
|
//#endregion
|
|
4821
|
-
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Banner, BannerAction, BannerDescription, BannerTitle, Button, Checkbox, Combobox, ComboboxChip, ComboboxChipRemove, ComboboxChips, ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxControl, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxHeader, ComboboxInput, ComboboxInputGroup, ComboboxItem, ComboboxItemIndicator, ComboboxLabel, ComboboxList, ComboboxPopup, ComboboxPortal, ComboboxRow, ComboboxSeparator, ComboboxTrigger, ComboboxTriggerIndicator, ComboboxValue, ContextMenu, ContextMenuCheckboxItem, ContextMenuCheckboxItemIndicator, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuRadioItemIndicator, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSubmenu, ContextMenuSubmenuTrigger, ContextMenuTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemCount, DropdownMenuLabel, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRadioItemIndicator, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSubmenu, DropdownMenuSubmenuTrigger, DropdownMenuTrigger, EmptyState, EmptyStateActions, EmptyStateContent, EmptyStateDescription, EmptyStateIcon, EmptyStateTitle, InlineCode, Input, InputGroup, InputGroupAddon, InputGroupInput, Kbd, KbdGroup, Label, LabelAsterisk, LabelOptional, LabelSub, NotificationCenter, NotificationCenterActionButton, NotificationCenterCount, NotificationCenterEmptyState, NotificationCenterHeader, NotificationCenterItem, NotificationCenterItemActions, NotificationCenterItemBody, NotificationCenterItemContent, NotificationCenterItemIcon, NotificationCenterItemRow, NotificationCenterItemTitle, NotificationCenterList, NotificationCenterPopup, NotificationCenterScroller, NotificationCenterTitle, NotificationCenterTrigger, Popover, PopoverArrow, PopoverBackdrop, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverPopup, PopoverPortal, PopoverSeparator, PopoverTitle, PopoverTrigger, PopoverViewport, RadioGroup, RadioGroupIndicator, RadioGroupItem, SegmentedControl, SegmentedControlCount, SegmentedControlItem, SegmentedControlLabel, Select, SelectArrow, SelectContent, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, SelectList, SelectPopup, SelectPortal, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue, SortableTabsList, SortableTabsTab, Spinner, Status, Tabs, TabsBackground, TabsIndicator, TabsLabel, TabsList, TabsPanel, TabsTab, Textarea, TextareaCounter, TextareaGroup, ThemeProvider, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, buttonVariants, cn, useOrderedTabs, useTheme, useThemeFamily };
|
|
5101
|
+
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Banner, BannerAction, BannerDescription, BannerTitle, Button, Checkbox, Combobox, ComboboxChip, ComboboxChipRemove, ComboboxChips, ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxControl, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxHeader, ComboboxInput, ComboboxInputGroup, ComboboxItem, ComboboxItemIndicator, ComboboxLabel, ComboboxList, ComboboxPopup, ComboboxPortal, ComboboxRow, ComboboxSeparator, ComboboxTrigger, ComboboxTriggerIndicator, ComboboxValue, ContextMenu, ContextMenuCheckboxItem, ContextMenuCheckboxItemIndicator, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuRadioItemIndicator, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSubmenu, ContextMenuSubmenuTrigger, ContextMenuTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemCount, DropdownMenuLabel, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRadioItemIndicator, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSubmenu, DropdownMenuSubmenuTrigger, DropdownMenuTrigger, EmptyState, EmptyStateActions, EmptyStateContent, EmptyStateDescription, EmptyStateIcon, EmptyStateTitle, Field, FieldControl, FieldDescription, FieldError, FieldItem, FieldLabel, FieldValidity, InlineCode, Input, InputGroup, InputGroupAddon, InputGroupInput, Kbd, KbdGroup, Label, LabelAsterisk, LabelOptional, LabelSub, NotificationCenter, NotificationCenterActionButton, NotificationCenterCount, NotificationCenterEmptyState, NotificationCenterHeader, NotificationCenterItem, NotificationCenterItemActions, NotificationCenterItemBody, NotificationCenterItemContent, NotificationCenterItemIcon, NotificationCenterItemRow, NotificationCenterItemTitle, NotificationCenterList, NotificationCenterPopup, NotificationCenterScroller, NotificationCenterTitle, NotificationCenterTrigger, Popover, PopoverArrow, PopoverBackdrop, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverPopup, PopoverPortal, PopoverSeparator, PopoverTitle, PopoverTrigger, PopoverViewport, RadioGroup, RadioGroupIndicator, RadioGroupItem, SegmentedControl, SegmentedControlCount, SegmentedControlItem, SegmentedControlLabel, Select, SelectArrow, SelectContent, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, SelectList, SelectPopup, SelectPortal, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue, SortableTabsList, SortableTabsTab, Spinner, Status, Tabs, TabsBackground, TabsIndicator, TabsLabel, TabsList, TabsPanel, TabsTab, Text, TextHeading, TextMono, TextSans, Textarea, TextareaCounter, TextareaGroup, ThemeProvider, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, buttonVariants, cn, useOrderedTabs, useTheme, useThemeFamily };
|