@propellerads/empty-state 2.1.1 → 2.2.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 +3 -0
- package/dist/empty-state.cjs.development.js.map +1 -1
- package/dist/empty-state.cjs.production.min.js.map +1 -1
- package/dist/empty-state.esm.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +9 -10
- package/src/index.tsx +29 -29
- package/src/style.tsx +4 -4
- package/src/types.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty-state.cjs.development.js","sources":["../src/style.tsx","../src/index.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport {spacing} from '@propellerads/stylevariables';\n\nconst StyledEmptyState = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 0 ${spacing * 5}px;\n`;\n\nconst StyledEmptyStateIcon = styled.div`\n margin-bottom: ${spacing * 9}px;\n`;\n\nconst StyledEmptyStateDescription = styled.div`\n margin-bottom: ${spacing * 4}px;\n`;\n\nconst StyledEmptyStateActions = styled.div`\n margin-top: ${spacing * 5}px;\n`;\n\nexport {\n
|
|
1
|
+
{"version":3,"file":"empty-state.cjs.development.js","sources":["../src/style.tsx","../src/index.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport {spacing} from '@propellerads/stylevariables';\n\nconst StyledEmptyState = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 0 ${spacing * 5}px;\n`;\n\nconst StyledEmptyStateIcon = styled.div`\n margin-bottom: ${spacing * 9}px;\n`;\n\nconst StyledEmptyStateDescription = styled.div`\n margin-bottom: ${spacing * 4}px;\n`;\n\nconst StyledEmptyStateActions = styled.div`\n margin-top: ${spacing * 5}px;\n`;\n\nexport {\n StyledEmptyState,\n StyledEmptyStateIcon,\n StyledEmptyStateDescription,\n StyledEmptyStateActions,\n};\n","import React from 'react';\n\nimport {EmptyStateProps} from './types';\nimport {\n StyledEmptyState,\n StyledEmptyStateIcon,\n StyledEmptyStateDescription,\n StyledEmptyStateActions,\n} from './style';\n\nconst EmptyState = ({\n icon = undefined,\n title,\n description = '',\n actions = '',\n}: EmptyStateProps) => (\n <StyledEmptyState>\n {icon && (\n <StyledEmptyStateIcon>\n {icon}\n </StyledEmptyStateIcon>\n )}\n {title}\n {description && (\n <StyledEmptyStateDescription>\n {description}\n </StyledEmptyStateDescription>\n )}\n {actions && (\n <StyledEmptyStateActions>\n {actions}\n </StyledEmptyStateActions>\n )}\n </StyledEmptyState>\n);\n\nexport default EmptyState;\n"],"names":["StyledEmptyState","styled","div","spacing","StyledEmptyStateIcon","StyledEmptyStateDescription","StyledEmptyStateActions","EmptyState","icon","undefined","title","description","actions","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAMA,gBAAgB,gBAAGC,MAAM,CAACC,GAAV,kCAKPC,sBAAO,GAAG,CALH,CAAtB;AAQA,IAAMC,oBAAoB,gBAAGH,MAAM,CAACC,GAAV,mCACPC,sBAAO,GAAG,CADH,CAA1B;AAIA,IAAME,2BAA2B,gBAAGJ,MAAM,CAACC,GAAV,mCACdC,sBAAO,GAAG,CADI,CAAjC;AAIA,IAAMG,uBAAuB,gBAAGL,MAAM,CAACC,GAAV,mCACbC,sBAAO,GAAG,CADG,CAA7B;;ACTA,IAAMI,UAAU,GAAG,SAAbA,UAAa;AAAA,uBACjBC,IADiB;AAAA,MACjBA,IADiB,0BACVC,SADU;AAAA,MAEjBC,KAFiB,QAEjBA,KAFiB;AAAA,8BAGjBC,WAHiB;AAAA,MAGjBA,WAHiB,iCAGH,EAHG;AAAA,0BAIjBC,OAJiB;AAAA,MAIjBA,OAJiB,6BAIP,EAJO;AAAA,SAMjBC,mBAAA,CAACb,gBAAD,MAAA,EACGQ,IAAI,IACLK,mBAAA,CAACT,oBAAD,MAAA,EACGI,IADH,CAFF,EAMGE,KANH,EAOGC,WAAW,IACZE,mBAAA,CAACR,2BAAD,MAAA,EACGM,WADH,CARF,EAYGC,OAAO,IACRC,mBAAA,CAACP,uBAAD,MAAA,EACGM,OADH,CAbF,CANiB;AAAA,CAAnB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty-state.cjs.production.min.js","sources":["../src/style.tsx","../src/index.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport {spacing} from '@propellerads/stylevariables';\n\nconst StyledEmptyState = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 0 ${spacing * 5}px;\n`;\n\nconst StyledEmptyStateIcon = styled.div`\n margin-bottom: ${spacing * 9}px;\n`;\n\nconst StyledEmptyStateDescription = styled.div`\n margin-bottom: ${spacing * 4}px;\n`;\n\nconst StyledEmptyStateActions = styled.div`\n margin-top: ${spacing * 5}px;\n`;\n\nexport {\n
|
|
1
|
+
{"version":3,"file":"empty-state.cjs.production.min.js","sources":["../src/style.tsx","../src/index.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport {spacing} from '@propellerads/stylevariables';\n\nconst StyledEmptyState = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 0 ${spacing * 5}px;\n`;\n\nconst StyledEmptyStateIcon = styled.div`\n margin-bottom: ${spacing * 9}px;\n`;\n\nconst StyledEmptyStateDescription = styled.div`\n margin-bottom: ${spacing * 4}px;\n`;\n\nconst StyledEmptyStateActions = styled.div`\n margin-top: ${spacing * 5}px;\n`;\n\nexport {\n StyledEmptyState,\n StyledEmptyStateIcon,\n StyledEmptyStateDescription,\n StyledEmptyStateActions,\n};\n","import React from 'react';\n\nimport {EmptyStateProps} from './types';\nimport {\n StyledEmptyState,\n StyledEmptyStateIcon,\n StyledEmptyStateDescription,\n StyledEmptyStateActions,\n} from './style';\n\nconst EmptyState = ({\n icon = undefined,\n title,\n description = '',\n actions = '',\n}: EmptyStateProps) => (\n <StyledEmptyState>\n {icon && (\n <StyledEmptyStateIcon>\n {icon}\n </StyledEmptyStateIcon>\n )}\n {title}\n {description && (\n <StyledEmptyStateDescription>\n {description}\n </StyledEmptyStateDescription>\n )}\n {actions && (\n <StyledEmptyStateActions>\n {actions}\n </StyledEmptyStateActions>\n )}\n </StyledEmptyState>\n);\n\nexport default EmptyState;\n"],"names":["StyledEmptyState","styled","div","spacing","StyledEmptyStateIcon","StyledEmptyStateDescription","StyledEmptyStateActions","icon","undefined","title","description","actions","React"],"mappings":"qtBAGA,IAAMA,EAAmBC,EAAOC,QAKP,EAAVC,WAGTC,EAAuBH,EAAOC,QACP,EAAVC,WAGbE,EAA8BJ,EAAOC,QACd,EAAVC,WAGbG,EAA0BL,EAAOC,QACb,EAAVC,2BCVG,oBACjBI,KAAAA,kBAAOC,IACPC,IAAAA,UACAC,YAAAA,aAAc,SACdC,QAAAA,aAAU,YAEVC,gBAACZ,OACEO,GACDK,gBAACR,OACEG,GAGFE,EACAC,GACDE,gBAACP,OACEK,GAGFC,GACDC,gBAACN,OACEK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty-state.esm.js","sources":["../src/style.tsx","../src/index.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport {spacing} from '@propellerads/stylevariables';\n\nconst StyledEmptyState = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 0 ${spacing * 5}px;\n`;\n\nconst StyledEmptyStateIcon = styled.div`\n margin-bottom: ${spacing * 9}px;\n`;\n\nconst StyledEmptyStateDescription = styled.div`\n margin-bottom: ${spacing * 4}px;\n`;\n\nconst StyledEmptyStateActions = styled.div`\n margin-top: ${spacing * 5}px;\n`;\n\nexport {\n
|
|
1
|
+
{"version":3,"file":"empty-state.esm.js","sources":["../src/style.tsx","../src/index.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport {spacing} from '@propellerads/stylevariables';\n\nconst StyledEmptyState = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 0 ${spacing * 5}px;\n`;\n\nconst StyledEmptyStateIcon = styled.div`\n margin-bottom: ${spacing * 9}px;\n`;\n\nconst StyledEmptyStateDescription = styled.div`\n margin-bottom: ${spacing * 4}px;\n`;\n\nconst StyledEmptyStateActions = styled.div`\n margin-top: ${spacing * 5}px;\n`;\n\nexport {\n StyledEmptyState,\n StyledEmptyStateIcon,\n StyledEmptyStateDescription,\n StyledEmptyStateActions,\n};\n","import React from 'react';\n\nimport {EmptyStateProps} from './types';\nimport {\n StyledEmptyState,\n StyledEmptyStateIcon,\n StyledEmptyStateDescription,\n StyledEmptyStateActions,\n} from './style';\n\nconst EmptyState = ({\n icon = undefined,\n title,\n description = '',\n actions = '',\n}: EmptyStateProps) => (\n <StyledEmptyState>\n {icon && (\n <StyledEmptyStateIcon>\n {icon}\n </StyledEmptyStateIcon>\n )}\n {title}\n {description && (\n <StyledEmptyStateDescription>\n {description}\n </StyledEmptyStateDescription>\n )}\n {actions && (\n <StyledEmptyStateActions>\n {actions}\n </StyledEmptyStateActions>\n )}\n </StyledEmptyState>\n);\n\nexport default EmptyState;\n"],"names":["StyledEmptyState","styled","div","spacing","StyledEmptyStateIcon","StyledEmptyStateDescription","StyledEmptyStateActions","EmptyState","icon","undefined","title","description","actions","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAMA,gBAAgB,gBAAGC,MAAM,CAACC,GAAV,kCAKPC,OAAO,GAAG,CALH,CAAtB;AAQA,IAAMC,oBAAoB,gBAAGH,MAAM,CAACC,GAAV,mCACPC,OAAO,GAAG,CADH,CAA1B;AAIA,IAAME,2BAA2B,gBAAGJ,MAAM,CAACC,GAAV,mCACdC,OAAO,GAAG,CADI,CAAjC;AAIA,IAAMG,uBAAuB,gBAAGL,MAAM,CAACC,GAAV,mCACbC,OAAO,GAAG,CADG,CAA7B;;ACTA,IAAMI,UAAU,GAAG,SAAbA,UAAa;AAAA,uBACjBC,IADiB;AAAA,MACjBA,IADiB,0BACVC,SADU;AAAA,MAEjBC,KAFiB,QAEjBA,KAFiB;AAAA,8BAGjBC,WAHiB;AAAA,MAGjBA,WAHiB,iCAGH,EAHG;AAAA,0BAIjBC,OAJiB;AAAA,MAIjBA,OAJiB,6BAIP,EAJO;AAAA,SAMjBC,mBAAA,CAACb,gBAAD,MAAA,EACGQ,IAAI,IACLK,mBAAA,CAACT,oBAAD,MAAA,EACGI,IADH,CAFF,EAMGE,KANH,EAOGC,WAAW,IACZE,mBAAA,CAACR,2BAAD,MAAA,EACGM,WADH,CARF,EAYGC,OAAO,IACRC,mBAAA,CAACP,uBAAD,MAAA,EACGM,OADH,CAbF,CANiB;AAAA,CAAnB;;;;"}
|
package/dist/index.d.ts
CHANGED
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@propellerads/empty-state",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"repository": "https://github.com/propellerads/ui-components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -20,22 +20,21 @@
|
|
|
20
20
|
"build": "tsdx build"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"react": "
|
|
23
|
+
"@types/react": "^17.0.2",
|
|
24
|
+
"@types/react-dom": "^17.0.2",
|
|
25
|
+
"@types/styled-components": "5.1.1",
|
|
26
|
+
"react": "^17.0.2",
|
|
27
|
+
"react-dom": "^17.0.2",
|
|
28
|
+
"styled-components": "5.1.1"
|
|
24
29
|
},
|
|
25
30
|
"module": "dist/empty-state.esm.js",
|
|
26
31
|
"devDependencies": {
|
|
27
|
-
"@types/react": "^16.9.46",
|
|
28
|
-
"@types/react-dom": "^16.9.8",
|
|
29
|
-
"@types/styled-components": "^5.1.2",
|
|
30
|
-
"react": "^16.13.1",
|
|
31
|
-
"react-dom": "^16.13.1",
|
|
32
32
|
"tsdx": "^0.13.2",
|
|
33
33
|
"tslib": "^2.0.1",
|
|
34
34
|
"typescript": "^3.9.7"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@propellerads/stylevariables": "^1.3.0"
|
|
38
|
-
"styled-components": "^5.1.1"
|
|
37
|
+
"@propellerads/stylevariables": "^1.3.0"
|
|
39
38
|
},
|
|
40
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "82824622b4ac991d78567c473a46b5044cd72035"
|
|
41
40
|
}
|
package/src/index.tsx
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {EmptyStateProps} from
|
|
3
|
+
import {EmptyStateProps} from './types';
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
StyledEmptyState,
|
|
6
|
+
StyledEmptyStateIcon,
|
|
7
|
+
StyledEmptyStateDescription,
|
|
8
|
+
StyledEmptyStateActions,
|
|
9
9
|
} from './style';
|
|
10
10
|
|
|
11
11
|
const EmptyState = ({
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
12
|
+
icon = undefined,
|
|
13
|
+
title,
|
|
14
|
+
description = '',
|
|
15
|
+
actions = '',
|
|
16
|
+
}: EmptyStateProps) => (
|
|
17
|
+
<StyledEmptyState>
|
|
18
|
+
{icon && (
|
|
19
|
+
<StyledEmptyStateIcon>
|
|
20
|
+
{icon}
|
|
21
|
+
</StyledEmptyStateIcon>
|
|
22
|
+
)}
|
|
23
|
+
{title}
|
|
24
|
+
{description && (
|
|
25
|
+
<StyledEmptyStateDescription>
|
|
26
|
+
{description}
|
|
27
|
+
</StyledEmptyStateDescription>
|
|
28
|
+
)}
|
|
29
|
+
{actions && (
|
|
30
|
+
<StyledEmptyStateActions>
|
|
31
|
+
{actions}
|
|
32
|
+
</StyledEmptyStateActions>
|
|
33
|
+
)}
|
|
34
|
+
</StyledEmptyState>
|
|
35
35
|
);
|
|
36
36
|
|
|
37
|
-
export default EmptyState
|
|
37
|
+
export default EmptyState;
|
package/src/style.tsx
CHANGED
|
@@ -22,8 +22,8 @@ const StyledEmptyStateActions = styled.div`
|
|
|
22
22
|
`;
|
|
23
23
|
|
|
24
24
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
StyledEmptyState,
|
|
26
|
+
StyledEmptyStateIcon,
|
|
27
|
+
StyledEmptyStateDescription,
|
|
28
|
+
StyledEmptyStateActions,
|
|
29
29
|
};
|
package/src/types.ts
CHANGED