@contentful/f36-empty-state 4.81.1 → 5.0.0-alpha.2
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/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cx, css } from 'emotion';
|
|
2
2
|
import P from 'react';
|
|
3
|
-
import
|
|
3
|
+
import f from '@contentful/f36-tokens';
|
|
4
4
|
import { Text } from '@contentful/f36-typography';
|
|
5
5
|
|
|
6
|
-
var C=Object.defineProperty,d=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var e=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var i=(t,o,n)=>o in t?C(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,c=(t,o)=>{for(var n in o||(o={}))m.call(o,n)&&i(t,n,o[n]);if(e)for(var n of e(o))p.call(o,n)&&i(t,n,o[n]);return t},
|
|
6
|
+
var C=Object.defineProperty,d=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var e=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var i=(t,o,n)=>o in t?C(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,c=(t,o)=>{for(var n in o||(o={}))m.call(o,n)&&i(t,n,o[n]);if(e)for(var n of e(o))p.call(o,n)&&i(t,n,o[n]);return t},g=(t,o)=>d(t,y(o));var a=(t,o)=>{var n={};for(var s in t)m.call(t,s)&&o.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&e)for(var s of e(t))o.indexOf(s)<0&&p.call(t,s)&&(n[s]=t[s]);return n};function l(){return {missingContent:css({display:"inline-block",padding:`0 ${f.spacingXs}`,color:f.gray400})}}var k=I=>{var r=I,{className:t,testId:o="cf-ui-missing-content",label:n}=r,s=a(r,["className","testId","label"]);let x=l();return P.createElement(Text,g(c({},s),{testId:o,className:cx(x.missingContent,t),"aria-label":n,title:n}),"\u2014")};
|
|
7
7
|
|
|
8
8
|
export { k as MissingContent };
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/MissingContent/MissingContent.tsx","../../src/MissingContent/MissingContent.styles.ts"],"names":["cx","React","css","tokens","getStyles","Text","MissingContent","_a","_b","className","testId","label","otherProps","__objRest","styles","__spreadProps","__spreadValues"],"mappings":"+kBAAA,OAAS,MAAAA,MAAU,UACnB,OAAOC,MAAW,QCDlB,OAAS,OAAAC,MAAW,UACpB,OAAOC,MAAY,yBAEZ,SAASC,GAAY,CAC1B,MAAO,CACL,eAAgBF,EAAI,CAClB,QAAS,eACT,QAAS,KAAKC,EAAO,SAAS,GAC9B,MAAOA,EAAO,OAChB,CAAC,CACH,CACF,CDPA,OAAS,QAAAE,MAAY,
|
|
1
|
+
{"version":3,"sources":["../../src/MissingContent/MissingContent.tsx","../../src/MissingContent/MissingContent.styles.ts"],"names":["cx","React","css","tokens","getStyles","Text","MissingContent","_a","_b","className","testId","label","otherProps","__objRest","styles","__spreadProps","__spreadValues"],"mappings":"+kBAAA,OAAS,MAAAA,MAAU,UACnB,OAAOC,MAAW,QCDlB,OAAS,OAAAC,MAAW,UACpB,OAAOC,MAAY,yBAEZ,SAASC,GAAY,CAC1B,MAAO,CACL,eAAgBF,EAAI,CAClB,QAAS,eACT,QAAS,KAAKC,EAAO,SAAS,GAC9B,MAAOA,EAAO,OAChB,CAAC,CACH,CACF,CDPA,OAAS,QAAAE,MAAY,6BAQd,IAAMC,EAAkBC,GAKJ,CALI,IAAAC,EAAAD,EAC7B,WAAAE,EACA,OAAAC,EAAS,wBACT,MAAAC,CAfF,EAY+BH,EAI1BI,EAAAC,EAJ0BL,EAI1B,CAHH,YACA,SACA,UAGA,IAAMM,EAASV,EAAU,EAEzB,OACEH,EAAA,cAACI,EAAAU,EAAAC,EAAA,GACKJ,GADL,CAEC,OAAQF,EACR,UAAWV,EAAGc,EAAO,eAAgBL,CAAS,EAC9C,aAAYE,EACZ,MAAOA,IACR,QAED,CAEJ","sourcesContent":["import { cx } from 'emotion';\nimport React from 'react';\nimport { getStyles } from './MissingContent.styles';\nimport type { CommonProps } from '@contentful/f36-core';\nimport { Text } from '@contentful/f36-typography';\n\nexport interface MissingContentProps extends CommonProps {\n label?: string;\n className?: string;\n testId?: string;\n}\n\nexport const MissingContent = ({\n className,\n testId = 'cf-ui-missing-content',\n label,\n ...otherProps\n}: MissingContentProps) => {\n const styles = getStyles();\n\n return (\n <Text\n {...otherProps}\n testId={testId}\n className={cx(styles.missingContent, className)}\n aria-label={label}\n title={label}\n >\n —\n </Text>\n );\n};\n","import { css } from 'emotion';\nimport tokens from '@contentful/f36-tokens';\n\nexport function getStyles() {\n return {\n missingContent: css({\n display: 'inline-block',\n padding: `0 ${tokens.spacingXs}`,\n color: tokens.gray400,\n }),\n };\n}\n"]}
|
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,8 @@ import { CommonProps } from '@contentful/f36-core';
|
|
|
2
2
|
|
|
3
3
|
interface MissingContentProps extends CommonProps {
|
|
4
4
|
label?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
testId?: string;
|
|
5
7
|
}
|
|
6
8
|
declare const MissingContent: ({ className, testId, label, ...otherProps }: MissingContentProps) => JSX.Element;
|
|
7
9
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { CommonProps } from '@contentful/f36-core';
|
|
|
2
2
|
|
|
3
3
|
interface MissingContentProps extends CommonProps {
|
|
4
4
|
label?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
testId?: string;
|
|
5
7
|
}
|
|
6
8
|
declare const MissingContent: ({ className, testId, label, ...otherProps }: MissingContentProps) => JSX.Element;
|
|
7
9
|
|
package/dist/index.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
var emotion = require('emotion');
|
|
4
4
|
var P = require('react');
|
|
5
|
-
var
|
|
5
|
+
var f = require('@contentful/f36-tokens');
|
|
6
6
|
var f36Typography = require('@contentful/f36-typography');
|
|
7
7
|
|
|
8
8
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
|
|
10
10
|
var P__default = /*#__PURE__*/_interopDefault(P);
|
|
11
|
-
var
|
|
11
|
+
var f__default = /*#__PURE__*/_interopDefault(f);
|
|
12
12
|
|
|
13
|
-
var C=Object.defineProperty,d=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var e=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var i=(t,o,n)=>o in t?C(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,c=(t,o)=>{for(var n in o||(o={}))m.call(o,n)&&i(t,n,o[n]);if(e)for(var n of e(o))p.call(o,n)&&i(t,n,o[n]);return t},
|
|
13
|
+
var C=Object.defineProperty,d=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var e=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var i=(t,o,n)=>o in t?C(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,c=(t,o)=>{for(var n in o||(o={}))m.call(o,n)&&i(t,n,o[n]);if(e)for(var n of e(o))p.call(o,n)&&i(t,n,o[n]);return t},g=(t,o)=>d(t,y(o));var a=(t,o)=>{var n={};for(var s in t)m.call(t,s)&&o.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&e)for(var s of e(t))o.indexOf(s)<0&&p.call(t,s)&&(n[s]=t[s]);return n};function l(){return {missingContent:emotion.css({display:"inline-block",padding:`0 ${f__default.default.spacingXs}`,color:f__default.default.gray400})}}var k=I=>{var r=I,{className:t,testId:o="cf-ui-missing-content",label:n}=r,s=a(r,["className","testId","label"]);let x=l();return P__default.default.createElement(f36Typography.Text,g(c({},s),{testId:o,className:emotion.cx(x.missingContent,t),"aria-label":n,title:n}),"\u2014")};
|
|
14
14
|
|
|
15
15
|
exports.MissingContent = k;
|
|
16
16
|
//# sourceMappingURL=out.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/MissingContent/MissingContent.tsx","../src/MissingContent/MissingContent.styles.ts"],"names":["cx","React","css","tokens","getStyles","Text","MissingContent","_a","_b","className","testId","label","otherProps","__objRest","styles","__spreadProps","__spreadValues"],"mappings":"+kBAAA,OAAS,MAAAA,MAAU,UACnB,OAAOC,MAAW,QCDlB,OAAS,OAAAC,MAAW,UACpB,OAAOC,MAAY,yBAEZ,SAASC,GAAY,CAC1B,MAAO,CACL,eAAgBF,EAAI,CAClB,QAAS,eACT,QAAS,KAAKC,EAAO,SAAS,GAC9B,MAAOA,EAAO,OAChB,CAAC,CACH,CACF,CDPA,OAAS,QAAAE,MAAY,
|
|
1
|
+
{"version":3,"sources":["../src/MissingContent/MissingContent.tsx","../src/MissingContent/MissingContent.styles.ts"],"names":["cx","React","css","tokens","getStyles","Text","MissingContent","_a","_b","className","testId","label","otherProps","__objRest","styles","__spreadProps","__spreadValues"],"mappings":"+kBAAA,OAAS,MAAAA,MAAU,UACnB,OAAOC,MAAW,QCDlB,OAAS,OAAAC,MAAW,UACpB,OAAOC,MAAY,yBAEZ,SAASC,GAAY,CAC1B,MAAO,CACL,eAAgBF,EAAI,CAClB,QAAS,eACT,QAAS,KAAKC,EAAO,SAAS,GAC9B,MAAOA,EAAO,OAChB,CAAC,CACH,CACF,CDPA,OAAS,QAAAE,MAAY,6BAQd,IAAMC,EAAkBC,GAKJ,CALI,IAAAC,EAAAD,EAC7B,WAAAE,EACA,OAAAC,EAAS,wBACT,MAAAC,CAfF,EAY+BH,EAI1BI,EAAAC,EAJ0BL,EAI1B,CAHH,YACA,SACA,UAGA,IAAMM,EAASV,EAAU,EAEzB,OACEH,EAAA,cAACI,EAAAU,EAAAC,EAAA,GACKJ,GADL,CAEC,OAAQF,EACR,UAAWV,EAAGc,EAAO,eAAgBL,CAAS,EAC9C,aAAYE,EACZ,MAAOA,IACR,QAED,CAEJ","sourcesContent":["import { cx } from 'emotion';\nimport React from 'react';\nimport { getStyles } from './MissingContent.styles';\nimport type { CommonProps } from '@contentful/f36-core';\nimport { Text } from '@contentful/f36-typography';\n\nexport interface MissingContentProps extends CommonProps {\n label?: string;\n className?: string;\n testId?: string;\n}\n\nexport const MissingContent = ({\n className,\n testId = 'cf-ui-missing-content',\n label,\n ...otherProps\n}: MissingContentProps) => {\n const styles = getStyles();\n\n return (\n <Text\n {...otherProps}\n testId={testId}\n className={cx(styles.missingContent, className)}\n aria-label={label}\n title={label}\n >\n —\n </Text>\n );\n};\n","import { css } from 'emotion';\nimport tokens from '@contentful/f36-tokens';\n\nexport function getStyles() {\n return {\n missingContent: css({\n display: 'inline-block',\n padding: `0 ${tokens.spacingXs}`,\n color: tokens.gray400,\n }),\n };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/f36-empty-state",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-alpha.2",
|
|
4
4
|
"description": "Forma 36: Empty State React Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"emotion": "^10.0.17",
|
|
24
24
|
"@contentful/f36-tokens": "^4.2.0",
|
|
25
|
-
"@contentful/f36-typography": "^
|
|
25
|
+
"@contentful/f36-typography": "^5.0.0-alpha.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=16.8",
|