@tenerife.music/ui 1.0.13 → 1.0.15
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 +112 -418
- package/dist/{colors-CVA7_16U.d.cts → colors-BZtZJBBm.d.cts} +1 -1
- package/dist/{colors-CVA7_16U.d.ts → colors-BZtZJBBm.d.ts} +1 -1
- package/dist/{index-BgXvioll.d.cts → index-CP_dmFn4.d.cts} +435 -175
- package/dist/{index-Bv4wWj9I.d.ts → index-CP_dmFn4.d.ts} +435 -175
- package/dist/index.cjs +1406 -654
- package/dist/index.d.cts +119 -45
- package/dist/index.d.ts +119 -45
- package/dist/index.mjs +1406 -655
- package/dist/preset.cjs +1 -0
- package/dist/preset.mjs +1 -0
- package/dist/theme/index.d.cts +2 -2
- package/dist/theme/index.d.ts +2 -2
- package/dist/tokens/index.cjs +194 -221
- package/dist/tokens/index.d.cts +89 -2
- package/dist/tokens/index.d.ts +89 -2
- package/dist/tokens/index.mjs +194 -222
- package/package.json +6 -1
package/dist/tokens/index.d.ts
CHANGED
|
@@ -1,2 +1,89 @@
|
|
|
1
|
-
export { B as BaseColorTokens,
|
|
2
|
-
export { A as ALERT_TOKENS,
|
|
1
|
+
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-BZtZJBBm.js';
|
|
2
|
+
export { A as ALERT_TOKENS, l as AlertVariant, cG as AlignOffsetToken, bo as Animation, cH as AnimationPresetToken, cI as AspectRatioToken, B as BUTTON_TOKENS, bR as BorderRadius, m as ButtonFontSize, n as ButtonHeight, o as ButtonPaddingHorizontal, p as ButtonPaddingVertical, q as ButtonShadow, C as CARD_TOKENS, a as CHECKBOX_TOKENS, cm as CanonicalFontSize, cn as CanonicalFontWeight, co as CanonicalLetterSpacing, cp as CanonicalLineHeight, cq as CanonicalTextColor, r as CardPadding, s as CardRadius, t as CardShadow, u as CardSize, v as CardSpacingVertical, w as CheckboxSize, x as CheckboxState, y as CheckboxVariant, cJ as ColorToken, bX as ColoredShadow, bS as ComponentRadius, c9 as ComponentSpacing, cK as ContainerMaxWidthToken, cL as ContainerPaddingToken, ca as ContainerSpacing, D as DATA_TOKENS, b as DOMAIN_TOKENS, c as DROPDOWN_TOKENS, z as DataListLabelWidth, E as DataListRowPadding, cM as DelayToken, F as DomainCardBadge, G as DomainCardImage, H as DomainCardLayout, J as DomainCardMetadata, K as DomainCardMotion, L as DomainCardPriceCapacity, Q as DomainCardSkeleton, U as DomainCardSkeletonContentWidth, V as DomainCardSurface, W as DropdownItemSize, X as DropdownMenuSize, Y as DropdownTriggerSize, Z as DropdownVariant, bp as Duration, bq as Easing, bY as ElevationShadow, _ as EmptyStateIconSize, cN as FlexBasisToken, bZ as FocusRing, cr as FontFamily, cs as FontSize, ct as FontWeight, b_ as GlowEffect, cb as GridSpacing, I as ICON_TOKENS, d as INPUT_TOKENS, $ as IconColor, a0 as IconSize, a1 as IconStroke, a2 as InputFontSize, a3 as InputHeight, a4 as InputPaddingHorizontal, a5 as InputPaddingVertical, a6 as InputRadius, a7 as InputSize, br as Keyframe, cO as LayoutSpaceToken, cu as LetterSpacing, cv as LineHeight, M as MENU_TOKENS, e as MOTION_TOKENS, a8 as MenuContentMinWidth, a9 as MenuContentPadding, aa as MenuContentRadius, ab as MenuContentShadow, ac as MenuIndicatorOffset, ad as MenuIndicatorSize, ae as MenuItemGap, af as MenuItemHeight, ag as MenuItemPadding, ah as MenuItemRadius, ai as MenuLabelPadding, aj as MenuSeparatorMargin, cP as ModalFooterAlignToken, cQ as ModalHeightToken, cR as ModalSizeToken, cS as ModalWidthToken, ak as MotionAnimation, al as MotionDuration, cT as MotionDurationToken, am as MotionEasing, cU as MotionEasingToken, cV as MotionToken, an as MotionTransition, ao as MotionTransitionPreset, cW as MotionTransitionToken, bD as MotionV2CombinedType, bE as MotionV2Duration, bF as MotionV2Easing, bG as MotionV2SlideDirection, bH as MotionV2Transition, N as NAVIGATION_TOKENS, f as NOTIFICATION_TOKENS, ap as NavigationItemPadding, aq as NavigationListGap, ar as NavigationRadius, as as NavigationShadow, at as NavigationSize, au as NavigationState, av as NotificationPanelWidth, aw as NotificationVariant, O as OVERLAY_TOKENS, ax as OverlayBackdropVariant, ay as OverlayModalSize, P as POPOVER_TOKENS, az as PopoverArrowOffset, aA as PopoverArrowSize, aB as PopoverContentPadding, aC as PopoverContentRadius, aD as PopoverContentShadow, aE as PopoverContentWidth, R as RADIO_TOKENS, aF as RadioSize, aG as RadioState, aH as RadioVariant, cX as RadiusToken, cY as ResponsiveAlignOffset, cZ as ResponsiveAnimationPreset, c_ as ResponsiveAspectRatio, c$ as ResponsiveColor, d0 as ResponsiveContainerMaxWidth, d1 as ResponsiveContainerPadding, d2 as ResponsiveDelay, d3 as ResponsiveFlexBasis, d4 as ResponsiveModalHeight, d5 as ResponsiveModalSize, d6 as ResponsiveModalWidth, d7 as ResponsiveMotion, d8 as ResponsiveRadius, d9 as ResponsiveSelectSize, da as ResponsiveSelectWidth, db as ResponsiveShadow, dc as ResponsiveSideOffset, dd as ResponsiveSpace, de as ResponsiveSurface, df as ResponsiveTextLineHeight, dg as ResponsiveTextSize, dh as ResponsiveTextWeight, S as SECTION_TOKENS, g as SELECT_TOKENS, h as SURFACE_TOKENS, i as SWITCH_TOKENS, aI as SectionGap, aJ as SectionPadding, cc as SectionSpacing, aK as SelectContentPadding, aL as SelectContentRadius, aM as SelectItemFontSize, aN as SelectItemPaddingHorizontal, aO as SelectItemPaddingVertical, aP as SelectItemRadius, aQ as SelectLabelFontSize, aR as SelectLabelPaddingHorizontal, aS as SelectLabelPaddingVertical, aT as SelectSeparatorMarginHorizontal, aU as SelectSeparatorMarginVertical, di as SelectSizeToken, dj as SelectStateToken, aV as SelectTriggerFontSize, aW as SelectTriggerHeight, aX as SelectTriggerPaddingHorizontal, aY as SelectTriggerPaddingVertical, aZ as SelectTriggerRadius, dk as SelectVariantToken, dl as SelectWidthToken, cd as SemanticSpacing, dm as ShadowToken, dn as SideOffsetToken, a_ as SkeletonAnimation, a$ as SkeletonBackground, b0 as SkeletonVariant, dp as SpaceToken, ce as Spacing, dq as SpacingToken, bs as Spring, cf as StackSpacing, b1 as SurfacePadding, b2 as SurfaceRadius, b3 as SurfaceShadow, dr as SurfaceToken, b4 as SurfaceVariant, b5 as SwitchSize, b6 as SwitchState, b7 as SwitchVariant, T as TEXT_TOKENS, j as TOAST_TOKENS, k as TOOLTIP_TOKENS, b8 as TableCellPadding, b9 as TableGap, ba as TableHeaderPadding, bb as TableRowHeight, bc as TableShadow, bd as TextFontSize, be as TextFontWeight, bf as TextLetterSpacing, ds as TextLetterSpacingToken, bg as TextLineHeight, dt as TextLineHeightToken, du as TextSizeToken, cw as TextStyle, dv as TextWeightToken, bh as ToastVariant, bi as TooltipContentRadius, bj as TooltipContentShadow, bt as Transition, cl as UI_COLORS, b$ as accentColoredShadows, bk as allCSSVariables, bl as allCSSVariablesCSS, bu as animations, bT as borderRadius, bU as componentRadius, c0 as componentShadowMapping, bv as durations, bw as easings, c1 as elevationShadows, c2 as focusRings, cx as fontFamily, cy as fontSize, cz as fontSizeWithMd, cA as fontWeight, bm as generateCSSVariablesCSS, c3 as glowEffects, bx as keyframes, cg as layoutSpacing, cB as letterSpacing, cC as lineHeight, by as motionCSSVariables, bI as motionV2CSSVariables, bJ as motionV2Combined, bK as motionV2Durations, bL as motionV2Easings, bM as motionV2Fade, bN as motionV2Scale, bO as motionV2Slide, bP as motionV2TailwindConfig, bQ as motionV2Transitions, c4 as primaryColoredShadows, bV as radiusCSSVariables, bz as reducedMotion, ch as semanticSpacing, c5 as shadowBase, c6 as shadowCSSVariables, c7 as shadowOpacity, ci as spacing, cj as spacingCSSVariables, bA as springs, bB as tailwindMotionConfig, bW as tailwindRadiusConfig, c8 as tailwindShadowConfig, ck as tailwindSpacingConfig, cD as tailwindTypographyConfig, cE as textStyles, bn as tokenSystemSummary, bC as transitions, cF as typographyCSSVariables } from '../index-CP_dmFn4.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Artist Card Component Tokens
|
|
6
|
+
*
|
|
7
|
+
* Domain-specific design tokens for ArtistCard component.
|
|
8
|
+
* Provides artist-specific styling tokens that complement DOMAIN_TOKENS.
|
|
9
|
+
* All values reference foundation tokens or other component tokens.
|
|
10
|
+
*
|
|
11
|
+
* Foundation tokens referenced:
|
|
12
|
+
* - DOMAIN_TOKENS: image, spacing, metadata, text from src/tokens/components/domain.ts
|
|
13
|
+
* - Layout utilities: flex, positioning, sizing from Tailwind (allowed)
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Artist Card Component Tokens
|
|
17
|
+
*
|
|
18
|
+
* Defines artist-specific tokens for ArtistCard component.
|
|
19
|
+
* Values reference DOMAIN_TOKENS and foundation tokens where possible.
|
|
20
|
+
*/
|
|
21
|
+
declare const ARTIST_TOKENS: {
|
|
22
|
+
/**
|
|
23
|
+
* Image container tokens
|
|
24
|
+
* Layout classes for image container wrapper
|
|
25
|
+
*/
|
|
26
|
+
readonly image: {
|
|
27
|
+
/**
|
|
28
|
+
* Container layout tokens
|
|
29
|
+
* Positioning and sizing for image container
|
|
30
|
+
*/
|
|
31
|
+
readonly container: {
|
|
32
|
+
/**
|
|
33
|
+
* Base container layout
|
|
34
|
+
* Relative positioning, full width, overflow hidden
|
|
35
|
+
* Uses Tailwind layout utilities (allowed per architecture)
|
|
36
|
+
*/
|
|
37
|
+
readonly layout: "relative w-full overflow-hidden";
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Image sizing tokens
|
|
41
|
+
* Full width and height for images
|
|
42
|
+
*/
|
|
43
|
+
readonly sizing: {
|
|
44
|
+
/**
|
|
45
|
+
* Full size image
|
|
46
|
+
* Uses Tailwind sizing utilities (allowed per architecture)
|
|
47
|
+
*/
|
|
48
|
+
readonly full: "h-full w-full";
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Placeholder container tokens
|
|
52
|
+
* Layout for placeholder icon container when no image is provided
|
|
53
|
+
*/
|
|
54
|
+
readonly placeholder: {
|
|
55
|
+
/**
|
|
56
|
+
* Placeholder container layout
|
|
57
|
+
* Flex centering for placeholder icon
|
|
58
|
+
* Uses Tailwind layout utilities (allowed per architecture)
|
|
59
|
+
*/
|
|
60
|
+
readonly container: "flex h-full w-full items-center justify-center";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Footer border tokens
|
|
65
|
+
* Border styling for card footer separator
|
|
66
|
+
*/
|
|
67
|
+
readonly footer: {
|
|
68
|
+
/**
|
|
69
|
+
* Footer border tokens
|
|
70
|
+
* Top border separator for footer section
|
|
71
|
+
*/
|
|
72
|
+
readonly border: {
|
|
73
|
+
/**
|
|
74
|
+
* Footer border top
|
|
75
|
+
* Uses semantic border color token
|
|
76
|
+
*/
|
|
77
|
+
readonly top: "border-t border-border";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Type exports for Artist Card tokens
|
|
83
|
+
*/
|
|
84
|
+
type ArtistCardImageContainer = typeof ARTIST_TOKENS.image.container;
|
|
85
|
+
type ArtistCardImageSizing = typeof ARTIST_TOKENS.image.sizing;
|
|
86
|
+
type ArtistCardImagePlaceholder = typeof ARTIST_TOKENS.image.placeholder;
|
|
87
|
+
type ArtistCardFooterBorder = typeof ARTIST_TOKENS.footer.border;
|
|
88
|
+
|
|
89
|
+
export { ARTIST_TOKENS, type ArtistCardFooterBorder, type ArtistCardImageContainer, type ArtistCardImagePlaceholder, type ArtistCardImageSizing };
|
package/dist/tokens/index.mjs
CHANGED
|
@@ -682,6 +682,68 @@ var CARD_TOKENS = {
|
|
|
682
682
|
}
|
|
683
683
|
};
|
|
684
684
|
|
|
685
|
+
// src/tokens/components/artist.ts
|
|
686
|
+
var ARTIST_TOKENS = {
|
|
687
|
+
/**
|
|
688
|
+
* Image container tokens
|
|
689
|
+
* Layout classes for image container wrapper
|
|
690
|
+
*/
|
|
691
|
+
image: {
|
|
692
|
+
/**
|
|
693
|
+
* Container layout tokens
|
|
694
|
+
* Positioning and sizing for image container
|
|
695
|
+
*/
|
|
696
|
+
container: {
|
|
697
|
+
/**
|
|
698
|
+
* Base container layout
|
|
699
|
+
* Relative positioning, full width, overflow hidden
|
|
700
|
+
* Uses Tailwind layout utilities (allowed per architecture)
|
|
701
|
+
*/
|
|
702
|
+
layout: "relative w-full overflow-hidden"
|
|
703
|
+
},
|
|
704
|
+
/**
|
|
705
|
+
* Image sizing tokens
|
|
706
|
+
* Full width and height for images
|
|
707
|
+
*/
|
|
708
|
+
sizing: {
|
|
709
|
+
/**
|
|
710
|
+
* Full size image
|
|
711
|
+
* Uses Tailwind sizing utilities (allowed per architecture)
|
|
712
|
+
*/
|
|
713
|
+
full: "h-full w-full"
|
|
714
|
+
},
|
|
715
|
+
/**
|
|
716
|
+
* Placeholder container tokens
|
|
717
|
+
* Layout for placeholder icon container when no image is provided
|
|
718
|
+
*/
|
|
719
|
+
placeholder: {
|
|
720
|
+
/**
|
|
721
|
+
* Placeholder container layout
|
|
722
|
+
* Flex centering for placeholder icon
|
|
723
|
+
* Uses Tailwind layout utilities (allowed per architecture)
|
|
724
|
+
*/
|
|
725
|
+
container: "flex h-full w-full items-center justify-center"
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
/**
|
|
729
|
+
* Footer border tokens
|
|
730
|
+
* Border styling for card footer separator
|
|
731
|
+
*/
|
|
732
|
+
footer: {
|
|
733
|
+
/**
|
|
734
|
+
* Footer border tokens
|
|
735
|
+
* Top border separator for footer section
|
|
736
|
+
*/
|
|
737
|
+
border: {
|
|
738
|
+
/**
|
|
739
|
+
* Footer border top
|
|
740
|
+
* Uses semantic border color token
|
|
741
|
+
*/
|
|
742
|
+
top: "border-t border-border"
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
};
|
|
746
|
+
|
|
685
747
|
// src/tokens/spacing.ts
|
|
686
748
|
var spacing = {
|
|
687
749
|
// Zero spacing
|
|
@@ -944,101 +1006,6 @@ var tailwindSpacingConfig = {
|
|
|
944
1006
|
|
|
945
1007
|
// src/tokens/components/data.ts
|
|
946
1008
|
var DATA_TOKENS = {
|
|
947
|
-
/**
|
|
948
|
-
* Table Component Tokens
|
|
949
|
-
*/
|
|
950
|
-
table: {
|
|
951
|
-
/**
|
|
952
|
-
* Table row heights by size
|
|
953
|
-
* Maps to Tailwind height utilities
|
|
954
|
-
*/
|
|
955
|
-
rowHeight: {
|
|
956
|
-
sm: "h-8",
|
|
957
|
-
// 32px (2rem) - compact rows
|
|
958
|
-
md: "h-10",
|
|
959
|
-
// 40px (2.5rem) - default rows
|
|
960
|
-
lg: "h-12"
|
|
961
|
-
// 48px (3rem) - spacious rows
|
|
962
|
-
},
|
|
963
|
-
/**
|
|
964
|
-
* Table cell and header padding by size
|
|
965
|
-
* Maps to semantic spacing tokens
|
|
966
|
-
*/
|
|
967
|
-
padding: {
|
|
968
|
-
cell: {
|
|
969
|
-
sm: "p-xs",
|
|
970
|
-
// 4px (0.25rem) - maps to semanticSpacing.xs
|
|
971
|
-
md: "p-sm",
|
|
972
|
-
// 8px (0.5rem) - maps to semanticSpacing.sm
|
|
973
|
-
lg: "p-md"
|
|
974
|
-
// 16px (1rem) - maps to semanticSpacing.md
|
|
975
|
-
},
|
|
976
|
-
header: {
|
|
977
|
-
sm: "px-xs py-sm",
|
|
978
|
-
// 4px horizontal, 8px vertical
|
|
979
|
-
md: "px-sm py-md",
|
|
980
|
-
// 8px horizontal, 16px vertical
|
|
981
|
-
lg: "px-md py-lg"
|
|
982
|
-
// 16px horizontal, 24px vertical
|
|
983
|
-
}
|
|
984
|
-
},
|
|
985
|
-
/**
|
|
986
|
-
* Gap between table cells (horizontal spacing)
|
|
987
|
-
*/
|
|
988
|
-
gap: {
|
|
989
|
-
sm: "gap-xs",
|
|
990
|
-
// 4px (0.25rem) - maps to semanticSpacing.xs
|
|
991
|
-
md: "gap-sm"
|
|
992
|
-
// 8px (0.5rem) - maps to semanticSpacing.sm
|
|
993
|
-
},
|
|
994
|
-
/**
|
|
995
|
-
* Border radius for table
|
|
996
|
-
*/
|
|
997
|
-
radius: {
|
|
998
|
-
default: "rounded-md"
|
|
999
|
-
// 6px (0.375rem) - maps to borderRadius.md
|
|
1000
|
-
},
|
|
1001
|
-
/**
|
|
1002
|
-
* Shadow tokens for table
|
|
1003
|
-
* Maps to foundation elevation shadow tokens
|
|
1004
|
-
*/
|
|
1005
|
-
shadow: {
|
|
1006
|
-
none: "shadow-none",
|
|
1007
|
-
// No shadow
|
|
1008
|
-
subtle: "shadow-sm"
|
|
1009
|
-
// Maps to elevationShadows.sm
|
|
1010
|
-
},
|
|
1011
|
-
/**
|
|
1012
|
-
* Typography tokens for table headers and cells
|
|
1013
|
-
* Maps to foundation typography fontSize tokens
|
|
1014
|
-
*/
|
|
1015
|
-
typography: {
|
|
1016
|
-
header: {
|
|
1017
|
-
fontSize: "text-sm",
|
|
1018
|
-
// Maps to fontSize.sm[0]
|
|
1019
|
-
fontWeight: "font-semibold"
|
|
1020
|
-
// Maps to fontWeight.semibold
|
|
1021
|
-
},
|
|
1022
|
-
cell: {
|
|
1023
|
-
fontSize: "text-sm",
|
|
1024
|
-
// Maps to fontSize.sm[0]
|
|
1025
|
-
fontWeight: "font-normal"
|
|
1026
|
-
// Maps to fontWeight.normal
|
|
1027
|
-
}
|
|
1028
|
-
},
|
|
1029
|
-
/**
|
|
1030
|
-
* Color tokens for table states
|
|
1031
|
-
* Uses semantic color tokens
|
|
1032
|
-
*/
|
|
1033
|
-
colors: {
|
|
1034
|
-
border: "border-border",
|
|
1035
|
-
// Border color
|
|
1036
|
-
rowHover: "hover:bg-muted/50",
|
|
1037
|
-
// Row hover background
|
|
1038
|
-
rowSelected: "bg-muted"
|
|
1039
|
-
// Selected row background
|
|
1040
|
-
}
|
|
1041
|
-
},
|
|
1042
1009
|
/**
|
|
1043
1010
|
* Skeleton Component Tokens
|
|
1044
1011
|
*/
|
|
@@ -1104,97 +1071,6 @@ var DATA_TOKENS = {
|
|
|
1104
1071
|
inline: "inline-block"
|
|
1105
1072
|
// Inline block display
|
|
1106
1073
|
}
|
|
1107
|
-
},
|
|
1108
|
-
/**
|
|
1109
|
-
* EmptyState Component Tokens
|
|
1110
|
-
*/
|
|
1111
|
-
emptyState: {
|
|
1112
|
-
/**
|
|
1113
|
-
* Spacing tokens for EmptyState
|
|
1114
|
-
* Maps to semantic spacing tokens
|
|
1115
|
-
*/
|
|
1116
|
-
spacing: {
|
|
1117
|
-
gap: "gap-md",
|
|
1118
|
-
// 16px (1rem) - gap between elements - maps to semanticSpacing.md
|
|
1119
|
-
padding: "p-lg"
|
|
1120
|
-
// 24px (1.5rem) - container padding - maps to semanticSpacing.lg
|
|
1121
|
-
},
|
|
1122
|
-
/**
|
|
1123
|
-
* Border radius for EmptyState container
|
|
1124
|
-
*/
|
|
1125
|
-
radius: {
|
|
1126
|
-
default: "rounded-xl"
|
|
1127
|
-
// 12px (0.75rem) - maps to borderRadius.xl
|
|
1128
|
-
},
|
|
1129
|
-
/**
|
|
1130
|
-
* Icon sizes by variant
|
|
1131
|
-
* Maps to Tailwind size utilities
|
|
1132
|
-
*/
|
|
1133
|
-
iconSize: {
|
|
1134
|
-
sm: "size-8",
|
|
1135
|
-
// 32px (2rem)
|
|
1136
|
-
md: "size-12",
|
|
1137
|
-
// 48px (3rem)
|
|
1138
|
-
lg: "size-16"
|
|
1139
|
-
// 64px (4rem)
|
|
1140
|
-
},
|
|
1141
|
-
/**
|
|
1142
|
-
* Typography tokens for EmptyState
|
|
1143
|
-
* Maps to foundation typography tokens
|
|
1144
|
-
*/
|
|
1145
|
-
typography: {
|
|
1146
|
-
title: {
|
|
1147
|
-
fontSize: "text-lg",
|
|
1148
|
-
// Maps to fontSize.lg[0]
|
|
1149
|
-
fontWeight: "font-semibold"
|
|
1150
|
-
// Maps to fontWeight.semibold
|
|
1151
|
-
},
|
|
1152
|
-
description: {
|
|
1153
|
-
fontSize: "text-sm",
|
|
1154
|
-
// Maps to fontSize.sm[0]
|
|
1155
|
-
fontWeight: "font-normal"
|
|
1156
|
-
// Maps to fontWeight.normal
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
},
|
|
1160
|
-
/**
|
|
1161
|
-
* DataList Component Tokens
|
|
1162
|
-
*/
|
|
1163
|
-
dataList: {
|
|
1164
|
-
/**
|
|
1165
|
-
* Spacing tokens for DataList
|
|
1166
|
-
* Maps to semantic spacing tokens
|
|
1167
|
-
*/
|
|
1168
|
-
spacing: {
|
|
1169
|
-
gap: "gap-md",
|
|
1170
|
-
// 16px (1rem) - gap between items - maps to semanticSpacing.md
|
|
1171
|
-
padding: "p-md"
|
|
1172
|
-
// 16px (1rem) - container padding - maps to semanticSpacing.md
|
|
1173
|
-
},
|
|
1174
|
-
/**
|
|
1175
|
-
* Label width tokens (for desktop horizontal layout)
|
|
1176
|
-
* Maps to Tailwind width utilities
|
|
1177
|
-
*/
|
|
1178
|
-
labelWidth: {
|
|
1179
|
-
sm: "w-24",
|
|
1180
|
-
// 96px (6rem) - small label width
|
|
1181
|
-
md: "w-32",
|
|
1182
|
-
// 128px (8rem) - default label width
|
|
1183
|
-
lg: "w-40"
|
|
1184
|
-
// 160px (10rem) - large label width
|
|
1185
|
-
},
|
|
1186
|
-
/**
|
|
1187
|
-
* Row padding tokens
|
|
1188
|
-
* Maps to semantic spacing tokens
|
|
1189
|
-
*/
|
|
1190
|
-
rowPadding: {
|
|
1191
|
-
sm: "py-xs",
|
|
1192
|
-
// 4px (0.25rem) - maps to semanticSpacing.xs
|
|
1193
|
-
md: "py-sm",
|
|
1194
|
-
// 8px (0.5rem) - maps to semanticSpacing.sm
|
|
1195
|
-
lg: "py-md"
|
|
1196
|
-
// 16px (1rem) - maps to semanticSpacing.md
|
|
1197
|
-
}
|
|
1198
1074
|
}
|
|
1199
1075
|
};
|
|
1200
1076
|
|
|
@@ -1539,7 +1415,7 @@ var DOMAIN_TOKENS = {
|
|
|
1539
1415
|
},
|
|
1540
1416
|
/**
|
|
1541
1417
|
* Image tokens for card media
|
|
1542
|
-
* Defines aspect ratio, radius, and
|
|
1418
|
+
* Defines aspect ratio, radius, overlay styles, and placeholder gradients
|
|
1543
1419
|
*/
|
|
1544
1420
|
image: {
|
|
1545
1421
|
/**
|
|
@@ -1562,6 +1438,40 @@ var DOMAIN_TOKENS = {
|
|
|
1562
1438
|
overlay: {
|
|
1563
1439
|
gradient: "bg-gradient-to-t from-black/60 via-transparent to-transparent"
|
|
1564
1440
|
// Gradient overlay for image hover states
|
|
1441
|
+
},
|
|
1442
|
+
/**
|
|
1443
|
+
* Placeholder gradient tokens for image placeholders
|
|
1444
|
+
* Used when no image URL is provided
|
|
1445
|
+
*/
|
|
1446
|
+
placeholder: {
|
|
1447
|
+
gradient: "bg-gradient-to-br from-muted to-muted/50"
|
|
1448
|
+
// Placeholder gradient background
|
|
1449
|
+
}
|
|
1450
|
+
},
|
|
1451
|
+
/**
|
|
1452
|
+
* Text tokens for card text elements
|
|
1453
|
+
* Defines hover states and line clamping for titles and descriptions
|
|
1454
|
+
*/
|
|
1455
|
+
text: {
|
|
1456
|
+
/**
|
|
1457
|
+
* Hover state tokens for text elements
|
|
1458
|
+
* Used for interactive text elements like titles
|
|
1459
|
+
*/
|
|
1460
|
+
hover: {
|
|
1461
|
+
primary: "group-hover:text-primary"
|
|
1462
|
+
// Hover state for primary text color
|
|
1463
|
+
},
|
|
1464
|
+
/**
|
|
1465
|
+
* Line clamp tokens for text truncation
|
|
1466
|
+
* Used for limiting text to specific number of lines
|
|
1467
|
+
*/
|
|
1468
|
+
lineClamp: {
|
|
1469
|
+
one: "line-clamp-1",
|
|
1470
|
+
// Single line clamp
|
|
1471
|
+
two: "line-clamp-2",
|
|
1472
|
+
// Two line clamp
|
|
1473
|
+
three: "line-clamp-3"
|
|
1474
|
+
// Three line clamp
|
|
1565
1475
|
}
|
|
1566
1476
|
},
|
|
1567
1477
|
/**
|
|
@@ -1784,6 +1694,94 @@ var DOMAIN_TOKENS = {
|
|
|
1784
1694
|
height: "h-6"
|
|
1785
1695
|
// References spacing[6] (1.5rem / 24px) via Tailwind
|
|
1786
1696
|
}
|
|
1697
|
+
},
|
|
1698
|
+
/**
|
|
1699
|
+
* CTA (Call-to-Action) button tokens for domain card components
|
|
1700
|
+
* Provides PromoCard-specific CTA button styling tokens
|
|
1701
|
+
* These tokens are semantically owned by domain card components, not by the Button component
|
|
1702
|
+
* References foundation tokens (spacing, typography, radius, shadows, motion) for consistency
|
|
1703
|
+
*/
|
|
1704
|
+
cta: {
|
|
1705
|
+
/**
|
|
1706
|
+
* CTA button styling tokens
|
|
1707
|
+
* Used by PromoCard and other domain card components for CTA button elements
|
|
1708
|
+
*/
|
|
1709
|
+
button: {
|
|
1710
|
+
/**
|
|
1711
|
+
* Button heights by size
|
|
1712
|
+
* Maps to Tailwind height utilities: h-8, h-9
|
|
1713
|
+
*/
|
|
1714
|
+
height: {
|
|
1715
|
+
sm: "h-8",
|
|
1716
|
+
// 32px (2rem) - compact size
|
|
1717
|
+
md: "h-9"
|
|
1718
|
+
// 36px (2.25rem) - default size
|
|
1719
|
+
},
|
|
1720
|
+
/**
|
|
1721
|
+
* Button padding by size
|
|
1722
|
+
* Horizontal and vertical padding values
|
|
1723
|
+
* References semanticSpacing tokens
|
|
1724
|
+
*/
|
|
1725
|
+
padding: {
|
|
1726
|
+
horizontal: {
|
|
1727
|
+
sm: "px-sm",
|
|
1728
|
+
// 8px (0.5rem) - maps to semanticSpacing.sm
|
|
1729
|
+
md: "px-md"
|
|
1730
|
+
// 16px (1rem) - maps to semanticSpacing.md
|
|
1731
|
+
},
|
|
1732
|
+
vertical: {
|
|
1733
|
+
sm: "py-xs"
|
|
1734
|
+
// 4px (0.25rem) - maps to semanticSpacing.xs
|
|
1735
|
+
}
|
|
1736
|
+
},
|
|
1737
|
+
/**
|
|
1738
|
+
* Border radius for CTA buttons
|
|
1739
|
+
* References borderRadius.md (6px / 0.375rem)
|
|
1740
|
+
* Using Tailwind class "rounded-md" which maps to borderRadius.md
|
|
1741
|
+
*/
|
|
1742
|
+
radius: "rounded-md",
|
|
1743
|
+
// References borderRadius.md via Tailwind
|
|
1744
|
+
/**
|
|
1745
|
+
* Font sizes by button size
|
|
1746
|
+
* Maps to foundation typography fontSize tokens
|
|
1747
|
+
*/
|
|
1748
|
+
fontSize: {
|
|
1749
|
+
sm: "text-xs",
|
|
1750
|
+
// Maps to fontSize.xs[0]
|
|
1751
|
+
md: "text-sm"
|
|
1752
|
+
// Maps to fontSize.sm[0]
|
|
1753
|
+
},
|
|
1754
|
+
/**
|
|
1755
|
+
* Shadow tokens for CTA buttons
|
|
1756
|
+
* Maps to foundation elevation shadow tokens
|
|
1757
|
+
*/
|
|
1758
|
+
shadow: {
|
|
1759
|
+
primary: "shadow"
|
|
1760
|
+
// Maps to elevationShadows.xs (primary variant uses shadow)
|
|
1761
|
+
},
|
|
1762
|
+
/**
|
|
1763
|
+
* Color tokens for CTA button variants
|
|
1764
|
+
* Uses semantic color tokens that map to CSS variables
|
|
1765
|
+
*/
|
|
1766
|
+
variant: {
|
|
1767
|
+
primary: {
|
|
1768
|
+
background: "bg-primary",
|
|
1769
|
+
// Primary background using CSS var
|
|
1770
|
+
text: "text-primary-foreground",
|
|
1771
|
+
// Primary text using CSS var
|
|
1772
|
+
hover: "hover:bg-primary/90"
|
|
1773
|
+
// Primary hover using CSS var
|
|
1774
|
+
}
|
|
1775
|
+
},
|
|
1776
|
+
/**
|
|
1777
|
+
* Transition tokens for CTA buttons
|
|
1778
|
+
* References MOTION_TOKENS for transitions
|
|
1779
|
+
*/
|
|
1780
|
+
transition: {
|
|
1781
|
+
colors: "transition-colors"
|
|
1782
|
+
// Color transition using motion tokens
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1787
1785
|
}
|
|
1788
1786
|
};
|
|
1789
1787
|
|
|
@@ -1887,40 +1885,6 @@ var INPUT_TOKENS = {
|
|
|
1887
1885
|
text: "text-[hsl(var(--foreground))]"
|
|
1888
1886
|
// File input text color using CSS var
|
|
1889
1887
|
},
|
|
1890
|
-
/**
|
|
1891
|
-
* Select listbox tokens
|
|
1892
|
-
* Styling for select dropdown container
|
|
1893
|
-
*/
|
|
1894
|
-
selectListbox: {
|
|
1895
|
-
border: "border border-[hsl(var(--border))]",
|
|
1896
|
-
// Border color using CSS var
|
|
1897
|
-
background: "bg-[hsl(var(--popover))]",
|
|
1898
|
-
// Background using CSS var
|
|
1899
|
-
text: "text-[hsl(var(--popover-foreground))]",
|
|
1900
|
-
// Text color using CSS var
|
|
1901
|
-
radius: "rounded-md",
|
|
1902
|
-
// Radius token (6px)
|
|
1903
|
-
shadow: "shadow-md"
|
|
1904
|
-
// Shadow token
|
|
1905
|
-
},
|
|
1906
|
-
/**
|
|
1907
|
-
* Select option tokens
|
|
1908
|
-
* Styling for select option items
|
|
1909
|
-
*/
|
|
1910
|
-
selectOption: {
|
|
1911
|
-
focus: {
|
|
1912
|
-
background: "focus:bg-[hsl(var(--accent))]",
|
|
1913
|
-
// Focus background using CSS var
|
|
1914
|
-
text: "focus:text-[hsl(var(--accent-foreground))]"
|
|
1915
|
-
// Focus text using CSS var
|
|
1916
|
-
},
|
|
1917
|
-
selected: {
|
|
1918
|
-
background: "bg-[hsl(var(--accent))]",
|
|
1919
|
-
// Selected background using CSS var
|
|
1920
|
-
text: "text-[hsl(var(--accent-foreground))]"
|
|
1921
|
-
// Selected text using CSS var
|
|
1922
|
-
}
|
|
1923
|
-
},
|
|
1924
1888
|
/**
|
|
1925
1889
|
* Variant-based tokens
|
|
1926
1890
|
* Border, background, and text colors for different variants
|
|
@@ -4201,6 +4165,14 @@ var DROPDOWN_TOKENS = {
|
|
|
4201
4165
|
// 256px
|
|
4202
4166
|
}
|
|
4203
4167
|
},
|
|
4168
|
+
/**
|
|
4169
|
+
* Width tokens
|
|
4170
|
+
* Common width utilities
|
|
4171
|
+
*/
|
|
4172
|
+
width: {
|
|
4173
|
+
full: "w-full"
|
|
4174
|
+
// Full width (100%)
|
|
4175
|
+
},
|
|
4204
4176
|
/**
|
|
4205
4177
|
* Item tokens by size
|
|
4206
4178
|
* Individual menu item
|
|
@@ -6114,4 +6086,4 @@ var tokenSystemSummary = {
|
|
|
6114
6086
|
// src/tokens/theme.ts
|
|
6115
6087
|
var UI_COLORS = tailwindThemeColors;
|
|
6116
6088
|
|
|
6117
|
-
export { ALERT_TOKENS, BUTTON_TOKENS, CARD_TOKENS, CHECKBOX_TOKENS, DATA_TOKENS, DOMAIN_TOKENS, DROPDOWN_TOKENS, ICON_TOKENS, INPUT_TOKENS, MENU_TOKENS, MOTION_TOKENS, NAVIGATION_TOKENS, NOTIFICATION_TOKENS, OVERLAY_TOKENS, POPOVER_TOKENS, RADIO_TOKENS, SECTION_TOKENS, SELECT_TOKENS, SURFACE_TOKENS, SWITCH_TOKENS, TEXT_TOKENS, TOAST_TOKENS, TOOLTIP_TOKENS, UI_COLORS, accentColoredShadows, accentColors, allCSSVariables, allCSSVariablesCSS, animations, baseColors, borderRadius, chartColors, colorCSSVariables, componentRadius, componentShadowMapping, cssVariableColorTokens, durations, easings, elevationShadows, focusRings, fontFamily, fontSize, fontSizeWithMd, fontWeight, generateCSSVariablesCSS, glowEffects, keyframes, layoutSpacing, letterSpacing, lineHeight, motionCSSVariables, motionV2CSSVariables, motionV2Combined, motionV2Durations, motionV2Easings, motionV2Fade, motionV2Scale, motionV2Slide, motionV2TailwindConfig, motionV2Transitions, primaryColoredShadows, primaryColors, radiusCSSVariables, reducedMotion, secondaryColors, semanticColors, semanticSpacing, shadowBase, shadowCSSVariables, shadowOpacity, spacing, spacingCSSVariables, springs, surfaceColors, tailwindMotionConfig, tailwindRadiusConfig, tailwindShadowConfig, tailwindSpacingConfig, tailwindThemeColors, tailwindTypographyConfig, textColors, textStyles, tokenSystemSummary, transitions, typographyCSSVariables };
|
|
6089
|
+
export { ALERT_TOKENS, ARTIST_TOKENS, BUTTON_TOKENS, CARD_TOKENS, CHECKBOX_TOKENS, DATA_TOKENS, DOMAIN_TOKENS, DROPDOWN_TOKENS, ICON_TOKENS, INPUT_TOKENS, MENU_TOKENS, MOTION_TOKENS, NAVIGATION_TOKENS, NOTIFICATION_TOKENS, OVERLAY_TOKENS, POPOVER_TOKENS, RADIO_TOKENS, SECTION_TOKENS, SELECT_TOKENS, SURFACE_TOKENS, SWITCH_TOKENS, TEXT_TOKENS, TOAST_TOKENS, TOOLTIP_TOKENS, UI_COLORS, accentColoredShadows, accentColors, allCSSVariables, allCSSVariablesCSS, animations, baseColors, borderRadius, chartColors, colorCSSVariables, componentRadius, componentShadowMapping, cssVariableColorTokens, durations, easings, elevationShadows, focusRings, fontFamily, fontSize, fontSizeWithMd, fontWeight, generateCSSVariablesCSS, glowEffects, keyframes, layoutSpacing, letterSpacing, lineHeight, motionCSSVariables, motionV2CSSVariables, motionV2Combined, motionV2Durations, motionV2Easings, motionV2Fade, motionV2Scale, motionV2Slide, motionV2TailwindConfig, motionV2Transitions, primaryColoredShadows, primaryColors, radiusCSSVariables, reducedMotion, secondaryColors, semanticColors, semanticSpacing, shadowBase, shadowCSSVariables, shadowOpacity, spacing, spacingCSSVariables, springs, surfaceColors, tailwindMotionConfig, tailwindRadiusConfig, tailwindShadowConfig, tailwindSpacingConfig, tailwindThemeColors, tailwindTypographyConfig, textColors, textStyles, tokenSystemSummary, transitions, typographyCSSVariables };
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenerife.music/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"private": false,
|
|
5
|
+
"packageManager": "pnpm@10.18.2",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"sideEffects": [
|
|
7
8
|
"**/*.css",
|
|
@@ -117,6 +118,7 @@
|
|
|
117
118
|
"@commitlint/cli": "^20.1.0",
|
|
118
119
|
"@commitlint/config-conventional": "^20.0.0",
|
|
119
120
|
"@eslint/eslintrc": "^3.3.1",
|
|
121
|
+
"@floating-ui/react-dom": "^2.1.0",
|
|
120
122
|
"@semantic-release/changelog": "^6.0.3",
|
|
121
123
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
122
124
|
"@semantic-release/git": "^10.0.1",
|
|
@@ -143,6 +145,7 @@
|
|
|
143
145
|
"@vitest/coverage-v8": "^4.0.15",
|
|
144
146
|
"@vitest/ui": "^4.0.15",
|
|
145
147
|
"autoprefixer": "^10.0.0",
|
|
148
|
+
"axe-core": "^4.10.0",
|
|
146
149
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
147
150
|
"eslint": "^9.38.0",
|
|
148
151
|
"eslint-config-prettier": "^9.1.2",
|
|
@@ -164,6 +167,8 @@
|
|
|
164
167
|
"tsx": "^4.19.2",
|
|
165
168
|
"typescript": "^5.9.3",
|
|
166
169
|
"typescript-eslint": "^8.47.0",
|
|
170
|
+
"@typescript-eslint/utils": "^8.47.0",
|
|
171
|
+
"@typescript-eslint/types": "^8.47.0",
|
|
167
172
|
"vite": "^5.0.0",
|
|
168
173
|
"vitest": "^4.0.15",
|
|
169
174
|
"vitest-axe": "^0.1.0"
|