@draftbit/core 46.8.2-3a158e.2 → 46.8.2-af4b7d.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.
@@ -12,8 +12,7 @@ var _theming = require("../theming");
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  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); }
14
14
  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; }
15
- /* Copied from https://github.com/callstack/react-native-paper/blob/main/src/components/Surface.tsx */
16
-
15
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
17
16
  const Surface = _ref => {
18
17
  let {
19
18
  elevation: propElevation,
@@ -43,18 +42,7 @@ const Surface = _ref => {
43
42
  return colors.surface;
44
43
  }
45
44
  };
46
- return /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
47
- ...rest,
48
- style: [{
49
- backgroundColor: getBackgroundColor(),
50
- elevation,
51
- ...evalationStyles,
52
- ...restStyle
53
- }]
54
- }, children);
55
- };
56
- var _default = (0, _theming.withTheme)(Surface);
57
- exports.default = _default;xtends({}, rest, {
45
+ return /*#__PURE__*/React.createElement(_reactNative.Animated.View, _extends({}, rest, {
58
46
  style: [{
59
47
  backgroundColor: getBackgroundColor(),
60
48
  elevation,
@@ -12,4 +12,4 @@ const APPROX_STATUSBAR_HEIGHT = _reactNative.Platform.select({
12
12
  android: DEFAULT_STATUSBAR_HEIGHT_EXPO,
13
13
  ios: _reactNative.Platform.Version < 11 ? DEFAULT_STATUSBAR_HEIGHT_EXPO : 0
14
14
  });
15
- exports.APPROX_STATUSBAR_HEIGHT = APPROX_STATUSBAR_HEIGHT;AR_HEIGHT;
15
+ exports.APPROX_STATUSBAR_HEIGHT = APPROX_STATUSBAR_HEIGHT;
@@ -114,14 +114,6 @@ const SEED_DATA = [{
114
114
  name: "Quoted",
115
115
  tag: "Q",
116
116
  ...TEXT_SEED_DATA
117
- }, {
118
- name: "Line Break",
119
- tag: "BR",
120
- ...TEXT_SEED_DATA
121
- }, {
122
- name: "Horizontal Rule",
123
- tag: "HR",
124
- ...TEXT_SEED_DATA
125
117
  }, {
126
118
  name: "Time",
127
119
  tag: "Time",
@@ -135,6 +127,14 @@ const SEED_DATA = [{
135
127
  tag: "LI",
136
128
  ...TEXT_SEED_DATA,
137
129
  category: _types.COMPONENT_TYPES.webelement
130
+ }, {
131
+ name: "Line Break",
132
+ tag: "BR",
133
+ ...ELEMENT_SEED_DATA
134
+ }, {
135
+ name: "Horizontal Rule",
136
+ tag: "HR",
137
+ ...ELEMENT_SEED_DATA
138
138
  }, {
139
139
  name: "Anchor",
140
140
  tag: "A",
@@ -108,14 +108,6 @@ export const SEED_DATA = [{
108
108
  name: "Quoted",
109
109
  tag: "Q",
110
110
  ...TEXT_SEED_DATA
111
- }, {
112
- name: "Line Break",
113
- tag: "BR",
114
- ...TEXT_SEED_DATA
115
- }, {
116
- name: "Horizontal Rule",
117
- tag: "HR",
118
- ...TEXT_SEED_DATA
119
111
  }, {
120
112
  name: "Time",
121
113
  tag: "Time",
@@ -129,6 +121,14 @@ export const SEED_DATA = [{
129
121
  tag: "LI",
130
122
  ...TEXT_SEED_DATA,
131
123
  category: COMPONENT_TYPES.webelement
124
+ }, {
125
+ name: "Line Break",
126
+ tag: "BR",
127
+ ...ELEMENT_SEED_DATA
128
+ }, {
129
+ name: "Horizontal Rule",
130
+ tag: "HR",
131
+ ...ELEMENT_SEED_DATA
132
132
  }, {
133
133
  name: "Anchor",
134
134
  tag: "A",
@@ -1 +1 @@
1
- {"version":3,"file":"HtmlElements.d.ts","sourceRoot":"","sources":["../../../../src/mappings/HtmlElements.ts"],"names":[],"mappings":"AAoEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4HrB,CAAC"}
1
+ {"version":3,"file":"HtmlElements.d.ts","sourceRoot":"","sources":["../../../../src/mappings/HtmlElements.ts"],"names":[],"mappings":"AAoEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6HrB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.8.2-3a158e.2+3a158ef",
3
+ "version": "46.8.2-af4b7d.2+af4b7d0",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@date-io/date-fns": "^1.3.13",
43
43
  "@draftbit/react-theme-provider": "^2.1.1",
44
- "@draftbit/types": "^46.8.2-3a158e.2+3a158ef",
44
+ "@draftbit/types": "^46.8.2-af4b7d.2+af4b7d0",
45
45
  "@expo/html-elements": "^0.3.1",
46
46
  "@material-ui/core": "^4.11.0",
47
47
  "@material-ui/pickers": "^3.2.10",
@@ -93,5 +93,5 @@
93
93
  ]
94
94
  ]
95
95
  },
96
- "gitHead": "3a158efc991d973a40e8a08b9ebf695936570fe0"
96
+ "gitHead": "af4b7d05423db7dbcc8d6ad29c655abae47ca702"
97
97
  }
@@ -129,16 +129,6 @@ export const SEED_DATA = [
129
129
  tag: "Q",
130
130
  ...TEXT_SEED_DATA,
131
131
  },
132
- {
133
- name: "Line Break",
134
- tag: "BR",
135
- ...TEXT_SEED_DATA,
136
- },
137
- {
138
- name: "Horizontal Rule",
139
- tag: "HR",
140
- ...TEXT_SEED_DATA,
141
- },
142
132
  {
143
133
  name: "Time",
144
134
  tag: "Time",
@@ -155,6 +145,16 @@ export const SEED_DATA = [
155
145
  ...TEXT_SEED_DATA,
156
146
  category: COMPONENT_TYPES.webelement,
157
147
  },
148
+ {
149
+ name: "Line Break",
150
+ tag: "BR",
151
+ ...ELEMENT_SEED_DATA,
152
+ },
153
+ {
154
+ name: "Horizontal Rule",
155
+ tag: "HR",
156
+ ...ELEMENT_SEED_DATA,
157
+ },
158
158
  {
159
159
  name: "Anchor",
160
160
  tag: "A",
@@ -142,16 +142,7 @@ export const SEED_DATA = [
142
142
  tag: "Q",
143
143
  ...TEXT_SEED_DATA,
144
144
  },
145
- {
146
- name: "Line Break",
147
- tag: "BR",
148
- ...TEXT_SEED_DATA,
149
- },
150
- {
151
- name: "Horizontal Rule",
152
- tag: "HR",
153
- ...TEXT_SEED_DATA,
154
- },
145
+
155
146
  {
156
147
  name: "Time",
157
148
  tag: "Time",
@@ -168,6 +159,16 @@ export const SEED_DATA = [
168
159
  ...TEXT_SEED_DATA,
169
160
  category: COMPONENT_TYPES.webelement,
170
161
  },
162
+ {
163
+ name: "Line Break",
164
+ tag: "BR",
165
+ ...ELEMENT_SEED_DATA,
166
+ },
167
+ {
168
+ name: "Horizontal Rule",
169
+ tag: "HR",
170
+ ...ELEMENT_SEED_DATA,
171
+ },
171
172
  {
172
173
  name: "Anchor",
173
174
  tag: "A",