@draftbit/core 43.3.4-e422d9.0 → 43.3.4-e63de2.4

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 (58) hide show
  1. package/lib/commonjs/components/Accordion/AccordionGroup.js +1 -9
  2. package/lib/commonjs/components/Accordion/AccordionGroup.js.map +1 -1
  3. package/lib/commonjs/components/DeprecatedCardWrapper.js +14 -2
  4. package/lib/commonjs/components/DeprecatedCardWrapper.js.map +1 -1
  5. package/lib/commonjs/components/Divider.js +3 -13
  6. package/lib/commonjs/components/Divider.js.map +1 -1
  7. package/lib/commonjs/components/Swiper/Swiper.js +23 -1
  8. package/lib/commonjs/components/Swiper/Swiper.js.map +1 -1
  9. package/lib/commonjs/mappings/Accordion.js +40 -0
  10. package/lib/commonjs/mappings/Accordion.js.map +1 -0
  11. package/lib/commonjs/mappings/AccordionGroup.js +1 -1
  12. package/lib/commonjs/mappings/AccordionGroup.js.map +1 -1
  13. package/lib/commonjs/mappings/AccordionItem.js +1 -1
  14. package/lib/commonjs/mappings/AccordionItem.js.map +1 -1
  15. package/lib/commonjs/mappings/RadioButton.js.map +1 -1
  16. package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
  17. package/lib/commonjs/mappings/Swiper.js +14 -0
  18. package/lib/commonjs/mappings/Swiper.js.map +1 -1
  19. package/lib/commonjs/mappings/TextArea.js +10 -1
  20. package/lib/commonjs/mappings/TextArea.js.map +1 -1
  21. package/lib/module/components/Accordion/AccordionGroup.js +1 -9
  22. package/lib/module/components/Accordion/AccordionGroup.js.map +1 -1
  23. package/lib/module/components/Picker/PickerComponent.web.js +3 -17
  24. package/lib/module/components/Picker/PickerComponent.web.js.map +1 -1
  25. package/lib/module/components/Swiper/Swiper.js +23 -1
  26. package/lib/module/components/Swiper/Swiper.js.map +1 -1
  27. package/lib/module/mappings/Accordion.js +31 -0
  28. package/lib/module/mappings/Accordion.js.map +1 -0
  29. package/lib/module/mappings/AccordionGroup.js +1 -1
  30. package/lib/module/mappings/AccordionGroup.js.map +1 -1
  31. package/lib/module/mappings/AccordionItem.js +1 -1
  32. package/lib/module/mappings/AccordionItem.js.map +1 -1
  33. package/lib/module/mappings/MapCallout.js.map +1 -1
  34. package/lib/module/mappings/RowHeadlineImageIcon.js.map +1 -1
  35. package/lib/module/mappings/Swiper.js +15 -1
  36. package/lib/module/mappings/Swiper.js.map +1 -1
  37. package/lib/module/mappings/TextArea.js +10 -1
  38. package/lib/module/mappings/TextArea.js.map +1 -1
  39. package/lib/module/styles/DefaultTheme.js.map +1 -1
  40. package/lib/typescript/src/components/Swiper/Swiper.d.ts +5 -1
  41. package/lib/typescript/src/mappings/Accordion.d.ts +70 -0
  42. package/lib/typescript/src/mappings/Swiper.d.ts +40 -0
  43. package/lib/typescript/src/mappings/TextArea.d.ts +10 -1
  44. package/package.json +2 -2
  45. package/src/components/Accordion/AccordionGroup.js +1 -12
  46. package/src/components/Accordion/AccordionGroup.tsx +1 -15
  47. package/src/components/Swiper/Swiper.js +9 -1
  48. package/src/components/Swiper/Swiper.tsx +16 -0
  49. package/src/mappings/Accordion.js +30 -0
  50. package/src/mappings/Accordion.ts +38 -0
  51. package/src/mappings/AccordionGroup.js +1 -1
  52. package/src/mappings/AccordionGroup.ts +1 -1
  53. package/src/mappings/AccordionItem.js +1 -1
  54. package/src/mappings/AccordionItem.ts +1 -1
  55. package/src/mappings/Swiper.js +15 -1
  56. package/src/mappings/Swiper.ts +15 -0
  57. package/src/mappings/TextArea.js +12 -1
  58. package/src/mappings/TextArea.ts +12 -1
@@ -0,0 +1,38 @@
1
+ import {
2
+ COMPONENT_TYPES,
3
+ createNumberProp,
4
+ createIconProp,
5
+ createTextProp,
6
+ createStaticBoolProp,
7
+ createColorProp,
8
+ } from "@draftbit/types";
9
+
10
+ export const SEED_DATA = {
11
+ name: "Accordion",
12
+ tag: "AccordionGroup",
13
+ description: "An expandable container containing components",
14
+ category: COMPONENT_TYPES.container,
15
+ props: {
16
+ openColor: createColorProp({
17
+ label: "Open text color",
18
+ }),
19
+ closedColor: createColorProp({
20
+ label: "Closed text Color",
21
+ }),
22
+ caretColor: createColorProp({
23
+ label: "Caret color",
24
+ }),
25
+ iconSize: createNumberProp({
26
+ label: "Icon size",
27
+ defaultValue: 24,
28
+ }),
29
+ label: createTextProp({
30
+ label: "Label",
31
+ }),
32
+ expanded: createStaticBoolProp({
33
+ label: "Expanded",
34
+ description: "Whether the AccordionGroup should be expanded or not",
35
+ }),
36
+ icon: createIconProp(),
37
+ },
38
+ };
@@ -3,7 +3,7 @@ export const SEED_DATA = {
3
3
  name: "Accordion Group",
4
4
  tag: "AccordionGroup",
5
5
  description: "An expandable container containing components",
6
- category: COMPONENT_TYPES.container,
6
+ category: COMPONENT_TYPES.deprecated,
7
7
  props: {
8
8
  openColor: createColorProp({
9
9
  label: "Open text color",
@@ -11,7 +11,7 @@ export const SEED_DATA = {
11
11
  name: "Accordion Group",
12
12
  tag: "AccordionGroup",
13
13
  description: "An expandable container containing components",
14
- category: COMPONENT_TYPES.container,
14
+ category: COMPONENT_TYPES.deprecated,
15
15
  props: {
16
16
  openColor: createColorProp({
17
17
  label: "Open text color",
@@ -3,7 +3,7 @@ export const SEED_DATA = {
3
3
  name: "Accordion Item",
4
4
  tag: "AccordionItem",
5
5
  description: "Item to be used in Accordion",
6
- category: COMPONENT_TYPES.button,
6
+ category: COMPONENT_TYPES.deprecated,
7
7
  props: {
8
8
  icon: createIconProp(),
9
9
  label: createTextProp({
@@ -9,7 +9,7 @@ export const SEED_DATA = {
9
9
  name: "Accordion Item",
10
10
  tag: "AccordionItem",
11
11
  description: "Item to be used in Accordion",
12
- category: COMPONENT_TYPES.button,
12
+ category: COMPONENT_TYPES.deprecated,
13
13
  props: {
14
14
  icon: createIconProp(),
15
15
  label: createTextProp({
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createBoolProp, createNumberProp, createTextProp, GROUPS, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createBoolProp, createNumberProp, createTextProp, createColorProp, GROUPS, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Swiper",
4
4
  tag: "Swiper",
@@ -37,6 +37,20 @@ export const SEED_DATA = {
37
37
  label: "Next Title",
38
38
  defaultValue: "",
39
39
  }),
40
+ prevTitleColor: createColorProp({
41
+ label: "Previous Title Color",
42
+ }),
43
+ nextTitleColor: createColorProp({
44
+ label: "Next Title Color",
45
+ }),
46
+ dotColor: createColorProp({
47
+ label: "Dot Color",
48
+ defaultValue: "light",
49
+ }),
50
+ dotActiveColor: createColorProp({
51
+ label: "Dot Active Color",
52
+ defaultValue: "primary",
53
+ }),
40
54
  dotsTouchable: createBoolProp({
41
55
  group: GROUPS.basic,
42
56
  label: "Dots Touchable",
@@ -3,6 +3,7 @@ import {
3
3
  createBoolProp,
4
4
  createNumberProp,
5
5
  createTextProp,
6
+ createColorProp,
6
7
  GROUPS,
7
8
  } from "@draftbit/types";
8
9
 
@@ -44,6 +45,20 @@ export const SEED_DATA = {
44
45
  label: "Next Title",
45
46
  defaultValue: "",
46
47
  }),
48
+ prevTitleColor: createColorProp({
49
+ label: "Previous Title Color",
50
+ }),
51
+ nextTitleColor: createColorProp({
52
+ label: "Next Title Color",
53
+ }),
54
+ dotColor: createColorProp({
55
+ label: "Dot Color",
56
+ defaultValue: "light",
57
+ }),
58
+ dotActiveColor: createColorProp({
59
+ label: "Dot Active Color",
60
+ defaultValue: "primary",
61
+ }),
47
62
  dotsTouchable: createBoolProp({
48
63
  group: GROUPS.basic,
49
64
  label: "Dots Touchable",
@@ -4,7 +4,18 @@ export const SEED_DATA = {
4
4
  tag: "TextInput",
5
5
  description: "An input field that allows for multiple lines.",
6
6
  category: COMPONENT_TYPES.input,
7
- layout: { flex: 1 },
7
+ layout: {
8
+ borderLeftWidth: 1,
9
+ borderRightWidth: 1,
10
+ borderTopWidth: 1,
11
+ borderBottomWidth: 1,
12
+ borderColor: "divider",
13
+ paddingLeft: 8,
14
+ paddingRight: 8,
15
+ paddingTop: 8,
16
+ paddingBottom: 8,
17
+ borderRadius: 8,
18
+ },
8
19
  triggers: [Triggers.OnChangeText],
9
20
  props: {
10
21
  ...TEXT_INPUT_PROPS,
@@ -13,7 +13,18 @@ export const SEED_DATA = {
13
13
  tag: "TextInput",
14
14
  description: "An input field that allows for multiple lines.",
15
15
  category: COMPONENT_TYPES.input,
16
- layout: { flex: 1 },
16
+ layout: {
17
+ borderLeftWidth: 1,
18
+ borderRightWidth: 1,
19
+ borderTopWidth: 1,
20
+ borderBottomWidth: 1,
21
+ borderColor: "divider",
22
+ paddingLeft: 8,
23
+ paddingRight: 8,
24
+ paddingTop: 8,
25
+ paddingBottom: 8,
26
+ borderRadius: 8,
27
+ },
17
28
  triggers: [Triggers.OnChangeText],
18
29
  props: {
19
30
  ...TEXT_INPUT_PROPS,