@simplybusiness/mobius 4.9.2 → 4.10.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/components/Trust/Trust.js +56 -0
  3. package/dist/cjs/components/Trust/Trust.js.map +1 -0
  4. package/dist/cjs/components/Trust/TrustpilotProvider.js +31 -0
  5. package/dist/cjs/components/Trust/TrustpilotProvider.js.map +1 -0
  6. package/dist/cjs/components/Trust/constants.js +44 -0
  7. package/dist/cjs/components/Trust/constants.js.map +1 -0
  8. package/dist/cjs/components/Trust/getDefaultProps.js +34 -0
  9. package/dist/cjs/components/Trust/getDefaultProps.js.map +1 -0
  10. package/dist/cjs/components/Trust/index.js +21 -0
  11. package/dist/cjs/components/Trust/index.js.map +1 -0
  12. package/dist/cjs/components/Trust/types.js +7 -0
  13. package/dist/cjs/components/Trust/types.js.map +1 -0
  14. package/dist/cjs/components/index.js +1 -0
  15. package/dist/cjs/components/index.js.map +1 -1
  16. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  17. package/dist/esm/components/Trust/Trust.js +41 -0
  18. package/dist/esm/components/Trust/Trust.js.map +1 -0
  19. package/dist/esm/components/Trust/TrustpilotProvider.js +21 -0
  20. package/dist/esm/components/Trust/TrustpilotProvider.js.map +1 -0
  21. package/dist/esm/components/Trust/constants.js +20 -0
  22. package/dist/esm/components/Trust/constants.js.map +1 -0
  23. package/dist/esm/components/Trust/getDefaultProps.js +24 -0
  24. package/dist/esm/components/Trust/getDefaultProps.js.map +1 -0
  25. package/dist/esm/components/Trust/index.js +4 -0
  26. package/dist/esm/components/Trust/index.js.map +1 -0
  27. package/dist/esm/components/Trust/types.js +4 -0
  28. package/dist/esm/components/Trust/types.js.map +1 -0
  29. package/dist/esm/components/index.js +1 -0
  30. package/dist/esm/components/index.js.map +1 -1
  31. package/dist/types/components/Trust/Trust.d.ts +3 -0
  32. package/dist/types/components/Trust/Trust.stories.d.ts +7 -0
  33. package/dist/types/components/Trust/Trust.test.d.ts +1 -0
  34. package/dist/types/components/Trust/TrustpilotProvider.d.ts +4 -0
  35. package/dist/types/components/Trust/constants.d.ts +16 -0
  36. package/dist/types/components/Trust/getDefaultProps.d.ts +18 -0
  37. package/dist/types/components/Trust/index.d.ts +2 -0
  38. package/dist/types/components/Trust/types.d.ts +22 -0
  39. package/dist/types/components/index.d.ts +1 -0
  40. package/package.json +2 -2
  41. package/src/components/Trust/Trust.mdx +55 -0
  42. package/src/components/Trust/Trust.stories.tsx +48 -0
  43. package/src/components/Trust/Trust.test.tsx +8 -0
  44. package/src/components/Trust/Trust.tsx +62 -0
  45. package/src/components/Trust/TrustpilotProvider.tsx +20 -0
  46. package/src/components/Trust/constants.ts +21 -0
  47. package/src/components/Trust/getDefaultProps.ts +31 -0
  48. package/src/components/Trust/index.tsx +2 -0
  49. package/src/components/Trust/types.ts +28 -0
  50. package/src/components/index.tsx +1 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 40ce46a: Add `<Trust>`, `<TrustSection>`, `<PreFooter>`; fix `circleTick` name prop; plop generator for Chopin components
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [fc30887]
12
+ - Updated dependencies [40ce46a]
13
+ - @simplybusiness/icons@4.10.0
14
+
3
15
  ## 4.9.2
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "Trust", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return Trust;
9
+ }
10
+ });
11
+ const _jsxruntime = require("react/jsx-runtime");
12
+ const _react = require("react");
13
+ const _dedupe = /*#__PURE__*/ _interop_require_default(require("classnames/dedupe"));
14
+ const _getDefaultProps = require("./getDefaultProps");
15
+ const _constants = require("./constants");
16
+ const _utils = require("../../utils");
17
+ function _interop_require_default(obj) {
18
+ return obj && obj.__esModule ? obj : {
19
+ default: obj
20
+ };
21
+ }
22
+ const Trust = /*#__PURE__*/ (0, _react.forwardRef)((props, ref)=>{
23
+ const { elementType: Element = "div", variant, theme, ...otherProps } = props;
24
+ const trustRef = (0, _react.useRef)(null);
25
+ const { link, ...defaultProps } = (0, _getDefaultProps.getDefaultProps)(props);
26
+ const { className: variantClassName } = _constants.TRUSTPILOT_WIDGET[variant];
27
+ const themeClassName = theme.charAt(0).toUpperCase() + theme.slice(1);
28
+ const classes = (0, _dedupe.default)("mobius", "mobius/Trust", _constants.REQUIRED_TRUSTPILOT_CLASS_NAME, {
29
+ [`mobius/TrustTheme${themeClassName}`]: theme,
30
+ [`mobius/TrustVariant${variantClassName}`]: variant
31
+ }, otherProps.className);
32
+ (0, _react.useEffect)(()=>{
33
+ // If window.Trustpilot is available it means that we need to load the TrustBox from our ref.
34
+ if (trustRef.current && window.Trustpilot && window.Trustpilot.loadFromElement) {
35
+ window.Trustpilot.loadFromElement(trustRef.current, true);
36
+ }
37
+ }, []);
38
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(Element, {
39
+ ref: (0, _utils.mergeRefs)([
40
+ trustRef,
41
+ ref
42
+ ]),
43
+ ...defaultProps,
44
+ ...otherProps,
45
+ className: classes,
46
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)("a", {
47
+ href: link,
48
+ target: "_blank",
49
+ rel: "noopener noreferrer",
50
+ className: "mobius/TrustLink",
51
+ children: "Trustpilot"
52
+ })
53
+ });
54
+ });
55
+
56
+ //# sourceMappingURL=Trust.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Trust/Trust.tsx"],"sourcesContent":["import { forwardRef, useEffect, useRef } from \"react\";\nimport classNames from \"classnames/dedupe\";\nimport { ForwardedRefComponent } from \"../../types/components\";\nimport { TrustElementType, TrustProps, TrustRef } from \"./types\";\nimport { getDefaultProps } from \"./getDefaultProps\";\nimport { REQUIRED_TRUSTPILOT_CLASS_NAME, TRUSTPILOT_WIDGET } from \"./constants\";\nimport { mergeRefs } from \"../../utils\";\n\nexport const Trust: ForwardedRefComponent<TrustProps, TrustElementType> =\n forwardRef((props: TrustProps, ref: TrustRef) => {\n const {\n elementType: Element = \"div\",\n variant,\n theme,\n ...otherProps\n } = props;\n const trustRef = useRef(null);\n\n const { link, ...defaultProps } = getDefaultProps(props);\n const { className: variantClassName } = TRUSTPILOT_WIDGET[variant];\n const themeClassName = theme.charAt(0).toUpperCase() + theme.slice(1);\n\n const classes = classNames(\n \"mobius\",\n \"mobius/Trust\",\n REQUIRED_TRUSTPILOT_CLASS_NAME,\n {\n [`mobius/TrustTheme${themeClassName}`]: theme,\n [`mobius/TrustVariant${variantClassName}`]: variant,\n },\n otherProps.className,\n );\n\n useEffect(() => {\n // If window.Trustpilot is available it means that we need to load the TrustBox from our ref.\n if (\n trustRef.current &&\n window.Trustpilot &&\n window.Trustpilot.loadFromElement\n ) {\n window.Trustpilot.loadFromElement(trustRef.current, true);\n }\n }, []);\n\n return (\n <Element\n ref={mergeRefs([trustRef, ref])}\n {...defaultProps}\n {...otherProps}\n className={classes}\n >\n <a\n href={link}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"mobius/TrustLink\"\n >\n Trustpilot\n </a>\n </Element>\n );\n });\n"],"names":["Trust","forwardRef","props","ref","elementType","Element","variant","theme","otherProps","trustRef","useRef","link","defaultProps","getDefaultProps","className","variantClassName","TRUSTPILOT_WIDGET","themeClassName","charAt","toUpperCase","slice","classes","classNames","REQUIRED_TRUSTPILOT_CLASS_NAME","useEffect","current","window","Trustpilot","loadFromElement","mergeRefs","a","href","target","rel"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAQaA;;;eAAAA;;;;uBARiC;+DACvB;iCAGS;2BACkC;uBACxC;;;;;;AAEnB,MAAMA,sBACXC,IAAAA,iBAAU,EAAC,CAACC,OAAmBC;IAC7B,MAAM,EACJC,aAAaC,UAAU,KAAK,EAC5BC,OAAO,EACPC,KAAK,EACL,GAAGC,YACJ,GAAGN;IACJ,MAAMO,WAAWC,IAAAA,aAAM,EAAC;IAExB,MAAM,EAAEC,IAAI,EAAE,GAAGC,cAAc,GAAGC,IAAAA,gCAAe,EAACX;IAClD,MAAM,EAAEY,WAAWC,gBAAgB,EAAE,GAAGC,4BAAiB,CAACV,QAAQ;IAClE,MAAMW,iBAAiBV,MAAMW,MAAM,CAAC,GAAGC,WAAW,KAAKZ,MAAMa,KAAK,CAAC;IAEnE,MAAMC,UAAUC,IAAAA,eAAU,EACxB,UACA,gBACAC,yCAA8B,EAC9B;QACE,CAAC,CAAC,iBAAiB,EAAEN,eAAe,CAAC,CAAC,EAAEV;QACxC,CAAC,CAAC,mBAAmB,EAAEQ,iBAAiB,CAAC,CAAC,EAAET;IAC9C,GACAE,WAAWM,SAAS;IAGtBU,IAAAA,gBAAS,EAAC;QACR,6FAA6F;QAC7F,IACEf,SAASgB,OAAO,IAChBC,OAAOC,UAAU,IACjBD,OAAOC,UAAU,CAACC,eAAe,EACjC;YACAF,OAAOC,UAAU,CAACC,eAAe,CAACnB,SAASgB,OAAO,EAAE;QACtD;IACF,GAAG,EAAE;IAEL,qBACE,qBAACpB;QACCF,KAAK0B,IAAAA,gBAAS,EAAC;YAACpB;YAAUN;SAAI;QAC7B,GAAGS,YAAY;QACf,GAAGJ,UAAU;QACdM,WAAWO;kBAEX,cAAA,qBAACS;YACCC,MAAMpB;YACNqB,QAAO;YACPC,KAAI;YACJnB,WAAU;sBACX;;;AAKP"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "TrustpilotProvider", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return TrustpilotProvider;
9
+ }
10
+ });
11
+ const _jsxruntime = require("react/jsx-runtime");
12
+ const _react = require("react");
13
+ const TrustpilotProvider = ({ children })=>{
14
+ (0, _react.useEffect)(()=>{
15
+ // Required to load Trustpilot widgets
16
+ const script = document.createElement("script");
17
+ script.type = "text/javascript";
18
+ script.className = "optanon-category-C0002";
19
+ script.src = "//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js";
20
+ script.async = true;
21
+ document.head.appendChild(script);
22
+ return ()=>{
23
+ document.head.removeChild(script);
24
+ };
25
+ }, []);
26
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
27
+ children: children
28
+ });
29
+ };
30
+
31
+ //# sourceMappingURL=TrustpilotProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Trust/TrustpilotProvider.tsx"],"sourcesContent":["import { ReactNode, useEffect } from \"react\";\n\nexport const TrustpilotProvider = ({ children }: { children: ReactNode }) => {\n useEffect(() => {\n // Required to load Trustpilot widgets\n const script = document.createElement(\"script\");\n script.type = \"text/javascript\";\n script.className = \"optanon-category-C0002\";\n script.src =\n \"//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js\";\n script.async = true;\n document.head.appendChild(script);\n\n return () => {\n document.head.removeChild(script);\n };\n }, []);\n\n return <div>{children}</div>;\n};\n"],"names":["TrustpilotProvider","children","useEffect","script","document","createElement","type","className","src","async","head","appendChild","removeChild","div"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAEaA;;;eAAAA;;;;uBAFwB;AAE9B,MAAMA,qBAAqB,CAAC,EAAEC,QAAQ,EAA2B;IACtEC,IAAAA,gBAAS,EAAC;QACR,sCAAsC;QACtC,MAAMC,SAASC,SAASC,aAAa,CAAC;QACtCF,OAAOG,IAAI,GAAG;QACdH,OAAOI,SAAS,GAAG;QACnBJ,OAAOK,GAAG,GACR;QACFL,OAAOM,KAAK,GAAG;QACfL,SAASM,IAAI,CAACC,WAAW,CAACR;QAE1B,OAAO;YACLC,SAASM,IAAI,CAACE,WAAW,CAACT;QAC5B;IACF,GAAG,EAAE;IAEL,qBAAO,qBAACU;kBAAKZ;;AACf"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ REQUIRED_TRUSTPILOT_CLASS_NAME: function() {
13
+ return REQUIRED_TRUSTPILOT_CLASS_NAME;
14
+ },
15
+ SIMPLYBUSINESS_UNIT_ID: function() {
16
+ return SIMPLYBUSINESS_UNIT_ID;
17
+ },
18
+ TRUSTPILOT_LINKS: function() {
19
+ return TRUSTPILOT_LINKS;
20
+ },
21
+ TRUSTPILOT_WIDGET: function() {
22
+ return TRUSTPILOT_WIDGET;
23
+ }
24
+ });
25
+ const REQUIRED_TRUSTPILOT_CLASS_NAME = "trustpilot-widget";
26
+ const SIMPLYBUSINESS_UNIT_ID = "5ca35a3da72b330001954cef";
27
+ const TRUSTPILOT_LINKS = {
28
+ "en-US": "https://www.trustpilot.com/review/simplybusiness.com",
29
+ "en-GB": "https://www.trustpilot.com/review/simplybusiness.co.uk"
30
+ };
31
+ const TRUSTPILOT_WIDGET = {
32
+ // Keys based on actual widget names
33
+ // https://support.trustpilot.com/hc/en-us/articles/360019826379-TrustBox-widget-overview
34
+ "micro-combo": {
35
+ templateId: "5419b6ffb0d04a076446a9af",
36
+ className: "MicroCombo"
37
+ },
38
+ mini: {
39
+ templateId: "53aa8807dec7e10d38f59f32",
40
+ className: "Mini"
41
+ }
42
+ };
43
+
44
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Trust/constants.ts"],"sourcesContent":["export const REQUIRED_TRUSTPILOT_CLASS_NAME = \"trustpilot-widget\";\n\nexport const SIMPLYBUSINESS_UNIT_ID = \"5ca35a3da72b330001954cef\";\n\nexport const TRUSTPILOT_LINKS = {\n \"en-US\": \"https://www.trustpilot.com/review/simplybusiness.com\",\n \"en-GB\": \"https://www.trustpilot.com/review/simplybusiness.co.uk\",\n};\n\nexport const TRUSTPILOT_WIDGET = {\n // Keys based on actual widget names\n // https://support.trustpilot.com/hc/en-us/articles/360019826379-TrustBox-widget-overview\n \"micro-combo\": {\n templateId: \"5419b6ffb0d04a076446a9af\",\n className: \"MicroCombo\",\n },\n mini: {\n templateId: \"53aa8807dec7e10d38f59f32\",\n className: \"Mini\",\n },\n};\n"],"names":["REQUIRED_TRUSTPILOT_CLASS_NAME","SIMPLYBUSINESS_UNIT_ID","TRUSTPILOT_LINKS","TRUSTPILOT_WIDGET","templateId","className","mini"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAAaA,8BAA8B;eAA9BA;;IAEAC,sBAAsB;eAAtBA;;IAEAC,gBAAgB;eAAhBA;;IAKAC,iBAAiB;eAAjBA;;;AATN,MAAMH,iCAAiC;AAEvC,MAAMC,yBAAyB;AAE/B,MAAMC,mBAAmB;IAC9B,SAAS;IACT,SAAS;AACX;AAEO,MAAMC,oBAAoB;IAC/B,oCAAoC;IACpC,yFAAyF;IACzF,eAAe;QACbC,YAAY;QACZC,WAAW;IACb;IACAC,MAAM;QACJF,YAAY;QACZC,WAAW;IACb;AACF"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "getDefaultProps", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return getDefaultProps;
9
+ }
10
+ });
11
+ const _constants = require("./constants");
12
+ const getDefaultProps = (props)=>{
13
+ const { locale, variant, height, width, theme, stars } = props;
14
+ const { templateId } = _constants.TRUSTPILOT_WIDGET[variant];
15
+ const link = _constants.TRUSTPILOT_LINKS[locale];
16
+ const sharedProps = {
17
+ "data-businessunit-id": _constants.SIMPLYBUSINESS_UNIT_ID,
18
+ "data-locale": locale,
19
+ "data-template-id": templateId,
20
+ "data-theme": theme,
21
+ "data-style-width": width || "100%",
22
+ link
23
+ };
24
+ if (variant === "micro-combo") {
25
+ return {
26
+ "data-style-height": height || "40px",
27
+ "data-stars": stars,
28
+ ...sharedProps
29
+ };
30
+ }
31
+ return sharedProps;
32
+ };
33
+
34
+ //# sourceMappingURL=getDefaultProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Trust/getDefaultProps.ts"],"sourcesContent":["import {\n SIMPLYBUSINESS_UNIT_ID,\n TRUSTPILOT_LINKS,\n TRUSTPILOT_WIDGET,\n} from \"./constants\";\nimport { TrustProps } from \"./types\";\n\nexport const getDefaultProps = (props: TrustProps) => {\n const { locale, variant, height, width, theme, stars } = props;\n const { templateId } = TRUSTPILOT_WIDGET[variant];\n const link = TRUSTPILOT_LINKS[locale];\n\n const sharedProps = {\n \"data-businessunit-id\": SIMPLYBUSINESS_UNIT_ID,\n \"data-locale\": locale,\n \"data-template-id\": templateId,\n \"data-theme\": theme,\n \"data-style-width\": width || \"100%\",\n link,\n };\n\n if (variant === \"micro-combo\") {\n return {\n \"data-style-height\": height || \"40px\",\n \"data-stars\": stars,\n ...sharedProps,\n };\n }\n\n return sharedProps;\n};\n"],"names":["getDefaultProps","props","locale","variant","height","width","theme","stars","templateId","TRUSTPILOT_WIDGET","link","TRUSTPILOT_LINKS","sharedProps","SIMPLYBUSINESS_UNIT_ID"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAOaA;;;eAAAA;;;2BAHN;AAGA,MAAMA,kBAAkB,CAACC;IAC9B,MAAM,EAAEC,MAAM,EAAEC,OAAO,EAAEC,MAAM,EAAEC,KAAK,EAAEC,KAAK,EAAEC,KAAK,EAAE,GAAGN;IACzD,MAAM,EAAEO,UAAU,EAAE,GAAGC,4BAAiB,CAACN,QAAQ;IACjD,MAAMO,OAAOC,2BAAgB,CAACT,OAAO;IAErC,MAAMU,cAAc;QAClB,wBAAwBC,iCAAsB;QAC9C,eAAeX;QACf,oBAAoBM;QACpB,cAAcF;QACd,oBAAoBD,SAAS;QAC7BK;IACF;IAEA,IAAIP,YAAY,eAAe;QAC7B,OAAO;YACL,qBAAqBC,UAAU;YAC/B,cAAcG;YACd,GAAGK,WAAW;QAChB;IACF;IAEA,OAAOA;AACT"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ _export_star(require("./Trust"), exports);
6
+ _export_star(require("./types"), exports);
7
+ function _export_star(from, to) {
8
+ Object.keys(from).forEach(function(k) {
9
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
10
+ Object.defineProperty(to, k, {
11
+ enumerable: true,
12
+ get: function() {
13
+ return from[k];
14
+ }
15
+ });
16
+ }
17
+ });
18
+ return from;
19
+ }
20
+
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Trust/index.tsx"],"sourcesContent":["export * from \"./Trust\";\nexport * from \"./types\";\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;qBAAc;qBACA"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ window.Trustpilot = window.Trustpilot || {};
6
+
7
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Trust/types.ts"],"sourcesContent":["import { Ref, RefAttributes } from \"react\";\nimport { DOMProps } from \"../../types/dom\";\nimport { TRUSTPILOT_WIDGET } from \"./constants\";\n\ndeclare global {\n interface Window {\n Trustpilot: any;\n }\n}\n\nwindow.Trustpilot = window.Trustpilot || {};\n\nexport type TrustElementType = HTMLDivElement;\n\nexport interface TrustProps extends DOMProps, RefAttributes<TrustElementType> {\n /** Custom class name for setting specific CSS */\n className?: string;\n elementType?: string | React.ElementType;\n locale: \"en-US\" | \"en-GB\";\n variant: keyof typeof TRUSTPILOT_WIDGET;\n templateId?: string;\n height?: string;\n width?: string;\n theme: \"dark\" | \"light\";\n stars?: string;\n}\n\nexport type TrustRef = Ref<TrustElementType>;\n"],"names":["window","Trustpilot"],"rangeMappings":";;;;","mappings":";;;;AAUAA,OAAOC,UAAU,GAAGD,OAAOC,UAAU,IAAI,CAAC"}
@@ -41,6 +41,7 @@ _export_star(require("./TextArea"), exports);
41
41
  _export_star(require("./TextAreaInput"), exports);
42
42
  _export_star(require("./TextField"), exports);
43
43
  _export_star(require("./Title"), exports);
44
+ _export_star(require("./Trust"), exports);
44
45
  _export_star(require("./VisuallyHidden"), exports);
45
46
  function _export_star(from, to) {
46
47
  Object.keys(from).forEach(function(k) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/index.tsx"],"sourcesContent":["export * from \"./Accordion\";\nexport * from \"./Alert\";\nexport * from \"./Box\";\nexport * from \"./Breadcrumbs\";\nexport * from \"./Button\";\nexport * from \"./Checkbox\";\nexport * from \"./Container\";\nexport * from \"./Divider\";\nexport * from \"./Drawer\";\nexport * from \"./DropdownMenu\";\nexport * from \"./ErrorMessage\";\nexport * from \"./Fieldset\";\nexport * from \"./Flex\";\nexport * from \"./Grid\";\nexport * from \"./Icon\";\nexport * from \"./Image\";\nexport * from \"./Label\";\nexport * from \"./Link\";\nexport * from \"./LinkButton\";\nexport * from \"./List\";\nexport * from \"./LoadingIndicator\";\nexport * from \"./Logo\";\nexport * from \"./Modal\";\nexport * from \"./NumberField\";\nexport * from \"./Option\";\nexport * from \"./PasswordField\";\nexport * from \"./Popover\";\nexport * from \"./Progress\";\nexport * from \"./Radio\";\nexport * from \"./Segment\";\nexport * from \"./Select\";\nexport * from \"./Slider\";\nexport * from \"./SVG\";\nexport * from \"./Table\";\nexport * from \"./Text\";\nexport * from \"./TextArea\";\nexport * from \"./TextAreaInput\";\nexport * from \"./TextField\";\nexport * from \"./Title\";\nexport * from \"./VisuallyHidden\";\n"],"names":[],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;qBAAc;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA"}
1
+ {"version":3,"sources":["../../../src/components/index.tsx"],"sourcesContent":["export * from \"./Accordion\";\nexport * from \"./Alert\";\nexport * from \"./Box\";\nexport * from \"./Breadcrumbs\";\nexport * from \"./Button\";\nexport * from \"./Checkbox\";\nexport * from \"./Container\";\nexport * from \"./Divider\";\nexport * from \"./Drawer\";\nexport * from \"./DropdownMenu\";\nexport * from \"./ErrorMessage\";\nexport * from \"./Fieldset\";\nexport * from \"./Flex\";\nexport * from \"./Grid\";\nexport * from \"./Icon\";\nexport * from \"./Image\";\nexport * from \"./Label\";\nexport * from \"./Link\";\nexport * from \"./LinkButton\";\nexport * from \"./List\";\nexport * from \"./LoadingIndicator\";\nexport * from \"./Logo\";\nexport * from \"./Modal\";\nexport * from \"./NumberField\";\nexport * from \"./Option\";\nexport * from \"./PasswordField\";\nexport * from \"./Popover\";\nexport * from \"./Progress\";\nexport * from \"./Radio\";\nexport * from \"./Segment\";\nexport * from \"./Select\";\nexport * from \"./Slider\";\nexport * from \"./SVG\";\nexport * from \"./Table\";\nexport * from \"./Text\";\nexport * from \"./TextArea\";\nexport * from \"./TextAreaInput\";\nexport * from \"./TextField\";\nexport * from \"./Title\";\nexport * from \"./Trust\";\nexport * from \"./VisuallyHidden\";\n"],"names":[],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;qBAAc;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA"}