@draftbit/core 46.7.9-13d0dd.2 → 46.7.9-193328.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.
Files changed (64) hide show
  1. package/lib/commonjs/components/DatePicker/DatePicker.js +8 -1
  2. package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +74 -0
  3. package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js +34 -0
  4. package/lib/commonjs/components/DeckSwiper/index.js +20 -0
  5. package/lib/commonjs/components/Divider.js +1 -14
  6. package/lib/commonjs/components/Elevation.js +2 -14
  7. package/lib/commonjs/components/NumberInput.js +10 -10
  8. package/lib/commonjs/components/Picker/Picker.js +3 -2
  9. package/lib/commonjs/index.js +13 -0
  10. package/lib/commonjs/mappings/DatePicker.js +2 -1
  11. package/lib/commonjs/mappings/DeckSwiper.js +55 -0
  12. package/lib/commonjs/mappings/DeckSwiperCard.js +23 -0
  13. package/lib/commonjs/mappings/HtmlElements.js +177 -0
  14. package/lib/module/components/Accordion/AccordionItem.js +4 -25
  15. package/lib/module/components/DatePicker/DatePicker.js +8 -1
  16. package/lib/module/components/DeckSwiper/DeckSwiper.js +66 -0
  17. package/lib/module/components/DeckSwiper/DeckSwiperCard.js +26 -0
  18. package/lib/module/components/DeckSwiper/index.js +2 -0
  19. package/lib/module/components/NumberInput.js +10 -10
  20. package/lib/module/components/Picker/Picker.js +3 -2
  21. package/lib/module/index.js +1 -0
  22. package/lib/module/mappings/DatePicker.js +2 -1
  23. package/lib/module/mappings/DeckSwiper.js +48 -0
  24. package/lib/module/mappings/DeckSwiperCard.js +16 -0
  25. package/lib/module/mappings/HtmlElements.js +170 -0
  26. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts +15 -0
  27. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts.map +1 -0
  28. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +13 -0
  29. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts.map +1 -0
  30. package/lib/typescript/src/components/DeckSwiper/index.d.ts +3 -0
  31. package/lib/typescript/src/components/DeckSwiper/index.d.ts.map +1 -0
  32. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
  33. package/lib/typescript/src/index.d.ts +1 -0
  34. package/lib/typescript/src/index.d.ts.map +1 -1
  35. package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -1
  36. package/lib/typescript/src/mappings/DeckSwiper.d.ts +86 -0
  37. package/lib/typescript/src/mappings/DeckSwiper.d.ts.map +1 -0
  38. package/lib/typescript/src/mappings/DeckSwiperCard.d.ts +16 -0
  39. package/lib/typescript/src/mappings/DeckSwiperCard.d.ts.map +1 -0
  40. package/lib/typescript/src/mappings/HtmlElements.d.ts +77 -0
  41. package/lib/typescript/src/mappings/HtmlElements.d.ts.map +1 -0
  42. package/package.json +5 -3
  43. package/src/components/DatePicker/DatePicker.js +1 -1
  44. package/src/components/DatePicker/DatePicker.tsx +1 -1
  45. package/src/components/DeckSwiper/DeckSwiper.js +35 -0
  46. package/src/components/DeckSwiper/DeckSwiper.tsx +94 -0
  47. package/src/components/DeckSwiper/DeckSwiperCard.js +21 -0
  48. package/src/components/DeckSwiper/DeckSwiperCard.tsx +41 -0
  49. package/src/components/DeckSwiper/index.js +2 -0
  50. package/src/components/DeckSwiper/index.tsx +2 -0
  51. package/src/components/NumberInput.js +9 -9
  52. package/src/components/NumberInput.tsx +11 -11
  53. package/src/components/Picker/Picker.js +2 -1
  54. package/src/components/Picker/Picker.tsx +5 -2
  55. package/src/index.js +1 -0
  56. package/src/index.tsx +2 -0
  57. package/src/mappings/DatePicker.js +2 -1
  58. package/src/mappings/DatePicker.ts +2 -1
  59. package/src/mappings/DeckSwiper.js +48 -0
  60. package/src/mappings/DeckSwiper.ts +57 -0
  61. package/src/mappings/DeckSwiperCard.js +16 -0
  62. package/src/mappings/DeckSwiperCard.ts +20 -0
  63. package/src/mappings/HtmlElements.js +193 -0
  64. package/src/mappings/HtmlElements.ts +207 -0
@@ -0,0 +1,66 @@
1
+ import React from "react";
2
+ import { StyleSheet, View } from "react-native";
3
+ import DeckSwiperComponent from "react-native-deck-swiper";
4
+ const DeckSwiper = _ref => {
5
+ let {
6
+ onIndexChanged,
7
+ onEndReached,
8
+ startCardIndex = 0,
9
+ infiniteSwiping = false,
10
+ verticalEnabled = true,
11
+ horizontalEnabled = true,
12
+ visibleCardCount = 1,
13
+ style,
14
+ children
15
+ } = _ref;
16
+ const childrenArray = React.useMemo(() => React.Children.toArray(children), [children]);
17
+
18
+ // an array of indices based on children count
19
+ const cardsFillerData = React.useMemo(() => Array.from(Array(childrenArray.length).keys()), [childrenArray]);
20
+
21
+ /**
22
+ * By default react-native-deck-swiper positions everything with absolute position.
23
+ * To overcome this, it is wrapped in a View to be able to add the component in any layout structure.
24
+ *
25
+ *
26
+ * Since all children of that View are absolutley positioned, the View does not have a height and still looks and behaves weird.
27
+ * To fix/mitage this without setting a static height, the first card is rendered in invisible state to take up space.
28
+ * This effectivley makes the default height of the container be the height of the first card.
29
+ */
30
+
31
+ return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(View, {
32
+ style: styles.containerHeightFiller
33
+ }, childrenArray.length && childrenArray[0]), /*#__PURE__*/React.createElement(DeckSwiperComponent, {
34
+ cards: cardsFillerData,
35
+ renderCard: (_, i) => /*#__PURE__*/React.createElement(React.Fragment, null, childrenArray[i]),
36
+ keyExtractor: card => card === null || card === void 0 ? void 0 : card.toString(),
37
+ containerStyle: StyleSheet.flatten([styles.cardsContainer, style]),
38
+ cardStyle: styles.card,
39
+ onSwiped: onIndexChanged,
40
+ onSwipedAll: onEndReached,
41
+ cardIndex: startCardIndex,
42
+ infinite: infiniteSwiping,
43
+ verticalSwipe: verticalEnabled,
44
+ horizontalSwipe: horizontalEnabled,
45
+ showSecondCard: visibleCardCount > 1,
46
+ stackSize: visibleCardCount,
47
+ backgroundColor: "transparent",
48
+ cardVerticalMargin: 0,
49
+ cardHorizontalMargin: 0
50
+ }));
51
+ };
52
+ const styles = StyleSheet.create({
53
+ cardsContainer: {
54
+ width: "100%"
55
+ },
56
+ card: {
57
+ left: 0,
58
+ right: 0,
59
+ width: "auto",
60
+ height: "auto"
61
+ },
62
+ containerHeightFiller: {
63
+ opacity: 0.0
64
+ }
65
+ });
66
+ export default DeckSwiper;
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { View, StyleSheet } from "react-native";
3
+ import { withTheme } from "../../theming";
4
+ const DeckSwiperCard = _ref => {
5
+ let {
6
+ style,
7
+ children,
8
+ theme
9
+ } = _ref;
10
+ return /*#__PURE__*/React.createElement(View, {
11
+ style: [styles.card, {
12
+ backgroundColor: theme.colors.background,
13
+ borderColor: theme.colors.divider
14
+ }, style]
15
+ }, children);
16
+ };
17
+ const styles = StyleSheet.create({
18
+ card: {
19
+ flex: 1,
20
+ alignItems: "center",
21
+ justifyContent: "center",
22
+ padding: 20,
23
+ borderWidth: 2
24
+ }
25
+ });
26
+ export default withTheme(DeckSwiperCard);
@@ -0,0 +1,2 @@
1
+ export { default as DeckSwiper } from "./DeckSwiper";
2
+ export { default as DeckSwiperCard } from "./DeckSwiperCard";
@@ -24,17 +24,8 @@ const NumberInput = _ref => {
24
24
  return valueToFormat.toString();
25
25
  }
26
26
  }
27
- return "0";
27
+ return "";
28
28
  };
29
-
30
- // set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
31
- useEffect(() => {
32
- const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
33
- if (currentStringNumberValue !== defaultStringNumberValue) {
34
- setCurrentStringNumberValue(defaultStringNumberValue);
35
- }
36
- // eslint-disable-next-line react-hooks/exhaustive-deps
37
- }, []);
38
29
  const handleChangeText = newValue => {
39
30
  const newStringNumberValue = formatValueToStringNumber(newValue);
40
31
  const number = parseFloat(newStringNumberValue);
@@ -50,6 +41,15 @@ const NumberInput = _ref => {
50
41
  }
51
42
  // eslint-disable-next-line react-hooks/exhaustive-deps
52
43
  }, [value]);
44
+
45
+ // set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
46
+ useEffect(() => {
47
+ const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
48
+ if (currentStringNumberValue !== defaultStringNumberValue) {
49
+ setCurrentStringNumberValue(defaultStringNumberValue);
50
+ }
51
+ // eslint-disable-next-line react-hooks/exhaustive-deps
52
+ }, []);
53
53
  return /*#__PURE__*/React.createElement(TextInput, _extends({
54
54
  keyboardType: "numeric",
55
55
  value: currentStringNumberValue,
@@ -33,6 +33,7 @@ const {
33
33
  height: deviceHeight
34
34
  } = Dimensions.get("screen");
35
35
  const isIos = Platform.OS === "ios";
36
+ const isWeb = Platform.OS === "web";
36
37
  const unstyledColor = "rgba(165, 173, 183, 1)";
37
38
  const disabledColor = "rgb(240, 240, 240)";
38
39
  const errorColor = "rgba(255, 69, 100, 1)";
@@ -230,8 +231,8 @@ const Picker = _ref => {
230
231
  label: option.label,
231
232
  value: option.value,
232
233
  key: option.value
233
- })))))) : null, !isIos && pickerVisible ? /*#__PURE__*/React.createElement(NativePicker, {
234
- enabled: pickerVisible,
234
+ })))))) : null, !isIos && (pickerVisible || isWeb) ? /*#__PURE__*/React.createElement(NativePicker, {
235
+ enabled: !disabled,
235
236
  selectedValue: internalValue,
236
237
  onValueChange: handleValueChange,
237
238
  style: styles.nonIosPicker,
@@ -31,6 +31,7 @@ export { ActionSheet, ActionSheetItem, ActionSheetCancel } from "./components/Ac
31
31
  export { Swiper, SwiperItem } from "./components/Swiper";
32
32
  export { Center, Circle, Square, Row, Stack, Spacer } from "./components/Layout";
33
33
  export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup } from "./components/RadioButton/index";
34
+ export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
34
35
 
35
36
  /* Deprecated: Fix or Delete! */
36
37
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
@@ -31,7 +31,8 @@ const SEED_DATA_PROPS = {
31
31
  label: "Border Color"
32
32
  }),
33
33
  borderColorActive: createColorProp({
34
- label: "Border Color"
34
+ label: "Active Border Color",
35
+ description: "Color of border when date picker is active"
35
36
  }),
36
37
  format: {
37
38
  label: "Format",
@@ -0,0 +1,48 @@
1
+ import { COMPONENT_TYPES, Triggers, createActionProp, createStaticNumberProp, createStaticBoolProp, BLOCK_STYLES_SECTIONS } from "@draftbit/types";
2
+ export const SEED_DATA = {
3
+ name: "Deck Swiper",
4
+ tag: "DeckSwiper",
5
+ description: "Deck swiper container",
6
+ category: COMPONENT_TYPES.swiper,
7
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
8
+ layout: {
9
+ width: "100%"
10
+ },
11
+ triggers: [Triggers.OnIndexChanged, Triggers.OnEndReached],
12
+ props: {
13
+ onIndexChanged: createActionProp({
14
+ label: "On index changed",
15
+ description: "Action to execute when swipe to new index"
16
+ }),
17
+ onEndReached: createActionProp({
18
+ label: "On end reached",
19
+ description: "Action to execute when end of swiping reached"
20
+ }),
21
+ startCardIndex: createStaticNumberProp({
22
+ label: "Start card index",
23
+ description: "Index of card to start swiping from",
24
+ defaultValue: 0
25
+ }),
26
+ infiniteSwiping: createStaticBoolProp({
27
+ label: "Infinite swiping",
28
+ description: "Whether to infinitley loop through cards or not"
29
+ }),
30
+ verticalEnabled: createStaticBoolProp({
31
+ label: "Vertical swipe enabled",
32
+ description: "Whether cards should be swipeable vertically or not",
33
+ defaultValue: true
34
+ }),
35
+ horizontalEnabled: createStaticBoolProp({
36
+ label: "Horizontal swipe enabled",
37
+ description: "Whether cards should be swipeable horizontally or not",
38
+ defaultValue: true
39
+ }),
40
+ visibleCardCount: createStaticNumberProp({
41
+ label: "Visible card count",
42
+ description: "Number of cards visible behind (and including) the current card",
43
+ defaultValue: 1,
44
+ min: 1,
45
+ step: 1
46
+ })
47
+ }
48
+ };
@@ -0,0 +1,16 @@
1
+ import { COMPONENT_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS } from "@draftbit/types";
2
+ export const SEED_DATA = {
3
+ name: "Deck Swiper Card",
4
+ tag: "DeckSwiperCard",
5
+ description: "Single Deck Swiper Card item to be used in DeckSwiper",
6
+ category: COMPONENT_TYPES.swiper,
7
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
8
+ layout: {
9
+ flex: 1,
10
+ alignItems: "center",
11
+ justifyContent: "center",
12
+ padding: 20,
13
+ borderWidth: 2
14
+ },
15
+ props: {}
16
+ };
@@ -0,0 +1,170 @@
1
+ import { COMPONENT_TYPES, createTextProp, FORM_TYPES, PROP_TYPES, GROUPS, StylesPanelSections, Triggers } from "@draftbit/types";
2
+ const SEED_DATA_TRIGGERS = [Triggers.OnValueChange];
3
+ const ELEMENT_SEED_DATA = {
4
+ doc_link: "https://www.npmjs.com/package/@expo/html-elements",
5
+ code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
6
+ packageName: "@expo/html-elements",
7
+ stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.LayoutSelectedItem, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Effects],
8
+ layout: {
9
+ margin: 0
10
+ },
11
+ triggers: SEED_DATA_TRIGGERS,
12
+ category: COMPONENT_TYPES.webelement
13
+ };
14
+ const HEADING_SEED_DATA = {
15
+ ...ELEMENT_SEED_DATA,
16
+ category: COMPONENT_TYPES.text,
17
+ props: {
18
+ accessibilityLabel: {
19
+ group: GROUPS.accessibility,
20
+ name: "accessibilityLabel",
21
+ label: "accessibilityLabel",
22
+ description: "Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.",
23
+ editable: true,
24
+ required: false,
25
+ formType: FORM_TYPES.string,
26
+ propType: PROP_TYPES.STRING,
27
+ defaultValue: null
28
+ },
29
+ selectable: {
30
+ group: GROUPS.advanced,
31
+ name: "selectable",
32
+ label: "selectable",
33
+ description: "Lets the user select text, to use the native copy and paste functionality.",
34
+ editable: true,
35
+ required: false,
36
+ formType: FORM_TYPES.boolean,
37
+ propType: PROP_TYPES.BOOLEAN,
38
+ defaultValue: null
39
+ },
40
+ children: {
41
+ group: GROUPS.data,
42
+ label: "Text",
43
+ description: "Text",
44
+ editable: true,
45
+ required: true,
46
+ formType: FORM_TYPES.string,
47
+ propType: PROP_TYPES.STRING,
48
+ defaultValue: "Your Headline Here"
49
+ }
50
+ }
51
+ };
52
+ const TEXT_SEED_DATA = {
53
+ ...ELEMENT_SEED_DATA,
54
+ category: COMPONENT_TYPES.text,
55
+ props: {
56
+ children: {
57
+ group: GROUPS.data,
58
+ label: "Text",
59
+ description: "Text",
60
+ defaultValue: "Your Text Here",
61
+ editable: true,
62
+ required: true,
63
+ formType: FORM_TYPES.string,
64
+ propType: PROP_TYPES.STRING
65
+ }
66
+ }
67
+ };
68
+ export const SEED_DATA = [{
69
+ name: "H1",
70
+ tag: "H1",
71
+ ...HEADING_SEED_DATA
72
+ }, {
73
+ name: "H2",
74
+ tag: "H2",
75
+ ...HEADING_SEED_DATA
76
+ }, {
77
+ name: "H3",
78
+ tag: "H3",
79
+ ...HEADING_SEED_DATA
80
+ }, {
81
+ name: "H4",
82
+ tag: "H4",
83
+ ...HEADING_SEED_DATA
84
+ }, {
85
+ name: "H5",
86
+ tag: "H5",
87
+ ...HEADING_SEED_DATA
88
+ }, {
89
+ name: "H6",
90
+ tag: "H6",
91
+ ...HEADING_SEED_DATA
92
+ }, {
93
+ name: "Anchor",
94
+ tag: "A",
95
+ ...TEXT_SEED_DATA,
96
+ props: {
97
+ href: createTextProp({
98
+ label: "href",
99
+ description: "Specify the URL",
100
+ defaultValue: ""
101
+ }),
102
+ target: {
103
+ group: GROUPS.basic,
104
+ label: "target",
105
+ description: "decide where link should open",
106
+ formType: FORM_TYPES.flatArray,
107
+ defaultValue: "_blank",
108
+ options: ["_blank", "_self", "_parent", "_top"]
109
+ }
110
+ }
111
+ }, {
112
+ name: "Paragraph",
113
+ tag: "P",
114
+ ...TEXT_SEED_DATA,
115
+ props: {
116
+ // NOTE - Keeping the props commented until we figure out a way to use this props from draftbit side.
117
+ // strong: createBoolProp({
118
+ // label: "Strong",
119
+ // description: "Strong",
120
+ // }),
121
+ // strike: createBoolProp({
122
+ // label: "Strike",
123
+ // description: "Strike through",
124
+ // }),
125
+ // italic: createBoolProp({
126
+ // label: "Italic",
127
+ // description: "Italic Fonts",
128
+ // }),
129
+ // bold: createBoolProp({
130
+ // label: "Bold",
131
+ // description: "Bold",
132
+ // }),
133
+ }
134
+ }, {
135
+ name: "Code",
136
+ tag: "Code",
137
+ ...TEXT_SEED_DATA
138
+ }, {
139
+ name: "Pre",
140
+ tag: "Pre",
141
+ ...TEXT_SEED_DATA
142
+ }, {
143
+ name: "Mark",
144
+ tag: "Mark",
145
+ ...TEXT_SEED_DATA
146
+ }, {
147
+ name: "BR",
148
+ tag: "BR",
149
+ ...TEXT_SEED_DATA
150
+ }, {
151
+ name: "BlockQuote",
152
+ tag: "BlockQuote",
153
+ ...TEXT_SEED_DATA
154
+ }, {
155
+ name: "HR",
156
+ tag: "HR",
157
+ ...TEXT_SEED_DATA
158
+ }, {
159
+ name: "Time",
160
+ tag: "Time",
161
+ ...ELEMENT_SEED_DATA
162
+ }, {
163
+ name: "UL",
164
+ tag: "UL",
165
+ ...ELEMENT_SEED_DATA
166
+ }, {
167
+ name: "LI",
168
+ tag: "LI",
169
+ ...ELEMENT_SEED_DATA
170
+ }];
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { StyleProp, ViewStyle } from "react-native";
3
+ export interface DeckSwiperProps {
4
+ onIndexChanged?: (index: number) => void;
5
+ onEndReached?: () => void;
6
+ startCardIndex?: number;
7
+ infiniteSwiping?: boolean;
8
+ verticalEnabled?: boolean;
9
+ horizontalEnabled?: boolean;
10
+ visibleCardCount?: number;
11
+ style?: StyleProp<ViewStyle>;
12
+ }
13
+ declare const DeckSwiper: React.FC<React.PropsWithChildren<DeckSwiperProps>>;
14
+ export default DeckSwiper;
15
+ //# sourceMappingURL=DeckSwiper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeckSwiper.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckSwiper/DeckSwiper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAoB,MAAM,cAAc,CAAC;AAGtE,MAAM,WAAW,eAAe;IAC9B,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,CA6DlE,CAAC;AAiBF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { StyleProp, ViewStyle } from "react-native";
3
+ import type { Theme } from "../../styles/DefaultTheme";
4
+ export interface DeckSwiperCardProps {
5
+ style?: StyleProp<ViewStyle>;
6
+ children: React.ReactNode;
7
+ theme: Theme;
8
+ }
9
+ declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<DeckSwiperCardProps, "theme"> & {
10
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
11
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<DeckSwiperCardProps> & React.FC<DeckSwiperCardProps>, {}>;
12
+ export default _default;
13
+ //# sourceMappingURL=DeckSwiperCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeckSwiperCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckSwiper/DeckSwiperCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoB,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGvD,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC;CACd;;;;AA+BD,wBAAyC"}
@@ -0,0 +1,3 @@
1
+ export { default as DeckSwiper } from "./DeckSwiper";
2
+ export { default as DeckSwiperCard } from "./DeckSwiperCard";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckSwiper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/Picker/Picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,SAAS,EACT,SAAS,EAGV,MAAM,cAAc,CAAC;AAStB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAQtD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,WAA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CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,YAAY,EAAE,GAAG,MAAM,EAAE,CAAC;IACnC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACxB,CAAC;;;;AA2aF,wBAAiC"}
@@ -31,6 +31,7 @@ export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/A
31
31
  export { Swiper, SwiperItem } from "./components/Swiper";
32
32
  export { Center, Circle, Square, Row, Stack, Spacer, } from "./components/Layout";
33
33
  export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from "./components/RadioButton/index";
34
+ export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
34
35
  export { default as DatePicker } from "./components/DatePicker/DatePicker";
35
36
  export { default as Picker } from "./components/Picker/Picker";
36
37
  export { default as ProgressBar } from "./components/ProgressBar";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCrB,CAAC"}
1
+ {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/DatePicker.ts"],"names":[],"mappings":"AAiKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCrB,CAAC"}
@@ -0,0 +1,86 @@
1
+ export declare const SEED_DATA: {
2
+ name: string;
3
+ tag: string;
4
+ description: string;
5
+ category: string;
6
+ stylesPanelSections: string[];
7
+ layout: {
8
+ width: string;
9
+ };
10
+ triggers: string[];
11
+ props: {
12
+ onIndexChanged: {
13
+ label: string;
14
+ description: string;
15
+ editable: boolean;
16
+ required: boolean;
17
+ formType: string;
18
+ propType: string;
19
+ defaultValue: null;
20
+ group: string;
21
+ };
22
+ onEndReached: {
23
+ label: string;
24
+ description: string;
25
+ editable: boolean;
26
+ required: boolean;
27
+ formType: string;
28
+ propType: string;
29
+ defaultValue: null;
30
+ group: string;
31
+ };
32
+ startCardIndex: {
33
+ label: string;
34
+ description: string;
35
+ formType: string;
36
+ propType: string;
37
+ group: string;
38
+ defaultValue: null;
39
+ editable: boolean;
40
+ required: boolean;
41
+ step: number;
42
+ };
43
+ infiniteSwiping: {
44
+ label: string;
45
+ description: string;
46
+ formType: string;
47
+ propType: string;
48
+ defaultValue: boolean;
49
+ editable: boolean;
50
+ required: boolean;
51
+ group: string;
52
+ };
53
+ verticalEnabled: {
54
+ label: string;
55
+ description: string;
56
+ formType: string;
57
+ propType: string;
58
+ defaultValue: boolean;
59
+ editable: boolean;
60
+ required: boolean;
61
+ group: string;
62
+ };
63
+ horizontalEnabled: {
64
+ label: string;
65
+ description: string;
66
+ formType: string;
67
+ propType: string;
68
+ defaultValue: boolean;
69
+ editable: boolean;
70
+ required: boolean;
71
+ group: string;
72
+ };
73
+ visibleCardCount: {
74
+ label: string;
75
+ description: string;
76
+ formType: string;
77
+ propType: string;
78
+ group: string;
79
+ defaultValue: null;
80
+ editable: boolean;
81
+ required: boolean;
82
+ step: number;
83
+ };
84
+ };
85
+ };
86
+ //# sourceMappingURL=DeckSwiper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeckSwiper.d.ts","sourceRoot":"","sources":["../../../../src/mappings/DeckSwiper.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CrB,CAAC"}
@@ -0,0 +1,16 @@
1
+ export declare const SEED_DATA: {
2
+ name: string;
3
+ tag: string;
4
+ description: string;
5
+ category: string;
6
+ stylesPanelSections: string[];
7
+ layout: {
8
+ flex: number;
9
+ alignItems: string;
10
+ justifyContent: string;
11
+ padding: number;
12
+ borderWidth: number;
13
+ };
14
+ props: {};
15
+ };
16
+ //# sourceMappingURL=DeckSwiperCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeckSwiperCard.d.ts","sourceRoot":"","sources":["../../../../src/mappings/DeckSwiperCard.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;CAcrB,CAAC"}