my-you-eye 0.2.1 → 0.2.3
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/COMPONENTS.md +6 -8
- package/README.md +1 -1
- package/components.json +28 -40
- package/dist/index.d.ts +20 -27
- package/dist/index.js +920 -589
- package/package.json +1 -1
package/COMPONENTS.md
CHANGED
|
@@ -9,7 +9,7 @@ import { Button, Card } from "my-you-eye";
|
|
|
9
9
|
import "my-you-eye/styles.css";
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
**
|
|
12
|
+
**53 components** across 9 groups.
|
|
13
13
|
|
|
14
14
|
## canvas
|
|
15
15
|
|
|
@@ -25,11 +25,10 @@ import "my-you-eye/styles.css";
|
|
|
25
25
|
|
|
26
26
|
| Component | Variants | Demos |
|
|
27
27
|
|---|---|---|
|
|
28
|
-
| `
|
|
29
|
-
| `
|
|
30
|
-
| `
|
|
31
|
-
| `
|
|
32
|
-
| `TreeView` | type: button<br>variant: condensed | Default & Condensed (depth-based expand), Controlled expand state, Leading icons (click a row, then use arrow keys), Messy nested payload (hover to trace depth guides) |
|
|
28
|
+
| `CellType` | type: array / audio / badge / boolean / bytes / currency / date-human / date-system / datetime-tz / duration / email / image / json / null / number / percentage / signed / status / text / tree / url | Data Types, Project X, Project X, Numeric types |
|
|
29
|
+
| `DataTable` | variant: striped<br>density: compact | Alice, Bob, Charlie, Diana, Eve, Frank, Grace, Ivy, Leo, Olivia, Default, Striped, Scrolling + sticky header, Truncation |
|
|
30
|
+
| `List` | variant: compact | Default & Compact, Striped, Scrolling |
|
|
31
|
+
| `TreeView` | type: button<br>variant: condensed | Default vs Condensed, Depth-based expand, Controlled expand state, Leading icons (click a row, then use arrow keys), Messy nested payload (hover to trace depth guides) |
|
|
33
32
|
|
|
34
33
|
## display
|
|
35
34
|
|
|
@@ -80,7 +79,7 @@ import "my-you-eye/styles.css";
|
|
|
80
79
|
|---|---|---|
|
|
81
80
|
| `Breadcrumbs` | — | Default, Custom separator |
|
|
82
81
|
| `Pagination` | — | Default (10 pages), Few pages |
|
|
83
|
-
| `Tabs` | variant: pills / underline | Underline, Pills |
|
|
82
|
+
| `Tabs` | variant: filing / pills / underline | Underline, Pills, Filing |
|
|
84
83
|
|
|
85
84
|
## overlay
|
|
86
85
|
|
|
@@ -98,7 +97,6 @@ import "my-you-eye/styles.css";
|
|
|
98
97
|
| Component | Variants | Demos |
|
|
99
98
|
|---|---|---|
|
|
100
99
|
| `ConfirmDialog` | variant: danger / secondary | Variants |
|
|
101
|
-
| `FilingTabs` | — | Default, Many tabs, First tab active |
|
|
102
100
|
| `FormField` | type: password | Default, With hint, Required with error |
|
|
103
101
|
| `PageShell` | variant: secondary | Default, With actions |
|
|
104
102
|
| `StatCard` | — | Default |
|
package/README.md
CHANGED
|
@@ -136,7 +136,7 @@ src/
|
|
|
136
136
|
lib/cn.ts # clsx + tailwind-merge helper
|
|
137
137
|
styles/
|
|
138
138
|
tokens.css # ALL base design tokens
|
|
139
|
-
themes/*.css # per-theme token overrides (dark, neon,
|
|
139
|
+
themes/*.css # per-theme token overrides (dark, neon, contrast, …)
|
|
140
140
|
globals.css # tailwind entry, global scrollbar, base styles
|
|
141
141
|
ui/<component>/ # Component.tsx + Component.showcase.tsx + index.ts
|
|
142
142
|
ui/patterns/ # compositions built FROM primitives (FormField, Orchestrator, …)
|
package/components.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "my-you-eye",
|
|
3
3
|
"generated": "auto — do not edit by hand; run `npm run manifest`",
|
|
4
|
-
"count":
|
|
4
|
+
"count": 53,
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Canvas",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
|
-
"name": "
|
|
77
|
+
"name": "CellType",
|
|
78
78
|
"group": "data",
|
|
79
|
-
"folder": "ui/cell-
|
|
79
|
+
"folder": "ui/cell-type",
|
|
80
80
|
"props": {
|
|
81
81
|
"type": [
|
|
82
82
|
"array",
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
"badge",
|
|
85
85
|
"boolean",
|
|
86
86
|
"bytes",
|
|
87
|
+
"currency",
|
|
87
88
|
"date-human",
|
|
88
89
|
"date-system",
|
|
89
90
|
"datetime-tz",
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
"null",
|
|
95
96
|
"number",
|
|
96
97
|
"percentage",
|
|
98
|
+
"signed",
|
|
97
99
|
"status",
|
|
98
100
|
"text",
|
|
99
101
|
"tree",
|
|
@@ -101,26 +103,12 @@
|
|
|
101
103
|
]
|
|
102
104
|
},
|
|
103
105
|
"demos": [
|
|
104
|
-
"Data
|
|
105
|
-
"
|
|
106
|
+
"Data Types",
|
|
107
|
+
"Project X",
|
|
106
108
|
"Project X",
|
|
107
109
|
"Numeric types"
|
|
108
110
|
]
|
|
109
111
|
},
|
|
110
|
-
{
|
|
111
|
-
"name": "DataList",
|
|
112
|
-
"group": "data",
|
|
113
|
-
"folder": "ui/data-list",
|
|
114
|
-
"props": {
|
|
115
|
-
"variant": [
|
|
116
|
-
"compact"
|
|
117
|
-
]
|
|
118
|
-
},
|
|
119
|
-
"demos": [
|
|
120
|
-
"Default & Compact",
|
|
121
|
-
"Long values"
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
112
|
{
|
|
125
113
|
"name": "DataTable",
|
|
126
114
|
"group": "data",
|
|
@@ -138,23 +126,31 @@
|
|
|
138
126
|
"Bob",
|
|
139
127
|
"Charlie",
|
|
140
128
|
"Diana",
|
|
129
|
+
"Eve",
|
|
130
|
+
"Frank",
|
|
131
|
+
"Grace",
|
|
132
|
+
"Ivy",
|
|
133
|
+
"Leo",
|
|
134
|
+
"Olivia",
|
|
141
135
|
"Default",
|
|
142
|
-
"
|
|
143
|
-
"
|
|
136
|
+
"Striped",
|
|
137
|
+
"Scrolling + sticky header",
|
|
138
|
+
"Truncation"
|
|
144
139
|
]
|
|
145
140
|
},
|
|
146
141
|
{
|
|
147
|
-
"name": "
|
|
142
|
+
"name": "List",
|
|
148
143
|
"group": "data",
|
|
149
|
-
"folder": "ui/
|
|
144
|
+
"folder": "ui/data-list",
|
|
150
145
|
"props": {
|
|
151
|
-
"
|
|
152
|
-
"
|
|
146
|
+
"variant": [
|
|
147
|
+
"compact"
|
|
153
148
|
]
|
|
154
149
|
},
|
|
155
150
|
"demos": [
|
|
156
|
-
"
|
|
157
|
-
"
|
|
151
|
+
"Default & Compact",
|
|
152
|
+
"Striped",
|
|
153
|
+
"Scrolling"
|
|
158
154
|
]
|
|
159
155
|
},
|
|
160
156
|
{
|
|
@@ -170,7 +166,8 @@
|
|
|
170
166
|
]
|
|
171
167
|
},
|
|
172
168
|
"demos": [
|
|
173
|
-
"Default
|
|
169
|
+
"Default vs Condensed",
|
|
170
|
+
"Depth-based expand",
|
|
174
171
|
"Controlled expand state",
|
|
175
172
|
"Leading icons (click a row, then use arrow keys)",
|
|
176
173
|
"Messy nested payload (hover to trace depth guides)"
|
|
@@ -613,13 +610,15 @@
|
|
|
613
610
|
"folder": "ui/tabs",
|
|
614
611
|
"props": {
|
|
615
612
|
"variant": [
|
|
613
|
+
"filing",
|
|
616
614
|
"pills",
|
|
617
615
|
"underline"
|
|
618
616
|
]
|
|
619
617
|
},
|
|
620
618
|
"demos": [
|
|
621
619
|
"Underline",
|
|
622
|
-
"Pills"
|
|
620
|
+
"Pills",
|
|
621
|
+
"Filing"
|
|
623
622
|
]
|
|
624
623
|
},
|
|
625
624
|
{
|
|
@@ -738,17 +737,6 @@
|
|
|
738
737
|
"Variants"
|
|
739
738
|
]
|
|
740
739
|
},
|
|
741
|
-
{
|
|
742
|
-
"name": "FilingTabs",
|
|
743
|
-
"group": "patterns",
|
|
744
|
-
"folder": "ui/patterns/filing-tabs",
|
|
745
|
-
"props": {},
|
|
746
|
-
"demos": [
|
|
747
|
-
"Default",
|
|
748
|
-
"Many tabs",
|
|
749
|
-
"First tab active"
|
|
750
|
-
]
|
|
751
|
-
},
|
|
752
740
|
{
|
|
753
741
|
"name": "FormField",
|
|
754
742
|
"group": "patterns",
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { Root as DropdownMenu, Trigger as DropdownMenuTrigger } from '@radix-ui/
|
|
|
20
20
|
import * as _radix_ui_react_popover from '@radix-ui/react-popover';
|
|
21
21
|
export { Root as Popover, Close as PopoverClose, Trigger as PopoverTrigger } from '@radix-ui/react-popover';
|
|
22
22
|
import * as _radix_ui_react_tabs from '@radix-ui/react-tabs';
|
|
23
|
-
import { List, Trigger as Trigger$1
|
|
23
|
+
import { List, Trigger as Trigger$1 } from '@radix-ui/react-tabs';
|
|
24
24
|
import { Root as Root$3 } from '@radix-ui/react-avatar';
|
|
25
25
|
|
|
26
26
|
declare function cn(...inputs: ClassValue[]): string;
|
|
@@ -195,19 +195,23 @@ interface ConfirmDialogProps {
|
|
|
195
195
|
declare function ConfirmDialog({ title, description, confirmLabel, destructive, onConfirm, trigger, open, onOpenChange, }: ConfirmDialogProps): react.JSX.Element;
|
|
196
196
|
|
|
197
197
|
declare const tabsListVariants: (props?: ({
|
|
198
|
-
variant?: "underline" | "pills" | null | undefined;
|
|
198
|
+
variant?: "underline" | "pills" | "filing" | null | undefined;
|
|
199
199
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
200
200
|
declare const tabsTriggerVariants: (props?: ({
|
|
201
|
-
variant?: "underline" | "pills" | null | undefined;
|
|
201
|
+
variant?: "underline" | "pills" | "filing" | null | undefined;
|
|
202
202
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
203
203
|
interface TabsListProps extends React.ComponentPropsWithoutRef<typeof List>, VariantProps<typeof tabsListVariants> {
|
|
204
204
|
}
|
|
205
205
|
interface TabsTriggerProps extends React.ComponentPropsWithoutRef<typeof Trigger$1>, VariantProps<typeof tabsTriggerVariants> {
|
|
206
206
|
}
|
|
207
|
-
declare const Tabs: react.ForwardRefExoticComponent<_radix_ui_react_tabs.TabsProps & react.RefAttributes<HTMLDivElement
|
|
207
|
+
declare const Tabs: react.ForwardRefExoticComponent<Omit<_radix_ui_react_tabs.TabsProps & react.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
208
|
+
variant?: "underline" | "pills" | "filing" | null | undefined;
|
|
209
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & react.RefAttributes<HTMLDivElement>>;
|
|
208
210
|
declare const TabsList: react.ForwardRefExoticComponent<TabsListProps & react.RefAttributes<HTMLDivElement>>;
|
|
209
211
|
declare const TabsTrigger: react.ForwardRefExoticComponent<TabsTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
210
|
-
declare const TabsContent: react.ForwardRefExoticComponent<Omit<_radix_ui_react_tabs.TabsContentProps & react.RefAttributes<HTMLDivElement>, "ref"> &
|
|
212
|
+
declare const TabsContent: react.ForwardRefExoticComponent<Omit<_radix_ui_react_tabs.TabsContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
213
|
+
variant?: "underline" | "pills" | "filing" | null | undefined;
|
|
214
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & react.RefAttributes<HTMLDivElement>>;
|
|
211
215
|
|
|
212
216
|
interface BreadcrumbItem {
|
|
213
217
|
label: string;
|
|
@@ -354,12 +358,12 @@ declare const StatusDot: react.ForwardRefExoticComponent<StatusDotProps & react.
|
|
|
354
358
|
type KbdProps = HTMLAttributes<HTMLElement>;
|
|
355
359
|
declare const Kbd: react.ForwardRefExoticComponent<KbdProps & react.RefAttributes<HTMLElement>>;
|
|
356
360
|
|
|
357
|
-
type CellValueType = "text" | "boolean" | "email" | "url" | "json" | "null" | "badge" | "status" | "number" | "percentage" | "date-human" | "date-system" | "datetime-tz" | "bytes" | "duration" | "array" | "image" | "audio" | "tree";
|
|
361
|
+
type CellValueType = "text" | "boolean" | "email" | "url" | "json" | "null" | "badge" | "status" | "number" | "percentage" | "date-human" | "date-system" | "datetime-tz" | "bytes" | "duration" | "currency" | "signed" | "array" | "image" | "audio" | "tree";
|
|
358
362
|
type UrlReplacement = {
|
|
359
363
|
pattern: string | RegExp;
|
|
360
364
|
label: string;
|
|
361
365
|
};
|
|
362
|
-
interface
|
|
366
|
+
interface CellTypeProps {
|
|
363
367
|
type?: CellValueType;
|
|
364
368
|
value?: unknown;
|
|
365
369
|
badgeVariant?: BadgeProps["variant"];
|
|
@@ -368,8 +372,9 @@ interface CellValueProps {
|
|
|
368
372
|
statusPulse?: boolean;
|
|
369
373
|
replacements?: UrlReplacement[];
|
|
370
374
|
dateFormat?: Intl.DateTimeFormatOptions;
|
|
375
|
+
compact?: boolean;
|
|
371
376
|
}
|
|
372
|
-
declare function
|
|
377
|
+
declare function CellType({ type, value, badgeVariant, badgeStyle, statusVariant, statusPulse, replacements, dateFormat, compact, }: CellTypeProps): react.JSX.Element;
|
|
373
378
|
|
|
374
379
|
interface CanvasProps extends HTMLAttributes<HTMLDivElement> {
|
|
375
380
|
gridSize?: number;
|
|
@@ -559,6 +564,8 @@ interface DataTableColumn {
|
|
|
559
564
|
header: string;
|
|
560
565
|
type?: CellValueType;
|
|
561
566
|
align?: "left" | "right" | "center";
|
|
567
|
+
/** Relative width hint for table-fixed layout. Omit for equal share of remaining space. */
|
|
568
|
+
width?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
562
569
|
badgeVariant?: "neutral" | "primary" | "success" | "warning" | "danger";
|
|
563
570
|
badgeStyle?: "solid" | "soft";
|
|
564
571
|
statusVariant?: StatusVariant | ((value: unknown) => StatusVariant);
|
|
@@ -569,6 +576,10 @@ interface DataTableProps extends HTMLAttributes<HTMLDivElement>, VariantProps<ty
|
|
|
569
576
|
rows: Record<string, unknown>[];
|
|
570
577
|
stickyHeader?: boolean;
|
|
571
578
|
replacements?: UrlReplacement[];
|
|
579
|
+
/** "fixed" locks columns to width hints/equal share (default). "auto" sizes columns
|
|
580
|
+
* to content and enables horizontal scroll — use for rows with divergent content
|
|
581
|
+
* widths (e.g. a type smoke test) where fixed columns would clip legitimate content. */
|
|
582
|
+
layout?: "fixed" | "auto";
|
|
572
583
|
}
|
|
573
584
|
declare const dataTableVariants: (props?: ({
|
|
574
585
|
variant?: "default" | "striped" | null | undefined;
|
|
@@ -700,22 +711,4 @@ declare const TexturedSurface: react.ForwardRefExoticComponent<TexturedSurfacePr
|
|
|
700
711
|
ParamTable: typeof ParamTable;
|
|
701
712
|
};
|
|
702
713
|
|
|
703
|
-
|
|
704
|
-
variant?: "default" | null | undefined;
|
|
705
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
706
|
-
declare const filingTriggerVariants: (props?: ({} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
707
|
-
declare const filingContentVariants: (props?: ({
|
|
708
|
-
variant?: "default" | null | undefined;
|
|
709
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
710
|
-
interface FilingTabsListProps extends React.ComponentPropsWithoutRef<typeof List>, VariantProps<typeof filingListVariants> {
|
|
711
|
-
}
|
|
712
|
-
interface FilingTabsTriggerProps extends React.ComponentPropsWithoutRef<typeof Trigger$1>, VariantProps<typeof filingTriggerVariants> {
|
|
713
|
-
}
|
|
714
|
-
interface FilingTabsContentProps extends React.ComponentPropsWithoutRef<typeof Content$1>, VariantProps<typeof filingContentVariants> {
|
|
715
|
-
}
|
|
716
|
-
declare const FilingTabs: react.ForwardRefExoticComponent<_radix_ui_react_tabs.TabsProps & react.RefAttributes<HTMLDivElement>>;
|
|
717
|
-
declare const FilingTabsList: react.ForwardRefExoticComponent<FilingTabsListProps & react.RefAttributes<HTMLDivElement>>;
|
|
718
|
-
declare const FilingTabsTrigger: react.ForwardRefExoticComponent<FilingTabsTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
719
|
-
declare const FilingTabsContent: react.ForwardRefExoticComponent<FilingTabsContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
720
|
-
|
|
721
|
-
export { Alert, Avatar, Badge, Breadcrumbs, Button, Canvas, Card, CardContent, CardFooter, CardHeader, CardTitle, CellValue, Checkbox, CodeBlock, Combobox, CommandPalette, ConfirmDialog, ConnectionLine, DataList, DataTable, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DrawerBody, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, type EditorEdge, type EditorNode, EmptyState, FileDrop, FilingTabs, FilingTabsContent, FilingTabsList, FilingTabsTrigger, FormField, Graph, GraphNode, type GraphProps, Image, Input, Kbd, Label, Markdown, MultiSelect, PageShell, Pagination, PopoverContent, Port, Progress, RadioGroup, RadioGroupItem, ScrollArea, SelectContent, SelectItem, SelectTrigger, Separator, Skeleton, Slider, Spinner, StatCard, StatusDot, Switch, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TexturedSurface, Toaster, Toolbar, Tooltip, TooltipContent, TooltipProvider, TreeView, Typography, cn, useToast };
|
|
714
|
+
export { Alert, Avatar, Badge, Breadcrumbs, Button, Canvas, Card, CardContent, CardFooter, CardHeader, CardTitle, CellType, Checkbox, CodeBlock, Combobox, CommandPalette, ConfirmDialog, ConnectionLine, DataList, DataTable, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DrawerBody, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, type EditorEdge, type EditorNode, EmptyState, FileDrop, FormField, Graph, GraphNode, type GraphProps, Image, Input, Kbd, Label, Markdown, MultiSelect, PageShell, Pagination, PopoverContent, Port, Progress, RadioGroup, RadioGroupItem, ScrollArea, SelectContent, SelectItem, SelectTrigger, Separator, Skeleton, Slider, Spinner, StatCard, StatusDot, Switch, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TexturedSurface, Toaster, Toolbar, Tooltip, TooltipContent, TooltipProvider, TreeView, Typography, cn, useToast };
|