@draftbit/core 43.2.3-c29b77.0 → 43.2.4-ab2f04.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 (58) hide show
  1. package/lib/commonjs/components/Accordion/AccordionGroup.js +1 -9
  2. package/lib/commonjs/components/Accordion/AccordionGroup.js.map +1 -1
  3. package/lib/commonjs/components/TextField.js +11 -4
  4. package/lib/commonjs/components/TextField.js.map +1 -1
  5. package/lib/commonjs/index.js +0 -8
  6. package/lib/commonjs/index.js.map +1 -1
  7. package/lib/commonjs/mappings/Accordion.js +40 -0
  8. package/lib/commonjs/mappings/Accordion.js.map +1 -0
  9. package/lib/commonjs/mappings/AccordionGroup.js +1 -1
  10. package/lib/commonjs/mappings/AccordionGroup.js.map +1 -1
  11. package/lib/commonjs/mappings/AccordionItem.js +1 -1
  12. package/lib/commonjs/mappings/AccordionItem.js.map +1 -1
  13. package/lib/module/components/Accordion/AccordionGroup.js +1 -9
  14. package/lib/module/components/Accordion/AccordionGroup.js.map +1 -1
  15. package/lib/module/components/Elevation.js +15 -4
  16. package/lib/module/components/Elevation.js.map +1 -1
  17. package/lib/module/components/Justification.js +2 -2
  18. package/lib/module/components/Justification.js.map +1 -1
  19. package/lib/module/components/Portal/PortalConsumer.js.map +1 -1
  20. package/lib/module/components/TextField.js +11 -4
  21. package/lib/module/components/TextField.js.map +1 -1
  22. package/lib/module/index.js +0 -1
  23. package/lib/module/index.js.map +1 -1
  24. package/lib/module/mappings/Accordion.js +31 -0
  25. package/lib/module/mappings/Accordion.js.map +1 -0
  26. package/lib/module/mappings/AccordionGroup.js +1 -1
  27. package/lib/module/mappings/AccordionGroup.js.map +1 -1
  28. package/lib/module/mappings/AccordionItem.js +1 -1
  29. package/lib/module/mappings/AccordionItem.js.map +1 -1
  30. package/lib/typescript/src/index.d.ts +0 -1
  31. package/lib/typescript/src/mappings/Accordion.d.ts +70 -0
  32. package/package.json +2 -3
  33. package/src/components/Accordion/AccordionGroup.js +1 -12
  34. package/src/components/Accordion/AccordionGroup.tsx +1 -15
  35. package/src/components/TextField.js +9 -2
  36. package/src/components/TextField.tsx +8 -2
  37. package/src/index.js +0 -1
  38. package/src/index.tsx +0 -1
  39. package/src/mappings/Accordion.js +30 -0
  40. package/src/mappings/Accordion.ts +38 -0
  41. package/src/mappings/AccordionGroup.js +1 -1
  42. package/src/mappings/AccordionGroup.ts +1 -1
  43. package/src/mappings/AccordionItem.js +1 -1
  44. package/src/mappings/AccordionItem.ts +1 -1
  45. package/lib/commonjs/components/Markdown.js +0 -30
  46. package/lib/commonjs/components/Markdown.js.map +0 -1
  47. package/lib/commonjs/mappings/Markdown.js +0 -24
  48. package/lib/commonjs/mappings/Markdown.js.map +0 -1
  49. package/lib/module/components/Markdown.js +0 -13
  50. package/lib/module/components/Markdown.js.map +0 -1
  51. package/lib/module/mappings/Markdown.js +0 -15
  52. package/lib/module/mappings/Markdown.js.map +0 -1
  53. package/lib/typescript/src/components/Markdown.d.ts +0 -12
  54. package/lib/typescript/src/mappings/Markdown.d.ts +0 -9
  55. package/src/components/Markdown.js +0 -7
  56. package/src/components/Markdown.tsx +0 -14
  57. package/src/mappings/Markdown.js +0 -14
  58. package/src/mappings/Markdown.ts +0 -15
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var React = _interopRequireWildcard(require("react"));
9
-
10
- var _reactNativeMarkdownDisplay = _interopRequireDefault(require("react-native-markdown-display"));
11
-
12
- var _theming = require("../theming");
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
-
18
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
-
20
- const MarkdownComponent = _ref => {
21
- let {
22
- content
23
- } = _ref;
24
- return /*#__PURE__*/React.createElement(_reactNativeMarkdownDisplay.default, null, content);
25
- };
26
-
27
- var _default = (0, _theming.withTheme)(MarkdownComponent);
28
-
29
- exports.default = _default;
30
- //# sourceMappingURL=Markdown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["Markdown.tsx"],"names":["MarkdownComponent","content"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;;;AAMA,MAAMA,iBAAkC,GAAG,QAAiB;AAAA,MAAhB;AAAEC,IAAAA;AAAF,GAAgB;AAC1D,sBAAO,oBAAC,mCAAD,QAAWA,OAAX,CAAP;AACD,CAFD;;eAIe,wBAAUD,iBAAV,C","sourcesContent":["import * as React from \"react\";\nimport Markdown from \"react-native-markdown-display\";\n\nimport { withTheme } from \"../theming\";\n\ntype Props = {\n content?: string;\n};\n\nconst MarkdownComponent: React.FC<Props> = ({ content }) => {\n return <Markdown>{content}</Markdown>;\n};\n\nexport default withTheme(MarkdownComponent);\n"]}
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
-
8
- var _types = require("@draftbit/types");
9
-
10
- const SEED_DATA = {
11
- name: "Markdown",
12
- tag: "MarkdownComponent",
13
- description: "A markdown component",
14
- category: _types.COMPONENT_TYPES.basic,
15
- props: {
16
- content: (0, _types.createTextProp)({
17
- label: "Markdown Text",
18
- description: "Markdown Text",
19
- defaultValue: null
20
- })
21
- }
22
- };
23
- exports.SEED_DATA = SEED_DATA;
24
- //# sourceMappingURL=Markdown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["Markdown.ts"],"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","basic","props","content","label","defaultValue"],"mappings":";;;;;;;AAAA;;AAEO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,UADiB;AAEvBC,EAAAA,GAAG,EAAE,mBAFkB;AAGvBC,EAAAA,WAAW,EAAE,sBAHU;AAIvBC,EAAAA,QAAQ,EAAEC,uBAAgBC,KAJH;AAKvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE,2BAAe;AACtBC,MAAAA,KAAK,EAAE,eADe;AAEtBN,MAAAA,WAAW,EAAE,eAFS;AAGtBO,MAAAA,YAAY,EAAE;AAHQ,KAAf;AADJ;AALgB,CAAlB","sourcesContent":["import { COMPONENT_TYPES, createTextProp } from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Markdown\",\n tag: \"MarkdownComponent\",\n description: \"A markdown component\",\n category: COMPONENT_TYPES.basic,\n props: {\n content: createTextProp({\n label: \"Markdown Text\",\n description: \"Markdown Text\",\n defaultValue: null,\n }),\n },\n};\n"]}
@@ -1,13 +0,0 @@
1
- import * as React from "react";
2
- import Markdown from "react-native-markdown-display";
3
- import { withTheme } from "../theming";
4
-
5
- const MarkdownComponent = _ref => {
6
- let {
7
- content
8
- } = _ref;
9
- return /*#__PURE__*/React.createElement(Markdown, null, content);
10
- };
11
-
12
- export default withTheme(MarkdownComponent);
13
- //# sourceMappingURL=Markdown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["Markdown.tsx"],"names":["React","Markdown","withTheme","MarkdownComponent","content"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,QAAP,MAAqB,+BAArB;AAEA,SAASC,SAAT,QAA0B,YAA1B;;AAMA,MAAMC,iBAAkC,GAAG,QAAiB;AAAA,MAAhB;AAAEC,IAAAA;AAAF,GAAgB;AAC1D,sBAAO,oBAAC,QAAD,QAAWA,OAAX,CAAP;AACD,CAFD;;AAIA,eAAeF,SAAS,CAACC,iBAAD,CAAxB","sourcesContent":["import * as React from \"react\";\nimport Markdown from \"react-native-markdown-display\";\n\nimport { withTheme } from \"../theming\";\n\ntype Props = {\n content?: string;\n};\n\nconst MarkdownComponent: React.FC<Props> = ({ content }) => {\n return <Markdown>{content}</Markdown>;\n};\n\nexport default withTheme(MarkdownComponent);\n"]}
@@ -1,15 +0,0 @@
1
- import { COMPONENT_TYPES, createTextProp } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Markdown",
4
- tag: "MarkdownComponent",
5
- description: "A markdown component",
6
- category: COMPONENT_TYPES.basic,
7
- props: {
8
- content: createTextProp({
9
- label: "Markdown Text",
10
- description: "Markdown Text",
11
- defaultValue: null
12
- })
13
- }
14
- };
15
- //# sourceMappingURL=Markdown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["Markdown.ts"],"names":["COMPONENT_TYPES","createTextProp","SEED_DATA","name","tag","description","category","basic","props","content","label","defaultValue"],"mappings":"AAAA,SAASA,eAAT,EAA0BC,cAA1B,QAAgD,iBAAhD;AAEA,OAAO,MAAMC,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,UADiB;AAEvBC,EAAAA,GAAG,EAAE,mBAFkB;AAGvBC,EAAAA,WAAW,EAAE,sBAHU;AAIvBC,EAAAA,QAAQ,EAAEN,eAAe,CAACO,KAJH;AAKvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAER,cAAc,CAAC;AACtBS,MAAAA,KAAK,EAAE,eADe;AAEtBL,MAAAA,WAAW,EAAE,eAFS;AAGtBM,MAAAA,YAAY,EAAE;AAHQ,KAAD;AADlB;AALgB,CAAlB","sourcesContent":["import { COMPONENT_TYPES, createTextProp } from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Markdown\",\n tag: \"MarkdownComponent\",\n description: \"A markdown component\",\n category: COMPONENT_TYPES.basic,\n props: {\n content: createTextProp({\n label: \"Markdown Text\",\n description: \"Markdown Text\",\n defaultValue: null,\n }),\n },\n};\n"]}
@@ -1,12 +0,0 @@
1
- import * as React from "react";
2
- declare type Props = {
3
- content?: string;
4
- };
5
- declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<{
6
- theme: any;
7
- }, "theme"> & {
8
- theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
9
- }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<{
10
- theme: any;
11
- }> & React.FC<Props>, {}>;
12
- export default _default;
@@ -1,9 +0,0 @@
1
- export declare const SEED_DATA: {
2
- name: string;
3
- tag: string;
4
- description: string;
5
- category: string;
6
- props: {
7
- content: any;
8
- };
9
- };
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import Markdown from "react-native-markdown-display";
3
- import { withTheme } from "../theming";
4
- const MarkdownComponent = ({ content }) => {
5
- return React.createElement(Markdown, null, content);
6
- };
7
- export default withTheme(MarkdownComponent);
@@ -1,14 +0,0 @@
1
- import * as React from "react";
2
- import Markdown from "react-native-markdown-display";
3
-
4
- import { withTheme } from "../theming";
5
-
6
- type Props = {
7
- content?: string;
8
- };
9
-
10
- const MarkdownComponent: React.FC<Props> = ({ content }) => {
11
- return <Markdown>{content}</Markdown>;
12
- };
13
-
14
- export default withTheme(MarkdownComponent);
@@ -1,14 +0,0 @@
1
- import { COMPONENT_TYPES, createTextProp } from "@draftbit/types";
2
- export const SEED_DATA = {
3
- name: "Markdown",
4
- tag: "MarkdownComponent",
5
- description: "A markdown component",
6
- category: COMPONENT_TYPES.basic,
7
- props: {
8
- content: createTextProp({
9
- label: "Markdown Text",
10
- description: "Markdown Text",
11
- defaultValue: null,
12
- }),
13
- },
14
- };
@@ -1,15 +0,0 @@
1
- import { COMPONENT_TYPES, createTextProp } from "@draftbit/types";
2
-
3
- export const SEED_DATA = {
4
- name: "Markdown",
5
- tag: "MarkdownComponent",
6
- description: "A markdown component",
7
- category: COMPONENT_TYPES.basic,
8
- props: {
9
- content: createTextProp({
10
- label: "Markdown Text",
11
- description: "Markdown Text",
12
- defaultValue: null,
13
- }),
14
- },
15
- };