@ceed/ads 1.13.3 → 1.15.0-next.1

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.
Files changed (71) hide show
  1. package/dist/Overview.md +11 -0
  2. package/dist/components/Input/Input.d.ts +9 -1
  3. package/dist/components/Menu/Menu.d.ts +2 -5
  4. package/dist/components/Stepper/Stepper.d.ts +6 -0
  5. package/dist/components/data-display/Avatar.md +428 -0
  6. package/dist/components/data-display/Badge.md +315 -0
  7. package/dist/components/data-display/Chip.md +301 -0
  8. package/dist/components/data-display/DataTable.md +452 -0
  9. package/dist/components/data-display/InfoSign.md +160 -0
  10. package/dist/components/data-display/Markdown.md +17 -0
  11. package/dist/components/data-display/Table.md +1330 -0
  12. package/dist/components/data-display/Tooltip.md +444 -0
  13. package/dist/components/data-display/Typography.md +271 -0
  14. package/dist/components/data-display/llms.txt +17 -0
  15. package/dist/components/feedback/Alert.md +663 -0
  16. package/dist/components/feedback/Dialog.md +33 -0
  17. package/dist/components/feedback/Modal.md +39 -0
  18. package/dist/components/feedback/llms.txt +11 -0
  19. package/dist/components/inputs/Autocomplete.md +103 -0
  20. package/dist/components/inputs/Button.md +334 -0
  21. package/dist/components/inputs/ButtonGroup.md +382 -0
  22. package/dist/components/inputs/Calendar.md +19 -0
  23. package/dist/components/inputs/Checkbox.md +649 -0
  24. package/dist/components/inputs/CurrencyInput.md +91 -0
  25. package/dist/components/inputs/DatePicker.md +67 -0
  26. package/dist/components/inputs/DateRangePicker.md +55 -0
  27. package/dist/components/inputs/FilterMenu.md +210 -0
  28. package/dist/components/inputs/IconButton.md +361 -0
  29. package/dist/components/inputs/Input.md +283 -0
  30. package/dist/components/inputs/MonthPicker.md +72 -0
  31. package/dist/components/inputs/MonthRangePicker.md +70 -0
  32. package/dist/components/inputs/PercentageInput.md +116 -0
  33. package/dist/components/inputs/RadioButton.md +350 -0
  34. package/dist/components/inputs/RadioTileGroup.md +418 -0
  35. package/dist/components/inputs/Select.md +56 -0
  36. package/dist/components/inputs/Switch.md +577 -0
  37. package/dist/components/inputs/Textarea.md +64 -0
  38. package/dist/components/inputs/Uploader/Uploader.md +238 -0
  39. package/dist/components/inputs/Uploader/llms.txt +9 -0
  40. package/dist/components/inputs/llms.txt +31 -0
  41. package/dist/components/layout/Box.md +997 -0
  42. package/dist/components/layout/Container.md +23 -0
  43. package/dist/components/layout/Grid.md +728 -0
  44. package/dist/components/layout/Stack.md +937 -0
  45. package/dist/components/layout/llms.txt +12 -0
  46. package/dist/components/llms.txt +14 -0
  47. package/dist/components/navigation/Breadcrumbs.md +51 -0
  48. package/dist/components/navigation/Dropdown.md +768 -0
  49. package/dist/components/navigation/IconMenuButton.md +35 -0
  50. package/dist/components/navigation/InsetDrawer.md +133 -0
  51. package/dist/components/navigation/Link.md +24 -0
  52. package/dist/components/navigation/Menu.md +957 -0
  53. package/dist/components/navigation/MenuButton.md +39 -0
  54. package/dist/components/navigation/NavigationGroup.md +17 -0
  55. package/dist/components/navigation/NavigationItem.md +17 -0
  56. package/dist/components/navigation/Navigator.md +17 -0
  57. package/dist/components/navigation/Pagination.md +17 -0
  58. package/dist/components/navigation/ProfileMenu.md +34 -0
  59. package/dist/components/navigation/Stepper.md +108 -0
  60. package/dist/components/navigation/Tabs.md +34 -0
  61. package/dist/components/navigation/llms.txt +22 -0
  62. package/dist/components/surfaces/Accordions.md +96 -0
  63. package/dist/components/surfaces/Card.md +786 -0
  64. package/dist/components/surfaces/Divider.md +762 -0
  65. package/dist/components/surfaces/Sheet.md +900 -0
  66. package/dist/components/surfaces/llms.txt +12 -0
  67. package/dist/index.cjs +47 -11
  68. package/dist/index.js +81 -45
  69. package/dist/llms.txt +75 -0
  70. package/framer/index.js +36 -36
  71. package/package.json +8 -4
@@ -0,0 +1,35 @@
1
+ # IconMenuButton
2
+
3
+ ## Introduction
4
+
5
+ ```tsx
6
+ <IconMenuButton
7
+ icon={<MoreVert />}
8
+ items={[{
9
+ text: 'Profile'
10
+ }, {
11
+ text: 'My account'
12
+ }, {
13
+ text: 'Logout'
14
+ }]}
15
+ variant="solid"
16
+ color="primary"
17
+ />
18
+ ```
19
+
20
+ | Field | Description | Default |
21
+ | -------------------- | ----------- | --------------------------------------------------------------------- |
22
+ | icon | — | \<MoreVert /> |
23
+ | buttonComponent | — | — |
24
+ | buttonComponentProps | — | — |
25
+ | items | — | \[\{ text: 'Profile' }, \{ text: 'My account' }, \{ text: 'Logout' }] |
26
+ | placement | — | — |
27
+ | variant | — | "solid" |
28
+ | color | — | "primary" |
29
+ | size | — | — |
30
+
31
+ ## Usage
32
+
33
+ ```tsx
34
+ import { IconMenuButton } from '@ceed/ads';
35
+ ```
@@ -0,0 +1,133 @@
1
+ # InsetDrawer
2
+
3
+ ## Introduction
4
+
5
+ ```tsx
6
+ <InsetDrawer {...args}>
7
+ <Sheet sx={{
8
+ borderRadius: 'md',
9
+ p: 2,
10
+ display: 'flex',
11
+ flexDirection: 'column',
12
+ gap: 2,
13
+ height: '100%',
14
+ overflow: 'auto'
15
+ }}>
16
+ <DialogTitle>Filters</DialogTitle>
17
+ <ModalClose />
18
+ <Divider sx={{
19
+ mt: 'auto'
20
+ }} />
21
+ <DialogContent>
22
+ <FormControl>
23
+ <FormLabel sx={{
24
+ typography: 'title-md',
25
+ fontWeight: 'bold'
26
+ }}>Property type</FormLabel>
27
+ <RadioGroup>
28
+ <Box sx={{
29
+ display: 'grid',
30
+ gridTemplateColumns: 'repeat(auto-fill, minmax(140px, 1fr))',
31
+ gap: 1.5
32
+ }}>
33
+ {[{
34
+ name: 'House',
35
+ icon: <HomeRoundedIcon />
36
+ }, {
37
+ name: 'Apartment',
38
+ icon: <ApartmentRoundedIcon />
39
+ }, {
40
+ name: 'Guesthouse',
41
+ icon: <MeetingRoomRoundedIcon />
42
+ }, {
43
+ name: 'Hotel',
44
+ icon: <HotelRoundedIcon />
45
+ }].map(item => <Card key={item.name} sx={{
46
+ boxShadow: 'none',
47
+ '&:hover': {
48
+ bgcolor: 'background.level1'
49
+ }
50
+ }}>
51
+ <CardContent>
52
+ {item.icon}
53
+ <Typography level="title-md">{item.name}</Typography>
54
+ </CardContent>
55
+ <Radio disableIcon overlay variant="outlined" color="neutral" value={item.name} sx={{
56
+ mt: -2
57
+ }} slotProps={{
58
+ action: {
59
+ sx: {
60
+ '&:hover': {
61
+ bgcolor: 'transparent'
62
+ }
63
+ }
64
+ }
65
+ }} />
66
+ </Card>)}
67
+ </Box>
68
+ </RadioGroup>
69
+ </FormControl>
70
+
71
+ <Typography level="title-md" fontWeight="bold" sx={{
72
+ mt: 2
73
+ }}>
74
+ Booking options
75
+ </Typography>
76
+ <FormControl orientation="horizontal">
77
+ <Box sx={{
78
+ flex: 1,
79
+ pr: 1
80
+ }}>
81
+ <FormLabel sx={{
82
+ typography: 'title-sm'
83
+ }}>Instant booking</FormLabel>
84
+ <FormHelperText sx={{
85
+ typography: 'body-sm'
86
+ }}>
87
+ Listings that you can book without waiting for host approval.
88
+ </FormHelperText>
89
+ </Box>
90
+ <Switch />
91
+ </FormControl>
92
+
93
+ <FormControl orientation="horizontal">
94
+ <Box sx={{
95
+ flex: 1,
96
+ mt: 1,
97
+ mr: 1
98
+ }}>
99
+ <FormLabel sx={{
100
+ typography: 'title-sm'
101
+ }}>Self check-in</FormLabel>
102
+ <FormHelperText sx={{
103
+ typography: 'body-sm'
104
+ }}>
105
+ Easy access to the property when you arrive.
106
+ </FormHelperText>
107
+ </Box>
108
+ <Switch />
109
+ </FormControl>
110
+ </DialogContent>
111
+
112
+ <Divider sx={{
113
+ mt: 'auto'
114
+ }} />
115
+ <Stack direction="row" justifyContent="space-between" useFlexGap spacing={1}>
116
+ <Button variant="outlined" color="neutral">
117
+ Clear
118
+ </Button>
119
+ <Button>Show 165 properties</Button>
120
+ </Stack>
121
+ </Sheet>
122
+ </InsetDrawer>
123
+ ```
124
+
125
+ | Field | Description | Default |
126
+ | ---------------------------- | ----------- | ------- |
127
+ | Controls resolved at runtime | — | — |
128
+
129
+ ## Usage
130
+
131
+ ```tsx
132
+ import { InsetDrawer } from '@ceed/ads';
133
+ ```
@@ -0,0 +1,24 @@
1
+ # Link
2
+
3
+ ## Introduction
4
+
5
+ ```tsx
6
+ <Link
7
+ children="Link"
8
+ variant="plain"
9
+ />
10
+ ```
11
+
12
+ | Field | Description | Default |
13
+ | --------- | ----------- | ------- |
14
+ | variant | — | "plain" |
15
+ | color | — | — |
16
+ | level | — | — |
17
+ | disabled | — | — |
18
+ | underline | — | — |
19
+
20
+ ## Usage
21
+
22
+ ```tsx
23
+ import { Link } from '@ceed/ads';
24
+ ```