@tempots/beatui 0.35.0 → 0.37.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/{2019-DJeW9RI7.cjs → 2019-B1QESOSc.cjs} +1 -1
- package/dist/{2019-Dmseo7Cq.js → 2019-RaU4YQ5c.js} +2 -2
- package/dist/{2020-I1mnGGtD.js → 2020-BAomdSE8.js} +2 -2
- package/dist/{2020-BySxLQc5.cjs → 2020-BI-SxTSK.cjs} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +2 -2
- package/dist/beatui.css +530 -10
- package/dist/beatui.tailwind.css +530 -10
- package/dist/{index-CBc0q0zl.cjs → index-BKjL6RO2.cjs} +2 -2
- package/dist/{index-D-CBfcZj.js → index-BS0NyhvV.js} +192 -189
- package/dist/{index-Ct2_ulan.cjs → index-BzApzJXc.cjs} +1 -1
- package/dist/{index-DbQzJti7.js → index-Dc9UNC8n.js} +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +2501 -2264
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{modal-Dm61yY5i.js → modal-CxG-RO9B.js} +1 -1
- package/dist/{modal-AFhB4rIq.cjs → modal-OMSAbIg1.cjs} +1 -1
- package/dist/notice-0Xhzr7qR.cjs +2 -0
- package/dist/{notice-Cd9ElXwb.js → notice-C7o5d8Jw.js} +390 -375
- package/dist/types/components/data/badge.d.ts +16 -0
- package/dist/types/components/data/index.d.ts +2 -0
- package/dist/types/components/data/table.d.ts +27 -0
- package/dist/types/components/form/input/input-wrapper.d.ts +4 -2
- package/dist/types/components/form/input/switch.d.ts +4 -3
- package/dist/types/components/layout/action-card.d.ts +19 -0
- package/dist/types/components/layout/index.d.ts +1 -0
- package/dist/utils-BcIRhDH0.cjs +1 -0
- package/dist/{utils-g5YCiiS6.js → utils-C7619Rp3.js} +392 -398
- package/package.json +1 -1
- package/dist/notice-len8sDjL.cjs +0 -2
- package/dist/utils-BetBqtiV.cjs +0 -1
package/dist/beatui.css
CHANGED
|
@@ -1067,6 +1067,180 @@ a:focus-visible {
|
|
|
1067
1067
|
|
|
1068
1068
|
}
|
|
1069
1069
|
@layer components {
|
|
1070
|
+
@layer components {
|
|
1071
|
+
.bc-action-card {
|
|
1072
|
+
/* Default CSS variables - can be overridden by inline styles or hover states */
|
|
1073
|
+
--action-card-bg: var(--bg-background-light);
|
|
1074
|
+
--action-card-border: var(--border-divider-light);
|
|
1075
|
+
--action-card-title-color: var(--text-normal-light);
|
|
1076
|
+
--action-card-description-color: var(--text-muted-light);
|
|
1077
|
+
|
|
1078
|
+
/* Layout */
|
|
1079
|
+
display: flex;
|
|
1080
|
+
align-items: flex-start;
|
|
1081
|
+
gap: var(--spacing-md);
|
|
1082
|
+
|
|
1083
|
+
/* Spacing */
|
|
1084
|
+
padding: var(--spacing-md);
|
|
1085
|
+
|
|
1086
|
+
/* Border */
|
|
1087
|
+
border: 2px solid var(--action-card-border);
|
|
1088
|
+
border-radius: var(--radius-lg);
|
|
1089
|
+
|
|
1090
|
+
/* Background */
|
|
1091
|
+
background-color: var(--action-card-bg);
|
|
1092
|
+
|
|
1093
|
+
/* Transitions */
|
|
1094
|
+
transition:
|
|
1095
|
+
border-color 0.2s ease,
|
|
1096
|
+
background-color 0.2s ease,
|
|
1097
|
+
box-shadow 0.2s ease;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
/* Icon container */
|
|
1101
|
+
.bc-action-card__icon {
|
|
1102
|
+
flex-shrink: 0;
|
|
1103
|
+
display: flex;
|
|
1104
|
+
align-items: center;
|
|
1105
|
+
justify-content: center;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
/* Content container */
|
|
1109
|
+
.bc-action-card__content {
|
|
1110
|
+
flex: 1;
|
|
1111
|
+
min-width: 0; /* Allow text truncation */
|
|
1112
|
+
display: flex;
|
|
1113
|
+
flex-direction: column;
|
|
1114
|
+
gap: var(--spacing-xs);
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
/* Title */
|
|
1118
|
+
.bc-action-card__title {
|
|
1119
|
+
font-size: var(--font-size-lg);
|
|
1120
|
+
font-weight: var(--font-weight-semibold);
|
|
1121
|
+
color: var(--action-card-title-color);
|
|
1122
|
+
line-height: var(--line-height-tight);
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
/* Description */
|
|
1126
|
+
.bc-action-card__description {
|
|
1127
|
+
font-size: var(--font-size-md);
|
|
1128
|
+
font-weight: var(--font-weight-normal);
|
|
1129
|
+
color: var(--action-card-description-color);
|
|
1130
|
+
line-height: var(--line-height-normal);
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
/* Clickable state */
|
|
1134
|
+
.bc-action-card--clickable {
|
|
1135
|
+
cursor: pointer;
|
|
1136
|
+
user-select: none;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
.bc-action-card--clickable:hover {
|
|
1140
|
+
--action-card-bg: var(--bg-surface-light);
|
|
1141
|
+
box-shadow: var(--shadow-md);
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
.bc-action-card--clickable:active {
|
|
1145
|
+
transform: translateY(1px);
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
/* Active state */
|
|
1149
|
+
.bc-action-card--active {
|
|
1150
|
+
--action-card-border: var(--color-primary-500);
|
|
1151
|
+
box-shadow: var(--shadow-sm);
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
.bc-action-card--active:hover {
|
|
1155
|
+
--action-card-border: var(--color-primary-600);
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
.b-dark .bc-action-card--active {
|
|
1159
|
+
--action-card-border: var(--color-primary-400);
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
.b-dark .bc-action-card--active:hover {
|
|
1163
|
+
--action-card-border: var(--color-primary-300);
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
/* Disabled state */
|
|
1167
|
+
.bc-action-card--disabled {
|
|
1168
|
+
opacity: 0.5;
|
|
1169
|
+
cursor: not-allowed;
|
|
1170
|
+
pointer-events: none;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
/* Size variants */
|
|
1174
|
+
.bc-action-card--xs {
|
|
1175
|
+
padding: var(--spacing-xs);
|
|
1176
|
+
gap: var(--spacing-xs);
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
.bc-action-card--xs .bc-action-card__title {
|
|
1180
|
+
font-size: var(--font-size-sm);
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
.bc-action-card--xs .bc-action-card__description {
|
|
1184
|
+
font-size: var(--font-size-xs);
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
.bc-action-card--sm {
|
|
1188
|
+
padding: var(--spacing-sm);
|
|
1189
|
+
gap: var(--spacing-sm);
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
.bc-action-card--sm .bc-action-card__title {
|
|
1193
|
+
font-size: var(--font-size-md);
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
.bc-action-card--sm .bc-action-card__description {
|
|
1197
|
+
font-size: var(--font-size-sm);
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
.bc-action-card--lg {
|
|
1201
|
+
padding: var(--spacing-xl);
|
|
1202
|
+
gap: var(--spacing-lg);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.bc-action-card--lg .bc-action-card__title {
|
|
1206
|
+
font-size: var(--font-size-xl);
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
.bc-action-card--lg .bc-action-card__description {
|
|
1210
|
+
font-size: var(--font-size-lg);
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
.bc-action-card--xl {
|
|
1214
|
+
padding: var(--spacing-2xl);
|
|
1215
|
+
gap: var(--spacing-xl);
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
.bc-action-card--xl .bc-action-card__title {
|
|
1219
|
+
font-size: var(--font-size-2xl);
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
.bc-action-card--xl .bc-action-card__description {
|
|
1223
|
+
font-size: var(--font-size-xl);
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
/* Focus styles for accessibility */
|
|
1227
|
+
.bc-action-card--clickable:focus-visible {
|
|
1228
|
+
outline: 2px solid var(--color-primary-500);
|
|
1229
|
+
outline-offset: 2px;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
/* Reduced motion */
|
|
1233
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1234
|
+
.bc-action-card {
|
|
1235
|
+
transition: none;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
.bc-action-card--clickable:active {
|
|
1239
|
+
transform: none;
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1070
1244
|
/* Auth Container Component */
|
|
1071
1245
|
.bc-auth-container--styled {
|
|
1072
1246
|
display: flex;
|
|
@@ -1410,6 +1584,138 @@ a:focus-visible {
|
|
|
1410
1584
|
color: var(--color-white);
|
|
1411
1585
|
}
|
|
1412
1586
|
|
|
1587
|
+
/* Badge Component */
|
|
1588
|
+
.bc-badge {
|
|
1589
|
+
--badge-bg: transparent;
|
|
1590
|
+
--badge-bg-dark: transparent;
|
|
1591
|
+
--badge-bg-hover: var(--badge-bg);
|
|
1592
|
+
--badge-bg-hover-dark: var(--badge-bg-dark);
|
|
1593
|
+
--badge-text: inherit;
|
|
1594
|
+
--badge-text-dark: inherit;
|
|
1595
|
+
--badge-text-hover: var(--badge-text);
|
|
1596
|
+
--badge-text-hover-dark: var(--badge-text-dark);
|
|
1597
|
+
--badge-border: transparent;
|
|
1598
|
+
--badge-border-dark: transparent;
|
|
1599
|
+
|
|
1600
|
+
display: inline-flex;
|
|
1601
|
+
align-items: center;
|
|
1602
|
+
justify-content: center;
|
|
1603
|
+
border: 1.5px solid var(--badge-border);
|
|
1604
|
+
font-weight: var(--font-weight-semibold);
|
|
1605
|
+
font-family: var(
|
|
1606
|
+
--default-ui-font-family,
|
|
1607
|
+
var(--font-ui, var(--font-body, var(--font-family-sans)))
|
|
1608
|
+
);
|
|
1609
|
+
font-size: inherit;
|
|
1610
|
+
line-height: 1;
|
|
1611
|
+
border-radius: var(--radius-badge, var(--radius-control, var(--radius-md)));
|
|
1612
|
+
transition: all
|
|
1613
|
+
var(--motion-transition-fast, var(--motion-duration-fast, 0.2s))
|
|
1614
|
+
var(--motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
1615
|
+
background-color: var(--badge-bg);
|
|
1616
|
+
color: var(--badge-text);
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
.bc-badge__content {
|
|
1620
|
+
display: flex;
|
|
1621
|
+
align-items: center;
|
|
1622
|
+
justify-content: center;
|
|
1623
|
+
gap: var(
|
|
1624
|
+
--badge-gap,
|
|
1625
|
+
var(--spacing-stack-2xs, calc(var(--spacing-base) / 2))
|
|
1626
|
+
);
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
/* Size variants */
|
|
1630
|
+
.bc-badge--size-xs {
|
|
1631
|
+
font-size: var(--font-size-xs);
|
|
1632
|
+
padding: calc(var(--spacing-base) * 0.5) calc(var(--spacing-base) * 1);
|
|
1633
|
+
--badge-gap: calc(var(--spacing-base) * 0.25);
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
.bc-badge--size-sm {
|
|
1637
|
+
font-size: var(--font-size-sm);
|
|
1638
|
+
padding: calc(var(--spacing-base) * 0.75) calc(var(--spacing-base) * 1.5);
|
|
1639
|
+
--badge-gap: calc(var(--spacing-base) * 0.5);
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
.bc-badge--size-md {
|
|
1643
|
+
font-size: var(--font-size-base);
|
|
1644
|
+
padding: var(--spacing-base) calc(var(--spacing-base) * 2);
|
|
1645
|
+
--badge-gap: calc(var(--spacing-base) * 0.75);
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
.bc-badge--size-lg {
|
|
1649
|
+
font-size: var(--font-size-lg);
|
|
1650
|
+
padding: calc(var(--spacing-base) * 1.25) calc(var(--spacing-base) * 2.5);
|
|
1651
|
+
--badge-gap: var(--spacing-base);
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
.bc-badge--size-xl {
|
|
1655
|
+
font-size: var(--font-size-xl);
|
|
1656
|
+
padding: calc(var(--spacing-base) * 1.5) calc(var(--spacing-base) * 3);
|
|
1657
|
+
--badge-gap: calc(var(--spacing-base) * 1.25);
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
/* Circle variant - makes badge circular with equal width/height */
|
|
1661
|
+
.bc-badge--circle {
|
|
1662
|
+
padding-left: 0;
|
|
1663
|
+
padding-right: 0;
|
|
1664
|
+
aspect-ratio: 1;
|
|
1665
|
+
border-radius: 50%;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
.bc-badge--circle.bc-badge--size-xs {
|
|
1669
|
+
min-width: calc(var(--font-size-xs) + var(--spacing-base) * 1 + 3px);
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
.bc-badge--circle.bc-badge--size-sm {
|
|
1673
|
+
min-width: calc(var(--font-size-sm) + var(--spacing-base) * 1.5 + 3px);
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
.bc-badge--circle.bc-badge--size-md {
|
|
1677
|
+
min-width: calc(var(--font-size-md) + var(--spacing-base) * 2 + 3px);
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
.bc-badge--circle.bc-badge--size-lg {
|
|
1681
|
+
min-width: calc(var(--font-size-lg) * 1.2 + var(--spacing-base) * 2.5 + 3px);
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
.bc-badge--circle.bc-badge--size-xl {
|
|
1685
|
+
min-width: calc(var(--font-size-xl) * 1.2 + var(--spacing-base) * 3 + 3px);
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
/* Full width variant */
|
|
1689
|
+
.bc-badge--full-width {
|
|
1690
|
+
display: flex;
|
|
1691
|
+
width: 100%;
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
/* Dark mode styles */
|
|
1695
|
+
.b-dark .bc-badge {
|
|
1696
|
+
background-color: var(--badge-bg-dark);
|
|
1697
|
+
color: var(--badge-text-dark);
|
|
1698
|
+
border-color: var(--badge-border-dark);
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
.b-dark .bc-badge:hover {
|
|
1702
|
+
background-color: var(--badge-bg-hover-dark);
|
|
1703
|
+
color: var(--badge-text-hover-dark);
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
/* Accessibility adjustments */
|
|
1707
|
+
@media (prefers-contrast: high) {
|
|
1708
|
+
.bc-badge {
|
|
1709
|
+
border-width: 2px;
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1714
|
+
.bc-badge {
|
|
1715
|
+
transition: none;
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1413
1719
|
/* Button Component */
|
|
1414
1720
|
.bc-button {
|
|
1415
1721
|
--button-bg: transparent;
|
|
@@ -3555,13 +3861,26 @@ a:focus-visible {
|
|
|
3555
3861
|
width: 100%;
|
|
3556
3862
|
}
|
|
3557
3863
|
|
|
3558
|
-
/* Horizontal layout
|
|
3559
|
-
.bc-input-wrapper--horizontal
|
|
3864
|
+
/* Horizontal layout variants */
|
|
3865
|
+
.bc-input-wrapper--horizontal,
|
|
3866
|
+
.bc-input-wrapper--horizontal-label-right,
|
|
3867
|
+
.bc-input-wrapper--horizontal-fixed {
|
|
3560
3868
|
flex-direction: row;
|
|
3561
3869
|
align-items: center;
|
|
3562
3870
|
gap: var(--spacing-stack-lg, calc(var(--spacing-base) * 4));
|
|
3563
3871
|
}
|
|
3564
3872
|
|
|
3873
|
+
/* Horizontal with label on right */
|
|
3874
|
+
.bc-input-wrapper--horizontal-label-right {
|
|
3875
|
+
flex-direction: row-reverse;
|
|
3876
|
+
}
|
|
3877
|
+
|
|
3878
|
+
/* Horizontal with fixed-width label */
|
|
3879
|
+
.bc-input-wrapper--horizontal-fixed .bc-input-wrapper__header {
|
|
3880
|
+
width: var(--input-wrapper-label-width, 12rem);
|
|
3881
|
+
flex-shrink: 0;
|
|
3882
|
+
}
|
|
3883
|
+
|
|
3565
3884
|
/* Label header container */
|
|
3566
3885
|
.bc-input-wrapper__header {
|
|
3567
3886
|
display: flex;
|
|
@@ -3613,23 +3932,32 @@ a:focus-visible {
|
|
|
3613
3932
|
vertical-align: top;
|
|
3614
3933
|
}
|
|
3615
3934
|
|
|
3616
|
-
/* Horizontal layout adjustments */
|
|
3617
|
-
.bc-input-wrapper--horizontal .bc-input-wrapper__header
|
|
3935
|
+
/* Horizontal layout adjustments (all variants) */
|
|
3936
|
+
.bc-input-wrapper--horizontal .bc-input-wrapper__header,
|
|
3937
|
+
.bc-input-wrapper--horizontal-label-right .bc-input-wrapper__header {
|
|
3618
3938
|
flex-shrink: 0;
|
|
3619
3939
|
min-width: 0;
|
|
3620
3940
|
/* Allow text to wrap if needed */
|
|
3621
3941
|
}
|
|
3622
3942
|
|
|
3623
|
-
.bc-input-wrapper--horizontal .bc-input-wrapper__content
|
|
3943
|
+
.bc-input-wrapper--horizontal .bc-input-wrapper__content,
|
|
3944
|
+
.bc-input-wrapper--horizontal-label-right .bc-input-wrapper__content,
|
|
3945
|
+
.bc-input-wrapper--horizontal-fixed .bc-input-wrapper__content {
|
|
3624
3946
|
flex: 1;
|
|
3625
3947
|
min-width: 0; /* Prevent overflow issues */
|
|
3626
3948
|
}
|
|
3627
3949
|
|
|
3628
3950
|
/* Error messages in horizontal mode should align with content */
|
|
3629
|
-
.bc-input-wrapper--horizontal .bc-input-wrapper__error
|
|
3951
|
+
.bc-input-wrapper--horizontal .bc-input-wrapper__error,
|
|
3952
|
+
.bc-input-wrapper--horizontal-fixed .bc-input-wrapper__error {
|
|
3630
3953
|
margin-left: calc(var(--spacing-base) * 4); /* Align with content */
|
|
3631
3954
|
}
|
|
3632
3955
|
|
|
3956
|
+
/* Error messages in horizontal-label-right mode should align with content on the right */
|
|
3957
|
+
.bc-input-wrapper--horizontal-label-right .bc-input-wrapper__error {
|
|
3958
|
+
margin-right: calc(var(--spacing-base) * 4); /* Align with content */
|
|
3959
|
+
}
|
|
3960
|
+
|
|
3633
3961
|
/* Description text */
|
|
3634
3962
|
.bc-input-wrapper__description {
|
|
3635
3963
|
font-size: var(--font-size-sm);
|
|
@@ -6508,6 +6836,195 @@ span.bc-sidebar-link {
|
|
|
6508
6836
|
box-shadow: var(--shadow-switch-thumb-dark, var(--shadow-md));
|
|
6509
6837
|
}
|
|
6510
6838
|
|
|
6839
|
+
/* Table Container */
|
|
6840
|
+
.bc-table-container {
|
|
6841
|
+
--table-bg: #fff;
|
|
6842
|
+
--table-text: var(--text-normal-light);
|
|
6843
|
+
--table-border: var(--border-border-light);
|
|
6844
|
+
--table-header-bg: var(--bg-surface-light);
|
|
6845
|
+
--table-header-text: var(--text-normal-light);
|
|
6846
|
+
--table-stripe-bg: var(--bg-background-light);
|
|
6847
|
+
--table-hover-bg: var(--interactive-hover-light);
|
|
6848
|
+
--table-border-radius: var(--radius-surface, var(--radius-lg));
|
|
6849
|
+
|
|
6850
|
+
display: inline-block;
|
|
6851
|
+
max-width: 100%;
|
|
6852
|
+
overflow: hidden;
|
|
6853
|
+
border-radius: var(--table-border-radius);
|
|
6854
|
+
}
|
|
6855
|
+
|
|
6856
|
+
/* Container for sticky header - needs to be scrollable */
|
|
6857
|
+
.bc-table-container--sticky {
|
|
6858
|
+
max-height: 100%;
|
|
6859
|
+
overflow: auto;
|
|
6860
|
+
}
|
|
6861
|
+
|
|
6862
|
+
/* Full width container */
|
|
6863
|
+
.bc-table-container--full-width {
|
|
6864
|
+
display: block;
|
|
6865
|
+
width: 100%;
|
|
6866
|
+
}
|
|
6867
|
+
|
|
6868
|
+
/* Table Component */
|
|
6869
|
+
.bc-table {
|
|
6870
|
+
width: 100%;
|
|
6871
|
+
border-collapse: collapse;
|
|
6872
|
+
background-color: var(--table-bg);
|
|
6873
|
+
color: var(--table-text);
|
|
6874
|
+
font-family: var(
|
|
6875
|
+
--default-ui-font-family,
|
|
6876
|
+
var(--font-ui, var(--font-body, var(--font-family-sans)))
|
|
6877
|
+
);
|
|
6878
|
+
font-size: var(--font-size-base);
|
|
6879
|
+
line-height: var(--line-height-normal);
|
|
6880
|
+
border: none;
|
|
6881
|
+
}
|
|
6882
|
+
|
|
6883
|
+
/* Table header */
|
|
6884
|
+
.bc-table thead,
|
|
6885
|
+
.bc-table tfoot {
|
|
6886
|
+
background-color: var(--table-header-bg);
|
|
6887
|
+
color: var(--table-header-text);
|
|
6888
|
+
font-weight: var(--font-weight-semibold);
|
|
6889
|
+
}
|
|
6890
|
+
|
|
6891
|
+
/* Sticky header */
|
|
6892
|
+
.bc-table--sticky-header thead {
|
|
6893
|
+
position: sticky;
|
|
6894
|
+
top: 0;
|
|
6895
|
+
z-index: var(--z-index-sticky, 10);
|
|
6896
|
+
box-shadow: var(--shadow-sm);
|
|
6897
|
+
}
|
|
6898
|
+
|
|
6899
|
+
/* Sticky footer */
|
|
6900
|
+
.bc-table--sticky-header tfoot {
|
|
6901
|
+
position: sticky;
|
|
6902
|
+
bottom: 0;
|
|
6903
|
+
z-index: var(--z-index-sticky, 10);
|
|
6904
|
+
box-shadow: var(--shadow-sm);
|
|
6905
|
+
}
|
|
6906
|
+
|
|
6907
|
+
/* Table cells */
|
|
6908
|
+
.bc-table th,
|
|
6909
|
+
.bc-table td {
|
|
6910
|
+
text-align: left;
|
|
6911
|
+
vertical-align: middle;
|
|
6912
|
+
padding: var(--spacing-md);
|
|
6913
|
+
border: none;
|
|
6914
|
+
}
|
|
6915
|
+
|
|
6916
|
+
.bc-table th {
|
|
6917
|
+
font-weight: var(--font-weight-semibold);
|
|
6918
|
+
white-space: nowrap;
|
|
6919
|
+
}
|
|
6920
|
+
|
|
6921
|
+
/* With table border */
|
|
6922
|
+
.bc-table-container--with-table-border {
|
|
6923
|
+
border: 1px solid var(--table-border);
|
|
6924
|
+
}
|
|
6925
|
+
|
|
6926
|
+
/* With row borders */
|
|
6927
|
+
.bc-table--with-row-borders th,
|
|
6928
|
+
.bc-table--with-row-borders td {
|
|
6929
|
+
border-bottom: 1px solid var(--table-border);
|
|
6930
|
+
}
|
|
6931
|
+
|
|
6932
|
+
/* With column borders */
|
|
6933
|
+
.bc-table--with-column-borders th,
|
|
6934
|
+
.bc-table--with-column-borders td {
|
|
6935
|
+
border-right: 1px solid var(--table-border);
|
|
6936
|
+
}
|
|
6937
|
+
|
|
6938
|
+
.bc-table--with-column-borders th:last-child,
|
|
6939
|
+
.bc-table--with-column-borders td:last-child {
|
|
6940
|
+
border-right: none;
|
|
6941
|
+
}
|
|
6942
|
+
|
|
6943
|
+
/* With striped rows */
|
|
6944
|
+
.bc-table--with-striped-rows tbody tr:nth-child(even) {
|
|
6945
|
+
background-color: var(--table-stripe-bg);
|
|
6946
|
+
}
|
|
6947
|
+
|
|
6948
|
+
/* Hoverable striped rows - darker stripe on hover */
|
|
6949
|
+
.bc-table--hoverable.bc-table--with-striped-rows
|
|
6950
|
+
tbody
|
|
6951
|
+
tr:nth-child(even):hover {
|
|
6952
|
+
background-color: var(--table-hover-bg);
|
|
6953
|
+
filter: brightness(0.95);
|
|
6954
|
+
}
|
|
6955
|
+
|
|
6956
|
+
/* Size variants */
|
|
6957
|
+
.bc-table--size-xs th,
|
|
6958
|
+
.bc-table--size-xs td {
|
|
6959
|
+
padding: var(--spacing-xs);
|
|
6960
|
+
font-size: var(--font-size-sm);
|
|
6961
|
+
}
|
|
6962
|
+
|
|
6963
|
+
.bc-table--size-sm th,
|
|
6964
|
+
.bc-table--size-sm td {
|
|
6965
|
+
padding: calc(var(--spacing-base) * 1.5);
|
|
6966
|
+
font-size: var(--font-size-sm);
|
|
6967
|
+
}
|
|
6968
|
+
|
|
6969
|
+
.bc-table--size-lg th,
|
|
6970
|
+
.bc-table--size-lg td {
|
|
6971
|
+
padding: var(--spacing-lg);
|
|
6972
|
+
}
|
|
6973
|
+
|
|
6974
|
+
.bc-table--size-xl th,
|
|
6975
|
+
.bc-table--size-xl td {
|
|
6976
|
+
padding: calc(var(--spacing-base) * 5);
|
|
6977
|
+
font-size: var(--font-size-lg);
|
|
6978
|
+
}
|
|
6979
|
+
|
|
6980
|
+
/* Hoverable rows */
|
|
6981
|
+
.bc-table--hoverable tbody tr {
|
|
6982
|
+
transition: background-color
|
|
6983
|
+
var(--motion-transition-fast, var(--motion-duration-fast, 0.2s))
|
|
6984
|
+
var(--motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
6985
|
+
cursor: pointer;
|
|
6986
|
+
}
|
|
6987
|
+
|
|
6988
|
+
.bc-table--hoverable tbody tr:hover {
|
|
6989
|
+
background-color: var(--table-hover-bg);
|
|
6990
|
+
}
|
|
6991
|
+
|
|
6992
|
+
/* Footer */
|
|
6993
|
+
.bc-table__footer {
|
|
6994
|
+
background-color: var(--table-header-bg);
|
|
6995
|
+
font-weight: var(--font-weight-semibold);
|
|
6996
|
+
border-top: 2px solid var(--table-border);
|
|
6997
|
+
}
|
|
6998
|
+
|
|
6999
|
+
/* Dark mode styles */
|
|
7000
|
+
.b-dark .bc-table-container {
|
|
7001
|
+
--table-bg: var(--bg-background-dark);
|
|
7002
|
+
--table-text: var(--text-normal-dark);
|
|
7003
|
+
--table-border: var(--border-border-dark);
|
|
7004
|
+
--table-header-bg: var(--bg-surface-dark);
|
|
7005
|
+
--table-header-text: var(--text-normal-dark);
|
|
7006
|
+
--table-stripe-bg: var(--bg-surface-dark);
|
|
7007
|
+
--table-hover-bg: var(--interactive-hover-dark);
|
|
7008
|
+
}
|
|
7009
|
+
|
|
7010
|
+
/* Accessibility */
|
|
7011
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7012
|
+
.bc-table--hoverable tbody tr {
|
|
7013
|
+
transition: none;
|
|
7014
|
+
}
|
|
7015
|
+
}
|
|
7016
|
+
|
|
7017
|
+
/* Responsive behavior - allow horizontal scroll on small screens */
|
|
7018
|
+
@media (width < 48rem) {
|
|
7019
|
+
.bc-table-container {
|
|
7020
|
+
overflow-x: auto;
|
|
7021
|
+
}
|
|
7022
|
+
|
|
7023
|
+
.bc-table {
|
|
7024
|
+
white-space: nowrap;
|
|
7025
|
+
}
|
|
7026
|
+
}
|
|
7027
|
+
|
|
6511
7028
|
/* Tabs Component */
|
|
6512
7029
|
.bc-tabs {
|
|
6513
7030
|
display: flex;
|
|
@@ -7312,7 +7829,7 @@ span.bc-sidebar-link {
|
|
|
7312
7829
|
}
|
|
7313
7830
|
|
|
7314
7831
|
/* Top-left corner */
|
|
7315
|
-
.bc-ribbon[style*=
|
|
7832
|
+
.bc-ribbon[style*='--ribbon-corner: top-left'] {
|
|
7316
7833
|
top: 0;
|
|
7317
7834
|
left: 0;
|
|
7318
7835
|
transform: translate(-50%, -50%) rotate(calc(var(--ribbon-angle, 45deg) * -1))
|
|
@@ -7320,7 +7837,7 @@ span.bc-sidebar-link {
|
|
|
7320
7837
|
}
|
|
7321
7838
|
|
|
7322
7839
|
/* Bottom-right corner */
|
|
7323
|
-
.bc-ribbon[style*=
|
|
7840
|
+
.bc-ribbon[style*='--ribbon-corner: bottom-right'] {
|
|
7324
7841
|
top: 100%;
|
|
7325
7842
|
left: 100%;
|
|
7326
7843
|
transform: translate(-50%, -50%) rotate(calc(var(--ribbon-angle, 45deg) * -1))
|
|
@@ -7328,11 +7845,14 @@ span.bc-sidebar-link {
|
|
|
7328
7845
|
}
|
|
7329
7846
|
|
|
7330
7847
|
/* Bottom-left corner */
|
|
7331
|
-
.bc-ribbon[style*=
|
|
7848
|
+
.bc-ribbon[style*='--ribbon-corner: bottom-left'] {
|
|
7332
7849
|
top: 100%;
|
|
7333
7850
|
left: 0;
|
|
7334
7851
|
transform: translate(-50%, -50%) rotate(var(--ribbon-angle, 45deg))
|
|
7335
|
-
translate(
|
|
7852
|
+
translate(
|
|
7853
|
+
calc(var(--ribbon-inset, 0px) * -1),
|
|
7854
|
+
calc(var(--ribbon-offset, 0px) * -1)
|
|
7855
|
+
);
|
|
7336
7856
|
}
|
|
7337
7857
|
|
|
7338
7858
|
/* Dark mode overrides */
|