@draftbit/core 43.6.1-9242df.0 → 43.6.1-da90cf.3

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 (43) hide show
  1. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js.map +1 -1
  2. package/lib/commonjs/components/Checkbox/context.js +1 -1
  3. package/lib/commonjs/components/Portal/PortalConsumer.js.map +1 -1
  4. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +17 -5
  5. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +1 -1
  6. package/lib/commonjs/components/RadioButton/index.js.map +1 -1
  7. package/lib/commonjs/components/Text.js +1 -2
  8. package/lib/commonjs/components/Text.js.map +1 -1
  9. package/lib/commonjs/mappings/ActionSheetItem.js +2 -1
  10. package/lib/commonjs/mappings/ActionSheetItem.js.map +1 -1
  11. package/lib/commonjs/mappings/Image.js.map +1 -1
  12. package/lib/commonjs/mappings/MapView.js +9 -8
  13. package/lib/commonjs/mappings/MapView.js.map +1 -1
  14. package/lib/commonjs/mappings/RowHeadlineImageCaption.js.map +1 -1
  15. package/lib/commonjs/mappings/Text.js +17 -12
  16. package/lib/commonjs/mappings/Text.js.map +1 -1
  17. package/lib/commonjs/mappings/View.js +1 -1
  18. package/lib/commonjs/mappings/View.js.map +1 -1
  19. package/lib/module/components/Checkbox/CheckboxGroup.js +3 -16
  20. package/lib/module/components/Checkbox/CheckboxGroup.js.map +1 -1
  21. package/lib/module/components/Text.js +1 -2
  22. package/lib/module/components/Text.js.map +1 -1
  23. package/lib/module/mappings/ActionSheetItem.js +2 -1
  24. package/lib/module/mappings/ActionSheetItem.js.map +1 -1
  25. package/lib/module/mappings/MapView.js +9 -8
  26. package/lib/module/mappings/MapView.js.map +1 -1
  27. package/lib/module/mappings/Text.js +18 -13
  28. package/lib/module/mappings/Text.js.map +1 -1
  29. package/lib/module/mappings/View.js +1 -1
  30. package/lib/module/mappings/View.js.map +1 -1
  31. package/lib/typescript/src/mappings/Text.d.ts +1 -10
  32. package/lib/typescript/src/mappings/View.d.ts +1 -1
  33. package/package.json +2 -2
  34. package/src/components/Text.js +1 -1
  35. package/src/components/Text.tsx +1 -1
  36. package/src/mappings/ActionSheetItem.js +1 -0
  37. package/src/mappings/ActionSheetItem.ts +1 -0
  38. package/src/mappings/MapView.js +6 -5
  39. package/src/mappings/MapView.ts +6 -5
  40. package/src/mappings/Text.js +16 -11
  41. package/src/mappings/Text.ts +16 -10
  42. package/src/mappings/View.js +1 -1
  43. package/src/mappings/View.ts +1 -1
@@ -1,3 +1,5 @@
1
+ function _extends() { _extends = Object.assign || 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); }
2
+
1
3
  import * as React from "react";
2
4
  import { View } from "react-native";
3
5
  import { checkboxGroupContext, Direction } from "./context";
@@ -25,24 +27,9 @@ const CheckboxGroup = _ref => {
25
27
  });
26
28
  }
27
29
 
28
- return /*#__PURE__*/React.createElement(View, {
30
+ return /*#__PURE__*/React.createElement(View, _extends({
29
31
  style: [{
30
32
  minHeight: 40
31
- }, style],
32
- ...rest
33
- }, /*#__PURE__*/React.createElement(Provider, {
34
- value: {
35
- values,
36
- onValueChange,
37
- direction
38
- }
39
- }, /*#__PURE__*/React.createElement(View, {
40
- style: _containerStyle
41
- }, children)));
42
- };
43
-
44
- export default CheckboxGroup;
45
- //# sourceMappingURL=CheckboxGroup.js.map minHeight: 40
46
33
  }, style]
47
34
  }, rest), /*#__PURE__*/React.createElement(Provider, {
48
35
  value: {
@@ -1 +1 @@
1
- {"version":3,"sources":["CheckboxGroup.js"],"names":["React","View","checkboxGroupContext","Direction","Provider","CheckboxGroup","direction","Vertical","values","onValueChange","style","children","rest","_containerStyle","flexDirection","Horizontal","overflow","push","alignItems","createElement","minHeight","value"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,IAAT,QAAqB,cAArB;AACA,SAASC,oBAAT,EAA+BC,SAA/B,QAAgD,WAAhD;AACA,MAAM;AAAEC,EAAAA;AAAF,IAAeF,oBAArB;;AACA,MAAMG,aAAa,GAAG,QAAqG;AAAA,MAApG;AAAEC,IAAAA,SAAS,GAAGH,SAAS,CAACI,QAAxB;AAAkCC,IAAAA,MAAlC;AAA0CC,IAAAA,aAAa,GAAG,MAAM,CAAG,CAAnE;AAAqEC,IAAAA,KAArE;AAA4EC,IAAAA,QAA5E;AAAsF,OAAGC;AAAzF,GAAoG;AACvH,QAAMC,eAAe,GAAG,CACpB;AACIC,IAAAA,aAAa,EAAER,SAAS,KAAKH,SAAS,CAACY,UAAxB,GAAqC,KAArC,GAA6C,QADhE;AAEIC,IAAAA,QAAQ,EAAE;AAFd,GADoB,CAAxB;;AAMA,MAAIV,SAAS,KAAKH,SAAS,CAACI,QAA5B,EAAsC;AAClCM,IAAAA,eAAe,CAACI,IAAhB,CAAqB;AACjBC,MAAAA,UAAU,EAAE;AADK,KAArB;AAGH;;AACD,sBAAQlB,KAAK,CAACmB,aAAN,CAAoBlB,IAApB,EAA0B;AAAES,IAAAA,KAAK,EAAE,CAAC;AAAEU,MAAAA,SAAS,EAAE;AAAb,KAAD,EAAoBV,KAApB,CAAT;AAAqC,OAAGE;AAAxC,GAA1B,eACJZ,KAAK,CAACmB,aAAN,CAAoBf,QAApB,EAA8B;AAAEiB,IAAAA,KAAK,EAAE;AAAEb,MAAAA,MAAF;AAAUC,MAAAA,aAAV;AAAyBH,MAAAA;AAAzB;AAAT,GAA9B,eACIN,KAAK,CAACmB,aAAN,CAAoBlB,IAApB,EAA0B;AAAES,IAAAA,KAAK,EAAEG;AAAT,GAA1B,EAAsDF,QAAtD,CADJ,CADI,CAAR;AAGH,CAfD;;AAgBA,eAAeN,aAAf","sourcesContent":["import * as React from \"react\";\nimport { View } from \"react-native\";\nimport { checkboxGroupContext, Direction } from \"./context\";\nconst { Provider } = checkboxGroupContext;\nconst CheckboxGroup = ({ direction = Direction.Vertical, values, onValueChange = () => { }, style, children, ...rest }) => {\n const _containerStyle = [\n {\n flexDirection: direction === Direction.Horizontal ? \"row\" : \"column\",\n overflow: \"hidden\",\n },\n ];\n if (direction !== Direction.Vertical) {\n _containerStyle.push({\n alignItems: \"center\",\n });\n }\n return (React.createElement(View, { style: [{ minHeight: 40 }, style], ...rest },\n React.createElement(Provider, { value: { values, onValueChange, direction } },\n React.createElement(View, { style: _containerStyle }, children))));\n};\nexport default CheckboxGroup;\n"]}
1
+ {"version":3,"sources":["CheckboxGroup.tsx"],"names":["React","View","checkboxGroupContext","Direction","Provider","CheckboxGroup","direction","Vertical","values","onValueChange","style","children","rest","_containerStyle","flexDirection","Horizontal","overflow","push","alignItems","minHeight"],"mappings":";;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,IAAT,QAA2C,cAA3C;AAEA,SAASC,oBAAT,EAA+BC,SAA/B,QAAgD,WAAhD;AAWA,MAAM;AAAEC,EAAAA;AAAF,IAAeF,oBAArB;;AAEA,MAAMG,aAA2C,GAAG,QAO9C;AAAA,MAP+C;AACnDC,IAAAA,SAAS,GAAGH,SAAS,CAACI,QAD6B;AAEnDC,IAAAA,MAFmD;AAGnDC,IAAAA,aAAa,GAAG,MAAM,CAAE,CAH2B;AAInDC,IAAAA,KAJmD;AAKnDC,IAAAA,QALmD;AAMnD,OAAGC;AANgD,GAO/C;AACJ,QAAMC,eAAqC,GAAG,CAC5C;AACEC,IAAAA,aAAa,EAAER,SAAS,KAAKH,SAAS,CAACY,UAAxB,GAAqC,KAArC,GAA6C,QAD9D;AAEEC,IAAAA,QAAQ,EAAE;AAFZ,GAD4C,CAA9C;;AAOA,MAAIV,SAAS,KAAKH,SAAS,CAACI,QAA5B,EAAsC;AACpCM,IAAAA,eAAe,CAACI,IAAhB,CAAqB;AACnBC,MAAAA,UAAU,EAAE;AADO,KAArB;AAGD;;AAED,sBACE,oBAAC,IAAD;AAAM,IAAA,KAAK,EAAE,CAAC;AAAEC,MAAAA,SAAS,EAAE;AAAb,KAAD,EAAoBT,KAApB;AAAb,KAA6CE,IAA7C,gBACE,oBAAC,QAAD;AAAU,IAAA,KAAK,EAAE;AAAEJ,MAAAA,MAAF;AAAUC,MAAAA,aAAV;AAAyBH,MAAAA;AAAzB;AAAjB,kBACE,oBAAC,IAAD;AAAM,IAAA,KAAK,EAAEO;AAAb,KAA+BF,QAA/B,CADF,CADF,CADF;AAOD,CA5BD;;AA8BA,eAAeN,aAAf","sourcesContent":["import * as React from \"react\";\nimport { View, StyleProp, ViewStyle } from \"react-native\";\nimport type { Theme } from \"../../styles/DefaultTheme\";\nimport { checkboxGroupContext, Direction } from \"./context\";\n\nexport interface CheckboxGroupProps {\n direction?: Direction;\n style?: StyleProp<ViewStyle>;\n values: string[];\n onValueChange: (value: string, selected: boolean) => void;\n theme: Theme;\n children: React.ReactNode;\n}\n\nconst { Provider } = checkboxGroupContext;\n\nconst CheckboxGroup: React.FC<CheckboxGroupProps> = ({\n direction = Direction.Vertical,\n values,\n onValueChange = () => {},\n style,\n children,\n ...rest\n}) => {\n const _containerStyle: StyleProp<ViewStyle> = [\n {\n flexDirection: direction === Direction.Horizontal ? \"row\" : \"column\",\n overflow: \"hidden\",\n },\n ];\n\n if (direction !== Direction.Vertical) {\n _containerStyle.push({\n alignItems: \"center\",\n });\n }\n\n return (\n <View style={[{ minHeight: 40 }, style]} {...rest}>\n <Provider value={{ values, onValueChange, direction }}>\n <View style={_containerStyle}>{children}</View>\n </Provider>\n </View>\n );\n};\n\nexport default CheckboxGroup;\n"]}
@@ -46,8 +46,7 @@ export const BaseLink = _ref => {
46
46
  return /*#__PURE__*/React.createElement(Text, _extends({
47
47
  hitSlop: 8,
48
48
  style: [{
49
- color: theme.colors.primary,
50
- alignSelf: "flex-start"
49
+ color: theme.colors.primary
51
50
  }, style],
52
51
  theme: theme
53
52
  }, props), title);
@@ -1 +1 @@
1
- {"version":3,"sources":["Text.tsx"],"names":["React","Text","NativeText","I18nManager","withTheme","Component","setNativeProps","args","_root","render","style","rest","props","writingDirection","isRTL","c","textAlign","BaseLink","theme","title","color","colors","primary","alignSelf","Link"],"mappings":";;;;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,IAAI,IAAIC,UAAjB,EAA6BC,WAA7B,QAA2D,cAA3D;AACA,SAASC,SAAT,QAA0B,YAA1B;;AAOA,MAAMH,IAAN,SAAmBD,KAAK,CAACK,SAAzB,CAA0C;AAAA;AAAA;;AAAA;AAAA;;AAGxCC,EAAAA,cAAc,CAACC,IAAD,EAAkB;AAC9B,WAAO,KAAKC,KAAL,IAAc,KAAKA,KAAL,CAAWF,cAAX,CAA0BC,IAA1B,CAArB;AACD;;AAEDE,EAAAA,MAAM,GAAG;AACP,UAAM;AAAEC,MAAAA,KAAF;AAAS,SAAGC;AAAZ,QAAqB,KAAKC,KAAhC;AACA,UAAMC,gBAAgB,GAAGV,WAAW,CAACW,KAAZ,GAAoB,KAApB,GAA4B,KAArD;AAEA,wBACE,oBAAC,UAAD,eACMH,IADN;AAEE,MAAA,GAAG,EAAGI,CAAD,IAAO;AACV,aAAKP,KAAL,GAAaO,CAAb;AACD,OAJH;AAKE,MAAA,KAAK,EAAE,CACL;AACEC,QAAAA,SAAS,EAAE,MADb;AAEEH,QAAAA;AAFF,OADK,EAKLH,KALK;AALT,OADF;AAeD;;AA1BuC;;AA6B1C,OAAO,MAAMO,QAAQ,GAAG,QAKA;AAAA,MALC;AACvBP,IAAAA,KADuB;AAEvBQ,IAAAA,KAFuB;AAGvBC,IAAAA,KAHuB;AAIvB,OAAGP;AAJoB,GAKD;AACtB,sBACE,oBAAC,IAAD;AACE,IAAA,OAAO,EAAE,CADX;AAEE,IAAA,KAAK,EAAE,CAAC;AAAEQ,MAAAA,KAAK,EAAEF,KAAK,CAACG,MAAN,CAAaC,OAAtB;AAA+BC,MAAAA,SAAS,EAAE;AAA1C,KAAD,EAA2Db,KAA3D,CAFT;AAGE,IAAA,KAAK,EAAEQ;AAHT,KAIMN,KAJN,GAMGO,KANH,CADF;AAUD,CAhBM;AAkBP,MAAMK,IAAS,GAAGpB,SAAS,CAACa,QAAD,CAA3B;AACA,SAASO,IAAT;AAEA,eAAepB,SAAS,CAACH,IAAD,CAAxB","sourcesContent":["import * as React from \"react\";\nimport { Text as NativeText, I18nManager, TextProps } from \"react-native\";\nimport { withTheme } from \"../theming\";\nimport type { Theme } from \"../styles/DefaultTheme\";\n\ntype Props = {\n theme: Theme;\n} & TextProps;\n\nclass Text extends React.Component<Props> {\n _root: any;\n\n setNativeProps(args: TextProps) {\n return this._root && this._root.setNativeProps(args);\n }\n\n render() {\n const { style, ...rest } = this.props;\n const writingDirection = I18nManager.isRTL ? \"rtl\" : \"ltr\";\n\n return (\n <NativeText\n {...rest}\n ref={(c) => {\n this._root = c;\n }}\n style={[\n {\n textAlign: \"left\",\n writingDirection,\n },\n style,\n ]}\n />\n );\n }\n}\n\nexport const BaseLink = ({\n style,\n theme,\n title,\n ...props\n}: any): JSX.Element => {\n return (\n <Text\n hitSlop={8}\n style={[{ color: theme.colors.primary, alignSelf: \"flex-start\" }, style]}\n theme={theme}\n {...props}\n >\n {title}\n </Text>\n );\n};\n\nconst Link: any = withTheme(BaseLink);\nexport { Link };\n\nexport default withTheme(Text);\n"]}
1
+ {"version":3,"sources":["Text.tsx"],"names":["React","Text","NativeText","I18nManager","withTheme","Component","setNativeProps","args","_root","render","style","rest","props","writingDirection","isRTL","c","textAlign","BaseLink","theme","title","color","colors","primary","Link"],"mappings":";;;;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,IAAI,IAAIC,UAAjB,EAA6BC,WAA7B,QAA2D,cAA3D;AACA,SAASC,SAAT,QAA0B,YAA1B;;AAOA,MAAMH,IAAN,SAAmBD,KAAK,CAACK,SAAzB,CAA0C;AAAA;AAAA;;AAAA;AAAA;;AAGxCC,EAAAA,cAAc,CAACC,IAAD,EAAkB;AAC9B,WAAO,KAAKC,KAAL,IAAc,KAAKA,KAAL,CAAWF,cAAX,CAA0BC,IAA1B,CAArB;AACD;;AAEDE,EAAAA,MAAM,GAAG;AACP,UAAM;AAAEC,MAAAA,KAAF;AAAS,SAAGC;AAAZ,QAAqB,KAAKC,KAAhC;AACA,UAAMC,gBAAgB,GAAGV,WAAW,CAACW,KAAZ,GAAoB,KAApB,GAA4B,KAArD;AAEA,wBACE,oBAAC,UAAD,eACMH,IADN;AAEE,MAAA,GAAG,EAAGI,CAAD,IAAO;AACV,aAAKP,KAAL,GAAaO,CAAb;AACD,OAJH;AAKE,MAAA,KAAK,EAAE,CACL;AACEC,QAAAA,SAAS,EAAE,MADb;AAEEH,QAAAA;AAFF,OADK,EAKLH,KALK;AALT,OADF;AAeD;;AA1BuC;;AA6B1C,OAAO,MAAMO,QAAQ,GAAG,QAKA;AAAA,MALC;AACvBP,IAAAA,KADuB;AAEvBQ,IAAAA,KAFuB;AAGvBC,IAAAA,KAHuB;AAIvB,OAAGP;AAJoB,GAKD;AACtB,sBACE,oBAAC,IAAD;AACE,IAAA,OAAO,EAAE,CADX;AAEE,IAAA,KAAK,EAAE,CAAC;AAAEQ,MAAAA,KAAK,EAAEF,KAAK,CAACG,MAAN,CAAaC;AAAtB,KAAD,EAAkCZ,KAAlC,CAFT;AAGE,IAAA,KAAK,EAAEQ;AAHT,KAIMN,KAJN,GAMGO,KANH,CADF;AAUD,CAhBM;AAkBP,MAAMI,IAAS,GAAGnB,SAAS,CAACa,QAAD,CAA3B;AACA,SAASM,IAAT;AAEA,eAAenB,SAAS,CAACH,IAAD,CAAxB","sourcesContent":["import * as React from \"react\";\nimport { Text as NativeText, I18nManager, TextProps } from \"react-native\";\nimport { withTheme } from \"../theming\";\nimport type { Theme } from \"../styles/DefaultTheme\";\n\ntype Props = {\n theme: Theme;\n} & TextProps;\n\nclass Text extends React.Component<Props> {\n _root: any;\n\n setNativeProps(args: TextProps) {\n return this._root && this._root.setNativeProps(args);\n }\n\n render() {\n const { style, ...rest } = this.props;\n const writingDirection = I18nManager.isRTL ? \"rtl\" : \"ltr\";\n\n return (\n <NativeText\n {...rest}\n ref={(c) => {\n this._root = c;\n }}\n style={[\n {\n textAlign: \"left\",\n writingDirection,\n },\n style,\n ]}\n />\n );\n }\n}\n\nexport const BaseLink = ({\n style,\n theme,\n title,\n ...props\n}: any): JSX.Element => {\n return (\n <Text\n hitSlop={8}\n style={[{ color: theme.colors.primary }, style]}\n theme={theme}\n {...props}\n >\n {title}\n </Text>\n );\n};\n\nconst Link: any = withTheme(BaseLink);\nexport { Link };\n\nexport default withTheme(Text);\n"]}
@@ -16,7 +16,8 @@ export const SEED_DATA = {
16
16
  defaultValue: "Option"
17
17
  }),
18
18
  color: createColorProp({
19
- label: "Font Color"
19
+ label: "Font Color",
20
+ defaultValue: "strong"
20
21
  })
21
22
  }
22
23
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["ActionSheetItem.ts"],"names":["COMPONENT_TYPES","createActionProp","createColorProp","createTextProp","GROUPS","Triggers","SEED_DATA","name","tag","description","category","button","triggers","OnPress","layout","textAlign","props","onPress","label","group","basic","defaultValue","color"],"mappings":"AAAA,SACEA,eADF,EAEEC,gBAFF,EAGEC,eAHF,EAIEC,cAJF,EAKEC,MALF,EAMEC,QANF,QAOO,iBAPP;AASA,OAAO,MAAMC,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,mBADiB;AAEvBC,EAAAA,GAAG,EAAE,iBAFkB;AAGvBC,EAAAA,WAAW,EAAE,mBAHU;AAIvBC,EAAAA,QAAQ,EAAEV,eAAe,CAACW,MAJH;AAKvBC,EAAAA,QAAQ,EAAE,CAACP,QAAQ,CAACQ,OAAV,CALa;AAMvBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,SAAS,EAAE;AADL,GANe;AASvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAEhB,gBAAgB,EADpB;AAELiB,IAAAA,KAAK,EAAEf,cAAc,CAAC;AACpBgB,MAAAA,KAAK,EAAEf,MAAM,CAACgB,KADM;AAEpBF,MAAAA,KAAK,EAAE,OAFa;AAGpBG,MAAAA,YAAY,EAAE;AAHM,KAAD,CAFhB;AAOLC,IAAAA,KAAK,EAAEpB,eAAe,CAAC;AACrBgB,MAAAA,KAAK,EAAE;AADc,KAAD;AAPjB;AATgB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n createActionProp,\n createColorProp,\n createTextProp,\n GROUPS,\n Triggers,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Action Sheet Item\",\n tag: \"ActionSheetItem\",\n description: \"Action Sheet item\",\n category: COMPONENT_TYPES.button,\n triggers: [Triggers.OnPress],\n layout: {\n textAlign: \"center\",\n },\n props: {\n onPress: createActionProp(),\n label: createTextProp({\n group: GROUPS.basic,\n label: \"Label\",\n defaultValue: \"Option\",\n }),\n color: createColorProp({\n label: \"Font Color\",\n }),\n },\n};\n"]}
1
+ {"version":3,"sources":["ActionSheetItem.ts"],"names":["COMPONENT_TYPES","createActionProp","createColorProp","createTextProp","GROUPS","Triggers","SEED_DATA","name","tag","description","category","button","triggers","OnPress","layout","textAlign","props","onPress","label","group","basic","defaultValue","color"],"mappings":"AAAA,SACEA,eADF,EAEEC,gBAFF,EAGEC,eAHF,EAIEC,cAJF,EAKEC,MALF,EAMEC,QANF,QAOO,iBAPP;AASA,OAAO,MAAMC,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,mBADiB;AAEvBC,EAAAA,GAAG,EAAE,iBAFkB;AAGvBC,EAAAA,WAAW,EAAE,mBAHU;AAIvBC,EAAAA,QAAQ,EAAEV,eAAe,CAACW,MAJH;AAKvBC,EAAAA,QAAQ,EAAE,CAACP,QAAQ,CAACQ,OAAV,CALa;AAMvBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,SAAS,EAAE;AADL,GANe;AASvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAEhB,gBAAgB,EADpB;AAELiB,IAAAA,KAAK,EAAEf,cAAc,CAAC;AACpBgB,MAAAA,KAAK,EAAEf,MAAM,CAACgB,KADM;AAEpBF,MAAAA,KAAK,EAAE,OAFa;AAGpBG,MAAAA,YAAY,EAAE;AAHM,KAAD,CAFhB;AAOLC,IAAAA,KAAK,EAAEpB,eAAe,CAAC;AACrBgB,MAAAA,KAAK,EAAE,YADc;AAErBG,MAAAA,YAAY,EAAE;AAFO,KAAD;AAPjB;AATgB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n createActionProp,\n createColorProp,\n createTextProp,\n GROUPS,\n Triggers,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Action Sheet Item\",\n tag: \"ActionSheetItem\",\n description: \"Action Sheet item\",\n category: COMPONENT_TYPES.button,\n triggers: [Triggers.OnPress],\n layout: {\n textAlign: \"center\",\n },\n props: {\n onPress: createActionProp(),\n label: createTextProp({\n group: GROUPS.basic,\n label: \"Label\",\n defaultValue: \"Option\",\n }),\n color: createColorProp({\n label: \"Font Color\",\n defaultValue: \"strong\",\n }),\n },\n};\n"]}
@@ -44,14 +44,16 @@ export const SEED_DATA = {
44
44
  description: "The latitude delta for the map's initial region",
45
45
  required: false,
46
46
  precision: 4,
47
- defaultValue: 1
47
+ defaultValue: 1,
48
+ group: GROUPS.basic
48
49
  }),
49
50
  longitudeDelta: createNumberProp({
50
51
  label: "Init Longitude Delta",
51
52
  description: "The longitude delta for the map's initial region",
52
53
  required: false,
53
54
  precision: 4,
54
- defaultValue: 1
55
+ defaultValue: 1,
56
+ group: GROUPS.basic
55
57
  }),
56
58
  zoom: createNumberProp({
57
59
  label: "Initial Zoom (Web)",
@@ -59,7 +61,8 @@ export const SEED_DATA = {
59
61
  required: true,
60
62
  precision: 0,
61
63
  step: 1,
62
- defaultValue: 8
64
+ defaultValue: 8,
65
+ group: GROUPS.basic
63
66
  }),
64
67
  mapType: {
65
68
  label: "Map Type",
@@ -111,14 +114,12 @@ export const SEED_DATA = {
111
114
  description: "Color of the loading indicator"
112
115
  }),
113
116
  loadingBackgroundColor: createColorProp({
114
- label: "Loading Background Color",
117
+ label: "Loading BG Color",
115
118
  description: "Color of the background to show while the map is loading"
116
119
  }),
117
120
  apiKey: createTextProp({
118
- label: "API Key (PWA only)",
119
- description: "Your API Key",
120
- required: false,
121
- defaultValue: null
121
+ defaultValue: process.env.GOOGLE_MAPS_API_KEY,
122
+ editable: false
122
123
  })
123
124
  }
124
125
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["MapView.ts"],"names":["COMPONENT_TYPES","createBoolProp","createColorProp","createNumberProp","createTextProp","GROUPS","FORM_TYPES","PROP_TYPES","SEED_DATA","name","tag","packageName","description","category","media","layout","height","width","props","provider","formType","flatArray","propType","STRING","editable","group","basic","label","required","defaultValue","options","latitude","precision","min","max","longitude","latitudeDelta","longitudeDelta","zoom","step","mapType","zoomEnabled","showsCompass","rotateEnabled","scrollEnabled","loadingEnabled","loadingIndicatorColor","loadingBackgroundColor","apiKey"],"mappings":"AAAA,SACEA,eADF,EAEEC,cAFF,EAGEC,eAHF,EAIEC,gBAJF,EAKEC,cALF,EAMEC,MANF,EAOEC,UAPF,EAQEC,UARF,QASO,iBATP;AAWA,OAAO,MAAMC,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,UADiB;AAEvBC,EAAAA,GAAG,EAAE,SAFkB;AAGvBC,EAAAA,WAAW,EAAE,gBAHU;AAIvBC,EAAAA,WAAW,EAAE,YAJU;AAKvBC,EAAAA,QAAQ,EAAEb,eAAe,CAACc,KALH;AAMvBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,MAAM,EAAE,MADF;AAENC,IAAAA,KAAK,EAAE;AAFD,GANe;AAUvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,QAAQ,EAAEd,UAAU,CAACe,SADb;AAERC,MAAAA,QAAQ,EAAEf,UAAU,CAACgB,MAFb;AAGRC,MAAAA,QAAQ,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lB","sourcesContent":["import {\n COMPONENT_TYPES,\n createBoolProp,\n createColorProp,\n createNumberProp,\n createTextProp,\n GROUPS,\n FORM_TYPES,\n PROP_TYPES,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Map View\",\n tag: \"MapView\",\n packageName: \"@draftbit/maps\",\n description: \"A map view\",\n category: COMPONENT_TYPES.media,\n layout: {\n height: \"100%\",\n width: \"100%\",\n },\n props: {\n provider: {\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n editable: true,\n group: GROUPS.basic,\n label: \"Provider\",\n description: \"The maps provider\",\n required: false,\n defaultValue: null,\n options: [\"google\"],\n },\n latitude: createNumberProp({\n label: \"Initial Latitude\",\n description: \"The longitude for the map's initial region\",\n required: false,\n precision: 6,\n min: -90,\n max: 90,\n defaultValue: 37.40241,\n }),\n longitude: createNumberProp({\n label: \"Initial Longitude\",\n description: \"The longitude for the map's initial region\",\n required: false,\n precision: 6,\n min: -180,\n max: 180,\n defaultValue: -122.12125,\n }),\n latitudeDelta: createNumberProp({\n label: \"Init Latitude Delta\",\n description: \"The latitude delta for the map's initial region\",\n required: false,\n precision: 4,\n defaultValue: 1,\n }),\n longitudeDelta: createNumberProp({\n label: \"Init Longitude Delta\",\n description: \"The longitude delta for the map's initial region\",\n required: false,\n precision: 4,\n defaultValue: 1,\n }),\n zoom: createNumberProp({\n label: \"Initial Zoom (Web)\",\n description: \"The initial zoom of the map\",\n required: true,\n precision: 0,\n step: 1,\n defaultValue: 8,\n }),\n mapType: {\n label: \"Map Type\",\n description: \"The type of map to show\",\n group: GROUPS.basic,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n required: false,\n defaultValue: null,\n options: [\n \"standard\",\n \"satellite\",\n \"hybrid\",\n \"terrain\",\n \"none\",\n \"mutedStandard\",\n ],\n },\n zoomEnabled: createBoolProp({\n label: \"Zoom Enabled\",\n description: \"Whether zooming is enabled (native only)\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n showsCompass: createBoolProp({\n label: \"Shows Compass\",\n description: \"Whether compass is shown\",\n group: GROUPS.basic,\n required: false,\n defaultValue: false,\n }),\n rotateEnabled: createBoolProp({\n label: \"Rotate Enabled\",\n description: \"Whether rotating the map is enabled\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n scrollEnabled: createBoolProp({\n label: \"Scroll Enabled\",\n description: \"Whether scrolling the map view is enabled\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n loadingEnabled: createBoolProp({\n label: \"Loading Enabled\",\n description:\n \"If true a loading indicator will show while the map is loading\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n loadingIndicatorColor: createColorProp({\n label: \"Loading Indicator Color\",\n description: \"Color of the loading indicator\",\n }),\n loadingBackgroundColor: createColorProp({\n label: \"Loading Background Color\",\n description: \"Color of the background to show while the map is loading\",\n }),\n apiKey: createTextProp({\n label: \"API Key (PWA only)\",\n description: \"Your API Key\",\n required: false,\n defaultValue: null,\n }),\n },\n};\n"]}
1
+ {"version":3,"sources":["MapView.ts"],"names":["COMPONENT_TYPES","createBoolProp","createColorProp","createNumberProp","createTextProp","GROUPS","FORM_TYPES","PROP_TYPES","SEED_DATA","name","tag","packageName","description","category","media","layout","height","width","props","provider","formType","flatArray","propType","STRING","editable","group","basic","label","required","defaultValue","options","latitude","precision","min","max","longitude","latitudeDelta","longitudeDelta","zoom","step","mapType","zoomEnabled","showsCompass","rotateEnabled","scrollEnabled","loadingEnabled","loadingIndicatorColor","loadingBackgroundColor","apiKey","process","env","GOOGLE_MAPS_API_KEY"],"mappings":"AAAA,SACEA,eADF,EAEEC,cAFF,EAGEC,eAHF,EAIEC,gBAJF,EAKEC,cALF,EAMEC,MANF,EAOEC,UAPF,EAQEC,UARF,QASO,iBATP;AAWA,OAAO,MAAMC,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,UADiB;AAEvBC,EAAAA,GAAG,EAAE,SAFkB;AAGv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EAAE,KALmB;AAM7BC,MAAAA,YAAY,EAAE;AANe,KAAD,CApGzB;AA4GLiB,IAAAA,qBAAqB,EAAE5C,eAAe,CAAC;AACrCyB,MAAAA,KAAK,EAAE,yBAD8B;AAErCf,MAAAA,WAAW,EAAE;AAFwB,KAAD,CA5GjC;AAgHLmC,IAAAA,sBAAsB,EAAE7C,eAAe,CAAC;AACtCyB,MAAAA,KAAK,EAAE,kBAD+B;AAEtCf,MAAAA,WAAW,EAAE;AAFyB,KAAD,CAhHlC;AAoHLoC,IAAAA,MAAM,EAAE5C,cAAc,CAAC;AACrByB,MAAAA,YAAY,EAAEoB,OAAO,CAACC,GAAR,CAAYC,mBADL;AAErB3B,MAAAA,QAAQ,EAAE;AAFW,KAAD;AApHjB;AAVgB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n createBoolProp,\n createColorProp,\n createNumberProp,\n createTextProp,\n GROUPS,\n FORM_TYPES,\n PROP_TYPES,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Map View\",\n tag: \"MapView\",\n packageName: \"@draftbit/maps\",\n description: \"A map view\",\n category: COMPONENT_TYPES.media,\n layout: {\n height: \"100%\",\n width: \"100%\",\n },\n props: {\n provider: {\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n editable: true,\n group: GROUPS.basic,\n label: \"Provider\",\n description: \"The maps provider\",\n required: false,\n defaultValue: null,\n options: [\"google\"],\n },\n latitude: createNumberProp({\n label: \"Initial Latitude\",\n description: \"The longitude for the map's initial region\",\n required: false,\n precision: 6,\n min: -90,\n max: 90,\n defaultValue: 37.40241,\n }),\n longitude: createNumberProp({\n label: \"Initial Longitude\",\n description: \"The longitude for the map's initial region\",\n required: false,\n precision: 6,\n min: -180,\n max: 180,\n defaultValue: -122.12125,\n }),\n latitudeDelta: createNumberProp({\n label: \"Init Latitude Delta\",\n description: \"The latitude delta for the map's initial region\",\n required: false,\n precision: 4,\n defaultValue: 1,\n group: GROUPS.basic,\n }),\n longitudeDelta: createNumberProp({\n label: \"Init Longitude Delta\",\n description: \"The longitude delta for the map's initial region\",\n required: false,\n precision: 4,\n defaultValue: 1,\n group: GROUPS.basic,\n }),\n zoom: createNumberProp({\n label: \"Initial Zoom (Web)\",\n description: \"The initial zoom of the map\",\n required: true,\n precision: 0,\n step: 1,\n defaultValue: 8,\n group: GROUPS.basic,\n }),\n mapType: {\n label: \"Map Type\",\n description: \"The type of map to show\",\n group: GROUPS.basic,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n required: false,\n defaultValue: null,\n options: [\n \"standard\",\n \"satellite\",\n \"hybrid\",\n \"terrain\",\n \"none\",\n \"mutedStandard\",\n ],\n },\n zoomEnabled: createBoolProp({\n label: \"Zoom Enabled\",\n description: \"Whether zooming is enabled (native only)\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n showsCompass: createBoolProp({\n label: \"Shows Compass\",\n description: \"Whether compass is shown\",\n group: GROUPS.basic,\n required: false,\n defaultValue: false,\n }),\n rotateEnabled: createBoolProp({\n label: \"Rotate Enabled\",\n description: \"Whether rotating the map is enabled\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n scrollEnabled: createBoolProp({\n label: \"Scroll Enabled\",\n description: \"Whether scrolling the map view is enabled\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n loadingEnabled: createBoolProp({\n label: \"Loading Enabled\",\n description:\n \"If true a loading indicator will show while the map is loading\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n loadingIndicatorColor: createColorProp({\n label: \"Loading Indicator Color\",\n description: \"Color of the loading indicator\",\n }),\n loadingBackgroundColor: createColorProp({\n label: \"Loading BG Color\",\n description: \"Color of the background to show while the map is loading\",\n }),\n apiKey: createTextProp({\n defaultValue: process.env.GOOGLE_MAPS_API_KEY,\n editable: false,\n }),\n },\n};\n"]}
@@ -1,15 +1,5 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, Triggers, createActionProp } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, Triggers, createActionProp, createTextProp } from "@draftbit/types";
2
2
  const SEED_DATA_PROPS = {
3
- children: {
4
- group: GROUPS.data,
5
- label: "Text",
6
- description: "Text",
7
- editable: true,
8
- required: true,
9
- formType: FORM_TYPES.string,
10
- propType: PROP_TYPES.STRING,
11
- defaultValue: "Double click me to edit 👀"
12
- },
13
3
  accessibilityLabel: {
14
4
  group: GROUPS.accessibility,
15
5
  name: "accessibilityLabel",
@@ -195,7 +185,17 @@ export const SEED_DATA = [{
195
185
  color: "strong" // This is translated on collector script run by the extractValueAndType function
196
186
 
197
187
  },
198
- props: { ...SEED_DATA_PROPS
188
+ props: { ...SEED_DATA_PROPS,
189
+ children: {
190
+ group: GROUPS.data,
191
+ label: "Text",
192
+ description: "Text",
193
+ editable: true,
194
+ required: true,
195
+ formType: FORM_TYPES.string,
196
+ propType: PROP_TYPES.STRING,
197
+ defaultValue: "Double click me to edit 👀"
198
+ }
199
199
  }
200
200
  }, {
201
201
  name: "Link",
@@ -206,7 +206,12 @@ export const SEED_DATA = [{
206
206
  },
207
207
  triggers: [Triggers.OnPress],
208
208
  props: { ...SEED_DATA_PROPS,
209
- onPress: createActionProp()
209
+ onPress: createActionProp(),
210
+ title: createTextProp({
211
+ label: "Title",
212
+ description: "Link title",
213
+ defaultValue: "Get Started"
214
+ })
210
215
  }
211
216
  }];
212
217
  //# sourceMappingURL=Text.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["Text.ts"],"names":["GROUPS","COMPONENT_TYPES","FORM_TYPES","PROP_TYPES","Triggers","createActionProp","SEED_DATA_PROPS","children","group","data","label","description","editable","required","formType","string","propType","STRING","defaultValue","accessibilityLabel","accessibility","name","accessibilityRole","options","flatArray","accessible","boolean","BOOLEAN","adjustsFontSizeToFit","advanced","allowFontScaling","dataDetectorType","disabled","basic","ellipsizeMode","maxFontSizeMultiplier","number","NUMBER","minimumFontScale","min","step","precision","max","numberOfLines","selectable","selectionColor","color","THEME","suppressHighlighting","textBreakStrategy","SEED_DATA","tag","category","layout","props","button","triggers","OnPress","onPress"],"mappings":"AAAA,SACEA,MADF,EAEEC,eAFF,EAGEC,UAHF,EAIEC,UAJF,EAKEC,QALF,EAMEC,gBANF,QAOO,iBAPP;AASA,MAAMC,eAAe,GAAG;AACtBC,EAAAA,QAAQ,EAAE;AACRC,IAAAA,KAAK,EAAER,MAAM,CAACS,IADN;AAERC,IAAAA,KAAK,EAAE,MAFC;AAGRC,IAAAA,WAAW,EAAE,MAHL;AAIRC,IAAAA,QAAQ,EAAE,IAJF;AAKRC,IAAAA,QAAQ,EAAE,IALF;AAMRC,IAAAA,QAAQ,EAAEZ,UAAU,CAACa,MANb;AAORC,IAAAA,QAAQ,EAAEb,UAAU,CAACc,MAPb;AAQRC,IAAAA,YAAY,EAAE;AARN,GADY;AAWtBC,EAAAA,kBAAkB,EAAE;AAClBX,IAAAA,KAAK,EAAER,MAAM,CAACoB,aADI;AAElBC,IAAAA,IAAI,EAAE,oBAFY;AAGlBX,IAAAA,KAAK,EAAE,oBAHW;AAIlBC,IAAAA,WAAW,EACT,2NALgB;AAMlBC,IAAAA,QAAQ,EAAE,KANQ;AAOlBC,IAAAA,QAAQ,EAAE,KAPQ;AAQlBC,IAAAA,QAAQ,EAAEZ,UAAU,CAACa,MARH;AASlBC,IAAAA,QAAQ,EAAEb,UAAU,CAACc,MATH;AAUlBC,IAAAA,YAAY,EAAE;AAVI,GAXE;AAuBtBI,EAAAA,iBAAiB,EAAE;AACjBd,IAAAA,KAAK,EAAER,MAAM,CAACoB,aADG;AAEjBC,IAAAA,IAAI,EAAE,mBAFW;AAGjBX,IAAAA,KAAK,EAAE,mBAHU;AAIjBC,IAAAA,WAAW,EACT,wlCALe;AAMjBY,IAAAA,OAAO,EAAE,CACP,MADO,EAEP,QAFO,EAGP,MAHO,EAIP,QAJO,EAKP,QALO,EAMP,OANO,E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AM,EAAE;AACNP,IAAAA,KAAK,EAAE;AADD,GAJV;AAOEU,EAAAA,QAAQ,EAAE,CAACpD,QAAQ,CAACqD,OAAV,CAPZ;AAQEH,EAAAA,KAAK,EAAE,EACL,GAAGhD,eADE;AAELoD,IAAAA,OAAO,EAAErD,gBAAgB;AAFpB;AART,CAbuB,CAAlB","sourcesContent":["import {\n GROUPS,\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n Triggers,\n createActionProp,\n} from \"@draftbit/types\";\n\nconst SEED_DATA_PROPS = {\n children: {\n group: GROUPS.data,\n label: \"Text\",\n description: \"Text\",\n editable: true,\n required: true,\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"Double click me to edit 👀\",\n },\n accessibilityLabel: {\n group: GROUPS.accessibility,\n name: \"accessibilityLabel\",\n label: \"accessibilityLabel\",\n description:\n \"Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.\",\n editable: false,\n required: false,\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessibilityRole: {\n group: GROUPS.accessibility,\n name: \"accessibilityRole\",\n label: \"accessibilityRole\",\n description:\n \"Tells the screen reader to treat the currently focused on element as having a specific role.Possible values for AccessibilityRole is one of:\\n'none' - The element has no role.\\n'button' - The element should be treated as a button.\\n'link' - The element should be treated as a link.\\n'header' - The element is a header that divides content into sections.\\n'search' - The element should be treated as a search field.\\n'image' - The element should be treated as an image.\\n'key' - The element should be treated like a keyboard key.\\n'text' - The element should be treated as text.\\n'summary' - The element provides app summary information.\\n'imagebutton' - The element has the role of both an image and also a button.\\n'adjustable' - The element allows adjustment over a range of values.\\nOn iOS, these roles map to corresponding Accessibility Traits. Image button has the same functionality as if the trait was set to both 'image' and 'button'. See the Accessibility guide for more information.On Android, these roles have similar functionality on TalkBack as adding Accessibility Traits does on Voiceover in iOS\",\n options: [\n \"none\",\n \"button\",\n \"link\",\n \"header\",\n \"search\",\n \"image\",\n \"key\",\n \"text\",\n \"summary\",\n \"imagebutton\",\n \"adjustable\",\n ],\n editable: false,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessible: {\n group: GROUPS.accessibility,\n name: \"accessible\",\n label: \"accessible\",\n description:\n \"When set to true, indicates that the view is an accessibility element. The default value for a Text element is true.See the Accessibility guide for more information.\",\n editable: false,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n adjustsFontSizeToFit: {\n group: GROUPS.advanced,\n name: \"adjustsFontSizeToFit\",\n label: \"adjustsFontSizeToFit\",\n description:\n \"Specifies whether fonts should be scaled down automatically to fit given style constraints.\",\n editable: false,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n allowFontScaling: {\n group: GROUPS.advanced,\n name: \"allowFontScaling\",\n label: \"allowFontScaling\",\n description:\n \"Specifies whether fonts should scale to respect Text Size accessibility settings. The default is true.\",\n editable: false,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n dataDetectorType: {\n group: GROUPS.advanced,\n name: \"dataDetectorType\",\n label: \"dataDetectorType\",\n description:\n \"Determines the types of data converted to clickable URLs in the text element. By default no data types are detected.You can provide only one type.Possible values for dataDetectorType are:\\n'phoneNumber'\\n'link'\\n'email'\\n'none'\\n'all'\\n\",\n options: [\"phoneNumber\", \"link\", \"email\", \"none\", \"all\"],\n editable: false,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n disabled: {\n group: GROUPS.basic,\n name: \"disabled\",\n label: \"disabled\",\n description:\n \"Specifies the disabled state of the text view for testing purposes\",\n editable: false,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n ellipsizeMode: {\n group: GROUPS.basic,\n name: \"ellipsizeMode\",\n label: \"Truncate Text?\",\n description:\n 'When numberOfLines is set, this prop defines how text will be truncated. numberOfLines must be set in conjunction with this prop.This can be one of the following values:\\nhead - The line is displayed so that the end fits in the container and the missing text at the beginning of the line is indicated by an ellipsis glyph. e.g., \"...wxyz\"\\nmiddle - The line is displayed so that the beginning and end fit in the container and the missing text in the middle is indicated by an ellipsis glyph. \"ab...yz\"\\ntail - The line is displayed so that the beginning fits in the container and the missing text at the end of the line is indicated by an ellipsis glyph. e.g., \"abcd...\"\\nclip - Lines are not drawn past the edge of the text container.\\nThe default is tail.',\n options: [\"head\", \"middle\", \"tail\", \"clip\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n maxFontSizeMultiplier: {\n group: GROUPS.advanced,\n name: \"maxFontSizeMultiplier\",\n label: \"maxFontSizeMultiplier\",\n description:\n \"Specifies largest possible scale a font can reach when allowFontScaling is enabled. Possible values:\\nnull/undefined (default): inherit from the parent node or the global default (0)\\n0: no max, ignore parent/global default\\n>= 1: sets the maxFontSizeMultiplier of this node to this value\\n\",\n editable: false,\n required: false,\n formType: FORM_TYPES.number,\n propType: PROP_TYPES.NUMBER,\n defaultValue: null,\n },\n minimumFontScale: {\n group: GROUPS.advanced,\n name: \"minimumFontScale\",\n label: \"minimumFontScale\",\n description:\n \"Specifies smallest possible scale a font can reach when adjustsFontSizeToFit is enabled. (values 0.01-1.0).\",\n editable: false,\n required: false,\n formType: FORM_TYPES.number,\n propType: PROP_TYPES.NUMBER,\n min: 0.01,\n step: 0.01,\n precision: 2,\n max: 1.0,\n defaultValue: null,\n },\n numberOfLines: {\n group: GROUPS.basic,\n name: \"numberOfLines\",\n label: \"Max # of Lines\",\n defaultValue: null,\n description:\n \"Used to truncate the text with an ellipsis after computing the text layout, including line wrapping, such that the total number of lines does not exceed this number.This prop is commonly used with ellipsizeMode.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.number,\n propType: PROP_TYPES.NUMBER,\n step: 1,\n precision: 1,\n },\n selectable: {\n group: GROUPS.advanced,\n name: \"selectable\",\n label: \"selectable\",\n description:\n \"Lets the user select text, to use the native copy and paste functionality.\",\n editable: false,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n selectionColor: {\n group: GROUPS.advanced,\n name: \"selectionColor\",\n label: \"selectionColor\",\n description: \"The highlight color of the text.\",\n editable: false,\n required: false,\n formType: FORM_TYPES.color,\n propType: PROP_TYPES.THEME,\n defaultValue: null,\n },\n suppressHighlighting: {\n group: GROUPS.advanced,\n name: \"suppressHighlighting\",\n label: \"suppressHighlighting\",\n description:\n \"When true, no visual change is made when text is pressed down. By default, a gray oval highlights the text on press down.\",\n editable: false,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n textBreakStrategy: {\n group: GROUPS.advanced,\n name: \"textBreakStrategy\",\n label: \"textBreakStrategy\",\n description:\n \"Set text break strategy on Android API Level 23+, possible values are simple, highQuality, balanced The default value is highQuality.\",\n options: [\"simple\", \"highQuality\", \"balanced\"],\n editable: false,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n};\n\nexport const SEED_DATA = [\n {\n name: \"Text\",\n tag: \"Text\",\n description: \"A basic Text component\",\n category: COMPONENT_TYPES.basic,\n layout: {\n color: \"strong\", // This is translated on collector script run by the extractValueAndType function\n },\n props: {\n ...SEED_DATA_PROPS,\n },\n },\n {\n name: \"Link\",\n tag: \"Link\",\n category: COMPONENT_TYPES.button,\n layout: {\n color: \"primary\",\n },\n triggers: [Triggers.OnPress],\n props: {\n ...SEED_DATA_PROPS,\n onPress: createActionProp(),\n },\n },\n];\n"]}
1
+ {"version":3,"sources":["Text.ts"],"names":["GROUPS","COMPONENT_TYPES","FORM_TYPES","PROP_TYPES","Triggers","createActionProp","createTextProp","SEED_DATA_PROPS","accessibilityLabel","group","accessibility","name","label","description","editable","required","formType","string","propType","STRING","defaultValue","accessibilityRole","options","flatArray","accessible","boolean","BOOLEAN","adjustsFontSizeToFit","advanced","allowFontScaling","dataDetectorType","disabled","basic","ellipsizeMode","maxFontSizeMultiplier","number","NUMBER","minimumFontScale","min","step","precision","max","numberOfLines","selectable","selectionColor","color","THEME","suppressHighlighting","textBreakStrategy","SEED_DATA","tag","category","layout","props","children","data","button","triggers","OnPress","onPress","title"],"mappings":"AAAA,SACEA,MADF,EAEEC,eAFF,EAGEC,UAHF,EAIEC,UAJF,EAKEC,QALF,EAMEC,gBANF,EAOEC,cAPF,QAQO,iBARP;AAUA,MAAMC,eAAe,GAAG;AACtBC,EAAAA,kBAAkB,EAAE;AAClBC,IAAAA,KAAK,EAAET,MAAM,CAACU,aADI;AAElBC,IAAAA,IAAI,EAAE,oBAFY;AAGlBC,IAAAA,KAAK,EAAE,oBAHW;AAIlBC,IAAAA,WAAW,EACT,2NALgB;AAMlBC,IAAAA,QAAQ,EAAE,KANQ;AAOlBC,IAAAA,QAAQ,EAAE,KAPQ;AAQlBC,IAAAA,QAAQ,EAAEd,UAAU,CAACe,MARH;AASlBC,IAAAA,QAAQ,EAAEf,UAAU,CAACgB,MATH;AAUlBC,IAAAA,YAAY,EAAE;AAVI,GADE;AAatBC,EAAAA,iBAAiB,EAAE;AACjBZ,IAAAA,KAAK,EAAET,MAAM,CAACU,aADG;AAEjBC,IAAAA,IAAI,EAAE,mBAFW;AAGjBC,IAAAA,KAAK,EAAE,mBAHU;AAIjBC,IAAAA,WAAW,EACT,wlCALe;AAMjBS,IAAAA,OAAO,EAAE,CACP,MADO,EAEP,QAFO,EAGP,MAHO,EAIP,QAJO,EAKP,QALO,EAMP,OANO,EAOP,KAPO,EAQP,MARO,EASP,SATO,EAUP,aAVO,EAWP,YAXO,CANQ;AAmBjBR,IAAAA,QAAQ,EAAE,KAnBO;AAoBjBC,IAA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AA,QAAQ,EAAEf,UAAU,CAACgB,MAPb;AAQRC,MAAAA,YAAY,EAAE;AARN;AAFL;AART,CADuB,EAuBvB;AACET,EAAAA,IAAI,EAAE,MADR;AAEEuC,EAAAA,GAAG,EAAE,MAFP;AAGEC,EAAAA,QAAQ,EAAElD,eAAe,CAACuD,MAH5B;AAIEJ,EAAAA,MAAM,EAAE;AACNP,IAAAA,KAAK,EAAE;AADD,GAJV;AAOEY,EAAAA,QAAQ,EAAE,CAACrD,QAAQ,CAACsD,OAAV,CAPZ;AAQEL,EAAAA,KAAK,EAAE,EACL,GAAG9C,eADE;AAELoD,IAAAA,OAAO,EAAEtD,gBAAgB,EAFpB;AAGLuD,IAAAA,KAAK,EAAEtD,cAAc,CAAC;AACpBM,MAAAA,KAAK,EAAE,OADa;AAEpBC,MAAAA,WAAW,EAAE,YAFO;AAGpBO,MAAAA,YAAY,EAAE;AAHM,KAAD;AAHhB;AART,CAvBuB,CAAlB","sourcesContent":["import {\n GROUPS,\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n Triggers,\n createActionProp,\n createTextProp,\n} from \"@draftbit/types\";\n\nconst SEED_DATA_PROPS = {\n accessibilityLabel: {\n group: GROUPS.accessibility,\n name: \"accessibilityLabel\",\n label: \"accessibilityLabel\",\n description:\n \"Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.\",\n editable: false,\n required: false,\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessibilityRole: {\n group: GROUPS.accessibility,\n name: \"accessibilityRole\",\n label: \"accessibilityRole\",\n description:\n \"Tells the screen reader to treat the currently focused on element as having a specific role.Possible values for AccessibilityRole is one of:\\n'none' - The element has no role.\\n'button' - The element should be treated as a button.\\n'link' - The element should be treated as a link.\\n'header' - The element is a header that divides content into sections.\\n'search' - The element should be treated as a search field.\\n'image' - The element should be treated as an image.\\n'key' - The element should be treated like a keyboard key.\\n'text' - The element should be treated as text.\\n'summary' - The element provides app summary information.\\n'imagebutton' - The element has the role of both an image and also a button.\\n'adjustable' - The element allows adjustment over a range of values.\\nOn iOS, these roles map to corresponding Accessibility Traits. Image button has the same functionality as if the trait was set to both 'image' and 'button'. See the Accessibility guide for more information.On Android, these roles have similar functionality on TalkBack as adding Accessibility Traits does on Voiceover in iOS\",\n options: [\n \"none\",\n \"button\",\n \"link\",\n \"header\",\n \"search\",\n \"image\",\n \"key\",\n \"text\",\n \"summary\",\n \"imagebutton\",\n \"adjustable\",\n ],\n editable: false,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessible: {\n group: GROUPS.accessibility,\n name: \"accessible\",\n label: \"accessible\",\n description:\n \"When set to true, indicates that the view is an accessibility element. The default value for a Text element is true.See the Accessibility guide for more information.\",\n editable: false,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n adjustsFontSizeToFit: {\n group: GROUPS.advanced,\n name: \"adjustsFontSizeToFit\",\n label: \"adjustsFontSizeToFit\",\n description:\n \"Specifies whether fonts should be scaled down automatically to fit given style constraints.\",\n editable: false,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n allowFontScaling: {\n group: GROUPS.advanced,\n name: \"allowFontScaling\",\n label: \"allowFontScaling\",\n description:\n \"Specifies whether fonts should scale to respect Text Size accessibility settings. The default is true.\",\n editable: false,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n dataDetectorType: {\n group: GROUPS.advanced,\n name: \"dataDetectorType\",\n label: \"dataDetectorType\",\n description:\n \"Determines the types of data converted to clickable URLs in the text element. By default no data types are detected.You can provide only one type.Possible values for dataDetectorType are:\\n'phoneNumber'\\n'link'\\n'email'\\n'none'\\n'all'\\n\",\n options: [\"phoneNumber\", \"link\", \"email\", \"none\", \"all\"],\n editable: false,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n disabled: {\n group: GROUPS.basic,\n name: \"disabled\",\n label: \"disabled\",\n description:\n \"Specifies the disabled state of the text view for testing purposes\",\n editable: false,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n ellipsizeMode: {\n group: GROUPS.basic,\n name: \"ellipsizeMode\",\n label: \"Truncate Text?\",\n description:\n 'When numberOfLines is set, this prop defines how text will be truncated. numberOfLines must be set in conjunction with this prop.This can be one of the following values:\\nhead - The line is displayed so that the end fits in the container and the missing text at the beginning of the line is indicated by an ellipsis glyph. e.g., \"...wxyz\"\\nmiddle - The line is displayed so that the beginning and end fit in the container and the missing text in the middle is indicated by an ellipsis glyph. \"ab...yz\"\\ntail - The line is displayed so that the beginning fits in the container and the missing text at the end of the line is indicated by an ellipsis glyph. e.g., \"abcd...\"\\nclip - Lines are not drawn past the edge of the text container.\\nThe default is tail.',\n options: [\"head\", \"middle\", \"tail\", \"clip\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n maxFontSizeMultiplier: {\n group: GROUPS.advanced,\n name: \"maxFontSizeMultiplier\",\n label: \"maxFontSizeMultiplier\",\n description:\n \"Specifies largest possible scale a font can reach when allowFontScaling is enabled. Possible values:\\nnull/undefined (default): inherit from the parent node or the global default (0)\\n0: no max, ignore parent/global default\\n>= 1: sets the maxFontSizeMultiplier of this node to this value\\n\",\n editable: false,\n required: false,\n formType: FORM_TYPES.number,\n propType: PROP_TYPES.NUMBER,\n defaultValue: null,\n },\n minimumFontScale: {\n group: GROUPS.advanced,\n name: \"minimumFontScale\",\n label: \"minimumFontScale\",\n description:\n \"Specifies smallest possible scale a font can reach when adjustsFontSizeToFit is enabled. (values 0.01-1.0).\",\n editable: false,\n required: false,\n formType: FORM_TYPES.number,\n propType: PROP_TYPES.NUMBER,\n min: 0.01,\n step: 0.01,\n precision: 2,\n max: 1.0,\n defaultValue: null,\n },\n numberOfLines: {\n group: GROUPS.basic,\n name: \"numberOfLines\",\n label: \"Max # of Lines\",\n defaultValue: null,\n description:\n \"Used to truncate the text with an ellipsis after computing the text layout, including line wrapping, such that the total number of lines does not exceed this number.This prop is commonly used with ellipsizeMode.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.number,\n propType: PROP_TYPES.NUMBER,\n step: 1,\n precision: 1,\n },\n selectable: {\n group: GROUPS.advanced,\n name: \"selectable\",\n label: \"selectable\",\n description:\n \"Lets the user select text, to use the native copy and paste functionality.\",\n editable: false,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n selectionColor: {\n group: GROUPS.advanced,\n name: \"selectionColor\",\n label: \"selectionColor\",\n description: \"The highlight color of the text.\",\n editable: false,\n required: false,\n formType: FORM_TYPES.color,\n propType: PROP_TYPES.THEME,\n defaultValue: null,\n },\n suppressHighlighting: {\n group: GROUPS.advanced,\n name: \"suppressHighlighting\",\n label: \"suppressHighlighting\",\n description:\n \"When true, no visual change is made when text is pressed down. By default, a gray oval highlights the text on press down.\",\n editable: false,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n textBreakStrategy: {\n group: GROUPS.advanced,\n name: \"textBreakStrategy\",\n label: \"textBreakStrategy\",\n description:\n \"Set text break strategy on Android API Level 23+, possible values are simple, highQuality, balanced The default value is highQuality.\",\n options: [\"simple\", \"highQuality\", \"balanced\"],\n editable: false,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n};\n\nexport const SEED_DATA = [\n {\n name: \"Text\",\n tag: \"Text\",\n description: \"A basic Text component\",\n category: COMPONENT_TYPES.basic,\n layout: {\n color: \"strong\", // This is translated on collector script run by the extractValueAndType function\n },\n props: {\n ...SEED_DATA_PROPS,\n children: {\n group: GROUPS.data,\n label: \"Text\",\n description: \"Text\",\n editable: true,\n required: true,\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"Double click me to edit 👀\",\n },\n },\n },\n {\n name: \"Link\",\n tag: \"Link\",\n category: COMPONENT_TYPES.button,\n layout: {\n color: \"primary\",\n },\n triggers: [Triggers.OnPress],\n props: {\n ...SEED_DATA_PROPS,\n onPress: createActionProp(),\n title: createTextProp({\n label: \"Title\",\n description: \"Link title\",\n defaultValue: \"Get Started\",\n }),\n },\n },\n];\n"]}
@@ -117,7 +117,7 @@ export const SEED_DATA = {
117
117
  required: false,
118
118
  formType: FORM_TYPES.flatArray,
119
119
  propType: PROP_TYPES.STRING,
120
- defaultValue: "auto"
120
+ defaultValue: null
121
121
  },
122
122
  removeClippedSubviews: {
123
123
  group: GROUPS.advanced,
@@ -1 +1 @@
1
- {"version":3,"sources":["View.ts"],"names":["GROUPS","COMPONENT_TYPES","FORM_TYPES","PROP_TYPES","SEED_DATA","name","tag","description","category","basic","props","accessible","group","accessibility","label","editable","required","formType","boolean","propType","BOOLEAN","defaultValue","accessibilityLabel","string","STRING","accessibilityHint","accessibilityRole","options","flatArray","accessibilityElementsHidden","accessibilityIgnoresInvertColors","accessibilityLiveRegion","importantForAccessibility","hitSlop","advanced","position","OBJECT","pointerEvents","removeClippedSubviews","collapsable","needsOffscreenAlphaCompositing","renderToHardwareTextureAndroid","shouldRasterizeIOS"],"mappings":"AAAA,SACEA,MADF,EAEEC,eAFF,EAGEC,UAHF,EAIEC,UAJF,QAKO,iBALP;AAOA,OAAO,MAAMC,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,MADiB;AAEvBC,EAAAA,GAAG,EAAE,MAFkB;AAGvBC,EAAAA,WAAW,EAAE,wBAHU;AAIvBC,EAAAA,QAAQ,EAAEP,eAAe,CAACQ,KAJH;AAKvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,UAAU,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E,oBAFY;AAGlBS,MAAAA,KAAK,EAAE,oBAHW;AAIlBP,MAAAA,WAAW,EACT,4eALgB;AAMlBQ,MAAAA,QAAQ,EAAE,IANQ;AAOlBC,MAAAA,QAAQ,EAAE,KAPQ;AAQlBC,MAAAA,QAAQ,EAAEf,UAAU,CAACgB,OARH;AASlBC,MAAAA,QAAQ,EAAEhB,UAAU,CAACiB,OATH;AAUlBC,MAAAA,YAAY,EAAE;AAVI;AAzMf;AALgB,CAAlB","sourcesContent":["import {\n GROUPS,\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"View\",\n tag: \"View\",\n description: \"A basic View component\",\n category: COMPONENT_TYPES.basic,\n props: {\n accessible: {\n group: GROUPS.accessibility,\n name: \"accessible\",\n label: \"accessible\",\n description:\n \"When true, indicates that the view is an accessibility element. By default, all the touchable elements are accessible.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityLabel: {\n group: GROUPS.accessibility,\n name: \"accessibilityLabel\",\n label: \"accessibilityLabel\",\n description:\n \"Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n editable: true,\n required: false,\n defaultValue: null,\n },\n accessibilityHint: {\n group: GROUPS.accessibility,\n name: \"accessibilityHint\",\n label: \"accessibilityHint\",\n description:\n \"An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessibilityRole: {\n group: GROUPS.accessibility,\n name: \"accessibilityRole\",\n label: \"accessibilityRole\",\n description:\n \"accessibilityRole communicates the purpose of a component to the user of an assistive technology.accessibilityRole can be one of the following:\\n'none' - Used when the element has no role.\\n'button' - Used when the element should be treated as a button.\\n'link' - Used when the element should be treated as a link.\\n'search' - Used when the text field element should also be treated as a search field.\\n'image' - Used when the element should be treated as an image. Can be combined with button or link, for example.\\n'keyboardkey' - Used when the element acts as a keyboard key.\\n'text' - Used when the element should be treated as static text that cannot change.\\n'adjustable' - Used when an element can be \\\"adjusted\\\" (e.g. a slider).\\n'imagebutton' - Used when the element should be treated as a button and is also an image.\\n'header' - Used when an element acts as a header for a content section (e.g. the title of a navigation bar).\\n'summary' - Used when an element can be used to provide a quick summary of current conditions in the app when the app first launches.\\n'alert' - Used when an element contains important text to be presented to the user.\\n'checkbox' - Used when an element represents a checkbox which can be checked, unchecked, or have mixed checked state.\\n'combobox' - Used when an element represents a combo box, which allows the user to select among several choices.\\n'menu' - Used when the component is a menu of choices.\\n'menubar' - Used when a component is a container of multiple menus.\\n'menuitem' - Used to represent an item within a menu.\\n'progressbar' - Used to represent a component which indicates progress of a task.\\n'radio' - Used to represent a radio button.\\n'radiogroup' - Used to represent a group of radio buttons.\\n'scrollbar' - Used to represent a scroll bar.\\n'spinbutton' - Used to represent a button which opens a list of choices.\\n'switch' - Used to represent a switch which can be turned on and off.\\n'tab' - Used to represent a tab.\\n'tablist' - Used to represent a list of tabs.\\n'timer' - Used to represent a timer.\\n'toolbar' - Used to represent a tool bar (a container of action buttons or components).\\n\",\n options: [\n \"none\",\n \"button\",\n \"link\",\n \"search\",\n \"image\",\n \"keyboardkey\",\n \"text\",\n \"adjustable\",\n \"imagebutton\",\n \"header\",\n \"summary\",\n \"alert\",\n \"checkbox\",\n \"combobox\",\n \"menu\",\n \"menubar\",\n \"menuitem\",\n \"progressbar\",\n \"radio\",\n \"radiogroup\",\n \"scrollbar\",\n \"spinbutton\",\n \"switch\",\n \"tab\",\n \"tablist\",\n \"timer\",\n \"toolbar\",\n ],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessibilityElementsHidden: {\n group: GROUPS.accessibility,\n name: \"accessibilityElementsHidden\",\n label: \"accessibilityElementsHidden\",\n description:\n \"A value indicating whether the accessibility elements contained within this accessibility element are hidden. Default is false.See the Accessibility guide for more information.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityIgnoresInvertColors: {\n group: GROUPS.accessibility,\n name: \"accessibilityIgnoresInvertColors\",\n label: \"accessibilityIgnoresInvertColors\",\n description:\n \"A value indicating this view should or should not be inverted when color inversion is turned on. A value of true will tell the view to not be inverted even if color inversion is turned on.See the Accessibility guide for more information.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityLiveRegion: {\n group: GROUPS.accessibility,\n name: \"accessibilityLiveRegion\",\n label: \"accessibilityLiveRegion\",\n description:\n \"Indicates to accessibility services whether the user should be notified when this view changes. Works for Android API >= 19 only. Possible values:\\n'none' - Accessibility services should not announce changes to this view.\\n'polite'- Accessibility services should announce changes to this view.\\n'assertive' - Accessibility services should interrupt ongoing speech to immediately announce changes to this view.\\nSee the Android View docs for reference.\",\n options: [\"none\", \"polite\", \"assertive\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n importantForAccessibility: {\n group: GROUPS.accessibility,\n name: \"importantForAccessibility\",\n label: \"importantForAccessibility\",\n defaultValue: null,\n description:\n \"Controls how view is important for accessibility which is if it fires accessibility events and if it is reported to accessibility services that query the screen. Works for Android only.Possible values:\\n'auto' - The system determines whether the view is important for accessibility - default (recommended).\\n'yes' - The view is important for accessibility.\\n'no' - The view is not important for accessibility.\\n'no-hide-descendants' - The view is not important for accessibility, nor are any of its descendant views.\\nSee the Android importantForAccessibility docs for reference.\",\n options: [\"auto\", \"yes\", \"no\", \"no-hide-descendants\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n },\n hitSlop: {\n group: GROUPS.advanced,\n name: \"hitSlop\",\n label: \"hitSlop\",\n description:\n \"This defines how far a touch event can start away from the view. Typical interface guidelines recommend touch targets that are at least 30 - 40 points/density-independent pixels.For example, if a touchable view has a height of 20 the touchable height can be extended to 40 with hitSlop={{top: 10, bottom: 10, left: 0, right: 0}}\\nThe touch area never extends past the parent view bounds and the Z-index of sibling views always takes precedence if a touch hits two overlapping views.\\n\",\n editable: true,\n required: false,\n formType: FORM_TYPES.position,\n propType: PROP_TYPES.OBJECT,\n defaultValue: null,\n },\n pointerEvents: {\n group: GROUPS.advanced,\n name: \"pointerEvents\",\n label: \"pointerEvents\",\n description:\n \"Controls whether the View can be the target of touch events.\\n'auto': The View can be the target of touch events.\\n'none': The View is never the target of touch events.\\n'box-none': The View is never the target of touch events but its subviews can be. It behaves like if the view had the following classes in CSS:\\n.box-none {\\n pointer-events: none;\\n}\\n.box-none * {\\n pointer-events: auto;\\n}\\n\\n'box-only': The view can be the target of touch events but its subviews cannot be. It behaves like if the view had the following classes in CSS:\\n.box-only {\\n pointer-events: auto;\\n}\\n.box-only * {\\n pointer-events: none;\\n}\\n\\nSince pointerEvents does not affect layout/appearance, and we are already deviating from the spec by adding additional modes, we opt to not include pointerEvents on style. On some platforms, we would need to implement it as a className anyways. Using style or not is an implementation detail of the platform.\\n\",\n options: [\"auto\", \"none\", \"box-none\", \"box-only\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: \"auto\",\n },\n removeClippedSubviews: {\n group: GROUPS.advanced,\n name: \"removeClippedSubviews\",\n label: \"removeClippedSubviews\",\n description:\n \"This is a reserved performance property exposed by RCTView and is useful for scrolling content when there are many subviews, most of which are offscreen. For this property to be effective, it must be applied to a view that contains many subviews that extend outside its bound. The subviews must also have overflow: hidden, as should the containing view (or one of its superviews).\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n collapsable: {\n group: GROUPS.advanced,\n name: \"collapsable\",\n label: \"collapsable\",\n description:\n \"Views that are only used to layout their children or otherwise don't draw anything may be automatically removed from the native hierarchy as an optimization. Set this property to false to disable this optimization and ensure that this View exists in the native view hierarchy.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n needsOffscreenAlphaCompositing: {\n group: GROUPS.advanced,\n name: \"needsOffscreenAlphaCompositing\",\n label: \"needsOffscreenAlphaCompositing\",\n description:\n \"Whether this View needs to rendered offscreen and composited with an alpha in order to preserve 100% correct colors and blending behavior. The default (false) falls back to drawing the component and its children with an alpha applied to the paint used to draw each element instead of rendering the full component offscreen and compositing it back with an alpha value. This default may be noticeable and undesired in the case where the View you are setting an opacity on has multiple overlapping elements (e.g. multiple overlapping Views, or text and a background).Rendering offscreen to preserve correct alpha behavior is extremely expensive and hard to debug for non-native developers, which is why it is not turned on by default. If you do need to enable this property for an animation, consider combining it with renderToHardwareTextureAndroid if the view contents are static (i.e. it doesn't need to be redrawn each frame). If that property is enabled, this View will be rendered off-screen once, saved in a hardware texture, and then composited onto the screen with an alpha each frame without having to switch rendering targets on the GPU.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n renderToHardwareTextureAndroid: {\n group: GROUPS.advanced,\n name: \"renderToHardwareTextureAndroid\",\n label: \"renderToHardwareTextureAndroid\",\n description:\n \"Whether this View should render itself (and all of its children) into a single hardware texture on the GPU.On Android, this is useful for animations and interactions that only modify opacity, rotation, translation, and/or scale: in those cases, the view doesn't have to be redrawn and display lists don't need to be re-executed. The texture can be re-used and re-composited with different parameters. The downside is that this can use up limited video memory, so this prop should be set back to false at the end of the interaction/animation.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n shouldRasterizeIOS: {\n group: GROUPS.advanced,\n name: \"shouldRasterizeIOS\",\n label: \"shouldRasterizeIOS\",\n description:\n \"Whether this View should be rendered as a bitmap before compositing.On iOS, this is useful for animations and interactions that do not modify this component's dimensions nor its children; for example, when translating the position of a static view, rasterization allows the renderer to reuse a cached bitmap of a static view and quickly composite it during each frame.Rasterization incurs an off-screen drawing pass and the bitmap consumes memory. Test and measure when using this property.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n },\n};\n"]}
1
+ {"version":3,"sources":["View.ts"],"names":["GROUPS","COMPONENT_TYPES","FORM_TYPES","PROP_TYPES","SEED_DATA","name","tag","description","category","basic","props","accessible","group","accessibility","label","editable","required","formType","boolean","propType","BOOLEAN","defaultValue","accessibilityLabel","string","STRING","accessibilityHint","accessibilityRole","options","flatArray","accessibilityElementsHidden","accessibilityIgnoresInvertColors","accessibilityLiveRegion","importantForAccessibility","hitSlop","advanced","position","OBJECT","pointerEvents","removeClippedSubviews","collapsable","needsOffscreenAlphaCompositing","renderToHardwareTextureAndroid","shouldRasterizeIOS"],"mappings":"AAAA,SACEA,MADF,EAEEC,eAFF,EAGEC,UAHF,EAIEC,UAJF,QAKO,iBALP;AAOA,OAAO,MAAMC,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,MADiB;AAEvBC,EAAAA,GAAG,EAAE,MAFkB;AAGvBC,EAAAA,WAAW,EAAE,wBAHU;AAIvBC,EAAAA,QAAQ,EAAEP,eAAe,CAACQ,KAJH;AAKvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,UAAU,EAAE;AACVC,MAAAA,KAAK,EAAEZ,MAAM,CAACa,aADJ;AAEVR,MAAAA,IAAI,EAAE,YAFI;AAGVS,MAAAA,KAAK,EAAE,YAHG;AAIVP,MAAAA,WAAW,EACT,wHALQ;AAMVQ,MAAAA,QAAQ,EAAE,IANA;AAOVC,MAAAA,QAAQ,EAAE,KAPA;AAQV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AAEhB,UAAU,CAACiB,OATH;AAUlBC,MAAAA,YAAY,EAAE;AAVI;AAzMf;AALgB,CAAlB","sourcesContent":["import {\n GROUPS,\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"View\",\n tag: \"View\",\n description: \"A basic View component\",\n category: COMPONENT_TYPES.basic,\n props: {\n accessible: {\n group: GROUPS.accessibility,\n name: \"accessible\",\n label: \"accessible\",\n description:\n \"When true, indicates that the view is an accessibility element. By default, all the touchable elements are accessible.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityLabel: {\n group: GROUPS.accessibility,\n name: \"accessibilityLabel\",\n label: \"accessibilityLabel\",\n description:\n \"Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n editable: true,\n required: false,\n defaultValue: null,\n },\n accessibilityHint: {\n group: GROUPS.accessibility,\n name: \"accessibilityHint\",\n label: \"accessibilityHint\",\n description:\n \"An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessibilityRole: {\n group: GROUPS.accessibility,\n name: \"accessibilityRole\",\n label: \"accessibilityRole\",\n description:\n \"accessibilityRole communicates the purpose of a component to the user of an assistive technology.accessibilityRole can be one of the following:\\n'none' - Used when the element has no role.\\n'button' - Used when the element should be treated as a button.\\n'link' - Used when the element should be treated as a link.\\n'search' - Used when the text field element should also be treated as a search field.\\n'image' - Used when the element should be treated as an image. Can be combined with button or link, for example.\\n'keyboardkey' - Used when the element acts as a keyboard key.\\n'text' - Used when the element should be treated as static text that cannot change.\\n'adjustable' - Used when an element can be \\\"adjusted\\\" (e.g. a slider).\\n'imagebutton' - Used when the element should be treated as a button and is also an image.\\n'header' - Used when an element acts as a header for a content section (e.g. the title of a navigation bar).\\n'summary' - Used when an element can be used to provide a quick summary of current conditions in the app when the app first launches.\\n'alert' - Used when an element contains important text to be presented to the user.\\n'checkbox' - Used when an element represents a checkbox which can be checked, unchecked, or have mixed checked state.\\n'combobox' - Used when an element represents a combo box, which allows the user to select among several choices.\\n'menu' - Used when the component is a menu of choices.\\n'menubar' - Used when a component is a container of multiple menus.\\n'menuitem' - Used to represent an item within a menu.\\n'progressbar' - Used to represent a component which indicates progress of a task.\\n'radio' - Used to represent a radio button.\\n'radiogroup' - Used to represent a group of radio buttons.\\n'scrollbar' - Used to represent a scroll bar.\\n'spinbutton' - Used to represent a button which opens a list of choices.\\n'switch' - Used to represent a switch which can be turned on and off.\\n'tab' - Used to represent a tab.\\n'tablist' - Used to represent a list of tabs.\\n'timer' - Used to represent a timer.\\n'toolbar' - Used to represent a tool bar (a container of action buttons or components).\\n\",\n options: [\n \"none\",\n \"button\",\n \"link\",\n \"search\",\n \"image\",\n \"keyboardkey\",\n \"text\",\n \"adjustable\",\n \"imagebutton\",\n \"header\",\n \"summary\",\n \"alert\",\n \"checkbox\",\n \"combobox\",\n \"menu\",\n \"menubar\",\n \"menuitem\",\n \"progressbar\",\n \"radio\",\n \"radiogroup\",\n \"scrollbar\",\n \"spinbutton\",\n \"switch\",\n \"tab\",\n \"tablist\",\n \"timer\",\n \"toolbar\",\n ],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessibilityElementsHidden: {\n group: GROUPS.accessibility,\n name: \"accessibilityElementsHidden\",\n label: \"accessibilityElementsHidden\",\n description:\n \"A value indicating whether the accessibility elements contained within this accessibility element are hidden. Default is false.See the Accessibility guide for more information.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityIgnoresInvertColors: {\n group: GROUPS.accessibility,\n name: \"accessibilityIgnoresInvertColors\",\n label: \"accessibilityIgnoresInvertColors\",\n description:\n \"A value indicating this view should or should not be inverted when color inversion is turned on. A value of true will tell the view to not be inverted even if color inversion is turned on.See the Accessibility guide for more information.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityLiveRegion: {\n group: GROUPS.accessibility,\n name: \"accessibilityLiveRegion\",\n label: \"accessibilityLiveRegion\",\n description:\n \"Indicates to accessibility services whether the user should be notified when this view changes. Works for Android API >= 19 only. Possible values:\\n'none' - Accessibility services should not announce changes to this view.\\n'polite'- Accessibility services should announce changes to this view.\\n'assertive' - Accessibility services should interrupt ongoing speech to immediately announce changes to this view.\\nSee the Android View docs for reference.\",\n options: [\"none\", \"polite\", \"assertive\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n importantForAccessibility: {\n group: GROUPS.accessibility,\n name: \"importantForAccessibility\",\n label: \"importantForAccessibility\",\n defaultValue: null,\n description:\n \"Controls how view is important for accessibility which is if it fires accessibility events and if it is reported to accessibility services that query the screen. Works for Android only.Possible values:\\n'auto' - The system determines whether the view is important for accessibility - default (recommended).\\n'yes' - The view is important for accessibility.\\n'no' - The view is not important for accessibility.\\n'no-hide-descendants' - The view is not important for accessibility, nor are any of its descendant views.\\nSee the Android importantForAccessibility docs for reference.\",\n options: [\"auto\", \"yes\", \"no\", \"no-hide-descendants\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n },\n hitSlop: {\n group: GROUPS.advanced,\n name: \"hitSlop\",\n label: \"hitSlop\",\n description:\n \"This defines how far a touch event can start away from the view. Typical interface guidelines recommend touch targets that are at least 30 - 40 points/density-independent pixels.For example, if a touchable view has a height of 20 the touchable height can be extended to 40 with hitSlop={{top: 10, bottom: 10, left: 0, right: 0}}\\nThe touch area never extends past the parent view bounds and the Z-index of sibling views always takes precedence if a touch hits two overlapping views.\\n\",\n editable: true,\n required: false,\n formType: FORM_TYPES.position,\n propType: PROP_TYPES.OBJECT,\n defaultValue: null,\n },\n pointerEvents: {\n group: GROUPS.advanced,\n name: \"pointerEvents\",\n label: \"pointerEvents\",\n description:\n \"Controls whether the View can be the target of touch events.\\n'auto': The View can be the target of touch events.\\n'none': The View is never the target of touch events.\\n'box-none': The View is never the target of touch events but its subviews can be. It behaves like if the view had the following classes in CSS:\\n.box-none {\\n pointer-events: none;\\n}\\n.box-none * {\\n pointer-events: auto;\\n}\\n\\n'box-only': The view can be the target of touch events but its subviews cannot be. It behaves like if the view had the following classes in CSS:\\n.box-only {\\n pointer-events: auto;\\n}\\n.box-only * {\\n pointer-events: none;\\n}\\n\\nSince pointerEvents does not affect layout/appearance, and we are already deviating from the spec by adding additional modes, we opt to not include pointerEvents on style. On some platforms, we would need to implement it as a className anyways. Using style or not is an implementation detail of the platform.\\n\",\n options: [\"auto\", \"none\", \"box-none\", \"box-only\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n removeClippedSubviews: {\n group: GROUPS.advanced,\n name: \"removeClippedSubviews\",\n label: \"removeClippedSubviews\",\n description:\n \"This is a reserved performance property exposed by RCTView and is useful for scrolling content when there are many subviews, most of which are offscreen. For this property to be effective, it must be applied to a view that contains many subviews that extend outside its bound. The subviews must also have overflow: hidden, as should the containing view (or one of its superviews).\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n collapsable: {\n group: GROUPS.advanced,\n name: \"collapsable\",\n label: \"collapsable\",\n description:\n \"Views that are only used to layout their children or otherwise don't draw anything may be automatically removed from the native hierarchy as an optimization. Set this property to false to disable this optimization and ensure that this View exists in the native view hierarchy.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n needsOffscreenAlphaCompositing: {\n group: GROUPS.advanced,\n name: \"needsOffscreenAlphaCompositing\",\n label: \"needsOffscreenAlphaCompositing\",\n description:\n \"Whether this View needs to rendered offscreen and composited with an alpha in order to preserve 100% correct colors and blending behavior. The default (false) falls back to drawing the component and its children with an alpha applied to the paint used to draw each element instead of rendering the full component offscreen and compositing it back with an alpha value. This default may be noticeable and undesired in the case where the View you are setting an opacity on has multiple overlapping elements (e.g. multiple overlapping Views, or text and a background).Rendering offscreen to preserve correct alpha behavior is extremely expensive and hard to debug for non-native developers, which is why it is not turned on by default. If you do need to enable this property for an animation, consider combining it with renderToHardwareTextureAndroid if the view contents are static (i.e. it doesn't need to be redrawn each frame). If that property is enabled, this View will be rendered off-screen once, saved in a hardware texture, and then composited onto the screen with an alpha each frame without having to switch rendering targets on the GPU.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n renderToHardwareTextureAndroid: {\n group: GROUPS.advanced,\n name: \"renderToHardwareTextureAndroid\",\n label: \"renderToHardwareTextureAndroid\",\n description:\n \"Whether this View should render itself (and all of its children) into a single hardware texture on the GPU.On Android, this is useful for animations and interactions that only modify opacity, rotation, translation, and/or scale: in those cases, the view doesn't have to be redrawn and display lists don't need to be re-executed. The texture can be re-used and re-composited with different parameters. The downside is that this can use up limited video memory, so this prop should be set back to false at the end of the interaction/animation.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n shouldRasterizeIOS: {\n group: GROUPS.advanced,\n name: \"shouldRasterizeIOS\",\n label: \"shouldRasterizeIOS\",\n description:\n \"Whether this View should be rendered as a bitmap before compositing.On iOS, this is useful for animations and interactions that do not modify this component's dimensions nor its children; for example, when translating the position of a static view, rasterization allows the renderer to reuse a cached bitmap of a static view and quickly composite it during each frame.Rasterization incurs an off-screen drawing pass and the bitmap consumes memory. Test and measure when using this property.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n },\n};\n"]}
@@ -213,16 +213,7 @@ export declare const SEED_DATA: ({
213
213
  defaultValue: null;
214
214
  group: string;
215
215
  };
216
- children: {
217
- group: string;
218
- label: string;
219
- description: string;
220
- editable: boolean;
221
- required: boolean;
222
- formType: string;
223
- propType: string;
224
- defaultValue: string;
225
- };
216
+ title: any;
226
217
  accessibilityLabel: {
227
218
  group: string;
228
219
  name: string;
@@ -116,7 +116,7 @@ export declare const SEED_DATA: {
116
116
  required: boolean;
117
117
  formType: string;
118
118
  propType: string;
119
- defaultValue: string;
119
+ defaultValue: null;
120
120
  };
121
121
  removeClippedSubviews: {
122
122
  group: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "43.6.1-9242df.0+9242df07",
3
+ "version": "43.6.1-da90cf.3+da90cf4f",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -80,5 +80,5 @@
80
80
  ]
81
81
  ]
82
82
  },
83
- "gitHead": "9242df070ed9cbf72a83283c6821d797df0c091b"
83
+ "gitHead": "da90cf4f89c3f9a325460efea60bb52cb22151c8"
84
84
  }
@@ -21,7 +21,7 @@ class Text extends React.Component {
21
21
  }
22
22
  }
23
23
  export const BaseLink = ({ style, theme, title, ...props }) => {
24
- return (React.createElement(Text, { hitSlop: 8, style: [{ color: theme.colors.primary, alignSelf: "flex-start" }, style], theme: theme, ...props }, title));
24
+ return (React.createElement(Text, { hitSlop: 8, style: [{ color: theme.colors.primary }, style], theme: theme, ...props }, title));
25
25
  };
26
26
  const Link = withTheme(BaseLink);
27
27
  export { Link };
@@ -45,7 +45,7 @@ export const BaseLink = ({
45
45
  return (
46
46
  <Text
47
47
  hitSlop={8}
48
- style={[{ color: theme.colors.primary, alignSelf: "flex-start" }, style]}
48
+ style={[{ color: theme.colors.primary }, style]}
49
49
  theme={theme}
50
50
  {...props}
51
51
  >
@@ -17,6 +17,7 @@ export const SEED_DATA = {
17
17
  }),
18
18
  color: createColorProp({
19
19
  label: "Font Color",
20
+ defaultValue: "strong",
20
21
  }),
21
22
  },
22
23
  };
@@ -25,6 +25,7 @@ export const SEED_DATA = {
25
25
  }),
26
26
  color: createColorProp({
27
27
  label: "Font Color",
28
+ defaultValue: "strong",
28
29
  }),
29
30
  },
30
31
  };
@@ -45,6 +45,7 @@ export const SEED_DATA = {
45
45
  required: false,
46
46
  precision: 4,
47
47
  defaultValue: 1,
48
+ group: GROUPS.basic,
48
49
  }),
49
50
  longitudeDelta: createNumberProp({
50
51
  label: "Init Longitude Delta",
@@ -52,6 +53,7 @@ export const SEED_DATA = {
52
53
  required: false,
53
54
  precision: 4,
54
55
  defaultValue: 1,
56
+ group: GROUPS.basic,
55
57
  }),
56
58
  zoom: createNumberProp({
57
59
  label: "Initial Zoom (Web)",
@@ -60,6 +62,7 @@ export const SEED_DATA = {
60
62
  precision: 0,
61
63
  step: 1,
62
64
  defaultValue: 8,
65
+ group: GROUPS.basic,
63
66
  }),
64
67
  mapType: {
65
68
  label: "Map Type",
@@ -118,14 +121,12 @@ export const SEED_DATA = {
118
121
  description: "Color of the loading indicator",
119
122
  }),
120
123
  loadingBackgroundColor: createColorProp({
121
- label: "Loading Background Color",
124
+ label: "Loading BG Color",
122
125
  description: "Color of the background to show while the map is loading",
123
126
  }),
124
127
  apiKey: createTextProp({
125
- label: "API Key (PWA only)",
126
- description: "Your API Key",
127
- required: false,
128
- defaultValue: null,
128
+ defaultValue: process.env.GOOGLE_MAPS_API_KEY,
129
+ editable: false,
129
130
  }),
130
131
  },
131
132
  };
@@ -55,6 +55,7 @@ export const SEED_DATA = {
55
55
  required: false,
56
56
  precision: 4,
57
57
  defaultValue: 1,
58
+ group: GROUPS.basic,
58
59
  }),
59
60
  longitudeDelta: createNumberProp({
60
61
  label: "Init Longitude Delta",
@@ -62,6 +63,7 @@ export const SEED_DATA = {
62
63
  required: false,
63
64
  precision: 4,
64
65
  defaultValue: 1,
66
+ group: GROUPS.basic,
65
67
  }),
66
68
  zoom: createNumberProp({
67
69
  label: "Initial Zoom (Web)",
@@ -70,6 +72,7 @@ export const SEED_DATA = {
70
72
  precision: 0,
71
73
  step: 1,
72
74
  defaultValue: 8,
75
+ group: GROUPS.basic,
73
76
  }),
74
77
  mapType: {
75
78
  label: "Map Type",
@@ -129,14 +132,12 @@ export const SEED_DATA = {
129
132
  description: "Color of the loading indicator",
130
133
  }),
131
134
  loadingBackgroundColor: createColorProp({
132
- label: "Loading Background Color",
135
+ label: "Loading BG Color",
133
136
  description: "Color of the background to show while the map is loading",
134
137
  }),
135
138
  apiKey: createTextProp({
136
- label: "API Key (PWA only)",
137
- description: "Your API Key",
138
- required: false,
139
- defaultValue: null,
139
+ defaultValue: process.env.GOOGLE_MAPS_API_KEY,
140
+ editable: false,
140
141
  }),
141
142
  },
142
143
  };