@tenerife.music/ui 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -1
- package/dist/extensions/next/index.cjs +3 -1
- package/dist/extensions/next/index.mjs +3 -1
- package/dist/{index-CfbBwBhc.d.cts → index-D4Dqp9Zs.d.cts} +91 -3
- package/dist/{index-CfbBwBhc.d.ts → index-D4Dqp9Zs.d.ts} +91 -3
- package/dist/index.cjs +5488 -3670
- package/dist/index.d.cts +4231 -2207
- package/dist/index.d.ts +4231 -2207
- package/dist/index.mjs +5411 -3646
- package/dist/styles.css +110 -6
- package/dist/tokens/index.cjs +78 -83
- package/dist/tokens/index.d.cts +2 -87
- package/dist/tokens/index.d.ts +2 -87
- package/dist/tokens/index.mjs +78 -83
- package/package.json +67 -60
package/README.md
CHANGED
|
@@ -4,12 +4,15 @@
|
|
|
4
4
|
Strict. Predictable. Built for system-level consistency.
|
|
5
5
|
|
|
6
6
|

|
|
7
|
-

|
|
8
8
|

|
|
9
9
|

|
|
10
10
|

|
|
11
11
|

|
|
12
12
|
|
|
13
|
+
**Current Release:** [v2.0.3](CHANGELOG.md#203---2025-12-31) (npm)
|
|
14
|
+
**Next Release:** v2.0.4 (Unreleased) — See [CHANGELOG](CHANGELOG.md#unreleased)
|
|
15
|
+
|
|
13
16
|
<p align="center">
|
|
14
17
|
<img src="https://raw.githubusercontent.com/Tureckiy-zart/tenerife-ui/main/.github/banner.png" width="100%" alt="TUI Banner" />
|
|
15
18
|
</p>
|
|
@@ -248,6 +251,24 @@ Contributions are welcome **within the boundaries of the system**.
|
|
|
248
251
|
|
|
249
252
|
Architectural discussions take precedence over visual changes.
|
|
250
253
|
|
|
254
|
+
### Release Discipline
|
|
255
|
+
|
|
256
|
+
This project follows strict version canon synchronization rules:
|
|
257
|
+
|
|
258
|
+
- **npm registry** (`@tenerife.music/ui`) is the single source of truth for published versions
|
|
259
|
+
- Only versions published to npm may appear in CHANGELOG with publication dates
|
|
260
|
+
- Unreleased versions must be labeled as `[Unreleased]`, not as current version
|
|
261
|
+
- All releases must go through the automated release process (no manual edits)
|
|
262
|
+
|
|
263
|
+
**Verify versions:**
|
|
264
|
+
|
|
265
|
+
```bash
|
|
266
|
+
npm view @tenerife.music/ui version
|
|
267
|
+
npm view @tenerife.music/ui versions --json
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
See [CHANGELOG Version Canon Rules](CHANGELOG.md#version-canon-rules) and [Release Process](docs/RELEASE_PROCESS.md) for details.
|
|
271
|
+
|
|
251
272
|
### Creating New Components
|
|
252
273
|
|
|
253
274
|
To create a new Extension component:
|
|
@@ -294,6 +294,8 @@ var LINK_TOKENS = {
|
|
|
294
294
|
}
|
|
295
295
|
},
|
|
296
296
|
ghost: {
|
|
297
|
+
background: "bg-muted/10",
|
|
298
|
+
// Light background for better contrast on dark surfaces
|
|
297
299
|
text: "text-foreground",
|
|
298
300
|
// Foreground text using CSS var
|
|
299
301
|
hover: {
|
|
@@ -332,7 +334,7 @@ var linkVariants = tokenCVA({
|
|
|
332
334
|
secondary: `${LINK_TOKENS.variant.secondary.text} ${LINK_TOKENS.underlineOffset} ${LINK_TOKENS.variant.secondary.hover}`,
|
|
333
335
|
accent: `${LINK_TOKENS.variant.accent.text} ${LINK_TOKENS.variant.accent.hover} ${LINK_TOKENS.underlineOffset} ${LINK_TOKENS.variant.accent.underline}`,
|
|
334
336
|
outline: `${LINK_TOKENS.variant.outline.border} ${LINK_TOKENS.variant.outline.background} ${LINK_TOKENS.variant.outline.text} ${LINK_TOKENS.radius} ${LINK_TOKENS.variant.outline.hover.background} ${LINK_TOKENS.variant.outline.hover.text}`,
|
|
335
|
-
ghost: `${LINK_TOKENS.variant.ghost.text} ${LINK_TOKENS.variant.ghost.hover.background} ${LINK_TOKENS.variant.ghost.hover.text} ${LINK_TOKENS.radius}`,
|
|
337
|
+
ghost: `${LINK_TOKENS.variant.ghost.background} ${LINK_TOKENS.variant.ghost.text} ${LINK_TOKENS.variant.ghost.hover.background} ${LINK_TOKENS.variant.ghost.hover.text} ${LINK_TOKENS.radius}`,
|
|
336
338
|
link: `${LINK_TOKENS.variant.link.text} ${LINK_TOKENS.underlineOffset} ${LINK_TOKENS.variant.link.hover}`,
|
|
337
339
|
destructive: `${LINK_TOKENS.variant.destructive.text} ${LINK_TOKENS.variant.destructive.hover} ${LINK_TOKENS.underlineOffset} ${LINK_TOKENS.variant.destructive.underline}`
|
|
338
340
|
},
|
|
@@ -269,6 +269,8 @@ var LINK_TOKENS = {
|
|
|
269
269
|
}
|
|
270
270
|
},
|
|
271
271
|
ghost: {
|
|
272
|
+
background: "bg-muted/10",
|
|
273
|
+
// Light background for better contrast on dark surfaces
|
|
272
274
|
text: "text-foreground",
|
|
273
275
|
// Foreground text using CSS var
|
|
274
276
|
hover: {
|
|
@@ -307,7 +309,7 @@ var linkVariants = tokenCVA({
|
|
|
307
309
|
secondary: `${LINK_TOKENS.variant.secondary.text} ${LINK_TOKENS.underlineOffset} ${LINK_TOKENS.variant.secondary.hover}`,
|
|
308
310
|
accent: `${LINK_TOKENS.variant.accent.text} ${LINK_TOKENS.variant.accent.hover} ${LINK_TOKENS.underlineOffset} ${LINK_TOKENS.variant.accent.underline}`,
|
|
309
311
|
outline: `${LINK_TOKENS.variant.outline.border} ${LINK_TOKENS.variant.outline.background} ${LINK_TOKENS.variant.outline.text} ${LINK_TOKENS.radius} ${LINK_TOKENS.variant.outline.hover.background} ${LINK_TOKENS.variant.outline.hover.text}`,
|
|
310
|
-
ghost: `${LINK_TOKENS.variant.ghost.text} ${LINK_TOKENS.variant.ghost.hover.background} ${LINK_TOKENS.variant.ghost.hover.text} ${LINK_TOKENS.radius}`,
|
|
312
|
+
ghost: `${LINK_TOKENS.variant.ghost.background} ${LINK_TOKENS.variant.ghost.text} ${LINK_TOKENS.variant.ghost.hover.background} ${LINK_TOKENS.variant.ghost.hover.text} ${LINK_TOKENS.radius}`,
|
|
311
313
|
link: `${LINK_TOKENS.variant.link.text} ${LINK_TOKENS.underlineOffset} ${LINK_TOKENS.variant.link.hover}`,
|
|
312
314
|
destructive: `${LINK_TOKENS.variant.destructive.text} ${LINK_TOKENS.variant.destructive.hover} ${LINK_TOKENS.underlineOffset} ${LINK_TOKENS.variant.destructive.underline}`
|
|
313
315
|
},
|
|
@@ -297,7 +297,7 @@ declare const BUTTON_TOKENS: {
|
|
|
297
297
|
};
|
|
298
298
|
};
|
|
299
299
|
readonly ghost: {
|
|
300
|
-
readonly background: "bg-
|
|
300
|
+
readonly background: "bg-muted/10";
|
|
301
301
|
readonly text: "text-foreground";
|
|
302
302
|
readonly hover: {
|
|
303
303
|
readonly background: "hover:bg-[hsl(var(--button-ghost-hover-bg))]";
|
|
@@ -1325,7 +1325,7 @@ declare const SURFACE_TOKENS: {
|
|
|
1325
1325
|
readonly padding: "p-md";
|
|
1326
1326
|
readonly radius: "rounded-md";
|
|
1327
1327
|
readonly shadow: "shadow-none";
|
|
1328
|
-
readonly bg: "bg-muted/
|
|
1328
|
+
readonly bg: "bg-muted/30";
|
|
1329
1329
|
readonly border: "border border-border/50";
|
|
1330
1330
|
};
|
|
1331
1331
|
};
|
|
@@ -1338,6 +1338,90 @@ type SurfaceRadius = keyof typeof SURFACE_TOKENS.radius;
|
|
|
1338
1338
|
type SurfaceShadow = keyof typeof SURFACE_TOKENS.shadow;
|
|
1339
1339
|
type SurfaceVariant = keyof typeof SURFACE_TOKENS.variant;
|
|
1340
1340
|
|
|
1341
|
+
/**
|
|
1342
|
+
* Panel Component Tokens
|
|
1343
|
+
*
|
|
1344
|
+
* Component-level design tokens for Panel component.
|
|
1345
|
+
* Maps foundation tokens (spacing, radius, shadows) to panel-specific usage.
|
|
1346
|
+
*
|
|
1347
|
+
* Panel is a lightweight structural surface container that sits between Box and Card
|
|
1348
|
+
* in semantic hierarchy. Panel provides surface styling without interactivity.
|
|
1349
|
+
*
|
|
1350
|
+
* Panel tokens are designed to be lighter than Card tokens (lower elevation, subtler styling).
|
|
1351
|
+
*/
|
|
1352
|
+
/**
|
|
1353
|
+
* Panel Component Tokens
|
|
1354
|
+
*
|
|
1355
|
+
* Defines spacing, radius, tone, background, border, and shadow tokens for Panel component.
|
|
1356
|
+
* Values are mapped to Tailwind utility classes for direct use.
|
|
1357
|
+
* Uses surface tone variants: default, muted, subtle.
|
|
1358
|
+
*/
|
|
1359
|
+
declare const PANEL_TOKENS: {
|
|
1360
|
+
/**
|
|
1361
|
+
* Padding values for panels
|
|
1362
|
+
* Maps to semantic spacing tokens
|
|
1363
|
+
*/
|
|
1364
|
+
readonly padding: {
|
|
1365
|
+
readonly sm: "p-sm";
|
|
1366
|
+
readonly md: "p-md";
|
|
1367
|
+
readonly lg: "p-lg";
|
|
1368
|
+
};
|
|
1369
|
+
/**
|
|
1370
|
+
* Border radius for panels
|
|
1371
|
+
* Maps to borderRadius scale
|
|
1372
|
+
*/
|
|
1373
|
+
readonly radius: {
|
|
1374
|
+
readonly sm: "rounded-sm";
|
|
1375
|
+
readonly md: "rounded-md";
|
|
1376
|
+
readonly lg: "rounded-lg";
|
|
1377
|
+
readonly xl: "rounded-xl";
|
|
1378
|
+
};
|
|
1379
|
+
/**
|
|
1380
|
+
* Shadow tokens for panels
|
|
1381
|
+
* Panel shadows are minimal or none (below Card elevation)
|
|
1382
|
+
* Card uses shadow/shadow-sm/shadow-md, Panel uses shadow-none or shadow-xs
|
|
1383
|
+
*/
|
|
1384
|
+
readonly shadow: {
|
|
1385
|
+
readonly none: "shadow-none";
|
|
1386
|
+
readonly xs: "shadow-xs";
|
|
1387
|
+
};
|
|
1388
|
+
/**
|
|
1389
|
+
* Tone-based token structure
|
|
1390
|
+
* Organized by tone for easy access
|
|
1391
|
+
* Uses surface tone variants: default, muted, subtle
|
|
1392
|
+
*/
|
|
1393
|
+
readonly tone: {
|
|
1394
|
+
readonly default: {
|
|
1395
|
+
readonly padding: "p-md";
|
|
1396
|
+
readonly radius: "rounded-md";
|
|
1397
|
+
readonly shadow: "shadow-none";
|
|
1398
|
+
readonly bg: "bg-background";
|
|
1399
|
+
readonly border: "border border-border";
|
|
1400
|
+
};
|
|
1401
|
+
readonly muted: {
|
|
1402
|
+
readonly padding: "p-md";
|
|
1403
|
+
readonly radius: "rounded-md";
|
|
1404
|
+
readonly shadow: "shadow-none";
|
|
1405
|
+
readonly bg: "bg-muted";
|
|
1406
|
+
readonly border: "border border-border";
|
|
1407
|
+
};
|
|
1408
|
+
readonly subtle: {
|
|
1409
|
+
readonly padding: "p-md";
|
|
1410
|
+
readonly radius: "rounded-md";
|
|
1411
|
+
readonly shadow: "shadow-none";
|
|
1412
|
+
readonly bg: "bg-muted/50";
|
|
1413
|
+
readonly border: "border border-border/50";
|
|
1414
|
+
};
|
|
1415
|
+
};
|
|
1416
|
+
};
|
|
1417
|
+
/**
|
|
1418
|
+
* Type exports for Panel tokens
|
|
1419
|
+
*/
|
|
1420
|
+
type PanelPadding = keyof typeof PANEL_TOKENS.padding;
|
|
1421
|
+
type PanelRadius = keyof typeof PANEL_TOKENS.radius;
|
|
1422
|
+
type PanelShadow = keyof typeof PANEL_TOKENS.shadow;
|
|
1423
|
+
type PanelTone = keyof typeof PANEL_TOKENS.tone;
|
|
1424
|
+
|
|
1341
1425
|
/**
|
|
1342
1426
|
* Text Component Tokens
|
|
1343
1427
|
*
|
|
@@ -2228,6 +2312,10 @@ declare const MENU_TOKENS: {
|
|
|
2228
2312
|
readonly md: "h-10";
|
|
2229
2313
|
readonly lg: "h-12";
|
|
2230
2314
|
};
|
|
2315
|
+
readonly focus: {
|
|
2316
|
+
readonly background: "focus-visible:bg-accent/10";
|
|
2317
|
+
readonly text: "focus-visible:text-accent-foreground";
|
|
2318
|
+
};
|
|
2231
2319
|
};
|
|
2232
2320
|
/**
|
|
2233
2321
|
* Menu content tokens by size
|
|
@@ -6134,4 +6222,4 @@ type ResponsiveContextMenuSize = Responsive<ContextMenuSizeToken>;
|
|
|
6134
6222
|
*/
|
|
6135
6223
|
type ResponsiveContextMenuWidth = Responsive<ContextMenuWidthToken>;
|
|
6136
6224
|
|
|
6137
|
-
export { type
|
|
6225
|
+
export { type MenuIndicatorSize as $, ALERT_TOKENS as A, BUTTON_TOKENS as B, CARD_TOKENS as C, DATA_TOKENS as D, type EmptyStateIconSize as E, type IconColor as F, type IconSize as G, type IconStroke as H, ICON_TOKENS as I, type InputFontSize as J, type InputHeight as K, type InputPaddingHorizontal as L, MENU_TOKENS as M, NAVIGATION_TOKENS as N, OVERLAY_TOKENS as O, PANEL_TOKENS as P, type InputPaddingVertical as Q, RADIO_TOKENS as R, SECTION_TOKENS as S, TEXT_TOKENS as T, type InputRadius as U, type InputSize as V, type MenuContentMinWidth as W, type MenuContentPadding as X, type MenuContentRadius as Y, type MenuContentShadow as Z, type MenuIndicatorOffset as _, CHECKBOX_TOKENS as a, type TableGap as a$, type MenuItemGap as a0, type MenuItemHeight as a1, type MenuItemPadding as a2, type MenuItemRadius as a3, type MenuLabelPadding as a4, type MenuSeparatorMargin as a5, type MotionAnimation as a6, type MotionDuration$1 as a7, type MotionEasing$1 as a8, type MotionTransition$1 as a9, type SelectContentPadding as aA, type SelectContentRadius as aB, type SelectItemFontSize as aC, type SelectItemPaddingHorizontal as aD, type SelectItemPaddingVertical as aE, type SelectItemRadius as aF, type SelectLabelFontSize as aG, type SelectLabelPaddingHorizontal as aH, type SelectLabelPaddingVertical as aI, type SelectSeparatorMarginHorizontal as aJ, type SelectSeparatorMarginVertical as aK, type SelectTriggerFontSize as aL, type SelectTriggerHeight as aM, type SelectTriggerPaddingHorizontal as aN, type SelectTriggerPaddingVertical as aO, type SelectTriggerRadius as aP, type SkeletonAnimation as aQ, type SkeletonBackground as aR, type SkeletonVariant as aS, type SurfacePadding as aT, type SurfaceRadius as aU, type SurfaceShadow as aV, type SurfaceVariant as aW, type SwitchSize as aX, type SwitchState as aY, type SwitchVariant as aZ, type TableCellPadding as a_, type MotionTransitionPreset as aa, type NavigationItemPadding as ab, type NavigationListGap as ac, type NavigationRadius as ad, type NavigationShadow as ae, type NavigationSize as af, type NavigationState as ag, type NotificationPanelWidth as ah, type NotificationVariant as ai, type OverlayBackdropVariant as aj, type OverlayModalSize as ak, type PanelPadding as al, type PanelRadius as am, type PanelShadow as an, type PanelTone as ao, type PopoverArrowOffset as ap, type PopoverArrowSize as aq, type PopoverContentPadding as ar, type PopoverContentRadius as as, type PopoverContentShadow as at, type PopoverContentWidth as au, type RadioSize as av, type RadioState as aw, type RadioVariant as ax, type SectionGap as ay, type SectionPadding as az, DATA_LIST_TOKENS as b, type CanonicalFontSize as b$, type TableHeaderPadding as b0, type TableRowHeight as b1, type TableShadow as b2, type TextFontSize as b3, type TextFontWeight as b4, type TextLetterSpacing as b5, type TextLineHeight as b6, type ToastVariant as b7, type TooltipContentRadius as b8, type TooltipContentShadow as b9, type ColoredShadow as bA, type ElevationShadow as bB, type FocusRing as bC, type GlowEffect as bD, accentColoredShadows as bE, componentShadowMapping as bF, elevationShadows as bG, focusRings as bH, glowEffects as bI, primaryColoredShadows as bJ, shadowBase as bK, shadowCSSVariables as bL, shadowOpacity as bM, tailwindShadowConfig as bN, type ComponentSpacing as bO, type ContainerSpacing as bP, type GridSpacing as bQ, type SectionSpacing as bR, type SemanticSpacing as bS, type Spacing as bT, type StackSpacing as bU, layoutSpacing as bV, semanticSpacing as bW, spacing as bX, spacingCSSVariables as bY, tailwindSpacingConfig as bZ, UI_COLORS as b_, allCSSVariables as ba, allCSSVariablesCSS as bb, generateCSSVariablesCSS as bc, tokenSystemSummary as bd, type MotionCombinedType as be, type MotionDuration as bf, type MotionEasing as bg, type MotionSlideDirection as bh, type MotionTransition as bi, motionCSSVariables as bj, motionCombined as bk, motionDurations as bl, motionEasings as bm, motionFade as bn, motionReducedMotion as bo, motionScale as bp, motionSlide as bq, motionTailwindConfig as br, motionTransitionProperty as bs, motionTransitions as bt, type BorderRadius as bu, type ComponentRadius as bv, borderRadius as bw, componentRadius as bx, radiusCSSVariables as by, tailwindRadiusConfig as bz, INPUT_TOKENS as c, type ShadowToken as c$, type CanonicalFontWeight as c0, type CanonicalLetterSpacing as c1, type CanonicalLineHeight as c2, type CanonicalTextColor as c3, type FontFamily as c4, type FontSize as c5, type FontWeight as c6, type LetterSpacing as c7, type LineHeight as c8, type TextStyle as c9, type RadiusToken as cA, type ResponsiveAlignOffset as cB, type ResponsiveAnimationPreset as cC, type ResponsiveAspectRatio as cD, type ResponsiveColor as cE, type ResponsiveContainerMaxWidth as cF, type ResponsiveContainerPadding as cG, type ResponsiveDelay as cH, type ResponsiveFlexBasis as cI, type ResponsiveModalHeight as cJ, type ResponsiveModalSize as cK, type ResponsiveModalWidth as cL, type ResponsiveMotion as cM, type ResponsiveRadius as cN, type ResponsiveSelectSize as cO, type ResponsiveSelectWidth as cP, type ResponsiveShadow as cQ, type ResponsiveSideOffset as cR, type ResponsiveSpace as cS, type ResponsiveSurface as cT, type ResponsiveTextLineHeight as cU, type ResponsiveTextSize as cV, type ResponsiveTextWeight as cW, type SelectSizeToken as cX, type SelectStateToken as cY, type SelectVariantToken as cZ, type SelectWidthToken as c_, fontFamily as ca, fontSize as cb, fontSizeWithMd as cc, fontWeight as cd, letterSpacing as ce, lineHeight as cf, tailwindTypographyConfig as cg, textStyles as ch, typographyCSSVariables as ci, type AlignOffsetToken as cj, type AnimationPresetToken as ck, type AspectRatioToken as cl, type ColorToken as cm, type ContainerMaxWidthToken as cn, type ContainerPaddingToken as co, type DelayToken as cp, type FlexBasisToken as cq, type LayoutSpaceToken as cr, type ModalFooterAlignToken as cs, type ModalHeightToken as ct, type ModalSizeToken as cu, type ModalWidthToken as cv, type MotionDurationToken as cw, type MotionEasingToken as cx, type MotionToken as cy, type MotionTransitionToken as cz, MOTION_TOKENS as d, type SideOffsetToken as d0, type SpaceToken as d1, type SpacingToken as d2, type SurfaceToken as d3, type TextLetterSpacingToken as d4, type TextLineHeightToken as d5, type TextSizeToken as d6, type TextWeightToken as d7, type Responsive as d8, type ResponsiveContextMenuSize as d9, type ResponsiveContextMenuWidth as da, type ContextMenuItemToneToken as db, type ResponsiveTabsSize as dc, type TabsVariantToken as dd, type TabsToneToken as de, type Breakpoint as df, NOTIFICATION_TOKENS as e, POPOVER_TOKENS as f, SELECT_TOKENS as g, SURFACE_TOKENS as h, SWITCH_TOKENS as i, TOAST_TOKENS as j, TOOLTIP_TOKENS as k, type ButtonFontSize as l, type ButtonHeight as m, type ButtonPaddingHorizontal as n, type ButtonPaddingVertical as o, type ButtonShadow as p, type CardPadding as q, type CardRadius as r, type CardShadow as s, type CardSize as t, type CardSpacingVertical as u, type CheckboxSize as v, type CheckboxState as w, type CheckboxVariant as x, type DataListLabelWidth as y, type DataListRowPadding as z };
|
|
@@ -297,7 +297,7 @@ declare const BUTTON_TOKENS: {
|
|
|
297
297
|
};
|
|
298
298
|
};
|
|
299
299
|
readonly ghost: {
|
|
300
|
-
readonly background: "bg-
|
|
300
|
+
readonly background: "bg-muted/10";
|
|
301
301
|
readonly text: "text-foreground";
|
|
302
302
|
readonly hover: {
|
|
303
303
|
readonly background: "hover:bg-[hsl(var(--button-ghost-hover-bg))]";
|
|
@@ -1325,7 +1325,7 @@ declare const SURFACE_TOKENS: {
|
|
|
1325
1325
|
readonly padding: "p-md";
|
|
1326
1326
|
readonly radius: "rounded-md";
|
|
1327
1327
|
readonly shadow: "shadow-none";
|
|
1328
|
-
readonly bg: "bg-muted/
|
|
1328
|
+
readonly bg: "bg-muted/30";
|
|
1329
1329
|
readonly border: "border border-border/50";
|
|
1330
1330
|
};
|
|
1331
1331
|
};
|
|
@@ -1338,6 +1338,90 @@ type SurfaceRadius = keyof typeof SURFACE_TOKENS.radius;
|
|
|
1338
1338
|
type SurfaceShadow = keyof typeof SURFACE_TOKENS.shadow;
|
|
1339
1339
|
type SurfaceVariant = keyof typeof SURFACE_TOKENS.variant;
|
|
1340
1340
|
|
|
1341
|
+
/**
|
|
1342
|
+
* Panel Component Tokens
|
|
1343
|
+
*
|
|
1344
|
+
* Component-level design tokens for Panel component.
|
|
1345
|
+
* Maps foundation tokens (spacing, radius, shadows) to panel-specific usage.
|
|
1346
|
+
*
|
|
1347
|
+
* Panel is a lightweight structural surface container that sits between Box and Card
|
|
1348
|
+
* in semantic hierarchy. Panel provides surface styling without interactivity.
|
|
1349
|
+
*
|
|
1350
|
+
* Panel tokens are designed to be lighter than Card tokens (lower elevation, subtler styling).
|
|
1351
|
+
*/
|
|
1352
|
+
/**
|
|
1353
|
+
* Panel Component Tokens
|
|
1354
|
+
*
|
|
1355
|
+
* Defines spacing, radius, tone, background, border, and shadow tokens for Panel component.
|
|
1356
|
+
* Values are mapped to Tailwind utility classes for direct use.
|
|
1357
|
+
* Uses surface tone variants: default, muted, subtle.
|
|
1358
|
+
*/
|
|
1359
|
+
declare const PANEL_TOKENS: {
|
|
1360
|
+
/**
|
|
1361
|
+
* Padding values for panels
|
|
1362
|
+
* Maps to semantic spacing tokens
|
|
1363
|
+
*/
|
|
1364
|
+
readonly padding: {
|
|
1365
|
+
readonly sm: "p-sm";
|
|
1366
|
+
readonly md: "p-md";
|
|
1367
|
+
readonly lg: "p-lg";
|
|
1368
|
+
};
|
|
1369
|
+
/**
|
|
1370
|
+
* Border radius for panels
|
|
1371
|
+
* Maps to borderRadius scale
|
|
1372
|
+
*/
|
|
1373
|
+
readonly radius: {
|
|
1374
|
+
readonly sm: "rounded-sm";
|
|
1375
|
+
readonly md: "rounded-md";
|
|
1376
|
+
readonly lg: "rounded-lg";
|
|
1377
|
+
readonly xl: "rounded-xl";
|
|
1378
|
+
};
|
|
1379
|
+
/**
|
|
1380
|
+
* Shadow tokens for panels
|
|
1381
|
+
* Panel shadows are minimal or none (below Card elevation)
|
|
1382
|
+
* Card uses shadow/shadow-sm/shadow-md, Panel uses shadow-none or shadow-xs
|
|
1383
|
+
*/
|
|
1384
|
+
readonly shadow: {
|
|
1385
|
+
readonly none: "shadow-none";
|
|
1386
|
+
readonly xs: "shadow-xs";
|
|
1387
|
+
};
|
|
1388
|
+
/**
|
|
1389
|
+
* Tone-based token structure
|
|
1390
|
+
* Organized by tone for easy access
|
|
1391
|
+
* Uses surface tone variants: default, muted, subtle
|
|
1392
|
+
*/
|
|
1393
|
+
readonly tone: {
|
|
1394
|
+
readonly default: {
|
|
1395
|
+
readonly padding: "p-md";
|
|
1396
|
+
readonly radius: "rounded-md";
|
|
1397
|
+
readonly shadow: "shadow-none";
|
|
1398
|
+
readonly bg: "bg-background";
|
|
1399
|
+
readonly border: "border border-border";
|
|
1400
|
+
};
|
|
1401
|
+
readonly muted: {
|
|
1402
|
+
readonly padding: "p-md";
|
|
1403
|
+
readonly radius: "rounded-md";
|
|
1404
|
+
readonly shadow: "shadow-none";
|
|
1405
|
+
readonly bg: "bg-muted";
|
|
1406
|
+
readonly border: "border border-border";
|
|
1407
|
+
};
|
|
1408
|
+
readonly subtle: {
|
|
1409
|
+
readonly padding: "p-md";
|
|
1410
|
+
readonly radius: "rounded-md";
|
|
1411
|
+
readonly shadow: "shadow-none";
|
|
1412
|
+
readonly bg: "bg-muted/50";
|
|
1413
|
+
readonly border: "border border-border/50";
|
|
1414
|
+
};
|
|
1415
|
+
};
|
|
1416
|
+
};
|
|
1417
|
+
/**
|
|
1418
|
+
* Type exports for Panel tokens
|
|
1419
|
+
*/
|
|
1420
|
+
type PanelPadding = keyof typeof PANEL_TOKENS.padding;
|
|
1421
|
+
type PanelRadius = keyof typeof PANEL_TOKENS.radius;
|
|
1422
|
+
type PanelShadow = keyof typeof PANEL_TOKENS.shadow;
|
|
1423
|
+
type PanelTone = keyof typeof PANEL_TOKENS.tone;
|
|
1424
|
+
|
|
1341
1425
|
/**
|
|
1342
1426
|
* Text Component Tokens
|
|
1343
1427
|
*
|
|
@@ -2228,6 +2312,10 @@ declare const MENU_TOKENS: {
|
|
|
2228
2312
|
readonly md: "h-10";
|
|
2229
2313
|
readonly lg: "h-12";
|
|
2230
2314
|
};
|
|
2315
|
+
readonly focus: {
|
|
2316
|
+
readonly background: "focus-visible:bg-accent/10";
|
|
2317
|
+
readonly text: "focus-visible:text-accent-foreground";
|
|
2318
|
+
};
|
|
2231
2319
|
};
|
|
2232
2320
|
/**
|
|
2233
2321
|
* Menu content tokens by size
|
|
@@ -6134,4 +6222,4 @@ type ResponsiveContextMenuSize = Responsive<ContextMenuSizeToken>;
|
|
|
6134
6222
|
*/
|
|
6135
6223
|
type ResponsiveContextMenuWidth = Responsive<ContextMenuWidthToken>;
|
|
6136
6224
|
|
|
6137
|
-
export { type
|
|
6225
|
+
export { type MenuIndicatorSize as $, ALERT_TOKENS as A, BUTTON_TOKENS as B, CARD_TOKENS as C, DATA_TOKENS as D, type EmptyStateIconSize as E, type IconColor as F, type IconSize as G, type IconStroke as H, ICON_TOKENS as I, type InputFontSize as J, type InputHeight as K, type InputPaddingHorizontal as L, MENU_TOKENS as M, NAVIGATION_TOKENS as N, OVERLAY_TOKENS as O, PANEL_TOKENS as P, type InputPaddingVertical as Q, RADIO_TOKENS as R, SECTION_TOKENS as S, TEXT_TOKENS as T, type InputRadius as U, type InputSize as V, type MenuContentMinWidth as W, type MenuContentPadding as X, type MenuContentRadius as Y, type MenuContentShadow as Z, type MenuIndicatorOffset as _, CHECKBOX_TOKENS as a, type TableGap as a$, type MenuItemGap as a0, type MenuItemHeight as a1, type MenuItemPadding as a2, type MenuItemRadius as a3, type MenuLabelPadding as a4, type MenuSeparatorMargin as a5, type MotionAnimation as a6, type MotionDuration$1 as a7, type MotionEasing$1 as a8, type MotionTransition$1 as a9, type SelectContentPadding as aA, type SelectContentRadius as aB, type SelectItemFontSize as aC, type SelectItemPaddingHorizontal as aD, type SelectItemPaddingVertical as aE, type SelectItemRadius as aF, type SelectLabelFontSize as aG, type SelectLabelPaddingHorizontal as aH, type SelectLabelPaddingVertical as aI, type SelectSeparatorMarginHorizontal as aJ, type SelectSeparatorMarginVertical as aK, type SelectTriggerFontSize as aL, type SelectTriggerHeight as aM, type SelectTriggerPaddingHorizontal as aN, type SelectTriggerPaddingVertical as aO, type SelectTriggerRadius as aP, type SkeletonAnimation as aQ, type SkeletonBackground as aR, type SkeletonVariant as aS, type SurfacePadding as aT, type SurfaceRadius as aU, type SurfaceShadow as aV, type SurfaceVariant as aW, type SwitchSize as aX, type SwitchState as aY, type SwitchVariant as aZ, type TableCellPadding as a_, type MotionTransitionPreset as aa, type NavigationItemPadding as ab, type NavigationListGap as ac, type NavigationRadius as ad, type NavigationShadow as ae, type NavigationSize as af, type NavigationState as ag, type NotificationPanelWidth as ah, type NotificationVariant as ai, type OverlayBackdropVariant as aj, type OverlayModalSize as ak, type PanelPadding as al, type PanelRadius as am, type PanelShadow as an, type PanelTone as ao, type PopoverArrowOffset as ap, type PopoverArrowSize as aq, type PopoverContentPadding as ar, type PopoverContentRadius as as, type PopoverContentShadow as at, type PopoverContentWidth as au, type RadioSize as av, type RadioState as aw, type RadioVariant as ax, type SectionGap as ay, type SectionPadding as az, DATA_LIST_TOKENS as b, type CanonicalFontSize as b$, type TableHeaderPadding as b0, type TableRowHeight as b1, type TableShadow as b2, type TextFontSize as b3, type TextFontWeight as b4, type TextLetterSpacing as b5, type TextLineHeight as b6, type ToastVariant as b7, type TooltipContentRadius as b8, type TooltipContentShadow as b9, type ColoredShadow as bA, type ElevationShadow as bB, type FocusRing as bC, type GlowEffect as bD, accentColoredShadows as bE, componentShadowMapping as bF, elevationShadows as bG, focusRings as bH, glowEffects as bI, primaryColoredShadows as bJ, shadowBase as bK, shadowCSSVariables as bL, shadowOpacity as bM, tailwindShadowConfig as bN, type ComponentSpacing as bO, type ContainerSpacing as bP, type GridSpacing as bQ, type SectionSpacing as bR, type SemanticSpacing as bS, type Spacing as bT, type StackSpacing as bU, layoutSpacing as bV, semanticSpacing as bW, spacing as bX, spacingCSSVariables as bY, tailwindSpacingConfig as bZ, UI_COLORS as b_, allCSSVariables as ba, allCSSVariablesCSS as bb, generateCSSVariablesCSS as bc, tokenSystemSummary as bd, type MotionCombinedType as be, type MotionDuration as bf, type MotionEasing as bg, type MotionSlideDirection as bh, type MotionTransition as bi, motionCSSVariables as bj, motionCombined as bk, motionDurations as bl, motionEasings as bm, motionFade as bn, motionReducedMotion as bo, motionScale as bp, motionSlide as bq, motionTailwindConfig as br, motionTransitionProperty as bs, motionTransitions as bt, type BorderRadius as bu, type ComponentRadius as bv, borderRadius as bw, componentRadius as bx, radiusCSSVariables as by, tailwindRadiusConfig as bz, INPUT_TOKENS as c, type ShadowToken as c$, type CanonicalFontWeight as c0, type CanonicalLetterSpacing as c1, type CanonicalLineHeight as c2, type CanonicalTextColor as c3, type FontFamily as c4, type FontSize as c5, type FontWeight as c6, type LetterSpacing as c7, type LineHeight as c8, type TextStyle as c9, type RadiusToken as cA, type ResponsiveAlignOffset as cB, type ResponsiveAnimationPreset as cC, type ResponsiveAspectRatio as cD, type ResponsiveColor as cE, type ResponsiveContainerMaxWidth as cF, type ResponsiveContainerPadding as cG, type ResponsiveDelay as cH, type ResponsiveFlexBasis as cI, type ResponsiveModalHeight as cJ, type ResponsiveModalSize as cK, type ResponsiveModalWidth as cL, type ResponsiveMotion as cM, type ResponsiveRadius as cN, type ResponsiveSelectSize as cO, type ResponsiveSelectWidth as cP, type ResponsiveShadow as cQ, type ResponsiveSideOffset as cR, type ResponsiveSpace as cS, type ResponsiveSurface as cT, type ResponsiveTextLineHeight as cU, type ResponsiveTextSize as cV, type ResponsiveTextWeight as cW, type SelectSizeToken as cX, type SelectStateToken as cY, type SelectVariantToken as cZ, type SelectWidthToken as c_, fontFamily as ca, fontSize as cb, fontSizeWithMd as cc, fontWeight as cd, letterSpacing as ce, lineHeight as cf, tailwindTypographyConfig as cg, textStyles as ch, typographyCSSVariables as ci, type AlignOffsetToken as cj, type AnimationPresetToken as ck, type AspectRatioToken as cl, type ColorToken as cm, type ContainerMaxWidthToken as cn, type ContainerPaddingToken as co, type DelayToken as cp, type FlexBasisToken as cq, type LayoutSpaceToken as cr, type ModalFooterAlignToken as cs, type ModalHeightToken as ct, type ModalSizeToken as cu, type ModalWidthToken as cv, type MotionDurationToken as cw, type MotionEasingToken as cx, type MotionToken as cy, type MotionTransitionToken as cz, MOTION_TOKENS as d, type SideOffsetToken as d0, type SpaceToken as d1, type SpacingToken as d2, type SurfaceToken as d3, type TextLetterSpacingToken as d4, type TextLineHeightToken as d5, type TextSizeToken as d6, type TextWeightToken as d7, type Responsive as d8, type ResponsiveContextMenuSize as d9, type ResponsiveContextMenuWidth as da, type ContextMenuItemToneToken as db, type ResponsiveTabsSize as dc, type TabsVariantToken as dd, type TabsToneToken as de, type Breakpoint as df, NOTIFICATION_TOKENS as e, POPOVER_TOKENS as f, SELECT_TOKENS as g, SURFACE_TOKENS as h, SWITCH_TOKENS as i, TOAST_TOKENS as j, TOOLTIP_TOKENS as k, type ButtonFontSize as l, type ButtonHeight as m, type ButtonPaddingHorizontal as n, type ButtonPaddingVertical as o, type ButtonShadow as p, type CardPadding as q, type CardRadius as r, type CardShadow as s, type CardSize as t, type CardSpacingVertical as u, type CheckboxSize as v, type CheckboxState as w, type CheckboxVariant as x, type DataListLabelWidth as y, type DataListRowPadding as z };
|