@tenerife.music/ui 1.0.15 → 1.1.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/README.md +1 -1
- package/dist/{colors-BZtZJBBm.d.cts → colors-BrFmCQv-.d.cts} +5 -0
- package/dist/{colors-BZtZJBBm.d.ts → colors-BrFmCQv-.d.ts} +5 -0
- package/dist/{index-CP_dmFn4.d.cts → index-Cj8oRSOc.d.cts} +426 -207
- package/dist/{index-CP_dmFn4.d.ts → index-Cj8oRSOc.d.ts} +426 -207
- package/dist/index.cjs +5023 -7193
- package/dist/index.d.cts +1537 -1612
- package/dist/index.d.ts +1537 -1612
- package/dist/index.mjs +4998 -7142
- package/dist/preset.cjs +34 -63
- package/dist/preset.mjs +34 -63
- package/dist/styles.css +3498 -58
- package/dist/theme/index.cjs +1817 -639
- package/dist/theme/index.d.cts +2 -2
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/index.mjs +1816 -638
- package/dist/tokens/index.cjs +463 -440
- package/dist/tokens/index.d.cts +2 -2
- package/dist/tokens/index.d.ts +2 -2
- package/dist/tokens/index.mjs +464 -440
- package/package.json +27 -19
package/dist/index.d.ts
CHANGED
|
@@ -1,110 +1,209 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ALERT_TOKENS,
|
|
3
|
-
export { B as BaseColorTokens, C as ChartColors, a as ColorScale, b as ColorTokens, M as Mode, S as SemanticColors, c as SurfaceColors, T as TextColors, d as accentColors, e as baseColors, f as chartColors, g as colorCSSVariables, h as cssVariableColorTokens, p as primaryColors, s as secondaryColors, i as semanticColors, j as surfaceColors, t as tailwindThemeColors, k as textColors } from './colors-
|
|
1
|
+
import { d4 as ResponsiveSelectSize, df as SelectVariantToken, d5 as ResponsiveSelectWidth, d7 as ResponsiveSideOffset, cT as ResponsiveAlignOffset, dd as SelectSizeToken, de as SelectStateToken, dg as SelectWidthToken, d0 as ResponsiveModalSize, d1 as ResponsiveModalWidth, c$ as ResponsiveModalHeight, d8 as ResponsiveSpace, cS as RadiusToken, dl as SurfaceToken, cK as ModalFooterAlignToken, dr as Responsive, c as INPUT_TOKENS, a2 as InputSize, d3 as ResponsiveRadius$1, dh as ShadowToken, cW as ResponsiveColor$1, cX as ResponsiveContainerMaxWidth, c_ as ResponsiveFlexBasis, cZ as ResponsiveDelay, ds as ResponsiveContextMenuSize, dt as ResponsiveContextMenuWidth, du as ContextMenuItemToneToken, dv as ResponsiveTabsSize, dw as TabsVariantToken, dx as TabsToneToken, cU as ResponsiveAnimationPreset } from './index-Cj8oRSOc.js';
|
|
2
|
+
export { A as ALERT_TOKENS, k as AlertVariant, bj as Animation, B as BUTTON_TOKENS, bM as BorderRadius, dy as Breakpoint, l as ButtonFontSize, m as ButtonHeight, n as ButtonPaddingHorizontal, o as ButtonPaddingVertical, p as ButtonShadow, C as CARD_TOKENS, a as CHECKBOX_TOKENS, ch as CanonicalFontSize, ci as CanonicalFontWeight, cj as CanonicalLetterSpacing, ck as CanonicalLineHeight, cl as CanonicalTextColor, q as CardPadding, r as CardRadius, s as CardShadow, t as CardSize, u as CardSpacingVertical, v as CheckboxSize, w as CheckboxState, x as CheckboxVariant, bS as ColoredShadow, bN as ComponentRadius, c4 as ComponentSpacing, c5 as ContainerSpacing, D as DATA_TOKENS, b as DOMAIN_TOKENS, y as DataListLabelWidth, z as DataListRowPadding, E as DomainCardBadge, F as DomainCardImage, G as DomainCardLayout, H as DomainCardMetadata, J as DomainCardMotion, K as DomainCardPriceCapacity, L as DomainCardSkeleton, Q as DomainCardSkeletonContentWidth, U as DomainCardSurface, bk as Duration, bl as Easing, bT as ElevationShadow, V as EmptyStateIconSize, bU as FocusRing, cm as FontFamily, cn as FontSize, co as FontWeight, bV as GlowEffect, c6 as GridSpacing, I as ICON_TOKENS, W as IconColor, X as IconSize, Y as IconStroke, Z as InputFontSize, _ as InputHeight, $ as InputPaddingHorizontal, a0 as InputPaddingVertical, a1 as InputRadius, bm as Keyframe, cp as LetterSpacing, cq as LineHeight, M as MENU_TOKENS, d as MOTION_TOKENS, a3 as MenuContentMinWidth, a4 as MenuContentPadding, a5 as MenuContentRadius, a6 as MenuContentShadow, a7 as MenuIndicatorOffset, a8 as MenuIndicatorSize, a9 as MenuItemGap, aa as MenuItemHeight, ab as MenuItemPadding, ac as MenuItemRadius, ad as MenuLabelPadding, ae as MenuSeparatorMargin, af as MotionAnimation, ag as MotionDuration, ah as MotionEasing, ai as MotionTransition, aj as MotionTransitionPreset, by as MotionV2CombinedType, bz as MotionV2Duration, bA as MotionV2Easing, bB as MotionV2SlideDirection, bC as MotionV2Transition, N as NAVIGATION_TOKENS, e as NOTIFICATION_TOKENS, ak as NavigationItemPadding, al as NavigationListGap, am as NavigationRadius, an as NavigationShadow, ao as NavigationSize, ap as NavigationState, aq as NotificationPanelWidth, ar as NotificationTokenVariant, O as OVERLAY_TOKENS, as as OverlayBackdropVariant, at as OverlayModalSize, P as POPOVER_TOKENS, au as PopoverArrowOffset, av as PopoverArrowSize, aw as PopoverContentPadding, ax as PopoverContentRadius, ay as PopoverContentShadow, az as PopoverContentWidth, R as RADIO_TOKENS, aA as RadioSize, aB as RadioState, aC as RadioVariant, S as SECTION_TOKENS, g as SURFACE_TOKENS, h as SWITCH_TOKENS, aD as SectionGap, aE as SectionPadding, c7 as SectionSpacing, c8 as SemanticSpacing, aV as SkeletonAnimation, aW as SkeletonBackground, aX as SkeletonVariant, c9 as Spacing, bn as Spring, ca as StackSpacing, aY as SurfacePadding, aZ as SurfaceRadius, a_ as SurfaceShadow, a$ as SurfaceVariant, b0 as SwitchSize, b1 as SwitchState, b2 as SwitchVariant, T as TEXT_TOKENS, i as TOAST_TOKENS, j as TOOLTIP_TOKENS, b3 as TableCellPadding, b4 as TableGap, b5 as TableHeaderPadding, b6 as TableRowHeight, b7 as TableShadow, b8 as TextFontSize, b9 as TextFontWeight, ba as TextLetterSpacing, bb as TextLineHeight, cr as TextStyle, bc as ToastVariant, bd as TooltipContentRadius, be as TooltipContentShadow, bo as Transition, cg as UI_COLORS, bW as accentColoredShadows, bf as allCSSVariables, bg as allCSSVariablesCSS, bp as animations, bO as borderRadius, bP as componentRadius, bX as componentShadowMapping, bq as durations, br as easings, bY as elevationShadows, bZ as focusRings, cs as fontFamily, ct as fontSize, cu as fontSizeWithMd, cv as fontWeight, bh as generateCSSVariablesCSS, b_ as glowEffects, bs as keyframes, cb as layoutSpacing, cw as letterSpacing, cx as lineHeight, bt as motionCSSVariables, bD as motionV2CSSVariables, bE as motionV2Combined, bF as motionV2Durations, bG as motionV2Easings, bH as motionV2Fade, bI as motionV2Scale, bJ as motionV2Slide, bK as motionV2TailwindConfig, bL as motionV2Transitions, b$ as primaryColoredShadows, bQ as radiusCSSVariables, bu as reducedMotion, cc as semanticSpacing, c0 as shadowBase, c1 as shadowCSSVariables, c2 as shadowOpacity, cd as spacing, ce as spacingCSSVariables, bv as springs, bw as tailwindMotionConfig, bR as tailwindRadiusConfig, c3 as tailwindShadowConfig, cf as tailwindSpacingConfig, cy as tailwindTypographyConfig, cz as textStyles, bi as tokenSystemSummary, bx as transitions, cA as typographyCSSVariables } from './index-Cj8oRSOc.js';
|
|
3
|
+
export { B as BaseColorTokens, C as ChartColors, a as ColorScale, b as ColorTokens, M as Mode, S as SemanticColors, c as SurfaceColors, T as TextColors, d as accentColors, e as baseColors, f as chartColors, g as colorCSSVariables, h as cssVariableColorTokens, p as primaryColors, s as secondaryColors, i as semanticColors, j as surfaceColors, t as tailwindThemeColors, k as textColors } from './colors-BrFmCQv-.js';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
-
import { VariantProps } from 'class-variance-authority';
|
|
6
5
|
import * as React$1 from 'react';
|
|
7
|
-
import { ReactNode } from 'react';
|
|
6
|
+
import React__default, { ReactNode } from 'react';
|
|
7
|
+
import { VariantProps as VariantProps$1 } from 'class-variance-authority';
|
|
8
8
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
9
9
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
10
10
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
11
11
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
12
12
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
13
|
-
import { Placement } from '@floating-ui/react-dom';
|
|
14
13
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
14
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
15
15
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Token CVA Utility
|
|
19
|
+
*
|
|
20
|
+
* A type-safe wrapper around class-variance-authority (CVA) that enforces
|
|
21
|
+
* token-based styling and provides validation in development mode.
|
|
22
|
+
*
|
|
23
|
+
* @enforcement TUNG: tokenCVA introduction
|
|
24
|
+
* @rule ALL visual properties MUST use token-based utilities
|
|
25
|
+
* @rule NO raw Tailwind color/spacing/shadow classes allowed
|
|
26
|
+
* @rule CVA variants MUST reference component tokens
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* import { tokenCVA } from "@/FOUNDATION/lib/token-cva";
|
|
31
|
+
* import { BUTTON_TOKENS } from "@/FOUNDATION/tokens/components/button";
|
|
32
|
+
*
|
|
33
|
+
* const buttonVariants = tokenCVA({
|
|
34
|
+
* base: `${BUTTON_TOKENS.gap} ${BUTTON_TOKENS.radius}`,
|
|
35
|
+
* variants: {
|
|
36
|
+
* variant: {
|
|
37
|
+
* primary: `${BUTTON_TOKENS.variant.primary.background} ${BUTTON_TOKENS.variant.primary.text}`,
|
|
38
|
+
* secondary: `${BUTTON_TOKENS.variant.secondary.background} ${BUTTON_TOKENS.variant.secondary.text}`,
|
|
39
|
+
* },
|
|
40
|
+
* },
|
|
41
|
+
* defaultVariants: {
|
|
42
|
+
* variant: "primary",
|
|
43
|
+
* },
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Re-export VariantProps for convenience
|
|
50
|
+
* This allows components to use VariantProps from tokenCVA instead of CVA directly
|
|
51
|
+
*/
|
|
52
|
+
type VariantProps<T extends (...args: any) => any> = VariantProps$1<T>;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Button CVA Variants
|
|
56
|
+
*
|
|
57
|
+
* @enforcement C0_BUTTON_CVA_ENFORCEMENT
|
|
58
|
+
* @enforcement TUNG_BUTTON_CVA_ENFORCEMENT
|
|
59
|
+
* @enforcement TUNG: tokenCVA introduction
|
|
60
|
+
* @enforcement TUNG_BUTTON_INTERACTION_FIX
|
|
61
|
+
*
|
|
62
|
+
* CVA Enforcement Rules (C0_BUTTON_CVA_ENFORCEMENT):
|
|
63
|
+
* - CVA may ONLY reference token-derived classes
|
|
64
|
+
* - NO raw Tailwind color utilities (bg-red-*, text-blue-*, etc.)
|
|
65
|
+
* - NO direct hover/active utilities outside State Matrix
|
|
66
|
+
* - NO inline conditional class concatenation
|
|
67
|
+
* - NO per-variant Tailwind overrides
|
|
68
|
+
* - Structural utilities (inline-flex, items-center, etc.) are ALLOWED
|
|
69
|
+
*
|
|
70
|
+
* Color Authority Rules:
|
|
71
|
+
* - ALL color-related classes MUST be token-based utilities only
|
|
72
|
+
* - NO raw Tailwind color classes (bg-red-*, text-blue-*, etc.) allowed
|
|
73
|
+
* - ALL color logic MUST be centralized in BUTTON_TOKENS
|
|
74
|
+
* - Button is NOT a source of color - all colors come from Color Authority (tokens/colors.ts)
|
|
75
|
+
* - Button MUST react to token changes - changing tokens/colors.ts MUST change Button appearance
|
|
76
|
+
*
|
|
77
|
+
* State Matrix Authority Rules:
|
|
78
|
+
* - ALL state classes (hover, active, disabled) MUST use State Matrix CSS variables
|
|
79
|
+
* - NO raw Tailwind state utilities (hover:bg-primary/80, active:opacity-50)
|
|
80
|
+
* - States react to Color Authority changes automatically through State Matrix
|
|
81
|
+
*
|
|
82
|
+
* Interaction Authority Contract (TUNG_INTERACTION_AUTHORITY_FOUNDATION):
|
|
83
|
+
* - State Priority: disabled > loading > active > hover > focus-visible > base
|
|
84
|
+
* - CSS variables (--button-*-hover-bg, etc.) are ONLY for visual appearance
|
|
85
|
+
* - pointer-events is NOT a visual token - it controls interaction behavior
|
|
86
|
+
* - Base state MUST have pointer-events: auto (default) - NO pointer-events-none in base
|
|
87
|
+
* - pointer-events-none is ONLY allowed in disabled state (via disabled: prefix)
|
|
88
|
+
* - DevTools Force :hover is NOT proof of functionality - real mouse hover must work
|
|
89
|
+
* - Interaction state (pointer-events, cursor) is SEPARATE from visual state (colors, opacity)
|
|
90
|
+
* - Base state CANNOT block pointer events - only disabled/loading states can
|
|
91
|
+
* - Hover is FORBIDDEN when disabled={true} or loading={true}
|
|
92
|
+
* - Active is FORBIDDEN when disabled={true} or loading={true}
|
|
93
|
+
* - Focus is FORBIDDEN when disabled={true} (for interactions)
|
|
94
|
+
* - All states MUST be browser-native (CSS pseudo-classes), NOT JavaScript-managed
|
|
95
|
+
*
|
|
96
|
+
* @see docs/architecture/BUTTON_CVA_ENFORCEMENT.md
|
|
97
|
+
* @see docs/architecture/INTERACTION_AUTHORITY_CONTRACT.md
|
|
98
|
+
* @see docs/architecture/STATE_AUTHORITY_CONTRACT.md
|
|
99
|
+
* @see docs/architecture/MOTION_AUTHORITY_CONTRACT.md
|
|
100
|
+
* @see docs/architecture/RADIUS_AUTHORITY_CONTRACT.md
|
|
101
|
+
* @see docs/architecture/TYPOGRAPHY_AUTHORITY_CONTRACT.md
|
|
102
|
+
* @see docs/architecture/SPACING_AUTHORITY_CONTRACT.md
|
|
103
|
+
*
|
|
104
|
+
* Authority Compliance:
|
|
105
|
+
* - Motion Authority: Button uses MOTION_TOKENS.transitionPreset.colors for transitions
|
|
106
|
+
* - Radius Authority: Button references componentRadius.button.md for border radius
|
|
107
|
+
* - Typography Authority: Button references fontSize tokens for text sizing
|
|
108
|
+
* - Spacing Authority: Button references semanticSpacing tokens for padding/gap
|
|
109
|
+
* - State Authority: Button uses State Matrix CSS variables for all states
|
|
110
|
+
* - Interaction Authority: Button follows Interaction Authority Contract for state priority
|
|
111
|
+
*
|
|
112
|
+
* Color tokens used (all from BUTTON_TOKENS, which reference tokens/colors.ts):
|
|
113
|
+
* - bg-primary, bg-secondary, bg-accent, bg-destructive, bg-background, bg-muted
|
|
114
|
+
* - text-primary-foreground, text-secondary-foreground, text-accent-foreground, text-destructive-foreground, text-foreground
|
|
115
|
+
* - border-input, border-accent
|
|
116
|
+
* - ring-ring (token-based focus ring)
|
|
117
|
+
* - All hover/active/disabled states use State Matrix CSS variables (--button-*-hover-bg, etc.)
|
|
118
|
+
*
|
|
119
|
+
* Type-level enforcement:
|
|
120
|
+
* - Variant values are restricted to: "primary" | "secondary" | "accent" | "outline" | "ghost" | "destructive"
|
|
121
|
+
* - Size values are restricted to: "sm" | "md" | "lg" | "icon"
|
|
122
|
+
* - TypeScript will error if invalid variant/size values are passed
|
|
123
|
+
* - tokenCVA validates token usage in development mode (warns on forbidden patterns)
|
|
124
|
+
* - No arbitrary color classes can be passed via className prop (enforced by tokenCVA validation)
|
|
125
|
+
*
|
|
126
|
+
* Reference Implementation:
|
|
127
|
+
* - Button is the canonical reference for token-driven CVA patterns
|
|
128
|
+
* - Future components should follow Button's CVA enforcement patterns
|
|
129
|
+
* - Button CVA is immutable - changes require explicit unlock task
|
|
130
|
+
*/
|
|
17
131
|
declare const buttonVariants: (props?: ({
|
|
18
132
|
variant?: "primary" | "secondary" | "accent" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
19
133
|
size?: "sm" | "md" | "lg" | "icon" | null | undefined;
|
|
20
134
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
135
|
+
/**
|
|
136
|
+
* Button Component Props
|
|
137
|
+
*
|
|
138
|
+
* @enforcement TUNG_BUTTON_CVA_ENFORCEMENT
|
|
139
|
+
* @rule variant prop is restricted to ButtonVariant union type
|
|
140
|
+
* @rule size prop is restricted to ButtonSize union type
|
|
141
|
+
* @rule className prop cannot override color classes (tokenCVA validation in dev mode)
|
|
142
|
+
* @rule Button is fully token-based - no raw Tailwind colors allowed
|
|
143
|
+
*/
|
|
21
144
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
22
145
|
asChild?: boolean;
|
|
23
146
|
leftIcon?: React$1.ReactNode;
|
|
24
147
|
rightIcon?: React$1.ReactNode;
|
|
25
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* Button Component Implementation
|
|
151
|
+
*
|
|
152
|
+
* @enforcement TUNG_BUTTON_CVA_ENFORCEMENT
|
|
153
|
+
* @rule NO color-related classes outside CVA
|
|
154
|
+
* @rule JSX must only consume CVA output via buttonVariants()
|
|
155
|
+
* @rule NO conditional className logic affecting colors
|
|
156
|
+
* @rule Button is NOT a source of color - all colors come from Color Authority
|
|
157
|
+
* @rule Button MUST react to token changes - changing tokens/colors.ts MUST change Button appearance
|
|
158
|
+
*
|
|
159
|
+
* Token-only contract:
|
|
160
|
+
* - All colors are defined in BUTTON_TOKENS (src/tokens/components/button.ts)
|
|
161
|
+
* - BUTTON_TOKENS reference foundation tokens from tokens/colors.ts
|
|
162
|
+
* - No raw Tailwind color classes (bg-red-500, text-blue-600, etc.) are allowed
|
|
163
|
+
* - tokenCVA validates token usage in development mode
|
|
164
|
+
* - TypeScript enforces valid variant/size values at compile time
|
|
165
|
+
*
|
|
166
|
+
* Color Authority compliance:
|
|
167
|
+
* - Button does NOT define colors - it consumes them from tokens
|
|
168
|
+
* - Changing tokens/colors.ts will automatically change Button appearance
|
|
169
|
+
* - Button variants are visually distinct and react to theme changes
|
|
170
|
+
* - All hover states use token-based opacity variants
|
|
171
|
+
*/
|
|
26
172
|
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
27
173
|
|
|
28
174
|
declare const textVariants: (props?: ({
|
|
29
175
|
size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
30
176
|
weight?: "normal" | "medium" | "semibold" | "bold" | null | undefined;
|
|
31
177
|
muted?: boolean | null | undefined;
|
|
32
|
-
variant?: "primary" | "secondary" | "muted" | "accent" | "destructive" | "outline" | "
|
|
178
|
+
variant?: "primary" | "secondary" | "muted" | "accent" | "destructive" | "outline" | "link" | "ghost" | null | undefined;
|
|
33
179
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
34
|
-
interface TextProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof textVariants> {
|
|
180
|
+
interface TextProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps$1<typeof textVariants> {
|
|
35
181
|
/**
|
|
36
182
|
* @deprecated Use muted prop or semantic text colors instead
|
|
37
183
|
*/
|
|
38
184
|
variant?: "primary" | "secondary" | "accent" | "outline" | "ghost" | "link" | "destructive" | "muted";
|
|
39
185
|
}
|
|
40
186
|
declare const Text: React$1.ForwardRefExoticComponent<TextProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
41
|
-
type TextSize = VariantProps<typeof textVariants>["size"];
|
|
42
|
-
type TextWeight = VariantProps<typeof textVariants>["weight"];
|
|
187
|
+
type TextSize = VariantProps$1<typeof textVariants>["size"];
|
|
188
|
+
type TextWeight = VariantProps$1<typeof textVariants>["weight"];
|
|
43
189
|
|
|
44
190
|
declare const alertVariants: (props?: ({
|
|
45
191
|
variant?: "primary" | "secondary" | "accent" | "destructive" | "default" | "success" | "warning" | "danger" | "info" | null | undefined;
|
|
46
192
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
47
|
-
interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
|
|
193
|
+
interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps$1<typeof alertVariants> {
|
|
48
194
|
}
|
|
49
195
|
declare const Alert: React$1.ForwardRefExoticComponent<AlertProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
50
196
|
|
|
51
|
-
declare const bodyVariants: (props?: ({
|
|
52
|
-
size?: "md" | "lg" | null | undefined;
|
|
53
|
-
weight?: "normal" | "medium" | "semibold" | "bold" | null | undefined;
|
|
54
|
-
muted?: boolean | null | undefined;
|
|
55
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
56
|
-
interface BodyProps extends React$1.HTMLAttributes<HTMLParagraphElement>, VariantProps<typeof bodyVariants> {
|
|
57
|
-
as?: "p" | "span" | "div";
|
|
58
|
-
}
|
|
59
|
-
declare const Body: React$1.ForwardRefExoticComponent<BodyProps & React$1.RefAttributes<HTMLElement>>;
|
|
60
|
-
|
|
61
|
-
declare const captionVariants: (props?: ({
|
|
62
|
-
weight?: "normal" | "medium" | null | undefined;
|
|
63
|
-
muted?: boolean | null | undefined;
|
|
64
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
65
|
-
interface CaptionProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof captionVariants> {
|
|
66
|
-
as?: "span" | "p" | "div";
|
|
67
|
-
}
|
|
68
|
-
declare const Caption: React$1.ForwardRefExoticComponent<CaptionProps & React$1.RefAttributes<HTMLElement>>;
|
|
69
|
-
|
|
70
|
-
declare const codeVariants: (props?: ({
|
|
71
|
-
variant?: "block" | "inline" | null | undefined;
|
|
72
|
-
muted?: boolean | null | undefined;
|
|
73
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
74
|
-
interface CodeProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof codeVariants> {
|
|
75
|
-
as?: "code" | "pre";
|
|
76
|
-
}
|
|
77
|
-
declare const Code: React$1.ForwardRefExoticComponent<CodeProps & React$1.RefAttributes<HTMLElement>>;
|
|
78
|
-
|
|
79
|
-
declare const displayVariants: (props?: ({
|
|
80
|
-
size?: "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
81
|
-
weight?: "normal" | "medium" | "semibold" | "bold" | null | undefined;
|
|
82
|
-
muted?: boolean | null | undefined;
|
|
83
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
84
|
-
interface DisplayProps extends React$1.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof displayVariants> {
|
|
85
|
-
as?: "h1" | "h2" | "div";
|
|
86
|
-
}
|
|
87
|
-
declare const Display: React$1.ForwardRefExoticComponent<DisplayProps & React$1.RefAttributes<HTMLElement>>;
|
|
88
|
-
|
|
89
197
|
declare const headingVariants: (props?: ({
|
|
90
198
|
level?: 1 | 2 | 4 | 6 | 3 | 5 | null | undefined;
|
|
91
199
|
weight?: "normal" | "medium" | "semibold" | "bold" | null | undefined;
|
|
92
200
|
muted?: boolean | null | undefined;
|
|
93
201
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
94
|
-
interface HeadingProps extends React$1.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof headingVariants> {
|
|
202
|
+
interface HeadingProps extends React$1.HTMLAttributes<HTMLHeadingElement>, VariantProps$1<typeof headingVariants> {
|
|
95
203
|
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
96
204
|
}
|
|
97
205
|
declare const Heading: React$1.ForwardRefExoticComponent<HeadingProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
98
206
|
|
|
99
|
-
declare const leadVariants: (props?: ({
|
|
100
|
-
size?: "lg" | "xl" | null | undefined;
|
|
101
|
-
muted?: boolean | null | undefined;
|
|
102
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
103
|
-
interface LeadProps extends React$1.HTMLAttributes<HTMLParagraphElement>, VariantProps<typeof leadVariants> {
|
|
104
|
-
as?: "p" | "span" | "div";
|
|
105
|
-
}
|
|
106
|
-
declare const Lead: React$1.ForwardRefExoticComponent<LeadProps & React$1.RefAttributes<HTMLElement>>;
|
|
107
|
-
|
|
108
207
|
interface SelectRootProps extends React$1.ComponentPropsWithoutRef<typeof SelectPrimitive.Root> {
|
|
109
208
|
}
|
|
110
209
|
/**
|
|
@@ -433,7 +532,7 @@ declare const checkboxVariants: (props?: ({
|
|
|
433
532
|
* Extends native button HTML attributes with variant props, checked state, and accessibility props.
|
|
434
533
|
* Uses button role="checkbox" pattern for full keyboard accessibility.
|
|
435
534
|
*/
|
|
436
|
-
interface CheckboxProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "size" | "onChange">, VariantProps<typeof checkboxVariants> {
|
|
535
|
+
interface CheckboxProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "size" | "onChange">, VariantProps$1<typeof checkboxVariants> {
|
|
437
536
|
/**
|
|
438
537
|
* Checkbox variant style
|
|
439
538
|
* @default "outline"
|
|
@@ -513,6 +612,57 @@ interface CheckboxProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
513
612
|
*/
|
|
514
613
|
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
515
614
|
|
|
615
|
+
declare const labelVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
616
|
+
interface LabelProps extends React$1.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps$1<typeof labelVariants> {
|
|
617
|
+
/**
|
|
618
|
+
* Whether the field is required (shows asterisk)
|
|
619
|
+
*/
|
|
620
|
+
required?: boolean;
|
|
621
|
+
}
|
|
622
|
+
declare const Label: React$1.ForwardRefExoticComponent<LabelProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Field Container Component
|
|
626
|
+
* Provides spacing between field elements using Stack
|
|
627
|
+
*/
|
|
628
|
+
interface FieldProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
629
|
+
}
|
|
630
|
+
declare const Field: React$1.ForwardRefExoticComponent<FieldProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
631
|
+
/**
|
|
632
|
+
* Field Label Component
|
|
633
|
+
* Wraps Label component with proper styling
|
|
634
|
+
*/
|
|
635
|
+
interface FieldLabelProps extends React$1.ComponentProps<typeof Label> {
|
|
636
|
+
}
|
|
637
|
+
declare const FieldLabel: React$1.ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
638
|
+
/**
|
|
639
|
+
* Field Control Component
|
|
640
|
+
* Wrapper for input/textarea/select controls
|
|
641
|
+
*/
|
|
642
|
+
interface FieldControlProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
643
|
+
}
|
|
644
|
+
declare const FieldControl: React$1.ForwardRefExoticComponent<FieldControlProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
645
|
+
/**
|
|
646
|
+
* Field Description Component
|
|
647
|
+
* Helper text displayed below the control
|
|
648
|
+
*/
|
|
649
|
+
interface FieldDescriptionProps extends React$1.ComponentProps<typeof Text> {
|
|
650
|
+
}
|
|
651
|
+
declare const FieldDescription: React$1.ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
652
|
+
/**
|
|
653
|
+
* Field Error Component
|
|
654
|
+
* Error message displayed below the control
|
|
655
|
+
*/
|
|
656
|
+
interface FieldErrorProps extends React$1.ComponentProps<typeof Text> {
|
|
657
|
+
}
|
|
658
|
+
declare const FieldError: React$1.ForwardRefExoticComponent<Omit<FieldErrorProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
659
|
+
declare const FieldRoot: typeof Field & {
|
|
660
|
+
Label: typeof FieldLabel;
|
|
661
|
+
Control: typeof FieldControl;
|
|
662
|
+
Description: typeof FieldDescription;
|
|
663
|
+
Error: typeof FieldError;
|
|
664
|
+
};
|
|
665
|
+
|
|
516
666
|
/**
|
|
517
667
|
* Input Variants
|
|
518
668
|
*
|
|
@@ -528,22 +678,62 @@ declare const inputVariants: (props?: ({
|
|
|
528
678
|
fullWidth?: boolean | null | undefined;
|
|
529
679
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
530
680
|
|
|
681
|
+
/**
|
|
682
|
+
* Input variant type derived from INPUT_TOKENS
|
|
683
|
+
*
|
|
684
|
+
* Available variants: "primary" | "secondary" | "outline" | "ghost" | "destructive"
|
|
685
|
+
*
|
|
686
|
+
* @example
|
|
687
|
+
* ```tsx
|
|
688
|
+
* const variant: InputVariant = "outline";
|
|
689
|
+
* ```
|
|
690
|
+
*/
|
|
691
|
+
type InputVariant = keyof typeof INPUT_TOKENS.variant;
|
|
692
|
+
|
|
531
693
|
/**
|
|
532
694
|
* Input Component Props
|
|
533
695
|
*
|
|
534
696
|
* Extends native input HTML attributes with variant props, icon slots, and accessibility props.
|
|
535
697
|
*/
|
|
536
|
-
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof inputVariants> {
|
|
698
|
+
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size">, Omit<VariantProps$1<typeof inputVariants>, "variant" | "size"> {
|
|
537
699
|
/**
|
|
538
700
|
* Input variant style
|
|
701
|
+
*
|
|
702
|
+
* Supports responsive values:
|
|
703
|
+
* - Single value: `variant="outline"`
|
|
704
|
+
* - Responsive object: `variant={{ base: "outline", md: "primary" }}`
|
|
705
|
+
*
|
|
539
706
|
* @default "outline"
|
|
707
|
+
*
|
|
708
|
+
* @example
|
|
709
|
+
* ```tsx
|
|
710
|
+
* // Single value
|
|
711
|
+
* <Input variant="outline" />
|
|
712
|
+
*
|
|
713
|
+
* // Responsive
|
|
714
|
+
* <Input variant={{ base: "outline", md: "primary" }} />
|
|
715
|
+
* ```
|
|
540
716
|
*/
|
|
541
|
-
variant?:
|
|
717
|
+
variant?: Responsive<InputVariant>;
|
|
542
718
|
/**
|
|
543
719
|
* Input size
|
|
720
|
+
*
|
|
721
|
+
* Supports responsive values:
|
|
722
|
+
* - Single value: `size="md"`
|
|
723
|
+
* - Responsive object: `size={{ base: "sm", md: "lg" }}`
|
|
724
|
+
*
|
|
544
725
|
* @default "md"
|
|
726
|
+
*
|
|
727
|
+
* @example
|
|
728
|
+
* ```tsx
|
|
729
|
+
* // Single value
|
|
730
|
+
* <Input size="md" />
|
|
731
|
+
*
|
|
732
|
+
* // Responsive
|
|
733
|
+
* <Input size={{ base: "sm", md: "lg" }} />
|
|
734
|
+
* ```
|
|
545
735
|
*/
|
|
546
|
-
size?:
|
|
736
|
+
size?: Responsive<InputSize>;
|
|
547
737
|
/**
|
|
548
738
|
* Input state
|
|
549
739
|
* @default "default"
|
|
@@ -602,7 +792,7 @@ declare const radioVariants: (props?: ({
|
|
|
602
792
|
* Extends native button HTML attributes with variant props, checked state, and accessibility props.
|
|
603
793
|
* Uses button role="radio" pattern for full keyboard accessibility.
|
|
604
794
|
*/
|
|
605
|
-
interface RadioProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "size" | "onChange">, VariantProps<typeof radioVariants> {
|
|
795
|
+
interface RadioProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "size" | "onChange">, VariantProps$1<typeof radioVariants> {
|
|
606
796
|
/**
|
|
607
797
|
* Radio variant style
|
|
608
798
|
* @default "outline"
|
|
@@ -746,7 +936,7 @@ declare const textareaVariants: (props?: ({
|
|
|
746
936
|
*
|
|
747
937
|
* Extends native textarea HTML attributes with variant props, character counter, and accessibility props.
|
|
748
938
|
*/
|
|
749
|
-
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textareaVariants> {
|
|
939
|
+
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps$1<typeof textareaVariants> {
|
|
750
940
|
/**
|
|
751
941
|
* Textarea variant style
|
|
752
942
|
* @default "outline"
|
|
@@ -798,56 +988,34 @@ interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaEleme
|
|
|
798
988
|
*/
|
|
799
989
|
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
800
990
|
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
*/
|
|
806
|
-
required?: boolean;
|
|
991
|
+
interface ProgressProps {
|
|
992
|
+
value: number;
|
|
993
|
+
max?: number;
|
|
994
|
+
className?: string;
|
|
807
995
|
}
|
|
808
|
-
declare const
|
|
996
|
+
declare const Progress: React__default.FC<ProgressProps>;
|
|
809
997
|
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
* Wraps Label component with proper styling
|
|
820
|
-
*/
|
|
821
|
-
interface FieldLabelProps extends React$1.ComponentProps<typeof Label> {
|
|
822
|
-
}
|
|
823
|
-
declare const FieldLabel: React$1.ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
824
|
-
/**
|
|
825
|
-
* Field Control Component
|
|
826
|
-
* Wrapper for input/textarea/select controls
|
|
827
|
-
*/
|
|
828
|
-
interface FieldControlProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
829
|
-
}
|
|
830
|
-
declare const FieldControl: React$1.ForwardRefExoticComponent<FieldControlProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
831
|
-
/**
|
|
832
|
-
* Field Description Component
|
|
833
|
-
* Helper text displayed below the control
|
|
834
|
-
*/
|
|
835
|
-
interface FieldDescriptionProps extends React$1.ComponentProps<typeof Text> {
|
|
998
|
+
declare const skeletonVariants: (props?: ({
|
|
999
|
+
variant?: "block" | "card" | "text" | "circle" | "inline" | null | undefined;
|
|
1000
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1001
|
+
interface SkeletonProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps$1<typeof skeletonVariants> {
|
|
1002
|
+
/**
|
|
1003
|
+
* Whether to hide from screen readers
|
|
1004
|
+
* @default true
|
|
1005
|
+
*/
|
|
1006
|
+
"aria-hidden"?: boolean;
|
|
836
1007
|
}
|
|
837
|
-
declare const FieldDescription: React$1.ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
838
1008
|
/**
|
|
839
|
-
*
|
|
840
|
-
*
|
|
1009
|
+
* Skeleton component for loading states
|
|
1010
|
+
*
|
|
1011
|
+
* @example
|
|
1012
|
+
* ```tsx
|
|
1013
|
+
* <Skeleton variant="text" />
|
|
1014
|
+
* <Skeleton variant="circle" />
|
|
1015
|
+
* <Skeleton variant="card" />
|
|
1016
|
+
* ```
|
|
841
1017
|
*/
|
|
842
|
-
|
|
843
|
-
}
|
|
844
|
-
declare const FieldError: React$1.ForwardRefExoticComponent<Omit<FieldErrorProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
845
|
-
declare const FieldRoot: typeof Field & {
|
|
846
|
-
Label: typeof FieldLabel;
|
|
847
|
-
Control: typeof FieldControl;
|
|
848
|
-
Description: typeof FieldDescription;
|
|
849
|
-
Error: typeof FieldError;
|
|
850
|
-
};
|
|
1018
|
+
declare const Skeleton: React$1.ForwardRefExoticComponent<SkeletonProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
851
1019
|
|
|
852
1020
|
/**
|
|
853
1021
|
* Layout Primitives Shared Types
|
|
@@ -887,10 +1055,6 @@ type FlowValue = "row" | "col" | "dense" | "row-dense" | "col-dense";
|
|
|
887
1055
|
* Shadow token values
|
|
888
1056
|
*/
|
|
889
1057
|
type ShadowValue = ShadowToken;
|
|
890
|
-
/**
|
|
891
|
-
* Display type values
|
|
892
|
-
*/
|
|
893
|
-
type DisplayValue = "block" | "inline" | "inline-block" | "flex" | "grid" | "inline-flex" | "inline-grid" | "none";
|
|
894
1058
|
/**
|
|
895
1059
|
* Responsive spacing prop type
|
|
896
1060
|
*/
|
|
@@ -931,17 +1095,32 @@ type ResponsiveRows = Responsive<RowValue>;
|
|
|
931
1095
|
* Responsive flow prop type
|
|
932
1096
|
*/
|
|
933
1097
|
type ResponsiveFlow = Responsive<FlowValue>;
|
|
934
|
-
/**
|
|
935
|
-
* Surface variant values
|
|
936
|
-
*/
|
|
937
|
-
type SurfaceVariant = "flat" | "raised" | "sunken";
|
|
938
1098
|
|
|
939
1099
|
/**
|
|
940
1100
|
* Box Primitive Component
|
|
941
1101
|
*
|
|
942
|
-
*
|
|
943
|
-
*
|
|
944
|
-
*
|
|
1102
|
+
* Box is the lowest-level layout primitive - a pure, generic container component.
|
|
1103
|
+
* It provides token-based styling for spacing (padding/margin), visual properties
|
|
1104
|
+
* (radius, shadow, background), and element rendering (via `as` prop).
|
|
1105
|
+
*
|
|
1106
|
+
* Box does NOT provide layout composition semantics (display, flexDirection, gap,
|
|
1107
|
+
* alignment). For layout composition, use Stack, Flex, or Grid components.
|
|
1108
|
+
*
|
|
1109
|
+
* All styling uses token-based values only (no raw numeric values).
|
|
1110
|
+
*
|
|
1111
|
+
* @example
|
|
1112
|
+
* ```tsx
|
|
1113
|
+
* // Basic container with padding
|
|
1114
|
+
* <Box p="md" radius="lg" bg="background">
|
|
1115
|
+
* Content
|
|
1116
|
+
* </Box>
|
|
1117
|
+
*
|
|
1118
|
+
* // Use Stack for layout composition
|
|
1119
|
+
* <Stack direction="vertical" spacing="md">
|
|
1120
|
+
* <Box>Item 1</Box>
|
|
1121
|
+
* <Box>Item 2</Box>
|
|
1122
|
+
* </Stack>
|
|
1123
|
+
* ```
|
|
945
1124
|
*/
|
|
946
1125
|
|
|
947
1126
|
/**
|
|
@@ -1008,14 +1187,6 @@ interface BoxProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
1008
1187
|
* Margin left
|
|
1009
1188
|
*/
|
|
1010
1189
|
ml?: ResponsiveSpacing;
|
|
1011
|
-
/**
|
|
1012
|
-
* Display type
|
|
1013
|
-
*/
|
|
1014
|
-
display?: DisplayValue;
|
|
1015
|
-
/**
|
|
1016
|
-
* Flex direction (when display is flex)
|
|
1017
|
-
*/
|
|
1018
|
-
flexDirection?: FlexDirectionValue;
|
|
1019
1190
|
/**
|
|
1020
1191
|
* Border radius - token-based (none, xs, sm, md, lg, xl, 2xl, 3xl, full)
|
|
1021
1192
|
*/
|
|
@@ -1028,18 +1199,6 @@ interface BoxProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
1028
1199
|
* Background color - token-based
|
|
1029
1200
|
*/
|
|
1030
1201
|
bg?: ResponsiveColor;
|
|
1031
|
-
/**
|
|
1032
|
-
* Gap (for flex/grid layouts) - token-based
|
|
1033
|
-
*/
|
|
1034
|
-
gap?: ResponsiveSpacing;
|
|
1035
|
-
/**
|
|
1036
|
-
* Align items (for flex/grid layouts)
|
|
1037
|
-
*/
|
|
1038
|
-
align?: "start" | "end" | "center" | "baseline" | "stretch";
|
|
1039
|
-
/**
|
|
1040
|
-
* Justify content (for flex/grid layouts)
|
|
1041
|
-
*/
|
|
1042
|
-
justify?: "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
1043
1202
|
}
|
|
1044
1203
|
/**
|
|
1045
1204
|
* Box component
|
|
@@ -1049,23 +1208,42 @@ declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttri
|
|
|
1049
1208
|
/**
|
|
1050
1209
|
* Stack Primitive Component
|
|
1051
1210
|
*
|
|
1052
|
-
*
|
|
1053
|
-
*
|
|
1211
|
+
* Stack is the primary layout composition primitive for vertical and horizontal flows.
|
|
1212
|
+
* It provides semantic spacing between items and handles flexbox layout composition.
|
|
1213
|
+
* Uses Box internally as the base container.
|
|
1214
|
+
*
|
|
1215
|
+
* All spacing uses token-based values only.
|
|
1216
|
+
*
|
|
1217
|
+
* @example
|
|
1218
|
+
* ```tsx
|
|
1219
|
+
* // Vertical stack (default)
|
|
1220
|
+
* <Stack direction="vertical" spacing="md">
|
|
1221
|
+
* <Box>Item 1</Box>
|
|
1222
|
+
* <Box>Item 2</Box>
|
|
1223
|
+
* </Stack>
|
|
1224
|
+
*
|
|
1225
|
+
* // Horizontal stack
|
|
1226
|
+
* <Stack direction="horizontal" spacing="lg" align="center">
|
|
1227
|
+
* <Box>Item 1</Box>
|
|
1228
|
+
* <Box>Item 2</Box>
|
|
1229
|
+
* </Stack>
|
|
1230
|
+
* ```
|
|
1054
1231
|
*/
|
|
1055
1232
|
|
|
1056
1233
|
interface StackProps extends Omit<BoxProps, "display" | "flexDirection" | "gap"> {
|
|
1057
1234
|
/**
|
|
1058
1235
|
* Stack direction - vertical (column) or horizontal (row)
|
|
1236
|
+
* @default "vertical"
|
|
1059
1237
|
*/
|
|
1060
1238
|
direction?: "vertical" | "horizontal";
|
|
1061
1239
|
/**
|
|
1062
1240
|
* Spacing between stack items - token-based (xs, sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl)
|
|
1063
|
-
*
|
|
1241
|
+
* This is the canonical prop for spacing. Use `spacing` instead of `gap` for clarity.
|
|
1064
1242
|
*/
|
|
1065
1243
|
spacing?: ResponsiveSpacing;
|
|
1066
1244
|
/**
|
|
1067
1245
|
* Gap between stack items - token-based (xs, sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl)
|
|
1068
|
-
*
|
|
1246
|
+
* @deprecated Use `spacing` prop instead. This prop is kept for backward compatibility.
|
|
1069
1247
|
*/
|
|
1070
1248
|
gap?: ResponsiveSpacing;
|
|
1071
1249
|
/**
|
|
@@ -1078,7 +1256,7 @@ interface StackProps extends Omit<BoxProps, "display" | "flexDirection" | "gap">
|
|
|
1078
1256
|
justify?: "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
1079
1257
|
}
|
|
1080
1258
|
/**
|
|
1081
|
-
* Stack component -
|
|
1259
|
+
* Stack component - primary layout composition primitive
|
|
1082
1260
|
*/
|
|
1083
1261
|
declare const Stack: React$1.ForwardRefExoticComponent<StackProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1084
1262
|
|
|
@@ -1090,8 +1268,21 @@ declare const Column: React$1.ForwardRefExoticComponent<StackProps & React$1.Ref
|
|
|
1090
1268
|
/**
|
|
1091
1269
|
* Container Layout Primitive Component
|
|
1092
1270
|
*
|
|
1093
|
-
*
|
|
1094
|
-
*
|
|
1271
|
+
* Container is a specialized layout primitive with a single, focused responsibility:
|
|
1272
|
+
* width constraint and horizontal padding. It does NOT provide layout composition
|
|
1273
|
+
* behaviors (flex, grid, alignment). For layout composition, use Stack, Flex, or Grid.
|
|
1274
|
+
*
|
|
1275
|
+
* Container uses CSS-layer class .tm-container with token-based padding and max-width.
|
|
1276
|
+
*
|
|
1277
|
+
* @example
|
|
1278
|
+
* ```tsx
|
|
1279
|
+
* // Basic container with width constraint
|
|
1280
|
+
* <Container maxWidth="lg" padding="md">
|
|
1281
|
+
* <Stack spacing="md">
|
|
1282
|
+
* <Box>Content</Box>
|
|
1283
|
+
* </Stack>
|
|
1284
|
+
* </Container>
|
|
1285
|
+
* ```
|
|
1095
1286
|
*/
|
|
1096
1287
|
|
|
1097
1288
|
interface ContainerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
@@ -1116,16 +1307,30 @@ interface ContainerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
1116
1307
|
center?: boolean;
|
|
1117
1308
|
}
|
|
1118
1309
|
/**
|
|
1119
|
-
* Container component -
|
|
1310
|
+
* Container component - specialized primitive for width constraint and horizontal padding only
|
|
1120
1311
|
*/
|
|
1121
1312
|
declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1122
1313
|
|
|
1123
1314
|
/**
|
|
1124
1315
|
* Flex Primitive Component
|
|
1125
1316
|
*
|
|
1126
|
-
*
|
|
1127
|
-
* grow, shrink, basis, alignment,
|
|
1317
|
+
* Flex is an advanced flexbox container extension of Box. It provides full control
|
|
1318
|
+
* over flexbox properties (direction, wrap, grow, shrink, basis, alignment, spacing).
|
|
1319
|
+
* Uses Box internally as the base container.
|
|
1320
|
+
*
|
|
1321
|
+
* Use Flex when you need advanced flexbox control beyond what Stack provides.
|
|
1322
|
+
* For simple vertical/horizontal layouts, prefer Stack.
|
|
1323
|
+
*
|
|
1128
1324
|
* All spacing values use tokens only.
|
|
1325
|
+
*
|
|
1326
|
+
* @example
|
|
1327
|
+
* ```tsx
|
|
1328
|
+
* // Advanced flexbox with wrap and grow
|
|
1329
|
+
* <Flex direction="row" wrap="wrap" gap="md" grow={1}>
|
|
1330
|
+
* <Box>Item 1</Box>
|
|
1331
|
+
* <Box>Item 2</Box>
|
|
1332
|
+
* </Flex>
|
|
1333
|
+
* ```
|
|
1129
1334
|
*/
|
|
1130
1335
|
|
|
1131
1336
|
interface FlexProps extends Omit<BoxProps, "display" | "flexDirection" | "align" | "justify"> {
|
|
@@ -1174,8 +1379,24 @@ declare const Flex: React$1.ForwardRefExoticComponent<FlexProps & React$1.RefAtt
|
|
|
1174
1379
|
/**
|
|
1175
1380
|
* Grid Primitive Component
|
|
1176
1381
|
*
|
|
1177
|
-
*
|
|
1178
|
-
*
|
|
1382
|
+
* Grid is a CSS Grid container extension of Box. It provides full control
|
|
1383
|
+
* over grid layout properties (columns, rows, gap, flow, alignment).
|
|
1384
|
+
* Uses Box internally as the base container.
|
|
1385
|
+
*
|
|
1386
|
+
* Use Grid for two-dimensional layouts that require precise control over
|
|
1387
|
+
* both rows and columns. For one-dimensional layouts, prefer Stack or Flex.
|
|
1388
|
+
*
|
|
1389
|
+
* All spacing values use tokens only.
|
|
1390
|
+
*
|
|
1391
|
+
* @example
|
|
1392
|
+
* ```tsx
|
|
1393
|
+
* // CSS Grid layout
|
|
1394
|
+
* <Grid cols={3} gap="md" align="center">
|
|
1395
|
+
* <Box>Item 1</Box>
|
|
1396
|
+
* <Box>Item 2</Box>
|
|
1397
|
+
* <Box>Item 3</Box>
|
|
1398
|
+
* </Grid>
|
|
1399
|
+
* ```
|
|
1179
1400
|
*/
|
|
1180
1401
|
|
|
1181
1402
|
interface GridProps extends Omit<BoxProps, "display" | "align" | "justify"> {
|
|
@@ -1232,46 +1453,51 @@ declare const Grid: React$1.ForwardRefExoticComponent<GridProps & React$1.RefAtt
|
|
|
1232
1453
|
/**
|
|
1233
1454
|
* Row Primitive Component
|
|
1234
1455
|
*
|
|
1235
|
-
*
|
|
1236
|
-
*
|
|
1456
|
+
* Row is a semantic alias for Stack with horizontal direction.
|
|
1457
|
+
* It provides a more explicit API for horizontal layouts.
|
|
1458
|
+
* Uses Stack internally with direction="horizontal".
|
|
1459
|
+
*
|
|
1460
|
+
* All spacing uses token-based values only.
|
|
1461
|
+
*
|
|
1462
|
+
* @example
|
|
1463
|
+
* ```tsx
|
|
1464
|
+
* <Row spacing="md" align="center">
|
|
1465
|
+
* <Box>Item 1</Box>
|
|
1466
|
+
* <Box>Item 2</Box>
|
|
1467
|
+
* </Row>
|
|
1468
|
+
* ```
|
|
1237
1469
|
*/
|
|
1238
1470
|
|
|
1239
|
-
interface RowProps extends Omit<
|
|
1240
|
-
/**
|
|
1241
|
-
* Gap between row items - token-based (xs, sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl)
|
|
1242
|
-
*/
|
|
1243
|
-
gap?: ResponsiveSpacing;
|
|
1244
|
-
/**
|
|
1245
|
-
* Align items
|
|
1246
|
-
*/
|
|
1247
|
-
align?: "start" | "end" | "center" | "baseline" | "stretch";
|
|
1248
|
-
/**
|
|
1249
|
-
* Justify content
|
|
1250
|
-
*/
|
|
1251
|
-
justify?: "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
1471
|
+
interface RowProps extends Omit<StackProps, "direction"> {
|
|
1252
1472
|
}
|
|
1253
1473
|
/**
|
|
1254
|
-
* Row component -
|
|
1474
|
+
* Row component - semantic alias for Stack with horizontal direction
|
|
1255
1475
|
*/
|
|
1256
1476
|
declare const Row: React$1.ForwardRefExoticComponent<RowProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1257
1477
|
|
|
1258
|
-
declare const surfaceVariants
|
|
1259
|
-
variant?: "flat" | "raised" | "sunken" | null | undefined;
|
|
1478
|
+
declare const surfaceVariants: (props?: ({
|
|
1479
|
+
variant?: "flat" | "raised" | "sunken" | "outline" | "subtle" | null | undefined;
|
|
1260
1480
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1261
|
-
interface SurfaceProps
|
|
1481
|
+
interface SurfaceProps extends Omit<BoxProps, "bg" | "shadow" | "radius" | "p">, VariantProps$1<typeof surfaceVariants> {
|
|
1262
1482
|
/**
|
|
1263
1483
|
* Surface variant
|
|
1264
1484
|
*/
|
|
1265
|
-
variant?:
|
|
1485
|
+
variant?: "flat" | "raised" | "sunken" | "outline" | "subtle";
|
|
1266
1486
|
/**
|
|
1267
|
-
*
|
|
1487
|
+
* Padding - token-based (sm, md, lg, xl)
|
|
1488
|
+
* Overrides default variant padding
|
|
1489
|
+
*/
|
|
1490
|
+
p?: ResponsiveSpacing;
|
|
1491
|
+
/**
|
|
1492
|
+
* Border radius - token-based (sm, md, lg, xl, 2xl, 3xl, full)
|
|
1493
|
+
* Overrides default variant radius
|
|
1268
1494
|
*/
|
|
1269
|
-
radius?:
|
|
1495
|
+
radius?: ResponsiveRadius;
|
|
1270
1496
|
}
|
|
1271
1497
|
/**
|
|
1272
|
-
* Surface component - elevation variant
|
|
1498
|
+
* Surface component - elevation variant container
|
|
1273
1499
|
*/
|
|
1274
|
-
declare const Surface
|
|
1500
|
+
declare const Surface: React$1.ForwardRefExoticComponent<SurfaceProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1275
1501
|
|
|
1276
1502
|
/**
|
|
1277
1503
|
* Card Container Component
|
|
@@ -1380,30 +1606,6 @@ interface SectionProps extends Omit<StackProps, "py" | "gap"> {
|
|
|
1380
1606
|
*/
|
|
1381
1607
|
declare const Section: React$1.ForwardRefExoticComponent<SectionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1382
1608
|
|
|
1383
|
-
declare const surfaceVariants: (props?: ({
|
|
1384
|
-
variant?: "flat" | "raised" | "sunken" | "outline" | "subtle" | null | undefined;
|
|
1385
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1386
|
-
interface SurfaceProps extends Omit<BoxProps, "bg" | "shadow" | "radius" | "p">, VariantProps<typeof surfaceVariants> {
|
|
1387
|
-
/**
|
|
1388
|
-
* Surface variant
|
|
1389
|
-
*/
|
|
1390
|
-
variant?: "flat" | "raised" | "sunken" | "outline" | "subtle";
|
|
1391
|
-
/**
|
|
1392
|
-
* Padding - token-based (sm, md, lg, xl)
|
|
1393
|
-
* Overrides default variant padding
|
|
1394
|
-
*/
|
|
1395
|
-
p?: ResponsiveSpacing;
|
|
1396
|
-
/**
|
|
1397
|
-
* Border radius - token-based (sm, md, lg, xl, 2xl, 3xl, full)
|
|
1398
|
-
* Overrides default variant radius
|
|
1399
|
-
*/
|
|
1400
|
-
radius?: ResponsiveRadius;
|
|
1401
|
-
}
|
|
1402
|
-
/**
|
|
1403
|
-
* Surface component - elevation variant container
|
|
1404
|
-
*/
|
|
1405
|
-
declare const Surface: React$1.ForwardRefExoticComponent<SurfaceProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1406
|
-
|
|
1407
1609
|
/**
|
|
1408
1610
|
* Portal Component
|
|
1409
1611
|
*
|
|
@@ -1437,7 +1639,7 @@ declare const Portal: React$1.ForwardRefExoticComponent<PortalProps & React$1.Re
|
|
|
1437
1639
|
declare const backdropVariants: (props?: ({
|
|
1438
1640
|
variant?: "default" | "transparent" | "blurred" | null | undefined;
|
|
1439
1641
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1440
|
-
interface BackdropProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof backdropVariants> {
|
|
1642
|
+
interface BackdropProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps$1<typeof backdropVariants> {
|
|
1441
1643
|
/**
|
|
1442
1644
|
* Backdrop variant
|
|
1443
1645
|
*/
|
|
@@ -1544,7 +1746,7 @@ interface ToastData {
|
|
|
1544
1746
|
*/
|
|
1545
1747
|
duration?: ResponsiveDelay;
|
|
1546
1748
|
}
|
|
1547
|
-
interface ToastRootProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ToastPrimitives.Root>, "duration">, VariantProps<typeof toastVariants> {
|
|
1749
|
+
interface ToastRootProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ToastPrimitives.Root>, "duration">, VariantProps$1<typeof toastVariants> {
|
|
1548
1750
|
/**
|
|
1549
1751
|
* Toast data
|
|
1550
1752
|
*/
|
|
@@ -1656,118 +1858,403 @@ declare function ToastProvider({ children, position, swipeDirection, duration, }
|
|
|
1656
1858
|
*/
|
|
1657
1859
|
declare function useToast(): ToastContextType;
|
|
1658
1860
|
|
|
1861
|
+
declare function Toaster(): react_jsx_runtime.JSX.Element;
|
|
1862
|
+
|
|
1659
1863
|
/**
|
|
1660
|
-
*
|
|
1864
|
+
* ============================================================================
|
|
1865
|
+
* 🔒 FOUNDATION LOCK - ContextMenu Component
|
|
1866
|
+
* ============================================================================
|
|
1661
1867
|
*
|
|
1662
|
-
*
|
|
1663
|
-
*
|
|
1868
|
+
* This component is LOCKED as part of the UI Foundation Layer.
|
|
1869
|
+
*
|
|
1870
|
+
* **ARCHITECTURE LOCK DOCUMENTATION:**
|
|
1871
|
+
* See: docs/architecture/TUI_ARCHITECTURE_LOCK.md
|
|
1872
|
+
*
|
|
1873
|
+
* This component must not be modified except for critical bug fixes.
|
|
1874
|
+
* All architectural decisions are final. Museum-grade quality achieved.
|
|
1875
|
+
*
|
|
1876
|
+
* LOCKED STATUS:
|
|
1877
|
+
* - Component: ContextMenu (Radix ContextMenu wrapper)
|
|
1878
|
+
* - Category: Menus (Foundation Layer)
|
|
1879
|
+
* - Lock Date: 2025-12-12
|
|
1880
|
+
* - Status: ✅ LOCKED (FOUNDATION_LOCKED)
|
|
1881
|
+
*
|
|
1882
|
+
* ALLOWED CHANGES (Minimal, approval required):
|
|
1883
|
+
* - Critical bug fixes only (with explicit approval)
|
|
1884
|
+
* - Typing improvements (TypeScript only, no runtime changes)
|
|
1885
|
+
* - Token wiring improvements (connecting existing tokens, no new tokens)
|
|
1886
|
+
* - Stories/tests fixes (test updates only, no component changes)
|
|
1887
|
+
* - Documentation updates (comments, docs only)
|
|
1888
|
+
* - Code comments explaining intentional design decisions
|
|
1889
|
+
*
|
|
1890
|
+
* FORBIDDEN CHANGES (Strictly prohibited):
|
|
1891
|
+
* - ❌ New foundation components or subcomponents
|
|
1892
|
+
* - ❌ Duplicate component implementations
|
|
1893
|
+
* - ❌ Custom behavior that Radix ContextMenu should handle
|
|
1894
|
+
* - ❌ String/number visual props (must use tokens only)
|
|
1895
|
+
* - ❌ Re-implementing focus/keyboard/aria/portal logic
|
|
1896
|
+
* - ❌ Breaking API changes
|
|
1897
|
+
* - ❌ Behavioral rewrites or custom logic additions
|
|
1898
|
+
* - ❌ Token system modifications (additions/removals)
|
|
1899
|
+
* - ❌ Style modifications beyond token wiring
|
|
1900
|
+
* - ❌ New props that change component behavior
|
|
1901
|
+
*
|
|
1902
|
+
* **If you believe changes are necessary, review TUI_ARCHITECTURE_LOCK.md first.**
|
|
1903
|
+
*
|
|
1904
|
+
* ============================================================================
|
|
1905
|
+
*
|
|
1906
|
+
* ContextMenu Component
|
|
1907
|
+
*
|
|
1908
|
+
* Radix-based context menu component with token-driven styling.
|
|
1909
|
+
* All behavior (pointer, keyboard, focus, ARIA, positioning, collision handling)
|
|
1910
|
+
* is handled by Radix ContextMenu. Tenerife UI provides visual styling through
|
|
1911
|
+
* tokens only. This is a strict wrapper pattern - no custom behavior logic.
|
|
1664
1912
|
*/
|
|
1665
1913
|
|
|
1666
|
-
|
|
1914
|
+
type ContextMenuRootProps = React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Root>;
|
|
1915
|
+
/**
|
|
1916
|
+
* ContextMenu Root component
|
|
1917
|
+
* Radix Root is a context provider, not a DOM element, so it doesn't accept refs
|
|
1918
|
+
*/
|
|
1919
|
+
declare const ContextMenuRoot: React$1.FC<ContextMenuRootProps>;
|
|
1920
|
+
interface ContextMenuTriggerProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Trigger>, "children"> {
|
|
1921
|
+
children?: React$1.ReactNode;
|
|
1922
|
+
}
|
|
1923
|
+
/**
|
|
1924
|
+
* ContextMenu Trigger component
|
|
1925
|
+
* Radix handles right-click behavior automatically
|
|
1926
|
+
*/
|
|
1927
|
+
declare const ContextMenuTrigger: React$1.ForwardRefExoticComponent<ContextMenuTriggerProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1928
|
+
interface ContextMenuContentProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>, "size" | "width" | "padding" | "radius" | "surface"> {
|
|
1667
1929
|
/**
|
|
1668
|
-
*
|
|
1930
|
+
* Size variant - token-based
|
|
1669
1931
|
*/
|
|
1670
|
-
|
|
1932
|
+
size?: ResponsiveContextMenuSize;
|
|
1671
1933
|
/**
|
|
1672
|
-
*
|
|
1934
|
+
* Width - token-based
|
|
1673
1935
|
*/
|
|
1674
|
-
|
|
1936
|
+
width?: ResponsiveContextMenuWidth;
|
|
1937
|
+
/**
|
|
1938
|
+
* Padding - token-based
|
|
1939
|
+
*/
|
|
1940
|
+
padding?: ResponsiveSpace;
|
|
1941
|
+
/**
|
|
1942
|
+
* Radius - token-based
|
|
1943
|
+
*/
|
|
1944
|
+
radius?: RadiusToken;
|
|
1945
|
+
/**
|
|
1946
|
+
* Surface variant - token-based
|
|
1947
|
+
*/
|
|
1948
|
+
surface?: SurfaceToken;
|
|
1675
1949
|
}
|
|
1676
1950
|
/**
|
|
1677
|
-
*
|
|
1951
|
+
* ContextMenu Content component
|
|
1952
|
+
* Wrapper around Radix ContextMenu Content with token-based styling.
|
|
1678
1953
|
*/
|
|
1679
|
-
declare const
|
|
1680
|
-
|
|
1681
|
-
|
|
1954
|
+
declare const ContextMenuContent: React$1.ForwardRefExoticComponent<ContextMenuContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1955
|
+
interface ContextMenuItemProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item>, "children"> {
|
|
1956
|
+
children?: React$1.ReactNode;
|
|
1682
1957
|
/**
|
|
1683
|
-
*
|
|
1958
|
+
* Size variant - token-based
|
|
1959
|
+
*
|
|
1960
|
+
* @default Inherited from ContextMenuContent
|
|
1961
|
+
* @note If not specified, the size is automatically inherited from the parent
|
|
1962
|
+
* ContextMenuContent. You can override this by providing an explicit size prop.
|
|
1963
|
+
* This allows you to set size once on Content and have all Items inherit it.
|
|
1684
1964
|
*/
|
|
1685
|
-
|
|
1965
|
+
size?: ResponsiveContextMenuSize;
|
|
1686
1966
|
/**
|
|
1687
|
-
*
|
|
1967
|
+
* Tone variant - token-based
|
|
1688
1968
|
*/
|
|
1689
|
-
|
|
1969
|
+
tone?: ContextMenuItemToneToken;
|
|
1690
1970
|
/**
|
|
1691
|
-
*
|
|
1971
|
+
* Gap between item content - token-based
|
|
1692
1972
|
*/
|
|
1693
|
-
|
|
1973
|
+
gap?: ResponsiveSpace;
|
|
1694
1974
|
/**
|
|
1695
|
-
*
|
|
1975
|
+
* Inset padding for item
|
|
1696
1976
|
*/
|
|
1697
|
-
|
|
1977
|
+
inset?: boolean;
|
|
1698
1978
|
}
|
|
1699
1979
|
/**
|
|
1700
|
-
*
|
|
1701
|
-
|
|
1702
|
-
declare const NotificationCenterGroupHeader: React$1.ForwardRefExoticComponent<NotificationCenterGroupHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1703
|
-
|
|
1704
|
-
/**
|
|
1705
|
-
* Notification Center Types
|
|
1706
|
-
*
|
|
1707
|
-
* Type definitions for Notification Center components.
|
|
1708
|
-
*/
|
|
1709
|
-
|
|
1710
|
-
/**
|
|
1711
|
-
* Notification channel types
|
|
1980
|
+
* ContextMenu Item component
|
|
1981
|
+
* Wrapper around Radix ContextMenu Item with token-based styling.
|
|
1712
1982
|
*/
|
|
1713
|
-
|
|
1983
|
+
declare const ContextMenuItem: React$1.ForwardRefExoticComponent<ContextMenuItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1984
|
+
interface ContextMenuCheckboxItemProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>, "children"> {
|
|
1985
|
+
children?: React$1.ReactNode;
|
|
1986
|
+
/**
|
|
1987
|
+
* Size variant - token-based
|
|
1988
|
+
*/
|
|
1989
|
+
size?: ResponsiveContextMenuSize;
|
|
1990
|
+
/**
|
|
1991
|
+
* Tone variant - token-based
|
|
1992
|
+
*/
|
|
1993
|
+
tone?: ContextMenuItemToneToken;
|
|
1994
|
+
/**
|
|
1995
|
+
* Gap between item content - token-based
|
|
1996
|
+
*/
|
|
1997
|
+
gap?: ResponsiveSpace;
|
|
1998
|
+
}
|
|
1714
1999
|
/**
|
|
1715
|
-
*
|
|
2000
|
+
* ContextMenu CheckboxItem component
|
|
2001
|
+
* Wrapper around Radix ContextMenu CheckboxItem with token-based styling.
|
|
1716
2002
|
*/
|
|
1717
|
-
|
|
2003
|
+
declare const ContextMenuCheckboxItem: React$1.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2004
|
+
interface ContextMenuRadioGroupProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioGroup>, "children"> {
|
|
2005
|
+
children?: React$1.ReactNode;
|
|
2006
|
+
}
|
|
1718
2007
|
/**
|
|
1719
|
-
*
|
|
2008
|
+
* ContextMenu RadioGroup component
|
|
2009
|
+
* Wrapper around Radix ContextMenu RadioGroup.
|
|
1720
2010
|
*/
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
description?: string;
|
|
1725
|
-
variant?: NotificationVariant;
|
|
1726
|
-
channel?: NotificationChannel;
|
|
1727
|
-
action?: ToastActionData;
|
|
2011
|
+
declare const ContextMenuRadioGroup: React$1.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2012
|
+
interface ContextMenuRadioItemProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>, "children"> {
|
|
2013
|
+
children?: React$1.ReactNode;
|
|
1728
2014
|
/**
|
|
1729
|
-
*
|
|
1730
|
-
* Uses motion duration tokens
|
|
2015
|
+
* Size variant - token-based
|
|
1731
2016
|
*/
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
2017
|
+
size?: ResponsiveContextMenuSize;
|
|
2018
|
+
/**
|
|
2019
|
+
* Tone variant - token-based
|
|
2020
|
+
*/
|
|
2021
|
+
tone?: ContextMenuItemToneToken;
|
|
2022
|
+
/**
|
|
2023
|
+
* Gap between item content - token-based
|
|
2024
|
+
*/
|
|
2025
|
+
gap?: ResponsiveSpace;
|
|
1736
2026
|
}
|
|
1737
2027
|
/**
|
|
1738
|
-
*
|
|
2028
|
+
* ContextMenu RadioItem component
|
|
2029
|
+
* Wrapper around Radix ContextMenu RadioItem with token-based styling.
|
|
1739
2030
|
*/
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
2031
|
+
declare const ContextMenuRadioItem: React$1.ForwardRefExoticComponent<ContextMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2032
|
+
interface ContextMenuSeparatorProps extends React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator> {
|
|
2033
|
+
className?: string;
|
|
2034
|
+
}
|
|
2035
|
+
/**
|
|
2036
|
+
* ContextMenu Separator component
|
|
2037
|
+
* Wrapper around Radix ContextMenu Separator with token-based styling.
|
|
2038
|
+
*/
|
|
2039
|
+
declare const ContextMenuSeparator: React$1.ForwardRefExoticComponent<ContextMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2040
|
+
interface ContextMenuLabelProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label>, "children"> {
|
|
2041
|
+
children?: React$1.ReactNode;
|
|
1746
2042
|
/**
|
|
1747
|
-
*
|
|
1748
|
-
* Uses motion duration tokens
|
|
2043
|
+
* Padding - token-based
|
|
1749
2044
|
*/
|
|
1750
|
-
|
|
1751
|
-
persistent?: boolean;
|
|
2045
|
+
padding?: ResponsiveSpace;
|
|
1752
2046
|
}
|
|
1753
2047
|
/**
|
|
1754
|
-
*
|
|
2048
|
+
* ContextMenu Label component
|
|
2049
|
+
* Wrapper around Radix ContextMenu Label with token-based styling.
|
|
1755
2050
|
*/
|
|
1756
|
-
|
|
2051
|
+
declare const ContextMenuLabel: React$1.ForwardRefExoticComponent<ContextMenuLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2052
|
+
interface ContextMenuSubProps extends React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Sub> {
|
|
2053
|
+
children?: React$1.ReactNode;
|
|
2054
|
+
}
|
|
1757
2055
|
/**
|
|
1758
|
-
*
|
|
2056
|
+
* ContextMenu Sub component
|
|
2057
|
+
* Wrapper around Radix ContextMenu Sub.
|
|
1759
2058
|
*/
|
|
1760
|
-
|
|
2059
|
+
declare const ContextMenuSub: React$1.FC<ContextMenuSubProps>;
|
|
2060
|
+
interface ContextMenuSubTriggerProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger>, "children"> {
|
|
2061
|
+
children?: React$1.ReactNode;
|
|
1761
2062
|
/**
|
|
1762
|
-
*
|
|
2063
|
+
* Size variant - token-based
|
|
1763
2064
|
*/
|
|
1764
|
-
|
|
2065
|
+
size?: ResponsiveContextMenuSize;
|
|
1765
2066
|
/**
|
|
1766
|
-
*
|
|
2067
|
+
* Tone variant - token-based
|
|
1767
2068
|
*/
|
|
1768
|
-
|
|
2069
|
+
tone?: ContextMenuItemToneToken;
|
|
1769
2070
|
/**
|
|
1770
|
-
*
|
|
2071
|
+
* Gap between item content - token-based
|
|
2072
|
+
*/
|
|
2073
|
+
gap?: ResponsiveSpace;
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* ContextMenu SubTrigger component
|
|
2077
|
+
* Wrapper around Radix ContextMenu SubTrigger with token-based styling.
|
|
2078
|
+
*/
|
|
2079
|
+
declare const ContextMenuSubTrigger: React$1.ForwardRefExoticComponent<ContextMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2080
|
+
interface ContextMenuSubContentProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>, "size" | "width" | "padding" | "radius" | "surface"> {
|
|
2081
|
+
/**
|
|
2082
|
+
* Size variant - token-based
|
|
2083
|
+
*/
|
|
2084
|
+
size?: ResponsiveContextMenuSize;
|
|
2085
|
+
/**
|
|
2086
|
+
* Width - token-based
|
|
2087
|
+
*/
|
|
2088
|
+
width?: ResponsiveContextMenuWidth;
|
|
2089
|
+
/**
|
|
2090
|
+
* Padding - token-based
|
|
2091
|
+
*/
|
|
2092
|
+
padding?: ResponsiveSpace;
|
|
2093
|
+
/**
|
|
2094
|
+
* Radius - token-based
|
|
2095
|
+
*/
|
|
2096
|
+
radius?: RadiusToken;
|
|
2097
|
+
/**
|
|
2098
|
+
* Surface variant - token-based
|
|
2099
|
+
*/
|
|
2100
|
+
surface?: SurfaceToken;
|
|
2101
|
+
}
|
|
2102
|
+
/**
|
|
2103
|
+
* ContextMenu SubContent component
|
|
2104
|
+
* Wrapper around Radix ContextMenu SubContent with token-based styling.
|
|
2105
|
+
*/
|
|
2106
|
+
declare const ContextMenuSubContent: React$1.ForwardRefExoticComponent<ContextMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2107
|
+
|
|
2108
|
+
/**
|
|
2109
|
+
* ContextMenu Component
|
|
2110
|
+
*
|
|
2111
|
+
* Radix ContextMenu-based component with token-driven styling.
|
|
2112
|
+
*
|
|
2113
|
+
* **Usage:**
|
|
2114
|
+
* ```tsx
|
|
2115
|
+
* <ContextMenu.Root>
|
|
2116
|
+
* <ContextMenu.Trigger>Right-click me</ContextMenu.Trigger>
|
|
2117
|
+
* <ContextMenu.Content>
|
|
2118
|
+
* <ContextMenu.Item>Item 1</ContextMenu.Item>
|
|
2119
|
+
* <ContextMenu.Item>Item 2</ContextMenu.Item>
|
|
2120
|
+
* <ContextMenu.Separator />
|
|
2121
|
+
* <ContextMenu.Sub>
|
|
2122
|
+
* <ContextMenu.SubTrigger>Submenu</ContextMenu.SubTrigger>
|
|
2123
|
+
* <ContextMenu.SubContent>
|
|
2124
|
+
* <ContextMenu.Item>Sub Item 1</ContextMenu.Item>
|
|
2125
|
+
* </ContextMenu.SubContent>
|
|
2126
|
+
* </ContextMenu.Sub>
|
|
2127
|
+
* </ContextMenu.Content>
|
|
2128
|
+
* </ContextMenu.Root>
|
|
2129
|
+
* ```
|
|
2130
|
+
*/
|
|
2131
|
+
declare const ContextMenu: {
|
|
2132
|
+
Root: React$1.FC<ContextMenuPrimitive.ContextMenuProps>;
|
|
2133
|
+
Trigger: React$1.ForwardRefExoticComponent<ContextMenuTriggerProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2134
|
+
Content: React$1.ForwardRefExoticComponent<ContextMenuContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2135
|
+
Item: React$1.ForwardRefExoticComponent<ContextMenuItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2136
|
+
CheckboxItem: React$1.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2137
|
+
RadioGroup: React$1.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2138
|
+
RadioItem: React$1.ForwardRefExoticComponent<ContextMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2139
|
+
Separator: React$1.ForwardRefExoticComponent<ContextMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2140
|
+
Label: React$1.ForwardRefExoticComponent<ContextMenuLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2141
|
+
Sub: React$1.FC<ContextMenuSubProps>;
|
|
2142
|
+
SubTrigger: React$1.ForwardRefExoticComponent<ContextMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2143
|
+
SubContent: React$1.ForwardRefExoticComponent<ContextMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2144
|
+
};
|
|
2145
|
+
|
|
2146
|
+
/**
|
|
2147
|
+
* NotificationCenter.DismissAll Component
|
|
2148
|
+
*
|
|
2149
|
+
* Button component to clear all notifications.
|
|
2150
|
+
* Located in Panel header.
|
|
2151
|
+
*/
|
|
2152
|
+
|
|
2153
|
+
interface NotificationCenterDismissAllProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2154
|
+
/**
|
|
2155
|
+
* Show confirmation before clearing
|
|
2156
|
+
*/
|
|
2157
|
+
confirm?: boolean;
|
|
2158
|
+
/**
|
|
2159
|
+
* Confirmation message
|
|
2160
|
+
*/
|
|
2161
|
+
confirmMessage?: string;
|
|
2162
|
+
}
|
|
2163
|
+
/**
|
|
2164
|
+
* NotificationCenter.DismissAll component - clear all notifications button
|
|
2165
|
+
*/
|
|
2166
|
+
declare const NotificationCenterDismissAll: React$1.ForwardRefExoticComponent<NotificationCenterDismissAllProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2167
|
+
|
|
2168
|
+
interface NotificationCenterGroupHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2169
|
+
/**
|
|
2170
|
+
* Group label text
|
|
2171
|
+
*/
|
|
2172
|
+
label: string;
|
|
2173
|
+
/**
|
|
2174
|
+
* Whether the group is collapsed
|
|
2175
|
+
*/
|
|
2176
|
+
collapsed?: boolean;
|
|
2177
|
+
/**
|
|
2178
|
+
* Callback when collapse/expand is toggled
|
|
2179
|
+
*/
|
|
2180
|
+
onToggleCollapse?: () => void;
|
|
2181
|
+
/**
|
|
2182
|
+
* Show collapse/expand button
|
|
2183
|
+
*/
|
|
2184
|
+
collapsible?: boolean;
|
|
2185
|
+
}
|
|
2186
|
+
/**
|
|
2187
|
+
* NotificationCenter.GroupHeader component - group section header
|
|
2188
|
+
*/
|
|
2189
|
+
declare const NotificationCenterGroupHeader: React$1.ForwardRefExoticComponent<NotificationCenterGroupHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2190
|
+
|
|
2191
|
+
/**
|
|
2192
|
+
* Notification Center Types
|
|
2193
|
+
*
|
|
2194
|
+
* Type definitions for Notification Center components.
|
|
2195
|
+
*/
|
|
2196
|
+
|
|
2197
|
+
/**
|
|
2198
|
+
* Notification channel types
|
|
2199
|
+
*/
|
|
2200
|
+
type NotificationChannel = "success" | "error" | "info" | "warning" | "system" | "log";
|
|
2201
|
+
/**
|
|
2202
|
+
* Notification variant (extends toast variants)
|
|
2203
|
+
*/
|
|
2204
|
+
type NotificationVariant = "default" | "success" | "info" | "warning" | "danger" | "system" | "log";
|
|
2205
|
+
/**
|
|
2206
|
+
* Notification data structure
|
|
2207
|
+
*/
|
|
2208
|
+
interface NotificationData {
|
|
2209
|
+
id: string;
|
|
2210
|
+
title?: string;
|
|
2211
|
+
description?: string;
|
|
2212
|
+
variant?: NotificationVariant;
|
|
2213
|
+
channel?: NotificationChannel;
|
|
2214
|
+
action?: ToastActionData;
|
|
2215
|
+
/**
|
|
2216
|
+
* Notification duration - token-based
|
|
2217
|
+
* Uses motion duration tokens
|
|
2218
|
+
*/
|
|
2219
|
+
duration?: ResponsiveDelay;
|
|
2220
|
+
persistent?: boolean;
|
|
2221
|
+
timestamp: number;
|
|
2222
|
+
read?: boolean;
|
|
2223
|
+
}
|
|
2224
|
+
/**
|
|
2225
|
+
* Notification options for creating notifications
|
|
2226
|
+
*/
|
|
2227
|
+
interface NotificationOptions {
|
|
2228
|
+
title?: string;
|
|
2229
|
+
description?: string;
|
|
2230
|
+
variant?: NotificationVariant;
|
|
2231
|
+
channel?: NotificationChannel;
|
|
2232
|
+
action?: ToastActionData;
|
|
2233
|
+
/**
|
|
2234
|
+
* Notification duration - token-based
|
|
2235
|
+
* Uses motion duration tokens
|
|
2236
|
+
*/
|
|
2237
|
+
duration?: ResponsiveDelay;
|
|
2238
|
+
persistent?: boolean;
|
|
2239
|
+
}
|
|
2240
|
+
/**
|
|
2241
|
+
* Group by function type
|
|
2242
|
+
*/
|
|
2243
|
+
type GroupByFunction = (notification: NotificationData) => string;
|
|
2244
|
+
/**
|
|
2245
|
+
* Notification context type
|
|
2246
|
+
*/
|
|
2247
|
+
interface NotificationContextType {
|
|
2248
|
+
/**
|
|
2249
|
+
* Push a new notification
|
|
2250
|
+
*/
|
|
2251
|
+
push: (notification: NotificationOptions) => string;
|
|
2252
|
+
/**
|
|
2253
|
+
* Remove a specific notification by ID
|
|
2254
|
+
*/
|
|
2255
|
+
remove: (id: string) => void;
|
|
2256
|
+
/**
|
|
2257
|
+
* Clear all notifications
|
|
1771
2258
|
*/
|
|
1772
2259
|
clearAll: () => void;
|
|
1773
2260
|
/**
|
|
@@ -1979,50 +2466,45 @@ declare const NotificationCenter: {
|
|
|
1979
2466
|
DismissAll: React$1.ForwardRefExoticComponent<NotificationCenterDismissAllProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1980
2467
|
};
|
|
1981
2468
|
|
|
2469
|
+
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref">, "sideOffset" | "alignOffset"> & VariantProps$1<(props?: ({
|
|
2470
|
+
variant?: "primary" | "secondary" | "accent" | "destructive" | "outline" | "link" | "ghost" | null | undefined;
|
|
2471
|
+
size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
2472
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
2473
|
+
sideOffset?: ResponsiveSideOffset;
|
|
2474
|
+
alignOffset?: ResponsiveAlignOffset;
|
|
2475
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
2476
|
+
|
|
1982
2477
|
/**
|
|
1983
|
-
*
|
|
2478
|
+
* HoverCard Content Component
|
|
1984
2479
|
*
|
|
1985
|
-
*
|
|
1986
|
-
*
|
|
2480
|
+
* Content container for HoverCard.
|
|
2481
|
+
* Wraps PopoverContent with hover-specific behavior.
|
|
1987
2482
|
*/
|
|
1988
2483
|
|
|
1989
|
-
interface
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
*/
|
|
1993
|
-
size?: "sm" | "md";
|
|
2484
|
+
interface HoverCardContentProps extends Omit<React$1.ComponentPropsWithoutRef<typeof PopoverContent>, "onMouseEnter" | "onMouseLeave"> {
|
|
2485
|
+
onMouseEnter?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
2486
|
+
onMouseLeave?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
1994
2487
|
}
|
|
1995
2488
|
/**
|
|
1996
|
-
*
|
|
2489
|
+
* HoverCard Content component
|
|
1997
2490
|
*/
|
|
1998
|
-
declare const
|
|
2491
|
+
declare const HoverCardContent: React$1.ForwardRefExoticComponent<HoverCardContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1999
2492
|
|
|
2000
|
-
|
|
2001
|
-
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
2002
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2003
|
-
interface PopoverContentProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onAnimationEnd">, VariantProps<typeof popoverContentVariants> {
|
|
2004
|
-
/**
|
|
2005
|
-
* Placement preference
|
|
2006
|
-
*/
|
|
2007
|
-
placement?: Placement;
|
|
2493
|
+
interface HoverCardRootProps {
|
|
2008
2494
|
/**
|
|
2009
|
-
*
|
|
2010
|
-
* Uses
|
|
2495
|
+
* Delay before opening - token-based
|
|
2496
|
+
* Uses motion duration tokens
|
|
2497
|
+
* @default 0
|
|
2011
2498
|
*/
|
|
2012
|
-
|
|
2499
|
+
openDelay?: ResponsiveDelay;
|
|
2013
2500
|
/**
|
|
2014
|
-
*
|
|
2501
|
+
* Delay before closing - token-based
|
|
2502
|
+
* Uses motion duration tokens
|
|
2503
|
+
* @default 300
|
|
2015
2504
|
*/
|
|
2016
|
-
|
|
2017
|
-
}
|
|
2018
|
-
/**
|
|
2019
|
-
* Popover Content component
|
|
2020
|
-
*/
|
|
2021
|
-
declare const PopoverContent: React$1.ForwardRefExoticComponent<PopoverContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2022
|
-
|
|
2023
|
-
interface PopoverRootProps {
|
|
2505
|
+
closeDelay?: ResponsiveDelay;
|
|
2024
2506
|
/**
|
|
2025
|
-
* Whether the
|
|
2507
|
+
* Whether the hover card is open (controlled mode)
|
|
2026
2508
|
*/
|
|
2027
2509
|
open?: boolean;
|
|
2028
2510
|
/**
|
|
@@ -2034,7 +2516,7 @@ interface PopoverRootProps {
|
|
|
2034
2516
|
*/
|
|
2035
2517
|
defaultOpen?: boolean;
|
|
2036
2518
|
/**
|
|
2037
|
-
* Whether the
|
|
2519
|
+
* Whether the hover card is modal (blocks interaction with other elements)
|
|
2038
2520
|
*/
|
|
2039
2521
|
modal?: boolean;
|
|
2040
2522
|
/**
|
|
@@ -2043,1537 +2525,980 @@ interface PopoverRootProps {
|
|
|
2043
2525
|
children: React$1.ReactNode;
|
|
2044
2526
|
}
|
|
2045
2527
|
/**
|
|
2046
|
-
*
|
|
2528
|
+
* HoverCard Root component
|
|
2047
2529
|
*/
|
|
2048
|
-
declare function
|
|
2049
|
-
declare namespace
|
|
2530
|
+
declare function HoverCardRoot({ openDelay, closeDelay, defaultOpen, open: controlledOpen, onOpenChange: controlledOnOpenChange, modal, ...props }: HoverCardRootProps): react_jsx_runtime.JSX.Element;
|
|
2531
|
+
declare namespace HoverCardRoot {
|
|
2050
2532
|
var displayName: string;
|
|
2051
2533
|
}
|
|
2052
2534
|
|
|
2053
2535
|
/**
|
|
2054
|
-
*
|
|
2536
|
+
* HoverCard Trigger Component
|
|
2055
2537
|
*
|
|
2056
|
-
* Trigger element that opens
|
|
2057
|
-
* Supports asChild pattern for composition.
|
|
2538
|
+
* Trigger element that opens HoverCard on hover/focus.
|
|
2058
2539
|
*/
|
|
2059
2540
|
|
|
2060
|
-
interface
|
|
2541
|
+
interface HoverCardTriggerProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2061
2542
|
/**
|
|
2062
2543
|
* Render as child element (composition pattern)
|
|
2063
2544
|
*/
|
|
2064
2545
|
asChild?: boolean;
|
|
2065
2546
|
}
|
|
2066
2547
|
/**
|
|
2067
|
-
*
|
|
2548
|
+
* HoverCard Trigger component
|
|
2068
2549
|
*/
|
|
2069
|
-
declare const
|
|
2550
|
+
declare const HoverCardTrigger: React$1.ForwardRefExoticComponent<HoverCardTriggerProps & React$1.RefAttributes<HTMLElement>>;
|
|
2070
2551
|
|
|
2071
2552
|
/**
|
|
2072
|
-
*
|
|
2553
|
+
* DataList Root Component
|
|
2073
2554
|
*
|
|
2074
|
-
*
|
|
2075
|
-
* Uses
|
|
2555
|
+
* Mobile-first data list component for displaying key-value pairs.
|
|
2556
|
+
* Uses Stack for vertical layout and DATA_LIST_TOKENS for spacing.
|
|
2076
2557
|
*/
|
|
2077
2558
|
|
|
2078
|
-
interface
|
|
2079
|
-
/**
|
|
2080
|
-
* Whether the item is disabled
|
|
2081
|
-
*/
|
|
2082
|
-
disabled?: boolean;
|
|
2083
|
-
/**
|
|
2084
|
-
* Whether the item is selected
|
|
2085
|
-
*/
|
|
2086
|
-
selected?: boolean;
|
|
2087
|
-
/**
|
|
2088
|
-
* Callback when item is selected
|
|
2089
|
-
* Receives native Event (not SyntheticEvent)
|
|
2090
|
-
*/
|
|
2091
|
-
onSelect?: (event: Event) => void;
|
|
2559
|
+
interface DataListRootProps extends React$1.HTMLAttributes<HTMLDListElement> {
|
|
2092
2560
|
/**
|
|
2093
|
-
*
|
|
2561
|
+
* Label width for desktop layout
|
|
2562
|
+
* @default "md"
|
|
2094
2563
|
*/
|
|
2095
|
-
|
|
2564
|
+
labelWidth?: "sm" | "md" | "lg";
|
|
2096
2565
|
}
|
|
2097
2566
|
/**
|
|
2098
|
-
*
|
|
2567
|
+
* DataList Root component
|
|
2568
|
+
*
|
|
2569
|
+
* @example
|
|
2570
|
+
* ```tsx
|
|
2571
|
+
* <DataList.Root>
|
|
2572
|
+
* <DataList.Item>
|
|
2573
|
+
* <DataList.Label>Name</DataList.Label>
|
|
2574
|
+
* <DataList.Value>John Doe</DataList.Value>
|
|
2575
|
+
* </DataList.Item>
|
|
2576
|
+
* </DataList.Root>
|
|
2577
|
+
* ```
|
|
2099
2578
|
*/
|
|
2100
|
-
declare const
|
|
2579
|
+
declare const DataListRoot: React$1.ForwardRefExoticComponent<DataListRootProps & React$1.RefAttributes<HTMLDListElement>>;
|
|
2101
2580
|
|
|
2102
2581
|
/**
|
|
2103
|
-
*
|
|
2582
|
+
* Tabs Component
|
|
2104
2583
|
*
|
|
2105
|
-
*
|
|
2106
|
-
*
|
|
2584
|
+
* Radix-based tabs component with token-driven styling.
|
|
2585
|
+
* All behavior (keyboard navigation, focus management, a11y) is handled by Radix.
|
|
2586
|
+
* Tenerife UI provides visual styling through tokens only.
|
|
2107
2587
|
*/
|
|
2108
2588
|
|
|
2109
|
-
interface
|
|
2589
|
+
interface TabsRootProps extends React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
|
|
2590
|
+
}
|
|
2591
|
+
interface TabsListProps extends Omit<React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.List>, "size" | "variant"> {
|
|
2110
2592
|
/**
|
|
2111
|
-
*
|
|
2593
|
+
* Size variant - token-based
|
|
2112
2594
|
*/
|
|
2113
|
-
|
|
2114
|
-
}
|
|
2115
|
-
/**
|
|
2116
|
-
* DropdownMenu CheckItem component
|
|
2117
|
-
*/
|
|
2118
|
-
declare const DropdownMenuCheckItem: React$1.ForwardRefExoticComponent<DropdownMenuCheckItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2119
|
-
|
|
2120
|
-
/**
|
|
2121
|
-
* DropdownMenu Content Component
|
|
2122
|
-
*
|
|
2123
|
-
* Content container for dropdown menu.
|
|
2124
|
-
* Wraps PopoverContent with menu-specific styling and role.
|
|
2125
|
-
* Handles keyboard navigation (Arrow keys, Home/End, Escape).
|
|
2126
|
-
*/
|
|
2127
|
-
|
|
2128
|
-
interface DropdownMenuContentProps extends PopoverContentProps {
|
|
2129
|
-
}
|
|
2130
|
-
/**
|
|
2131
|
-
* DropdownMenu Content component
|
|
2132
|
-
*/
|
|
2133
|
-
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2134
|
-
|
|
2135
|
-
/**
|
|
2136
|
-
* DropdownMenu Group Component
|
|
2137
|
-
*
|
|
2138
|
-
* Group container for related menu items.
|
|
2139
|
-
*/
|
|
2140
|
-
|
|
2141
|
-
interface DropdownMenuGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2142
|
-
}
|
|
2143
|
-
/**
|
|
2144
|
-
* DropdownMenu Group component
|
|
2145
|
-
*/
|
|
2146
|
-
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2147
|
-
|
|
2148
|
-
/**
|
|
2149
|
-
* DropdownMenu Label Component
|
|
2150
|
-
*
|
|
2151
|
-
* Label/section header for menu items.
|
|
2152
|
-
* Uses MENU_TOKENS for styling.
|
|
2153
|
-
*/
|
|
2154
|
-
|
|
2155
|
-
interface DropdownMenuLabelProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2156
|
-
/**
|
|
2157
|
-
* Whether label has inset padding (for nested items)
|
|
2158
|
-
*/
|
|
2159
|
-
inset?: boolean;
|
|
2160
|
-
}
|
|
2161
|
-
/**
|
|
2162
|
-
* DropdownMenu Label component
|
|
2163
|
-
*/
|
|
2164
|
-
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2165
|
-
|
|
2166
|
-
/**
|
|
2167
|
-
* DropdownMenu RadioGroup Component
|
|
2168
|
-
*
|
|
2169
|
-
* Radio group container for radio menu items.
|
|
2170
|
-
*/
|
|
2171
|
-
|
|
2172
|
-
interface DropdownMenuRadioGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2173
|
-
/**
|
|
2174
|
-
* Selected value
|
|
2175
|
-
*/
|
|
2176
|
-
value?: string;
|
|
2177
|
-
/**
|
|
2178
|
-
* Callback when value changes
|
|
2179
|
-
*/
|
|
2180
|
-
onValueChange?: (value: string) => void;
|
|
2181
|
-
}
|
|
2182
|
-
/**
|
|
2183
|
-
* DropdownMenu RadioGroup component
|
|
2184
|
-
*/
|
|
2185
|
-
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2186
|
-
|
|
2187
|
-
/**
|
|
2188
|
-
* DropdownMenu RadioItem Component
|
|
2189
|
-
*
|
|
2190
|
-
* Menu item with radio indicator.
|
|
2191
|
-
* Uses MENU_TOKENS for styling.
|
|
2192
|
-
*/
|
|
2193
|
-
|
|
2194
|
-
interface DropdownMenuRadioItemProps extends Omit<DropdownMenuItemProps, "selected"> {
|
|
2195
|
-
/**
|
|
2196
|
-
* Radio item value
|
|
2197
|
-
*/
|
|
2198
|
-
value: string;
|
|
2199
|
-
}
|
|
2200
|
-
/**
|
|
2201
|
-
* DropdownMenu RadioItem component
|
|
2202
|
-
*/
|
|
2203
|
-
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2204
|
-
|
|
2205
|
-
interface DropdownMenuRootProps extends PopoverRootProps {
|
|
2206
|
-
}
|
|
2207
|
-
/**
|
|
2208
|
-
* DropdownMenu Root component
|
|
2209
|
-
*/
|
|
2210
|
-
declare function DropdownMenuRoot(props: DropdownMenuRootProps): react_jsx_runtime.JSX.Element;
|
|
2211
|
-
declare namespace DropdownMenuRoot {
|
|
2212
|
-
var displayName: string;
|
|
2213
|
-
}
|
|
2214
|
-
|
|
2215
|
-
/**
|
|
2216
|
-
* DropdownMenu Separator Component
|
|
2217
|
-
*
|
|
2218
|
-
* Visual separator between menu items.
|
|
2219
|
-
* Uses MENU_TOKENS for styling.
|
|
2220
|
-
*/
|
|
2221
|
-
|
|
2222
|
-
interface DropdownMenuSeparatorProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2223
|
-
}
|
|
2224
|
-
/**
|
|
2225
|
-
* DropdownMenu Separator component
|
|
2226
|
-
*/
|
|
2227
|
-
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2228
|
-
|
|
2229
|
-
interface DropdownMenuSubProps extends PopoverRootProps {
|
|
2230
|
-
}
|
|
2231
|
-
/**
|
|
2232
|
-
* DropdownMenu Sub component
|
|
2233
|
-
*/
|
|
2234
|
-
declare function DropdownMenuSub(props: DropdownMenuSubProps): react_jsx_runtime.JSX.Element;
|
|
2235
|
-
declare namespace DropdownMenuSub {
|
|
2236
|
-
var displayName: string;
|
|
2237
|
-
}
|
|
2238
|
-
|
|
2239
|
-
/**
|
|
2240
|
-
* DropdownMenu SubContent Component
|
|
2241
|
-
*
|
|
2242
|
-
* Content container for submenu.
|
|
2243
|
-
*/
|
|
2244
|
-
|
|
2245
|
-
interface DropdownMenuSubContentProps extends DropdownMenuContentProps {
|
|
2246
|
-
}
|
|
2247
|
-
/**
|
|
2248
|
-
* DropdownMenu SubContent component
|
|
2249
|
-
*/
|
|
2250
|
-
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2251
|
-
|
|
2252
|
-
/**
|
|
2253
|
-
* DropdownMenu SubTrigger Component
|
|
2254
|
-
*
|
|
2255
|
-
* Trigger for submenu items.
|
|
2256
|
-
*/
|
|
2257
|
-
|
|
2258
|
-
interface DropdownMenuSubTriggerProps extends DropdownMenuItemProps {
|
|
2259
|
-
}
|
|
2260
|
-
/**
|
|
2261
|
-
* DropdownMenu SubTrigger component
|
|
2262
|
-
*/
|
|
2263
|
-
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2264
|
-
|
|
2265
|
-
/**
|
|
2266
|
-
* DropdownMenu Trigger Component
|
|
2267
|
-
*
|
|
2268
|
-
* Trigger element for dropdown menu.
|
|
2269
|
-
* Wraps PopoverTrigger with menu-specific ARIA attributes.
|
|
2270
|
-
*/
|
|
2271
|
-
|
|
2272
|
-
interface DropdownMenuTriggerProps extends PopoverTriggerProps {
|
|
2273
|
-
}
|
|
2274
|
-
/**
|
|
2275
|
-
* DropdownMenu Trigger component
|
|
2276
|
-
*/
|
|
2277
|
-
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuTriggerProps & React$1.RefAttributes<HTMLElement>>;
|
|
2278
|
-
|
|
2279
|
-
/**
|
|
2280
|
-
* HoverCard Content Component
|
|
2281
|
-
*
|
|
2282
|
-
* Content container for HoverCard.
|
|
2283
|
-
* Wraps PopoverContent with hover-specific behavior.
|
|
2284
|
-
*/
|
|
2285
|
-
|
|
2286
|
-
interface HoverCardContentProps extends PopoverContentProps {
|
|
2287
|
-
}
|
|
2288
|
-
/**
|
|
2289
|
-
* HoverCard Content component
|
|
2290
|
-
*/
|
|
2291
|
-
declare const HoverCardContent: React$1.ForwardRefExoticComponent<HoverCardContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2292
|
-
|
|
2293
|
-
interface HoverCardRootProps extends Omit<PopoverRootProps, "open" | "onOpenChange"> {
|
|
2294
|
-
/**
|
|
2295
|
-
* Delay before opening - token-based
|
|
2296
|
-
* Uses motion duration tokens
|
|
2297
|
-
* @default 0
|
|
2298
|
-
*/
|
|
2299
|
-
openDelay?: ResponsiveDelay;
|
|
2300
|
-
/**
|
|
2301
|
-
* Delay before closing - token-based
|
|
2302
|
-
* Uses motion duration tokens
|
|
2303
|
-
* @default 300
|
|
2304
|
-
*/
|
|
2305
|
-
closeDelay?: ResponsiveDelay;
|
|
2306
|
-
}
|
|
2307
|
-
/**
|
|
2308
|
-
* HoverCard Root component
|
|
2309
|
-
*/
|
|
2310
|
-
declare function HoverCardRoot({ openDelay, closeDelay, defaultOpen, ...props }: HoverCardRootProps): react_jsx_runtime.JSX.Element;
|
|
2311
|
-
declare namespace HoverCardRoot {
|
|
2312
|
-
var displayName: string;
|
|
2313
|
-
}
|
|
2314
|
-
|
|
2315
|
-
/**
|
|
2316
|
-
* HoverCard Trigger Component
|
|
2317
|
-
*
|
|
2318
|
-
* Trigger element that opens HoverCard on hover/focus.
|
|
2319
|
-
*/
|
|
2320
|
-
|
|
2321
|
-
interface HoverCardTriggerProps extends PopoverTriggerProps {
|
|
2322
|
-
}
|
|
2323
|
-
/**
|
|
2324
|
-
* HoverCard Trigger component
|
|
2325
|
-
*/
|
|
2326
|
-
declare const HoverCardTrigger: React$1.ForwardRefExoticComponent<HoverCardTriggerProps & React$1.RefAttributes<HTMLElement>>;
|
|
2327
|
-
|
|
2328
|
-
/**
|
|
2329
|
-
* ============================================================================
|
|
2330
|
-
* 🔒 FOUNDATION LOCK - ContextMenu Component
|
|
2331
|
-
* ============================================================================
|
|
2332
|
-
*
|
|
2333
|
-
* This component is LOCKED as part of the UI Foundation Layer.
|
|
2334
|
-
*
|
|
2335
|
-
* **ARCHITECTURE LOCK DOCUMENTATION:**
|
|
2336
|
-
* See: docs/architecture/TUI_ARCHITECTURE_LOCK.md
|
|
2337
|
-
*
|
|
2338
|
-
* This component must not be modified except for critical bug fixes.
|
|
2339
|
-
* All architectural decisions are final. Museum-grade quality achieved.
|
|
2340
|
-
*
|
|
2341
|
-
* LOCKED STATUS:
|
|
2342
|
-
* - Component: ContextMenu (Radix ContextMenu wrapper)
|
|
2343
|
-
* - Category: Menus (Foundation Layer)
|
|
2344
|
-
* - Lock Date: 2025-12-12
|
|
2345
|
-
* - Status: ✅ LOCKED (FOUNDATION_LOCKED)
|
|
2346
|
-
*
|
|
2347
|
-
* ALLOWED CHANGES (Minimal, approval required):
|
|
2348
|
-
* - Critical bug fixes only (with explicit approval)
|
|
2349
|
-
* - Typing improvements (TypeScript only, no runtime changes)
|
|
2350
|
-
* - Token wiring improvements (connecting existing tokens, no new tokens)
|
|
2351
|
-
* - Stories/tests fixes (test updates only, no component changes)
|
|
2352
|
-
* - Documentation updates (comments, docs only)
|
|
2353
|
-
* - Code comments explaining intentional design decisions
|
|
2354
|
-
*
|
|
2355
|
-
* FORBIDDEN CHANGES (Strictly prohibited):
|
|
2356
|
-
* - ❌ New foundation components or subcomponents
|
|
2357
|
-
* - ❌ Duplicate component implementations
|
|
2358
|
-
* - ❌ Custom behavior that Radix ContextMenu should handle
|
|
2359
|
-
* - ❌ String/number visual props (must use tokens only)
|
|
2360
|
-
* - ❌ Re-implementing focus/keyboard/aria/portal logic
|
|
2361
|
-
* - ❌ Breaking API changes
|
|
2362
|
-
* - ❌ Behavioral rewrites or custom logic additions
|
|
2363
|
-
* - ❌ Token system modifications (additions/removals)
|
|
2364
|
-
* - ❌ Style modifications beyond token wiring
|
|
2365
|
-
* - ❌ New props that change component behavior
|
|
2366
|
-
*
|
|
2367
|
-
* **If you believe changes are necessary, review TUI_ARCHITECTURE_LOCK.md first.**
|
|
2368
|
-
*
|
|
2369
|
-
* ============================================================================
|
|
2370
|
-
*
|
|
2371
|
-
* ContextMenu Component
|
|
2372
|
-
*
|
|
2373
|
-
* Radix-based context menu component with token-driven styling.
|
|
2374
|
-
* All behavior (pointer, keyboard, focus, ARIA, positioning, collision handling)
|
|
2375
|
-
* is handled by Radix ContextMenu. Tenerife UI provides visual styling through
|
|
2376
|
-
* tokens only. This is a strict wrapper pattern - no custom behavior logic.
|
|
2377
|
-
*/
|
|
2378
|
-
|
|
2379
|
-
type ContextMenuRootProps = React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Root>;
|
|
2380
|
-
/**
|
|
2381
|
-
* ContextMenu Root component
|
|
2382
|
-
* Radix Root is a context provider, not a DOM element, so it doesn't accept refs
|
|
2383
|
-
*/
|
|
2384
|
-
declare const ContextMenuRoot: React$1.FC<ContextMenuRootProps>;
|
|
2385
|
-
interface ContextMenuTriggerProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Trigger>, "children"> {
|
|
2386
|
-
children?: React$1.ReactNode;
|
|
2387
|
-
}
|
|
2388
|
-
/**
|
|
2389
|
-
* ContextMenu Trigger component
|
|
2390
|
-
* Radix handles right-click behavior automatically
|
|
2391
|
-
*/
|
|
2392
|
-
declare const ContextMenuTrigger: React$1.ForwardRefExoticComponent<ContextMenuTriggerProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2393
|
-
interface ContextMenuContentProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>, "size" | "width" | "padding" | "radius" | "surface"> {
|
|
2394
|
-
/**
|
|
2395
|
-
* Size variant - token-based
|
|
2396
|
-
*/
|
|
2397
|
-
size?: ResponsiveContextMenuSize;
|
|
2398
|
-
/**
|
|
2399
|
-
* Width - token-based
|
|
2400
|
-
*/
|
|
2401
|
-
width?: ResponsiveContextMenuWidth;
|
|
2402
|
-
/**
|
|
2403
|
-
* Padding - token-based
|
|
2404
|
-
*/
|
|
2405
|
-
padding?: ResponsiveSpace;
|
|
2406
|
-
/**
|
|
2407
|
-
* Radius - token-based
|
|
2408
|
-
*/
|
|
2409
|
-
radius?: RadiusToken;
|
|
2410
|
-
/**
|
|
2411
|
-
* Surface variant - token-based
|
|
2412
|
-
*/
|
|
2413
|
-
surface?: SurfaceToken;
|
|
2414
|
-
}
|
|
2415
|
-
/**
|
|
2416
|
-
* ContextMenu Content component
|
|
2417
|
-
* Wrapper around Radix ContextMenu Content with token-based styling.
|
|
2418
|
-
*/
|
|
2419
|
-
declare const ContextMenuContent: React$1.ForwardRefExoticComponent<ContextMenuContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2420
|
-
interface ContextMenuItemProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item>, "children"> {
|
|
2421
|
-
children?: React$1.ReactNode;
|
|
2422
|
-
/**
|
|
2423
|
-
* Size variant - token-based
|
|
2424
|
-
*
|
|
2425
|
-
* @default Inherited from ContextMenuContent
|
|
2426
|
-
* @note If not specified, the size is automatically inherited from the parent
|
|
2427
|
-
* ContextMenuContent. You can override this by providing an explicit size prop.
|
|
2428
|
-
* This allows you to set size once on Content and have all Items inherit it.
|
|
2429
|
-
*/
|
|
2430
|
-
size?: ResponsiveContextMenuSize;
|
|
2431
|
-
/**
|
|
2432
|
-
* Tone variant - token-based
|
|
2433
|
-
*/
|
|
2434
|
-
tone?: ContextMenuItemToneToken;
|
|
2435
|
-
/**
|
|
2436
|
-
* Gap between item content - token-based
|
|
2437
|
-
*/
|
|
2438
|
-
gap?: ResponsiveSpace;
|
|
2439
|
-
/**
|
|
2440
|
-
* Inset padding for item
|
|
2441
|
-
*/
|
|
2442
|
-
inset?: boolean;
|
|
2443
|
-
}
|
|
2444
|
-
/**
|
|
2445
|
-
* ContextMenu Item component
|
|
2446
|
-
* Wrapper around Radix ContextMenu Item with token-based styling.
|
|
2447
|
-
*/
|
|
2448
|
-
declare const ContextMenuItem: React$1.ForwardRefExoticComponent<ContextMenuItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2449
|
-
interface ContextMenuCheckboxItemProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>, "children"> {
|
|
2450
|
-
children?: React$1.ReactNode;
|
|
2451
|
-
/**
|
|
2452
|
-
* Size variant - token-based
|
|
2453
|
-
*/
|
|
2454
|
-
size?: ResponsiveContextMenuSize;
|
|
2455
|
-
/**
|
|
2456
|
-
* Tone variant - token-based
|
|
2457
|
-
*/
|
|
2458
|
-
tone?: ContextMenuItemToneToken;
|
|
2459
|
-
/**
|
|
2460
|
-
* Gap between item content - token-based
|
|
2461
|
-
*/
|
|
2462
|
-
gap?: ResponsiveSpace;
|
|
2463
|
-
}
|
|
2464
|
-
/**
|
|
2465
|
-
* ContextMenu CheckboxItem component
|
|
2466
|
-
* Wrapper around Radix ContextMenu CheckboxItem with token-based styling.
|
|
2467
|
-
*/
|
|
2468
|
-
declare const ContextMenuCheckboxItem: React$1.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2469
|
-
interface ContextMenuRadioGroupProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioGroup>, "children"> {
|
|
2470
|
-
children?: React$1.ReactNode;
|
|
2471
|
-
}
|
|
2472
|
-
/**
|
|
2473
|
-
* ContextMenu RadioGroup component
|
|
2474
|
-
* Wrapper around Radix ContextMenu RadioGroup.
|
|
2475
|
-
*/
|
|
2476
|
-
declare const ContextMenuRadioGroup: React$1.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2477
|
-
interface ContextMenuRadioItemProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>, "children"> {
|
|
2478
|
-
children?: React$1.ReactNode;
|
|
2479
|
-
/**
|
|
2480
|
-
* Size variant - token-based
|
|
2481
|
-
*/
|
|
2482
|
-
size?: ResponsiveContextMenuSize;
|
|
2483
|
-
/**
|
|
2484
|
-
* Tone variant - token-based
|
|
2485
|
-
*/
|
|
2486
|
-
tone?: ContextMenuItemToneToken;
|
|
2487
|
-
/**
|
|
2488
|
-
* Gap between item content - token-based
|
|
2489
|
-
*/
|
|
2490
|
-
gap?: ResponsiveSpace;
|
|
2491
|
-
}
|
|
2492
|
-
/**
|
|
2493
|
-
* ContextMenu RadioItem component
|
|
2494
|
-
* Wrapper around Radix ContextMenu RadioItem with token-based styling.
|
|
2495
|
-
*/
|
|
2496
|
-
declare const ContextMenuRadioItem: React$1.ForwardRefExoticComponent<ContextMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2497
|
-
interface ContextMenuSeparatorProps extends React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator> {
|
|
2498
|
-
className?: string;
|
|
2499
|
-
}
|
|
2500
|
-
/**
|
|
2501
|
-
* ContextMenu Separator component
|
|
2502
|
-
* Wrapper around Radix ContextMenu Separator with token-based styling.
|
|
2503
|
-
*/
|
|
2504
|
-
declare const ContextMenuSeparator: React$1.ForwardRefExoticComponent<ContextMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2505
|
-
interface ContextMenuLabelProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label>, "children"> {
|
|
2506
|
-
children?: React$1.ReactNode;
|
|
2507
|
-
/**
|
|
2508
|
-
* Padding - token-based
|
|
2509
|
-
*/
|
|
2510
|
-
padding?: ResponsiveSpace;
|
|
2511
|
-
}
|
|
2512
|
-
/**
|
|
2513
|
-
* ContextMenu Label component
|
|
2514
|
-
* Wrapper around Radix ContextMenu Label with token-based styling.
|
|
2515
|
-
*/
|
|
2516
|
-
declare const ContextMenuLabel: React$1.ForwardRefExoticComponent<ContextMenuLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2517
|
-
interface ContextMenuSubProps extends React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Sub> {
|
|
2518
|
-
children?: React$1.ReactNode;
|
|
2519
|
-
}
|
|
2520
|
-
/**
|
|
2521
|
-
* ContextMenu Sub component
|
|
2522
|
-
* Wrapper around Radix ContextMenu Sub.
|
|
2523
|
-
*/
|
|
2524
|
-
declare const ContextMenuSub: React$1.FC<ContextMenuSubProps>;
|
|
2525
|
-
interface ContextMenuSubTriggerProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger>, "children"> {
|
|
2526
|
-
children?: React$1.ReactNode;
|
|
2527
|
-
/**
|
|
2528
|
-
* Size variant - token-based
|
|
2529
|
-
*/
|
|
2530
|
-
size?: ResponsiveContextMenuSize;
|
|
2531
|
-
/**
|
|
2532
|
-
* Tone variant - token-based
|
|
2533
|
-
*/
|
|
2534
|
-
tone?: ContextMenuItemToneToken;
|
|
2535
|
-
/**
|
|
2536
|
-
* Gap between item content - token-based
|
|
2537
|
-
*/
|
|
2538
|
-
gap?: ResponsiveSpace;
|
|
2539
|
-
}
|
|
2540
|
-
/**
|
|
2541
|
-
* ContextMenu SubTrigger component
|
|
2542
|
-
* Wrapper around Radix ContextMenu SubTrigger with token-based styling.
|
|
2543
|
-
*/
|
|
2544
|
-
declare const ContextMenuSubTrigger: React$1.ForwardRefExoticComponent<ContextMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2545
|
-
interface ContextMenuSubContentProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>, "size" | "width" | "padding" | "radius" | "surface"> {
|
|
2546
|
-
/**
|
|
2547
|
-
* Size variant - token-based
|
|
2548
|
-
*/
|
|
2549
|
-
size?: ResponsiveContextMenuSize;
|
|
2550
|
-
/**
|
|
2551
|
-
* Width - token-based
|
|
2552
|
-
*/
|
|
2553
|
-
width?: ResponsiveContextMenuWidth;
|
|
2554
|
-
/**
|
|
2555
|
-
* Padding - token-based
|
|
2556
|
-
*/
|
|
2557
|
-
padding?: ResponsiveSpace;
|
|
2558
|
-
/**
|
|
2559
|
-
* Radius - token-based
|
|
2560
|
-
*/
|
|
2561
|
-
radius?: RadiusToken;
|
|
2562
|
-
/**
|
|
2563
|
-
* Surface variant - token-based
|
|
2564
|
-
*/
|
|
2565
|
-
surface?: SurfaceToken;
|
|
2566
|
-
}
|
|
2567
|
-
/**
|
|
2568
|
-
* ContextMenu SubContent component
|
|
2569
|
-
* Wrapper around Radix ContextMenu SubContent with token-based styling.
|
|
2570
|
-
*/
|
|
2571
|
-
declare const ContextMenuSubContent: React$1.ForwardRefExoticComponent<ContextMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2572
|
-
|
|
2573
|
-
/**
|
|
2574
|
-
* ContextMenu Component
|
|
2575
|
-
*
|
|
2576
|
-
* Radix ContextMenu-based component with token-driven styling.
|
|
2577
|
-
*
|
|
2578
|
-
* **Usage:**
|
|
2579
|
-
* ```tsx
|
|
2580
|
-
* <ContextMenu.Root>
|
|
2581
|
-
* <ContextMenu.Trigger>Right-click me</ContextMenu.Trigger>
|
|
2582
|
-
* <ContextMenu.Content>
|
|
2583
|
-
* <ContextMenu.Item>Item 1</ContextMenu.Item>
|
|
2584
|
-
* <ContextMenu.Item>Item 2</ContextMenu.Item>
|
|
2585
|
-
* <ContextMenu.Separator />
|
|
2586
|
-
* <ContextMenu.Sub>
|
|
2587
|
-
* <ContextMenu.SubTrigger>Submenu</ContextMenu.SubTrigger>
|
|
2588
|
-
* <ContextMenu.SubContent>
|
|
2589
|
-
* <ContextMenu.Item>Sub Item 1</ContextMenu.Item>
|
|
2590
|
-
* </ContextMenu.SubContent>
|
|
2591
|
-
* </ContextMenu.Sub>
|
|
2592
|
-
* </ContextMenu.Content>
|
|
2593
|
-
* </ContextMenu.Root>
|
|
2594
|
-
* ```
|
|
2595
|
-
*/
|
|
2596
|
-
declare const ContextMenu: {
|
|
2597
|
-
Root: React$1.FC<ContextMenuPrimitive.ContextMenuProps>;
|
|
2598
|
-
Trigger: React$1.ForwardRefExoticComponent<ContextMenuTriggerProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2599
|
-
Content: React$1.ForwardRefExoticComponent<ContextMenuContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2600
|
-
Item: React$1.ForwardRefExoticComponent<ContextMenuItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2601
|
-
CheckboxItem: React$1.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2602
|
-
RadioGroup: React$1.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2603
|
-
RadioItem: React$1.ForwardRefExoticComponent<ContextMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2604
|
-
Separator: React$1.ForwardRefExoticComponent<ContextMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2605
|
-
Label: React$1.ForwardRefExoticComponent<ContextMenuLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2606
|
-
Sub: React$1.FC<ContextMenuSubProps>;
|
|
2607
|
-
SubTrigger: React$1.ForwardRefExoticComponent<ContextMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2608
|
-
SubContent: React$1.ForwardRefExoticComponent<ContextMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2609
|
-
};
|
|
2610
|
-
|
|
2611
|
-
declare const skeletonVariants: (props?: ({
|
|
2612
|
-
variant?: "block" | "card" | "text" | "circle" | "inline" | null | undefined;
|
|
2613
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2614
|
-
interface SkeletonProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {
|
|
2615
|
-
/**
|
|
2616
|
-
* Whether to hide from screen readers
|
|
2617
|
-
* @default true
|
|
2618
|
-
*/
|
|
2619
|
-
"aria-hidden"?: boolean;
|
|
2620
|
-
}
|
|
2621
|
-
/**
|
|
2622
|
-
* Skeleton component for loading states
|
|
2623
|
-
*
|
|
2624
|
-
* @example
|
|
2625
|
-
* ```tsx
|
|
2626
|
-
* <Skeleton variant="text" />
|
|
2627
|
-
* <Skeleton variant="circle" />
|
|
2628
|
-
* <Skeleton variant="card" />
|
|
2629
|
-
* ```
|
|
2630
|
-
*/
|
|
2631
|
-
declare const Skeleton: React$1.ForwardRefExoticComponent<SkeletonProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2632
|
-
|
|
2633
|
-
/**
|
|
2634
|
-
* EmptyState Component
|
|
2635
|
-
*
|
|
2636
|
-
* Token-driven empty state component for displaying empty or no-data states.
|
|
2637
|
-
* Uses EMPTY_STATE_TOKENS for all spacing and sizing.
|
|
2638
|
-
* Integrates with Surface and Stack components.
|
|
2639
|
-
*/
|
|
2640
|
-
|
|
2641
|
-
interface EmptyStateProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2642
|
-
/**
|
|
2643
|
-
* Unique ID for accessibility (auto-generated if not provided)
|
|
2644
|
-
*/
|
|
2645
|
-
id?: string;
|
|
2646
|
-
}
|
|
2647
|
-
/**
|
|
2648
|
-
* EmptyState root component
|
|
2649
|
-
*
|
|
2650
|
-
* @example
|
|
2651
|
-
* ```tsx
|
|
2652
|
-
* <EmptyState>
|
|
2653
|
-
* <EmptyState.Icon>📭</EmptyState.Icon>
|
|
2654
|
-
* <EmptyState.Title>No items found</EmptyState.Title>
|
|
2655
|
-
* <EmptyState.Description>Try adjusting your filters</EmptyState.Description>
|
|
2656
|
-
* <EmptyState.Action>
|
|
2657
|
-
* <Button>Create Item</Button>
|
|
2658
|
-
* </EmptyState.Action>
|
|
2659
|
-
* </EmptyState>
|
|
2660
|
-
* ```
|
|
2661
|
-
*/
|
|
2662
|
-
declare const EmptyState: React$1.ForwardRefExoticComponent<EmptyStateProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2663
|
-
|
|
2664
|
-
/**
|
|
2665
|
-
* EmptyState Action Component
|
|
2666
|
-
*
|
|
2667
|
-
* Action subcomponent for EmptyState (typically contains Button).
|
|
2668
|
-
*/
|
|
2669
|
-
|
|
2670
|
-
interface EmptyStateActionProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2671
|
-
/**
|
|
2672
|
-
* Action button or link (typically Button component)
|
|
2673
|
-
*/
|
|
2674
|
-
children: React$1.ReactNode;
|
|
2675
|
-
}
|
|
2676
|
-
/**
|
|
2677
|
-
* EmptyState Action component
|
|
2678
|
-
*/
|
|
2679
|
-
declare const EmptyStateAction: React$1.ForwardRefExoticComponent<EmptyStateActionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2680
|
-
|
|
2681
|
-
/**
|
|
2682
|
-
* EmptyState Description Component
|
|
2683
|
-
*
|
|
2684
|
-
* Description subcomponent for EmptyState.
|
|
2685
|
-
*/
|
|
2686
|
-
|
|
2687
|
-
interface EmptyStateDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
2688
|
-
/**
|
|
2689
|
-
* Description text
|
|
2690
|
-
*/
|
|
2691
|
-
children: React$1.ReactNode;
|
|
2692
|
-
}
|
|
2693
|
-
/**
|
|
2694
|
-
* EmptyState Description component
|
|
2695
|
-
*/
|
|
2696
|
-
declare const EmptyStateDescription: React$1.ForwardRefExoticComponent<EmptyStateDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
2697
|
-
|
|
2698
|
-
/**
|
|
2699
|
-
* EmptyState Icon Component
|
|
2700
|
-
*
|
|
2701
|
-
* Icon subcomponent for EmptyState.
|
|
2702
|
-
*/
|
|
2703
|
-
|
|
2704
|
-
interface EmptyStateIconProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2705
|
-
/**
|
|
2706
|
-
* Icon content (any ReactNode)
|
|
2707
|
-
*/
|
|
2708
|
-
children: React$1.ReactNode;
|
|
2595
|
+
size?: ResponsiveTabsSize;
|
|
2709
2596
|
/**
|
|
2710
|
-
*
|
|
2711
|
-
* @default "md"
|
|
2597
|
+
* Visual variant - token-based
|
|
2712
2598
|
*/
|
|
2713
|
-
|
|
2599
|
+
variant?: TabsVariantToken;
|
|
2714
2600
|
}
|
|
2715
|
-
|
|
2716
|
-
* EmptyState Icon component
|
|
2717
|
-
*/
|
|
2718
|
-
declare const EmptyStateIcon: React$1.ForwardRefExoticComponent<EmptyStateIconProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2719
|
-
|
|
2720
|
-
/**
|
|
2721
|
-
* EmptyState Title Component
|
|
2722
|
-
*
|
|
2723
|
-
* Title subcomponent for EmptyState.
|
|
2724
|
-
*/
|
|
2725
|
-
|
|
2726
|
-
interface EmptyStateTitleProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
2601
|
+
interface TabsTriggerProps extends Omit<React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>, "size" | "variant" | "tone"> {
|
|
2727
2602
|
/**
|
|
2728
|
-
*
|
|
2603
|
+
* Size variant - token-based (inherited from context if not provided)
|
|
2729
2604
|
*/
|
|
2730
|
-
|
|
2731
|
-
}
|
|
2732
|
-
/**
|
|
2733
|
-
* EmptyState Title component
|
|
2734
|
-
*/
|
|
2735
|
-
declare const EmptyStateTitle: React$1.ForwardRefExoticComponent<EmptyStateTitleProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
2736
|
-
|
|
2737
|
-
/**
|
|
2738
|
-
* DataList Root Component
|
|
2739
|
-
*
|
|
2740
|
-
* Mobile-first data list component for displaying key-value pairs.
|
|
2741
|
-
* Uses Stack for vertical layout and DATA_LIST_TOKENS for spacing.
|
|
2742
|
-
*/
|
|
2743
|
-
|
|
2744
|
-
interface DataListRootProps extends React$1.HTMLAttributes<HTMLDListElement> {
|
|
2605
|
+
size?: ResponsiveTabsSize;
|
|
2745
2606
|
/**
|
|
2746
|
-
*
|
|
2747
|
-
* @default "md"
|
|
2607
|
+
* Visual variant - token-based (inherited from context if not provided)
|
|
2748
2608
|
*/
|
|
2749
|
-
|
|
2750
|
-
}
|
|
2751
|
-
/**
|
|
2752
|
-
* DataList Root component
|
|
2753
|
-
*
|
|
2754
|
-
* @example
|
|
2755
|
-
* ```tsx
|
|
2756
|
-
* <DataList.Root>
|
|
2757
|
-
* <DataList.Item>
|
|
2758
|
-
* <DataList.Label>Name</DataList.Label>
|
|
2759
|
-
* <DataList.Value>John Doe</DataList.Value>
|
|
2760
|
-
* </DataList.Item>
|
|
2761
|
-
* </DataList.Root>
|
|
2762
|
-
* ```
|
|
2763
|
-
*/
|
|
2764
|
-
declare const DataListRoot: React$1.ForwardRefExoticComponent<DataListRootProps & React$1.RefAttributes<HTMLDListElement>>;
|
|
2765
|
-
|
|
2766
|
-
/**
|
|
2767
|
-
* DataList Component Types
|
|
2768
|
-
*
|
|
2769
|
-
* TypeScript interfaces and types for DataList component.
|
|
2770
|
-
*/
|
|
2771
|
-
|
|
2772
|
-
/**
|
|
2773
|
-
* DataList Item component props
|
|
2774
|
-
*/
|
|
2775
|
-
interface DataListItemProps$1 extends React.HTMLAttributes<HTMLDivElement> {
|
|
2609
|
+
variant?: TabsVariantToken;
|
|
2776
2610
|
/**
|
|
2777
|
-
*
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
* @example padding="sm"
|
|
2781
|
-
* @example padding={{ base: "sm", md: "lg" }}
|
|
2782
|
-
*/
|
|
2783
|
-
padding?: ResponsiveSpacing;
|
|
2784
|
-
}
|
|
2785
|
-
|
|
2786
|
-
/**
|
|
2787
|
-
* DataList Item Component
|
|
2788
|
-
*
|
|
2789
|
-
* Individual item in DataList (contains Label and Value).
|
|
2790
|
-
*/
|
|
2791
|
-
|
|
2792
|
-
interface DataListItemProps extends DataListItemProps$1 {
|
|
2793
|
-
}
|
|
2794
|
-
/**
|
|
2795
|
-
* DataList Item component
|
|
2796
|
-
* Mobile: vertical layout (label above value)
|
|
2797
|
-
* Desktop: horizontal layout (label left, value right)
|
|
2798
|
-
*/
|
|
2799
|
-
declare const DataListItem: React$1.ForwardRefExoticComponent<DataListItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2800
|
-
|
|
2801
|
-
/**
|
|
2802
|
-
* DataList Label Component
|
|
2803
|
-
*
|
|
2804
|
-
* Label subcomponent for DataList items.
|
|
2805
|
-
*/
|
|
2806
|
-
|
|
2807
|
-
interface DataListLabelProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2611
|
+
* Tone - token-based (inherited from context if not provided)
|
|
2612
|
+
*/
|
|
2613
|
+
tone?: TabsToneToken;
|
|
2808
2614
|
/**
|
|
2809
|
-
*
|
|
2615
|
+
* Leading icon - semantic prop
|
|
2810
2616
|
*/
|
|
2811
|
-
|
|
2617
|
+
leadingIcon?: React$1.ReactNode;
|
|
2618
|
+
/**
|
|
2619
|
+
* Trailing icon - semantic prop
|
|
2620
|
+
*/
|
|
2621
|
+
trailingIcon?: React$1.ReactNode;
|
|
2622
|
+
/**
|
|
2623
|
+
* Icon - semantic prop (for backward compatibility, maps to leadingIcon)
|
|
2624
|
+
*/
|
|
2625
|
+
icon?: React$1.ReactNode;
|
|
2812
2626
|
}
|
|
2813
|
-
|
|
2814
|
-
* DataList Label component
|
|
2815
|
-
* Mobile: full width
|
|
2816
|
-
* Desktop: fixed width (from tokens)
|
|
2817
|
-
*/
|
|
2818
|
-
declare const DataListLabel: React$1.ForwardRefExoticComponent<DataListLabelProps & React$1.RefAttributes<HTMLElement>>;
|
|
2819
|
-
|
|
2820
|
-
/**
|
|
2821
|
-
* DataList Value Component
|
|
2822
|
-
*
|
|
2823
|
-
* Value subcomponent for DataList items.
|
|
2824
|
-
*/
|
|
2825
|
-
|
|
2826
|
-
interface DataListValueProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2627
|
+
interface TabsContentProps extends Omit<React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>, "size"> {
|
|
2827
2628
|
/**
|
|
2828
|
-
*
|
|
2629
|
+
* Size variant - token-based (for padding)
|
|
2829
2630
|
*/
|
|
2830
|
-
|
|
2631
|
+
size?: ResponsiveTabsSize;
|
|
2831
2632
|
}
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
/**
|
|
2839
|
-
* Table Component Types
|
|
2840
|
-
*
|
|
2841
|
-
* TypeScript interfaces and types for Table component.
|
|
2842
|
-
*/
|
|
2633
|
+
declare const Tabs: {
|
|
2634
|
+
Root: React$1.FC<TabsRootProps>;
|
|
2635
|
+
List: React$1.ForwardRefExoticComponent<TabsListProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2636
|
+
Trigger: React$1.ForwardRefExoticComponent<TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2637
|
+
Content: React$1.ForwardRefExoticComponent<TabsContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2638
|
+
};
|
|
2843
2639
|
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2640
|
+
declare const segmentedControlRootVariants: (props?: ({
|
|
2641
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
2642
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
2643
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2644
|
+
declare const segmentedControlItemVariants: (props?: ({
|
|
2645
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
2646
|
+
state?: "default" | "selected" | null | undefined;
|
|
2647
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2648
|
+
interface SegmentedControlRootProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "role">, VariantProps$1<typeof segmentedControlRootVariants> {
|
|
2848
2649
|
/**
|
|
2849
|
-
*
|
|
2650
|
+
* Controlled value
|
|
2850
2651
|
*/
|
|
2851
|
-
|
|
2652
|
+
value?: string;
|
|
2852
2653
|
/**
|
|
2853
|
-
*
|
|
2654
|
+
* Default value for uncontrolled usage
|
|
2854
2655
|
*/
|
|
2855
|
-
|
|
2656
|
+
defaultValue?: string;
|
|
2856
2657
|
/**
|
|
2857
|
-
*
|
|
2658
|
+
* Callback when value changes
|
|
2858
2659
|
*/
|
|
2859
|
-
|
|
2660
|
+
onValueChange?: (value: string) => void;
|
|
2860
2661
|
/**
|
|
2861
|
-
*
|
|
2862
|
-
* @default "left"
|
|
2662
|
+
* Name for the radio group
|
|
2863
2663
|
*/
|
|
2864
|
-
|
|
2664
|
+
name?: string;
|
|
2665
|
+
}
|
|
2666
|
+
interface SegmentedControlItemProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "role">, VariantProps$1<typeof segmentedControlItemVariants> {
|
|
2865
2667
|
/**
|
|
2866
|
-
*
|
|
2668
|
+
* Value of this item
|
|
2867
2669
|
*/
|
|
2868
|
-
|
|
2670
|
+
value: string;
|
|
2869
2671
|
/**
|
|
2870
|
-
* Whether
|
|
2871
|
-
* @default false
|
|
2672
|
+
* Whether this item is disabled
|
|
2872
2673
|
*/
|
|
2873
|
-
|
|
2674
|
+
disabled?: boolean;
|
|
2675
|
+
}
|
|
2676
|
+
declare const SegmentedControl: React$1.ForwardRefExoticComponent<SegmentedControlRootProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
2677
|
+
Root: React$1.ForwardRefExoticComponent<SegmentedControlRootProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2678
|
+
Item: React$1.ForwardRefExoticComponent<SegmentedControlItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2679
|
+
};
|
|
2680
|
+
|
|
2681
|
+
interface BreadcrumbItem {
|
|
2874
2682
|
/**
|
|
2875
|
-
*
|
|
2876
|
-
* @default "md"
|
|
2683
|
+
* Label text for the breadcrumb item
|
|
2877
2684
|
*/
|
|
2878
|
-
|
|
2879
|
-
}
|
|
2880
|
-
/**
|
|
2881
|
-
* Sort direction
|
|
2882
|
-
*/
|
|
2883
|
-
type SortDirection = "asc" | "desc" | null;
|
|
2884
|
-
/**
|
|
2885
|
-
* Sort state
|
|
2886
|
-
*/
|
|
2887
|
-
interface SortState {
|
|
2685
|
+
label: string;
|
|
2888
2686
|
/**
|
|
2889
|
-
*
|
|
2687
|
+
* Optional href for clickable items
|
|
2890
2688
|
*/
|
|
2891
|
-
|
|
2689
|
+
href?: string;
|
|
2892
2690
|
/**
|
|
2893
|
-
*
|
|
2691
|
+
* Whether this item is disabled
|
|
2894
2692
|
*/
|
|
2895
|
-
|
|
2693
|
+
disabled?: boolean;
|
|
2896
2694
|
}
|
|
2897
|
-
|
|
2898
|
-
* Table context value
|
|
2899
|
-
*/
|
|
2900
|
-
interface TableContextValue {
|
|
2695
|
+
interface BreadcrumbsRootProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2901
2696
|
/**
|
|
2902
|
-
*
|
|
2697
|
+
* Array of breadcrumb items
|
|
2903
2698
|
*/
|
|
2904
|
-
|
|
2699
|
+
items: BreadcrumbItem[];
|
|
2905
2700
|
/**
|
|
2906
|
-
*
|
|
2701
|
+
* Custom separator component or string
|
|
2702
|
+
* @default ChevronRight icon
|
|
2907
2703
|
*/
|
|
2908
|
-
|
|
2704
|
+
separator?: React$1.ReactNode;
|
|
2909
2705
|
/**
|
|
2910
|
-
*
|
|
2706
|
+
* ARIA label for the navigation element
|
|
2707
|
+
* @default "Breadcrumb"
|
|
2911
2708
|
*/
|
|
2912
|
-
|
|
2709
|
+
ariaLabel?: string;
|
|
2710
|
+
}
|
|
2711
|
+
interface BreadcrumbsItemProps extends React$1.HTMLAttributes<HTMLLIElement> {
|
|
2913
2712
|
/**
|
|
2914
|
-
*
|
|
2713
|
+
* Whether this is the last item (current page)
|
|
2915
2714
|
*/
|
|
2916
|
-
|
|
2715
|
+
isLast?: boolean;
|
|
2917
2716
|
/**
|
|
2918
|
-
* Whether
|
|
2717
|
+
* Whether this item is disabled
|
|
2919
2718
|
*/
|
|
2920
|
-
|
|
2719
|
+
disabled?: boolean;
|
|
2720
|
+
}
|
|
2721
|
+
interface BreadcrumbsSeparatorProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
2921
2722
|
/**
|
|
2922
|
-
*
|
|
2723
|
+
* Custom separator content
|
|
2923
2724
|
*/
|
|
2924
|
-
|
|
2725
|
+
children?: React$1.ReactNode;
|
|
2925
2726
|
}
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2727
|
+
declare const Breadcrumbs: React$1.ForwardRefExoticComponent<BreadcrumbsRootProps & React$1.RefAttributes<HTMLElement>> & {
|
|
2728
|
+
Root: React$1.ForwardRefExoticComponent<BreadcrumbsRootProps & React$1.RefAttributes<HTMLElement>>;
|
|
2729
|
+
Item: React$1.ForwardRefExoticComponent<BreadcrumbsItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
2730
|
+
Separator: React$1.ForwardRefExoticComponent<BreadcrumbsSeparatorProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2731
|
+
};
|
|
2732
|
+
|
|
2733
|
+
interface PaginationRootProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2930
2734
|
/**
|
|
2931
|
-
*
|
|
2735
|
+
* Current active page (1-indexed)
|
|
2932
2736
|
*/
|
|
2933
|
-
|
|
2737
|
+
currentPage: number;
|
|
2934
2738
|
/**
|
|
2935
|
-
*
|
|
2739
|
+
* Total number of pages
|
|
2936
2740
|
*/
|
|
2937
|
-
|
|
2741
|
+
totalPages: number;
|
|
2938
2742
|
/**
|
|
2939
|
-
*
|
|
2743
|
+
* Callback when page changes
|
|
2940
2744
|
*/
|
|
2941
|
-
|
|
2745
|
+
onPageChange: (page: number) => void;
|
|
2942
2746
|
/**
|
|
2943
|
-
*
|
|
2944
|
-
* @default
|
|
2747
|
+
* Number of pages to show on each side of current page
|
|
2748
|
+
* @default 2
|
|
2945
2749
|
*/
|
|
2946
|
-
|
|
2750
|
+
delta?: number;
|
|
2947
2751
|
/**
|
|
2948
|
-
*
|
|
2949
|
-
* @default
|
|
2752
|
+
* ARIA label for the navigation element
|
|
2753
|
+
* @default "Pagination"
|
|
2950
2754
|
*/
|
|
2951
|
-
|
|
2755
|
+
ariaLabel?: string;
|
|
2756
|
+
}
|
|
2757
|
+
interface PaginationItemProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2952
2758
|
/**
|
|
2953
|
-
*
|
|
2759
|
+
* Page number (or "..." for ellipsis)
|
|
2954
2760
|
*/
|
|
2955
|
-
|
|
2761
|
+
page: number | "...";
|
|
2956
2762
|
/**
|
|
2957
|
-
* Whether
|
|
2958
|
-
* @default false
|
|
2763
|
+
* Whether this is the current page
|
|
2959
2764
|
*/
|
|
2960
|
-
|
|
2765
|
+
isCurrent?: boolean;
|
|
2961
2766
|
/**
|
|
2962
|
-
*
|
|
2767
|
+
* Whether this item is disabled
|
|
2963
2768
|
*/
|
|
2964
|
-
|
|
2769
|
+
disabled?: boolean;
|
|
2770
|
+
}
|
|
2771
|
+
interface PaginationPrevProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2965
2772
|
/**
|
|
2966
|
-
* Whether
|
|
2967
|
-
* @default false
|
|
2773
|
+
* Whether previous button is disabled
|
|
2968
2774
|
*/
|
|
2969
|
-
|
|
2775
|
+
disabled?: boolean;
|
|
2776
|
+
}
|
|
2777
|
+
interface PaginationNextProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2970
2778
|
/**
|
|
2971
|
-
*
|
|
2972
|
-
* @default "md"
|
|
2779
|
+
* Whether next button is disabled
|
|
2973
2780
|
*/
|
|
2974
|
-
|
|
2781
|
+
disabled?: boolean;
|
|
2975
2782
|
}
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2783
|
+
interface PaginationEllipsisProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
2784
|
+
}
|
|
2785
|
+
declare const Pagination: React$1.ForwardRefExoticComponent<PaginationRootProps & React$1.RefAttributes<HTMLElement>> & {
|
|
2786
|
+
Root: React$1.ForwardRefExoticComponent<PaginationRootProps & React$1.RefAttributes<HTMLElement>>;
|
|
2787
|
+
Item: React$1.ForwardRefExoticComponent<PaginationItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2788
|
+
Prev: React$1.ForwardRefExoticComponent<PaginationPrevProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2789
|
+
Next: React$1.ForwardRefExoticComponent<PaginationNextProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2790
|
+
Ellipsis: React$1.ForwardRefExoticComponent<PaginationEllipsisProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2791
|
+
};
|
|
2792
|
+
|
|
2793
|
+
interface StepperStep {
|
|
2980
2794
|
/**
|
|
2981
|
-
*
|
|
2982
|
-
* @default false
|
|
2795
|
+
* Unique identifier for the step
|
|
2983
2796
|
*/
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2797
|
+
id: string;
|
|
2798
|
+
/**
|
|
2799
|
+
* Label text for the step
|
|
2800
|
+
*/
|
|
2801
|
+
label: string;
|
|
2802
|
+
/**
|
|
2803
|
+
* Optional description for the step
|
|
2804
|
+
*/
|
|
2805
|
+
description?: string;
|
|
2806
|
+
/**
|
|
2807
|
+
* Optional icon for the step indicator
|
|
2808
|
+
*/
|
|
2809
|
+
icon?: React$1.ReactNode;
|
|
2810
|
+
/**
|
|
2811
|
+
* Whether this step is disabled
|
|
2812
|
+
*/
|
|
2813
|
+
disabled?: boolean;
|
|
2814
|
+
}
|
|
2815
|
+
interface StepperRootProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2990
2816
|
/**
|
|
2991
|
-
*
|
|
2992
|
-
* @default "left"
|
|
2817
|
+
* Array of steps
|
|
2993
2818
|
*/
|
|
2994
|
-
|
|
2819
|
+
steps: StepperStep[];
|
|
2995
2820
|
/**
|
|
2996
|
-
*
|
|
2997
|
-
* @default false
|
|
2821
|
+
* Current active step index (0-indexed)
|
|
2998
2822
|
*/
|
|
2999
|
-
|
|
2823
|
+
activeStep: number;
|
|
3000
2824
|
/**
|
|
3001
|
-
*
|
|
2825
|
+
* Orientation of the stepper
|
|
2826
|
+
* @default "horizontal"
|
|
3002
2827
|
*/
|
|
3003
|
-
|
|
2828
|
+
orientation?: "horizontal" | "vertical";
|
|
3004
2829
|
/**
|
|
3005
|
-
*
|
|
3006
|
-
* @default
|
|
2830
|
+
* Whether to show step numbers
|
|
2831
|
+
* @default true
|
|
3007
2832
|
*/
|
|
3008
|
-
|
|
3009
|
-
}
|
|
3010
|
-
/**
|
|
3011
|
-
* Table Body component props
|
|
3012
|
-
*/
|
|
3013
|
-
interface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
2833
|
+
showNumbers?: boolean;
|
|
3014
2834
|
}
|
|
3015
|
-
|
|
3016
|
-
* Table Row component props
|
|
3017
|
-
*/
|
|
3018
|
-
interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
2835
|
+
interface StepperItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3019
2836
|
/**
|
|
3020
|
-
*
|
|
3021
|
-
* @default false
|
|
2837
|
+
* Step data
|
|
3022
2838
|
*/
|
|
3023
|
-
|
|
2839
|
+
step: StepperStep;
|
|
3024
2840
|
/**
|
|
3025
|
-
*
|
|
3026
|
-
* @default false
|
|
2841
|
+
* Step index (0-indexed)
|
|
3027
2842
|
*/
|
|
3028
|
-
|
|
2843
|
+
index: number;
|
|
3029
2844
|
/**
|
|
3030
|
-
*
|
|
2845
|
+
* Whether this is the active step
|
|
3031
2846
|
*/
|
|
3032
|
-
|
|
2847
|
+
isActive: boolean;
|
|
3033
2848
|
/**
|
|
3034
|
-
* Whether
|
|
3035
|
-
* @default false
|
|
2849
|
+
* Whether this step is completed
|
|
3036
2850
|
*/
|
|
3037
|
-
|
|
2851
|
+
isCompleted: boolean;
|
|
2852
|
+
/**
|
|
2853
|
+
* Whether to show step number
|
|
2854
|
+
*/
|
|
2855
|
+
showNumber?: boolean;
|
|
3038
2856
|
}
|
|
3039
|
-
|
|
3040
|
-
* Table Cell component props
|
|
3041
|
-
*/
|
|
3042
|
-
interface TableCellProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
2857
|
+
interface StepperIndicatorProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3043
2858
|
/**
|
|
3044
|
-
*
|
|
3045
|
-
* @default "left"
|
|
2859
|
+
* Step index
|
|
3046
2860
|
*/
|
|
3047
|
-
|
|
2861
|
+
index: number;
|
|
3048
2862
|
/**
|
|
3049
|
-
*
|
|
3050
|
-
* @default "md"
|
|
2863
|
+
* Whether this is the active step
|
|
3051
2864
|
*/
|
|
3052
|
-
|
|
3053
|
-
}
|
|
3054
|
-
/**
|
|
3055
|
-
* Table SortIcon component props
|
|
3056
|
-
*/
|
|
3057
|
-
interface TableSortIconProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
2865
|
+
isActive: boolean;
|
|
3058
2866
|
/**
|
|
3059
|
-
*
|
|
2867
|
+
* Whether this step is completed
|
|
3060
2868
|
*/
|
|
3061
|
-
|
|
3062
|
-
}
|
|
3063
|
-
/**
|
|
3064
|
-
* Table Empty component props
|
|
3065
|
-
*/
|
|
3066
|
-
interface TableEmptyProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
2869
|
+
isCompleted: boolean;
|
|
3067
2870
|
/**
|
|
3068
|
-
*
|
|
2871
|
+
* Whether this step is disabled
|
|
3069
2872
|
*/
|
|
3070
|
-
|
|
2873
|
+
disabled?: boolean;
|
|
3071
2874
|
/**
|
|
3072
|
-
*
|
|
2875
|
+
* Custom icon
|
|
3073
2876
|
*/
|
|
3074
|
-
|
|
2877
|
+
icon?: React$1.ReactNode;
|
|
2878
|
+
/**
|
|
2879
|
+
* Whether to show step number
|
|
2880
|
+
*/
|
|
2881
|
+
showNumber?: boolean;
|
|
3075
2882
|
}
|
|
3076
|
-
|
|
3077
|
-
* Table LoadingState component props
|
|
3078
|
-
*/
|
|
3079
|
-
interface TableLoadingStateProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
2883
|
+
interface StepperLabelProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3080
2884
|
/**
|
|
3081
|
-
*
|
|
2885
|
+
* Step label text
|
|
3082
2886
|
*/
|
|
3083
|
-
|
|
2887
|
+
label: string;
|
|
3084
2888
|
/**
|
|
3085
|
-
*
|
|
3086
|
-
* @default 5
|
|
2889
|
+
* Optional description
|
|
3087
2890
|
*/
|
|
3088
|
-
|
|
3089
|
-
}
|
|
3090
|
-
/**
|
|
3091
|
-
* Table ExpandableContent component props
|
|
3092
|
-
*/
|
|
3093
|
-
interface TableExpandableContentProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
2891
|
+
description?: string;
|
|
3094
2892
|
/**
|
|
3095
|
-
*
|
|
2893
|
+
* Whether this is the active step
|
|
3096
2894
|
*/
|
|
3097
|
-
|
|
2895
|
+
isActive: boolean;
|
|
2896
|
+
}
|
|
2897
|
+
interface StepperContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3098
2898
|
/**
|
|
3099
|
-
*
|
|
2899
|
+
* Step index this content belongs to
|
|
3100
2900
|
*/
|
|
3101
|
-
|
|
2901
|
+
stepIndex: number;
|
|
3102
2902
|
/**
|
|
3103
|
-
*
|
|
2903
|
+
* Whether this content should be visible
|
|
3104
2904
|
*/
|
|
3105
|
-
|
|
2905
|
+
isActive: boolean;
|
|
3106
2906
|
}
|
|
3107
|
-
|
|
3108
|
-
declare function useTableContext(): TableContextValue;
|
|
3109
2907
|
/**
|
|
3110
|
-
*
|
|
3111
|
-
*
|
|
3112
|
-
* @example
|
|
3113
|
-
* ```tsx
|
|
3114
|
-
* <Table.Root
|
|
3115
|
-
* data={users}
|
|
3116
|
-
* columns={columns}
|
|
3117
|
-
* rowKey="id"
|
|
3118
|
-
* sortable
|
|
3119
|
-
* >
|
|
3120
|
-
* <Table.Header>
|
|
3121
|
-
* <Table.Row>
|
|
3122
|
-
* <Table.Head>Name</Table.Head>
|
|
3123
|
-
* </Table.Row>
|
|
3124
|
-
* </Table.Header>
|
|
3125
|
-
* <Table.Body>
|
|
3126
|
-
* {users.map((user) => (
|
|
3127
|
-
* <Table.Row key={user.id}>
|
|
3128
|
-
* <Table.Cell>{user.name}</Table.Cell>
|
|
3129
|
-
* </Table.Row>
|
|
3130
|
-
* ))}
|
|
3131
|
-
* </Table.Body>
|
|
3132
|
-
* </Table.Root>
|
|
3133
|
-
* ```
|
|
2908
|
+
* Stepper.Item - Individual step container
|
|
3134
2909
|
*/
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
var displayName: string;
|
|
2910
|
+
interface StepperItemPropsInternal extends StepperItemProps {
|
|
2911
|
+
orientation?: "horizontal" | "vertical";
|
|
3138
2912
|
}
|
|
2913
|
+
declare const Stepper: React$1.ForwardRefExoticComponent<StepperRootProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
2914
|
+
Root: React$1.ForwardRefExoticComponent<StepperRootProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2915
|
+
Item: React$1.ForwardRefExoticComponent<StepperItemPropsInternal & React$1.RefAttributes<HTMLDivElement>>;
|
|
2916
|
+
Indicator: React$1.ForwardRefExoticComponent<StepperIndicatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2917
|
+
Label: React$1.ForwardRefExoticComponent<StepperLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2918
|
+
Content: React$1.ForwardRefExoticComponent<StepperContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2919
|
+
};
|
|
3139
2920
|
|
|
3140
2921
|
/**
|
|
3141
|
-
*
|
|
2922
|
+
* DataList Component Types
|
|
3142
2923
|
*
|
|
3143
|
-
*
|
|
2924
|
+
* TypeScript interfaces and types for DataList component.
|
|
3144
2925
|
*/
|
|
3145
2926
|
|
|
3146
2927
|
/**
|
|
3147
|
-
*
|
|
2928
|
+
* DataList Item component props
|
|
3148
2929
|
*/
|
|
3149
|
-
|
|
2930
|
+
interface DataListItemProps$1 extends React.HTMLAttributes<HTMLDivElement> {
|
|
2931
|
+
/**
|
|
2932
|
+
* Row padding - token-based
|
|
2933
|
+
* Accepts spacing tokens (xs, sm, md, lg, xl, etc.) or responsive object
|
|
2934
|
+
* @default "md"
|
|
2935
|
+
* @example padding="sm"
|
|
2936
|
+
* @example padding={{ base: "sm", md: "lg" }}
|
|
2937
|
+
*/
|
|
2938
|
+
padding?: ResponsiveSpacing;
|
|
2939
|
+
}
|
|
3150
2940
|
|
|
3151
2941
|
/**
|
|
3152
|
-
*
|
|
2942
|
+
* DataList Item Component
|
|
3153
2943
|
*
|
|
3154
|
-
*
|
|
2944
|
+
* Individual item in DataList (contains Label and Value).
|
|
3155
2945
|
*/
|
|
3156
2946
|
|
|
2947
|
+
interface DataListItemProps extends DataListItemProps$1 {
|
|
2948
|
+
}
|
|
3157
2949
|
/**
|
|
3158
|
-
*
|
|
2950
|
+
* DataList Item component
|
|
2951
|
+
* Mobile: vertical layout (label above value)
|
|
2952
|
+
* Desktop: horizontal layout (label left, value right)
|
|
3159
2953
|
*/
|
|
3160
|
-
declare const
|
|
2954
|
+
declare const DataListItem: React$1.ForwardRefExoticComponent<DataListItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3161
2955
|
|
|
3162
2956
|
/**
|
|
3163
|
-
*
|
|
2957
|
+
* DataList Label Component
|
|
3164
2958
|
*
|
|
3165
|
-
*
|
|
2959
|
+
* Label subcomponent for DataList items.
|
|
3166
2960
|
*/
|
|
3167
2961
|
|
|
2962
|
+
interface DataListLabelProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2963
|
+
/**
|
|
2964
|
+
* Label text
|
|
2965
|
+
*/
|
|
2966
|
+
children: React$1.ReactNode;
|
|
2967
|
+
}
|
|
3168
2968
|
/**
|
|
3169
|
-
*
|
|
2969
|
+
* DataList Label component
|
|
2970
|
+
* Mobile: full width
|
|
2971
|
+
* Desktop: fixed width (from tokens)
|
|
3170
2972
|
*/
|
|
3171
|
-
declare const
|
|
2973
|
+
declare const DataListLabel: React$1.ForwardRefExoticComponent<DataListLabelProps & React$1.RefAttributes<HTMLElement>>;
|
|
3172
2974
|
|
|
3173
2975
|
/**
|
|
3174
|
-
*
|
|
2976
|
+
* DataList Value Component
|
|
3175
2977
|
*
|
|
3176
|
-
*
|
|
2978
|
+
* Value subcomponent for DataList items.
|
|
3177
2979
|
*/
|
|
3178
2980
|
|
|
2981
|
+
interface DataListValueProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2982
|
+
/**
|
|
2983
|
+
* Value content
|
|
2984
|
+
*/
|
|
2985
|
+
children: React$1.ReactNode;
|
|
2986
|
+
}
|
|
3179
2987
|
/**
|
|
3180
|
-
*
|
|
3181
|
-
*
|
|
2988
|
+
* DataList Value component
|
|
2989
|
+
* Flex-grow to fill remaining space on desktop
|
|
3182
2990
|
*/
|
|
3183
|
-
declare const
|
|
2991
|
+
declare const DataListValue: React$1.ForwardRefExoticComponent<DataListValueProps & React$1.RefAttributes<HTMLElement>>;
|
|
3184
2992
|
|
|
3185
2993
|
/**
|
|
3186
|
-
*
|
|
2994
|
+
* EmptyState Component
|
|
3187
2995
|
*
|
|
3188
|
-
*
|
|
2996
|
+
* Token-driven empty state component for displaying empty or no-data states.
|
|
2997
|
+
* Uses EMPTY_STATE_TOKENS for all spacing and sizing.
|
|
2998
|
+
* Integrates with Surface and Stack components.
|
|
3189
2999
|
*/
|
|
3190
3000
|
|
|
3001
|
+
interface EmptyStateProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3002
|
+
/**
|
|
3003
|
+
* Unique ID for accessibility (auto-generated if not provided)
|
|
3004
|
+
*/
|
|
3005
|
+
id?: string;
|
|
3006
|
+
}
|
|
3191
3007
|
/**
|
|
3192
|
-
*
|
|
3008
|
+
* EmptyState root component
|
|
3009
|
+
*
|
|
3010
|
+
* @example
|
|
3011
|
+
* ```tsx
|
|
3012
|
+
* <EmptyState>
|
|
3013
|
+
* <EmptyState.Icon>📭</EmptyState.Icon>
|
|
3014
|
+
* <EmptyState.Title>No items found</EmptyState.Title>
|
|
3015
|
+
* <EmptyState.Description>Try adjusting your filters</EmptyState.Description>
|
|
3016
|
+
* <EmptyState.Action>
|
|
3017
|
+
* <Button>Create Item</Button>
|
|
3018
|
+
* </EmptyState.Action>
|
|
3019
|
+
* </EmptyState>
|
|
3020
|
+
* ```
|
|
3193
3021
|
*/
|
|
3194
|
-
declare const
|
|
3022
|
+
declare const EmptyState: React$1.ForwardRefExoticComponent<EmptyStateProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3195
3023
|
|
|
3196
3024
|
/**
|
|
3197
|
-
*
|
|
3025
|
+
* EmptyState Action Component
|
|
3198
3026
|
*
|
|
3199
|
-
*
|
|
3027
|
+
* Action subcomponent for EmptyState (typically contains Button).
|
|
3200
3028
|
*/
|
|
3201
3029
|
|
|
3202
|
-
|
|
3030
|
+
interface EmptyStateActionProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3031
|
+
/**
|
|
3032
|
+
* Action button or link (typically Button component)
|
|
3033
|
+
*/
|
|
3034
|
+
children: React$1.ReactNode;
|
|
3035
|
+
}
|
|
3036
|
+
/**
|
|
3037
|
+
* EmptyState Action component
|
|
3038
|
+
*/
|
|
3039
|
+
declare const EmptyStateAction: React$1.ForwardRefExoticComponent<EmptyStateActionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3203
3040
|
|
|
3204
3041
|
/**
|
|
3205
|
-
*
|
|
3042
|
+
* EmptyState Description Component
|
|
3206
3043
|
*
|
|
3207
|
-
*
|
|
3044
|
+
* Description subcomponent for EmptyState.
|
|
3208
3045
|
*/
|
|
3209
3046
|
|
|
3047
|
+
interface EmptyStateDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
3048
|
+
/**
|
|
3049
|
+
* Description text
|
|
3050
|
+
*/
|
|
3051
|
+
children: React$1.ReactNode;
|
|
3052
|
+
}
|
|
3210
3053
|
/**
|
|
3211
|
-
*
|
|
3054
|
+
* EmptyState Description component
|
|
3212
3055
|
*/
|
|
3213
|
-
declare const
|
|
3056
|
+
declare const EmptyStateDescription: React$1.ForwardRefExoticComponent<EmptyStateDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
3214
3057
|
|
|
3215
3058
|
/**
|
|
3216
|
-
*
|
|
3059
|
+
* EmptyState Icon Component
|
|
3217
3060
|
*
|
|
3218
|
-
*
|
|
3061
|
+
* Icon subcomponent for EmptyState.
|
|
3219
3062
|
*/
|
|
3220
3063
|
|
|
3064
|
+
interface EmptyStateIconProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3065
|
+
/**
|
|
3066
|
+
* Icon content (any ReactNode)
|
|
3067
|
+
*/
|
|
3068
|
+
children: React$1.ReactNode;
|
|
3069
|
+
/**
|
|
3070
|
+
* Icon size
|
|
3071
|
+
* @default "md"
|
|
3072
|
+
*/
|
|
3073
|
+
size?: "sm" | "md" | "lg";
|
|
3074
|
+
}
|
|
3221
3075
|
/**
|
|
3222
|
-
*
|
|
3076
|
+
* EmptyState Icon component
|
|
3223
3077
|
*/
|
|
3224
|
-
declare const
|
|
3078
|
+
declare const EmptyStateIcon: React$1.ForwardRefExoticComponent<EmptyStateIconProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3225
3079
|
|
|
3226
3080
|
/**
|
|
3227
|
-
*
|
|
3081
|
+
* EmptyState Title Component
|
|
3228
3082
|
*
|
|
3229
|
-
*
|
|
3083
|
+
* Title subcomponent for EmptyState.
|
|
3230
3084
|
*/
|
|
3231
3085
|
|
|
3086
|
+
interface EmptyStateTitleProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
3087
|
+
/**
|
|
3088
|
+
* Title text
|
|
3089
|
+
*/
|
|
3090
|
+
children: React$1.ReactNode;
|
|
3091
|
+
}
|
|
3232
3092
|
/**
|
|
3233
|
-
*
|
|
3234
|
-
* Uses CSS rotation animation (no framer-motion)
|
|
3093
|
+
* EmptyState Title component
|
|
3235
3094
|
*/
|
|
3236
|
-
declare const
|
|
3095
|
+
declare const EmptyStateTitle: React$1.ForwardRefExoticComponent<EmptyStateTitleProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
3237
3096
|
|
|
3238
3097
|
/**
|
|
3239
|
-
*
|
|
3098
|
+
* Table Component Types
|
|
3240
3099
|
*
|
|
3241
|
-
*
|
|
3242
|
-
* All behavior (keyboard navigation, focus management, a11y) is handled by Radix.
|
|
3243
|
-
* Tenerife UI provides visual styling through tokens only.
|
|
3100
|
+
* TypeScript interfaces and types for Table component.
|
|
3244
3101
|
*/
|
|
3245
3102
|
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
* Size variant - token-based
|
|
3251
|
-
*/
|
|
3252
|
-
size?: ResponsiveTabsSize;
|
|
3253
|
-
/**
|
|
3254
|
-
* Visual variant - token-based
|
|
3255
|
-
*/
|
|
3256
|
-
variant?: TabsVariantToken;
|
|
3257
|
-
}
|
|
3258
|
-
interface TabsTriggerProps extends Omit<React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>, "size" | "variant" | "tone"> {
|
|
3259
|
-
/**
|
|
3260
|
-
* Size variant - token-based (inherited from context if not provided)
|
|
3261
|
-
*/
|
|
3262
|
-
size?: ResponsiveTabsSize;
|
|
3263
|
-
/**
|
|
3264
|
-
* Visual variant - token-based (inherited from context if not provided)
|
|
3265
|
-
*/
|
|
3266
|
-
variant?: TabsVariantToken;
|
|
3267
|
-
/**
|
|
3268
|
-
* Tone - token-based (inherited from context if not provided)
|
|
3269
|
-
*/
|
|
3270
|
-
tone?: TabsToneToken;
|
|
3271
|
-
/**
|
|
3272
|
-
* Leading icon - semantic prop
|
|
3273
|
-
*/
|
|
3274
|
-
leadingIcon?: React$1.ReactNode;
|
|
3275
|
-
/**
|
|
3276
|
-
* Trailing icon - semantic prop
|
|
3277
|
-
*/
|
|
3278
|
-
trailingIcon?: React$1.ReactNode;
|
|
3279
|
-
/**
|
|
3280
|
-
* Icon - semantic prop (for backward compatibility, maps to leadingIcon)
|
|
3281
|
-
*/
|
|
3282
|
-
icon?: React$1.ReactNode;
|
|
3283
|
-
}
|
|
3284
|
-
interface TabsContentProps extends Omit<React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>, "size"> {
|
|
3285
|
-
/**
|
|
3286
|
-
* Size variant - token-based (for padding)
|
|
3287
|
-
*/
|
|
3288
|
-
size?: ResponsiveTabsSize;
|
|
3289
|
-
}
|
|
3290
|
-
declare const Tabs: {
|
|
3291
|
-
Root: React$1.FC<TabsRootProps>;
|
|
3292
|
-
List: React$1.ForwardRefExoticComponent<TabsListProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3293
|
-
Trigger: React$1.ForwardRefExoticComponent<TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3294
|
-
Content: React$1.ForwardRefExoticComponent<TabsContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3295
|
-
};
|
|
3296
|
-
|
|
3297
|
-
declare const segmentedControlRootVariants: (props?: ({
|
|
3298
|
-
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
3299
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3300
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
3301
|
-
declare const segmentedControlItemVariants: (props?: ({
|
|
3302
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3303
|
-
state?: "default" | "selected" | null | undefined;
|
|
3304
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
3305
|
-
interface SegmentedControlRootProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "role">, VariantProps<typeof segmentedControlRootVariants> {
|
|
3306
|
-
/**
|
|
3307
|
-
* Controlled value
|
|
3308
|
-
*/
|
|
3309
|
-
value?: string;
|
|
3310
|
-
/**
|
|
3311
|
-
* Default value for uncontrolled usage
|
|
3312
|
-
*/
|
|
3313
|
-
defaultValue?: string;
|
|
3314
|
-
/**
|
|
3315
|
-
* Callback when value changes
|
|
3316
|
-
*/
|
|
3317
|
-
onValueChange?: (value: string) => void;
|
|
3318
|
-
/**
|
|
3319
|
-
* Name for the radio group
|
|
3320
|
-
*/
|
|
3321
|
-
name?: string;
|
|
3322
|
-
}
|
|
3323
|
-
interface SegmentedControlItemProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "role">, VariantProps<typeof segmentedControlItemVariants> {
|
|
3324
|
-
/**
|
|
3325
|
-
* Value of this item
|
|
3326
|
-
*/
|
|
3327
|
-
value: string;
|
|
3103
|
+
/**
|
|
3104
|
+
* Table column definition
|
|
3105
|
+
*/
|
|
3106
|
+
interface TableColumn$1<T = Record<string, unknown>> {
|
|
3328
3107
|
/**
|
|
3329
|
-
*
|
|
3108
|
+
* Column key (must match a key in the data object)
|
|
3330
3109
|
*/
|
|
3331
|
-
|
|
3332
|
-
}
|
|
3333
|
-
declare const SegmentedControl: React$1.ForwardRefExoticComponent<SegmentedControlRootProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
3334
|
-
Root: React$1.ForwardRefExoticComponent<SegmentedControlRootProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3335
|
-
Item: React$1.ForwardRefExoticComponent<SegmentedControlItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3336
|
-
};
|
|
3337
|
-
|
|
3338
|
-
interface BreadcrumbItem {
|
|
3110
|
+
key: keyof T;
|
|
3339
3111
|
/**
|
|
3340
|
-
*
|
|
3112
|
+
* Column header title
|
|
3341
3113
|
*/
|
|
3342
|
-
|
|
3114
|
+
title: string;
|
|
3343
3115
|
/**
|
|
3344
|
-
*
|
|
3116
|
+
* Custom render function for cell content
|
|
3345
3117
|
*/
|
|
3346
|
-
|
|
3118
|
+
render?: (value: T[keyof T], item: T, index: number) => ReactNode;
|
|
3347
3119
|
/**
|
|
3348
|
-
*
|
|
3120
|
+
* Column alignment
|
|
3121
|
+
* @default "left"
|
|
3349
3122
|
*/
|
|
3350
|
-
|
|
3351
|
-
}
|
|
3352
|
-
interface BreadcrumbsRootProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
3123
|
+
align?: "left" | "center" | "right";
|
|
3353
3124
|
/**
|
|
3354
|
-
*
|
|
3125
|
+
* Column width (CSS value or Tailwind class)
|
|
3355
3126
|
*/
|
|
3356
|
-
|
|
3127
|
+
width?: string;
|
|
3357
3128
|
/**
|
|
3358
|
-
*
|
|
3359
|
-
* @default
|
|
3129
|
+
* Whether column is sortable
|
|
3130
|
+
* @default false
|
|
3360
3131
|
*/
|
|
3361
|
-
|
|
3132
|
+
sortable?: boolean;
|
|
3362
3133
|
/**
|
|
3363
|
-
*
|
|
3364
|
-
* @default "
|
|
3134
|
+
* Cell size
|
|
3135
|
+
* @default "md"
|
|
3365
3136
|
*/
|
|
3366
|
-
|
|
3137
|
+
size?: "sm" | "md" | "lg";
|
|
3367
3138
|
}
|
|
3368
|
-
|
|
3139
|
+
/**
|
|
3140
|
+
* Sort direction
|
|
3141
|
+
*/
|
|
3142
|
+
type SortDirection = "asc" | "desc" | null;
|
|
3143
|
+
/**
|
|
3144
|
+
* Sort state
|
|
3145
|
+
*/
|
|
3146
|
+
interface SortState {
|
|
3369
3147
|
/**
|
|
3370
|
-
*
|
|
3148
|
+
* Column key being sorted
|
|
3371
3149
|
*/
|
|
3372
|
-
|
|
3150
|
+
column: string | null;
|
|
3373
3151
|
/**
|
|
3374
|
-
*
|
|
3152
|
+
* Sort direction
|
|
3375
3153
|
*/
|
|
3376
|
-
|
|
3154
|
+
direction: SortDirection;
|
|
3377
3155
|
}
|
|
3378
|
-
|
|
3156
|
+
/**
|
|
3157
|
+
* Table context value
|
|
3158
|
+
*/
|
|
3159
|
+
interface TableContextValue {
|
|
3379
3160
|
/**
|
|
3380
|
-
*
|
|
3161
|
+
* Current sort state
|
|
3381
3162
|
*/
|
|
3382
|
-
|
|
3383
|
-
}
|
|
3384
|
-
declare const Breadcrumbs: React$1.ForwardRefExoticComponent<BreadcrumbsRootProps & React$1.RefAttributes<HTMLElement>> & {
|
|
3385
|
-
Root: React$1.ForwardRefExoticComponent<BreadcrumbsRootProps & React$1.RefAttributes<HTMLElement>>;
|
|
3386
|
-
Item: React$1.ForwardRefExoticComponent<BreadcrumbsItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
3387
|
-
Separator: React$1.ForwardRefExoticComponent<BreadcrumbsSeparatorProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
3388
|
-
};
|
|
3389
|
-
|
|
3390
|
-
interface PaginationRootProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
3163
|
+
sortState: SortState;
|
|
3391
3164
|
/**
|
|
3392
|
-
*
|
|
3165
|
+
* Set sort state
|
|
3393
3166
|
*/
|
|
3394
|
-
|
|
3167
|
+
setSortState: (state: SortState) => void;
|
|
3395
3168
|
/**
|
|
3396
|
-
*
|
|
3169
|
+
* Expanded rows (for expandable rows)
|
|
3397
3170
|
*/
|
|
3398
|
-
|
|
3171
|
+
expandedRows: Set<string | number>;
|
|
3399
3172
|
/**
|
|
3400
|
-
*
|
|
3173
|
+
* Toggle row expansion
|
|
3401
3174
|
*/
|
|
3402
|
-
|
|
3175
|
+
toggleRow: (rowKey: string | number) => void;
|
|
3403
3176
|
/**
|
|
3404
|
-
*
|
|
3405
|
-
* @default 2
|
|
3177
|
+
* Whether table has expandable rows
|
|
3406
3178
|
*/
|
|
3407
|
-
|
|
3179
|
+
expandable?: boolean;
|
|
3408
3180
|
/**
|
|
3409
|
-
*
|
|
3410
|
-
* @default "Pagination"
|
|
3181
|
+
* Render function for expandable content
|
|
3411
3182
|
*/
|
|
3412
|
-
|
|
3183
|
+
renderExpandableContent?: (item: unknown, index: number) => ReactNode;
|
|
3413
3184
|
}
|
|
3414
|
-
|
|
3185
|
+
/**
|
|
3186
|
+
* Table Root component props
|
|
3187
|
+
*/
|
|
3188
|
+
interface TableRootProps<T = Record<string, unknown>> extends React.HTMLAttributes<HTMLTableElement> {
|
|
3415
3189
|
/**
|
|
3416
|
-
*
|
|
3190
|
+
* Table data array
|
|
3417
3191
|
*/
|
|
3418
|
-
|
|
3192
|
+
data: T[];
|
|
3419
3193
|
/**
|
|
3420
|
-
*
|
|
3194
|
+
* Column definitions
|
|
3421
3195
|
*/
|
|
3422
|
-
|
|
3196
|
+
columns: TableColumn$1<T>[];
|
|
3423
3197
|
/**
|
|
3424
|
-
*
|
|
3198
|
+
* Key to use for row identification
|
|
3425
3199
|
*/
|
|
3426
|
-
|
|
3427
|
-
}
|
|
3428
|
-
interface PaginationPrevProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3200
|
+
rowKey: keyof T | ((item: T, index: number) => string | number);
|
|
3429
3201
|
/**
|
|
3430
|
-
* Whether
|
|
3202
|
+
* Whether table supports sorting
|
|
3203
|
+
* @default false
|
|
3431
3204
|
*/
|
|
3432
|
-
|
|
3433
|
-
}
|
|
3434
|
-
interface PaginationNextProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3205
|
+
sortable?: boolean;
|
|
3435
3206
|
/**
|
|
3436
|
-
* Whether
|
|
3207
|
+
* Whether table supports expandable rows
|
|
3208
|
+
* @default false
|
|
3437
3209
|
*/
|
|
3438
|
-
|
|
3439
|
-
}
|
|
3440
|
-
interface PaginationEllipsisProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
3441
|
-
}
|
|
3442
|
-
declare const Pagination: React$1.ForwardRefExoticComponent<PaginationRootProps & React$1.RefAttributes<HTMLElement>> & {
|
|
3443
|
-
Root: React$1.ForwardRefExoticComponent<PaginationRootProps & React$1.RefAttributes<HTMLElement>>;
|
|
3444
|
-
Item: React$1.ForwardRefExoticComponent<PaginationItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3445
|
-
Prev: React$1.ForwardRefExoticComponent<PaginationPrevProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3446
|
-
Next: React$1.ForwardRefExoticComponent<PaginationNextProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3447
|
-
Ellipsis: React$1.ForwardRefExoticComponent<PaginationEllipsisProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
3448
|
-
};
|
|
3449
|
-
|
|
3450
|
-
interface StepperStep {
|
|
3210
|
+
expandable?: boolean;
|
|
3451
3211
|
/**
|
|
3452
|
-
*
|
|
3212
|
+
* Render function for expandable content
|
|
3453
3213
|
*/
|
|
3454
|
-
|
|
3214
|
+
renderExpandableContent?: (item: T, index: number) => ReactNode;
|
|
3455
3215
|
/**
|
|
3456
|
-
*
|
|
3216
|
+
* Whether table is in loading state
|
|
3217
|
+
* @default false
|
|
3457
3218
|
*/
|
|
3458
|
-
|
|
3219
|
+
loading?: boolean;
|
|
3459
3220
|
/**
|
|
3460
|
-
*
|
|
3221
|
+
* Empty state message (shown when data is empty)
|
|
3461
3222
|
*/
|
|
3462
|
-
|
|
3223
|
+
emptyMessage?: string;
|
|
3463
3224
|
/**
|
|
3464
|
-
*
|
|
3225
|
+
* Whether header is sticky
|
|
3226
|
+
* @default false
|
|
3465
3227
|
*/
|
|
3466
|
-
|
|
3228
|
+
stickyHeader?: boolean;
|
|
3467
3229
|
/**
|
|
3468
|
-
*
|
|
3230
|
+
* Row size
|
|
3231
|
+
* @default "md"
|
|
3469
3232
|
*/
|
|
3470
|
-
|
|
3233
|
+
rowSize?: "sm" | "md" | "lg";
|
|
3471
3234
|
}
|
|
3472
|
-
|
|
3235
|
+
/**
|
|
3236
|
+
* Table Header component props
|
|
3237
|
+
*/
|
|
3238
|
+
interface TableHeaderProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
3473
3239
|
/**
|
|
3474
|
-
*
|
|
3240
|
+
* Whether header is sticky
|
|
3241
|
+
* @default false
|
|
3475
3242
|
*/
|
|
3476
|
-
|
|
3243
|
+
sticky?: boolean;
|
|
3244
|
+
}
|
|
3245
|
+
/**
|
|
3246
|
+
* Table Head component props
|
|
3247
|
+
*/
|
|
3248
|
+
interface TableHeadProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
3477
3249
|
/**
|
|
3478
|
-
*
|
|
3250
|
+
* Column alignment
|
|
3251
|
+
* @default "left"
|
|
3479
3252
|
*/
|
|
3480
|
-
|
|
3253
|
+
align?: "left" | "center" | "right";
|
|
3481
3254
|
/**
|
|
3482
|
-
*
|
|
3483
|
-
* @default
|
|
3255
|
+
* Whether column is sortable
|
|
3256
|
+
* @default false
|
|
3484
3257
|
*/
|
|
3485
|
-
|
|
3258
|
+
sortable?: boolean;
|
|
3486
3259
|
/**
|
|
3487
|
-
*
|
|
3488
|
-
* @default true
|
|
3260
|
+
* Column key (for sorting)
|
|
3489
3261
|
*/
|
|
3490
|
-
|
|
3491
|
-
}
|
|
3492
|
-
interface StepperItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3262
|
+
columnKey?: string;
|
|
3493
3263
|
/**
|
|
3494
|
-
*
|
|
3264
|
+
* Cell size
|
|
3265
|
+
* @default "md"
|
|
3495
3266
|
*/
|
|
3496
|
-
|
|
3267
|
+
size?: "sm" | "md" | "lg";
|
|
3268
|
+
}
|
|
3269
|
+
/**
|
|
3270
|
+
* Table Body component props
|
|
3271
|
+
*/
|
|
3272
|
+
interface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
3273
|
+
}
|
|
3274
|
+
/**
|
|
3275
|
+
* Table Row component props
|
|
3276
|
+
*/
|
|
3277
|
+
interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
3497
3278
|
/**
|
|
3498
|
-
*
|
|
3279
|
+
* Whether row is selected
|
|
3280
|
+
* @default false
|
|
3499
3281
|
*/
|
|
3500
|
-
|
|
3282
|
+
selected?: boolean;
|
|
3501
3283
|
/**
|
|
3502
|
-
* Whether
|
|
3284
|
+
* Whether row is expandable
|
|
3285
|
+
* @default false
|
|
3503
3286
|
*/
|
|
3504
|
-
|
|
3287
|
+
expandable?: boolean;
|
|
3505
3288
|
/**
|
|
3506
|
-
*
|
|
3289
|
+
* Row key (for expansion tracking)
|
|
3507
3290
|
*/
|
|
3508
|
-
|
|
3291
|
+
rowKey?: string | number;
|
|
3509
3292
|
/**
|
|
3510
|
-
* Whether
|
|
3293
|
+
* Whether row is expanded
|
|
3294
|
+
* @default false
|
|
3511
3295
|
*/
|
|
3512
|
-
|
|
3296
|
+
expanded?: boolean;
|
|
3513
3297
|
}
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
index: number;
|
|
3298
|
+
/**
|
|
3299
|
+
* Table Cell component props
|
|
3300
|
+
*/
|
|
3301
|
+
interface TableCellProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
3519
3302
|
/**
|
|
3520
|
-
*
|
|
3303
|
+
* Cell alignment
|
|
3304
|
+
* @default "left"
|
|
3521
3305
|
*/
|
|
3522
|
-
|
|
3306
|
+
align?: "left" | "center" | "right";
|
|
3523
3307
|
/**
|
|
3524
|
-
*
|
|
3308
|
+
* Cell size
|
|
3309
|
+
* @default "md"
|
|
3525
3310
|
*/
|
|
3526
|
-
|
|
3311
|
+
size?: "sm" | "md" | "lg";
|
|
3312
|
+
}
|
|
3313
|
+
/**
|
|
3314
|
+
* Table SortIcon component props
|
|
3315
|
+
*/
|
|
3316
|
+
interface TableSortIconProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3527
3317
|
/**
|
|
3528
|
-
*
|
|
3318
|
+
* Sort direction
|
|
3529
3319
|
*/
|
|
3530
|
-
|
|
3320
|
+
direction: SortDirection;
|
|
3321
|
+
}
|
|
3322
|
+
/**
|
|
3323
|
+
* Table Empty component props
|
|
3324
|
+
*/
|
|
3325
|
+
interface TableEmptyProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
3531
3326
|
/**
|
|
3532
|
-
*
|
|
3327
|
+
* Number of columns to span
|
|
3533
3328
|
*/
|
|
3534
|
-
|
|
3329
|
+
colSpan: number;
|
|
3535
3330
|
/**
|
|
3536
|
-
*
|
|
3331
|
+
* Empty message
|
|
3537
3332
|
*/
|
|
3538
|
-
|
|
3333
|
+
message?: string;
|
|
3539
3334
|
}
|
|
3540
|
-
|
|
3335
|
+
/**
|
|
3336
|
+
* Table LoadingState component props
|
|
3337
|
+
*/
|
|
3338
|
+
interface TableLoadingStateProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
3541
3339
|
/**
|
|
3542
|
-
*
|
|
3340
|
+
* Number of columns to span
|
|
3543
3341
|
*/
|
|
3544
|
-
|
|
3342
|
+
colSpan: number;
|
|
3545
3343
|
/**
|
|
3546
|
-
*
|
|
3344
|
+
* Number of skeleton rows to show
|
|
3345
|
+
* @default 5
|
|
3547
3346
|
*/
|
|
3548
|
-
|
|
3347
|
+
rows?: number;
|
|
3348
|
+
}
|
|
3349
|
+
/**
|
|
3350
|
+
* Table ExpandableContent component props
|
|
3351
|
+
*/
|
|
3352
|
+
interface TableExpandableContentProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
3549
3353
|
/**
|
|
3550
|
-
*
|
|
3354
|
+
* Number of columns to span
|
|
3551
3355
|
*/
|
|
3552
|
-
|
|
3553
|
-
}
|
|
3554
|
-
interface StepperContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3356
|
+
colSpan: number;
|
|
3555
3357
|
/**
|
|
3556
|
-
*
|
|
3358
|
+
* Whether content is expanded
|
|
3557
3359
|
*/
|
|
3558
|
-
|
|
3360
|
+
expanded: boolean;
|
|
3559
3361
|
/**
|
|
3560
|
-
*
|
|
3362
|
+
* Content to render
|
|
3561
3363
|
*/
|
|
3562
|
-
|
|
3364
|
+
children: ReactNode;
|
|
3365
|
+
}
|
|
3366
|
+
|
|
3367
|
+
declare function useTableContext(): TableContextValue;
|
|
3368
|
+
/**
|
|
3369
|
+
* Table Root component
|
|
3370
|
+
*
|
|
3371
|
+
* @example
|
|
3372
|
+
* ```tsx
|
|
3373
|
+
* <Table.Root
|
|
3374
|
+
* data={users}
|
|
3375
|
+
* columns={columns}
|
|
3376
|
+
* rowKey="id"
|
|
3377
|
+
* sortable
|
|
3378
|
+
* >
|
|
3379
|
+
* <Table.Header>
|
|
3380
|
+
* <Table.Row>
|
|
3381
|
+
* <Table.Head>Name</Table.Head>
|
|
3382
|
+
* </Table.Row>
|
|
3383
|
+
* </Table.Header>
|
|
3384
|
+
* <Table.Body>
|
|
3385
|
+
* {users.map((user) => (
|
|
3386
|
+
* <Table.Row key={user.id}>
|
|
3387
|
+
* <Table.Cell>{user.name}</Table.Cell>
|
|
3388
|
+
* </Table.Row>
|
|
3389
|
+
* ))}
|
|
3390
|
+
* </Table.Body>
|
|
3391
|
+
* </Table.Root>
|
|
3392
|
+
* ```
|
|
3393
|
+
*/
|
|
3394
|
+
declare function TableRoot<T extends Record<string, unknown>>({ data: _data, columns: _columns, rowKey: _rowKey, sortable: _sortable, expandable, renderExpandableContent, loading: _loading, emptyMessage: _emptyMessage, stickyHeader: _stickyHeader, rowSize: _rowSize, className, children, ...props }: TableRootProps<T>): react_jsx_runtime.JSX.Element;
|
|
3395
|
+
declare namespace TableRoot {
|
|
3396
|
+
var displayName: string;
|
|
3563
3397
|
}
|
|
3398
|
+
|
|
3399
|
+
/**
|
|
3400
|
+
* Table Body Component
|
|
3401
|
+
*
|
|
3402
|
+
* Body section for table (tbody element).
|
|
3403
|
+
*/
|
|
3404
|
+
|
|
3405
|
+
/**
|
|
3406
|
+
* Table Body component
|
|
3407
|
+
*/
|
|
3408
|
+
declare const TableBody: React$1.ForwardRefExoticComponent<TableBodyProps & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
3409
|
+
|
|
3410
|
+
/**
|
|
3411
|
+
* Table Cell Component
|
|
3412
|
+
*
|
|
3413
|
+
* Table cell component with alignment and size support.
|
|
3414
|
+
*/
|
|
3415
|
+
|
|
3416
|
+
/**
|
|
3417
|
+
* Table Cell component
|
|
3418
|
+
*/
|
|
3419
|
+
declare const TableCell: React$1.ForwardRefExoticComponent<TableCellProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
3420
|
+
|
|
3564
3421
|
/**
|
|
3565
|
-
*
|
|
3422
|
+
* Table Empty Component
|
|
3423
|
+
*
|
|
3424
|
+
* Empty state row for table (uses EmptyState component).
|
|
3566
3425
|
*/
|
|
3567
|
-
|
|
3568
|
-
|
|
3426
|
+
|
|
3427
|
+
/**
|
|
3428
|
+
* Table Empty component
|
|
3429
|
+
*/
|
|
3430
|
+
declare const TableEmpty: React$1.ForwardRefExoticComponent<TableEmptyProps & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
3431
|
+
|
|
3432
|
+
/**
|
|
3433
|
+
* Table ExpandableContent Component
|
|
3434
|
+
*
|
|
3435
|
+
* Expandable content cell with CSS height transitions.
|
|
3436
|
+
*/
|
|
3437
|
+
|
|
3438
|
+
/**
|
|
3439
|
+
* Table ExpandableContent component
|
|
3440
|
+
* Uses CSS height transitions (no framer-motion)
|
|
3441
|
+
*/
|
|
3442
|
+
declare const TableExpandableContent: React$1.ForwardRefExoticComponent<TableExpandableContentProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
3443
|
+
|
|
3444
|
+
/**
|
|
3445
|
+
* Table Head Component
|
|
3446
|
+
*
|
|
3447
|
+
* Header cell component with sorting support.
|
|
3448
|
+
*/
|
|
3449
|
+
|
|
3450
|
+
/**
|
|
3451
|
+
* Table Head component
|
|
3452
|
+
*/
|
|
3453
|
+
declare const TableHead: React$1.ForwardRefExoticComponent<TableHeadProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
3454
|
+
|
|
3455
|
+
/**
|
|
3456
|
+
* Table Header Component
|
|
3457
|
+
*
|
|
3458
|
+
* Header section for table (thead element).
|
|
3459
|
+
*/
|
|
3460
|
+
|
|
3461
|
+
declare const TableHeader: React$1.ForwardRefExoticComponent<TableHeaderProps & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
3462
|
+
|
|
3463
|
+
/**
|
|
3464
|
+
* Table LoadingState Component
|
|
3465
|
+
*
|
|
3466
|
+
* Loading state row for table (uses Skeleton component).
|
|
3467
|
+
*/
|
|
3468
|
+
|
|
3469
|
+
/**
|
|
3470
|
+
* Table LoadingState component
|
|
3471
|
+
*/
|
|
3472
|
+
declare const TableLoadingState: React$1.ForwardRefExoticComponent<TableLoadingStateProps & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
3473
|
+
|
|
3474
|
+
/**
|
|
3475
|
+
* Table Row Component
|
|
3476
|
+
*
|
|
3477
|
+
* Table row component with hover and selected states.
|
|
3478
|
+
*/
|
|
3479
|
+
|
|
3480
|
+
/**
|
|
3481
|
+
* Table Row component
|
|
3482
|
+
*/
|
|
3483
|
+
declare const TableRow: React$1.ForwardRefExoticComponent<TableRowProps & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
3484
|
+
|
|
3485
|
+
/**
|
|
3486
|
+
* Table SortIcon Component
|
|
3487
|
+
*
|
|
3488
|
+
* Sort indicator icon with rotation animation.
|
|
3489
|
+
*/
|
|
3490
|
+
|
|
3491
|
+
/**
|
|
3492
|
+
* Table SortIcon component
|
|
3493
|
+
* Uses CSS rotation animation (no framer-motion)
|
|
3494
|
+
*/
|
|
3495
|
+
declare const TableSortIcon: React$1.ForwardRefExoticComponent<TableSortIconProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
3496
|
+
|
|
3497
|
+
interface TableColumn<T> {
|
|
3498
|
+
key: keyof T;
|
|
3499
|
+
title: string;
|
|
3500
|
+
render?: (value: T[keyof T], item: T) => React__default.ReactNode;
|
|
3569
3501
|
}
|
|
3570
|
-
declare const Stepper: React$1.ForwardRefExoticComponent<StepperRootProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
3571
|
-
Root: React$1.ForwardRefExoticComponent<StepperRootProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3572
|
-
Item: React$1.ForwardRefExoticComponent<StepperItemPropsInternal & React$1.RefAttributes<HTMLDivElement>>;
|
|
3573
|
-
Indicator: React$1.ForwardRefExoticComponent<StepperIndicatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3574
|
-
Label: React$1.ForwardRefExoticComponent<StepperLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3575
|
-
Content: React$1.ForwardRefExoticComponent<StepperContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3576
|
-
};
|
|
3577
3502
|
|
|
3578
3503
|
/**
|
|
3579
3504
|
* Icon Props Interface
|
|
@@ -3688,7 +3613,7 @@ declare const iconVariants: (props?: ({
|
|
|
3688
3613
|
color?: "muted" | "default" | "success" | "warning" | "danger" | "info" | null | undefined;
|
|
3689
3614
|
stroke?: "normal" | "bold" | "thin" | null | undefined;
|
|
3690
3615
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
3691
|
-
interface IconProps extends Omit<React$1.SVGProps<SVGSVGElement>, "color" | "stroke">, VariantProps<typeof iconVariants> {
|
|
3616
|
+
interface IconProps extends Omit<React$1.SVGProps<SVGSVGElement>, "color" | "stroke">, VariantProps$1<typeof iconVariants> {
|
|
3692
3617
|
/**
|
|
3693
3618
|
* Icon name from registry
|
|
3694
3619
|
*/
|
|
@@ -3750,6 +3675,90 @@ interface ComponentAnimationConfig {
|
|
|
3750
3675
|
animationProps?: AnimationProps;
|
|
3751
3676
|
}
|
|
3752
3677
|
|
|
3678
|
+
/**
|
|
3679
|
+
* EventCard Size Variant
|
|
3680
|
+
* Controls padding, spacing, and overall card dimensions
|
|
3681
|
+
*/
|
|
3682
|
+
type EventCardSize = "default" | "compact";
|
|
3683
|
+
/**
|
|
3684
|
+
* EventCard Layout Variant
|
|
3685
|
+
* Controls card layout orientation
|
|
3686
|
+
*/
|
|
3687
|
+
type EventCardLayout = "vertical";
|
|
3688
|
+
/**
|
|
3689
|
+
* EventCard Style Variant
|
|
3690
|
+
* Controls visual appearance and featured state
|
|
3691
|
+
*/
|
|
3692
|
+
type EventCardVariant = "default" | "featured";
|
|
3693
|
+
/**
|
|
3694
|
+
* Props for EventCard component.
|
|
3695
|
+
* All props are flat and domain-agnostic. Consumer should provide pre-localized strings.
|
|
3696
|
+
*
|
|
3697
|
+
* Component uses CARD_TOKENS and DOMAIN_TOKENS for all styling.
|
|
3698
|
+
* All visual values come from tokens - no hardcoded Tailwind classes.
|
|
3699
|
+
*/
|
|
3700
|
+
interface EventCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3701
|
+
/** Event title (pre-localized string) */
|
|
3702
|
+
title: string;
|
|
3703
|
+
/** Event description (pre-localized string, optional) */
|
|
3704
|
+
description?: string;
|
|
3705
|
+
/** Event date/time display string (pre-formatted, optional) */
|
|
3706
|
+
date?: string;
|
|
3707
|
+
/** Venue name (pre-localized string, optional) */
|
|
3708
|
+
venueName?: string;
|
|
3709
|
+
/** Price display string with currency (e.g., "€20 - €50", optional) */
|
|
3710
|
+
price?: string;
|
|
3711
|
+
/** Image URL (optional) */
|
|
3712
|
+
imageUrl?: string;
|
|
3713
|
+
/** Link URL for event details page (optional) */
|
|
3714
|
+
href?: string;
|
|
3715
|
+
/** External ticket purchase URL (optional) */
|
|
3716
|
+
ticketUrl?: string;
|
|
3717
|
+
/** Whether this is a featured event */
|
|
3718
|
+
featured?: boolean;
|
|
3719
|
+
/** Show image section */
|
|
3720
|
+
showImage?: boolean;
|
|
3721
|
+
/** Label for "Get Tickets" button (required) */
|
|
3722
|
+
getTicketsLabel: string;
|
|
3723
|
+
/** Badge text for featured events (optional) */
|
|
3724
|
+
featuredBadgeText?: string;
|
|
3725
|
+
/** Size variant - controls padding and spacing */
|
|
3726
|
+
size?: EventCardSize;
|
|
3727
|
+
/** Layout variant - controls card layout orientation */
|
|
3728
|
+
layout?: EventCardLayout;
|
|
3729
|
+
/** Style variant - controls visual appearance */
|
|
3730
|
+
variant?: EventCardVariant;
|
|
3731
|
+
/** Additional CSS classes */
|
|
3732
|
+
className?: string;
|
|
3733
|
+
/** Animation configuration for entrance and hover animations */
|
|
3734
|
+
animation?: ComponentAnimationConfig;
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
/**
|
|
3738
|
+
* EventCard Component
|
|
3739
|
+
*
|
|
3740
|
+
* Domain-specific card component for displaying event information.
|
|
3741
|
+
* Uses CardBase for layout and CARD_TOKENS + DOMAIN_TOKENS for all styling.
|
|
3742
|
+
* All visual values come from tokens - no hardcoded Tailwind visual classes.
|
|
3743
|
+
*
|
|
3744
|
+
* Architecture:
|
|
3745
|
+
* - Uses CVA variants for size and layout variants
|
|
3746
|
+
* - All spacing, colors, radius from tokens
|
|
3747
|
+
* - Semantic HTML elements (heading, time, address)
|
|
3748
|
+
* - Full accessibility support
|
|
3749
|
+
*
|
|
3750
|
+
* @example
|
|
3751
|
+
* ```tsx
|
|
3752
|
+
* <EventCard
|
|
3753
|
+
* title="Concert"
|
|
3754
|
+
* date="2024-01-01"
|
|
3755
|
+
* venueName="Venue"
|
|
3756
|
+
* getTicketsLabel="Get Tickets"
|
|
3757
|
+
* />
|
|
3758
|
+
* ```
|
|
3759
|
+
*/
|
|
3760
|
+
declare const EventCard: React$1.ForwardRefExoticComponent<EventCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3761
|
+
|
|
3753
3762
|
/**
|
|
3754
3763
|
* ArtistCard Size Variant
|
|
3755
3764
|
*/
|
|
@@ -4007,88 +4016,4 @@ interface TicketCardProps {
|
|
|
4007
4016
|
*/
|
|
4008
4017
|
declare const TicketCard: React$1.ForwardRefExoticComponent<TicketCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
4009
4018
|
|
|
4010
|
-
|
|
4011
|
-
* EventCard Size Variant
|
|
4012
|
-
* Controls padding, spacing, and overall card dimensions
|
|
4013
|
-
*/
|
|
4014
|
-
type EventCardSize = "default" | "compact";
|
|
4015
|
-
/**
|
|
4016
|
-
* EventCard Layout Variant
|
|
4017
|
-
* Controls card layout orientation
|
|
4018
|
-
*/
|
|
4019
|
-
type EventCardLayout = "vertical";
|
|
4020
|
-
/**
|
|
4021
|
-
* EventCard Style Variant
|
|
4022
|
-
* Controls visual appearance and featured state
|
|
4023
|
-
*/
|
|
4024
|
-
type EventCardVariant = "default" | "featured";
|
|
4025
|
-
/**
|
|
4026
|
-
* Props for EventCard component.
|
|
4027
|
-
* All props are flat and domain-agnostic. Consumer should provide pre-localized strings.
|
|
4028
|
-
*
|
|
4029
|
-
* Component uses CARD_TOKENS and DOMAIN_TOKENS for all styling.
|
|
4030
|
-
* All visual values come from tokens - no hardcoded Tailwind classes.
|
|
4031
|
-
*/
|
|
4032
|
-
interface EventCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
4033
|
-
/** Event title (pre-localized string) */
|
|
4034
|
-
title: string;
|
|
4035
|
-
/** Event description (pre-localized string, optional) */
|
|
4036
|
-
description?: string;
|
|
4037
|
-
/** Event date/time display string (pre-formatted, optional) */
|
|
4038
|
-
date?: string;
|
|
4039
|
-
/** Venue name (pre-localized string, optional) */
|
|
4040
|
-
venueName?: string;
|
|
4041
|
-
/** Price display string with currency (e.g., "€20 - €50", optional) */
|
|
4042
|
-
price?: string;
|
|
4043
|
-
/** Image URL (optional) */
|
|
4044
|
-
imageUrl?: string;
|
|
4045
|
-
/** Link URL for event details page (optional) */
|
|
4046
|
-
href?: string;
|
|
4047
|
-
/** External ticket purchase URL (optional) */
|
|
4048
|
-
ticketUrl?: string;
|
|
4049
|
-
/** Whether this is a featured event */
|
|
4050
|
-
featured?: boolean;
|
|
4051
|
-
/** Show image section */
|
|
4052
|
-
showImage?: boolean;
|
|
4053
|
-
/** Label for "Get Tickets" button (required) */
|
|
4054
|
-
getTicketsLabel: string;
|
|
4055
|
-
/** Badge text for featured events (optional) */
|
|
4056
|
-
featuredBadgeText?: string;
|
|
4057
|
-
/** Size variant - controls padding and spacing */
|
|
4058
|
-
size?: EventCardSize;
|
|
4059
|
-
/** Layout variant - controls card layout orientation */
|
|
4060
|
-
layout?: EventCardLayout;
|
|
4061
|
-
/** Style variant - controls visual appearance */
|
|
4062
|
-
variant?: EventCardVariant;
|
|
4063
|
-
/** Additional CSS classes */
|
|
4064
|
-
className?: string;
|
|
4065
|
-
/** Animation configuration for entrance and hover animations */
|
|
4066
|
-
animation?: ComponentAnimationConfig;
|
|
4067
|
-
}
|
|
4068
|
-
|
|
4069
|
-
/**
|
|
4070
|
-
* EventCard Component
|
|
4071
|
-
*
|
|
4072
|
-
* Domain-specific card component for displaying event information.
|
|
4073
|
-
* Uses CardBase for layout and CARD_TOKENS + DOMAIN_TOKENS for all styling.
|
|
4074
|
-
* All visual values come from tokens - no hardcoded Tailwind visual classes.
|
|
4075
|
-
*
|
|
4076
|
-
* Architecture:
|
|
4077
|
-
* - Uses CVA variants for size and layout variants
|
|
4078
|
-
* - All spacing, colors, radius from tokens
|
|
4079
|
-
* - Semantic HTML elements (heading, time, address)
|
|
4080
|
-
* - Full accessibility support
|
|
4081
|
-
*
|
|
4082
|
-
* @example
|
|
4083
|
-
* ```tsx
|
|
4084
|
-
* <EventCard
|
|
4085
|
-
* title="Concert"
|
|
4086
|
-
* date="2024-01-01"
|
|
4087
|
-
* venueName="Venue"
|
|
4088
|
-
* getTicketsLabel="Get Tickets"
|
|
4089
|
-
* />
|
|
4090
|
-
* ```
|
|
4091
|
-
*/
|
|
4092
|
-
declare const EventCard: React$1.ForwardRefExoticComponent<EventCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
4093
|
-
|
|
4094
|
-
export { Alert, type AlertProps, ArtistCard, type ArtistCardProps, type ArtistCardSize, type ArtistCardVariant, Backdrop, type BackdropProps, Body, type BodyProps, Box, type BoxProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsItemProps, type BreadcrumbsRootProps, type BreadcrumbsSeparatorProps, Button, type ButtonProps, Caption, type CaptionProps, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CategoryCard, type CategoryCardProps, type CategoryCardSize, type CategoryCardVariant, Checkbox, type CheckboxProps, Code, type CodeProps, Column, type StackProps as ColumnProps, Container, type ContainerProps, Surface as ContainerSurface, type SurfaceProps as ContainerSurfaceProps, ContextMenu, ContextMenuCheckboxItem, type ContextMenuCheckboxItemProps, ContextMenuContent, type ContextMenuContentProps, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, ContextMenuRadioGroup, type ContextMenuRadioGroupProps, ContextMenuRadioItem, type ContextMenuRadioItemProps, ContextMenuRoot, type ContextMenuRootProps, ContextMenuSeparator, type ContextMenuSeparatorProps, ContextMenuSub, ContextMenuSubContent, type ContextMenuSubContentProps, type ContextMenuSubProps, ContextMenuSubTrigger, type ContextMenuSubTriggerProps, ContextMenuTrigger, type ContextMenuTriggerProps, DataListRoot as DataList, DataListItem, type DataListItemProps, DataListLabel, type DataListLabelProps, DataListRoot, type DataListRootProps, DataListValue, type DataListValueProps, Dialog, DialogBody, type DialogBodyProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogRoot, DialogTitle, type DialogTitleProps, Display, type DisplayProps, DropdownMenuCheckItem, type DropdownMenuCheckItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuRoot, type DropdownMenuRootProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmptyState, EmptyStateAction, type EmptyStateActionProps, EmptyStateDescription, type EmptyStateDescriptionProps, EmptyStateIcon, type EmptyStateIconProps, type EmptyStateProps, EmptyStateTitle, type EmptyStateTitleProps, EventCard, type EventCardLayout, type EventCardProps, type EventCardSize, type EventCardVariant, FieldRoot as Field, type FieldControlProps, type FieldDescriptionProps, type FieldErrorProps, type FieldLabelProps, type FieldProps, Flex, type FlexProps, Grid, type GridProps, type GroupByFunction, Heading, type HeadingProps, HoverCardContent, type HoverCardContentProps, HoverCardRoot, type HoverCardRootProps, HoverCardTrigger, type HoverCardTriggerProps, ICONS_MAP, Icon, IconArrowRight, IconCalendar, IconCheck, IconChevronDown, IconChevronRight, IconClose, type IconProps$1 as IconComponentProps, IconError, IconInfo, IconLocation, IconMenu, type IconName, type IconProps, IconSearch, IconSuccess, IconWarning, Input, type InputProps, Label, type LabelProps, Lead, type LeadProps, Modal, ModalClose, type ModalCloseProps, ModalContent, type ModalContentProps, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, ModalOverlay, type ModalOverlayProps, ModalRoot, type ModalRootProps, ModalTitle, type ModalTitleProps, ModalTrigger, type ModalTriggerProps, NotificationCenter, NotificationCenterDismissAll, type NotificationCenterDismissAllProps, NotificationCenterGroupHeader, type NotificationCenterGroupHeaderProps, NotificationCenterItem, type NotificationCenterItemProps, NotificationCenterList, type NotificationCenterListProps, NotificationCenterPanel, type NotificationCenterPanelProps, NotificationCenterProvider, type NotificationCenterProviderProps, NotificationCenterTrigger, type NotificationCenterTriggerProps, type NotificationChannel, type NotificationContextType, type NotificationData, type NotificationOptions, type NotificationVariant, Pagination, type PaginationEllipsisProps, type PaginationItemProps, type PaginationNextProps, type PaginationPrevProps, type PaginationRootProps, PopoverArrow, type PopoverArrowProps, PopoverContent, type PopoverContentProps, PopoverRoot, type PopoverRootProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, PromoCard, type PromoCardProps, type PromoCardSize, type PromoCardVariant, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Responsive, Row, type RowProps, Section, type SectionProps, SegmentedControl, type SegmentedControlItemProps, type SegmentedControlRootProps, Select, SelectContent, type SelectContentProps, SelectGroup, type SelectGroupProps, SelectIcon, type SelectIconProps, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectLabel, type SelectLabelProps, SelectRoot, type SelectRootProps, SelectSeparator, type SelectSeparatorProps, type SelectSize, type SelectState, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, SelectViewport, type SelectViewportProps, type SelectWidth, Skeleton, type SkeletonProps, type SortDirection, type SortState, Stack, type StackProps, Stepper, type StepperContentProps, type StepperIndicatorProps, type StepperItemProps, type StepperLabelProps, type StepperRootProps, type StepperStep, Surface$1 as Surface, type SurfaceProps$1 as SurfaceProps, TableRoot as Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, type TableColumn, type TableContextValue, TableEmpty, type TableEmptyProps, TableExpandableContent, type TableExpandableContentProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TableLoadingState, type TableLoadingStateProps, TableRoot, type TableRootProps, TableRow, type TableRowProps, TableSortIcon, type TableSortIconProps, Tabs, type TabsContentProps, type TabsListProps, type TabsRootProps, type TabsTriggerProps, Text, type TextProps, type TextSize, type TextWeight, Textarea, type TextareaProps, type TicketAvailability, TicketCard, type TicketCardProps, type TicketCardSize, type TicketCardVariant, Toast, ToastAction, type ToastData, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, ToastViewport, type ToastViewportProps, alertVariants, bodyVariants, buttonVariants, captionVariants, checkboxVariants, codeVariants, surfaceVariants as containerSurfaceVariants, displayVariants, headingVariants, iconVariants, inputVariants, labelVariants, leadVariants, popoverContentVariants, radioVariants, segmentedControlItemVariants, segmentedControlRootVariants, skeletonVariants, surfaceVariants$1 as surfaceVariants, textVariants, textareaVariants, useNotificationCenter, useNotificationCenterContext, useTableContext, useToast };
|
|
4019
|
+
export { Alert, type AlertProps, ArtistCard, type ArtistCardProps, type ArtistCardSize, type ArtistCardVariant, Backdrop, type BackdropProps, Box, type BoxProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsItemProps, type BreadcrumbsRootProps, type BreadcrumbsSeparatorProps, Button, type ButtonProps, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CategoryCard, type CategoryCardProps, type CategoryCardSize, type CategoryCardVariant, Checkbox, type CheckboxProps, Column, type StackProps as ColumnProps, Container, type ContainerProps, Surface as ContainerSurface, type SurfaceProps as ContainerSurfaceProps, ContextMenu, ContextMenuCheckboxItem, type ContextMenuCheckboxItemProps, ContextMenuContent, type ContextMenuContentProps, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, ContextMenuRadioGroup, type ContextMenuRadioGroupProps, ContextMenuRadioItem, type ContextMenuRadioItemProps, ContextMenuRoot, type ContextMenuRootProps, ContextMenuSeparator, type ContextMenuSeparatorProps, ContextMenuSub, ContextMenuSubContent, type ContextMenuSubContentProps, type ContextMenuSubProps, ContextMenuSubTrigger, type ContextMenuSubTriggerProps, ContextMenuTrigger, type ContextMenuTriggerProps, DataListRoot as DataList, DataListItem, type DataListItemProps, DataListLabel, type DataListLabelProps, DataListRoot, type DataListRootProps, DataListValue, type DataListValueProps, Dialog, DialogBody, type DialogBodyProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogRoot, DialogTitle, type DialogTitleProps, EmptyState, EmptyStateAction, type EmptyStateActionProps, EmptyStateDescription, type EmptyStateDescriptionProps, EmptyStateIcon, type EmptyStateIconProps, type EmptyStateProps, EmptyStateTitle, type EmptyStateTitleProps, EventCard, type EventCardLayout, type EventCardProps, type EventCardSize, type EventCardVariant, FieldRoot as Field, type FieldControlProps, type FieldDescriptionProps, type FieldErrorProps, type FieldLabelProps, type FieldProps, Flex, type FlexProps, Grid, type GridProps, type GroupByFunction, Heading, type HeadingProps, HoverCardContent, type HoverCardContentProps, HoverCardRoot, type HoverCardRootProps, HoverCardTrigger, type HoverCardTriggerProps, ICONS_MAP, INPUT_TOKENS, Icon, IconArrowRight, IconCalendar, IconCheck, IconChevronDown, IconChevronRight, IconClose, type IconProps$1 as IconComponentProps, IconError, IconInfo, IconLocation, IconMenu, type IconName, type IconProps, IconSearch, IconSuccess, IconWarning, Input, type InputProps, InputSize, Label, type LabelProps, Modal, ModalClose, type ModalCloseProps, ModalContent, type ModalContentProps, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, ModalOverlay, type ModalOverlayProps, ModalRoot, type ModalRootProps, ModalTitle, type ModalTitleProps, ModalTrigger, type ModalTriggerProps, NotificationCenter, NotificationCenterDismissAll, type NotificationCenterDismissAllProps, NotificationCenterGroupHeader, type NotificationCenterGroupHeaderProps, NotificationCenterItem, type NotificationCenterItemProps, NotificationCenterList, type NotificationCenterListProps, NotificationCenterPanel, type NotificationCenterPanelProps, NotificationCenterProvider, type NotificationCenterProviderProps, NotificationCenterTrigger, type NotificationCenterTriggerProps, type NotificationChannel, type NotificationContextType, type NotificationData, type NotificationOptions, type NotificationVariant, Pagination, type PaginationEllipsisProps, type PaginationItemProps, type PaginationNextProps, type PaginationPrevProps, type PaginationRootProps, Portal, type PortalProps, Progress, type ProgressProps, PromoCard, type PromoCardProps, type PromoCardSize, type PromoCardVariant, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Responsive, Row, type RowProps, Section, type SectionProps, SegmentedControl, type SegmentedControlItemProps, type SegmentedControlRootProps, Select, SelectContent, type SelectContentProps, SelectGroup, type SelectGroupProps, SelectIcon, type SelectIconProps, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectLabel, type SelectLabelProps, SelectRoot, type SelectRootProps, SelectSeparator, type SelectSeparatorProps, type SelectSize, type SelectState, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, SelectViewport, type SelectViewportProps, type SelectWidth, Skeleton, type SkeletonProps, type SortDirection, type SortState, Stack, type StackProps, Stepper, type StepperContentProps, type StepperIndicatorProps, type StepperItemProps, type StepperLabelProps, type StepperRootProps, type StepperStep, Surface, type SurfaceProps, TableRoot as Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, type TableColumn, type TableContextValue, TableEmpty, type TableEmptyProps, TableExpandableContent, type TableExpandableContentProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TableLoadingState, type TableLoadingStateProps, TableRoot, type TableRootProps, TableRow, type TableRowProps, TableSortIcon, type TableSortIconProps, Tabs, type TabsContentProps, type TabsListProps, type TabsRootProps, type TabsTriggerProps, Text, type TextProps, type TextSize, type TextWeight, Textarea, type TextareaProps, type TicketAvailability, TicketCard, type TicketCardProps, type TicketCardSize, type TicketCardVariant, Toast, ToastAction, type ToastData, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, ToastViewport, type ToastViewportProps, Toaster, alertVariants, buttonVariants, checkboxVariants, surfaceVariants as containerSurfaceVariants, headingVariants, iconVariants, inputVariants, labelVariants, radioVariants, segmentedControlItemVariants, segmentedControlRootVariants, skeletonVariants, surfaceVariants, textVariants, textareaVariants, useNotificationCenter, useNotificationCenterContext, useTableContext, useToast };
|