@api7/ui-components 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -2
- package/dist/components/alert/alert.d.ts +0 -2
- package/dist/components/alert/alert.js +1 -2
- package/dist/components/avatar/avatar.d.ts +0 -2
- package/dist/components/avatar/avatar.js +1 -2
- package/dist/components/badge/badge.d.ts +0 -2
- package/dist/components/badge/badge.js +1 -2
- package/dist/components/button/button.d.ts +0 -2
- package/dist/components/button/button.js +1 -2
- package/dist/components/calendar/calendar.d.ts +0 -2
- package/dist/components/calendar/calendar.js +1 -2
- package/dist/components/checkbox/checkbox.d.ts +0 -2
- package/dist/components/checkbox/checkbox.js +1 -2
- package/dist/components/combobox/combobox.d.ts +0 -2
- package/dist/components/combobox/combobox.js +1 -2
- package/dist/components/data-table/data-table.d.ts +0 -2
- package/dist/components/data-table/data-table.js +1 -2
- package/dist/components/data-table/filter-header.d.ts +1 -3
- package/dist/components/data-table/filter-header.js +1 -2
- package/dist/components/data-table/sort-header.js +1 -2
- package/dist/components/date-picker/date-picker.d.ts +0 -2
- package/dist/components/date-picker/date-picker.js +1 -2
- package/dist/components/description-list/description-list.d.ts +0 -2
- package/dist/components/description-list/description-list.js +1 -2
- package/dist/components/dialog/dialog.d.ts +0 -2
- package/dist/components/dialog/dialog.js +1 -2
- package/dist/components/drawer/drawer.d.ts +0 -2
- package/dist/components/drawer/drawer.js +1 -2
- package/dist/components/empty/empty.d.ts +0 -2
- package/dist/components/empty/empty.js +1 -2
- package/dist/components/field/field.d.ts +0 -2
- package/dist/components/field/field.js +1 -2
- package/dist/components/field/labeled-field.d.ts +33 -0
- package/dist/components/field/labeled-field.js +67 -0
- package/dist/components/form/choice-fields.d.ts +1 -3
- package/dist/components/form/choice-fields.js +1 -2
- package/dist/components/form/date-fields.d.ts +0 -2
- package/dist/components/form/date-fields.js +1 -2
- package/dist/components/form/errors.d.ts +1 -3
- package/dist/components/form/errors.js +1 -2
- package/dist/components/form/form-context.d.ts +1 -3
- package/dist/components/form/form-context.js +1 -2
- package/dist/components/form/form-item.d.ts +6 -17
- package/dist/components/form/form-item.js +9 -58
- package/dist/components/form/form.d.ts +1 -3
- package/dist/components/form/form.js +1 -2
- package/dist/components/form/lazy-field-components.js +1 -2
- package/dist/components/form/submit-button.d.ts +1 -3
- package/dist/components/form/submit-button.js +1 -2
- package/dist/components/form/text-field.d.ts +1 -3
- package/dist/components/form/text-field.js +1 -2
- package/dist/components/form/toggle-fields.d.ts +1 -3
- package/dist/components/form/toggle-fields.js +30 -46
- package/dist/components/input/input.d.ts +0 -2
- package/dist/components/input/input.js +1 -2
- package/dist/components/input-group/input-group.d.ts +0 -2
- package/dist/components/input-group/input-group.js +1 -2
- package/dist/components/menu/menu.d.ts +14 -4
- package/dist/components/menu/menu.js +34 -24
- package/dist/components/number-field/number-field.d.ts +0 -2
- package/dist/components/number-field/number-field.js +1 -2
- package/dist/components/pagination/pagination.d.ts +1 -3
- package/dist/components/pagination/pagination.js +1 -2
- package/dist/components/popover/popover.d.ts +3 -3
- package/dist/components/popover/popover.js +9 -3
- package/dist/components/progress/progress.d.ts +0 -2
- package/dist/components/progress/progress.js +1 -2
- package/dist/components/radio-group/radio-group.d.ts +0 -2
- package/dist/components/radio-group/radio-group.js +1 -2
- package/dist/components/select/select.d.ts +0 -2
- package/dist/components/select/select.js +1 -2
- package/dist/components/separator/separator.d.ts +0 -2
- package/dist/components/separator/separator.js +1 -2
- package/dist/components/sidebar/sidebar.d.ts +0 -2
- package/dist/components/sidebar/sidebar.js +2 -3
- package/dist/components/skeleton/skeleton.d.ts +0 -2
- package/dist/components/skeleton/skeleton.js +1 -2
- package/dist/components/spinner/spinner.d.ts +0 -2
- package/dist/components/spinner/spinner.js +1 -2
- package/dist/components/switch/switch.d.ts +0 -2
- package/dist/components/switch/switch.js +1 -2
- package/dist/components/table/table.d.ts +0 -2
- package/dist/components/table/table.js +1 -2
- package/dist/components/tabs/tabs.d.ts +0 -2
- package/dist/components/tabs/tabs.js +1 -2
- package/dist/components/textarea/textarea.d.ts +0 -2
- package/dist/components/textarea/textarea.js +1 -2
- package/dist/components/toast/toast.d.ts +0 -2
- package/dist/components/toast/toast.js +1 -2
- package/dist/components/tooltip/tooltip.d.ts +0 -2
- package/dist/components/tooltip/tooltip.js +1 -2
- package/dist/config/config-provider.d.ts +1 -3
- package/dist/config/config-provider.js +1 -2
- package/dist/config/messages.d.ts +1 -3
- package/dist/config/messages.js +1 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4 -3
- package/dist/lib/cn.js +1 -2
- package/dist/lib/control.js +1 -2
- package/dist/lib/popup.js +1 -2
- package/dist/theme.css +1 -0
- package/dist/tokens/contrast.d.ts +1 -3
- package/dist/tokens/contrast.js +1 -2
- package/dist/tokens/palette.d.ts +0 -2
- package/dist/tokens/palette.js +1 -2
- package/dist/tokens/scale.js +1 -2
- package/dist/tokens/semantic.d.ts +0 -2
- package/dist/tokens/semantic.js +0 -1
- package/dist/tokens/types.d.ts +1 -3
- package/dist/tokens/types.js +1 -2
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LabeledField, LabeledFieldLayout, LabeledFieldProps } from "./components/field/labeled-field.js";
|
|
1
2
|
import { NumberField, NumberFieldProps } from "./components/number-field/number-field.js";
|
|
2
3
|
import { Select, SelectContent, SelectContentProps, SelectGroup, SelectGroupLabel, SelectGroupLabelProps, SelectGroupProps, SelectItem, SelectItemProps, SelectProps, SelectSeparator, SelectSeparatorProps, SelectTrigger, SelectTriggerProps, SelectValue, SelectValueProps } from "./components/select/select.js";
|
|
3
4
|
import { Calendar, CalendarProps } from "./components/calendar/calendar.js";
|
|
@@ -21,7 +22,7 @@ import { Drawer, DrawerBody, DrawerBodyProps, DrawerClose, DrawerCloseProps, Dra
|
|
|
21
22
|
import { InputGroup, InputGroupAddon, InputGroupAddonProps, InputGroupProps } from "./components/input-group/input-group.js";
|
|
22
23
|
import { Menu, MenuCheckboxItem, MenuCheckboxItemProps, MenuContent, MenuContentProps, MenuGroup, MenuGroupLabel, MenuGroupLabelProps, MenuGroupProps, MenuItem, MenuItemProps, MenuRadioGroup, MenuRadioGroupProps, MenuRadioItem, MenuRadioItemProps, MenuSeparator, MenuSeparatorProps, MenuSub, MenuSubContent, MenuSubContentProps, MenuSubTrigger, MenuSubTriggerProps, MenuTrigger, MenuTriggerProps } from "./components/menu/menu.js";
|
|
23
24
|
import { Pagination, PaginationProps, getPageItems } from "./components/pagination/pagination.js";
|
|
24
|
-
import { Popover, PopoverClose, PopoverCloseProps, PopoverContent, PopoverContentProps, PopoverDescription, PopoverDescriptionProps, PopoverTitle, PopoverTitleProps, PopoverTrigger, PopoverTriggerProps } from "./components/popover/popover.js";
|
|
25
|
+
import { Popover, PopoverArrow, PopoverArrowProps, PopoverClose, PopoverCloseProps, PopoverContent, PopoverContentProps, PopoverDescription, PopoverDescriptionProps, PopoverTitle, PopoverTitleProps, PopoverTrigger, PopoverTriggerProps } from "./components/popover/popover.js";
|
|
25
26
|
import { RadioGroup, RadioGroupItem, RadioGroupItemProps, RadioGroupProps } from "./components/radio-group/radio-group.js";
|
|
26
27
|
import { Progress, ProgressProps } from "./components/progress/progress.js";
|
|
27
28
|
import { Separator, SeparatorProps } from "./components/separator/separator.js";
|
|
@@ -32,4 +33,4 @@ import { Table, TableBody, TableBodyProps, TableCaption, TableCaptionProps, Tabl
|
|
|
32
33
|
import { Tabs, TabsContent, TabsContentProps, TabsList, TabsListProps, TabsProps, TabsTrigger, TabsTriggerProps } from "./components/tabs/tabs.js";
|
|
33
34
|
import { ToastActionOptions, ToastOptions, ToastPromiseMessage, Toaster, ToasterProps, toast } from "./components/toast/toast.js";
|
|
34
35
|
import { Tooltip, TooltipContent, TooltipContentProps, TooltipProvider, TooltipProviderProps, TooltipTrigger, TooltipTriggerProps } from "./components/tooltip/tooltip.js";
|
|
35
|
-
export { Alert, AlertDescription, type AlertDescriptionProps, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeColor, type BadgeProps, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Combobox, ComboboxChip, type ComboboxChipProps, ComboboxChips, ComboboxChipsInput, type ComboboxChipsInputProps, type ComboboxChipsProps, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, ComboboxGroupLabel, type ComboboxGroupLabelProps, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, type ComboboxProps, ComboboxValue, type ComboboxValueProps, ConfigProvider, type ConfigProviderProps, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, type DateRangePreset, DescriptionList, DescriptionListItem, type DescriptionListItemProps, DescriptionListLabel, type DescriptionListLabelProps, type DescriptionListProps, DescriptionListValue, type DescriptionListValueProps, Dialog, DialogBody, type DialogBodyProps, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, Empty, EmptyContent, type EmptyContentProps, EmptyDescription, type EmptyDescriptionProps, EmptyHeader, type EmptyHeaderProps, EmptyMedia, type EmptyMediaProps, type EmptyProps, EmptyTitle, type EmptyTitleProps, Field, FieldDescription, type FieldDescriptionProps, FieldError, type FieldErrorProps, FieldLabel, type FieldLabelProps, type FieldProps, Fieldset, FieldsetLegend, type FieldsetLegendProps, type FieldsetProps, Input, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupProps, type InputProps, type Locale, Menu, MenuCheckboxItem, type MenuCheckboxItemProps, MenuContent, type MenuContentProps, MenuGroup, MenuGroupLabel, type MenuGroupLabelProps, type MenuGroupProps, MenuItem, type MenuItemProps, MenuRadioGroup, type MenuRadioGroupProps, MenuRadioItem, type MenuRadioItemProps, MenuSeparator, type MenuSeparatorProps, MenuSub, MenuSubContent, type MenuSubContentProps, MenuSubTrigger, type MenuSubTriggerProps, MenuTrigger, type MenuTriggerProps, type Messages, type MessagesOverride, NumberField, type NumberFieldProps, Pagination, type PaginationProps, Popover, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, Progress, type ProgressProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Select, SelectContent, type SelectContentProps, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectItem, type SelectItemProps, type SelectProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, type SeparatorProps, Sidebar, SidebarGroup, type SidebarGroupProps, SidebarItem, type SidebarItemProps, type SidebarProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type ToastActionOptions, type ToastOptions, type ToastPromiseMessage, Toaster, type ToasterProps, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps, alertVariants, badgeVariants, buttonVariants, descriptionListVariants, emptyMediaVariants, getPageItems, spinnerVariants, toast, useLocale, useMessages };
|
|
36
|
+
export { Alert, AlertDescription, type AlertDescriptionProps, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeColor, type BadgeProps, Button, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Combobox, ComboboxChip, type ComboboxChipProps, ComboboxChips, ComboboxChipsInput, type ComboboxChipsInputProps, type ComboboxChipsProps, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, ComboboxGroupLabel, type ComboboxGroupLabelProps, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, type ComboboxProps, ComboboxValue, type ComboboxValueProps, ConfigProvider, type ConfigProviderProps, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, type DateRangePreset, DescriptionList, DescriptionListItem, type DescriptionListItemProps, DescriptionListLabel, type DescriptionListLabelProps, type DescriptionListProps, DescriptionListValue, type DescriptionListValueProps, Dialog, DialogBody, type DialogBodyProps, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, Empty, EmptyContent, type EmptyContentProps, EmptyDescription, type EmptyDescriptionProps, EmptyHeader, type EmptyHeaderProps, EmptyMedia, type EmptyMediaProps, type EmptyProps, EmptyTitle, type EmptyTitleProps, Field, FieldDescription, type FieldDescriptionProps, FieldError, type FieldErrorProps, FieldLabel, type FieldLabelProps, type FieldProps, Fieldset, FieldsetLegend, type FieldsetLegendProps, type FieldsetProps, Input, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupProps, type InputProps, LabeledField, type LabeledFieldLayout, type LabeledFieldProps, type Locale, Menu, MenuCheckboxItem, type MenuCheckboxItemProps, MenuContent, type MenuContentProps, MenuGroup, MenuGroupLabel, type MenuGroupLabelProps, type MenuGroupProps, MenuItem, type MenuItemProps, MenuRadioGroup, type MenuRadioGroupProps, MenuRadioItem, type MenuRadioItemProps, MenuSeparator, type MenuSeparatorProps, MenuSub, MenuSubContent, type MenuSubContentProps, MenuSubTrigger, type MenuSubTriggerProps, MenuTrigger, type MenuTriggerProps, type Messages, type MessagesOverride, NumberField, type NumberFieldProps, Pagination, type PaginationProps, Popover, PopoverArrow, type PopoverArrowProps, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, Progress, type ProgressProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Select, SelectContent, type SelectContentProps, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectItem, type SelectItemProps, type SelectProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, type SeparatorProps, Sidebar, SidebarGroup, type SidebarGroupProps, SidebarItem, type SidebarItemProps, type SidebarProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type ToastActionOptions, type ToastOptions, type ToastPromiseMessage, Toaster, type ToasterProps, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps, alertVariants, badgeVariants, buttonVariants, descriptionListVariants, emptyMediaVariants, getPageItems, spinnerVariants, toast, useLocale, useMessages };
|
package/dist/index.js
CHANGED
|
@@ -5,12 +5,14 @@ import { Badge, badgeVariants } from "./components/badge/badge.js";
|
|
|
5
5
|
import { Button, buttonVariants } from "./components/button/button.js";
|
|
6
6
|
import { Calendar } from "./components/calendar/calendar.js";
|
|
7
7
|
import { Checkbox } from "./components/checkbox/checkbox.js";
|
|
8
|
-
import { Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger } from "./components/popover/popover.js";
|
|
8
|
+
import { Popover, PopoverArrow, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger } from "./components/popover/popover.js";
|
|
9
9
|
import { DatePicker, DateRangePicker } from "./components/date-picker/date-picker.js";
|
|
10
10
|
import { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxValue } from "./components/combobox/combobox.js";
|
|
11
11
|
import { DescriptionList, DescriptionListItem, DescriptionListLabel, DescriptionListValue, descriptionListVariants } from "./components/description-list/description-list.js";
|
|
12
12
|
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, emptyMediaVariants } from "./components/empty/empty.js";
|
|
13
13
|
import { Field, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetLegend } from "./components/field/field.js";
|
|
14
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/tooltip/tooltip.js";
|
|
15
|
+
import { LabeledField } from "./components/field/labeled-field.js";
|
|
14
16
|
import { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "./components/dialog/dialog.js";
|
|
15
17
|
import { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger } from "./components/drawer/drawer.js";
|
|
16
18
|
import { Input } from "./components/input/input.js";
|
|
@@ -22,7 +24,6 @@ import { Pagination, getPageItems } from "./components/pagination/pagination.js"
|
|
|
22
24
|
import { RadioGroup, RadioGroupItem } from "./components/radio-group/radio-group.js";
|
|
23
25
|
import { Progress } from "./components/progress/progress.js";
|
|
24
26
|
import { Separator } from "./components/separator/separator.js";
|
|
25
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/tooltip/tooltip.js";
|
|
26
27
|
import { Sidebar, SidebarGroup, SidebarItem } from "./components/sidebar/sidebar.js";
|
|
27
28
|
import { Skeleton } from "./components/skeleton/skeleton.js";
|
|
28
29
|
import { Spinner, spinnerVariants } from "./components/spinner/spinner.js";
|
|
@@ -31,4 +32,4 @@ import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, Tabl
|
|
|
31
32
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/tabs/tabs.js";
|
|
32
33
|
import { Textarea } from "./components/textarea/textarea.js";
|
|
33
34
|
import { Toaster, toast } from "./components/toast/toast.js";
|
|
34
|
-
export { Alert, AlertDescription, AlertTitle, Avatar, Badge, Button, Calendar, Checkbox, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxValue, ConfigProvider, DatePicker, DateRangePicker, DescriptionList, DescriptionListItem, DescriptionListLabel, DescriptionListValue, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetLegend, Input, InputGroup, InputGroupAddon, Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger, NumberField, Pagination, Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, SidebarGroup, SidebarItem, Skeleton, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertVariants, badgeVariants, buttonVariants, descriptionListVariants, emptyMediaVariants, getPageItems, spinnerVariants, toast, useLocale, useMessages };
|
|
35
|
+
export { Alert, AlertDescription, AlertTitle, Avatar, Badge, Button, Calendar, Checkbox, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxValue, ConfigProvider, DatePicker, DateRangePicker, DescriptionList, DescriptionListItem, DescriptionListLabel, DescriptionListValue, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetLegend, Input, InputGroup, InputGroupAddon, LabeledField, Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger, NumberField, Pagination, Popover, PopoverArrow, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, SidebarGroup, SidebarItem, Skeleton, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertVariants, badgeVariants, buttonVariants, descriptionListVariants, emptyMediaVariants, getPageItems, spinnerVariants, toast, useLocale, useMessages };
|
package/dist/lib/cn.js
CHANGED
package/dist/lib/control.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/control.ts
|
|
2
2
|
const controlSurface = "w-full min-w-0 rounded-sm border border-input bg-background text-sm text-foreground transition-colors outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-50 data-disabled:cursor-not-allowed data-disabled:bg-muted data-disabled:opacity-50 aria-invalid:border-destructive data-invalid:border-destructive not-disabled:not-data-disabled:not-aria-invalid:not-data-invalid:hover:border-primary-hover";
|
|
3
3
|
const controlFocus = "focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40 aria-invalid:focus-visible:ring-destructive/40 data-invalid:focus-visible:ring-destructive/40";
|
|
4
4
|
const controlFocusWithin = "focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/40 aria-invalid:focus-within:ring-destructive/40 data-invalid:focus-within:ring-destructive/40";
|
|
5
|
-
//#endregion
|
|
6
5
|
export { controlFocus, controlFocusWithin, controlSurface };
|
package/dist/lib/popup.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/popup.ts
|
|
2
2
|
const popupLayerClassName = "z-50";
|
|
3
3
|
const popupClassName = "rounded-md border border-border bg-popover text-popover-foreground shadow-md outline-none";
|
|
4
4
|
const listboxClassName = "max-h-[300px] overflow-y-auto rounded-sm bg-muted text-sm shadow-md dark:ring-1 dark:ring-border";
|
|
5
5
|
const listItemClassName = "flex cursor-default items-center gap-2 px-4 py-2.5 text-sm outline-none select-none data-highlighted:bg-accent-hover data-selected:bg-accent-selected data-disabled:pointer-events-none data-disabled:opacity-50";
|
|
6
|
-
//#endregion
|
|
7
6
|
export { listItemClassName, listboxClassName, popupClassName, popupLayerClassName };
|
package/dist/theme.css
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Palette } from "./types.js";
|
|
2
2
|
import { SemanticMap } from "./semantic.js";
|
|
3
|
-
//#region src/tokens/contrast.d.ts
|
|
4
3
|
export declare const AA = 4.5;
|
|
5
4
|
export interface ContrastPair {
|
|
6
5
|
name: string;
|
|
@@ -9,5 +8,4 @@ export interface ContrastPair {
|
|
|
9
8
|
ratio: number;
|
|
10
9
|
}
|
|
11
10
|
export declare function semanticPairs(map: SemanticMap): ContrastPair[];
|
|
12
|
-
export declare function badgePairs(theme?: 'light' | 'dark', p?: Palette): ContrastPair[];
|
|
13
|
-
//#endregion
|
|
11
|
+
export declare function badgePairs(theme?: 'light' | 'dark', p?: Palette): ContrastPair[];
|
package/dist/tokens/contrast.js
CHANGED
|
@@ -2,7 +2,7 @@ import { FAMILIES } from "./types.js";
|
|
|
2
2
|
import { palette } from "./palette.js";
|
|
3
3
|
import { resolveRef } from "./semantic.js";
|
|
4
4
|
import { wcagContrast } from "culori";
|
|
5
|
-
|
|
5
|
+
// src/tokens/contrast.ts
|
|
6
6
|
const AA = 4.5;
|
|
7
7
|
const TEXT_TOKENS = [
|
|
8
8
|
"foreground",
|
|
@@ -75,5 +75,4 @@ function badgePairs(theme = "light", p = palette) {
|
|
|
75
75
|
const { background, foreground } = BADGE_STEPS[theme];
|
|
76
76
|
return FAMILIES.map((family) => pair(`badge ${family}`, p[family][foreground], p[family][background]));
|
|
77
77
|
}
|
|
78
|
-
//#endregion
|
|
79
78
|
export { AA, BADGE_STEPS, SURFACE_TOKENS, TEXT_TOKENS, badgePairs, semanticPairs };
|
package/dist/tokens/palette.d.ts
CHANGED
package/dist/tokens/palette.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FAMILIES, STEPS } from "./types.js";
|
|
2
2
|
import { buildPalette } from "./scale.js";
|
|
3
|
-
|
|
3
|
+
// src/tokens/palette.ts
|
|
4
4
|
const ANCHORS = {
|
|
5
5
|
gray: {
|
|
6
6
|
50: "#FCFCFC",
|
|
@@ -93,5 +93,4 @@ const ANCHORS = {
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
const palette = buildPalette(ANCHORS);
|
|
96
|
-
//#endregion
|
|
97
96
|
export { ANCHORS, FAMILIES, STEPS, palette };
|
package/dist/tokens/scale.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { STEPS } from "./types.js";
|
|
2
2
|
import { clampChroma, formatHex, oklch, parse } from "culori";
|
|
3
|
-
|
|
3
|
+
// src/tokens/scale.ts
|
|
4
4
|
const LIGHTEST_MIN = .975;
|
|
5
5
|
const LIGHTEST_MAX = .995;
|
|
6
6
|
const DARKEST_MAX = .22;
|
|
@@ -94,5 +94,4 @@ function buildScale(anchors) {
|
|
|
94
94
|
function buildPalette(anchors) {
|
|
95
95
|
return Object.fromEntries(Object.entries(anchors).map(([family, set]) => [family, buildScale(set)]));
|
|
96
96
|
}
|
|
97
|
-
//#endregion
|
|
98
97
|
export { buildPalette, buildScale };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Family, Step } from "./types.js";
|
|
2
|
-
//#region src/tokens/semantic.d.ts
|
|
3
2
|
type OpaqueRef = 'white' | 'black' | `${Family}-${Step}`;
|
|
4
3
|
export type ColorRef = OpaqueRef | `${OpaqueRef}/${number}`;
|
|
5
4
|
export declare const SEMANTIC_TOKENS: readonly ["background", "foreground", "card", "card-foreground", "popover", "popover-foreground", "primary", "primary-hover", "primary-foreground", "primary-text", "secondary", "secondary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "destructive-hover", "destructive-foreground", "destructive-text", "destructive-subtle", "success", "success-foreground", "success-subtle", "warning", "warning-foreground", "warning-subtle", "info", "info-foreground", "info-subtle", "border", "input", "ring", "tooltip", "tooltip-foreground", "table-header", "secondary-hover", "accent-hover", "accent-selected", "overlay", "sidebar-accent", "sidebar-indicator"];
|
|
@@ -9,5 +8,4 @@ export declare const themes: {
|
|
|
9
8
|
light: SemanticMap;
|
|
10
9
|
dark: SemanticMap;
|
|
11
10
|
};
|
|
12
|
-
//#endregion
|
|
13
11
|
export {};
|
package/dist/tokens/semantic.js
CHANGED
package/dist/tokens/types.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
//#region src/tokens/types.d.ts
|
|
2
1
|
export declare const STEPS: readonly [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
3
2
|
export type Step = (typeof STEPS)[number];
|
|
4
3
|
export declare const FAMILIES: readonly ["gray", "slate", "blue", "green", "red", "yellow", "orange", "cyan", "indigo", "purple", "pink"];
|
|
5
4
|
export type Family = (typeof FAMILIES)[number];
|
|
6
|
-
export type Palette = Record<Family, Record<Step, string>>;
|
|
7
|
-
//#endregion
|
|
5
|
+
export type Palette = Record<Family, Record<Step, string>>;
|
package/dist/tokens/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@api7/ui-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "API7 React component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@base-ui/react": "^1.8.0",
|
|
35
35
|
"class-variance-authority": "^0.7.1",
|
|
36
|
-
"cn": "^0.
|
|
36
|
+
"cn": "^0.5.0",
|
|
37
37
|
"culori": "^4.0.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@tanstack/react-form": "^1.33.5",
|
|
61
61
|
"@tanstack/react-table": "^9.2.4",
|
|
62
62
|
"@types/culori": "^4.0.1",
|
|
63
|
-
"@types/node": "^
|
|
63
|
+
"@types/node": "^26.0.0",
|
|
64
64
|
"@types/react": "19.3.0",
|
|
65
65
|
"@types/react-dom": "19.3.0",
|
|
66
66
|
"@vitejs/plugin-react": "^6.1.1",
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
"lucide-react": "^1.48.0",
|
|
71
71
|
"playwright": "1.63.0",
|
|
72
72
|
"publint": "^0.3.24",
|
|
73
|
-
"react": "19.3.
|
|
73
|
+
"react": "19.3.1",
|
|
74
74
|
"react-day-picker": "^10.0.1",
|
|
75
|
-
"react-dom": "19.3.
|
|
75
|
+
"react-dom": "19.3.1",
|
|
76
76
|
"tailwindcss": "^4.3.3",
|
|
77
77
|
"tsdown": "^0.23.0",
|
|
78
78
|
"typescript": "6.0.3",
|