Skip to content

Commit

Permalink
feat: table component (#788)
Browse files Browse the repository at this point in the history
Closes #142

---------

Co-authored-by: Saffet Barış Karaca <[email protected]>
Co-authored-by: Levent Anil Ozen <[email protected]>
Co-authored-by: Aykut Saraç <[email protected]>
Co-authored-by: Enes Yıldırım <[email protected]>
  • Loading branch information
5 people authored Feb 28, 2024
1 parent ad09502 commit e1c54b9
Show file tree
Hide file tree
Showing 24 changed files with 3,006 additions and 0 deletions.
1 change: 1 addition & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = {
"textarea",
"popover",
"notification",
"table",
],
],
},
Expand Down
6 changes: 6 additions & 0 deletions src/baklava.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@ export { default as BlDropdownGroup } from "./components/dropdown/group/bl-dropd
export { default as BlSwitch } from "./components/switch/bl-switch";
export { default as BlNotification } from "./components/notification/bl-notification";
export { default as BlNotificationCard } from "./components/notification/card/bl-notification-card";
export { default as BlTable } from "./components/table/bl-table";
export { default as BlTableHeader } from "./components/table/table-header/bl-table-header";
export { default as BlTableBody } from "./components/table/table-body/bl-table-body";
export { default as BlTableRow } from "./components/table/table-row/bl-table-row";
export { default as BlTableHeaderCell } from "./components/table/table-header-cell/bl-table-header-cell";
export { default as BlTableCell } from "./components/table/table-cell/bl-table-cell";
export { getIconPath, setIconPath } from "./utilities/asset-paths";
2 changes: 2 additions & 0 deletions src/components/icon/icon-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ const icons = [
"shopping_bag_discount",
"shopping_bag_return",
"sorting",
"sorting_asc",
"sorting_desc",
"sound_off",
"sound_on",
"split_money",
Expand Down
4 changes: 4 additions & 0 deletions src/components/icon/icons/sorting_asc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/components/icon/icons/sorting_desc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions src/components/table/bl-table.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
:host {
display: block;
height: 100%;
}

.table-wrapper {
overflow: auto;
border: 1px solid var(--bl-color-neutral-lighter);
border-radius: var(--bl-size-3xs);
position: relative;
max-height: 100%;
}

.table {
width: 100%;
display: table;
border-spacing: 0;
}
564 changes: 564 additions & 0 deletions src/components/table/bl-table.stories.mdx

Large diffs are not rendered by default.

Loading

0 comments on commit e1c54b9

Please sign in to comment.