@atom-learning/components 1.14.2 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -5
- package/dist/components/table/TableBody.d.ts +7 -1
- package/dist/components/table/TableBody.js +1 -1
- package/dist/components/table/TableCell.js +1 -1
- package/dist/components/table/TableHeader.d.ts +1 -1
- package/dist/components/table/TableHeader.js +1 -1
- package/dist/docgen.json +1 -1
- package/dist/docs/Table.mdx +10 -2
- package/dist/index.cjs.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
# [1.15.0](https://github.com/Atom-Learning/components/compare/v1.14.2...v1.15.0) (2022-06-09)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* changing appearance to striped boolean ([02dcb28](https://github.com/Atom-Learning/components/commit/02dcb288a226275bc3a0c388e344e186aa54a74e))
|
|
7
|
+
* table theme neutral ([504cd81](https://github.com/Atom-Learning/components/commit/504cd8157d11e73503cbcc2c1ec88fc05db2248d))
|
|
8
|
+
* update theme naming ([cc75f0b](https://github.com/Atom-Learning/components/commit/cc75f0ba9ede6ee4597975a04099e318133c148d))
|
|
9
9
|
|
|
10
10
|
# [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
|
|
11
11
|
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const StyledTableBody: import("@stitches/react/types/styled-component").StyledComponent<"tbody", {
|
|
3
|
+
striped?: boolean | "true" | "false" | undefined;
|
|
4
|
+
}, {
|
|
2
5
|
sm: string;
|
|
3
6
|
md: string;
|
|
4
7
|
lg: string;
|
|
@@ -263,3 +266,6 @@ export declare const TableBody: import("@stitches/react/types/styled-component")
|
|
|
263
266
|
};
|
|
264
267
|
};
|
|
265
268
|
}>>;
|
|
269
|
+
declare type TableBodyProps = React.ComponentProps<typeof StyledTableBody>;
|
|
270
|
+
export declare const TableBody: React.FC<TableBodyProps>;
|
|
271
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{styled as d}from"../../stitches.js";const
|
|
1
|
+
import{styled as d}from"../../stitches.js";import{createElement as l}from"react";import{TableRow as r}from"./TableRow.js";const a=d("tbody",{variants:{striped:{true:{[`${r}`]:{"&:nth-child(odd)":{bg:"white"},"&:nth-child(even)":{bg:"$tonal50"}}},false:{bg:"white"}}}}),e=({striped:t=!0,...o})=>l(a,{striped:t,...o});e.displayName="TableBody";export{e as TableBody};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{styled as
|
|
1
|
+
import{styled as o}from"../../stitches.js";const l=o("td",{borderBottom:"1px solid $tonal100",boxSizing:"border-box",color:"$tonal400",fontFamily:"$body",lineHeight:1.5,p:"$2 $3",textAlign:"left",verticalAlign:"middle","&:first-child":{fontWeight:"bold"}});l.displayName="TableCell";export{l as TableCell};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const StyledTableHeader: import("@stitches/react/types/styled-component").StyledComponent<"thead", {
|
|
3
|
-
theme?: "primary" | "primaryDark" | undefined;
|
|
3
|
+
theme?: "primary" | "primaryDark" | "light" | undefined;
|
|
4
4
|
}, {
|
|
5
5
|
sm: string;
|
|
6
6
|
md: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import l from"react";import{styled as m}from"../../stitches.js";import{TableHeaderCell as r}from"./TableHeaderCell.js";const o=m("thead",{variants:{theme:{primary:{[`${r}`]:{bg:"$primary"}},primaryDark:{[`${r}`]:{bg:"$primaryDark"}},light:{[`${r}`]:{bg:"$tonal50",color:"$tonal600"}}}}}),a=({theme:e="primaryDark",...t})=>l.createElement(o,{theme:e,...t});a.displayName="TableHeader";export{a as TableHeader};
|