@draftbit/core 43.4.1 → 43.4.2-80bace.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/DeprecatedFAB.js +4 -20
- package/lib/commonjs/components/DeprecatedFAB.js.map +1 -1
- package/lib/commonjs/components/Divider.js +3 -13
- package/lib/commonjs/components/Divider.js.map +1 -1
- package/lib/commonjs/components/FAB.js +19 -5
- package/lib/commonjs/components/FAB.js.map +1 -1
- package/lib/commonjs/components/HeaderOverline.js.map +1 -1
- package/lib/commonjs/components/Justification.js +1 -2
- package/lib/commonjs/components/LinearGradient.js +127 -0
- package/lib/commonjs/components/LinearGradient.js.map +1 -0
- package/lib/commonjs/index.js +8 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
- package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
- package/lib/module/components/LinearGradient.js +111 -0
- package/lib/module/components/LinearGradient.js.map +1 -0
- package/lib/module/components/RowBodyIcon.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/mappings/BlurView.js.map +1 -1
- package/lib/typescript/src/{mappings/DeprecatedButton.d.ts → components/LinearGradient.d.ts} +47 -28
- package/lib/typescript/src/index.d.ts +1 -0
- package/package.json +3 -2
- package/src/components/LinearGradient.js +84 -0
- package/src/components/LinearGradient.tsx +119 -0
- package/src/index.js +1 -0
- package/src/index.tsx +1 -0
- package/lib/commonjs/mappings/DeprecatedButton.js +0 -111
- package/lib/commonjs/mappings/DeprecatedButton.js.map +0 -1
- package/lib/commonjs/mappings/DeprecatedFAB.js +0 -147
- package/lib/commonjs/mappings/DeprecatedFAB.js.map +0 -1
- package/lib/module/mappings/DeprecatedButton.js +0 -102
- package/lib/module/mappings/DeprecatedButton.js.map +0 -1
- package/lib/module/mappings/DeprecatedFAB.js +0 -138
- package/lib/module/mappings/DeprecatedFAB.js.map +0 -1
- package/lib/typescript/src/mappings/DeprecatedFAB.d.ts +0 -178
- package/src/mappings/DeprecatedButton.js +0 -106
- package/src/mappings/DeprecatedButton.ts +0 -115
- package/src/mappings/DeprecatedFAB.js +0 -146
- package/src/mappings/DeprecatedFAB.ts +0 -153
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["RowBodyIcon.
|
|
1
|
+
{"version":3,"sources":["RowBodyIcon.js"],"names":["React","withTheme","Row","Config","RowBodyIcon","Icon","title","subtitle","icon","style","theme","colors","typography","createElement","titleTypeStyle","body1","titleColor","medium","subtitleTypeStyle","subtitle2","subtitleColor","light","right","name","size","rowSingleLineIconSize","color","marginLeft"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,SAAT,QAA0B,YAA1B;AACA,OAAOC,GAAP,MAAgB,OAAhB;AACA,OAAOC,MAAP,MAAmB,UAAnB;;AACA,MAAMC,WAAW,GAAG,QAA4E;AAAA,MAA3E;AAAEC,IAAAA,IAAF;AAAQC,IAAAA,KAAR;AAAeC,IAAAA,QAAf;AAAyBC,IAAAA,IAAzB;AAA+BC,IAAAA,KAA/B;AAAsCC,IAAAA,KAAK,EAAE;AAAEC,MAAAA,MAAF;AAAUC,MAAAA;AAAV;AAA7C,GAA2E;AAC5F,sBAAQZ,KAAK,CAACa,aAAN,CAAoBX,GAApB,EAAyB;AAAEY,IAAAA,cAAc,EAAEF,UAAU,CAACG,KAA7B;AAAoCC,IAAAA,UAAU,EAAEL,MAAM,CAACM,MAAvD;AAA+DC,IAAAA,iBAAiB,EAAEN,UAAU,CAACO,SAA7F;AAAwGC,IAAAA,aAAa,EAAET,MAAM,CAACU,KAA9H;AAAqIf,IAAAA,KAAK,EAAEA,KAA5I;AAAmJC,IAAAA,QAAQ,EAAEA,QAA7J;AAAuKe,IAAAA,KAAK,EAAE,mBAAOtB,KAAK,CAACa,aAAN,CAAoBR,IAApB,EAA0B;AAAEkB,MAAAA,IAAI,EAAEf,IAAR;AAAcgB,MAAAA,IAAI,EAAErB,MAAM,CAACsB,qBAA3B;AAAkDC,MAAAA,KAAK,EAAEf,MAAM,CAACU,KAAhE;AAAuEZ,MAAAA,KAAK,EAAE;AAAEkB,QAAAA,UAAU,EAAE;AAAd;AAA9E,KAA1B,CAArL;AAAqTlB,IAAAA,KAAK,EAAEA;AAA5T,GAAzB,CAAR;AACH,CAFD;;AAGA,eAAeR,SAAS,CAACG,WAAD,CAAxB","sourcesContent":["import * as React from \"react\";\nimport { withTheme } from \"../theming\";\nimport Row from \"./Row\";\nimport Config from \"./Config\";\nconst RowBodyIcon = ({ Icon, title, subtitle, icon, style, theme: { colors, typography }, }) => {\n return (React.createElement(Row, { titleTypeStyle: typography.body1, titleColor: colors.medium, subtitleTypeStyle: typography.subtitle2, subtitleColor: colors.light, title: title, subtitle: subtitle, right: () => (React.createElement(Icon, { name: icon, size: Config.rowSingleLineIconSize, color: colors.light, style: { marginLeft: 16 } })), style: style }));\n};\nexport default withTheme(RowBodyIcon);\n"]}
|
package/lib/module/index.js
CHANGED
|
@@ -25,6 +25,7 @@ export { default as TextField } from "./components/TextField";
|
|
|
25
25
|
export { default as ToggleButton } from "./components/ToggleButton";
|
|
26
26
|
export { default as Touchable } from "./components/Touchable";
|
|
27
27
|
export { AccordionGroup, AccordionItem } from "./components/Accordion";
|
|
28
|
+
export { default as LinearGradient } from "./components/LinearGradient";
|
|
28
29
|
export { ActionSheet, ActionSheetItem, ActionSheetCancel } from "./components/ActionSheet";
|
|
29
30
|
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
30
31
|
export { Center, Circle, Square, Row, Stack, Spacer } from "./components/Layout";
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.tsx"],"names":["injectIcon","withTheme","ThemeProvider","default","Provider","DefaultTheme","Link","ButtonSolid","ButtonOutline","Avatar","AvatarEdit","Card","Carousel","Checkbox","CheckboxGroup","CheckboxRow","CircleImage","Container","Divider","FAB","FieldSearchBarFull","IconButton","Image","NumberInput","ScreenContainer","StarRating","Surface","Switch","SwitchRow","TextField","ToggleButton","Touchable","AccordionGroup","AccordionItem","ActionSheet","ActionSheetItem","ActionSheetCancel","Swiper","SwiperItem","Center","Circle","Square","Row","Stack","Spacer","RadioButton","RadioButtonGroup","RadioButtonRow","RadioButtonFieldGroup","Button","CardBlock","CardContainer","CardContainerRating","CardInline","DatePicker","HeaderLarge","HeaderMedium","HeaderOverline","Picker","ProgressBar","ProgressCircle","RowBodyIcon","RowHeadlineImageCaption","RowHeadlineImageIcon","Slider","Stepper","useAuthState"],"mappings":"AAAA,SAASA,UAAT,QAA2B,mBAA3B;AACA,SAASC,SAAT,EAAoBC,aAApB,QAAyC,WAAzC;AACA,SAASC,OAAO,IAAIC,QAApB,QAAoC,YAApC;AACA,SAASD,OAAO,IAAIE,YAApB,QAAwC,uBAAxC;AAEA,SAASC,IAAT,QAAqB,mBAArB;AACA,SAASC,WAAT,EAAsBC,aAAtB,QAA2C,qBAA3C;AACA,SAASL,OAAO,IAAIM,MAApB,QAAkC,0BAAlC;AACA,SAASN,OAAO,IAAIO,UAApB,QAAsC,yBAAtC;AACA,SAASP,OAAO,IAAIQ,IAApB,QAAgC,mBAAhC;AACA,SAASR,OAAO,IAAIS,QAApB,QAAoC,uBAApC;AACA,SAASC,QAAT,EAAmBC,aAAnB,EAAkCC,WAAlC,QAAqD,uBAArD;AACA,SAASZ,OAAO,IAAIa,WAApB,QAAuC,0BAAvC;AACA,SAASb,OAAO,IAAIc,SAApB,QAAqC,wBAArC;AACA,SAASd,OAAO,IAAIe,OAApB,QAAmC,sBAAnC;AACA,SAASf,OAAO,IAAIgB,GAApB,QAA+B,kBAA/B;AACA,SAAShB,OAAO,IAAIiB,kBAApB,QAA8C,iCAA9C;AACA,SAASjB,OAAO,IAAIkB,UAApB,QAAsC,yBAAtC;AACA,SAASlB,OAAO,IAAImB,KAApB,QAAiC,oBAAjC;AACA,SAASnB,OAAO,IAAIoB,WAApB,QAAuC,0BAAvC;AACA,SAASpB,OAAO,IAAIqB,eAApB,QAA2C,8BAA3C;AACA,SAASrB,OAAO,IAAIsB,UAApB,QAAsC,yBAAtC;AACA,SAAStB,OAAO,IAAIuB,OAApB,QAAmC,sBAAnC;AACA,SAASvB,OAAO,IAAIwB,MAApB,EAA4BC,SAA5B,QAA6C,qBAA7C;AACA,SAASzB,OAAO,IAAI0B,SAApB,QAAqC,wBAArC;AACA,SAAS1B,OAAO,IAAI2B,YAApB,QAAwC,2BAAxC;AACA,SAAS3B,OAAO,IAAI4B,SAApB,QAAqC,wBAArC;AACA,SAASC,cAAT,EAAyBC,aAAzB,QAA8C,wBAA9C;AACA,SACEC,WADF,EAEEC,eAFF,EAGEC,iBAHF,QAIO,0BAJP;AAKA,SAASC,MAAT,EAAiBC,UAAjB,QAAmC,qBAAnC;AAEA,SACEC,MADF,EAEEC,MAFF,EAGEC,MAHF,EAIEC,GAJF,EAKEC,KALF,EAMEC,MANF,QAOO,qBAPP;AASA,SACEC,WADF,EAEEC,gBAFF,EAGEC,cAHF,EAIEC,qBAJF,QAKO,gCALP;AAOA;;AACA,
|
|
1
|
+
{"version":3,"sources":["index.tsx"],"names":["injectIcon","withTheme","ThemeProvider","default","Provider","DefaultTheme","Link","ButtonSolid","ButtonOutline","Avatar","AvatarEdit","Card","Carousel","Checkbox","CheckboxGroup","CheckboxRow","CircleImage","Container","Divider","FAB","FieldSearchBarFull","IconButton","Image","NumberInput","ScreenContainer","StarRating","Surface","Switch","SwitchRow","TextField","ToggleButton","Touchable","AccordionGroup","AccordionItem","LinearGradient","ActionSheet","ActionSheetItem","ActionSheetCancel","Swiper","SwiperItem","Center","Circle","Square","Row","Stack","Spacer","RadioButton","RadioButtonGroup","RadioButtonRow","RadioButtonFieldGroup","Button","CardBlock","CardContainer","CardContainerRating","CardInline","DatePicker","HeaderLarge","HeaderMedium","HeaderOverline","Picker","ProgressBar","ProgressCircle","RowBodyIcon","RowHeadlineImageCaption","RowHeadlineImageIcon","Slider","Stepper","useAuthState"],"mappings":"AAAA,SAASA,UAAT,QAA2B,mBAA3B;AACA,SAASC,SAAT,EAAoBC,aAApB,QAAyC,WAAzC;AACA,SAASC,OAAO,IAAIC,QAApB,QAAoC,YAApC;AACA,SAASD,OAAO,IAAIE,YAApB,QAAwC,uBAAxC;AAEA,SAASC,IAAT,QAAqB,mBAArB;AACA,SAASC,WAAT,EAAsBC,aAAtB,QAA2C,qBAA3C;AACA,SAASL,OAAO,IAAIM,MAApB,QAAkC,0BAAlC;AACA,SAASN,OAAO,IAAIO,UAApB,QAAsC,yBAAtC;AACA,SAASP,OAAO,IAAIQ,IAApB,QAAgC,mBAAhC;AACA,SAASR,OAAO,IAAIS,QAApB,QAAoC,uBAApC;AACA,SAASC,QAAT,EAAmBC,aAAnB,EAAkCC,WAAlC,QAAqD,uBAArD;AACA,SAASZ,OAAO,IAAIa,WAApB,QAAuC,0BAAvC;AACA,SAASb,OAAO,IAAIc,SAApB,QAAqC,wBAArC;AACA,SAASd,OAAO,IAAIe,OAApB,QAAmC,sBAAnC;AACA,SAASf,OAAO,IAAIgB,GAApB,QAA+B,kBAA/B;AACA,SAAShB,OAAO,IAAIiB,kBAApB,QAA8C,iCAA9C;AACA,SAASjB,OAAO,IAAIkB,UAApB,QAAsC,yBAAtC;AACA,SAASlB,OAAO,IAAImB,KAApB,QAAiC,oBAAjC;AACA,SAASnB,OAAO,IAAIoB,WAApB,QAAuC,0BAAvC;AACA,SAASpB,OAAO,IAAIqB,eAApB,QAA2C,8BAA3C;AACA,SAASrB,OAAO,IAAIsB,UAApB,QAAsC,yBAAtC;AACA,SAAStB,OAAO,IAAIuB,OAApB,QAAmC,sBAAnC;AACA,SAASvB,OAAO,IAAIwB,MAApB,EAA4BC,SAA5B,QAA6C,qBAA7C;AACA,SAASzB,OAAO,IAAI0B,SAApB,QAAqC,wBAArC;AACA,SAAS1B,OAAO,IAAI2B,YAApB,QAAwC,2BAAxC;AACA,SAAS3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BAAnC;AACA,SAASC,YAAT,QAA6B,2BAA7B","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 { 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 { default as LinearGradient } from \"./components/LinearGradient\";\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"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["BlurView.
|
|
1
|
+
{"version":3,"sources":["BlurView.js"],"names":["COMPONENT_TYPES","FORM_TYPES","PROP_TYPES","GROUPS","SEED_DATA","name","tag","description","doc_link","code_link","category","layout","flexGrow","flexShrink","flexBasis","props","tint","label","editable","required","defaultValue","formType","flatArray","propType","STRING","options","group","basic","intensity","number","NUMBER","min","max","step","precision"],"mappings":"AAAA,SAASA,eAAT,EAA0BC,UAA1B,EAAsCC,UAAtC,EAAkDC,MAAlD,QAAiE,iBAAjE;AACA,OAAO,MAAMC,SAAS,GAAG;AACrBC,EAAAA,IAAI,EAAE,WADe;AAErBC,EAAAA,GAAG,EAAE,UAFgB;AAGrBC,EAAAA,WAAW,EAAE,gBAHQ;AAIrBC,EAAAA,QAAQ,EAAE,qDAJW;AAKrBC,EAAAA,SAAS,EAAE,kFALU;AAMrBC,EAAAA,QAAQ,EAAEV,eAAe,CAACW,MANL;AAOrBA,EAAAA,MAAM,EAAE;AACJC,IAAAA,QAAQ,EAAE,CADN;AAEJC,IAAAA,UAAU,EAAE,CAFR;AAGJC,IAAAA,SAAS,EAAE;AAHP,GAPa;AAYrBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,IAAI,EAAE;AACFC,MAAAA,KAAK,EAAE,MADL;AAEFV,MAAAA,WAAW,EAAE,2BAFX;AAGFW,MAAAA,QAAQ,EAAE,IAHR;AAIFC,MAAAA,QAAQ,EAAE,IAJR;AAKFC,MAAAA,YAAY,EAAE,SALZ;AAMFC,MAAAA,QAAQ,EAAEpB,UAAU,CAACqB,SANnB;AAOFC,MAAAA,QAAQ,EAAErB,UAAU,CAACsB,MAPnB;AAQFC,MAAAA,OAAO,EAAE,CAAC,SAAD,EAAY,OAAZ,EAAqB,MAArB,CARP;AASFC,MAAAA,KAAK,EAAEvB,MAAM,CAACwB;AATZ,KADH;AAYHC,IAAAA,SAAS,EAAE;AACPX,MAAAA,KAAK,EAAE,WADA;AAEPV,MAAAA,WAAW,EAAE,uEAFN;AAGPW,MAAAA,QAAQ,EAAE,IAHH;AAIPC,MAAAA,QAAQ,EAAE,IAJH;AAKPC,MAAAA,YAAY,EAAE,EALP;AAMPC,MAAAA,QAAQ,EAAEpB,UAAU,CAAC4B,MANd;AAOPN,MAAAA,QAAQ,EAAErB,UAAU,CAAC4B,MAPd;AAQPC,MAAAA,GAAG,EAAE,CARE;AASPC,MAAAA,GAAG,EAAE,GATE;AAUPC,MAAAA,IAAI,EAAE,CAVC;AAWPC,MAAAA,SAAS,EAAE,CAXJ;AAYPR,MAAAA,KAAK,EAAEvB,MAAM,CAACwB;AAZP;AAZR;AAZc,CAAlB","sourcesContent":["import { COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, GROUPS, } from \"@draftbit/types\";\nexport const SEED_DATA = {\n name: \"Blur View\",\n tag: \"BlurView\",\n description: \"Expo Blur View\",\n doc_link: \"https://docs.expo.io/versions/latest/sdk/blur-view/\",\n code_link: \"https://github.com/expo/expo/blob/master/packages/expo/src/effects/BlurView.d.ts\",\n category: COMPONENT_TYPES.layout,\n layout: {\n flexGrow: 1,\n flexShrink: 1,\n flexBasis: 0,\n },\n props: {\n tint: {\n label: \"Tint\",\n description: \"The tint of the blur view\",\n editable: true,\n required: true,\n defaultValue: \"default\",\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n options: [\"default\", \"light\", \"dark\"],\n group: GROUPS.basic,\n },\n intensity: {\n label: \"Intensity\",\n description: \"A number from 1 to 100 that controls the intensity of the blur effect\",\n editable: true,\n required: true,\n defaultValue: 50,\n formType: FORM_TYPES.number,\n propType: PROP_TYPES.NUMBER,\n min: 0,\n max: 100,\n step: 1,\n precision: 0,\n group: GROUPS.basic,\n },\n },\n};\n"]}
|
package/lib/typescript/src/{mappings/DeprecatedButton.d.ts → components/LinearGradient.d.ts}
RENAMED
|
@@ -1,89 +1,108 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
declare type LinearGradientComponentProps = {
|
|
4
|
+
color1: string;
|
|
5
|
+
color2: string;
|
|
6
|
+
color3?: string;
|
|
7
|
+
startX: number;
|
|
8
|
+
startY: number;
|
|
9
|
+
endX: number;
|
|
10
|
+
endY: number;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
style?: StyleProp<ViewStyle>;
|
|
13
|
+
};
|
|
14
|
+
declare const LinearGradientComponent: ({ children, color1, color2, color3, startX, startY, endX, endY, style, }: LinearGradientComponentProps) => JSX.Element;
|
|
15
|
+
export default LinearGradientComponent;
|
|
1
16
|
export declare const SEED_DATA: {
|
|
2
17
|
name: string;
|
|
3
18
|
tag: string;
|
|
4
|
-
|
|
5
|
-
triggers: string[];
|
|
19
|
+
description: string;
|
|
6
20
|
props: {
|
|
7
|
-
|
|
21
|
+
color1: {
|
|
8
22
|
group: string;
|
|
9
23
|
label: string;
|
|
10
24
|
description: string;
|
|
11
25
|
editable: boolean;
|
|
12
26
|
required: boolean;
|
|
27
|
+
defaultValue: null;
|
|
13
28
|
formType: string;
|
|
14
29
|
propType: string;
|
|
15
|
-
defaultValue: string;
|
|
16
30
|
};
|
|
17
|
-
|
|
31
|
+
color2: {
|
|
32
|
+
group: string;
|
|
18
33
|
label: string;
|
|
19
34
|
description: string;
|
|
20
35
|
editable: boolean;
|
|
21
36
|
required: boolean;
|
|
37
|
+
defaultValue: null;
|
|
22
38
|
formType: string;
|
|
23
39
|
propType: string;
|
|
24
|
-
defaultValue: null;
|
|
25
|
-
group: string;
|
|
26
40
|
};
|
|
27
|
-
|
|
41
|
+
color3: {
|
|
28
42
|
group: string;
|
|
29
43
|
label: string;
|
|
30
44
|
description: string;
|
|
31
45
|
editable: boolean;
|
|
32
46
|
required: boolean;
|
|
33
|
-
formType: string;
|
|
34
|
-
propType: string;
|
|
35
47
|
defaultValue: null;
|
|
36
|
-
};
|
|
37
|
-
children: {
|
|
38
|
-
group: string;
|
|
39
|
-
label: string;
|
|
40
|
-
description: string;
|
|
41
|
-
required: boolean;
|
|
42
|
-
editable: boolean;
|
|
43
48
|
formType: string;
|
|
44
49
|
propType: string;
|
|
45
|
-
defaultValue: string;
|
|
46
50
|
};
|
|
47
|
-
|
|
51
|
+
startX: {
|
|
48
52
|
group: string;
|
|
49
53
|
label: string;
|
|
50
54
|
description: string;
|
|
51
55
|
editable: boolean;
|
|
52
56
|
required: boolean;
|
|
57
|
+
defaultValue: number;
|
|
58
|
+
min: number;
|
|
59
|
+
max: number;
|
|
60
|
+
step: number;
|
|
61
|
+
precision: number;
|
|
53
62
|
formType: string;
|
|
54
63
|
propType: string;
|
|
55
|
-
defaultValue: null;
|
|
56
64
|
};
|
|
57
|
-
|
|
65
|
+
startY: {
|
|
58
66
|
group: string;
|
|
59
67
|
label: string;
|
|
60
68
|
description: string;
|
|
61
69
|
editable: boolean;
|
|
62
70
|
required: boolean;
|
|
71
|
+
defaultValue: number;
|
|
72
|
+
min: number;
|
|
73
|
+
max: number;
|
|
74
|
+
step: number;
|
|
75
|
+
precision: number;
|
|
63
76
|
formType: string;
|
|
64
77
|
propType: string;
|
|
65
|
-
defaultValue: null;
|
|
66
78
|
};
|
|
67
|
-
|
|
79
|
+
endX: {
|
|
68
80
|
group: string;
|
|
69
81
|
label: string;
|
|
70
82
|
description: string;
|
|
71
83
|
editable: boolean;
|
|
72
84
|
required: boolean;
|
|
85
|
+
defaultValue: number;
|
|
86
|
+
min: number;
|
|
87
|
+
max: number;
|
|
88
|
+
step: number;
|
|
89
|
+
precision: number;
|
|
73
90
|
formType: string;
|
|
74
91
|
propType: string;
|
|
75
|
-
defaultValue: null;
|
|
76
92
|
};
|
|
77
|
-
|
|
93
|
+
endY: {
|
|
78
94
|
group: string;
|
|
79
95
|
label: string;
|
|
80
96
|
description: string;
|
|
81
97
|
editable: boolean;
|
|
82
98
|
required: boolean;
|
|
99
|
+
defaultValue: number;
|
|
100
|
+
min: number;
|
|
101
|
+
max: number;
|
|
102
|
+
step: number;
|
|
103
|
+
precision: number;
|
|
83
104
|
formType: string;
|
|
84
105
|
propType: string;
|
|
85
|
-
defaultValue: null;
|
|
86
106
|
};
|
|
87
107
|
};
|
|
88
|
-
|
|
89
|
-
}[];
|
|
108
|
+
};
|
|
@@ -25,6 +25,7 @@ export { default as TextField } from "./components/TextField";
|
|
|
25
25
|
export { default as ToggleButton } from "./components/ToggleButton";
|
|
26
26
|
export { default as Touchable } from "./components/Touchable";
|
|
27
27
|
export { AccordionGroup, AccordionItem } from "./components/Accordion";
|
|
28
|
+
export { default as LinearGradient } from "./components/LinearGradient";
|
|
28
29
|
export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/ActionSheet";
|
|
29
30
|
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
30
31
|
export { Center, Circle, Square, Row, Stack, Spacer, } from "./components/Layout";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "43.4.1",
|
|
3
|
+
"version": "43.4.2-80bace.1+80bace74",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"color": "^3.1.2",
|
|
50
50
|
"date-fns": "^2.16.1",
|
|
51
51
|
"dateformat": "^3.0.3",
|
|
52
|
+
"expo-linear-gradient": "^9.2.0",
|
|
52
53
|
"lodash.isnumber": "^3.0.3",
|
|
53
54
|
"lodash.omit": "^4.5.0",
|
|
54
55
|
"lodash.tonumber": "^4.0.3",
|
|
@@ -79,5 +80,5 @@
|
|
|
79
80
|
]
|
|
80
81
|
]
|
|
81
82
|
},
|
|
82
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "80bace74bf70bd1768c7d68c3a02e79f0d1aa3d1"
|
|
83
84
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { LinearGradient } from "expo-linear-gradient";
|
|
3
|
+
import { extractStyles } from "../utilities";
|
|
4
|
+
import { createColorProp, FORM_TYPES, GROUPS, PROP_TYPES, } from "@draftbit/types";
|
|
5
|
+
const LinearGradientComponent = ({ children, color1, color2, color3 = undefined, startX = 0, startY = 0, endX = 100, endY = 0, style, }) => {
|
|
6
|
+
const { viewStyles } = extractStyles(style);
|
|
7
|
+
const colors = [color1, color2, color3].filter((color) => color);
|
|
8
|
+
const start = { x: startX / 100, y: startY / 100 };
|
|
9
|
+
const end = { x: endX / 100, y: endY / 100 };
|
|
10
|
+
return (React.createElement(LinearGradient, { colors: colors, start: start, end: end, style: viewStyles }, children));
|
|
11
|
+
};
|
|
12
|
+
export default LinearGradientComponent;
|
|
13
|
+
export const SEED_DATA = {
|
|
14
|
+
name: "LinearGradient",
|
|
15
|
+
tag: "LinearGradient",
|
|
16
|
+
description: "Linear Gradient Component",
|
|
17
|
+
props: {
|
|
18
|
+
color1: createColorProp({
|
|
19
|
+
label: "Color 1",
|
|
20
|
+
}),
|
|
21
|
+
color2: createColorProp({
|
|
22
|
+
label: "Color 2",
|
|
23
|
+
}),
|
|
24
|
+
color3: createColorProp({
|
|
25
|
+
label: "Color 3",
|
|
26
|
+
}),
|
|
27
|
+
startX: {
|
|
28
|
+
group: GROUPS.basic,
|
|
29
|
+
label: "Start X",
|
|
30
|
+
description: "Start position from Left",
|
|
31
|
+
editable: true,
|
|
32
|
+
required: false,
|
|
33
|
+
defaultValue: 0,
|
|
34
|
+
min: 0,
|
|
35
|
+
max: 100,
|
|
36
|
+
step: 1,
|
|
37
|
+
precision: 0,
|
|
38
|
+
formType: FORM_TYPES.number,
|
|
39
|
+
propType: PROP_TYPES.NUMBER,
|
|
40
|
+
},
|
|
41
|
+
startY: {
|
|
42
|
+
group: GROUPS.basic,
|
|
43
|
+
label: "Start Y",
|
|
44
|
+
description: "Start position from Top",
|
|
45
|
+
editable: true,
|
|
46
|
+
required: false,
|
|
47
|
+
defaultValue: 0,
|
|
48
|
+
min: 0,
|
|
49
|
+
max: 100,
|
|
50
|
+
step: 1,
|
|
51
|
+
precision: 0,
|
|
52
|
+
formType: FORM_TYPES.number,
|
|
53
|
+
propType: PROP_TYPES.NUMBER,
|
|
54
|
+
},
|
|
55
|
+
endX: {
|
|
56
|
+
group: GROUPS.basic,
|
|
57
|
+
label: "End Y",
|
|
58
|
+
description: "End position from Right",
|
|
59
|
+
editable: true,
|
|
60
|
+
required: false,
|
|
61
|
+
defaultValue: 100,
|
|
62
|
+
min: 0,
|
|
63
|
+
max: 100,
|
|
64
|
+
step: 1,
|
|
65
|
+
precision: 0,
|
|
66
|
+
formType: FORM_TYPES.number,
|
|
67
|
+
propType: PROP_TYPES.NUMBER,
|
|
68
|
+
},
|
|
69
|
+
endY: {
|
|
70
|
+
group: GROUPS.basic,
|
|
71
|
+
label: "End Y",
|
|
72
|
+
description: "End position from Bottom",
|
|
73
|
+
editable: true,
|
|
74
|
+
required: false,
|
|
75
|
+
defaultValue: 100,
|
|
76
|
+
min: 0,
|
|
77
|
+
max: 100,
|
|
78
|
+
step: 1,
|
|
79
|
+
precision: 0,
|
|
80
|
+
formType: FORM_TYPES.number,
|
|
81
|
+
propType: PROP_TYPES.NUMBER,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
import { LinearGradient } from "expo-linear-gradient";
|
|
4
|
+
import { extractStyles } from "../utilities";
|
|
5
|
+
import {
|
|
6
|
+
createColorProp,
|
|
7
|
+
FORM_TYPES,
|
|
8
|
+
GROUPS,
|
|
9
|
+
PROP_TYPES,
|
|
10
|
+
} from "@draftbit/types";
|
|
11
|
+
|
|
12
|
+
type LinearGradientComponentProps = {
|
|
13
|
+
color1: string;
|
|
14
|
+
color2: string;
|
|
15
|
+
color3?: string;
|
|
16
|
+
startX: number;
|
|
17
|
+
startY: number;
|
|
18
|
+
endX: number;
|
|
19
|
+
endY: number;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
style?: StyleProp<ViewStyle>;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const LinearGradientComponent = ({
|
|
25
|
+
children,
|
|
26
|
+
color1,
|
|
27
|
+
color2,
|
|
28
|
+
color3 = undefined,
|
|
29
|
+
startX = 0,
|
|
30
|
+
startY = 0,
|
|
31
|
+
endX = 100,
|
|
32
|
+
endY = 0,
|
|
33
|
+
style,
|
|
34
|
+
}: LinearGradientComponentProps) => {
|
|
35
|
+
const { viewStyles } = extractStyles(style);
|
|
36
|
+
const colors = [color1, color2, color3].filter((color) => color) as string[];
|
|
37
|
+
const start = { x: startX / 100, y: startY / 100 };
|
|
38
|
+
const end = { x: endX / 100, y: endY / 100 };
|
|
39
|
+
return (
|
|
40
|
+
<LinearGradient colors={colors} start={start} end={end} style={viewStyles}>
|
|
41
|
+
{children}
|
|
42
|
+
</LinearGradient>
|
|
43
|
+
);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export default LinearGradientComponent;
|
|
47
|
+
|
|
48
|
+
export const SEED_DATA = {
|
|
49
|
+
name: "LinearGradient",
|
|
50
|
+
tag: "LinearGradient",
|
|
51
|
+
description: "Linear Gradient Component",
|
|
52
|
+
props: {
|
|
53
|
+
color1: createColorProp({
|
|
54
|
+
label: "Color 1",
|
|
55
|
+
}),
|
|
56
|
+
color2: createColorProp({
|
|
57
|
+
label: "Color 2",
|
|
58
|
+
}),
|
|
59
|
+
color3: createColorProp({
|
|
60
|
+
label: "Color 3",
|
|
61
|
+
}),
|
|
62
|
+
startX: {
|
|
63
|
+
group: GROUPS.basic,
|
|
64
|
+
label: "Start X",
|
|
65
|
+
description: "Start position from Left",
|
|
66
|
+
editable: true,
|
|
67
|
+
required: false,
|
|
68
|
+
defaultValue: 0,
|
|
69
|
+
min: 0,
|
|
70
|
+
max: 100,
|
|
71
|
+
step: 1,
|
|
72
|
+
precision: 0,
|
|
73
|
+
formType: FORM_TYPES.number,
|
|
74
|
+
propType: PROP_TYPES.NUMBER,
|
|
75
|
+
},
|
|
76
|
+
startY: {
|
|
77
|
+
group: GROUPS.basic,
|
|
78
|
+
label: "Start Y",
|
|
79
|
+
description: "Start position from Top",
|
|
80
|
+
editable: true,
|
|
81
|
+
required: false,
|
|
82
|
+
defaultValue: 0,
|
|
83
|
+
min: 0,
|
|
84
|
+
max: 100,
|
|
85
|
+
step: 1,
|
|
86
|
+
precision: 0,
|
|
87
|
+
formType: FORM_TYPES.number,
|
|
88
|
+
propType: PROP_TYPES.NUMBER,
|
|
89
|
+
},
|
|
90
|
+
endX: {
|
|
91
|
+
group: GROUPS.basic,
|
|
92
|
+
label: "End Y",
|
|
93
|
+
description: "End position from Right",
|
|
94
|
+
editable: true,
|
|
95
|
+
required: false,
|
|
96
|
+
defaultValue: 100,
|
|
97
|
+
min: 0,
|
|
98
|
+
max: 100,
|
|
99
|
+
step: 1,
|
|
100
|
+
precision: 0,
|
|
101
|
+
formType: FORM_TYPES.number,
|
|
102
|
+
propType: PROP_TYPES.NUMBER,
|
|
103
|
+
},
|
|
104
|
+
endY: {
|
|
105
|
+
group: GROUPS.basic,
|
|
106
|
+
label: "End Y",
|
|
107
|
+
description: "End position from Bottom",
|
|
108
|
+
editable: true,
|
|
109
|
+
required: false,
|
|
110
|
+
defaultValue: 100,
|
|
111
|
+
min: 0,
|
|
112
|
+
max: 100,
|
|
113
|
+
step: 1,
|
|
114
|
+
precision: 0,
|
|
115
|
+
formType: FORM_TYPES.number,
|
|
116
|
+
propType: PROP_TYPES.NUMBER,
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
};
|
package/src/index.js
CHANGED
|
@@ -25,6 +25,7 @@ export { default as TextField } from "./components/TextField";
|
|
|
25
25
|
export { default as ToggleButton } from "./components/ToggleButton";
|
|
26
26
|
export { default as Touchable } from "./components/Touchable";
|
|
27
27
|
export { AccordionGroup, AccordionItem } from "./components/Accordion";
|
|
28
|
+
export { default as LinearGradient } from "./components/LinearGradient";
|
|
28
29
|
export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/ActionSheet";
|
|
29
30
|
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
30
31
|
export { Center, Circle, Square, Row, Stack, Spacer, } from "./components/Layout";
|
package/src/index.tsx
CHANGED
|
@@ -26,6 +26,7 @@ export { default as TextField } from "./components/TextField";
|
|
|
26
26
|
export { default as ToggleButton } from "./components/ToggleButton";
|
|
27
27
|
export { default as Touchable } from "./components/Touchable";
|
|
28
28
|
export { AccordionGroup, AccordionItem } from "./components/Accordion";
|
|
29
|
+
export { default as LinearGradient } from "./components/LinearGradient";
|
|
29
30
|
export {
|
|
30
31
|
ActionSheet,
|
|
31
32
|
ActionSheetItem,
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SEED_DATA = void 0;
|
|
7
|
-
|
|
8
|
-
var _types = require("@draftbit/types");
|
|
9
|
-
|
|
10
|
-
const SEED_DATA_PROPS = {
|
|
11
|
-
onPress: (0, _types.createActionProp)(),
|
|
12
|
-
icon: {
|
|
13
|
-
group: _types.GROUPS.basic,
|
|
14
|
-
label: "Icon Name",
|
|
15
|
-
description: "Name of the icon",
|
|
16
|
-
editable: true,
|
|
17
|
-
required: true,
|
|
18
|
-
formType: _types.FORM_TYPES.icon,
|
|
19
|
-
propType: _types.PROP_TYPES.STRING,
|
|
20
|
-
defaultValue: null
|
|
21
|
-
},
|
|
22
|
-
children: {
|
|
23
|
-
group: _types.GROUPS.data,
|
|
24
|
-
label: "Label",
|
|
25
|
-
description: "Button label",
|
|
26
|
-
required: true,
|
|
27
|
-
editable: true,
|
|
28
|
-
formType: _types.FORM_TYPES.string,
|
|
29
|
-
propType: _types.PROP_TYPES.STRING,
|
|
30
|
-
defaultValue: "Get Started"
|
|
31
|
-
},
|
|
32
|
-
color: {
|
|
33
|
-
group: _types.GROUPS.basic,
|
|
34
|
-
label: "Color Override",
|
|
35
|
-
description: "Override the background color of the button",
|
|
36
|
-
editable: true,
|
|
37
|
-
required: false,
|
|
38
|
-
formType: _types.FORM_TYPES.color,
|
|
39
|
-
propType: _types.PROP_TYPES.THEME,
|
|
40
|
-
defaultValue: null
|
|
41
|
-
},
|
|
42
|
-
labelColor: {
|
|
43
|
-
group: _types.GROUPS.basic,
|
|
44
|
-
label: "Label Color Override",
|
|
45
|
-
description: "Override the label color of the button",
|
|
46
|
-
editable: true,
|
|
47
|
-
required: false,
|
|
48
|
-
formType: _types.FORM_TYPES.color,
|
|
49
|
-
propType: _types.PROP_TYPES.THEME,
|
|
50
|
-
defaultValue: null
|
|
51
|
-
},
|
|
52
|
-
disabled: {
|
|
53
|
-
group: _types.GROUPS.basic,
|
|
54
|
-
label: "Disabled",
|
|
55
|
-
description: "Whether the button should be disabled",
|
|
56
|
-
editable: true,
|
|
57
|
-
required: false,
|
|
58
|
-
formType: _types.FORM_TYPES.boolean,
|
|
59
|
-
propType: _types.PROP_TYPES.BOOLEAN,
|
|
60
|
-
defaultValue: null
|
|
61
|
-
},
|
|
62
|
-
loading: {
|
|
63
|
-
group: _types.GROUPS.data,
|
|
64
|
-
label: "Loading",
|
|
65
|
-
description: "Whether to show a loading indicator",
|
|
66
|
-
editable: true,
|
|
67
|
-
required: false,
|
|
68
|
-
formType: _types.FORM_TYPES.boolean,
|
|
69
|
-
propType: _types.PROP_TYPES.BOOLEAN,
|
|
70
|
-
defaultValue: null
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
const SEED_DATA = [{
|
|
74
|
-
name: "Button Outline",
|
|
75
|
-
tag: "Button",
|
|
76
|
-
category: _types.COMPONENT_TYPES.deprecated,
|
|
77
|
-
triggers: [_types.Triggers.OnPress],
|
|
78
|
-
props: { ...SEED_DATA_PROPS,
|
|
79
|
-
type: {
|
|
80
|
-
group: _types.GROUPS.uncategorized,
|
|
81
|
-
label: "Type",
|
|
82
|
-
description: "Button type",
|
|
83
|
-
editable: false,
|
|
84
|
-
required: true,
|
|
85
|
-
formType: _types.FORM_TYPES.string,
|
|
86
|
-
propType: _types.PROP_TYPES.STRING,
|
|
87
|
-
defaultValue: "outline"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
layout: {}
|
|
91
|
-
}, {
|
|
92
|
-
name: "Button Solid",
|
|
93
|
-
tag: "Button",
|
|
94
|
-
category: _types.COMPONENT_TYPES.deprecated,
|
|
95
|
-
triggers: [_types.Triggers.OnPress],
|
|
96
|
-
props: { ...SEED_DATA_PROPS,
|
|
97
|
-
type: {
|
|
98
|
-
group: _types.GROUPS.uncategorized,
|
|
99
|
-
label: "Type",
|
|
100
|
-
description: "Button type",
|
|
101
|
-
editable: false,
|
|
102
|
-
required: true,
|
|
103
|
-
formType: _types.FORM_TYPES.string,
|
|
104
|
-
propType: _types.PROP_TYPES.STRING,
|
|
105
|
-
defaultValue: "solid"
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
layout: {}
|
|
109
|
-
}];
|
|
110
|
-
exports.SEED_DATA = SEED_DATA;
|
|
111
|
-
//# sourceMappingURL=DeprecatedButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["DeprecatedButton.ts"],"names":["SEED_DATA_PROPS","onPress","icon","group","GROUPS","basic","label","description","editable","required","formType","FORM_TYPES","propType","PROP_TYPES","STRING","defaultValue","children","data","string","color","THEME","labelColor","disabled","boolean","BOOLEAN","loading","SEED_DATA","name","tag","category","COMPONENT_TYPES","deprecated","triggers","Triggers","OnPress","props","type","uncategorized","layout"],"mappings":";;;;;;;AAAA;;AASA,MAAMA,eAAe,GAAG;AACtBC,EAAAA,OAAO,EAAE,8BADa;AAEtBC,EAAAA,IAAI,EAAE;AACJC,IAAAA,KAAK,EAAEC,cAAOC,KADV;AAEJC,IAAAA,KAAK,EAAE,WAFH;AAGJC,IAAAA,WAAW,EAAE,kBAHT;AAIJC,IAAAA,QAAQ,EAAE,IAJN;AAKJC,IAAAA,QAAQ,EAAE,IALN;AAMJC,IAAAA,QAAQ,EAAEC,kBAAWT,IANjB;AAOJU,IAAAA,QAAQ,EAAEC,kBAAWC,MAPjB;AAQJC,IAAAA,YAAY,EAAE;AARV,GAFgB;AAYtBC,EAAAA,QAAQ,EAAE;AACRb,IAAAA,KAAK,EAAEC,cAAOa,IADN;AAERX,IAAAA,KAAK,EAAE,OAFC;AAGRC,IAAAA,WAAW,EAAE,cAHL;AAIRE,IAAAA,QAAQ,EAAE,IAJF;AAKRD,IAAAA,QAAQ,EAAE,IALF;AAMRE,IAAAA,QAAQ,EAAEC,kBAAWO,MANb;AAORN,IAAAA,QAAQ,EAAEC,kBAAWC,MAPb;AAQRC,IAAAA,YAAY,EAAE;AARN,GAZY;AAsBtBI,EAAAA,KAAK,EAAE;AACLhB,IAAAA,KAAK,EAAEC,cAAOC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ent":["import {\n GROUPS,\n FORM_TYPES,\n PROP_TYPES,\n COMPONENT_TYPES,\n createActionProp,\n Triggers,\n} from \"@draftbit/types\";\n\nconst SEED_DATA_PROPS = {\n onPress: createActionProp(),\n icon: {\n group: GROUPS.basic,\n label: \"Icon Name\",\n description: \"Name of the icon\",\n editable: true,\n required: true,\n formType: FORM_TYPES.icon,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n children: {\n group: GROUPS.data,\n label: \"Label\",\n description: \"Button label\",\n required: true,\n editable: true,\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"Get Started\",\n },\n color: {\n group: GROUPS.basic,\n label: \"Color Override\",\n description: \"Override the background color of the button\",\n editable: true,\n required: false,\n formType: FORM_TYPES.color,\n propType: PROP_TYPES.THEME,\n defaultValue: null,\n },\n labelColor: {\n group: GROUPS.basic,\n label: \"Label Color Override\",\n description: \"Override the label color of the button\",\n editable: true,\n required: false,\n formType: FORM_TYPES.color,\n propType: PROP_TYPES.THEME,\n defaultValue: null,\n },\n disabled: {\n group: GROUPS.basic,\n label: \"Disabled\",\n description: \"Whether the button should be disabled\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n loading: {\n group: GROUPS.data,\n label: \"Loading\",\n description: \"Whether to show a loading indicator\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n};\n\nexport const SEED_DATA = [\n {\n name: \"Button Outline\",\n tag: \"Button\",\n category: COMPONENT_TYPES.deprecated,\n triggers: [Triggers.OnPress],\n props: {\n ...SEED_DATA_PROPS,\n type: {\n group: GROUPS.uncategorized,\n label: \"Type\",\n description: \"Button type\",\n editable: false,\n required: true,\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"outline\",\n },\n },\n layout: {},\n },\n {\n name: \"Button Solid\",\n tag: \"Button\",\n category: COMPONENT_TYPES.deprecated,\n triggers: [Triggers.OnPress],\n props: {\n ...SEED_DATA_PROPS,\n type: {\n group: GROUPS.uncategorized,\n label: \"Type\",\n description: \"Button type\",\n editable: false,\n required: true,\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: \"solid\",\n },\n },\n layout: {},\n },\n];\n"]}
|