anvilui 0.1.0 → 0.3.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/AGENTS.md +483 -0
- package/README.md +60 -40
- package/bin/anvilui.mjs +83 -0
- package/dist/colors/colors.d.ts +10 -2
- package/dist/components/Accordion/Accordion.d.ts +36 -0
- package/dist/components/AnimatedNumber/AnimatedNumber.d.ts +17 -0
- package/dist/components/AnvilRoot/AnvilContext.d.ts +22 -2
- package/dist/components/AnvilRoot/AnvilRoot.d.ts +44 -6
- package/dist/components/AppBar/AppBar.d.ts +13 -2
- package/dist/components/Avatar/Avatar.d.ts +6 -2
- package/dist/components/Avatar/AvatarGroupContext.d.ts +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +25 -0
- package/dist/components/Badge/Badge.d.ts +4 -0
- package/dist/components/BottomSheet/BottomSheet.d.ts +22 -0
- package/dist/components/Button/Button.d.ts +17 -0
- package/dist/components/Calendar/Calendar.d.ts +19 -0
- package/dist/components/Card/Card.d.ts +36 -0
- package/dist/components/Carousel/Carousel.d.ts +21 -0
- package/dist/components/Checkbox/Checkbox.d.ts +10 -0
- package/dist/components/Chip/Chip.d.ts +25 -2
- package/dist/components/Combobox/Combobox.d.ts +48 -0
- package/dist/components/Confetti/Confetti.d.ts +31 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +24 -0
- package/dist/components/DateInput/DateInput.d.ts +39 -0
- package/dist/components/Dialog/Dialog.d.ts +32 -0
- package/dist/components/Divider/Divider.d.ts +8 -0
- package/dist/components/FAB/FAB.d.ts +4 -0
- package/dist/components/FAB/magnet.d.ts +2 -0
- package/dist/components/FABMenu/FABMenu.d.ts +55 -0
- package/dist/components/Field/Field.d.ts +20 -0
- package/dist/components/FloatingToolbar/FloatingToolbar.d.ts +15 -0
- package/dist/components/HoldButton/HoldButton.d.ts +4 -1
- package/dist/components/Icon/Icon.d.ts +14 -0
- package/dist/components/IconButton/IconButton.d.ts +14 -1
- package/dist/components/Input/Input.d.ts +14 -3
- package/dist/components/Kbd/Kbd.d.ts +21 -0
- package/dist/components/List/List.d.ts +10 -1
- package/dist/components/Menu/Menu.d.ts +32 -0
- package/dist/components/Menubar/Menubar.d.ts +17 -0
- package/dist/components/NavigationBar/NavigationBar.d.ts +10 -0
- package/dist/components/NavigationDrawer/NavigationDrawer.d.ts +22 -0
- package/dist/components/NavigationList/NavigationList.d.ts +27 -0
- package/dist/components/NavigationRail/NavigationRail.d.ts +25 -9
- package/dist/components/PinInput/PinInput.d.ts +33 -0
- package/dist/components/Popover/Popover.d.ts +30 -2
- package/dist/components/PreviewCard/PreviewCard.d.ts +31 -0
- package/dist/components/Progress/Progress.d.ts +12 -2
- package/dist/components/RadioGroup/RadioGroup.d.ts +14 -2
- package/dist/components/Search/Search.d.ts +55 -0
- package/dist/components/Select/Select.d.ts +21 -4
- package/dist/components/Skeleton/Skeleton.d.ts +20 -0
- package/dist/components/Slider/Slider.d.ts +7 -1
- package/dist/components/Snackbar/Snackbar.d.ts +7 -2
- package/dist/components/SplitButton/SplitButton.d.ts +13 -0
- package/dist/components/SquigglyWave/SquigglyWave.d.ts +26 -4
- package/dist/components/Sticker/Sticker.d.ts +21 -0
- package/dist/components/Switch/Switch.d.ts +11 -0
- package/dist/components/Table/Table.d.ts +36 -0
- package/dist/components/Tabs/Tabs.d.ts +17 -0
- package/dist/components/Textarea/Textarea.d.ts +14 -3
- package/dist/components/TimePicker/TimePicker.d.ts +47 -0
- package/dist/components/Toggle/Toggle.d.ts +42 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +16 -4
- package/dist/components/Tooltip/Tooltip.d.ts +10 -1
- package/dist/components/Typography/Typography.d.ts +13 -1
- package/dist/datetime.d.ts +12 -0
- package/dist/dev.d.ts +15 -0
- package/dist/index.cjs +3365 -654
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1443 -367
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +50 -4
- package/dist/index.js +3362 -667
- package/dist/index.js.map +1 -1
- package/dist/themes/baseTheme.d.ts +2 -0
- package/dist/themes/createTheme.d.ts +22 -0
- package/dist/themes/monochromeTheme.d.ts +2 -0
- package/dist/themes/types.d.ts +13 -8
- package/dist/tokens/baseTokens.d.ts +4 -0
- package/dist/tokens/types.d.ts +34 -0
- package/dist/utils.d.ts +4 -0
- package/docs/accordion.md +47 -0
- package/docs/animated-number.md +31 -0
- package/docs/app-bar.md +53 -0
- package/docs/avatar-group.md +35 -0
- package/docs/avatar.md +34 -0
- package/docs/badge.md +41 -0
- package/docs/bottom-sheet.md +65 -0
- package/docs/button.md +63 -0
- package/docs/calendar.md +26 -0
- package/docs/card.md +71 -0
- package/docs/carousel.md +43 -0
- package/docs/checkbox.md +37 -0
- package/docs/chip.md +48 -0
- package/docs/combobox.md +73 -0
- package/docs/composition.md +80 -0
- package/docs/confetti.md +30 -0
- package/docs/context-menu.md +42 -0
- package/docs/date-input.md +42 -0
- package/docs/dialog.md +106 -0
- package/docs/divider.md +31 -0
- package/docs/fab-menu.md +55 -0
- package/docs/fab.md +43 -0
- package/docs/field.md +59 -0
- package/docs/floating-toolbar.md +48 -0
- package/docs/forms.md +81 -0
- package/docs/hold-button.md +32 -0
- package/docs/icon-button.md +55 -0
- package/docs/icons.md +38 -0
- package/docs/input.md +51 -0
- package/docs/kbd.md +25 -0
- package/docs/list.md +65 -0
- package/docs/llms-index.md +82 -0
- package/docs/menu.md +88 -0
- package/docs/menubar.md +34 -0
- package/docs/morph.md +54 -0
- package/docs/navigation-bar.md +48 -0
- package/docs/navigation-drawer.md +72 -0
- package/docs/navigation-list.md +40 -0
- package/docs/navigation-rail.md +53 -0
- package/docs/pin-input.md +38 -0
- package/docs/popover.md +78 -0
- package/docs/preview-card.md +40 -0
- package/docs/progress.md +37 -0
- package/docs/radio-group.md +64 -0
- package/docs/search.md +77 -0
- package/docs/select.md +65 -0
- package/docs/setup.md +106 -0
- package/docs/skeleton.md +33 -0
- package/docs/slider.md +49 -0
- package/docs/snackbar.md +50 -0
- package/docs/split-button.md +44 -0
- package/docs/sticker.md +27 -0
- package/docs/switch.md +44 -0
- package/docs/table.md +66 -0
- package/docs/tabs.md +51 -0
- package/docs/textarea.md +23 -0
- package/docs/theming.md +183 -0
- package/docs/time-picker.md +39 -0
- package/docs/toggle-group.md +70 -0
- package/docs/toggle.md +49 -0
- package/docs/tooltip.md +42 -0
- package/docs/typography.md +41 -0
- package/package.json +25 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
export { AnimatedNumber } from './components/AnimatedNumber/AnimatedNumber';
|
|
2
|
+
export type { AnimatedNumberProps } from './components/AnimatedNumber/AnimatedNumber';
|
|
1
3
|
export { AppBar } from './components/AppBar/AppBar';
|
|
2
4
|
export type { AppBarProps } from './components/AppBar/AppBar';
|
|
3
5
|
export { Avatar } from './components/Avatar/Avatar';
|
|
4
6
|
export type { AvatarProps } from './components/Avatar/Avatar';
|
|
7
|
+
export { AvatarGroup } from './components/AvatarGroup/AvatarGroup';
|
|
8
|
+
export type { AvatarGroupProps } from './components/AvatarGroup/AvatarGroup';
|
|
5
9
|
export { Badge } from './components/Badge/Badge';
|
|
6
10
|
export type { BadgeProps } from './components/Badge/Badge';
|
|
7
11
|
export { BottomSheet, BottomSheetTrigger, BottomSheetPopup, BottomSheetTitle, BottomSheetDescription, BottomSheetClose, } from './components/BottomSheet/BottomSheet';
|
|
@@ -14,16 +18,24 @@ export { HoldButton } from './components/HoldButton/HoldButton';
|
|
|
14
18
|
export type { HoldButtonProps } from './components/HoldButton/HoldButton';
|
|
15
19
|
export { Card, CardTitle, CardContent, CardActions, } from './components/Card/Card';
|
|
16
20
|
export type { CardProps, CardTitleProps, CardContentProps, CardActionsProps, } from './components/Card/Card';
|
|
21
|
+
export { Calendar } from './components/Calendar/Calendar';
|
|
22
|
+
export type { CalendarProps } from './components/Calendar/Calendar';
|
|
23
|
+
export { Carousel, CarouselItem } from './components/Carousel/Carousel';
|
|
24
|
+
export type { CarouselProps, CarouselItemProps, } from './components/Carousel/Carousel';
|
|
17
25
|
export { Chip, FilterChip, InputChip } from './components/Chip/Chip';
|
|
18
26
|
export type { ChipProps, FilterChipProps, InputChipProps, } from './components/Chip/Chip';
|
|
19
27
|
export { Checkbox } from './components/Checkbox/Checkbox';
|
|
20
28
|
export type { CheckboxProps } from './components/Checkbox/Checkbox';
|
|
21
29
|
export { Dialog, DialogTrigger, DialogPopup, DialogTitle, DialogDescription, DialogActions, DialogClose, } from './components/Dialog/Dialog';
|
|
22
30
|
export type { DialogProps, DialogTriggerProps, DialogPopupProps, DialogTitleProps, DialogDescriptionProps, DialogActionsProps, DialogCloseProps, } from './components/Dialog/Dialog';
|
|
31
|
+
export { useConfetti } from './components/Confetti/Confetti';
|
|
32
|
+
export type { ConfettiOptions, ConfettiOrigin, } from './components/Confetti/Confetti';
|
|
23
33
|
export { Divider } from './components/Divider/Divider';
|
|
24
34
|
export type { DividerProps } from './components/Divider/Divider';
|
|
25
35
|
export { FAB } from './components/FAB/FAB';
|
|
26
36
|
export type { FABProps } from './components/FAB/FAB';
|
|
37
|
+
export { FABMenu, FABMenuItem } from './components/FABMenu/FABMenu';
|
|
38
|
+
export type { FABMenuProps, FABMenuItemProps, } from './components/FABMenu/FABMenu';
|
|
27
39
|
export { Field, FieldDescription, FieldError } from './components/Field/Field';
|
|
28
40
|
export type { FieldProps, FieldDescriptionProps, FieldErrorProps, } from './components/Field/Field';
|
|
29
41
|
export { Icon } from './components/Icon/Icon';
|
|
@@ -32,12 +44,22 @@ export { IconButton } from './components/IconButton/IconButton';
|
|
|
32
44
|
export type { IconButtonProps } from './components/IconButton/IconButton';
|
|
33
45
|
export { Input } from './components/Input/Input';
|
|
34
46
|
export type { InputProps } from './components/Input/Input';
|
|
47
|
+
export { Kbd } from './components/Kbd/Kbd';
|
|
48
|
+
export type { KbdProps } from './components/Kbd/Kbd';
|
|
35
49
|
export { List, ListItem } from './components/List/List';
|
|
36
50
|
export type { ListProps, ListItemProps } from './components/List/List';
|
|
37
51
|
export { Menu, MenuTrigger, MenuPopup, MenuItem, MenuGroup, MenuSubmenu, MenuSubmenuTrigger, } from './components/Menu/Menu';
|
|
38
52
|
export type { MenuProps, MenuTriggerProps, MenuPopupProps, MenuItemProps, MenuGroupProps, MenuSubmenuProps, MenuSubmenuTriggerProps, } from './components/Menu/Menu';
|
|
53
|
+
export { Menubar } from './components/Menubar/Menubar';
|
|
54
|
+
export type { MenubarProps } from './components/Menubar/Menubar';
|
|
55
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionPanel, } from './components/Accordion/Accordion';
|
|
56
|
+
export type { AccordionProps, AccordionItemProps, AccordionTriggerProps, AccordionPanelProps, } from './components/Accordion/Accordion';
|
|
57
|
+
export { ContextMenu, ContextMenuTrigger, } from './components/ContextMenu/ContextMenu';
|
|
58
|
+
export type { ContextMenuProps, ContextMenuTriggerProps, } from './components/ContextMenu/ContextMenu';
|
|
39
59
|
export { Popover, PopoverTrigger, PopoverPopup, PopoverTitle, PopoverDescription, PopoverClose, } from './components/Popover/Popover';
|
|
40
60
|
export type { PopoverProps, PopoverTriggerProps, PopoverPopupProps, PopoverTitleProps, PopoverDescriptionProps, PopoverCloseProps, } from './components/Popover/Popover';
|
|
61
|
+
export { PreviewCard, PreviewCardTrigger, PreviewCardPopup, } from './components/PreviewCard/PreviewCard';
|
|
62
|
+
export type { PreviewCardProps, PreviewCardTriggerProps, PreviewCardPopupProps, } from './components/PreviewCard/PreviewCard';
|
|
41
63
|
export { Progress } from './components/Progress/Progress';
|
|
42
64
|
export type { ProgressProps } from './components/Progress/Progress';
|
|
43
65
|
export { ToggleGroup, ToggleGroupItem, } from './components/ToggleGroup/ToggleGroup';
|
|
@@ -46,12 +68,30 @@ export { RadioGroup, Radio } from './components/RadioGroup/RadioGroup';
|
|
|
46
68
|
export type { RadioGroupProps, RadioProps, } from './components/RadioGroup/RadioGroup';
|
|
47
69
|
export { Select, SelectItem } from './components/Select/Select';
|
|
48
70
|
export type { SelectProps, SelectItemProps } from './components/Select/Select';
|
|
71
|
+
export { TimePicker } from './components/TimePicker/TimePicker';
|
|
72
|
+
export type { TimePickerProps } from './components/TimePicker/TimePicker';
|
|
73
|
+
export { DateInput } from './components/DateInput/DateInput';
|
|
74
|
+
export type { DateInputProps } from './components/DateInput/DateInput';
|
|
75
|
+
export { Combobox, ComboboxItem } from './components/Combobox/Combobox';
|
|
76
|
+
export { PinInput } from './components/PinInput/PinInput';
|
|
77
|
+
export type { PinInputProps } from './components/PinInput/PinInput';
|
|
78
|
+
export type { ComboboxProps, ComboboxItemProps, } from './components/Combobox/Combobox';
|
|
79
|
+
export { Toggle } from './components/Toggle/Toggle';
|
|
80
|
+
export type { ToggleProps } from './components/Toggle/Toggle';
|
|
81
|
+
export { Search, SearchItem } from './components/Search/Search';
|
|
82
|
+
export type { SearchProps, SearchItemProps } from './components/Search/Search';
|
|
83
|
+
export { Skeleton } from './components/Skeleton/Skeleton';
|
|
84
|
+
export type { SkeletonProps } from './components/Skeleton/Skeleton';
|
|
49
85
|
export { Slider } from './components/Slider/Slider';
|
|
50
86
|
export type { SliderProps } from './components/Slider/Slider';
|
|
51
87
|
export { useSnackbar } from './components/Snackbar/Snackbar';
|
|
52
88
|
export type { SnackbarOptions } from './components/Snackbar/Snackbar';
|
|
89
|
+
export { Sticker } from './components/Sticker/Sticker';
|
|
90
|
+
export type { StickerProps } from './components/Sticker/Sticker';
|
|
53
91
|
export { Switch } from './components/Switch/Switch';
|
|
54
92
|
export type { SwitchProps } from './components/Switch/Switch';
|
|
93
|
+
export { Table, TableCaption, TableHead, TableBody, TableRow, TableHeaderCell, TableCell, } from './components/Table/Table';
|
|
94
|
+
export type { TableProps, TableCaptionProps, TableHeadProps, TableBodyProps, TableRowProps, TableHeaderCellProps, TableCellProps, } from './components/Table/Table';
|
|
55
95
|
export { Tabs, TabsList, TabsTab, TabsPanel } from './components/Tabs/Tabs';
|
|
56
96
|
export type { TabsProps, TabsListProps, TabsTabProps, TabsPanelProps, } from './components/Tabs/Tabs';
|
|
57
97
|
export { Textarea } from './components/Textarea/Textarea';
|
|
@@ -64,20 +104,26 @@ export { Typography } from './components/Typography/Typography';
|
|
|
64
104
|
export type { TypographyProps, TypographyType, TypographyTag, } from './components/Typography/Typography';
|
|
65
105
|
export { NavigationBar, NavigationBarItem, } from './components/NavigationBar/NavigationBar';
|
|
66
106
|
export type { NavigationBarProps, NavigationBarItemProps, } from './components/NavigationBar/NavigationBar';
|
|
107
|
+
export { NavigationRail, NavigationRailToggle, NavigationRailItem, } from './components/NavigationRail/NavigationRail';
|
|
108
|
+
export type { NavigationRailProps, NavigationRailToggleProps, NavigationRailItemProps, } from './components/NavigationRail/NavigationRail';
|
|
109
|
+
export { NavigationList, NavigationListItem, } from './components/NavigationList/NavigationList';
|
|
110
|
+
export type { NavigationListProps, NavigationListItemProps, } from './components/NavigationList/NavigationList';
|
|
67
111
|
export { NavigationDrawer, NavigationDrawerTrigger, NavigationDrawerPopup, NavigationDrawerTitle, NavigationDrawerItem, } from './components/NavigationDrawer/NavigationDrawer';
|
|
68
112
|
export type { NavigationDrawerProps, NavigationDrawerTriggerProps, NavigationDrawerPopupProps, NavigationDrawerTitleProps, NavigationDrawerItemProps, } from './components/NavigationDrawer/NavigationDrawer';
|
|
69
|
-
|
|
70
|
-
export type {
|
|
113
|
+
/** Every Material Symbols icon name, the type of `icon`, `startIcon`, `endIcon` and `Icon`'s `name`. */
|
|
114
|
+
export type { MaterialSymbol } from 'material-symbols';
|
|
71
115
|
export type { ComponentColor } from './colors/colors';
|
|
72
116
|
export type { ComponentFillType, ColorProps } from './colors/colors';
|
|
73
117
|
export { baseDesignTokens } from './tokens/baseTokens';
|
|
74
118
|
export type { DesignTokens, Font, FontSize, Ease, EaseLength, } from './tokens/types';
|
|
75
119
|
export { baseLightTheme, baseDarkTheme } from './themes/baseTheme';
|
|
120
|
+
export { createTheme, createThemeFromImage } from './themes/createTheme';
|
|
121
|
+
export type { ThemePair, CreateThemeOptions } from './themes/createTheme';
|
|
76
122
|
export { monochromeLightTheme, monochromeDarkTheme, } from './themes/monochromeTheme';
|
|
77
123
|
export type { Theme } from './themes/types';
|
|
78
124
|
export { AnvilRoot } from './components/AnvilRoot/AnvilRoot';
|
|
79
125
|
export type { AnvilRootProps } from './components/AnvilRoot/AnvilRoot';
|
|
80
|
-
export { AnvilContext } from './components/AnvilRoot/AnvilContext';
|
|
81
|
-
export type { ColorType } from './components/AnvilRoot/AnvilContext';
|
|
126
|
+
export { AnvilContext, useAnvil } from './components/AnvilRoot/AnvilContext';
|
|
127
|
+
export type { ColorType, ColorModeSetting, } from './components/AnvilRoot/AnvilContext';
|
|
82
128
|
export { morph, morphBetween } from './morph';
|
|
83
129
|
export type { MorphOptions } from './morph';
|