@draftbit/core 46.4.4-41266b.2 → 46.4.4-520686.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 (50) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +5 -25
  2. package/lib/commonjs/components/Picker/Picker.js +5 -5
  3. package/lib/commonjs/components/Stepper.js +8 -3
  4. package/lib/commonjs/components/Swiper/Swiper.js +0 -2
  5. package/lib/commonjs/components/Text.js +6 -2
  6. package/lib/commonjs/components/TextField.js +5 -1
  7. package/lib/commonjs/mappings/HtmlElements.js +125 -0
  8. package/lib/commonjs/mappings/Stepper.js +1 -1
  9. package/lib/commonjs/mappings/Swiper.js +0 -1
  10. package/lib/commonjs/mappings/TextField.js +1 -1
  11. package/lib/commonjs/mappings/TextInput.js +1 -1
  12. package/lib/module/components/Picker/Picker.js +2 -2
  13. package/lib/module/components/Stepper.js +7 -3
  14. package/lib/module/components/Swiper/Swiper.js +0 -2
  15. package/lib/module/components/Text.js +6 -2
  16. package/lib/module/components/TextField.js +5 -1
  17. package/lib/module/mappings/HtmlElements.js +116 -0
  18. package/lib/module/mappings/Stepper.js +2 -2
  19. package/lib/module/mappings/Swiper.js +1 -2
  20. package/lib/module/mappings/TextField.js +1 -1
  21. package/lib/module/mappings/TextInput.js +1 -1
  22. package/lib/typescript/src/components/Stepper.d.ts +1 -2
  23. package/lib/typescript/src/components/Swiper/Swiper.d.ts +1 -2
  24. package/lib/typescript/src/components/Text.d.ts +2 -1
  25. package/lib/typescript/src/components/TextField.d.ts +2 -1
  26. package/lib/typescript/src/mappings/HtmlElements.d.ts +49 -0
  27. package/lib/typescript/src/mappings/Swiper.d.ts +0 -1
  28. package/lib/typescript/src/mappings/TextField.d.ts +2 -2
  29. package/lib/typescript/src/mappings/TextInput.d.ts +1 -1
  30. package/package.json +4 -3
  31. package/src/components/Picker/Picker.js +1 -1
  32. package/src/components/Picker/Picker.tsx +2 -2
  33. package/src/components/Stepper.js +5 -3
  34. package/src/components/Stepper.tsx +5 -5
  35. package/src/components/Swiper/Swiper.js +2 -2
  36. package/src/components/Swiper/Swiper.tsx +0 -3
  37. package/src/components/Text.js +8 -2
  38. package/src/components/Text.tsx +6 -1
  39. package/src/components/TextField.js +6 -1
  40. package/src/components/TextField.tsx +7 -1
  41. package/src/mappings/HtmlElements.js +141 -0
  42. package/src/mappings/HtmlElements.ts +151 -0
  43. package/src/mappings/Stepper.js +5 -2
  44. package/src/mappings/Stepper.ts +5 -1
  45. package/src/mappings/Swiper.js +1 -2
  46. package/src/mappings/Swiper.ts +0 -2
  47. package/src/mappings/TextField.js +1 -1
  48. package/src/mappings/TextField.ts +1 -1
  49. package/src/mappings/TextInput.js +1 -1
  50. package/src/mappings/TextInput.ts +1 -1
@@ -1,11 +1,14 @@
1
- import { COMPONENT_TYPES, createIconSizeProp, createColorProp, createFieldNameProp, createStaticNumberProp, Triggers, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createIconSizeProp, createColorProp, createFieldNameProp, createStaticNumberProp, Triggers, BLOCK_STYLES_SECTIONS, StylesPanelSections, } from "@draftbit/types";
2
2
  export const SEED_DATA = [
3
3
  {
4
4
  name: "Stepper",
5
5
  tag: "Stepper",
6
6
  description: "A component used to control the quantity of something",
7
7
  category: COMPONENT_TYPES.control,
8
- stylesPanelSections: BLOCK_STYLES_SECTIONS,
8
+ stylesPanelSections: [
9
+ StylesPanelSections.Typography,
10
+ ...BLOCK_STYLES_SECTIONS,
11
+ ],
9
12
  layout: {},
10
13
  triggers: [Triggers.OnChange],
11
14
  props: {
@@ -6,6 +6,7 @@ import {
6
6
  createStaticNumberProp,
7
7
  Triggers,
8
8
  BLOCK_STYLES_SECTIONS,
9
+ StylesPanelSections,
9
10
  } from "@draftbit/types";
10
11
 
11
12
  export const SEED_DATA = [
@@ -14,7 +15,10 @@ export const SEED_DATA = [
14
15
  tag: "Stepper",
15
16
  description: "A component used to control the quantity of something",
16
17
  category: COMPONENT_TYPES.control,
17
- stylesPanelSections: BLOCK_STYLES_SECTIONS,
18
+ stylesPanelSections: [
19
+ StylesPanelSections.Typography,
20
+ ...BLOCK_STYLES_SECTIONS,
21
+ ],
18
22
  layout: {},
19
23
  triggers: [Triggers.OnChange],
20
24
  props: {
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createBoolProp, createNumberProp, createTextProp, createColorProp, GROUPS, Triggers, } 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",
@@ -8,7 +8,6 @@ export const SEED_DATA = {
8
8
  height: 300,
9
9
  width: "100%",
10
10
  },
11
- triggers: [Triggers.OnIndexChanged],
12
11
  props: {
13
12
  from: createNumberProp({
14
13
  group: GROUPS.basic,
@@ -5,7 +5,6 @@ import {
5
5
  createTextProp,
6
6
  createColorProp,
7
7
  GROUPS,
8
- Triggers,
9
8
  } from "@draftbit/types";
10
9
 
11
10
  export const SEED_DATA = {
@@ -17,7 +16,6 @@ export const SEED_DATA = {
17
16
  height: 300,
18
17
  width: "100%",
19
18
  },
20
- triggers: [Triggers.OnIndexChanged],
21
19
  props: {
22
20
  from: createNumberProp({
23
21
  group: GROUPS.basic,
@@ -16,7 +16,7 @@ const SEED_DATA_PROPS = {
16
16
  description: "Can automatically capitalize sentences, words, and characters (Default: none).",
17
17
  editable: true,
18
18
  required: false,
19
- defaultValue: null,
19
+ defaultValue: "none",
20
20
  options: ["none", "sentences", "words", "characters"],
21
21
  formType: FORM_TYPES.flatArray,
22
22
  propType: PROP_TYPES.STRING,
@@ -30,7 +30,7 @@ const SEED_DATA_PROPS = {
30
30
  "Can automatically capitalize sentences, words, and characters (Default: none).",
31
31
  editable: true,
32
32
  required: false,
33
- defaultValue: null,
33
+ defaultValue: "none",
34
34
  options: ["none", "sentences", "words", "characters"],
35
35
  formType: FORM_TYPES.flatArray,
36
36
  propType: PROP_TYPES.STRING,
@@ -104,7 +104,7 @@ export const SEED_DATA = [
104
104
  description: "Can automatically capitalize sentences, words, and characters (Default: none).",
105
105
  editable: true,
106
106
  required: false,
107
- defaultValue: null,
107
+ defaultValue: "none",
108
108
  options: ["none", "sentences", "words", "characters"],
109
109
  formType: FORM_TYPES.flatArray,
110
110
  propType: PROP_TYPES.STRING,
@@ -121,7 +121,7 @@ export const SEED_DATA = [
121
121
  "Can automatically capitalize sentences, words, and characters (Default: none).",
122
122
  editable: true,
123
123
  required: false,
124
- defaultValue: null,
124
+ defaultValue: "none",
125
125
  options: ["none", "sentences", "words", "characters"],
126
126
  formType: FORM_TYPES.flatArray,
127
127
  propType: PROP_TYPES.STRING,