@atom-learning/components 3.11.5 → 3.12.1
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 -13
- package/dist/components/table/TableHeader.d.ts +6 -4
- package/dist/components/table/TableHeader.js +1 -1
- package/dist/components/table/TableHeader.js.map +1 -1
- package/dist/docgen.json +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
## [3.
|
|
1
|
+
## [3.12.1](https://github.com/Atom-Learning/components/compare/v3.12.0...v3.12.1) (2024-02-07)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
* attempt to fix TS errors ([7ff5f6b](https://github.com/Atom-Learning/components/commit/7ff5f6ba048f6f1cd5a7cf49fbf1166dfce0c658))
|
|
8
|
-
* docs components titles ([9911b4e](https://github.com/Atom-Learning/components/commit/9911b4ecf0bc579300a217e891b2d3c32f6658c2))
|
|
9
|
-
* ignore TS error ([e1d90b3](https://github.com/Atom-Learning/components/commit/e1d90b35201e0300f1989fbb32d3d03c8c6f95a2))
|
|
10
|
-
* merged main ([12524bf](https://github.com/Atom-Learning/components/commit/12524bfb8cc11d7fce8e6d3da34c963c043f8508))
|
|
11
|
-
* minor props differences, docs component previews ([c143cd8](https://github.com/Atom-Learning/components/commit/c143cd8df679075c4031080f29b2170fe0ef14b7))
|
|
12
|
-
* replace Stack with Flex in documentation content ([8b93544](https://github.com/Atom-Learning/components/commit/8b9354433f83a8cb2456fee38bcfd20212e9a3c0))
|
|
13
|
-
* replace Stack with Flex in documentation source ([711d4db](https://github.com/Atom-Learning/components/commit/711d4dbcf72bb5f9957c4f9d5508d9353cdddd70))
|
|
14
|
-
* replace Stack with Flex in source ([350d5ab](https://github.com/Atom-Learning/components/commit/350d5ab8ec4e92556e779d1e7030f639fc2d8b10))
|
|
15
|
-
* snapshots ([f9a0f35](https://github.com/Atom-Learning/components/commit/f9a0f35b0aad24ae789a6724a7339adc923a41ab))
|
|
16
|
-
* ts issue ([cf91630](https://github.com/Atom-Learning/components/commit/cf91630c05a1331eff3bbda0a3db2e756db195bf))
|
|
17
|
-
* update snapshots ([f49d3ff](https://github.com/Atom-Learning/components/commit/f49d3ffd3b3397f209f19204d188016aab29e799))
|
|
6
|
+
* table header white theme ([c705fe4](https://github.com/Atom-Learning/components/commit/c705fe4414e0b25f146ad8f6b0411ef8c3e04498))
|
|
18
7
|
|
|
19
8
|
# [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
|
|
20
9
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const TABLE_HEADER_THEMES: {
|
|
3
|
-
PRIMARY:
|
|
4
|
-
PRIMARY_DARK:
|
|
5
|
-
|
|
3
|
+
readonly PRIMARY: "primary";
|
|
4
|
+
readonly PRIMARY_DARK: "primaryDark";
|
|
5
|
+
readonly PRIMARY_LIGHT: "primaryLight";
|
|
6
|
+
readonly LIGHT: "light";
|
|
7
|
+
readonly WHITE: "white";
|
|
6
8
|
};
|
|
7
9
|
declare const StyledTableHeader: import("@stitches/react/types/styled-component").StyledComponent<"thead", {
|
|
8
|
-
theme?:
|
|
10
|
+
theme?: "light" | "primary" | "white" | "primaryDark" | "primaryLight" | undefined;
|
|
9
11
|
isSticky?: boolean | "true" | undefined;
|
|
10
12
|
}, {
|
|
11
13
|
sm: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import m from"react";import{styled as
|
|
1
|
+
import m from"react";import{styled as y}from"../../stitches.js";import{TableHeaderCell as e}from"./TableHeaderCell.js";const r={PRIMARY:"primary",PRIMARY_DARK:"primaryDark",PRIMARY_LIGHT:"primaryLight",LIGHT:"light",WHITE:"white"},p=y("thead",{variants:{theme:{[r.PRIMARY]:{[`${e}`]:{bg:"$primary800"}},[r.PRIMARY_DARK]:{[`${e}`]:{bg:"$primary1000"}},[r.PRIMARY_LIGHT]:{[`${e}`]:{bg:"$primary200",color:"$grey1000"}},[r.LIGHT]:{[`${e}`]:{bg:"$tonal50",color:"$grey1000"}},[r.WHITE]:{[`${e}`]:{bg:"white",color:"$grey1000"}}},isSticky:{true:{position:"sticky",top:0,zIndex:3}}}}),t=({theme:i="primaryDark",isSticky:a=!1,...o})=>m.createElement(p,{theme:i,isSticky:a,...o});t.displayName="TableHeader";export{r as TABLE_HEADER_THEMES,t as TableHeader};
|
|
2
2
|
//# sourceMappingURL=TableHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeader.js","sources":["../../../src/components/table/TableHeader.tsx"],"sourcesContent":["import React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { TableHeaderCell } from './TableHeaderCell'\n\nexport const TABLE_HEADER_THEMES = {\n PRIMARY: 'primary',\n PRIMARY_DARK: 'primaryDark',\n LIGHT: 'light'\n}\n\nconst StyledTableHeader = styled('thead', {\n variants: {\n theme: {\n [TABLE_HEADER_THEMES.PRIMARY]: {\n [`${TableHeaderCell}`]: {\n bg: '$primary800'\n }\n },\n [TABLE_HEADER_THEMES.PRIMARY_DARK]: {\n [`${TableHeaderCell}`]: {\n bg: '$primary1000'\n }\n },\n [TABLE_HEADER_THEMES.LIGHT]: {\n [`${TableHeaderCell}`]: {\n bg: '$tonal50',\n color: '$
|
|
1
|
+
{"version":3,"file":"TableHeader.js","sources":["../../../src/components/table/TableHeader.tsx"],"sourcesContent":["import React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { TableHeaderCell } from './TableHeaderCell'\n\nexport const TABLE_HEADER_THEMES = {\n PRIMARY: 'primary',\n PRIMARY_DARK: 'primaryDark',\n PRIMARY_LIGHT: 'primaryLight',\n LIGHT: 'light',\n WHITE: 'white'\n} as const\n\nconst StyledTableHeader = styled('thead', {\n variants: {\n theme: {\n [TABLE_HEADER_THEMES.PRIMARY]: {\n [`${TableHeaderCell}`]: {\n bg: '$primary800'\n }\n },\n [TABLE_HEADER_THEMES.PRIMARY_DARK]: {\n [`${TableHeaderCell}`]: {\n bg: '$primary1000'\n }\n },\n [TABLE_HEADER_THEMES.PRIMARY_LIGHT]: {\n [`${TableHeaderCell}`]: {\n bg: '$primary200',\n color: '$grey1000'\n }\n },\n [TABLE_HEADER_THEMES.LIGHT]: {\n [`${TableHeaderCell}`]: {\n bg: '$tonal50',\n color: '$grey1000'\n }\n },\n [TABLE_HEADER_THEMES.WHITE]: {\n [`${TableHeaderCell}`]: {\n bg: 'white',\n color: '$grey1000'\n }\n }\n },\n isSticky: {\n true: {\n position: 'sticky',\n top: 0,\n zIndex: 3\n }\n }\n }\n})\n\ntype TableHeaderProps = React.ComponentProps<typeof StyledTableHeader>\n\nexport const TableHeader: React.FC<TableHeaderProps> = ({\n theme = 'primaryDark',\n isSticky = false,\n ...rest\n}: TableHeaderProps) => {\n return <StyledTableHeader theme={theme} isSticky={isSticky} {...rest} />\n}\n\nTableHeader.displayName = 'TableHeader'\n"],"names":["TABLE_HEADER_THEMES","StyledTableHeader","styled","TableHeaderCell","TableHeader","theme","isSticky","rest","React"],"mappings":"uHAMa,MAAAA,EAAsB,CACjC,QAAS,UACT,aAAc,cACd,cAAe,eACf,MAAO,QACP,MAAO,OACT,EAEMC,EAAoBC,EAAO,QAAS,CACxC,SAAU,CACR,MAAO,CACL,CAACF,EAAoB,SAAU,CAC7B,CAAC,GAAGG,KAAoB,CACtB,GAAI,aACN,CACF,EACA,CAACH,EAAoB,cAAe,CAClC,CAAC,GAAGG,KAAoB,CACtB,GAAI,cACN,CACF,EACA,CAACH,EAAoB,eAAgB,CACnC,CAAC,GAAGG,KAAoB,CACtB,GAAI,cACJ,MAAO,WACT,CACF,EACA,CAACH,EAAoB,OAAQ,CAC3B,CAAC,GAAGG,KAAoB,CACtB,GAAI,WACJ,MAAO,WACT,CACF,EACA,CAACH,EAAoB,OAAQ,CAC3B,CAAC,GAAGG,KAAoB,CACtB,GAAI,QACJ,MAAO,WACT,CACF,CACF,EACA,SAAU,CACR,KAAM,CACJ,SAAU,SACV,IAAK,EACL,OAAQ,CACV,CACF,CACF,CACF,CAAC,EAIYC,EAA0C,CAAC,CACtD,MAAAC,EAAQ,cACR,SAAAC,EAAW,MACRC,CACL,IACSC,EAAA,cAACP,EAAA,CAAkB,MAAOI,EAAO,SAAUC,EAAW,GAAGC,CAAM,CAAA,EAGxEH,EAAY,YAAc"}
|