@draftbit/core 46.8.2-fee87c.2 → 46.9.1-0f1b60.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 (63) hide show
  1. package/lib/commonjs/components/Container.js +15 -4
  2. package/lib/commonjs/components/Markdown.js +30 -0
  3. package/lib/commonjs/components/Shadow.js +46 -0
  4. package/lib/commonjs/components/TabView/TabView.js +22 -6
  5. package/lib/commonjs/hooks.js +1 -2
  6. package/lib/commonjs/index.js +14 -0
  7. package/lib/commonjs/mappings/FlashList.js +2 -8
  8. package/lib/commonjs/mappings/HtmlElements.js +160 -0
  9. package/lib/commonjs/mappings/Markdown.js +27 -0
  10. package/lib/commonjs/mappings/Shadow.js +102 -0
  11. package/lib/commonjs/mappings/TabView.js +6 -5
  12. package/lib/commonjs/mappings/TabViewItem.js +5 -3
  13. package/lib/module/components/Markdown.js +20 -0
  14. package/lib/module/components/Shadow.js +38 -0
  15. package/lib/module/components/TabView/TabView.js +22 -5
  16. package/lib/module/index.js +2 -0
  17. package/lib/module/mappings/FlashList.js +3 -9
  18. package/lib/module/mappings/HtmlElements.js +153 -0
  19. package/lib/module/mappings/Markdown.js +20 -0
  20. package/lib/module/mappings/Shadow.js +95 -0
  21. package/lib/module/mappings/TabView.js +7 -6
  22. package/lib/module/mappings/TabViewItem.js +6 -4
  23. package/lib/typescript/src/components/Markdown.d.ts +8 -0
  24. package/lib/typescript/src/components/Markdown.d.ts.map +1 -0
  25. package/lib/typescript/src/components/Shadow.d.ts +24 -0
  26. package/lib/typescript/src/components/Shadow.d.ts.map +1 -0
  27. package/lib/typescript/src/components/TabView/TabView.d.ts.map +1 -1
  28. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +1 -1
  29. package/lib/typescript/src/components/TabView/TabViewItem.d.ts.map +1 -1
  30. package/lib/typescript/src/index.d.ts +2 -0
  31. package/lib/typescript/src/index.d.ts.map +1 -1
  32. package/lib/typescript/src/mappings/FlashList.d.ts +0 -6
  33. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -1
  34. package/lib/typescript/src/mappings/HtmlElements.d.ts +109 -0
  35. package/lib/typescript/src/mappings/HtmlElements.d.ts.map +1 -0
  36. package/lib/typescript/src/mappings/Markdown.d.ts +20 -0
  37. package/lib/typescript/src/mappings/Markdown.d.ts.map +1 -0
  38. package/lib/typescript/src/mappings/Shadow.d.ts +173 -0
  39. package/lib/typescript/src/mappings/Shadow.d.ts.map +1 -0
  40. package/lib/typescript/src/mappings/TabView.d.ts.map +1 -1
  41. package/lib/typescript/src/mappings/TabViewItem.d.ts.map +1 -1
  42. package/package.json +6 -3
  43. package/src/components/Markdown.js +10 -0
  44. package/src/components/Markdown.tsx +22 -0
  45. package/src/components/Shadow.js +16 -0
  46. package/src/components/Shadow.tsx +62 -0
  47. package/src/components/TabView/TabView.js +16 -7
  48. package/src/components/TabView/TabView.tsx +25 -7
  49. package/src/components/TabView/TabViewItem.tsx +1 -1
  50. package/src/index.js +2 -0
  51. package/src/index.tsx +3 -0
  52. package/src/mappings/FlashList.js +9 -9
  53. package/src/mappings/FlashList.ts +9 -9
  54. package/src/mappings/HtmlElements.js +180 -0
  55. package/src/mappings/HtmlElements.ts +194 -0
  56. package/src/mappings/Markdown.js +25 -0
  57. package/src/mappings/Markdown.ts +32 -0
  58. package/src/mappings/Shadow.js +95 -0
  59. package/src/mappings/Shadow.ts +104 -0
  60. package/src/mappings/TabView.js +11 -5
  61. package/src/mappings/TabView.ts +11 -5
  62. package/src/mappings/TabViewItem.js +4 -2
  63. package/src/mappings/TabViewItem.ts +4 -1
@@ -2,11 +2,11 @@ import {
2
2
  COMPONENT_TYPES,
3
3
  createTextEnumProp,
4
4
  createColorProp,
5
- BLOCK_STYLES_SECTIONS,
6
5
  StylesPanelSections,
7
6
  Triggers,
8
7
  createActionProp,
9
8
  createStaticBoolProp,
9
+ GROUPS,
10
10
  } from "@draftbit/types";
11
11
 
12
12
  export const SEED_DATA = {
@@ -15,8 +15,13 @@ export const SEED_DATA = {
15
15
  description: "Tab view container",
16
16
  category: COMPONENT_TYPES.swiper,
17
17
  stylesPanelSections: [
18
- ...BLOCK_STYLES_SECTIONS,
18
+ StylesPanelSections.Size,
19
+ StylesPanelSections.MarginsAndPaddings,
20
+ StylesPanelSections.Position,
21
+ StylesPanelSections.Effects,
22
+ StylesPanelSections.LayoutSelectedItem,
19
23
  StylesPanelSections.Background,
24
+ StylesPanelSections.Typography,
20
25
  ],
21
26
  triggers: [Triggers.OnIndexChanged, Triggers.OnEndReached],
22
27
  props: {
@@ -46,9 +51,9 @@ export const SEED_DATA = {
46
51
  defaultValue: true,
47
52
  }),
48
53
  scrollEnabled: createStaticBoolProp({
49
- label: "Scroll Enabled",
54
+ label: "Tab Scroll Enabled",
50
55
  description: "Whether scrolling of tabs is enabled or not",
51
- defaultValue: true,
56
+ defaultValue: false,
52
57
  }),
53
58
  activeColor: createColorProp({
54
59
  label: "Active Color",
@@ -62,8 +67,9 @@ export const SEED_DATA = {
62
67
  }),
63
68
  pressColor: createColorProp({
64
69
  label: "Press Color",
65
- description: "Color of ripple when pressed (android only)",
70
+ description: "Color of ripple when pressed",
66
71
  defaultValue: "primary",
72
+ group: GROUPS.android,
67
73
  }),
68
74
  indicatorColor: createColorProp({
69
75
  label: "Indicator Color",
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createTextProp, createIconProp, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createTextProp, createIconProp, CONTAINER_COMPONENT_STYLES_SECTIONS, GROUPS, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Tab View Item",
4
4
  tag: "TabViewItem",
@@ -12,8 +12,9 @@ export const SEED_DATA = {
12
12
  title: createTextProp({
13
13
  label: "Title",
14
14
  description: "Title of tab item",
15
- defaultValue: null,
15
+ defaultValue: "Title",
16
16
  required: true,
17
+ group: GROUPS.basic,
17
18
  }),
18
19
  icon: createIconProp({
19
20
  defaultValue: null,
@@ -23,6 +24,7 @@ export const SEED_DATA = {
23
24
  label: "Accessibility Label",
24
25
  description: "Accessibility Label",
25
26
  defaultValue: null,
27
+ group: GROUPS.accessibility,
26
28
  }),
27
29
  },
28
30
  };
@@ -3,6 +3,7 @@ import {
3
3
  createTextProp,
4
4
  createIconProp,
5
5
  CONTAINER_COMPONENT_STYLES_SECTIONS,
6
+ GROUPS,
6
7
  } from "@draftbit/types";
7
8
 
8
9
  export const SEED_DATA = {
@@ -19,8 +20,9 @@ export const SEED_DATA = {
19
20
  title: createTextProp({
20
21
  label: "Title",
21
22
  description: "Title of tab item",
22
- defaultValue: null,
23
+ defaultValue: "Title",
23
24
  required: true,
25
+ group: GROUPS.basic,
24
26
  }),
25
27
  icon: createIconProp({
26
28
  defaultValue: null,
@@ -30,6 +32,7 @@ export const SEED_DATA = {
30
32
  label: "Accessibility Label",
31
33
  description: "Accessibility Label",
32
34
  defaultValue: null,
35
+ group: GROUPS.accessibility,
33
36
  }),
34
37
  },
35
38
  };