@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 CHANGED
@@ -1,11 +1,11 @@
1
- ## [1.14.2](https://github.com/Atom-Learning/components/compare/v1.14.1...v1.14.2) (2022-06-09)
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
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * add Portal to AlertDialog.Content ([012690f](https://github.com/Atom-Learning/components/commit/012690fe4521cb9bd21d0f97f492c13e407eb100))
7
- * alertdialog z-index ([4e0d1c4](https://github.com/Atom-Learning/components/commit/4e0d1c422e7f82a35a1a7622a985a770bcb61684))
8
- * alertdialog z-index ([60a6d91](https://github.com/Atom-Learning/components/commit/60a6d91bee7b12a8ffb9f74f2aee808cb3ee1628))
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
- export declare const TableBody: import("@stitches/react/types/styled-component").StyledComponent<"tbody", {}, {
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 o=d("tbody",{});o.displayName="TableBody";export{o as TableBody};
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 t}from"../../stitches.js";const l=t("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"},"tr:nth-child(odd) &":{bg:"white"},"tr:nth-child(even) &":{bg:"$tonal50"}});l.displayName="TableCell";export{l as TableCell};
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 t from"react";import{styled as i}from"../../stitches.js";import{TableHeaderCell as r}from"./TableHeaderCell.js";const l=i("thead",{variants:{theme:{primary:{[`${r}`]:{bg:"$primary"}},primaryDark:{[`${r}`]:{bg:"$primaryDark"}}}}}),e=({theme:a="primaryDark",...m})=>t.createElement(l,{theme:a,...m});e.displayName="TableHeader";export{e as TableHeader};
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};