@tenerife.music/ui 1.0.16 → 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/dist/{index-DPWxsWs3.d.cts → index-Cj8oRSOc.d.cts} +2 -156
- package/dist/{index-DPWxsWs3.d.ts → index-Cj8oRSOc.d.ts} +2 -156
- package/dist/index.cjs +4251 -6733
- package/dist/index.d.cts +1154 -1479
- package/dist/index.d.ts +1154 -1479
- package/dist/index.mjs +4263 -6719
- package/dist/preset.cjs +6 -6
- package/dist/preset.mjs +6 -6
- package/dist/styles.css +10 -150
- package/dist/theme/index.cjs +1306 -1306
- package/dist/theme/index.mjs +1306 -1306
- package/dist/tokens/index.cjs +32 -222
- package/dist/tokens/index.d.cts +1 -1
- package/dist/tokens/index.d.ts +1 -1
- package/dist/tokens/index.mjs +33 -222
- package/package.json +50 -41
package/dist/index.d.cts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ALERT_TOKENS,
|
|
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.cjs';
|
|
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.cjs';
|
|
3
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-.cjs';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import * as React$1 from 'react';
|
|
6
|
-
import { ReactNode } from 'react';
|
|
6
|
+
import React__default, { ReactNode } from 'react';
|
|
7
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
17
|
/**
|
|
@@ -27,8 +27,8 @@ import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* ```typescript
|
|
30
|
-
* import { tokenCVA } from "@/lib/token-cva";
|
|
31
|
-
* import { BUTTON_TOKENS } from "@/tokens/components/button";
|
|
30
|
+
* import { tokenCVA } from "@/FOUNDATION/lib/token-cva";
|
|
31
|
+
* import { BUTTON_TOKENS } from "@/FOUNDATION/tokens/components/button";
|
|
32
32
|
*
|
|
33
33
|
* const buttonVariants = tokenCVA({
|
|
34
34
|
* base: `${BUTTON_TOKENS.gap} ${BUTTON_TOKENS.radius}`,
|
|
@@ -194,52 +194,6 @@ interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
|
|
|
194
194
|
}
|
|
195
195
|
declare const Alert: React$1.ForwardRefExoticComponent<AlertProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
196
196
|
|
|
197
|
-
declare const bodyVariants: (props?: ({
|
|
198
|
-
size?: "md" | "lg" | null | undefined;
|
|
199
|
-
weight?: "normal" | "medium" | "semibold" | "bold" | null | undefined;
|
|
200
|
-
muted?: boolean | null | undefined;
|
|
201
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
202
|
-
interface BodyProps extends React$1.HTMLAttributes<HTMLParagraphElement>, VariantProps$1<typeof bodyVariants> {
|
|
203
|
-
as?: "p" | "span" | "div";
|
|
204
|
-
}
|
|
205
|
-
declare const Body: React$1.ForwardRefExoticComponent<BodyProps & React$1.RefAttributes<HTMLElement>>;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Caption component variants
|
|
209
|
-
*
|
|
210
|
-
* Note: fontSize, lineHeight, and letterSpacing are intentionally fixed in the base class
|
|
211
|
-
* rather than variants, as Caption always uses a consistent small size (xs) with tight
|
|
212
|
-
* line height and wide letter spacing. This design decision ensures caption text maintains
|
|
213
|
-
* its distinctive appearance across all use cases.
|
|
214
|
-
*/
|
|
215
|
-
declare const captionVariants: (props?: ({
|
|
216
|
-
weight?: "normal" | "medium" | null | undefined;
|
|
217
|
-
muted?: boolean | null | undefined;
|
|
218
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
219
|
-
interface CaptionProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps$1<typeof captionVariants> {
|
|
220
|
-
as?: "span" | "p" | "div";
|
|
221
|
-
}
|
|
222
|
-
declare const Caption: React$1.ForwardRefExoticComponent<CaptionProps & React$1.RefAttributes<HTMLElement>>;
|
|
223
|
-
|
|
224
|
-
declare const codeVariants: (props?: ({
|
|
225
|
-
variant?: "block" | "inline" | null | undefined;
|
|
226
|
-
muted?: boolean | null | undefined;
|
|
227
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
228
|
-
interface CodeProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps$1<typeof codeVariants> {
|
|
229
|
-
as?: "code" | "pre";
|
|
230
|
-
}
|
|
231
|
-
declare const Code: React$1.ForwardRefExoticComponent<CodeProps & React$1.RefAttributes<HTMLElement>>;
|
|
232
|
-
|
|
233
|
-
declare const displayVariants: (props?: ({
|
|
234
|
-
size?: "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
235
|
-
weight?: "normal" | "medium" | "semibold" | "bold" | null | undefined;
|
|
236
|
-
muted?: boolean | null | undefined;
|
|
237
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
238
|
-
interface DisplayProps extends React$1.HTMLAttributes<HTMLHeadingElement>, VariantProps$1<typeof displayVariants> {
|
|
239
|
-
as?: "h1" | "h2" | "div";
|
|
240
|
-
}
|
|
241
|
-
declare const Display: React$1.ForwardRefExoticComponent<DisplayProps & React$1.RefAttributes<HTMLElement>>;
|
|
242
|
-
|
|
243
197
|
declare const headingVariants: (props?: ({
|
|
244
198
|
level?: 1 | 2 | 4 | 6 | 3 | 5 | null | undefined;
|
|
245
199
|
weight?: "normal" | "medium" | "semibold" | "bold" | null | undefined;
|
|
@@ -250,15 +204,6 @@ interface HeadingProps extends React$1.HTMLAttributes<HTMLHeadingElement>, Varia
|
|
|
250
204
|
}
|
|
251
205
|
declare const Heading: React$1.ForwardRefExoticComponent<HeadingProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
252
206
|
|
|
253
|
-
declare const leadVariants: (props?: ({
|
|
254
|
-
size?: "lg" | "xl" | null | undefined;
|
|
255
|
-
muted?: boolean | null | undefined;
|
|
256
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
257
|
-
interface LeadProps extends React$1.HTMLAttributes<HTMLParagraphElement>, VariantProps$1<typeof leadVariants> {
|
|
258
|
-
as?: "p" | "span" | "div";
|
|
259
|
-
}
|
|
260
|
-
declare const Lead: React$1.ForwardRefExoticComponent<LeadProps & React$1.RefAttributes<HTMLElement>>;
|
|
261
|
-
|
|
262
207
|
interface SelectRootProps extends React$1.ComponentPropsWithoutRef<typeof SelectPrimitive.Root> {
|
|
263
208
|
}
|
|
264
209
|
/**
|
|
@@ -667,6 +612,57 @@ interface CheckboxProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
667
612
|
*/
|
|
668
613
|
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
669
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
|
+
|
|
670
666
|
/**
|
|
671
667
|
* Input Variants
|
|
672
668
|
*
|
|
@@ -992,56 +988,34 @@ interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaEleme
|
|
|
992
988
|
*/
|
|
993
989
|
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
994
990
|
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
*/
|
|
1000
|
-
required?: boolean;
|
|
991
|
+
interface ProgressProps {
|
|
992
|
+
value: number;
|
|
993
|
+
max?: number;
|
|
994
|
+
className?: string;
|
|
1001
995
|
}
|
|
1002
|
-
declare const
|
|
996
|
+
declare const Progress: React__default.FC<ProgressProps>;
|
|
1003
997
|
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
* Wraps Label component with proper styling
|
|
1014
|
-
*/
|
|
1015
|
-
interface FieldLabelProps extends React$1.ComponentProps<typeof Label> {
|
|
1016
|
-
}
|
|
1017
|
-
declare const FieldLabel: React$1.ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
1018
|
-
/**
|
|
1019
|
-
* Field Control Component
|
|
1020
|
-
* Wrapper for input/textarea/select controls
|
|
1021
|
-
*/
|
|
1022
|
-
interface FieldControlProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1023
|
-
}
|
|
1024
|
-
declare const FieldControl: React$1.ForwardRefExoticComponent<FieldControlProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1025
|
-
/**
|
|
1026
|
-
* Field Description Component
|
|
1027
|
-
* Helper text displayed below the control
|
|
1028
|
-
*/
|
|
1029
|
-
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;
|
|
1030
1007
|
}
|
|
1031
|
-
declare const FieldDescription: React$1.ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1032
1008
|
/**
|
|
1033
|
-
*
|
|
1034
|
-
*
|
|
1009
|
+
* Skeleton component for loading states
|
|
1010
|
+
*
|
|
1011
|
+
* @example
|
|
1012
|
+
* ```tsx
|
|
1013
|
+
* <Skeleton variant="text" />
|
|
1014
|
+
* <Skeleton variant="circle" />
|
|
1015
|
+
* <Skeleton variant="card" />
|
|
1016
|
+
* ```
|
|
1035
1017
|
*/
|
|
1036
|
-
|
|
1037
|
-
}
|
|
1038
|
-
declare const FieldError: React$1.ForwardRefExoticComponent<Omit<FieldErrorProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1039
|
-
declare const FieldRoot: typeof Field & {
|
|
1040
|
-
Label: typeof FieldLabel;
|
|
1041
|
-
Control: typeof FieldControl;
|
|
1042
|
-
Description: typeof FieldDescription;
|
|
1043
|
-
Error: typeof FieldError;
|
|
1044
|
-
};
|
|
1018
|
+
declare const Skeleton: React$1.ForwardRefExoticComponent<SkeletonProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1045
1019
|
|
|
1046
1020
|
/**
|
|
1047
1021
|
* Layout Primitives Shared Types
|
|
@@ -1121,10 +1095,6 @@ type ResponsiveRows = Responsive<RowValue>;
|
|
|
1121
1095
|
* Responsive flow prop type
|
|
1122
1096
|
*/
|
|
1123
1097
|
type ResponsiveFlow = Responsive<FlowValue>;
|
|
1124
|
-
/**
|
|
1125
|
-
* Surface variant values
|
|
1126
|
-
*/
|
|
1127
|
-
type SurfaceVariant = "flat" | "raised" | "sunken";
|
|
1128
1098
|
|
|
1129
1099
|
/**
|
|
1130
1100
|
* Box Primitive Component
|
|
@@ -1505,23 +1475,29 @@ interface RowProps extends Omit<StackProps, "direction"> {
|
|
|
1505
1475
|
*/
|
|
1506
1476
|
declare const Row: React$1.ForwardRefExoticComponent<RowProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1507
1477
|
|
|
1508
|
-
declare const surfaceVariants
|
|
1509
|
-
variant?: "flat" | "raised" | "sunken" | null | undefined;
|
|
1478
|
+
declare const surfaceVariants: (props?: ({
|
|
1479
|
+
variant?: "flat" | "raised" | "sunken" | "outline" | "subtle" | null | undefined;
|
|
1510
1480
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1511
|
-
interface SurfaceProps
|
|
1481
|
+
interface SurfaceProps extends Omit<BoxProps, "bg" | "shadow" | "radius" | "p">, VariantProps$1<typeof surfaceVariants> {
|
|
1512
1482
|
/**
|
|
1513
1483
|
* Surface variant
|
|
1514
1484
|
*/
|
|
1515
|
-
variant?:
|
|
1485
|
+
variant?: "flat" | "raised" | "sunken" | "outline" | "subtle";
|
|
1516
1486
|
/**
|
|
1517
|
-
*
|
|
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
|
|
1518
1494
|
*/
|
|
1519
|
-
radius?:
|
|
1495
|
+
radius?: ResponsiveRadius;
|
|
1520
1496
|
}
|
|
1521
1497
|
/**
|
|
1522
|
-
* Surface component - elevation variant
|
|
1498
|
+
* Surface component - elevation variant container
|
|
1523
1499
|
*/
|
|
1524
|
-
declare const Surface
|
|
1500
|
+
declare const Surface: React$1.ForwardRefExoticComponent<SurfaceProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1525
1501
|
|
|
1526
1502
|
/**
|
|
1527
1503
|
* Card Container Component
|
|
@@ -1630,30 +1606,6 @@ interface SectionProps extends Omit<StackProps, "py" | "gap"> {
|
|
|
1630
1606
|
*/
|
|
1631
1607
|
declare const Section: React$1.ForwardRefExoticComponent<SectionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1632
1608
|
|
|
1633
|
-
declare const surfaceVariants: (props?: ({
|
|
1634
|
-
variant?: "flat" | "raised" | "sunken" | "outline" | "subtle" | null | undefined;
|
|
1635
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1636
|
-
interface SurfaceProps extends Omit<BoxProps, "bg" | "shadow" | "radius" | "p">, VariantProps$1<typeof surfaceVariants> {
|
|
1637
|
-
/**
|
|
1638
|
-
* Surface variant
|
|
1639
|
-
*/
|
|
1640
|
-
variant?: "flat" | "raised" | "sunken" | "outline" | "subtle";
|
|
1641
|
-
/**
|
|
1642
|
-
* Padding - token-based (sm, md, lg, xl)
|
|
1643
|
-
* Overrides default variant padding
|
|
1644
|
-
*/
|
|
1645
|
-
p?: ResponsiveSpacing;
|
|
1646
|
-
/**
|
|
1647
|
-
* Border radius - token-based (sm, md, lg, xl, 2xl, 3xl, full)
|
|
1648
|
-
* Overrides default variant radius
|
|
1649
|
-
*/
|
|
1650
|
-
radius?: ResponsiveRadius;
|
|
1651
|
-
}
|
|
1652
|
-
/**
|
|
1653
|
-
* Surface component - elevation variant container
|
|
1654
|
-
*/
|
|
1655
|
-
declare const Surface: React$1.ForwardRefExoticComponent<SurfaceProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1656
|
-
|
|
1657
1609
|
/**
|
|
1658
1610
|
* Portal Component
|
|
1659
1611
|
*
|
|
@@ -1906,23 +1858,308 @@ declare function ToastProvider({ children, position, swipeDirection, duration, }
|
|
|
1906
1858
|
*/
|
|
1907
1859
|
declare function useToast(): ToastContextType;
|
|
1908
1860
|
|
|
1861
|
+
declare function Toaster(): react_jsx_runtime.JSX.Element;
|
|
1862
|
+
|
|
1909
1863
|
/**
|
|
1910
|
-
*
|
|
1864
|
+
* ============================================================================
|
|
1865
|
+
* 🔒 FOUNDATION LOCK - ContextMenu Component
|
|
1866
|
+
* ============================================================================
|
|
1911
1867
|
*
|
|
1912
|
-
*
|
|
1913
|
-
*
|
|
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.
|
|
1914
1912
|
*/
|
|
1915
1913
|
|
|
1916
|
-
|
|
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"> {
|
|
1917
1929
|
/**
|
|
1918
|
-
*
|
|
1930
|
+
* Size variant - token-based
|
|
1919
1931
|
*/
|
|
1920
|
-
|
|
1932
|
+
size?: ResponsiveContextMenuSize;
|
|
1921
1933
|
/**
|
|
1922
|
-
*
|
|
1934
|
+
* Width - token-based
|
|
1923
1935
|
*/
|
|
1924
|
-
|
|
1925
|
-
|
|
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;
|
|
1949
|
+
}
|
|
1950
|
+
/**
|
|
1951
|
+
* ContextMenu Content component
|
|
1952
|
+
* Wrapper around Radix ContextMenu Content with token-based styling.
|
|
1953
|
+
*/
|
|
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;
|
|
1957
|
+
/**
|
|
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.
|
|
1964
|
+
*/
|
|
1965
|
+
size?: ResponsiveContextMenuSize;
|
|
1966
|
+
/**
|
|
1967
|
+
* Tone variant - token-based
|
|
1968
|
+
*/
|
|
1969
|
+
tone?: ContextMenuItemToneToken;
|
|
1970
|
+
/**
|
|
1971
|
+
* Gap between item content - token-based
|
|
1972
|
+
*/
|
|
1973
|
+
gap?: ResponsiveSpace;
|
|
1974
|
+
/**
|
|
1975
|
+
* Inset padding for item
|
|
1976
|
+
*/
|
|
1977
|
+
inset?: boolean;
|
|
1978
|
+
}
|
|
1979
|
+
/**
|
|
1980
|
+
* ContextMenu Item component
|
|
1981
|
+
* Wrapper around Radix ContextMenu Item with token-based styling.
|
|
1982
|
+
*/
|
|
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
|
+
}
|
|
1999
|
+
/**
|
|
2000
|
+
* ContextMenu CheckboxItem component
|
|
2001
|
+
* Wrapper around Radix ContextMenu CheckboxItem with token-based styling.
|
|
2002
|
+
*/
|
|
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
|
+
}
|
|
2007
|
+
/**
|
|
2008
|
+
* ContextMenu RadioGroup component
|
|
2009
|
+
* Wrapper around Radix ContextMenu RadioGroup.
|
|
2010
|
+
*/
|
|
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;
|
|
2014
|
+
/**
|
|
2015
|
+
* Size variant - token-based
|
|
2016
|
+
*/
|
|
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;
|
|
2026
|
+
}
|
|
2027
|
+
/**
|
|
2028
|
+
* ContextMenu RadioItem component
|
|
2029
|
+
* Wrapper around Radix ContextMenu RadioItem with token-based styling.
|
|
2030
|
+
*/
|
|
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;
|
|
2042
|
+
/**
|
|
2043
|
+
* Padding - token-based
|
|
2044
|
+
*/
|
|
2045
|
+
padding?: ResponsiveSpace;
|
|
2046
|
+
}
|
|
2047
|
+
/**
|
|
2048
|
+
* ContextMenu Label component
|
|
2049
|
+
* Wrapper around Radix ContextMenu Label with token-based styling.
|
|
2050
|
+
*/
|
|
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
|
+
}
|
|
2055
|
+
/**
|
|
2056
|
+
* ContextMenu Sub component
|
|
2057
|
+
* Wrapper around Radix ContextMenu Sub.
|
|
2058
|
+
*/
|
|
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;
|
|
2062
|
+
/**
|
|
2063
|
+
* Size variant - token-based
|
|
2064
|
+
*/
|
|
2065
|
+
size?: ResponsiveContextMenuSize;
|
|
2066
|
+
/**
|
|
2067
|
+
* Tone variant - token-based
|
|
2068
|
+
*/
|
|
2069
|
+
tone?: ContextMenuItemToneToken;
|
|
2070
|
+
/**
|
|
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
|
+
}
|
|
1926
2163
|
/**
|
|
1927
2164
|
* NotificationCenter.DismissAll component - clear all notifications button
|
|
1928
2165
|
*/
|
|
@@ -2229,50 +2466,45 @@ declare const NotificationCenter: {
|
|
|
2229
2466
|
DismissAll: React$1.ForwardRefExoticComponent<NotificationCenterDismissAllProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2230
2467
|
};
|
|
2231
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
|
+
|
|
2232
2477
|
/**
|
|
2233
|
-
*
|
|
2478
|
+
* HoverCard Content Component
|
|
2234
2479
|
*
|
|
2235
|
-
*
|
|
2236
|
-
*
|
|
2480
|
+
* Content container for HoverCard.
|
|
2481
|
+
* Wraps PopoverContent with hover-specific behavior.
|
|
2237
2482
|
*/
|
|
2238
2483
|
|
|
2239
|
-
interface
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
*/
|
|
2243
|
-
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>;
|
|
2244
2487
|
}
|
|
2245
2488
|
/**
|
|
2246
|
-
*
|
|
2489
|
+
* HoverCard Content component
|
|
2247
2490
|
*/
|
|
2248
|
-
declare const
|
|
2491
|
+
declare const HoverCardContent: React$1.ForwardRefExoticComponent<HoverCardContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2249
2492
|
|
|
2250
|
-
|
|
2251
|
-
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
2252
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2253
|
-
interface PopoverContentProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onAnimationEnd">, VariantProps$1<typeof popoverContentVariants> {
|
|
2254
|
-
/**
|
|
2255
|
-
* Placement preference
|
|
2256
|
-
*/
|
|
2257
|
-
placement?: Placement;
|
|
2493
|
+
interface HoverCardRootProps {
|
|
2258
2494
|
/**
|
|
2259
|
-
*
|
|
2260
|
-
* Uses
|
|
2495
|
+
* Delay before opening - token-based
|
|
2496
|
+
* Uses motion duration tokens
|
|
2497
|
+
* @default 0
|
|
2261
2498
|
*/
|
|
2262
|
-
|
|
2499
|
+
openDelay?: ResponsiveDelay;
|
|
2263
2500
|
/**
|
|
2264
|
-
*
|
|
2501
|
+
* Delay before closing - token-based
|
|
2502
|
+
* Uses motion duration tokens
|
|
2503
|
+
* @default 300
|
|
2265
2504
|
*/
|
|
2266
|
-
|
|
2267
|
-
}
|
|
2268
|
-
/**
|
|
2269
|
-
* Popover Content component
|
|
2270
|
-
*/
|
|
2271
|
-
declare const PopoverContent: React$1.ForwardRefExoticComponent<PopoverContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2272
|
-
|
|
2273
|
-
interface PopoverRootProps {
|
|
2505
|
+
closeDelay?: ResponsiveDelay;
|
|
2274
2506
|
/**
|
|
2275
|
-
* Whether the
|
|
2507
|
+
* Whether the hover card is open (controlled mode)
|
|
2276
2508
|
*/
|
|
2277
2509
|
open?: boolean;
|
|
2278
2510
|
/**
|
|
@@ -2284,7 +2516,7 @@ interface PopoverRootProps {
|
|
|
2284
2516
|
*/
|
|
2285
2517
|
defaultOpen?: boolean;
|
|
2286
2518
|
/**
|
|
2287
|
-
* Whether the
|
|
2519
|
+
* Whether the hover card is modal (blocks interaction with other elements)
|
|
2288
2520
|
*/
|
|
2289
2521
|
modal?: boolean;
|
|
2290
2522
|
/**
|
|
@@ -2293,696 +2525,29 @@ interface PopoverRootProps {
|
|
|
2293
2525
|
children: React$1.ReactNode;
|
|
2294
2526
|
}
|
|
2295
2527
|
/**
|
|
2296
|
-
*
|
|
2528
|
+
* HoverCard Root component
|
|
2297
2529
|
*/
|
|
2298
|
-
declare function
|
|
2299
|
-
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 {
|
|
2300
2532
|
var displayName: string;
|
|
2301
2533
|
}
|
|
2302
2534
|
|
|
2303
2535
|
/**
|
|
2304
|
-
*
|
|
2536
|
+
* HoverCard Trigger Component
|
|
2305
2537
|
*
|
|
2306
|
-
* Trigger element that opens
|
|
2307
|
-
* Supports asChild pattern for composition.
|
|
2308
|
-
*/
|
|
2309
|
-
|
|
2310
|
-
interface PopoverTriggerProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2311
|
-
/**
|
|
2312
|
-
* Render as child element (composition pattern)
|
|
2313
|
-
*/
|
|
2314
|
-
asChild?: boolean;
|
|
2315
|
-
}
|
|
2316
|
-
/**
|
|
2317
|
-
* Popover Trigger component
|
|
2318
|
-
*/
|
|
2319
|
-
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverTriggerProps & React$1.RefAttributes<HTMLElement>>;
|
|
2320
|
-
|
|
2321
|
-
/**
|
|
2322
|
-
* DropdownMenu Item Component
|
|
2323
|
-
*
|
|
2324
|
-
* Menu item with keyboard navigation support (roving tabindex).
|
|
2325
|
-
* Uses MENU_TOKENS for styling.
|
|
2326
|
-
*/
|
|
2327
|
-
|
|
2328
|
-
interface DropdownMenuItemProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onSelect"> {
|
|
2329
|
-
/**
|
|
2330
|
-
* Whether the item is disabled
|
|
2331
|
-
*/
|
|
2332
|
-
disabled?: boolean;
|
|
2333
|
-
/**
|
|
2334
|
-
* Whether the item is selected
|
|
2335
|
-
*/
|
|
2336
|
-
selected?: boolean;
|
|
2337
|
-
/**
|
|
2338
|
-
* Callback when item is selected
|
|
2339
|
-
* Receives native Event (not SyntheticEvent)
|
|
2340
|
-
*/
|
|
2341
|
-
onSelect?: (event: Event) => void;
|
|
2342
|
-
/**
|
|
2343
|
-
* Whether item has inset padding (for nested items)
|
|
2344
|
-
*/
|
|
2345
|
-
inset?: boolean;
|
|
2346
|
-
}
|
|
2347
|
-
/**
|
|
2348
|
-
* DropdownMenu Item component
|
|
2349
|
-
*/
|
|
2350
|
-
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2351
|
-
|
|
2352
|
-
/**
|
|
2353
|
-
* DropdownMenu CheckItem Component
|
|
2354
|
-
*
|
|
2355
|
-
* Menu item with checkbox indicator.
|
|
2356
|
-
* Uses MENU_TOKENS for styling.
|
|
2357
|
-
*/
|
|
2358
|
-
|
|
2359
|
-
interface DropdownMenuCheckItemProps extends Omit<DropdownMenuItemProps, "selected"> {
|
|
2360
|
-
/**
|
|
2361
|
-
* Whether the item is checked
|
|
2362
|
-
*/
|
|
2363
|
-
checked?: boolean;
|
|
2364
|
-
}
|
|
2365
|
-
/**
|
|
2366
|
-
* DropdownMenu CheckItem component
|
|
2367
|
-
*/
|
|
2368
|
-
declare const DropdownMenuCheckItem: React$1.ForwardRefExoticComponent<DropdownMenuCheckItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2369
|
-
|
|
2370
|
-
/**
|
|
2371
|
-
* DropdownMenu Content Component
|
|
2372
|
-
*
|
|
2373
|
-
* Content container for dropdown menu.
|
|
2374
|
-
* Wraps PopoverContent with menu-specific styling and role.
|
|
2375
|
-
* Handles keyboard navigation (Arrow keys, Home/End, Escape).
|
|
2376
|
-
*/
|
|
2377
|
-
|
|
2378
|
-
interface DropdownMenuContentProps extends PopoverContentProps {
|
|
2379
|
-
}
|
|
2380
|
-
/**
|
|
2381
|
-
* DropdownMenu Content component
|
|
2382
|
-
*/
|
|
2383
|
-
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2384
|
-
|
|
2385
|
-
/**
|
|
2386
|
-
* DropdownMenu Group Component
|
|
2387
|
-
*
|
|
2388
|
-
* Group container for related menu items.
|
|
2389
|
-
*/
|
|
2390
|
-
|
|
2391
|
-
interface DropdownMenuGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2392
|
-
}
|
|
2393
|
-
/**
|
|
2394
|
-
* DropdownMenu Group component
|
|
2395
|
-
*/
|
|
2396
|
-
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2397
|
-
|
|
2398
|
-
/**
|
|
2399
|
-
* DropdownMenu Label Component
|
|
2400
|
-
*
|
|
2401
|
-
* Label/section header for menu items.
|
|
2402
|
-
* Uses MENU_TOKENS for styling.
|
|
2403
|
-
*/
|
|
2404
|
-
|
|
2405
|
-
interface DropdownMenuLabelProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2406
|
-
/**
|
|
2407
|
-
* Whether label has inset padding (for nested items)
|
|
2408
|
-
*/
|
|
2409
|
-
inset?: boolean;
|
|
2410
|
-
}
|
|
2411
|
-
/**
|
|
2412
|
-
* DropdownMenu Label component
|
|
2413
|
-
*/
|
|
2414
|
-
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2415
|
-
|
|
2416
|
-
/**
|
|
2417
|
-
* DropdownMenu RadioGroup Component
|
|
2418
|
-
*
|
|
2419
|
-
* Radio group container for radio menu items.
|
|
2420
|
-
*/
|
|
2421
|
-
|
|
2422
|
-
interface DropdownMenuRadioGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2423
|
-
/**
|
|
2424
|
-
* Selected value
|
|
2425
|
-
*/
|
|
2426
|
-
value?: string;
|
|
2427
|
-
/**
|
|
2428
|
-
* Callback when value changes
|
|
2429
|
-
*/
|
|
2430
|
-
onValueChange?: (value: string) => void;
|
|
2431
|
-
}
|
|
2432
|
-
/**
|
|
2433
|
-
* DropdownMenu RadioGroup component
|
|
2434
|
-
*/
|
|
2435
|
-
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2436
|
-
|
|
2437
|
-
/**
|
|
2438
|
-
* DropdownMenu RadioItem Component
|
|
2439
|
-
*
|
|
2440
|
-
* Menu item with radio indicator.
|
|
2441
|
-
* Uses MENU_TOKENS for styling.
|
|
2442
|
-
*/
|
|
2443
|
-
|
|
2444
|
-
interface DropdownMenuRadioItemProps extends Omit<DropdownMenuItemProps, "selected"> {
|
|
2445
|
-
/**
|
|
2446
|
-
* Radio item value
|
|
2447
|
-
*/
|
|
2448
|
-
value: string;
|
|
2449
|
-
}
|
|
2450
|
-
/**
|
|
2451
|
-
* DropdownMenu RadioItem component
|
|
2452
|
-
*/
|
|
2453
|
-
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2454
|
-
|
|
2455
|
-
interface DropdownMenuRootProps extends PopoverRootProps {
|
|
2456
|
-
}
|
|
2457
|
-
/**
|
|
2458
|
-
* DropdownMenu Root component
|
|
2459
|
-
*/
|
|
2460
|
-
declare function DropdownMenuRoot(props: DropdownMenuRootProps): react_jsx_runtime.JSX.Element;
|
|
2461
|
-
declare namespace DropdownMenuRoot {
|
|
2462
|
-
var displayName: string;
|
|
2463
|
-
}
|
|
2464
|
-
|
|
2465
|
-
/**
|
|
2466
|
-
* DropdownMenu Separator Component
|
|
2467
|
-
*
|
|
2468
|
-
* Visual separator between menu items.
|
|
2469
|
-
* Uses MENU_TOKENS for styling.
|
|
2470
|
-
*/
|
|
2471
|
-
|
|
2472
|
-
interface DropdownMenuSeparatorProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2473
|
-
}
|
|
2474
|
-
/**
|
|
2475
|
-
* DropdownMenu Separator component
|
|
2476
|
-
*/
|
|
2477
|
-
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2478
|
-
|
|
2479
|
-
interface DropdownMenuSubProps extends PopoverRootProps {
|
|
2480
|
-
}
|
|
2481
|
-
/**
|
|
2482
|
-
* DropdownMenu Sub component
|
|
2483
|
-
*/
|
|
2484
|
-
declare function DropdownMenuSub(props: DropdownMenuSubProps): react_jsx_runtime.JSX.Element;
|
|
2485
|
-
declare namespace DropdownMenuSub {
|
|
2486
|
-
var displayName: string;
|
|
2487
|
-
}
|
|
2488
|
-
|
|
2489
|
-
/**
|
|
2490
|
-
* DropdownMenu SubContent Component
|
|
2491
|
-
*
|
|
2492
|
-
* Content container for submenu.
|
|
2493
|
-
*/
|
|
2494
|
-
|
|
2495
|
-
interface DropdownMenuSubContentProps extends DropdownMenuContentProps {
|
|
2496
|
-
}
|
|
2497
|
-
/**
|
|
2498
|
-
* DropdownMenu SubContent component
|
|
2499
|
-
*/
|
|
2500
|
-
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2501
|
-
|
|
2502
|
-
/**
|
|
2503
|
-
* DropdownMenu SubTrigger Component
|
|
2504
|
-
*
|
|
2505
|
-
* Trigger for submenu items.
|
|
2506
|
-
*/
|
|
2507
|
-
|
|
2508
|
-
interface DropdownMenuSubTriggerProps extends DropdownMenuItemProps {
|
|
2509
|
-
}
|
|
2510
|
-
/**
|
|
2511
|
-
* DropdownMenu SubTrigger component
|
|
2512
|
-
*/
|
|
2513
|
-
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2514
|
-
|
|
2515
|
-
/**
|
|
2516
|
-
* DropdownMenu Trigger Component
|
|
2517
|
-
*
|
|
2518
|
-
* Trigger element for dropdown menu.
|
|
2519
|
-
* Wraps PopoverTrigger with menu-specific ARIA attributes.
|
|
2520
|
-
*/
|
|
2521
|
-
|
|
2522
|
-
interface DropdownMenuTriggerProps extends PopoverTriggerProps {
|
|
2523
|
-
}
|
|
2524
|
-
/**
|
|
2525
|
-
* DropdownMenu Trigger component
|
|
2526
|
-
*/
|
|
2527
|
-
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuTriggerProps & React$1.RefAttributes<HTMLElement>>;
|
|
2528
|
-
|
|
2529
|
-
/**
|
|
2530
|
-
* HoverCard Content Component
|
|
2531
|
-
*
|
|
2532
|
-
* Content container for HoverCard.
|
|
2533
|
-
* Wraps PopoverContent with hover-specific behavior.
|
|
2534
|
-
*/
|
|
2535
|
-
|
|
2536
|
-
interface HoverCardContentProps extends PopoverContentProps {
|
|
2537
|
-
}
|
|
2538
|
-
/**
|
|
2539
|
-
* HoverCard Content component
|
|
2540
|
-
*/
|
|
2541
|
-
declare const HoverCardContent: React$1.ForwardRefExoticComponent<HoverCardContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2542
|
-
|
|
2543
|
-
interface HoverCardRootProps extends Omit<PopoverRootProps, "open" | "onOpenChange"> {
|
|
2544
|
-
/**
|
|
2545
|
-
* Delay before opening - token-based
|
|
2546
|
-
* Uses motion duration tokens
|
|
2547
|
-
* @default 0
|
|
2548
|
-
*/
|
|
2549
|
-
openDelay?: ResponsiveDelay;
|
|
2550
|
-
/**
|
|
2551
|
-
* Delay before closing - token-based
|
|
2552
|
-
* Uses motion duration tokens
|
|
2553
|
-
* @default 300
|
|
2554
|
-
*/
|
|
2555
|
-
closeDelay?: ResponsiveDelay;
|
|
2556
|
-
}
|
|
2557
|
-
/**
|
|
2558
|
-
* HoverCard Root component
|
|
2559
|
-
*/
|
|
2560
|
-
declare function HoverCardRoot({ openDelay, closeDelay, defaultOpen, ...props }: HoverCardRootProps): react_jsx_runtime.JSX.Element;
|
|
2561
|
-
declare namespace HoverCardRoot {
|
|
2562
|
-
var displayName: string;
|
|
2563
|
-
}
|
|
2564
|
-
|
|
2565
|
-
/**
|
|
2566
|
-
* HoverCard Trigger Component
|
|
2567
|
-
*
|
|
2568
|
-
* Trigger element that opens HoverCard on hover/focus.
|
|
2569
|
-
*/
|
|
2570
|
-
|
|
2571
|
-
interface HoverCardTriggerProps extends PopoverTriggerProps {
|
|
2572
|
-
}
|
|
2573
|
-
/**
|
|
2574
|
-
* HoverCard Trigger component
|
|
2575
|
-
*/
|
|
2576
|
-
declare const HoverCardTrigger: React$1.ForwardRefExoticComponent<HoverCardTriggerProps & React$1.RefAttributes<HTMLElement>>;
|
|
2577
|
-
|
|
2578
|
-
/**
|
|
2579
|
-
* ============================================================================
|
|
2580
|
-
* 🔒 FOUNDATION LOCK - ContextMenu Component
|
|
2581
|
-
* ============================================================================
|
|
2582
|
-
*
|
|
2583
|
-
* This component is LOCKED as part of the UI Foundation Layer.
|
|
2584
|
-
*
|
|
2585
|
-
* **ARCHITECTURE LOCK DOCUMENTATION:**
|
|
2586
|
-
* See: docs/architecture/TUI_ARCHITECTURE_LOCK.md
|
|
2587
|
-
*
|
|
2588
|
-
* This component must not be modified except for critical bug fixes.
|
|
2589
|
-
* All architectural decisions are final. Museum-grade quality achieved.
|
|
2590
|
-
*
|
|
2591
|
-
* LOCKED STATUS:
|
|
2592
|
-
* - Component: ContextMenu (Radix ContextMenu wrapper)
|
|
2593
|
-
* - Category: Menus (Foundation Layer)
|
|
2594
|
-
* - Lock Date: 2025-12-12
|
|
2595
|
-
* - Status: ✅ LOCKED (FOUNDATION_LOCKED)
|
|
2596
|
-
*
|
|
2597
|
-
* ALLOWED CHANGES (Minimal, approval required):
|
|
2598
|
-
* - Critical bug fixes only (with explicit approval)
|
|
2599
|
-
* - Typing improvements (TypeScript only, no runtime changes)
|
|
2600
|
-
* - Token wiring improvements (connecting existing tokens, no new tokens)
|
|
2601
|
-
* - Stories/tests fixes (test updates only, no component changes)
|
|
2602
|
-
* - Documentation updates (comments, docs only)
|
|
2603
|
-
* - Code comments explaining intentional design decisions
|
|
2604
|
-
*
|
|
2605
|
-
* FORBIDDEN CHANGES (Strictly prohibited):
|
|
2606
|
-
* - ❌ New foundation components or subcomponents
|
|
2607
|
-
* - ❌ Duplicate component implementations
|
|
2608
|
-
* - ❌ Custom behavior that Radix ContextMenu should handle
|
|
2609
|
-
* - ❌ String/number visual props (must use tokens only)
|
|
2610
|
-
* - ❌ Re-implementing focus/keyboard/aria/portal logic
|
|
2611
|
-
* - ❌ Breaking API changes
|
|
2612
|
-
* - ❌ Behavioral rewrites or custom logic additions
|
|
2613
|
-
* - ❌ Token system modifications (additions/removals)
|
|
2614
|
-
* - ❌ Style modifications beyond token wiring
|
|
2615
|
-
* - ❌ New props that change component behavior
|
|
2616
|
-
*
|
|
2617
|
-
* **If you believe changes are necessary, review TUI_ARCHITECTURE_LOCK.md first.**
|
|
2618
|
-
*
|
|
2619
|
-
* ============================================================================
|
|
2620
|
-
*
|
|
2621
|
-
* ContextMenu Component
|
|
2622
|
-
*
|
|
2623
|
-
* Radix-based context menu component with token-driven styling.
|
|
2624
|
-
* All behavior (pointer, keyboard, focus, ARIA, positioning, collision handling)
|
|
2625
|
-
* is handled by Radix ContextMenu. Tenerife UI provides visual styling through
|
|
2626
|
-
* tokens only. This is a strict wrapper pattern - no custom behavior logic.
|
|
2627
|
-
*/
|
|
2628
|
-
|
|
2629
|
-
type ContextMenuRootProps = React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Root>;
|
|
2630
|
-
/**
|
|
2631
|
-
* ContextMenu Root component
|
|
2632
|
-
* Radix Root is a context provider, not a DOM element, so it doesn't accept refs
|
|
2633
|
-
*/
|
|
2634
|
-
declare const ContextMenuRoot: React$1.FC<ContextMenuRootProps>;
|
|
2635
|
-
interface ContextMenuTriggerProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Trigger>, "children"> {
|
|
2636
|
-
children?: React$1.ReactNode;
|
|
2637
|
-
}
|
|
2638
|
-
/**
|
|
2639
|
-
* ContextMenu Trigger component
|
|
2640
|
-
* Radix handles right-click behavior automatically
|
|
2641
|
-
*/
|
|
2642
|
-
declare const ContextMenuTrigger: React$1.ForwardRefExoticComponent<ContextMenuTriggerProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2643
|
-
interface ContextMenuContentProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>, "size" | "width" | "padding" | "radius" | "surface"> {
|
|
2644
|
-
/**
|
|
2645
|
-
* Size variant - token-based
|
|
2646
|
-
*/
|
|
2647
|
-
size?: ResponsiveContextMenuSize;
|
|
2648
|
-
/**
|
|
2649
|
-
* Width - token-based
|
|
2650
|
-
*/
|
|
2651
|
-
width?: ResponsiveContextMenuWidth;
|
|
2652
|
-
/**
|
|
2653
|
-
* Padding - token-based
|
|
2654
|
-
*/
|
|
2655
|
-
padding?: ResponsiveSpace;
|
|
2656
|
-
/**
|
|
2657
|
-
* Radius - token-based
|
|
2658
|
-
*/
|
|
2659
|
-
radius?: RadiusToken;
|
|
2660
|
-
/**
|
|
2661
|
-
* Surface variant - token-based
|
|
2662
|
-
*/
|
|
2663
|
-
surface?: SurfaceToken;
|
|
2664
|
-
}
|
|
2665
|
-
/**
|
|
2666
|
-
* ContextMenu Content component
|
|
2667
|
-
* Wrapper around Radix ContextMenu Content with token-based styling.
|
|
2668
|
-
*/
|
|
2669
|
-
declare const ContextMenuContent: React$1.ForwardRefExoticComponent<ContextMenuContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2670
|
-
interface ContextMenuItemProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item>, "children"> {
|
|
2671
|
-
children?: React$1.ReactNode;
|
|
2672
|
-
/**
|
|
2673
|
-
* Size variant - token-based
|
|
2674
|
-
*
|
|
2675
|
-
* @default Inherited from ContextMenuContent
|
|
2676
|
-
* @note If not specified, the size is automatically inherited from the parent
|
|
2677
|
-
* ContextMenuContent. You can override this by providing an explicit size prop.
|
|
2678
|
-
* This allows you to set size once on Content and have all Items inherit it.
|
|
2679
|
-
*/
|
|
2680
|
-
size?: ResponsiveContextMenuSize;
|
|
2681
|
-
/**
|
|
2682
|
-
* Tone variant - token-based
|
|
2683
|
-
*/
|
|
2684
|
-
tone?: ContextMenuItemToneToken;
|
|
2685
|
-
/**
|
|
2686
|
-
* Gap between item content - token-based
|
|
2687
|
-
*/
|
|
2688
|
-
gap?: ResponsiveSpace;
|
|
2689
|
-
/**
|
|
2690
|
-
* Inset padding for item
|
|
2691
|
-
*/
|
|
2692
|
-
inset?: boolean;
|
|
2693
|
-
}
|
|
2694
|
-
/**
|
|
2695
|
-
* ContextMenu Item component
|
|
2696
|
-
* Wrapper around Radix ContextMenu Item with token-based styling.
|
|
2697
|
-
*/
|
|
2698
|
-
declare const ContextMenuItem: React$1.ForwardRefExoticComponent<ContextMenuItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2699
|
-
interface ContextMenuCheckboxItemProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>, "children"> {
|
|
2700
|
-
children?: React$1.ReactNode;
|
|
2701
|
-
/**
|
|
2702
|
-
* Size variant - token-based
|
|
2703
|
-
*/
|
|
2704
|
-
size?: ResponsiveContextMenuSize;
|
|
2705
|
-
/**
|
|
2706
|
-
* Tone variant - token-based
|
|
2707
|
-
*/
|
|
2708
|
-
tone?: ContextMenuItemToneToken;
|
|
2709
|
-
/**
|
|
2710
|
-
* Gap between item content - token-based
|
|
2711
|
-
*/
|
|
2712
|
-
gap?: ResponsiveSpace;
|
|
2713
|
-
}
|
|
2714
|
-
/**
|
|
2715
|
-
* ContextMenu CheckboxItem component
|
|
2716
|
-
* Wrapper around Radix ContextMenu CheckboxItem with token-based styling.
|
|
2717
|
-
*/
|
|
2718
|
-
declare const ContextMenuCheckboxItem: React$1.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2719
|
-
interface ContextMenuRadioGroupProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioGroup>, "children"> {
|
|
2720
|
-
children?: React$1.ReactNode;
|
|
2721
|
-
}
|
|
2722
|
-
/**
|
|
2723
|
-
* ContextMenu RadioGroup component
|
|
2724
|
-
* Wrapper around Radix ContextMenu RadioGroup.
|
|
2725
|
-
*/
|
|
2726
|
-
declare const ContextMenuRadioGroup: React$1.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2727
|
-
interface ContextMenuRadioItemProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>, "children"> {
|
|
2728
|
-
children?: React$1.ReactNode;
|
|
2729
|
-
/**
|
|
2730
|
-
* Size variant - token-based
|
|
2731
|
-
*/
|
|
2732
|
-
size?: ResponsiveContextMenuSize;
|
|
2733
|
-
/**
|
|
2734
|
-
* Tone variant - token-based
|
|
2735
|
-
*/
|
|
2736
|
-
tone?: ContextMenuItemToneToken;
|
|
2737
|
-
/**
|
|
2738
|
-
* Gap between item content - token-based
|
|
2739
|
-
*/
|
|
2740
|
-
gap?: ResponsiveSpace;
|
|
2741
|
-
}
|
|
2742
|
-
/**
|
|
2743
|
-
* ContextMenu RadioItem component
|
|
2744
|
-
* Wrapper around Radix ContextMenu RadioItem with token-based styling.
|
|
2745
|
-
*/
|
|
2746
|
-
declare const ContextMenuRadioItem: React$1.ForwardRefExoticComponent<ContextMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2747
|
-
interface ContextMenuSeparatorProps extends React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator> {
|
|
2748
|
-
className?: string;
|
|
2749
|
-
}
|
|
2750
|
-
/**
|
|
2751
|
-
* ContextMenu Separator component
|
|
2752
|
-
* Wrapper around Radix ContextMenu Separator with token-based styling.
|
|
2753
|
-
*/
|
|
2754
|
-
declare const ContextMenuSeparator: React$1.ForwardRefExoticComponent<ContextMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2755
|
-
interface ContextMenuLabelProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label>, "children"> {
|
|
2756
|
-
children?: React$1.ReactNode;
|
|
2757
|
-
/**
|
|
2758
|
-
* Padding - token-based
|
|
2759
|
-
*/
|
|
2760
|
-
padding?: ResponsiveSpace;
|
|
2761
|
-
}
|
|
2762
|
-
/**
|
|
2763
|
-
* ContextMenu Label component
|
|
2764
|
-
* Wrapper around Radix ContextMenu Label with token-based styling.
|
|
2765
|
-
*/
|
|
2766
|
-
declare const ContextMenuLabel: React$1.ForwardRefExoticComponent<ContextMenuLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2767
|
-
interface ContextMenuSubProps extends React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Sub> {
|
|
2768
|
-
children?: React$1.ReactNode;
|
|
2769
|
-
}
|
|
2770
|
-
/**
|
|
2771
|
-
* ContextMenu Sub component
|
|
2772
|
-
* Wrapper around Radix ContextMenu Sub.
|
|
2773
|
-
*/
|
|
2774
|
-
declare const ContextMenuSub: React$1.FC<ContextMenuSubProps>;
|
|
2775
|
-
interface ContextMenuSubTriggerProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger>, "children"> {
|
|
2776
|
-
children?: React$1.ReactNode;
|
|
2777
|
-
/**
|
|
2778
|
-
* Size variant - token-based
|
|
2779
|
-
*/
|
|
2780
|
-
size?: ResponsiveContextMenuSize;
|
|
2781
|
-
/**
|
|
2782
|
-
* Tone variant - token-based
|
|
2783
|
-
*/
|
|
2784
|
-
tone?: ContextMenuItemToneToken;
|
|
2785
|
-
/**
|
|
2786
|
-
* Gap between item content - token-based
|
|
2787
|
-
*/
|
|
2788
|
-
gap?: ResponsiveSpace;
|
|
2789
|
-
}
|
|
2790
|
-
/**
|
|
2791
|
-
* ContextMenu SubTrigger component
|
|
2792
|
-
* Wrapper around Radix ContextMenu SubTrigger with token-based styling.
|
|
2793
|
-
*/
|
|
2794
|
-
declare const ContextMenuSubTrigger: React$1.ForwardRefExoticComponent<ContextMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2795
|
-
interface ContextMenuSubContentProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>, "size" | "width" | "padding" | "radius" | "surface"> {
|
|
2796
|
-
/**
|
|
2797
|
-
* Size variant - token-based
|
|
2798
|
-
*/
|
|
2799
|
-
size?: ResponsiveContextMenuSize;
|
|
2800
|
-
/**
|
|
2801
|
-
* Width - token-based
|
|
2802
|
-
*/
|
|
2803
|
-
width?: ResponsiveContextMenuWidth;
|
|
2804
|
-
/**
|
|
2805
|
-
* Padding - token-based
|
|
2806
|
-
*/
|
|
2807
|
-
padding?: ResponsiveSpace;
|
|
2808
|
-
/**
|
|
2809
|
-
* Radius - token-based
|
|
2810
|
-
*/
|
|
2811
|
-
radius?: RadiusToken;
|
|
2812
|
-
/**
|
|
2813
|
-
* Surface variant - token-based
|
|
2814
|
-
*/
|
|
2815
|
-
surface?: SurfaceToken;
|
|
2816
|
-
}
|
|
2817
|
-
/**
|
|
2818
|
-
* ContextMenu SubContent component
|
|
2819
|
-
* Wrapper around Radix ContextMenu SubContent with token-based styling.
|
|
2820
|
-
*/
|
|
2821
|
-
declare const ContextMenuSubContent: React$1.ForwardRefExoticComponent<ContextMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2822
|
-
|
|
2823
|
-
/**
|
|
2824
|
-
* ContextMenu Component
|
|
2825
|
-
*
|
|
2826
|
-
* Radix ContextMenu-based component with token-driven styling.
|
|
2827
|
-
*
|
|
2828
|
-
* **Usage:**
|
|
2829
|
-
* ```tsx
|
|
2830
|
-
* <ContextMenu.Root>
|
|
2831
|
-
* <ContextMenu.Trigger>Right-click me</ContextMenu.Trigger>
|
|
2832
|
-
* <ContextMenu.Content>
|
|
2833
|
-
* <ContextMenu.Item>Item 1</ContextMenu.Item>
|
|
2834
|
-
* <ContextMenu.Item>Item 2</ContextMenu.Item>
|
|
2835
|
-
* <ContextMenu.Separator />
|
|
2836
|
-
* <ContextMenu.Sub>
|
|
2837
|
-
* <ContextMenu.SubTrigger>Submenu</ContextMenu.SubTrigger>
|
|
2838
|
-
* <ContextMenu.SubContent>
|
|
2839
|
-
* <ContextMenu.Item>Sub Item 1</ContextMenu.Item>
|
|
2840
|
-
* </ContextMenu.SubContent>
|
|
2841
|
-
* </ContextMenu.Sub>
|
|
2842
|
-
* </ContextMenu.Content>
|
|
2843
|
-
* </ContextMenu.Root>
|
|
2844
|
-
* ```
|
|
2845
|
-
*/
|
|
2846
|
-
declare const ContextMenu: {
|
|
2847
|
-
Root: React$1.FC<ContextMenuPrimitive.ContextMenuProps>;
|
|
2848
|
-
Trigger: React$1.ForwardRefExoticComponent<ContextMenuTriggerProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2849
|
-
Content: React$1.ForwardRefExoticComponent<ContextMenuContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2850
|
-
Item: React$1.ForwardRefExoticComponent<ContextMenuItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2851
|
-
CheckboxItem: React$1.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2852
|
-
RadioGroup: React$1.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2853
|
-
RadioItem: React$1.ForwardRefExoticComponent<ContextMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2854
|
-
Separator: React$1.ForwardRefExoticComponent<ContextMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2855
|
-
Label: React$1.ForwardRefExoticComponent<ContextMenuLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2856
|
-
Sub: React$1.FC<ContextMenuSubProps>;
|
|
2857
|
-
SubTrigger: React$1.ForwardRefExoticComponent<ContextMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2858
|
-
SubContent: React$1.ForwardRefExoticComponent<ContextMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2859
|
-
};
|
|
2860
|
-
|
|
2861
|
-
declare const skeletonVariants: (props?: ({
|
|
2862
|
-
variant?: "block" | "card" | "text" | "circle" | "inline" | null | undefined;
|
|
2863
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2864
|
-
interface SkeletonProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps$1<typeof skeletonVariants> {
|
|
2865
|
-
/**
|
|
2866
|
-
* Whether to hide from screen readers
|
|
2867
|
-
* @default true
|
|
2868
|
-
*/
|
|
2869
|
-
"aria-hidden"?: boolean;
|
|
2870
|
-
}
|
|
2871
|
-
/**
|
|
2872
|
-
* Skeleton component for loading states
|
|
2873
|
-
*
|
|
2874
|
-
* @example
|
|
2875
|
-
* ```tsx
|
|
2876
|
-
* <Skeleton variant="text" />
|
|
2877
|
-
* <Skeleton variant="circle" />
|
|
2878
|
-
* <Skeleton variant="card" />
|
|
2879
|
-
* ```
|
|
2880
|
-
*/
|
|
2881
|
-
declare const Skeleton: React$1.ForwardRefExoticComponent<SkeletonProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2882
|
-
|
|
2883
|
-
/**
|
|
2884
|
-
* EmptyState Component
|
|
2885
|
-
*
|
|
2886
|
-
* Token-driven empty state component for displaying empty or no-data states.
|
|
2887
|
-
* Uses EMPTY_STATE_TOKENS for all spacing and sizing.
|
|
2888
|
-
* Integrates with Surface and Stack components.
|
|
2889
|
-
*/
|
|
2890
|
-
|
|
2891
|
-
interface EmptyStateProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2892
|
-
/**
|
|
2893
|
-
* Unique ID for accessibility (auto-generated if not provided)
|
|
2894
|
-
*/
|
|
2895
|
-
id?: string;
|
|
2896
|
-
}
|
|
2897
|
-
/**
|
|
2898
|
-
* EmptyState root component
|
|
2899
|
-
*
|
|
2900
|
-
* @example
|
|
2901
|
-
* ```tsx
|
|
2902
|
-
* <EmptyState>
|
|
2903
|
-
* <EmptyState.Icon>📭</EmptyState.Icon>
|
|
2904
|
-
* <EmptyState.Title>No items found</EmptyState.Title>
|
|
2905
|
-
* <EmptyState.Description>Try adjusting your filters</EmptyState.Description>
|
|
2906
|
-
* <EmptyState.Action>
|
|
2907
|
-
* <Button>Create Item</Button>
|
|
2908
|
-
* </EmptyState.Action>
|
|
2909
|
-
* </EmptyState>
|
|
2910
|
-
* ```
|
|
2911
|
-
*/
|
|
2912
|
-
declare const EmptyState: React$1.ForwardRefExoticComponent<EmptyStateProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2913
|
-
|
|
2914
|
-
/**
|
|
2915
|
-
* EmptyState Action Component
|
|
2916
|
-
*
|
|
2917
|
-
* Action subcomponent for EmptyState (typically contains Button).
|
|
2918
|
-
*/
|
|
2919
|
-
|
|
2920
|
-
interface EmptyStateActionProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2921
|
-
/**
|
|
2922
|
-
* Action button or link (typically Button component)
|
|
2923
|
-
*/
|
|
2924
|
-
children: React$1.ReactNode;
|
|
2925
|
-
}
|
|
2926
|
-
/**
|
|
2927
|
-
* EmptyState Action component
|
|
2928
|
-
*/
|
|
2929
|
-
declare const EmptyStateAction: React$1.ForwardRefExoticComponent<EmptyStateActionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2930
|
-
|
|
2931
|
-
/**
|
|
2932
|
-
* EmptyState Description Component
|
|
2933
|
-
*
|
|
2934
|
-
* Description subcomponent for EmptyState.
|
|
2935
|
-
*/
|
|
2936
|
-
|
|
2937
|
-
interface EmptyStateDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
2938
|
-
/**
|
|
2939
|
-
* Description text
|
|
2940
|
-
*/
|
|
2941
|
-
children: React$1.ReactNode;
|
|
2942
|
-
}
|
|
2943
|
-
/**
|
|
2944
|
-
* EmptyState Description component
|
|
2945
|
-
*/
|
|
2946
|
-
declare const EmptyStateDescription: React$1.ForwardRefExoticComponent<EmptyStateDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
2947
|
-
|
|
2948
|
-
/**
|
|
2949
|
-
* EmptyState Icon Component
|
|
2950
|
-
*
|
|
2951
|
-
* Icon subcomponent for EmptyState.
|
|
2952
|
-
*/
|
|
2953
|
-
|
|
2954
|
-
interface EmptyStateIconProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
2955
|
-
/**
|
|
2956
|
-
* Icon content (any ReactNode)
|
|
2957
|
-
*/
|
|
2958
|
-
children: React$1.ReactNode;
|
|
2959
|
-
/**
|
|
2960
|
-
* Icon size
|
|
2961
|
-
* @default "md"
|
|
2962
|
-
*/
|
|
2963
|
-
size?: "sm" | "md" | "lg";
|
|
2964
|
-
}
|
|
2965
|
-
/**
|
|
2966
|
-
* EmptyState Icon component
|
|
2967
|
-
*/
|
|
2968
|
-
declare const EmptyStateIcon: React$1.ForwardRefExoticComponent<EmptyStateIconProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2969
|
-
|
|
2970
|
-
/**
|
|
2971
|
-
* EmptyState Title Component
|
|
2972
|
-
*
|
|
2973
|
-
* Title subcomponent for EmptyState.
|
|
2538
|
+
* Trigger element that opens HoverCard on hover/focus.
|
|
2974
2539
|
*/
|
|
2975
2540
|
|
|
2976
|
-
interface
|
|
2541
|
+
interface HoverCardTriggerProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2977
2542
|
/**
|
|
2978
|
-
*
|
|
2543
|
+
* Render as child element (composition pattern)
|
|
2979
2544
|
*/
|
|
2980
|
-
|
|
2545
|
+
asChild?: boolean;
|
|
2981
2546
|
}
|
|
2982
2547
|
/**
|
|
2983
|
-
*
|
|
2548
|
+
* HoverCard Trigger component
|
|
2984
2549
|
*/
|
|
2985
|
-
declare const
|
|
2550
|
+
declare const HoverCardTrigger: React$1.ForwardRefExoticComponent<HoverCardTriggerProps & React$1.RefAttributes<HTMLElement>>;
|
|
2986
2551
|
|
|
2987
2552
|
/**
|
|
2988
2553
|
* DataList Root Component
|
|
@@ -3014,816 +2579,926 @@ interface DataListRootProps extends React$1.HTMLAttributes<HTMLDListElement> {
|
|
|
3014
2579
|
declare const DataListRoot: React$1.ForwardRefExoticComponent<DataListRootProps & React$1.RefAttributes<HTMLDListElement>>;
|
|
3015
2580
|
|
|
3016
2581
|
/**
|
|
3017
|
-
*
|
|
2582
|
+
* Tabs Component
|
|
3018
2583
|
*
|
|
3019
|
-
*
|
|
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.
|
|
3020
2587
|
*/
|
|
3021
2588
|
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
interface DataListItemProps$1 extends React.HTMLAttributes<HTMLDivElement> {
|
|
2589
|
+
interface TabsRootProps extends React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
|
|
2590
|
+
}
|
|
2591
|
+
interface TabsListProps extends Omit<React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.List>, "size" | "variant"> {
|
|
3026
2592
|
/**
|
|
3027
|
-
*
|
|
3028
|
-
* Accepts spacing tokens (xs, sm, md, lg, xl, etc.) or responsive object
|
|
3029
|
-
* @default "md"
|
|
3030
|
-
* @example padding="sm"
|
|
3031
|
-
* @example padding={{ base: "sm", md: "lg" }}
|
|
2593
|
+
* Size variant - token-based
|
|
3032
2594
|
*/
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
*
|
|
3039
|
-
* Individual item in DataList (contains Label and Value).
|
|
3040
|
-
*/
|
|
3041
|
-
|
|
3042
|
-
interface DataListItemProps extends DataListItemProps$1 {
|
|
2595
|
+
size?: ResponsiveTabsSize;
|
|
2596
|
+
/**
|
|
2597
|
+
* Visual variant - token-based
|
|
2598
|
+
*/
|
|
2599
|
+
variant?: TabsVariantToken;
|
|
3043
2600
|
}
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
interface DataListLabelProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2601
|
+
interface TabsTriggerProps extends Omit<React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>, "size" | "variant" | "tone"> {
|
|
2602
|
+
/**
|
|
2603
|
+
* Size variant - token-based (inherited from context if not provided)
|
|
2604
|
+
*/
|
|
2605
|
+
size?: ResponsiveTabsSize;
|
|
2606
|
+
/**
|
|
2607
|
+
* Visual variant - token-based (inherited from context if not provided)
|
|
2608
|
+
*/
|
|
2609
|
+
variant?: TabsVariantToken;
|
|
2610
|
+
/**
|
|
2611
|
+
* Tone - token-based (inherited from context if not provided)
|
|
2612
|
+
*/
|
|
2613
|
+
tone?: TabsToneToken;
|
|
3058
2614
|
/**
|
|
3059
|
-
*
|
|
2615
|
+
* Leading icon - semantic prop
|
|
3060
2616
|
*/
|
|
3061
|
-
|
|
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;
|
|
3062
2626
|
}
|
|
3063
|
-
|
|
3064
|
-
* DataList Label component
|
|
3065
|
-
* Mobile: full width
|
|
3066
|
-
* Desktop: fixed width (from tokens)
|
|
3067
|
-
*/
|
|
3068
|
-
declare const DataListLabel: React$1.ForwardRefExoticComponent<DataListLabelProps & React$1.RefAttributes<HTMLElement>>;
|
|
3069
|
-
|
|
3070
|
-
/**
|
|
3071
|
-
* DataList Value Component
|
|
3072
|
-
*
|
|
3073
|
-
* Value subcomponent for DataList items.
|
|
3074
|
-
*/
|
|
3075
|
-
|
|
3076
|
-
interface DataListValueProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2627
|
+
interface TabsContentProps extends Omit<React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>, "size"> {
|
|
3077
2628
|
/**
|
|
3078
|
-
*
|
|
2629
|
+
* Size variant - token-based (for padding)
|
|
3079
2630
|
*/
|
|
3080
|
-
|
|
2631
|
+
size?: ResponsiveTabsSize;
|
|
3081
2632
|
}
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
/**
|
|
3089
|
-
* Table Component Types
|
|
3090
|
-
*
|
|
3091
|
-
* TypeScript interfaces and types for Table component.
|
|
3092
|
-
*/
|
|
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
|
+
};
|
|
3093
2639
|
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
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> {
|
|
3098
2649
|
/**
|
|
3099
|
-
*
|
|
2650
|
+
* Controlled value
|
|
3100
2651
|
*/
|
|
3101
|
-
|
|
2652
|
+
value?: string;
|
|
3102
2653
|
/**
|
|
3103
|
-
*
|
|
2654
|
+
* Default value for uncontrolled usage
|
|
3104
2655
|
*/
|
|
3105
|
-
|
|
2656
|
+
defaultValue?: string;
|
|
3106
2657
|
/**
|
|
3107
|
-
*
|
|
2658
|
+
* Callback when value changes
|
|
3108
2659
|
*/
|
|
3109
|
-
|
|
2660
|
+
onValueChange?: (value: string) => void;
|
|
3110
2661
|
/**
|
|
3111
|
-
*
|
|
3112
|
-
* @default "left"
|
|
2662
|
+
* Name for the radio group
|
|
3113
2663
|
*/
|
|
3114
|
-
|
|
2664
|
+
name?: string;
|
|
2665
|
+
}
|
|
2666
|
+
interface SegmentedControlItemProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "role">, VariantProps$1<typeof segmentedControlItemVariants> {
|
|
3115
2667
|
/**
|
|
3116
|
-
*
|
|
2668
|
+
* Value of this item
|
|
3117
2669
|
*/
|
|
3118
|
-
|
|
2670
|
+
value: string;
|
|
3119
2671
|
/**
|
|
3120
|
-
* Whether
|
|
3121
|
-
* @default false
|
|
2672
|
+
* Whether this item is disabled
|
|
3122
2673
|
*/
|
|
3123
|
-
|
|
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 {
|
|
3124
2682
|
/**
|
|
3125
|
-
*
|
|
3126
|
-
* @default "md"
|
|
2683
|
+
* Label text for the breadcrumb item
|
|
3127
2684
|
*/
|
|
3128
|
-
|
|
3129
|
-
}
|
|
3130
|
-
/**
|
|
3131
|
-
* Sort direction
|
|
3132
|
-
*/
|
|
3133
|
-
type SortDirection = "asc" | "desc" | null;
|
|
3134
|
-
/**
|
|
3135
|
-
* Sort state
|
|
3136
|
-
*/
|
|
3137
|
-
interface SortState {
|
|
2685
|
+
label: string;
|
|
3138
2686
|
/**
|
|
3139
|
-
*
|
|
2687
|
+
* Optional href for clickable items
|
|
3140
2688
|
*/
|
|
3141
|
-
|
|
2689
|
+
href?: string;
|
|
3142
2690
|
/**
|
|
3143
|
-
*
|
|
2691
|
+
* Whether this item is disabled
|
|
3144
2692
|
*/
|
|
3145
|
-
|
|
2693
|
+
disabled?: boolean;
|
|
3146
2694
|
}
|
|
3147
|
-
|
|
3148
|
-
* Table context value
|
|
3149
|
-
*/
|
|
3150
|
-
interface TableContextValue {
|
|
2695
|
+
interface BreadcrumbsRootProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
3151
2696
|
/**
|
|
3152
|
-
*
|
|
2697
|
+
* Array of breadcrumb items
|
|
3153
2698
|
*/
|
|
3154
|
-
|
|
2699
|
+
items: BreadcrumbItem[];
|
|
3155
2700
|
/**
|
|
3156
|
-
*
|
|
2701
|
+
* Custom separator component or string
|
|
2702
|
+
* @default ChevronRight icon
|
|
3157
2703
|
*/
|
|
3158
|
-
|
|
2704
|
+
separator?: React$1.ReactNode;
|
|
3159
2705
|
/**
|
|
3160
|
-
*
|
|
2706
|
+
* ARIA label for the navigation element
|
|
2707
|
+
* @default "Breadcrumb"
|
|
3161
2708
|
*/
|
|
3162
|
-
|
|
2709
|
+
ariaLabel?: string;
|
|
2710
|
+
}
|
|
2711
|
+
interface BreadcrumbsItemProps extends React$1.HTMLAttributes<HTMLLIElement> {
|
|
3163
2712
|
/**
|
|
3164
|
-
*
|
|
2713
|
+
* Whether this is the last item (current page)
|
|
3165
2714
|
*/
|
|
3166
|
-
|
|
2715
|
+
isLast?: boolean;
|
|
3167
2716
|
/**
|
|
3168
|
-
* Whether
|
|
2717
|
+
* Whether this item is disabled
|
|
3169
2718
|
*/
|
|
3170
|
-
|
|
2719
|
+
disabled?: boolean;
|
|
2720
|
+
}
|
|
2721
|
+
interface BreadcrumbsSeparatorProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
3171
2722
|
/**
|
|
3172
|
-
*
|
|
2723
|
+
* Custom separator content
|
|
3173
2724
|
*/
|
|
3174
|
-
|
|
2725
|
+
children?: React$1.ReactNode;
|
|
3175
2726
|
}
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
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> {
|
|
3180
2734
|
/**
|
|
3181
|
-
*
|
|
2735
|
+
* Current active page (1-indexed)
|
|
3182
2736
|
*/
|
|
3183
|
-
|
|
2737
|
+
currentPage: number;
|
|
3184
2738
|
/**
|
|
3185
|
-
*
|
|
2739
|
+
* Total number of pages
|
|
3186
2740
|
*/
|
|
3187
|
-
|
|
2741
|
+
totalPages: number;
|
|
3188
2742
|
/**
|
|
3189
|
-
*
|
|
2743
|
+
* Callback when page changes
|
|
3190
2744
|
*/
|
|
3191
|
-
|
|
2745
|
+
onPageChange: (page: number) => void;
|
|
3192
2746
|
/**
|
|
3193
|
-
*
|
|
3194
|
-
* @default
|
|
2747
|
+
* Number of pages to show on each side of current page
|
|
2748
|
+
* @default 2
|
|
3195
2749
|
*/
|
|
3196
|
-
|
|
2750
|
+
delta?: number;
|
|
3197
2751
|
/**
|
|
3198
|
-
*
|
|
3199
|
-
* @default
|
|
2752
|
+
* ARIA label for the navigation element
|
|
2753
|
+
* @default "Pagination"
|
|
3200
2754
|
*/
|
|
3201
|
-
|
|
2755
|
+
ariaLabel?: string;
|
|
2756
|
+
}
|
|
2757
|
+
interface PaginationItemProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3202
2758
|
/**
|
|
3203
|
-
*
|
|
2759
|
+
* Page number (or "..." for ellipsis)
|
|
3204
2760
|
*/
|
|
3205
|
-
|
|
2761
|
+
page: number | "...";
|
|
3206
2762
|
/**
|
|
3207
|
-
* Whether
|
|
3208
|
-
* @default false
|
|
2763
|
+
* Whether this is the current page
|
|
3209
2764
|
*/
|
|
3210
|
-
|
|
2765
|
+
isCurrent?: boolean;
|
|
3211
2766
|
/**
|
|
3212
|
-
*
|
|
2767
|
+
* Whether this item is disabled
|
|
3213
2768
|
*/
|
|
3214
|
-
|
|
2769
|
+
disabled?: boolean;
|
|
2770
|
+
}
|
|
2771
|
+
interface PaginationPrevProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3215
2772
|
/**
|
|
3216
|
-
* Whether
|
|
3217
|
-
* @default false
|
|
2773
|
+
* Whether previous button is disabled
|
|
3218
2774
|
*/
|
|
3219
|
-
|
|
2775
|
+
disabled?: boolean;
|
|
2776
|
+
}
|
|
2777
|
+
interface PaginationNextProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3220
2778
|
/**
|
|
3221
|
-
*
|
|
3222
|
-
* @default "md"
|
|
2779
|
+
* Whether next button is disabled
|
|
3223
2780
|
*/
|
|
3224
|
-
|
|
2781
|
+
disabled?: boolean;
|
|
3225
2782
|
}
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
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 {
|
|
3230
2794
|
/**
|
|
3231
|
-
*
|
|
3232
|
-
* @default false
|
|
2795
|
+
* Unique identifier for the step
|
|
3233
2796
|
*/
|
|
3234
|
-
|
|
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;
|
|
3235
2814
|
}
|
|
3236
|
-
|
|
3237
|
-
* Table Head component props
|
|
3238
|
-
*/
|
|
3239
|
-
interface TableHeadProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
2815
|
+
interface StepperRootProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3240
2816
|
/**
|
|
3241
|
-
*
|
|
3242
|
-
* @default "left"
|
|
2817
|
+
* Array of steps
|
|
3243
2818
|
*/
|
|
3244
|
-
|
|
2819
|
+
steps: StepperStep[];
|
|
3245
2820
|
/**
|
|
3246
|
-
*
|
|
3247
|
-
* @default false
|
|
2821
|
+
* Current active step index (0-indexed)
|
|
3248
2822
|
*/
|
|
3249
|
-
|
|
2823
|
+
activeStep: number;
|
|
3250
2824
|
/**
|
|
3251
|
-
*
|
|
2825
|
+
* Orientation of the stepper
|
|
2826
|
+
* @default "horizontal"
|
|
3252
2827
|
*/
|
|
3253
|
-
|
|
2828
|
+
orientation?: "horizontal" | "vertical";
|
|
3254
2829
|
/**
|
|
3255
|
-
*
|
|
3256
|
-
* @default
|
|
2830
|
+
* Whether to show step numbers
|
|
2831
|
+
* @default true
|
|
3257
2832
|
*/
|
|
3258
|
-
|
|
3259
|
-
}
|
|
3260
|
-
/**
|
|
3261
|
-
* Table Body component props
|
|
3262
|
-
*/
|
|
3263
|
-
interface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
2833
|
+
showNumbers?: boolean;
|
|
3264
2834
|
}
|
|
3265
|
-
|
|
3266
|
-
* Table Row component props
|
|
3267
|
-
*/
|
|
3268
|
-
interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
2835
|
+
interface StepperItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3269
2836
|
/**
|
|
3270
|
-
*
|
|
3271
|
-
* @default false
|
|
2837
|
+
* Step data
|
|
3272
2838
|
*/
|
|
3273
|
-
|
|
2839
|
+
step: StepperStep;
|
|
3274
2840
|
/**
|
|
3275
|
-
*
|
|
3276
|
-
* @default false
|
|
2841
|
+
* Step index (0-indexed)
|
|
3277
2842
|
*/
|
|
3278
|
-
|
|
2843
|
+
index: number;
|
|
3279
2844
|
/**
|
|
3280
|
-
*
|
|
2845
|
+
* Whether this is the active step
|
|
3281
2846
|
*/
|
|
3282
|
-
|
|
2847
|
+
isActive: boolean;
|
|
3283
2848
|
/**
|
|
3284
|
-
* Whether
|
|
3285
|
-
* @default false
|
|
2849
|
+
* Whether this step is completed
|
|
3286
2850
|
*/
|
|
3287
|
-
|
|
2851
|
+
isCompleted: boolean;
|
|
2852
|
+
/**
|
|
2853
|
+
* Whether to show step number
|
|
2854
|
+
*/
|
|
2855
|
+
showNumber?: boolean;
|
|
3288
2856
|
}
|
|
3289
|
-
|
|
3290
|
-
* Table Cell component props
|
|
3291
|
-
*/
|
|
3292
|
-
interface TableCellProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
2857
|
+
interface StepperIndicatorProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3293
2858
|
/**
|
|
3294
|
-
*
|
|
3295
|
-
* @default "left"
|
|
2859
|
+
* Step index
|
|
3296
2860
|
*/
|
|
3297
|
-
|
|
2861
|
+
index: number;
|
|
3298
2862
|
/**
|
|
3299
|
-
*
|
|
3300
|
-
* @default "md"
|
|
2863
|
+
* Whether this is the active step
|
|
3301
2864
|
*/
|
|
3302
|
-
|
|
3303
|
-
}
|
|
3304
|
-
/**
|
|
3305
|
-
* Table SortIcon component props
|
|
3306
|
-
*/
|
|
3307
|
-
interface TableSortIconProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
2865
|
+
isActive: boolean;
|
|
3308
2866
|
/**
|
|
3309
|
-
*
|
|
2867
|
+
* Whether this step is completed
|
|
3310
2868
|
*/
|
|
3311
|
-
|
|
3312
|
-
}
|
|
3313
|
-
/**
|
|
3314
|
-
* Table Empty component props
|
|
3315
|
-
*/
|
|
3316
|
-
interface TableEmptyProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
2869
|
+
isCompleted: boolean;
|
|
3317
2870
|
/**
|
|
3318
|
-
*
|
|
2871
|
+
* Whether this step is disabled
|
|
3319
2872
|
*/
|
|
3320
|
-
|
|
2873
|
+
disabled?: boolean;
|
|
3321
2874
|
/**
|
|
3322
|
-
*
|
|
2875
|
+
* Custom icon
|
|
3323
2876
|
*/
|
|
3324
|
-
|
|
2877
|
+
icon?: React$1.ReactNode;
|
|
2878
|
+
/**
|
|
2879
|
+
* Whether to show step number
|
|
2880
|
+
*/
|
|
2881
|
+
showNumber?: boolean;
|
|
3325
2882
|
}
|
|
3326
|
-
|
|
3327
|
-
* Table LoadingState component props
|
|
3328
|
-
*/
|
|
3329
|
-
interface TableLoadingStateProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
2883
|
+
interface StepperLabelProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3330
2884
|
/**
|
|
3331
|
-
*
|
|
2885
|
+
* Step label text
|
|
3332
2886
|
*/
|
|
3333
|
-
|
|
2887
|
+
label: string;
|
|
3334
2888
|
/**
|
|
3335
|
-
*
|
|
3336
|
-
* @default 5
|
|
2889
|
+
* Optional description
|
|
3337
2890
|
*/
|
|
3338
|
-
|
|
3339
|
-
}
|
|
3340
|
-
/**
|
|
3341
|
-
* Table ExpandableContent component props
|
|
3342
|
-
*/
|
|
3343
|
-
interface TableExpandableContentProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
2891
|
+
description?: string;
|
|
3344
2892
|
/**
|
|
3345
|
-
*
|
|
2893
|
+
* Whether this is the active step
|
|
3346
2894
|
*/
|
|
3347
|
-
|
|
2895
|
+
isActive: boolean;
|
|
2896
|
+
}
|
|
2897
|
+
interface StepperContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3348
2898
|
/**
|
|
3349
|
-
*
|
|
2899
|
+
* Step index this content belongs to
|
|
3350
2900
|
*/
|
|
3351
|
-
|
|
2901
|
+
stepIndex: number;
|
|
3352
2902
|
/**
|
|
3353
|
-
*
|
|
2903
|
+
* Whether this content should be visible
|
|
3354
2904
|
*/
|
|
3355
|
-
|
|
2905
|
+
isActive: boolean;
|
|
3356
2906
|
}
|
|
3357
|
-
|
|
3358
|
-
declare function useTableContext(): TableContextValue;
|
|
3359
2907
|
/**
|
|
3360
|
-
*
|
|
3361
|
-
*
|
|
3362
|
-
* @example
|
|
3363
|
-
* ```tsx
|
|
3364
|
-
* <Table.Root
|
|
3365
|
-
* data={users}
|
|
3366
|
-
* columns={columns}
|
|
3367
|
-
* rowKey="id"
|
|
3368
|
-
* sortable
|
|
3369
|
-
* >
|
|
3370
|
-
* <Table.Header>
|
|
3371
|
-
* <Table.Row>
|
|
3372
|
-
* <Table.Head>Name</Table.Head>
|
|
3373
|
-
* </Table.Row>
|
|
3374
|
-
* </Table.Header>
|
|
3375
|
-
* <Table.Body>
|
|
3376
|
-
* {users.map((user) => (
|
|
3377
|
-
* <Table.Row key={user.id}>
|
|
3378
|
-
* <Table.Cell>{user.name}</Table.Cell>
|
|
3379
|
-
* </Table.Row>
|
|
3380
|
-
* ))}
|
|
3381
|
-
* </Table.Body>
|
|
3382
|
-
* </Table.Root>
|
|
3383
|
-
* ```
|
|
2908
|
+
* Stepper.Item - Individual step container
|
|
3384
2909
|
*/
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
var displayName: string;
|
|
2910
|
+
interface StepperItemPropsInternal extends StepperItemProps {
|
|
2911
|
+
orientation?: "horizontal" | "vertical";
|
|
3388
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
|
+
};
|
|
3389
2920
|
|
|
3390
2921
|
/**
|
|
3391
|
-
*
|
|
2922
|
+
* DataList Component Types
|
|
3392
2923
|
*
|
|
3393
|
-
*
|
|
2924
|
+
* TypeScript interfaces and types for DataList component.
|
|
3394
2925
|
*/
|
|
3395
2926
|
|
|
3396
2927
|
/**
|
|
3397
|
-
*
|
|
2928
|
+
* DataList Item component props
|
|
3398
2929
|
*/
|
|
3399
|
-
|
|
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
|
+
}
|
|
3400
2940
|
|
|
3401
2941
|
/**
|
|
3402
|
-
*
|
|
2942
|
+
* DataList Item Component
|
|
3403
2943
|
*
|
|
3404
|
-
*
|
|
2944
|
+
* Individual item in DataList (contains Label and Value).
|
|
3405
2945
|
*/
|
|
3406
2946
|
|
|
2947
|
+
interface DataListItemProps extends DataListItemProps$1 {
|
|
2948
|
+
}
|
|
3407
2949
|
/**
|
|
3408
|
-
*
|
|
2950
|
+
* DataList Item component
|
|
2951
|
+
* Mobile: vertical layout (label above value)
|
|
2952
|
+
* Desktop: horizontal layout (label left, value right)
|
|
3409
2953
|
*/
|
|
3410
|
-
declare const
|
|
2954
|
+
declare const DataListItem: React$1.ForwardRefExoticComponent<DataListItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3411
2955
|
|
|
3412
2956
|
/**
|
|
3413
|
-
*
|
|
2957
|
+
* DataList Label Component
|
|
3414
2958
|
*
|
|
3415
|
-
*
|
|
2959
|
+
* Label subcomponent for DataList items.
|
|
3416
2960
|
*/
|
|
3417
2961
|
|
|
2962
|
+
interface DataListLabelProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2963
|
+
/**
|
|
2964
|
+
* Label text
|
|
2965
|
+
*/
|
|
2966
|
+
children: React$1.ReactNode;
|
|
2967
|
+
}
|
|
3418
2968
|
/**
|
|
3419
|
-
*
|
|
2969
|
+
* DataList Label component
|
|
2970
|
+
* Mobile: full width
|
|
2971
|
+
* Desktop: fixed width (from tokens)
|
|
3420
2972
|
*/
|
|
3421
|
-
declare const
|
|
2973
|
+
declare const DataListLabel: React$1.ForwardRefExoticComponent<DataListLabelProps & React$1.RefAttributes<HTMLElement>>;
|
|
3422
2974
|
|
|
3423
2975
|
/**
|
|
3424
|
-
*
|
|
2976
|
+
* DataList Value Component
|
|
3425
2977
|
*
|
|
3426
|
-
*
|
|
2978
|
+
* Value subcomponent for DataList items.
|
|
3427
2979
|
*/
|
|
3428
2980
|
|
|
2981
|
+
interface DataListValueProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
2982
|
+
/**
|
|
2983
|
+
* Value content
|
|
2984
|
+
*/
|
|
2985
|
+
children: React$1.ReactNode;
|
|
2986
|
+
}
|
|
3429
2987
|
/**
|
|
3430
|
-
*
|
|
3431
|
-
*
|
|
2988
|
+
* DataList Value component
|
|
2989
|
+
* Flex-grow to fill remaining space on desktop
|
|
3432
2990
|
*/
|
|
3433
|
-
declare const
|
|
2991
|
+
declare const DataListValue: React$1.ForwardRefExoticComponent<DataListValueProps & React$1.RefAttributes<HTMLElement>>;
|
|
3434
2992
|
|
|
3435
2993
|
/**
|
|
3436
|
-
*
|
|
2994
|
+
* EmptyState Component
|
|
3437
2995
|
*
|
|
3438
|
-
*
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
/**
|
|
3442
|
-
* Table Head component
|
|
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.
|
|
3443
2999
|
*/
|
|
3444
|
-
declare const TableHead: React$1.ForwardRefExoticComponent<TableHeadProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
3445
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
|
+
}
|
|
3446
3007
|
/**
|
|
3447
|
-
*
|
|
3008
|
+
* EmptyState root component
|
|
3448
3009
|
*
|
|
3449
|
-
*
|
|
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
|
+
* ```
|
|
3450
3021
|
*/
|
|
3451
|
-
|
|
3452
|
-
declare const TableHeader: React$1.ForwardRefExoticComponent<TableHeaderProps & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
3022
|
+
declare const EmptyState: React$1.ForwardRefExoticComponent<EmptyStateProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3453
3023
|
|
|
3454
3024
|
/**
|
|
3455
|
-
*
|
|
3025
|
+
* EmptyState Action Component
|
|
3456
3026
|
*
|
|
3457
|
-
*
|
|
3027
|
+
* Action subcomponent for EmptyState (typically contains Button).
|
|
3458
3028
|
*/
|
|
3459
3029
|
|
|
3030
|
+
interface EmptyStateActionProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3031
|
+
/**
|
|
3032
|
+
* Action button or link (typically Button component)
|
|
3033
|
+
*/
|
|
3034
|
+
children: React$1.ReactNode;
|
|
3035
|
+
}
|
|
3460
3036
|
/**
|
|
3461
|
-
*
|
|
3037
|
+
* EmptyState Action component
|
|
3462
3038
|
*/
|
|
3463
|
-
declare const
|
|
3039
|
+
declare const EmptyStateAction: React$1.ForwardRefExoticComponent<EmptyStateActionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3464
3040
|
|
|
3465
3041
|
/**
|
|
3466
|
-
*
|
|
3042
|
+
* EmptyState Description Component
|
|
3467
3043
|
*
|
|
3468
|
-
*
|
|
3044
|
+
* Description subcomponent for EmptyState.
|
|
3469
3045
|
*/
|
|
3470
3046
|
|
|
3047
|
+
interface EmptyStateDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
3048
|
+
/**
|
|
3049
|
+
* Description text
|
|
3050
|
+
*/
|
|
3051
|
+
children: React$1.ReactNode;
|
|
3052
|
+
}
|
|
3471
3053
|
/**
|
|
3472
|
-
*
|
|
3054
|
+
* EmptyState Description component
|
|
3473
3055
|
*/
|
|
3474
|
-
declare const
|
|
3056
|
+
declare const EmptyStateDescription: React$1.ForwardRefExoticComponent<EmptyStateDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
3475
3057
|
|
|
3476
3058
|
/**
|
|
3477
|
-
*
|
|
3059
|
+
* EmptyState Icon Component
|
|
3478
3060
|
*
|
|
3479
|
-
*
|
|
3061
|
+
* Icon subcomponent for EmptyState.
|
|
3480
3062
|
*/
|
|
3481
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
|
+
}
|
|
3482
3075
|
/**
|
|
3483
|
-
*
|
|
3484
|
-
* Uses CSS rotation animation (no framer-motion)
|
|
3076
|
+
* EmptyState Icon component
|
|
3485
3077
|
*/
|
|
3486
|
-
declare const
|
|
3078
|
+
declare const EmptyStateIcon: React$1.ForwardRefExoticComponent<EmptyStateIconProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3487
3079
|
|
|
3488
3080
|
/**
|
|
3489
|
-
*
|
|
3081
|
+
* EmptyState Title Component
|
|
3490
3082
|
*
|
|
3491
|
-
*
|
|
3492
|
-
* All behavior (keyboard navigation, focus management, a11y) is handled by Radix.
|
|
3493
|
-
* Tenerife UI provides visual styling through tokens only.
|
|
3083
|
+
* Title subcomponent for EmptyState.
|
|
3494
3084
|
*/
|
|
3495
3085
|
|
|
3496
|
-
interface
|
|
3497
|
-
}
|
|
3498
|
-
interface TabsListProps extends Omit<React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.List>, "size" | "variant"> {
|
|
3499
|
-
/**
|
|
3500
|
-
* Size variant - token-based
|
|
3501
|
-
*/
|
|
3502
|
-
size?: ResponsiveTabsSize;
|
|
3503
|
-
/**
|
|
3504
|
-
* Visual variant - token-based
|
|
3505
|
-
*/
|
|
3506
|
-
variant?: TabsVariantToken;
|
|
3507
|
-
}
|
|
3508
|
-
interface TabsTriggerProps extends Omit<React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>, "size" | "variant" | "tone"> {
|
|
3509
|
-
/**
|
|
3510
|
-
* Size variant - token-based (inherited from context if not provided)
|
|
3511
|
-
*/
|
|
3512
|
-
size?: ResponsiveTabsSize;
|
|
3513
|
-
/**
|
|
3514
|
-
* Visual variant - token-based (inherited from context if not provided)
|
|
3515
|
-
*/
|
|
3516
|
-
variant?: TabsVariantToken;
|
|
3517
|
-
/**
|
|
3518
|
-
* Tone - token-based (inherited from context if not provided)
|
|
3519
|
-
*/
|
|
3520
|
-
tone?: TabsToneToken;
|
|
3521
|
-
/**
|
|
3522
|
-
* Leading icon - semantic prop
|
|
3523
|
-
*/
|
|
3524
|
-
leadingIcon?: React$1.ReactNode;
|
|
3525
|
-
/**
|
|
3526
|
-
* Trailing icon - semantic prop
|
|
3527
|
-
*/
|
|
3528
|
-
trailingIcon?: React$1.ReactNode;
|
|
3529
|
-
/**
|
|
3530
|
-
* Icon - semantic prop (for backward compatibility, maps to leadingIcon)
|
|
3531
|
-
*/
|
|
3532
|
-
icon?: React$1.ReactNode;
|
|
3533
|
-
}
|
|
3534
|
-
interface TabsContentProps extends Omit<React$1.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>, "size"> {
|
|
3086
|
+
interface EmptyStateTitleProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
3535
3087
|
/**
|
|
3536
|
-
*
|
|
3088
|
+
* Title text
|
|
3537
3089
|
*/
|
|
3538
|
-
|
|
3090
|
+
children: React$1.ReactNode;
|
|
3539
3091
|
}
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
Content: React$1.ForwardRefExoticComponent<TabsContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3545
|
-
};
|
|
3092
|
+
/**
|
|
3093
|
+
* EmptyState Title component
|
|
3094
|
+
*/
|
|
3095
|
+
declare const EmptyStateTitle: React$1.ForwardRefExoticComponent<EmptyStateTitleProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
3546
3096
|
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
* Controlled value
|
|
3558
|
-
*/
|
|
3559
|
-
value?: string;
|
|
3560
|
-
/**
|
|
3561
|
-
* Default value for uncontrolled usage
|
|
3562
|
-
*/
|
|
3563
|
-
defaultValue?: string;
|
|
3564
|
-
/**
|
|
3565
|
-
* Callback when value changes
|
|
3566
|
-
*/
|
|
3567
|
-
onValueChange?: (value: string) => void;
|
|
3568
|
-
/**
|
|
3569
|
-
* Name for the radio group
|
|
3570
|
-
*/
|
|
3571
|
-
name?: string;
|
|
3572
|
-
}
|
|
3573
|
-
interface SegmentedControlItemProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "role">, VariantProps$1<typeof segmentedControlItemVariants> {
|
|
3574
|
-
/**
|
|
3575
|
-
* Value of this item
|
|
3576
|
-
*/
|
|
3577
|
-
value: string;
|
|
3097
|
+
/**
|
|
3098
|
+
* Table Component Types
|
|
3099
|
+
*
|
|
3100
|
+
* TypeScript interfaces and types for Table component.
|
|
3101
|
+
*/
|
|
3102
|
+
|
|
3103
|
+
/**
|
|
3104
|
+
* Table column definition
|
|
3105
|
+
*/
|
|
3106
|
+
interface TableColumn$1<T = Record<string, unknown>> {
|
|
3578
3107
|
/**
|
|
3579
|
-
*
|
|
3108
|
+
* Column key (must match a key in the data object)
|
|
3580
3109
|
*/
|
|
3581
|
-
|
|
3582
|
-
}
|
|
3583
|
-
declare const SegmentedControl: React$1.ForwardRefExoticComponent<SegmentedControlRootProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
3584
|
-
Root: React$1.ForwardRefExoticComponent<SegmentedControlRootProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3585
|
-
Item: React$1.ForwardRefExoticComponent<SegmentedControlItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3586
|
-
};
|
|
3587
|
-
|
|
3588
|
-
interface BreadcrumbItem {
|
|
3110
|
+
key: keyof T;
|
|
3589
3111
|
/**
|
|
3590
|
-
*
|
|
3112
|
+
* Column header title
|
|
3591
3113
|
*/
|
|
3592
|
-
|
|
3114
|
+
title: string;
|
|
3593
3115
|
/**
|
|
3594
|
-
*
|
|
3116
|
+
* Custom render function for cell content
|
|
3595
3117
|
*/
|
|
3596
|
-
|
|
3118
|
+
render?: (value: T[keyof T], item: T, index: number) => ReactNode;
|
|
3597
3119
|
/**
|
|
3598
|
-
*
|
|
3120
|
+
* Column alignment
|
|
3121
|
+
* @default "left"
|
|
3599
3122
|
*/
|
|
3600
|
-
|
|
3601
|
-
}
|
|
3602
|
-
interface BreadcrumbsRootProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
3123
|
+
align?: "left" | "center" | "right";
|
|
3603
3124
|
/**
|
|
3604
|
-
*
|
|
3125
|
+
* Column width (CSS value or Tailwind class)
|
|
3605
3126
|
*/
|
|
3606
|
-
|
|
3127
|
+
width?: string;
|
|
3607
3128
|
/**
|
|
3608
|
-
*
|
|
3609
|
-
* @default
|
|
3129
|
+
* Whether column is sortable
|
|
3130
|
+
* @default false
|
|
3610
3131
|
*/
|
|
3611
|
-
|
|
3132
|
+
sortable?: boolean;
|
|
3612
3133
|
/**
|
|
3613
|
-
*
|
|
3614
|
-
* @default "
|
|
3134
|
+
* Cell size
|
|
3135
|
+
* @default "md"
|
|
3615
3136
|
*/
|
|
3616
|
-
|
|
3137
|
+
size?: "sm" | "md" | "lg";
|
|
3617
3138
|
}
|
|
3618
|
-
|
|
3139
|
+
/**
|
|
3140
|
+
* Sort direction
|
|
3141
|
+
*/
|
|
3142
|
+
type SortDirection = "asc" | "desc" | null;
|
|
3143
|
+
/**
|
|
3144
|
+
* Sort state
|
|
3145
|
+
*/
|
|
3146
|
+
interface SortState {
|
|
3619
3147
|
/**
|
|
3620
|
-
*
|
|
3148
|
+
* Column key being sorted
|
|
3621
3149
|
*/
|
|
3622
|
-
|
|
3150
|
+
column: string | null;
|
|
3623
3151
|
/**
|
|
3624
|
-
*
|
|
3152
|
+
* Sort direction
|
|
3625
3153
|
*/
|
|
3626
|
-
|
|
3154
|
+
direction: SortDirection;
|
|
3627
3155
|
}
|
|
3628
|
-
|
|
3156
|
+
/**
|
|
3157
|
+
* Table context value
|
|
3158
|
+
*/
|
|
3159
|
+
interface TableContextValue {
|
|
3629
3160
|
/**
|
|
3630
|
-
*
|
|
3161
|
+
* Current sort state
|
|
3631
3162
|
*/
|
|
3632
|
-
|
|
3633
|
-
}
|
|
3634
|
-
declare const Breadcrumbs: React$1.ForwardRefExoticComponent<BreadcrumbsRootProps & React$1.RefAttributes<HTMLElement>> & {
|
|
3635
|
-
Root: React$1.ForwardRefExoticComponent<BreadcrumbsRootProps & React$1.RefAttributes<HTMLElement>>;
|
|
3636
|
-
Item: React$1.ForwardRefExoticComponent<BreadcrumbsItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
3637
|
-
Separator: React$1.ForwardRefExoticComponent<BreadcrumbsSeparatorProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
3638
|
-
};
|
|
3639
|
-
|
|
3640
|
-
interface PaginationRootProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
3163
|
+
sortState: SortState;
|
|
3641
3164
|
/**
|
|
3642
|
-
*
|
|
3165
|
+
* Set sort state
|
|
3643
3166
|
*/
|
|
3644
|
-
|
|
3167
|
+
setSortState: (state: SortState) => void;
|
|
3645
3168
|
/**
|
|
3646
|
-
*
|
|
3169
|
+
* Expanded rows (for expandable rows)
|
|
3647
3170
|
*/
|
|
3648
|
-
|
|
3171
|
+
expandedRows: Set<string | number>;
|
|
3649
3172
|
/**
|
|
3650
|
-
*
|
|
3173
|
+
* Toggle row expansion
|
|
3651
3174
|
*/
|
|
3652
|
-
|
|
3175
|
+
toggleRow: (rowKey: string | number) => void;
|
|
3653
3176
|
/**
|
|
3654
|
-
*
|
|
3655
|
-
* @default 2
|
|
3177
|
+
* Whether table has expandable rows
|
|
3656
3178
|
*/
|
|
3657
|
-
|
|
3179
|
+
expandable?: boolean;
|
|
3658
3180
|
/**
|
|
3659
|
-
*
|
|
3660
|
-
* @default "Pagination"
|
|
3181
|
+
* Render function for expandable content
|
|
3661
3182
|
*/
|
|
3662
|
-
|
|
3183
|
+
renderExpandableContent?: (item: unknown, index: number) => ReactNode;
|
|
3663
3184
|
}
|
|
3664
|
-
|
|
3185
|
+
/**
|
|
3186
|
+
* Table Root component props
|
|
3187
|
+
*/
|
|
3188
|
+
interface TableRootProps<T = Record<string, unknown>> extends React.HTMLAttributes<HTMLTableElement> {
|
|
3665
3189
|
/**
|
|
3666
|
-
*
|
|
3190
|
+
* Table data array
|
|
3667
3191
|
*/
|
|
3668
|
-
|
|
3192
|
+
data: T[];
|
|
3669
3193
|
/**
|
|
3670
|
-
*
|
|
3194
|
+
* Column definitions
|
|
3671
3195
|
*/
|
|
3672
|
-
|
|
3196
|
+
columns: TableColumn$1<T>[];
|
|
3673
3197
|
/**
|
|
3674
|
-
*
|
|
3198
|
+
* Key to use for row identification
|
|
3675
3199
|
*/
|
|
3676
|
-
|
|
3677
|
-
}
|
|
3678
|
-
interface PaginationPrevProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3200
|
+
rowKey: keyof T | ((item: T, index: number) => string | number);
|
|
3679
3201
|
/**
|
|
3680
|
-
* Whether
|
|
3202
|
+
* Whether table supports sorting
|
|
3203
|
+
* @default false
|
|
3681
3204
|
*/
|
|
3682
|
-
|
|
3683
|
-
}
|
|
3684
|
-
interface PaginationNextProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3205
|
+
sortable?: boolean;
|
|
3685
3206
|
/**
|
|
3686
|
-
* Whether
|
|
3207
|
+
* Whether table supports expandable rows
|
|
3208
|
+
* @default false
|
|
3687
3209
|
*/
|
|
3688
|
-
|
|
3689
|
-
}
|
|
3690
|
-
interface PaginationEllipsisProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
3691
|
-
}
|
|
3692
|
-
declare const Pagination: React$1.ForwardRefExoticComponent<PaginationRootProps & React$1.RefAttributes<HTMLElement>> & {
|
|
3693
|
-
Root: React$1.ForwardRefExoticComponent<PaginationRootProps & React$1.RefAttributes<HTMLElement>>;
|
|
3694
|
-
Item: React$1.ForwardRefExoticComponent<PaginationItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3695
|
-
Prev: React$1.ForwardRefExoticComponent<PaginationPrevProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3696
|
-
Next: React$1.ForwardRefExoticComponent<PaginationNextProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3697
|
-
Ellipsis: React$1.ForwardRefExoticComponent<PaginationEllipsisProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
3698
|
-
};
|
|
3699
|
-
|
|
3700
|
-
interface StepperStep {
|
|
3210
|
+
expandable?: boolean;
|
|
3701
3211
|
/**
|
|
3702
|
-
*
|
|
3212
|
+
* Render function for expandable content
|
|
3703
3213
|
*/
|
|
3704
|
-
|
|
3214
|
+
renderExpandableContent?: (item: T, index: number) => ReactNode;
|
|
3705
3215
|
/**
|
|
3706
|
-
*
|
|
3216
|
+
* Whether table is in loading state
|
|
3217
|
+
* @default false
|
|
3707
3218
|
*/
|
|
3708
|
-
|
|
3219
|
+
loading?: boolean;
|
|
3709
3220
|
/**
|
|
3710
|
-
*
|
|
3221
|
+
* Empty state message (shown when data is empty)
|
|
3711
3222
|
*/
|
|
3712
|
-
|
|
3223
|
+
emptyMessage?: string;
|
|
3713
3224
|
/**
|
|
3714
|
-
*
|
|
3225
|
+
* Whether header is sticky
|
|
3226
|
+
* @default false
|
|
3715
3227
|
*/
|
|
3716
|
-
|
|
3228
|
+
stickyHeader?: boolean;
|
|
3717
3229
|
/**
|
|
3718
|
-
*
|
|
3230
|
+
* Row size
|
|
3231
|
+
* @default "md"
|
|
3719
3232
|
*/
|
|
3720
|
-
|
|
3233
|
+
rowSize?: "sm" | "md" | "lg";
|
|
3721
3234
|
}
|
|
3722
|
-
|
|
3235
|
+
/**
|
|
3236
|
+
* Table Header component props
|
|
3237
|
+
*/
|
|
3238
|
+
interface TableHeaderProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
3723
3239
|
/**
|
|
3724
|
-
*
|
|
3240
|
+
* Whether header is sticky
|
|
3241
|
+
* @default false
|
|
3725
3242
|
*/
|
|
3726
|
-
|
|
3243
|
+
sticky?: boolean;
|
|
3244
|
+
}
|
|
3245
|
+
/**
|
|
3246
|
+
* Table Head component props
|
|
3247
|
+
*/
|
|
3248
|
+
interface TableHeadProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
3727
3249
|
/**
|
|
3728
|
-
*
|
|
3250
|
+
* Column alignment
|
|
3251
|
+
* @default "left"
|
|
3729
3252
|
*/
|
|
3730
|
-
|
|
3253
|
+
align?: "left" | "center" | "right";
|
|
3731
3254
|
/**
|
|
3732
|
-
*
|
|
3733
|
-
* @default
|
|
3255
|
+
* Whether column is sortable
|
|
3256
|
+
* @default false
|
|
3734
3257
|
*/
|
|
3735
|
-
|
|
3258
|
+
sortable?: boolean;
|
|
3736
3259
|
/**
|
|
3737
|
-
*
|
|
3738
|
-
* @default true
|
|
3260
|
+
* Column key (for sorting)
|
|
3739
3261
|
*/
|
|
3740
|
-
|
|
3741
|
-
}
|
|
3742
|
-
interface StepperItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3262
|
+
columnKey?: string;
|
|
3743
3263
|
/**
|
|
3744
|
-
*
|
|
3264
|
+
* Cell size
|
|
3265
|
+
* @default "md"
|
|
3745
3266
|
*/
|
|
3746
|
-
|
|
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> {
|
|
3747
3278
|
/**
|
|
3748
|
-
*
|
|
3279
|
+
* Whether row is selected
|
|
3280
|
+
* @default false
|
|
3749
3281
|
*/
|
|
3750
|
-
|
|
3282
|
+
selected?: boolean;
|
|
3751
3283
|
/**
|
|
3752
|
-
* Whether
|
|
3284
|
+
* Whether row is expandable
|
|
3285
|
+
* @default false
|
|
3753
3286
|
*/
|
|
3754
|
-
|
|
3287
|
+
expandable?: boolean;
|
|
3755
3288
|
/**
|
|
3756
|
-
*
|
|
3289
|
+
* Row key (for expansion tracking)
|
|
3757
3290
|
*/
|
|
3758
|
-
|
|
3291
|
+
rowKey?: string | number;
|
|
3759
3292
|
/**
|
|
3760
|
-
* Whether
|
|
3293
|
+
* Whether row is expanded
|
|
3294
|
+
* @default false
|
|
3761
3295
|
*/
|
|
3762
|
-
|
|
3296
|
+
expanded?: boolean;
|
|
3763
3297
|
}
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
index: number;
|
|
3298
|
+
/**
|
|
3299
|
+
* Table Cell component props
|
|
3300
|
+
*/
|
|
3301
|
+
interface TableCellProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
3769
3302
|
/**
|
|
3770
|
-
*
|
|
3303
|
+
* Cell alignment
|
|
3304
|
+
* @default "left"
|
|
3771
3305
|
*/
|
|
3772
|
-
|
|
3306
|
+
align?: "left" | "center" | "right";
|
|
3773
3307
|
/**
|
|
3774
|
-
*
|
|
3308
|
+
* Cell size
|
|
3309
|
+
* @default "md"
|
|
3775
3310
|
*/
|
|
3776
|
-
|
|
3311
|
+
size?: "sm" | "md" | "lg";
|
|
3312
|
+
}
|
|
3313
|
+
/**
|
|
3314
|
+
* Table SortIcon component props
|
|
3315
|
+
*/
|
|
3316
|
+
interface TableSortIconProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3777
3317
|
/**
|
|
3778
|
-
*
|
|
3318
|
+
* Sort direction
|
|
3779
3319
|
*/
|
|
3780
|
-
|
|
3320
|
+
direction: SortDirection;
|
|
3321
|
+
}
|
|
3322
|
+
/**
|
|
3323
|
+
* Table Empty component props
|
|
3324
|
+
*/
|
|
3325
|
+
interface TableEmptyProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
3781
3326
|
/**
|
|
3782
|
-
*
|
|
3327
|
+
* Number of columns to span
|
|
3783
3328
|
*/
|
|
3784
|
-
|
|
3329
|
+
colSpan: number;
|
|
3785
3330
|
/**
|
|
3786
|
-
*
|
|
3331
|
+
* Empty message
|
|
3787
3332
|
*/
|
|
3788
|
-
|
|
3333
|
+
message?: string;
|
|
3789
3334
|
}
|
|
3790
|
-
|
|
3335
|
+
/**
|
|
3336
|
+
* Table LoadingState component props
|
|
3337
|
+
*/
|
|
3338
|
+
interface TableLoadingStateProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
3791
3339
|
/**
|
|
3792
|
-
*
|
|
3340
|
+
* Number of columns to span
|
|
3793
3341
|
*/
|
|
3794
|
-
|
|
3342
|
+
colSpan: number;
|
|
3795
3343
|
/**
|
|
3796
|
-
*
|
|
3344
|
+
* Number of skeleton rows to show
|
|
3345
|
+
* @default 5
|
|
3797
3346
|
*/
|
|
3798
|
-
|
|
3347
|
+
rows?: number;
|
|
3348
|
+
}
|
|
3349
|
+
/**
|
|
3350
|
+
* Table ExpandableContent component props
|
|
3351
|
+
*/
|
|
3352
|
+
interface TableExpandableContentProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
3799
3353
|
/**
|
|
3800
|
-
*
|
|
3354
|
+
* Number of columns to span
|
|
3801
3355
|
*/
|
|
3802
|
-
|
|
3803
|
-
}
|
|
3804
|
-
interface StepperContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
3356
|
+
colSpan: number;
|
|
3805
3357
|
/**
|
|
3806
|
-
*
|
|
3358
|
+
* Whether content is expanded
|
|
3807
3359
|
*/
|
|
3808
|
-
|
|
3360
|
+
expanded: boolean;
|
|
3809
3361
|
/**
|
|
3810
|
-
*
|
|
3362
|
+
* Content to render
|
|
3811
3363
|
*/
|
|
3812
|
-
|
|
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;
|
|
3813
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
|
+
|
|
3814
3421
|
/**
|
|
3815
|
-
*
|
|
3422
|
+
* Table Empty Component
|
|
3423
|
+
*
|
|
3424
|
+
* Empty state row for table (uses EmptyState component).
|
|
3816
3425
|
*/
|
|
3817
|
-
|
|
3818
|
-
|
|
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;
|
|
3819
3501
|
}
|
|
3820
|
-
declare const Stepper: React$1.ForwardRefExoticComponent<StepperRootProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
3821
|
-
Root: React$1.ForwardRefExoticComponent<StepperRootProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3822
|
-
Item: React$1.ForwardRefExoticComponent<StepperItemPropsInternal & React$1.RefAttributes<HTMLDivElement>>;
|
|
3823
|
-
Indicator: React$1.ForwardRefExoticComponent<StepperIndicatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3824
|
-
Label: React$1.ForwardRefExoticComponent<StepperLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3825
|
-
Content: React$1.ForwardRefExoticComponent<StepperContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3826
|
-
};
|
|
3827
3502
|
|
|
3828
3503
|
/**
|
|
3829
3504
|
* Icon Props Interface
|
|
@@ -4000,6 +3675,90 @@ interface ComponentAnimationConfig {
|
|
|
4000
3675
|
animationProps?: AnimationProps;
|
|
4001
3676
|
}
|
|
4002
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
|
+
|
|
4003
3762
|
/**
|
|
4004
3763
|
* ArtistCard Size Variant
|
|
4005
3764
|
*/
|
|
@@ -4257,88 +4016,4 @@ interface TicketCardProps {
|
|
|
4257
4016
|
*/
|
|
4258
4017
|
declare const TicketCard: React$1.ForwardRefExoticComponent<TicketCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
4259
4018
|
|
|
4260
|
-
|
|
4261
|
-
* EventCard Size Variant
|
|
4262
|
-
* Controls padding, spacing, and overall card dimensions
|
|
4263
|
-
*/
|
|
4264
|
-
type EventCardSize = "default" | "compact";
|
|
4265
|
-
/**
|
|
4266
|
-
* EventCard Layout Variant
|
|
4267
|
-
* Controls card layout orientation
|
|
4268
|
-
*/
|
|
4269
|
-
type EventCardLayout = "vertical";
|
|
4270
|
-
/**
|
|
4271
|
-
* EventCard Style Variant
|
|
4272
|
-
* Controls visual appearance and featured state
|
|
4273
|
-
*/
|
|
4274
|
-
type EventCardVariant = "default" | "featured";
|
|
4275
|
-
/**
|
|
4276
|
-
* Props for EventCard component.
|
|
4277
|
-
* All props are flat and domain-agnostic. Consumer should provide pre-localized strings.
|
|
4278
|
-
*
|
|
4279
|
-
* Component uses CARD_TOKENS and DOMAIN_TOKENS for all styling.
|
|
4280
|
-
* All visual values come from tokens - no hardcoded Tailwind classes.
|
|
4281
|
-
*/
|
|
4282
|
-
interface EventCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
4283
|
-
/** Event title (pre-localized string) */
|
|
4284
|
-
title: string;
|
|
4285
|
-
/** Event description (pre-localized string, optional) */
|
|
4286
|
-
description?: string;
|
|
4287
|
-
/** Event date/time display string (pre-formatted, optional) */
|
|
4288
|
-
date?: string;
|
|
4289
|
-
/** Venue name (pre-localized string, optional) */
|
|
4290
|
-
venueName?: string;
|
|
4291
|
-
/** Price display string with currency (e.g., "€20 - €50", optional) */
|
|
4292
|
-
price?: string;
|
|
4293
|
-
/** Image URL (optional) */
|
|
4294
|
-
imageUrl?: string;
|
|
4295
|
-
/** Link URL for event details page (optional) */
|
|
4296
|
-
href?: string;
|
|
4297
|
-
/** External ticket purchase URL (optional) */
|
|
4298
|
-
ticketUrl?: string;
|
|
4299
|
-
/** Whether this is a featured event */
|
|
4300
|
-
featured?: boolean;
|
|
4301
|
-
/** Show image section */
|
|
4302
|
-
showImage?: boolean;
|
|
4303
|
-
/** Label for "Get Tickets" button (required) */
|
|
4304
|
-
getTicketsLabel: string;
|
|
4305
|
-
/** Badge text for featured events (optional) */
|
|
4306
|
-
featuredBadgeText?: string;
|
|
4307
|
-
/** Size variant - controls padding and spacing */
|
|
4308
|
-
size?: EventCardSize;
|
|
4309
|
-
/** Layout variant - controls card layout orientation */
|
|
4310
|
-
layout?: EventCardLayout;
|
|
4311
|
-
/** Style variant - controls visual appearance */
|
|
4312
|
-
variant?: EventCardVariant;
|
|
4313
|
-
/** Additional CSS classes */
|
|
4314
|
-
className?: string;
|
|
4315
|
-
/** Animation configuration for entrance and hover animations */
|
|
4316
|
-
animation?: ComponentAnimationConfig;
|
|
4317
|
-
}
|
|
4318
|
-
|
|
4319
|
-
/**
|
|
4320
|
-
* EventCard Component
|
|
4321
|
-
*
|
|
4322
|
-
* Domain-specific card component for displaying event information.
|
|
4323
|
-
* Uses CardBase for layout and CARD_TOKENS + DOMAIN_TOKENS for all styling.
|
|
4324
|
-
* All visual values come from tokens - no hardcoded Tailwind visual classes.
|
|
4325
|
-
*
|
|
4326
|
-
* Architecture:
|
|
4327
|
-
* - Uses CVA variants for size and layout variants
|
|
4328
|
-
* - All spacing, colors, radius from tokens
|
|
4329
|
-
* - Semantic HTML elements (heading, time, address)
|
|
4330
|
-
* - Full accessibility support
|
|
4331
|
-
*
|
|
4332
|
-
* @example
|
|
4333
|
-
* ```tsx
|
|
4334
|
-
* <EventCard
|
|
4335
|
-
* title="Concert"
|
|
4336
|
-
* date="2024-01-01"
|
|
4337
|
-
* venueName="Venue"
|
|
4338
|
-
* getTicketsLabel="Get Tickets"
|
|
4339
|
-
* />
|
|
4340
|
-
* ```
|
|
4341
|
-
*/
|
|
4342
|
-
declare const EventCard: React$1.ForwardRefExoticComponent<EventCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
4343
|
-
|
|
4344
|
-
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, 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, 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 };
|