@api7/ui-components 0.3.0 → 0.5.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 +192 -28
- package/dist/animations.css +12 -0
- package/dist/components/alert/alert.js +7 -7
- package/dist/components/avatar/avatar.d.ts +4 -4
- package/dist/components/avatar/avatar.js +6 -6
- package/dist/components/badge/badge.js +14 -14
- package/dist/components/button/button.d.ts +1 -2
- package/dist/components/button/button.js +14 -14
- package/dist/components/calendar/calendar.d.ts +1 -1
- package/dist/components/calendar/calendar.js +28 -28
- package/dist/components/checkbox/checkbox.js +3 -3
- package/dist/components/combobox/combobox.js +24 -23
- package/dist/components/data-table/data-table.js +7 -7
- package/dist/components/data-table/filter-header.js +4 -4
- package/dist/components/data-table/sort-header.js +2 -2
- package/dist/components/date-picker/date-picker.js +14 -14
- package/dist/components/description-list/description-list.d.ts +26 -0
- package/dist/components/description-list/description-list.js +89 -0
- package/dist/components/dialog/dialog.js +11 -11
- package/dist/components/drawer/drawer.js +12 -12
- package/dist/components/empty/empty.js +8 -8
- package/dist/components/field/field.js +6 -6
- package/dist/components/form/date-fields.js +1 -1
- package/dist/components/form/form-item.js +6 -6
- package/dist/components/form/lazy-field-components.js +1 -1
- package/dist/components/form/toggle-fields.js +4 -4
- package/dist/components/input/input.js +1 -1
- package/dist/components/input-group/input-group.js +11 -12
- package/dist/components/menu/menu.js +13 -11
- package/dist/components/number-field/number-field.js +7 -7
- package/dist/components/pagination/pagination.js +12 -12
- package/dist/components/popover/popover.js +5 -4
- package/dist/components/progress/progress.d.ts +19 -0
- package/dist/components/progress/progress.js +36 -0
- package/dist/components/radio-group/radio-group.js +3 -3
- package/dist/components/select/select.js +17 -16
- package/dist/components/separator/separator.js +1 -1
- package/dist/components/sidebar/sidebar.js +9 -9
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/spinner/spinner.d.ts +14 -0
- package/dist/components/spinner/spinner.js +28 -0
- package/dist/components/switch/switch.js +2 -2
- package/dist/components/table/table.js +7 -7
- package/dist/components/tabs/tabs.js +4 -4
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/components/toast/toast.js +18 -18
- package/dist/components/tooltip/tooltip.js +4 -2
- package/dist/config/messages.d.ts +4 -0
- package/dist/config/messages.js +2 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/lib/cn.js +4 -4
- package/dist/lib/control.js +3 -3
- package/dist/lib/popup.js +5 -4
- package/dist/theme.css +220 -0
- package/dist/tokens/contrast.d.ts +1 -1
- package/dist/tokens/contrast.js +17 -6
- package/dist/tokens/semantic.d.ts +2 -2
- package/dist/tokens/semantic.js +90 -42
- package/package.json +8 -6
- package/dist/styles.css +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { Alert, AlertDescription, AlertDescriptionProps, AlertProps, AlertTitle,
|
|
|
13
13
|
import { Avatar, AvatarProps, AvatarSize } from "./components/avatar/avatar.js";
|
|
14
14
|
import { Badge, BadgeColor, BadgeProps, badgeVariants } from "./components/badge/badge.js";
|
|
15
15
|
import { Combobox, ComboboxChip, ComboboxChipProps, ComboboxChips, ComboboxChipsInput, ComboboxChipsInputProps, ComboboxChipsProps, ComboboxContent, ComboboxContentProps, ComboboxEmpty, ComboboxEmptyProps, ComboboxGroup, ComboboxGroupLabel, ComboboxGroupLabelProps, ComboboxGroupProps, ComboboxInput, ComboboxInputProps, ComboboxItem, ComboboxItemProps, ComboboxProps, ComboboxValue, ComboboxValueProps } from "./components/combobox/combobox.js";
|
|
16
|
+
import { DescriptionList, DescriptionListItem, DescriptionListItemProps, DescriptionListLabel, DescriptionListLabelProps, DescriptionListProps, DescriptionListValue, DescriptionListValueProps, descriptionListVariants } from "./components/description-list/description-list.js";
|
|
16
17
|
import { Empty, EmptyContent, EmptyContentProps, EmptyDescription, EmptyDescriptionProps, EmptyHeader, EmptyHeaderProps, EmptyMedia, EmptyMediaProps, EmptyProps, EmptyTitle, EmptyTitleProps, emptyMediaVariants } from "./components/empty/empty.js";
|
|
17
18
|
import { Field, FieldDescription, FieldDescriptionProps, FieldError, FieldErrorProps, FieldLabel, FieldLabelProps, FieldProps, Fieldset, FieldsetLegend, FieldsetLegendProps, FieldsetProps } from "./components/field/field.js";
|
|
18
19
|
import { Dialog, DialogBody, DialogBodyProps, DialogClose, DialogCloseProps, DialogContent, DialogContentProps, DialogDescription, DialogDescriptionProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogProps, DialogTitle, DialogTitleProps, DialogTrigger, DialogTriggerProps } from "./components/dialog/dialog.js";
|
|
@@ -22,11 +23,13 @@ import { Menu, MenuCheckboxItem, MenuCheckboxItemProps, MenuContent, MenuContent
|
|
|
22
23
|
import { Pagination, PaginationProps, getPageItems } from "./components/pagination/pagination.js";
|
|
23
24
|
import { Popover, PopoverClose, PopoverCloseProps, PopoverContent, PopoverContentProps, PopoverDescription, PopoverDescriptionProps, PopoverTitle, PopoverTitleProps, PopoverTrigger, PopoverTriggerProps } from "./components/popover/popover.js";
|
|
24
25
|
import { RadioGroup, RadioGroupItem, RadioGroupItemProps, RadioGroupProps } from "./components/radio-group/radio-group.js";
|
|
26
|
+
import { Progress, ProgressProps } from "./components/progress/progress.js";
|
|
25
27
|
import { Separator, SeparatorProps } from "./components/separator/separator.js";
|
|
26
28
|
import { Sidebar, SidebarGroup, SidebarGroupProps, SidebarItem, SidebarItemProps, SidebarProps } from "./components/sidebar/sidebar.js";
|
|
27
29
|
import { Skeleton, SkeletonProps } from "./components/skeleton/skeleton.js";
|
|
30
|
+
import { Spinner, SpinnerProps, spinnerVariants } from "./components/spinner/spinner.js";
|
|
28
31
|
import { Table, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableHead, TableHeadProps, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps } from "./components/table/table.js";
|
|
29
32
|
import { Tabs, TabsContent, TabsContentProps, TabsList, TabsListProps, TabsProps, TabsTrigger, TabsTriggerProps } from "./components/tabs/tabs.js";
|
|
30
33
|
import { ToastActionOptions, ToastOptions, ToastPromiseMessage, Toaster, ToasterProps, toast } from "./components/toast/toast.js";
|
|
31
34
|
import { Tooltip, TooltipContent, TooltipContentProps, TooltipProvider, TooltipProviderProps, TooltipTrigger, TooltipTriggerProps } from "./components/tooltip/tooltip.js";
|
|
32
|
-
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, 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, 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, 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, emptyMediaVariants, getPageItems, toast, useLocale, useMessages };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import { Checkbox } from "./components/checkbox/checkbox.js";
|
|
|
8
8
|
import { Popover, 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
|
+
import { DescriptionList, DescriptionListItem, DescriptionListLabel, DescriptionListValue, descriptionListVariants } from "./components/description-list/description-list.js";
|
|
11
12
|
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, emptyMediaVariants } from "./components/empty/empty.js";
|
|
12
13
|
import { Field, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetLegend } from "./components/field/field.js";
|
|
13
14
|
import { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "./components/dialog/dialog.js";
|
|
@@ -19,13 +20,15 @@ import { NumberField } from "./components/number-field/number-field.js";
|
|
|
19
20
|
import { Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, SelectValue } from "./components/select/select.js";
|
|
20
21
|
import { Pagination, getPageItems } from "./components/pagination/pagination.js";
|
|
21
22
|
import { RadioGroup, RadioGroupItem } from "./components/radio-group/radio-group.js";
|
|
23
|
+
import { Progress } from "./components/progress/progress.js";
|
|
22
24
|
import { Separator } from "./components/separator/separator.js";
|
|
23
25
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/tooltip/tooltip.js";
|
|
24
26
|
import { Sidebar, SidebarGroup, SidebarItem } from "./components/sidebar/sidebar.js";
|
|
25
27
|
import { Skeleton } from "./components/skeleton/skeleton.js";
|
|
28
|
+
import { Spinner, spinnerVariants } from "./components/spinner/spinner.js";
|
|
26
29
|
import { Switch } from "./components/switch/switch.js";
|
|
27
30
|
import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from "./components/table/table.js";
|
|
28
31
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/tabs/tabs.js";
|
|
29
32
|
import { Textarea } from "./components/textarea/textarea.js";
|
|
30
33
|
import { Toaster, toast } from "./components/toast/toast.js";
|
|
31
|
-
export { Alert, AlertDescription, AlertTitle, Avatar, Badge, Button, Calendar, Checkbox, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxValue, ConfigProvider, DatePicker, DateRangePicker, 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, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, SidebarGroup, SidebarItem, Skeleton, Switch, Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertVariants, badgeVariants, buttonVariants, emptyMediaVariants, getPageItems, toast, useLocale, useMessages };
|
|
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 };
|
package/dist/lib/cn.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cn } from "cn";
|
|
2
2
|
//#region src/lib/cn.ts
|
|
3
|
-
/** Merges class names;
|
|
4
|
-
const cn =
|
|
3
|
+
/** Merges class names; a later utility replaces an earlier one that sets the same property. */
|
|
4
|
+
const cn$1 = cn;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { cn };
|
|
6
|
+
export { cn$1 as cn };
|
package/dist/lib/control.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/lib/control.ts
|
|
2
|
-
const controlSurface = "
|
|
3
|
-
const controlFocus = "
|
|
4
|
-
const controlFocusWithin = "
|
|
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
|
+
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
|
+
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
5
|
//#endregion
|
|
6
6
|
export { controlFocus, controlFocusWithin, controlSurface };
|
package/dist/lib/popup.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
//#region src/lib/popup.ts
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
2
|
+
const popupLayerClassName = "z-50";
|
|
3
|
+
const popupClassName = "rounded-md border border-border bg-popover text-popover-foreground shadow-md outline-none";
|
|
4
|
+
const listboxClassName = "max-h-[300px] overflow-y-auto rounded-sm bg-muted text-sm shadow-md dark:ring-1 dark:ring-border";
|
|
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";
|
|
5
6
|
//#endregion
|
|
6
|
-
export { listItemClassName, listboxClassName, popupClassName };
|
|
7
|
+
export { listItemClassName, listboxClassName, popupClassName, popupLayerClassName };
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/* Generated by scripts/generate-tokens.ts from src/tokens/*.ts. Do not edit. */
|
|
2
|
+
|
|
3
|
+
@import './animations.css';
|
|
4
|
+
|
|
5
|
+
@source './components';
|
|
6
|
+
@source './lib';
|
|
7
|
+
@source not './**/*.test.tsx';
|
|
8
|
+
@source not './**/*.stories.tsx';
|
|
9
|
+
|
|
10
|
+
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *):not(:where([data-theme=dark] [data-theme=light], [data-theme=dark] [data-theme=light] *)));
|
|
11
|
+
|
|
12
|
+
@theme static {
|
|
13
|
+
--color-background: #FFFFFF;
|
|
14
|
+
--color-foreground: #2C2C2C;
|
|
15
|
+
--color-card: #FFFFFF;
|
|
16
|
+
--color-card-foreground: #2C2C2C;
|
|
17
|
+
--color-popover: #FFFFFF;
|
|
18
|
+
--color-popover-foreground: #2C2C2C;
|
|
19
|
+
--color-primary: #065FD4;
|
|
20
|
+
--color-primary-hover: #084BA4;
|
|
21
|
+
--color-primary-foreground: #FFFFFF;
|
|
22
|
+
--color-primary-text: #065FD4;
|
|
23
|
+
--color-secondary: #F7F7F7;
|
|
24
|
+
--color-secondary-foreground: #2C2C2C;
|
|
25
|
+
--color-muted: #F7F7F7;
|
|
26
|
+
--color-muted-foreground: #686868;
|
|
27
|
+
--color-accent: #F7F7F7;
|
|
28
|
+
--color-accent-foreground: #2C2C2C;
|
|
29
|
+
--color-destructive: #C40A04;
|
|
30
|
+
--color-destructive-hover: #910601;
|
|
31
|
+
--color-destructive-foreground: #FFFFFF;
|
|
32
|
+
--color-destructive-text: #C40A04;
|
|
33
|
+
--color-destructive-subtle: #FFF8F7;
|
|
34
|
+
--color-success: #1FA333;
|
|
35
|
+
--color-success-foreground: #11701F;
|
|
36
|
+
--color-success-subtle: #F7FFF9;
|
|
37
|
+
--color-warning: #CC7F08;
|
|
38
|
+
--color-warning-foreground: #995F06;
|
|
39
|
+
--color-warning-subtle: #FFF9F0;
|
|
40
|
+
--color-info: #065FD4;
|
|
41
|
+
--color-info-foreground: #084BA4;
|
|
42
|
+
--color-info-subtle: #ECF5FD;
|
|
43
|
+
--color-border: #F0F0F0;
|
|
44
|
+
--color-input: #E0E0E0;
|
|
45
|
+
--color-ring: #065FD4;
|
|
46
|
+
--color-tooltip: #3C4557;
|
|
47
|
+
--color-tooltip-foreground: #FFFFFF;
|
|
48
|
+
--color-table-header: #F5F6FA;
|
|
49
|
+
--color-secondary-hover: #F0F0F0;
|
|
50
|
+
--color-accent-hover: #F0F0F0;
|
|
51
|
+
--color-accent-selected: #E0E0E0;
|
|
52
|
+
--color-overlay: #2C2C2C73;
|
|
53
|
+
--color-sidebar-accent: #F0F0F0;
|
|
54
|
+
--color-sidebar-indicator: #F84037;
|
|
55
|
+
--radius-sm: 2px;
|
|
56
|
+
--radius-md: 4px;
|
|
57
|
+
--font-sans: "Inter Variable", "Inter", ui-sans-serif, system-ui, sans-serif;
|
|
58
|
+
--badge-gray-bg: #F7F7F7;
|
|
59
|
+
--badge-gray-fg: #484848;
|
|
60
|
+
--badge-slate-bg: #EAECF3;
|
|
61
|
+
--badge-slate-fg: #44506F;
|
|
62
|
+
--badge-blue-bg: #D6EAFF;
|
|
63
|
+
--badge-blue-fg: #084BA4;
|
|
64
|
+
--badge-green-bg: #E1FAE5;
|
|
65
|
+
--badge-green-fg: #11701F;
|
|
66
|
+
--badge-red-bg: #FFE2E0;
|
|
67
|
+
--badge-red-fg: #910601;
|
|
68
|
+
--badge-yellow-bg: #FFF8D6;
|
|
69
|
+
--badge-yellow-fg: #665202;
|
|
70
|
+
--badge-orange-bg: #FFEFD6;
|
|
71
|
+
--badge-orange-fg: #995F06;
|
|
72
|
+
--badge-cyan-bg: #D6F3FF;
|
|
73
|
+
--badge-cyan-fg: #1E6E8F;
|
|
74
|
+
--badge-indigo-bg: #E4E4F5;
|
|
75
|
+
--badge-indigo-fg: #201F99;
|
|
76
|
+
--badge-purple-bg: #F4E3FD;
|
|
77
|
+
--badge-purple-fg: #65188C;
|
|
78
|
+
--badge-pink-bg: #FFE0ED;
|
|
79
|
+
--badge-pink-fg: #991147;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:root {
|
|
83
|
+
color-scheme: light;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[data-theme=light] {
|
|
87
|
+
color-scheme: light;
|
|
88
|
+
--color-background: #FFFFFF;
|
|
89
|
+
--color-foreground: #2C2C2C;
|
|
90
|
+
--color-card: #FFFFFF;
|
|
91
|
+
--color-card-foreground: #2C2C2C;
|
|
92
|
+
--color-popover: #FFFFFF;
|
|
93
|
+
--color-popover-foreground: #2C2C2C;
|
|
94
|
+
--color-primary: #065FD4;
|
|
95
|
+
--color-primary-hover: #084BA4;
|
|
96
|
+
--color-primary-foreground: #FFFFFF;
|
|
97
|
+
--color-primary-text: #065FD4;
|
|
98
|
+
--color-secondary: #F7F7F7;
|
|
99
|
+
--color-secondary-foreground: #2C2C2C;
|
|
100
|
+
--color-muted: #F7F7F7;
|
|
101
|
+
--color-muted-foreground: #686868;
|
|
102
|
+
--color-accent: #F7F7F7;
|
|
103
|
+
--color-accent-foreground: #2C2C2C;
|
|
104
|
+
--color-destructive: #C40A04;
|
|
105
|
+
--color-destructive-hover: #910601;
|
|
106
|
+
--color-destructive-foreground: #FFFFFF;
|
|
107
|
+
--color-destructive-text: #C40A04;
|
|
108
|
+
--color-destructive-subtle: #FFF8F7;
|
|
109
|
+
--color-success: #1FA333;
|
|
110
|
+
--color-success-foreground: #11701F;
|
|
111
|
+
--color-success-subtle: #F7FFF9;
|
|
112
|
+
--color-warning: #CC7F08;
|
|
113
|
+
--color-warning-foreground: #995F06;
|
|
114
|
+
--color-warning-subtle: #FFF9F0;
|
|
115
|
+
--color-info: #065FD4;
|
|
116
|
+
--color-info-foreground: #084BA4;
|
|
117
|
+
--color-info-subtle: #ECF5FD;
|
|
118
|
+
--color-border: #F0F0F0;
|
|
119
|
+
--color-input: #E0E0E0;
|
|
120
|
+
--color-ring: #065FD4;
|
|
121
|
+
--color-tooltip: #3C4557;
|
|
122
|
+
--color-tooltip-foreground: #FFFFFF;
|
|
123
|
+
--color-table-header: #F5F6FA;
|
|
124
|
+
--color-secondary-hover: #F0F0F0;
|
|
125
|
+
--color-accent-hover: #F0F0F0;
|
|
126
|
+
--color-accent-selected: #E0E0E0;
|
|
127
|
+
--color-overlay: #2C2C2C73;
|
|
128
|
+
--color-sidebar-accent: #F0F0F0;
|
|
129
|
+
--color-sidebar-indicator: #F84037;
|
|
130
|
+
--badge-gray-bg: #F7F7F7;
|
|
131
|
+
--badge-gray-fg: #484848;
|
|
132
|
+
--badge-slate-bg: #EAECF3;
|
|
133
|
+
--badge-slate-fg: #44506F;
|
|
134
|
+
--badge-blue-bg: #D6EAFF;
|
|
135
|
+
--badge-blue-fg: #084BA4;
|
|
136
|
+
--badge-green-bg: #E1FAE5;
|
|
137
|
+
--badge-green-fg: #11701F;
|
|
138
|
+
--badge-red-bg: #FFE2E0;
|
|
139
|
+
--badge-red-fg: #910601;
|
|
140
|
+
--badge-yellow-bg: #FFF8D6;
|
|
141
|
+
--badge-yellow-fg: #665202;
|
|
142
|
+
--badge-orange-bg: #FFEFD6;
|
|
143
|
+
--badge-orange-fg: #995F06;
|
|
144
|
+
--badge-cyan-bg: #D6F3FF;
|
|
145
|
+
--badge-cyan-fg: #1E6E8F;
|
|
146
|
+
--badge-indigo-bg: #E4E4F5;
|
|
147
|
+
--badge-indigo-fg: #201F99;
|
|
148
|
+
--badge-purple-bg: #F4E3FD;
|
|
149
|
+
--badge-purple-fg: #65188C;
|
|
150
|
+
--badge-pink-bg: #FFE0ED;
|
|
151
|
+
--badge-pink-fg: #991147;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
[data-theme=dark] {
|
|
155
|
+
color-scheme: dark;
|
|
156
|
+
--color-background: #1A1A1A;
|
|
157
|
+
--color-foreground: #F7F7F7;
|
|
158
|
+
--color-card: #1A1A1A;
|
|
159
|
+
--color-card-foreground: #F7F7F7;
|
|
160
|
+
--color-popover: #1A1A1A;
|
|
161
|
+
--color-popover-foreground: #F7F7F7;
|
|
162
|
+
--color-primary: #065FD4;
|
|
163
|
+
--color-primary-hover: #084BA4;
|
|
164
|
+
--color-primary-foreground: #FFFFFF;
|
|
165
|
+
--color-primary-text: #5E9AE8;
|
|
166
|
+
--color-secondary: #232323;
|
|
167
|
+
--color-secondary-foreground: #F7F7F7;
|
|
168
|
+
--color-muted: #232323;
|
|
169
|
+
--color-muted-foreground: #C0C0C0;
|
|
170
|
+
--color-accent: #232323;
|
|
171
|
+
--color-accent-foreground: #F7F7F7;
|
|
172
|
+
--color-destructive: #C40A04;
|
|
173
|
+
--color-destructive-hover: #910601;
|
|
174
|
+
--color-destructive-foreground: #FFFFFF;
|
|
175
|
+
--color-destructive-text: #FA7069;
|
|
176
|
+
--color-destructive-subtle: #5E0401;
|
|
177
|
+
--color-success: #32D74B;
|
|
178
|
+
--color-success-foreground: #95EDA3;
|
|
179
|
+
--color-success-subtle: #074210;
|
|
180
|
+
--color-warning: #FF9F0A;
|
|
181
|
+
--color-warning-foreground: #FECA86;
|
|
182
|
+
--color-warning-subtle: #664004;
|
|
183
|
+
--color-info: #5E9AE8;
|
|
184
|
+
--color-info-foreground: #84B6F0;
|
|
185
|
+
--color-info-subtle: #043566;
|
|
186
|
+
--color-border: #FFFFFF1A;
|
|
187
|
+
--color-input: #FFFFFF26;
|
|
188
|
+
--color-ring: #5E9AE8;
|
|
189
|
+
--color-tooltip: #EAECF3;
|
|
190
|
+
--color-tooltip-foreground: #151B25;
|
|
191
|
+
--color-table-header: #282F3D;
|
|
192
|
+
--color-secondary-hover: #2C2C2C;
|
|
193
|
+
--color-accent-hover: #2C2C2C;
|
|
194
|
+
--color-accent-selected: #484848;
|
|
195
|
+
--color-overlay: #00000099;
|
|
196
|
+
--color-sidebar-accent: #2C2C2C;
|
|
197
|
+
--color-sidebar-indicator: #F84037;
|
|
198
|
+
--badge-gray-bg: #484848;
|
|
199
|
+
--badge-gray-fg: #F7F7F7;
|
|
200
|
+
--badge-slate-bg: #44506F;
|
|
201
|
+
--badge-slate-fg: #EAECF3;
|
|
202
|
+
--badge-blue-bg: #084BA4;
|
|
203
|
+
--badge-blue-fg: #D6EAFF;
|
|
204
|
+
--badge-green-bg: #11701F;
|
|
205
|
+
--badge-green-fg: #E1FAE5;
|
|
206
|
+
--badge-red-bg: #910601;
|
|
207
|
+
--badge-red-fg: #FFE2E0;
|
|
208
|
+
--badge-yellow-bg: #665202;
|
|
209
|
+
--badge-yellow-fg: #FFF8D6;
|
|
210
|
+
--badge-orange-bg: #995F06;
|
|
211
|
+
--badge-orange-fg: #FFEFD6;
|
|
212
|
+
--badge-cyan-bg: #1E6E8F;
|
|
213
|
+
--badge-cyan-fg: #D6F3FF;
|
|
214
|
+
--badge-indigo-bg: #201F99;
|
|
215
|
+
--badge-indigo-fg: #E4E4F5;
|
|
216
|
+
--badge-purple-bg: #65188C;
|
|
217
|
+
--badge-purple-fg: #F4E3FD;
|
|
218
|
+
--badge-pink-bg: #991147;
|
|
219
|
+
--badge-pink-fg: #FFE0ED;
|
|
220
|
+
}
|
|
@@ -9,5 +9,5 @@ export interface ContrastPair {
|
|
|
9
9
|
ratio: number;
|
|
10
10
|
}
|
|
11
11
|
export declare function semanticPairs(map: SemanticMap): ContrastPair[];
|
|
12
|
-
export declare function badgePairs(p?: Palette): ContrastPair[];
|
|
12
|
+
export declare function badgePairs(theme?: 'light' | 'dark', p?: Palette): ContrastPair[];
|
|
13
13
|
//#endregion
|
package/dist/tokens/contrast.js
CHANGED
|
@@ -11,8 +11,8 @@ const TEXT_TOKENS = [
|
|
|
11
11
|
"secondary-foreground",
|
|
12
12
|
"muted-foreground",
|
|
13
13
|
"accent-foreground",
|
|
14
|
-
"primary",
|
|
15
|
-
"destructive",
|
|
14
|
+
"primary-text",
|
|
15
|
+
"destructive-text",
|
|
16
16
|
"success-foreground",
|
|
17
17
|
"warning-foreground",
|
|
18
18
|
"info-foreground"
|
|
@@ -33,7 +33,7 @@ const ON_COLOR_PAIRS = [
|
|
|
33
33
|
["primary-foreground", "primary-hover"],
|
|
34
34
|
["destructive-foreground", "destructive"],
|
|
35
35
|
["destructive-foreground", "destructive-hover"],
|
|
36
|
-
["destructive", "destructive-subtle"],
|
|
36
|
+
["destructive-text", "destructive-subtle"],
|
|
37
37
|
["success-foreground", "success-subtle"],
|
|
38
38
|
["warning-foreground", "warning-subtle"],
|
|
39
39
|
["info-foreground", "info-subtle"],
|
|
@@ -61,8 +61,19 @@ function pair(name, foreground, background) {
|
|
|
61
61
|
function semanticPairs(map) {
|
|
62
62
|
return SEMANTIC_PAIRS.map(([fg, bg]) => pair(`${fg} on ${bg}`, resolveRef(map[fg]), resolveRef(map[bg])));
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
const BADGE_STEPS = {
|
|
65
|
+
light: {
|
|
66
|
+
background: 100,
|
|
67
|
+
foreground: 700
|
|
68
|
+
},
|
|
69
|
+
dark: {
|
|
70
|
+
background: 700,
|
|
71
|
+
foreground: 100
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
function badgePairs(theme = "light", p = palette) {
|
|
75
|
+
const { background, foreground } = BADGE_STEPS[theme];
|
|
76
|
+
return FAMILIES.map((family) => pair(`badge ${family}`, p[family][foreground], p[family][background]));
|
|
66
77
|
}
|
|
67
78
|
//#endregion
|
|
68
|
-
export { AA, SURFACE_TOKENS, TEXT_TOKENS, badgePairs, semanticPairs };
|
|
79
|
+
export { AA, BADGE_STEPS, SURFACE_TOKENS, TEXT_TOKENS, badgePairs, semanticPairs };
|
|
@@ -2,12 +2,12 @@ import { Family, Step } from "./types.js";
|
|
|
2
2
|
//#region src/tokens/semantic.d.ts
|
|
3
3
|
type OpaqueRef = 'white' | 'black' | `${Family}-${Step}`;
|
|
4
4
|
export type ColorRef = OpaqueRef | `${OpaqueRef}/${number}`;
|
|
5
|
-
export declare const SEMANTIC_TOKENS: readonly ["background", "foreground", "card", "card-foreground", "popover", "popover-foreground", "primary", "primary-hover", "primary-foreground", "secondary", "secondary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "destructive-hover", "destructive-foreground", "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"];
|
|
5
|
+
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"];
|
|
6
6
|
export type SemanticToken = (typeof SEMANTIC_TOKENS)[number];
|
|
7
7
|
export type SemanticMap = Record<SemanticToken, ColorRef>;
|
|
8
8
|
export declare const themes: {
|
|
9
9
|
light: SemanticMap;
|
|
10
|
-
dark
|
|
10
|
+
dark: SemanticMap;
|
|
11
11
|
};
|
|
12
12
|
//#endregion
|
|
13
13
|
export {};
|
package/dist/tokens/semantic.js
CHANGED
|
@@ -1,46 +1,94 @@
|
|
|
1
1
|
import { palette } from "./palette.js";
|
|
2
|
-
const themes = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
2
|
+
const themes = {
|
|
3
|
+
light: {
|
|
4
|
+
background: "white",
|
|
5
|
+
foreground: "gray-800",
|
|
6
|
+
card: "white",
|
|
7
|
+
"card-foreground": "gray-800",
|
|
8
|
+
popover: "white",
|
|
9
|
+
"popover-foreground": "gray-800",
|
|
10
|
+
primary: "blue-600",
|
|
11
|
+
"primary-hover": "blue-700",
|
|
12
|
+
"primary-foreground": "white",
|
|
13
|
+
"primary-text": "blue-600",
|
|
14
|
+
secondary: "gray-100",
|
|
15
|
+
"secondary-foreground": "gray-800",
|
|
16
|
+
muted: "gray-100",
|
|
17
|
+
"muted-foreground": "gray-600",
|
|
18
|
+
accent: "gray-100",
|
|
19
|
+
"accent-foreground": "gray-800",
|
|
20
|
+
destructive: "red-600",
|
|
21
|
+
"destructive-hover": "red-700",
|
|
22
|
+
"destructive-foreground": "white",
|
|
23
|
+
"destructive-text": "red-600",
|
|
24
|
+
"destructive-subtle": "red-50",
|
|
25
|
+
success: "green-600",
|
|
26
|
+
"success-foreground": "green-700",
|
|
27
|
+
"success-subtle": "green-50",
|
|
28
|
+
warning: "orange-600",
|
|
29
|
+
"warning-foreground": "orange-700",
|
|
30
|
+
"warning-subtle": "orange-50",
|
|
31
|
+
info: "blue-600",
|
|
32
|
+
"info-foreground": "blue-700",
|
|
33
|
+
"info-subtle": "blue-50",
|
|
34
|
+
border: "gray-200",
|
|
35
|
+
input: "gray-300",
|
|
36
|
+
ring: "blue-600",
|
|
37
|
+
tooltip: "slate-800",
|
|
38
|
+
"tooltip-foreground": "white",
|
|
39
|
+
"table-header": "slate-50",
|
|
40
|
+
"secondary-hover": "gray-200",
|
|
41
|
+
"accent-hover": "gray-200",
|
|
42
|
+
"accent-selected": "gray-300",
|
|
43
|
+
overlay: "gray-800/45",
|
|
44
|
+
"sidebar-accent": "gray-200",
|
|
45
|
+
"sidebar-indicator": "red-400"
|
|
46
|
+
},
|
|
47
|
+
dark: {
|
|
48
|
+
background: "gray-950",
|
|
49
|
+
foreground: "gray-100",
|
|
50
|
+
card: "gray-950",
|
|
51
|
+
"card-foreground": "gray-100",
|
|
52
|
+
popover: "gray-950",
|
|
53
|
+
"popover-foreground": "gray-100",
|
|
54
|
+
primary: "blue-600",
|
|
55
|
+
"primary-hover": "blue-700",
|
|
56
|
+
"primary-foreground": "white",
|
|
57
|
+
"primary-text": "blue-400",
|
|
58
|
+
secondary: "gray-900",
|
|
59
|
+
"secondary-foreground": "gray-100",
|
|
60
|
+
muted: "gray-900",
|
|
61
|
+
"muted-foreground": "gray-400",
|
|
62
|
+
accent: "gray-900",
|
|
63
|
+
"accent-foreground": "gray-100",
|
|
64
|
+
destructive: "red-600",
|
|
65
|
+
"destructive-hover": "red-700",
|
|
66
|
+
"destructive-foreground": "white",
|
|
67
|
+
"destructive-text": "red-300",
|
|
68
|
+
"destructive-subtle": "red-800",
|
|
69
|
+
success: "green-500",
|
|
70
|
+
"success-foreground": "green-300",
|
|
71
|
+
"success-subtle": "green-800",
|
|
72
|
+
warning: "orange-500",
|
|
73
|
+
"warning-foreground": "orange-300",
|
|
74
|
+
"warning-subtle": "orange-800",
|
|
75
|
+
info: "blue-400",
|
|
76
|
+
"info-foreground": "blue-300",
|
|
77
|
+
"info-subtle": "blue-800",
|
|
78
|
+
border: "white/10",
|
|
79
|
+
input: "white/15",
|
|
80
|
+
ring: "blue-400",
|
|
81
|
+
tooltip: "slate-100",
|
|
82
|
+
"tooltip-foreground": "slate-950",
|
|
83
|
+
"table-header": "slate-900",
|
|
84
|
+
"secondary-hover": "gray-800",
|
|
85
|
+
"accent-hover": "gray-800",
|
|
86
|
+
"accent-selected": "gray-700",
|
|
87
|
+
overlay: "black/60",
|
|
88
|
+
"sidebar-accent": "gray-800",
|
|
89
|
+
"sidebar-indicator": "red-400"
|
|
90
|
+
}
|
|
91
|
+
};
|
|
44
92
|
function resolveRef(ref, p = palette) {
|
|
45
93
|
const slash = ref.indexOf("/");
|
|
46
94
|
if (slash !== -1) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@api7/ui-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "API7 React component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
|
+
"style": "./dist/theme.css",
|
|
15
16
|
"default": "./dist/index.js"
|
|
16
17
|
},
|
|
17
18
|
"./form": {
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
"types": "./dist/tokens/index.d.ts",
|
|
27
28
|
"default": "./dist/tokens/index.js"
|
|
28
29
|
},
|
|
29
|
-
"./
|
|
30
|
+
"./theme.css": "./dist/theme.css",
|
|
30
31
|
"./package.json": "./package.json"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
@@ -41,7 +42,8 @@
|
|
|
41
42
|
"lucide-react": "^1",
|
|
42
43
|
"react": "^19",
|
|
43
44
|
"react-day-picker": "^10.0.1",
|
|
44
|
-
"react-dom": "^19"
|
|
45
|
+
"react-dom": "^19",
|
|
46
|
+
"tailwindcss": "^4.1.0"
|
|
45
47
|
},
|
|
46
48
|
"peerDependenciesMeta": {
|
|
47
49
|
"@tanstack/react-form": {
|
|
@@ -91,10 +93,10 @@
|
|
|
91
93
|
"node": ">=22"
|
|
92
94
|
},
|
|
93
95
|
"scripts": {
|
|
94
|
-
"build": "tsdown &&
|
|
95
|
-
"check-package": "publint --strict && attw --pack . --profile esm-only --exclude-entrypoints ./
|
|
96
|
+
"build": "tsdown && cp src/theme.css src/animations.css dist/",
|
|
97
|
+
"check-package": "publint --strict && attw --pack . --profile esm-only --exclude-entrypoints ./theme.css",
|
|
96
98
|
"typecheck": "tsc -b tsconfig.json",
|
|
97
|
-
"lint": "eslint .",
|
|
99
|
+
"lint": "eslint . --max-warnings 0",
|
|
98
100
|
"test": "vitest run --project unit --maxWorkers=2 && vitest run --project browser --maxWorkers=2",
|
|
99
101
|
"tokens": "jiti scripts/generate-tokens.ts"
|
|
100
102
|
}
|