Skip to content

Commit e1c54b9

Browse files
bariskaracaSaffet Barış KaracaleventozenAykut SaraçEnes5519
authored
feat: table component (#788)
Closes #142 --------- Co-authored-by: Saffet Barış Karaca <baris.karaca@trendyol.com> Co-authored-by: Levent Anil Ozen <leventanilozen@gmail.com> Co-authored-by: Aykut Saraç <aykut.sarac@trendyol.com> Co-authored-by: Enes Yıldırım <enes5519@gmail.com>
1 parent ad09502 commit e1c54b9

24 files changed

Lines changed: 3006 additions & 0 deletions

commitlint.config.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = {
3131
"textarea",
3232
"popover",
3333
"notification",
34+
"table",
3435
],
3536
],
3637
},

src/baklava.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,10 @@ export { default as BlDropdownGroup } from "./components/dropdown/group/bl-dropd
2525
export { default as BlSwitch } from "./components/switch/bl-switch";
2626
export { default as BlNotification } from "./components/notification/bl-notification";
2727
export { default as BlNotificationCard } from "./components/notification/card/bl-notification-card";
28+
export { default as BlTable } from "./components/table/bl-table";
29+
export { default as BlTableHeader } from "./components/table/table-header/bl-table-header";
30+
export { default as BlTableBody } from "./components/table/table-body/bl-table-body";
31+
export { default as BlTableRow } from "./components/table/table-row/bl-table-row";
32+
export { default as BlTableHeaderCell } from "./components/table/table-header-cell/bl-table-header-cell";
33+
export { default as BlTableCell } from "./components/table/table-cell/bl-table-cell";
2834
export { getIconPath, setIconPath } from "./utilities/asset-paths";

src/components/icon/icon-list.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ const icons = [
194194
"shopping_bag_discount",
195195
"shopping_bag_return",
196196
"sorting",
197+
"sorting_asc",
198+
"sorting_desc",
197199
"sound_off",
198200
"sound_on",
199201
"split_money",
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading

src/components/table/bl-table.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
:host {
2+
display: block;
3+
height: 100%;
4+
}
5+
6+
.table-wrapper {
7+
overflow: auto;
8+
border: 1px solid var(--bl-color-neutral-lighter);
9+
border-radius: var(--bl-size-3xs);
10+
position: relative;
11+
max-height: 100%;
12+
}
13+
14+
.table {
15+
width: 100%;
16+
display: table;
17+
border-spacing: 0;
18+
}

src/components/table/bl-table.stories.mdx

Lines changed: 564 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)