@draftbit/core 46.1.4 → 46.2.1-d40959.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.
- package/lib/commonjs/components/CardContainerShortImage.js +18 -5
- package/lib/commonjs/components/CardContainerShortImage.js.map +1 -1
- package/lib/commonjs/components/Carousel.js +3 -1
- package/lib/commonjs/components/Carousel.js.map +1 -1
- package/lib/commonjs/components/Config.js +3 -3
- package/lib/commonjs/components/Config.js.map +1 -1
- package/lib/commonjs/components/DatePicker/DatePicker.js +3 -3
- package/lib/commonjs/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponentType.js.map +1 -1
- package/lib/commonjs/components/DeprecatedButton.js +20 -4
- package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
- package/lib/commonjs/components/Justification.js +3 -0
- package/lib/commonjs/components/Picker/Picker.js +4 -5
- package/lib/commonjs/components/Picker/Picker.js.map +1 -1
- package/lib/commonjs/components/Picker/PickerComponent.android.js +2 -2
- package/lib/commonjs/components/Picker/PickerComponent.android.js.map +1 -1
- package/lib/commonjs/components/Picker/PickerComponent.ios.js +2 -2
- package/lib/commonjs/components/Picker/PickerComponent.ios.js.map +1 -1
- package/lib/commonjs/components/Picker/PickerComponent.web.js +2 -2
- package/lib/commonjs/components/Picker/PickerComponent.web.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButton.js +1 -1
- package/lib/commonjs/components/RadioButton/RadioButton.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js +1 -1
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js.map +1 -1
- package/lib/commonjs/components/ResizeMode.js +3 -0
- package/lib/commonjs/components/StepIndicator.js +1 -1
- package/lib/commonjs/components/StepIndicator.js.map +1 -1
- package/lib/commonjs/components/Stepper.js +1 -1
- package/lib/commonjs/components/Stepper.js.map +1 -1
- package/lib/commonjs/constants.js +1 -1
- package/lib/commonjs/mappings/CustomCode.js.map +1 -1
- package/lib/commonjs/mappings/DatePicker.js +10 -0
- package/lib/commonjs/mappings/DatePicker.js.map +1 -1
- package/lib/commonjs/mappings/ImageBackground.js.map +1 -1
- package/lib/commonjs/mappings/MapMarker.js.map +1 -1
- package/lib/commonjs/mappings/NumberInput.js +241 -0
- package/lib/commonjs/mappings/NumberInput.js.map +1 -0
- package/lib/commonjs/mappings/RadioButton.js.map +1 -1
- package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
- package/lib/commonjs/mappings/SafeAreaView.js.map +1 -1
- package/lib/commonjs/mappings/Text.js +33 -26
- package/lib/commonjs/mappings/Text.js.map +1 -1
- package/lib/commonjs/mappings/TextArea.js +181 -2
- package/lib/commonjs/mappings/TextArea.js.map +1 -1
- package/lib/commonjs/mappings/TextField.js +191 -2
- package/lib/commonjs/mappings/TextField.js.map +1 -1
- package/lib/commonjs/mappings/TextInput.js +180 -29
- package/lib/commonjs/mappings/TextInput.js.map +1 -1
- package/lib/commonjs/styles/overlay.js.map +1 -1
- package/lib/commonjs/utilities.js +1 -1
- package/lib/commonjs/utilities.js.map +1 -1
- package/lib/module/components/Carousel.js +3 -1
- package/lib/module/components/Carousel.js.map +1 -1
- package/lib/module/components/Config.js +3 -3
- package/lib/module/components/Config.js.map +1 -1
- package/lib/module/components/DatePicker/DatePicker.js +3 -3
- package/lib/module/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/module/components/Justification.js +1 -1
- package/lib/module/components/Picker/Picker.js +4 -5
- package/lib/module/components/Picker/Picker.js.map +1 -1
- package/lib/module/components/Picker/PickerComponent.android.js +2 -2
- package/lib/module/components/Picker/PickerComponent.android.js.map +1 -1
- package/lib/module/components/Picker/PickerComponent.ios.js +2 -2
- package/lib/module/components/Picker/PickerComponent.ios.js.map +1 -1
- package/lib/module/components/Picker/PickerComponent.web.js +2 -2
- package/lib/module/components/Picker/PickerComponent.web.js.map +1 -1
- package/lib/module/components/RadioButton/RadioButton.js +1 -1
- package/lib/module/components/RadioButton/RadioButton.js.map +1 -1
- package/lib/module/components/RadioButton/RadioButtonRow.js +1 -1
- package/lib/module/components/RadioButton/RadioButtonRow.js.map +1 -1
- package/lib/module/components/ResizeMode.js +1 -1
- package/lib/module/components/StepIndicator.js +1 -1
- package/lib/module/components/StepIndicator.js.map +1 -1
- package/lib/module/components/Stepper.js +1 -1
- package/lib/module/components/Stepper.js.map +1 -1
- package/lib/module/mappings/DatePicker.js +10 -0
- package/lib/module/mappings/DatePicker.js.map +1 -1
- package/lib/module/mappings/NumberInput.js +231 -0
- package/lib/module/mappings/NumberInput.js.map +1 -0
- package/lib/module/mappings/Text.js +33 -26
- package/lib/module/mappings/Text.js.map +1 -1
- package/lib/module/mappings/TextArea.js +182 -3
- package/lib/module/mappings/TextArea.js.map +1 -1
- package/lib/module/mappings/TextField.js +192 -3
- package/lib/module/mappings/TextField.js.map +1 -1
- package/lib/module/mappings/TextInput.js +180 -29
- package/lib/module/mappings/TextInput.js.map +1 -1
- package/lib/module/utilities.js +1 -1
- package/lib/module/utilities.js.map +1 -1
- package/lib/typescript/src/mappings/DatePicker.d.ts +10 -0
- package/lib/typescript/src/mappings/NumberInput.d.ts +297 -0
- package/lib/typescript/src/mappings/Text.d.ts +24 -10
- package/lib/typescript/src/mappings/TextArea.d.ts +1 -11
- package/lib/typescript/src/mappings/TextField.d.ts +4 -4
- package/lib/typescript/src/mappings/TextInput.d.ts +3 -254
- package/package.json +2 -2
- package/src/Provider.js +9 -0
- package/src/components/Accordion/AccordionGroup.js +44 -0
- package/src/components/Accordion/AccordionItem.js +32 -0
- package/src/components/Accordion/index.js +2 -0
- package/src/components/ActionSheet/ActionSheet.js +45 -0
- package/src/components/ActionSheet/ActionSheetCancel.js +6 -0
- package/src/components/ActionSheet/ActionSheetItem.js +30 -0
- package/src/components/ActionSheet/index.js +3 -0
- package/src/components/AnimatedCircularProgress.js +43 -0
- package/src/components/AspectRatio.js +18 -0
- package/src/components/AvatarEdit.js +30 -0
- package/src/components/Banner.js +109 -0
- package/src/components/Button.js +112 -0
- package/src/components/Card.js +57 -0
- package/src/components/CardBlock.js +54 -0
- package/src/components/CardContainer.js +69 -0
- package/src/components/CardContainerRating.js +79 -0
- package/src/components/CardContainerShortImage.js +33 -0
- package/src/components/CardInline.js +36 -0
- package/src/components/Carousel.js +68 -0
- package/src/components/Checkbox/Checkbox.js +63 -0
- package/src/components/Checkbox/CheckboxGroup.js +21 -0
- package/src/components/Checkbox/CheckboxGroupRow.js +77 -0
- package/src/components/Checkbox/CheckboxRow.js +78 -0
- package/src/components/Checkbox/context.js +14 -0
- package/src/components/Checkbox/index.js +3 -0
- package/src/components/CircleImage.js +8 -0
- package/src/components/CircularProgress.js +81 -0
- package/src/components/Config.js +63 -0
- package/src/components/Container.js +43 -0
- package/src/components/DatePicker/DatePicker.js +368 -0
- package/src/components/DatePicker/DatePickerComponent.js +13 -0
- package/src/components/DatePicker/DatePickerComponent.web.js +30 -0
- package/src/components/DatePicker/DatePickerComponentType.js +1 -0
- package/src/components/DeprecatedButton.js +95 -0
- package/src/components/DeprecatedCardWrapper.js +18 -0
- package/src/components/DeprecatedFAB.js +115 -0
- package/src/components/Divider.js +13 -0
- package/src/components/Elevation.js +20 -0
- package/src/components/FAB.js +46 -0
- package/src/components/FieldSearchBarFull.js +53 -0
- package/src/components/FormRow.js +19 -0
- package/src/components/Header.js +44 -0
- package/src/components/HeaderLarge.js +7 -0
- package/src/components/HeaderMedium.js +7 -0
- package/src/components/HeaderOverline.js +7 -0
- package/src/components/IconButton.js +35 -0
- package/src/components/Image.js +47 -0
- package/src/components/Justification.js +1 -0
- package/src/components/Layout.js +50 -0
- package/src/components/NumberInput.js +49 -0
- package/src/components/Picker/Picker.js +267 -0
- package/src/components/Picker/Picker.tsx +8 -6
- package/src/components/Picker/PickerComponent.android.js +69 -0
- package/src/components/Picker/PickerComponent.ios.js +79 -0
- package/src/components/Picker/PickerComponent.web.js +70 -0
- package/src/components/Picker/PickerTypes.js +1 -0
- package/src/components/Portal/Portal.js +35 -0
- package/src/components/Portal/PortalConsumer.js +27 -0
- package/src/components/Portal/PortalHost.js +107 -0
- package/src/components/Portal/PortalManager.js +32 -0
- package/src/components/ProgressBar.js +118 -0
- package/src/components/ProgressCircle.js +13 -0
- package/src/components/ProgressIndicator.js +27 -0
- package/src/components/RadioButton/RadioButton.js +17 -0
- package/src/components/RadioButton/RadioButtonFieldGroup.js +17 -0
- package/src/components/RadioButton/RadioButtonGroup.js +43 -0
- package/src/components/RadioButton/RadioButtonRow.js +76 -0
- package/src/components/RadioButton/context.js +14 -0
- package/src/components/RadioButton/index.js +4 -0
- package/src/components/ResizeMode.js +1 -0
- package/src/components/Row.js +48 -0
- package/src/components/RowBodyIcon.js +8 -0
- package/src/components/RowHeadlineImageCaption.js +12 -0
- package/src/components/RowHeadlineImageIcon.js +14 -0
- package/src/components/ScreenContainer.js +34 -0
- package/src/components/Slider.js +63 -0
- package/src/components/StarRating.js +50 -0
- package/src/components/StepIndicator.js +346 -0
- package/src/components/Stepper.js +39 -0
- package/src/components/Surface.js +32 -0
- package/src/components/Swiper/Swiper.js +29 -0
- package/src/components/Swiper/SwiperItem.js +9 -0
- package/src/components/Swiper/index.js +2 -0
- package/src/components/Switch.js +56 -0
- package/src/components/Text.js +27 -0
- package/src/components/TextField.js +423 -0
- package/src/components/ToggleButton.js +39 -0
- package/src/components/Touchable.js +12 -0
- package/src/components/Touchable.web.js +2 -0
- package/src/components/Typography.js +36 -0
- package/src/components/useAuthState.js +31 -0
- package/src/constants.js +10 -0
- package/src/hooks.js +12 -0
- package/src/index.js +52 -0
- package/src/interfaces/Icon.js +8 -0
- package/src/mappings/Accordion.js +41 -0
- package/src/mappings/AccordionItem.js +16 -0
- package/src/mappings/ActionSheet.js +13 -0
- package/src/mappings/ActionSheetCancel.js +19 -0
- package/src/mappings/ActionSheetItem.js +23 -0
- package/src/mappings/ActivityIndicator.js +53 -0
- package/src/mappings/AudioPlayer.js +20 -0
- package/src/mappings/AvatarEdit.js +37 -0
- package/src/mappings/Banner.js +32 -0
- package/src/mappings/BlurView.js +41 -0
- package/src/mappings/Button.js +56 -0
- package/src/mappings/Card.js +52 -0
- package/src/mappings/CardBlock.js +122 -0
- package/src/mappings/CardContainer.js +102 -0
- package/src/mappings/CardContainerRating.js +124 -0
- package/src/mappings/CardContainerShortImage.js +118 -0
- package/src/mappings/CardInline.js +51 -0
- package/src/mappings/Carousel.js +18 -0
- package/src/mappings/Checkbox.js +45 -0
- package/src/mappings/CheckboxGroup.js +25 -0
- package/src/mappings/CheckboxRow.js +56 -0
- package/src/mappings/CircleImage.js +24 -0
- package/src/mappings/Container.js +29 -0
- package/src/mappings/CustomCode.js +8 -0
- package/src/mappings/DatePicker.js +157 -0
- package/src/mappings/DatePicker.ts +10 -0
- package/src/mappings/Divider.js +26 -0
- package/src/mappings/FAB.js +36 -0
- package/src/mappings/Fetch.js +12 -0
- package/src/mappings/FieldSearchBarFull.js +49 -0
- package/src/mappings/FlatList.js +19 -0
- package/src/mappings/HeaderLarge.js +28 -0
- package/src/mappings/HeaderMedium.js +54 -0
- package/src/mappings/HeaderOverline.js +54 -0
- package/src/mappings/Icon.js +25 -0
- package/src/mappings/IconButton.js +30 -0
- package/src/mappings/Image.js +15 -0
- package/src/mappings/ImageBackground.js +28 -0
- package/src/mappings/KeyboardAvoidingView.js +40 -0
- package/src/mappings/KeyboardAwareScrollView.js +49 -0
- package/src/mappings/Layout.js +195 -0
- package/src/mappings/LinearGradient.js +77 -0
- package/src/mappings/MapCallout.js +21 -0
- package/src/mappings/MapMarker.js +47 -0
- package/src/mappings/MapView.js +138 -0
- package/src/mappings/Modal.js +41 -0
- package/src/mappings/NumberInput.js +248 -0
- package/src/mappings/NumberInput.ts +267 -0
- package/src/mappings/Picker.js +139 -0
- package/src/mappings/ProgressBar.js +100 -0
- package/src/mappings/ProgressCircle.js +108 -0
- package/src/mappings/ProgressIndicator.js +180 -0
- package/src/mappings/RadioButton.js +50 -0
- package/src/mappings/RadioButtonGroup.js +16 -0
- package/src/mappings/RadioButtonRow.js +37 -0
- package/src/mappings/RowBodyIcon.js +75 -0
- package/src/mappings/RowHeadlineImageCaption.js +167 -0
- package/src/mappings/RowHeadlineImageIcon.js +99 -0
- package/src/mappings/SafeAreaView.js +33 -0
- package/src/mappings/ScrollView.js +30 -0
- package/src/mappings/Slider.js +59 -0
- package/src/mappings/StarRating.js +42 -0
- package/src/mappings/Stepper.js +28 -0
- package/src/mappings/Surface.js +13 -0
- package/src/mappings/Swiper.js +60 -0
- package/src/mappings/SwiperItem.js +8 -0
- package/src/mappings/Switch.js +75 -0
- package/src/mappings/Text.js +239 -0
- package/src/mappings/Text.ts +34 -27
- package/src/mappings/TextArea.js +259 -0
- package/src/mappings/TextArea.ts +216 -3
- package/src/mappings/TextField.js +375 -0
- package/src/mappings/TextField.ts +227 -3
- package/src/mappings/TextInput.js +385 -0
- package/src/mappings/TextInput.ts +214 -34
- package/src/mappings/ToggleButton.js +45 -0
- package/src/mappings/Touchable.js +12 -0
- package/src/mappings/Video.js +74 -0
- package/src/mappings/View.js +206 -0
- package/src/mappings/WebView.js +18 -0
- package/src/styles/DarkTheme.js +26 -0
- package/src/styles/DefaultTheme.js +111 -0
- package/src/styles/fonts.js +62 -0
- package/src/styles/overlay.js +60 -0
- package/src/styles/shadow.js +51 -0
- package/src/theming.js +3 -0
- package/src/utilities.js +102 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","data","props"],"sources":["CustomCode.
|
|
1
|
+
{"version":3,"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","data","props"],"sources":["CustomCode.js"],"sourcesContent":["import { COMPONENT_TYPES } from \"@draftbit/types\";\nexport const SEED_DATA = {\n name: \"Custom Code\",\n tag: \"CustomCode\",\n description: \"A component that allows usage of custom code\",\n category: COMPONENT_TYPES.data,\n props: {},\n};\n"],"mappings":";;;;;;;AAAA;;AACO,MAAMA,SAAS,GAAG;EACrBC,IAAI,EAAE,aADe;EAErBC,GAAG,EAAE,YAFgB;EAGrBC,WAAW,EAAE,8CAHQ;EAIrBC,QAAQ,EAAEC,sBAAA,CAAgBC,IAJL;EAKrBC,KAAK,EAAE;AALc,CAAlB"}
|
|
@@ -29,6 +29,16 @@ const SEED_DATA_PROPS = {
|
|
|
29
29
|
options: ["date", "time", "datetime"],
|
|
30
30
|
group: _types.GROUPS.basic
|
|
31
31
|
},
|
|
32
|
+
format: {
|
|
33
|
+
label: "Format",
|
|
34
|
+
description: "Create an output format for the date.",
|
|
35
|
+
editable: true,
|
|
36
|
+
required: false,
|
|
37
|
+
formType: _types.FORM_TYPES.string,
|
|
38
|
+
propType: _types.PROP_TYPES.STRING,
|
|
39
|
+
defaultValue: null,
|
|
40
|
+
group: _types.GROUPS.basic
|
|
41
|
+
},
|
|
32
42
|
assistiveText: {
|
|
33
43
|
label: "Assistive text",
|
|
34
44
|
description: "Helper text to display below the picker",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SEED_DATA_PROPS","label","description","formType","FORM_TYPES","string","propType","PROP_TYPES","STRING","defaultValue","editable","required","group","GROUPS","data","mode","flatArray","options","basic","assistiveText","disabled","boolean","BOOLEAN","leftIconName","icon","leftIconMode","rightIconName","fieldName","FIELD_NAME","handlerPropName","valuePropName","SEED_DATA","name","tag","category","COMPONENT_TYPES","input","layout","triggers","Triggers","OnDateChange","props","type"],"sources":["DatePicker.ts"],"sourcesContent":["import {\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n FIELD_NAME,\n GROUPS,\n Triggers,\n} from \"@draftbit/types\";\n\nconst SEED_DATA_PROPS = {\n label: {\n label: \"Label\",\n description: \"The label to be displayed on the picker\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"Date\",\n editable: true,\n required: true,\n group: GROUPS.data,\n },\n mode: {\n label: \"Mode\",\n description: \"Choose between date, time and datetime\",\n defaultValue: \"date\",\n editable: true,\n required: true,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n options: [\"date\", \"time\", \"datetime\"],\n group: GROUPS.basic,\n },\n assistiveText: {\n label: \"Assistive text\",\n description: \"Helper text to display below the picker\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n editable: true,\n required: false,\n group: GROUPS.basic,\n },\n // locale: {\n // label: \"Locale\",\n // description: \"Locale for the datepicker. Must be a valid Locale\",\n // formType: FORM_TYPES.string,\n // propType: PROP_TYPES.STRING,\n // defaultValue: null,\n // editable: true,\n // required: false,\n // group: GROUPS.basic,\n // },\n // minuteInterval: {\n // label: \"Minute Interval\",\n // description: \"The interval at which minutes can be selected\",\n // formType: FORM_TYPES.flatArray,\n // propType: PROP_TYPES.NUMBER,\n // options: [1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30],\n // defaultValue: null,\n // editable: true,\n // required: false,\n // group: GROUPS.basic,\n // },\n // timeZoneOffsetInMinutes: {\n // label: \"Time zone offset\",\n // description:\n // \"By default, the datepicker uses the device's timezone. This will allow you to offset it\",\n // formType: FORM_TYPES.number,\n // propType: PROP_TYPES.NUMBER,\n // defaultValue: null,\n // editable: true,\n // required: false,\n // group: GROUPS.basic,\n // },\n disabled: {\n label: \"Disabled\",\n description:\n \"Whether the picker should be disabled. Will prevent selection and show a greyed out state.\",\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: false,\n editable: true,\n required: false,\n group: GROUPS.basic,\n },\n // error: {\n // label: \"Error\",\n // description: \"Whether the picker should display the error state\",\n // formType: FORM_TYPES.boolean,\n // propType: PROP_TYPES.BOOLEAN,\n // defaultValue: false,\n // editable: true,\n // required: false,\n // group: GROUPS.data,\n // },\n leftIconName: {\n label: \"Left icon name\",\n description: \"The icon to display on the left\",\n formType: FORM_TYPES.icon,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n editable: true,\n required: false,\n group: GROUPS.basic,\n },\n leftIconMode: {\n label: \"Left icon mode\",\n description:\n \"The mode of the icon to display on the left. 'inset' or 'outset'.\",\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: \"inset\",\n options: [\"inset\", \"outset\"],\n editable: true,\n required: true,\n group: GROUPS.basic,\n },\n rightIconName: {\n label: \"Right icon name\",\n description: \"The icon to display on the right\",\n formType: FORM_TYPES.icon,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n editable: true,\n required: false,\n group: GROUPS.basic,\n },\n fieldName: {\n ...FIELD_NAME,\n handlerPropName: \"onDateChange\",\n valuePropName: \"date\",\n defaultValue: \"date\",\n },\n};\n\nexport const SEED_DATA = [\n {\n name: \"Date Picker\",\n tag: \"DatePicker\",\n description: \"A component used to select a date from a visual calendar\",\n category: COMPONENT_TYPES.input,\n layout: null,\n triggers: [Triggers.OnDateChange],\n props: {\n ...SEED_DATA_PROPS,\n type: {\n label: \"Appearance\",\n description: \"Type of Datepicker\",\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: \"solid\",\n options: [\"solid\", \"underline\"],\n editable: true,\n required: true,\n group: GROUPS.basic,\n },\n },\n },\n];\n"],"mappings":";;;;;;;AAAA;;AASA,MAAMA,eAAe,GAAG;EACtBC,KAAK,EAAE;IACLA,KAAK,EAAE,OADF;IAELC,WAAW,EAAE,yCAFR;IAGLC,QAAQ,EAAEC,iBAAA,CAAWC,MAHhB;IAILC,QAAQ,EAAEC,iBAAA,CAAWC,MAJhB;IAKLC,YAAY,EAAE,MALT;IAMLC,QAAQ,EAAE,IANL;IAOLC,QAAQ,EAAE,IAPL;IAQLC,KAAK,EAAEC,aAAA,CAAOC;EART,CADe;EAWtBC,IAAI,EAAE;IACJd,KAAK,EAAE,MADH;IAEJC,WAAW,EAAE,wCAFT;IAGJO,YAAY,EAAE,MAHV;IAIJC,QAAQ,EAAE,IAJN;IAKJC,QAAQ,EAAE,IALN;IAMJR,QAAQ,EAAEC,iBAAA,CAAWY,SANjB;IAOJV,QAAQ,EAAEC,iBAAA,CAAWC,MAPjB;IAQJS,OAAO,EAAE,CAAC,MAAD,EAAS,MAAT,EAAiB,UAAjB,CARL;IASJL,KAAK,EAAEC,aAAA,CAAOK;EATV,CAXgB;EAsBtBC,aAAa,EAAE;
|
|
1
|
+
{"version":3,"names":["SEED_DATA_PROPS","label","description","formType","FORM_TYPES","string","propType","PROP_TYPES","STRING","defaultValue","editable","required","group","GROUPS","data","mode","flatArray","options","basic","format","assistiveText","disabled","boolean","BOOLEAN","leftIconName","icon","leftIconMode","rightIconName","fieldName","FIELD_NAME","handlerPropName","valuePropName","SEED_DATA","name","tag","category","COMPONENT_TYPES","input","layout","triggers","Triggers","OnDateChange","props","type"],"sources":["DatePicker.ts"],"sourcesContent":["import {\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n FIELD_NAME,\n GROUPS,\n Triggers,\n} from \"@draftbit/types\";\n\nconst SEED_DATA_PROPS = {\n label: {\n label: \"Label\",\n description: \"The label to be displayed on the picker\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"Date\",\n editable: true,\n required: true,\n group: GROUPS.data,\n },\n mode: {\n label: \"Mode\",\n description: \"Choose between date, time and datetime\",\n defaultValue: \"date\",\n editable: true,\n required: true,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n options: [\"date\", \"time\", \"datetime\"],\n group: GROUPS.basic,\n },\n format: {\n label: \"Format\",\n description: \"Create an output format for the date.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n group: GROUPS.basic,\n },\n assistiveText: {\n label: \"Assistive text\",\n description: \"Helper text to display below the picker\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n editable: true,\n required: false,\n group: GROUPS.basic,\n },\n // locale: {\n // label: \"Locale\",\n // description: \"Locale for the datepicker. Must be a valid Locale\",\n // formType: FORM_TYPES.string,\n // propType: PROP_TYPES.STRING,\n // defaultValue: null,\n // editable: true,\n // required: false,\n // group: GROUPS.basic,\n // },\n // minuteInterval: {\n // label: \"Minute Interval\",\n // description: \"The interval at which minutes can be selected\",\n // formType: FORM_TYPES.flatArray,\n // propType: PROP_TYPES.NUMBER,\n // options: [1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30],\n // defaultValue: null,\n // editable: true,\n // required: false,\n // group: GROUPS.basic,\n // },\n // timeZoneOffsetInMinutes: {\n // label: \"Time zone offset\",\n // description:\n // \"By default, the datepicker uses the device's timezone. This will allow you to offset it\",\n // formType: FORM_TYPES.number,\n // propType: PROP_TYPES.NUMBER,\n // defaultValue: null,\n // editable: true,\n // required: false,\n // group: GROUPS.basic,\n // },\n disabled: {\n label: \"Disabled\",\n description:\n \"Whether the picker should be disabled. Will prevent selection and show a greyed out state.\",\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: false,\n editable: true,\n required: false,\n group: GROUPS.basic,\n },\n // error: {\n // label: \"Error\",\n // description: \"Whether the picker should display the error state\",\n // formType: FORM_TYPES.boolean,\n // propType: PROP_TYPES.BOOLEAN,\n // defaultValue: false,\n // editable: true,\n // required: false,\n // group: GROUPS.data,\n // },\n leftIconName: {\n label: \"Left icon name\",\n description: \"The icon to display on the left\",\n formType: FORM_TYPES.icon,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n editable: true,\n required: false,\n group: GROUPS.basic,\n },\n leftIconMode: {\n label: \"Left icon mode\",\n description:\n \"The mode of the icon to display on the left. 'inset' or 'outset'.\",\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: \"inset\",\n options: [\"inset\", \"outset\"],\n editable: true,\n required: true,\n group: GROUPS.basic,\n },\n rightIconName: {\n label: \"Right icon name\",\n description: \"The icon to display on the right\",\n formType: FORM_TYPES.icon,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n editable: true,\n required: false,\n group: GROUPS.basic,\n },\n fieldName: {\n ...FIELD_NAME,\n handlerPropName: \"onDateChange\",\n valuePropName: \"date\",\n defaultValue: \"date\",\n },\n};\n\nexport const SEED_DATA = [\n {\n name: \"Date Picker\",\n tag: \"DatePicker\",\n description: \"A component used to select a date from a visual calendar\",\n category: COMPONENT_TYPES.input,\n layout: null,\n triggers: [Triggers.OnDateChange],\n props: {\n ...SEED_DATA_PROPS,\n type: {\n label: \"Appearance\",\n description: \"Type of Datepicker\",\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: \"solid\",\n options: [\"solid\", \"underline\"],\n editable: true,\n required: true,\n group: GROUPS.basic,\n },\n },\n },\n];\n"],"mappings":";;;;;;;AAAA;;AASA,MAAMA,eAAe,GAAG;EACtBC,KAAK,EAAE;IACLA,KAAK,EAAE,OADF;IAELC,WAAW,EAAE,yCAFR;IAGLC,QAAQ,EAAEC,iBAAA,CAAWC,MAHhB;IAILC,QAAQ,EAAEC,iBAAA,CAAWC,MAJhB;IAKLC,YAAY,EAAE,MALT;IAMLC,QAAQ,EAAE,IANL;IAOLC,QAAQ,EAAE,IAPL;IAQLC,KAAK,EAAEC,aAAA,CAAOC;EART,CADe;EAWtBC,IAAI,EAAE;IACJd,KAAK,EAAE,MADH;IAEJC,WAAW,EAAE,wCAFT;IAGJO,YAAY,EAAE,MAHV;IAIJC,QAAQ,EAAE,IAJN;IAKJC,QAAQ,EAAE,IALN;IAMJR,QAAQ,EAAEC,iBAAA,CAAWY,SANjB;IAOJV,QAAQ,EAAEC,iBAAA,CAAWC,MAPjB;IAQJS,OAAO,EAAE,CAAC,MAAD,EAAS,MAAT,EAAiB,UAAjB,CARL;IASJL,KAAK,EAAEC,aAAA,CAAOK;EATV,CAXgB;EAsBtBC,MAAM,EAAE;IACNlB,KAAK,EAAE,QADD;IAENC,WAAW,EAAE,uCAFP;IAGNQ,QAAQ,EAAE,IAHJ;IAINC,QAAQ,EAAE,KAJJ;IAKNR,QAAQ,EAAEC,iB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AK,EAAEC,aAAA,CAAOK;IATV;EAFD;AAPT,CADuB,CAAlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SEED_DATA","name","tag","doc_link","code_link","description","category","COMPONENT_TYPES","media","layout","width","height","props","source","createImageProp","defaultValue","resizeMode","createResizeModeProp","backgroundColor","createColorProp","label","backfaceVisibility","createTextEnumProp","options"],"sources":["ImageBackground.
|
|
1
|
+
{"version":3,"names":["SEED_DATA","name","tag","doc_link","code_link","description","category","COMPONENT_TYPES","media","layout","width","height","props","source","createImageProp","defaultValue","resizeMode","createResizeModeProp","backgroundColor","createColorProp","label","backfaceVisibility","createTextEnumProp","options"],"sources":["ImageBackground.js"],"sourcesContent":["import { COMPONENT_TYPES, createImageProp, createResizeModeProp, createTextEnumProp, createColorProp, } from \"@draftbit/types\";\nexport const SEED_DATA = {\n name: \"Image Background\",\n tag: \"ImageBackground\",\n doc_link: \"https://docs.expo.io/versions/latest/react-native/imagebackground/\",\n code_link: \"https://github.com/facebook/react-native/blob/master/Libraries/Image/ImageBackground.js\",\n description: \"A very simple drop-in replacement for Image that allows you to use an Image as a background.\",\n category: COMPONENT_TYPES.media,\n layout: {\n width: \"100%\",\n height: \"100%\",\n },\n props: {\n source: createImageProp({\n defaultValue: \"https://static.draftbit.com/images/placeholder-image-background.png\",\n }),\n resizeMode: createResizeModeProp(),\n backgroundColor: createColorProp({\n label: \"Background Color\",\n description: \"If no image is chosen render a colored background.\",\n }),\n backfaceVisibility: createTextEnumProp({\n label: \"Backface Visibility\",\n description: \"When animating a card, show the back face of it\",\n options: [\"visible\", \"hidden\"],\n }),\n },\n};\n"],"mappings":";;;;;;;AAAA;;AACO,MAAMA,SAAS,GAAG;EACrBC,IAAI,EAAE,kBADe;EAErBC,GAAG,EAAE,iBAFgB;EAGrBC,QAAQ,EAAE,oEAHW;EAIrBC,SAAS,EAAE,yFAJU;EAKrBC,WAAW,EAAE,8FALQ;EAMrBC,QAAQ,EAAEC,sBAAA,CAAgBC,KANL;EAOrBC,MAAM,EAAE;IACJC,KAAK,EAAE,MADH;IAEJC,MAAM,EAAE;EAFJ,CAPa;EAWrBC,KAAK,EAAE;IACHC,MAAM,EAAE,IAAAC,sBAAA,EAAgB;MACpBC,YAAY,EAAE;IADM,CAAhB,CADL;IAIHC,UAAU,EAAE,IAAAC,2BAAA,GAJT;IAKHC,eAAe,EAAE,IAAAC,sBAAA,EAAgB;MAC7BC,KAAK,EAAE,kBADsB;MAE7Bf,WAAW,EAAE;IAFgB,CAAhB,CALd;IASHgB,kBAAkB,EAAE,IAAAC,yBAAA,EAAmB;MACnCF,KAAK,EAAE,qBAD4B;MAEnCf,WAAW,EAAE,iDAFsB;MAGnCkB,OAAO,EAAE,CAAC,SAAD,EAAY,QAAZ;IAH0B,CAAnB;EATjB;AAXc,CAAlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SEED_DATA","name","tag","packageName","description","category","COMPONENT_TYPES","media","layout","props","latitude","createNumberProp","label","required","precision","min","max","longitude","title","createTextProp","defaultValue","flat","createBoolProp","group","GROUPS","basic","pinColor","createColorProp"],"sources":["MapMarker.
|
|
1
|
+
{"version":3,"names":["SEED_DATA","name","tag","packageName","description","category","COMPONENT_TYPES","media","layout","props","latitude","createNumberProp","label","required","precision","min","max","longitude","title","createTextProp","defaultValue","flat","createBoolProp","group","GROUPS","basic","pinColor","createColorProp"],"sources":["MapMarker.js"],"sourcesContent":["import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, } from \"@draftbit/types\";\nexport const SEED_DATA = {\n name: \"Map Marker\",\n tag: \"MapMarker\",\n packageName: \"@draftbit/maps\",\n description: \"A marker to show inside map view\",\n category: COMPONENT_TYPES.media,\n layout: {},\n props: {\n latitude: createNumberProp({\n label: \"Latitude\",\n description: \"The latitude in which the marker is located\",\n required: true,\n precision: 6,\n min: -90,\n max: 90,\n }),\n longitude: createNumberProp({\n label: \"Longitude\",\n description: \"The longitude in which the marker is located\",\n required: true,\n precision: 6,\n min: -180,\n max: 180,\n }),\n title: createTextProp({\n label: \"Title\",\n description: \"Title to show along with the marker\",\n defaultValue: null,\n }),\n description: createTextProp({\n label: \"Description\",\n description: \"Optional description for the marker\",\n defaultValue: null,\n }),\n flat: createBoolProp({\n label: \"Flat\",\n description: \"Sets whether this marker should be flat against the map (if true) or a billboard facing the camera (if false)\",\n group: GROUPS.basic,\n defaultValue: false,\n }),\n pinColor: createColorProp({\n label: \"Pin Color\",\n description: \"Sets the color of the marker\",\n }),\n },\n};\n"],"mappings":";;;;;;;AAAA;;AACO,MAAMA,SAAS,GAAG;EACrBC,IAAI,EAAE,YADe;EAErBC,GAAG,EAAE,WAFgB;EAGrBC,WAAW,EAAE,gBAHQ;EAIrBC,WAAW,EAAE,kCAJQ;EAKrBC,QAAQ,EAAEC,sBAAA,CAAgBC,KALL;EAMrBC,MAAM,EAAE,EANa;EAOrBC,KAAK,EAAE;IACHC,QAAQ,EAAE,IAAAC,uBAAA,EAAiB;MACvBC,KAAK,EAAE,UADgB;MAEvBR,WAAW,EAAE,6CAFU;MAGvBS,QAAQ,EAAE,IAHa;MAIvBC,SAAS,EAAE,CAJY;MAKvBC,GAAG,EAAE,CAAC,EALiB;MAMvBC,GAAG,EAAE;IANkB,CAAjB,CADP;IASHC,SAAS,EAAE,IAAAN,uBAAA,EAAiB;MACxBC,KAAK,EAAE,WADiB;MAExBR,WAAW,EAAE,8CAFW;MAGxBS,QAAQ,EAAE,IAHc;MAIxBC,SAAS,EAAE,CAJa;MAKxBC,GAAG,EAAE,CAAC,GALkB;MAMxBC,GAAG,EAAE;IANmB,CAAjB,CATR;IAiBHE,KAAK,EAAE,IAAAC,qBAAA,EAAe;MAClBP,KAAK,EAAE,OADW;MAElBR,WAAW,EAAE,qCAFK;MAGlBgB,YAAY,EAAE;IAHI,CAAf,CAjBJ;IAsBHhB,WAAW,EAAE,IAAAe,qBAAA,EAAe;MACxBP,KAAK,EAAE,aADiB;MAExBR,WAAW,EAAE,qCAFW;MAGxBgB,YAAY,EAAE;IAHU,CAAf,CAtBV;IA2BHC,IAAI,EAAE,IAAAC,qBAAA,EAAe;MACjBV,KAAK,EAAE,MADU;MAEjBR,WAAW,EAAE,+GAFI;MAGjBmB,KAAK,EAAEC,aAAA,CAAOC,KAHG;MAIjBL,YAAY,EAAE;IAJG,CAAf,CA3BH;IAiCHM,QAAQ,EAAE,IAAAC,sBAAA,EAAgB;MACtBf,KAAK,EAAE,WADe;MAEtBR,WAAW,EAAE;IAFS,CAAhB;EAjCP;AAPc,CAAlB"}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SEED_DATA_PROPS = exports.SEED_DATA = void 0;
|
|
7
|
+
|
|
8
|
+
var _types = require("@draftbit/types");
|
|
9
|
+
|
|
10
|
+
const NUMBER_INPUT_PROPS = {
|
|
11
|
+
allowFontScaling: {
|
|
12
|
+
group: _types.GROUPS.advanced,
|
|
13
|
+
label: "Allow Font Scaling",
|
|
14
|
+
description: "Whether fonts should scale to respect Text Size in the user's accessibility settings. (Default: true)",
|
|
15
|
+
editable: true,
|
|
16
|
+
required: false,
|
|
17
|
+
defaultValue: null,
|
|
18
|
+
formType: _types.FORM_TYPES.boolean,
|
|
19
|
+
propType: _types.PROP_TYPES.BOOLEAN
|
|
20
|
+
},
|
|
21
|
+
autoFocus: {
|
|
22
|
+
group: _types.GROUPS.basic,
|
|
23
|
+
label: "Auto Focus",
|
|
24
|
+
description: "Focuses the input on load in and brings up the keyboard",
|
|
25
|
+
editable: true,
|
|
26
|
+
required: false,
|
|
27
|
+
defaultValue: null,
|
|
28
|
+
formType: _types.FORM_TYPES.boolean,
|
|
29
|
+
propType: _types.PROP_TYPES.BOOLEAN
|
|
30
|
+
},
|
|
31
|
+
caretHidden: {
|
|
32
|
+
group: _types.GROUPS.advanced,
|
|
33
|
+
label: "Hide Caret",
|
|
34
|
+
description: "Hides the caret(the line small line underneath each showing where you're editing/typing",
|
|
35
|
+
editable: true,
|
|
36
|
+
required: false,
|
|
37
|
+
defaultValue: null,
|
|
38
|
+
formType: _types.FORM_TYPES.boolean,
|
|
39
|
+
propType: _types.PROP_TYPES.BOOLEAN
|
|
40
|
+
},
|
|
41
|
+
contextMenuHidden: {
|
|
42
|
+
group: _types.GROUPS.advanced,
|
|
43
|
+
label: "Hide Context Menu",
|
|
44
|
+
description: "Hides the system context menu (Default: false)",
|
|
45
|
+
editable: true,
|
|
46
|
+
required: false,
|
|
47
|
+
defaultValue: null,
|
|
48
|
+
formType: _types.FORM_TYPES.boolean,
|
|
49
|
+
propType: _types.PROP_TYPES.BOOLEAN
|
|
50
|
+
},
|
|
51
|
+
editable: {
|
|
52
|
+
group: _types.GROUPS.advanced,
|
|
53
|
+
label: "Editable",
|
|
54
|
+
description: "If false, the text is not editable",
|
|
55
|
+
editable: true,
|
|
56
|
+
required: false,
|
|
57
|
+
defaultValue: true,
|
|
58
|
+
formType: _types.FORM_TYPES.boolean,
|
|
59
|
+
propType: _types.PROP_TYPES.BOOLEAN
|
|
60
|
+
},
|
|
61
|
+
keyboardAppearance: {
|
|
62
|
+
group: _types.GROUPS.advanced,
|
|
63
|
+
label: "Keyboard Appearance",
|
|
64
|
+
description: "Determines the color of the keyboard.(iOS Only)",
|
|
65
|
+
editable: true,
|
|
66
|
+
required: false,
|
|
67
|
+
defaultValue: null,
|
|
68
|
+
options: ["default", "light", "dark"],
|
|
69
|
+
formType: _types.FORM_TYPES.flatArray,
|
|
70
|
+
propType: _types.PROP_TYPES.STRING
|
|
71
|
+
},
|
|
72
|
+
keyboardType: {
|
|
73
|
+
group: _types.GROUPS.advanced,
|
|
74
|
+
label: "Keyboard Type",
|
|
75
|
+
description: "Determines what keyboard is given to the user.",
|
|
76
|
+
editable: true,
|
|
77
|
+
required: false,
|
|
78
|
+
defaultValue: null,
|
|
79
|
+
options: ["numeric", "numbers-and-punctuation", "number-pad"],
|
|
80
|
+
formType: _types.FORM_TYPES.flatArray,
|
|
81
|
+
propType: _types.PROP_TYPES.STRING
|
|
82
|
+
},
|
|
83
|
+
maxLength: {
|
|
84
|
+
group: _types.GROUPS.basic,
|
|
85
|
+
label: "Max Length",
|
|
86
|
+
description: "Limits the input to a set number of characters.",
|
|
87
|
+
editable: true,
|
|
88
|
+
required: false,
|
|
89
|
+
defaultValue: null,
|
|
90
|
+
min: 0,
|
|
91
|
+
step: 1,
|
|
92
|
+
precision: 0,
|
|
93
|
+
formType: _types.FORM_TYPES.number,
|
|
94
|
+
propType: _types.PROP_TYPES.NUMBER
|
|
95
|
+
},
|
|
96
|
+
placeholder: {
|
|
97
|
+
group: _types.GROUPS.basic,
|
|
98
|
+
label: "Placeholder Text",
|
|
99
|
+
description: "The text that is shown on load when no value is available.",
|
|
100
|
+
editable: true,
|
|
101
|
+
required: false,
|
|
102
|
+
defaultValue: "Enter a number...",
|
|
103
|
+
formType: _types.FORM_TYPES.string,
|
|
104
|
+
propType: _types.PROP_TYPES.STRING
|
|
105
|
+
},
|
|
106
|
+
placeholderTextColor: {
|
|
107
|
+
group: _types.GROUPS.basic,
|
|
108
|
+
label: "Placeholder Text Color",
|
|
109
|
+
description: "The color of the placeholder text.",
|
|
110
|
+
editable: true,
|
|
111
|
+
required: false,
|
|
112
|
+
defaultValue: null,
|
|
113
|
+
formType: _types.FORM_TYPES.color,
|
|
114
|
+
propType: _types.PROP_TYPES.STRING
|
|
115
|
+
},
|
|
116
|
+
returnKeyLabel: {
|
|
117
|
+
group: _types.GROUPS.advanced,
|
|
118
|
+
label: "Return Key Label",
|
|
119
|
+
description: "(Android Only) Sets the label on the return key (use this instead of rewturnKeyType)",
|
|
120
|
+
editable: true,
|
|
121
|
+
required: false,
|
|
122
|
+
defaultValue: null,
|
|
123
|
+
formType: _types.FORM_TYPES.string,
|
|
124
|
+
propType: _types.PROP_TYPES.STRING
|
|
125
|
+
},
|
|
126
|
+
returnKeyType: {
|
|
127
|
+
group: _types.GROUPS.advanced,
|
|
128
|
+
label: "Return Key Type",
|
|
129
|
+
description: "Determines how the return key should look like",
|
|
130
|
+
editable: true,
|
|
131
|
+
required: false,
|
|
132
|
+
defaultValue: null,
|
|
133
|
+
options: ["done", "go", "next", "search", "send", "none", "previous", "default", "emergency-call", "google", "join", "route", "yahoo"],
|
|
134
|
+
formType: _types.FORM_TYPES.flatArray,
|
|
135
|
+
propType: _types.PROP_TYPES.STRING
|
|
136
|
+
},
|
|
137
|
+
selectionColor: {
|
|
138
|
+
group: _types.GROUPS.advanced,
|
|
139
|
+
label: "Selection Color",
|
|
140
|
+
description: "Color of the highlighted portion when selecting.",
|
|
141
|
+
editable: true,
|
|
142
|
+
required: false,
|
|
143
|
+
defaultValue: null,
|
|
144
|
+
formType: _types.FORM_TYPES.color,
|
|
145
|
+
propType: _types.PROP_TYPES.STRING
|
|
146
|
+
},
|
|
147
|
+
selectTextOnFocus: {
|
|
148
|
+
group: _types.GROUPS.advanced,
|
|
149
|
+
label: "Select Text on Focus",
|
|
150
|
+
description: "If true, all the text will automatically be selected on focus",
|
|
151
|
+
editable: true,
|
|
152
|
+
required: false,
|
|
153
|
+
defaultValue: null,
|
|
154
|
+
formType: _types.FORM_TYPES.boolean,
|
|
155
|
+
propType: _types.PROP_TYPES.BOOLEAN
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
const SEED_DATA_PROPS = {
|
|
159
|
+
style: {
|
|
160
|
+
group: _types.GROUPS.basic,
|
|
161
|
+
label: "Style",
|
|
162
|
+
description: "Text Style",
|
|
163
|
+
editable: false,
|
|
164
|
+
required: false,
|
|
165
|
+
formType: _types.FORM_TYPES.typeStyle,
|
|
166
|
+
propType: _types.PROP_TYPES.THEME,
|
|
167
|
+
defaultValue: null
|
|
168
|
+
},
|
|
169
|
+
clearButtonMode: {
|
|
170
|
+
group: _types.GROUPS.basic,
|
|
171
|
+
label: "Clear Button Mode",
|
|
172
|
+
description: "Enables a button within the textInput to clear the data entered",
|
|
173
|
+
editable: true,
|
|
174
|
+
required: false,
|
|
175
|
+
options: ["never", "while-editing", "unless-editing", "always"],
|
|
176
|
+
defaultValue: null,
|
|
177
|
+
formType: _types.FORM_TYPES.flatArray,
|
|
178
|
+
propType: _types.PROP_TYPES.STRING
|
|
179
|
+
},
|
|
180
|
+
clearTextOnFocus: {
|
|
181
|
+
group: _types.GROUPS.basic,
|
|
182
|
+
label: "Clear Text on Focus",
|
|
183
|
+
description: "If true, clears the text field automatically when its focused.",
|
|
184
|
+
editable: true,
|
|
185
|
+
required: false,
|
|
186
|
+
defaultValue: null,
|
|
187
|
+
formType: _types.FORM_TYPES.boolean,
|
|
188
|
+
propType: _types.PROP_TYPES.BOOLEAN
|
|
189
|
+
},
|
|
190
|
+
enablesReturnKeyAutomatically: {
|
|
191
|
+
group: _types.GROUPS.basic,
|
|
192
|
+
label: "Enables Return Key Automatically",
|
|
193
|
+
description: "If true, the keyboard disables the return key when there is no text and automatically enables it when there is (Default: false)",
|
|
194
|
+
editable: true,
|
|
195
|
+
required: false,
|
|
196
|
+
defaultValue: null,
|
|
197
|
+
formType: _types.FORM_TYPES.boolean,
|
|
198
|
+
propType: _types.PROP_TYPES.BOOLEAN
|
|
199
|
+
},
|
|
200
|
+
underlineColorAndroid: {
|
|
201
|
+
group: _types.GROUPS.basic,
|
|
202
|
+
label: "Underline color",
|
|
203
|
+
description: "(Android Only) The color of the underline(the line underneath the text when finished typing.",
|
|
204
|
+
editable: true,
|
|
205
|
+
required: false,
|
|
206
|
+
defaultValue: null,
|
|
207
|
+
formType: _types.FORM_TYPES.color,
|
|
208
|
+
propType: _types.PROP_TYPES.THEME
|
|
209
|
+
},
|
|
210
|
+
fieldName: { ..._types.FIELD_NAME,
|
|
211
|
+
defaultValue: "numberInputValue",
|
|
212
|
+
handlerPropName: "onChangeText"
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
exports.SEED_DATA_PROPS = SEED_DATA_PROPS;
|
|
216
|
+
const SEED_DATA = [{
|
|
217
|
+
name: "Number Input",
|
|
218
|
+
tag: "NumberInput",
|
|
219
|
+
description: "An input field that allows users to type in data.",
|
|
220
|
+
category: _types.COMPONENT_TYPES.input,
|
|
221
|
+
preview_image_url: "https://res.cloudinary.com/altos/image/upload/draftbit/Jigsaw/TextInput.png",
|
|
222
|
+
supports_list_render: false,
|
|
223
|
+
layout: {
|
|
224
|
+
borderLeftWidth: 1,
|
|
225
|
+
borderRightWidth: 1,
|
|
226
|
+
borderTopWidth: 1,
|
|
227
|
+
borderBottomWidth: 1,
|
|
228
|
+
borderColor: "divider",
|
|
229
|
+
paddingLeft: 8,
|
|
230
|
+
paddingRight: 8,
|
|
231
|
+
paddingTop: 8,
|
|
232
|
+
paddingBottom: 8,
|
|
233
|
+
borderRadius: 8
|
|
234
|
+
},
|
|
235
|
+
triggers: [_types.Triggers.OnChangeText],
|
|
236
|
+
props: { ...SEED_DATA_PROPS,
|
|
237
|
+
...NUMBER_INPUT_PROPS
|
|
238
|
+
}
|
|
239
|
+
}];
|
|
240
|
+
exports.SEED_DATA = SEED_DATA;
|
|
241
|
+
//# sourceMappingURL=NumberInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NUMBER_INPUT_PROPS","allowFontScaling","group","GROUPS","advanced","label","description","editable","required","defaultValue","formType","FORM_TYPES","boolean","propType","PROP_TYPES","BOOLEAN","autoFocus","basic","caretHidden","contextMenuHidden","keyboardAppearance","options","flatArray","STRING","keyboardType","maxLength","min","step","precision","number","NUMBER","placeholder","string","placeholderTextColor","color","returnKeyLabel","returnKeyType","selectionColor","selectTextOnFocus","SEED_DATA_PROPS","style","typeStyle","THEME","clearButtonMode","clearTextOnFocus","enablesReturnKeyAutomatically","underlineColorAndroid","fieldName","FIELD_NAME","handlerPropName","SEED_DATA","name","tag","category","COMPONENT_TYPES","input","preview_image_url","supports_list_render","layout","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","borderColor","paddingLeft","paddingRight","paddingTop","paddingBottom","borderRadius","triggers","Triggers","OnChangeText","props"],"sources":["NumberInput.ts"],"sourcesContent":["import {\n GROUPS,\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n FIELD_NAME,\n Triggers,\n} from \"@draftbit/types\";\n\nconst NUMBER_INPUT_PROPS = {\n allowFontScaling: {\n group: GROUPS.advanced,\n label: \"Allow Font Scaling\",\n description:\n \"Whether fonts should scale to respect Text Size in the user's accessibility settings. (Default: true)\",\n editable: true,\n required: false,\n defaultValue: null,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n },\n autoFocus: {\n group: GROUPS.basic,\n label: \"Auto Focus\",\n description: \"Focuses the input on load in and brings up the keyboard\",\n editable: true,\n required: false,\n defaultValue: null,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n },\n caretHidden: {\n group: GROUPS.advanced,\n label: \"Hide Caret\",\n description:\n \"Hides the caret(the line small line underneath each showing where you're editing/typing\",\n editable: true,\n required: false,\n defaultValue: null,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n },\n contextMenuHidden: {\n group: GROUPS.advanced,\n label: \"Hide Context Menu\",\n description: \"Hides the system context menu (Default: false)\",\n editable: true,\n required: false,\n defaultValue: null,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n },\n editable: {\n group: GROUPS.advanced,\n label: \"Editable\",\n description: \"If false, the text is not editable\",\n editable: true,\n required: false,\n defaultValue: true,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n },\n keyboardAppearance: {\n group: GROUPS.advanced,\n label: \"Keyboard Appearance\",\n description: \"Determines the color of the keyboard.(iOS Only)\",\n editable: true,\n required: false,\n defaultValue: null,\n options: [\"default\", \"light\", \"dark\"],\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n },\n keyboardType: {\n group: GROUPS.advanced,\n label: \"Keyboard Type\",\n description: \"Determines what keyboard is given to the user.\",\n editable: true,\n required: false,\n defaultValue: null,\n options: [\"numeric\", \"numbers-and-punctuation\", \"number-pad\"],\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n },\n maxLength: {\n group: GROUPS.basic,\n label: \"Max Length\",\n description: \"Limits the input to a set number of characters.\",\n editable: true,\n required: false,\n defaultValue: null,\n min: 0,\n step: 1,\n precision: 0,\n formType: FORM_TYPES.number,\n propType: PROP_TYPES.NUMBER,\n },\n placeholder: {\n group: GROUPS.basic,\n label: \"Placeholder Text\",\n description: \"The text that is shown on load when no value is available.\",\n editable: true,\n required: false,\n defaultValue: \"Enter a number...\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n },\n placeholderTextColor: {\n group: GROUPS.basic,\n label: \"Placeholder Text Color\",\n description: \"The color of the placeholder text.\",\n editable: true,\n required: false,\n defaultValue: null,\n formType: FORM_TYPES.color,\n propType: PROP_TYPES.STRING,\n },\n returnKeyLabel: {\n group: GROUPS.advanced,\n label: \"Return Key Label\",\n description:\n \"(Android Only) Sets the label on the return key (use this instead of rewturnKeyType)\",\n editable: true,\n required: false,\n defaultValue: null,\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n },\n returnKeyType: {\n group: GROUPS.advanced,\n label: \"Return Key Type\",\n description: \"Determines how the return key should look like\",\n editable: true,\n required: false,\n defaultValue: null,\n options: [\n \"done\",\n \"go\",\n \"next\",\n \"search\",\n \"send\",\n \"none\",\n \"previous\",\n \"default\",\n \"emergency-call\",\n \"google\",\n \"join\",\n \"route\",\n \"yahoo\",\n ],\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n },\n selectionColor: {\n group: GROUPS.advanced,\n label: \"Selection Color\",\n description: \"Color of the highlighted portion when selecting.\",\n editable: true,\n required: false,\n defaultValue: null,\n formType: FORM_TYPES.color,\n propType: PROP_TYPES.STRING,\n },\n selectTextOnFocus: {\n group: GROUPS.advanced,\n label: \"Select Text on Focus\",\n description:\n \"If true, all the text will automatically be selected on focus\",\n editable: true,\n required: false,\n defaultValue: null,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n },\n};\n\nexport const SEED_DATA_PROPS = {\n style: {\n group: GROUPS.basic,\n label: \"Style\",\n description: \"Text Style\",\n editable: false,\n required: false,\n formType: FORM_TYPES.typeStyle,\n propType: PROP_TYPES.THEME,\n defaultValue: null,\n },\n clearButtonMode: {\n group: GROUPS.basic,\n label: \"Clear Button Mode\",\n description:\n \"Enables a button within the textInput to clear the data entered\",\n editable: true,\n required: false,\n options: [\"never\", \"while-editing\", \"unless-editing\", \"always\"],\n defaultValue: null,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n },\n clearTextOnFocus: {\n group: GROUPS.basic,\n label: \"Clear Text on Focus\",\n description:\n \"If true, clears the text field automatically when its focused.\",\n editable: true,\n required: false,\n defaultValue: null,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n },\n enablesReturnKeyAutomatically: {\n group: GROUPS.basic,\n label: \"Enables Return Key Automatically\",\n description:\n \"If true, the keyboard disables the return key when there is no text and automatically enables it when there is (Default: false)\",\n editable: true,\n required: false,\n defaultValue: null,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n },\n underlineColorAndroid: {\n group: GROUPS.basic,\n label: \"Underline color\",\n description:\n \"(Android Only) The color of the underline(the line underneath the text when finished typing.\",\n editable: true,\n required: false,\n defaultValue: null,\n formType: FORM_TYPES.color,\n propType: PROP_TYPES.THEME,\n },\n fieldName: {\n ...FIELD_NAME,\n defaultValue: \"numberInputValue\",\n handlerPropName: \"onChangeText\",\n },\n};\n\nexport const SEED_DATA = [\n {\n name: \"Number Input\",\n tag: \"NumberInput\",\n description: \"An input field that allows users to type in data.\",\n category: COMPONENT_TYPES.input,\n preview_image_url:\n \"https://res.cloudinary.com/altos/image/upload/draftbit/Jigsaw/TextInput.png\",\n supports_list_render: false,\n layout: {\n borderLeftWidth: 1,\n borderRightWidth: 1,\n borderTopWidth: 1,\n borderBottomWidth: 1,\n borderColor: \"divider\",\n paddingLeft: 8,\n paddingRight: 8,\n paddingTop: 8,\n paddingBottom: 8,\n borderRadius: 8,\n },\n triggers: [Triggers.OnChangeText],\n props: {\n ...SEED_DATA_PROPS,\n ...NUMBER_INPUT_PROPS,\n },\n },\n];\n"],"mappings":";;;;;;;AAAA;;AASA,MAAMA,kBAAkB,GAAG;EACzBC,gBAAgB,EAAE;IAChBC,KAAK,EAAEC,aAAA,CAAOC,QADE;IAEhBC,KAAK,EAAE,oBAFS;IAGhBC,WAAW,EACT,uGAJc;IAKhBC,QAAQ,EAAE,IALM;IAMhBC,QAAQ,EAAE,KANM;IAOhBC,YAAY,EAAE,IAPE;IAQhBC,QAAQ,EAAEC,iBAAA,CAAWC,OARL;IAShBC,QAAQ,EAAEC,iBAAA,CAAWC;EATL,CADO;EAYzBC,SAAS,EAAE;IACTd,KAAK,EAAEC,aAAA,CAAOc,KADL;IAETZ,KAAK,EAAE,YAFE;IAGTC,WAAW,EAAE,yDAHJ;IAITC,QAAQ,EAAE,IAJD;IAKTC,QAAQ,EAAE,KALD;IAMTC,YAAY,EAAE,IANL;IAOTC,QAAQ,EAAEC,iBAAA,CAAWC,OAPZ;IAQTC,QAAQ,EAAEC,iBAAA,CAAWC;EARZ,CAZc;EAsBzBG,WAAW,EAAE;IACXhB,KAAK,EAAEC,aAAA,CAAOC,QADH;IAEXC,KAAK,EAAE,YAFI;IAGXC,WAAW,EACT,yFAJS;IAKXC,QAAQ,EAAE,IALC;IAMXC,QAAQ,EAAE,KANC;IAOXC,YAAY,EAAE,IAPH;IAQXC,QAAQ,EAAEC,iBAAA,CAAWC,OARV;IASXC,QAAQ,EAAEC,iBAAA,CAAWC;EATV,CAtBY;EAiCzBI,iBAAiB,EAAE;IACjBjB,KAAK,EAAEC,aAAA,CAAOC,QADG;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EC,iBAAA,CAAWuB,KARA;IASrBrB,QAAQ,EAAEC,iBAAA,CAAW4B;EATA,CA7CM;EAwD7BK,SAAS,EAAE,EACT,GAAGC,iBADM;IAETvC,YAAY,EAAE,kBAFL;IAGTwC,eAAe,EAAE;EAHR;AAxDkB,CAAxB;;AA+DA,MAAMC,SAAS,GAAG,CACvB;EACEC,IAAI,EAAE,cADR;EAEEC,GAAG,EAAE,aAFP;EAGE9C,WAAW,EAAE,mDAHf;EAIE+C,QAAQ,EAAEC,sBAAA,CAAgBC,KAJ5B;EAKEC,iBAAiB,EACf,6EANJ;EAOEC,oBAAoB,EAAE,KAPxB;EAQEC,MAAM,EAAE;IACNC,eAAe,EAAE,CADX;IAENC,gBAAgB,EAAE,CAFZ;IAGNC,cAAc,EAAE,CAHV;IAINC,iBAAiB,EAAE,CAJb;IAKNC,WAAW,EAAE,SALP;IAMNC,WAAW,EAAE,CANP;IAONC,YAAY,EAAE,CAPR;IAQNC,UAAU,EAAE,CARN;IASNC,aAAa,EAAE,CATT;IAUNC,YAAY,EAAE;EAVR,CARV;EAoBEC,QAAQ,EAAE,CAACC,eAAA,CAASC,YAAV,CApBZ;EAqBEC,KAAK,EAAE,EACL,GAAGjC,eADE;IAEL,GAAGvC;EAFE;AArBT,CADuB,CAAlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SEED_DATA","name","tag","category","COMPONENT_TYPES","input","triggers","Triggers","OnPress","props","value","createTextProp","label","description","defaultValue","required","color","createColorProp","group","GROUPS","basic","unselectedColor","disabled","createBoolProp","size","createNumberProp","min","max","step","precision","selectedIcon","createIconProp","unselectedIcon"],"sources":["RadioButton.
|
|
1
|
+
{"version":3,"names":["SEED_DATA","name","tag","category","COMPONENT_TYPES","input","triggers","Triggers","OnPress","props","value","createTextProp","label","description","defaultValue","required","color","createColorProp","group","GROUPS","basic","unselectedColor","disabled","createBoolProp","size","createNumberProp","min","max","step","precision","selectedIcon","createIconProp","unselectedIcon"],"sources":["RadioButton.js"],"sourcesContent":["import { GROUPS, COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createIconProp, createTextProp, Triggers, } from \"@draftbit/types\";\nexport const SEED_DATA = {\n name: \"Radio Button\",\n tag: \"RadioButton\",\n category: COMPONENT_TYPES.input,\n triggers: [Triggers.OnPress],\n props: {\n value: createTextProp({\n label: \"Value\",\n description: \"Value of the radio button\",\n defaultValue: null,\n required: true,\n }),\n color: createColorProp({\n group: GROUPS.basic,\n description: \"Color for the button\",\n defaultValue: \"primary\",\n }),\n unselectedColor: createColorProp({\n group: GROUPS.basic,\n label: \"Unselected Color\",\n description: \"Unselected Color for the button\",\n defaultValue: \"primary\",\n }),\n disabled: createBoolProp({\n label: \"Disabled\",\n description: \"Whether radio button is disabled\",\n }),\n size: createNumberProp({\n group: GROUPS.basic,\n label: \"Size\",\n description: \"Specifies the size of the button\",\n defaultValue: 24,\n min: 16,\n max: 128,\n step: 1,\n precision: 0,\n }),\n selectedIcon: createIconProp({\n label: \"Selected Icon\",\n description: \"Icon to show when the radio button is selected\",\n defaultValue: \"MaterialIcons/radio-button-checked\",\n }),\n unselectedIcon: createIconProp({\n label: \"Unselected Icon\",\n description: \"Icon to show when the radio button is unselected\",\n defaultValue: \"MaterialIcons/radio-button-unchecked\",\n }),\n },\n};\n"],"mappings":";;;;;;;AAAA;;AACO,MAAMA,SAAS,GAAG;EACrBC,IAAI,EAAE,cADe;EAErBC,GAAG,EAAE,aAFgB;EAGrBC,QAAQ,EAAEC,sBAAA,CAAgBC,KAHL;EAIrBC,QAAQ,EAAE,CAACC,eAAA,CAASC,OAAV,CAJW;EAKrBC,KAAK,EAAE;IACHC,KAAK,EAAE,IAAAC,qBAAA,EAAe;MAClBC,KAAK,EAAE,OADW;MAElBC,WAAW,EAAE,2BAFK;MAGlBC,YAAY,EAAE,IAHI;MAIlBC,QAAQ,EAAE;IAJQ,CAAf,CADJ;IAOHC,KAAK,EAAE,IAAAC,sBAAA,EAAgB;MACnBC,KAAK,EAAEC,aAAA,CAAOC,KADK;MAEnBP,WAAW,EAAE,sBAFM;MAGnBC,YAAY,EAAE;IAHK,CAAhB,CAPJ;IAYHO,eAAe,EAAE,IAAAJ,sBAAA,EAAgB;MAC7BC,KAAK,EAAEC,aAAA,CAAOC,KADe;MAE7BR,KAAK,EAAE,kBAFsB;MAG7BC,WAAW,EAAE,iCAHgB;MAI7BC,YAAY,EAAE;IAJe,CAAhB,CAZd;IAkBHQ,QAAQ,EAAE,IAAAC,qBAAA,EAAe;MACrBX,KAAK,EAAE,UADc;MAErBC,WAAW,EAAE;IAFQ,CAAf,CAlBP;IAsBHW,IAAI,EAAE,IAAAC,uBAAA,EAAiB;MACnBP,KAAK,EAAEC,aAAA,CAAOC,KADK;MAEnBR,KAAK,EAAE,MAFY;MAGnBC,WAAW,EAAE,kCAHM;MAInBC,YAAY,EAAE,EAJK;MAKnBY,GAAG,EAAE,EALc;MAMnBC,GAAG,EAAE,GANc;MAOnBC,IAAI,EAAE,CAPa;MAQnBC,SAAS,EAAE;IARQ,CAAjB,CAtBH;IAgCHC,YAAY,EAAE,IAAAC,qBAAA,EAAe;MACzBnB,KAAK,EAAE,eADkB;MAEzBC,WAAW,EAAE,gDAFY;MAGzBC,YAAY,EAAE;IAHW,CAAf,CAhCX;IAqCHkB,cAAc,EAAE,IAAAD,qBAAA,EAAe;MAC3BnB,KAAK,EAAE,iBADoB;MAE3BC,WAAW,EAAE,kDAFc;MAG3BC,YAAY,EAAE;IAHa,CAAf;EArCb;AALc,CAAlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SEED_DATA","name","tag","category","COMPONENT_TYPES","input","layout","triggers","Triggers","OnValueChange","props","direction","createDirectionProp","fieldName","createFieldNameProp","handlerPropName","valuePropName","defaultValue"],"sources":["RadioButtonGroup.
|
|
1
|
+
{"version":3,"names":["SEED_DATA","name","tag","category","COMPONENT_TYPES","input","layout","triggers","Triggers","OnValueChange","props","direction","createDirectionProp","fieldName","createFieldNameProp","handlerPropName","valuePropName","defaultValue"],"sources":["RadioButtonGroup.js"],"sourcesContent":["import { COMPONENT_TYPES, createFieldNameProp, createDirectionProp, Triggers, } from \"@draftbit/types\";\nexport const SEED_DATA = {\n name: \"Radio Button Group\",\n tag: \"RadioButtonGroup\",\n category: COMPONENT_TYPES.input,\n layout: {},\n triggers: [Triggers.OnValueChange],\n props: {\n direction: createDirectionProp(),\n fieldName: createFieldNameProp({\n handlerPropName: \"onValueChange\",\n valuePropName: \"value\",\n defaultValue: \"radioButtonGroupValue\",\n }),\n },\n};\n"],"mappings":";;;;;;;AAAA;;AACO,MAAMA,SAAS,GAAG;EACrBC,IAAI,EAAE,oBADe;EAErBC,GAAG,EAAE,kBAFgB;EAGrBC,QAAQ,EAAEC,sBAAA,CAAgBC,KAHL;EAIrBC,MAAM,EAAE,EAJa;EAKrBC,QAAQ,EAAE,CAACC,eAAA,CAASC,aAAV,CALW;EAMrBC,KAAK,EAAE;IACHC,SAAS,EAAE,IAAAC,0BAAA,GADR;IAEHC,SAAS,EAAE,IAAAC,0BAAA,EAAoB;MAC3BC,eAAe,EAAE,eADU;MAE3BC,aAAa,EAAE,OAFY;MAG3BC,YAAY,EAAE;IAHa,CAApB;EAFR;AANc,CAAlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","deprecated","props","edges","group","GROUPS","basic","label","editable","required","formType","FORM_TYPES","flatArray","propType","PROP_TYPES","STRING","options","defaultValue","mode"],"sources":["SafeAreaView.
|
|
1
|
+
{"version":3,"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","deprecated","props","edges","group","GROUPS","basic","label","editable","required","formType","FORM_TYPES","flatArray","propType","PROP_TYPES","STRING","options","defaultValue","mode"],"sources":["SafeAreaView.js"],"sourcesContent":["import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, } from \"@draftbit/types\";\nexport const SEED_DATA = {\n name: \"SafeAreaView\",\n tag: \"SafeAreaView\",\n description: \"A basic View that handles safe area\",\n category: COMPONENT_TYPES.deprecated,\n props: {\n edges: {\n group: GROUPS.basic,\n name: \"edges\",\n label: \"edges\",\n description: \"Provides edges to be used by safe area view\",\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n options: [\"right\", \"bottom\", \"left\", \"top\"],\n defaultValue: [\"right\", \"bottom\", \"left\", \"top\"],\n },\n mode: {\n group: GROUPS.basic,\n name: \"mode\",\n label: \"mode\",\n description: \"Mode used by safe area view\",\n editable: true,\n required: false,\n options: [\"padding\", \"margin\"],\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: \"padding\",\n },\n },\n};\n"],"mappings":";;;;;;;AAAA;;AACO,MAAMA,SAAS,GAAG;EACrBC,IAAI,EAAE,cADe;EAErBC,GAAG,EAAE,cAFgB;EAGrBC,WAAW,EAAE,qCAHQ;EAIrBC,QAAQ,EAAEC,sBAAA,CAAgBC,UAJL;EAKrBC,KAAK,EAAE;IACHC,KAAK,EAAE;MACHC,KAAK,EAAEC,aAAA,CAAOC,KADX;MAEHV,IAAI,EAAE,OAFH;MAGHW,KAAK,EAAE,OAHJ;MAIHT,WAAW,EAAE,6CAJV;MAKHU,QAAQ,EAAE,IALP;MAMHC,QAAQ,EAAE,KANP;MAOHC,QAAQ,EAAEC,iBAAA,CAAWC,SAPlB;MAQHC,QAAQ,EAAEC,iBAAA,CAAWC,MARlB;MASHC,OAAO,EAAE,CAAC,OAAD,EAAU,QAAV,EAAoB,MAApB,EAA4B,KAA5B,CATN;MAUHC,YAAY,EAAE,CAAC,OAAD,EAAU,QAAV,EAAoB,MAApB,EAA4B,KAA5B;IAVX,CADJ;IAaHC,IAAI,EAAE;MACFd,KAAK,EAAEC,aAAA,CAAOC,KADZ;MAEFV,IAAI,EAAE,MAFJ;MAGFW,KAAK,EAAE,MAHL;MAIFT,WAAW,EAAE,6BAJX;MAKFU,QAAQ,EAAE,IALR;MAMFC,QAAQ,EAAE,KANR;MAOFO,OAAO,EAAE,CAAC,SAAD,EAAY,QAAZ,CAPP;MAQFN,QAAQ,EAAEC,iBAAA,CAAWC,SARnB;MASFC,QAAQ,EAAEC,iBAAA,CAAWC,MATnB;MAUFE,YAAY,EAAE;IAVZ;EAbH;AALc,CAAlB"}
|
|
@@ -13,7 +13,18 @@ const SEED_DATA_PROPS = {
|
|
|
13
13
|
name: "accessibilityLabel",
|
|
14
14
|
label: "accessibilityLabel",
|
|
15
15
|
description: "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.",
|
|
16
|
-
editable:
|
|
16
|
+
editable: true,
|
|
17
|
+
required: false,
|
|
18
|
+
formType: _types.FORM_TYPES.string,
|
|
19
|
+
propType: _types.PROP_TYPES.STRING,
|
|
20
|
+
defaultValue: null
|
|
21
|
+
},
|
|
22
|
+
accessibilityHint: {
|
|
23
|
+
group: _types.GROUPS.accessibility,
|
|
24
|
+
name: "accessibilityHint",
|
|
25
|
+
label: "accessibilityHint",
|
|
26
|
+
description: "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.",
|
|
27
|
+
editable: true,
|
|
17
28
|
required: false,
|
|
18
29
|
formType: _types.FORM_TYPES.string,
|
|
19
30
|
propType: _types.PROP_TYPES.STRING,
|
|
@@ -25,7 +36,7 @@ const SEED_DATA_PROPS = {
|
|
|
25
36
|
label: "accessibilityRole",
|
|
26
37
|
description: "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",
|
|
27
38
|
options: ["none", "button", "link", "header", "search", "image", "key", "text", "summary", "imagebutton", "adjustable"],
|
|
28
|
-
editable:
|
|
39
|
+
editable: true,
|
|
29
40
|
required: false,
|
|
30
41
|
formType: _types.FORM_TYPES.flatArray,
|
|
31
42
|
propType: _types.PROP_TYPES.STRING,
|
|
@@ -35,8 +46,8 @@ const SEED_DATA_PROPS = {
|
|
|
35
46
|
group: _types.GROUPS.accessibility,
|
|
36
47
|
name: "accessible",
|
|
37
48
|
label: "accessible",
|
|
38
|
-
description: "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.",
|
|
39
|
-
editable:
|
|
49
|
+
description: "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.",
|
|
50
|
+
editable: true,
|
|
40
51
|
required: false,
|
|
41
52
|
formType: _types.FORM_TYPES.boolean,
|
|
42
53
|
propType: _types.PROP_TYPES.BOOLEAN,
|
|
@@ -47,7 +58,7 @@ const SEED_DATA_PROPS = {
|
|
|
47
58
|
name: "adjustsFontSizeToFit",
|
|
48
59
|
label: "adjustsFontSizeToFit",
|
|
49
60
|
description: "Specifies whether fonts should be scaled down automatically to fit given style constraints.",
|
|
50
|
-
editable:
|
|
61
|
+
editable: true,
|
|
51
62
|
required: false,
|
|
52
63
|
formType: _types.FORM_TYPES.boolean,
|
|
53
64
|
propType: _types.PROP_TYPES.BOOLEAN,
|
|
@@ -58,7 +69,7 @@ const SEED_DATA_PROPS = {
|
|
|
58
69
|
name: "allowFontScaling",
|
|
59
70
|
label: "allowFontScaling",
|
|
60
71
|
description: "Specifies whether fonts should scale to respect Text Size accessibility settings. The default is true.",
|
|
61
|
-
editable:
|
|
72
|
+
editable: true,
|
|
62
73
|
required: false,
|
|
63
74
|
formType: _types.FORM_TYPES.boolean,
|
|
64
75
|
propType: _types.PROP_TYPES.BOOLEAN,
|
|
@@ -68,9 +79,9 @@ const SEED_DATA_PROPS = {
|
|
|
68
79
|
group: _types.GROUPS.advanced,
|
|
69
80
|
name: "dataDetectorType",
|
|
70
81
|
label: "dataDetectorType",
|
|
71
|
-
description: "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",
|
|
82
|
+
description: "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",
|
|
72
83
|
options: ["phoneNumber", "link", "email", "none", "all"],
|
|
73
|
-
editable:
|
|
84
|
+
editable: true,
|
|
74
85
|
required: false,
|
|
75
86
|
formType: _types.FORM_TYPES.flatArray,
|
|
76
87
|
propType: _types.PROP_TYPES.STRING,
|
|
@@ -81,7 +92,7 @@ const SEED_DATA_PROPS = {
|
|
|
81
92
|
name: "disabled",
|
|
82
93
|
label: "disabled",
|
|
83
94
|
description: "Specifies the disabled state of the text view for testing purposes",
|
|
84
|
-
editable:
|
|
95
|
+
editable: true,
|
|
85
96
|
required: false,
|
|
86
97
|
formType: _types.FORM_TYPES.boolean,
|
|
87
98
|
propType: _types.PROP_TYPES.BOOLEAN,
|
|
@@ -104,25 +115,21 @@ const SEED_DATA_PROPS = {
|
|
|
104
115
|
name: "maxFontSizeMultiplier",
|
|
105
116
|
label: "maxFontSizeMultiplier",
|
|
106
117
|
description: "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",
|
|
107
|
-
editable:
|
|
118
|
+
editable: true,
|
|
108
119
|
required: false,
|
|
109
120
|
formType: _types.FORM_TYPES.number,
|
|
110
121
|
propType: _types.PROP_TYPES.NUMBER,
|
|
111
122
|
defaultValue: null
|
|
112
123
|
},
|
|
113
|
-
|
|
114
|
-
group: _types.GROUPS.
|
|
115
|
-
name: "
|
|
116
|
-
label: "
|
|
117
|
-
description: "
|
|
118
|
-
editable:
|
|
124
|
+
nativeID: {
|
|
125
|
+
group: _types.GROUPS.accessibility,
|
|
126
|
+
name: "nativeID",
|
|
127
|
+
label: "nativeID",
|
|
128
|
+
description: "Used to locate this view from native code.",
|
|
129
|
+
editable: true,
|
|
119
130
|
required: false,
|
|
120
|
-
formType: _types.FORM_TYPES.
|
|
121
|
-
propType: _types.PROP_TYPES.
|
|
122
|
-
min: 0.01,
|
|
123
|
-
step: 0.01,
|
|
124
|
-
precision: 2,
|
|
125
|
-
max: 1.0,
|
|
131
|
+
formType: _types.FORM_TYPES.string,
|
|
132
|
+
propType: _types.PROP_TYPES.STRING,
|
|
126
133
|
defaultValue: null
|
|
127
134
|
},
|
|
128
135
|
numberOfLines: {
|
|
@@ -143,7 +150,7 @@ const SEED_DATA_PROPS = {
|
|
|
143
150
|
name: "selectable",
|
|
144
151
|
label: "selectable",
|
|
145
152
|
description: "Lets the user select text, to use the native copy and paste functionality.",
|
|
146
|
-
editable:
|
|
153
|
+
editable: true,
|
|
147
154
|
required: false,
|
|
148
155
|
formType: _types.FORM_TYPES.boolean,
|
|
149
156
|
propType: _types.PROP_TYPES.BOOLEAN,
|
|
@@ -154,7 +161,7 @@ const SEED_DATA_PROPS = {
|
|
|
154
161
|
name: "selectionColor",
|
|
155
162
|
label: "selectionColor",
|
|
156
163
|
description: "The highlight color of the text.",
|
|
157
|
-
editable:
|
|
164
|
+
editable: true,
|
|
158
165
|
required: false,
|
|
159
166
|
formType: _types.FORM_TYPES.color,
|
|
160
167
|
propType: _types.PROP_TYPES.THEME,
|
|
@@ -165,7 +172,7 @@ const SEED_DATA_PROPS = {
|
|
|
165
172
|
name: "suppressHighlighting",
|
|
166
173
|
label: "suppressHighlighting",
|
|
167
174
|
description: "When true, no visual change is made when text is pressed down. By default, a gray oval highlights the text on press down.",
|
|
168
|
-
editable:
|
|
175
|
+
editable: true,
|
|
169
176
|
required: false,
|
|
170
177
|
formType: _types.FORM_TYPES.boolean,
|
|
171
178
|
propType: _types.PROP_TYPES.BOOLEAN,
|
|
@@ -177,7 +184,7 @@ const SEED_DATA_PROPS = {
|
|
|
177
184
|
label: "textBreakStrategy",
|
|
178
185
|
description: "Set text break strategy on Android API Level 23+, possible values are simple, highQuality, balanced The default value is highQuality.",
|
|
179
186
|
options: ["simple", "highQuality", "balanced"],
|
|
180
|
-
editable:
|
|
187
|
+
editable: true,
|
|
181
188
|
required: false,
|
|
182
189
|
formType: _types.FORM_TYPES.flatArray,
|
|
183
190
|
propType: _types.PROP_TYPES.STRING,
|