@sybilion/uilib 1.4.20 → 1.4.22

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 (83) hide show
  1. package/assets/globals.css +3 -0
  2. package/dist/agent-glossary/workspace.generated.ts +2 -0
  3. package/dist/agent-glossary/workspace.index.md +2 -0
  4. package/dist/agent-glossary/workspace.md +2 -0
  5. package/dist/esm/components/ui/Checkbox/Checkbox.js +2 -2
  6. package/dist/esm/components/ui/Checkbox/Checkbox.styl.js +2 -2
  7. package/dist/esm/components/ui/DatePicker/Calendar.js +72 -0
  8. package/dist/esm/components/ui/DatePicker/DatePicker.js +81 -0
  9. package/dist/esm/components/ui/DatePicker/DatePicker.styl.js +7 -0
  10. package/dist/esm/components/ui/DatePicker/DatePickerInput.js +70 -0
  11. package/dist/esm/components/ui/DatePicker/DateRangePickerInput.js +130 -0
  12. package/dist/esm/components/ui/DatePicker/dateUtils.js +137 -0
  13. package/dist/esm/components/ui/RadioGroup/RadioGroup.helpers.js +6 -0
  14. package/dist/esm/components/ui/RadioGroup/RadioGroup.js +18 -0
  15. package/dist/esm/components/ui/RadioGroup/RadioGroup.styl.js +7 -0
  16. package/dist/esm/components/ui/Sidebar/SidebarGroup/SidebarGroup.styl.js +1 -1
  17. package/dist/esm/components/ui/TextShimmer/TextShimmer.js +1 -1
  18. package/dist/esm/components/ui/TextShimmer/TextShimmer.styl.js +1 -1
  19. package/dist/esm/index.js +5 -0
  20. package/dist/esm/types/src/components/ui/Checkbox/Checkbox.d.ts +1 -1
  21. package/dist/esm/types/src/components/ui/Checkbox/Checkbox.types.d.ts +2 -0
  22. package/dist/esm/types/src/components/ui/Checkbox/index.d.ts +1 -1
  23. package/dist/esm/types/src/components/ui/DatePicker/Calendar.d.ts +2 -0
  24. package/dist/esm/types/src/components/ui/DatePicker/DatePicker.d.ts +2 -0
  25. package/dist/esm/types/src/components/ui/DatePicker/DatePicker.types.d.ts +60 -0
  26. package/dist/esm/types/src/components/ui/DatePicker/DatePickerInput.d.ts +2 -0
  27. package/dist/esm/types/src/components/ui/DatePicker/DateRangePickerInput.d.ts +2 -0
  28. package/dist/esm/types/src/components/ui/DatePicker/dateUtils.d.ts +30 -0
  29. package/dist/esm/types/src/components/ui/DatePicker/index.d.ts +6 -0
  30. package/dist/esm/types/src/components/ui/RadioGroup/RadioGroup.d.ts +4 -0
  31. package/dist/esm/types/src/components/ui/RadioGroup/RadioGroup.example.d.ts +1 -0
  32. package/dist/esm/types/src/components/ui/RadioGroup/RadioGroup.helpers.d.ts +3 -0
  33. package/dist/esm/types/src/components/ui/RadioGroup/RadioGroup.types.d.ts +11 -0
  34. package/dist/esm/types/src/components/ui/RadioGroup/index.d.ts +2 -0
  35. package/dist/esm/types/src/docs/pages/DataDisplayOverviewPage.d.ts +1 -0
  36. package/dist/esm/types/src/docs/pages/DatePickerPage.d.ts +1 -0
  37. package/dist/esm/types/src/docs/pages/FeedbackOverviewPage.d.ts +1 -0
  38. package/dist/esm/types/src/docs/pages/FormsOverviewPage.d.ts +1 -0
  39. package/dist/esm/types/src/docs/pages/LayoutOverviewPage.d.ts +1 -0
  40. package/dist/esm/types/src/docs/pages/NavigationOverviewPage.d.ts +1 -0
  41. package/dist/esm/types/src/docs/pages/OverlaysOverviewPage.d.ts +1 -0
  42. package/dist/esm/types/src/docs/pages/RadioGroupPage.d.ts +1 -0
  43. package/dist/esm/types/src/index.d.ts +2 -0
  44. package/package.json +2 -1
  45. package/src/components/ui/Checkbox/AGENT.md +1 -0
  46. package/src/components/ui/Checkbox/Checkbox.styl +26 -2
  47. package/src/components/ui/Checkbox/Checkbox.styl.d.ts +4 -0
  48. package/src/components/ui/Checkbox/Checkbox.tsx +3 -3
  49. package/src/components/ui/Checkbox/Checkbox.types.ts +5 -1
  50. package/src/components/ui/Checkbox/index.ts +1 -1
  51. package/src/components/ui/DatePicker/AGENT.md +45 -0
  52. package/src/components/ui/DatePicker/Calendar.tsx +160 -0
  53. package/src/components/ui/DatePicker/DatePicker.styl +219 -0
  54. package/src/components/ui/DatePicker/DatePicker.styl.d.ts +39 -0
  55. package/src/components/ui/DatePicker/DatePicker.tsx +160 -0
  56. package/src/components/ui/DatePicker/DatePicker.types.ts +91 -0
  57. package/src/components/ui/DatePicker/DatePickerInput.tsx +169 -0
  58. package/src/components/ui/DatePicker/DateRangePickerInput.tsx +276 -0
  59. package/src/components/ui/DatePicker/dateUtils.ts +199 -0
  60. package/src/components/ui/DatePicker/index.ts +13 -0
  61. package/src/components/ui/RadioGroup/AGENT.md +24 -0
  62. package/src/components/ui/RadioGroup/RadioGroup.example.tsx +136 -0
  63. package/src/components/ui/RadioGroup/RadioGroup.helpers.ts +11 -0
  64. package/src/components/ui/RadioGroup/RadioGroup.styl +70 -0
  65. package/src/components/ui/RadioGroup/RadioGroup.styl.d.ts +13 -0
  66. package/src/components/ui/RadioGroup/RadioGroup.tsx +58 -0
  67. package/src/components/ui/RadioGroup/RadioGroup.types.ts +19 -0
  68. package/src/components/ui/RadioGroup/index.ts +6 -0
  69. package/src/components/ui/Sidebar/SidebarGroup/SidebarGroup.styl +3 -0
  70. package/src/components/ui/TextShimmer/TextShimmer.styl +1 -0
  71. package/src/components/ui/TextShimmer/TextShimmer.tsx +1 -1
  72. package/src/docs/components/DocsSidebar/DocsSidebar.tsx +7 -1
  73. package/src/docs/pages/CheckboxPage.tsx +129 -18
  74. package/src/docs/pages/DataDisplayOverviewPage.tsx +241 -0
  75. package/src/docs/pages/DatePickerPage.tsx +183 -0
  76. package/src/docs/pages/FeedbackOverviewPage.tsx +57 -0
  77. package/src/docs/pages/FormsOverviewPage.tsx +721 -0
  78. package/src/docs/pages/LayoutOverviewPage.tsx +259 -0
  79. package/src/docs/pages/NavigationOverviewPage.tsx +94 -0
  80. package/src/docs/pages/OverlaysOverviewPage.tsx +196 -0
  81. package/src/docs/pages/RadioGroupPage.tsx +21 -0
  82. package/src/docs/registry.ts +48 -0
  83. package/src/index.ts +2 -0
@@ -0,0 +1,259 @@
1
+ import type { CSSProperties } from 'react';
2
+
3
+ import { Button } from '#uilib/components/ui/Button';
4
+ import {
5
+ Card,
6
+ CardContent,
7
+ CardFooter,
8
+ CardHeader,
9
+ } from '#uilib/components/ui/Card';
10
+ import { Foldable } from '#uilib/components/ui/Foldable';
11
+ import { GridLayout } from '#uilib/components/ui/GridLayout/GridLayout';
12
+ import { InteractiveContent } from '#uilib/components/ui/InteractiveContent';
13
+ import {
14
+ PageColumns,
15
+ PageContent,
16
+ PageContentSection,
17
+ PageFooter,
18
+ PageTabs,
19
+ } from '#uilib/components/ui/Page';
20
+ import { Separator } from '#uilib/components/ui/Separator';
21
+ import {
22
+ SidebarGroup,
23
+ SidebarGroupLabel,
24
+ SidebarMenu,
25
+ SidebarMenuButton,
26
+ SidebarMenuItem,
27
+ } from '#uilib/components/ui/Sidebar/Sidebar';
28
+ import {
29
+ Tabs,
30
+ TabsContent,
31
+ TabsList,
32
+ TabsTrigger,
33
+ } from '#uilib/components/ui/Tabs';
34
+ import { BadgeCheck } from 'lucide-react';
35
+
36
+ import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
37
+ import { DocsHeaderActions } from '../docsHeaderActions';
38
+
39
+ const panelStyle: React.CSSProperties = {
40
+ padding: 'var(--p-3)',
41
+ borderRadius: 'var(--radius-3)',
42
+ };
43
+
44
+ const CARD_WIDTH = 280;
45
+
46
+ const tileStyle: CSSProperties = {
47
+ margin: 0,
48
+ padding: 'var(--p-4)',
49
+ borderRadius: 'var(--p-3)',
50
+ border: '1px solid var(--border)',
51
+ backgroundColor: 'var(--muted)',
52
+ };
53
+
54
+ const columnBlockStyle: CSSProperties = {
55
+ margin: 0,
56
+ padding: 'var(--p-4)',
57
+ borderRadius: 'var(--p-3)',
58
+ border: '1px solid var(--border)',
59
+ backgroundColor: 'var(--muted)',
60
+ };
61
+
62
+ const PAGE_TABS_ITEMS = [
63
+ {
64
+ value: 'tab-a',
65
+ label: 'Overview',
66
+ content: <p style={{ margin: 0 }}>Tab A content.</p>,
67
+ },
68
+ {
69
+ value: 'tab-b',
70
+ label: 'Details',
71
+ content: <p style={{ margin: 0 }}>Tab B content.</p>,
72
+ },
73
+ {
74
+ value: 'tab-c',
75
+ label: 'Settings',
76
+ content: <p style={{ margin: 0 }}>Tab C content.</p>,
77
+ },
78
+ ];
79
+
80
+ export default function LayoutOverviewPage() {
81
+ return (
82
+ <>
83
+ <AppPageHeader
84
+ breadcrumbs={[{ label: 'Overview' }]}
85
+ title="Overview"
86
+ subheader="Containers, dividers, collapsible sections, and tabbed regions."
87
+ actions={<DocsHeaderActions />}
88
+ />
89
+ <PageContentSection
90
+ style={{ display: 'flex', flexDirection: 'column', gap: '2.5rem' }}
91
+ >
92
+ <section>
93
+ <h3 style={{ marginBottom: '1rem' }}>Card</h3>
94
+ <div style={panelStyle}>
95
+ <Card paddingSize="m" radiusSize="m" style={{ width: CARD_WIDTH }}>
96
+ <CardHeader
97
+ title="Card title"
98
+ description="Card description"
99
+ icon={<BadgeCheck />}
100
+ />
101
+ <CardContent>
102
+ <p style={{ margin: 0 }}>
103
+ Simple card with header and body content.
104
+ </p>
105
+ </CardContent>
106
+
107
+ <CardFooter>
108
+ <Button variant="secondary">Cancel</Button>
109
+ <Button>Action</Button>
110
+ </CardFooter>
111
+ </Card>
112
+ </div>
113
+ </section>
114
+
115
+ <section>
116
+ <h3 style={{ marginBottom: '1rem' }}>Separator</h3>
117
+ <div style={panelStyle}>
118
+ <p style={{ margin: 0 }}>Above</p>
119
+ <Separator style={{ margin: '12px 0' }} />
120
+ <p style={{ margin: 0 }}>Below</p>
121
+ </div>
122
+ </section>
123
+
124
+ <section>
125
+ <h3 style={{ marginBottom: '1rem' }}>Foldable</h3>
126
+ <div style={panelStyle}>
127
+ <Foldable
128
+ header={<span>Click to expand</span>}
129
+ content={<p style={{ margin: 0 }}>Hidden content inside.</p>}
130
+ defaultUnfolded
131
+ />
132
+ </div>
133
+ </section>
134
+
135
+ <section>
136
+ <h3 style={{ marginBottom: '1rem' }}>Tabs</h3>
137
+ <div style={panelStyle}>
138
+ <Tabs defaultValue="alpha" style={{ maxWidth: 360 }}>
139
+ <TabsList>
140
+ <TabsTrigger value="alpha">Alpha</TabsTrigger>
141
+ <TabsTrigger value="beta">Beta</TabsTrigger>
142
+ </TabsList>
143
+ <TabsContent value="alpha">Panel A content.</TabsContent>
144
+ <TabsContent value="beta">Panel B content.</TabsContent>
145
+ </Tabs>
146
+ </div>
147
+ </section>
148
+
149
+ <section>
150
+ <h3 style={{ marginBottom: '1rem' }}>GridLayout</h3>
151
+ <div style={panelStyle}>
152
+ <GridLayout colWidth={180} gap="var(--p-4)">
153
+ <p style={tileStyle}>Item A</p>
154
+ <p style={tileStyle}>Item B</p>
155
+ <p style={tileStyle}>Item C</p>
156
+ </GridLayout>
157
+ </div>
158
+ </section>
159
+
160
+ <section>
161
+ <h3 style={{ marginBottom: '1rem' }}>InteractiveContent</h3>
162
+ <div style={panelStyle}>
163
+ <InteractiveContent text="Use **bold** and [links](/docs) in assistant-style text." />
164
+ </div>
165
+ </section>
166
+
167
+ <section>
168
+ <h3 style={{ marginBottom: '1rem' }}>Page</h3>
169
+ <div
170
+ style={{
171
+ ...panelStyle,
172
+ border: '1px dashed var(--border)',
173
+ }}
174
+ >
175
+ <PageContent>
176
+ <PageContentSection>
177
+ <p style={{ margin: 0 }}>First section content.</p>
178
+ </PageContentSection>
179
+ <PageContentSection>
180
+ <p style={{ margin: 0 }}>Second section content.</p>
181
+ </PageContentSection>
182
+ </PageContent>
183
+ </div>
184
+ </section>
185
+
186
+ <section>
187
+ <h3 style={{ marginBottom: '1rem' }}>PageColumns</h3>
188
+ <div style={panelStyle}>
189
+ <PageColumns
190
+ columns={[
191
+ <p key="a" style={columnBlockStyle}>
192
+ Column A
193
+ </p>,
194
+ <p key="b" style={columnBlockStyle}>
195
+ Column B
196
+ </p>,
197
+ ]}
198
+ />
199
+ </div>
200
+ </section>
201
+
202
+ <section>
203
+ <h3 style={{ marginBottom: '1rem' }}>PageFooter</h3>
204
+ <div
205
+ style={{
206
+ ...panelStyle,
207
+ border: '1px solid var(--border)',
208
+ overflow: 'hidden',
209
+ }}
210
+ >
211
+ <PageFooter versionLink="" versionLabel="0.0.0" />
212
+ </div>
213
+ </section>
214
+
215
+ <section>
216
+ <h3 style={{ marginBottom: '1rem' }}>PageTabs</h3>
217
+ <div style={panelStyle}>
218
+ <PageTabs
219
+ defaultValue={PAGE_TABS_ITEMS[0].value}
220
+ items={PAGE_TABS_ITEMS}
221
+ />
222
+ </div>
223
+ </section>
224
+
225
+ <section>
226
+ <h3 style={{ marginBottom: '1rem' }}>Sidebar</h3>
227
+ <div style={panelStyle}>
228
+ <SidebarGroup
229
+ style={{
230
+ maxWidth: 320,
231
+ padding: 12,
232
+ background: 'var(--sidebar)',
233
+ color: 'var(--sidebar-foreground)',
234
+ border: '1px solid var(--border)',
235
+ borderRadius: 'var(--p-4)',
236
+ }}
237
+ >
238
+ <SidebarGroupLabel>Group label</SidebarGroupLabel>
239
+ <SidebarMenu>
240
+ <SidebarMenuItem>
241
+ <SidebarMenuButton type="button" isActive>
242
+ Active item
243
+ </SidebarMenuButton>
244
+ </SidebarMenuItem>
245
+ <SidebarMenuItem>
246
+ <SidebarMenuButton type="button">
247
+ Another item
248
+ </SidebarMenuButton>
249
+ </SidebarMenuItem>
250
+ </SidebarMenu>
251
+ </SidebarGroup>
252
+ </div>
253
+ </section>
254
+
255
+ {/* StandaloneAppLayout and SybilionAuthLayout excluded — full shell demos */}
256
+ </PageContentSection>
257
+ </>
258
+ );
259
+ }
@@ -0,0 +1,94 @@
1
+ import {
2
+ Breadcrumb,
3
+ BreadcrumbItem,
4
+ BreadcrumbLink,
5
+ BreadcrumbList,
6
+ BreadcrumbPage as BreadcrumbPageCrumb,
7
+ BreadcrumbSeparator,
8
+ } from '#uilib/components/ui/Breadcrumb';
9
+ import { DropdownMenuItem } from '#uilib/components/ui/DropdownMenu';
10
+ import { LegacyPlatformLink } from '#uilib/components/ui/LegacyPlatformLink';
11
+ import { NavUserHeader } from '#uilib/components/ui/NavUserHeader';
12
+ import { PageContentSection } from '#uilib/components/ui/Page';
13
+ import { GearSixIcon, UserCircleIcon } from '@phosphor-icons/react';
14
+
15
+ import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
16
+ import { DocsHeaderActions } from '../docsHeaderActions';
17
+
18
+ const panelStyle: React.CSSProperties = {
19
+ display: 'flex',
20
+ flexDirection: 'column',
21
+ gap: '0.75rem',
22
+ padding: 'var(--p-3)',
23
+ borderRadius: 'var(--radius-3)',
24
+ };
25
+
26
+ export default function NavigationOverviewPage() {
27
+ return (
28
+ <>
29
+ <AppPageHeader
30
+ breadcrumbs={[{ label: 'Overview' }]}
31
+ title="Overview"
32
+ subheader="Trails, user menus, and cross-platform links."
33
+ actions={<DocsHeaderActions />}
34
+ />
35
+ <PageContentSection
36
+ style={{ display: 'flex', flexDirection: 'column', gap: '2.5rem' }}
37
+ >
38
+ <section>
39
+ <h3 style={{ marginBottom: '1rem' }}>Breadcrumb</h3>
40
+ <div style={panelStyle}>
41
+ <Breadcrumb>
42
+ <BreadcrumbList>
43
+ <BreadcrumbItem>
44
+ <BreadcrumbLink href="/docs">Docs</BreadcrumbLink>
45
+ </BreadcrumbItem>
46
+ <BreadcrumbSeparator />
47
+ <BreadcrumbItem>
48
+ <BreadcrumbPageCrumb>Navigation</BreadcrumbPageCrumb>
49
+ </BreadcrumbItem>
50
+ </BreadcrumbList>
51
+ </Breadcrumb>
52
+ </div>
53
+ </section>
54
+
55
+ <section>
56
+ <h3 style={{ marginBottom: '1rem' }}>NavUserHeader</h3>
57
+ <div style={panelStyle}>
58
+ <NavUserHeader
59
+ user={{
60
+ name: 'Demo Analyst',
61
+ email: 'demo@sybilion.io',
62
+ avatar: '',
63
+ }}
64
+ onLogout={() => {
65
+ console.info('[docs] logout');
66
+ }}
67
+ menuItems={
68
+ <>
69
+ <DropdownMenuItem>
70
+ <UserCircleIcon />
71
+ Account
72
+ </DropdownMenuItem>
73
+ <DropdownMenuItem>
74
+ <GearSixIcon />
75
+ Settings
76
+ </DropdownMenuItem>
77
+ </>
78
+ }
79
+ />
80
+ </div>
81
+ </section>
82
+
83
+ <section>
84
+ <h3 style={{ marginBottom: '1rem' }}>LegacyPlatformLink</h3>
85
+ <div style={panelStyle}>
86
+ <LegacyPlatformLink redirectPath="/v1/dashboard">
87
+ Legacy platform link
88
+ </LegacyPlatformLink>
89
+ </div>
90
+ </section>
91
+ </PageContentSection>
92
+ </>
93
+ );
94
+ }
@@ -0,0 +1,196 @@
1
+ import { useState } from 'react';
2
+
3
+ import { Button } from '#uilib/components/ui/Button';
4
+ import { Confirm } from '#uilib/components/ui/Confirm';
5
+ import { Dialog } from '#uilib/components/ui/Dialog';
6
+ import {
7
+ Drawer,
8
+ DrawerClose,
9
+ DrawerContent,
10
+ DrawerDescription,
11
+ DrawerFooter,
12
+ DrawerHeader,
13
+ DrawerTitle,
14
+ DrawerTrigger,
15
+ } from '#uilib/components/ui/Drawer';
16
+ import {
17
+ DropdownMenu,
18
+ DropdownMenuContent,
19
+ DropdownMenuItem,
20
+ DropdownMenuLabel,
21
+ DropdownMenuSeparator,
22
+ DropdownMenuTrigger,
23
+ } from '#uilib/components/ui/DropdownMenu';
24
+ import { InfoIconTooltip } from '#uilib/components/ui/InfoIconTooltip/InfoIconTooltip';
25
+ import { PageContentSection } from '#uilib/components/ui/Page';
26
+ import {
27
+ Sheet,
28
+ SheetContent,
29
+ SheetDescription,
30
+ SheetHeader,
31
+ SheetTitle,
32
+ SheetTrigger,
33
+ } from '#uilib/components/ui/Sheet';
34
+ import {
35
+ Tooltip,
36
+ TooltipContent,
37
+ TooltipTrigger,
38
+ } from '#uilib/components/ui/Tooltip';
39
+
40
+ import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
41
+ import { DocsHeaderActions } from '../docsHeaderActions';
42
+
43
+ const panelStyle: React.CSSProperties = {
44
+ display: 'flex',
45
+ flexWrap: 'wrap',
46
+ gap: '0.75rem',
47
+ alignItems: 'center',
48
+ padding: 'var(--p-3)',
49
+ borderRadius: 'var(--radius-3)',
50
+ };
51
+
52
+ export default function OverlaysOverviewPage() {
53
+ const [dialogOpen, setDialogOpen] = useState(false);
54
+ const [confirmOpen, setConfirmOpen] = useState(false);
55
+
56
+ return (
57
+ <>
58
+ <AppPageHeader
59
+ breadcrumbs={[{ label: 'Overview' }]}
60
+ title="Overview"
61
+ subheader="Modals, panels, menus, and contextual hints."
62
+ actions={<DocsHeaderActions />}
63
+ />
64
+ <PageContentSection
65
+ style={{ display: 'flex', flexDirection: 'column', gap: '2.5rem' }}
66
+ >
67
+ <section>
68
+ <h3 style={{ marginBottom: '1rem' }}>Dialog</h3>
69
+ <div style={panelStyle}>
70
+ <Dialog
71
+ open={dialogOpen}
72
+ onOpenChange={setDialogOpen}
73
+ trigger={<Button type="button">Open dialog</Button>}
74
+ title="Dialog title"
75
+ subtitle="Optional subtitle"
76
+ content={<p style={{ margin: 0 }}>Dialog body content.</p>}
77
+ footer={
78
+ <Button type="button" onClick={() => setDialogOpen(false)}>
79
+ Close
80
+ </Button>
81
+ }
82
+ />
83
+ </div>
84
+ </section>
85
+
86
+ <section>
87
+ <h3 style={{ marginBottom: '1rem' }}>Confirm</h3>
88
+ <div style={panelStyle}>
89
+ <Confirm
90
+ open={confirmOpen}
91
+ onOpenChange={setConfirmOpen}
92
+ trigger={<Button type="button">Open confirm</Button>}
93
+ title="Discard changes?"
94
+ confirmLabel="Discard"
95
+ cancelLabel="Keep editing"
96
+ onConfirm={() => setConfirmOpen(false)}
97
+ >
98
+ You have unsaved changes. They will be lost if you continue.
99
+ </Confirm>
100
+ </div>
101
+ </section>
102
+
103
+ <section>
104
+ <h3 style={{ marginBottom: '1rem' }}>Drawer</h3>
105
+ <div style={panelStyle}>
106
+ <Drawer>
107
+ <DrawerTrigger asChild>
108
+ <Button type="button">Open drawer</Button>
109
+ </DrawerTrigger>
110
+ <DrawerContent>
111
+ <DrawerHeader>
112
+ <DrawerTitle>Drawer title</DrawerTitle>
113
+ <DrawerDescription>Short description.</DrawerDescription>
114
+ </DrawerHeader>
115
+ <DrawerFooter>
116
+ <DrawerClose asChild>
117
+ <Button type="button" variant="outline">
118
+ Close
119
+ </Button>
120
+ </DrawerClose>
121
+ </DrawerFooter>
122
+ </DrawerContent>
123
+ </Drawer>
124
+ </div>
125
+ </section>
126
+
127
+ <section>
128
+ <h3 style={{ marginBottom: '1rem' }}>Sheet</h3>
129
+ <div style={panelStyle}>
130
+ <Sheet>
131
+ <SheetTrigger asChild>
132
+ <Button type="button">Open sheet</Button>
133
+ </SheetTrigger>
134
+ <SheetContent>
135
+ <SheetHeader>
136
+ <SheetTitle>Sheet title</SheetTitle>
137
+ <SheetDescription>Sheet description text.</SheetDescription>
138
+ </SheetHeader>
139
+ <p style={{ marginTop: 16 }}>Sheet body.</p>
140
+ </SheetContent>
141
+ </Sheet>
142
+ </div>
143
+ </section>
144
+
145
+ <section>
146
+ <h3 style={{ marginBottom: '1rem' }}>DropdownMenu</h3>
147
+ <div style={panelStyle}>
148
+ <DropdownMenu>
149
+ <DropdownMenuTrigger asChild>
150
+ <Button type="button" variant="outline">
151
+ Open menu
152
+ </Button>
153
+ </DropdownMenuTrigger>
154
+ <DropdownMenuContent>
155
+ <DropdownMenuLabel>Actions</DropdownMenuLabel>
156
+ <DropdownMenuSeparator />
157
+ <DropdownMenuItem onSelect={() => {}}>
158
+ Item one
159
+ </DropdownMenuItem>
160
+ <DropdownMenuItem onSelect={() => {}}>
161
+ Item two
162
+ </DropdownMenuItem>
163
+ </DropdownMenuContent>
164
+ </DropdownMenu>
165
+ </div>
166
+ </section>
167
+
168
+ <section>
169
+ <h3 style={{ marginBottom: '1rem' }}>Tooltip</h3>
170
+ <div style={panelStyle}>
171
+ <Tooltip>
172
+ <TooltipTrigger asChild>
173
+ <Button type="button" variant="outline">
174
+ Hover me
175
+ </Button>
176
+ </TooltipTrigger>
177
+ <TooltipContent>Tooltip content</TooltipContent>
178
+ </Tooltip>
179
+ </div>
180
+ </section>
181
+
182
+ <section>
183
+ <h3 style={{ marginBottom: '1rem' }}>InfoIconTooltip</h3>
184
+ <div style={panelStyle}>
185
+ <div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>
186
+ <span style={{ fontSize: 14 }}>Forecast horizon</span>
187
+ <InfoIconTooltip>
188
+ Number of months included in the forecast window.
189
+ </InfoIconTooltip>
190
+ </div>
191
+ </div>
192
+ </section>
193
+ </PageContentSection>
194
+ </>
195
+ );
196
+ }
@@ -0,0 +1,21 @@
1
+ import RadioGroupGuidance from '#uilib/components/ui/RadioGroup/AGENT.md';
2
+ import { RadioGroupExample } from '#uilib/components/ui/RadioGroup/RadioGroup.example';
3
+
4
+ import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
5
+ import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
6
+ import { DocsHeaderActions } from '../docsHeaderActions';
7
+
8
+ export default function RadioGroupPage() {
9
+ return (
10
+ <>
11
+ <AppPageHeader
12
+ breadcrumbs={[{ label: 'RadioGroup' }]}
13
+ title="RadioGroup"
14
+ subheader="Single-choice control for mutually exclusive options."
15
+ actions={<DocsHeaderActions />}
16
+ />
17
+ <DocsGuidance source={RadioGroupGuidance} />
18
+ <RadioGroupExample />
19
+ </>
20
+ );
21
+ }
@@ -62,6 +62,12 @@ export const DOC_REGISTRY: DocEntry[] = [
62
62
  section: 'Foundations',
63
63
  load: () => import('./pages/SpacingPage'),
64
64
  },
65
+ {
66
+ slug: 'forms-overview',
67
+ title: 'Overview',
68
+ section: 'Forms',
69
+ load: () => import('./pages/FormsOverviewPage'),
70
+ },
65
71
  {
66
72
  slug: 'button',
67
73
  title: 'Button',
@@ -74,6 +80,36 @@ export const DOC_REGISTRY: DocEntry[] = [
74
80
  section: 'Forms',
75
81
  load: () => import('./pages/ButtonGroupPage'),
76
82
  },
83
+ {
84
+ slug: 'feedback-overview',
85
+ title: 'Overview',
86
+ section: 'Feedback',
87
+ load: () => import('./pages/FeedbackOverviewPage'),
88
+ },
89
+ {
90
+ slug: 'layout-overview',
91
+ title: 'Overview',
92
+ section: 'Layout',
93
+ load: () => import('./pages/LayoutOverviewPage'),
94
+ },
95
+ {
96
+ slug: 'navigation-overview',
97
+ title: 'Overview',
98
+ section: 'Navigation',
99
+ load: () => import('./pages/NavigationOverviewPage'),
100
+ },
101
+ {
102
+ slug: 'overlays-overview',
103
+ title: 'Overview',
104
+ section: 'Overlays',
105
+ load: () => import('./pages/OverlaysOverviewPage'),
106
+ },
107
+ {
108
+ slug: 'data-display-overview',
109
+ title: 'Overview',
110
+ section: 'Data display',
111
+ load: () => import('./pages/DataDisplayOverviewPage'),
112
+ },
77
113
  {
78
114
  slug: 'analyses-selector',
79
115
  title: 'AnalysesSelector',
@@ -218,6 +254,18 @@ export const DOC_REGISTRY: DocEntry[] = [
218
254
  section: 'Forms',
219
255
  load: () => import('./pages/CheckboxPage'),
220
256
  },
257
+ {
258
+ slug: 'radio-group',
259
+ title: 'RadioGroup',
260
+ section: 'Forms',
261
+ load: () => import('./pages/RadioGroupPage'),
262
+ },
263
+ {
264
+ slug: 'date-picker',
265
+ title: 'DatePicker',
266
+ section: 'Forms',
267
+ load: () => import('./pages/DatePickerPage'),
268
+ },
221
269
  {
222
270
  slug: 'dialog',
223
271
  title: 'Dialog',
package/src/index.ts CHANGED
@@ -33,6 +33,7 @@ export * from './components/ui/BarChart';
33
33
  export * from './components/ui/Chat';
34
34
  export * from './components/ui/Checkbox';
35
35
  export * from './components/ui/Confirm';
36
+ export * from './components/ui/DatePicker';
36
37
  export * from './components/ui/Dialog';
37
38
  export * from './components/ui/Drawer';
38
39
  export * from './components/ui/DropdownMenu';
@@ -58,6 +59,7 @@ export * from './components/ui/NavUserHeader';
58
59
  export * from './components/ui/NumberControl';
59
60
  export * from './components/ui/Page';
60
61
  export * from './components/ui/Progress';
62
+ export * from './components/ui/RadioGroup';
61
63
  export * from './components/ui/RegionCoords';
62
64
  export * from './components/ui/Renamer';
63
65
  export * from './components/ui/Select';