Skip to content

Commit

Permalink
3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Sep 20, 2023
1 parent 643973d commit f48b2d0
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 56 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

# [3.1.0](https://github.com/konstaui/konsta/compare/v3.0.1...v3.1.0) (2023-09-20)

### Bug Fixes

- **react:** camel case `tabIndex` in Link component ([#170](https://github.com/konstaui/konsta/issues/170)) ([f16b164](https://github.com/konstaui/konsta/commit/f16b1649c518ee9b9b10fd4f859815de9ed2e98c))
- **react:** camel case `tabIndex` in react components ([#175](https://github.com/konstaui/konsta/issues/175)) ([85a29e9](https://github.com/konstaui/konsta/commit/85a29e9f91208ad9367e29230cbabd947cc23b19))

### Features

- Data Table Components ([#173](https://github.com/konstaui/konsta/issues/173)) ([643973d](https://github.com/konstaui/konsta/commit/643973d63409809b0b0bb31d5b0eb2ac905d14e3))

# [3.0.1](https://github.com/konstaui/konsta/compare/v3.0.0...v3.0.1) (2023-08-24)

### Bug Fixes
Expand Down
33 changes: 9 additions & 24 deletions kitchen-sink/svelte/pages/DataTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
const isPreview = document.location.href.includes('examplePreview');
</script>

<Page>
<Navbar title="Data Table">
<svelte:fragment slot="left">
Expand All @@ -28,18 +29,10 @@
<TableHead>
<TableRow header>
<TableCell header>Dessert (100g serving)</TableCell>
<TableCell header class="text-right">
Calories
</TableCell>
<TableCell header class="text-right">
Fat (g)
</TableCell>
<TableCell header class="text-right">
Carbs
</TableCell>
<TableCell header class="text-right">
Protein (g)
</TableCell>
<TableCell header class="text-right">Calories</TableCell>
<TableCell header class="text-right">Fat (g)</TableCell>
<TableCell header class="text-right">Carbs</TableCell>
<TableCell header class="text-right">Protein (g)</TableCell>
</TableRow>
</TableHead>
<TableBody>
Expand Down Expand Up @@ -80,18 +73,10 @@
<TableHead>
<TableRow header>
<TableCell header>Dessert (100g serving)</TableCell>
<TableCell header class="text-right">
Calories
</TableCell>
<TableCell header class="text-right">
Fat (g)
</TableCell>
<TableCell header class="text-right">
Carbs
</TableCell>
<TableCell header class="text-right">
Protein (g)
</TableCell>
<TableCell header class="text-right">Calories</TableCell>
<TableCell header class="text-right">Fat (g)</TableCell>
<TableCell header class="text-right">Carbs</TableCell>
<TableCell header class="text-right">Protein (g)</TableCell>
</TableRow>
</TableHead>
<TableBody>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "konsta",
"description": "Mobile UI components made with Tailwind CSS",
"version": "3.0.1",
"version": "3.1.0",
"private": true,
"license": "MIT",
"author": "Vladimir Kharlampidi",
Expand Down
4 changes: 2 additions & 2 deletions package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "konsta",
"version": "3.0.1",
"version": "3.1.0",
"description": "Mobile UI components made with Tailwind CSS",
"repository": {
"type": "git",
Expand All @@ -16,7 +16,7 @@
"engines": {
"node": ">= 4.7.0"
},
"releaseDate": "August 24, 2023",
"releaseDate": "September 20, 2023",
"svelte": "./svelte/konsta-svelte.js",
"exports": {
"./package.json": "./package.json",
Expand Down
9 changes: 3 additions & 6 deletions src/svelte/components/Table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useThemeClasses } from '../shared/use-theme-classes.js';
let className = undefined;
export {className as class};
export { className as class };
export let ios = undefined;
export let material = undefined;
Expand All @@ -17,10 +17,7 @@
(v) => (c = v)
);
</script>
<table
bind:this={rippleEl.current}
class={c.base}
{...$$restProps}
>

<table bind:this={rippleEl.current} class={c.base} {...$$restProps}>
<slot />
</table>
8 changes: 2 additions & 6 deletions src/svelte/components/TableBody.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useThemeClasses } from '../shared/use-theme-classes.js';
let className = undefined;
export {className as class};
export { className as class };
export let ios = undefined;
export let material = undefined;
Expand All @@ -18,10 +18,6 @@
);
</script>

<tbody
bind:this={rippleEl.current}
class={c.base}
{...$$restProps}
>
<tbody bind:this={rippleEl.current} class={c.base} {...$$restProps}>
<slot />
</tbody>
3 changes: 2 additions & 1 deletion src/svelte/components/TableCell.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
export let header = false;
let className = undefined;
export {className as class};
export { className as class };
let colorsProp = undefined;
export { colorsProp as colors };
Expand All @@ -25,6 +25,7 @@
(v) => (c = v)
);
</script>

<svelte:element
this={component}
bind:this={rippleEl.current}
Expand Down
8 changes: 2 additions & 6 deletions src/svelte/components/TableHead.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useThemeClasses } from '../shared/use-theme-classes.js';
let className = undefined;
export {className as class};
export { className as class };
export let ios = undefined;
export let material = undefined;
Expand All @@ -18,10 +18,6 @@
);
</script>

<thead
bind:this={rippleEl.current}
class={c.base}
{...$$restProps}
>
<thead bind:this={rippleEl.current} class={c.base} {...$$restProps}>
<slot />
</thead>
9 changes: 3 additions & 6 deletions src/svelte/components/TableRow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { useThemeClasses } from '../shared/use-theme-classes.js';
let className = undefined;
export {className as class};
export { className as class };
let colorsProp = undefined;
export { colorsProp as colors };
Expand All @@ -25,10 +25,7 @@
(v) => (c = v)
);
</script>
<tr
bind:this={rippleEl.current}
class={c.base}
{...$$restProps}
>

<tr bind:this={rippleEl.current} class={c.base} {...$$restProps}>
<slot />
</tr>
4 changes: 2 additions & 2 deletions src/types/TableRow.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ interface Props {
* @default 'hover:bg-md-light-secondary-container dark:hover:bg-md-dark-secondary-container'
*/
bgMaterial?: string;
/**
/**
* Table Row divider color
*
* @default 'border-md-light-outline dark:border-md-dark-outline'
*/
dividerMaterial?: string;
dividerMaterial?: string;
};
/**
* Is located inside the TableHead
Expand Down

0 comments on commit f48b2d0

Please sign in to comment.