organify-ui 0.2.9 → 0.2.10
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/dist/index.d.ts +14 -12
- package/dist/index.js +18 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
39
39
|
* Theme-aware: uses CSS variables for theme switching.
|
|
40
40
|
*/
|
|
41
41
|
declare const buttonVariants: (props?: ({
|
|
42
|
-
variant?: "
|
|
42
|
+
variant?: "link" | "default" | "secondary" | "ghost" | "destructive" | "outline" | "cream" | "cream-secondary" | null | undefined;
|
|
43
43
|
size?: "sm" | "default" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
44
44
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
45
45
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -55,7 +55,7 @@ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAtt
|
|
|
55
55
|
* Squircle radius, organic easing, focus glow.
|
|
56
56
|
*/
|
|
57
57
|
declare const inputVariants: (props?: ({
|
|
58
|
-
variant?: "
|
|
58
|
+
variant?: "error" | "flat" | "default" | "cream" | "rounded" | null | undefined;
|
|
59
59
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
60
60
|
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof inputVariants> {
|
|
61
61
|
label?: string;
|
|
@@ -102,7 +102,7 @@ declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAtt
|
|
|
102
102
|
* Theme-aware: uses CSS variables for theme switching.
|
|
103
103
|
*/
|
|
104
104
|
declare const badgeVariants: (props?: ({
|
|
105
|
-
variant?: "
|
|
105
|
+
variant?: "success" | "error" | "warning" | "info" | "default" | "primary" | "in-flow" | "deep-work" | "high-energy" | "cream-default" | "cream-primary" | null | undefined;
|
|
106
106
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
107
107
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
108
108
|
/** Animated pulse dot */
|
|
@@ -236,7 +236,7 @@ declare function OrgLoaderInline({ className, ...props }: React.SVGProps<SVGSVGE
|
|
|
236
236
|
* - Theme-aware borders using CSS variables
|
|
237
237
|
*/
|
|
238
238
|
declare const alertVariants: (props?: ({
|
|
239
|
-
variant?: "
|
|
239
|
+
variant?: "success" | "error" | "warning" | "info" | null | undefined;
|
|
240
240
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
241
241
|
interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
|
|
242
242
|
/** Alert title */
|
|
@@ -266,7 +266,7 @@ declare function Alert({ className, variant, title, description, icon, onClose,
|
|
|
266
266
|
* - Auto-dismiss with optional progress bar
|
|
267
267
|
*/
|
|
268
268
|
declare const toastVariants: (props?: ({
|
|
269
|
-
variant?: "
|
|
269
|
+
variant?: "success" | "error" | "warning" | "info" | "default" | null | undefined;
|
|
270
270
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
271
271
|
interface ToastProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof toastVariants> {
|
|
272
272
|
/** Close handler */
|
|
@@ -388,9 +388,9 @@ declare function SettingsSkeleton({ className }: {
|
|
|
388
388
|
* - `flat`: no clip-path, rounded corners
|
|
389
389
|
*/
|
|
390
390
|
declare const glassPanelVariants: (props?: ({
|
|
391
|
-
variant?: "
|
|
391
|
+
variant?: "flat" | "default" | "cream" | "alt" | "highlight" | null | undefined;
|
|
392
392
|
corners?: "none" | "both" | "br" | "tl" | null | undefined;
|
|
393
|
-
padding?: "
|
|
393
|
+
padding?: "none" | "sm" | "default" | "lg" | "xl" | null | undefined;
|
|
394
394
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
395
395
|
interface GlassPanelProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof glassPanelVariants> {
|
|
396
396
|
/** Add the in-flow indicator dot */
|
|
@@ -452,6 +452,8 @@ interface DockSidebarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
452
452
|
expanded?: boolean;
|
|
453
453
|
/** Callback when expanded state changes */
|
|
454
454
|
onExpandedChange?: (expanded: boolean) => void;
|
|
455
|
+
/** Whether hover should expand/collapse the sidebar */
|
|
456
|
+
hoverExpand?: boolean;
|
|
455
457
|
/** Render custom link element (for Next.js Link etc.) */
|
|
456
458
|
renderLink?: (props: {
|
|
457
459
|
href: string;
|
|
@@ -460,7 +462,7 @@ interface DockSidebarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
460
462
|
onClick?: () => void;
|
|
461
463
|
}) => React.ReactNode;
|
|
462
464
|
}
|
|
463
|
-
declare function DockSidebar({ items, bottomItems, header, expanded, onExpandedChange, renderLink, className, ...props }: DockSidebarProps): react_jsx_runtime.JSX.Element;
|
|
465
|
+
declare function DockSidebar({ items, bottomItems, header, expanded, onExpandedChange, hoverExpand, renderLink, className, ...props }: DockSidebarProps): react_jsx_runtime.JSX.Element;
|
|
464
466
|
declare namespace DockSidebar {
|
|
465
467
|
var displayName: string;
|
|
466
468
|
}
|
|
@@ -473,7 +475,7 @@ declare function SidebarButton({ item, expanded, renderLink, }: {
|
|
|
473
475
|
item: SidebarNavItem;
|
|
474
476
|
expanded: boolean;
|
|
475
477
|
renderLink?: DockSidebarProps['renderLink'];
|
|
476
|
-
}): string | number | bigint | boolean |
|
|
478
|
+
}): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
477
479
|
|
|
478
480
|
interface WorkspaceSwitcherProps {
|
|
479
481
|
/** Whether the sidebar is collapsed (icon-only mode) */
|
|
@@ -511,7 +513,7 @@ declare function Logo({ size, variant, animated, className, ...props }: LogoProp
|
|
|
511
513
|
* From Brand Assets & Icons HTML.
|
|
512
514
|
*/
|
|
513
515
|
declare const geometricIconVariants: (props?: ({
|
|
514
|
-
variant?: "
|
|
516
|
+
variant?: "success" | "error" | "warning" | "default" | "outline" | "cream" | "filled" | null | undefined;
|
|
515
517
|
size?: "sm" | "default" | "lg" | "xl" | null | undefined;
|
|
516
518
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
517
519
|
interface GeometricIconProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof geometricIconVariants> {
|
|
@@ -602,7 +604,7 @@ declare function StepConnector({ status, variant, }: {
|
|
|
602
604
|
* From Brand Assets & Icons HTML.
|
|
603
605
|
*/
|
|
604
606
|
declare const statusPillVariants: (props?: ({
|
|
605
|
-
variant?: "
|
|
607
|
+
variant?: "success" | "error" | "warning" | "info" | "default" | "cream" | "primary" | "in-flow" | "deep-work" | "high-energy" | "resting" | "disconnected" | null | undefined;
|
|
606
608
|
size?: "sm" | "default" | "lg" | null | undefined;
|
|
607
609
|
glow?: boolean | null | undefined;
|
|
608
610
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -1077,7 +1079,7 @@ declare function Label({ className, ...props }: React.ComponentProps<'label'>):
|
|
|
1077
1079
|
* Squircle radius, organic easing, focus glow.
|
|
1078
1080
|
*/
|
|
1079
1081
|
declare const textareaVariants: (props?: ({
|
|
1080
|
-
variant?: "
|
|
1082
|
+
variant?: "error" | "flat" | "default" | "cream" | "rounded" | null | undefined;
|
|
1081
1083
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1082
1084
|
interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'>, VariantProps<typeof textareaVariants> {
|
|
1083
1085
|
label?: string;
|
package/dist/index.js
CHANGED
|
@@ -759,6 +759,7 @@ function DockSidebar({
|
|
|
759
759
|
header,
|
|
760
760
|
expanded = false,
|
|
761
761
|
onExpandedChange,
|
|
762
|
+
hoverExpand = false,
|
|
762
763
|
renderLink,
|
|
763
764
|
className,
|
|
764
765
|
...props
|
|
@@ -771,8 +772,8 @@ function DockSidebar({
|
|
|
771
772
|
sidebarVariants({ state: expanded ? "expanded" : "collapsed" }),
|
|
772
773
|
className
|
|
773
774
|
),
|
|
774
|
-
onMouseEnter: () => onExpandedChange?.(true),
|
|
775
|
-
onMouseLeave: () => onExpandedChange?.(false),
|
|
775
|
+
onMouseEnter: () => hoverExpand && onExpandedChange?.(true),
|
|
776
|
+
onMouseLeave: () => hoverExpand && onExpandedChange?.(false),
|
|
776
777
|
...props,
|
|
777
778
|
children: [
|
|
778
779
|
/* @__PURE__ */ jsxs("div", { className: cn("flex items-center px-3 h-16 border-b border-glass-border", expanded ? "justify-between" : "justify-center"), children: [
|
|
@@ -785,10 +786,22 @@ function DockSidebar({
|
|
|
785
786
|
"aria-label": expanded ? "Collapse sidebar" : "Expand sidebar",
|
|
786
787
|
className: cn(
|
|
787
788
|
"flex h-7 w-7 items-center justify-center rounded-sm",
|
|
788
|
-
"text-org-text-muted transition-all hover:bg-glass-highlight hover:text-org-text"
|
|
789
|
-
!expanded && "hidden"
|
|
789
|
+
"text-org-text-muted transition-all hover:bg-glass-highlight hover:text-org-text"
|
|
790
790
|
),
|
|
791
|
-
children: /* @__PURE__ */ jsx(
|
|
791
|
+
children: /* @__PURE__ */ jsx(
|
|
792
|
+
"svg",
|
|
793
|
+
{
|
|
794
|
+
width: "16",
|
|
795
|
+
height: "16",
|
|
796
|
+
viewBox: "0 0 16 16",
|
|
797
|
+
fill: "none",
|
|
798
|
+
className: cn(
|
|
799
|
+
"transition-transform duration-[400ms]",
|
|
800
|
+
expanded ? "rotate-0" : "rotate-180"
|
|
801
|
+
),
|
|
802
|
+
children: /* @__PURE__ */ jsx("path", { d: "M10 12L6 8L10 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
803
|
+
}
|
|
804
|
+
)
|
|
792
805
|
}
|
|
793
806
|
)
|
|
794
807
|
] }),
|