@draftbit/core 43.6.1-807284.0 → 43.6.1-81b417.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.
@@ -1 +1 @@
1
- {"version":3,"sources":["ProgressIndicator.tsx"],"names":["ProgressIndicator","numberOfSteps","currentStep","currentStepStrokeWidth","stepStrokeCurrentColor","stepIndicatorSize","currentStepIndicatorSize","stepIndicatorCurrentColor","stepIndicatorLabelCurrentColor","stepIndicatorLabelFontSize","stepNumberFinishedColor","stepNumberUnfinishedColor","unfinishedColor","finishedColor","theme","currentPosition","stepStrokeFinishedColor","stepStrokeUnFinishedColor","separatorFinishedColor","separatorUnFinishedColor","stepIndicatorFinishedColor","stepIndicatorUnFinishedColor","stepIndicatorLabelUnFinishedColor","stepIndicatorLabelFinishedColor","labelFontFamily","typography","body1","fontFamily"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;AAqBA,MAAMA,iBAAkC,GAAG,QAerC;AAAA,MAfsC;AAC1CC,IAAAA,aAD0C;AAE1CC,IAAAA,WAF0C;AAG1CC,IAAAA,sBAAsB,GAAG,CAHiB;AAI1CC,IAAAA,sBAAsB,GAAG,SAJiB;AAK1CC,IAAAA,iBAL0C;AAM1CC,IAAAA,wBAN0C;AAO1CC,IAAAA,yBAP0C;AAQ1CC,IAAAA,8BAR0C;AAS1CC,IAAAA,0BAA0B,GAAG,EATa;AAU1CC,IAAAA,uBAAuB,GAAG,eAVgB;AAW1CC,IAAAA,yBAAyB,GAAG,SAXc;AAY1CC,IAAAA,eAAe,GAAG,OAZwB;AAa1CC,IAAAA,aAAa,GAAG,SAb0B;AAc1CC,IAAAA;AAd0C,GAetC;AACJ,QAAMC,eAAe,GAAGb,WAAW,GAAG,CAAtC;AACA,sBACE,oBAAC,sBAAD;AACE,IAAA,SAAS,EAAED,aADb;AAEE,IAAA,eAAe,EAAEc,eAFnB;AAGE,IAAA,YAAY,EAAE;AACZV,MAAAA,iBADY;AAEZC,MAAAA,wBAAwB,EAAEA,wBAAwB,GAC9CA,wBAD8C,GAE9CD,iBAJQ;AAKZW,MAAAA,uBAAuB,EAAEH,aALb;AAMZI,MAAAA,yBAAyB,EAAEL,eANf;AAOZM,MAAAA,sBAAsB,EAAEL,aAPZ;AAQZM,MAAAA,wBAAwB,EAAEP,eARd;AASZQ,MAAAA,0BAA0B,EAAEP,aAThB;AAUZQ,MAAAA,4BAA4B,EAAET,eAVlB;AAWZT,MAAAA,sBAXY;AAYZC,MAAAA,sBAAsB,EACpBA,sBAAsB,IAAIG,yBAbhB;AAcZe,MAAAA,iCAAiC,EAAEX,yBAdvB;AAeZY,MAAAA,+BAA+B,EAAEb,uBAfrB;AAgBZH,MAAAA,yBAAyB,EAAEA,yBAAyB,IAAIK,eAhB5C;AAiBZJ,MAAAA,8BAA8B,EAC5BA,8BAA8B,IAAIG,yBAlBxB;AAmBZF,MAAAA,0BAnBY;AAoBZe,MAAAA,eAAe,EAAEV,KAAK,CAACW,UAAN,CAAiBC,KAAjB,CAAuBC;AApB5B;AAHhB,IADF;AA4BD,CA7CD;;eA+Ce,wBAAU3B,iBAAV,C","sourcesContent":["import * as React from \"react\";\nimport StepIndicator from \"./StepIndicator\";\nimport { withTheme } from \"../theming\";\nimport themeT from \"../styles/DefaultTheme\";\nimport { colorTypes } from \"@draftbit/types\";\n\ntype Props = {\n numberOfSteps: number;\n currentStep: number;\n currentStepStrokeWidth?: number;\n stepStrokeCurrentColor?: colorTypes;\n stepIndicatorSize?: number;\n currentStepIndicatorSize?: number;\n stepIndicatorCurrentColor?: colorTypes;\n stepIndicatorLabelCurrentColor?: colorTypes;\n stepIndicatorLabelFontSize?: number;\n stepNumberFinishedColor?: colorTypes;\n stepNumberUnfinishedColor?: colorTypes;\n unfinishedColor?: colorTypes;\n finishedColor?: colorTypes;\n theme: typeof themeT;\n};\n\nconst ProgressIndicator: React.FC<Props> = ({\n numberOfSteps,\n currentStep,\n currentStepStrokeWidth = 3,\n stepStrokeCurrentColor = \"primary\",\n stepIndicatorSize,\n currentStepIndicatorSize,\n stepIndicatorCurrentColor,\n stepIndicatorLabelCurrentColor,\n stepIndicatorLabelFontSize = 12,\n stepNumberFinishedColor = \"strongInverse\",\n stepNumberUnfinishedColor = \"primary\",\n unfinishedColor = \"light\",\n finishedColor = \"primary\",\n theme,\n}) => {\n const currentPosition = currentStep - 1;\n return (\n <StepIndicator\n stepCount={numberOfSteps}\n currentPosition={currentPosition}\n customStyles={{\n stepIndicatorSize,\n currentStepIndicatorSize: currentStepIndicatorSize\n ? currentStepIndicatorSize\n : stepIndicatorSize,\n stepStrokeFinishedColor: finishedColor,\n stepStrokeUnFinishedColor: unfinishedColor,\n separatorFinishedColor: finishedColor,\n separatorUnFinishedColor: unfinishedColor,\n stepIndicatorFinishedColor: finishedColor,\n stepIndicatorUnFinishedColor: unfinishedColor,\n currentStepStrokeWidth,\n stepStrokeCurrentColor:\n stepStrokeCurrentColor || stepIndicatorCurrentColor,\n stepIndicatorLabelUnFinishedColor: stepNumberUnfinishedColor,\n stepIndicatorLabelFinishedColor: stepNumberFinishedColor,\n stepIndicatorCurrentColor: stepIndicatorCurrentColor || unfinishedColor,\n stepIndicatorLabelCurrentColor:\n stepIndicatorLabelCurrentColor || stepNumberUnfinishedColor,\n stepIndicatorLabelFontSize,\n labelFontFamily: theme.typography.body1.fontFamily,\n }}\n />\n );\n};\n\nexport default withTheme(ProgressIndicator);\n"]}
1
+ {"version":3,"sources":["ProgressIndicator.js"],"names":["ProgressIndicator","numberOfSteps","currentStep","currentStepStrokeWidth","stepStrokeCurrentColor","stepIndicatorSize","currentStepIndicatorSize","stepIndicatorCurrentColor","stepIndicatorLabelCurrentColor","stepIndicatorLabelFontSize","stepNumberFinishedColor","stepNumberUnfinishedColor","unfinishedColor","finishedColor","theme","currentPosition","React","createElement","StepIndicator","stepCount","customStyles","stepStrokeFinishedColor","stepStrokeUnFinishedColor","separatorFinishedColor","separatorUnFinishedColor","stepIndicatorFinishedColor","stepInd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EAAEhB,yBAb4E;AAc/GiB,MAAAA,+BAA+B,EAAElB,uBAd8E;AAe/GH,MAAAA,yBAAyB,EAAEA,yBAAyB,IAAIK,eAfuD;AAgB/GJ,MAAAA,8BAA8B,EAAEA,8BAA8B,IAAIG,yBAhB6C;AAiB/GF,MAAAA,0BAjB+G;AAkB/GoB,MAAAA,eAAe,EAAEf,KAAK,CAACgB,UAAN,CAAiBC,KAAjB,CAAuBC;AAlBuE;AAA5E,GAAnC,CAAR;AAoBH,CAtBD;;eAuBe,wBAAUhC,iBAAV,C","sourcesContent":["import * as React from \"react\";\nimport StepIndicator from \"./StepIndicator\";\nimport { withTheme } from \"../theming\";\nconst ProgressIndicator = ({ numberOfSteps, currentStep, currentStepStrokeWidth = 3, stepStrokeCurrentColor = \"primary\", stepIndicatorSize, currentStepIndicatorSize, stepIndicatorCurrentColor, stepIndicatorLabelCurrentColor, stepIndicatorLabelFontSize = 12, stepNumberFinishedColor = \"strongInverse\", stepNumberUnfinishedColor = \"primary\", unfinishedColor = \"light\", finishedColor = \"primary\", theme, }) => {\n const currentPosition = currentStep - 1;\n return (React.createElement(StepIndicator, { stepCount: numberOfSteps, currentPosition: currentPosition, customStyles: {\n stepIndicatorSize,\n currentStepIndicatorSize: currentStepIndicatorSize\n ? currentStepIndicatorSize\n : stepIndicatorSize,\n stepStrokeFinishedColor: finishedColor,\n stepStrokeUnFinishedColor: unfinishedColor,\n separatorFinishedColor: finishedColor,\n separatorUnFinishedColor: unfinishedColor,\n stepIndicatorFinishedColor: finishedColor,\n stepIndicatorUnFinishedColor: unfinishedColor,\n currentStepStrokeWidth,\n stepStrokeCurrentColor: stepStrokeCurrentColor || stepIndicatorCurrentColor,\n stepIndicatorLabelUnFinishedColor: stepNumberUnfinishedColor,\n stepIndicatorLabelFinishedColor: stepNumberFinishedColor,\n stepIndicatorCurrentColor: stepIndicatorCurrentColor || unfinishedColor,\n stepIndicatorLabelCurrentColor: stepIndicatorLabelCurrentColor || stepNumberUnfinishedColor,\n stepIndicatorLabelFontSize,\n labelFontFamily: theme.typography.body1.fontFamily,\n } }));\n};\nexport default withTheme(ProgressIndicator);\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA","sourcesContent":["export { injectIcon } from \"./interfaces/Icon\";\nexport { withTheme, ThemeProvider } from \"./theming\";\nexport { default as Provider } from \"./Provider\";\nexport { default as DefaultTheme } from \"./styles/DefaultTheme\";\nexport { Link } from \"./components/Text\";\nexport { default as Banner } from \"./components/Banner\";\nexport { ButtonSolid, ButtonOutline } from \"./components/Button\";\nexport { default as Avatar } from \"./components/CircleImage\";\nexport { default as AvatarEdit } from \"./components/AvatarEdit\";\nexport { default as Card } from \"./components/Card\";\nexport { default as Carousel } from \"./components/Carousel\";\nexport { Checkbox, CheckboxGroup, CheckboxRow } from \"./components/Checkbox\";\nexport { default as CircleImage } from \"./components/CircleImage\";\nexport { default as Container } from \"./components/Container\";\nexport { default as Divider } from \"./components/Divider\";\nexport { default as FAB } from \"./components/FAB\";\nexport { default as FieldSearchBarFull } from \"./components/FieldSearchBarFull\";\nexport { default as IconButton } from \"./components/IconButton\";\nexport { default as Image } from \"./components/Image\";\nexport { default as NumberInput } from \"./components/NumberInput\";\nexport { default as ScreenContainer } from \"./components/ScreenContainer\";\nexport { default as StarRating } from \"./components/StarRating\";\nexport { default as Surface } from \"./components/Surface\";\nexport { default as Switch, SwitchRow } from \"./components/Switch\";\nexport { default as TextField } from \"./components/TextField\";\nexport { default as ToggleButton } from \"./components/ToggleButton\";\nexport { default as Touchable } from \"./components/Touchable\";\nexport { AccordionGroup, AccordionItem } from \"./components/Accordion\";\nexport { ActionSheet, ActionSheetItem, ActionSheetCancel, } from \"./components/ActionSheet\";\nexport { Swiper, SwiperItem } from \"./components/Swiper\";\nexport { Center, Circle, Square, Row, Stack, Spacer, } from \"./components/Layout\";\nexport { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from \"./components/RadioButton/index\";\n/* Deprecated: Fix or Delete! */\nexport { default as Button } from \"./components/DeprecatedButton\";\nexport { default as CardBlock } from \"./components/CardBlock\";\nexport { default as CardContainer } from \"./components/CardContainer\";\nexport { default as CardContainerRating } from \"./components/CardContainerRating\";\nexport { default as CardInline } from \"./components/CardInline\";\nexport { default as DatePicker } from \"./components/DatePicker/DatePicker\";\nexport { default as HeaderLarge } from \"./components/HeaderLarge\";\nexport { default as HeaderMedium } from \"./components/HeaderMedium\";\nexport { default as HeaderOverline } from \"./components/HeaderOverline\";\nexport { default as Picker } from \"./components/Picker/Picker\";\nexport { default as ProgressBar } from \"./components/ProgressBar\";\nexport { default as ProgressCircle } from \"./components/ProgressCircle\";\nexport { default as RowBodyIcon } from \"./components/RowBodyIcon\";\nexport { default as RowHeadlineImageCaption } from \"./components/RowHeadlineImageCaption\";\nexport { default as RowHeadlineImageIcon } from \"./components/RowHeadlineImageIcon\";\nexport { default as Slider } from \"./components/Slider\";\nexport { default as Stepper } from \"./components/Stepper\";\nexport { useAuthState } from \"./components/useAuthState\";\n"]}
1
+ {"version":3,"sources":["index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAKA;;AAEA;;AASA;;AAQA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA","sourcesContent":["export { injectIcon } from \"./interfaces/Icon\";\nexport { withTheme, ThemeProvider } from \"./theming\";\nexport { default as Provider } from \"./Provider\";\nexport { default as DefaultTheme } from \"./styles/DefaultTheme\";\n\nexport { Link } from \"./components/Text\";\nexport { default as Banner } from \"./components/Banner\";\nexport { ButtonSolid, ButtonOutline } from \"./components/Button\";\nexport { default as Avatar } from \"./components/CircleImage\";\nexport { default as AvatarEdit } from \"./components/AvatarEdit\";\nexport { default as Card } from \"./components/Card\";\nexport { default as Carousel } from \"./components/Carousel\";\nexport { Checkbox, CheckboxGroup, CheckboxRow } from \"./components/Checkbox\";\nexport { default as CircleImage } from \"./components/CircleImage\";\nexport { default as Container } from \"./components/Container\";\nexport { default as Divider } from \"./components/Divider\";\nexport { default as FAB } from \"./components/FAB\";\nexport { default as FieldSearchBarFull } from \"./components/FieldSearchBarFull\";\nexport { default as IconButton } from \"./components/IconButton\";\nexport { default as Image } from \"./components/Image\";\nexport { default as NumberInput } from \"./components/NumberInput\";\nexport { default as ScreenContainer } from \"./components/ScreenContainer\";\nexport { default as StarRating } from \"./components/StarRating\";\nexport { default as Surface } from \"./components/Surface\";\nexport { default as Switch, SwitchRow } from \"./components/Switch\";\nexport { default as TextField } from \"./components/TextField\";\nexport { default as ToggleButton } from \"./components/ToggleButton\";\nexport { default as Touchable } from \"./components/Touchable\";\nexport { AccordionGroup, AccordionItem } from \"./components/Accordion\";\nexport {\n ActionSheet,\n ActionSheetItem,\n ActionSheetCancel,\n} from \"./components/ActionSheet\";\nexport { Swiper, SwiperItem } from \"./components/Swiper\";\n\nexport {\n Center,\n Circle,\n Square,\n Row,\n Stack,\n Spacer,\n} from \"./components/Layout\";\n\nexport {\n RadioButton,\n RadioButtonGroup,\n RadioButtonRow,\n RadioButtonFieldGroup,\n} from \"./components/RadioButton/index\";\n\n/* Deprecated: Fix or Delete! */\nexport { default as Button } from \"./components/DeprecatedButton\";\nexport { default as CardBlock } from \"./components/CardBlock\";\nexport { default as CardContainer } from \"./components/CardContainer\";\nexport { default as CardContainerRating } from \"./components/CardContainerRating\";\nexport { default as CardInline } from \"./components/CardInline\";\nexport { default as DatePicker } from \"./components/DatePicker/DatePicker\";\nexport { default as HeaderLarge } from \"./components/HeaderLarge\";\nexport { default as HeaderMedium } from \"./components/HeaderMedium\";\nexport { default as HeaderOverline } from \"./components/HeaderOverline\";\nexport { default as Picker } from \"./components/Picker/Picker\";\nexport { default as ProgressBar } from \"./components/ProgressBar\";\nexport { default as ProgressCircle } from \"./components/ProgressCircle\";\nexport { default as RowBodyIcon } from \"./components/RowBodyIcon\";\nexport { default as RowHeadlineImageCaption } from \"./components/RowHeadlineImageCaption\";\nexport { default as RowHeadlineImageIcon } from \"./components/RowHeadlineImageIcon\";\nexport { default as Slider } from \"./components/Slider\";\nexport { default as Stepper } from \"./components/Stepper\";\nexport { useAuthState } from \"./components/useAuthState\";\n"]}
@@ -24,7 +24,8 @@ const SEED_DATA = {
24
24
  defaultValue: "Option"
25
25
  }),
26
26
  color: (0, _types.createColorProp)({
27
- label: "Font Color"
27
+ label: "Font Color",
28
+ defaultValue: "strong"
28
29
  })
29
30
  }
30
31
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["ActionSheetItem.ts"],"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","button","triggers","Triggers","OnPress","layout","textAlign","props","onPress","label","group","GROUPS","basic","defaultValue","color"],"mappings":";;;;;;;AAAA;;AASO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,mBADiB;AAEvBC,EAAAA,GAAG,EAAE,iBAFkB;AAGvBC,EAAAA,WAAW,EAAE,mBAHU;AAIvBC,EAAAA,QAAQ,EAAEC,uBAAgBC,MAJH;AAKvBC,EAAAA,QAAQ,EAAE,CAACC,gBAASC,OAAV,CALa;AAMvBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,SAAS,EAAE;AADL,GANe;AASvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE,8BADJ;AAELC,IAAAA,KAAK,EAAE,2BAAe;AACpBC,MAAAA,KAAK,EAAEC,cAAOC,KADM;AAEpBH,MAAAA,KAAK,EAAE,OAFa;AAGpBI,MAAAA,YAAY,EAAE;AAHM,KAAf,CAFF;AAOLC,IAAAA,KAAK,EAAE,4BAAgB;AACrBL,MAAAA,KAAK,EAAE;AADc,KAAhB;AAPF;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":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","button","triggers","Triggers","OnPress","layout","textAlign","props","onPress","label","group","GROUPS","basic","defaultValue","color"],"mappings":";;;;;;;AAAA;;AASO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,mBADiB;AAEvBC,EAAAA,GAAG,EAAE,iBAFkB;AAGvBC,EAAAA,WAAW,EAAE,mBAHU;AAIvBC,EAAAA,QAAQ,EAAEC,uBAAgBC,MAJH;AAKvBC,EAAAA,QAAQ,EAAE,CAACC,gBAASC,OAAV,CALa;AAMvBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,SAAS,EAAE;AADL,GANe;AASvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE,8BADJ;AAELC,IAAAA,KAAK,EAAE,2BAAe;AACpBC,MAAAA,KAAK,EAAEC,cAAOC,KADM;AAEpBH,MAAAA,KAAK,EAAE,OAFa;AAGpBI,MAAAA,YAAY,EAAE;AAHM,KAAf,CAFF;AAOLC,IAAAA,KAAK,EAAE,4BAAgB;AACrBL,MAAAA,KAAK,EAAE,YADc;AAErBI,MAAAA,YAAY,EAAE;AAFO,KAAhB;AAPF;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"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["CardBlock.js"],"names":["SEED_DATA_PROPS","image","group","GROUPS","data","label","description","formType","FORM_TYPES","propType","PROP_TYPES","ASSET","defaultValue","editable","required","title","string","STRING","leftDescription","rightDescription","aspectRatio","basic","NUMBER","titleCentered","boolean","BOOLEAN","elevation","SEED_DATA","name","tag","category","COMPONENT_TYPES","card","props","numColumns","icon"],"mappings":";;;;;;;AAAA;;AACA,MAAMA,eAAe,GAAG;AACpBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,KAAK,EAAEC,cAAOC,IADX;AAEHC,IAAAA,KAAK,EAAE,OAFJ;AAGHC,IAAAA,WAAW,EAAE,OAHV;AAIHC,IAAAA,QAAQ,EAAEC,kBAAWP,KAJlB;AAKHQ,IAAAA,QAAQ,EAAEC,kBAAWC,KALlB;AAMHC,IAAAA,YAAY,EAAE,IANX;AAOHC,IAAAA,QAAQ,EAAE,IAPP;AAQHC,IAAAA,QAAQ,EAAE;AARP,GADa;AAWpBC,EAAAA,KAAK,EAAE;AACHb,IAAAA,KAAK,EAAEC,cAAOC,IADX;AAEHC,IAAAA,KAAK,EAAE,OAFJ;AAGHC,IAAAA,WAAW,EAAE,iBAHV;AAIHC,IAAAA,QAAQ,EAAEC,kBAAWQ,MAJlB;AAKHP,IAAAA,QAAQ,EAAEC,kBAAWO,MALlB;AAMHL,IAAAA,YAAY,EAAE,4BANX;AAOHC,IAAAA,Q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EAAE,4FAHjB;AAIIwB,EAAAA,QAAQ,EAAEC,uBAAgBC,IAJ9B;AAKIC,EAAAA,KAAK,EAAE,EACH,GAAGjC,eADA;AAEHmC,IAAAA,IAAI,EAAE;AACFjC,MAAAA,KAAK,EAAEC,cAAOkB,KADZ;AAEFhB,MAAAA,KAAK,EAAE,MAFL;AAGFC,MAAAA,WAAW,EAAE,kCAHX;AAIFC,MAAAA,QAAQ,EAAEC,kBAAW2B,IAJnB;AAKF1B,MAAAA,QAAQ,EAAEC,kBAAWO,MALnB;AAMFL,MAAAA,YAAY,EAAE,IANZ;AAOFC,MAAAA,QAAQ,EAAE,IAPR;AAQFC,MAAAA,QAAQ,EAAE;AARR,KAFH;AAYHoB,IAAAA,UAAU,EAAE,iCAAqB;AAC7BtB,MAAAA,YAAY,EAAE;AADe,KAArB;AAZT;AALX,CAnCqB,CAAlB","sourcesContent":["import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, createNumColumnsType, } from \"@draftbit/types\";\nconst SEED_DATA_PROPS = {\n image: {\n group: GROUPS.data,\n label: \"Image\",\n description: \"Image\",\n formType: FORM_TYPES.image,\n propType: PROP_TYPES.ASSET,\n defaultValue: null,\n editable: true,\n required: false,\n },\n title: {\n group: GROUPS.data,\n label: \"Title\",\n description: \"Text to display\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"Beautiful West Coast Villa\",\n editable: true,\n required: false,\n },\n leftDescription: {\n group: GROUPS.data,\n label: \"Left description\",\n description: \"Text to display on the left\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"San Diego\",\n editable: true,\n required: false,\n },\n rightDescription: {\n group: GROUPS.data,\n label: \"Right description\",\n description: \"Text to display on the right\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"$100\",\n editable: true,\n required: false,\n },\n aspectRatio: {\n group: GROUPS.basic,\n label: \"Aspect ratio\",\n description: \"Aspect ratio of the image\",\n formType: FORM_TYPES.aspectRatio,\n propType: PROP_TYPES.NUMBER,\n defaultValue: 1.5,\n editable: true,\n required: false,\n },\n titleCentered: {\n group: GROUPS.basic,\n label: \"Title centered\",\n description: \"Whether to center the title\",\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: false,\n editable: true,\n required: false,\n },\n elevation: createElevationType(2),\n};\nexport const SEED_DATA = [\n {\n name: \"Small Card\",\n tag: \"CardBlock\",\n description: \"An elevated card with a title and description, that takes up one third of its container.\",\n category: COMPONENT_TYPES.card,\n props: {\n ...SEED_DATA_PROPS,\n numColumns: createNumColumnsType({\n defaultValue: 1,\n }),\n },\n },\n {\n name: \"Medium Block Card\",\n tag: \"CardBlock\",\n description: \"An elevated card with a title and description, that takes up one half of its container.\",\n category: COMPONENT_TYPES.card,\n props: {\n ...SEED_DATA_PROPS,\n icon: {\n group: GROUPS.basic,\n label: \"Icon\",\n description: \"Icon to display on the top right\",\n formType: FORM_TYPES.icon,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n editable: true,\n required: true,\n },\n numColumns: createNumColumnsType({\n defaultValue: 2,\n }),\n },\n },\n {\n name: \"Large Block Card\",\n tag: \"CardBlock\",\n description: \"An elevated card with a title and description, that takes up the full width its container.\",\n category: COMPONENT_TYPES.card,\n props: {\n ...SEED_DATA_PROPS,\n icon: {\n group: GROUPS.basic,\n label: \"Icon\",\n description: \"Icon to display on the top right\",\n formType: FORM_TYPES.icon,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n editable: true,\n required: true,\n },\n numColumns: createNumColumnsType({\n defaultValue: 3,\n }),\n },\n },\n];\n"]}
1
+ {"version":3,"sources":["CardBlock.ts"],"names":["SEED_DATA_PROPS","image","group","GROUPS","data","label","description","formType","FORM_TYPES","propType","PROP_TYPES","ASSET","defaultValue","editable","required","title","string","STRING","leftDescription","rightDescription","aspectRatio","basic","NUMBER","titleCentered","boolean","BOOLEAN","elevation","SEED_DATA","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\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n createElevationType,\n createNumColumnsType,\n} from \"@draftbit/types\";\n\nconst SEED_DATA_PROPS = {\n image: {\n group: GROUPS.data,\n label: \"Image\",\n description: \"Image\",\n formType: FORM_TYPES.image,\n propType: PROP_TYPES.ASSET,\n defaultValue: null,\n editable: true,\n required: false,\n },\n title: {\n group: GROUPS.data,\n label: \"Title\",\n description: \"Text to display\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"Beautiful West Coast Villa\",\n editable: true,\n required: false,\n },\n leftDescription: {\n group: GROUPS.data,\n label: \"Left description\",\n description: \"Text to display on the left\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"San Diego\",\n editable: true,\n required: false,\n },\n rightDescription: {\n group: GROUPS.data,\n label: \"Right description\",\n description: \"Text to display on the right\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"$100\",\n editable: true,\n required: false,\n },\n aspectRatio: {\n group: GROUPS.basic,\n label: \"Aspect ratio\",\n description: \"Aspect ratio of the image\",\n formType: FORM_TYPES.aspectRatio,\n propType: PROP_TYPES.NUMBER,\n defaultValue: 1.5,\n editable: true,\n required: false,\n },\n titleCentered: {\n group: GROUPS.basic,\n label: \"Title centered\",\n description: \"Whether to center the title\",\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: false,\n editable: true,\n required: false,\n },\n elevation: createElevationType(2),\n};\n\nexport const SEED_DATA = [\n {\n name: \"Small Card\",\n tag: \"CardBlock\",\n description:\n \"An elevated card with a title and description, that takes up one third of its container.\",\n category: COMPONENT_TYPES.card,\n props: {\n ...SEED_DATA_PROPS,\n numColumns: createNumColumnsType({\n defaultValue: 1,\n }),\n },\n },\n {\n name: \"Medium Block Card\",\n tag: \"CardBlock\",\n description:\n \"An elevated card with a title and description, that takes up one half of its container.\",\n category: COMPONENT_TYPES.card,\n props: {\n ...SEED_DATA_PROPS,\n icon: {\n group: GROUPS.basic,\n label: \"Icon\",\n description: \"Icon to display on the top right\",\n formType: FORM_TYPES.icon,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n editable: true,\n required: true,\n },\n numColumns: createNumColumnsType({\n defaultValue: 2,\n }),\n },\n },\n {\n name: \"Large Block Card\",\n tag: \"CardBlock\",\n description:\n \"An elevated card with a title and description, that takes up the full width its container.\",\n category: COMPONENT_TYPES.card,\n props: {\n ...SEED_DATA_PROPS,\n icon: {\n group: GROUPS.basic,\n label: \"Icon\",\n description: \"Icon to display on the top right\",\n formType: FORM_TYPES.icon,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n editable: true,\n required: true,\n },\n numColumns: createNumColumnsType({\n defaultValue: 3,\n }),\n },\n },\n];\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["Icon.js"],"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","basic","layout","props","group","GROUPS","data","color","size","label","defaultValue","min","max","step","precision"],"mappings":";;;;;;;AAAA;;AACO,MAAMA,SAAS,GAAG;AACrBC,EAAAA,IAAI,EAAE,MADe;AAErBC,EAAAA,GAAG,EAAE,MAFgB;AAGrBC,EAAAA,WAAW,EAAE,SAHQ;AAIrBC,EAAAA,QAAQ,EAAEC,uBAAgBC,KAJL;AAKrBC,EAAAA,MAAM,EAAE,EALa;AAMrBC,EAAAA,KAAK,EAAE;AACHP,IAAAA,IAAI,EAAE,EACF,GAAG,4BADD;AAEFQ,MAAAA,KAAK,EAAEC,cAAOC;AAFZ,KADH;AAKHC,IAAAA,KAAK,EAAE,6BALJ;AAMHC,IAAAA,IAAI,EAAE,6BAAiB;AACnBJ,MAAAA,KAAK,EAAEC,cAAOJ,KADK;AAEnBQ,MAAAA,KAAK,EAAE,MAFY;AAGnBX,MAAAA,WAAW,EAAE,+BAHM;AAInBY,MAAAA,YAAY,EAAE,EAJK;AAKnBC,MAAAA,GAAG,EAAE,CALc;AAMnBC,MAAAA,GAAG,EAAE,GANc;AAOnBC,MAAAA,IAAI,EAAE,CAPa;AAQnBC,MAAAA,SAAS,EAAE;AARQ,KAAjB;AANH;AANc,CAAlB","sourcesContent":["import { COMPONENT_TYPES, GROUPS, createNumberProp, createColorProp, createIconProp, } from \"@draftbit/types\";\nexport const SEED_DATA = {\n name: \"Icon\",\n tag: \"Icon\",\n description: \"An icon\",\n category: COMPONENT_TYPES.basic,\n layout: {},\n props: {\n name: {\n ...createIconProp(),\n group: GROUPS.data,\n },\n color: createColorProp(),\n size: createNumberProp({\n group: GROUPS.basic,\n label: \"Size\",\n description: \"Width and height of your icon\",\n defaultValue: 24,\n min: 1,\n max: 128,\n step: 1,\n precision: 0,\n }),\n },\n};\n"]}
1
+ {"version":3,"sources":["Icon.ts"],"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","basic","layout","props","group","GROUPS","data","color","size","label","defaultValue","min","max","step","precision"],"mappings":";;;;;;;AAAA;;AAQO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,MADiB;AAEvBC,EAAAA,GAAG,EAAE,MAFkB;AAGvBC,EAAAA,WAAW,EAAE,SAHU;AAIvBC,EAAAA,QAAQ,EAAEC,uBAAgBC,KAJH;AAKvBC,EAAAA,MAAM,EAAE,EALe;AAMvBC,EAAAA,KAAK,EAAE;AACLP,IAAAA,IAAI,EAAE,EACJ,GAAG,4BADC;AAEJQ,MAAAA,KAAK,EAAEC,cAAOC;AAFV,KADD;AAKLC,IAAAA,KAAK,EAAE,6BALF;AAMLC,IAAAA,IAAI,EAAE,6BAAiB;AACrBJ,MAAAA,KAAK,EAAEC,cAAOJ,KADO;AAErBQ,MAAAA,KAAK,EAAE,MAFc;AAGrBX,MAAAA,WAAW,EAAE,+BAHQ;AAIrBY,MAAAA,YAAY,EAAE,EAJO;AAKrBC,MAAAA,GAAG,EAAE,CALgB;AAMrBC,MAAAA,GAAG,EAAE,GANgB;AAOrBC,MAAAA,IAAI,EAAE,CAPe;AAQrBC,MAAAA,SAAS,EAAE;AARU,KAAjB;AAND;AANgB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n GROUPS,\n createNumberProp,\n createColorProp,\n createIconProp,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Icon\",\n tag: \"Icon\",\n description: \"An icon\",\n category: COMPONENT_TYPES.basic,\n layout: {},\n props: {\n name: {\n ...createIconProp(),\n group: GROUPS.data,\n },\n color: createColorProp(),\n size: createNumberProp({\n group: GROUPS.basic,\n label: \"Size\",\n description: \"Width and height of your icon\",\n defaultValue: 24,\n min: 1,\n max: 128,\n step: 1,\n precision: 0,\n }),\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["KeyboardAvoidingView.js"],"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","deprecated","props","enabled","label","editable","required","defaultValue","formType","FORM_TYPES","boolean","propType","PROP_TYPES","BOOLEAN","group","GROUPS","basic","behavior","options","flatArray","STRING","keyboardVerticalOffset","number","NUMBER"],"mappings":";;;;;;;AAAA;;AACO,MAAMA,SAAS,GAAG;AACrBC,EAAAA,IAAI,EAAE,wBADe;AAErBC,EAAAA,GAAG,EAAE,sBAFgB;AAGrBC,EAAAA,WAAW,EAAE,0DAHQ;AAIrBC,EAAAA,QAAQ,EAAEC,uBAAgBC,UAJL;AAKrBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,OAAO,EAAE;AACLC,MAAAA,KAAK,EAAE,QADF;AAELN,MAAAA,WAAW,EAAE,mCAFR;AAGLO,MAAAA,QAAQ,EAAE,IAHL;AAILC,MAAAA,QAAQ,EAAE,IAJL;AAKLC,MAAAA,YAAY,EAAE,IALT;AAMLC,MAAAA,QAAQ,EAAEC,kBAAWC,OANhB;AAOLC,MAAAA,QAAQ,EAAEC,kBAAWC,OAPhB;AAQLC,MAAAA,KAAK,EAAEC,cAAOC;AART,KADN;AAWHC,IAAAA,QAAQ,EAAE;AACNb,MAAAA,KAAK,EAAE,mBADD;AAENN,MAAAA,WAAW,EAAE,uGAFP;AAGNO,MAAAA,QAAQ,EAAE,IAHJ;AAINC,MAAAA,QAAQ,EAAE,IAJJ;AAKNC,MAAAA,YAAY,EAAE,SALR;AAMNW,MAAAA,OAAO,EAAE,CAAC,SAAD,EAAY,UAAZ,EAAwB,QAAxB,CANH;AAONV,MAAAA,QAAQ,EAAEC,kBAAWU,SAPf;AAQNR,MAAAA,QAAQ,EAAEC,kBAAWQ,MARf;AASNN,MAAAA,KAAK,EAAEC,cAAOC;AATR,KAXP;AAsBHK,IAAAA,sBAAsB,EAAE;AACpBjB,MAAAA,KAAK,EAAE,0BADa;AAEpBN,MAAAA,WAAW,EAAE,8DAFO;AAGpBO,MAAAA,QAAQ,EAAE,IAHU;AAIpBC,MAAAA,QAAQ,EAAE,KAJU;AAKpBC,MAAAA,YAAY,EAAE,CALM;AAMpBC,MAAAA,QAAQ,EAAEC,kBAAWa,MAND;AAOpBX,MAAAA,QAAQ,EAAEC,kBAAWW,MAPD;AAQpBT,MAAAA,KAAK,EAAEC,cAAOC;AARM;AAtBrB;AALc,CAAlB","sourcesContent":["import { COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, GROUPS, } from \"@draftbit/types\";\nexport const SEED_DATA = {\n name: \"Keyboard Avoiding View\",\n tag: \"KeyboardAvoidingView\",\n description: \"View that moves out of the way of the virtual keyboard. \",\n category: COMPONENT_TYPES.deprecated,\n props: {\n enabled: {\n label: \"Enable\",\n description: \"Enable the keyboard avoiding view\",\n editable: true,\n required: true,\n defaultValue: true,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n group: GROUPS.basic,\n },\n behavior: {\n label: \"Resizing Behavior\",\n description: \"The behavior for how the keyboard resizing interacts with the rest of the screen. (Default: padding).\",\n editable: true,\n required: true,\n defaultValue: \"padding\",\n options: [\"padding\", \"position\", \"height\"],\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n group: GROUPS.basic,\n },\n keyboardVerticalOffset: {\n label: \"Keyboard Vertical Offset\",\n description: \"The distance between the bottom of the view and the keyboard\",\n editable: true,\n required: false,\n defaultValue: 0,\n formType: FORM_TYPES.number,\n propType: PROP_TYPES.NUMBER,\n group: GROUPS.basic,\n },\n },\n};\n"]}
1
+ {"version":3,"sources":["KeyboardAvoidingView.ts"],"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","deprecated","props","enabled","label","editable","required","defaultValue","formType","FORM_TYPES","boolean","propType","PROP_TYPES","BOOLEAN","group","GROUPS","basic","behavior","options","flatArray","STRING","keyboardVerticalOffset","number","NUMBER"],"mappings":";;;;;;;AAAA;;AAOO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,wBADiB;AAEvBC,EAAAA,GAAG,EAAE,sBAFkB;AAGvBC,EAAAA,WAAW,EAAE,0DAHU;AAIvBC,EAAAA,QAAQ,EAAEC,uBAAgBC,UAJH;AAKvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE;AACPC,MAAAA,KAAK,EAAE,QADA;AAEPN,MAAAA,WAAW,EAAE,mCAFN;AAGPO,MAAAA,QAAQ,EAAE,IAHH;AAIPC,MAAAA,QAAQ,EAAE,IAJH;AAKPC,MAAAA,YAAY,EAAE,IALP;AAMPC,MAAAA,QAAQ,EAAEC,kBAAWC,OANd;AAOPC,MAAAA,QAAQ,EAAEC,kBAAWC,OAPd;AAQPC,MAAAA,KAAK,EAAEC,cAAOC;AARP,KADJ;AAWLC,IAAAA,QAAQ,EAAE;AACRb,MAAAA,KAAK,EAAE,mBADC;AAERN,MAAAA,WAAW,EACT,uGAHM;AAIRO,MAAAA,QAAQ,EAAE,IAJF;AAKRC,MAAAA,QAAQ,EAAE,IALF;AAMRC,MAAAA,YAAY,EAAE,SANN;AAORW,MAAAA,OAAO,EAAE,CAAC,SAAD,EAAY,UAAZ,EAAwB,QAAxB,CAPD;AAQRV,MAAAA,QAAQ,EAAEC,kBAAWU,SARb;AASRR,MAAAA,QAAQ,EAAEC,kBAAWQ,MATb;AAURN,MAAAA,KAAK,EAAEC,cAAOC;AAVN,KAXL;AAuBLK,IAAAA,sBAAsB,EAAE;AACtBjB,MAAAA,KAAK,EAAE,0BADe;AAEtBN,MAAAA,WAAW,EACT,8DAHoB;AAItBO,MAAAA,QAAQ,EAAE,IAJY;AAKtBC,MAAAA,QAAQ,EAAE,KALY;AAMtBC,MAAAA,YAAY,EAAE,CANQ;AAOtBC,MAAAA,QAAQ,EAAEC,kBAAWa,MAPC;AAQtBX,MAAAA,QAAQ,EAAEC,kBAAWW,MARC;AAStBT,MAAAA,KAAK,EAAEC,cAAOC;AATQ;AAvBnB;AALgB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n GROUPS,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Keyboard Avoiding View\",\n tag: \"KeyboardAvoidingView\",\n description: \"View that moves out of the way of the virtual keyboard. \",\n category: COMPONENT_TYPES.deprecated,\n props: {\n enabled: {\n label: \"Enable\",\n description: \"Enable the keyboard avoiding view\",\n editable: true,\n required: true,\n defaultValue: true,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n group: GROUPS.basic,\n },\n behavior: {\n label: \"Resizing Behavior\",\n description:\n \"The behavior for how the keyboard resizing interacts with the rest of the screen. (Default: padding).\",\n editable: true,\n required: true,\n defaultValue: \"padding\",\n options: [\"padding\", \"position\", \"height\"],\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n group: GROUPS.basic,\n },\n keyboardVerticalOffset: {\n label: \"Keyboard Vertical Offset\",\n description:\n \"The distance between the bottom of the view and the keyboard\",\n editable: true,\n required: false,\n defaultValue: 0,\n formType: FORM_TYPES.number,\n propType: PROP_TYPES.NUMBER,\n group: GROUPS.basic,\n },\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["RadioButtonGroup.ts"],"names":["SEED_DATA","name","tag","category","COMPONENT_TYPES","input","layout","triggers","Triggers","OnValueChange","props","direction","fieldName","handlerPropName","valuePropName","defaultValue"],"mappings":";;;;;;;AAAA;;AAOO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,oBADiB;AAEvBC,EAAAA,GAAG,EAAE,kBAFkB;AAGvBC,EAAAA,QAAQ,EAAEC,uBAAgBC,KAHH;AAIvBC,EAAAA,MAAM,EAAE,EAJe;AAKvBC,EAAAA,QAAQ,EAAE,CAACC,gBAASC,aAAV,CALa;AAMvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,SAAS,EAAE,iCADN;AAELC,IAAAA,SAAS,EAAE,gCAAoB;AAC7BC,MAAAA,eAAe,EAAE,eADY;AAE7BC,MAAAA,aAAa,EAAE,OAFc;AAG7BC,MAAAA,YAAY,EAAE;AAHe,KAApB;AAFN;AANgB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n createFieldNameProp,\n createDirectionProp,\n Triggers,\n} from \"@draftbit/types\";\n\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"]}
1
+ {"version":3,"sources":["RadioButtonGroup.js"],"names":["SEED_DATA","name","tag","category","COMPONENT_TYPES","input","layout","triggers","Triggers","OnValueChange","props","direction","fieldName","handlerPropName","valuePropName","defaultValue"],"mappings":";;;;;;;AAAA;;AACO,MAAMA,SAAS,GAAG;AACrBC,EAAAA,IAAI,EAAE,oBADe;AAErBC,EAAAA,GAAG,EAAE,kBAFgB;AAGrBC,EAAAA,QAAQ,EAAEC,uBAAgBC,KAHL;AAIrBC,EAAAA,MAAM,EAAE,EAJa;AAKrBC,EAAAA,QAAQ,EAAE,CAACC,gBAASC,aAAV,CALW;AAMrBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,SAAS,EAAE,iCADR;AAEHC,IAAAA,SAAS,EAAE,gCAAoB;AAC3BC,MAAAA,eAAe,EAAE,eADU;AAE3BC,MAAAA,aAAa,EAAE,OAFY;AAG3BC,MAAAA,YAAY,EAAE;AAHa,KAApB;AAFR;AANc,CAAlB","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"]}
@@ -125,7 +125,7 @@ const SEED_DATA = {
125
125
  required: false,
126
126
  formType: _types.FORM_TYPES.flatArray,
127
127
  propType: _types.PROP_TYPES.STRING,
128
- defaultValue: "auto"
128
+ defaultValue: null
129
129
  },
130
130
  removeClippedSubviews: {
131
131
  group: _types.GROUPS.advanced,
@@ -1 +1 @@
1
- {"version":3,"sources":["View.ts"],"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","basic","props","accessible","group","GROUPS","accessibility","label","editable","required","formType","FORM_TYPES","boolean","propType","PROP_TYPES","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;;AAOO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,MADiB;AAEvBC,EAAAA,GAAG,EAAE,MAFkB;AAGvBC,EAAAA,WAAW,EAAE,wBAH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AA,QAAQ,EAAEC,kBAAWC,OARH;AASlBC,MAAAA,QAAQ,EAAEC,kBAAWC,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":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","basic","props","accessible","group","GROUPS","accessibility","label","editable","required","formType","FORM_TYPES","boolean","propType","PROP_TYPES","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;;AAOO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,MADiB;AAEvBC,EAAAA,GAAG,EAAE,MAFkB;AAGvBC,EAAAA,WAAW,EAAE,wBAHU;AAIvBC,EAAAA,QAAQ,EAAEC,uBAAgBC,KAJH;AAKvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,UAAU,EAAE;AACVC,MAAAA,KAAK,EAAEC,cAAOC,aADJ;AAEVV,MAAAA,IAAI,EAAE,YAFI;AAGVW,MAAAA,KAAK,EAAE,YAHG;AAIVT,MAAAA,WAAW,EACT,wHALQ;AAMVU,MAAAA,QAAQ,EAAE,IANA;AAOVC,MAAAA,QAAQ,EAAE,KAPA;AAQVC,MAAAA,QAAQ,EAAEC,kBAAWC,OARX;AASVC,MAAAA,QAAQ,EAAEC,kBAAWC,OATX;AAUVC,MAAAA,YAAY,EAAE;AAVJ,KADP;AAaLC,IAAAA,kBAAkB,EAAE;AAClBb,MAAAA,KAAK,EAAEC,cAAOC,aADI;AAElBV,MAAAA,IAAI,EAAE,oBAFY;AAGlBW,MAAAA,KAAK,EAA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AA,YAAY,EAAE;AAVgB,KAjL3B;AA6LLoB,IAAAA,8BAA8B,EAAE;AAC9BhC,MAAAA,KAAK,EAAEC,cAAOwB,QADgB;AAE9BjC,MAAAA,IAAI,EAAE,gCAFwB;AAG9BW,MAAAA,KAAK,EAAE,gCAHuB;AAI9BT,MAAAA,WAAW,EACT,+hBAL4B;AAM9BU,MAAAA,QAAQ,EAAE,IANoB;AAO9BC,MAAAA,QAAQ,EAAE,KAPoB;AAQ9BC,MAAAA,QAAQ,EAAEC,kBAAWC,OARS;AAS9BC,MAAAA,QAAQ,EAAEC,kBAAWC,OATS;AAU9BC,MAAAA,YAAY,EAAE;AAVgB,KA7L3B;AAyMLqB,IAAAA,kBAAkB,EAAE;AAClBjC,MAAAA,KAAK,EAAEC,cAAOwB,QADI;AAElBjC,MAAAA,IAAI,EAAE,oBAFY;AAGlBW,MAAAA,KAAK,EAAE,oBAHW;AAIlBT,MAAAA,WAAW,EACT,4eALgB;AAMlBU,MAAAA,QAAQ,EAAE,IANQ;AAOlBC,MAAAA,QAAQ,EAAE,KAPQ;AAQlBC,MAAAA,QAAQ,EAAEC,kBAAWC,OARH;AASlBC,MAAAA,QAAQ,EAAEC,kBAAWC,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"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["shadow.js"],"names":["SHADOW_COLOR","SHADOW_OPACITY","shadow","elevation","Animated","Value","inputRange","shadowColor","shadowOffset","width","height","interpolate","outputRange","shadowOpacity","shadowRadius","radius"],"mappings":";;;;;;;AAAA;;AACA,MAAMA,YAAY,GAAG,MAArB;AACA,MAAMC,cAAc,GAAG,IAAvB;;AACe,SAASC,MAAT,GAA+B;AAAA,MAAfC,SAAe,uEAAH,CAAG;;AAC1C,MAAIA,SAAS,YAAYC,sBAASC,KAAlC,EAAyC;AACrC,UAAMC,UAAU,GAAG,CAAC,CAAD,EA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,EAAEZ,cANZ;AAOHa,MAAAA,YAAY,EAAEC;AAPX,KAAP;AASH;AACJ","sourcesContent":["import { Animated } from \"react-native\";\nconst SHADOW_COLOR = \"#000\";\nconst SHADOW_OPACITY = 0.24;\nexport default function shadow(elevation = 0) {\n if (elevation instanceof Animated.Value) {\n const inputRange = [0, 1, 2, 3, 8, 24];\n return {\n shadowColor: SHADOW_COLOR,\n shadowOffset: {\n width: new Animated.Value(0),\n height: elevation.interpolate({\n inputRange,\n outputRange: [0, 0.5, 0.75, 2, 7, 23],\n }),\n },\n shadowOpacity: new Animated.Value(SHADOW_OPACITY),\n shadowRadius: elevation.interpolate({\n inputRange,\n outputRange: [0, 0.75, 1.5, 3, 8, 24],\n }),\n };\n }\n else {\n if (elevation === 0) {\n return {};\n }\n let height, radius;\n switch (elevation) {\n case 1:\n height = 0.5;\n radius = 0.75;\n break;\n case 2:\n height = 0.75;\n radius = 1.5;\n break;\n default:\n height = elevation - 1;\n radius = elevation;\n }\n return {\n shadowColor: SHADOW_COLOR,\n shadowOffset: {\n width: 0,\n height,\n },\n shadowOpacity: SHADOW_OPACITY,\n shadowRadius: radius,\n };\n }\n}\n"]}
1
+ {"version":3,"sources":["shadow.tsx"],"names":["SHADOW_COLOR","SHADOW_OPACITY","shadow","elevation","Animated","Value","inputRange","shadowColor","shadowOffset","width","height","interpolate","outputRange","shadowOpacity","shadowRadius","radius"],"mappings":";;;;;;;AAAA;;AAEA,MAAMA,YAAY,GAAG,MAArB;AACA,MAAMC,cAAc,GAAG,IAAvB;;AAEe,SAASC,MAAT,GAAwD;AAAA,MAAxCC,SAAwC,uEAAH,CAAG;;AACrE,MAAIA,SAAS,YAAYC,sBAASC,KAAlC,EAAyC;AACvC,UAAMC,UAAU,GAAG,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,EAAU,CAAV,EAAa,CAAb,EAAgB,EAAhB,CAAnB;AAEA,WAAO;AACLC,MAAAA,WAAW,EAAEP,YADR;AAELQ,MAAAA,YAAY,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0.24;\n\nexport default function shadow(elevation: number | Animated.Value = 0) {\n if (elevation instanceof Animated.Value) {\n const inputRange = [0, 1, 2, 3, 8, 24];\n\n return {\n shadowColor: SHADOW_COLOR,\n shadowOffset: {\n width: new Animated.Value(0),\n height: elevation.interpolate({\n inputRange,\n outputRange: [0, 0.5, 0.75, 2, 7, 23],\n }),\n },\n shadowOpacity: new Animated.Value(SHADOW_OPACITY),\n shadowRadius: elevation.interpolate({\n inputRange,\n outputRange: [0, 0.75, 1.5, 3, 8, 24],\n }),\n };\n } else {\n if (elevation === 0) {\n return {};\n }\n\n let height, radius;\n switch (elevation) {\n case 1:\n height = 0.5;\n radius = 0.75;\n break;\n case 2:\n height = 0.75;\n radius = 1.5;\n break;\n default:\n height = elevation - 1;\n radius = elevation;\n }\n\n return {\n shadowColor: SHADOW_COLOR,\n shadowOffset: {\n width: 0,\n height,\n },\n shadowOpacity: SHADOW_OPACITY,\n shadowRadius: radius,\n };\n }\n}\n"]}
@@ -1,5 +1,3 @@
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
-
3
1
  import React from "react";
4
2
  import { View, Text } from "react-native";
5
3
  import Image from "./Image";
@@ -25,10 +23,11 @@ const CardContainerShortImage = _ref => {
25
23
  onPress,
26
24
  ...rest
27
25
  } = _ref;
28
- return /*#__PURE__*/React.createElement(Card, _extends({
26
+ return /*#__PURE__*/React.createElement(Card, {
29
27
  style: style,
30
- onPress: onPress
31
- }, rest), /*#__PURE__*/React.createElement(Elevation, {
28
+ onPress: onPress,
29
+ ...rest
30
+ }, /*#__PURE__*/React.createElement(Elevation, {
32
31
  style: {
33
32
  elevation,
34
33
  borderRadius: roundness
@@ -76,5 +75,17 @@ const CardContainerShortImage = _ref => {
76
75
  }))));
77
76
  };
78
77
 
78
+ export default withTheme(CardContainerShortImage);
79
+ //# sourceMappingURL=CardContainerShortImage.js.map: null), mode === "right" && /*#__PURE__*/React.createElement(Image, {
80
+ style: {
81
+ aspectRatio
82
+ },
83
+ source: typeof image === "string" ? {
84
+ uri: image
85
+ } : image,
86
+ resizeMode: "cover"
87
+ }))));
88
+ };
89
+
79
90
  export default withTheme(CardContainerShortImage);
80
91
  //# sourceMappingURL=CardContainerShortImage.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["CardContainerShortImage.tsx"],"names":["React","View","Text","Image","Card","Elevation","withTheme","Config","CardContainerShortImage","image","squareImageUrl","title","subtitle","mode","aspectRatio","elevation","theme","colors","roundness","typography","style","onPress","rest","borderRadius","overflow","flexDirection","justifyContent","uri","padding","backgroundColor","surface","flex","headline5","color","strong","body2","medium","marginTop"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SACEC,IADF,EAEEC,IAFF,QAMO,cANP;AAOA,OAAOC,KAAP,MAAkB,SAAlB;AACA,OAAOC,IAAP,MAAiB,yBAAjB;AACA,OAAOC,SAAP,MAAsB,aAAtB;AACA,SAASC,SAAT,QAA0B,YAA1B;AACA,OAAOC,MAAP,MAAmB,UAAnB;;AAeA,MAAMC,uBAAwC,GAAG,QAW3C;AAAA,MAX4C;AAChDC,IAAAA,KAAK,GAAGF,MAAM,CAACG,cADiC;AAEhDC,IAAAA,KAFgD;AAGhDC,IAAAA,QAHgD;AAIhDC,IAAAA,IAAI,GAAG,MAJyC;AAKhDC,IAAAA,WAAW,GAAG,CALkC;AAMhDC,IAAAA,SAAS,GAAG,CANoC;AAOhDC,IAAAA,KAAK,EAAE;AAAEC,MAAAA,MAAF;AAAUC,MAAAA,SAAV;AAAqBC,MAAAA;AAArB,KAPyC;AAQhDC,IAAAA,KARgD;AAShDC,IAAAA,OATgD;AAUhD,OAAGC;AAV6C,GAW5C;AACJ,sBACE,oBAAC,IAAD;AAAM,IAAA,KAAK,EAAEF,KAAb;AAAoB,IAAA,OAAO,EAAEC;AAA7B,KA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AAK,EAAE;AAAEC,MAAAA;AAAF,KADT;AAEE,IAAA,MAAM,EAAE,OAAOL,KAAP,KAAiB,QAAjB,GAA4B;AAAEkB,MAAAA,GAAG,EAAElB;AAAP,KAA5B,GAA6CA,KAFvD;AAGE,IAAA,UAAU,EAAC;AAHb,IAzCJ,CANF,CADF,CADF;AA2DD,CAvED;;AAyEA,eAAeH,SAAS,CAACE,uBAAD,CAAxB","sourcesContent":["import React from \"react\";\nimport {\n View,\n Text,\n ImageSourcePropType,\n StyleProp,\n ViewStyle,\n} from \"react-native\";\nimport Image from \"./Image\";\nimport Card from \"./DeprecatedCardWrapper\";\nimport Elevation from \"./Elevation\";\nimport { withTheme } from \"../theming\";\nimport Config from \"./Config\";\nimport theme from \"../styles/DefaultTheme\";\n\ntype Props = {\n image?: string | ImageSourcePropType;\n title?: string;\n subtitle?: string;\n mode?: \"right\" | \"left\";\n aspectRatio?: number;\n elevation?: number;\n theme: typeof theme;\n style?: StyleProp<ViewStyle>;\n onPress: () => void;\n};\n\nconst CardContainerShortImage: React.FC<Props> = ({\n image = Config.squareImageUrl,\n title,\n subtitle,\n mode = \"left\",\n aspectRatio = 1,\n elevation = 2,\n theme: { colors, roundness, typography },\n style,\n onPress,\n ...rest\n}) => {\n return (\n <Card style={style} onPress={onPress} {...rest}>\n <Elevation\n style={{\n elevation,\n borderRadius: roundness,\n }}\n >\n <View\n style={{\n overflow: \"hidden\",\n flexDirection: \"row\",\n justifyContent: mode === \"right\" ? \"space-between\" : \"flex-start\",\n borderRadius: roundness,\n }}\n >\n {mode === \"left\" && (\n <Image\n style={{ aspectRatio }}\n source={typeof image === \"string\" ? { uri: image } : image}\n resizeMode=\"cover\"\n />\n )}\n <View\n style={{\n padding: 16,\n backgroundColor: colors.surface,\n flex: 1,\n }}\n >\n <Text\n numberOfLines={1}\n style={[typography.headline5, { color: colors.strong }]}\n >\n {title}\n </Text>\n {subtitle ? (\n <Text\n numberOfLines={1}\n style={[\n typography.body2,\n { color: colors.medium, marginTop: 4 },\n ]}\n >\n {subtitle}\n </Text>\n ) : null}\n </View>\n {mode === \"right\" && (\n <Image\n style={{ aspectRatio }}\n source={typeof image === \"string\" ? { uri: image } : image}\n resizeMode=\"cover\"\n />\n )}\n </View>\n </Elevation>\n </Card>\n );\n};\n\nexport default withTheme(CardContainerShortImage);\n"]}
1
+ {"version":3,"sources":["CardContainerShortImage.js"],"names":["React","View","Text","Image","Card","Elevation","withTheme","Config","CardContainerShortImage","image","squareImageUrl","title","subtitle","mode","aspectRatio","elevation","theme","colors","roundness","typography","style","onPress","rest","createElement","borderRadius","overflow","flexDirection","justifyContent","source","uri","resizeMode","padding","backgroundColor","surface","flex","numberOfLines","headline5","color","strong","body2","medium","marginTop"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,EAAeC,IAAf,QAA4B,cAA5B;AACA,OAAOC,KAAP,MAAkB,SAAlB;AACA,OAAOC,IAAP,MAAiB,yBAAjB;AACA,OAAOC,SAAP,MAAsB,aAAtB;AACA,SAASC,SAAT,QAA0B,YAA1B;AACA,OAAOC,MAAP,MAAmB,UAAnB;;AACA,MAAMC,uBAAuB,GAAG,QAA0K;AAAA,MAAzK;AAAEC,IAAAA,KAAK,GAAGF,MAAM,CAACG,cAAjB;AAAiCC,IAAAA,KAAjC;AAAwCC,IAAAA,QAAxC;AAAkDC,IAAAA,IAAI,GAAG,MAAzD;AAAiEC,IAAAA,WAAW,GAAG,CAA/E;AAAkFC,IAAAA,SAAS,GAAG,CAA9F;AAAiGC,IAAAA,KAAK,EAAE;AAAEC,MAAAA,MAAF;AAAUC,MAAAA,SAAV;AAAqBC,MAAAA;AAArB,KAAxG;AAA2IC,IAAAA,KAA3I;AAAkJC,IAAAA,OAAlJ;AAA2J,OAAGC;AAA9J,GAAyK;AACtM,sBAAQtB,KAAK,CAACuB,aAAN,CAAoBnB,IAApB,EAA0B;AAAEgB,IAAAA,KAAK,EAAEA,KAAT;AAAgBC,IAAAA,OAAO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IZ,KAAK,CAACuB,aAAN,CAAoBrB,IAApB,EAA0B;AAAEiC,IAAAA,aAAa,EAAE,CAAjB;AAAoBf,IAAAA,KAAK,EAAE,CACzDD,UAAU,CAACoB,KAD8C,EAEzD;AAAEF,MAAAA,KAAK,EAAEpB,MAAM,CAACuB,MAAhB;AAAwBC,MAAAA,SAAS,EAAE;AAAnC,KAFyD;AAA3B,GAA1B,EAGH7B,QAHG,CAAJ,GAGc,IAT1B,CAPJ,EAiBIC,IAAI,KAAK,OAAT,iBAAqBb,KAAK,CAACuB,aAAN,CAAoBpB,KAApB,EAA2B;AAAEiB,IAAAA,KAAK,EAAE;AAAEN,MAAAA;AAAF,KAAT;AAA0Bc,IAAAA,MAAM,EAAE,OAAOnB,KAAP,KAAiB,QAAjB,GAA4B;AAAEoB,MAAAA,GAAG,EAAEpB;AAAP,KAA5B,GAA6CA,KAA/E;AAAsFqB,IAAAA,UAAU,EAAE;AAAlG,GAA3B,CAjBzB,CAJJ,CADI,CAAR;AAuBH,CAxBD;;AAyBA,eAAexB,SAAS,CAACE,uBAAD,CAAxB","sourcesContent":["import React from \"react\";\nimport { View, Text, } from \"react-native\";\nimport Image from \"./Image\";\nimport Card from \"./DeprecatedCardWrapper\";\nimport Elevation from \"./Elevation\";\nimport { withTheme } from \"../theming\";\nimport Config from \"./Config\";\nconst CardContainerShortImage = ({ image = Config.squareImageUrl, title, subtitle, mode = \"left\", aspectRatio = 1, elevation = 2, theme: { colors, roundness, typography }, style, onPress, ...rest }) => {\n return (React.createElement(Card, { style: style, onPress: onPress, ...rest },\n React.createElement(Elevation, { style: {\n elevation,\n borderRadius: roundness,\n } },\n React.createElement(View, { style: {\n overflow: \"hidden\",\n flexDirection: \"row\",\n justifyContent: mode === \"right\" ? \"space-between\" : \"flex-start\",\n borderRadius: roundness,\n } },\n mode === \"left\" && (React.createElement(Image, { style: { aspectRatio }, source: typeof image === \"string\" ? { uri: image } : image, resizeMode: \"cover\" })),\n React.createElement(View, { style: {\n padding: 16,\n backgroundColor: colors.surface,\n flex: 1,\n } },\n React.createElement(Text, { numberOfLines: 1, style: [typography.headline5, { color: colors.strong }] }, title),\n subtitle ? (React.createElement(Text, { numberOfLines: 1, style: [\n typography.body2,\n { color: colors.medium, marginTop: 4 },\n ] }, subtitle)) : null),\n mode === \"right\" && (React.createElement(Image, { style: { aspectRatio }, source: typeof image === \"string\" ? { uri: image } : image, resizeMode: \"cover\" }))))));\n};\nexport default withTheme(CardContainerShortImage);\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"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["Fetch.ts"],"names":["COMPONENT_TYPES","SEED_DATA","name","tag","description","category","data","layout","minHeight","props"],"mappings":"AAAA,SAASA,eAAT,QAAgC,iBAAhC;AACA;;AACA,OAAO,MAAMC,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,OADiB;AAEvBC,EAAAA,GAAG,EAAE,OAFkB;AAGvBC,EAAAA,WAAW,EACT,qEAJqB;AAKvBC,EAAAA,QAAQ,EAAEL,eAAe,CAACM,IALH;AAMvBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,SAAS,EAAE;AADL,GANe;AASvBC,EAAAA,KAAK,EAAE;AATgB,CAAlB","sourcesContent":["import { COMPONENT_TYPES } from \"@draftbit/types\";\n/* TODO remove, still used inside the builder in a weird way */\nexport const SEED_DATA = {\n name: \"Fetch\",\n tag: \"Fetch\",\n description:\n \"Rest API Declarative Fetch component. Uses react-request internally\",\n category: COMPONENT_TYPES.data,\n layout: {\n minHeight: 40,\n },\n props: {},\n};\n"]}
1
+ {"version":3,"sources":["Fetch.js"],"names":["COMPONENT_TYPES","SEED_DATA","name","tag","description","category","data","layout","minHeight","props"],"mappings":"AAAA,SAASA,eAAT,QAAgC,iBAAhC;AACA;;AACA,OAAO,MAAMC,SAAS,GAAG;AACrBC,EAAAA,IAAI,EAAE,OADe;AAErBC,EAAAA,GAAG,EAAE,OAFgB;AAGrBC,EAAAA,WAAW,EAAE,qEAHQ;AAIrBC,EAAAA,QAAQ,EAAEL,eAAe,CAACM,IAJL;AAKrBC,EAAAA,MAAM,EAAE;AACJC,IAAAA,SAAS,EAAE;AADP,GALa;AAQrBC,EAAAA,KAAK,EAAE;AARc,CAAlB","sourcesContent":["import { COMPONENT_TYPES } from \"@draftbit/types\";\n/* TODO remove, still used inside the builder in a weird way */\nexport const SEED_DATA = {\n name: \"Fetch\",\n tag: \"Fetch\",\n description: \"Rest API Declarative Fetch component. Uses react-request internally\",\n category: COMPONENT_TYPES.data,\n layout: {\n minHeight: 40,\n },\n props: {},\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["ImageBackground.ts"],"names":["COMPONENT_TYPES","createImageProp","createResizeModeProp","createTextEnumProp","createColorProp","SEED_DATA","name","tag","doc_link","code_link","description","category","media","layout","width","height","props","source","defaultValue","resizeMode","backgroundColor","label","backfaceVisibility","options"],"mappings":"AAAA,SACEA,eADF,EAEEC,eAFF,EAGEC,oBAHF,EAIEC,kBAJF,EAKEC,eALF,QAMO,iBANP;AAQA,OAAO,MAAMC,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,kBADiB;AAEvBC,EAAAA,GAAG,EAAE,iBAFkB;AAGvBC,EAAAA,QAAQ,EACN,oEAJqB;AAKvBC,EAAAA,SAAS,EACP,yFANqB;AAOvBC,EAAAA,WAAW,EACT,8FARqB;AASvBC,EAAAA,QAAQ,EAAEX,eAAe,CAACY,KATH;AAUvBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,KAAK,EAAE,MADD;AAENC,IAAAA,MAAM,EAAE;AAFF,GAVe;AAcvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAEhB,eAAe,CAAC;AACtBiB,MAAAA,YAAY,EACV;AAFoB,KAAD,CADlB;AAKLC,IAAAA,UAAU,EAAEjB,oBAAoB,EAL3B;AAMLkB,IAAAA,eAAe,EAAEhB,eAAe,CAAC;AAC/BiB,MAAAA,KAAK,EAAE,kBADwB;AAE/BX,MAAAA,WAAW,EAAE;AAFkB,KAAD,CAN3B;AAULY,IAAAA,kBAAkB,EAAEnB,kBAAkB,CAAC;AACrCkB,MAAAA,KAAK,EAAE,qBAD8B;AAErCX,MAAAA,WAAW,EAAE,iDAFwB;AAGrCa,MAAAA,OAAO,EAAE,CAAC,SAAD,EAAY,QAAZ;AAH4B,KAAD;AAVjC;AAdgB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n createImageProp,\n createResizeModeProp,\n createTextEnumProp,\n createColorProp,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Image Background\",\n tag: \"ImageBackground\",\n doc_link:\n \"https://docs.expo.io/versions/latest/react-native/imagebackground/\",\n code_link:\n \"https://github.com/facebook/react-native/blob/master/Libraries/Image/ImageBackground.js\",\n description:\n \"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:\n \"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"]}
1
+ {"version":3,"sources":["ImageBackground.js"],"names":["COMPONENT_TYPES","createImageProp","createResizeModeProp","createTextEnumProp","createColorProp","SEED_DATA","name","tag","doc_link","code_link","description","category","media","layout","width","height","props","source","defaultValue","resizeMode","backgroundColor","label","backfaceVisibility","options"],"mappings":"AAAA,SAASA,eAAT,EAA0BC,eAA1B,EAA2CC,oBAA3C,EAAiEC,kBAAjE,EAAqFC,eAArF,QAA6G,iBAA7G;AACA,OAAO,MAAMC,SAAS,GAAG;AACrBC,EAAAA,IAAI,EAAE,kBADe;AAErBC,EAAAA,GAAG,EAAE,iBAFgB;AAGrBC,EAAAA,QAAQ,EAAE,oEAHW;AAIrBC,EAAAA,SAAS,EAAE,yFAJU;AAKrBC,EAAAA,WAAW,EAAE,8FALQ;AAMrBC,EAAAA,QAAQ,EAAEX,eAAe,CAACY,KANL;AAOrBC,EAAAA,MAAM,EAAE;AACJC,IAAAA,KAAK,EAAE,MADH;AAEJC,IAAAA,MAAM,EAAE;AAFJ,GAPa;AAWrBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,MAAM,EAAEhB,eAAe,CAAC;AACpBiB,MAAAA,YAAY,EAAE;AADM,KAAD,CADpB;AAIHC,IAAAA,UAAU,EAAEjB,oBAAoB,EAJ7B;AAKHkB,IAAAA,eAAe,EAAEhB,eAAe,CAAC;AAC7BiB,MAAAA,KAAK,EAAE,kBADsB;AAE7BX,MAAAA,WAAW,EAAE;AAFgB,KAAD,CAL7B;AASHY,IAAAA,kBAAkB,EAAEnB,kBAAkB,CAAC;AACnCkB,MAAAA,KAAK,EAAE,qBAD4B;AAEnCX,MAAAA,WAAW,EAAE,iDAFsB;AAGnCa,MAAAA,OAAO,EAAE,CAAC,SAAD,EAAY,QAAZ;AAH0B,KAAD;AATnC;AAXc,CAAlB","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"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["KeyboardAwareScrollView.ts"],"names":["COMPONENT_TYPES","createStaticBoolProp","createStaticNumberProp","SEED_DATA","name","tag","description","category","layout","props","viewIsInsideTabBar","label","enableAutomaticScroll","extraHeight","extraScrollHeight","enableResetScrollToCoords","keyboardOpeningTime","enableOnAndroid","showsVerticalScrollIndicator","defaultValue"],"mappings":"AAAA,SACEA,eADF,EAEEC,oBAFF,EAGEC,sBAHF,QAIO,iBAJP;AAMA,OAAO,MAAMC,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,4BADiB;AAEvBC,EAAAA,GAAG,EAAE,yBAFkB;AAGvBC,EAAAA,WAAW,EACT,mEAJqB;AAKvBC,EAAAA,QAAQ,EAAEP,eAAe,CAACQ,MALH;AAMvBA,EAAAA,MAAM,EAAE,EANe;AAOvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,kBAAkB,EAAET,oBAAoB,CAAC;AACvCU,MAAAA,KAAK,EAAE,uBADgC;AAEvCL,MAAAA,WAAW,EAAE;AAF0B,KAAD,CADnC;AAKLM,IAAAA,qBAAqB,EAAEX,oBAAoB,CAAC;AAC1CU,MAAAA,KAAK,EAAE,yBADmC;AAE1CL,MAAAA,WAAW,EACT;AAHwC,KAAD,CALtC;AAULO,IAAAA,WAAW,EAAEX,sBAAsB,CAAC;AAClCS,MAAAA,KAAK,EAAE,cAD2B;AAElCL,MAAAA,WAAW,EAAE;AAFqB,KAAD,CAV9B;AAcLQ,IAAAA,iBAAiB,EAAEZ,sBAAsB,CAAC;AACxCS,MAAAA,KAAK,EAAE,qBADiC;AAExCL,MAAAA,WAAW,EACT;AAHsC,KAAD,CAdpC;AAmBLS,IAAAA,yBAAyB,EAAEd,oBAAoB,CAAC;AAC9CU,MAAAA,KAAK,EAAE,oCADuC;AAE9CL,MAAAA,WAAW,EACT;AAH4C,KAAD,CAnB1C;AAwBLU,IAAAA,mBAAmB,EAAEd,sBAAsB,CAAC;AAC1CS,MAAAA,KAAK,EAAE,uBADmC;AAE1CL,MAAAA,WAAW,EACT;AAHwC,KAAD,CAxBtC;AA6BLW,IAAAA,eAAe,EAAEhB,oBAAoB,CAAC;AACpCU,MAAAA,KAAK,EAAE,mBAD6B;AAEpCL,MAAAA,WAAW,EAAE;AAFuB,KAAD,CA7BhC;AAiCLY,IAAAA,4BAA4B,EAAEjB,oBAAoB,CAAC;AACjDU,MAAAA,KAAK,EAAE,iCAD0C;AAEjDL,MAAAA,WAAW,EAAE,4CAFoC;AAGjDa,MAAAA,YAAY,EAAE;AAHmC,KAAD;AAjC7C;AAPgB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n createStaticBoolProp,\n createStaticNumberProp,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Keyboard Aware Scroll View\",\n tag: \"KeyboardAwareScrollView\",\n description:\n \"View that moves pushes the content when virtual keyboard is open.\",\n category: COMPONENT_TYPES.layout,\n layout: {},\n props: {\n viewIsInsideTabBar: createStaticBoolProp({\n label: \"View Is Inside TabBar\",\n description: \"Adds an extra offset that represents the TabBarIOS height.\",\n }),\n enableAutomaticScroll: createStaticBoolProp({\n label: \"Enable Automatic Scroll\",\n description:\n \"When focus in TextInput will scroll the position, default is enabled\",\n }),\n extraHeight: createStaticNumberProp({\n label: \"Extra Height\",\n description: \"Adds an extra offset when focusing the TextInputs\",\n }),\n extraScrollHeight: createStaticNumberProp({\n label: \"Extra Scroll Height\",\n description:\n \"Adds an extra offset to the keyboard. Useful if you want to stick elements above the keyboard\",\n }),\n enableResetScrollToCoords: createStaticBoolProp({\n label: \"Enable Reset Scroll To Coordinates\",\n description:\n \"Lets the user enable or disable automatic resetScrollToCoords\",\n }),\n keyboardOpeningTime: createStaticNumberProp({\n label: \"Keyboard Opening Time\",\n description:\n \"Sets the delay time before scrolling to new position, default is 250\",\n }),\n enableOnAndroid: createStaticBoolProp({\n label: \"Enable On Android\",\n description: \"Enable Android Support\",\n }),\n showsVerticalScrollIndicator: createStaticBoolProp({\n label: \"Shows Vertical Scroll Indicator\",\n description: \"Show or hide the vertical scroll indicator\",\n defaultValue: true,\n }),\n },\n};\n"]}
1
+ {"version":3,"sources":["KeyboardAwareScrollView.js"],"names":["COMPONENT_TYPES","createStaticBoolProp","createStaticNumberProp","SEED_DATA","name","tag","description","category","layout","props","viewIsInsideTabBar","label","enableAutomaticScroll","extraHeight","extraScrollHeight","enableResetScrollToCoords","keyboardOpeningTime","enableOnAndroid","showsVerticalScrollIndicator","defaultValue"],"mappings":"AAAA,SAASA,eAAT,EAA0BC,oBAA1B,EAAgDC,sBAAhD,QAA+E,iBAA/E;AACA,OAAO,MAAMC,SAAS,GAAG;AACrBC,EAAAA,IAAI,EAAE,4BADe;AAErBC,EAAAA,GAAG,EAAE,yBAFgB;AAGrBC,EAAAA,WAAW,EAAE,mEAHQ;AAIrBC,EAAAA,QAAQ,EAAEP,eAAe,CAACQ,MAJL;AAKrBA,EAAAA,MAAM,EAAE,EALa;AAMrBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,kBAAkB,EAAET,oBAAoB,CAAC;AACrCU,MAAAA,KAAK,EAAE,uBAD8B;AAErCL,MAAAA,WAAW,EAAE;AAFwB,KAAD,CADrC;AAKHM,IAAAA,qBAAqB,EAAEX,oBAAoB,CAAC;AACxCU,MAAAA,KAAK,EAAE,yBADiC;AAExCL,MAAAA,WAAW,EAAE;AAF2B,KAAD,CALxC;AASHO,IAAAA,WAAW,EAAEX,sBAAsB,CAAC;AAChCS,MAAAA,KAAK,EAAE,cADyB;AAEhCL,MAAAA,WAAW,EAAE;AAFmB,KAAD,CAThC;AAaHQ,IAAAA,iBAAiB,EAAEZ,sBAAsB,CAAC;AACtCS,MAAAA,KAAK,EAAE,qBAD+B;AAEtCL,MAAAA,WAAW,EAAE;AAFyB,KAAD,CAbtC;AAiBHS,IAAAA,yBAAyB,EAAEd,oBAAoB,CAAC;AAC5CU,MAAAA,KAAK,EAAE,oCADqC;AAE5CL,MAAAA,WAAW,EAAE;AAF+B,KAAD,CAjB5C;AAqBHU,IAAAA,mBAAmB,EAAEd,sBAAsB,CAAC;AACxCS,MAAAA,KAAK,EAAE,uBADiC;AAExCL,MAAAA,WAAW,EAAE;AAF2B,KAAD,CArBxC;AAyBHW,IAAAA,eAAe,EAAEhB,oBAAoB,CAAC;AAClCU,MAAAA,KAAK,EAAE,mBAD2B;AAElCL,MAAAA,WAAW,EAAE;AAFqB,KAAD,CAzBlC;AA6BHY,IAAAA,4BAA4B,EAAEjB,oBAAoB,CAAC;AAC/CU,MAAAA,KAAK,EAAE,iCADwC;AAE/CL,MAAAA,WAAW,EAAE,4CAFkC;AAG/Ca,MAAAA,YAAY,EAAE;AAHiC,KAAD;AA7B/C;AANc,CAAlB","sourcesContent":["import { COMPONENT_TYPES, createStaticBoolProp, createStaticNumberProp, } from \"@draftbit/types\";\nexport const SEED_DATA = {\n name: \"Keyboard Aware Scroll View\",\n tag: \"KeyboardAwareScrollView\",\n description: \"View that moves pushes the content when virtual keyboard is open.\",\n category: COMPONENT_TYPES.layout,\n layout: {},\n props: {\n viewIsInsideTabBar: createStaticBoolProp({\n label: \"View Is Inside TabBar\",\n description: \"Adds an extra offset that represents the TabBarIOS height.\",\n }),\n enableAutomaticScroll: createStaticBoolProp({\n label: \"Enable Automatic Scroll\",\n description: \"When focus in TextInput will scroll the position, default is enabled\",\n }),\n extraHeight: createStaticNumberProp({\n label: \"Extra Height\",\n description: \"Adds an extra offset when focusing the TextInputs\",\n }),\n extraScrollHeight: createStaticNumberProp({\n label: \"Extra Scroll Height\",\n description: \"Adds an extra offset to the keyboard. Useful if you want to stick elements above the keyboard\",\n }),\n enableResetScrollToCoords: createStaticBoolProp({\n label: \"Enable Reset Scroll To Coordinates\",\n description: \"Lets the user enable or disable automatic resetScrollToCoords\",\n }),\n keyboardOpeningTime: createStaticNumberProp({\n label: \"Keyboard Opening Time\",\n description: \"Sets the delay time before scrolling to new position, default is 250\",\n }),\n enableOnAndroid: createStaticBoolProp({\n label: \"Enable On Android\",\n description: \"Enable Android Support\",\n }),\n showsVerticalScrollIndicator: createStaticBoolProp({\n label: \"Shows Vertical Scroll Indicator\",\n description: \"Show or hide the vertical scroll indicator\",\n defaultValue: true,\n }),\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["RadioButtonGroup.ts"],"names":["COMPONENT_TYPES","createFieldNameProp","createDirectionProp","Triggers","SEED_DATA","name","tag","category","input","layout","triggers","OnValueChange","props","direction","fieldName","handlerPropName","valuePropName","defaultValue"],"mappings":"AAAA,SACEA,eADF,EAEEC,mBAFF,EAGEC,mBAHF,EAIEC,QAJF,QAKO,iBALP;AAOA,OAAO,MAAMC,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,oBADiB;AAEvBC,EAAAA,GAAG,EAAE,kBAFkB;AAGvBC,EAAAA,QAAQ,EAAEP,eAAe,CAACQ,KAHH;AAIvBC,EAAAA,MAAM,EAAE,EAJe;AAKvBC,EAAAA,QAAQ,EAAE,CAACP,QAAQ,CAACQ,aAAV,CALa;AAMvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,SAAS,EAAEX,mBAAmB,EADzB;AAELY,IAAAA,SAAS,EAAEb,mBAAmB,CAAC;AAC7Bc,MAAAA,eAAe,EAAE,eADY;AAE7BC,MAAAA,aAAa,EAAE,OAFc;AAG7BC,MAAAA,YAAY,EAAE;AAHe,KAAD;AAFzB;AANgB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n createFieldNameProp,\n createDirectionProp,\n Triggers,\n} from \"@draftbit/types\";\n\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"]}
1
+ {"version":3,"sources":["RadioButtonGroup.js"],"names":["COMPONENT_TYPES","createFieldNameProp","createDirectionProp","Triggers","SEED_DATA","name","tag","category","input","layout","triggers","OnValueChange","props","direction","fieldName","handlerPropName","valuePropName","defaultValue"],"mappings":"AAAA,SAASA,eAAT,EAA0BC,mBAA1B,EAA+CC,mBAA/C,EAAoEC,QAApE,QAAqF,iBAArF;AACA,OAAO,MAAMC,SAAS,GAAG;AACrBC,EAAAA,IAAI,EAAE,oBADe;AAErBC,EAAAA,GAAG,EAAE,kBAFgB;AAGrBC,EAAAA,QAAQ,EAAEP,eAAe,CAACQ,KAHL;AAIrBC,EAAAA,MAAM,EAAE,EAJa;AAKrBC,EAAAA,QAAQ,EAAE,CAACP,QAAQ,CAACQ,aAAV,CALW;AAMrBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,SAAS,EAAEX,mBAAmB,EAD3B;AAEHY,IAAAA,SAAS,EAAEb,mBAAmB,CAAC;AAC3Bc,MAAAA,eAAe,EAAE,eADU;AAE3BC,MAAAA,aAAa,EAAE,OAFY;AAG3BC,MAAAA,YAAY,EAAE;AAHa,KAAD;AAF3B;AANc,CAAlB","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"]}
@@ -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,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;AAQVC,MAAAA,QAAQ,EAAEf,UAAU,CAACgB,OARX;AASVC,MAAAA,QA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;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;AAQVC,MAAAA,QAAQ,EAAEf,UAAU,CAACgB,OARX;AASVC,MAAAA,QAAQ,EAAEhB,UAAU,CAACiB,OATX;AAUVC,MAAAA,YAAY,EAAE;AAVJ,KADP;AAaLC,IAAAA,kBAAkB,EAAE;AAClBV,MAAAA,KAAK,EAAEZ,MAAM,CAACa,aADI;AAElBR,MAAAA,IAAI,EAAE,oBAFY;AAGlBS,MAAAA,KAAK,EAAE,oBAHW;AAIlBP,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CAL4B;AAM9BQ,MAAAA,QAAQ,EAAE,IANoB;AAO9BC,MAAAA,QAAQ,EAAE,KAPoB;AAQ9BC,MAAAA,QAAQ,EAAEf,UAAU,CAACgB,OARS;AAS9BC,MAAAA,QAAQ,EAAEhB,UAAU,CAACiB,OATS;AAU9BC,MAAAA,YAAY,EAAE;AAVgB,KAjL3B;AA6LLoB,IAAAA,8BAA8B,EAAE;AAC9B7B,MAAAA,KAAK,EAAEZ,MAAM,CAACkC,QADgB;AAE9B7B,MAAAA,IAAI,EAAE,gCAFwB;AAG9BS,MAAAA,KAAK,EAAE,gCAHuB;AAI9BP,MAAAA,WAAW,EACT,+hBAL4B;AAM9BQ,MAAAA,QAAQ,EAAE,IANoB;AAO9BC,MAAAA,QAAQ,EAAE,KAPoB;AAQ9BC,MAAAA,QAAQ,EAAEf,UAAU,CAACgB,OARS;AAS9BC,MAAAA,QAAQ,EAAEhB,UAAU,CAACiB,OATS;AAU9BC,MAAAA,YAAY,EAAE;AAVgB,KA7L3B;AAyMLqB,IAAAA,kBAAkB,EAAE;AAClB9B,MAAAA,KAAK,EAAEZ,MAAM,CAACkC,QADI;AAElB7B,MAAAA,IAAI,EAAE,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: 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"]}
@@ -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-807284.0+807284e1",
3
+ "version": "43.6.1-81b417.2+81b417d4",
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": "807284e1746a964e693dbc04743bbde2c2297eb8"
83
+ "gitHead": "81b417d4a8ab81c2f5694d65385a03277468f70b"
84
84
  }
@@ -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
  };
@@ -145,7 +145,7 @@ export const SEED_DATA = {
145
145
  required: false,
146
146
  formType: FORM_TYPES.flatArray,
147
147
  propType: PROP_TYPES.STRING,
148
- defaultValue: "auto",
148
+ defaultValue: null,
149
149
  },
150
150
  removeClippedSubviews: {
151
151
  group: GROUPS.advanced,
@@ -161,7 +161,7 @@ export const SEED_DATA = {
161
161
  required: false,
162
162
  formType: FORM_TYPES.flatArray,
163
163
  propType: PROP_TYPES.STRING,
164
- defaultValue: "auto",
164
+ defaultValue: null,
165
165
  },
166
166
  removeClippedSubviews: {
167
167
  group: GROUPS.advanced,