-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
APP-2302 Migrate table to prime-core (#323)
- Loading branch information
Showing
24 changed files
with
666 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/core/src/lib/context-menu/context-menu-separator.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
<!-- | ||
@component | ||
A horizontal line divider within a context menu. | ||
```svelte | ||
<ContextMenuSeparator /> | ||
``` | ||
--> | ||
<svelte:options immutable /> | ||
|
||
<hr class="mb-0.5 mt-1 border-light drop-shadow-none" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!-- | ||
@component | ||
A table body. | ||
```svelte | ||
<Table> | ||
<TableBody></TableBody> | ||
</Table> | ||
``` | ||
--> | ||
<svelte:options immutable /> | ||
|
||
<script lang="ts"> | ||
/** | ||
* Custom table body style | ||
* ``` | ||
* <TableBody style="text-align:center"> | ||
* ``` | ||
*/ | ||
export let style = ''; | ||
</script> | ||
|
||
<tbody {style}> | ||
<slot /> | ||
</tbody> | ||
|
||
<style> | ||
:host { | ||
display: contents !important; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!-- | ||
@component | ||
A table body. | ||
```svelte | ||
<Table> | ||
<TableBody> | ||
<TableCell></TableCell> | ||
</TableBody> | ||
</Table> | ||
``` | ||
--> | ||
<svelte:options immutable /> | ||
|
||
<script lang="ts"> | ||
/** | ||
* Custom table cell style | ||
* ``` | ||
* <TableCell style="text-align:center"> | ||
* ``` | ||
*/ | ||
export let style = ''; | ||
</script> | ||
|
||
<td | ||
{style} | ||
part="table-cell" | ||
class="overflow-hidden p-2" | ||
> | ||
<slot /> | ||
</td> | ||
|
||
<style> | ||
:host { | ||
display: contents !important; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!-- | ||
@component | ||
A table header cell. | ||
```svelte | ||
<Table> | ||
<TableHeader> | ||
<TableHeaderCell></TableHeaderCell> | ||
</TableHeader> | ||
</Table> | ||
``` | ||
--> | ||
<svelte:options immutable /> | ||
|
||
<script lang="ts"> | ||
/** | ||
* Custom table header cell style | ||
* ``` | ||
* <TableHeaderCell style="text-align:center"> | ||
* ``` | ||
*/ | ||
export let style = ''; | ||
</script> | ||
|
||
<th | ||
{style} | ||
class="overflow-hidden p-2 font-normal text-default" | ||
> | ||
<slot /> | ||
</th> | ||
|
||
<style> | ||
:host { | ||
display: contents !important; | ||
} | ||
</style> |
Oops, something went wrong.