@atom-learning/components 1.15.0 → 1.16.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 +2 -4
- package/dist/components/grid/Grid.d.ts +1 -1
- package/dist/components/grid/Grid.js +1 -1
- package/dist/docgen.json +1 -1
- package/dist/index.cjs.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
# [1.
|
|
1
|
+
# [1.16.0](https://github.com/Atom-Learning/components/compare/v1.15.0...v1.16.0) (2022-06-20)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
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))
|
|
6
|
+
* made the minItemSize prop optional and allow gridTemplateColumns property to be overridden ([d3bd25b](https://github.com/Atom-Learning/components/commit/d3bd25b1e8c14ee5866fde649c35dc0b92013d68))
|
|
9
7
|
|
|
10
8
|
# [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
|
|
11
9
|
|
|
@@ -267,7 +267,7 @@ declare const GridContainer: import("@stitches/react/types/styled-component").St
|
|
|
267
267
|
};
|
|
268
268
|
}>>;
|
|
269
269
|
declare type GridProps = React.ComponentProps<typeof GridContainer> & {
|
|
270
|
-
minItemSize
|
|
270
|
+
minItemSize?: string;
|
|
271
271
|
maxItemSize?: string;
|
|
272
272
|
};
|
|
273
273
|
export declare const Grid: React.FC<GridProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createElement as
|
|
1
|
+
import{createElement as i}from"react";import{theme as o,styled as d}from"../../stitches.js";const c=Object.keys(o.space).reduce((e,a)=>({...e,[a]:{gap:`$space$${a}`}}),{}),m=d("div",{display:"grid",variants:{gap:c}}),t=({css:e,gap:a=2,minItemSize:r,maxItemSize:p="1fr",...s})=>i(m,{css:{...r&&{gridTemplateColumns:`repeat(auto-fit, minmax(${r}, ${p}))`},...e},gap:a,...s});t.displayName="Grid";export{t as Grid};
|