You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add data ids for table sidebar and calendar
* feat: enhance CalendarGrid with scroll position management and data attributes
* feat: add data attributes to Card, DataTable, and SplitTag components
* feat: implement server-side pagination handling in DataTable component
* feat: enhance pagination and layout handling for server-side mode
* feat: add maxHeight prop to Card component for improved layout control
<br/>• <strong>Smooth Scrolling:</strong> Enhanced user
1113
+
experience with smooth scroll behavior
1114
+
<br/>• <strong>Touch Support:</strong> Optimized for mobile
1115
+
and touch devices
1116
+
</p>
1117
+
1118
+
<div
1119
+
style={{
1120
+
display: 'grid',
1121
+
gridTemplateColumns:
1122
+
'repeat(auto-fit, minmax(320px, 1fr))',
1123
+
gap: '20px',
1124
+
marginBottom: '32px',
1125
+
}}
1126
+
>
1127
+
{/* Default Card with Scroll */}
1128
+
<Card
1129
+
maxHeight="300px"
1130
+
headerSlot1={iconSlot}
1131
+
headerTitle="Scrollable Default Card"
1132
+
headerTag={
1133
+
<Tag
1134
+
text="Scrollable"
1135
+
variant={TagVariant.ATTENTIVE}
1136
+
color={TagColor.WARNING}
1137
+
size={TagSize.SM}
1138
+
/>
1139
+
}
1140
+
headerSlot2={
1141
+
<Button
1142
+
buttonType={ButtonType.SECONDARY}
1143
+
size={ButtonSize.SMALL}
1144
+
leadingIcon={<Settingssize={16}/>}
1145
+
/>
1146
+
}
1147
+
subHeader="This card has maxHeight=300px and will scroll when content overflows"
1148
+
bodySlot1={
1149
+
<div
1150
+
style={{
1151
+
padding: '12px',
1152
+
backgroundColor: '#fef3c7',
1153
+
borderRadius: '6px',
1154
+
border: '1px solid #fbbf24',
1155
+
}}
1156
+
>
1157
+
<Text
1158
+
style={{
1159
+
fontSize: '14px',
1160
+
color: '#92400e',
1161
+
}}
1162
+
>
1163
+
📏 Fixed Height Demo - Scroll to see all
1164
+
content
1165
+
</Text>
1166
+
</div>
1167
+
}
1168
+
bodyTitle="Long Content Section"
1169
+
content="This is a demonstration of scrollable content in cards. When the total content height exceeds the maxHeight property, the card becomes scrollable with hidden scrollbars for a clean appearance. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium."
1170
+
bodySlot2={
1171
+
<div
1172
+
style={{
1173
+
display: 'flex',
1174
+
gap: '8px',
1175
+
flexWrap: 'wrap',
1176
+
}}
1177
+
>
1178
+
<Tag
1179
+
text="Scroll Demo"
1180
+
variant={TagVariant.SUBTLE}
1181
+
color={TagColor.PRIMARY}
1182
+
size={TagSize.SM}
1183
+
/>
1184
+
<Tag
1185
+
text="Hidden Scrollbar"
1186
+
variant={TagVariant.SUBTLE}
1187
+
color={TagColor.SUCCESS}
1188
+
size={TagSize.SM}
1189
+
/>
1190
+
<Tag
1191
+
text="Overflow Content"
1192
+
variant={TagVariant.SUBTLE}
1193
+
color={TagColor.WARNING}
1194
+
size={TagSize.SM}
1195
+
/>
1196
+
</div>
1197
+
}
1198
+
actionButton={{
1199
+
text: 'Take Action',
1200
+
buttonType: ButtonType.PRIMARY,
1201
+
size: ButtonSize.SMALL,
1202
+
}}
1203
+
/>
1204
+
1205
+
{/* Aligned Card with Scroll */}
1206
+
<Card
1207
+
variant={CardVariant.ALIGNED}
1208
+
alignment={CardAlignment.VERTICAL}
1209
+
centerAlign={false}
1210
+
maxHeight="300px"
1211
+
cardSlot={imageSlot}
1212
+
headerTitle="Scrollable Aligned Card"
1213
+
headerTag={
1214
+
<Tag
1215
+
text="Max Height"
1216
+
variant={TagVariant.SUBTLE}
1217
+
color={TagColor.PRIMARY}
1218
+
size={TagSize.SM}
1219
+
/>
1220
+
}
1221
+
subHeader="Vertical aligned card with 300px height limit"
1222
+
bodyTitle="Overflow Content Demo"
1223
+
content="This aligned card demonstrates scrolling behavior when content exceeds the maxHeight. The image slot remains visible while the content area becomes scrollable. Perfect for image galleries with detailed descriptions, user profiles with extensive information, or any layout where you want to maintain a consistent card height while allowing content to expand. The scrolling is smooth and scrollbars are hidden for aesthetic appeal. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris."
0 commit comments