@draftbit/core 46.7.9-900f3a.2 → 46.7.9-cbe269.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 (49) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +23 -4
  2. package/lib/commonjs/components/Divider.js +14 -1
  3. package/lib/commonjs/components/Elevation.js +14 -2
  4. package/lib/commonjs/components/Picker/Picker.js +3 -2
  5. package/lib/commonjs/components/TextField.js +76 -28
  6. package/lib/commonjs/constants.js +1 -1
  7. package/lib/commonjs/index.js +0 -13
  8. package/lib/commonjs/mappings/StarRating.js +2 -6
  9. package/lib/commonjs/styles/overlay.js +3 -1
  10. package/lib/module/components/Picker/Picker.js +3 -2
  11. package/lib/module/index.js +0 -1
  12. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
  13. package/lib/typescript/src/index.d.ts +0 -1
  14. package/lib/typescript/src/index.d.ts.map +1 -1
  15. package/package.json +3 -4
  16. package/src/components/Picker/Picker.js +2 -1
  17. package/src/components/Picker/Picker.tsx +5 -2
  18. package/src/index.js +0 -1
  19. package/src/index.tsx +0 -2
  20. package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +0 -74
  21. package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js +0 -37
  22. package/lib/commonjs/components/DeckSwiper/index.js +0 -20
  23. package/lib/commonjs/mappings/DeckSwiper.js +0 -52
  24. package/lib/commonjs/mappings/DeckSwiperCard.js +0 -16
  25. package/lib/module/components/DeckSwiper/DeckSwiper.js +0 -66
  26. package/lib/module/components/DeckSwiper/DeckSwiperCard.js +0 -28
  27. package/lib/module/components/DeckSwiper/index.js +0 -2
  28. package/lib/module/mappings/DeckSwiper.js +0 -45
  29. package/lib/module/mappings/DeckSwiperCard.js +0 -9
  30. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts +0 -15
  31. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts.map +0 -1
  32. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +0 -13
  33. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts.map +0 -1
  34. package/lib/typescript/src/components/DeckSwiper/index.d.ts +0 -3
  35. package/lib/typescript/src/components/DeckSwiper/index.d.ts.map +0 -1
  36. package/lib/typescript/src/mappings/DeckSwiper.d.ts +0 -83
  37. package/lib/typescript/src/mappings/DeckSwiper.d.ts.map +0 -1
  38. package/lib/typescript/src/mappings/DeckSwiperCard.d.ts +0 -9
  39. package/lib/typescript/src/mappings/DeckSwiperCard.d.ts.map +0 -1
  40. package/src/components/DeckSwiper/DeckSwiper.js +0 -35
  41. package/src/components/DeckSwiper/DeckSwiper.tsx +0 -94
  42. package/src/components/DeckSwiper/DeckSwiperCard.js +0 -25
  43. package/src/components/DeckSwiper/DeckSwiperCard.tsx +0 -42
  44. package/src/components/DeckSwiper/index.js +0 -2
  45. package/src/components/DeckSwiper/index.tsx +0 -2
  46. package/src/mappings/DeckSwiper.js +0 -45
  47. package/src/mappings/DeckSwiper.ts +0 -54
  48. package/src/mappings/DeckSwiperCard.js +0 -9
  49. package/src/mappings/DeckSwiperCard.ts +0 -13
@@ -1,45 +0,0 @@
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
- triggers: [Triggers.OnIndexChanged, Triggers.OnEndReached],
9
- props: {
10
- onIndexChanged: createActionProp({
11
- label: "On index changed",
12
- description: "Action to execute when swipe to new index",
13
- }),
14
- onEndReached: createActionProp({
15
- label: "On end reached",
16
- description: "Action to execute when end of swiping reached",
17
- }),
18
- startCardIndex: createStaticNumberProp({
19
- label: "Start card index",
20
- description: "Index of card to start swiping from",
21
- defaultValue: 0,
22
- }),
23
- infiniteSwiping: createStaticBoolProp({
24
- label: "Infinite swiping",
25
- description: "Whether to infinitley loop through cards or not",
26
- }),
27
- verticalEnabled: createStaticBoolProp({
28
- label: "Vertical swipe enabled",
29
- description: "Whether cards should be swipeable vertically or not",
30
- defaultValue: true,
31
- }),
32
- horizontalEnabled: createStaticBoolProp({
33
- label: "Horizontal swipe enabled",
34
- description: "Whether cards should be swipeable horizontally or not",
35
- defaultValue: true,
36
- }),
37
- visibleCardCount: createStaticNumberProp({
38
- label: "Visible card count",
39
- description: "Number of cards visible behind (and including) the current card",
40
- defaultValue: 1,
41
- min: 1,
42
- step: 1,
43
- }),
44
- },
45
- };
@@ -1,54 +0,0 @@
1
- import {
2
- COMPONENT_TYPES,
3
- Triggers,
4
- createActionProp,
5
- createStaticNumberProp,
6
- createStaticBoolProp,
7
- BLOCK_STYLES_SECTIONS,
8
- } from "@draftbit/types";
9
-
10
- export const SEED_DATA = {
11
- name: "Deck Swiper",
12
- tag: "DeckSwiper",
13
- description: "Deck swiper container",
14
- category: COMPONENT_TYPES.swiper,
15
- stylesPanelSections: BLOCK_STYLES_SECTIONS,
16
- triggers: [Triggers.OnIndexChanged, Triggers.OnEndReached],
17
- props: {
18
- onIndexChanged: createActionProp({
19
- label: "On index changed",
20
- description: "Action to execute when swipe to new index",
21
- }),
22
- onEndReached: createActionProp({
23
- label: "On end reached",
24
- description: "Action to execute when end of swiping reached",
25
- }),
26
- startCardIndex: createStaticNumberProp({
27
- label: "Start card index",
28
- description: "Index of card to start swiping from",
29
- defaultValue: 0,
30
- }),
31
- infiniteSwiping: createStaticBoolProp({
32
- label: "Infinite swiping",
33
- description: "Whether to infinitley loop through cards or not",
34
- }),
35
- verticalEnabled: createStaticBoolProp({
36
- label: "Vertical swipe enabled",
37
- description: "Whether cards should be swipeable vertically or not",
38
- defaultValue: true,
39
- }),
40
- horizontalEnabled: createStaticBoolProp({
41
- label: "Horizontal swipe enabled",
42
- description: "Whether cards should be swipeable horizontally or not",
43
- defaultValue: true,
44
- }),
45
- visibleCardCount: createStaticNumberProp({
46
- label: "Visible card count",
47
- description:
48
- "Number of cards visible behind (and including) the current card",
49
- defaultValue: 1,
50
- min: 1,
51
- step: 1,
52
- }),
53
- },
54
- };
@@ -1,9 +0,0 @@
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
- props: {},
9
- };
@@ -1,13 +0,0 @@
1
- import {
2
- COMPONENT_TYPES,
3
- CONTAINER_COMPONENT_STYLES_SECTIONS,
4
- } from "@draftbit/types";
5
-
6
- export const SEED_DATA = {
7
- name: "Deck Swiper Card",
8
- tag: "DeckSwiperCard",
9
- description: "Single Deck Swiper Card item to be used in DeckSwiper",
10
- category: COMPONENT_TYPES.swiper,
11
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
12
- props: {},
13
- };