@contentful/f36-empty-state 4.47.3 → 4.48.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/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +8 -0
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -6,4 +6,5 @@ import { Text } from '@contentful/f36-typography';
|
|
|
6
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},f=(t,o)=>d(t,y(o));var g=(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 a(){return {missingContent:css({display:"inline-block",padding:`0 ${l.spacingXs}`,color:l.gray400})}}var k=S=>{var r=S,{className:t,testId:o="cf-ui-missing-content",label:n}=r,s=g(r,["className","testId","label"]);let x=a();return P.createElement(Text,f(c({},s),{testId:o,className:cx(x.missingContent,t),"aria-label":n,title:n}),"\u2014")};
|
|
7
7
|
|
|
8
8
|
export { k as MissingContent };
|
|
9
|
+
//# sourceMappingURL=out.js.map
|
|
9
10
|
//# sourceMappingURL=index.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,
|
|
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,6BAMd,IAAMC,EAAkBC,GAKJ,CALI,IAAAC,EAAAD,EAC7B,WAAAE,EACA,OAAAC,EAAS,wBACT,MAAAC,CAbF,EAU+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}\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
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CommonProps } from '@contentful/f36-core';
|
|
2
|
+
|
|
3
|
+
interface MissingContentProps extends CommonProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const MissingContent: ({ className, testId, label, ...otherProps }: MissingContentProps) => JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { MissingContent };
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var emotion = require('emotion');
|
|
6
4
|
var P = require('react');
|
|
7
5
|
var l = require('@contentful/f36-tokens');
|
|
8
6
|
var f36Typography = require('@contentful/f36-typography');
|
|
9
7
|
|
|
10
|
-
function
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
9
|
|
|
12
|
-
var P__default = /*#__PURE__*/
|
|
13
|
-
var l__default = /*#__PURE__*/
|
|
10
|
+
var P__default = /*#__PURE__*/_interopDefault(P);
|
|
11
|
+
var l__default = /*#__PURE__*/_interopDefault(l);
|
|
14
12
|
|
|
15
|
-
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},f=(t,o)=>d(t,y(o));var g=(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 a(){return {missingContent:emotion.css({display:"inline-block",padding:`0 ${l__default
|
|
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},f=(t,o)=>d(t,y(o));var g=(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 a(){return {missingContent:emotion.css({display:"inline-block",padding:`0 ${l__default.default.spacingXs}`,color:l__default.default.gray400})}}var k=S=>{var r=S,{className:t,testId:o="cf-ui-missing-content",label:n}=r,s=g(r,["className","testId","label"]);let x=a();return P__default.default.createElement(f36Typography.Text,f(c({},s),{testId:o,className:emotion.cx(x.missingContent,t),"aria-label":n,title:n}),"\u2014")};
|
|
16
14
|
|
|
17
15
|
exports.MissingContent = k;
|
|
16
|
+
//# sourceMappingURL=out.js.map
|
|
18
17
|
//# sourceMappingURL=index.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,
|
|
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,6BAMd,IAAMC,EAAkBC,GAKJ,CALI,IAAAC,EAAAD,EAC7B,WAAAE,EACA,OAAAC,EAAS,wBACT,MAAAC,CAbF,EAU+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}\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": "4.
|
|
3
|
+
"version": "4.48.1",
|
|
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.0.2",
|
|
25
|
-
"@contentful/f36-typography": "^4.
|
|
25
|
+
"@contentful/f36-typography": "^4.48.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=16.8",
|